1274 lines
1.2 MiB
Plaintext
1274 lines
1.2 MiB
Plaintext
import{B as writable,I as derived,J as get_store_value}from"./index-55f02416.js";import{_ as __vitePreload}from"./preload-helper-aa6bc0ce.js";const defaultLoading={loading:!1},loadingStateStore=writable(defaultLoading),initLoading=async(d,b)=>{loadingStateStore.set({loading:!0,message:d});const h=await b;return loadingStateStore.set({loading:!1}),h};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}function getAugmentedNamespace(d){var b=d.default;if(typeof b=="function"){var h=function(){return b.apply(this,arguments)};h.prototype=b.prototype}else h={};return Object.defineProperty(h,"__esModule",{value:!0}),Object.keys(d).forEach(function(m){var f=Object.getOwnPropertyDescriptor(d,m);Object.defineProperty(h,m,f.get?f:{enumerable:!0,get:function(){return d[m]}})}),h}var bundle={};(function(exports){(function(d,b){for(var h in b)d[h]=b[h];b.__esModule&&Object.defineProperty(d,"__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 d(){}return d.throwErrorIfInNonNodeEnvironment=function(){if(!Module)throw new Error("Cannot intercept require in non-Node environment.")},d.interceptRequire=function(){this.isRequireIntercepted||(this.isRequireIntercepted=!0,this.throwErrorIfInNonNodeEnvironment(),d.originRequire=Module.prototype.require,Module.prototype.require=function(){var b=d.originRequire.apply(this,arguments),h=b.name;return d.requiredClasses[h]||(d.requiredClasses[h]=b),b})},d.stopInterceptRequire=function(){this.throwErrorIfInNonNodeEnvironment(),Module.prototype.require=d.originRequire,this.isRequireIntercepted=!1},d.isInterceptingRequire=function(){return this.isRequireIntercepted},d.getRequiredClasses=function(){return this.requiredClasses},d.clearRequiredClasses=function(){this.requiredClasses={}},d.registerClass=function(b){this.registeredClasses.push(b)},d.registerClasses=function(b){this.registeredClasses=this.registeredClasses.concat(b)},d.clearRegisteredClasses=function(){this.registeredClasses=[]},d.serialize=function(b,h){return h===void 0&&(h={}),JSON.stringify(serializer_1.getSerializeValueWithClassName(b,h))},d.deserialize=function(b,h,m){return h===void 0&&(h=[]),m===void 0&&(m={}),deserializer_1.deserializeFromParsedObj(JSON.parse(b),Object.values(this.requiredClasses).concat(this.registeredClasses).concat(h),m)},d.originRequire=null,d.isRequireIntercepted=!1,d.requiredClasses={},d.registeredClasses=[],d}();module.exports=ESSerializer},917:function(d,b){var h=this&&this.__spreadArrays||function(){for(var At=0,Nt=0,Gt=arguments.length;Nt<Gt;Nt++)At+=arguments[Nt].length;var xe=Array(At),Ge=0;for(Nt=0;Nt<Gt;Nt++)for(var Te=arguments[Nt],ye=0,ke=Te.length;ye<ke;ye++,Ge++)xe[Ge]=Te[ye];return xe};Object.defineProperty(b,"__esModule",{value:!0}),b.TO_STRING_FIELD=b.TIMESTAMP_FIELD=b.OPTIONS_FIELD=b.CLASS_NAME_FIELD=b.BOOLEAN_FIELD=b.ARRAY_FIELD=b.BUILTIN_TYPE_UNDEFINED=b.BUILTIN_TYPE_NOT_FINITE=b.BUILTIN_TYPE_BIG_INT=b.BUILTIN_CLASS_AGGREGATE_ERROR=b.BUILTIN_CLASS_URI_ERROR=b.BUILTIN_CLASS_TYPE_ERROR=b.BUILTIN_CLASS_SYNTAX_ERROR=b.BUILTIN_CLASS_REFERENCE_ERROR=b.BUILTIN_CLASS_RANGE_ERROR=b.BUILTIN_CLASS_EVAL_ERROR=b.BUILTIN_CLASS_ERROR=b.BUILTIN_CLASS_STRING=b.BUILTIN_CLASS_SET=b.BUILTIN_CLASS_REGEXP=b.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT=b.BUILTIN_CLASS_INTL_PLURALRULES=b.BUILTIN_CLASS_INTL_NUMBERFORMAT=b.BUILTIN_CLASS_INTL_LOCALE=b.BUILTIN_CLASS_INTL_LISTFORMAT=b.BUILTIN_CLASS_INTL_DATETIMEFORMAT=b.BUILTIN_CLASS_INTL_COLLATOR=b.BUILTIN_CLASS_DATE=b.BUILTIN_CLASS_DATAVIEW=b.BUILTIN_CLASS_BOOLEAN=b.BUILTIN_CLASS_SHAREDARRAYBUFFER=b.BUILTIN_CLASS_ARRAYBUFFER=b.BUILTIN_CLASS_BIGUINT64ARRAY=b.BUILTIN_CLASS_BIGINT64ARRAY=b.BUILTIN_CLASS_FLOAT64ARRAY=b.BUILTIN_CLASS_FLOAT32ARRAY=b.BUILTIN_CLASS_UINT32ARRAY=b.BUILTIN_CLASS_INT32ARRAY=b.BUILTIN_CLASS_UINT16ARRAY=b.BUILTIN_CLASS_INT16ARRAY=b.BUILTIN_CLASS_UINT8CLAMPEDARRAY=b.BUILTIN_CLASS_UINT8ARRAY=b.BUILTIN_CLASS_INT8ARRAY=b.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED=b.ALL_BUILTIN_INTLS=b.ALL_BUILTIN_ERRORS=b.ALL_BUILTIN_ARRAYS=b.ESSERIALIZER_NULL=void 0,b.ESSERIALIZER_NULL="__ESSERIALIZER_NULL__",b.ARRAY_FIELD="ess_arr",b.BOOLEAN_FIELD="ess_bool",b.CLASS_NAME_FIELD="ess_cn",b.OPTIONS_FIELD="ess_opt",b.TIMESTAMP_FIELD="ess_ts",b.TO_STRING_FIELD="ess_str";var m="Int8Array";b.BUILTIN_CLASS_INT8ARRAY=m;var f="Uint8Array";b.BUILTIN_CLASS_UINT8ARRAY=f;var v="Uint8ClampedArray";b.BUILTIN_CLASS_UINT8CLAMPEDARRAY=v;var _="Int16Array";b.BUILTIN_CLASS_INT16ARRAY=_;var A="Uint16Array";b.BUILTIN_CLASS_UINT16ARRAY=A;var M="Int32Array";b.BUILTIN_CLASS_INT32ARRAY=M;var T="Uint32Array";b.BUILTIN_CLASS_UINT32ARRAY=T;var O="Float32Array";b.BUILTIN_CLASS_FLOAT32ARRAY=O;var B="Float64Array";b.BUILTIN_CLASS_FLOAT64ARRAY=B;var z="BigInt64Array";b.BUILTIN_CLASS_BIGINT64ARRAY=z;var q="BigUint64Array";b.BUILTIN_CLASS_BIGUINT64ARRAY=q,b.BUILTIN_CLASS_ARRAYBUFFER="ArrayBuffer",b.BUILTIN_CLASS_SHAREDARRAYBUFFER="SharedArrayBuffer",b.BUILTIN_CLASS_BOOLEAN="Boolean",b.BUILTIN_CLASS_DATAVIEW="DataView",b.BUILTIN_CLASS_DATE="Date";var J="Collator";b.BUILTIN_CLASS_INTL_COLLATOR=J;var rt="DateTimeFormat";b.BUILTIN_CLASS_INTL_DATETIMEFORMAT=rt;var ut="ListFormat";b.BUILTIN_CLASS_INTL_LISTFORMAT=ut,b.BUILTIN_CLASS_INTL_LOCALE="Locale";var Z="NumberFormat";b.BUILTIN_CLASS_INTL_NUMBERFORMAT=Z;var mt="PluralRules";b.BUILTIN_CLASS_INTL_PLURALRULES=mt;var nt="RelativeTimeFormat";b.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT=nt,b.BUILTIN_CLASS_REGEXP="RegExp",b.BUILTIN_CLASS_SET="Set";var at="String";b.BUILTIN_CLASS_STRING=at;var _t="Error";b.BUILTIN_CLASS_ERROR=_t;var jt="EvalError";b.BUILTIN_CLASS_EVAL_ERROR=jt;var St="RangeError";b.BUILTIN_CLASS_RANGE_ERROR=St;var gt="ReferenceError";b.BUILTIN_CLASS_REFERENCE_ERROR=gt;var Ct="SyntaxError";b.BUILTIN_CLASS_SYNTAX_ERROR=Ct;var vt="TypeError";b.BUILTIN_CLASS_TYPE_ERROR=vt;var ft="URIError";b.BUILTIN_CLASS_URI_ERROR=ft;var Q="AggregateError";b.BUILTIN_CLASS_AGGREGATE_ERROR=Q,b.BUILTIN_TYPE_BIG_INT="BI",b.BUILTIN_TYPE_NOT_FINITE="NF",b.BUILTIN_TYPE_UNDEFINED="UD";var ht=[m,f,v,_,A,M,T,O,B,z,q];b.ALL_BUILTIN_ARRAYS=ht;var $=[_t,jt,St,gt,Ct,vt,ft,Q];b.ALL_BUILTIN_ERRORS=$;var kt=[J,rt,ut,Z,mt,nt];b.ALL_BUILTIN_INTLS=kt;var W=h([at],ht);b.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED=W},496:function(d,b,h){var m=this&&this.__spreadArrays||function(){for(var Z=0,mt=0,nt=arguments.length;mt<nt;mt++)Z+=arguments[mt].length;var at=Array(Z),_t=0;for(mt=0;mt<nt;mt++)for(var jt=arguments[mt],St=0,gt=jt.length;St<gt;St++,_t++)at[_t]=jt[St];return at};Object.defineProperty(b,"__esModule",{value:!0}),b.getParentClassName=b.getClassMappingFromClassArray=b.deserializeFromParsedObjWithClassMapping=b.deserializeFromParsedObj=void 0;var f=h(821),v=h(917),_=/^\s*class\s+/;function A(Z,mt,nt){if(nt===void 0&&(nt={}),f.notObject(Z))return Z;if(Array.isArray(Z))return M(Z,mt);var at=Z[v.CLASS_NAME_FIELD],_t=function(St,gt,Ct){switch(St){case v.BUILTIN_CLASS_INT8ARRAY:return T(gt[v.ARRAY_FIELD],Int8Array);case v.BUILTIN_CLASS_UINT8ARRAY:return T(gt[v.ARRAY_FIELD],Uint8Array);case v.BUILTIN_CLASS_UINT8CLAMPEDARRAY:return T(gt[v.ARRAY_FIELD],Uint8ClampedArray);case v.BUILTIN_CLASS_INT16ARRAY:return T(gt[v.ARRAY_FIELD],Int16Array);case v.BUILTIN_CLASS_UINT16ARRAY:return T(gt[v.ARRAY_FIELD],Uint16Array);case v.BUILTIN_CLASS_INT32ARRAY:return T(gt[v.ARRAY_FIELD],Int32Array);case v.BUILTIN_CLASS_UINT32ARRAY:return T(gt[v.ARRAY_FIELD],Uint32Array);case v.BUILTIN_CLASS_FLOAT32ARRAY:return T(gt[v.ARRAY_FIELD],Float32Array);case v.BUILTIN_CLASS_FLOAT64ARRAY:return T(gt[v.ARRAY_FIELD],Float64Array);case v.BUILTIN_CLASS_BIGINT64ARRAY:return O(gt[v.ARRAY_FIELD],BigInt64Array);case v.BUILTIN_CLASS_BIGUINT64ARRAY:return O(gt[v.ARRAY_FIELD],BigUint64Array);case v.BUILTIN_TYPE_BIG_INT:return B(gt[v.TO_STRING_FIELD]);case v.BUILTIN_TYPE_UNDEFINED:return;case v.BUILTIN_TYPE_NOT_FINITE:return f.getValueFromToStringResult(gt[v.TO_STRING_FIELD]);case v.BUILTIN_CLASS_ARRAYBUFFER:return vt=gt[v.ARRAY_FIELD],new Uint8Array(vt).buffer;case v.BUILTIN_CLASS_SHAREDARRAYBUFFER:return function(ft){var Q=new SharedArrayBuffer(ft.length),ht=new Uint8Array(Q);return ft.forEach(function($,kt){ht[kt]=$}),Q}(gt[v.ARRAY_FIELD]);case v.BUILTIN_CLASS_BOOLEAN:return function(ft){return new Boolean(ft[v.BOOLEAN_FIELD])}(gt);case v.BUILTIN_CLASS_DATAVIEW:return function(ft){return new DataView(new Uint8Array(ft).buffer)}(gt[v.ARRAY_FIELD]);case v.BUILTIN_CLASS_DATE:return function(ft){return typeof ft[v.TIMESTAMP_FIELD]=="number"?new Date(ft[v.TIMESTAMP_FIELD]):null}(gt);case v.BUILTIN_CLASS_INTL_COLLATOR:return z(gt,Intl.Collator);case v.BUILTIN_CLASS_INTL_DATETIMEFORMAT:return z(gt,Intl.DateTimeFormat);case v.BUILTIN_CLASS_INTL_LISTFORMAT:return z(gt,Intl.ListFormat);case v.BUILTIN_CLASS_INTL_LOCALE:return new Intl.Locale(gt[v.TO_STRING_FIELD]);case v.BUILTIN_CLASS_INTL_NUMBERFORMAT:return z(gt,Intl.NumberFormat);case v.BUILTIN_CLASS_INTL_PLURALRULES:return z(gt,Intl.PluralRules);case v.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT:return z(gt,Intl.RelativeTimeFormat);case v.BUILTIN_CLASS_REGEXP:return function(ft){var Q=ft[v.TO_STRING_FIELD],ht=Q.lastIndexOf("/");return new RegExp(Q.substring(1,ht),Q.substring(ht+1))}(gt);case v.BUILTIN_CLASS_SET:return function(ft,Q){return new Set(M(ft[v.ARRAY_FIELD],Q))}(gt,Ct);case v.BUILTIN_CLASS_STRING:return function(ft){return new String(ft[v.TO_STRING_FIELD])}(gt);case v.BUILTIN_CLASS_ERROR:return q(gt,Error);case v.BUILTIN_CLASS_EVAL_ERROR:return q(gt,EvalError);case v.BUILTIN_CLASS_RANGE_ERROR:return q(gt,RangeError);case v.BUILTIN_CLASS_REFERENCE_ERROR:return q(gt,ReferenceError);case v.BUILTIN_CLASS_SYNTAX_ERROR:return q(gt,SyntaxError);case v.BUILTIN_CLASS_TYPE_ERROR:return q(gt,TypeError);case v.BUILTIN_CLASS_URI_ERROR:return q(gt,URIError);case v.BUILTIN_CLASS_AGGREGATE_ERROR:return q(gt,AggregateError);default:return v.ESSERIALIZER_NULL}var vt}(at,Z,mt);if(_t!==v.ESSERIALIZER_NULL)return _t;if(at&&!mt[at])throw new Error("Class "+at+" not found");var jt=[];return nt.fieldsForConstructorParameters&&(jt=nt.fieldsForConstructorParameters.map(function(St){return St in Z?Z[St]:{}})),function(St,gt,Ct,vt){for(var ft in gt){var Q=gt[ft];if(!vt.ignoreProperties||!vt.ignoreProperties.includes(ft))if(vt.rawProperties&&vt.rawProperties.includes(ft))St[ft]=JSON.stringify(Q);else{var ht=Object.getOwnPropertyDescriptor(St,ft);$=Q,kt=ht,ft===v.CLASS_NAME_FIELD||kt&&(typeof kt.set=="function"||kt.writable===!1&&typeof $!="object")||(ht&&ht.writable===!1&&typeof Q=="object"?rt(St[ft],Q,Ct):St[ft]=A(Q,Ct))}}var $,kt;return St}(function(St,gt){var Ct={};if(!St)return Ct;var vt=St.length-gt.length;if(vt>0&&(gt=gt.concat(Array.from(Array(vt),function(){return{}}))),_.test(St.toString()))try{Ct=new(St.bind.apply(St,m([void 0],gt)))}catch{J(St.name),Ct={},Object.setPrototypeOf(Ct,St?St.prototype:Object.prototype)}else{Ct=Object.create(St.prototype.constructor.prototype);try{St.prototype.constructor.call(Ct,gt)}catch{J(St.name)}}return Ct}(mt[at],jt),Z,mt,nt)}function M(Z,mt){return Z.map(function(nt){return A(nt,mt)})}function T(Z,mt){return new mt(Z)}function O(Z,mt){return new mt(Z.map(function(nt){return B(nt[v.TO_STRING_FIELD])}))}function B(Z){return BigInt(Z)}function z(Z,mt){var nt=Z[v.OPTIONS_FIELD],at=nt.locale;return delete nt.locale,new mt(at,nt)}function q(Z,mt){var nt;return delete(nt=Z.message?new mt(Z.message):new mt).stack,Z.name&&(nt.name=Z.name),Z.stack&&(nt.stack=Z.stack),mt===AggregateError&&(nt.errors=A(Z.errors,{})),nt}function J(Z){console.warn("Incorrect parameter type passed to constructor: "+Z)}function rt(Z,mt,nt){for(var at in mt){var _t=Object.getOwnPropertyDescriptor(Z,at);_t&&_t.writable!==!0&&typeof _t.set!="function"||(Z[at]=A(mt[at],nt))}}function ut(Z){Z===void 0&&(Z=[]);var mt={};return Z.forEach(function(nt){if(f.isClass(nt)){var at=nt.name,_t=mt[at];_t&&_t!==nt&&console.warn("WARNING: Found class definition with the same name: "+at),mt[at]=nt}}),mt}b.deserializeFromParsedObj=function(Z,mt,nt){return A(Z,ut(mt),nt)},b.deserializeFromParsedObjWithClassMapping=A,b.getClassMappingFromClassArray=ut,b.getParentClassName=function(Z){return Z.prototype.__proto__.constructor.name}},821:(d,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isClass=b.notObject=b.getValueFromToStringResult=void 0,b.notObject=function(h){return h===null||typeof h!="object"},b.getValueFromToStringResult=function(h){switch(h){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN;default:return null}},b.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:(d,b,h)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.getSerializeValueWithClassName=void 0;var m=h(917),f=h(821);function v(A,M){M===void 0&&(M={});var T=function(q){var J,rt,ut;return q===void 0?((J={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_UNDEFINED,J):typeof q!="number"||isFinite(q)?typeof q=="bigint"?((ut={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_BIG_INT,ut[m.TO_STRING_FIELD]=q.toString(),ut):f.notObject(q)?q:m.ESSERIALIZER_NULL:((rt={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_NOT_FINITE,rt[m.TO_STRING_FIELD]=q.toString(),rt)}(A);if(T!==m.ESSERIALIZER_NULL)return T;if(Array.isArray(A))return _(A);var O={};if(!function(q){var J=q.__proto__.constructor.name;return m.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED.includes(J)}(A)){if(M.ignoreProperties&&M.ignoreProperties.forEach(function(q){delete A[q]}),M.interceptProperties)for(var B in M.interceptProperties)A[B]=M.interceptProperties[B].call(A,A[B]);for(var z in A)O[z]=v(A[z])}return function(q,J){var rt=q.__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(q))):rt===m.BUILTIN_CLASS_BOOLEAN?J[m.BOOLEAN_FIELD]=q.valueOf():rt===m.BUILTIN_CLASS_DATAVIEW?J[m.ARRAY_FIELD]=_(Array.from(new Uint8Array(q.buffer))):rt===m.BUILTIN_CLASS_DATE?J[m.TIMESTAMP_FIELD]=q.getTime():rt===m.BUILTIN_CLASS_INTL_LOCALE||rt===m.BUILTIN_CLASS_REGEXP?J[m.TO_STRING_FIELD]=q.toString():rt===m.BUILTIN_CLASS_SET?J[m.ARRAY_FIELD]=_(Array.from(q)):rt===m.BUILTIN_CLASS_STRING?J[m.TO_STRING_FIELD]=q.toString():m.ALL_BUILTIN_ARRAYS.includes(rt)?J[m.ARRAY_FIELD]=_(Array.from(q)):m.ALL_BUILTIN_ERRORS.includes(rt)?function(ut,Z,mt){ut.name!=="Error"&&(Z.name=ut.name),ut.message&&(Z.message=ut.message),ut.stack&&(Z.stack=ut.stack),mt===m.BUILTIN_CLASS_AGGREGATE_ERROR&&(Z.errors=v(ut.errors))}(q,J,rt):m.ALL_BUILTIN_INTLS.includes(rt)&&(J[m.OPTIONS_FIELD]=q.resolvedOptions())),J}(A,O)}function _(A){return A.map(function(M){return v(M)})}b.getSerializeValueWithClassName=v}},__webpack_module_cache__={};function __webpack_require__(d){if(__webpack_module_cache__[d])return __webpack_module_cache__[d].exports;var b=__webpack_module_cache__[d]={exports:{}};return __webpack_modules__[d].call(b.exports,b,b.exports,__webpack_require__),b.exports}return __webpack_require__(607)})())})(bundle);const ESSerializer=getDefaultExportFromCjs(bundle),alreadyWarnFor=[],warnStorageNotFound=d=>{var h;const b=typeof process<"u"&&((h=process.env)==null?void 0:h.NODE_ENV)==="production";if(alreadyWarnFor.indexOf(d)===-1&&!b){let m=`Unable to find the ${d}. 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(d)}},allowedClasses=[],serialize=d=>ESSerializer.serialize(d),deserialize=d=>{if(d!=="undefined"){if(d!=null){try{return ESSerializer.deserialize(d,allowedClasses)}catch{}try{return JSON.parse(d)}catch{}}return d}};function persist(d,b,h){const m=b.getValue(h);return m!==null&&d.set(m),b.addListener&&b.addListener(h,f=>{d.set(f)}),d.subscribe(f=>{b.setValue(h,f)}),{...d,delete(){b.deleteValue(h)}}}function getBrowserStorage(d,b=!1){const h=[],m=_=>{const A=_.key;_.storageArea===d&&h.filter(({key:M})=>M===A).forEach(({listener:M})=>{M(deserialize(_.newValue))})},f=()=>{b&&typeof window<"u"&&(window==null?void 0:window.addEventListener)&&window.addEventListener("storage",m)},v=()=>{b&&typeof window<"u"&&(window==null?void 0:window.removeEventListener)&&window.removeEventListener("storage",m)};return{addListener(_,A){h.push({key:_,listener:A}),h.length===1&&f()},removeListener(_,A){const M=h.indexOf({key:_,listener:A});M!==-1&&h.splice(M,1),h.length===0&&v()},getValue(_){const A=d.getItem(_);return deserialize(A)},deleteValue(_){d.removeItem(_)},setValue(_,A){d.setItem(_,serialize(A))}}}function localStorage(d=!1){return typeof window<"u"&&(window==null?void 0:window.localStorage)?getBrowserStorage(window.localStorage,d):(warnStorageNotFound("window.localStorage"),noopStorage())}function noopStorage(){return{getValue(){return null},deleteValue(){},setValue(){}}}let analytics;const initAnalytics=async()=>{if(!analytics)try{const[{Analytics:d},{default:b}]=await Promise.all([__vitePreload(()=>import("./analytics.browser.es-80770405.js"),[],import.meta.url),__vitePreload(()=>import("./plausible-3429abab.js").then(h=>h.p),[],import.meta.url)]);analytics=d({app:"mermaid-live-editor",plugins:[b({domain:"mermaid.live",hashMode:!1,trackLocalhost:!1,apiHost:"https://plausible.io"})]})}catch(d){console.log(d),console.info("Analytics blocked ;)")}},detectType=d=>{const b=["classDiagram","erDiagram","flowChart","gantt","gitGraph","graph","journey","pie","stateDiagram"],h=d.replace(/^\s*%%.*\n/g,`
|
|
`).trimStart().split(" ")[0].toLowerCase();return b.find(f=>h.includes(f.toLowerCase()))},countLines=d=>(d.match(/\n/g)||"").length+1,saveStatistics=d=>{const b=detectType(d);if(!b)return;const h=countLines(d);logEvent("render",{graphType:b,length:h})},minutesToMilliSeconds=d=>d*6e4,defaultDelay=minutesToMilliSeconds(1),delaysPerEvent={render:minutesToMilliSeconds(5),panZoom:minutesToMilliSeconds(10),copyClipboard:defaultDelay,download:defaultDelay,copyMarkdown:defaultDelay,loadGist:defaultDelay,loadSampleDiagram:defaultDelay,renderDiagram:defaultDelay,history:defaultDelay,migration:defaultDelay,themeChange:defaultDelay},timeouts={},logEvent=(d,b)=>{if(!analytics)return;const h=b?JSON.stringify({name:d,data:b}):d;timeouts[h]===void 0?analytics.track(d,b):clearTimeout(timeouts[h]),timeouts[h]=window.setTimeout(()=>{delete timeouts[h]},delaysPerEvent[d])};/*! 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(d){let b=d.length;for(;--b>=0;)d[b]=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(d,b,h,m,f){this.static_tree=d,this.extra_bits=b,this.extra_base=h,this.elems=m,this.max_length=f,this.has_stree=d&&d.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(d,b){this.dyn_tree=d,this.max_code=0,this.stat_desc=b}const d_code=d=>d<256?_dist_code[d]:_dist_code[256+(d>>>7)],put_short=(d,b)=>{d.pending_buf[d.pending++]=b&255,d.pending_buf[d.pending++]=b>>>8&255},send_bits=(d,b,h)=>{d.bi_valid>Buf_size-h?(d.bi_buf|=b<<d.bi_valid&65535,put_short(d,d.bi_buf),d.bi_buf=b>>Buf_size-d.bi_valid,d.bi_valid+=h-Buf_size):(d.bi_buf|=b<<d.bi_valid&65535,d.bi_valid+=h)},send_code=(d,b,h)=>{send_bits(d,h[b*2],h[b*2+1])},bi_reverse=(d,b)=>{let h=0;do h|=d&1,d>>>=1,h<<=1;while(--b>0);return h>>>1},bi_flush=d=>{d.bi_valid===16?(put_short(d,d.bi_buf),d.bi_buf=0,d.bi_valid=0):d.bi_valid>=8&&(d.pending_buf[d.pending++]=d.bi_buf&255,d.bi_buf>>=8,d.bi_valid-=8)},gen_bitlen=(d,b)=>{const h=b.dyn_tree,m=b.max_code,f=b.stat_desc.static_tree,v=b.stat_desc.has_stree,_=b.stat_desc.extra_bits,A=b.stat_desc.extra_base,M=b.stat_desc.max_length;let T,O,B,z,q,J,rt=0;for(z=0;z<=MAX_BITS$1;z++)d.bl_count[z]=0;for(h[d.heap[d.heap_max]*2+1]=0,T=d.heap_max+1;T<HEAP_SIZE$1;T++)O=d.heap[T],z=h[h[O*2+1]*2+1]+1,z>M&&(z=M,rt++),h[O*2+1]=z,!(O>m)&&(d.bl_count[z]++,q=0,O>=A&&(q=_[O-A]),J=h[O*2],d.opt_len+=J*(z+q),v&&(d.static_len+=J*(f[O*2+1]+q)));if(rt!==0){do{for(z=M-1;d.bl_count[z]===0;)z--;d.bl_count[z]--,d.bl_count[z+1]+=2,d.bl_count[M]--,rt-=2}while(rt>0);for(z=M;z!==0;z--)for(O=d.bl_count[z];O!==0;)B=d.heap[--T],!(B>m)&&(h[B*2+1]!==z&&(d.opt_len+=(z-h[B*2+1])*h[B*2],h[B*2+1]=z),O--)}},gen_codes=(d,b,h)=>{const m=new Array(MAX_BITS$1+1);let f=0,v,_;for(v=1;v<=MAX_BITS$1;v++)m[v]=f=f+h[v-1]<<1;for(_=0;_<=b;_++){let A=d[_*2+1];A!==0&&(d[_*2]=bi_reverse(m[A]++,A))}},tr_static_init=()=>{let d,b,h,m,f;const v=new Array(MAX_BITS$1+1);for(h=0,m=0;m<LENGTH_CODES$1-1;m++)for(base_length[m]=h,d=0;d<1<<extra_lbits[m];d++)_length_code[h++]=m;for(_length_code[h-1]=m,f=0,m=0;m<16;m++)for(base_dist[m]=f,d=0;d<1<<extra_dbits[m];d++)_dist_code[f++]=m;for(f>>=7;m<D_CODES$1;m++)for(base_dist[m]=f<<7,d=0;d<1<<extra_dbits[m]-7;d++)_dist_code[256+f++]=m;for(b=0;b<=MAX_BITS$1;b++)v[b]=0;for(d=0;d<=143;)static_ltree[d*2+1]=8,d++,v[8]++;for(;d<=255;)static_ltree[d*2+1]=9,d++,v[9]++;for(;d<=279;)static_ltree[d*2+1]=7,d++,v[7]++;for(;d<=287;)static_ltree[d*2+1]=8,d++,v[8]++;for(gen_codes(static_ltree,L_CODES$1+1,v),d=0;d<D_CODES$1;d++)static_dtree[d*2+1]=5,static_dtree[d*2]=bi_reverse(d,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=d=>{let b;for(b=0;b<L_CODES$1;b++)d.dyn_ltree[b*2]=0;for(b=0;b<D_CODES$1;b++)d.dyn_dtree[b*2]=0;for(b=0;b<BL_CODES$1;b++)d.bl_tree[b*2]=0;d.dyn_ltree[END_BLOCK*2]=1,d.opt_len=d.static_len=0,d.last_lit=d.matches=0},bi_windup=d=>{d.bi_valid>8?put_short(d,d.bi_buf):d.bi_valid>0&&(d.pending_buf[d.pending++]=d.bi_buf),d.bi_buf=0,d.bi_valid=0},copy_block=(d,b,h,m)=>{bi_windup(d),m&&(put_short(d,h),put_short(d,~h)),d.pending_buf.set(d.window.subarray(b,b+h),d.pending),d.pending+=h},smaller=(d,b,h,m)=>{const f=b*2,v=h*2;return d[f]<d[v]||d[f]===d[v]&&m[b]<=m[h]},pqdownheap=(d,b,h)=>{const m=d.heap[h];let f=h<<1;for(;f<=d.heap_len&&(f<d.heap_len&&smaller(b,d.heap[f+1],d.heap[f],d.depth)&&f++,!smaller(b,m,d.heap[f],d.depth));)d.heap[h]=d.heap[f],h=f,f<<=1;d.heap[h]=m},compress_block=(d,b,h)=>{let m,f,v=0,_,A;if(d.last_lit!==0)do m=d.pending_buf[d.d_buf+v*2]<<8|d.pending_buf[d.d_buf+v*2+1],f=d.pending_buf[d.l_buf+v],v++,m===0?send_code(d,f,b):(_=_length_code[f],send_code(d,_+LITERALS$1+1,b),A=extra_lbits[_],A!==0&&(f-=base_length[_],send_bits(d,f,A)),m--,_=d_code(m),send_code(d,_,h),A=extra_dbits[_],A!==0&&(m-=base_dist[_],send_bits(d,m,A)));while(v<d.last_lit);send_code(d,END_BLOCK,b)},build_tree=(d,b)=>{const h=b.dyn_tree,m=b.stat_desc.static_tree,f=b.stat_desc.has_stree,v=b.stat_desc.elems;let _,A,M=-1,T;for(d.heap_len=0,d.heap_max=HEAP_SIZE$1,_=0;_<v;_++)h[_*2]!==0?(d.heap[++d.heap_len]=M=_,d.depth[_]=0):h[_*2+1]=0;for(;d.heap_len<2;)T=d.heap[++d.heap_len]=M<2?++M:0,h[T*2]=1,d.depth[T]=0,d.opt_len--,f&&(d.static_len-=m[T*2+1]);for(b.max_code=M,_=d.heap_len>>1;_>=1;_--)pqdownheap(d,h,_);T=v;do _=d.heap[1],d.heap[1]=d.heap[d.heap_len--],pqdownheap(d,h,1),A=d.heap[1],d.heap[--d.heap_max]=_,d.heap[--d.heap_max]=A,h[T*2]=h[_*2]+h[A*2],d.depth[T]=(d.depth[_]>=d.depth[A]?d.depth[_]:d.depth[A])+1,h[_*2+1]=h[A*2+1]=T,d.heap[1]=T++,pqdownheap(d,h,1);while(d.heap_len>=2);d.heap[--d.heap_max]=d.heap[1],gen_bitlen(d,b),gen_codes(h,M,d.bl_count)},scan_tree=(d,b,h)=>{let m,f=-1,v,_=b[0*2+1],A=0,M=7,T=4;for(_===0&&(M=138,T=3),b[(h+1)*2+1]=65535,m=0;m<=h;m++)v=_,_=b[(m+1)*2+1],!(++A<M&&v===_)&&(A<T?d.bl_tree[v*2]+=A:v!==0?(v!==f&&d.bl_tree[v*2]++,d.bl_tree[REP_3_6*2]++):A<=10?d.bl_tree[REPZ_3_10*2]++:d.bl_tree[REPZ_11_138*2]++,A=0,f=v,_===0?(M=138,T=3):v===_?(M=6,T=3):(M=7,T=4))},send_tree=(d,b,h)=>{let m,f=-1,v,_=b[0*2+1],A=0,M=7,T=4;for(_===0&&(M=138,T=3),m=0;m<=h;m++)if(v=_,_=b[(m+1)*2+1],!(++A<M&&v===_)){if(A<T)do send_code(d,v,d.bl_tree);while(--A!==0);else v!==0?(v!==f&&(send_code(d,v,d.bl_tree),A--),send_code(d,REP_3_6,d.bl_tree),send_bits(d,A-3,2)):A<=10?(send_code(d,REPZ_3_10,d.bl_tree),send_bits(d,A-3,3)):(send_code(d,REPZ_11_138,d.bl_tree),send_bits(d,A-11,7));A=0,f=v,_===0?(M=138,T=3):v===_?(M=6,T=3):(M=7,T=4)}},build_bl_tree=d=>{let b;for(scan_tree(d,d.dyn_ltree,d.l_desc.max_code),scan_tree(d,d.dyn_dtree,d.d_desc.max_code),build_tree(d,d.bl_desc),b=BL_CODES$1-1;b>=3&&d.bl_tree[bl_order[b]*2+1]===0;b--);return d.opt_len+=3*(b+1)+5+5+4,b},send_all_trees=(d,b,h,m)=>{let f;for(send_bits(d,b-257,5),send_bits(d,h-1,5),send_bits(d,m-4,4),f=0;f<m;f++)send_bits(d,d.bl_tree[bl_order[f]*2+1],3);send_tree(d,d.dyn_ltree,b-1),send_tree(d,d.dyn_dtree,h-1)},detect_data_type=d=>{let b=4093624447,h;for(h=0;h<=31;h++,b>>>=1)if(b&1&&d.dyn_ltree[h*2]!==0)return Z_BINARY;if(d.dyn_ltree[9*2]!==0||d.dyn_ltree[10*2]!==0||d.dyn_ltree[13*2]!==0)return Z_TEXT;for(h=32;h<LITERALS$1;h++)if(d.dyn_ltree[h*2]!==0)return Z_TEXT;return Z_BINARY};let static_init_done=!1;const _tr_init$1=d=>{static_init_done||(tr_static_init(),static_init_done=!0),d.l_desc=new TreeDesc(d.dyn_ltree,static_l_desc),d.d_desc=new TreeDesc(d.dyn_dtree,static_d_desc),d.bl_desc=new TreeDesc(d.bl_tree,static_bl_desc),d.bi_buf=0,d.bi_valid=0,init_block(d)},_tr_stored_block$1=(d,b,h,m)=>{send_bits(d,(STORED_BLOCK<<1)+(m?1:0),3),copy_block(d,b,h,!0)},_tr_align$1=d=>{send_bits(d,STATIC_TREES<<1,3),send_code(d,END_BLOCK,static_ltree),bi_flush(d)},_tr_flush_block$1=(d,b,h,m)=>{let f,v,_=0;d.level>0?(d.strm.data_type===Z_UNKNOWN$1&&(d.strm.data_type=detect_data_type(d)),build_tree(d,d.l_desc),build_tree(d,d.d_desc),_=build_bl_tree(d),f=d.opt_len+3+7>>>3,v=d.static_len+3+7>>>3,v<=f&&(f=v)):f=v=h+5,h+4<=f&&b!==-1?_tr_stored_block$1(d,b,h,m):d.strategy===Z_FIXED$1||v===f?(send_bits(d,(STATIC_TREES<<1)+(m?1:0),3),compress_block(d,static_ltree,static_dtree)):(send_bits(d,(DYN_TREES<<1)+(m?1:0),3),send_all_trees(d,d.l_desc.max_code+1,d.d_desc.max_code+1,_+1),compress_block(d,d.dyn_ltree,d.dyn_dtree)),init_block(d),m&&bi_windup(d)},_tr_tally$1=(d,b,h)=>(d.pending_buf[d.d_buf+d.last_lit*2]=b>>>8&255,d.pending_buf[d.d_buf+d.last_lit*2+1]=b&255,d.pending_buf[d.l_buf+d.last_lit]=h&255,d.last_lit++,b===0?d.dyn_ltree[h*2]++:(d.matches++,b--,d.dyn_ltree[(_length_code[h]+LITERALS$1+1)*2]++,d.dyn_dtree[d_code(b)*2]++),d.last_lit===d.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=(d,b,h,m)=>{let f=d&65535|0,v=d>>>16&65535|0,_=0;for(;h!==0;){_=h>2e3?2e3:h,h-=_;do f=f+b[m++]|0,v=v+f|0;while(--_);f%=65521,v%=65521}return f|v<<16|0};var adler32_1=adler32;const makeTable=()=>{let d,b=[];for(var h=0;h<256;h++){d=h;for(var m=0;m<8;m++)d=d&1?3988292384^d>>>1:d>>>1;b[h]=d}return b},crcTable=new Uint32Array(makeTable()),crc32=(d,b,h,m)=>{const f=crcTable,v=m+h;d^=-1;for(let _=m;_<v;_++)d=d>>>8^f[(d^b[_])&255];return d^-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=(d,b)=>(d.msg=messages[b],b),rank=d=>(d<<1)-(d>4?9:0),zero=d=>{let b=d.length;for(;--b>=0;)d[b]=0};let HASH_ZLIB=(d,b,h)=>(b<<d.hash_shift^h)&d.hash_mask,HASH=HASH_ZLIB;const flush_pending=d=>{const b=d.state;let h=b.pending;h>d.avail_out&&(h=d.avail_out),h!==0&&(d.output.set(b.pending_buf.subarray(b.pending_out,b.pending_out+h),d.next_out),d.next_out+=h,b.pending_out+=h,d.total_out+=h,d.avail_out-=h,b.pending-=h,b.pending===0&&(b.pending_out=0))},flush_block_only=(d,b)=>{_tr_flush_block(d,d.block_start>=0?d.block_start:-1,d.strstart-d.block_start,b),d.block_start=d.strstart,flush_pending(d.strm)},put_byte=(d,b)=>{d.pending_buf[d.pending++]=b},putShortMSB=(d,b)=>{d.pending_buf[d.pending++]=b>>>8&255,d.pending_buf[d.pending++]=b&255},read_buf=(d,b,h,m)=>{let f=d.avail_in;return f>m&&(f=m),f===0?0:(d.avail_in-=f,b.set(d.input.subarray(d.next_in,d.next_in+f),h),d.state.wrap===1?d.adler=adler32_1(d.adler,b,f,h):d.state.wrap===2&&(d.adler=crc32_1(d.adler,b,f,h)),d.next_in+=f,d.total_in+=f,f)},longest_match=(d,b)=>{let h=d.max_chain_length,m=d.strstart,f,v,_=d.prev_length,A=d.nice_match;const M=d.strstart>d.w_size-MIN_LOOKAHEAD?d.strstart-(d.w_size-MIN_LOOKAHEAD):0,T=d.window,O=d.w_mask,B=d.prev,z=d.strstart+MAX_MATCH;let q=T[m+_-1],J=T[m+_];d.prev_length>=d.good_match&&(h>>=2),A>d.lookahead&&(A=d.lookahead);do if(f=b,!(T[f+_]!==J||T[f+_-1]!==q||T[f]!==T[m]||T[++f]!==T[m+1])){m+=2,f++;do;while(T[++m]===T[++f]&&T[++m]===T[++f]&&T[++m]===T[++f]&&T[++m]===T[++f]&&T[++m]===T[++f]&&T[++m]===T[++f]&&T[++m]===T[++f]&&T[++m]===T[++f]&&m<z);if(v=MAX_MATCH-(z-m),m=z-MAX_MATCH,v>_){if(d.match_start=b,_=v,v>=A)break;q=T[m+_-1],J=T[m+_]}}while((b=B[b&O])>M&&--h!==0);return _<=d.lookahead?_:d.lookahead},fill_window=d=>{const b=d.w_size;let h,m,f,v,_;do{if(v=d.window_size-d.lookahead-d.strstart,d.strstart>=b+(b-MIN_LOOKAHEAD)){d.window.set(d.window.subarray(b,b+b),0),d.match_start-=b,d.strstart-=b,d.block_start-=b,m=d.hash_size,h=m;do f=d.head[--h],d.head[h]=f>=b?f-b:0;while(--m);m=b,h=m;do f=d.prev[--h],d.prev[h]=f>=b?f-b:0;while(--m);v+=b}if(d.strm.avail_in===0)break;if(m=read_buf(d.strm,d.window,d.strstart+d.lookahead,v),d.lookahead+=m,d.lookahead+d.insert>=MIN_MATCH)for(_=d.strstart-d.insert,d.ins_h=d.window[_],d.ins_h=HASH(d,d.ins_h,d.window[_+1]);d.insert&&(d.ins_h=HASH(d,d.ins_h,d.window[_+MIN_MATCH-1]),d.prev[_&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=_,_++,d.insert--,!(d.lookahead+d.insert<MIN_MATCH)););}while(d.lookahead<MIN_LOOKAHEAD&&d.strm.avail_in!==0)},deflate_stored=(d,b)=>{let h=65535;for(h>d.pending_buf_size-5&&(h=d.pending_buf_size-5);;){if(d.lookahead<=1){if(fill_window(d),d.lookahead===0&&b===Z_NO_FLUSH$2)return BS_NEED_MORE;if(d.lookahead===0)break}d.strstart+=d.lookahead,d.lookahead=0;const m=d.block_start+h;if((d.strstart===0||d.strstart>=m)&&(d.lookahead=d.strstart-m,d.strstart=m,flush_block_only(d,!1),d.strm.avail_out===0)||d.strstart-d.block_start>=d.w_size-MIN_LOOKAHEAD&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=0,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):(d.strstart>d.block_start&&(flush_block_only(d,!1),d.strm.avail_out===0),BS_NEED_MORE)},deflate_fast=(d,b)=>{let h,m;for(;;){if(d.lookahead<MIN_LOOKAHEAD){if(fill_window(d),d.lookahead<MIN_LOOKAHEAD&&b===Z_NO_FLUSH$2)return BS_NEED_MORE;if(d.lookahead===0)break}if(h=0,d.lookahead>=MIN_MATCH&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),h=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),h!==0&&d.strstart-h<=d.w_size-MIN_LOOKAHEAD&&(d.match_length=longest_match(d,h)),d.match_length>=MIN_MATCH)if(m=_tr_tally(d,d.strstart-d.match_start,d.match_length-MIN_MATCH),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=MIN_MATCH){d.match_length--;do d.strstart++,d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),h=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart;while(--d.match_length!==0);d.strstart++}else d.strstart+=d.match_length,d.match_length=0,d.ins_h=d.window[d.strstart],d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+1]);else m=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(m&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=d.strstart<MIN_MATCH-1?d.strstart:MIN_MATCH-1,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.last_lit&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_slow=(d,b)=>{let h,m,f;for(;;){if(d.lookahead<MIN_LOOKAHEAD){if(fill_window(d),d.lookahead<MIN_LOOKAHEAD&&b===Z_NO_FLUSH$2)return BS_NEED_MORE;if(d.lookahead===0)break}if(h=0,d.lookahead>=MIN_MATCH&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),h=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),d.prev_length=d.match_length,d.prev_match=d.match_start,d.match_length=MIN_MATCH-1,h!==0&&d.prev_length<d.max_lazy_match&&d.strstart-h<=d.w_size-MIN_LOOKAHEAD&&(d.match_length=longest_match(d,h),d.match_length<=5&&(d.strategy===Z_FILTERED||d.match_length===MIN_MATCH&&d.strstart-d.match_start>4096)&&(d.match_length=MIN_MATCH-1)),d.prev_length>=MIN_MATCH&&d.match_length<=d.prev_length){f=d.strstart+d.lookahead-MIN_MATCH,m=_tr_tally(d,d.strstart-1-d.prev_match,d.prev_length-MIN_MATCH),d.lookahead-=d.prev_length-1,d.prev_length-=2;do++d.strstart<=f&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),h=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart);while(--d.prev_length!==0);if(d.match_available=0,d.match_length=MIN_MATCH-1,d.strstart++,m&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}else if(d.match_available){if(m=_tr_tally(d,0,d.window[d.strstart-1]),m&&flush_block_only(d,!1),d.strstart++,d.lookahead--,d.strm.avail_out===0)return BS_NEED_MORE}else d.match_available=1,d.strstart++,d.lookahead--}return d.match_available&&(m=_tr_tally(d,0,d.window[d.strstart-1]),d.match_available=0),d.insert=d.strstart<MIN_MATCH-1?d.strstart:MIN_MATCH-1,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.last_lit&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_rle=(d,b)=>{let h,m,f,v;const _=d.window;for(;;){if(d.lookahead<=MAX_MATCH){if(fill_window(d),d.lookahead<=MAX_MATCH&&b===Z_NO_FLUSH$2)return BS_NEED_MORE;if(d.lookahead===0)break}if(d.match_length=0,d.lookahead>=MIN_MATCH&&d.strstart>0&&(f=d.strstart-1,m=_[f],m===_[++f]&&m===_[++f]&&m===_[++f])){v=d.strstart+MAX_MATCH;do;while(m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&f<v);d.match_length=MAX_MATCH-(v-f),d.match_length>d.lookahead&&(d.match_length=d.lookahead)}if(d.match_length>=MIN_MATCH?(h=_tr_tally(d,1,d.match_length-MIN_MATCH),d.lookahead-=d.match_length,d.strstart+=d.match_length,d.match_length=0):(h=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++),h&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=0,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.last_lit&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(d,b)=>{let h;for(;;){if(d.lookahead===0&&(fill_window(d),d.lookahead===0)){if(b===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(d.match_length=0,h=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++,h&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=0,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.last_lit&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(d,b,h,m,f){this.good_length=d,this.max_lazy=b,this.nice_length=h,this.max_chain=m,this.func=f}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=d=>{d.window_size=2*d.w_size,zero(d.head),d.max_lazy_match=configuration_table[d.level].max_lazy,d.good_match=configuration_table[d.level].good_length,d.nice_match=configuration_table[d.level].nice_length,d.max_chain_length=configuration_table[d.level].max_chain,d.strstart=0,d.block_start=0,d.lookahead=0,d.insert=0,d.match_length=d.prev_length=MIN_MATCH-1,d.match_available=0,d.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=d=>{if(!d||!d.state)return err(d,Z_STREAM_ERROR$2);d.total_in=d.total_out=0,d.data_type=Z_UNKNOWN;const b=d.state;return b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?INIT_STATE:BUSY_STATE,d.adler=b.wrap===2?0:1,b.last_flush=Z_NO_FLUSH$2,_tr_init(b),Z_OK$3},deflateReset=d=>{const b=deflateResetKeep(d);return b===Z_OK$3&&lm_init(d.state),b},deflateSetHeader=(d,b)=>!d||!d.state||d.state.wrap!==2?Z_STREAM_ERROR$2:(d.state.gzhead=b,Z_OK$3),deflateInit2=(d,b,h,m,f,v)=>{if(!d)return Z_STREAM_ERROR$2;let _=1;if(b===Z_DEFAULT_COMPRESSION$1&&(b=6),m<0?(_=0,m=-m):m>15&&(_=2,m-=16),f<1||f>MAX_MEM_LEVEL||h!==Z_DEFLATED$2||m<8||m>15||b<0||b>9||v<0||v>Z_FIXED)return err(d,Z_STREAM_ERROR$2);m===8&&(m=9);const A=new DeflateState;return d.state=A,A.strm=d,A.wrap=_,A.gzhead=null,A.w_bits=m,A.w_size=1<<A.w_bits,A.w_mask=A.w_size-1,A.hash_bits=f+7,A.hash_size=1<<A.hash_bits,A.hash_mask=A.hash_size-1,A.hash_shift=~~((A.hash_bits+MIN_MATCH-1)/MIN_MATCH),A.window=new Uint8Array(A.w_size*2),A.head=new Uint16Array(A.hash_size),A.prev=new Uint16Array(A.w_size),A.lit_bufsize=1<<f+6,A.pending_buf_size=A.lit_bufsize*4,A.pending_buf=new Uint8Array(A.pending_buf_size),A.d_buf=1*A.lit_bufsize,A.l_buf=(1+2)*A.lit_bufsize,A.level=b,A.strategy=v,A.method=h,deflateReset(d)},deflateInit=(d,b)=>deflateInit2(d,b,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(d,b)=>{let h,m;if(!d||!d.state||b>Z_BLOCK$1||b<0)return d?err(d,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const f=d.state;if(!d.output||!d.input&&d.avail_in!==0||f.status===FINISH_STATE&&b!==Z_FINISH$3)return err(d,d.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);f.strm=d;const v=f.last_flush;if(f.last_flush=b,f.status===INIT_STATE)if(f.wrap===2)d.adler=0,put_byte(f,31),put_byte(f,139),put_byte(f,8),f.gzhead?(put_byte(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),put_byte(f,f.gzhead.time&255),put_byte(f,f.gzhead.time>>8&255),put_byte(f,f.gzhead.time>>16&255),put_byte(f,f.gzhead.time>>24&255),put_byte(f,f.level===9?2:f.strategy>=Z_HUFFMAN_ONLY||f.level<2?4:0),put_byte(f,f.gzhead.os&255),f.gzhead.extra&&f.gzhead.extra.length&&(put_byte(f,f.gzhead.extra.length&255),put_byte(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=EXTRA_STATE):(put_byte(f,0),put_byte(f,0),put_byte(f,0),put_byte(f,0),put_byte(f,0),put_byte(f,f.level===9?2:f.strategy>=Z_HUFFMAN_ONLY||f.level<2?4:0),put_byte(f,OS_CODE),f.status=BUSY_STATE);else{let _=Z_DEFLATED$2+(f.w_bits-8<<4)<<8,A=-1;f.strategy>=Z_HUFFMAN_ONLY||f.level<2?A=0:f.level<6?A=1:f.level===6?A=2:A=3,_|=A<<6,f.strstart!==0&&(_|=PRESET_DICT),_+=31-_%31,f.status=BUSY_STATE,putShortMSB(f,_),f.strstart!==0&&(putShortMSB(f,d.adler>>>16),putShortMSB(f,d.adler&65535)),d.adler=1}if(f.status===EXTRA_STATE)if(f.gzhead.extra){for(h=f.pending;f.gzindex<(f.gzhead.extra.length&65535)&&!(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),flush_pending(d),h=f.pending,f.pending===f.pending_buf_size));)put_byte(f,f.gzhead.extra[f.gzindex]&255),f.gzindex++;f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=NAME_STATE)}else f.status=NAME_STATE;if(f.status===NAME_STATE)if(f.gzhead.name){h=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),flush_pending(d),h=f.pending,f.pending===f.pending_buf_size)){m=1;break}f.gzindex<f.gzhead.name.length?m=f.gzhead.name.charCodeAt(f.gzindex++)&255:m=0,put_byte(f,m)}while(m!==0);f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),m===0&&(f.gzindex=0,f.status=COMMENT_STATE)}else f.status=COMMENT_STATE;if(f.status===COMMENT_STATE)if(f.gzhead.comment){h=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),flush_pending(d),h=f.pending,f.pending===f.pending_buf_size)){m=1;break}f.gzindex<f.gzhead.comment.length?m=f.gzhead.comment.charCodeAt(f.gzindex++)&255:m=0,put_byte(f,m)}while(m!==0);f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),m===0&&(f.status=HCRC_STATE)}else f.status=HCRC_STATE;if(f.status===HCRC_STATE&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&flush_pending(d),f.pending+2<=f.pending_buf_size&&(put_byte(f,d.adler&255),put_byte(f,d.adler>>8&255),d.adler=0,f.status=BUSY_STATE)):f.status=BUSY_STATE),f.pending!==0){if(flush_pending(d),d.avail_out===0)return f.last_flush=-1,Z_OK$3}else if(d.avail_in===0&&rank(b)<=rank(v)&&b!==Z_FINISH$3)return err(d,Z_BUF_ERROR$1);if(f.status===FINISH_STATE&&d.avail_in!==0)return err(d,Z_BUF_ERROR$1);if(d.avail_in!==0||f.lookahead!==0||b!==Z_NO_FLUSH$2&&f.status!==FINISH_STATE){let _=f.strategy===Z_HUFFMAN_ONLY?deflate_huff(f,b):f.strategy===Z_RLE?deflate_rle(f,b):configuration_table[f.level].func(f,b);if((_===BS_FINISH_STARTED||_===BS_FINISH_DONE)&&(f.status=FINISH_STATE),_===BS_NEED_MORE||_===BS_FINISH_STARTED)return d.avail_out===0&&(f.last_flush=-1),Z_OK$3;if(_===BS_BLOCK_DONE&&(b===Z_PARTIAL_FLUSH?_tr_align(f):b!==Z_BLOCK$1&&(_tr_stored_block(f,0,0,!1),b===Z_FULL_FLUSH$1&&(zero(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),flush_pending(d),d.avail_out===0))return f.last_flush=-1,Z_OK$3}return b!==Z_FINISH$3?Z_OK$3:f.wrap<=0?Z_STREAM_END$3:(f.wrap===2?(put_byte(f,d.adler&255),put_byte(f,d.adler>>8&255),put_byte(f,d.adler>>16&255),put_byte(f,d.adler>>24&255),put_byte(f,d.total_in&255),put_byte(f,d.total_in>>8&255),put_byte(f,d.total_in>>16&255),put_byte(f,d.total_in>>24&255)):(putShortMSB(f,d.adler>>>16),putShortMSB(f,d.adler&65535)),flush_pending(d),f.wrap>0&&(f.wrap=-f.wrap),f.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=d=>{if(!d||!d.state)return Z_STREAM_ERROR$2;const b=d.state.status;return b!==INIT_STATE&&b!==EXTRA_STATE&&b!==NAME_STATE&&b!==COMMENT_STATE&&b!==HCRC_STATE&&b!==BUSY_STATE&&b!==FINISH_STATE?err(d,Z_STREAM_ERROR$2):(d.state=null,b===BUSY_STATE?err(d,Z_DATA_ERROR$2):Z_OK$3)},deflateSetDictionary=(d,b)=>{let h=b.length;if(!d||!d.state)return Z_STREAM_ERROR$2;const m=d.state,f=m.wrap;if(f===2||f===1&&m.status!==INIT_STATE||m.lookahead)return Z_STREAM_ERROR$2;if(f===1&&(d.adler=adler32_1(d.adler,b,h,0)),m.wrap=0,h>=m.w_size){f===0&&(zero(m.head),m.strstart=0,m.block_start=0,m.insert=0);let M=new Uint8Array(m.w_size);M.set(b.subarray(h-m.w_size,h),0),b=M,h=m.w_size}const v=d.avail_in,_=d.next_in,A=d.input;for(d.avail_in=h,d.next_in=0,d.input=b,fill_window(m);m.lookahead>=MIN_MATCH;){let M=m.strstart,T=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(--T);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,d.next_in=_,d.input=A,d.avail_in=v,m.wrap=f,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=(d,b)=>Object.prototype.hasOwnProperty.call(d,b);var assign=function(d){const b=Array.prototype.slice.call(arguments,1);for(;b.length;){const h=b.shift();if(!!h){if(typeof h!="object")throw new TypeError(h+"must be non-object");for(const m in h)_has(h,m)&&(d[m]=h[m])}}return d},flattenChunks=d=>{let b=0;for(let m=0,f=d.length;m<f;m++)b+=d[m].length;const h=new Uint8Array(b);for(let m=0,f=0,v=d.length;m<v;m++){let _=d[m];h.set(_,f),f+=_.length}return h},common={assign,flattenChunks};let STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(d){STR_APPLY_UIA_OK=!1}const _utf8len=new Uint8Array(256);for(let d=0;d<256;d++)_utf8len[d]=d>=252?6:d>=248?5:d>=240?4:d>=224?3:d>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=d=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(d);let b,h,m,f,v,_=d.length,A=0;for(f=0;f<_;f++)h=d.charCodeAt(f),(h&64512)===55296&&f+1<_&&(m=d.charCodeAt(f+1),(m&64512)===56320&&(h=65536+(h-55296<<10)+(m-56320),f++)),A+=h<128?1:h<2048?2:h<65536?3:4;for(b=new Uint8Array(A),v=0,f=0;v<A;f++)h=d.charCodeAt(f),(h&64512)===55296&&f+1<_&&(m=d.charCodeAt(f+1),(m&64512)===56320&&(h=65536+(h-55296<<10)+(m-56320),f++)),h<128?b[v++]=h:h<2048?(b[v++]=192|h>>>6,b[v++]=128|h&63):h<65536?(b[v++]=224|h>>>12,b[v++]=128|h>>>6&63,b[v++]=128|h&63):(b[v++]=240|h>>>18,b[v++]=128|h>>>12&63,b[v++]=128|h>>>6&63,b[v++]=128|h&63);return b};const buf2binstring=(d,b)=>{if(b<65534&&d.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,d.length===b?d:d.subarray(0,b));let h="";for(let m=0;m<b;m++)h+=String.fromCharCode(d[m]);return h};var buf2string=(d,b)=>{const h=b||d.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(d.subarray(0,b));let m,f;const v=new Array(h*2);for(f=0,m=0;m<h;){let _=d[m++];if(_<128){v[f++]=_;continue}let A=_utf8len[_];if(A>4){v[f++]=65533,m+=A-1;continue}for(_&=A===2?31:A===3?15:7;A>1&&m<h;)_=_<<6|d[m++]&63,A--;if(A>1){v[f++]=65533;continue}_<65536?v[f++]=_:(_-=65536,v[f++]=55296|_>>10&1023,v[f++]=56320|_&1023)}return buf2binstring(v,f)},utf8border=(d,b)=>{b=b||d.length,b>d.length&&(b=d.length);let h=b-1;for(;h>=0&&(d[h]&192)===128;)h--;return h<0||h===0?b:h+_utf8len[d[h]]>b?h:b},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(d){this.options=common.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},d||{});let b=this.options;b.raw&&b.windowBits>0?b.windowBits=-b.windowBits:b.gzip&&b.windowBits>0&&b.windowBits<16&&(b.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,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(h!==Z_OK$2)throw new Error(messages[h]);if(b.header&&deflate_1$2.deflateSetHeader(this.strm,b.header),b.dictionary){let m;if(typeof b.dictionary=="string"?m=strings.string2buf(b.dictionary):toString$1.call(b.dictionary)==="[object ArrayBuffer]"?m=new Uint8Array(b.dictionary):m=b.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(d,b){const h=this.strm,m=this.options.chunkSize;let f,v;if(this.ended)return!1;for(b===~~b?v=b:v=b===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof d=="string"?h.input=strings.string2buf(d):toString$1.call(d)==="[object ArrayBuffer]"?h.input=new Uint8Array(d):h.input=d,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),(v===Z_SYNC_FLUSH||v===Z_FULL_FLUSH)&&h.avail_out<=6){this.onData(h.output.subarray(0,h.next_out)),h.avail_out=0;continue}if(f=deflate_1$2.deflate(h,v),f===Z_STREAM_END$2)return h.next_out>0&&this.onData(h.output.subarray(0,h.next_out)),f=deflate_1$2.deflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===Z_OK$2;if(h.avail_out===0){this.onData(h.output);continue}if(v>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(d){this.chunks.push(d)};Deflate$1.prototype.onEnd=function(d){d===Z_OK$2&&(this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function deflate$1(d,b){const h=new Deflate$1(b);if(h.push(d,!0),h.err)throw h.msg||messages[h.err];return h.result}function deflateRaw$1(d,b){return b=b||{},b.raw=!0,deflate$1(d,b)}function gzip$1(d,b){return b=b||{},b.gzip=!0,deflate$1(d,b)}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 d(b,h){let m,f,v,_,A,M,T,O,B,z,q,J,rt,ut,Z,mt,nt,at,_t,jt,St,gt,Ct,vt;const ft=b.state;m=b.next_in,Ct=b.input,f=m+(b.avail_in-5),v=b.next_out,vt=b.output,_=v-(h-b.avail_out),A=v+(b.avail_out-257),M=ft.dmax,T=ft.wsize,O=ft.whave,B=ft.wnext,z=ft.window,q=ft.hold,J=ft.bits,rt=ft.lencode,ut=ft.distcode,Z=(1<<ft.lenbits)-1,mt=(1<<ft.distbits)-1;t:do{J<15&&(q+=Ct[m++]<<J,J+=8,q+=Ct[m++]<<J,J+=8),nt=rt[q&Z];e:for(;;){if(at=nt>>>24,q>>>=at,J-=at,at=nt>>>16&255,at===0)vt[v++]=nt&65535;else if(at&16){_t=nt&65535,at&=15,at&&(J<at&&(q+=Ct[m++]<<J,J+=8),_t+=q&(1<<at)-1,q>>>=at,J-=at),J<15&&(q+=Ct[m++]<<J,J+=8,q+=Ct[m++]<<J,J+=8),nt=ut[q&mt];r:for(;;){if(at=nt>>>24,q>>>=at,J-=at,at=nt>>>16&255,at&16){if(jt=nt&65535,at&=15,J<at&&(q+=Ct[m++]<<J,J+=8,J<at&&(q+=Ct[m++]<<J,J+=8)),jt+=q&(1<<at)-1,jt>M){b.msg="invalid distance too far back",ft.mode=BAD$1;break t}if(q>>>=at,J-=at,at=v-_,jt>at){if(at=jt-at,at>O&&ft.sane){b.msg="invalid distance too far back",ft.mode=BAD$1;break t}if(St=0,gt=z,B===0){if(St+=T-at,at<_t){_t-=at;do vt[v++]=z[St++];while(--at);St=v-jt,gt=vt}}else if(B<at){if(St+=T+B-at,at-=B,at<_t){_t-=at;do vt[v++]=z[St++];while(--at);if(St=0,B<_t){at=B,_t-=at;do vt[v++]=z[St++];while(--at);St=v-jt,gt=vt}}}else if(St+=B-at,at<_t){_t-=at;do vt[v++]=z[St++];while(--at);St=v-jt,gt=vt}for(;_t>2;)vt[v++]=gt[St++],vt[v++]=gt[St++],vt[v++]=gt[St++],_t-=3;_t&&(vt[v++]=gt[St++],_t>1&&(vt[v++]=gt[St++]))}else{St=v-jt;do vt[v++]=vt[St++],vt[v++]=vt[St++],vt[v++]=vt[St++],_t-=3;while(_t>2);_t&&(vt[v++]=vt[St++],_t>1&&(vt[v++]=vt[St++]))}}else if((at&64)===0){nt=ut[(nt&65535)+(q&(1<<at)-1)];continue r}else{b.msg="invalid distance code",ft.mode=BAD$1;break t}break}}else if((at&64)===0){nt=rt[(nt&65535)+(q&(1<<at)-1)];continue e}else if(at&32){ft.mode=TYPE$1;break t}else{b.msg="invalid literal/length code",ft.mode=BAD$1;break t}break}}while(m<f&&v<A);_t=J>>3,m-=_t,J-=_t<<3,q&=(1<<J)-1,b.next_in=m,b.next_out=v,b.avail_in=m<f?5+(f-m):5-(m-f),b.avail_out=v<A?257+(A-v):257-(v-A),ft.hold=q,ft.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=(d,b,h,m,f,v,_,A)=>{const M=A.bits;let T=0,O=0,B=0,z=0,q=0,J=0,rt=0,ut=0,Z=0,mt=0,nt,at,_t,jt,St,gt=null,Ct=0,vt;const ft=new Uint16Array(MAXBITS+1),Q=new Uint16Array(MAXBITS+1);let ht=null,$=0,kt,W,At;for(T=0;T<=MAXBITS;T++)ft[T]=0;for(O=0;O<m;O++)ft[b[h+O]]++;for(q=M,z=MAXBITS;z>=1&&ft[z]===0;z--);if(q>z&&(q=z),z===0)return f[v++]=1<<24|64<<16|0,f[v++]=1<<24|64<<16|0,A.bits=1,0;for(B=1;B<z&&ft[B]===0;B++);for(q<B&&(q=B),ut=1,T=1;T<=MAXBITS;T++)if(ut<<=1,ut-=ft[T],ut<0)return-1;if(ut>0&&(d===CODES$1||z!==1))return-1;for(Q[1]=0,T=1;T<MAXBITS;T++)Q[T+1]=Q[T]+ft[T];for(O=0;O<m;O++)b[h+O]!==0&&(_[Q[b[h+O]]++]=O);if(d===CODES$1?(gt=ht=_,vt=19):d===LENS$1?(gt=lbase,Ct-=257,ht=lext,$-=257,vt=256):(gt=dbase,ht=dext,vt=-1),mt=0,O=0,T=B,St=v,J=q,rt=0,_t=-1,Z=1<<q,jt=Z-1,d===LENS$1&&Z>ENOUGH_LENS$1||d===DISTS$1&&Z>ENOUGH_DISTS$1)return 1;for(;;){kt=T-rt,_[O]<vt?(W=0,At=_[O]):_[O]>vt?(W=ht[$+_[O]],At=gt[Ct+_[O]]):(W=32+64,At=0),nt=1<<T-rt,at=1<<J,B=at;do at-=nt,f[St+(mt>>rt)+at]=kt<<24|W<<16|At|0;while(at!==0);for(nt=1<<T-1;mt&nt;)nt>>=1;if(nt!==0?(mt&=nt-1,mt+=nt):mt=0,O++,--ft[T]===0){if(T===z)break;T=b[h+_[O]]}if(T>q&&(mt&jt)!==_t){for(rt===0&&(rt=q),St+=B,J=T-rt,ut=1<<J;J+rt<z&&(ut-=ft[J+rt],!(ut<=0));)J++,ut<<=1;if(Z+=1<<J,d===LENS$1&&Z>ENOUGH_LENS$1||d===DISTS$1&&Z>ENOUGH_DISTS$1)return 1;_t=mt&jt,f[_t]=q<<24|J<<16|St-v|0}}return mt!==0&&(f[St+mt]=T-rt<<24|64<<16|0),A.bits=q,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=d=>(d>>>24&255)+(d>>>8&65280)+((d&65280)<<8)+((d&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=d=>{if(!d||!d.state)return Z_STREAM_ERROR$1;const b=d.state;return d.total_in=d.total_out=b.total=0,d.msg="",b.wrap&&(d.adler=b.wrap&1),b.mode=HEAD,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new Int32Array(ENOUGH_LENS),b.distcode=b.distdyn=new Int32Array(ENOUGH_DISTS),b.sane=1,b.back=-1,Z_OK$1},inflateReset=d=>{if(!d||!d.state)return Z_STREAM_ERROR$1;const b=d.state;return b.wsize=0,b.whave=0,b.wnext=0,inflateResetKeep(d)},inflateReset2=(d,b)=>{let h;if(!d||!d.state)return Z_STREAM_ERROR$1;const m=d.state;return b<0?(h=0,b=-b):(h=(b>>4)+1,b<48&&(b&=15)),b&&(b<8||b>15)?Z_STREAM_ERROR$1:(m.window!==null&&m.wbits!==b&&(m.window=null),m.wrap=h,m.wbits=b,inflateReset(d))},inflateInit2=(d,b)=>{if(!d)return Z_STREAM_ERROR$1;const h=new InflateState;d.state=h,h.window=null;const m=inflateReset2(d,b);return m!==Z_OK$1&&(d.state=null),m},inflateInit=d=>inflateInit2(d,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=d=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let b=0;for(;b<144;)d.lens[b++]=8;for(;b<256;)d.lens[b++]=9;for(;b<280;)d.lens[b++]=7;for(;b<288;)d.lens[b++]=8;for(inftrees(LENS,d.lens,0,288,lenfix,0,d.work,{bits:9}),b=0;b<32;)d.lens[b++]=5;inftrees(DISTS,d.lens,0,32,distfix,0,d.work,{bits:5}),virgin=!1}d.lencode=lenfix,d.lenbits=9,d.distcode=distfix,d.distbits=5},updatewindow=(d,b,h,m)=>{let f;const v=d.state;return v.window===null&&(v.wsize=1<<v.wbits,v.wnext=0,v.whave=0,v.window=new Uint8Array(v.wsize)),m>=v.wsize?(v.window.set(b.subarray(h-v.wsize,h),0),v.wnext=0,v.whave=v.wsize):(f=v.wsize-v.wnext,f>m&&(f=m),v.window.set(b.subarray(h-m,h-m+f),v.wnext),m-=f,m?(v.window.set(b.subarray(h-m,h),0),v.wnext=m,v.whave=v.wsize):(v.wnext+=f,v.wnext===v.wsize&&(v.wnext=0),v.whave<v.wsize&&(v.whave+=f))),0},inflate$2=(d,b)=>{let h,m,f,v,_,A,M,T,O,B,z,q,J,rt,ut=0,Z,mt,nt,at,_t,jt,St,gt;const Ct=new Uint8Array(4);let vt,ft;const Q=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!d||!d.state||!d.output||!d.input&&d.avail_in!==0)return Z_STREAM_ERROR$1;h=d.state,h.mode===TYPE&&(h.mode=TYPEDO),_=d.next_out,f=d.output,M=d.avail_out,v=d.next_in,m=d.input,A=d.avail_in,T=h.hold,O=h.bits,B=A,z=M,gt=Z_OK$1;t:for(;;)switch(h.mode){case HEAD:if(h.wrap===0){h.mode=TYPEDO;break}for(;O<16;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}if(h.wrap&2&&T===35615){h.check=0,Ct[0]=T&255,Ct[1]=T>>>8&255,h.check=crc32_1(h.check,Ct,2,0),T=0,O=0,h.mode=FLAGS;break}if(h.flags=0,h.head&&(h.head.done=!1),!(h.wrap&1)||(((T&255)<<8)+(T>>8))%31){d.msg="incorrect header check",h.mode=BAD;break}if((T&15)!==Z_DEFLATED){d.msg="unknown compression method",h.mode=BAD;break}if(T>>>=4,O-=4,St=(T&15)+8,h.wbits===0)h.wbits=St;else if(St>h.wbits){d.msg="invalid window size",h.mode=BAD;break}h.dmax=1<<h.wbits,d.adler=h.check=1,h.mode=T&512?DICTID:TYPE,T=0,O=0;break;case FLAGS:for(;O<16;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}if(h.flags=T,(h.flags&255)!==Z_DEFLATED){d.msg="unknown compression method",h.mode=BAD;break}if(h.flags&57344){d.msg="unknown header flags set",h.mode=BAD;break}h.head&&(h.head.text=T>>8&1),h.flags&512&&(Ct[0]=T&255,Ct[1]=T>>>8&255,h.check=crc32_1(h.check,Ct,2,0)),T=0,O=0,h.mode=TIME;case TIME:for(;O<32;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}h.head&&(h.head.time=T),h.flags&512&&(Ct[0]=T&255,Ct[1]=T>>>8&255,Ct[2]=T>>>16&255,Ct[3]=T>>>24&255,h.check=crc32_1(h.check,Ct,4,0)),T=0,O=0,h.mode=OS;case OS:for(;O<16;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}h.head&&(h.head.xflags=T&255,h.head.os=T>>8),h.flags&512&&(Ct[0]=T&255,Ct[1]=T>>>8&255,h.check=crc32_1(h.check,Ct,2,0)),T=0,O=0,h.mode=EXLEN;case EXLEN:if(h.flags&1024){for(;O<16;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}h.length=T,h.head&&(h.head.extra_len=T),h.flags&512&&(Ct[0]=T&255,Ct[1]=T>>>8&255,h.check=crc32_1(h.check,Ct,2,0)),T=0,O=0}else h.head&&(h.head.extra=null);h.mode=EXTRA;case EXTRA:if(h.flags&1024&&(q=h.length,q>A&&(q=A),q&&(h.head&&(St=h.head.extra_len-h.length,h.head.extra||(h.head.extra=new Uint8Array(h.head.extra_len)),h.head.extra.set(m.subarray(v,v+q),St)),h.flags&512&&(h.check=crc32_1(h.check,m,q,v)),A-=q,v+=q,h.length-=q),h.length))break t;h.length=0,h.mode=NAME;case NAME:if(h.flags&2048){if(A===0)break t;q=0;do St=m[v+q++],h.head&&St&&h.length<65536&&(h.head.name+=String.fromCharCode(St));while(St&&q<A);if(h.flags&512&&(h.check=crc32_1(h.check,m,q,v)),A-=q,v+=q,St)break t}else h.head&&(h.head.name=null);h.length=0,h.mode=COMMENT;case COMMENT:if(h.flags&4096){if(A===0)break t;q=0;do St=m[v+q++],h.head&&St&&h.length<65536&&(h.head.comment+=String.fromCharCode(St));while(St&&q<A);if(h.flags&512&&(h.check=crc32_1(h.check,m,q,v)),A-=q,v+=q,St)break t}else h.head&&(h.head.comment=null);h.mode=HCRC;case HCRC:if(h.flags&512){for(;O<16;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}if(T!==(h.check&65535)){d.msg="header crc mismatch",h.mode=BAD;break}T=0,O=0}h.head&&(h.head.hcrc=h.flags>>9&1,h.head.done=!0),d.adler=h.check=0,h.mode=TYPE;break;case DICTID:for(;O<32;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}d.adler=h.check=zswap32(T),T=0,O=0,h.mode=DICT;case DICT:if(h.havedict===0)return d.next_out=_,d.avail_out=M,d.next_in=v,d.avail_in=A,h.hold=T,h.bits=O,Z_NEED_DICT$1;d.adler=h.check=1,h.mode=TYPE;case TYPE:if(b===Z_BLOCK||b===Z_TREES)break t;case TYPEDO:if(h.last){T>>>=O&7,O-=O&7,h.mode=CHECK;break}for(;O<3;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}switch(h.last=T&1,T>>>=1,O-=1,T&3){case 0:h.mode=STORED;break;case 1:if(fixedtables(h),h.mode=LEN_,b===Z_TREES){T>>>=2,O-=2;break t}break;case 2:h.mode=TABLE;break;case 3:d.msg="invalid block type",h.mode=BAD}T>>>=2,O-=2;break;case STORED:for(T>>>=O&7,O-=O&7;O<32;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}if((T&65535)!==(T>>>16^65535)){d.msg="invalid stored block lengths",h.mode=BAD;break}if(h.length=T&65535,T=0,O=0,h.mode=COPY_,b===Z_TREES)break t;case COPY_:h.mode=COPY;case COPY:if(q=h.length,q){if(q>A&&(q=A),q>M&&(q=M),q===0)break t;f.set(m.subarray(v,v+q),_),A-=q,v+=q,M-=q,_+=q,h.length-=q;break}h.mode=TYPE;break;case TABLE:for(;O<14;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}if(h.nlen=(T&31)+257,T>>>=5,O-=5,h.ndist=(T&31)+1,T>>>=5,O-=5,h.ncode=(T&15)+4,T>>>=4,O-=4,h.nlen>286||h.ndist>30){d.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(;O<3;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}h.lens[Q[h.have++]]=T&7,T>>>=3,O-=3}for(;h.have<19;)h.lens[Q[h.have++]]=0;if(h.lencode=h.lendyn,h.lenbits=7,vt={bits:h.lenbits},gt=inftrees(CODES,h.lens,0,19,h.lencode,0,h.work,vt),h.lenbits=vt.bits,gt){d.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(;ut=h.lencode[T&(1<<h.lenbits)-1],Z=ut>>>24,mt=ut>>>16&255,nt=ut&65535,!(Z<=O);){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}if(nt<16)T>>>=Z,O-=Z,h.lens[h.have++]=nt;else{if(nt===16){for(ft=Z+2;O<ft;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}if(T>>>=Z,O-=Z,h.have===0){d.msg="invalid bit length repeat",h.mode=BAD;break}St=h.lens[h.have-1],q=3+(T&3),T>>>=2,O-=2}else if(nt===17){for(ft=Z+3;O<ft;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}T>>>=Z,O-=Z,St=0,q=3+(T&7),T>>>=3,O-=3}else{for(ft=Z+7;O<ft;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}T>>>=Z,O-=Z,St=0,q=11+(T&127),T>>>=7,O-=7}if(h.have+q>h.nlen+h.ndist){d.msg="invalid bit length repeat",h.mode=BAD;break}for(;q--;)h.lens[h.have++]=St}}if(h.mode===BAD)break;if(h.lens[256]===0){d.msg="invalid code -- missing end-of-block",h.mode=BAD;break}if(h.lenbits=9,vt={bits:h.lenbits},gt=inftrees(LENS,h.lens,0,h.nlen,h.lencode,0,h.work,vt),h.lenbits=vt.bits,gt){d.msg="invalid literal/lengths set",h.mode=BAD;break}if(h.distbits=6,h.distcode=h.distdyn,vt={bits:h.distbits},gt=inftrees(DISTS,h.lens,h.nlen,h.ndist,h.distcode,0,h.work,vt),h.distbits=vt.bits,gt){d.msg="invalid distances set",h.mode=BAD;break}if(h.mode=LEN_,b===Z_TREES)break t;case LEN_:h.mode=LEN;case LEN:if(A>=6&&M>=258){d.next_out=_,d.avail_out=M,d.next_in=v,d.avail_in=A,h.hold=T,h.bits=O,inffast(d,z),_=d.next_out,f=d.output,M=d.avail_out,v=d.next_in,m=d.input,A=d.avail_in,T=h.hold,O=h.bits,h.mode===TYPE&&(h.back=-1);break}for(h.back=0;ut=h.lencode[T&(1<<h.lenbits)-1],Z=ut>>>24,mt=ut>>>16&255,nt=ut&65535,!(Z<=O);){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}if(mt&&(mt&240)===0){for(at=Z,_t=mt,jt=nt;ut=h.lencode[jt+((T&(1<<at+_t)-1)>>at)],Z=ut>>>24,mt=ut>>>16&255,nt=ut&65535,!(at+Z<=O);){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}T>>>=at,O-=at,h.back+=at}if(T>>>=Z,O-=Z,h.back+=Z,h.length=nt,mt===0){h.mode=LIT;break}if(mt&32){h.back=-1,h.mode=TYPE;break}if(mt&64){d.msg="invalid literal/length code",h.mode=BAD;break}h.extra=mt&15,h.mode=LENEXT;case LENEXT:if(h.extra){for(ft=h.extra;O<ft;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}h.length+=T&(1<<h.extra)-1,T>>>=h.extra,O-=h.extra,h.back+=h.extra}h.was=h.length,h.mode=DIST;case DIST:for(;ut=h.distcode[T&(1<<h.distbits)-1],Z=ut>>>24,mt=ut>>>16&255,nt=ut&65535,!(Z<=O);){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}if((mt&240)===0){for(at=Z,_t=mt,jt=nt;ut=h.distcode[jt+((T&(1<<at+_t)-1)>>at)],Z=ut>>>24,mt=ut>>>16&255,nt=ut&65535,!(at+Z<=O);){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}T>>>=at,O-=at,h.back+=at}if(T>>>=Z,O-=Z,h.back+=Z,mt&64){d.msg="invalid distance code",h.mode=BAD;break}h.offset=nt,h.extra=mt&15,h.mode=DISTEXT;case DISTEXT:if(h.extra){for(ft=h.extra;O<ft;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}h.offset+=T&(1<<h.extra)-1,T>>>=h.extra,O-=h.extra,h.back+=h.extra}if(h.offset>h.dmax){d.msg="invalid distance too far back",h.mode=BAD;break}h.mode=MATCH;case MATCH:if(M===0)break t;if(q=z-M,h.offset>q){if(q=h.offset-q,q>h.whave&&h.sane){d.msg="invalid distance too far back",h.mode=BAD;break}q>h.wnext?(q-=h.wnext,J=h.wsize-q):J=h.wnext-q,q>h.length&&(q=h.length),rt=h.window}else rt=f,J=_-h.offset,q=h.length;q>M&&(q=M),M-=q,h.length-=q;do f[_++]=rt[J++];while(--q);h.length===0&&(h.mode=LEN);break;case LIT:if(M===0)break t;f[_++]=h.length,M--,h.mode=LEN;break;case CHECK:if(h.wrap){for(;O<32;){if(A===0)break t;A--,T|=m[v++]<<O,O+=8}if(z-=M,d.total_out+=z,h.total+=z,z&&(d.adler=h.check=h.flags?crc32_1(h.check,f,z,_-z):adler32_1(h.check,f,z,_-z)),z=M,(h.flags?T:zswap32(T))!==h.check){d.msg="incorrect data check",h.mode=BAD;break}T=0,O=0}h.mode=LENGTH;case LENGTH:if(h.wrap&&h.flags){for(;O<32;){if(A===0)break t;A--,T+=m[v++]<<O,O+=8}if(T!==(h.total&4294967295)){d.msg="incorrect length check",h.mode=BAD;break}T=0,O=0}h.mode=DONE;case DONE:gt=Z_STREAM_END$1;break t;case BAD:gt=Z_DATA_ERROR$1;break t;case MEM:return Z_MEM_ERROR$1;case SYNC:default:return Z_STREAM_ERROR$1}return d.next_out=_,d.avail_out=M,d.next_in=v,d.avail_in=A,h.hold=T,h.bits=O,(h.wsize||z!==d.avail_out&&h.mode<BAD&&(h.mode<CHECK||b!==Z_FINISH$1))&&updatewindow(d,d.output,d.next_out,z-d.avail_out),B-=d.avail_in,z-=d.avail_out,d.total_in+=B,d.total_out+=z,h.total+=z,h.wrap&&z&&(d.adler=h.check=h.flags?crc32_1(h.check,f,z,d.next_out-z):adler32_1(h.check,f,z,d.next_out-z)),d.data_type=h.bits+(h.last?64:0)+(h.mode===TYPE?128:0)+(h.mode===LEN_||h.mode===COPY_?256:0),(B===0&&z===0||b===Z_FINISH$1)&>===Z_OK$1&&(gt=Z_BUF_ERROR),gt},inflateEnd=d=>{if(!d||!d.state)return Z_STREAM_ERROR$1;let b=d.state;return b.window&&(b.window=null),d.state=null,Z_OK$1},inflateGetHeader=(d,b)=>{if(!d||!d.state)return Z_STREAM_ERROR$1;const h=d.state;return(h.wrap&2)===0?Z_STREAM_ERROR$1:(h.head=b,b.done=!1,Z_OK$1)},inflateSetDictionary=(d,b)=>{const h=b.length;let m,f,v;return!d||!d.state||(m=d.state,m.wrap!==0&&m.mode!==DICT)?Z_STREAM_ERROR$1:m.mode===DICT&&(f=1,f=adler32_1(f,b,h,0),f!==m.check)?Z_DATA_ERROR$1:(v=updatewindow(d,b,h,h),v?(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(d){this.options=common.assign({chunkSize:1024*64,windowBits:15,to:""},d||{});const b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,b.windowBits===0&&(b.windowBits=-15)),b.windowBits>=0&&b.windowBits<16&&!(d&&d.windowBits)&&(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&(b.windowBits&15)===0&&(b.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,b.windowBits);if(h!==Z_OK)throw new Error(messages[h]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),b.dictionary&&(typeof b.dictionary=="string"?b.dictionary=strings.string2buf(b.dictionary):toString.call(b.dictionary)==="[object ArrayBuffer]"&&(b.dictionary=new Uint8Array(b.dictionary)),b.raw&&(h=inflate_1$2.inflateSetDictionary(this.strm,b.dictionary),h!==Z_OK)))throw new Error(messages[h])}Inflate$1.prototype.push=function(d,b){const h=this.strm,m=this.options.chunkSize,f=this.options.dictionary;let v,_,A;if(this.ended)return!1;for(b===~~b?_=b:_=b===!0?Z_FINISH:Z_NO_FLUSH,toString.call(d)==="[object ArrayBuffer]"?h.input=new Uint8Array(d):h.input=d,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),v=inflate_1$2.inflate(h,_),v===Z_NEED_DICT&&f&&(v=inflate_1$2.inflateSetDictionary(h,f),v===Z_OK?v=inflate_1$2.inflate(h,_):v===Z_DATA_ERROR&&(v=Z_NEED_DICT));h.avail_in>0&&v===Z_STREAM_END&&h.state.wrap>0&&d[h.next_in]!==0;)inflate_1$2.inflateReset(h),v=inflate_1$2.inflate(h,_);switch(v){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(v),this.ended=!0,!1}if(A=h.avail_out,h.next_out&&(h.avail_out===0||v===Z_STREAM_END))if(this.options.to==="string"){let M=strings.utf8border(h.output,h.next_out),T=h.next_out-M,O=strings.buf2string(h.output,M);h.next_out=T,h.avail_out=m-T,T&&h.output.set(h.output.subarray(M,M+T),0),this.onData(O)}else this.onData(h.output.length===h.next_out?h.output:h.output.subarray(0,h.next_out));if(!(v===Z_OK&&A===0)){if(v===Z_STREAM_END)return v=inflate_1$2.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,!0;if(h.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(d){this.chunks.push(d)};Inflate$1.prototype.onEnd=function(d){d===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function inflate$1(d,b){const h=new Inflate$1(b);if(h.push(d),h.err)throw h.msg||messages[h.err];return h.result}function inflateRaw$1(d,b){return b=b||{},b.raw=!0,inflate$1(d,b)}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=(d=>{let b={};return d.forEach((h,m)=>b[h]=m),b})(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):(d,b=h=>h)=>new Uint8Array(Array.prototype.slice.call(d,0).map(b)),_mkUriSafe=d=>d.replace(/=/g,"").replace(/[+\/]/g,b=>b=="+"?"-":"_"),_tidyB64=d=>d.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=d=>{let b,h,m,f,v="";const _=d.length%3;for(let A=0;A<d.length;){if((h=d.charCodeAt(A++))>255||(m=d.charCodeAt(A++))>255||(f=d.charCodeAt(A++))>255)throw new TypeError("invalid character found");b=h<<16|m<<8|f,v+=b64chs[b>>18&63]+b64chs[b>>12&63]+b64chs[b>>6&63]+b64chs[b&63]}return _?v.slice(0,_-3)+"===".substring(_):v},_btoa=_hasbtoa?d=>btoa(d):_hasBuffer?d=>Buffer.from(d,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?d=>Buffer.from(d).toString("base64"):d=>{let h=[];for(let m=0,f=d.length;m<f;m+=4096)h.push(_fromCC.apply(null,d.subarray(m,m+4096)));return _btoa(h.join(""))},fromUint8Array=(d,b=!1)=>b?_mkUriSafe(_fromUint8Array(d)):_fromUint8Array(d),cb_utob=d=>{if(d.length<2){var b=d.charCodeAt(0);return b<128?d:b<2048?_fromCC(192|b>>>6)+_fromCC(128|b&63):_fromCC(224|b>>>12&15)+_fromCC(128|b>>>6&63)+_fromCC(128|b&63)}else{var b=65536+(d.charCodeAt(0)-55296)*1024+(d.charCodeAt(1)-56320);return _fromCC(240|b>>>18&7)+_fromCC(128|b>>>12&63)+_fromCC(128|b>>>6&63)+_fromCC(128|b&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=d=>d.replace(re_utob,cb_utob),_encode=_hasBuffer?d=>Buffer.from(d,"utf8").toString("base64"):_TE?d=>_fromUint8Array(_TE.encode(d)):d=>_btoa(utob(d)),encode=(d,b=!1)=>b?_mkUriSafe(_encode(d)):_encode(d),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=d=>{switch(d.length){case 4:var b=(7&d.charCodeAt(0))<<18|(63&d.charCodeAt(1))<<12|(63&d.charCodeAt(2))<<6|63&d.charCodeAt(3),h=b-65536;return _fromCC((h>>>10)+55296)+_fromCC((h&1023)+56320);case 3:return _fromCC((15&d.charCodeAt(0))<<12|(63&d.charCodeAt(1))<<6|63&d.charCodeAt(2));default:return _fromCC((31&d.charCodeAt(0))<<6|63&d.charCodeAt(1))}},btou=d=>d.replace(re_btou,cb_btou),atobPolyfill=d=>{if(d=d.replace(/\s+/g,""),!b64re.test(d))throw new TypeError("malformed base64.");d+="==".slice(2-(d.length&3));let b,h="",m,f;for(let v=0;v<d.length;)b=b64tab[d.charAt(v++)]<<18|b64tab[d.charAt(v++)]<<12|(m=b64tab[d.charAt(v++)])<<6|(f=b64tab[d.charAt(v++)]),h+=m===64?_fromCC(b>>16&255):f===64?_fromCC(b>>16&255,b>>8&255):_fromCC(b>>16&255,b>>8&255,b&255);return h},_atob=_hasatob?d=>atob(_tidyB64(d)):_hasBuffer?d=>Buffer.from(d,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?d=>_U8Afrom(Buffer.from(d,"base64")):d=>_U8Afrom(_atob(d),b=>b.charCodeAt(0)),toUint8Array=d=>_toUint8Array(_unURI(d)),_decode=_hasBuffer?d=>Buffer.from(d,"base64").toString("utf8"):_TD?d=>_TD.decode(_toUint8Array(d)):d=>btou(_atob(d)),_unURI=d=>_tidyB64(d.replace(/[-_]/g,b=>b=="-"?"+":"/")),decode=d=>_decode(_unURI(d)),base64Serde={serialize:d=>encode(d,!0),deserialize:d=>decode(d)},pakoSerde={serialize:d=>{const b=new TextEncoder().encode(d),h=deflate_1(b,{level:9});return fromUint8Array(h,!0)},deserialize:d=>{const b=toUint8Array(d);return inflate_1(b,{to:"string"})}},serdes={base64:base64Serde,pako:pakoSerde},serializeState=(d,b="pako")=>{if(serdes[b]===void 0)throw new Error(`Unknown serde type: ${b}`);const h=JSON.stringify(d),m=serdes[b].serialize(h);return`${b}:${m}`},deserializeState=d=>{let b,h;if(d.includes(":")){let f;if([f,h]=d.split(":"),f in serdes)b=f;else throw new Error(`Unknown serde type: ${f}`)}else b="base64",h=d;const m=serdes[b].deserialize(h);return JSON.parse(m)};var dist={},words={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__values||function(m){var f=typeof Symbol=="function"&&Symbol.iterator,v=f&&m[f],_=0;if(v)return v.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&_>=m.length&&(m=void 0),{value:m&&m[_++],done:!m}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(d,"__esModule",{value:!0}),d.getWordsByCategory=d.wordList=void 0,d.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function h(m,f){var v,_;f===void 0&&(f=[]);var A=new Set(f),M=[];try{for(var T=b(d.wordList[m]),O=T.next();!O.done;O=T.next()){var B=O.value;(f.length===0||B.categories.some(function(z){return A.has(z)}))&&M.push(B.word)}}catch(z){v={error:z}}finally{try{O&&!O.done&&(_=T.return)&&_.call(T)}finally{if(v)throw v.error}}return M}d.getWordsByCategory=h})(words);var __assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(d){for(var b,h=1,m=arguments.length;h<m;h++){b=arguments[h];for(var f in b)Object.prototype.hasOwnProperty.call(b,f)&&(d[f]=b[f])}return d},__assign.apply(this,arguments)};Object.defineProperty(dist,"__esModule",{value:!0});dist.totalUniqueSlugs=generateSlug_1=dist.generateSlug=void 0;var words_1=words,DEFAULT_NUMBER_OF_WORDS=3;function generateSlug(d,b){for(var h=d||DEFAULT_NUMBER_OF_WORDS,m={partsOfSpeech:getDefaultPartsOfSpeech(h),categories:{},format:"kebab"},f=__assign(__assign({},m),b),v=[],_=0;_<h;_++){var A=f.partsOfSpeech[_],M=words_1.getWordsByCategory(f.partsOfSpeech[_],f.categories[A]),T=M[Math.floor(Math.random()*M.length)];v.push(T)}return formatter(v,f.format)}var generateSlug_1=dist.generateSlug=generateSlug;function getDefaultPartsOfSpeech(d){for(var b=[],h=0;h<d-1;h++)b.push("adjective");return b.push("noun"),b}function formatter(d,b){return b==="kebab"?d.join("-").toLowerCase():b==="camel"?d.map(function(h,m){return m===0?h.toLowerCase():h[0].toUpperCase()+h.slice(1).toLowerCase()}).join(""):b==="lower"?d.join(" ").toLowerCase():b==="sentence"?d.map(function(h,m){return m===0?h[0].toUpperCase()+h.slice(1).toLowerCase():h}).join(" "):d.map(function(h){return h[0].toUpperCase()+h.slice(1).toLowerCase()}).join(" ")}function totalUniqueSlugs(d,b){for(var h,m,f=words_1.getWordsByCategory("adjective",(h=b==null?void 0:b.categories)===null||h===void 0?void 0:h.adjective).length,v=words_1.getWordsByCategory("noun",(m=b==null?void 0:b.categories)===null||m===void 0?void 0:m.noun).length,_={adjective:f,noun:v},A=d||DEFAULT_NUMBER_OF_WORDS,M=(b==null?void 0:b.partsOfSpeech)||getDefaultPartsOfSpeech(A),T=1,O=0;O<A;O++)T*=_[M[O]];return T}dist.totalUniqueSlugs=totalUniqueSlugs;let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let d=0;d<256;++d)byteToHex.push((d+256).toString(16).slice(1));function unsafeStringify(d,b=0){return(byteToHex[d[b+0]]+byteToHex[d[b+1]]+byteToHex[d[b+2]]+byteToHex[d[b+3]]+"-"+byteToHex[d[b+4]]+byteToHex[d[b+5]]+"-"+byteToHex[d[b+6]]+byteToHex[d[b+7]]+"-"+byteToHex[d[b+8]]+byteToHex[d[b+9]]+"-"+byteToHex[d[b+10]]+byteToHex[d[b+11]]+byteToHex[d[b+12]]+byteToHex[d[b+13]]+byteToHex[d[b+14]]+byteToHex[d[b+15]]).toLowerCase()}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(d,b,h){if(native.randomUUID&&!b&&!d)return native.randomUUID();d=d||{};const m=d.random||(d.rng||rng)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,b){h=h||0;for(let f=0;f<16;++f)b[h+f]=m[f];return b}return unsafeStringify(m)}const MAX_AUTO_HISTORY_LENGTH=30,historyModeStore=persist(writable("manual"),localStorage(),"autoHistoryMode"),autoHistoryStore=persist(writable([]),localStorage(),"autoHistoryStore"),manualHistoryStore=persist(writable([]),localStorage(),"manualHistoryStore"),loaderHistoryStore=writable([]),historyStore=derived([historyModeStore,autoHistoryStore,manualHistoryStore,loaderHistoryStore],([d,b,h,m],f)=>{f(d==="auto"?b:d==="manual"?h:d==="loader"?m:b)}),addHistoryEntry=d=>{const b={...d,id:v4()};if(b.type==="loader"){loaderHistoryStore.update(h=>[b,...h]);return}b.name||(b.name=generateSlug_1(2)),b.type==="auto"?autoHistoryStore.update(h=>(h.length>=MAX_AUTO_HISTORY_LENGTH&&(h=h.slice(0,MAX_AUTO_HISTORY_LENGTH-1)),[b,...h])):b.type==="manual"&&(manualHistoryStore.update(h=>[b,...h]),logEvent("history",{action:"save"}))},clearHistoryData=d=>{(get_store_value(historyModeStore)==="auto"?autoHistoryStore:manualHistoryStore).update(b=>(get_store_value(historyModeStore)!=="loader"&&(b=b.filter(({id:h})=>d&&h!=d),logEvent("history",{action:"clear",type:d?"single":"all"})),b))},getPreviousState=d=>{const b=get_store_value(d?autoHistoryStore:manualHistoryStore);return b.length>0?JSON.stringify(b[0].state):""},restoreHistory=d=>{const b=d.filter(validateEntry),h=d.length-b.length;if(h>0&&(console.error(`${h} invalid history entries were removed.`),console.error(d)),b.length>0){let m=0;(b[0].type==="auto"?autoHistoryStore:manualHistoryStore).update(f=>{const v=new Set(f.map(({id:M})=>M)),_=b.filter(({id:M})=>!v.has(M));m=_.length;const A=[...f,..._];return A.sort((M,T)=>T.time-M.time),A}),alert(`${m} entries restored. ${h} invalid, ${b.length-m} duplicates.`),logEvent("history",{action:"restore",success:m,invalid:h,duplicates:b.length-m})}else alert("No valid entries found.")},injectHistoryIDs=()=>{const d=b=>{for(const h of b)h.id||(h.id=v4());return b};autoHistoryStore.update(d),manualHistoryStore.update(d)},validateEntry=d=>d.type&&d.state&&d.time&&!0,codeFileName="code.mmd",configFileName="config.json",isValidGist=d=>codeFileName in d,getFileContent=async d=>d.truncated?await(await fetch(d.raw_url)).text():d.content,getGistData=async d=>{const[b,h,m,f]=d.split("github.com").pop().split("/"),{html_url:v,files:_,history:A}=await(await fetch(`https://api.github.com/gists/${m}${f?"/"+f:""}`)).json();if(isValidGist(_)){const M=await getFileContent(_[codeFileName]);let T;configFileName in _&&(T=await getFileContent(_[configFileName]));const O=A[0];return{url:`${v}/${O.version}`,code:M,config:T,author:O.user.login,time:new Date(O.committed_at).getTime(),version:O.version.slice(-7)}}else throw"Invalid gist provided"},getStateFromGist=(d,b=d.url)=>{const h={...defaultState,code:d.code,loader:{type:"gist",config:{url:b}}};return d.config&&(h.mermaid=d.config),h},loadGistData=async d=>{try{const[b,h,m,f]=d.split("github.com").pop().split("/"),{history:v}=await(await fetch(`https://api.github.com/gists/${m}${f?"/"+f:""}`)).json(),_=[];for(const M of v){const T=await getGistData(M.url).catch(()=>{});T&&_.push(T)}if(_.length===0)throw"Invalid gist provided";_.reverse();const A=getStateFromGist(_.slice(-1).pop(),d);for(const M of _)addHistoryEntry({state:getStateFromGist(M),time:M.time,type:"loader",url:M.url,name:`${M.author} v${M.version}`});return A}catch(b){console.error(b)}},loaders={gist:loadGistData},loadDataFromUrl=async()=>{const d=new URLSearchParams(window.location.search);let b=defaultState,h,m,f=!1;const v=d.get("code"),_=d.get("config");if(v&&(h=await(await fetch(v)).text(),f=!0),_?m=await(await fetch(_)).text():m=defaultState.mermaid,h)b={code:h,mermaid:m,loader:{type:"files",config:{codeURL:v,configURL:_}}};else for(const[A,M]of d.entries())if(A in loaders)try{b=await loaders[A](M),f=!0;break}catch(T){console.error(T)}f&&updateCodeStore({...b,autoSync:!0,updateDiagram:!0})},migrations={injectHistoryIDs},migrationStore=persist(writable({version:-1}),localStorage(),"migrations"),applyMigrations=()=>{const{version:d}=get_store_value(migrationStore),b=Object.entries(migrations);if(d!==b.length-1){console.log(`Current migration version: v${d}. Migrating to v${b.length-1}.`);for(let h=d+1;h<b.length;h++){const[m,f]=b[h];console.log(`Applying migration ${h}: ${m}.`),f(),logEvent("migration",{key:m}),migrationStore.set({version:h})}logEvent("migration",{status:"complete",from:d,to:b.length-1})}},loadStateFromURL=()=>{loadState(window.location.hash.slice(1))},syncDiagram=()=>{updateCodeStore({updateDiagram:!0})},initHandler=async()=>{applyMigrations(),loadStateFromURL(),await initLoading("Loading Gist...",loadDataFromUrl().catch(console.error)),syncDiagram(),initURLSubscription(),await initAnalytics(),analytics==null||analytics.page()},isMac=navigator.platform.toUpperCase().indexOf("MAC")>=0,cmdKey=isMac?"Cmd":"Ctrl";/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var t={2536:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(De,rr,Qe,Ie){for(Qe=Qe||{},Ie=De.length;Ie--;Qe[De[Ie]]=rr);return Qe},v=[1,6],_=[1,7],A=[1,8],M=[1,9],T=[1,16],O=[1,11],B=[1,12],z=[1,13],q=[1,14],J=[1,15],rt=[1,27],ut=[1,33],Z=[1,34],mt=[1,35],nt=[1,36],at=[1,37],_t=[1,72],jt=[1,73],St=[1,74],gt=[1,75],Ct=[1,76],vt=[1,77],ft=[1,78],Q=[1,38],ht=[1,39],$=[1,40],kt=[1,41],W=[1,42],At=[1,43],Nt=[1,44],Gt=[1,45],xe=[1,46],Ge=[1,47],Te=[1,48],ye=[1,49],ke=[1,50],Me=[1,51],Oe=[1,52],we=[1,53],Sr=[1,54],_e=[1,55],er=[1,56],oe=[1,57],ee=[1,59],he=[1,60],Mt=[1,61],ie=[1,62],pt=[1,63],wt=[1,64],xt=[1,65],Rt=[1,66],me=[1,67],Pe=[1,68],ar=[1,69],Ze=[24,52],ur=[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],ze=[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],Ce=[1,94],Be=[1,95],Fe=[1,96],be=[1,97],se=[15,24,52],Lr=[7,8,9,10,18,22,25,26,27,28],Ue=[15,24,43,52],dr=[15,24,43,52,86,87,89,90],qe=[15,43],gr=[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],rn={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(De,rr,Qe,Ie,vr,Ot,kn){var Vt=Ot.length-1;switch(vr){case 4:Ie.setDirection("TB");break;case 5:Ie.setDirection("BT");break;case 6:Ie.setDirection("RL");break;case 7:Ie.setDirection("LR");break;case 11:console.log("open_directive: ",Ot[Vt]),Ie.parseDirective("%%{","open_directive");break;case 12:break;case 13:Ot[Vt]=Ot[Vt].trim().replace(/'/g,'"'),console.log("arg_directive: ",Ot[Vt]),Ie.parseDirective(Ot[Vt],"arg_directive");break;case 14:console.log("close_directive: ",Ot[Vt]),Ie.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:Ie.setC4Type(Ot[Vt-3]);break;case 26:Ie.setTitle(Ot[Vt].substring(6)),this.$=Ot[Vt].substring(6);break;case 27:Ie.setAccDescription(Ot[Vt].substring(15)),this.$=Ot[Vt].substring(15);break;case 28:this.$=Ot[Vt].trim(),Ie.setTitle(this.$);break;case 29:case 30:this.$=Ot[Vt].trim(),Ie.setAccDescription(this.$);break;case 35:case 36:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ot[Vt].splice(2,0,"ENTERPRISE"),Ie.addPersonOrSystemBoundary(...Ot[Vt]),this.$=Ot[Vt];break;case 37:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystemBoundary(...Ot[Vt]),this.$=Ot[Vt];break;case 38:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ot[Vt].splice(2,0,"CONTAINER"),Ie.addContainerBoundary(...Ot[Vt]),this.$=Ot[Vt];break;case 39:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addDeploymentNode("node",...Ot[Vt]),this.$=Ot[Vt];break;case 40:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addDeploymentNode("nodeL",...Ot[Vt]),this.$=Ot[Vt];break;case 41:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addDeploymentNode("nodeR",...Ot[Vt]),this.$=Ot[Vt];break;case 42:Ie.popBoundaryParseStack();break;case 46:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("person",...Ot[Vt]),this.$=Ot[Vt];break;case 47:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("external_person",...Ot[Vt]),this.$=Ot[Vt];break;case 48:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("system",...Ot[Vt]),this.$=Ot[Vt];break;case 49:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("system_db",...Ot[Vt]),this.$=Ot[Vt];break;case 50:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("system_queue",...Ot[Vt]),this.$=Ot[Vt];break;case 51:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("external_system",...Ot[Vt]),this.$=Ot[Vt];break;case 52:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("external_system_db",...Ot[Vt]),this.$=Ot[Vt];break;case 53:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addPersonOrSystem("external_system_queue",...Ot[Vt]),this.$=Ot[Vt];break;case 54:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addContainer("container",...Ot[Vt]),this.$=Ot[Vt];break;case 55:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addContainer("container_db",...Ot[Vt]),this.$=Ot[Vt];break;case 56:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addContainer("container_queue",...Ot[Vt]),this.$=Ot[Vt];break;case 57:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addContainer("external_container",...Ot[Vt]),this.$=Ot[Vt];break;case 58:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addContainer("external_container_db",...Ot[Vt]),this.$=Ot[Vt];break;case 59:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addContainer("external_container_queue",...Ot[Vt]),this.$=Ot[Vt];break;case 60:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addComponent("component",...Ot[Vt]),this.$=Ot[Vt];break;case 61:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addComponent("component_db",...Ot[Vt]),this.$=Ot[Vt];break;case 62:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addComponent("component_queue",...Ot[Vt]),this.$=Ot[Vt];break;case 63:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addComponent("external_component",...Ot[Vt]),this.$=Ot[Vt];break;case 64:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addComponent("external_component_db",...Ot[Vt]),this.$=Ot[Vt];break;case 65:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addComponent("external_component_queue",...Ot[Vt]),this.$=Ot[Vt];break;case 67:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("rel",...Ot[Vt]),this.$=Ot[Vt];break;case 68:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("birel",...Ot[Vt]),this.$=Ot[Vt];break;case 69:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("rel_u",...Ot[Vt]),this.$=Ot[Vt];break;case 70:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("rel_d",...Ot[Vt]),this.$=Ot[Vt];break;case 71:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("rel_l",...Ot[Vt]),this.$=Ot[Vt];break;case 72:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("rel_r",...Ot[Vt]),this.$=Ot[Vt];break;case 73:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.addRel("rel_b",...Ot[Vt]),this.$=Ot[Vt];break;case 74:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ot[Vt].splice(0,1),Ie.addRel("rel",...Ot[Vt]),this.$=Ot[Vt];break;case 75:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.updateElStyle("update_el_style",...Ot[Vt]),this.$=Ot[Vt];break;case 76:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.updateRelStyle("update_rel_style",...Ot[Vt]),this.$=Ot[Vt];break;case 77:console.log(Ot[Vt-1],JSON.stringify(Ot[Vt])),Ie.updateLayoutConfig("update_layout_config",...Ot[Vt]),this.$=Ot[Vt];break;case 78:console.log("PUSH ATTRIBUTE: ",Ot[Vt]),this.$=[Ot[Vt]];break;case 79:console.log("PUSH ATTRIBUTE: ",Ot[Vt-1]),Ot[Vt].unshift(Ot[Vt-1]),this.$=Ot[Vt];break;case 80:case 82:this.$=Ot[Vt].trim();break;case 81:console.log("kv: ",Ot[Vt-1],Ot[Vt]);let qr={};qr[Ot[Vt-1].trim()]=Ot[Vt].trim(),this.$=qr;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:v,8:_,9:A,10:M,11:5,12:10,18:T,22:O,25:B,26:z,27:q,28:J},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:v,8:_,9:A,10:M,11:5,12:10,18:T,22:O,25:B,26:z,27:q,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},f([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:ut,33:Z,34:mt,36:nt,38:at,39:58,40:70,42:71,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,53:32,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar},{23:79,29:29,30:30,31:31,32:ut,33:Z,34:mt,36:nt,38:at,39:58,40:70,42:71,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,53:32,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar},{23:80,29:29,30:30,31:31,32:ut,33:Z,34:mt,36:nt,38:at,39:58,40:70,42:71,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,53:32,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar},{23:81,29:29,30:30,31:31,32:ut,33:Z,34:mt,36:nt,38:at,39:58,40:70,42:71,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,53:32,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar},{23:82,29:29,30:30,31:31,32:ut,33:Z,34:mt,36:nt,38:at,39:58,40:70,42:71,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,53:32,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},f(Ze,[2,20],{53:32,39:58,40:70,42:71,30:87,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar}),f(Ze,[2,21]),f(ur,[2,23],{15:[1,88]}),f(Ze,[2,43],{15:[1,89]}),f(ze,[2,26]),f(ze,[2,27]),{35:[1,90]},{37:[1,91]},f(ze,[2,30]),{45:92,85:93,86:Ce,87:Be,89:Fe,90:be},{45:98,85:93,86:Ce,87:Be,89:Fe,90:be},{45:99,85:93,86:Ce,87:Be,89:Fe,90:be},{45:100,85:93,86:Ce,87:Be,89:Fe,90:be},{45:101,85:93,86:Ce,87:Be,89:Fe,90:be},{45:102,85:93,86:Ce,87:Be,89:Fe,90:be},{45:103,85:93,86:Ce,87:Be,89:Fe,90:be},{45:104,85:93,86:Ce,87:Be,89:Fe,90:be},{45:105,85:93,86:Ce,87:Be,89:Fe,90:be},{45:106,85:93,86:Ce,87:Be,89:Fe,90:be},{45:107,85:93,86:Ce,87:Be,89:Fe,90:be},{45:108,85:93,86:Ce,87:Be,89:Fe,90:be},{45:109,85:93,86:Ce,87:Be,89:Fe,90:be},{45:110,85:93,86:Ce,87:Be,89:Fe,90:be},{45:111,85:93,86:Ce,87:Be,89:Fe,90:be},{45:112,85:93,86:Ce,87:Be,89:Fe,90:be},{45:113,85:93,86:Ce,87:Be,89:Fe,90:be},{45:114,85:93,86:Ce,87:Be,89:Fe,90:be},{45:115,85:93,86:Ce,87:Be,89:Fe,90:be},{45:116,85:93,86:Ce,87:Be,89:Fe,90:be},f(se,[2,66]),{45:117,85:93,86:Ce,87:Be,89:Fe,90:be},{45:118,85:93,86:Ce,87:Be,89:Fe,90:be},{45:119,85:93,86:Ce,87:Be,89:Fe,90:be},{45:120,85:93,86:Ce,87:Be,89:Fe,90:be},{45:121,85:93,86:Ce,87:Be,89:Fe,90:be},{45:122,85:93,86:Ce,87:Be,89:Fe,90:be},{45:123,85:93,86:Ce,87:Be,89:Fe,90:be},{45:124,85:93,86:Ce,87:Be,89:Fe,90:be},{45:125,85:93,86:Ce,87:Be,89:Fe,90:be},{45:126,85:93,86:Ce,87:Be,89:Fe,90:be},{45:127,85:93,86:Ce,87:Be,89:Fe,90:be},{30:128,39:58,40:70,42:71,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,53:32,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar},{15:[1,130],43:[1,129]},{45:131,85:93,86:Ce,87:Be,89:Fe,90:be},{45:132,85:93,86:Ce,87:Be,89:Fe,90:be},{45:133,85:93,86:Ce,87:Be,89:Fe,90:be},{45:134,85:93,86:Ce,87:Be,89:Fe,90:be},{45:135,85:93,86:Ce,87:Be,89:Fe,90:be},{45:136,85:93,86:Ce,87:Be,89:Fe,90:be},{45:137,85:93,86:Ce,87:Be,89:Fe,90:be},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},f(Lr,[2,9]),{14:142,21:rt},{21:[2,13]},{1:[2,15]},f(Ze,[2,22]),f(ur,[2,24],{31:31,29:143,32:ut,33:Z,34:mt,36:nt,38:at}),f(Ze,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:ut,33:Z,34:mt,36:nt,38:at,44:_t,46:jt,47:St,48:gt,49:Ct,50:vt,51:ft,54:Q,55:ht,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe,63:Ge,64:Te,65:ye,66:ke,67:Me,68:Oe,69:we,70:Sr,71:_e,72:er,73:oe,74:ee,75:he,76:Mt,77:ie,78:pt,79:wt,80:xt,81:Rt,82:me,83:Pe,84:ar}),f(ze,[2,28]),f(ze,[2,29]),f(se,[2,46]),f(Ue,[2,78],{85:93,45:145,86:Ce,87:Be,89:Fe,90:be}),f(dr,[2,80]),{88:[1,146]},f(dr,[2,82]),f(dr,[2,83]),f(se,[2,47]),f(se,[2,48]),f(se,[2,49]),f(se,[2,50]),f(se,[2,51]),f(se,[2,52]),f(se,[2,53]),f(se,[2,54]),f(se,[2,55]),f(se,[2,56]),f(se,[2,57]),f(se,[2,58]),f(se,[2,59]),f(se,[2,60]),f(se,[2,61]),f(se,[2,62]),f(se,[2,63]),f(se,[2,64]),f(se,[2,65]),f(se,[2,67]),f(se,[2,68]),f(se,[2,69]),f(se,[2,70]),f(se,[2,71]),f(se,[2,72]),f(se,[2,73]),f(se,[2,74]),f(se,[2,75]),f(se,[2,76]),f(se,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},f(qe,[2,35]),f(qe,[2,36]),f(qe,[2,37]),f(qe,[2,38]),f(qe,[2,39]),f(qe,[2,40]),f(qe,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},f(ur,[2,25]),f(Ze,[2,45]),f(Ue,[2,79]),f(dr,[2,81]),f(se,[2,31]),f(se,[2,42]),f(gr,[2,32]),f(gr,[2,33],{15:[1,152]}),f(Lr,[2,10]),f(gr,[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(De,rr){if(!rr.recoverable){var Qe=new Error(De);throw Qe.hash=rr,Qe}this.trace(De)},parse:function(De){var rr=this,Qe=[0],Ie=[],vr=[null],Ot=[],kn=this.table,Vt="",qr=0,zr=0,Zr=0,Mr=2,Xr=1,Pr=Ot.slice.call(arguments,1),Cr=Object.create(this.lexer),Ur={yy:{}};for(var Yr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Yr)&&(Ur.yy[Yr]=this.yy[Yr]);Cr.setInput(De,Ur.yy),Ur.yy.lexer=Cr,Ur.yy.parser=this,Cr.yylloc===void 0&&(Cr.yylloc={});var jr=Cr.yylloc;Ot.push(jr);var ya=Cr.options&&Cr.options.ranges;function On(){var Kr;return typeof(Kr=Ie.pop()||Cr.lex()||Xr)!="number"&&(Kr instanceof Array&&(Kr=(Ie=Kr).pop()),Kr=rr.symbols_[Kr]||Kr),Kr}typeof Ur.yy.parseError=="function"?this.parseError=Ur.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Cn,Ir,ui,Or,En,Ln,vn,Zn,Bt,Mn={};;){if(ui=Qe[Qe.length-1],this.defaultActions[ui]?Or=this.defaultActions[ui]:(Cn==null&&(Cn=On()),Or=kn[ui]&&kn[ui][Cn]),Or===void 0||!Or.length||!Or[0]){var Rn="";for(Ln in Bt=[],kn[ui])this.terminals_[Ln]&&Ln>Mr&&Bt.push("'"+this.terminals_[Ln]+"'");Rn=Cr.showPosition?"Parse error on line "+(qr+1)+`:
|
|
`+Cr.showPosition()+`
|
|
Expecting `+Bt.join(", ")+", got '"+(this.terminals_[Cn]||Cn)+"'":"Parse error on line "+(qr+1)+": Unexpected "+(Cn==Xr?"end of input":"'"+(this.terminals_[Cn]||Cn)+"'"),this.parseError(Rn,{text:Cr.match,token:this.terminals_[Cn]||Cn,line:Cr.yylineno,loc:jr,expected:Bt})}if(Or[0]instanceof Array&&Or.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ui+", token: "+Cn);switch(Or[0]){case 1:Qe.push(Cn),vr.push(Cr.yytext),Ot.push(Cr.yylloc),Qe.push(Or[1]),Cn=null,Ir?(Cn=Ir,Ir=null):(zr=Cr.yyleng,Vt=Cr.yytext,qr=Cr.yylineno,jr=Cr.yylloc,Zr>0);break;case 2:if(vn=this.productions_[Or[1]][1],Mn.$=vr[vr.length-vn],Mn._$={first_line:Ot[Ot.length-(vn||1)].first_line,last_line:Ot[Ot.length-1].last_line,first_column:Ot[Ot.length-(vn||1)].first_column,last_column:Ot[Ot.length-1].last_column},ya&&(Mn._$.range=[Ot[Ot.length-(vn||1)].range[0],Ot[Ot.length-1].range[1]]),(En=this.performAction.apply(Mn,[Vt,zr,qr,Ur.yy,Or[1],vr,Ot].concat(Pr)))!==void 0)return En;vn&&(Qe=Qe.slice(0,-1*vn*2),vr=vr.slice(0,-1*vn),Ot=Ot.slice(0,-1*vn)),Qe.push(this.productions_[Or[1]][0]),vr.push(Mn.$),Ot.push(Mn._$),Zn=kn[Qe[Qe.length-2]][Qe[Qe.length-1]],Qe.push(Zn);break;case 3:return!0}}return!0}},Dr={EOF:1,parseError:function(De,rr){if(!this.yy.parser)throw new Error(De);this.yy.parser.parseError(De,rr)},setInput:function(De,rr){return this.yy=rr||this.yy||{},this._input=De,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 De=this._input[0];return this.yytext+=De,this.yyleng++,this.offset++,this.match+=De,this.matched+=De,De.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),De},unput:function(De){var rr=De.length,Qe=De.split(/(?:\r\n?|\n)/g);this._input=De+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-rr),this.offset-=rr;var Ie=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Qe.length-1&&(this.yylineno-=Qe.length-1);var vr=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Qe?(Qe.length===Ie.length?this.yylloc.first_column:0)+Ie[Ie.length-Qe.length].length-Qe[0].length:this.yylloc.first_column-rr},this.options.ranges&&(this.yylloc.range=[vr[0],vr[0]+this.yyleng-rr]),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(De){this.unput(this.match.slice(De))},pastInput:function(){var De=this.matched.substr(0,this.matched.length-this.match.length);return(De.length>20?"...":"")+De.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var De=this.match;return De.length<20&&(De+=this._input.substr(0,20-De.length)),(De.substr(0,20)+(De.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var De=this.pastInput(),rr=new Array(De.length+1).join("-");return De+this.upcomingInput()+`
|
|
`+rr+"^"},test_match:function(De,rr){var Qe,Ie,vr;if(this.options.backtrack_lexer&&(vr={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&&(vr.yylloc.range=this.yylloc.range.slice(0))),(Ie=De[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ie.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ie?Ie[Ie.length-1].length-Ie[Ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+De[0].length},this.yytext+=De[0],this.match+=De[0],this.matches=De,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(De[0].length),this.matched+=De[0],Qe=this.performAction.call(this,this.yy,this,rr,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Qe)return Qe;if(this._backtrack){for(var Ot in vr)this[Ot]=vr[Ot];return!1}return!1},next:function(){if(this.done)return this.EOF;var De,rr,Qe,Ie;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var vr=this._currentRules(),Ot=0;Ot<vr.length;Ot++)if((Qe=this._input.match(this.rules[vr[Ot]]))&&(!rr||Qe[0].length>rr[0].length)){if(rr=Qe,Ie=Ot,this.options.backtrack_lexer){if((De=this.test_match(Qe,vr[Ot]))!==!1)return De;if(this._backtrack){rr=!1;continue}return!1}if(!this.options.flex)break}return rr?(De=this.test_match(rr,vr[Ie]))!==!1&&De: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(De){this.conditionStack.push(De)},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(De){return(De=this.conditionStack.length-1-Math.abs(De||0))>=0?this.conditionStack[De]:"INITIAL"},pushState:function(De){this.begin(De)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(De,rr,Qe,Ie){switch(Qe){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),console.log("begin person_ext"),55;case 28:return this.begin("person"),console.log("begin person"),54;case 29:return this.begin("system_ext_queue"),console.log("begin system_ext_queue"),61;case 30:return this.begin("system_ext_db"),console.log("begin system_ext_db"),60;case 31:return this.begin("system_ext"),console.log("begin system_ext"),59;case 32:return this.begin("system_queue"),console.log("begin system_queue"),58;case 33:return this.begin("system_db"),console.log("begin system_db"),57;case 34:return this.begin("system"),console.log("begin system"),56;case 35:return this.begin("boundary"),console.log("begin boundary"),47;case 36:return this.begin("enterprise_boundary"),console.log("begin enterprise_boundary"),44;case 37:return this.begin("system_boundary"),console.log("begin system_boundary"),46;case 38:return this.begin("container_ext_queue"),console.log("begin container_ext_queue"),67;case 39:return this.begin("container_ext_db"),console.log("begin container_ext_db"),66;case 40:return this.begin("container_ext"),console.log("begin container_ext"),65;case 41:return this.begin("container_queue"),console.log("begin container_queue"),64;case 42:return this.begin("container_db"),console.log("begin container_db"),63;case 43:return this.begin("container"),console.log("begin container"),62;case 44:return this.begin("container_boundary"),console.log("begin container_boundary"),48;case 45:return this.begin("component_ext_queue"),console.log("begin component_ext_queue"),73;case 46:return this.begin("component_ext_db"),console.log("begin component_ext_db"),72;case 47:return this.begin("component_ext"),console.log("begin component_ext"),71;case 48:return this.begin("component_queue"),console.log("begin component_queue"),70;case 49:return this.begin("component_db"),console.log("begin component_db"),69;case 50:return this.begin("component"),console.log("begin component"),68;case 51:case 52:return this.begin("node"),console.log("begin node"),49;case 53:return this.begin("node_l"),console.log("begin node_l"),50;case 54:return this.begin("node_r"),console.log("begin node_r"),51;case 55:return this.begin("rel"),console.log("begin rel"),74;case 56:return this.begin("birel"),console.log("begin birel"),75;case 57:case 58:return this.begin("rel_u"),console.log("begin rel_u"),76;case 59:case 60:return this.begin("rel_d"),console.log("begin rel_d"),77;case 61:case 62:return this.begin("rel_l"),console.log("begin rel_l"),78;case 63:case 64:return this.begin("rel_r"),console.log("begin rel_r"),79;case 65:return this.begin("rel_b"),console.log("begin rel_b"),80;case 66:return this.begin("rel_index"),console.log("begin rel_index"),81;case 67:return this.begin("update_el_style"),console.log("begin update_el_style"),82;case 68:return this.begin("update_rel_style"),console.log("begin update_rel_style"),83;case 69:return this.begin("update_layout_config"),console.log("begin update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return console.log("begin attribute with ATTRIBUTE_EMPTY"),this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:console.log("begin attribute"),this.begin("attribute");break;case 73:console.log("STOP attribute"),this.popState(),console.log("STOP diagram"),this.popState();break;case 74:return console.log(",,"),90;case 75:console.log(",");break;case 76:return console.log("ATTRIBUTE_EMPTY"),90;case 77:console.log("begin string"),this.begin("string");break;case 78:console.log("STOP string"),this.popState();break;case 79:return console.log("STR"),"STR";case 80:console.log("begin string_kv"),this.begin("string_kv");break;case 81:return console.log("STR_KEY"),this.begin("string_kv_key"),"STR_KEY";case 82:console.log("begin string_kv_value"),this.popState(),this.begin("string_kv_value");break;case 83:return console.log("STR_VALUE"),"STR_VALUE";case 84:console.log("STOP string_kv_value"),this.popState(),this.popState();break;case 85:return console.log("not STR"),"STR";case 86:return console.log("begin boundary block"),"LBRACE";case 87:return console.log("STOP boundary block"),"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};function Ar(){this.yy={}}return rn.lexer=Dr,Ar.prototype=rn,rn.Parser=Ar,new Ar}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(555).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},1362:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(ee,he,Mt,ie){for(Mt=Mt||{},ie=ee.length;ie--;Mt[ee[ie]]=he);return Mt},v=[1,3],_=[1,7],A=[1,8],M=[1,9],T=[1,10],O=[1,13],B=[1,12],z=[1,16,25],q=[1,20],J=[1,31],rt=[1,32],ut=[1,33],Z=[1,35],mt=[1,38],nt=[1,36],at=[1,37],_t=[1,39],jt=[1,40],St=[1,41],gt=[1,42],Ct=[1,45],vt=[1,46],ft=[1,47],Q=[1,48],ht=[16,25],$=[1,62],kt=[1,63],W=[1,64],At=[1,65],Nt=[1,66],Gt=[1,67],xe=[1,68],Ge=[16,25,32,44,45,53,56,57,58,59,60,61,62,67,69],Te=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,62,67,69,84,85,86,87],ye=[5,8,9,10,11,16,19,23,25],ke=[53,84,85,86,87],Me=[53,61,62,84,85,86,87],Oe=[53,56,57,58,59,60,84,85,86,87],we=[16,25,32],Sr=[1,100],_e={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,LOLLIPOP:60,LINE:61,DOTTED_LINE:62,CALLBACK:63,LINK:64,LINK_TARGET:65,CLICK:66,CALLBACK_NAME:67,CALLBACK_ARGS:68,HREF:69,CSSCLASS:70,commentToken:71,textToken:72,graphCodeTokens:73,textNoTagsToken: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:87,$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:"LOLLIPOP",61:"LINE",62:"DOTTED_LINE",63:"CALLBACK",64:"LINK",65:"LINK_TARGET",66:"CLICK",67:"CALLBACK_NAME",68:"CALLBACK_ARGS",69:"HREF",70:"CSSCLASS",73:"graphCodeTokens",75:"TAGSTART",76:"TAGEND",77:"==",78:"--",79:"PCT",80:"DEFAULT",81:"SPACE",82:"MINUS",83:"keywords",84:"UNICODE_TEXT",85:"NUM",86:"ALPHA",87:"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],[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],[71,1],[71,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[74,1],[74,1],[74,1],[74,1],[28,1],[28,1],[28,1],[29,1]],performAction:function(ee,he,Mt,ie,pt,wt,xt){var Rt=wt.length-1;switch(pt){case 5:ie.setDirection("TB");break;case 6:ie.setDirection("BT");break;case 7:ie.setDirection("RL");break;case 8:ie.setDirection("LR");break;case 12:ie.parseDirective("%%{","open_directive");break;case 13:ie.parseDirective(wt[Rt],"type_directive");break;case 14:wt[Rt]=wt[Rt].trim().replace(/'/g,'"'),ie.parseDirective(wt[Rt],"arg_directive");break;case 15:ie.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=wt[Rt];break;case 22:this.$=wt[Rt-1]+wt[Rt];break;case 23:case 24:this.$=wt[Rt-1]+"~"+wt[Rt];break;case 25:ie.addRelation(wt[Rt]);break;case 26:wt[Rt-1].title=ie.cleanupLabel(wt[Rt]),ie.addRelation(wt[Rt-1]);break;case 34:this.$=wt[Rt].trim(),ie.setAccTitle(this.$);break;case 35:case 36:this.$=wt[Rt].trim(),ie.setAccDescription(this.$);break;case 37:ie.addClass(wt[Rt]);break;case 38:ie.addClass(wt[Rt-2]),ie.setCssClass(wt[Rt-2],wt[Rt]);break;case 39:ie.addClass(wt[Rt-3]),ie.addMembers(wt[Rt-3],wt[Rt-1]);break;case 40:ie.addClass(wt[Rt-5]),ie.setCssClass(wt[Rt-5],wt[Rt-3]),ie.addMembers(wt[Rt-5],wt[Rt-1]);break;case 41:ie.addAnnotation(wt[Rt],wt[Rt-2]);break;case 42:this.$=[wt[Rt]];break;case 43:wt[Rt].push(wt[Rt-1]),this.$=wt[Rt];break;case 44:case 46:case 47:break;case 45:ie.addMember(wt[Rt-1],ie.cleanupLabel(wt[Rt]));break;case 48:this.$={id1:wt[Rt-2],id2:wt[Rt],relation:wt[Rt-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:wt[Rt-3],id2:wt[Rt],relation:wt[Rt-1],relationTitle1:wt[Rt-2],relationTitle2:"none"};break;case 50:this.$={id1:wt[Rt-3],id2:wt[Rt],relation:wt[Rt-2],relationTitle1:"none",relationTitle2:wt[Rt-1]};break;case 51:this.$={id1:wt[Rt-4],id2:wt[Rt],relation:wt[Rt-2],relationTitle1:wt[Rt-3],relationTitle2:wt[Rt-1]};break;case 52:this.$={type1:wt[Rt-2],type2:wt[Rt],lineType:wt[Rt-1]};break;case 53:this.$={type1:"none",type2:wt[Rt],lineType:wt[Rt-1]};break;case 54:this.$={type1:wt[Rt-1],type2:"none",lineType:wt[Rt]};break;case 55:this.$={type1:"none",type2:"none",lineType:wt[Rt]};break;case 56:this.$=ie.relationType.AGGREGATION;break;case 57:this.$=ie.relationType.EXTENSION;break;case 58:this.$=ie.relationType.COMPOSITION;break;case 59:this.$=ie.relationType.DEPENDENCY;break;case 60:this.$=ie.relationType.LOLLIPOP;break;case 61:this.$=ie.lineType.LINE;break;case 62:this.$=ie.lineType.DOTTED_LINE;break;case 63:case 69:this.$=wt[Rt-2],ie.setClickEvent(wt[Rt-1],wt[Rt]);break;case 64:case 70:this.$=wt[Rt-3],ie.setClickEvent(wt[Rt-2],wt[Rt-1]),ie.setTooltip(wt[Rt-2],wt[Rt]);break;case 65:case 73:this.$=wt[Rt-2],ie.setLink(wt[Rt-1],wt[Rt]);break;case 66:case 74:this.$=wt[Rt-3],ie.setLink(wt[Rt-2],wt[Rt-1],wt[Rt]);break;case 67:case 75:this.$=wt[Rt-3],ie.setLink(wt[Rt-2],wt[Rt-1]),ie.setTooltip(wt[Rt-2],wt[Rt]);break;case 68:case 76:this.$=wt[Rt-4],ie.setLink(wt[Rt-3],wt[Rt-2],wt[Rt]),ie.setTooltip(wt[Rt-3],wt[Rt-1]);break;case 71:this.$=wt[Rt-3],ie.setClickEvent(wt[Rt-2],wt[Rt-1],wt[Rt]);break;case 72:this.$=wt[Rt-4],ie.setClickEvent(wt[Rt-3],wt[Rt-2],wt[Rt-1]),ie.setTooltip(wt[Rt-3],wt[Rt]);break;case 77:ie.setCssClass(wt[Rt-1],wt[Rt])}},table:[{3:1,4:2,5:v,6:4,7:5,8:_,9:A,10:M,11:T,12:6,13:11,19:O,23:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:v,6:4,7:5,8:_,9:A,10:M,11:T,12:6,13:11,19:O,23:B},{1:[2,9]},f(z,[2,5]),f(z,[2,6]),f(z,[2,7]),f(z,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:q},f([17,22],[2,13]),{6:30,7:29,8:_,9:A,10:M,11:T,13:11,19:O,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:ut,43:Z,48:mt,50:nt,51:at,63:_t,64:jt,66:St,70:gt,84:Ct,85:vt,86:ft,87:Q},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},f(ht,[2,25],{32:[1,54]}),f(ht,[2,27]),f(ht,[2,28]),f(ht,[2,29]),f(ht,[2,30]),f(ht,[2,31]),f(ht,[2,32]),f(ht,[2,33]),{39:[1,55]},{41:[1,56]},f(ht,[2,36]),f(ht,[2,44],{52:57,54:60,55:61,32:[1,59],53:[1,58],56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe}),{27:69,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},f(ht,[2,46]),f(ht,[2,47]),{28:70,84:Ct,85:vt,86:ft},{27:71,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},{27:72,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},{27:73,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},{53:[1,74]},f(Ge,[2,20],{28:43,29:44,27:75,30:[1,76],84:Ct,85:vt,86:ft,87:Q}),f(Ge,[2,21],{30:[1,77]}),f(Te,[2,91]),f(Te,[2,92]),f(Te,[2,93]),f([16,25,30,32,44,45,53,56,57,58,59,60,61,62,67,69],[2,94]),f(ye,[2,10]),{15:78,22:q},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:_,9:A,10:M,11:T,13:11,19:O,24:79,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:ut,43:Z,48:mt,50:nt,51:at,63:_t,64:jt,66:St,70:gt,84:Ct,85:vt,86:ft,87:Q},f(ht,[2,26]),f(ht,[2,34]),f(ht,[2,35]),{27:80,28:43,29:44,53:[1,81],84:Ct,85:vt,86:ft,87:Q},{52:82,54:60,55:61,56:$,57:kt,58:W,59:At,60:Nt,61:Gt,62:xe},f(ht,[2,45]),{55:83,61:Gt,62:xe},f(ke,[2,55],{54:84,56:$,57:kt,58:W,59:At,60:Nt}),f(Me,[2,56]),f(Me,[2,57]),f(Me,[2,58]),f(Me,[2,59]),f(Me,[2,60]),f(Oe,[2,61]),f(Oe,[2,62]),f(ht,[2,37],{44:[1,85],45:[1,86]}),{49:[1,87]},{53:[1,88]},{53:[1,89]},{67:[1,90],69:[1,91]},{28:92,84:Ct,85:vt,86:ft},f(Ge,[2,22]),f(Ge,[2,23]),f(Ge,[2,24]),{16:[1,93]},{25:[2,19]},f(we,[2,48]),{27:94,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},{27:95,28:43,29:44,53:[1,96],84:Ct,85:vt,86:ft,87:Q},f(ke,[2,54],{54:97,56:$,57:kt,58:W,59:At,60:Nt}),f(ke,[2,53]),{28:98,84:Ct,85:vt,86:ft},{46:99,50:Sr},{27:101,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},f(ht,[2,63],{53:[1,102]}),f(ht,[2,65],{53:[1,104],65:[1,103]}),f(ht,[2,69],{53:[1,105],68:[1,106]}),f(ht,[2,73],{53:[1,108],65:[1,107]}),f(ht,[2,77]),f(ye,[2,11]),f(we,[2,50]),f(we,[2,49]),{27:109,28:43,29:44,84:Ct,85:vt,86:ft,87:Q},f(ke,[2,52]),f(ht,[2,38],{45:[1,110]}),{47:[1,111]},{46:112,47:[2,42],50:Sr},f(ht,[2,41]),f(ht,[2,64]),f(ht,[2,66]),f(ht,[2,67],{65:[1,113]}),f(ht,[2,70]),f(ht,[2,71],{53:[1,114]}),f(ht,[2,74]),f(ht,[2,75],{65:[1,115]}),f(we,[2,51]),{46:116,50:Sr},f(ht,[2,39]),{47:[2,43]},f(ht,[2,68]),f(ht,[2,72]),f(ht,[2,76]),{47:[1,117]},f(ht,[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],79:[2,19],112:[2,43]},parseError:function(ee,he){if(!he.recoverable){var Mt=new Error(ee);throw Mt.hash=he,Mt}this.trace(ee)},parse:function(ee){var he=this,Mt=[0],ie=[],pt=[null],wt=[],xt=this.table,Rt="",me=0,Pe=0,ar=0,Ze=2,ur=1,ze=wt.slice.call(arguments,1),Ce=Object.create(this.lexer),Be={yy:{}};for(var Fe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Fe)&&(Be.yy[Fe]=this.yy[Fe]);Ce.setInput(ee,Be.yy),Be.yy.lexer=Ce,Be.yy.parser=this,Ce.yylloc===void 0&&(Ce.yylloc={});var be=Ce.yylloc;wt.push(be);var se=Ce.options&&Ce.options.ranges;function Lr(){var vr;return typeof(vr=ie.pop()||Ce.lex()||ur)!="number"&&(vr instanceof Array&&(vr=(ie=vr).pop()),vr=he.symbols_[vr]||vr),vr}typeof Be.yy.parseError=="function"?this.parseError=Be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ue,dr,qe,gr,rn,Dr,Ar,De,rr,Qe={};;){if(qe=Mt[Mt.length-1],this.defaultActions[qe]?gr=this.defaultActions[qe]:(Ue==null&&(Ue=Lr()),gr=xt[qe]&&xt[qe][Ue]),gr===void 0||!gr.length||!gr[0]){var Ie="";for(Dr in rr=[],xt[qe])this.terminals_[Dr]&&Dr>Ze&&rr.push("'"+this.terminals_[Dr]+"'");Ie=Ce.showPosition?"Parse error on line "+(me+1)+`:
|
|
`+Ce.showPosition()+`
|
|
Expecting `+rr.join(", ")+", got '"+(this.terminals_[Ue]||Ue)+"'":"Parse error on line "+(me+1)+": Unexpected "+(Ue==ur?"end of input":"'"+(this.terminals_[Ue]||Ue)+"'"),this.parseError(Ie,{text:Ce.match,token:this.terminals_[Ue]||Ue,line:Ce.yylineno,loc:be,expected:rr})}if(gr[0]instanceof Array&&gr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+qe+", token: "+Ue);switch(gr[0]){case 1:Mt.push(Ue),pt.push(Ce.yytext),wt.push(Ce.yylloc),Mt.push(gr[1]),Ue=null,dr?(Ue=dr,dr=null):(Pe=Ce.yyleng,Rt=Ce.yytext,me=Ce.yylineno,be=Ce.yylloc,ar>0);break;case 2:if(Ar=this.productions_[gr[1]][1],Qe.$=pt[pt.length-Ar],Qe._$={first_line:wt[wt.length-(Ar||1)].first_line,last_line:wt[wt.length-1].last_line,first_column:wt[wt.length-(Ar||1)].first_column,last_column:wt[wt.length-1].last_column},se&&(Qe._$.range=[wt[wt.length-(Ar||1)].range[0],wt[wt.length-1].range[1]]),(rn=this.performAction.apply(Qe,[Rt,Pe,me,Be.yy,gr[1],pt,wt].concat(ze)))!==void 0)return rn;Ar&&(Mt=Mt.slice(0,-1*Ar*2),pt=pt.slice(0,-1*Ar),wt=wt.slice(0,-1*Ar)),Mt.push(this.productions_[gr[1]][0]),pt.push(Qe.$),wt.push(Qe._$),De=xt[Mt[Mt.length-2]][Mt[Mt.length-1]],Mt.push(De);break;case 3:return!0}}return!0}},er={EOF:1,parseError:function(ee,he){if(!this.yy.parser)throw new Error(ee);this.yy.parser.parseError(ee,he)},setInput:function(ee,he){return this.yy=he||this.yy||{},this._input=ee,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ee=this._input[0];return this.yytext+=ee,this.yyleng++,this.offset++,this.match+=ee,this.matched+=ee,ee.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ee},unput:function(ee){var he=ee.length,Mt=ee.split(/(?:\r\n?|\n)/g);this._input=ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var ie=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Mt.length-1&&(this.yylineno-=Mt.length-1);var pt=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:Mt?(Mt.length===ie.length?this.yylloc.first_column:0)+ie[ie.length-Mt.length].length-Mt[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[pt[0],pt[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(ee){this.unput(this.match.slice(ee))},pastInput:function(){var ee=this.matched.substr(0,this.matched.length-this.match.length);return(ee.length>20?"...":"")+ee.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ee=this.match;return ee.length<20&&(ee+=this._input.substr(0,20-ee.length)),(ee.substr(0,20)+(ee.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ee=this.pastInput(),he=new Array(ee.length+1).join("-");return ee+this.upcomingInput()+`
|
|
`+he+"^"},test_match:function(ee,he){var Mt,ie,pt;if(this.options.backtrack_lexer&&(pt={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&&(pt.yylloc.range=this.yylloc.range.slice(0))),(ie=ee[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ie.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ie?ie[ie.length-1].length-ie[ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ee[0].length},this.yytext+=ee[0],this.match+=ee[0],this.matches=ee,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ee[0].length),this.matched+=ee[0],Mt=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Mt)return Mt;if(this._backtrack){for(var wt in pt)this[wt]=pt[wt];return!1}return!1},next:function(){if(this.done)return this.EOF;var ee,he,Mt,ie;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var pt=this._currentRules(),wt=0;wt<pt.length;wt++)if((Mt=this._input.match(this.rules[pt[wt]]))&&(!he||Mt[0].length>he[0].length)){if(he=Mt,ie=wt,this.options.backtrack_lexer){if((ee=this.test_match(Mt,pt[wt]))!==!1)return ee;if(this._backtrack){he=!1;continue}return!1}if(!this.options.flex)break}return he?(ee=this.test_match(he,pt[ie]))!==!1&&ee:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(ee){this.conditionStack.push(ee)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ee){return(ee=this.conditionStack.length-1-Math.abs(ee||0))>=0?this.conditionStack[ee]:"INITIAL"},pushState:function(ee){this.begin(ee)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(ee,he,Mt,ie){switch(Mt){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 27: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 37:case 40:case 43:case 46:case 49:case 52: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"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),47;case 28:return"MEMBER";case 29:return 43;case 30:return 70;case 31:return 63;case 32:return 64;case 33:return 66;case 34:return 48;case 35:return 49;case 36:this.begin("generic");break;case 38:return"GENERICTYPE";case 39:this.begin("string");break;case 41:return"STR";case 42:this.begin("bqstring");break;case 44:return"BQUOTE_STR";case 45:this.begin("href");break;case 47:return 69;case 48:this.begin("callback_name");break;case 50:this.popState(),this.begin("callback_args");break;case 51:return 67;case 53:return 68;case 54:case 55:case 56:case 57:return 65;case 58:case 59:return 57;case 60:case 61:return 59;case 62:return 58;case 63:return 56;case 64:return 60;case 65:return 61;case 66:return 62;case 67:return 32;case 68:return 44;case 69:return 82;case 70:return"DOT";case 71:return"PLUS";case 72:return 79;case 73:case 74:return"EQUALS";case 75:return 86;case 76:return"PUNCTUATION";case 77:return 85;case 78:return 84;case 79:return 81;case 80: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)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],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:[52,53],inclusive:!1},callback_name:{rules:[49,50,51],inclusive:!1},href:{rules:[46,47],inclusive:!1},struct:{rules:[23,24,25,26,27,28],inclusive:!1},generic:{rules:[37,38],inclusive:!1},bqstring:{rules:[43,44],inclusive:!1},string:{rules:[40,41],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,29,30,31,32,33,34,35,36,39,42,45,48,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],inclusive:!0}}};function oe(){this.yy={}}return _e.lexer=er,oe.prototype=_e,_e.Parser=oe,new oe}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(8218).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},5890:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(Q,ht,$,kt){for($=$||{},kt=Q.length;kt--;$[Q[kt]]=ht);return $},v=[1,2],_=[1,5],A=[6,9,11,23,25,27,29,30,49],M=[1,17],T=[1,18],O=[1,19],B=[1,20],z=[1,21],q=[1,24],J=[1,29],rt=[1,30],ut=[1,31],Z=[1,32],mt=[6,9,11,15,20,23,25,27,29,30,42,43,44,45,49],nt=[1,45],at=[30,46,47],_t=[4,6,9,11,23,25,27,29,30,49],jt=[42,43,44,45],St=[22,37],gt=[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(Q,ht,$,kt,W,At,Nt){var Gt=At.length-1;switch(W){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:At[Gt-1].push(At[Gt]),this.$=At[Gt-1];break;case 5:case 6:case 20:case 28:case 29:case 30:case 40:this.$=At[Gt];break;case 12:kt.addEntity(At[Gt-4]),kt.addEntity(At[Gt-2]),kt.addRelationship(At[Gt-4],At[Gt],At[Gt-2],At[Gt-3]);break;case 13:kt.addEntity(At[Gt-3]),kt.addAttributes(At[Gt-3],At[Gt-1]);break;case 14:kt.addEntity(At[Gt-2]);break;case 15:kt.addEntity(At[Gt]);break;case 16:case 17:this.$=At[Gt].trim(),kt.setAccTitle(this.$);break;case 18:case 19:this.$=At[Gt].trim(),kt.setAccDescription(this.$);break;case 21:this.$=At[Gt-2]+At[Gt-1]+At[Gt];break;case 22:this.$=[At[Gt]];break;case 23:At[Gt].push(At[Gt-1]),this.$=At[Gt];break;case 24:this.$={attributeType:At[Gt-1],attributeName:At[Gt]};break;case 25:this.$={attributeType:At[Gt-2],attributeName:At[Gt-1],attributeKeyType:At[Gt]};break;case 26:this.$={attributeType:At[Gt-2],attributeName:At[Gt-1],attributeComment:At[Gt]};break;case 27:this.$={attributeType:At[Gt-3],attributeName:At[Gt-2],attributeKeyType:At[Gt-1],attributeComment:At[Gt]};break;case 31:case 39:this.$=At[Gt].replace(/"/g,"");break;case 32:this.$={cardA:At[Gt],relType:At[Gt-1],cardB:At[Gt-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(At[Gt],"type_directive");break;case 43:At[Gt]=At[Gt].trim().replace(/'/g,'"'),kt.parseDirective(At[Gt],"arg_directive");break;case 44:kt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:v,7:3,12:4,49:_},{1:[3]},f(A,[2,3],{5:6}),{3:7,4:v,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:T,27:O,29:B,30:z,49:_},{1:[2,2]},{14:22,15:[1,23],52:q},f([15,52],[2,42]),f(A,[2,8],{1:[2,1]}),f(A,[2,4]),{7:15,10:25,12:4,17:16,23:M,25:T,27:O,29:B,30:z,49:_},f(A,[2,6]),f(A,[2,7]),f(A,[2,11]),f(A,[2,15],{18:26,40:28,20:[1,27],42:J,43:rt,44:ut,45:Z}),{24:[1,33]},{26:[1,34]},{28:[1,35]},f(A,[2,19]),f(mt,[2,20],{31:[1,36]}),{11:[1,37]},{16:38,51:[1,39]},{11:[2,44]},f(A,[2,5]),{17:40,30:z},{21:41,22:[1,42],32:43,33:44,37:nt},{41:46,46:[1,47],47:[1,48]},f(at,[2,33]),f(at,[2,34]),f(at,[2,35]),f(at,[2,36]),f(A,[2,16]),f(A,[2,17]),f(A,[2,18]),{17:49,30:z},f(_t,[2,9]),{14:50,52:q},{52:[2,43]},{15:[1,51]},{22:[1,52]},f(A,[2,14]),{21:53,22:[2,22],32:43,33:44,37:nt},{34:54,37:[1,55]},{37:[2,28]},{40:56,42:J,43:rt,44:ut,45:Z},f(jt,[2,37]),f(jt,[2,38]),f(mt,[2,21]),{11:[1,57]},{19:58,30:[1,60],48:[1,59]},f(A,[2,13]),{22:[2,23]},f(St,[2,24],{35:61,36:62,38:[1,63],39:gt}),f([22,37,38,39],[2,29]),{30:[2,32]},f(_t,[2,10]),f(A,[2,12]),f(A,[2,39]),f(A,[2,40]),f(St,[2,25],{36:65,39:gt}),f(St,[2,26]),f([22,37,39],[2,30]),f(St,[2,31]),f(St,[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(Q,ht){if(!ht.recoverable){var $=new Error(Q);throw $.hash=ht,$}this.trace(Q)},parse:function(Q){var ht=this,$=[0],kt=[],W=[null],At=[],Nt=this.table,Gt="",xe=0,Ge=0,Te=0,ye=2,ke=1,Me=At.slice.call(arguments,1),Oe=Object.create(this.lexer),we={yy:{}};for(var Sr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Sr)&&(we.yy[Sr]=this.yy[Sr]);Oe.setInput(Q,we.yy),we.yy.lexer=Oe,we.yy.parser=this,Oe.yylloc===void 0&&(Oe.yylloc={});var _e=Oe.yylloc;At.push(_e);var er=Oe.options&&Oe.options.ranges;function oe(){var Ze;return typeof(Ze=kt.pop()||Oe.lex()||ke)!="number"&&(Ze instanceof Array&&(Ze=(kt=Ze).pop()),Ze=ht.symbols_[Ze]||Ze),Ze}typeof we.yy.parseError=="function"?this.parseError=we.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ee,he,Mt,ie,pt,wt,xt,Rt,me,Pe={};;){if(Mt=$[$.length-1],this.defaultActions[Mt]?ie=this.defaultActions[Mt]:(ee==null&&(ee=oe()),ie=Nt[Mt]&&Nt[Mt][ee]),ie===void 0||!ie.length||!ie[0]){var ar="";for(wt in me=[],Nt[Mt])this.terminals_[wt]&&wt>ye&&me.push("'"+this.terminals_[wt]+"'");ar=Oe.showPosition?"Parse error on line "+(xe+1)+`:
|
|
`+Oe.showPosition()+`
|
|
Expecting `+me.join(", ")+", got '"+(this.terminals_[ee]||ee)+"'":"Parse error on line "+(xe+1)+": Unexpected "+(ee==ke?"end of input":"'"+(this.terminals_[ee]||ee)+"'"),this.parseError(ar,{text:Oe.match,token:this.terminals_[ee]||ee,line:Oe.yylineno,loc:_e,expected:me})}if(ie[0]instanceof Array&&ie.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Mt+", token: "+ee);switch(ie[0]){case 1:$.push(ee),W.push(Oe.yytext),At.push(Oe.yylloc),$.push(ie[1]),ee=null,he?(ee=he,he=null):(Ge=Oe.yyleng,Gt=Oe.yytext,xe=Oe.yylineno,_e=Oe.yylloc,Te>0);break;case 2:if(xt=this.productions_[ie[1]][1],Pe.$=W[W.length-xt],Pe._$={first_line:At[At.length-(xt||1)].first_line,last_line:At[At.length-1].last_line,first_column:At[At.length-(xt||1)].first_column,last_column:At[At.length-1].last_column},er&&(Pe._$.range=[At[At.length-(xt||1)].range[0],At[At.length-1].range[1]]),(pt=this.performAction.apply(Pe,[Gt,Ge,xe,we.yy,ie[1],W,At].concat(Me)))!==void 0)return pt;xt&&($=$.slice(0,-1*xt*2),W=W.slice(0,-1*xt),At=At.slice(0,-1*xt)),$.push(this.productions_[ie[1]][0]),W.push(Pe.$),At.push(Pe._$),Rt=Nt[$[$.length-2]][$[$.length-1]],$.push(Rt);break;case 3:return!0}}return!0}},vt={EOF:1,parseError:function(Q,ht){if(!this.yy.parser)throw new Error(Q);this.yy.parser.parseError(Q,ht)},setInput:function(Q,ht){return this.yy=ht||this.yy||{},this._input=Q,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 Q=this._input[0];return this.yytext+=Q,this.yyleng++,this.offset++,this.match+=Q,this.matched+=Q,Q.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),Q},unput:function(Q){var ht=Q.length,$=Q.split(/(?:\r\n?|\n)/g);this._input=Q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ht),this.offset-=ht;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),$.length-1&&(this.yylineno-=$.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:$?($.length===kt.length?this.yylloc.first_column:0)+kt[kt.length-$.length].length-$[0].length:this.yylloc.first_column-ht},this.options.ranges&&(this.yylloc.range=[W[0],W[0]+this.yyleng-ht]),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(Q){this.unput(this.match.slice(Q))},pastInput:function(){var Q=this.matched.substr(0,this.matched.length-this.match.length);return(Q.length>20?"...":"")+Q.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Q=this.match;return Q.length<20&&(Q+=this._input.substr(0,20-Q.length)),(Q.substr(0,20)+(Q.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Q=this.pastInput(),ht=new Array(Q.length+1).join("-");return Q+this.upcomingInput()+`
|
|
`+ht+"^"},test_match:function(Q,ht){var $,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=Q[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+Q[0].length},this.yytext+=Q[0],this.match+=Q[0],this.matches=Q,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(Q[0].length),this.matched+=Q[0],$=this.performAction.call(this,this.yy,this,ht,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),$)return $;if(this._backtrack){for(var At in W)this[At]=W[At];return!1}return!1},next:function(){if(this.done)return this.EOF;var Q,ht,$,kt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var W=this._currentRules(),At=0;At<W.length;At++)if(($=this._input.match(this.rules[W[At]]))&&(!ht||$[0].length>ht[0].length)){if(ht=$,kt=At,this.options.backtrack_lexer){if((Q=this.test_match($,W[At]))!==!1)return Q;if(this._backtrack){ht=!1;continue}return!1}if(!this.options.flex)break}return ht?(Q=this.test_match(ht,W[kt]))!==!1&&Q: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(Q){this.conditionStack.push(Q)},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(Q){return(Q=this.conditionStack.length-1-Math.abs(Q||0))>=0?this.conditionStack[Q]:"INITIAL"},pushState:function(Q){this.begin(Q)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Q,ht,$,kt){switch($){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 25: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:case 23:return 37;case 24:return 39;case 26:return this.popState(),22;case 27:case 40:return ht.yytext[0];case 28:case 32:return 42;case 29:case 33:return 43;case 30:case 34:return 44;case 31:return 45;case 35:case 37:case 38:return 46;case 36:return 47;case 39:return 30;case 41: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,/^(?:(.*?)[~](.*?)*[~])/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,27],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,28,29,30,31,32,33,34,35,36,37,38,39,40,41],inclusive:!0}}};function ft(){this.yy={}}return Ct.lexer=vt,ft.prototype=Ct,Ct.Parser=ft,new ft}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(8009).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},3602:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(sr,Qr,cr,or){for(cr=cr||{},or=sr.length;or--;cr[sr[or]]=Qr);return cr},v=[1,9],_=[1,7],A=[1,6],M=[1,8],T=[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],O=[2,10],B=[1,20],z=[1,21],q=[1,22],J=[1,23],rt=[1,30],ut=[1,32],Z=[1,33],mt=[1,34],nt=[1,62],at=[1,48],_t=[1,52],jt=[1,36],St=[1,37],gt=[1,38],Ct=[1,39],vt=[1,40],ft=[1,56],Q=[1,63],ht=[1,51],$=[1,53],kt=[1,55],W=[1,59],At=[1,60],Nt=[1,41],Gt=[1,42],xe=[1,43],Ge=[1,44],Te=[1,61],ye=[1,50],ke=[1,54],Me=[1,57],Oe=[1,58],we=[1,49],Sr=[1,66],_e=[1,71],er=[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],oe=[1,75],ee=[1,74],he=[1,76],Mt=[20,21,23,81,82],ie=[1,99],pt=[1,104],wt=[1,107],xt=[1,108],Rt=[1,101],me=[1,106],Pe=[1,109],ar=[1,102],Ze=[1,114],ur=[1,113],ze=[1,103],Ce=[1,105],Be=[1,110],Fe=[1,111],be=[1,112],se=[1,115],Lr=[20,21,22,23,81,82],Ue=[20,21,22,23,53,81,82],dr=[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],qe=[20,21,23],gr=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],rn=[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],Dr=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],Ar=[1,149],De=[1,157],rr=[1,158],Qe=[1,159],Ie=[1,160],vr=[1,144],Ot=[1,145],kn=[1,141],Vt=[1,152],qr=[1,153],zr=[1,154],Zr=[1,155],Mr=[1,156],Xr=[1,161],Pr=[1,162],Cr=[1,147],Ur=[1,150],Yr=[1,146],jr=[1,143],ya=[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],On=[1,165],Cn=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Ir=[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],ui=[12,21,22,24],Or=[22,106],En=[1,250],Ln=[1,245],vn=[1,246],Zn=[1,254],Bt=[1,251],Mn=[1,248],Rn=[1,247],Kr=[1,249],ti=[1,252],Wn=[1,253],Un=[1,255],ei=[1,273],Ta=[20,21,23,106],dn=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],aa={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(sr,Qr,cr,or,on,Kt,Ai){var re=Kt.length-1;switch(on){case 5:or.parseDirective("%%{","open_directive");break;case 6:or.parseDirective(Kt[re],"type_directive");break;case 7:Kt[re]=Kt[re].trim().replace(/'/g,'"'),or.parseDirective(Kt[re],"arg_directive");break;case 8:or.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:Kt[re]!==[]&&Kt[re-1].push(Kt[re]),this.$=Kt[re-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=Kt[re];break;case 19:or.setDirection("TB"),this.$="TB";break;case 20:or.setDirection(Kt[re-1]),this.$=Kt[re-1];break;case 35:this.$=Kt[re-1].nodes;break;case 41:this.$=or.addSubGraph(Kt[re-6],Kt[re-1],Kt[re-4]);break;case 42:this.$=or.addSubGraph(Kt[re-3],Kt[re-1],Kt[re-3]);break;case 43:this.$=or.addSubGraph(void 0,Kt[re-1],void 0);break;case 45:this.$=Kt[re].trim(),or.setAccTitle(this.$);break;case 46:case 47:this.$=Kt[re].trim(),or.setAccDescription(this.$);break;case 51:or.addLink(Kt[re-2].stmt,Kt[re],Kt[re-1]),this.$={stmt:Kt[re],nodes:Kt[re].concat(Kt[re-2].nodes)};break;case 52:or.addLink(Kt[re-3].stmt,Kt[re-1],Kt[re-2]),this.$={stmt:Kt[re-1],nodes:Kt[re-1].concat(Kt[re-3].nodes)};break;case 53:this.$={stmt:Kt[re-1],nodes:Kt[re-1]};break;case 54:this.$={stmt:Kt[re],nodes:Kt[re]};break;case 55:case 123:case 125:this.$=[Kt[re]];break;case 56:this.$=Kt[re-4].concat(Kt[re]);break;case 57:this.$=[Kt[re-2]],or.setClass(Kt[re-2],Kt[re]);break;case 58:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"square");break;case 59:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"doublecircle");break;case 60:this.$=Kt[re-5],or.addVertex(Kt[re-5],Kt[re-2],"circle");break;case 61:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"ellipse");break;case 62:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"stadium");break;case 63:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"subroutine");break;case 64:this.$=Kt[re-7],or.addVertex(Kt[re-7],Kt[re-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Kt[re-5],Kt[re-3]]]));break;case 65:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"cylinder");break;case 66:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"round");break;case 67:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"diamond");break;case 68:this.$=Kt[re-5],or.addVertex(Kt[re-5],Kt[re-2],"hexagon");break;case 69:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"odd");break;case 70:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"trapezoid");break;case 71:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"inv_trapezoid");break;case 72:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"lean_right");break;case 73:this.$=Kt[re-3],or.addVertex(Kt[re-3],Kt[re-1],"lean_left");break;case 74:this.$=Kt[re],or.addVertex(Kt[re]);break;case 75:Kt[re-1].text=Kt[re],this.$=Kt[re-1];break;case 76:case 77:Kt[re-2].text=Kt[re-1],this.$=Kt[re-2];break;case 79:var Tn=or.destructLink(Kt[re],Kt[re-2]);this.$={type:Tn.type,stroke:Tn.stroke,length:Tn.length,text:Kt[re-1]};break;case 80:Tn=or.destructLink(Kt[re]),this.$={type:Tn.type,stroke:Tn.stroke,length:Tn.length};break;case 81:this.$=Kt[re-1];break;case 83:case 97:case 153:case 151:this.$=Kt[re-1]+""+Kt[re];break;case 98:case 99:this.$=Kt[re-4],or.addClass(Kt[re-2],Kt[re]);break;case 100:this.$=Kt[re-4],or.setClass(Kt[re-2],Kt[re]);break;case 101:case 109:this.$=Kt[re-1],or.setClickEvent(Kt[re-1],Kt[re]);break;case 102:case 110:this.$=Kt[re-3],or.setClickEvent(Kt[re-3],Kt[re-2]),or.setTooltip(Kt[re-3],Kt[re]);break;case 103:this.$=Kt[re-2],or.setClickEvent(Kt[re-2],Kt[re-1],Kt[re]);break;case 104:this.$=Kt[re-4],or.setClickEvent(Kt[re-4],Kt[re-3],Kt[re-2]),or.setTooltip(Kt[re-4],Kt[re]);break;case 105:case 111:this.$=Kt[re-1],or.setLink(Kt[re-1],Kt[re]);break;case 106:case 112:this.$=Kt[re-3],or.setLink(Kt[re-3],Kt[re-2]),or.setTooltip(Kt[re-3],Kt[re]);break;case 107:case 113:this.$=Kt[re-3],or.setLink(Kt[re-3],Kt[re-2],Kt[re]);break;case 108:case 114:this.$=Kt[re-5],or.setLink(Kt[re-5],Kt[re-4],Kt[re]),or.setTooltip(Kt[re-5],Kt[re-2]);break;case 115:this.$=Kt[re-4],or.addVertex(Kt[re-2],void 0,void 0,Kt[re]);break;case 116:case 118:this.$=Kt[re-4],or.updateLink(Kt[re-2],Kt[re]);break;case 117:this.$=Kt[re-4],or.updateLink([Kt[re-2]],Kt[re]);break;case 119:this.$=Kt[re-8],or.updateLinkInterpolate([Kt[re-6]],Kt[re-2]),or.updateLink([Kt[re-6]],Kt[re]);break;case 120:this.$=Kt[re-8],or.updateLinkInterpolate(Kt[re-6],Kt[re-2]),or.updateLink(Kt[re-6],Kt[re]);break;case 121:this.$=Kt[re-6],or.updateLinkInterpolate([Kt[re-4]],Kt[re]);break;case 122:this.$=Kt[re-6],or.updateLinkInterpolate(Kt[re-4],Kt[re]);break;case 124:case 126:Kt[re-2].push(Kt[re]),this.$=Kt[re-2];break;case 128:this.$=Kt[re-1]+Kt[re];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:v,16:4,21:_,22:A,24:M},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:v,16:4,21:_,22:A,24:M},f(T,O,{17:11}),{7:12,13:[1,13]},{16:14,21:_,22:A,24:M},{16:15,21:_,22:A,24:M},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:B,21:z,22:q,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,43:31,44:ut,46:Z,48:mt,50:35,51:45,52:nt,54:46,66:at,67:_t,86:jt,87:St,88:gt,89:Ct,90:vt,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,118:Nt,119:Gt,120:xe,121:Ge,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},{8:64,10:[1,65],15:Sr},f([10,15],[2,6]),f(T,[2,17]),f(T,[2,18]),f(T,[2,19]),{20:[1,68],21:[1,69],22:_e,27:67,30:70},f(er,[2,11]),f(er,[2,12]),f(er,[2,13]),f(er,[2,14]),f(er,[2,15]),f(er,[2,16]),{9:72,20:oe,21:ee,23:he,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:oe,21:ee,23:he},{9:81,20:oe,21:ee,23:he},{9:82,20:oe,21:ee,23:he},{9:83,20:oe,21:ee,23:he},{9:84,20:oe,21:ee,23:he},{9:86,20:oe,21:ee,22:[1,85],23:he},f(er,[2,44]),{45:[1,87]},{47:[1,88]},f(er,[2,47]),f(Mt,[2,54],{30:89,22:_e}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:ie,52:pt,66:wt,67:xt,84:[1,97],91:Rt,97:96,98:[1,94],100:[1,95],105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(er,[2,158]),f(er,[2,159]),f(er,[2,160]),f(er,[2,161]),f(Lr,[2,55],{53:[1,116]}),f(Ue,[2,74],{116:129,40:[1,117],52:nt,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:at,67:_t,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we}),f(dr,[2,150]),f(dr,[2,175]),f(dr,[2,176]),f(dr,[2,177]),f(dr,[2,178]),f(dr,[2,179]),f(dr,[2,180]),f(dr,[2,181]),f(dr,[2,182]),f(dr,[2,183]),f(dr,[2,184]),f(dr,[2,185]),f(dr,[2,186]),f(dr,[2,187]),f(dr,[2,188]),f(dr,[2,189]),f(dr,[2,190]),{9:130,20:oe,21:ee,23:he},{11:131,14:[1,132]},f(qe,[2,8]),f(T,[2,20]),f(T,[2,26]),f(T,[2,27]),{21:[1,133]},f(gr,[2,34],{30:134,22:_e}),f(er,[2,35]),{50:135,51:45,52:nt,54:46,66:at,67:_t,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},f(rn,[2,48]),f(rn,[2,49]),f(rn,[2,50]),f(Dr,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:Ar,24:De,26:rr,38:Qe,39:139,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),f(er,[2,36]),f(er,[2,37]),f(er,[2,38]),f(er,[2,39]),f(er,[2,40]),{22:Ar,24:De,26:rr,38:Qe,39:163,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(ya,O,{17:164}),f(er,[2,45]),f(er,[2,46]),f(Mt,[2,53],{52:On}),{26:ie,52:pt,66:wt,67:xt,91:Rt,97:166,102:[1,167],105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{95:[1,168],103:169,105:[1,170]},{26:ie,52:pt,66:wt,67:xt,91:Rt,95:[1,171],97:172,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{26:ie,52:pt,66:wt,67:xt,91:Rt,97:173,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(qe,[2,101],{22:[1,174],99:[1,175]}),f(qe,[2,105],{22:[1,176]}),f(qe,[2,109],{115:100,117:178,22:[1,177],26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se}),f(qe,[2,111],{22:[1,179]}),f(Cn,[2,152]),f(Cn,[2,154]),f(Cn,[2,155]),f(Cn,[2,156]),f(Cn,[2,157]),f(Ir,[2,162]),f(Ir,[2,163]),f(Ir,[2,164]),f(Ir,[2,165]),f(Ir,[2,166]),f(Ir,[2,167]),f(Ir,[2,168]),f(Ir,[2,169]),f(Ir,[2,170]),f(Ir,[2,171]),f(Ir,[2,172]),f(Ir,[2,173]),f(Ir,[2,174]),{52:nt,54:180,66:at,67:_t,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},{22:Ar,24:De,26:rr,38:Qe,39:181,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:182,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:184,42:Ie,52:pt,57:[1,183],66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:185,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:186,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:187,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{66:[1,188]},{22:Ar,24:De,26:rr,38:Qe,39:189,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:190,42:Ie,52:pt,66:wt,67:xt,71:[1,191],73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:192,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:193,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:194,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(dr,[2,151]),f(ui,[2,3]),{8:195,15:Sr},{15:[2,7]},f(T,[2,28]),f(gr,[2,33]),f(Mt,[2,51],{30:196,22:_e}),f(Dr,[2,75],{22:[1,197]}),{22:[1,198]},{22:Ar,24:De,26:rr,38:Qe,39:199,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,82:[1,200],83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(Ir,[2,82]),f(Ir,[2,84]),f(Ir,[2,140]),f(Ir,[2,141]),f(Ir,[2,142]),f(Ir,[2,143]),f(Ir,[2,144]),f(Ir,[2,145]),f(Ir,[2,146]),f(Ir,[2,147]),f(Ir,[2,148]),f(Ir,[2,149]),f(Ir,[2,85]),f(Ir,[2,86]),f(Ir,[2,87]),f(Ir,[2,88]),f(Ir,[2,89]),f(Ir,[2,90]),f(Ir,[2,91]),f(Ir,[2,92]),f(Ir,[2,93]),f(Ir,[2,94]),f(Ir,[2,95]),{9:203,20:oe,21:ee,22:Ar,23:he,24:De,26:rr,38:Qe,40:[1,202],42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{18:18,19:19,20:B,21:z,22:q,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,42:[1,204],43:31,44:ut,46:Z,48:mt,50:35,51:45,52:nt,54:46,66:at,67:_t,86:jt,87:St,88:gt,89:Ct,90:vt,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,118:Nt,119:Gt,120:xe,121:Ge,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},{22:_e,30:205},{22:[1,206],26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:178,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},f(Or,[2,123]),{22:[1,211]},{22:[1,212],26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:178,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:[1,213],26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:178,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{84:[1,214]},f(qe,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},f(Cn,[2,153]),{84:[1,219],101:[1,220]},f(Lr,[2,57],{116:129,52:nt,66:at,67:_t,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we}),{22:Ar,24:De,26:rr,38:Qe,41:[1,221],42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,56:[1,222],66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:223,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,58:[1,224],66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,60:[1,225],66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,62:[1,226],66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,64:[1,227],66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{67:[1,228]},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,70:[1,229],73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,72:[1,230],73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,39:231,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,41:[1,232],42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,73:vr,75:[1,233],77:[1,234],81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,73:vr,75:[1,236],77:[1,235],81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{9:237,20:oe,21:ee,23:he},f(Mt,[2,52],{52:On}),f(Dr,[2,77]),f(Dr,[2,76]),{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,68:[1,238],73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(Dr,[2,79]),f(Ir,[2,83]),{22:Ar,24:De,26:rr,38:Qe,39:239,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(ya,O,{17:240}),f(er,[2,43]),{51:241,52:nt,54:46,66:at,67:_t,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},{22:En,66:Ln,67:vn,86:Zn,96:242,102:Bt,105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{22:En,66:Ln,67:vn,86:Zn,96:256,102:Bt,105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{22:En,66:Ln,67:vn,86:Zn,96:257,102:Bt,104:[1,258],105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{22:En,66:Ln,67:vn,86:Zn,96:259,102:Bt,104:[1,260],105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{105:[1,261]},{22:En,66:Ln,67:vn,86:Zn,96:262,102:Bt,105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{22:En,66:Ln,67:vn,86:Zn,96:263,102:Bt,105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{26:ie,52:pt,66:wt,67:xt,91:Rt,97:264,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(qe,[2,102]),{84:[1,265]},f(qe,[2,106],{22:[1,266]}),f(qe,[2,107]),f(qe,[2,110]),f(qe,[2,112],{22:[1,267]}),f(qe,[2,113]),f(Ue,[2,58]),f(Ue,[2,59]),{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,58:[1,268],66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(Ue,[2,66]),f(Ue,[2,61]),f(Ue,[2,62]),f(Ue,[2,63]),{66:[1,269]},f(Ue,[2,65]),f(Ue,[2,67]),{22:Ar,24:De,26:rr,38:Qe,42:Ie,52:pt,66:wt,67:xt,72:[1,270],73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(Ue,[2,69]),f(Ue,[2,70]),f(Ue,[2,72]),f(Ue,[2,71]),f(Ue,[2,73]),f(ui,[2,4]),f([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:Ar,24:De,26:rr,38:Qe,41:[1,271],42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{18:18,19:19,20:B,21:z,22:q,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,42:[1,272],43:31,44:ut,46:Z,48:mt,50:35,51:45,52:nt,54:46,66:at,67:_t,86:jt,87:St,88:gt,89:Ct,90:vt,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,118:Nt,119:Gt,120:xe,121:Ge,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},f(Lr,[2,56]),f(qe,[2,115],{106:ei}),f(Ta,[2,125],{108:274,22:En,66:Ln,67:vn,86:Zn,102:Bt,105:Mn,109:Rn,110:Kr,111:ti,112:Wn,113:Un}),f(dn,[2,127]),f(dn,[2,129]),f(dn,[2,130]),f(dn,[2,131]),f(dn,[2,132]),f(dn,[2,133]),f(dn,[2,134]),f(dn,[2,135]),f(dn,[2,136]),f(dn,[2,137]),f(dn,[2,138]),f(dn,[2,139]),f(qe,[2,116],{106:ei}),f(qe,[2,117],{106:ei}),{22:[1,275]},f(qe,[2,118],{106:ei}),{22:[1,276]},f(Or,[2,124]),f(qe,[2,98],{106:ei}),f(qe,[2,99],{106:ei}),f(qe,[2,100],{115:100,117:178,26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se}),f(qe,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:oe,21:ee,23:he},f(er,[2,42]),{22:En,66:Ln,67:vn,86:Zn,102:Bt,105:Mn,107:283,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},f(dn,[2,128]),{26:ie,52:pt,66:wt,67:xt,91:Rt,97:284,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{26:ie,52:pt,66:wt,67:xt,91:Rt,97:285,105:me,106:Pe,109:ar,111:Ze,112:ur,115:100,117:98,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(qe,[2,108]),f(qe,[2,114]),f(Ue,[2,60]),{22:Ar,24:De,26:rr,38:Qe,39:286,42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:140,84:kn,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},f(Ue,[2,68]),f(ya,O,{17:287}),f(Ta,[2,126],{108:274,22:En,66:Ln,67:vn,86:Zn,102:Bt,105:Mn,109:Rn,110:Kr,111:ti,112:Wn,113:Un}),f(qe,[2,121],{115:100,117:178,22:[1,288],26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se}),f(qe,[2,122],{115:100,117:178,22:[1,289],26:ie,52:pt,66:wt,67:xt,91:Rt,105:me,106:Pe,109:ar,111:Ze,112:ur,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se}),{22:Ar,24:De,26:rr,38:Qe,41:[1,290],42:Ie,52:pt,66:wt,67:xt,73:vr,81:Ot,83:201,85:151,86:Vt,87:qr,88:zr,89:Zr,90:Mr,91:Xr,92:Pr,94:142,95:Cr,105:me,106:Pe,109:Ur,111:Ze,112:ur,113:Yr,114:jr,115:148,122:ze,123:Ce,124:Be,125:Fe,126:be,127:se},{18:18,19:19,20:B,21:z,22:q,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,42:[1,291],43:31,44:ut,46:Z,48:mt,50:35,51:45,52:nt,54:46,66:at,67:_t,86:jt,87:St,88:gt,89:Ct,90:vt,91:ft,95:Q,105:ht,106:$,109:kt,111:W,112:At,116:47,118:Nt,119:Gt,120:xe,121:Ge,122:Te,123:ye,124:ke,125:Me,126:Oe,127:we},{22:En,66:Ln,67:vn,86:Zn,96:292,102:Bt,105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},{22:En,66:Ln,67:vn,86:Zn,96:293,102:Bt,105:Mn,107:243,108:244,109:Rn,110:Kr,111:ti,112:Wn,113:Un},f(Ue,[2,64]),f(er,[2,41]),f(qe,[2,119],{106:ei}),f(qe,[2,120],{106:ei})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(sr,Qr){if(!Qr.recoverable){var cr=new Error(sr);throw cr.hash=Qr,cr}this.trace(sr)},parse:function(sr){var Qr=this,cr=[0],or=[],on=[null],Kt=[],Ai=this.table,re="",Tn=0,Bn=0,Xn=0,fi=2,Sa=1,gn=Kt.slice.call(arguments,1),Er=Object.create(this.lexer),sa={yy:{}};for(var Rr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Rr)&&(sa.yy[Rr]=this.yy[Rr]);Er.setInput(sr,sa.yy),sa.yy.lexer=Er,sa.yy.parser=this,Er.yylloc===void 0&&(Er.yylloc={});var wi=Er.yylloc;Kt.push(wi);var hi=Er.options&&Er.options.ranges;function Bi(){var ii;return typeof(ii=or.pop()||Er.lex()||Sa)!="number"&&(ii instanceof Array&&(ii=(or=ii).pop()),ii=Qr.symbols_[ii]||ii),ii}typeof sa.yy.parseError=="function"?this.parseError=sa.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var fn,ri,Kn,Jn,oi,Ci,Qn,Aa,Fa,_n={};;){if(Kn=cr[cr.length-1],this.defaultActions[Kn]?Jn=this.defaultActions[Kn]:(fn==null&&(fn=Bi()),Jn=Ai[Kn]&&Ai[Kn][fn]),Jn===void 0||!Jn.length||!Jn[0]){var ni="";for(Ci in Fa=[],Ai[Kn])this.terminals_[Ci]&&Ci>fi&&Fa.push("'"+this.terminals_[Ci]+"'");ni=Er.showPosition?"Parse error on line "+(Tn+1)+`:
|
|
`+Er.showPosition()+`
|
|
Expecting `+Fa.join(", ")+", got '"+(this.terminals_[fn]||fn)+"'":"Parse error on line "+(Tn+1)+": Unexpected "+(fn==Sa?"end of input":"'"+(this.terminals_[fn]||fn)+"'"),this.parseError(ni,{text:Er.match,token:this.terminals_[fn]||fn,line:Er.yylineno,loc:wi,expected:Fa})}if(Jn[0]instanceof Array&&Jn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Kn+", token: "+fn);switch(Jn[0]){case 1:cr.push(fn),on.push(Er.yytext),Kt.push(Er.yylloc),cr.push(Jn[1]),fn=null,ri?(fn=ri,ri=null):(Bn=Er.yyleng,re=Er.yytext,Tn=Er.yylineno,wi=Er.yylloc,Xn>0);break;case 2:if(Qn=this.productions_[Jn[1]][1],_n.$=on[on.length-Qn],_n._$={first_line:Kt[Kt.length-(Qn||1)].first_line,last_line:Kt[Kt.length-1].last_line,first_column:Kt[Kt.length-(Qn||1)].first_column,last_column:Kt[Kt.length-1].last_column},hi&&(_n._$.range=[Kt[Kt.length-(Qn||1)].range[0],Kt[Kt.length-1].range[1]]),(oi=this.performAction.apply(_n,[re,Bn,Tn,sa.yy,Jn[1],on,Kt].concat(gn)))!==void 0)return oi;Qn&&(cr=cr.slice(0,-1*Qn*2),on=on.slice(0,-1*Qn),Kt=Kt.slice(0,-1*Qn)),cr.push(this.productions_[Jn[1]][0]),on.push(_n.$),Kt.push(_n._$),Aa=Ai[cr[cr.length-2]][cr[cr.length-1]],cr.push(Aa);break;case 3:return!0}}return!0}},oa={EOF:1,parseError:function(sr,Qr){if(!this.yy.parser)throw new Error(sr);this.yy.parser.parseError(sr,Qr)},setInput:function(sr,Qr){return this.yy=Qr||this.yy||{},this._input=sr,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 sr=this._input[0];return this.yytext+=sr,this.yyleng++,this.offset++,this.match+=sr,this.matched+=sr,sr.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),sr},unput:function(sr){var Qr=sr.length,cr=sr.split(/(?:\r\n?|\n)/g);this._input=sr+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qr),this.offset-=Qr;var or=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),cr.length-1&&(this.yylineno-=cr.length-1);var on=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:cr?(cr.length===or.length?this.yylloc.first_column:0)+or[or.length-cr.length].length-cr[0].length:this.yylloc.first_column-Qr},this.options.ranges&&(this.yylloc.range=[on[0],on[0]+this.yyleng-Qr]),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(sr){this.unput(this.match.slice(sr))},pastInput:function(){var sr=this.matched.substr(0,this.matched.length-this.match.length);return(sr.length>20?"...":"")+sr.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var sr=this.match;return sr.length<20&&(sr+=this._input.substr(0,20-sr.length)),(sr.substr(0,20)+(sr.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var sr=this.pastInput(),Qr=new Array(sr.length+1).join("-");return sr+this.upcomingInput()+`
|
|
`+Qr+"^"},test_match:function(sr,Qr){var cr,or,on;if(this.options.backtrack_lexer&&(on={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&&(on.yylloc.range=this.yylloc.range.slice(0))),(or=sr[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=or.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:or?or[or.length-1].length-or[or.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+sr[0].length},this.yytext+=sr[0],this.match+=sr[0],this.matches=sr,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(sr[0].length),this.matched+=sr[0],cr=this.performAction.call(this,this.yy,this,Qr,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),cr)return cr;if(this._backtrack){for(var Kt in on)this[Kt]=on[Kt];return!1}return!1},next:function(){if(this.done)return this.EOF;var sr,Qr,cr,or;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var on=this._currentRules(),Kt=0;Kt<on.length;Kt++)if((cr=this._input.match(this.rules[on[Kt]]))&&(!Qr||cr[0].length>Qr[0].length)){if(Qr=cr,or=Kt,this.options.backtrack_lexer){if((sr=this.test_match(cr,on[Kt]))!==!1)return sr;if(this._backtrack){Qr=!1;continue}return!1}if(!this.options.flex)break}return Qr?(sr=this.test_match(Qr,on[or]))!==!1&&sr: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(sr){this.conditionStack.push(sr)},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(sr){return(sr=this.conditionStack.length-1-Math.abs(sr||0))>=0?this.conditionStack[sr]:"INITIAL"},pushState:function(sr){this.begin(sr)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(sr,Qr,cr,or){switch(cr){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 sr.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 Ri(){this.yy={}}return aa.lexer=oa,Ri.prototype=aa,aa.Parser=Ri,new Ri}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(5354).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},9959:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(ft,Q,ht,$){for(ht=ht||{},$=ft.length;$--;ht[ft[$]]=Q);return ht},v=[1,3],_=[1,5],A=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],M=[1,15],T=[1,16],O=[1,17],B=[1,18],z=[1,19],q=[1,20],J=[1,21],rt=[1,22],ut=[1,23],Z=[1,24],mt=[1,25],nt=[1,26],at=[1,28],_t=[1,30],jt=[1,33],St=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],gt={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(ft,Q,ht,$,kt,W,At){var Nt=W.length-1;switch(kt){case 2:return W[Nt-1];case 3:case 7:case 8:this.$=[];break;case 4:W[Nt-1].push(W[Nt]),this.$=W[Nt-1];break;case 5:case 6:this.$=W[Nt];break;case 9:$.setDateFormat(W[Nt].substr(11)),this.$=W[Nt].substr(11);break;case 10:$.enableInclusiveEndDates(),this.$=W[Nt].substr(18);break;case 11:$.TopAxis(),this.$=W[Nt].substr(8);break;case 12:$.setAxisFormat(W[Nt].substr(11)),this.$=W[Nt].substr(11);break;case 13:$.setExcludes(W[Nt].substr(9)),this.$=W[Nt].substr(9);break;case 14:$.setIncludes(W[Nt].substr(9)),this.$=W[Nt].substr(9);break;case 15:$.setTodayMarker(W[Nt].substr(12)),this.$=W[Nt].substr(12);break;case 16:$.setDiagramTitle(W[Nt].substr(6)),this.$=W[Nt].substr(6);break;case 17:this.$=W[Nt].trim(),$.setAccTitle(this.$);break;case 18:case 19:this.$=W[Nt].trim(),$.setAccDescription(this.$);break;case 20:$.addSection(W[Nt].substr(8)),this.$=W[Nt].substr(8);break;case 22:$.addTask(W[Nt-1],W[Nt]),this.$="task";break;case 26:this.$=W[Nt-1],$.setClickEvent(W[Nt-1],W[Nt],null);break;case 27:this.$=W[Nt-2],$.setClickEvent(W[Nt-2],W[Nt-1],W[Nt]);break;case 28:this.$=W[Nt-2],$.setClickEvent(W[Nt-2],W[Nt-1],null),$.setLink(W[Nt-2],W[Nt]);break;case 29:this.$=W[Nt-3],$.setClickEvent(W[Nt-3],W[Nt-2],W[Nt-1]),$.setLink(W[Nt-3],W[Nt]);break;case 30:this.$=W[Nt-2],$.setClickEvent(W[Nt-2],W[Nt],null),$.setLink(W[Nt-2],W[Nt-1]);break;case 31:this.$=W[Nt-3],$.setClickEvent(W[Nt-3],W[Nt-1],W[Nt]),$.setLink(W[Nt-3],W[Nt-2]);break;case 32:this.$=W[Nt-1],$.setLink(W[Nt-1],W[Nt]);break;case 33:case 39:this.$=W[Nt-1]+" "+W[Nt];break;case 34:case 35:case 37:this.$=W[Nt-2]+" "+W[Nt-1]+" "+W[Nt];break;case 36:case 38:this.$=W[Nt-3]+" "+W[Nt-2]+" "+W[Nt-1]+" "+W[Nt];break;case 40:$.parseDirective("%%{","open_directive");break;case 41:$.parseDirective(W[Nt],"type_directive");break;case 42:W[Nt]=W[Nt].trim().replace(/'/g,'"'),$.parseDirective(W[Nt],"arg_directive");break;case 43:$.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:v,29:4,39:_},{1:[3]},{3:6,4:2,5:v,29:4,39:_},f(A,[2,3],{6:7}),{30:8,40:[1,9]},{40:[2,40]},{1:[2,1]},{4:29,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:M,13:T,14:O,15:B,16:z,17:q,18:J,19:rt,20:ut,22:Z,24:mt,25:nt,26:27,27:at,29:4,34:_t,39:_},{31:31,32:[1,32],42:jt},f([32,42],[2,41]),f(A,[2,8],{1:[2,2]}),f(A,[2,4]),{4:29,10:34,12:M,13:T,14:O,15:B,16:z,17:q,18:J,19:rt,20:ut,22:Z,24:mt,25:nt,26:27,27:at,29:4,34:_t,39:_},f(A,[2,6]),f(A,[2,7]),f(A,[2,9]),f(A,[2,10]),f(A,[2,11]),f(A,[2,12]),f(A,[2,13]),f(A,[2,14]),f(A,[2,15]),f(A,[2,16]),{21:[1,35]},{23:[1,36]},f(A,[2,19]),f(A,[2,20]),f(A,[2,21]),{28:[1,37]},f(A,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},f(A,[2,5]),f(A,[2,17]),f(A,[2,18]),f(A,[2,22]),f(A,[2,26],{36:[1,43],37:[1,44]}),f(A,[2,32],{35:[1,45]}),f(St,[2,24]),{31:46,42:jt},{42:[2,42]},f(A,[2,27],{37:[1,47]}),f(A,[2,28]),f(A,[2,30],{36:[1,48]}),{11:[1,49]},f(A,[2,29]),f(A,[2,31]),f(St,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]},parseError:function(ft,Q){if(!Q.recoverable){var ht=new Error(ft);throw ht.hash=Q,ht}this.trace(ft)},parse:function(ft){var Q=this,ht=[0],$=[],kt=[null],W=[],At=this.table,Nt="",Gt=0,xe=0,Ge=0,Te=2,ye=1,ke=W.slice.call(arguments,1),Me=Object.create(this.lexer),Oe={yy:{}};for(var we in this.yy)Object.prototype.hasOwnProperty.call(this.yy,we)&&(Oe.yy[we]=this.yy[we]);Me.setInput(ft,Oe.yy),Oe.yy.lexer=Me,Oe.yy.parser=this,Me.yylloc===void 0&&(Me.yylloc={});var Sr=Me.yylloc;W.push(Sr);var _e=Me.options&&Me.options.ranges;function er(){var ar;return typeof(ar=$.pop()||Me.lex()||ye)!="number"&&(ar instanceof Array&&(ar=($=ar).pop()),ar=Q.symbols_[ar]||ar),ar}typeof Oe.yy.parseError=="function"?this.parseError=Oe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var oe,ee,he,Mt,ie,pt,wt,xt,Rt,me={};;){if(he=ht[ht.length-1],this.defaultActions[he]?Mt=this.defaultActions[he]:(oe==null&&(oe=er()),Mt=At[he]&&At[he][oe]),Mt===void 0||!Mt.length||!Mt[0]){var Pe="";for(pt in Rt=[],At[he])this.terminals_[pt]&&pt>Te&&Rt.push("'"+this.terminals_[pt]+"'");Pe=Me.showPosition?"Parse error on line "+(Gt+1)+`:
|
|
`+Me.showPosition()+`
|
|
Expecting `+Rt.join(", ")+", got '"+(this.terminals_[oe]||oe)+"'":"Parse error on line "+(Gt+1)+": Unexpected "+(oe==ye?"end of input":"'"+(this.terminals_[oe]||oe)+"'"),this.parseError(Pe,{text:Me.match,token:this.terminals_[oe]||oe,line:Me.yylineno,loc:Sr,expected:Rt})}if(Mt[0]instanceof Array&&Mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+he+", token: "+oe);switch(Mt[0]){case 1:ht.push(oe),kt.push(Me.yytext),W.push(Me.yylloc),ht.push(Mt[1]),oe=null,ee?(oe=ee,ee=null):(xe=Me.yyleng,Nt=Me.yytext,Gt=Me.yylineno,Sr=Me.yylloc,Ge>0);break;case 2:if(wt=this.productions_[Mt[1]][1],me.$=kt[kt.length-wt],me._$={first_line:W[W.length-(wt||1)].first_line,last_line:W[W.length-1].last_line,first_column:W[W.length-(wt||1)].first_column,last_column:W[W.length-1].last_column},_e&&(me._$.range=[W[W.length-(wt||1)].range[0],W[W.length-1].range[1]]),(ie=this.performAction.apply(me,[Nt,xe,Gt,Oe.yy,Mt[1],kt,W].concat(ke)))!==void 0)return ie;wt&&(ht=ht.slice(0,-1*wt*2),kt=kt.slice(0,-1*wt),W=W.slice(0,-1*wt)),ht.push(this.productions_[Mt[1]][0]),kt.push(me.$),W.push(me._$),xt=At[ht[ht.length-2]][ht[ht.length-1]],ht.push(xt);break;case 3:return!0}}return!0}},Ct={EOF:1,parseError:function(ft,Q){if(!this.yy.parser)throw new Error(ft);this.yy.parser.parseError(ft,Q)},setInput:function(ft,Q){return this.yy=Q||this.yy||{},this._input=ft,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 ft=this._input[0];return this.yytext+=ft,this.yyleng++,this.offset++,this.match+=ft,this.matched+=ft,ft.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),ft},unput:function(ft){var Q=ft.length,ht=ft.split(/(?:\r\n?|\n)/g);this._input=ft+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Q),this.offset-=Q;var $=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),ht.length-1&&(this.yylineno-=ht.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:ht?(ht.length===$.length?this.yylloc.first_column:0)+$[$.length-ht.length].length-ht[0].length:this.yylloc.first_column-Q},this.options.ranges&&(this.yylloc.range=[kt[0],kt[0]+this.yyleng-Q]),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(ft){this.unput(this.match.slice(ft))},pastInput:function(){var ft=this.matched.substr(0,this.matched.length-this.match.length);return(ft.length>20?"...":"")+ft.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ft=this.match;return ft.length<20&&(ft+=this._input.substr(0,20-ft.length)),(ft.substr(0,20)+(ft.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ft=this.pastInput(),Q=new Array(ft.length+1).join("-");return ft+this.upcomingInput()+`
|
|
`+Q+"^"},test_match:function(ft,Q){var ht,$,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))),($=ft[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=$.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$?$[$.length-1].length-$[$.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ft[0].length},this.yytext+=ft[0],this.match+=ft[0],this.matches=ft,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(ft[0].length),this.matched+=ft[0],ht=this.performAction.call(this,this.yy,this,Q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ht)return ht;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 ft,Q,ht,$;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var kt=this._currentRules(),W=0;W<kt.length;W++)if((ht=this._input.match(this.rules[kt[W]]))&&(!Q||ht[0].length>Q[0].length)){if(Q=ht,$=W,this.options.backtrack_lexer){if((ft=this.test_match(ht,kt[W]))!==!1)return ft;if(this._backtrack){Q=!1;continue}return!1}if(!this.options.flex)break}return Q?(ft=this.test_match(Q,kt[$]))!==!1&&ft: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(ft){this.conditionStack.push(ft)},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(ft){return(ft=this.conditionStack.length-1-Math.abs(ft||0))>=0?this.conditionStack[ft]:"INITIAL"},pushState:function(ft){this.begin(ft)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ft,Q,ht,$){switch(ht){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 vt(){this.yy={}}return gt.lexer=Ct,vt.prototype=gt,gt.Parser=vt,new vt}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(6878).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},2553:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(Ct,vt,ft,Q){for(ft=ft||{},Q=Ct.length;Q--;ft[Ct[Q]]=vt);return ft},v=[1,4],_=[1,7],A=[1,5],M=[1,9],T=[1,6],O=[2,6],B=[1,16],z=[6,8,14,20,22,24,25,27,29,32,35,39,49,53],q=[8,14,20,22,24,25,27,29,32,35,39],J=[8,13,14,20,22,24,25,27,29,32,35,39],rt=[1,26],ut=[6,8,14,49,53],Z=[8,14,53],mt=[1,64],nt=[1,65],at=[1,66],_t=[8,14,33,38,41,53],jt={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_TYPE:36,commitType:37,COMMIT_TAG:38,COMMIT:39,commit_arg: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_TYPE",38:"COMMIT_TAG",39:"COMMIT",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],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[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],[40,0],[40,1],[37,1],[37,1],[37,1],[5,3],[5,5],[45,1],[46,1],[48,1],[47,1],[4,1],[4,1],[4,1]],performAction:function(Ct,vt,ft,Q,ht,$,kt){var W=$.length-1;switch(ht){case 3:return $[W];case 4:return $[W-1];case 5:return Q.setDirection($[W-3]),$[W-1];case 7:Q.setOptions($[W-1]),this.$=$[W];break;case 8:$[W-1]+=$[W],this.$=$[W-1];break;case 10:this.$=[];break;case 11:$[W-1].push($[W]),this.$=$[W-1];break;case 12:this.$=$[W-1];break;case 17:this.$=$[W].trim(),Q.setAccTitle(this.$);break;case 18:case 19:this.$=$[W].trim(),Q.setAccDescription(this.$);break;case 20:Q.addSection($[W].substr(8)),this.$=$[W].substr(8);break;case 22:Q.checkout($[W]);break;case 23:Q.branch($[W]);break;case 24:Q.branch($[W-2],$[W]);break;case 25:Q.cherryPick($[W]);break;case 26:Q.merge($[W],"","","");break;case 27:Q.merge($[W-2],$[W],"","");break;case 28:Q.merge($[W-2],"",$[W],"");break;case 29:Q.merge($[W-2],"","",$[W]);break;case 30:Q.merge($[W-4],$[W],"",$[W-2]);break;case 31:Q.merge($[W-4],"",$[W],$[W-2]);break;case 32:Q.merge($[W-4],"",$[W-2],$[W]);break;case 33:Q.merge($[W-4],$[W-2],$[W],"");break;case 34:Q.merge($[W-4],$[W-2],"",$[W]);break;case 35:Q.merge($[W-4],$[W],$[W-2],"");break;case 36:Q.merge($[W-6],$[W-4],$[W-2],$[W]);break;case 37:Q.merge($[W-6],$[W],$[W-4],$[W-2]);break;case 38:Q.merge($[W-6],$[W-4],$[W],$[W-2]);break;case 39:Q.merge($[W-6],$[W-2],$[W-4],$[W]);break;case 40:Q.merge($[W-6],$[W],$[W-2],$[W-4]);break;case 41:Q.merge($[W-6],$[W-2],$[W],$[W-4]);break;case 42:Q.commit($[W]);break;case 43:Q.commit("","",Q.commitType.NORMAL,$[W]);break;case 44:Q.commit("","",$[W],"");break;case 45:Q.commit("","",$[W],$[W-2]);break;case 46:Q.commit("","",$[W-2],$[W]);break;case 47:Q.commit("",$[W],Q.commitType.NORMAL,"");break;case 48:Q.commit("",$[W-2],Q.commitType.NORMAL,$[W]);break;case 49:Q.commit("",$[W],Q.commitType.NORMAL,$[W-2]);break;case 50:Q.commit("",$[W-2],$[W],"");break;case 51:Q.commit("",$[W],$[W-2],"");break;case 52:Q.commit("",$[W-4],$[W-2],$[W]);break;case 53:Q.commit("",$[W-4],$[W],$[W-2]);break;case 54:Q.commit("",$[W-2],$[W-4],$[W]);break;case 55:Q.commit("",$[W],$[W-4],$[W-2]);break;case 56:Q.commit("",$[W],$[W-2],$[W-4]);break;case 57:Q.commit("",$[W-2],$[W],$[W-4]);break;case 58:Q.commit($[W],"",Q.commitType.NORMAL,"");break;case 59:Q.commit($[W],"",Q.commitType.NORMAL,$[W-2]);break;case 60:Q.commit($[W-2],"",Q.commitType.NORMAL,$[W]);break;case 61:Q.commit($[W-2],"",$[W],"");break;case 62:Q.commit($[W],"",$[W-2],"");break;case 63:Q.commit($[W],$[W-2],Q.commitType.NORMAL,"");break;case 64:Q.commit($[W-2],$[W],Q.commitType.NORMAL,"");break;case 65:Q.commit($[W-4],"",$[W-2],$[W]);break;case 66:Q.commit($[W-4],"",$[W],$[W-2]);break;case 67:Q.commit($[W-2],"",$[W-4],$[W]);break;case 68:Q.commit($[W],"",$[W-4],$[W-2]);break;case 69:Q.commit($[W],"",$[W-2],$[W-4]);break;case 70:Q.commit($[W-2],"",$[W],$[W-4]);break;case 71:Q.commit($[W-4],$[W],$[W-2],"");break;case 72:Q.commit($[W-4],$[W-2],$[W],"");break;case 73:Q.commit($[W-2],$[W],$[W-4],"");break;case 74:Q.commit($[W],$[W-2],$[W-4],"");break;case 75:Q.commit($[W],$[W-4],$[W-2],"");break;case 76:Q.commit($[W-2],$[W-4],$[W],"");break;case 77:Q.commit($[W-4],$[W],Q.commitType.NORMAL,$[W-2]);break;case 78:Q.commit($[W-4],$[W-2],Q.commitType.NORMAL,$[W]);break;case 79:Q.commit($[W-2],$[W],Q.commitType.NORMAL,$[W-4]);break;case 80:Q.commit($[W],$[W-2],Q.commitType.NORMAL,$[W-4]);break;case 81:Q.commit($[W],$[W-4],Q.commitType.NORMAL,$[W-2]);break;case 82:Q.commit($[W-2],$[W-4],Q.commitType.NORMAL,$[W]);break;case 83:Q.commit($[W-6],$[W-4],$[W-2],$[W]);break;case 84:Q.commit($[W-6],$[W-4],$[W],$[W-2]);break;case 85:Q.commit($[W-6],$[W-2],$[W-4],$[W]);break;case 86:Q.commit($[W-6],$[W],$[W-4],$[W-2]);break;case 87:Q.commit($[W-6],$[W-2],$[W],$[W-4]);break;case 88:Q.commit($[W-6],$[W],$[W-2],$[W-4]);break;case 89:Q.commit($[W-4],$[W-6],$[W-2],$[W]);break;case 90:Q.commit($[W-4],$[W-6],$[W],$[W-2]);break;case 91:Q.commit($[W-2],$[W-6],$[W-4],$[W]);break;case 92:Q.commit($[W],$[W-6],$[W-4],$[W-2]);break;case 93:Q.commit($[W-2],$[W-6],$[W],$[W-4]);break;case 94:Q.commit($[W],$[W-6],$[W-2],$[W-4]);break;case 95:Q.commit($[W],$[W-4],$[W-2],$[W-6]);break;case 96:Q.commit($[W-2],$[W-4],$[W],$[W-6]);break;case 97:Q.commit($[W],$[W-2],$[W-4],$[W-6]);break;case 98:Q.commit($[W-2],$[W],$[W-4],$[W-6]);break;case 99:Q.commit($[W-4],$[W-2],$[W],$[W-6]);break;case 100:Q.commit($[W-4],$[W],$[W-2],$[W-6]);break;case 101:Q.commit($[W-2],$[W-4],$[W-6],$[W]);break;case 102:Q.commit($[W],$[W-4],$[W-6],$[W-2]);break;case 103:Q.commit($[W-2],$[W],$[W-6],$[W-4]);break;case 104:Q.commit($[W],$[W-2],$[W-6],$[W-4]);break;case 105:Q.commit($[W-4],$[W-2],$[W-6],$[W]);break;case 106:Q.commit($[W-4],$[W],$[W-6],$[W-2]);break;case 107:this.$="";break;case 108:this.$=$[W];break;case 109:this.$=Q.commitType.NORMAL;break;case 110:this.$=Q.commitType.REVERSE;break;case 111:this.$=Q.commitType.HIGHLIGHT;break;case 114:Q.parseDirective("%%{","open_directive");break;case 115:Q.parseDirective($[W],"type_directive");break;case 116:$[W]=$[W].trim().replace(/'/g,'"'),Q.parseDirective($[W],"arg_directive");break;case 117:Q.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:v,8:_,14:A,45:8,49:M,53:T},{1:[3]},{3:10,4:2,5:3,6:v,8:_,14:A,45:8,49:M,53:T},{3:11,4:2,5:3,6:v,8:_,14:A,45:8,49:M,53:T},{7:12,8:O,9:[1,13],10:[1,14],11:15,14:B},f(z,[2,118]),f(z,[2,119]),f(z,[2,120]),{46:17,50:[1,18]},{50:[2,114]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:O,11:15,14:B},{9:[1,21]},f(q,[2,10],{12:22,13:[1,23]}),f(J,[2,9]),{9:[1,25],47:24,52:rt},f([9,52],[2,115]),{1:[2,3]},{8:[1,27]},{7:28,8:O,11:15,14:B},{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],39:[1,41]},f(J,[2,8]),f(ut,[2,112]),{48:45,51:[1,46]},f(ut,[2,117]),{1:[2,4]},{8:[1,47]},f(q,[2,11]),{4:48,8:_,14:A,53:T},f(q,[2,13]),f(Z,[2,14]),f(Z,[2,15]),f(Z,[2,16]),{21:[1,49]},{23:[1,50]},f(Z,[2,19]),f(Z,[2,20]),f(Z,[2,21]),{28:[1,51]},f(Z,[2,107],{40:52,33:[1,55],34:[1,57],36:[1,54],38:[1,53],41:[1,56]}),{28:[1,58]},{33:[1,59]},{28:[1,60]},{47:61,52:rt},{52:[2,116]},{1:[2,5]},f(q,[2,12]),f(Z,[2,17]),f(Z,[2,18]),f(Z,[2,22]),f(Z,[2,42]),{34:[1,62]},{37:63,42:mt,43:nt,44:at},{34:[1,67]},{34:[1,68]},f(Z,[2,108]),f(Z,[2,26],{33:[1,69],36:[1,70],38:[1,71]}),{34:[1,72]},f(Z,[2,23],{30:[1,73]}),f(ut,[2,113]),f(Z,[2,43],{33:[1,75],36:[1,74],41:[1,76]}),f(Z,[2,44],{33:[1,78],38:[1,77],41:[1,79]}),f(_t,[2,109]),f(_t,[2,110]),f(_t,[2,111]),f(Z,[2,47],{36:[1,81],38:[1,80],41:[1,82]}),f(Z,[2,58],{33:[1,85],36:[1,84],38:[1,83]}),{34:[1,86]},{37:87,42:mt,43:nt,44:at},{34:[1,88]},f(Z,[2,25]),{31:[1,89]},{37:90,42:mt,43:nt,44:at},{34:[1,91]},{34:[1,92]},{34:[1,93]},{34:[1,94]},{34:[1,95]},{34:[1,96]},{37:97,42:mt,43:nt,44:at},{34:[1,98]},{34:[1,99]},{37:100,42:mt,43:nt,44:at},{34:[1,101]},f(Z,[2,27],{36:[1,102],38:[1,103]}),f(Z,[2,28],{33:[1,105],38:[1,104]}),f(Z,[2,29],{33:[1,106],36:[1,107]}),f(Z,[2,24]),f(Z,[2,45],{33:[1,108],41:[1,109]}),f(Z,[2,49],{36:[1,110],41:[1,111]}),f(Z,[2,59],{33:[1,113],36:[1,112]}),f(Z,[2,46],{33:[1,114],41:[1,115]}),f(Z,[2,51],{38:[1,116],41:[1,117]}),f(Z,[2,62],{33:[1,119],38:[1,118]}),f(Z,[2,48],{36:[1,120],41:[1,121]}),f(Z,[2,50],{38:[1,122],41:[1,123]}),f(Z,[2,63],{36:[1,124],38:[1,125]}),f(Z,[2,60],{33:[1,127],36:[1,126]}),f(Z,[2,61],{33:[1,129],38:[1,128]}),f(Z,[2,64],{36:[1,130],38:[1,131]}),{37:132,42:mt,43:nt,44:at},{34:[1,133]},{34:[1,134]},{34:[1,135]},{34:[1,136]},{37:137,42:mt,43:nt,44:at},{34:[1,138]},{34:[1,139]},{37:140,42:mt,43:nt,44:at},{34:[1,141]},{37:142,42:mt,43:nt,44:at},{34:[1,143]},{34:[1,144]},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{34:[1,149]},{37:150,42:mt,43:nt,44:at},{34:[1,151]},{34:[1,152]},{34:[1,153]},{37:154,42:mt,43:nt,44:at},{34:[1,155]},{37:156,42:mt,43:nt,44:at},{34:[1,157]},{34:[1,158]},{34:[1,159]},{37:160,42:mt,43:nt,44:at},{34:[1,161]},f(Z,[2,33],{38:[1,162]}),f(Z,[2,34],{36:[1,163]}),f(Z,[2,32],{33:[1,164]}),f(Z,[2,35],{38:[1,165]}),f(Z,[2,30],{36:[1,166]}),f(Z,[2,31],{33:[1,167]}),f(Z,[2,56],{41:[1,168]}),f(Z,[2,69],{33:[1,169]}),f(Z,[2,57],{41:[1,170]}),f(Z,[2,80],{36:[1,171]}),f(Z,[2,70],{33:[1,172]}),f(Z,[2,79],{36:[1,173]}),f(Z,[2,55],{41:[1,174]}),f(Z,[2,68],{33:[1,175]}),f(Z,[2,54],{41:[1,176]}),f(Z,[2,74],{38:[1,177]}),f(Z,[2,67],{33:[1,178]}),f(Z,[2,73],{38:[1,179]}),f(Z,[2,53],{41:[1,180]}),f(Z,[2,81],{36:[1,181]}),f(Z,[2,52],{41:[1,182]}),f(Z,[2,75],{38:[1,183]}),f(Z,[2,76],{38:[1,184]}),f(Z,[2,82],{36:[1,185]}),f(Z,[2,66],{33:[1,186]}),f(Z,[2,77],{36:[1,187]}),f(Z,[2,65],{33:[1,188]}),f(Z,[2,71],{38:[1,189]}),f(Z,[2,72],{38:[1,190]}),f(Z,[2,78],{36:[1,191]}),{34:[1,192]},{37:193,42:mt,43:nt,44:at},{34:[1,194]},{34:[1,195]},{37:196,42:mt,43:nt,44:at},{34:[1,197]},{34:[1,198]},{34:[1,199]},{34:[1,200]},{37:201,42:mt,43:nt,44:at},{34:[1,202]},{37:203,42:mt,43:nt,44:at},{34:[1,204]},{34:[1,205]},{34:[1,206]},{34:[1,207]},{34:[1,208]},{34:[1,209]},{34:[1,210]},{37:211,42:mt,43:nt,44:at},{34:[1,212]},{34:[1,213]},{34:[1,214]},{37:215,42:mt,43:nt,44:at},{34:[1,216]},{37:217,42:mt,43:nt,44:at},{34:[1,218]},{34:[1,219]},{34:[1,220]},{37:221,42:mt,43:nt,44:at},f(Z,[2,36]),f(Z,[2,38]),f(Z,[2,37]),f(Z,[2,39]),f(Z,[2,41]),f(Z,[2,40]),f(Z,[2,97]),f(Z,[2,98]),f(Z,[2,95]),f(Z,[2,96]),f(Z,[2,100]),f(Z,[2,99]),f(Z,[2,104]),f(Z,[2,103]),f(Z,[2,102]),f(Z,[2,101]),f(Z,[2,106]),f(Z,[2,105]),f(Z,[2,94]),f(Z,[2,93]),f(Z,[2,92]),f(Z,[2,91]),f(Z,[2,89]),f(Z,[2,90]),f(Z,[2,88]),f(Z,[2,87]),f(Z,[2,86]),f(Z,[2,85]),f(Z,[2,83]),f(Z,[2,84])],defaultActions:{9:[2,114],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,116],47:[2,5]},parseError:function(Ct,vt){if(!vt.recoverable){var ft=new Error(Ct);throw ft.hash=vt,ft}this.trace(Ct)},parse:function(Ct){var vt=this,ft=[0],Q=[],ht=[null],$=[],kt=this.table,W="",At=0,Nt=0,Gt=0,xe=2,Ge=1,Te=$.slice.call(arguments,1),ye=Object.create(this.lexer),ke={yy:{}};for(var Me in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Me)&&(ke.yy[Me]=this.yy[Me]);ye.setInput(Ct,ke.yy),ke.yy.lexer=ye,ke.yy.parser=this,ye.yylloc===void 0&&(ye.yylloc={});var Oe=ye.yylloc;$.push(Oe);var we=ye.options&&ye.options.ranges;function Sr(){var me;return typeof(me=Q.pop()||ye.lex()||Ge)!="number"&&(me instanceof Array&&(me=(Q=me).pop()),me=vt.symbols_[me]||me),me}typeof ke.yy.parseError=="function"?this.parseError=ke.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _e,er,oe,ee,he,Mt,ie,pt,wt,xt={};;){if(oe=ft[ft.length-1],this.defaultActions[oe]?ee=this.defaultActions[oe]:(_e==null&&(_e=Sr()),ee=kt[oe]&&kt[oe][_e]),ee===void 0||!ee.length||!ee[0]){var Rt="";for(Mt in wt=[],kt[oe])this.terminals_[Mt]&&Mt>xe&&wt.push("'"+this.terminals_[Mt]+"'");Rt=ye.showPosition?"Parse error on line "+(At+1)+`:
|
|
`+ye.showPosition()+`
|
|
Expecting `+wt.join(", ")+", got '"+(this.terminals_[_e]||_e)+"'":"Parse error on line "+(At+1)+": Unexpected "+(_e==Ge?"end of input":"'"+(this.terminals_[_e]||_e)+"'"),this.parseError(Rt,{text:ye.match,token:this.terminals_[_e]||_e,line:ye.yylineno,loc:Oe,expected:wt})}if(ee[0]instanceof Array&&ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+oe+", token: "+_e);switch(ee[0]){case 1:ft.push(_e),ht.push(ye.yytext),$.push(ye.yylloc),ft.push(ee[1]),_e=null,er?(_e=er,er=null):(Nt=ye.yyleng,W=ye.yytext,At=ye.yylineno,Oe=ye.yylloc,Gt>0);break;case 2:if(ie=this.productions_[ee[1]][1],xt.$=ht[ht.length-ie],xt._$={first_line:$[$.length-(ie||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(ie||1)].first_column,last_column:$[$.length-1].last_column},we&&(xt._$.range=[$[$.length-(ie||1)].range[0],$[$.length-1].range[1]]),(he=this.performAction.apply(xt,[W,Nt,At,ke.yy,ee[1],ht,$].concat(Te)))!==void 0)return he;ie&&(ft=ft.slice(0,-1*ie*2),ht=ht.slice(0,-1*ie),$=$.slice(0,-1*ie)),ft.push(this.productions_[ee[1]][0]),ht.push(xt.$),$.push(xt._$),pt=kt[ft[ft.length-2]][ft[ft.length-1]],ft.push(pt);break;case 3:return!0}}return!0}},St={EOF:1,parseError:function(Ct,vt){if(!this.yy.parser)throw new Error(Ct);this.yy.parser.parseError(Ct,vt)},setInput:function(Ct,vt){return this.yy=vt||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 vt=Ct.length,ft=Ct.split(/(?:\r\n?|\n)/g);this._input=Ct+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-vt),this.offset-=vt;var Q=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ft.length-1&&(this.yylineno-=ft.length-1);var ht=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ft?(ft.length===Q.length?this.yylloc.first_column:0)+Q[Q.length-ft.length].length-ft[0].length:this.yylloc.first_column-vt},this.options.ranges&&(this.yylloc.range=[ht[0],ht[0]+this.yyleng-vt]),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(),vt=new Array(Ct.length+1).join("-");return Ct+this.upcomingInput()+`
|
|
`+vt+"^"},test_match:function(Ct,vt){var ft,Q,ht;if(this.options.backtrack_lexer&&(ht={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&&(ht.yylloc.range=this.yylloc.range.slice(0))),(Q=Ct[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+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],ft=this.performAction.call(this,this.yy,this,vt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ft)return ft;if(this._backtrack){for(var $ in ht)this[$]=ht[$];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ct,vt,ft,Q;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ht=this._currentRules(),$=0;$<ht.length;$++)if((ft=this._input.match(this.rules[ht[$]]))&&(!vt||ft[0].length>vt[0].length)){if(vt=ft,Q=$,this.options.backtrack_lexer){if((Ct=this.test_match(ft,ht[$]))!==!1)return Ct;if(this._backtrack){vt=!1;continue}return!1}if(!this.options.flex)break}return vt?(Ct=this.test_match(vt,ht[Q]))!==!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,vt,ft,Q){switch(ft){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 39;case 18:return 33;case 19:return 36;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 38;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 gt(){this.yy={}}return jt.lexer=St,gt.prototype=jt,jt.Parser=gt,new gt}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(8183).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},6765:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(T,O,B,z){for(B=B||{},z=T.length;z--;B[T[z]]=O);return B},v=[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(T,O,B,z,q,J,rt){switch(J.length,q){case 1:return z;case 4:break;case 6:z.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},f(v,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},f(v,[2,3]),f(v,[2,4]),f(v,[2,5]),f(v,[2,6])],defaultActions:{4:[2,1]},parseError:function(T,O){if(!O.recoverable){var B=new Error(T);throw B.hash=O,B}this.trace(T)},parse:function(T){var O=this,B=[0],z=[],q=[null],J=[],rt=this.table,ut="",Z=0,mt=0,nt=0,at=2,_t=1,jt=J.slice.call(arguments,1),St=Object.create(this.lexer),gt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(gt.yy[Ct]=this.yy[Ct]);St.setInput(T,gt.yy),gt.yy.lexer=St,gt.yy.parser=this,St.yylloc===void 0&&(St.yylloc={});var vt=St.yylloc;J.push(vt);var ft=St.options&&St.options.ranges;function Q(){var ke;return typeof(ke=z.pop()||St.lex()||_t)!="number"&&(ke instanceof Array&&(ke=(z=ke).pop()),ke=O.symbols_[ke]||ke),ke}typeof gt.yy.parseError=="function"?this.parseError=gt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ht,$,kt,W,At,Nt,Gt,xe,Ge,Te={};;){if(kt=B[B.length-1],this.defaultActions[kt]?W=this.defaultActions[kt]:(ht==null&&(ht=Q()),W=rt[kt]&&rt[kt][ht]),W===void 0||!W.length||!W[0]){var ye="";for(Nt in Ge=[],rt[kt])this.terminals_[Nt]&&Nt>at&&Ge.push("'"+this.terminals_[Nt]+"'");ye=St.showPosition?"Parse error on line "+(Z+1)+`:
|
|
`+St.showPosition()+`
|
|
Expecting `+Ge.join(", ")+", got '"+(this.terminals_[ht]||ht)+"'":"Parse error on line "+(Z+1)+": Unexpected "+(ht==_t?"end of input":"'"+(this.terminals_[ht]||ht)+"'"),this.parseError(ye,{text:St.match,token:this.terminals_[ht]||ht,line:St.yylineno,loc:vt,expected:Ge})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+ht);switch(W[0]){case 1:B.push(ht),q.push(St.yytext),J.push(St.yylloc),B.push(W[1]),ht=null,$?(ht=$,$=null):(mt=St.yyleng,ut=St.yytext,Z=St.yylineno,vt=St.yylloc,nt>0);break;case 2:if(Gt=this.productions_[W[1]][1],Te.$=q[q.length-Gt],Te._$={first_line:J[J.length-(Gt||1)].first_line,last_line:J[J.length-1].last_line,first_column:J[J.length-(Gt||1)].first_column,last_column:J[J.length-1].last_column},ft&&(Te._$.range=[J[J.length-(Gt||1)].range[0],J[J.length-1].range[1]]),(At=this.performAction.apply(Te,[ut,mt,Z,gt.yy,W[1],q,J].concat(jt)))!==void 0)return At;Gt&&(B=B.slice(0,-1*Gt*2),q=q.slice(0,-1*Gt),J=J.slice(0,-1*Gt)),B.push(this.productions_[W[1]][0]),q.push(Te.$),J.push(Te._$),xe=rt[B[B.length-2]][B[B.length-1]],B.push(xe);break;case 3:return!0}}return!0}},A={EOF:1,parseError:function(T,O){if(!this.yy.parser)throw new Error(T);this.yy.parser.parseError(T,O)},setInput:function(T,O){return this.yy=O||this.yy||{},this._input=T,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var T=this._input[0];return this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T,T.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),T},unput:function(T){var O=T.length,B=T.split(/(?:\r\n?|\n)/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-O),this.offset-=O;var z=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),B.length-1&&(this.yylineno-=B.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:B?(B.length===z.length?this.yylloc.first_column:0)+z[z.length-B.length].length-B[0].length:this.yylloc.first_column-O},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-O]),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(T){this.unput(this.match.slice(T))},pastInput:function(){var T=this.matched.substr(0,this.matched.length-this.match.length);return(T.length>20?"...":"")+T.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var T=this.match;return T.length<20&&(T+=this._input.substr(0,20-T.length)),(T.substr(0,20)+(T.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var T=this.pastInput(),O=new Array(T.length+1).join("-");return T+this.upcomingInput()+`
|
|
`+O+"^"},test_match:function(T,O){var B,z,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))),(z=T[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=z.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:z?z[z.length-1].length-z[z.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+T[0].length},this.yytext+=T[0],this.match+=T[0],this.matches=T,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(T[0].length),this.matched+=T[0],B=this.performAction.call(this,this.yy,this,O,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),B)return B;if(this._backtrack){for(var J in q)this[J]=q[J];return!1}return!1},next:function(){if(this.done)return this.EOF;var T,O,B,z;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),J=0;J<q.length;J++)if((B=this._input.match(this.rules[q[J]]))&&(!O||B[0].length>O[0].length)){if(O=B,z=J,this.options.backtrack_lexer){if((T=this.test_match(B,q[J]))!==!1)return T;if(this._backtrack){O=!1;continue}return!1}if(!this.options.flex)break}return O?(T=this.test_match(O,q[z]))!==!1&&T: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(T){this.conditionStack.push(T)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(T){return(T=this.conditionStack.length-1-Math.abs(T||0))>=0?this.conditionStack[T]:"INITIAL"},pushState:function(T){this.begin(T)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(T,O,B,z){switch(B){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=A,M.prototype=_,_.Parser=M,new M}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(1428).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},7062:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(vt,ft,Q,ht){for(Q=Q||{},ht=vt.length;ht--;Q[vt[ht]]=ft);return Q},v=[1,4],_=[1,5],A=[1,6],M=[1,7],T=[1,9],O=[1,11,13,15,17,19,20,26,27,28,29],B=[2,5],z=[1,6,11,13,15,17,19,20,26,27,28,29],q=[26,27,28],J=[2,8],rt=[1,18],ut=[1,19],Z=[1,20],mt=[1,21],nt=[1,22],at=[1,23],_t=[1,28],jt=[6,26,27,28,29],St={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(vt,ft,Q,ht,$,kt,W){var At=kt.length-1;switch($){case 4:ht.setShowData(!0);break;case 7:this.$=kt[At-1];break;case 9:ht.addSection(kt[At-1],ht.cleanupValue(kt[At]));break;case 10:this.$=kt[At].trim(),ht.setDiagramTitle(this.$);break;case 11:this.$=kt[At].trim(),ht.setAccTitle(this.$);break;case 12:case 13:this.$=kt[At].trim(),ht.setAccDescription(this.$);break;case 14:ht.addSection(kt[At].substr(8)),this.$=kt[At].substr(8);break;case 21:ht.parseDirective("%%{","open_directive");break;case 22:ht.parseDirective(kt[At],"type_directive");break;case 23:kt[At]=kt[At].trim().replace(/'/g,'"'),ht.parseDirective(kt[At],"arg_directive");break;case 24:ht.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:v,21:8,26:_,27:A,28:M,29:T},{1:[3]},{3:10,4:2,5:3,6:v,21:8,26:_,27:A,28:M,29:T},{3:11,4:2,5:3,6:v,21:8,26:_,27:A,28:M,29:T},f(O,B,{7:12,8:[1,13]}),f(z,[2,18]),f(z,[2,19]),f(z,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},f(q,J,{21:8,9:16,10:17,5:24,1:[2,3],11:rt,13:ut,15:Z,17:mt,19:nt,20:at,29:T}),f(O,B,{7:25}),{23:26,24:[1,27],32:_t},f([24,32],[2,22]),f(O,[2,6]),{4:29,26:_,27:A,28:M},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},f(q,[2,13]),f(q,[2,14]),f(q,[2,15]),f(q,J,{21:8,9:16,10:17,5:24,1:[2,4],11:rt,13:ut,15:Z,17:mt,19:nt,20:at,29:T}),f(jt,[2,16]),{25:34,31:[1,35]},f(jt,[2,24]),f(O,[2,7]),f(q,[2,9]),f(q,[2,10]),f(q,[2,11]),f(q,[2,12]),{23:36,32:_t},{32:[2,23]},f(jt,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(vt,ft){if(!ft.recoverable){var Q=new Error(vt);throw Q.hash=ft,Q}this.trace(vt)},parse:function(vt){var ft=this,Q=[0],ht=[],$=[null],kt=[],W=this.table,At="",Nt=0,Gt=0,xe=0,Ge=2,Te=1,ye=kt.slice.call(arguments,1),ke=Object.create(this.lexer),Me={yy:{}};for(var Oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Oe)&&(Me.yy[Oe]=this.yy[Oe]);ke.setInput(vt,Me.yy),Me.yy.lexer=ke,Me.yy.parser=this,ke.yylloc===void 0&&(ke.yylloc={});var we=ke.yylloc;kt.push(we);var Sr=ke.options&&ke.options.ranges;function _e(){var Pe;return typeof(Pe=ht.pop()||ke.lex()||Te)!="number"&&(Pe instanceof Array&&(Pe=(ht=Pe).pop()),Pe=ft.symbols_[Pe]||Pe),Pe}typeof Me.yy.parseError=="function"?this.parseError=Me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var er,oe,ee,he,Mt,ie,pt,wt,xt,Rt={};;){if(ee=Q[Q.length-1],this.defaultActions[ee]?he=this.defaultActions[ee]:(er==null&&(er=_e()),he=W[ee]&&W[ee][er]),he===void 0||!he.length||!he[0]){var me="";for(ie in xt=[],W[ee])this.terminals_[ie]&&ie>Ge&&xt.push("'"+this.terminals_[ie]+"'");me=ke.showPosition?"Parse error on line "+(Nt+1)+`:
|
|
`+ke.showPosition()+`
|
|
Expecting `+xt.join(", ")+", got '"+(this.terminals_[er]||er)+"'":"Parse error on line "+(Nt+1)+": Unexpected "+(er==Te?"end of input":"'"+(this.terminals_[er]||er)+"'"),this.parseError(me,{text:ke.match,token:this.terminals_[er]||er,line:ke.yylineno,loc:we,expected:xt})}if(he[0]instanceof Array&&he.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ee+", token: "+er);switch(he[0]){case 1:Q.push(er),$.push(ke.yytext),kt.push(ke.yylloc),Q.push(he[1]),er=null,oe?(er=oe,oe=null):(Gt=ke.yyleng,At=ke.yytext,Nt=ke.yylineno,we=ke.yylloc,xe>0);break;case 2:if(pt=this.productions_[he[1]][1],Rt.$=$[$.length-pt],Rt._$={first_line:kt[kt.length-(pt||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(pt||1)].first_column,last_column:kt[kt.length-1].last_column},Sr&&(Rt._$.range=[kt[kt.length-(pt||1)].range[0],kt[kt.length-1].range[1]]),(Mt=this.performAction.apply(Rt,[At,Gt,Nt,Me.yy,he[1],$,kt].concat(ye)))!==void 0)return Mt;pt&&(Q=Q.slice(0,-1*pt*2),$=$.slice(0,-1*pt),kt=kt.slice(0,-1*pt)),Q.push(this.productions_[he[1]][0]),$.push(Rt.$),kt.push(Rt._$),wt=W[Q[Q.length-2]][Q[Q.length-1]],Q.push(wt);break;case 3:return!0}}return!0}},gt={EOF:1,parseError:function(vt,ft){if(!this.yy.parser)throw new Error(vt);this.yy.parser.parseError(vt,ft)},setInput:function(vt,ft){return this.yy=ft||this.yy||{},this._input=vt,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 vt=this._input[0];return this.yytext+=vt,this.yyleng++,this.offset++,this.match+=vt,this.matched+=vt,vt.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),vt},unput:function(vt){var ft=vt.length,Q=vt.split(/(?:\r\n?|\n)/g);this._input=vt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ft),this.offset-=ft;var ht=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 $=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===ht.length?this.yylloc.first_column:0)+ht[ht.length-Q.length].length-Q[0].length:this.yylloc.first_column-ft},this.options.ranges&&(this.yylloc.range=[$[0],$[0]+this.yyleng-ft]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(vt){this.unput(this.match.slice(vt))},pastInput:function(){var vt=this.matched.substr(0,this.matched.length-this.match.length);return(vt.length>20?"...":"")+vt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var vt=this.match;return vt.length<20&&(vt+=this._input.substr(0,20-vt.length)),(vt.substr(0,20)+(vt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var vt=this.pastInput(),ft=new Array(vt.length+1).join("-");return vt+this.upcomingInput()+`
|
|
`+ft+"^"},test_match:function(vt,ft){var Q,ht,$;if(this.options.backtrack_lexer&&($={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&($.yylloc.range=this.yylloc.range.slice(0))),(ht=vt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ht.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ht?ht[ht.length-1].length-ht[ht.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+vt[0].length},this.yytext+=vt[0],this.match+=vt[0],this.matches=vt,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(vt[0].length),this.matched+=vt[0],Q=this.performAction.call(this,this.yy,this,ft,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Q)return Q;if(this._backtrack){for(var kt in $)this[kt]=$[kt];return!1}return!1},next:function(){if(this.done)return this.EOF;var vt,ft,Q,ht;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var $=this._currentRules(),kt=0;kt<$.length;kt++)if((Q=this._input.match(this.rules[$[kt]]))&&(!ft||Q[0].length>ft[0].length)){if(ft=Q,ht=kt,this.options.backtrack_lexer){if((vt=this.test_match(Q,$[kt]))!==!1)return vt;if(this._backtrack){ft=!1;continue}return!1}if(!this.options.flex)break}return ft?(vt=this.test_match(ft,$[ht]))!==!1&&vt: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(vt){this.conditionStack.push(vt)},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(vt){return(vt=this.conditionStack.length-1-Math.abs(vt||0))>=0?this.conditionStack[vt]:"INITIAL"},pushState:function(vt){this.begin(vt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(vt,ft,Q,ht){switch(Q){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 St.lexer=gt,Ct.prototype=St,St.Parser=Ct,new Ct}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(4551).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},3176:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(oe,ee,he,Mt){for(he=he||{},Mt=oe.length;Mt--;he[oe[Mt]]=ee);return he},v=[1,3],_=[1,5],A=[1,6],M=[1,7],T=[1,8],O=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],B=[1,22],z=[2,13],q=[1,26],J=[1,27],rt=[1,28],ut=[1,29],Z=[1,30],mt=[1,31],nt=[1,24],at=[1,32],_t=[1,33],jt=[1,36],St=[71,72],gt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],Ct=[1,56],vt=[1,57],ft=[1,58],Q=[1,59],ht=[1,60],$=[1,61],kt=[1,62],W=[62,63],At=[1,74],Nt=[1,70],Gt=[1,71],xe=[1,72],Ge=[1,73],Te=[1,75],ye=[1,79],ke=[1,80],Me=[1,77],Oe=[1,78],we=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],Sr={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(oe,ee,he,Mt,ie,pt,wt){var xt=pt.length-1;switch(ie){case 6:this.$=pt[xt].trim(),Mt.setAccTitle(this.$);break;case 7:case 8:this.$=pt[xt].trim(),Mt.setAccDescription(this.$);break;case 9:Mt.parseDirective("%%{","open_directive");break;case 10:Mt.parseDirective(pt[xt],"type_directive");break;case 11:pt[xt]=pt[xt].trim().replace(/'/g,'"'),Mt.parseDirective(pt[xt],"arg_directive");break;case 12:Mt.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:Mt.addRequirement(pt[xt-3],pt[xt-4]);break;case 20:Mt.setNewReqId(pt[xt-2]);break;case 21:Mt.setNewReqText(pt[xt-2]);break;case 22:Mt.setNewReqRisk(pt[xt-2]);break;case 23:Mt.setNewReqVerifyMethod(pt[xt-2]);break;case 26:this.$=Mt.RequirementType.REQUIREMENT;break;case 27:this.$=Mt.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=Mt.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=Mt.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=Mt.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=Mt.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=Mt.RiskLevel.LOW_RISK;break;case 33:this.$=Mt.RiskLevel.MED_RISK;break;case 34:this.$=Mt.RiskLevel.HIGH_RISK;break;case 35:this.$=Mt.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=Mt.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=Mt.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=Mt.VerifyType.VERIFY_TEST;break;case 39:Mt.addElement(pt[xt-3]);break;case 40:Mt.setNewElementType(pt[xt-2]);break;case 41:Mt.setNewElementDocRef(pt[xt-2]);break;case 44:Mt.addRelationship(pt[xt-2],pt[xt],pt[xt-4]);break;case 45:Mt.addRelationship(pt[xt-2],pt[xt-4],pt[xt]);break;case 46:this.$=Mt.Relationships.CONTAINS;break;case 47:this.$=Mt.Relationships.COPIES;break;case 48:this.$=Mt.Relationships.DERIVES;break;case 49:this.$=Mt.Relationships.SATISFIES;break;case 50:this.$=Mt.Relationships.VERIFIES;break;case 51:this.$=Mt.Relationships.REFINES;break;case 52:this.$=Mt.Relationships.TRACES}},table:[{3:1,4:2,6:v,9:4,14:_,16:A,18:M,19:T},{1:[3]},{3:10,4:2,5:[1,9],6:v,9:4,14:_,16:A,18:M,19:T},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},f(O,[2,8]),{20:[2,9]},{3:16,4:2,6:v,9:4,14:_,16:A,18:M,19:T},{1:[2,2]},{4:21,5:B,7:17,8:z,9:4,14:_,16:A,18:M,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:J,42:rt,43:ut,44:Z,45:mt,53:nt,71:at,72:_t},{11:34,12:[1,35],22:jt},f([12,22],[2,10]),f(O,[2,6]),f(O,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:B,7:38,8:z,9:4,14:_,16:A,18:M,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:J,42:rt,43:ut,44:Z,45:mt,53:nt,71:at,72:_t},{4:21,5:B,7:39,8:z,9:4,14:_,16:A,18:M,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:J,42:rt,43:ut,44:Z,45:mt,53:nt,71:at,72:_t},{4:21,5:B,7:40,8:z,9:4,14:_,16:A,18:M,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:J,42:rt,43:ut,44:Z,45:mt,53:nt,71:at,72:_t},{4:21,5:B,7:41,8:z,9:4,14:_,16:A,18:M,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:J,42:rt,43:ut,44:Z,45:mt,53:nt,71:at,72:_t},{4:21,5:B,7:42,8:z,9:4,14:_,16:A,18:M,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:J,42:rt,43:ut,44:Z,45:mt,53:nt,71:at,72:_t},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},f(St,[2,26]),f(St,[2,27]),f(St,[2,28]),f(St,[2,29]),f(St,[2,30]),f(St,[2,31]),f(gt,[2,55]),f(gt,[2,56]),f(O,[2,4]),{13:51,21:[1,52]},f(O,[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:vt,66:ft,67:Q,68:ht,69:$,70:kt},{61:63,64:Ct,65:vt,66:ft,67:Q,68:ht,69:$,70:kt},{11:64,22:jt},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},f(W,[2,46]),f(W,[2,47]),f(W,[2,48]),f(W,[2,49]),f(W,[2,50]),f(W,[2,51]),f(W,[2,52]),{63:[1,68]},f(O,[2,5]),{5:At,29:69,30:Nt,33:Gt,35:xe,37:Ge,39:Te},{5:ye,39:ke,55:76,56:Me,58:Oe},{32:81,71:at,72:_t},{32:82,71:at,72:_t},f(we,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:At,29:87,30:Nt,33:Gt,35:xe,37:Ge,39:Te},f(we,[2,25]),f(we,[2,39]),{31:[1,88]},{31:[1,89]},{5:ye,39:ke,55:90,56:Me,58:Oe},f(we,[2,43]),f(we,[2,44]),f(we,[2,45]),{32:91,71:at,72:_t},{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]},f(we,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},f(we,[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:At,29:116,30:Nt,33:Gt,35:xe,37:Ge,39:Te},{5:At,29:117,30:Nt,33:Gt,35:xe,37:Ge,39:Te},{5:At,29:118,30:Nt,33:Gt,35:xe,37:Ge,39:Te},{5:At,29:119,30:Nt,33:Gt,35:xe,37:Ge,39:Te},{5:ye,39:ke,55:120,56:Me,58:Oe},{5:ye,39:ke,55:121,56:Me,58:Oe},f(we,[2,20]),f(we,[2,21]),f(we,[2,22]),f(we,[2,23]),f(we,[2,40]),f(we,[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(oe,ee){if(!ee.recoverable){var he=new Error(oe);throw he.hash=ee,he}this.trace(oe)},parse:function(oe){var ee=this,he=[0],Mt=[],ie=[null],pt=[],wt=this.table,xt="",Rt=0,me=0,Pe=0,ar=2,Ze=1,ur=pt.slice.call(arguments,1),ze=Object.create(this.lexer),Ce={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(Ce.yy[Be]=this.yy[Be]);ze.setInput(oe,Ce.yy),Ce.yy.lexer=ze,Ce.yy.parser=this,ze.yylloc===void 0&&(ze.yylloc={});var Fe=ze.yylloc;pt.push(Fe);var be=ze.options&&ze.options.ranges;function se(){var Ie;return typeof(Ie=Mt.pop()||ze.lex()||Ze)!="number"&&(Ie instanceof Array&&(Ie=(Mt=Ie).pop()),Ie=ee.symbols_[Ie]||Ie),Ie}typeof Ce.yy.parseError=="function"?this.parseError=Ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Lr,Ue,dr,qe,gr,rn,Dr,Ar,De,rr={};;){if(dr=he[he.length-1],this.defaultActions[dr]?qe=this.defaultActions[dr]:(Lr==null&&(Lr=se()),qe=wt[dr]&&wt[dr][Lr]),qe===void 0||!qe.length||!qe[0]){var Qe="";for(rn in De=[],wt[dr])this.terminals_[rn]&&rn>ar&&De.push("'"+this.terminals_[rn]+"'");Qe=ze.showPosition?"Parse error on line "+(Rt+1)+`:
|
|
`+ze.showPosition()+`
|
|
Expecting `+De.join(", ")+", got '"+(this.terminals_[Lr]||Lr)+"'":"Parse error on line "+(Rt+1)+": Unexpected "+(Lr==Ze?"end of input":"'"+(this.terminals_[Lr]||Lr)+"'"),this.parseError(Qe,{text:ze.match,token:this.terminals_[Lr]||Lr,line:ze.yylineno,loc:Fe,expected:De})}if(qe[0]instanceof Array&&qe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+dr+", token: "+Lr);switch(qe[0]){case 1:he.push(Lr),ie.push(ze.yytext),pt.push(ze.yylloc),he.push(qe[1]),Lr=null,Ue?(Lr=Ue,Ue=null):(me=ze.yyleng,xt=ze.yytext,Rt=ze.yylineno,Fe=ze.yylloc,Pe>0);break;case 2:if(Dr=this.productions_[qe[1]][1],rr.$=ie[ie.length-Dr],rr._$={first_line:pt[pt.length-(Dr||1)].first_line,last_line:pt[pt.length-1].last_line,first_column:pt[pt.length-(Dr||1)].first_column,last_column:pt[pt.length-1].last_column},be&&(rr._$.range=[pt[pt.length-(Dr||1)].range[0],pt[pt.length-1].range[1]]),(gr=this.performAction.apply(rr,[xt,me,Rt,Ce.yy,qe[1],ie,pt].concat(ur)))!==void 0)return gr;Dr&&(he=he.slice(0,-1*Dr*2),ie=ie.slice(0,-1*Dr),pt=pt.slice(0,-1*Dr)),he.push(this.productions_[qe[1]][0]),ie.push(rr.$),pt.push(rr._$),Ar=wt[he[he.length-2]][he[he.length-1]],he.push(Ar);break;case 3:return!0}}return!0}},_e={EOF:1,parseError:function(oe,ee){if(!this.yy.parser)throw new Error(oe);this.yy.parser.parseError(oe,ee)},setInput:function(oe,ee){return this.yy=ee||this.yy||{},this._input=oe,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 oe=this._input[0];return this.yytext+=oe,this.yyleng++,this.offset++,this.match+=oe,this.matched+=oe,oe.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),oe},unput:function(oe){var ee=oe.length,he=oe.split(/(?:\r\n?|\n)/g);this._input=oe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ee),this.offset-=ee;var Mt=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),he.length-1&&(this.yylineno-=he.length-1);var ie=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:he?(he.length===Mt.length?this.yylloc.first_column:0)+Mt[Mt.length-he.length].length-he[0].length:this.yylloc.first_column-ee},this.options.ranges&&(this.yylloc.range=[ie[0],ie[0]+this.yyleng-ee]),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(oe){this.unput(this.match.slice(oe))},pastInput:function(){var oe=this.matched.substr(0,this.matched.length-this.match.length);return(oe.length>20?"...":"")+oe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var oe=this.match;return oe.length<20&&(oe+=this._input.substr(0,20-oe.length)),(oe.substr(0,20)+(oe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var oe=this.pastInput(),ee=new Array(oe.length+1).join("-");return oe+this.upcomingInput()+`
|
|
`+ee+"^"},test_match:function(oe,ee){var he,Mt,ie;if(this.options.backtrack_lexer&&(ie={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&&(ie.yylloc.range=this.yylloc.range.slice(0))),(Mt=oe[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Mt?Mt[Mt.length-1].length-Mt[Mt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+oe[0].length},this.yytext+=oe[0],this.match+=oe[0],this.matches=oe,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(oe[0].length),this.matched+=oe[0],he=this.performAction.call(this,this.yy,this,ee,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),he)return he;if(this._backtrack){for(var pt in ie)this[pt]=ie[pt];return!1}return!1},next:function(){if(this.done)return this.EOF;var oe,ee,he,Mt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ie=this._currentRules(),pt=0;pt<ie.length;pt++)if((he=this._input.match(this.rules[ie[pt]]))&&(!ee||he[0].length>ee[0].length)){if(ee=he,Mt=pt,this.options.backtrack_lexer){if((oe=this.test_match(he,ie[pt]))!==!1)return oe;if(this._backtrack){ee=!1;continue}return!1}if(!this.options.flex)break}return ee?(oe=this.test_match(ee,ie[Mt]))!==!1&&oe: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(oe){this.conditionStack.push(oe)},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(oe){return(oe=this.conditionStack.length-1-Math.abs(oe||0))>=0?this.conditionStack[oe]:"INITIAL"},pushState:function(oe){this.begin(oe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(oe,ee,he,Mt){switch(he){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 ee.yytext=ee.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 er(){this.yy={}}return Sr.lexer=_e,er.prototype=Sr,Sr.Parser=er,new er}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(8800).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},6876:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(oe,ee,he,Mt){for(he=he||{},Mt=oe.length;Mt--;he[oe[Mt]]=ee);return he},v=[1,2],_=[1,3],A=[1,5],M=[1,7],T=[2,5],O=[1,15],B=[1,17],z=[1,18],q=[1,19],J=[1,21],rt=[1,22],ut=[1,23],Z=[1,29],mt=[1,30],nt=[1,31],at=[1,32],_t=[1,33],jt=[1,34],St=[1,35],gt=[1,36],Ct=[1,37],vt=[1,38],ft=[1,39],Q=[1,40],ht=[1,43],$=[1,44],kt=[1,45],W=[1,46],At=[1,47],Nt=[1,48],Gt=[1,51],xe=[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],Ge=[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],Te=[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],ye=[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],ke=[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],Me=[67,68,69],Oe=[1,121],we=[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],Sr={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(oe,ee,he,Mt,ie,pt,wt){var xt=pt.length-1;switch(ie){case 4:return Mt.apply(pt[xt]),pt[xt];case 5:case 9:this.$=[];break;case 6:pt[xt-1].push(pt[xt]),this.$=pt[xt-1];break;case 7:case 8:case 56:this.$=pt[xt];break;case 12:pt[xt-3].type="addParticipant",pt[xt-3].description=Mt.parseMessage(pt[xt-1]),this.$=pt[xt-3];break;case 13:pt[xt-1].type="addParticipant",this.$=pt[xt-1];break;case 14:pt[xt-3].type="addActor",pt[xt-3].description=Mt.parseMessage(pt[xt-1]),this.$=pt[xt-3];break;case 15:pt[xt-1].type="addActor",this.$=pt[xt-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(pt[xt-2]),sequenceIndexStep:Number(pt[xt-1]),sequenceVisible:!0,signalType:Mt.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(pt[xt-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Mt.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Mt.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Mt.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:Mt.LINETYPE.ACTIVE_START,actor:pt[xt-1]};break;case 22:this.$={type:"activeEnd",signalType:Mt.LINETYPE.ACTIVE_END,actor:pt[xt-1]};break;case 28:Mt.setDiagramTitle(pt[xt].substring(6)),this.$=pt[xt].substring(6);break;case 29:Mt.setDiagramTitle(pt[xt].substring(7)),this.$=pt[xt].substring(7);break;case 30:this.$=pt[xt].trim(),Mt.setAccTitle(this.$);break;case 31:case 32:this.$=pt[xt].trim(),Mt.setAccDescription(this.$);break;case 33:pt[xt-1].unshift({type:"loopStart",loopText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.LOOP_START}),pt[xt-1].push({type:"loopEnd",loopText:pt[xt-2],signalType:Mt.LINETYPE.LOOP_END}),this.$=pt[xt-1];break;case 34:pt[xt-1].unshift({type:"rectStart",color:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.RECT_START}),pt[xt-1].push({type:"rectEnd",color:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.RECT_END}),this.$=pt[xt-1];break;case 35:pt[xt-1].unshift({type:"optStart",optText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.OPT_START}),pt[xt-1].push({type:"optEnd",optText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.OPT_END}),this.$=pt[xt-1];break;case 36:pt[xt-1].unshift({type:"altStart",altText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.ALT_START}),pt[xt-1].push({type:"altEnd",signalType:Mt.LINETYPE.ALT_END}),this.$=pt[xt-1];break;case 37:pt[xt-1].unshift({type:"parStart",parText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.PAR_START}),pt[xt-1].push({type:"parEnd",signalType:Mt.LINETYPE.PAR_END}),this.$=pt[xt-1];break;case 38:pt[xt-1].unshift({type:"criticalStart",criticalText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.CRITICAL_START}),pt[xt-1].push({type:"criticalEnd",signalType:Mt.LINETYPE.CRITICAL_END}),this.$=pt[xt-1];break;case 39:pt[xt-1].unshift({type:"breakStart",breakText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.BREAK_START}),pt[xt-1].push({type:"breakEnd",optText:Mt.parseMessage(pt[xt-2]),signalType:Mt.LINETYPE.BREAK_END}),this.$=pt[xt-1];break;case 42:this.$=pt[xt-3].concat([{type:"option",optionText:Mt.parseMessage(pt[xt-1]),signalType:Mt.LINETYPE.CRITICAL_OPTION},pt[xt]]);break;case 44:this.$=pt[xt-3].concat([{type:"and",parText:Mt.parseMessage(pt[xt-1]),signalType:Mt.LINETYPE.PAR_AND},pt[xt]]);break;case 46:this.$=pt[xt-3].concat([{type:"else",altText:Mt.parseMessage(pt[xt-1]),signalType:Mt.LINETYPE.ALT_ELSE},pt[xt]]);break;case 47:this.$=[pt[xt-1],{type:"addNote",placement:pt[xt-2],actor:pt[xt-1].actor,text:pt[xt]}];break;case 48:pt[xt-2]=[].concat(pt[xt-1],pt[xt-1]).slice(0,2),pt[xt-2][0]=pt[xt-2][0].actor,pt[xt-2][1]=pt[xt-2][1].actor,this.$=[pt[xt-1],{type:"addNote",placement:Mt.PLACEMENT.OVER,actor:pt[xt-2].slice(0,2),text:pt[xt]}];break;case 49:this.$=[pt[xt-1],{type:"addLinks",actor:pt[xt-1].actor,text:pt[xt]}];break;case 50:this.$=[pt[xt-1],{type:"addALink",actor:pt[xt-1].actor,text:pt[xt]}];break;case 51:this.$=[pt[xt-1],{type:"addProperties",actor:pt[xt-1].actor,text:pt[xt]}];break;case 52:this.$=[pt[xt-1],{type:"addDetails",actor:pt[xt-1].actor,text:pt[xt]}];break;case 55:this.$=[pt[xt-2],pt[xt]];break;case 57:this.$=Mt.PLACEMENT.LEFTOF;break;case 58:this.$=Mt.PLACEMENT.RIGHTOF;break;case 59:this.$=[pt[xt-4],pt[xt-1],{type:"addMessage",from:pt[xt-4].actor,to:pt[xt-1].actor,signalType:pt[xt-3],msg:pt[xt]},{type:"activeStart",signalType:Mt.LINETYPE.ACTIVE_START,actor:pt[xt-1]}];break;case 60:this.$=[pt[xt-4],pt[xt-1],{type:"addMessage",from:pt[xt-4].actor,to:pt[xt-1].actor,signalType:pt[xt-3],msg:pt[xt]},{type:"activeEnd",signalType:Mt.LINETYPE.ACTIVE_END,actor:pt[xt-4]}];break;case 61:this.$=[pt[xt-3],pt[xt-1],{type:"addMessage",from:pt[xt-3].actor,to:pt[xt-1].actor,signalType:pt[xt-2],msg:pt[xt]}];break;case 62:this.$={type:"addParticipant",actor:pt[xt]};break;case 63:this.$=Mt.LINETYPE.SOLID_OPEN;break;case 64:this.$=Mt.LINETYPE.DOTTED_OPEN;break;case 65:this.$=Mt.LINETYPE.SOLID;break;case 66:this.$=Mt.LINETYPE.DOTTED;break;case 67:this.$=Mt.LINETYPE.SOLID_CROSS;break;case 68:this.$=Mt.LINETYPE.DOTTED_CROSS;break;case 69:this.$=Mt.LINETYPE.SOLID_POINT;break;case 70:this.$=Mt.LINETYPE.DOTTED_POINT;break;case 71:this.$=Mt.parseMessage(pt[xt].trim().substring(1));break;case 72:Mt.parseDirective("%%{","open_directive");break;case 73:Mt.parseDirective(pt[xt],"type_directive");break;case 74:pt[xt]=pt[xt].trim().replace(/'/g,'"'),Mt.parseDirective(pt[xt],"arg_directive");break;case 75:Mt.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:v,5:_,6:4,7:A,11:6,79:M},{1:[3]},{3:8,4:v,5:_,6:4,7:A,11:6,79:M},{3:9,4:v,5:_,6:4,7:A,11:6,79:M},{3:10,4:v,5:_,6:4,7:A,11:6,79:M},f([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],T,{8:11}),{12:12,80:[1,13]},{80:[2,72]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{13:49,14:[1,50],82:Gt},f([14,82],[2,73]),f(xe,[2,6]),{6:41,10:52,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},f(xe,[2,8]),f(xe,[2,9]),{17:53,69:Nt},{17:54,69:Nt},{5:[1,55]},{5:[1,58],23:[1,56],24:[1,57]},{17:59,69:Nt},{17:60,69:Nt},{5:[1,61]},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},f(xe,[2,28]),f(xe,[2,29]),{35:[1,66]},{37:[1,67]},f(xe,[2,32]),{19:[1,68]},{19:[1,69]},{19:[1,70]},{19:[1,71]},{19:[1,72]},{19:[1,73]},{19:[1,74]},f(xe,[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:Nt},{17:89,69:Nt},{17:90,69:Nt},{17:91,69:Nt},f([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]},f(xe,[2,7]),{5:[1,96],18:[1,95]},{5:[1,98],18:[1,97]},f(xe,[2,16]),{5:[1,100],23:[1,99]},{5:[1,101]},f(xe,[2,20]),{5:[1,102]},{5:[1,103]},f(xe,[2,23]),f(xe,[2,24]),f(xe,[2,25]),f(xe,[2,26]),f(xe,[2,27]),f(xe,[2,30]),f(xe,[2,31]),f(Ge,T,{8:104}),f(Ge,T,{8:105}),f(Ge,T,{8:106}),f(Te,T,{44:107,8:108}),f(ye,T,{46:109,8:110}),f(ke,T,{48:111,8:112}),f(Ge,T,{8:113}),{17:116,67:[1,114],68:[1,115],69:Nt},f(Me,[2,63]),f(Me,[2,64]),f(Me,[2,65]),f(Me,[2,66]),f(Me,[2,67]),f(Me,[2,68]),f(Me,[2,69]),f(Me,[2,70]),{17:117,69:Nt},{17:119,57:118,69:Nt},{69:[2,57]},{69:[2,58]},{55:120,78:Oe},{55:122,78:Oe},{55:123,78:Oe},{55:124,78:Oe},f(we,[2,10]),{13:125,82:Gt},{82:[2,74]},{19:[1,126]},f(xe,[2,13]),{19:[1,127]},f(xe,[2,15]),{5:[1,128]},f(xe,[2,18]),f(xe,[2,19]),f(xe,[2,21]),f(xe,[2,22]),{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[1,129],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[1,130],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[1,131],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{40:[1,132]},{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[2,45],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,52:[1,133],53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{40:[1,134]},{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[2,43],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,51:[1,135],53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{40:[1,136]},{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[2,41],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,50:[1,137],53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{4:O,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:q,21:20,22:J,25:rt,26:ut,27:24,28:25,29:26,30:27,31:28,32:Z,33:mt,34:nt,36:at,38:_t,39:jt,40:[1,138],41:St,42:gt,43:Ct,45:vt,47:ft,49:Q,53:ht,58:$,59:kt,60:W,61:At,69:Nt,79:M},{17:139,69:Nt},{17:140,69:Nt},{55:141,78:Oe},{55:142,78:Oe},{55:143,78:Oe},{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]},f(xe,[2,17]),f(xe,[2,33]),f(xe,[2,34]),f(xe,[2,35]),f(xe,[2,36]),{19:[1,148]},f(xe,[2,37]),{19:[1,149]},f(xe,[2,38]),{19:[1,150]},f(xe,[2,39]),{55:151,78:Oe},{55:152,78:Oe},{5:[2,61]},{5:[2,47]},{5:[2,48]},{17:153,69:Nt},f(we,[2,11]),f(xe,[2,12]),f(xe,[2,14]),f(Te,T,{8:108,44:154}),f(ye,T,{8:110,46:155}),f(ke,T,{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(oe,ee){if(!ee.recoverable){var he=new Error(oe);throw he.hash=ee,he}this.trace(oe)},parse:function(oe){var ee=this,he=[0],Mt=[],ie=[null],pt=[],wt=this.table,xt="",Rt=0,me=0,Pe=0,ar=2,Ze=1,ur=pt.slice.call(arguments,1),ze=Object.create(this.lexer),Ce={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(Ce.yy[Be]=this.yy[Be]);ze.setInput(oe,Ce.yy),Ce.yy.lexer=ze,Ce.yy.parser=this,ze.yylloc===void 0&&(ze.yylloc={});var Fe=ze.yylloc;pt.push(Fe);var be=ze.options&&ze.options.ranges;function se(){var Ie;return typeof(Ie=Mt.pop()||ze.lex()||Ze)!="number"&&(Ie instanceof Array&&(Ie=(Mt=Ie).pop()),Ie=ee.symbols_[Ie]||Ie),Ie}typeof Ce.yy.parseError=="function"?this.parseError=Ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Lr,Ue,dr,qe,gr,rn,Dr,Ar,De,rr={};;){if(dr=he[he.length-1],this.defaultActions[dr]?qe=this.defaultActions[dr]:(Lr==null&&(Lr=se()),qe=wt[dr]&&wt[dr][Lr]),qe===void 0||!qe.length||!qe[0]){var Qe="";for(rn in De=[],wt[dr])this.terminals_[rn]&&rn>ar&&De.push("'"+this.terminals_[rn]+"'");Qe=ze.showPosition?"Parse error on line "+(Rt+1)+`:
|
|
`+ze.showPosition()+`
|
|
Expecting `+De.join(", ")+", got '"+(this.terminals_[Lr]||Lr)+"'":"Parse error on line "+(Rt+1)+": Unexpected "+(Lr==Ze?"end of input":"'"+(this.terminals_[Lr]||Lr)+"'"),this.parseError(Qe,{text:ze.match,token:this.terminals_[Lr]||Lr,line:ze.yylineno,loc:Fe,expected:De})}if(qe[0]instanceof Array&&qe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+dr+", token: "+Lr);switch(qe[0]){case 1:he.push(Lr),ie.push(ze.yytext),pt.push(ze.yylloc),he.push(qe[1]),Lr=null,Ue?(Lr=Ue,Ue=null):(me=ze.yyleng,xt=ze.yytext,Rt=ze.yylineno,Fe=ze.yylloc,Pe>0);break;case 2:if(Dr=this.productions_[qe[1]][1],rr.$=ie[ie.length-Dr],rr._$={first_line:pt[pt.length-(Dr||1)].first_line,last_line:pt[pt.length-1].last_line,first_column:pt[pt.length-(Dr||1)].first_column,last_column:pt[pt.length-1].last_column},be&&(rr._$.range=[pt[pt.length-(Dr||1)].range[0],pt[pt.length-1].range[1]]),(gr=this.performAction.apply(rr,[xt,me,Rt,Ce.yy,qe[1],ie,pt].concat(ur)))!==void 0)return gr;Dr&&(he=he.slice(0,-1*Dr*2),ie=ie.slice(0,-1*Dr),pt=pt.slice(0,-1*Dr)),he.push(this.productions_[qe[1]][0]),ie.push(rr.$),pt.push(rr._$),Ar=wt[he[he.length-2]][he[he.length-1]],he.push(Ar);break;case 3:return!0}}return!0}},_e={EOF:1,parseError:function(oe,ee){if(!this.yy.parser)throw new Error(oe);this.yy.parser.parseError(oe,ee)},setInput:function(oe,ee){return this.yy=ee||this.yy||{},this._input=oe,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 oe=this._input[0];return this.yytext+=oe,this.yyleng++,this.offset++,this.match+=oe,this.matched+=oe,oe.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),oe},unput:function(oe){var ee=oe.length,he=oe.split(/(?:\r\n?|\n)/g);this._input=oe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ee),this.offset-=ee;var Mt=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),he.length-1&&(this.yylineno-=he.length-1);var ie=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:he?(he.length===Mt.length?this.yylloc.first_column:0)+Mt[Mt.length-he.length].length-he[0].length:this.yylloc.first_column-ee},this.options.ranges&&(this.yylloc.range=[ie[0],ie[0]+this.yyleng-ee]),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(oe){this.unput(this.match.slice(oe))},pastInput:function(){var oe=this.matched.substr(0,this.matched.length-this.match.length);return(oe.length>20?"...":"")+oe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var oe=this.match;return oe.length<20&&(oe+=this._input.substr(0,20-oe.length)),(oe.substr(0,20)+(oe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var oe=this.pastInput(),ee=new Array(oe.length+1).join("-");return oe+this.upcomingInput()+`
|
|
`+ee+"^"},test_match:function(oe,ee){var he,Mt,ie;if(this.options.backtrack_lexer&&(ie={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&&(ie.yylloc.range=this.yylloc.range.slice(0))),(Mt=oe[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Mt?Mt[Mt.length-1].length-Mt[Mt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+oe[0].length},this.yytext+=oe[0],this.match+=oe[0],this.matches=oe,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(oe[0].length),this.matched+=oe[0],he=this.performAction.call(this,this.yy,this,ee,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),he)return he;if(this._backtrack){for(var pt in ie)this[pt]=ie[pt];return!1}return!1},next:function(){if(this.done)return this.EOF;var oe,ee,he,Mt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ie=this._currentRules(),pt=0;pt<ie.length;pt++)if((he=this._input.match(this.rules[ie[pt]]))&&(!ee||he[0].length>ee[0].length)){if(ee=he,Mt=pt,this.options.backtrack_lexer){if((oe=this.test_match(he,ie[pt]))!==!1)return oe;if(this._backtrack){ee=!1;continue}return!1}if(!this.options.flex)break}return ee?(oe=this.test_match(ee,ie[Mt]))!==!1&&oe: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(oe){this.conditionStack.push(oe)},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(oe){return(oe=this.conditionStack.length-1-Math.abs(oe||0))>=0?this.conditionStack[oe]:"INITIAL"},pushState:function(oe){this.begin(oe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(oe,ee,he,Mt){switch(he){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 ee.yytext=ee.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 ee.yytext=ee.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 er(){this.yy={}}return Sr.lexer=_e,er.prototype=Sr,Sr.Parser=er,new er}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(1993).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},3584:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(Te,ye,ke,Me){for(ke=ke||{},Me=Te.length;Me--;ke[Te[Me]]=ye);return ke},v=[1,2],_=[1,3],A=[1,5],M=[1,7],T=[2,5],O=[1,15],B=[1,17],z=[1,19],q=[1,20],J=[1,21],rt=[1,22],ut=[1,33],Z=[1,23],mt=[1,24],nt=[1,25],at=[1,26],_t=[1,27],jt=[1,30],St=[1,31],gt=[1,32],Ct=[1,35],vt=[1,36],ft=[1,37],Q=[1,38],ht=[1,34],$=[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],At=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Nt=[4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Gt={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(Te,ye,ke,Me,Oe,we,Sr){var _e=we.length-1;switch(Oe){case 4:return Me.setRootDoc(we[_e]),we[_e];case 5:this.$=[];break;case 6:we[_e]!="nl"&&(we[_e-1].push(we[_e]),this.$=we[_e-1]);break;case 7:case 8:case 39:case 40:this.$=we[_e];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:we[_e],type:"default",description:""};break;case 11:this.$={stmt:"state",id:we[_e-1],type:"default",description:Me.trimColon(we[_e])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:we[_e-2],type:"default",description:""},state2:{stmt:"state",id:we[_e],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:we[_e-3],type:"default",description:""},state2:{stmt:"state",id:we[_e-1],type:"default",description:""},description:we[_e].substr(1).trim()};break;case 17:this.$={stmt:"state",id:we[_e-3],type:"default",description:"",doc:we[_e-1]};break;case 18:var er=we[_e],oe=we[_e-2].trim();if(we[_e].match(":")){var ee=we[_e].split(":");er=ee[0],oe=[oe,ee[1]]}this.$={stmt:"state",id:er,type:"default",description:oe};break;case 19:this.$={stmt:"state",id:we[_e-3],type:"default",description:we[_e-5],doc:we[_e-1]};break;case 20:this.$={stmt:"state",id:we[_e],type:"fork"};break;case 21:this.$={stmt:"state",id:we[_e],type:"join"};break;case 22:this.$={stmt:"state",id:we[_e],type:"choice"};break;case 23:this.$={stmt:"state",id:Me.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:we[_e-1].trim(),note:{position:we[_e-2].trim(),text:we[_e].trim()}};break;case 28:this.$=we[_e].trim(),Me.setAccTitle(this.$);break;case 29:case 30:this.$=we[_e].trim(),Me.setAccDescription(this.$);break;case 33:Me.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 34:Me.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 35:Me.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 36:Me.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 43:Me.parseDirective("%%{","open_directive");break;case 44:Me.parseDirective(we[_e],"type_directive");break;case 45:we[_e]=we[_e].trim().replace(/'/g,'"'),Me.parseDirective(we[_e],"arg_directive");break;case 46:Me.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:v,5:_,6:4,7:A,36:6,50:M},{1:[3]},{3:8,4:v,5:_,6:4,7:A,36:6,50:M},{3:9,4:v,5:_,6:4,7:A,36:6,50:M},{3:10,4:v,5:_,6:4,7:A,36:6,50:M},f([1,4,5,14,15,17,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],T,{8:11}),{37:12,51:[1,13]},{51:[2,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:O,5:B,6:28,9:14,10:16,11:18,14:z,15:q,17:J,20:rt,22:ut,23:Z,24:mt,25:nt,26:at,27:_t,30:29,31:jt,33:St,35:gt,36:6,41:Ct,42:vt,43:ft,44:Q,47:ht,50:M},{38:39,39:[1,40],53:$},f([39,53],[2,44]),f(kt,[2,6]),{6:28,10:42,11:18,14:z,15:q,17:J,20:rt,22:ut,23:Z,24:mt,25:nt,26:at,27:_t,30:29,31:jt,33:St,35:gt,36:6,41:Ct,42:vt,43:ft,44:Q,47:ht,50:M},f(kt,[2,8]),f(kt,[2,9]),f(kt,[2,10],{12:[1,43],13:[1,44]}),f(kt,[2,14]),{16:[1,45]},f(kt,[2,16],{18:[1,46]}),{21:[1,47]},f(kt,[2,20]),f(kt,[2,21]),f(kt,[2,22]),f(kt,[2,23]),{28:48,29:[1,49],48:[1,50],49:[1,51]},f(kt,[2,26]),f(kt,[2,27]),{32:[1,52]},{34:[1,53]},f(kt,[2,30]),f(W,[2,39]),f(W,[2,40]),f(kt,[2,33]),f(kt,[2,34]),f(kt,[2,35]),f(kt,[2,36]),f(At,[2,31]),{40:54,52:[1,55]},f(At,[2,46]),f(kt,[2,7]),f(kt,[2,11]),{11:56,22:ut,47:ht},f(kt,[2,15]),f(Nt,T,{8:57}),{22:[1,58]},{22:[1,59]},{21:[1,60]},{22:[2,41]},{22:[2,42]},f(kt,[2,28]),f(kt,[2,29]),{38:61,53:$},{53:[2,45]},f(kt,[2,12],{12:[1,62]}),{4:O,5:B,6:28,9:14,10:16,11:18,14:z,15:q,17:J,19:[1,63],20:rt,22:ut,23:Z,24:mt,25:nt,26:at,27:_t,30:29,31:jt,33:St,35:gt,36:6,41:Ct,42:vt,43:ft,44:Q,47:ht,50:M},f(kt,[2,18],{18:[1,64]}),{29:[1,65]},{22:[1,66]},f(At,[2,32]),f(kt,[2,13]),f(kt,[2,17]),f(Nt,T,{8:67}),f(kt,[2,24]),f(kt,[2,25]),{4:O,5:B,6:28,9:14,10:16,11:18,14:z,15:q,17:J,19:[1,68],20:rt,22:ut,23:Z,24:mt,25:nt,26:at,27:_t,30:29,31:jt,33:St,35:gt,36:6,41:Ct,42:vt,43:ft,44:Q,47:ht,50:M},f(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(Te,ye){if(!ye.recoverable){var ke=new Error(Te);throw ke.hash=ye,ke}this.trace(Te)},parse:function(Te){var ye=this,ke=[0],Me=[],Oe=[null],we=[],Sr=this.table,_e="",er=0,oe=0,ee=0,he=2,Mt=1,ie=we.slice.call(arguments,1),pt=Object.create(this.lexer),wt={yy:{}};for(var xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xt)&&(wt.yy[xt]=this.yy[xt]);pt.setInput(Te,wt.yy),wt.yy.lexer=pt,wt.yy.parser=this,pt.yylloc===void 0&&(pt.yylloc={});var Rt=pt.yylloc;we.push(Rt);var me=pt.options&&pt.options.ranges;function Pe(){var dr;return typeof(dr=Me.pop()||pt.lex()||Mt)!="number"&&(dr instanceof Array&&(dr=(Me=dr).pop()),dr=ye.symbols_[dr]||dr),dr}typeof wt.yy.parseError=="function"?this.parseError=wt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ar,Ze,ur,ze,Ce,Be,Fe,be,se,Lr={};;){if(ur=ke[ke.length-1],this.defaultActions[ur]?ze=this.defaultActions[ur]:(ar==null&&(ar=Pe()),ze=Sr[ur]&&Sr[ur][ar]),ze===void 0||!ze.length||!ze[0]){var Ue="";for(Be in se=[],Sr[ur])this.terminals_[Be]&&Be>he&&se.push("'"+this.terminals_[Be]+"'");Ue=pt.showPosition?"Parse error on line "+(er+1)+`:
|
|
`+pt.showPosition()+`
|
|
Expecting `+se.join(", ")+", got '"+(this.terminals_[ar]||ar)+"'":"Parse error on line "+(er+1)+": Unexpected "+(ar==Mt?"end of input":"'"+(this.terminals_[ar]||ar)+"'"),this.parseError(Ue,{text:pt.match,token:this.terminals_[ar]||ar,line:pt.yylineno,loc:Rt,expected:se})}if(ze[0]instanceof Array&&ze.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ur+", token: "+ar);switch(ze[0]){case 1:ke.push(ar),Oe.push(pt.yytext),we.push(pt.yylloc),ke.push(ze[1]),ar=null,Ze?(ar=Ze,Ze=null):(oe=pt.yyleng,_e=pt.yytext,er=pt.yylineno,Rt=pt.yylloc,ee>0);break;case 2:if(Fe=this.productions_[ze[1]][1],Lr.$=Oe[Oe.length-Fe],Lr._$={first_line:we[we.length-(Fe||1)].first_line,last_line:we[we.length-1].last_line,first_column:we[we.length-(Fe||1)].first_column,last_column:we[we.length-1].last_column},me&&(Lr._$.range=[we[we.length-(Fe||1)].range[0],we[we.length-1].range[1]]),(Ce=this.performAction.apply(Lr,[_e,oe,er,wt.yy,ze[1],Oe,we].concat(ie)))!==void 0)return Ce;Fe&&(ke=ke.slice(0,-1*Fe*2),Oe=Oe.slice(0,-1*Fe),we=we.slice(0,-1*Fe)),ke.push(this.productions_[ze[1]][0]),Oe.push(Lr.$),we.push(Lr._$),be=Sr[ke[ke.length-2]][ke[ke.length-1]],ke.push(be);break;case 3:return!0}}return!0}},xe={EOF:1,parseError:function(Te,ye){if(!this.yy.parser)throw new Error(Te);this.yy.parser.parseError(Te,ye)},setInput:function(Te,ye){return this.yy=ye||this.yy||{},this._input=Te,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 Te=this._input[0];return this.yytext+=Te,this.yyleng++,this.offset++,this.match+=Te,this.matched+=Te,Te.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),Te},unput:function(Te){var ye=Te.length,ke=Te.split(/(?:\r\n?|\n)/g);this._input=Te+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ye),this.offset-=ye;var Me=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),ke.length-1&&(this.yylineno-=ke.length-1);var Oe=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:ke?(ke.length===Me.length?this.yylloc.first_column:0)+Me[Me.length-ke.length].length-ke[0].length:this.yylloc.first_column-ye},this.options.ranges&&(this.yylloc.range=[Oe[0],Oe[0]+this.yyleng-ye]),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(Te){this.unput(this.match.slice(Te))},pastInput:function(){var Te=this.matched.substr(0,this.matched.length-this.match.length);return(Te.length>20?"...":"")+Te.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Te=this.match;return Te.length<20&&(Te+=this._input.substr(0,20-Te.length)),(Te.substr(0,20)+(Te.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Te=this.pastInput(),ye=new Array(Te.length+1).join("-");return Te+this.upcomingInput()+`
|
|
`+ye+"^"},test_match:function(Te,ye){var ke,Me,Oe;if(this.options.backtrack_lexer&&(Oe={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&&(Oe.yylloc.range=this.yylloc.range.slice(0))),(Me=Te[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Me.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Me?Me[Me.length-1].length-Me[Me.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Te[0].length},this.yytext+=Te[0],this.match+=Te[0],this.matches=Te,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(Te[0].length),this.matched+=Te[0],ke=this.performAction.call(this,this.yy,this,ye,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ke)return ke;if(this._backtrack){for(var we in Oe)this[we]=Oe[we];return!1}return!1},next:function(){if(this.done)return this.EOF;var Te,ye,ke,Me;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Oe=this._currentRules(),we=0;we<Oe.length;we++)if((ke=this._input.match(this.rules[Oe[we]]))&&(!ye||ke[0].length>ye[0].length)){if(ye=ke,Me=we,this.options.backtrack_lexer){if((Te=this.test_match(ke,Oe[we]))!==!1)return Te;if(this._backtrack){ye=!1;continue}return!1}if(!this.options.flex)break}return ye?(Te=this.test_match(ye,Oe[Me]))!==!1&&Te: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(Te){this.conditionStack.push(Te)},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(Te){return(Te=this.conditionStack.length-1-Math.abs(Te||0))>=0?this.conditionStack[Te]:"INITIAL"},pushState:function(Te){this.begin(Te)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Te,ye,ke,Me){switch(ke){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(),ye.yytext=ye.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),ye.yytext=ye.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),ye.yytext=ye.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(),ye.yytext=ye.yytext.substr(2).trim(),29;case 57:return this.popState(),ye.yytext=ye.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 ye.yytext=ye.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 Ge(){this.yy={}}return Gt.lexer=xe,Ge.prototype=Gt,Gt.Parser=Ge,new Ge}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(3069).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},9763:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(nt,at,_t,jt){for(_t=_t||{},jt=nt.length;jt--;_t[nt[jt]]=at);return _t},v=[1,2],_=[1,5],A=[6,9,11,17,18,20,22,23,24,26],M=[1,15],T=[1,16],O=[1,17],B=[1,18],z=[1,19],q=[1,20],J=[1,24],rt=[4,6,9,11,17,18,20,22,23,24,26],ut={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(nt,at,_t,jt,St,gt,Ct){var vt=gt.length-1;switch(St){case 1:return gt[vt-1];case 3:case 7:case 8:this.$=[];break;case 4:gt[vt-1].push(gt[vt]),this.$=gt[vt-1];break;case 5:case 6:this.$=gt[vt];break;case 11:jt.setDiagramTitle(gt[vt].substr(6)),this.$=gt[vt].substr(6);break;case 12:this.$=gt[vt].trim(),jt.setAccTitle(this.$);break;case 13:case 14:this.$=gt[vt].trim(),jt.setAccDescription(this.$);break;case 15:jt.addSection(gt[vt].substr(8)),this.$=gt[vt].substr(8);break;case 16:jt.addTask(gt[vt-1],gt[vt]),this.$="task";break;case 18:jt.parseDirective("%%{","open_directive");break;case 19:jt.parseDirective(gt[vt],"type_directive");break;case 20:gt[vt]=gt[vt].trim().replace(/'/g,'"'),jt.parseDirective(gt[vt],"arg_directive");break;case 21:jt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:v,7:3,12:4,26:_},{1:[3]},f(A,[2,3],{5:6}),{3:7,4:v,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:T,20:O,22:B,23:z,24:q,26:_},{1:[2,2]},{14:22,15:[1,23],29:J},f([15,29],[2,19]),f(A,[2,8],{1:[2,1]}),f(A,[2,4]),{7:21,10:25,12:4,17:M,18:T,20:O,22:B,23:z,24:q,26:_},f(A,[2,6]),f(A,[2,7]),f(A,[2,11]),{19:[1,26]},{21:[1,27]},f(A,[2,14]),f(A,[2,15]),{25:[1,28]},f(A,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},f(A,[2,5]),f(A,[2,12]),f(A,[2,13]),f(A,[2,16]),f(rt,[2,9]),{14:32,29:J},{29:[2,20]},{11:[1,33]},f(rt,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(nt,at){if(!at.recoverable){var _t=new Error(nt);throw _t.hash=at,_t}this.trace(nt)},parse:function(nt){var at=this,_t=[0],jt=[],St=[null],gt=[],Ct=this.table,vt="",ft=0,Q=0,ht=0,$=2,kt=1,W=gt.slice.call(arguments,1),At=Object.create(this.lexer),Nt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(Nt.yy[Gt]=this.yy[Gt]);At.setInput(nt,Nt.yy),Nt.yy.lexer=At,Nt.yy.parser=this,At.yylloc===void 0&&(At.yylloc={});var xe=At.yylloc;gt.push(xe);var Ge=At.options&&At.options.ranges;function Te(){var Mt;return typeof(Mt=jt.pop()||At.lex()||kt)!="number"&&(Mt instanceof Array&&(Mt=(jt=Mt).pop()),Mt=at.symbols_[Mt]||Mt),Mt}typeof Nt.yy.parseError=="function"?this.parseError=Nt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ye,ke,Me,Oe,we,Sr,_e,er,oe,ee={};;){if(Me=_t[_t.length-1],this.defaultActions[Me]?Oe=this.defaultActions[Me]:(ye==null&&(ye=Te()),Oe=Ct[Me]&&Ct[Me][ye]),Oe===void 0||!Oe.length||!Oe[0]){var he="";for(Sr in oe=[],Ct[Me])this.terminals_[Sr]&&Sr>$&&oe.push("'"+this.terminals_[Sr]+"'");he=At.showPosition?"Parse error on line "+(ft+1)+`:
|
|
`+At.showPosition()+`
|
|
Expecting `+oe.join(", ")+", got '"+(this.terminals_[ye]||ye)+"'":"Parse error on line "+(ft+1)+": Unexpected "+(ye==kt?"end of input":"'"+(this.terminals_[ye]||ye)+"'"),this.parseError(he,{text:At.match,token:this.terminals_[ye]||ye,line:At.yylineno,loc:xe,expected:oe})}if(Oe[0]instanceof Array&&Oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Me+", token: "+ye);switch(Oe[0]){case 1:_t.push(ye),St.push(At.yytext),gt.push(At.yylloc),_t.push(Oe[1]),ye=null,ke?(ye=ke,ke=null):(Q=At.yyleng,vt=At.yytext,ft=At.yylineno,xe=At.yylloc,ht>0);break;case 2:if(_e=this.productions_[Oe[1]][1],ee.$=St[St.length-_e],ee._$={first_line:gt[gt.length-(_e||1)].first_line,last_line:gt[gt.length-1].last_line,first_column:gt[gt.length-(_e||1)].first_column,last_column:gt[gt.length-1].last_column},Ge&&(ee._$.range=[gt[gt.length-(_e||1)].range[0],gt[gt.length-1].range[1]]),(we=this.performAction.apply(ee,[vt,Q,ft,Nt.yy,Oe[1],St,gt].concat(W)))!==void 0)return we;_e&&(_t=_t.slice(0,-1*_e*2),St=St.slice(0,-1*_e),gt=gt.slice(0,-1*_e)),_t.push(this.productions_[Oe[1]][0]),St.push(ee.$),gt.push(ee._$),er=Ct[_t[_t.length-2]][_t[_t.length-1]],_t.push(er);break;case 3:return!0}}return!0}},Z={EOF:1,parseError:function(nt,at){if(!this.yy.parser)throw new Error(nt);this.yy.parser.parseError(nt,at)},setInput:function(nt,at){return this.yy=at||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 at=nt.length,_t=nt.split(/(?:\r\n?|\n)/g);this._input=nt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-at),this.offset-=at;var jt=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),_t.length-1&&(this.yylineno-=_t.length-1);var St=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:_t?(_t.length===jt.length?this.yylloc.first_column:0)+jt[jt.length-_t.length].length-_t[0].length:this.yylloc.first_column-at},this.options.ranges&&(this.yylloc.range=[St[0],St[0]+this.yyleng-at]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(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(),at=new Array(nt.length+1).join("-");return nt+this.upcomingInput()+`
|
|
`+at+"^"},test_match:function(nt,at){var _t,jt,St;if(this.options.backtrack_lexer&&(St={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&&(St.yylloc.range=this.yylloc.range.slice(0))),(jt=nt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=jt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:jt?jt[jt.length-1].length-jt[jt.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],_t=this.performAction.call(this,this.yy,this,at,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_t)return _t;if(this._backtrack){for(var gt in St)this[gt]=St[gt];return!1}return!1},next:function(){if(this.done)return this.EOF;var nt,at,_t,jt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var St=this._currentRules(),gt=0;gt<St.length;gt++)if((_t=this._input.match(this.rules[St[gt]]))&&(!at||_t[0].length>at[0].length)){if(at=_t,jt=gt,this.options.backtrack_lexer){if((nt=this.test_match(_t,St[gt]))!==!1)return nt;if(this._backtrack){at=!1;continue}return!1}if(!this.options.flex)break}return at?(nt=this.test_match(at,St[jt]))!==!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,at,_t,jt){switch(_t){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 mt(){this.yy={}}return ut.lexer=Z,mt.prototype=ut,ut.Parser=mt,new mt}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(9143).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},7967:(d,b)=>{b.N=void 0;var h=/^([^\w]*)(javascript|data|vbscript)/im,m=/&#(\w+)(^\w|;)?/g,f=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,v=/^([^:]+):/gm,_=[".","/"];b.N=function(A){var M,T=(M=A||"",M.replace(m,function(z,q){return String.fromCharCode(q)})).replace(f,"").trim();if(!T)return"about:blank";if(function(z){return _.indexOf(z[0])>-1}(T))return T;var O=T.match(v);if(!O)return T;var B=O[0];return h.test(B)?"about:blank":T}},3841:d=>{d.exports=function(b,h){return b.intersect(h)}},6187:(d,b,h)=>{h.d(b,{Z:()=>gs});var m=h(1941),f=h.n(m),v={debug:1,info:2,warn:3,error:4,fatal:5},_={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},A=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(l)&&(l=l.toLowerCase(),v[l]!==void 0&&(l=v[l])),_.trace=function(){},_.debug=function(){},_.info=function(){},_.warn=function(){},_.error=function(){},_.fatal=function(){},l<=v.fatal&&(_.fatal=console.error?console.error.bind(console,M("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",M("FATAL"))),l<=v.error&&(_.error=console.error?console.error.bind(console,M("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",M("ERROR"))),l<=v.warn&&(_.warn=console.warn?console.warn.bind(console,M("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",M("WARN"))),l<=v.info&&(_.info=console.info?console.info.bind(console,M("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",M("INFO"))),l<=v.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=f()().format("ss.SSS");return"%c".concat(o," : ").concat(l," : ")},T=h(7543),O="comm",B="rule",z="decl",q=Math.abs,J=String.fromCharCode;function rt(l){return l.trim()}function ut(l,o,y){return l.replace(o,y)}function Z(l,o){return l.indexOf(o)}function mt(l,o){return 0|l.charCodeAt(o)}function nt(l,o,y){return l.slice(o,y)}function at(l){return l.length}function _t(l){return l.length}function jt(l,o){return o.push(l),l}function St(l,o){for(var y="",k=_t(l),E=0;E<k;E++)y+=o(l[E],E,l,o)||"";return y}function gt(l,o,y,k){switch(l.type){case"@import":case z:return l.return=l.return||l.value;case O:return"";case"@keyframes":return l.return=l.value+"{"+St(l.children,k)+"}";case B:l.value=l.props.join(",")}return at(y=St(l.children,k))?l.return=l.value+"{"+y+"}":""}var Ct=1,vt=1,ft=0,Q=0,ht=0,$="";function kt(l,o,y,k,E,L,N){return{value:l,root:o,parent:y,type:k,props:E,children:L,line:Ct,column:vt,length:N,return:""}}function W(){return ht=Q>0?mt($,--Q):0,vt--,ht===10&&(vt=1,Ct--),ht}function At(){return ht=Q<ft?mt($,Q++):0,vt++,ht===10&&(vt=1,Ct++),ht}function Nt(){return mt($,Q)}function Gt(){return Q}function xe(l,o){return nt($,l,o)}function Ge(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 Te(l){return rt(xe(Q-1,Me(l===91?l+2:l===40?l+1:l)))}function ye(l){for(;(ht=Nt())&&ht<33;)At();return Ge(l)>2||Ge(ht)>3?"":" "}function ke(l,o){for(;--o&&At()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return xe(l,Gt()+(o<6&&Nt()==32&&At()==32))}function Me(l){for(;At();)switch(ht){case l:return Q;case 34:case 39:l!==34&&l!==39&&Me(ht);break;case 40:l===41&&Me(l);break;case 92:At()}return Q}function Oe(l,o){for(;At()&&l+ht!==57&&(l+ht!==84||Nt()!==47););return"/*"+xe(o,Q-1)+"*"+J(l===47?l:At())}function we(l){for(;!Ge(Nt());)At();return xe(l,Q)}function Sr(l){return function(o){return $="",o}(_e("",null,null,null,[""],l=function(o){return Ct=vt=1,ft=at($=o),Q=0,[]}(l),0,[0],l))}function _e(l,o,y,k,E,L,N,D,P){for(var U=0,K=0,tt=N,st=0,ot=0,Lt=0,Dt=1,zt=1,Ft=1,Pt=0,Yt="",It=E,ae=L,Se=k,pe=Yt;zt;)switch(Lt=Pt,Pt=At()){case 40:if(Lt!=108&&pe.charCodeAt(tt-1)==58){Z(pe+=ut(Te(Pt),"&","&\f"),"&\f")!=-1&&(Ft=-1);break}case 34:case 39:case 91:pe+=Te(Pt);break;case 9:case 10:case 13:case 32:pe+=ye(Lt);break;case 92:pe+=ke(Gt()-1,7);continue;case 47:switch(Nt()){case 42:case 47:jt(oe(Oe(At(),Gt()),o,y),P);break;default:pe+="/"}break;case 123*Dt:D[U++]=at(pe)*Ft;case 125*Dt:case 59:case 0:switch(Pt){case 0:case 125:zt=0;case 59+K:ot>0&&at(pe)-tt&&jt(ot>32?ee(pe+";",k,y,tt-1):ee(ut(pe," ","")+";",k,y,tt-2),P);break;case 59:pe+=";";default:if(jt(Se=er(pe,o,y,U,K,E,D,Yt,It=[],ae=[],tt),L),Pt===123)if(K===0)_e(pe,o,Se,Se,It,L,tt,D,ae);else switch(st){case 100:case 109:case 115:_e(l,Se,Se,k&&jt(er(l,Se,Se,0,0,E,D,Yt,E,It=[],tt),ae),E,ae,tt,D,k?It:ae);break;default:_e(pe,Se,Se,Se,[""],ae,0,D,ae)}}U=K=ot=0,Dt=Ft=1,Yt=pe="",tt=N;break;case 58:tt=1+at(pe),ot=Lt;default:if(Dt<1){if(Pt==123)--Dt;else if(Pt==125&&Dt++==0&&W()==125)continue}switch(pe+=J(Pt),Pt*Dt){case 38:Ft=K>0?1:(pe+="\f",-1);break;case 44:D[U++]=(at(pe)-1)*Ft,Ft=1;break;case 64:Nt()===45&&(pe+=Te(At())),st=Nt(),K=tt=at(Yt=pe+=we(Gt())),Pt++;break;case 45:Lt===45&&at(pe)==2&&(Dt=0)}}return L}function er(l,o,y,k,E,L,N,D,P,U,K){for(var tt=E-1,st=E===0?L:[""],ot=_t(st),Lt=0,Dt=0,zt=0;Lt<k;++Lt)for(var Ft=0,Pt=nt(l,tt+1,tt=q(Dt=N[Lt])),Yt=l;Ft<ot;++Ft)(Yt=rt(Dt>0?st[Ft]+" "+Pt:ut(Pt,/&\f/g,st[Ft])))&&(P[zt++]=Yt);return kt(l,o,y,E===0?B:D,P,U,K)}function oe(l,o,y){return kt(l,o,y,O,J(ht),nt(l,2,-2),0)}function ee(l,o,y,k){return kt(l,o,y,z,nt(l,0,k),nt(l,k+1,-1),k)}const he="9.1.7";function Mt(l){return Mt=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},Mt(l)}const ie=function l(o,y,k){var E=Object.assign({depth:2,clobber:!1},k),L=E.depth,N=E.clobber;return Array.isArray(y)&&!Array.isArray(o)?(y.forEach(function(D){return l(o,D,k)}),o):Array.isArray(y)&&Array.isArray(o)?(y.forEach(function(D){o.indexOf(D)===-1&&o.push(D)}),o):o===void 0||L<=0?o!=null&&Mt(o)==="object"&&Mt(y)==="object"?Object.assign(o,y):y:(y!==void 0&&Mt(o)==="object"&&Mt(y)==="object"&&Object.keys(y).forEach(function(D){Mt(y[D])!=="object"||o[D]!==void 0&&Mt(o[D])!=="object"?(N||Mt(o[D])!=="object"&&Mt(y[D])!=="object")&&(o[D]=y[D]):(o[D]===void 0&&(o[D]=Array.isArray(y[D])?[]:{}),o[D]=l(o[D],y[D],{depth:L-1,clobber:N}))}),o)},pt={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},k)=>{if(!o)return 2.55*y;l/=360,o/=100;const E=(y/=100)<.5?y*(1+o):y+o-y*o,L=2*y-E;switch(k){case"r":return 255*pt.hue2rgb(L,E,l+1/3);case"g":return 255*pt.hue2rgb(L,E,l);case"b":return 255*pt.hue2rgb(L,E,l-1/3)}},rgb2hsl:({r:l,g:o,b:y},k)=>{l/=255,o/=255,y/=255;const E=Math.max(l,o,y),L=Math.min(l,o,y),N=(E+L)/2;if(k==="l")return 100*N;if(E===L)return 0;const D=E-L;if(k==="s")return 100*(N>.5?D/(2-E-L):D/(E+L));switch(E){case l:return 60*((o-y)/D+(o<y?6:0));case o:return 60*((y-l)/D+2);case y:return 60*((l-o)/D+4);default:return-1}}},wt={channel:pt,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}`}}},xt={};for(let l=0;l<=255;l++)xt[l]=wt.unit.dec2hex(l);const Rt=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:k}=l;o===void 0&&(l.h=wt.channel.rgb2hsl(l,"h")),y===void 0&&(l.s=wt.channel.rgb2hsl(l,"s")),k===void 0&&(l.l=wt.channel.rgb2hsl(l,"l"))}_ensureRGB(){const l=this.data,{r:o,g:y,b:k}=l;o===void 0&&(l.r=wt.channel.hsl2rgb(l,"r")),y===void 0&&(l.g=wt.channel.hsl2rgb(l,"g")),k===void 0&&(l.b=wt.channel.hsl2rgb(l,"b"))}get r(){const l=this.data,o=l.r;return this.type.is(2)||o===void 0?(this._ensureHSL(),wt.channel.hsl2rgb(l,"r")):o}get g(){const l=this.data,o=l.g;return this.type.is(2)||o===void 0?(this._ensureHSL(),wt.channel.hsl2rgb(l,"g")):o}get b(){const l=this.data,o=l.b;return this.type.is(2)||o===void 0?(this._ensureHSL(),wt.channel.hsl2rgb(l,"b")):o}get h(){const l=this.data,o=l.h;return this.type.is(1)||o===void 0?(this._ensureRGB(),wt.channel.rgb2hsl(l,"h")):o}get s(){const l=this.data,o=l.s;return this.type.is(1)||o===void 0?(this._ensureRGB(),wt.channel.rgb2hsl(l,"s")):o}get l(){const l=this.data,o=l.l;return this.type.is(1)||o===void 0?(this._ensureRGB(),wt.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"),me={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:l=>{if(l.charCodeAt(0)!==35)return;const o=l.match(me.re);if(!o)return;const y=o[1],k=parseInt(y,16),E=y.length,L=E%4==0,N=E>4,D=N?1:17,P=N?8:4,U=L?0:-1,K=N?255:15;return Rt.set({r:(k>>P*(U+3)&K)*D,g:(k>>P*(U+2)&K)*D,b:(k>>P*(U+1)&K)*D,a:L?(k&K)*D/255:1},l)},stringify:l=>{const{r:o,g:y,b:k,a:E}=l;return E<1?`#${xt[Math.round(o)]}${xt[Math.round(y)]}${xt[Math.round(k)]}${xt[Math.round(255*E)]}`:`#${xt[Math.round(o)]}${xt[Math.round(y)]}${xt[Math.round(k)]}`}},Pe=me,ar={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:l=>{const o=l.match(ar.hueRe);if(o){const[,y,k]=o;switch(k){case"grad":return wt.channel.clamp.h(.9*parseFloat(y));case"rad":return wt.channel.clamp.h(180*parseFloat(y)/Math.PI);case"turn":return wt.channel.clamp.h(360*parseFloat(y))}}return wt.channel.clamp.h(parseFloat(l))},parse:l=>{const o=l.charCodeAt(0);if(o!==104&&o!==72)return;const y=l.match(ar.re);if(!y)return;const[,k,E,L,N,D]=y;return Rt.set({h:ar._hue2deg(k),s:wt.channel.clamp.s(parseFloat(E)),l:wt.channel.clamp.l(parseFloat(L)),a:N?wt.channel.clamp.a(D?parseFloat(N)/100:parseFloat(N)):1},l)},stringify:l=>{const{h:o,s:y,l:k,a:E}=l;return E<1?`hsla(${wt.lang.round(o)}, ${wt.lang.round(y)}%, ${wt.lang.round(k)}%, ${E})`:`hsl(${wt.lang.round(o)}, ${wt.lang.round(y)}%, ${wt.lang.round(k)}%)`}},Ze=ar,ur={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=ur.colors[l];if(o)return Pe.parse(o)},stringify:l=>{const o=Pe.stringify(l);for(const y in ur.colors)if(ur.colors[y]===o)return y}},ze=ur,Ce={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(Ce.re);if(!y)return;const[,k,E,L,N,D,P,U,K]=y;return Rt.set({r:wt.channel.clamp.r(E?2.55*parseFloat(k):parseFloat(k)),g:wt.channel.clamp.g(N?2.55*parseFloat(L):parseFloat(L)),b:wt.channel.clamp.b(P?2.55*parseFloat(D):parseFloat(D)),a:U?wt.channel.clamp.a(K?parseFloat(U)/100:parseFloat(U)):1},l)},stringify:l=>{const{r:o,g:y,b:k,a:E}=l;return E<1?`rgba(${wt.lang.round(o)}, ${wt.lang.round(y)}, ${wt.lang.round(k)}, ${wt.lang.round(E)})`:`rgb(${wt.lang.round(o)}, ${wt.lang.round(y)}, ${wt.lang.round(k)})`}},Be=Ce,Fe={format:{keyword:ze,hex:Pe,rgb:Be,rgba:Be,hsl:Ze,hsla:Ze},parse:l=>{if(typeof l!="string")return l;const o=Pe.parse(l)||Be.parse(l)||Ze.parse(l)||ze.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)?Be.stringify(l):Pe.stringify(l)},be=(l,o)=>{const y=Fe.parse(l);for(const k in o)y[k]=wt.channel.clamp[k](o[k]);return Fe.stringify(y)},se=(l,o)=>{const y=Fe.parse(l),k={};for(const E in o)o[E]&&(k[E]=y[E]+o[E]);return be(l,k)},Lr=(l,o,y=0,k=1)=>{if(typeof l!="number")return be(l,{a:o});const E=Rt.set({r:wt.channel.clamp.r(l),g:wt.channel.clamp.g(o),b:wt.channel.clamp.b(y),a:wt.channel.clamp.a(k)});return Fe.stringify(E)},Ue=(l,o=100)=>{const y=Fe.parse(l);return y.r=255-y.r,y.g=255-y.g,y.b=255-y.b,((k,E,L=50)=>{const{r:N,g:D,b:P,a:U}=Fe.parse(k),{r:K,g:tt,b:st,a:ot}=Fe.parse(E),Lt=L/100,Dt=2*Lt-1,zt=U-ot,Ft=((Dt*zt==-1?Dt:(Dt+zt)/(1+Dt*zt))+1)/2,Pt=1-Ft;return Lr(N*Ft+K*Pt,D*Ft+tt*Pt,P*Ft+st*Pt,U*Lt+ot*(1-Lt))})(y,l,o)},dr=(l,o,y)=>{const k=Fe.parse(l),E=k[o],L=wt.channel.clamp[o](E+y);return E!==L&&(k[o]=L),Fe.stringify(k)},qe=(l,o)=>dr(l,"l",-o),gr=(l,o)=>dr(l,"l",o);var rn=function(l,o){return se(l,o?{s:-40,l:10}:{s:-40,l:-10})};function Dr(l){return Dr=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},Dr(l)}function Ar(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}var De=function(){function l(){(function(k,E){if(!(k instanceof E))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||se(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||se(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||rn(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||rn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||rn(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||rn(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ue(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ue(this.tertiaryColor),this.lineColor=this.lineColor||Ue(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?qe(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||qe(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ue(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||gr(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||se(this.primaryColor,{h:64}),this.fillType3=this.fillType3||se(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||se(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||se(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||se(this.primaryColor,{h:128}),this.fillType7=this.fillType7||se(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||se(this.primaryColor,{l:-10}),this.pie5=this.pie5||se(this.secondaryColor,{l:-10}),this.pie6=this.pie6||se(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||se(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||se(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||se(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||se(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||se(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||se(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?qe(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||se(this.primaryColor,{h:-30}),this.git4=this.git4||se(this.primaryColor,{h:-60}),this.git5=this.git5||se(this.primaryColor,{h:-90}),this.git6=this.git6||se(this.primaryColor,{h:60}),this.git7=this.git7||se(this.primaryColor,{h:120}),this.darkMode?(this.git0=gr(this.git0,25),this.git1=gr(this.git1,25),this.git2=gr(this.git2,25),this.git3=gr(this.git3,25),this.git4=gr(this.git4,25),this.git5=gr(this.git5,25),this.git6=gr(this.git6,25),this.git7=gr(this.git7,25)):(this.git0=qe(this.git0,25),this.git1=qe(this.git1,25),this.git2=qe(this.git2,25),this.git3=qe(this.git3,25),this.git4=qe(this.git4,25),this.git5=qe(this.git5,25),this.git6=qe(this.git6,25),this.git7=qe(this.git7,25)),this.gitInv0=this.gitInv0||Ue(this.git0),this.gitInv1=this.gitInv1||Ue(this.git1),this.gitInv2=this.gitInv2||Ue(this.git2),this.gitInv3=this.gitInv3||Ue(this.git3),this.gitInv4=this.gitInv4||Ue(this.git4),this.gitInv5=this.gitInv5||Ue(this.git5),this.gitInv6=this.gitInv6||Ue(this.git6),this.gitInv7=this.gitInv7||Ue(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(k){var E=this;if(Dr(k)==="object"){var L=Object.keys(k);L.forEach(function(N){E[N]=k[N]}),this.updateColors(),L.forEach(function(N){E[N]=k[N]})}else this.updateColors()}}],y&&Ar(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();function rr(l){return rr=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},rr(l)}function Qe(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}var Ie=function(){function l(){(function(k,E){if(!(k instanceof E))throw new TypeError("Cannot call a class as a function")})(this,l),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=gr(this.primaryColor,16),this.tertiaryColor=se(this.primaryColor,{h:-160}),this.primaryBorderColor=Ue(this.background),this.secondaryBorderColor=rn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=rn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ue(this.primaryColor),this.secondaryTextColor=Ue(this.secondaryColor),this.tertiaryTextColor=Ue(this.tertiaryColor),this.lineColor=Ue(this.background),this.textColor=Ue(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=gr(Ue("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Lr(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=qe("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=Lr(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Lr(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=gr(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=gr(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=gr(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=se(this.primaryColor,{h:64}),this.fillType3=se(this.secondaryColor,{h:64}),this.fillType4=se(this.primaryColor,{h:-64}),this.fillType5=se(this.secondaryColor,{h:-64}),this.fillType6=se(this.primaryColor,{h:128}),this.fillType7=se(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?qe(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=gr(this.secondaryColor,20),this.git1=gr(this.pie2||this.secondaryColor,20),this.git2=gr(this.pie3||this.tertiaryColor,20),this.git3=gr(this.pie4||se(this.primaryColor,{h:-30}),20),this.git4=gr(this.pie5||se(this.primaryColor,{h:-60}),20),this.git5=gr(this.pie6||se(this.primaryColor,{h:-90}),10),this.git6=gr(this.pie7||se(this.primaryColor,{h:60}),10),this.git7=gr(this.pie8||se(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Ue(this.git0),this.gitInv1=this.gitInv1||Ue(this.git1),this.gitInv2=this.gitInv2||Ue(this.git2),this.gitInv3=this.gitInv3||Ue(this.git3),this.gitInv4=this.gitInv4||Ue(this.git4),this.gitInv5=this.gitInv5||Ue(this.git5),this.gitInv6=this.gitInv6||Ue(this.git6),this.gitInv7=this.gitInv7||Ue(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(k){var E=this;if(rr(k)==="object"){var L=Object.keys(k);L.forEach(function(N){E[N]=k[N]}),this.updateColors(),L.forEach(function(N){E[N]=k[N]})}else this.updateColors()}}],y&&Qe(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();function vr(l){return vr=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},vr(l)}function Ot(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}var kn=function(){function l(){(function(k,E){if(!(k instanceof E))throw new TypeError("Cannot call a class as a function")})(this,l),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=se(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=se(this.primaryColor,{h:-160}),this.primaryBorderColor=rn(this.primaryColor,this.darkMode),this.secondaryBorderColor=rn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=rn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ue(this.primaryColor),this.secondaryTextColor=Ue(this.secondaryColor),this.tertiaryTextColor=Ue(this.tertiaryColor),this.lineColor=Ue(this.background),this.textColor=Ue(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=Lr(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=gr(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=se(this.primaryColor,{h:64}),this.fillType3=se(this.secondaryColor,{h:64}),this.fillType4=se(this.primaryColor,{h:-64}),this.fillType5=se(this.secondaryColor,{h:-64}),this.fillType6=se(this.primaryColor,{h:128}),this.fillType7=se(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||se(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||se(this.primaryColor,{l:-10}),this.pie5=this.pie5||se(this.secondaryColor,{l:-30}),this.pie6=this.pie6||se(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||se(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||se(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||se(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||se(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||se(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||se(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||se(this.primaryColor,{h:-30}),this.git4=this.git4||se(this.primaryColor,{h:-60}),this.git5=this.git5||se(this.primaryColor,{h:-90}),this.git6=this.git6||se(this.primaryColor,{h:60}),this.git7=this.git7||se(this.primaryColor,{h:120}),this.darkMode?(this.git0=gr(this.git0,25),this.git1=gr(this.git1,25),this.git2=gr(this.git2,25),this.git3=gr(this.git3,25),this.git4=gr(this.git4,25),this.git5=gr(this.git5,25),this.git6=gr(this.git6,25),this.git7=gr(this.git7,25)):(this.git0=qe(this.git0,25),this.git1=qe(this.git1,25),this.git2=qe(this.git2,25),this.git3=qe(this.git3,25),this.git4=qe(this.git4,25),this.git5=qe(this.git5,25),this.git6=qe(this.git6,25),this.git7=qe(this.git7,25)),this.gitInv0=this.gitInv0||qe(Ue(this.git0),25),this.gitInv1=this.gitInv1||Ue(this.git1),this.gitInv2=this.gitInv2||Ue(this.git2),this.gitInv3=this.gitInv3||Ue(this.git3),this.gitInv4=this.gitInv4||Ue(this.git4),this.gitInv5=this.gitInv5||Ue(this.git5),this.gitInv6=this.gitInv6||Ue(this.git6),this.gitInv7=this.gitInv7||Ue(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ue(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ue(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(k){var E=this;if(vr(k)==="object"){var L=Object.keys(k);L.forEach(function(N){E[N]=k[N]}),this.updateColors(),L.forEach(function(N){E[N]=k[N]})}else this.updateColors()}}],y&&Ot(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();function Vt(l){return Vt=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},Vt(l)}function qr(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}var zr=function(){function l(){(function(k,E){if(!(k instanceof E))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=gr("#cde498",10),this.primaryBorderColor=rn(this.primaryColor,this.darkMode),this.secondaryBorderColor=rn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=rn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ue(this.primaryColor),this.secondaryTextColor=Ue(this.secondaryColor),this.tertiaryTextColor=Ue(this.primaryColor),this.lineColor=Ue(this.background),this.textColor=Ue(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=qe(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=se(this.primaryColor,{h:64}),this.fillType3=se(this.secondaryColor,{h:64}),this.fillType4=se(this.primaryColor,{h:-64}),this.fillType5=se(this.secondaryColor,{h:-64}),this.fillType6=se(this.primaryColor,{h:128}),this.fillType7=se(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||se(this.primaryColor,{l:-30}),this.pie5=this.pie5||se(this.secondaryColor,{l:-30}),this.pie6=this.pie6||se(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||se(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||se(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||se(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||se(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||se(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||se(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||se(this.primaryColor,{h:-30}),this.git4=this.git4||se(this.primaryColor,{h:-60}),this.git5=this.git5||se(this.primaryColor,{h:-90}),this.git6=this.git6||se(this.primaryColor,{h:60}),this.git7=this.git7||se(this.primaryColor,{h:120}),this.darkMode?(this.git0=gr(this.git0,25),this.git1=gr(this.git1,25),this.git2=gr(this.git2,25),this.git3=gr(this.git3,25),this.git4=gr(this.git4,25),this.git5=gr(this.git5,25),this.git6=gr(this.git6,25),this.git7=gr(this.git7,25)):(this.git0=qe(this.git0,25),this.git1=qe(this.git1,25),this.git2=qe(this.git2,25),this.git3=qe(this.git3,25),this.git4=qe(this.git4,25),this.git5=qe(this.git5,25),this.git6=qe(this.git6,25),this.git7=qe(this.git7,25)),this.gitInv0=this.gitInv0||Ue(this.git0),this.gitInv1=this.gitInv1||Ue(this.git1),this.gitInv2=this.gitInv2||Ue(this.git2),this.gitInv3=this.gitInv3||Ue(this.git3),this.gitInv4=this.gitInv4||Ue(this.git4),this.gitInv5=this.gitInv5||Ue(this.git5),this.gitInv6=this.gitInv6||Ue(this.git6),this.gitInv7=this.gitInv7||Ue(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(k){var E=this;if(Vt(k)==="object"){var L=Object.keys(k);L.forEach(function(N){E[N]=k[N]}),this.updateColors(),L.forEach(function(N){E[N]=k[N]})}else this.updateColors()}}],y&&qr(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();function Zr(l){return Zr=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},Zr(l)}function Mr(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}var Xr=function(){function l(){(function(k,E){if(!(k instanceof E))throw new TypeError("Cannot call a class as a function")})(this,l),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=gr(this.contrast,55),this.background="#ffffff",this.tertiaryColor=se(this.primaryColor,{h:-160}),this.primaryBorderColor=rn(this.primaryColor,this.darkMode),this.secondaryBorderColor=rn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=rn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ue(this.primaryColor),this.secondaryTextColor=Ue(this.secondaryColor),this.tertiaryTextColor=Ue(this.tertiaryColor),this.lineColor=Ue(this.background),this.textColor=Ue(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=gr(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=gr(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=gr(this.contrast,30),this.sectionBkgColor2=gr(this.contrast,30),this.taskBorderColor=qe(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=gr(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=qe(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=se(this.primaryColor,{h:64}),this.fillType3=se(this.secondaryColor,{h:64}),this.fillType4=se(this.primaryColor,{h:-64}),this.fillType5=se(this.secondaryColor,{h:-64}),this.fillType6=se(this.primaryColor,{h:128}),this.fillType7=se(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=qe(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||se(this.primaryColor,{h:-30}),this.git4=this.pie5||se(this.primaryColor,{h:-60}),this.git5=this.pie6||se(this.primaryColor,{h:-90}),this.git6=this.pie7||se(this.primaryColor,{h:60}),this.git7=this.pie8||se(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Ue(this.git0),this.gitInv1=this.gitInv1||Ue(this.git1),this.gitInv2=this.gitInv2||Ue(this.git2),this.gitInv3=this.gitInv3||Ue(this.git3),this.gitInv4=this.gitInv4||Ue(this.git4),this.gitInv5=this.gitInv5||Ue(this.git5),this.gitInv6=this.gitInv6||Ue(this.git6),this.gitInv7=this.gitInv7||Ue(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(k){var E=this;if(Zr(k)==="object"){var L=Object.keys(k);L.forEach(function(N){E[N]=k[N]}),this.updateColors(),L.forEach(function(N){E[N]=k[N]})}else this.updateColors()}}],y&&Mr(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();const Pr={base:{getThemeVariables:function(l){var o=new De;return o.calculate(l),o}},dark:{getThemeVariables:function(l){var o=new Ie;return o.calculate(l),o}},default:{getThemeVariables:function(l){var o=new kn;return o.calculate(l),o}},forest:{getThemeVariables:function(l){var o=new zr;return o.calculate(l),o}},neutral:{getThemeVariables:function(l){var o=new Xr;return o.calculate(l),o}}};function Cr(l){return function(o){if(Array.isArray(o))return Ur(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 Ur(o,y);var k=Object.prototype.toString.call(o).slice(8,-1);return k==="Object"&&o.constructor&&(k=o.constructor.name),k==="Map"||k==="Set"?Array.from(o):k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k)?Ur(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 Ur(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}function Yr(l){return Yr=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},Yr(l)}var jr={theme:"default",themeVariables:Pr.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"}};jr.class.arrowMarkerAbsolute=jr.arrowMarkerAbsolute,jr.gitGraph.arrowMarkerAbsolute=jr.arrowMarkerAbsolute;var ya=function l(o){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(o).reduce(function(k,E){return Array.isArray(o[E])?k:Yr(o[E])==="object"&&o[E]!==null?[].concat(Cr(k),[y+E],Cr(l(o[E],""))):[].concat(Cr(k),[y+E])},[])}(jr,"");const On=jr;function Cn(l){return Cn=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},Cn(l)}var Ir,ui=Object.freeze(On),Or=ie({},ui),En=[],Ln=ie({},ui),vn=function(l,o){for(var y=ie({},l),k={},E=0;E<o.length;E++){var L=o[E];Mn(L),k=ie(k,L)}if(y=ie(y,k),k.theme&&Pr[k.theme]){var N=ie({},Ir),D=ie(N.themeVariables||{},k.themeVariables);y.themeVariables=Pr[y.theme].getThemeVariables(D)}return Ln=y,y},Zn=function(){return ie({},Or)},Bt=function(){return ie({},Ln)},Mn=function l(o){Object.keys(Or.secure).forEach(function(y){o[Or.secure[y]]!==void 0&&(_.debug("Denied attempt to modify a secure key ".concat(Or.secure[y]),o[Or.secure[y]]),delete o[Or.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],Cn(o[y])==="object"&&l(o[y])})},Rn=function(l){l.fontFamily&&(l.themeVariables&&l.themeVariables.fontFamily||(l.themeVariables={fontFamily:l.fontFamily})),En.push(l),vn(Or,En)},Kr=function(){vn(Or,En=[])},ti=h(7856),Wn=h.n(ti),Un=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,k){return String.fromCharCode(parseInt(k,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))})},ei=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 k=Un(o);return(k=(k=(k=(k=k.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/javascript&colon/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},Ta=function(l,o){var y=l,k=!0;if(!o.flowchart||o.flowchart.htmlLabels!==!1&&o.flowchart.htmlLabels!=="false"||(k=!1),k){var E=o.securityLevel;E==="antiscript"||E==="strict"?y=ei(y):E!=="loose"&&(y=(y=(y=Ri(y)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),y=oa(y))}return y},dn=function(l,o){return l&&(o.dompurifyConfig?Wn().sanitize(Ta(l,o),o.dompurifyConfig):Wn().sanitize(Ta(l,o)))},aa=/<br\s*\/?>/gi,oa=function(l){return l.replace(/#br#/g,"<br/>")},Ri=function(l){return l.replace(aa,"#br#")},sr=function(l){return l!=="false"&&l!==!1},Qr=function l(o){var y=o;return o.indexOf("~")!=-1?l(y=(y=y.replace("~","<")).replace("~",">")):y};const cr={getRows:function(l){if(!l)return 1;var o=Ri(l);return(o=o.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:dn,sanitizeTextOrArray:function(l,o){return typeof l=="string"?dn(l,o):l.flat().map(function(y){return dn(y,o)})},hasBreaks:function(l){return aa.test(l)},splitBreaks:function(l){return l.split(aa)},lineBreakRegex:aa,removeScript:ei,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:sr,removeEscapes:Un};var or="",on="",Kt="",Ai=function(l){return dn(l,Bt())},re=function(){or="",Kt="",on=""},Tn=function(l){or=Ai(l).replace(/^\s+/g,"")},Bn=function(){return or||on},Xn=function(l){Kt=Ai(l).replace(/\n\s+/g,`
|
|
`)},fi=function(){return Kt},Sa=function(l){on=Ai(l)},gn=function(){return on};function Er(l,o){return function(y){if(Array.isArray(y))return y}(l)||function(y,k){var E=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(E!=null){var L,N,D=[],P=!0,U=!1;try{for(E=E.call(y);!(P=(L=E.next()).done)&&(D.push(L.value),!k||D.length!==k);P=!0);}catch(K){U=!0,N=K}finally{try{P||E.return==null||E.return()}finally{if(U)throw N}}return D}}(l,o)||function(y,k){if(y){if(typeof y=="string")return sa(y,k);var E=Object.prototype.toString.call(y).slice(8,-1);return E==="Object"&&y.constructor&&(E=y.constructor.name),E==="Map"||E==="Set"?Array.from(y):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?sa(y,k):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 sa(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}function Rr(l){return Rr=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},Rr(l)}var wi,hi=[],Bi=[""],fn="global",ri="",Kn=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Jn=[],oi="",Ci=!1,Qn=4,Aa=2,Fa=function(l){return l==null?hi:hi.filter(function(o){return o.parentBoundary===l})},_n=function(){return Ci};const ni={addPersonOrSystem:function(l,o,y,k,E,L,N){if(o!==null&&y!==null){var D={},P=hi.find(function(ae){return ae.alias===o});if(P&&o===P.alias?D=P:(D.alias=o,hi.push(D)),D.label=y==null?{text:""}:{text:y},k==null)D.descr={text:""};else if(Rr(k)==="object"){var U=Er(Object.entries(k)[0],2),K=U[0],tt=U[1];D[K]={text:tt}}else D.descr={text:k};if(Rr(E)==="object"){var st=Er(Object.entries(E)[0],2),ot=st[0],Lt=st[1];D[ot]=Lt}else D.sprite=E;if(Rr(L)==="object"){var Dt=Er(Object.entries(L)[0],2),zt=Dt[0],Ft=Dt[1];D[zt]=Ft}else D.tags=L;if(Rr(N)==="object"){var Pt=Er(Object.entries(N)[0],2),Yt=Pt[0],It=Pt[1];D[Yt]=It}else D.link=N;D.typeC4Shape={text:l},D.parentBoundary=fn,D.wrap=_n()}},addPersonOrSystemBoundary:function(l,o,y,k,E){if(l!==null&&o!==null){var L={},N=Kn.find(function(zt){return zt.alias===l});if(N&&l===N.alias?L=N:(L.alias=l,Kn.push(L)),L.label=o==null?{text:""}:{text:o},y==null)L.type={text:"system"};else if(Rr(y)==="object"){var D=Er(Object.entries(y)[0],2),P=D[0],U=D[1];L[P]={text:U}}else L.type={text:y};if(Rr(k)==="object"){var K=Er(Object.entries(k)[0],2),tt=K[0],st=K[1];L[tt]=st}else L.tags=k;if(Rr(E)==="object"){var ot=Er(Object.entries(E)[0],2),Lt=ot[0],Dt=ot[1];L[Lt]=Dt}else L.link=E;L.parentBoundary=fn,L.wrap=_n(),ri=fn,fn=l,Bi.push(ri)}},addContainer:function(l,o,y,k,E,L,N,D){if(o!==null&&y!==null){var P={},U=hi.find(function($t){return $t.alias===o});if(U&&o===U.alias?P=U:(P.alias=o,hi.push(P)),P.label=y==null?{text:""}:{text:y},k==null)P.techn={text:""};else if(Rr(k)==="object"){var K=Er(Object.entries(k)[0],2),tt=K[0],st=K[1];P[tt]={text:st}}else P.techn={text:k};if(E==null)P.descr={text:""};else if(Rr(E)==="object"){var ot=Er(Object.entries(E)[0],2),Lt=ot[0],Dt=ot[1];P[Lt]={text:Dt}}else P.descr={text:E};if(Rr(L)==="object"){var zt=Er(Object.entries(L)[0],2),Ft=zt[0],Pt=zt[1];P[Ft]=Pt}else P.sprite=L;if(Rr(N)==="object"){var Yt=Er(Object.entries(N)[0],2),It=Yt[0],ae=Yt[1];P[It]=ae}else P.tags=N;if(Rr(D)==="object"){var Se=Er(Object.entries(D)[0],2),pe=Se[0],Ee=Se[1];P[pe]=Ee}else P.link=D;P.wrap=_n(),P.typeC4Shape={text:l},P.parentBoundary=fn}},addContainerBoundary:function(l,o,y,k,E){if(l!==null&&o!==null){var L={},N=Kn.find(function(zt){return zt.alias===l});if(N&&l===N.alias?L=N:(L.alias=l,Kn.push(L)),L.label=o==null?{text:""}:{text:o},y==null)L.type={text:"container"};else if(Rr(y)==="object"){var D=Er(Object.entries(y)[0],2),P=D[0],U=D[1];L[P]={text:U}}else L.type={text:y};if(Rr(k)==="object"){var K=Er(Object.entries(k)[0],2),tt=K[0],st=K[1];L[tt]=st}else L.tags=k;if(Rr(E)==="object"){var ot=Er(Object.entries(E)[0],2),Lt=ot[0],Dt=ot[1];L[Lt]=Dt}else L.link=E;L.parentBoundary=fn,L.wrap=_n(),ri=fn,fn=l,Bi.push(ri)}},addComponent:function(l,o,y,k,E,L,N,D){if(o!==null&&y!==null){var P={},U=hi.find(function($t){return $t.alias===o});if(U&&o===U.alias?P=U:(P.alias=o,hi.push(P)),P.label=y==null?{text:""}:{text:y},k==null)P.techn={text:""};else if(Rr(k)==="object"){var K=Er(Object.entries(k)[0],2),tt=K[0],st=K[1];P[tt]={text:st}}else P.techn={text:k};if(E==null)P.descr={text:""};else if(Rr(E)==="object"){var ot=Er(Object.entries(E)[0],2),Lt=ot[0],Dt=ot[1];P[Lt]={text:Dt}}else P.descr={text:E};if(Rr(L)==="object"){var zt=Er(Object.entries(L)[0],2),Ft=zt[0],Pt=zt[1];P[Ft]=Pt}else P.sprite=L;if(Rr(N)==="object"){var Yt=Er(Object.entries(N)[0],2),It=Yt[0],ae=Yt[1];P[It]=ae}else P.tags=N;if(Rr(D)==="object"){var Se=Er(Object.entries(D)[0],2),pe=Se[0],Ee=Se[1];P[pe]=Ee}else P.link=D;P.wrap=_n(),P.typeC4Shape={text:l},P.parentBoundary=fn}},addDeploymentNode:function(l,o,y,k,E,L,N,D){if(o!==null&&y!==null){var P={},U=Kn.find(function(Se){return Se.alias===o});if(U&&o===U.alias?P=U:(P.alias=o,Kn.push(P)),P.label=y==null?{text:""}:{text:y},k==null)P.type={text:"node"};else if(Rr(k)==="object"){var K=Er(Object.entries(k)[0],2),tt=K[0],st=K[1];P[tt]={text:st}}else P.type={text:k};if(E==null)P.descr={text:""};else if(Rr(E)==="object"){var ot=Er(Object.entries(E)[0],2),Lt=ot[0],Dt=ot[1];P[Lt]={text:Dt}}else P.descr={text:E};if(Rr(N)==="object"){var zt=Er(Object.entries(N)[0],2),Ft=zt[0],Pt=zt[1];P[Ft]=Pt}else P.tags=N;if(Rr(D)==="object"){var Yt=Er(Object.entries(D)[0],2),It=Yt[0],ae=Yt[1];P[It]=ae}else P.link=D;P.nodeType=l,P.parentBoundary=fn,P.wrap=_n(),ri=fn,fn=o,Bi.push(ri)}},popBoundaryParseStack:function(){fn=ri,Bi.pop(),ri=Bi.pop(),Bi.push(ri)},addRel:function(l,o,y,k,E,L,N,D,P){if(l!=null&&o!=null&&y!=null&&k!=null){var U={},K=Jn.find(function(fe){return fe.from===o&&fe.to===y});if(K?U=K:Jn.push(U),U.type=l,U.from=o,U.to=y,U.label={text:k},E==null)U.techn={text:""};else if(Rr(E)==="object"){var tt=Er(Object.entries(E)[0],2),st=tt[0],ot=tt[1];U[st]={text:ot}}else U.techn={text:E};if(L==null)U.descr={text:""};else if(Rr(L)==="object"){var Lt=Er(Object.entries(L)[0],2),Dt=Lt[0],zt=Lt[1];U[Dt]={text:zt}}else U.descr={text:L};if(Rr(N)==="object"){var Ft=Er(Object.entries(N)[0],2),Pt=Ft[0],Yt=Ft[1];U[Pt]=Yt}else U.sprite=N;if(Rr(D)==="object"){var It=Er(Object.entries(D)[0],2),ae=It[0],Se=It[1];U[ae]=Se}else U.tags=D;if(Rr(P)==="object"){var pe=Er(Object.entries(P)[0],2),Ee=pe[0],$t=pe[1];U[Ee]=$t}else U.link=P;U.wrap=_n()}},updateElStyle:function(l,o,y,k,E,L,N,D,P,U,K){var tt=hi.find(function(Ve){return Ve.alias===o});if(tt!==void 0||(tt=Kn.find(function(Ve){return Ve.alias===o}))!==void 0){if(y!=null)if(Rr(y)==="object"){var st=Er(Object.entries(y)[0],2),ot=st[0],Lt=st[1];tt[ot]=Lt}else tt.bgColor=y;if(k!=null)if(Rr(k)==="object"){var Dt=Er(Object.entries(k)[0],2),zt=Dt[0],Ft=Dt[1];tt[zt]=Ft}else tt.fontColor=k;if(E!=null)if(Rr(E)==="object"){var Pt=Er(Object.entries(E)[0],2),Yt=Pt[0],It=Pt[1];tt[Yt]=It}else tt.borderColor=E;if(L!=null)if(Rr(L)==="object"){var ae=Er(Object.entries(L)[0],2),Se=ae[0],pe=ae[1];tt[Se]=pe}else tt.shadowing=L;if(N!=null)if(Rr(N)==="object"){var Ee=Er(Object.entries(N)[0],2),$t=Ee[0],fe=Ee[1];tt[$t]=fe}else tt.shape=N;if(D!=null)if(Rr(D)==="object"){var Xt=Er(Object.entries(D)[0],2),ce=Xt[0],de=Xt[1];tt[ce]=de}else tt.sprite=D;if(P!=null)if(Rr(P)==="object"){var ue=Er(Object.entries(P)[0],2),Re=ue[0],Le=ue[1];tt[Re]=Le}else tt.techn=P;if(U!=null)if(Rr(U)==="object"){var $e=Er(Object.entries(U)[0],2),kr=$e[0],Ye=$e[1];tt[kr]=Ye}else tt.legendText=U;if(K!=null)if(Rr(K)==="object"){var ir=Er(Object.entries(K)[0],2),br=ir[0],We=ir[1];tt[br]=We}else tt.legendSprite=K}},updateRelStyle:function(l,o,y,k,E,L,N){var D=Jn.find(function(It){return It.from===o&&It.to===y});if(D!==void 0){if(k!=null)if(Rr(k)==="object"){var P=Er(Object.entries(k)[0],2),U=P[0],K=P[1];D[U]=K}else D.textColor=k;if(E!=null)if(Rr(E)==="object"){var tt=Er(Object.entries(E)[0],2),st=tt[0],ot=tt[1];D[st]=ot}else D.lineColor=E;if(L!=null)if(Rr(L)==="object"){var Lt=Er(Object.entries(L)[0],2),Dt=Lt[0],zt=Lt[1];D[Dt]=parseInt(zt)}else D.offsetX=parseInt(L);if(N!=null)if(Rr(N)==="object"){var Ft=Er(Object.entries(N)[0],2),Pt=Ft[0],Yt=Ft[1];D[Pt]=parseInt(Yt)}else D.offsetY=parseInt(N)}},updateLayoutConfig:function(l,o,y){var k=Qn,E=Aa;if(Rr(o)==="object"){var L=Er(Object.entries(o)[0],2),N=(L[0],L[1]);k=parseInt(N)}else k=parseInt(o);if(Rr(y)==="object"){var D=Er(Object.entries(y)[0],2),P=(D[0],D[1]);E=parseInt(P)}else E=parseInt(y);k>=1&&(Qn=k),E>=1&&(Aa=E)},autoWrap:_n,setWrap:function(l){Ci=l},getC4ShapeArray:Fa,getC4Shape:function(l){return hi.find(function(o){return o.alias===l})},getC4ShapeKeys:function(l){return Object.keys(Fa(l))},getBoundarys:function(l){return l==null?Kn:Kn.filter(function(o){return o.parentBoundary===l})},getCurrentBoundaryParse:function(){return fn},getParentBoundaryParse:function(){return ri},getRels:function(){return Jn},getTitle:function(){return oi},getC4Type:function(){return wi},getC4ShapeInRow:function(){return Qn},getC4BoundaryInRow:function(){return Aa},setAccTitle:Tn,getAccTitle:Bn,getAccDescription:fi,setAccDescription:Xn,parseDirective:function(l,o,y){Br.parseDirective(this,l,o,y)},getConfig:function(){return Bt().c4},clear:function(){hi=[],Kn=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],ri="",fn="global",Bi=[""],Jn=[],Bi=[""],oi="",Ci=!1,Qn=4,Aa=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=dn(l,Bt());oi=o},setC4Type:function(l){var o=dn(l,Bt());wi=o}};var ii=h(7967);function Oo(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var Ja=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 k in o.attrs)y.attr(k,o.attrs[k]);return o.class!=="undefined"&&y.attr("class",o.class),y},ca=function(){function l(E,L,N,D,P,U,K){k(L.append("text").attr("x",N+P/2).attr("y",D+U/2+5).style("text-anchor","middle").text(E),K)}function o(E,L,N,D,P,U,K,tt){for(var st=tt.fontSize,ot=tt.fontFamily,Lt=tt.fontWeight,Dt=E.split(cr.lineBreakRegex),zt=0;zt<Dt.length;zt++){var Ft=zt*st-st*(Dt.length-1)/2,Pt=L.append("text").attr("x",N+P/2).attr("y",D).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",st).style("font-weight",Lt).style("font-family",ot);Pt.append("tspan").attr("dy",Ft).text(Dt[zt]).attr("alignment-baseline","mathematical"),k(Pt,K)}}function y(E,L,N,D,P,U,K,tt){var st=L.append("switch"),ot=st.append("foreignObject").attr("x",N).attr("y",D).attr("width",P).attr("height",U).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(E),o(E,st,N,D,P,0,K,tt),k(ot,K)}function k(E,L){for(var N in L)L.hasOwnProperty(N)&&E.attr(N,L[N])}return function(E){return E.textPlacement==="fo"?y:E.textPlacement==="old"?l:o}}();const sc=function(l,o,y){var k=o.bgColor?o.bgColor:y[o.typeC4Shape.text+"_bg_color"],E=o.borderColor?o.borderColor:y[o.typeC4Shape.text+"_border_color"],L=o.fontColor?o.fontColor:"#FFFFFF",N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(o.typeC4Shape.text){case"person":N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var D=l.append("g");D.attr("class","person-man");var P={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":P.x=o.x,P.y=o.y,P.fill=k,P.width=o.width,P.height=o.height,P.style="stroke:"+E+";stroke-width:0.5;",P.rx=2.5,P.ry=2.5,Ja(D,P);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":D.append("path").attr("fill",k).attr("stroke-width","0.5").attr("stroke",E).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)),D.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",E).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":D.append("path").attr("fill",k).attr("stroke-width","0.5").attr("stroke",E).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)),D.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",E).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 U,K,tt=(U=y,K=o.typeC4Shape.text,{fontFamily:U[K+"FontFamily"],fontSize:U[K+"FontSize"],fontWeight:U[K+"FontWeight"]});switch(D.append("text").attr("fill",L).attr("font-family",tt.fontFamily).attr("font-size",tt.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,Lt,Dt,zt,Ft,Pt){var Yt=ot.append("image");Yt.attr("width",Lt),Yt.attr("height",Dt),Yt.attr("x",zt),Yt.attr("y",Ft);var It=Pt.startsWith("data:image/png;base64")?Pt:(0,ii.N)(Pt);Yt.attr("xlink:href",It)})(D,48,48,o.x+o.width/2-24,o.y+o.image.Y,N)}var st=y[o.typeC4Shape.text+"Font"]();return st.fontWeight="bold",st.fontSize=st.fontSize+2,st.fontColor=L,ca(y)(o.label.text,D,o.x,o.y+o.label.Y,o.width,o.height,{fill:L},st),(st=y[o.typeC4Shape.text+"Font"]()).fontColor=L,o.thchn&&o.thchn.text!==""?ca(y)(o.thchn.text,D,o.x,o.y+o.thchn.Y,o.width,o.height,{fill:L,"font-style":"italic"},st):o.type&&o.type.text!==""&&ca(y)(o.type.text,D,o.x,o.y+o.type.Y,o.width,o.height,{fill:L,"font-style":"italic"},st),o.descr&&o.descr.text!==""&&((st=y.personFont()).fontColor=L,ca(y)(o.descr.text,D,o.x,o.y+o.descr.Y,o.width,o.height,{fill:L},st)),o.height},Qt=function(l,o,y){var k,E=l.append("g"),L=0,N=function(Dt,zt){var Ft=typeof Symbol<"u"&&Dt[Symbol.iterator]||Dt["@@iterator"];if(!Ft){if(Array.isArray(Dt)||(Ft=function(pe,Ee){if(pe){if(typeof pe=="string")return Oo(pe,Ee);var $t=Object.prototype.toString.call(pe).slice(8,-1);return $t==="Object"&&pe.constructor&&($t=pe.constructor.name),$t==="Map"||$t==="Set"?Array.from(pe):$t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t)?Oo(pe,Ee):void 0}}(Dt))||zt&&Dt&&typeof Dt.length=="number"){Ft&&(Dt=Ft);var Pt=0,Yt=function(){};return{s:Yt,n:function(){return Pt>=Dt.length?{done:!0}:{done:!1,value:Dt[Pt++]}},e:function(pe){throw pe},f:Yt}}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 It,ae=!0,Se=!1;return{s:function(){Ft=Ft.call(Dt)},n:function(){var pe=Ft.next();return ae=pe.done,pe},e:function(pe){Se=!0,It=pe},f:function(){try{ae||Ft.return==null||Ft.return()}finally{if(Se)throw It}}}}(o);try{for(N.s();!(k=N.n()).done;){var D=k.value,P=D.textColor?D.textColor:"#444444",U=D.lineColor?D.lineColor:"#444444",K=D.offsetX?parseInt(D.offsetX):0,tt=D.offsetY?parseInt(D.offsetY):0;if(L===0){var st=E.append("line");st.attr("x1",D.startPoint.x),st.attr("y1",D.startPoint.y),st.attr("x2",D.endPoint.x),st.attr("y2",D.endPoint.y),st.attr("stroke-width","1"),st.attr("stroke",U),st.style("fill","none"),D.type!=="rel_b"&&st.attr("marker-end","url(#arrowhead)"),D.type!=="birel"&&D.type!=="rel_b"||st.attr("marker-start","url(#arrowend)"),L=-1}else{var ot=E.append("path");ot.attr("fill","none").attr("stroke-width","1").attr("stroke",U).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",D.startPoint.x).replaceAll("starty",D.startPoint.y).replaceAll("controlx",D.startPoint.x+(D.endPoint.x-D.startPoint.x)/2-(D.endPoint.x-D.startPoint.x)/4).replaceAll("controly",D.startPoint.y+(D.endPoint.y-D.startPoint.y)/2).replaceAll("stopx",D.endPoint.x).replaceAll("stopy",D.endPoint.y)),D.type!=="rel_b"&&ot.attr("marker-end","url(#arrowhead)"),D.type!=="birel"&&D.type!=="rel_b"||ot.attr("marker-start","url(#arrowend)")}var Lt=y.messageFont();ca(y)(D.label.text,E,Math.min(D.startPoint.x,D.endPoint.x)+Math.abs(D.endPoint.x-D.startPoint.x)/2+K,Math.min(D.startPoint.y,D.endPoint.y)+Math.abs(D.endPoint.y-D.startPoint.y)/2+tt,D.label.width,D.label.height,{fill:P},Lt),D.techn&&D.techn.text!==""&&(Lt=y.messageFont(),ca(y)("["+D.techn.text+"]",E,Math.min(D.startPoint.x,D.endPoint.x)+Math.abs(D.endPoint.x-D.startPoint.x)/2+K,Math.min(D.startPoint.y,D.endPoint.y)+Math.abs(D.endPoint.y-D.startPoint.y)/2+y.messageFontSize+5+tt,Math.max(D.label.width,D.techn.width),D.techn.height,{fill:P,"font-style":"italic"},Lt))}}catch(Dt){N.e(Dt)}finally{N.f()}};ii.N;var Xe=h(2536),mr=h.n(Xe),ln=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,di=/\s*%%.*\n/gm,In={};const pi=function(l,o){if((l=l.replace(ln,"").replace(di,`
|
|
`)).match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/))return"c4";if(l==="error")return"error";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(In),k=0;k<y.length;k++){var E=y[k],L=In[E];if(L&&L.detector(l))return E}return"flowchart"};var Pa=void 0;function gi(l){return gi=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},gi(l)}function Ii(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}function Ro(l,o){var y=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!y){if(Array.isArray(l)||(y=Ua(l))||o&&l&&typeof l.length=="number"){y&&(l=y);var k=0,E=function(){};return{s:E,n:function(){return k>=l.length?{done:!0}:{done:!1,value:l[k++]}},e:function(P){throw P},f:E}}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,N=!0,D=!1;return{s:function(){y=y.call(l)},n:function(){var P=y.next();return N=P.done,P},e:function(P){D=!0,L=P},f:function(){try{N||y.return==null||y.return()}finally{if(D)throw L}}}}function cc(l){return function(o){if(Array.isArray(o))return lc(o)}(l)||function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}(l)||Ua(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 Ua(l,o){if(l){if(typeof l=="string")return lc(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)?lc(l,o):void 0}}function lc(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var bs,au={curveBasis:T.curveBasis,curveBasisClosed:T.curveBasisClosed,curveBasisOpen:T.curveBasisOpen,curveLinear:T.curveLinear,curveLinearClosed:T.curveLinearClosed,curveMonotoneX:T.curveMonotoneX,curveMonotoneY:T.curveMonotoneY,curveNatural:T.curveNatural,curveStep:T.curveStep,curveStepAfter:T.curveStepAfter,curveStepBefore:T.curveStepBefore},lr=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Kc=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Dn=function(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var y=new RegExp("[%]{2}(?![{]".concat(Kc.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 k,E=[];(k=lr.exec(l))!==null;)if(k.index===lr.lastIndex&&lr.lastIndex++,k&&!o||o&&k[1]&&k[1].match(o)||o&&k[2]&&k[2].match(o)){var L=k[1]?k[1]:k[2],N=k[3]?k[3].trim():k[4]?JSON.parse(k[4].trim()):null;E.push({type:L,args:N})}return E.length===0&&E.push({type:l,args:null}),E.length===1?E[0]:E}catch(D){return _.error("ERROR: ".concat(D.message,` - Unable to parse directive
|
|
`).concat(o!==null?" type:"+o:""," based on the text:").concat(l)),{type:null,args:null}}},go=function(l,o){var y={};return function(){for(var k=arguments.length,E=new Array(k),L=0;L<k;L++)E[L]=arguments[L];var N=o?o.apply(Pa,E):E[0];if(N in y)return y[N];var D=l.apply(void 0,E);return y[N]=D,D}},ma=function(l,o){if(!l)return o;var y="curve".concat(l.charAt(0).toUpperCase()+l.slice(1));return au[y]||o},Qa=function(l,o){return l&&o?Math.sqrt(Math.pow(o.x-l.x,2)+Math.pow(o.y-l.y,2)):0},Ni=function(l){for(var o="",y="",k=0;k<l.length;k++)l[k]!==void 0&&(l[k].startsWith("color:")||l[k].startsWith("text-align:")?y=y+l[k]+";":o=o+l[k]+";");return{style:o,labelStyle:y}},Bo=0,uc=function(){return Bo++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Bo},hc=function(l){return function(o){for(var y="",k="0123456789abcdef",E=k.length,L=0;L<o;L++)y+=k.charAt(Math.floor(Math.random()*E));return y}(l.length)},dc=function(l,o){var y=o.text.replace(cr.lineBreakRegex," "),k=l.append("text");k.attr("x",o.x),k.attr("y",o.y),k.style("text-anchor",o.anchor),k.style("font-family",o.fontFamily),k.style("font-size",o.fontSize),k.style("font-weight",o.fontWeight),k.attr("fill",o.fill),o.class!==void 0&&k.attr("class",o.class);var E=k.append("tspan");return E.attr("x",o.x+2*o.textMargin),E.attr("fill",o.fill),E.text(y),k},Ca=go(function(l,o,y){if(!l||(y=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},y),cr.lineBreakRegex.test(l)))return l;var k=l.split(" "),E=[],L="";return k.forEach(function(N,D){var P=Ia("".concat(N," "),y),U=Ia(L,y);if(P>o){var K=ou(N,o,"-",y),tt=K.hyphenatedStrings,st=K.remainingWord;E.push.apply(E,[L].concat(cc(tt))),L=st}else U+P>=o?(E.push(L),L=N):L=[L,N].filter(Boolean).join(" ");D+1===k.length&&E.push(L)}),E.filter(function(N){return N!==""}).join(y.joinWith)},function(l,o,y){return"".concat(l,"-").concat(o,"-").concat(y.fontSize,"-").concat(y.fontWeight,"-").concat(y.fontFamily,"-").concat(y.joinWith)}),ou=go(function(l,o){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",k=arguments.length>3?arguments[3]:void 0;k=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},k);var E=l.split(""),L=[],N="";return E.forEach(function(D,P){var U="".concat(N).concat(D);if(Ia(U,k)>=o){var K=P+1,tt=E.length===K,st="".concat(U).concat(y);L.push(tt?U:st),N=""}else N=U}),{hyphenatedStrings:L,remainingWord:N}},function(l,o){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",k=arguments.length>3?arguments[3]:void 0;return"".concat(l,"-").concat(o,"-").concat(y,"-").concat(k.fontSize,"-").concat(k.fontWeight,"-").concat(k.fontFamily)}),fc=function(l,o){return o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},o),vs(l,o).height},Ia=function(l,o){return o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},o),vs(l,o).width},vs=go(function(l,o){var y=o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},o),k=y.fontSize,E=y.fontFamily,L=y.fontWeight;if(!l)return{width:0,height:0};var N=["sans-serif",E],D=l.split(cr.lineBreakRegex),P=[],U=(0,T.select)("body");if(!U.remove)return{width:0,height:0,lineHeight:0};for(var K=U.append("svg"),tt=0,st=N;tt<st.length;tt++){var ot,Lt=st[tt],Dt=0,zt={width:0,height:0,lineHeight:0},Ft=Ro(D);try{for(Ft.s();!(ot=Ft.n()).done;){var Pt=ot.value,Yt={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};Yt.text=Pt;var It=dc(K,Yt).style("font-size",k).style("font-weight",L).style("font-family",Lt),ae=(It._groups||It)[0][0].getBBox();zt.width=Math.round(Math.max(zt.width,ae.width)),Dt=Math.round(ae.height),zt.height+=Dt,zt.lineHeight=Math.round(Math.max(zt.lineHeight,Dt))}}catch(Se){Ft.e(Se)}finally{Ft.f()}P.push(zt)}return K.remove(),P[isNaN(P[1].height)||isNaN(P[1].width)||isNaN(P[1].lineHeight)||P[0].height>P[1].height&&P[0].width>P[1].width&&P[0].lineHeight>P[1].lineHeight?0:1]},function(l,o){return"".concat(l,"-").concat(o.fontSize,"-").concat(o.fontWeight,"-").concat(o.fontFamily)}),Jc=function(l,o,y){var k=new Map;return y?(k.set("width","100%"),k.set("style","max-width: ".concat(o,"px;"))):k.set("width",o),k},Ji=function(l,o,y,k){(function(E,L){var N,D=Ro(L);try{for(D.s();!(N=D.n()).done;){var P=N.value;E.attr(P[0],P[1])}}catch(U){D.e(U)}finally{D.f()}})(l,Jc(0,1*y,k))},Fo=function(l,o,y,k){var E=o.node().getBBox(),L=E.width,N=E.height;_.info("SVG bounds: ".concat(L,"x").concat(N),E);var D=l._label.width,P=l._label.height;_.info("Graph bounds: ".concat(D,"x").concat(P),l),D=L+2*y,P=N+2*y,_.info("Calculated bounds: ".concat(D,"x").concat(P)),Ji(o,0,D,k);var U="".concat(E.x-y," ").concat(E.y-y," ").concat(E.width+2*y," ").concat(E.height+2*y);_.info("Graph.label",l._label,"swidth",L,"sheight",N,"width",D,"height",P,"vBox",U),o.attr("viewBox",U)},yi=function l(o){if(_.debug("directiveSanitizer called with",o),gi(o)==="object"&&(o.length?o.forEach(function(N){return l(N)}):Object.keys(o).forEach(function(N){_.debug("Checking key",N),N.indexOf("__")===0&&(_.debug("sanitize deleting __ option",N),delete o[N]),N.indexOf("proto")>=0&&(_.debug("sanitize deleting proto option",N),delete o[N]),N.indexOf("constr")>=0&&(_.debug("sanitize deleting constr option",N),delete o[N]),N.indexOf("themeCSS")>=0&&(_.debug("sanitizing themeCss option"),o[N]=ts(o[N])),N.indexOf("fontFamily")>=0&&(_.debug("sanitizing fontFamily option"),o[N]=ts(o[N])),N.indexOf("altFontFamily")>=0&&(_.debug("sanitizing altFontFamily option"),o[N]=ts(o[N])),ya.indexOf(N)<0?(_.debug("sanitize deleting option",N),delete o[N]):gi(o[N])==="object"&&(_.debug("sanitize deleting object",N),l(o[N]))})),o.themeVariables)for(var y=Object.keys(o.themeVariables),k=0;k<y.length;k++){var E=y[k],L=o.themeVariables[E];L&&L.match&&!L.match(/^[a-zA-Z0-9#,";()%. ]+$/)&&(o.themeVariables[E]="")}_.debug("After sanitization",o)},ts=function(l){for(var o=0,y=0,k=0;k<l.length;k++){if(o<y)return"{ /* ERROR: Unbalanced CSS */ }";l[k]==="{"?o++:l[k]==="}"&&y++}return o!==y?"{ /* ERROR: Unbalanced CSS */ }":l};const Vr={assignWithDepth:ie,wrapLabel:Ca,calculateTextHeight:fc,calculateTextWidth:Ia,calculateTextDimensions:vs,calculateSvgSizeAttrs:Jc,configureSvgSize:Ji,setupGraphViewbox:Fo,detectInit:function(l,o){var y=Dn(l,/(?:init\b)|(?:initialize\b)/),k={};if(Array.isArray(y)){var E=y.map(function(N){return N.args});yi(E),k=ie(k,cc(E))}else k=y.args;if(k){var L=pi(l,o);["config"].forEach(function(N){k[N]!==void 0&&(L==="flowchart-v2"&&(L="flowchart"),k[L]=k[N],delete k[N])})}return k},detectDirective:Dn,isSubstringInArray:function(l,o){for(var y=0;y<o.length;y++)if(o[y].match(l))return y;return-1},interpolateToCurve:ma,calcLabelPosition:function(l){return l.length===1?l[0]:function(o){var y,k=0;o.forEach(function(N){k+=Qa(N,y),y=N});var E=k/2,L=void 0;return y=void 0,o.forEach(function(N){if(y&&!L){var D=Qa(N,y);if(D<E)E-=D;else{var P=E/D;P<=0&&(L=y),P>=1&&(L={x:N.x,y:N.y}),P>0&&P<1&&(L={x:(1-P)*y.x+P*N.x,y:(1-P)*y.y+P*N.y})}}y=N}),L}(l)},calcCardinalityPosition:function(l,o,y){var k;_.info("our points",o),o[0]!==y&&(o=o.reverse()),o.forEach(function(U){Qa(U,k),k=U});var E,L=25;k=void 0,o.forEach(function(U){if(k&&!E){var K=Qa(U,k);if(K<L)L-=K;else{var tt=L/K;tt<=0&&(E=k),tt>=1&&(E={x:U.x,y:U.y}),tt>0&&tt<1&&(E={x:(1-tt)*k.x+tt*U.x,y:(1-tt)*k.y+tt*U.y})}}k=U});var N=l?10:5,D=Math.atan2(o[0].y-E.y,o[0].x-E.x),P={x:0,y:0};return P.x=Math.sin(D)*N+(o[0].x+E.x)/2,P.y=-Math.cos(D)*N+(o[0].y+E.y)/2,P},calcTerminalLabelPosition:function(l,o,y){var k,E=JSON.parse(JSON.stringify(y));_.info("our points",E),o!=="start_left"&&o!=="start_right"&&(E=E.reverse()),E.forEach(function(K){Qa(K,k),k=K});var L,N=25+l;k=void 0,E.forEach(function(K){if(k&&!L){var tt=Qa(K,k);if(tt<N)N-=tt;else{var st=N/tt;st<=0&&(L=k),st>=1&&(L={x:K.x,y:K.y}),st>0&&st<1&&(L={x:(1-st)*k.x+st*K.x,y:(1-st)*k.y+st*K.y})}}k=K});var D=10+.5*l,P=Math.atan2(E[0].y-L.y,E[0].x-L.x),U={x:0,y:0};return U.x=Math.sin(P)*D+(E[0].x+L.x)/2,U.y=-Math.cos(P)*D+(E[0].y+L.y)/2,o==="start_left"&&(U.x=Math.sin(P+Math.PI)*D+(E[0].x+L.x)/2,U.y=-Math.cos(P+Math.PI)*D+(E[0].y+L.y)/2),o==="end_right"&&(U.x=Math.sin(P-Math.PI)*D+(E[0].x+L.x)/2-5,U.y=-Math.cos(P-Math.PI)*D+(E[0].y+L.y)/2-5),o==="end_left"&&(U.x=Math.sin(P)*D+(E[0].x+L.x)/2-5,U.y=-Math.cos(P)*D+(E[0].y+L.y)/2-5),U},formatUrl:function(l,o){var y=l.trim();if(y)return o.securityLevel!=="loose"?(0,ii.N)(y):y},getStylesFromArray:Ni,generateId:uc,random:hc,memoize:go,runFunc:function(l){for(var o,y=l.split("."),k=y.length-1,E=y[k],L=window,N=0;N<k;N++)if(!(L=L[y[N]]))return;for(var D=arguments.length,P=new Array(D>1?D-1:0),U=1;U<D;U++)P[U-1]=arguments[U];(o=L)[E].apply(o,P)},entityDecode:function(l){return bs=bs||document.createElement("div"),l=escape(l).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),bs.innerHTML=l,unescape(bs.textContent)},initIdGenerator:function(){function l(k,E){(function(L,N){if(!(L instanceof N))throw new TypeError("Cannot call a class as a function")})(this,l),this.deterministic=k,this.seed=E,this.count=E?E.length:0}var o,y;return o=l,(y=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&Ii(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}(),directiveSanitizer:yi,sanitizeCss:ts};function Sn(l,o,y){if(o.insert!==void 0){var k=l.getAccTitle(),E=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(E),o.insert("title",":first-child").attr("id","chart-title-"+y).text(k)}}function Qc(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}function Po(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function xs(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}function yo(l,o,y){return o&&xs(l.prototype,o),y&&xs(l,y),Object.defineProperty(l,"prototype",{writable:!1}),l}var mo=0,_o=0,$i=4,Li=2;Xe.parser.yy=ni;var Tr={},Qi=function(){function l(o){Po(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,_a(o.db.getConfig())}return yo(l,[{key:"setData",value:function(o,y,k,E){this.nextData.startx=this.data.startx=o,this.nextData.stopx=this.data.stopx=y,this.nextData.starty=this.data.starty=k,this.nextData.stopy=this.data.stopy=E}},{key:"updateVal",value:function(o,y,k,E){o[y]===void 0?o[y]=k:o[y]=E(k,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,k=y+o.width,E=this.nextData.starty+2*o.margin,L=E+o.height;(y>=this.data.widthLimit||k>=this.data.widthLimit||this.nextData.cnt>$i)&&(y=this.nextData.startx+o.margin+Tr.nextLinePaddingX,E=this.nextData.stopy+2*o.margin,this.nextData.stopx=k=y+o.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=L=E+o.height,this.nextData.cnt=1),o.x=y,o.y=E,this.updateVal(this.data,"startx",y,Math.min),this.updateVal(this.data,"starty",E,Math.min),this.updateVal(this.data,"stopx",k,Math.max),this.updateVal(this.data,"stopy",L,Math.max),this.updateVal(this.nextData,"startx",y,Math.min),this.updateVal(this.nextData,"starty",E,Math.min),this.updateVal(this.nextData,"stopx",k,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},_a(o.db.getConfig())}},{key:"bumpLastMargin",value:function(o){this.data.stopx+=o,this.data.stopy+=o}}]),l}(),_a=function(l){ie(Tr,l),l.fontFamily&&(Tr.personFontFamily=Tr.systemFontFamily=Tr.messageFontFamily=l.fontFamily),l.fontSize&&(Tr.personFontSize=Tr.systemFontSize=Tr.messageFontSize=l.fontSize),l.fontWeight&&(Tr.personFontWeight=Tr.systemFontWeight=Tr.messageFontWeight=l.fontWeight)},tn=function(l,o){return{fontFamily:l[o+"FontFamily"],fontSize:l[o+"FontSize"],fontWeight:l[o+"FontWeight"]}},I=function(l){return{fontFamily:l.boundaryFontFamily,fontSize:l.boundaryFontSize,fontWeight:l.boundaryFontWeight}};function Y(l,o,y,k,E){if(!o[l].width)if(y)o[l].text=Ca(o[l].text,E,k),o[l].textLines=o[l].text.split(cr.lineBreakRegex).length,o[l].width=E,o[l].height=fc(o[l].text,k);else{var L=o[l].text.split(cr.lineBreakRegex);o[l].textLines=L.length;var N=0;o[l].height=0,o[l].width=0;for(var D=0;D<L.length;D++)o[l].width=Math.max(Ia(L[D],k),o[l].width),N=fc(L[D],k),o[l].height=o[l].height+N}}var et=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=Tr.c4ShapeMargin-35;var k=o.wrap&&Tr.wrap,E=I(Tr);E.fontSize=E.fontSize+2,E.fontWeight="bold",Y("label",o,k,E,Ia(o.label.text,E)),function(L,N,D){var P=L.append("g"),U=N.bgColor?N.bgColor:"none",K=N.borderColor?N.borderColor:"#444444",tt=N.fontColor?N.fontColor:"black",st={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};N.nodeType&&(st={"stroke-width":1});var ot={x:N.x,y:N.y,fill:U,stroke:K,width:N.width,height:N.height,rx:2.5,ry:2.5,attrs:st};Ja(P,ot);var Lt=D.boundaryFont();Lt.fontWeight="bold",Lt.fontSize=Lt.fontSize+2,Lt.fontColor=tt,ca(D)(N.label.text,P,N.x,N.y+N.label.Y,N.width,N.height,{fill:"#444444"},Lt),N.type&&N.type.text!==""&&((Lt=D.boundaryFont()).fontColor=tt,ca(D)(N.type.text,P,N.x,N.y+N.type.Y,N.width,N.height,{fill:"#444444"},Lt)),N.descr&&N.descr.text!==""&&((Lt=D.boundaryFont()).fontSize=Lt.fontSize-2,Lt.fontColor=tt,ca(D)(N.descr.text,P,N.x,N.y+N.descr.Y,N.width,N.height,{fill:"#444444"},Lt))}(l,o,Tr)},yt=function(l,o,y,k){for(var E=0,L=0;L<k.length;L++){E=0;var N=y[k[L]],D=tn(Tr,N.typeC4Shape.text);switch(D.fontSize=D.fontSize-2,N.typeC4Shape.width=Ia("<<"+N.typeC4Shape.text+">>",D),N.typeC4Shape.height=D.fontSize+2,N.typeC4Shape.Y=Tr.c4ShapePadding,E=N.typeC4Shape.Y+N.typeC4Shape.height-4,N.image={width:0,height:0,Y:0},N.typeC4Shape.text){case"person":case"external_person":N.image.width=48,N.image.height=48,N.image.Y=E,E=N.image.Y+N.image.height}N.sprite&&(N.image.width=48,N.image.height=48,N.image.Y=E,E=N.image.Y+N.image.height);var P=N.wrap&&Tr.wrap,U=Tr.width-2*Tr.c4ShapePadding,K=tn(Tr,N.typeC4Shape.text);K.fontSize=K.fontSize+2,K.fontWeight="bold",Y("label",N,P,K,U),N.label.Y=E+8,E=N.label.Y+N.label.height,N.type&&N.type.text!==""?(N.type.text="["+N.type.text+"]",Y("type",N,P,tn(Tr,N.typeC4Shape.text),U),N.type.Y=E+5,E=N.type.Y+N.type.height):N.techn&&N.techn.text!==""&&(N.techn.text="["+N.techn.text+"]",Y("techn",N,P,tn(Tr,N.techn.text),U),N.techn.Y=E+5,E=N.techn.Y+N.techn.height);var tt=E,st=N.label.width;N.descr&&N.descr.text!==""&&(Y("descr",N,P,tn(Tr,N.typeC4Shape.text),U),N.descr.Y=E+20,E=N.descr.Y+N.descr.height,st=Math.max(N.label.width,N.descr.width),tt=E-5*N.descr.textLines),st+=Tr.c4ShapePadding,N.width=Math.max(N.width||Tr.width,st,Tr.width),N.height=Math.max(N.height||Tr.height,tt,Tr.height),N.margin=N.margin||Tr.c4ShapeMargin,l.insert(N),sc(o,N,Tr)}l.bumpLastMargin(Tr.c4ShapeMargin)},te=yo(function l(o,y){Po(this,l),this.x=o,this.y=y}),Ne=function(l,o){var y=l.x,k=l.y,E=o.x,L=o.y,N=y+l.width/2,D=k+l.height/2,P=Math.abs(y-E),U=Math.abs(k-L),K=U/P,tt=l.height/l.width,st=null;return k==L&&y<E?st=new te(y+l.width,D):k==L&&y>E?st=new te(y,D):y==E&&k<L?st=new te(N,k+l.height):y==E&&k>L&&(st=new te(N,k)),y>E&&k<L?st=tt>=K?new te(y,D+K*l.width/2):new te(N-P/U*l.height/2,k+l.height):y<E&&k<L?st=tt>=K?new te(y+l.width,D+K*l.width/2):new te(N+P/U*l.height/2,k+l.height):y<E&&k>L?st=tt>=K?new te(y+l.width,D-K*l.width/2):new te(N+l.height/2*P/U,k):y>E&&k>L&&(st=tt>=K?new te(y,D-l.width/2*K):new te(N-l.height/2*P/U,k)),st},je=function(l,o){var y={x:0,y:0};y.x=o.x+o.width/2,y.y=o.y+o.height/2;var k=Ne(l,y);return y.x=l.x+l.width/2,y.y=l.y+l.height/2,{startPoint:k,endPoint:Ne(o,y)}};function tr(l,o,y,k,E){var L=new Qi(E);L.data.widthLimit=y.data.widthLimit/Math.min(Li,k.length);for(var N=0;N<k.length;N++){var D=k[N],P=0;D.image={width:0,height:0,Y:0},D.sprite&&(D.image.width=48,D.image.height=48,D.image.Y=P,P=D.image.Y+D.image.height);var U=D.wrap&&Tr.wrap,K=I(Tr);if(K.fontSize=K.fontSize+2,K.fontWeight="bold",Y("label",D,U,K,L.data.widthLimit),D.label.Y=P+8,P=D.label.Y+D.label.height,D.type&&D.type.text!==""&&(D.type.text="["+D.type.text+"]",Y("type",D,U,I(Tr),L.data.widthLimit),D.type.Y=P+5,P=D.type.Y+D.type.height),D.descr&&D.descr.text!==""){var tt=I(Tr);tt.fontSize=tt.fontSize-2,Y("descr",D,U,tt,L.data.widthLimit),D.descr.Y=P+20,P=D.descr.Y+D.descr.height}if(N==0||N%Li==0){var st=y.data.startx+Tr.diagramMarginX,ot=y.data.stopy+Tr.diagramMarginY+P;L.setData(st,st,ot,ot)}else{var Lt=L.data.stopx!==L.data.startx?L.data.stopx+Tr.diagramMarginX:L.data.startx,Dt=L.data.starty;L.setData(Lt,Lt,Dt,Dt)}L.name=D.alias;var zt=E.db.getC4ShapeArray(D.alias),Ft=E.db.getC4ShapeKeys(D.alias);Ft.length>0&&yt(L,l,zt,Ft),o=D.alias;var Pt=E.db.getBoundarys(o);Pt.length>0&&tr(l,o,L,Pt,E),D.alias!=="global"&&et(l,D,L),y.data.stopy=Math.max(L.data.stopy+Tr.c4ShapeMargin,y.data.stopy),y.data.stopx=Math.max(L.data.stopx+Tr.c4ShapeMargin,y.data.stopx),mo=Math.max(mo,y.data.stopx),_o=Math.max(_o,y.data.stopy)}}const nr={drawPersonOrSystemArray:yt,drawBoundary:et,setConf:_a,draw:function(l,o,y,k){Tr=Bt().c4;var E,L=Bt().securityLevel;L==="sandbox"&&(E=(0,T.select)("#i"+o));var N=L==="sandbox"?(0,T.select)(E.nodes()[0].contentDocument.body):(0,T.select)("body"),D=k.db;k.db.setWrap(Tr.wrap),$i=D.getC4ShapeInRow(),Li=D.getC4BoundaryInRow(),_.debug("C:".concat(JSON.stringify(Tr,null,2)));var P=L==="sandbox"?N.select('[id="'.concat(o,'"]')):(0,T.select)('[id="'.concat(o,'"]'));P.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(Dt){Dt.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")}(P),function(Dt){Dt.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")}(P);var U=new Qi(k);U.setData(Tr.diagramMarginX,Tr.diagramMarginX,Tr.diagramMarginY,Tr.diagramMarginY),U.data.widthLimit=screen.availWidth,mo=Tr.diagramMarginX,_o=Tr.diagramMarginY;var K=k.db.getTitle();k.db.getC4Type(),tr(P,"",U,k.db.getBoundarys(""),k),function(Dt){Dt.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")}(P),function(Dt){Dt.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")}(P),function(Dt){var zt=Dt.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);zt.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"),zt.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")}(P),function(Dt){Dt.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")}(P),function(Dt,zt,Ft,Pt){var Yt,It,ae=0,Se=function(ue,Re){var Le=typeof Symbol<"u"&&ue[Symbol.iterator]||ue["@@iterator"];if(!Le){if(Array.isArray(ue)||(Le=function(We,Ve){if(We){if(typeof We=="string")return Qc(We,Ve);var xr=Object.prototype.toString.call(We).slice(8,-1);return xr==="Object"&&We.constructor&&(xr=We.constructor.name),xr==="Map"||xr==="Set"?Array.from(We):xr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(xr)?Qc(We,Ve):void 0}}(ue))||Re&&ue&&typeof ue.length=="number"){Le&&(ue=Le);var $e=0,kr=function(){};return{s:kr,n:function(){return $e>=ue.length?{done:!0}:{done:!1,value:ue[$e++]}},e:function(We){throw We},f:kr}}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 Ye,ir=!0,br=!1;return{s:function(){Le=Le.call(ue)},n:function(){var We=Le.next();return ir=We.done,We},e:function(We){br=!0,Ye=We},f:function(){try{ir||Le.return==null||Le.return()}finally{if(br)throw Ye}}}}(zt);try{for(Se.s();!(Yt=Se.n()).done;){var pe=Yt.value;ae+=1;var Ee=pe.wrap&&Tr.wrap,$t={fontFamily:(It=Tr).messageFontFamily,fontSize:It.messageFontSize,fontWeight:It.messageFontWeight};Pt.db.getC4Type()==="C4Dynamic"&&(pe.label.text=ae+": "+pe.label.text);var fe=Ia(pe.label.text,$t);Y("label",pe,Ee,$t,fe),pe.techn&&pe.techn.text!==""&&Y("techn",pe,Ee,$t,fe=Ia(pe.techn.text,$t)),pe.descr&&pe.descr.text!==""&&Y("descr",pe,Ee,$t,fe=Ia(pe.descr.text,$t));var Xt=Ft(pe.from),ce=Ft(pe.to),de=je(Xt,ce);pe.startPoint=de.startPoint,pe.endPoint=de.endPoint}}catch(ue){Se.e(ue)}finally{Se.f()}Qt(Dt,zt,Tr)}(P,k.db.getRels(),k.db.getC4Shape,k),U.data.stopx=mo,U.data.stopy=_o;var tt=U.data,st=tt.stopy-tt.starty+2*Tr.diagramMarginY,ot=tt.stopx-tt.startx+2*Tr.diagramMarginX;K&&P.append("text").text(K).attr("x",(tt.stopx-tt.startx)/2-4*Tr.diagramMarginX).attr("y",tt.starty+Tr.diagramMarginY),Ji(P,0,ot,Tr.useMaxWidth);var Lt=K?60:0;P.attr("viewBox",tt.startx-Tr.diagramMarginX+" -"+(Tr.diagramMarginY+Lt)+" "+ot+" "+(st+Lt)),Sn(Xe.parser.yy,P,o),_.debug("models:",tt)}};function fr(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var _r="classid-",$r=[],pr={},xn=0,un=[],Gn=function(l){return cr.sanitizeText(l,Bt())},si=function(l){var o="",y=l;if(l.indexOf("~")>0){var k=l.split("~");y=k[0],o=cr.sanitizeText(k[1],Bt())}return{className:y,type:o}},qn=function(l){var o=si(l);pr[o.className]===void 0&&(pr[o.className]={id:o.className,type:o.type,cssClasses:[],methods:[],members:[],annotations:[],domId:_r+o.className+"-"+xn},xn++)},ws=function(l){for(var o=Object.keys(pr),y=0;y<o.length;y++)if(pr[o[y]].id===l)return pr[o[y]].domId},su=function(l,o){var y=si(l).className,k=pr[y];if(typeof o=="string"){var E=o.trim();E.startsWith("<<")&&E.endsWith(">>")?k.annotations.push(Gn(E.substring(2,E.length-2))):E.indexOf(")")>0?k.methods.push(Gn(E)):E&&k.members.push(Gn(E))}},pc=function(l,o){l.split(",").forEach(function(y){var k=y;y[0].match(/\d/)&&(k=_r+k),pr[k]!==void 0&&pr[k].cssClasses.push(o)})},Jh=function(l,o,y){var k=Bt(),E=l,L=ws(E);if(k.securityLevel==="loose"&&o!==void 0&&pr[E]!==void 0){var N=[];if(typeof y=="string"){N=y.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var D=0;D<N.length;D++){var P=N[D].trim();P.charAt(0)==='"'&&P.charAt(P.length-1)==='"'&&(P=P.substr(1,P.length-2)),N[D]=P}}N.length===0&&N.push(L),un.push(function(){var U=document.querySelector('[id="'.concat(L,'"]'));U!==null&&U.addEventListener("click",function(){var K;Vr.runFunc.apply(Vr,[o].concat(function(tt){if(Array.isArray(tt))return fr(tt)}(K=N)||function(tt){if(typeof Symbol<"u"&&tt[Symbol.iterator]!=null||tt["@@iterator"]!=null)return Array.from(tt)}(K)||function(tt,st){if(tt){if(typeof tt=="string")return fr(tt,st);var ot=Object.prototype.toString.call(tt).slice(8,-1);return ot==="Object"&&tt.constructor&&(ot=tt.constructor.name),ot==="Map"||ot==="Set"?Array.from(tt):ot==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ot)?fr(tt,st):void 0}}(K)||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,T.select)(".mermaidTooltip");(o._groups||o)[0][0]===null&&(o=(0,T.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,T.select)(l).select("svg").selectAll("g.node").on("mouseover",function(){var y=(0,T.select)(this);if(y.attr("title")!==null){var k=this.getBoundingClientRect();o.transition().duration(200).style("opacity",".9"),o.text(y.attr("title")).style("left",window.scrollX+k.left+(k.right-k.left)/2+"px").style("top",window.scrollY+k.top-14+document.body.scrollTop+"px"),o.html(o.html().replace(/<br\/>/g,"<br/>")),y.classed("hover",!0)}}).on("mouseout",function(){o.transition().duration(500).style("opacity",0),(0,T.select)(this).classed("hover",!1)})};un.push(cu);var gc="TB";const la={parseDirective:function(l,o,y){Br.parseDirective(this,l,o,y)},setAccTitle:Tn,getAccTitle:Bn,getAccDescription:fi,setAccDescription:Xn,getConfig:function(){return Bt().class},addClass:qn,bindFunctions:function(l){un.forEach(function(o){o(l)})},clear:function(){$r=[],pr={},(un=[]).push(cu),re()},getClass:function(l){return pr[l]},getClasses:function(){return pr},addAnnotation:function(l,o){var y=si(l).className;pr[y].annotations.push(o)},getRelations:function(){return $r},addRelation:function(l){_.debug("Adding relation: "+JSON.stringify(l)),qn(l.id1),qn(l.id2),l.id1=si(l.id1).className,l.id2=si(l.id2).className,l.relationTitle1=cr.sanitizeText(l.relationTitle1.trim(),Bt()),l.relationTitle2=cr.sanitizeText(l.relationTitle2.trim(),Bt()),$r.push(l)},getDirection:function(){return gc},setDirection:function(l){gc=l},addMember:su,addMembers:function(l,o){Array.isArray(o)&&(o.reverse(),o.forEach(function(y){return su(l,y)}))},cleanupLabel:function(l){return l.substring(0,1)===":"?cr.sanitizeText(l.substr(1).trim(),Bt()):Gn(l.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},setClickEvent:function(l,o,y){l.split(",").forEach(function(k){Jh(k,o,y),pr[k].haveCallback=!0}),pc(l,"clickable")},setCssClass:pc,setLink:function(l,o,y){var k=Bt();l.split(",").forEach(function(E){var L=E;E[0].match(/\d/)&&(L=_r+L),pr[L]!==void 0&&(pr[L].link=Vr.formatUrl(o,k),k.securityLevel==="sandbox"?pr[L].linkTarget="_top":pr[L].linkTarget=typeof y=="string"?Gn(y):"_blank")}),pc(l,"clickable")},getTooltip:function(l){return pr[l].tooltip},setTooltip:function(l,o){var y=Bt();l.split(",").forEach(function(k){o!==void 0&&(pr[k].tooltip=cr.sanitizeText(o,y))})},lookUpDomId:ws};var lu=h(681),ks=h.n(lu),Qh=h(8282),mi=h.n(Qh),yc=0,tl=function(l){var o=l.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),y=l.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return o&&!y?el(o):y?Mi(y):mc(l)},el=function(l){var o="",y="";try{var k=l[1]?l[1].trim():"",E=l[2]?l[2].trim():"",L=l[3]?Qr(l[3].trim()):"",N=l[4]?l[4].trim():"",D=l[5]?l[5].trim():"";y=k+E+L+" "+N,o=rl(D)}catch{y=l}return{displayText:y,cssStyle:o}},Mi=function(l){var o="",y="";try{var k=l[1]?l[1].trim():"",E=l[2]?l[2].trim():"",L=l[3]?Qr(l[3].trim()):"",N=l[4]?l[4].trim():"";y=k+E+"("+L+")"+(l[5]?" : "+Qr(l[5]).trim():""),o=rl(N)}catch{y=l}return{displayText:y,cssStyle:o}},mc=function(l){var o="",y="",k="",E=l.indexOf("("),L=l.indexOf(")");if(E>1&&L>E&&L<=l.length){var N="",D="",P=l.substring(0,1);P.match(/\w/)?D=l.substring(0,E).trim():(P.match(/\+|-|~|#/)&&(N=P),D=l.substring(1,E).trim());var U=l.substring(E+1,L),K=l.substring(L+1,1);y=rl(K),o=N+D+"("+Qr(U.trim())+")",L<0&&(k=l.substring(L+2).trim())!==""&&(k=" : "+Qr(k))}else o=Qr(l);return{displayText:o,cssStyle:y}},uu=function(l,o,y,k){var E=tl(o),L=l.append("tspan").attr("x",k.padding).text(E.displayText);E.cssStyle!==""&&L.attr("style",E.cssStyle),y||L.attr("dy",k.textHeight)},rl=function(l){switch(l){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const ad=function(l,o,y,k){_.debug("Rendering class ",o,y);var E,L=o.id,N={id:L,label:o.id,width:0,height:0},D=l.append("g").attr("id",k.db.lookUpDomId(L)).attr("class","classGroup");E=o.link?D.append("svg:a").attr("xlink:href",o.link).attr("target",o.linkTarget).append("text").attr("y",y.textHeight+y.padding).attr("x",0):D.append("text").attr("y",y.textHeight+y.padding).attr("x",0);var P=!0;o.annotations.forEach(function(It){var ae=E.append("tspan").text("\xAB"+It+"\xBB");P||ae.attr("dy",y.textHeight),P=!1});var U=o.id;o.type!==void 0&&o.type!==""&&(U+="<"+o.type+">");var K=E.append("tspan").text(U).attr("class","title");P||K.attr("dy",y.textHeight);var tt=E.node().getBBox().height,st=D.append("line").attr("x1",0).attr("y1",y.padding+tt+y.dividerMargin/2).attr("y2",y.padding+tt+y.dividerMargin/2),ot=D.append("text").attr("x",y.padding).attr("y",tt+y.dividerMargin+y.textHeight).attr("fill","white").attr("class","classText");P=!0,o.members.forEach(function(It){uu(ot,It,P,y),P=!1});var Lt=ot.node().getBBox(),Dt=D.append("line").attr("x1",0).attr("y1",y.padding+tt+y.dividerMargin+Lt.height).attr("y2",y.padding+tt+y.dividerMargin+Lt.height),zt=D.append("text").attr("x",y.padding).attr("y",tt+2*y.dividerMargin+Lt.height+y.textHeight).attr("fill","white").attr("class","classText");P=!0,o.methods.forEach(function(It){uu(zt,It,P,y),P=!1});var Ft=D.node().getBBox(),Pt=" ";o.cssClasses.length>0&&(Pt+=o.cssClasses.join(" "));var Yt=D.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",Ft.width+2*y.padding).attr("height",Ft.height+y.padding+.5*y.dividerMargin).attr("class",Pt).node().getBBox().width;return E.node().childNodes.forEach(function(It){It.setAttribute("x",(Yt-It.getBBox().width)/2)}),o.tooltip&&E.insert("title").text(o.tooltip),st.attr("x2",Yt),Dt.attr("x2",Yt),N.width=Yt,N.height=Ft.height+y.padding+.5*y.dividerMargin,N};var _c={},bc=function(l){var o=Object.entries(_c).find(function(y){return y[1].label===l});if(o)return o[0]};const od={draw:function(l,o,y,k){var E=Bt().class;_c={},_.info("Rendering diagram "+l);var L,N=Bt().securityLevel;N==="sandbox"&&(L=(0,T.select)("#i"+o));var D,P=N==="sandbox"?(0,T.select)(L.nodes()[0].contentDocument.body):(0,T.select)("body"),U=(N==="sandbox"&&L.nodes()[0].contentDocument,P.select("[id='".concat(o,"']")));(D=U).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"),D.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"),D.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"),D.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"),D.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"),D.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"),D.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"),D.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 K=new(mi()).Graph({multigraph:!0});K.setGraph({isMultiGraph:!0}),K.setDefaultEdgeLabel(function(){return{}});for(var tt=k.db.getClasses(),st=Object.keys(tt),ot=0;ot<st.length;ot++){var Lt=tt[st[ot]],Dt=ad(U,Lt,E,k);_c[Dt.id]=Dt,K.setNode(Dt.id,Dt),_.info("Org height: "+Dt.height)}k.db.getRelations().forEach(function(It){_.info("tjoho"+bc(It.id1)+bc(It.id2)+JSON.stringify(It)),K.setEdge(bc(It.id1),bc(It.id2),{relation:It},It.title||"DEFAULT")}),ks().layout(K),K.nodes().forEach(function(It){It!==void 0&&K.node(It)!==void 0&&(_.debug("Node "+It+": "+JSON.stringify(K.node(It))),P.select("#"+k.db.lookUpDomId(It)).attr("transform","translate("+(K.node(It).x-K.node(It).width/2)+","+(K.node(It).y-K.node(It).height/2)+" )"))}),K.edges().forEach(function(It){It!==void 0&&K.edge(It)!==void 0&&(_.debug("Edge "+It.v+" -> "+It.w+": "+JSON.stringify(K.edge(It))),function(ae,Se,pe,Ee,$t){var fe=function(mn){switch(mn){case $t.db.relationType.AGGREGATION:return"aggregation";case $t.db.EXTENSION:return"extension";case $t.db.COMPOSITION:return"composition";case $t.db.DEPENDENCY:return"dependency";case $t.db.LOLLIPOP:return"lollipop"}};Se.points=Se.points.filter(function(mn){return!Number.isNaN(mn.y)});var Xt,ce,de=Se.points,ue=(0,T.line)().x(function(mn){return mn.x}).y(function(mn){return mn.y}).curve(T.curveBasis),Re=ae.append("path").attr("d",ue(de)).attr("id","edge"+yc).attr("class","relation"),Le="";Ee.arrowMarkerAbsolute&&(Le=(Le=(Le=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),pe.relation.lineType==1&&Re.attr("class","relation dashed-line"),pe.relation.type1!=="none"&&Re.attr("marker-start","url("+Le+"#"+fe(pe.relation.type1)+"Start)"),pe.relation.type2!=="none"&&Re.attr("marker-end","url("+Le+"#"+fe(pe.relation.type2)+"End)");var $e,kr,Ye,ir,br=Se.points.length,We=Vr.calcLabelPosition(Se.points);if(Xt=We.x,ce=We.y,br%2!=0&&br>1){var Ve=Vr.calcCardinalityPosition(pe.relation.type1!=="none",Se.points,Se.points[0]),xr=Vr.calcCardinalityPosition(pe.relation.type2!=="none",Se.points,Se.points[br-1]);_.debug("cardinality_1_point "+JSON.stringify(Ve)),_.debug("cardinality_2_point "+JSON.stringify(xr)),$e=Ve.x,kr=Ve.y,Ye=xr.x,ir=xr.y}if(pe.title!==void 0){var bn=ae.append("g").attr("class","classLabel"),yn=bn.append("text").attr("class","label").attr("x",Xt).attr("y",ce).attr("fill","red").attr("text-anchor","middle").text(pe.title);window.label=yn;var $n=yn.node().getBBox();bn.insert("rect",":first-child").attr("class","box").attr("x",$n.x-Ee.padding/2).attr("y",$n.y-Ee.padding/2).attr("width",$n.width+Ee.padding).attr("height",$n.height+Ee.padding)}_.info("Rendering relation "+JSON.stringify(pe)),pe.relationTitle1!==void 0&&pe.relationTitle1!=="none"&&ae.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",$e).attr("y",kr).attr("fill","black").attr("font-size","6").text(pe.relationTitle1),pe.relationTitle2!==void 0&&pe.relationTitle2!=="none"&&ae.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",Ye).attr("y",ir).attr("fill","black").attr("font-size","6").text(pe.relationTitle2),yc++}(U,K.edge(It),K.edge(It).relation,E,k))});var zt=U.node().getBBox(),Ft=zt.width+40,Pt=zt.height+40;Ji(U,0,Ft,E.useMaxWidth);var Yt="".concat(zt.x-20," ").concat(zt.y-20," ").concat(Ft," ").concat(Pt);_.debug("viewBox ".concat(Yt)),U.attr("viewBox",Yt),Sn(k.db,U,o)}};var t1={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")},lollipop:function(l,o,y){l.append("defs").append("marker").attr("id",o+"-lollipopStart").attr("class","marker lollipop "+o).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},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 e1=function(l,o,y,k){o.forEach(function(E){t1[E](l,y,k)})};function ua(l){return ua=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},ua(l)}const ta=function(l,o,y,k){var E=l||"";if(ua(E)==="object"&&(E=E[0]),sr(Bt().flowchart.htmlLabels)){E=E.replace(/\\n|\n/g,"<br />"),_.info("vertexText"+E);var L=function(K){var tt,st=(0,T.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),ot=st.append("xhtml:div"),Lt=K.label,Dt=K.isNode?"nodeLabel":"edgeLabel";return ot.html('<span class="'+Dt+'" '+(K.labelStyle?'style="'+K.labelStyle+'"':"")+">"+Lt+"</span>"),(tt=K.labelStyle)&&ot.attr("style",tt),ot.style("display","inline-block"),ot.style("white-space","nowrap"),ot.attr("xmlns","http://www.w3.org/1999/xhtml"),st.node()}({isNode:k,label:Vs(E).replace(/fa[lrsb]?:fa-[\w-]+/g,function(K){return"<i class='".concat(K.replace(":"," "),"'></i>")}),labelStyle:o.replace("fill:","color:")});return L}var N=document.createElementNS("http://www.w3.org/2000/svg","text");N.setAttribute("style",o.replace("color:","fill:"));var D=[];D=typeof E=="string"?E.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(E)?E:[];for(var P=0;P<D.length;P++){var U=document.createElementNS("http://www.w3.org/2000/svg","tspan");U.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),U.setAttribute("dy","1em"),U.setAttribute("x","0"),y?U.setAttribute("class","title-row"):U.setAttribute("class","row"),U.textContent=D[P].trim(),N.appendChild(U)}return N};var Di=function(l,o,y,k){var E;E=y||"node default";var L=l.insert("g").attr("class",E).attr("id",o.domId||o.id),N=L.insert("g").attr("class","label").attr("style",o.labelStyle),D=typeof o.labelText=="string"?o.labelText:o.labelText[0],P=N.node().appendChild(ta(dn(Vs(D),Bt()),o.labelStyle,!1,k)),U=P.getBBox();if(sr(Bt().flowchart.htmlLabels)){var K=P.children[0],tt=(0,T.select)(P);U=K.getBoundingClientRect(),tt.attr("width",U.width),tt.attr("height",U.height)}var st=o.padding/2;return N.attr("transform","translate("+-U.width/2+", "+-U.height/2+")"),{shapeSvg:L,bbox:U,halfPadding:st,label:N}},ai=function(l,o){var y=o.node().getBBox();l.width=y.width,l.height=y.height};function za(l,o,y,k){return l.insert("polygon",":first-child").attr("points",k.map(function(E){return E.x+","+E.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-o/2+","+y/2+")")}var en={},Na={},ha={},es=function(l,o){return _.trace("In isDecendant",o," ",l," = ",Na[o].indexOf(l)>=0),Na[o].indexOf(l)>=0},vc=function l(o,y,k,E){_.warn("Copying children of ",o,"root",E,"data",y.node(o),E);var L=y.children(o)||[];o!==E&&L.push(o),_.warn("Copying (nodes) clusterId",o,"nodes",L),L.forEach(function(N){if(y.children(N).length>0)l(N,y,k,E);else{var D=y.node(N);_.info("cp ",N," to ",E," with parent ",o),k.setNode(N,D),E!==y.parent(N)&&(_.warn("Setting parent",N,y.parent(N)),k.setParent(N,y.parent(N))),o!==E&&N!==o?(_.debug("Setting parent",N,o),k.setParent(N,o)):(_.info("In copy ",o,"root",E,"data",y.node(o),E),_.debug("Not Setting parent for node=",N,"cluster!==rootId",o!==E,"node!==clusterId",N!==o));var P=y.edges(N);_.debug("Copying Edges",P),P.forEach(function(U){_.info("Edge",U);var K=y.edge(U.v,U.w,U.name);_.info("Edge data",K,E);try{(function(tt,st){return _.info("Decendants of ",st," is ",Na[st]),_.info("Edge is ",tt),tt.v!==st&&tt.w!==st&&(Na[st]?(_.info("Here "),Na[st].indexOf(tt.v)>=0||!!es(tt.v,st)||!!es(tt.w,st)||Na[st].indexOf(tt.w)>=0):(_.debug("Tilt, ",st,",not in decendants"),!1))})(U,E)?(_.info("Copying as ",U.v,U.w,K,U.name),k.setEdge(U.v,U.w,K,U.name),_.info("newGraph edges ",k.edges(),k.edge(k.edges()[0]))):_.info("Skipping copy of edge ",U.v,"-->",U.w," rootId: ",E," clusterId:",o)}catch(tt){_.error(tt)}})}_.debug("Removing node",N),y.removeNode(N)})},Es=function l(o,y){for(var k=y.children(o),E=[].concat(k),L=0;L<k.length;L++)ha[k[L]]=o,E=E.concat(l(k[L],y));return E},Uo=function l(o,y){_.trace("Searching",o);var k=y.children(o);if(_.trace("Searching children of id ",o,k),k.length<1)return _.trace("This is a valid node",o),o;for(var E=0;E<k.length;E++){var L=l(k[E],y);if(L)return _.trace("Found replacement for",o," => ",L),L}},zo=function(l){return en[l]&&en[l].externalConnections&&en[l]?en[l].id:l},nl=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: ",Uo(y,l)),Na[y]=Es(y,l),en[y]={id:Uo(y,l),clusterData:l.node(y)})}),l.nodes().forEach(function(y){var k=l.children(y),E=l.edges();k.length>0?(_.debug("Cluster identified",y,Na),E.forEach(function(L){L.v!==y&&L.w!==y&&es(L.v,y)^es(L.w,y)&&(_.warn("Edge: ",L," leaves cluster ",y),_.warn("Decendants of XXX ",y,": ",Na[y]),en[y].externalConnections=!0)})):_.debug("Not a cluster ",y,Na)}),l.edges().forEach(function(y){var k=l.edge(y);_.warn("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(y)),_.warn("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(l.edge(y)));var E=y.v,L=y.w;if(_.warn("Fix XXX",en,"ids:",y.v,y.w,"Translateing: ",en[y.v]," --- ",en[y.w]),en[y.v]&&en[y.w]&&en[y.v]===en[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),E=zo(y.v),L=zo(y.w),l.removeEdge(y.v,y.w,y.name);var N=y.w+"---"+y.v;l.setNode(N,{domId:N,id:N,labelStyle:"",labelText:k.label,padding:0,shape:"labelRect",style:""});var D=JSON.parse(JSON.stringify(k)),P=JSON.parse(JSON.stringify(k));D.label="",D.arrowTypeEnd="none",P.label="",D.fromCluster=y.v,P.toCluster=y.v,l.setEdge(E,N,D,y.name+"-cyclic-special"),l.setEdge(N,L,P,y.name+"-cyclic-special")}else(en[y.v]||en[y.w])&&(_.warn("Fixing and trixing - removing XXX",y.v,y.w,y.name),E=zo(y.v),L=zo(y.w),l.removeEdge(y.v,y.w,y.name),E!==y.v&&(k.fromCluster=y.v),L!==y.w&&(k.toCluster=y.w),_.warn("Fix Replacing with XXX",E,L,y.name),l.setEdge(E,L,k,y.name))}),_.warn("Adjusted Graph",mi().json.write(l)),rs(l,0),_.trace(en))},rs=function l(o,y){if(_.warn("extractor - ",y,mi().json.write(o),o.children("D")),y>10)_.error("Bailing out");else{for(var k=o.nodes(),E=!1,L=0;L<k.length;L++){var N=k[L],D=o.children(N);E=E||D.length>0}if(E){_.debug("Nodes = ",k,y);for(var P=0;P<k.length;P++){var U=k[P];if(_.debug("Extracting node",U,en,en[U]&&!en[U].externalConnections,!o.parent(U),o.node(U),o.children("D")," Depth ",y),en[U])if(!en[U].externalConnections&&o.children(U)&&o.children(U).length>0){_.warn("Cluster without external connections, without a parent and with children",U,y);var K=o.graph().rankdir==="TB"?"LR":"TB";en[U]&&en[U].clusterData&&en[U].clusterData.dir&&(K=en[U].clusterData.dir,_.warn("Fixing dir",en[U].clusterData.dir,K));var tt=new(mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:K,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});_.warn("Old graph before copy",mi().json.write(o)),vc(U,o,tt,U),o.setNode(U,{clusterNode:!0,id:U,clusterData:en[U].clusterData,labelText:en[U].labelText,graph:tt}),_.warn("New graph after copy node: (",U,")",mi().json.write(tt)),_.debug("Old graph after copy",mi().json.write(o))}else _.warn("Cluster ** ",U," **not meeting the criteria !externalConnections:",!en[U].externalConnections," no parent: ",!o.parent(U)," children ",o.children(U)&&o.children(U).length>0,o.children("D"),y),_.debug(en);else _.debug("Not a cluster",U,y)}k=o.nodes(),_.warn("New list of nodes",k);for(var st=0;st<k.length;st++){var ot=k[st],Lt=o.node(ot);_.warn(" Now next level",ot,Lt),Lt.clusterNode&&l(Lt.graph,y+1)}}else _.debug("Done, no node has children",o.nodes())}},il=function l(o,y){if(y.length===0)return[];var k=Object.assign(y);return y.forEach(function(E){var L=o.children(E),N=l(o,L);k=k.concat(N)}),k},xc=function(l){return il(l,l.children())},r1=h(3841);const wc=function(l,o,y,k){var E=l.x,L=l.y,N=E-k.x,D=L-k.y,P=Math.sqrt(o*o*D*D+y*y*N*N),U=Math.abs(o*y*N/P);k.x<E&&(U=-U);var K=Math.abs(o*y*D/P);return k.y<L&&(K=-K),{x:E+U,y:L+K}};function n1(l,o){return l*o>0}const kc=function(l,o,y,k){var E,L,N,D,P,U,K,tt,st,ot,Lt,Dt,zt;if(E=o.y-l.y,N=l.x-o.x,P=o.x*l.y-l.x*o.y,st=E*y.x+N*y.y+P,ot=E*k.x+N*k.y+P,!(st!==0&&ot!==0&&n1(st,ot)||(L=k.y-y.y,D=y.x-k.x,U=k.x*y.y-y.x*k.y,K=L*l.x+D*l.y+U,tt=L*o.x+D*o.y+U,K!==0&&tt!==0&&n1(K,tt)||(Lt=E*D-L*N)==0)))return Dt=Math.abs(Lt/2),{x:(zt=N*U-D*P)<0?(zt-Dt)/Lt:(zt+Dt)/Lt,y:(zt=L*P-E*U)<0?(zt-Dt)/Lt:(zt+Dt)/Lt}},Yo=function(l,o){var y,k,E=l.x,L=l.y,N=o.x-E,D=o.y-L,P=l.width/2,U=l.height/2;return Math.abs(D)*P>Math.abs(N)*U?(D<0&&(U=-U),y=D===0?0:U*N/D,k=U):(N<0&&(P=-P),y=P,k=N===0?0:P*D/N),{x:E+y,y:L+k}},Ts=(h.n(r1)(),function(l,o,y){return wc(l,o,o,y)}),to=function(l,o,y){var k=l.x,E=l.y,L=[],N=Number.POSITIVE_INFINITY,D=Number.POSITIVE_INFINITY;typeof o.forEach=="function"?o.forEach(function(Lt){N=Math.min(N,Lt.x),D=Math.min(D,Lt.y)}):(N=Math.min(N,o.x),D=Math.min(D,o.y));for(var P=k-l.width/2-N,U=E-l.height/2-D,K=0;K<o.length;K++){var tt=o[K],st=o[K<o.length-1?K+1:0],ot=kc(l,y,{x:P+tt.x,y:U+tt.y},{x:P+st.x,y:U+st.y});ot&&L.push(ot)}return L.length?(L.length>1&&L.sort(function(Lt,Dt){var zt=Lt.x-y.x,Ft=Lt.y-y.y,Pt=Math.sqrt(zt*zt+Ft*Ft),Yt=Dt.x-y.x,It=Dt.y-y.y,ae=Math.sqrt(Yt*Yt+It*It);return Pt<ae?-1:Pt===ae?0:1}),L[0]):l},jo=Yo;function Ss(l){return Ss=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},Ss(l)}function al(l,o,y,k){var E=[],L=function(D){E.push(D),E.push(0)},N=function(D){E.push(0),E.push(D)};o.includes("t")?(_.debug("add top border"),L(y)):N(y),o.includes("r")?(_.debug("add right border"),L(k)):N(k),o.includes("b")?(_.debug("add bottom border"),L(y)):N(y),o.includes("l")?(_.debug("add left border"),L(k)):N(k),l.attr("stroke-dasharray",E.join(" "))}var i1=function(l,o,y){var k=l.insert("g").attr("class","node default").attr("id",o.domId||o.id),E=70,L=10;y==="LR"&&(E=10,L=70);var N=k.append("rect").attr("x",-1*E/2).attr("y",-1*L/2).attr("width",E).attr("height",L).attr("class","fork-join");return ai(o,N),o.height=o.height+o.padding/2,o.width=o.width+o.padding/2,o.intersect=function(D){return jo(o,D)},k},a1={question:function(l,o){var y=Di(l,o,void 0,!0),k=y.shapeSvg,E=y.bbox,L=E.width+o.padding+(E.height+o.padding),N=[{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 D=za(k,L,L,N);return D.attr("style",o.style),ai(o,D),o.intersect=function(P){return _.warn("Intersect called"),to(o,N,P)},k},rect:function(l,o){var y=Di(l,o,"node "+o.classes,!0),k=y.shapeSvg,E=y.bbox,L=y.halfPadding;_.trace("Classes = ",o.classes);var N=k.insert("rect",":first-child"),D=E.width+o.padding,P=E.height+o.padding;if(N.attr("class","basic label-container").attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("x",-E.width/2-L).attr("y",-E.height/2-L).attr("width",D).attr("height",P),o.props){var U=new Set(Object.keys(o.props));o.props.borders&&(al(N,o.props.borders,D,P),U.delete("borders")),U.forEach(function(K){_.warn("Unknown node property ".concat(K))})}return ai(o,N),o.intersect=function(K){return jo(o,K)},k},labelRect:function(l,o){var y=Di(l,o,"label",!0),k=y.shapeSvg;_.trace("Classes = ",o.classes);var E=k.insert("rect",":first-child");if(E.attr("width",0).attr("height",0),k.attr("class","label edgeLabel"),o.props){var L=new Set(Object.keys(o.props));o.props.borders&&(al(E,o.props.borders,0,0),L.delete("borders")),L.forEach(function(N){_.warn("Unknown node property ".concat(N))})}return ai(o,E),o.intersect=function(N){return jo(o,N)},k},rectWithTitle:function(l,o){var y;y=o.classes?"node "+o.classes:"node default";var k,E=l.insert("g").attr("class",y).attr("id",o.domId||o.id),L=E.insert("rect",":first-child"),N=E.insert("line"),D=E.insert("g").attr("class","label"),P=o.labelText.flat?o.labelText.flat():o.labelText;k=Ss(P)==="object"?P[0]:P,_.info("Label text abc79",k,P,Ss(P)==="object");var U=D.node().appendChild(ta(k,o.labelStyle,!0,!0)),K={width:0,height:0};if(sr(Bt().flowchart.htmlLabels)){var tt=U.children[0],st=(0,T.select)(U);K=tt.getBoundingClientRect(),st.attr("width",K.width),st.attr("height",K.height)}_.info("Text 2",P);var ot=P.slice(1,P.length),Lt=U.getBBox(),Dt=D.node().appendChild(ta(ot.join?ot.join("<br/>"):ot,o.labelStyle,!0,!0));if(sr(Bt().flowchart.htmlLabels)){var zt=Dt.children[0],Ft=(0,T.select)(Dt);K=zt.getBoundingClientRect(),Ft.attr("width",K.width),Ft.attr("height",K.height)}var Pt=o.padding/2;return(0,T.select)(Dt).attr("transform","translate( "+(K.width>Lt.width?0:(Lt.width-K.width)/2)+", "+(Lt.height+Pt+5)+")"),(0,T.select)(U).attr("transform","translate( "+(K.width<Lt.width?0:-(Lt.width-K.width)/2)+", 0)"),K=D.node().getBBox(),D.attr("transform","translate("+-K.width/2+", "+(-K.height/2-Pt+3)+")"),L.attr("class","outer title-state").attr("x",-K.width/2-Pt).attr("y",-K.height/2-Pt).attr("width",K.width+o.padding).attr("height",K.height+o.padding),N.attr("class","divider").attr("x1",-K.width/2-Pt).attr("x2",K.width/2+Pt).attr("y1",-K.height/2-Pt+Lt.height+Pt).attr("y2",-K.height/2-Pt+Lt.height+Pt),ai(o,L),o.intersect=function(Yt){return jo(o,Yt)},E},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(k){return k.x+","+k.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),o.width=28,o.height=28,o.intersect=function(k){return Ts(o,14,k)},y},circle:function(l,o){var y=Di(l,o,void 0,!0),k=y.shapeSvg,E=y.bbox,L=y.halfPadding,N=k.insert("circle",":first-child");return N.attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("r",E.width/2+L).attr("width",E.width+o.padding).attr("height",E.height+o.padding),_.info("Circle main"),ai(o,N),o.intersect=function(D){return _.info("Circle intersect",o,E.width/2+L,D),Ts(o,E.width/2+L,D)},k},doublecircle:function(l,o){var y=Di(l,o,void 0,!0),k=y.shapeSvg,E=y.bbox,L=y.halfPadding,N=k.insert("g",":first-child"),D=N.insert("circle"),P=N.insert("circle");return D.attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("r",E.width/2+L+5).attr("width",E.width+o.padding+10).attr("height",E.height+o.padding+10),P.attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("r",E.width/2+L).attr("width",E.width+o.padding).attr("height",E.height+o.padding),_.info("DoubleCircle main"),ai(o,D),o.intersect=function(U){return _.info("DoubleCircle intersect",o,E.width/2+L+5,U),Ts(o,E.width/2+L+5,U)},k},stadium:function(l,o){var y=Di(l,o,void 0,!0),k=y.shapeSvg,E=y.bbox,L=E.height+o.padding,N=E.width+L/4+o.padding,D=k.insert("rect",":first-child").attr("style",o.style).attr("rx",L/2).attr("ry",L/2).attr("x",-N/2).attr("y",-L/2).attr("width",N).attr("height",L);return ai(o,D),o.intersect=function(P){return jo(o,P)},k},hexagon:function(l,o){var y=Di(l,o,void 0,!0),k=y.shapeSvg,E=y.bbox,L=E.height+o.padding,N=L/4,D=E.width+2*N+o.padding,P=[{x:N,y:0},{x:D-N,y:0},{x:D,y:-L/2},{x:D-N,y:-L},{x:N,y:-L},{x:0,y:-L/2}],U=za(k,D,L,P);return U.attr("style",o.style),ai(o,U),o.intersect=function(K){return to(o,P,K)},k},rect_left_inv_arrow:function(l,o){var y=Di(l,o,void 0,!0),k=y.shapeSvg,E=y.bbox,L=E.width+o.padding,N=E.height+o.padding,D=[{x:-N/2,y:0},{x:L,y:0},{x:L,y:-N},{x:-N/2,y:-N},{x:0,y:-N/2}];return za(k,L,N,D).attr("style",o.style),o.width=L+N,o.height=N,o.intersect=function(P){return to(o,D,P)},k},lean_right:function(l,o){var y=Di(l,o,void 0,!0),k=y.shapeSvg,E=y.bbox,L=E.width+o.padding,N=E.height+o.padding,D=[{x:-2*N/6,y:0},{x:L-N/6,y:0},{x:L+2*N/6,y:-N},{x:N/6,y:-N}],P=za(k,L,N,D);return P.attr("style",o.style),ai(o,P),o.intersect=function(U){return to(o,D,U)},k},lean_left:function(l,o){var y=Di(l,o,void 0,!0),k=y.shapeSvg,E=y.bbox,L=E.width+o.padding,N=E.height+o.padding,D=[{x:2*N/6,y:0},{x:L+N/6,y:0},{x:L-2*N/6,y:-N},{x:-N/6,y:-N}],P=za(k,L,N,D);return P.attr("style",o.style),ai(o,P),o.intersect=function(U){return to(o,D,U)},k},trapezoid:function(l,o){var y=Di(l,o,void 0,!0),k=y.shapeSvg,E=y.bbox,L=E.width+o.padding,N=E.height+o.padding,D=[{x:-2*N/6,y:0},{x:L+2*N/6,y:0},{x:L-N/6,y:-N},{x:N/6,y:-N}],P=za(k,L,N,D);return P.attr("style",o.style),ai(o,P),o.intersect=function(U){return to(o,D,U)},k},inv_trapezoid:function(l,o){var y=Di(l,o,void 0,!0),k=y.shapeSvg,E=y.bbox,L=E.width+o.padding,N=E.height+o.padding,D=[{x:N/6,y:0},{x:L-N/6,y:0},{x:L+2*N/6,y:-N},{x:-2*N/6,y:-N}],P=za(k,L,N,D);return P.attr("style",o.style),ai(o,P),o.intersect=function(U){return to(o,D,U)},k},rect_right_inv_arrow:function(l,o){var y=Di(l,o,void 0,!0),k=y.shapeSvg,E=y.bbox,L=E.width+o.padding,N=E.height+o.padding,D=[{x:0,y:0},{x:L+N/2,y:0},{x:L,y:-N/2},{x:L+N/2,y:-N},{x:0,y:-N}],P=za(k,L,N,D);return P.attr("style",o.style),ai(o,P),o.intersect=function(U){return to(o,D,U)},k},cylinder:function(l,o){var y=Di(l,o,void 0,!0),k=y.shapeSvg,E=y.bbox,L=E.width+o.padding,N=L/2,D=N/(2.5+L/50),P=E.height+D+o.padding,U="M 0,"+D+" a "+N+","+D+" 0,0,0 "+L+" 0 a "+N+","+D+" 0,0,0 "+-L+" 0 l 0,"+P+" a "+N+","+D+" 0,0,0 "+L+" 0 l 0,"+-P,K=k.attr("label-offset-y",D).insert("path",":first-child").attr("style",o.style).attr("d",U).attr("transform","translate("+-L/2+","+-(P/2+D)+")");return ai(o,K),o.intersect=function(tt){var st=jo(o,tt),ot=st.x-o.x;if(N!=0&&(Math.abs(ot)<o.width/2||Math.abs(ot)==o.width/2&&Math.abs(st.y-o.y)>o.height/2-D)){var Lt=D*D*(1-ot*ot/(N*N));Lt!=0&&(Lt=Math.sqrt(Lt)),Lt=D-Lt,tt.y-o.y>0&&(Lt=-Lt),st.y+=Lt}return st},k},start:function(l,o){var y=l.insert("g").attr("class","node default").attr("id",o.domId||o.id),k=y.insert("circle",":first-child");return k.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),ai(o,k),o.intersect=function(E){return Ts(o,7,E)},y},end:function(l,o){var y=l.insert("g").attr("class","node default").attr("id",o.domId||o.id),k=y.insert("circle",":first-child"),E=y.insert("circle",":first-child");return E.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),k.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),ai(o,E),o.intersect=function(L){return Ts(o,7,L)},y},note:function(l,o){var y=Di(l,o,"node "+o.classes,!0),k=y.shapeSvg,E=y.bbox,L=y.halfPadding;_.info("Classes = ",o.classes);var N=k.insert("rect",":first-child");return N.attr("rx",o.rx).attr("ry",o.ry).attr("x",-E.width/2-L).attr("y",-E.height/2-L).attr("width",E.width+o.padding).attr("height",E.height+o.padding),ai(o,N),o.intersect=function(D){return jo(o,D)},k},subroutine:function(l,o){var y=Di(l,o,void 0,!0),k=y.shapeSvg,E=y.bbox,L=E.width+o.padding,N=E.height+o.padding,D=[{x:0,y:0},{x:L,y:0},{x:L,y:-N},{x:0,y:-N},{x:0,y:0},{x:-8,y:0},{x:L+8,y:0},{x:L+8,y:-N},{x:-8,y:-N},{x:-8,y:0}],P=za(k,L,N,D);return P.attr("style",o.style),ai(o,P),o.intersect=function(U){return to(o,D,U)},k},fork:i1,join:i1,class_box:function(l,o){var y,k=o.padding/2;y=o.classes?"node "+o.classes:"node default";var E=l.insert("g").attr("class",y).attr("id",o.domId||o.id),L=E.insert("rect",":first-child"),N=E.insert("line"),D=E.insert("line"),P=0,U=4,K=E.insert("g").attr("class","label"),tt=0,st=o.classData.annotations&&o.classData.annotations[0],ot=o.classData.annotations[0]?"\xAB"+o.classData.annotations[0]+"\xBB":"",Lt=K.node().appendChild(ta(ot,o.labelStyle,!0,!0)),Dt=Lt.getBBox();if(sr(Bt().flowchart.htmlLabels)){var zt=Lt.children[0],Ft=(0,T.select)(Lt);Dt=zt.getBoundingClientRect(),Ft.attr("width",Dt.width),Ft.attr("height",Dt.height)}o.classData.annotations[0]&&(U+=Dt.height+4,P+=Dt.width);var Pt=o.classData.id;o.classData.type!==void 0&&o.classData.type!==""&&(Bt().flowchart.htmlLabels?Pt+="<"+o.classData.type+">":Pt+="<"+o.classData.type+">");var Yt=K.node().appendChild(ta(Pt,o.labelStyle,!0,!0));(0,T.select)(Yt).attr("class","classTitle");var It=Yt.getBBox();if(sr(Bt().flowchart.htmlLabels)){var ae=Yt.children[0],Se=(0,T.select)(Yt);It=ae.getBoundingClientRect(),Se.attr("width",It.width),Se.attr("height",It.height)}U+=It.height+4,It.width>P&&(P=It.width);var pe=[];o.classData.members.forEach(function(Xt){var ce=tl(Xt),de=ce.displayText;Bt().flowchart.htmlLabels&&(de=de.replace(/</g,"<").replace(/>/g,">"));var ue=K.node().appendChild(ta(de,ce.cssStyle?ce.cssStyle:o.labelStyle,!0,!0)),Re=ue.getBBox();if(sr(Bt().flowchart.htmlLabels)){var Le=ue.children[0],$e=(0,T.select)(ue);Re=Le.getBoundingClientRect(),$e.attr("width",Re.width),$e.attr("height",Re.height)}Re.width>P&&(P=Re.width),U+=Re.height+4,pe.push(ue)}),U+=8;var Ee=[];if(o.classData.methods.forEach(function(Xt){var ce=tl(Xt),de=ce.displayText;Bt().flowchart.htmlLabels&&(de=de.replace(/</g,"<").replace(/>/g,">"));var ue=K.node().appendChild(ta(de,ce.cssStyle?ce.cssStyle:o.labelStyle,!0,!0)),Re=ue.getBBox();if(sr(Bt().flowchart.htmlLabels)){var Le=ue.children[0],$e=(0,T.select)(ue);Re=Le.getBoundingClientRect(),$e.attr("width",Re.width),$e.attr("height",Re.height)}Re.width>P&&(P=Re.width),U+=Re.height+4,Ee.push(ue)}),U+=8,st){var $t=(P-Dt.width)/2;(0,T.select)(Lt).attr("transform","translate( "+(-1*P/2+$t)+", "+-1*U/2+")"),tt=Dt.height+4}var fe=(P-It.width)/2;return(0,T.select)(Yt).attr("transform","translate( "+(-1*P/2+fe)+", "+(-1*U/2+tt)+")"),tt+=It.height+4,N.attr("class","divider").attr("x1",-P/2-k).attr("x2",P/2+k).attr("y1",-U/2-k+8+tt).attr("y2",-U/2-k+8+tt),tt+=8,pe.forEach(function(Xt){(0,T.select)(Xt).attr("transform","translate( "+-P/2+", "+(-1*U/2+tt+4)+")"),tt+=It.height+4}),tt+=8,D.attr("class","divider").attr("x1",-P/2-k).attr("x2",P/2+k).attr("y1",-U/2-k+8+tt).attr("y2",-U/2-k+8+tt),tt+=8,Ee.forEach(function(Xt){(0,T.select)(Xt).attr("transform","translate( "+-P/2+", "+(-1*U/2+tt)+")"),tt+=It.height+4}),L.attr("class","outer title-state").attr("x",-P/2-k).attr("y",-U/2-k).attr("width",P+o.padding).attr("height",U+o.padding),ai(o,L),o.intersect=function(Xt){return jo(o,Xt)},E}},bo={},ol=function(l){var o=bo[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},eo={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),k=y.insert("rect",":first-child"),E=y.insert("g").attr("class","cluster-label"),L=E.node().appendChild(ta(o.labelText,o.labelStyle,void 0,!0)),N=L.getBBox();if(sr(Bt().flowchart.htmlLabels)){var D=L.children[0],P=(0,T.select)(L);N=D.getBoundingClientRect(),P.attr("width",N.width),P.attr("height",N.height)}var U=0*o.padding,K=U/2,tt=o.width<=N.width+U?N.width+U:o.width;o.width<=N.width+U?o.diff=(N.width-o.width)/2-o.padding/2:o.diff=-o.padding/2,_.trace("Data ",o,JSON.stringify(o)),k.attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("x",o.x-tt/2).attr("y",o.y-o.height/2-K).attr("width",tt).attr("height",o.height+U),E.attr("transform","translate("+(o.x-N.width/2)+", "+(o.y-o.height/2+o.padding/3)+")");var st=k.node().getBBox();return o.width=st.width,o.height=st.height,o.intersect=function(ot){return Yo(o,ot)},y},roundedWithTitle:function(l,o){var y=l.insert("g").attr("class",o.classes).attr("id",o.id),k=y.insert("rect",":first-child"),E=y.insert("g").attr("class","cluster-label"),L=y.append("rect"),N=E.node().appendChild(ta(o.labelText,o.labelStyle,void 0,!0)),D=N.getBBox();if(sr(Bt().flowchart.htmlLabels)){var P=N.children[0],U=(0,T.select)(N);D=P.getBoundingClientRect(),U.attr("width",D.width),U.attr("height",D.height)}D=N.getBBox();var K=0*o.padding,tt=K/2,st=o.width<=D.width+o.padding?D.width+o.padding:o.width;o.width<=D.width+o.padding?o.diff=(D.width+0*o.padding-o.width)/2:o.diff=-o.padding/2,k.attr("class","outer").attr("x",o.x-st/2-tt).attr("y",o.y-o.height/2-tt).attr("width",st+K).attr("height",o.height+K),L.attr("class","inner").attr("x",o.x-st/2-tt).attr("y",o.y-o.height/2-tt+D.height-1).attr("width",st+K).attr("height",o.height+K-D.height-3),E.attr("transform","translate("+(o.x-D.width/2)+", "+(o.y-o.height/2-o.padding/3+(sr(Bt().flowchart.htmlLabels)?5:3))+")");var ot=k.node().getBBox();return o.height=ot.height,o.intersect=function(Lt){return Yo(o,Lt)},y},noteGroup:function(l,o){var y=l.insert("g").attr("class","note-cluster").attr("id",o.id),k=y.insert("rect",":first-child"),E=0*o.padding,L=E/2;k.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+E).attr("height",o.height+E).attr("fill","none");var N=k.node().getBBox();return o.width=N.width,o.height=N.height,o.intersect=function(D){return Yo(o,D)},y},divider:function(l,o){var y=l.insert("g").attr("class",o.classes).attr("id",o.id),k=y.insert("rect",":first-child"),E=0*o.padding,L=E/2;k.attr("class","divider").attr("x",o.x-o.width/2-L).attr("y",o.y-o.height/2).attr("width",o.width+E).attr("height",o.height+E);var N=k.node().getBBox();return o.width=N.width,o.height=N.height,o.diff=-o.padding/2,o.intersect=function(D){return Yo(o,D)},y}},La={},ro={},_i={},o1=function(l,o){var y=ta(o.label,o.labelStyle),k=l.insert("g").attr("class","edgeLabel"),E=k.insert("g").attr("class","label");E.node().appendChild(y);var L,N=y.getBBox();if(sr(Bt().flowchart.htmlLabels)){var D=y.children[0],P=(0,T.select)(y);N=D.getBoundingClientRect(),P.attr("width",N.width),P.attr("height",N.height)}if(E.attr("transform","translate("+-N.width/2+", "+-N.height/2+")"),ro[o.id]=k,o.width=N.width,o.height=N.height,o.startLabelLeft){var U=ta(o.startLabelLeft,o.labelStyle),K=l.insert("g").attr("class","edgeTerminals"),tt=K.insert("g").attr("class","inner");L=tt.node().appendChild(U);var st=U.getBBox();tt.attr("transform","translate("+-st.width/2+", "+-st.height/2+")"),_i[o.id]||(_i[o.id]={}),_i[o.id].startLeft=K,As(L,o.startLabelLeft)}if(o.startLabelRight){var ot=ta(o.startLabelRight,o.labelStyle),Lt=l.insert("g").attr("class","edgeTerminals"),Dt=Lt.insert("g").attr("class","inner");L=Lt.node().appendChild(ot),Dt.node().appendChild(ot);var zt=ot.getBBox();Dt.attr("transform","translate("+-zt.width/2+", "+-zt.height/2+")"),_i[o.id]||(_i[o.id]={}),_i[o.id].startRight=Lt,As(L,o.startLabelRight)}if(o.endLabelLeft){var Ft=ta(o.endLabelLeft,o.labelStyle),Pt=l.insert("g").attr("class","edgeTerminals"),Yt=Pt.insert("g").attr("class","inner");L=Yt.node().appendChild(Ft);var It=Ft.getBBox();Yt.attr("transform","translate("+-It.width/2+", "+-It.height/2+")"),Pt.node().appendChild(Ft),_i[o.id]||(_i[o.id]={}),_i[o.id].endLeft=Pt,As(L,o.endLabelLeft)}if(o.endLabelRight){var ae=ta(o.endLabelRight,o.labelStyle),Se=l.insert("g").attr("class","edgeTerminals"),pe=Se.insert("g").attr("class","inner");L=pe.node().appendChild(ae);var Ee=ae.getBBox();pe.attr("transform","translate("+-Ee.width/2+", "+-Ee.height/2+")"),Se.node().appendChild(ae),_i[o.id]||(_i[o.id]={}),_i[o.id].endRight=Se,As(L,o.endLabelRight)}};function As(l,o){Bt().flowchart.htmlLabels&&l&&(l.style.width=9*o.length+"px",l.style.height="12px")}var s1=function(l,o){_.info("Moving label abc78 ",l.id,l.label,ro[l.id]);var y=o.updatedPath?o.updatedPath:o.originalPath;if(l.label){var k=ro[l.id],E=l.x,L=l.y;if(y){var N=Vr.calcLabelPosition(y);_.info("Moving label from (",E,",",L,") to (",N.x,",",N.y,") abc78")}k.attr("transform","translate("+E+", "+L+")")}if(l.startLabelLeft){var D=_i[l.id].startLeft,P=l.x,U=l.y;if(y){var K=Vr.calcTerminalLabelPosition(l.arrowTypeStart?10:0,"start_left",y);P=K.x,U=K.y}D.attr("transform","translate("+P+", "+U+")")}if(l.startLabelRight){var tt=_i[l.id].startRight,st=l.x,ot=l.y;if(y){var Lt=Vr.calcTerminalLabelPosition(l.arrowTypeStart?10:0,"start_right",y);st=Lt.x,ot=Lt.y}tt.attr("transform","translate("+st+", "+ot+")")}if(l.endLabelLeft){var Dt=_i[l.id].endLeft,zt=l.x,Ft=l.y;if(y){var Pt=Vr.calcTerminalLabelPosition(l.arrowTypeEnd?10:0,"end_left",y);zt=Pt.x,Ft=Pt.y}Dt.attr("transform","translate("+zt+", "+Ft+")")}if(l.endLabelRight){var Yt=_i[l.id].endRight,It=l.x,ae=l.y;if(y){var Se=Vr.calcTerminalLabelPosition(l.arrowTypeEnd?10:0,"end_right",y);It=Se.x,ae=Se.y}Yt.attr("transform","translate("+It+", "+ae+")")}},hu=function(l,o){_.warn("abc88 cutPathAtIntersect",l,o);var y=[],k=l[0],E=!1;return l.forEach(function(L){if(_.info("abc88 checking point",L,o),function(P,U){var K=P.x,tt=P.y,st=Math.abs(U.x-K),ot=Math.abs(U.y-tt),Lt=P.width/2,Dt=P.height/2;return st>=Lt||ot>=Dt}(o,L)||E)_.warn("abc88 outside",L,k),k=L,E||y.push(L);else{var N=function(P,U,K){_.warn(`intersection calc abc89:
|
|
outsidePoint: `.concat(JSON.stringify(U),`
|
|
insidePoint : `).concat(JSON.stringify(K),`
|
|
node : x:`).concat(P.x," y:").concat(P.y," w:").concat(P.width," h:").concat(P.height));var tt=P.x,st=P.y,ot=Math.abs(tt-K.x),Lt=P.width/2,Dt=K.x<U.x?Lt-ot:Lt+ot,zt=P.height/2,Ft=Math.abs(U.y-K.y),Pt=Math.abs(U.x-K.x);if(Math.abs(st-U.y)*Lt>Math.abs(tt-U.x)*zt){var Yt=K.y<U.y?U.y-zt-st:st-zt-U.y;Dt=Pt*Yt/Ft;var It={x:K.x<U.x?K.x+Dt:K.x-Pt+Dt,y:K.y<U.y?K.y+Ft-Yt:K.y-Ft+Yt};return Dt===0&&(It.x=U.x,It.y=U.y),Pt===0&&(It.x=U.x),Ft===0&&(It.y=U.y),_.warn("abc89 topp/bott calc, Q ".concat(Ft,", q ").concat(Yt,", R ").concat(Pt,", r ").concat(Dt),It),It}var ae=Ft*(Dt=K.x<U.x?U.x-Lt-tt:tt-Lt-U.x)/Pt,Se=K.x<U.x?K.x+Pt-Dt:K.x-Pt+Dt,pe=K.y<U.y?K.y+ae:K.y-ae;return _.warn("sides calc abc89, Q ".concat(Ft,", q ").concat(ae,", R ").concat(Pt,", r ").concat(Dt),{_x:Se,_y:pe}),Dt===0&&(Se=U.x,pe=U.y),Pt===0&&(Se=U.x),Ft===0&&(pe=U.y),{x:Se,y:pe}}(o,k,L);_.warn("abc88 inside",L,k,N),_.warn("abc88 intersection",N);var D=!1;y.forEach(function(P){D=D||P.x===N.x&&P.y===N.y}),y.find(function(P){return P.x===N.x&&P.y===N.y})?_.warn("abc88 no intersect",N,y):y.push(N),E=!0}}),_.warn("abc88 returning points",y),y},c1=function l(o,y,k,E){_.info("Graph in recursive render: XXX",mi().json.write(y),E);var L=y.graph().rankdir;_.trace("Dir in recursive render - dir:",L);var N=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 D=N.insert("g").attr("class","clusters"),P=N.insert("g").attr("class","edgePaths"),U=N.insert("g").attr("class","edgeLabels"),K=N.insert("g").attr("class","nodes");y.nodes().forEach(function(st){var ot=y.node(st);if(E!==void 0){var Lt=JSON.parse(JSON.stringify(E.clusterData));_.info("Setting data for cluster XXX (",st,") ",Lt,E),y.setNode(E.id,Lt),y.parent(st)||(_.trace("Setting parent",st,E.id),y.setParent(st,E.id,Lt))}if(_.info("(Insert) Node XXX"+st+": "+JSON.stringify(y.node(st))),ot&&ot.clusterNode){_.info("Cluster identified",st,ot.width,y.node(st));var Dt=l(K,ot.graph,k,y.node(st)),zt=Dt.elem;ai(ot,zt),ot.diff=Dt.diff||0,_.info("Node bounds (abc123)",st,ot,ot.width,ot.x,ot.y),function(Ft,Pt){bo[Pt.id]=Ft}(zt,ot),_.warn("Recursive render complete ",zt,ot)}else y.children(st).length>0?(_.info("Cluster - the non recursive path XXX",st,ot.id,ot,y),_.info(Uo(ot.id,y)),en[ot.id]={id:Uo(ot.id,y),node:ot}):(_.info("Node - the non recursive path",st,ot.id,ot),function(Ft,Pt,Yt){var It,ae,Se;Pt.link?(Bt().securityLevel==="sandbox"?Se="_top":Pt.linkTarget&&(Se=Pt.linkTarget||"_blank"),It=Ft.insert("svg:a").attr("xlink:href",Pt.link).attr("target",Se),ae=a1[Pt.shape](It,Pt,Yt)):It=ae=a1[Pt.shape](Ft,Pt,Yt),Pt.tooltip&&ae.attr("title",Pt.tooltip),Pt.class&&ae.attr("class","node default "+Pt.class),bo[Pt.id]=It,Pt.haveCallback&&bo[Pt.id].attr("class",bo[Pt.id].attr("class")+" clickable")}(K,y.node(st),L))}),y.edges().forEach(function(st){var ot=y.edge(st.v,st.w,st.name);_.info("Edge "+st.v+" -> "+st.w+": "+JSON.stringify(st)),_.info("Edge "+st.v+" -> "+st.w+": ",st," ",JSON.stringify(y.edge(st))),_.info("Fix",en,"ids:",st.v,st.w,"Translateing: ",en[st.v],en[st.w]),o1(U,ot)}),y.edges().forEach(function(st){_.info("Edge "+st.v+" -> "+st.w+": "+JSON.stringify(st))}),_.info("#############################################"),_.info("### Layout ###"),_.info("#############################################"),_.info(y),ks().layout(y),_.info("Graph after layout:",mi().json.write(y));var tt=0;return xc(y).forEach(function(st){var ot=y.node(st);_.info("Position "+st+": "+JSON.stringify(y.node(st))),_.info("Position "+st+": ("+ot.x,","+ot.y,") width: ",ot.width," height: ",ot.height),ot&&ot.clusterNode?ol(ot):y.children(st).length>0?(function(Lt,Dt){_.trace("Inserting cluster");var zt=Dt.shape||"rect";La[Dt.id]=eo[zt](Lt,Dt)}(D,ot),en[ot.id].node=ot):ol(ot)}),y.edges().forEach(function(st){var ot=y.edge(st);_.info("Edge "+st.v+" -> "+st.w+": "+JSON.stringify(ot),ot);var Lt=function(Dt,zt,Ft,Pt,Yt,It){var ae=Ft.points,Se=!1,pe=It.node(zt.v),Ee=It.node(zt.w);_.info("abc88 InsertEdge: ",Ft),Ee.intersect&&pe.intersect&&((ae=ae.slice(1,Ft.points.length-1)).unshift(pe.intersect(ae[0])),_.info("Last point",ae[ae.length-1],Ee,Ee.intersect(ae[ae.length-1])),ae.push(Ee.intersect(ae[ae.length-1]))),Ft.toCluster&&(_.info("to cluster abc88",Pt[Ft.toCluster]),ae=hu(Ft.points,Pt[Ft.toCluster].node),Se=!0),Ft.fromCluster&&(_.info("from cluster abc88",Pt[Ft.fromCluster]),ae=hu(ae.reverse(),Pt[Ft.fromCluster].node).reverse(),Se=!0);var $t,fe=ae.filter(function(Le){return!Number.isNaN(Le.y)});$t=(Yt==="graph"||Yt==="flowchart")&&Ft.curve||T.curveBasis;var Xt,ce=(0,T.line)().x(function(Le){return Le.x}).y(function(Le){return Le.y}).curve($t);switch(Ft.thickness){case"normal":Xt="edge-thickness-normal";break;case"thick":Xt="edge-thickness-thick";break;default:Xt=""}switch(Ft.pattern){case"solid":Xt+=" edge-pattern-solid";break;case"dotted":Xt+=" edge-pattern-dotted";break;case"dashed":Xt+=" edge-pattern-dashed"}var de=Dt.append("path").attr("d",ce(fe)).attr("id",Ft.id).attr("class"," "+Xt+(Ft.classes?" "+Ft.classes:"")).attr("style",Ft.style),ue="";switch(Bt().state.arrowMarkerAbsolute&&(ue=(ue=(ue=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),_.info("arrowTypeStart",Ft.arrowTypeStart),_.info("arrowTypeEnd",Ft.arrowTypeEnd),Ft.arrowTypeStart){case"arrow_cross":de.attr("marker-start","url("+ue+"#"+Yt+"-crossStart)");break;case"arrow_point":de.attr("marker-start","url("+ue+"#"+Yt+"-pointStart)");break;case"arrow_barb":de.attr("marker-start","url("+ue+"#"+Yt+"-barbStart)");break;case"arrow_circle":de.attr("marker-start","url("+ue+"#"+Yt+"-circleStart)");break;case"aggregation":de.attr("marker-start","url("+ue+"#"+Yt+"-aggregationStart)");break;case"extension":de.attr("marker-start","url("+ue+"#"+Yt+"-extensionStart)");break;case"composition":de.attr("marker-start","url("+ue+"#"+Yt+"-compositionStart)");break;case"dependency":de.attr("marker-start","url("+ue+"#"+Yt+"-dependencyStart)");break;case"lollipop":de.attr("marker-start","url("+ue+"#"+Yt+"-lollipopStart)")}switch(Ft.arrowTypeEnd){case"arrow_cross":de.attr("marker-end","url("+ue+"#"+Yt+"-crossEnd)");break;case"arrow_point":de.attr("marker-end","url("+ue+"#"+Yt+"-pointEnd)");break;case"arrow_barb":de.attr("marker-end","url("+ue+"#"+Yt+"-barbEnd)");break;case"arrow_circle":de.attr("marker-end","url("+ue+"#"+Yt+"-circleEnd)");break;case"aggregation":de.attr("marker-end","url("+ue+"#"+Yt+"-aggregationEnd)");break;case"extension":de.attr("marker-end","url("+ue+"#"+Yt+"-extensionEnd)");break;case"composition":de.attr("marker-end","url("+ue+"#"+Yt+"-compositionEnd)");break;case"dependency":de.attr("marker-end","url("+ue+"#"+Yt+"-dependencyEnd)");break;case"lollipop":de.attr("marker-end","url("+ue+"#"+Yt+"-lollipopEnd)")}var Re={};return Se&&(Re.updatedPath=ae),Re.originalPath=Ft.points,Re}(P,st,ot,en,k,y);s1(ot,Lt)}),y.nodes().forEach(function(st){var ot=y.node(st);_.info(st,ot.type,ot.diff),ot.type==="group"&&(tt=ot.diff)}),{elem:N,diff:tt}},sl=function(l,o,y,k,E){e1(l,y,k,E),bo={},ro={},_i={},La={},Na={},ha={},en={},_.warn("Graph at first:",mi().json.write(o)),nl(o),_.warn("Graph after:",mi().json.write(o)),c1(l,o,k)};function l1(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;case 4:o="lollipop";break;default:o="none"}return o}const sd={setConf:function(l){Object.keys(l).forEach(function(o){l[o]})},draw:function(l,o,y,k){_.info("Drawing class - ",o);var E=Bt().flowchart,L=Bt().securityLevel;_.info("config:",E);var N,D=E.nodeSpacing||50,P=E.rankSpacing||50,U=new(mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:k.db.getDirection(),nodesep:D,ranksep:P,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),K=k.db.getClasses(),tt=k.db.getRelations();_.info(tt),function(ae,Se,pe,Ee){var $t=Object.keys(ae);_.info("keys:",$t),_.info(ae),$t.forEach(function(fe){var Xt=ae[fe],ce="";Xt.cssClasses.length>0&&(ce=ce+" "+Xt.cssClasses.join(" "));var de,ue,Re={labelStyle:""},Le=Xt.text!==void 0?Xt.text:Xt.id;Xt.type,ue="class_box",Se.setNode(Xt.id,{labelStyle:Re.labelStyle,shape:ue,labelText:(de=Le,cr.sanitizeText(de,Bt())),classData:Xt,rx:0,ry:0,class:ce,style:Re.style,id:Xt.id,domId:Xt.domId,tooltip:Ee.db.getTooltip(Xt.id)||"",haveCallback:Xt.haveCallback,link:Xt.link,width:Xt.type==="group"?500:void 0,type:Xt.type,padding:Bt().flowchart.padding}),_.info("setNode",{labelStyle:Re.labelStyle,shape:ue,labelText:Le,rx:0,ry:0,class:ce,style:Re.style,id:Xt.id,width:Xt.type==="group"?500:void 0,type:Xt.type,padding:Bt().flowchart.padding})})}(K,U,0,k),function(ae,Se){var pe=Bt().flowchart,Ee=0;ae.forEach(function($t){Ee++;var fe={classes:"relation"};fe.pattern=$t.relation.lineType==1?"dashed":"solid",fe.id="id"+Ee,$t.type==="arrow_open"?fe.arrowhead="none":fe.arrowhead="normal",_.info(fe,$t),fe.startLabelRight=$t.relationTitle1==="none"?"":$t.relationTitle1,fe.endLabelLeft=$t.relationTitle2==="none"?"":$t.relationTitle2,fe.arrowTypeStart=l1($t.relation.type1),fe.arrowTypeEnd=l1($t.relation.type2);var Xt="",ce="";if($t.style!==void 0){var de=Ni($t.style);Xt=de.style,ce=de.labelStyle}else Xt="fill:none";fe.style=Xt,fe.labelStyle=ce,$t.interpolate!==void 0?fe.curve=ma($t.interpolate,T.curveLinear):ae.defaultInterpolate!==void 0?fe.curve=ma(ae.defaultInterpolate,T.curveLinear):fe.curve=ma(pe.curve,T.curveLinear),$t.text=$t.title,$t.text===void 0?$t.style!==void 0&&(fe.arrowheadStyle="fill: #333"):(fe.arrowheadStyle="fill: #333",fe.labelpos="c",Bt().flowchart.htmlLabels?(fe.labelType="html",fe.label='<span class="edgeLabel">'+$t.text+"</span>"):(fe.labelType="text",fe.label=$t.text.replace(cr.lineBreakRegex,`
|
|
`),$t.style===void 0&&(fe.style=fe.style||"stroke: #333; stroke-width: 1.5px;fill:none"),fe.labelStyle=fe.labelStyle.replace("color:","fill:"))),Se.setEdge($t.id1,$t.id2,fe,Ee)})}(tt,U),L==="sandbox"&&(N=(0,T.select)("#i"+o));var st=L==="sandbox"?(0,T.select)(N.nodes()[0].contentDocument.body):(0,T.select)("body"),ot=st.select('[id="'.concat(o,'"]')),Lt=st.select("#"+o+" g");if(sl(Lt,U,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",o),Fo(U,ot,E.diagramPadding,E.useMaxWidth),!E.htmlLabels)for(var Dt=L==="sandbox"?N.nodes()[0].contentDocument:document,zt=Dt.querySelectorAll('[id="'+o+'"] .edgeLabel .label'),Ft=0;Ft<zt.length;Ft++){var Pt=zt[Ft],Yt=Pt.getBBox(),It=Dt.createElementNS("http://www.w3.org/2000/svg","rect");It.setAttribute("rx",0),It.setAttribute("ry",0),It.setAttribute("width",Yt.width),It.setAttribute("height",Yt.height),Pt.insertBefore(It,Pt.firstChild)}Sn(k.db,ot,o)}};var du=h(1362),fu=h.n(du),Ec={},pu=[],u1=function(l){return Ec[l]===void 0&&(Ec[l]={attributes:[]},_.info("Added new entity :",l)),Ec[l]};const cd={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){Br.parseDirective(this,l,o,y)},getConfig:function(){return Bt().er},addEntity:u1,addAttributes:function(l,o){var y,k=u1(l);for(y=o.length-1;y>=0;y--)k.attributes.push(o[y]),_.debug("Added attribute ",o[y].attributeName)},getEntities:function(){return Ec},addRelationship:function(l,o,y,k){var E={entityA:l,roleA:o,entityB:y,relSpec:k};pu.push(E),_.debug("Added new relationship :",E)},getRelationships:function(){return pu},clear:function(){Ec={},pu=[],re()},setAccTitle:Tn,getAccTitle:Bn,setAccDescription:Xn,getAccDescription:fi};var vo={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 $o=vo;var Fn={},h1=function(l){return(l.entityA+l.roleA+l.entityB).replace(/\s/g,"")},d1=0;const ld={setConf:function(l){for(var o=Object.keys(l),y=0;y<o.length;y++)Fn[o[y]]=l[o[y]]},draw:function(l,o,y,k){Fn=Bt().er,_.info("Drawing ER diagram");var E,L=Bt().securityLevel;L==="sandbox"&&(E=(0,T.select)("#i"+o));var N,D=(L==="sandbox"?(0,T.select)(E.nodes()[0].contentDocument.body):(0,T.select)("body")).select("[id='".concat(o,"']"));(function(zt,Ft){var Pt;zt.append("defs").append("marker").attr("id",vo.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),zt.append("defs").append("marker").attr("id",vo.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(Pt=zt.append("defs").append("marker").attr("id",vo.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",Ft.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),Pt.append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(Pt=zt.append("defs").append("marker").attr("id",vo.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",Ft.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),Pt.append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M21,0 L21,18"),zt.append("defs").append("marker").attr("id",vo.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),zt.append("defs").append("marker").attr("id",vo.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(Pt=zt.append("defs").append("marker").attr("id",vo.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",Ft.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),Pt.append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(Pt=zt.append("defs").append("marker").attr("id",vo.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",Ft.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),Pt.append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(D,Fn),N=new(mi()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Fn.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var P,U,K=function(zt,Ft,Pt){var Yt;return Object.keys(Ft).forEach(function(It){var ae=zt.append("g").attr("id",It);Yt=Yt===void 0?It:Yt;var Se="entity-"+It,pe=ae.append("text").attr("class","er entityLabel").attr("id",Se).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Bt().fontFamily+"; font-size: "+Fn.fontSize+"px").text(It),Ee=function(ce,de,ue){var Re=Fn.entityPadding/3,Le=Fn.entityPadding/3,$e=.85*Fn.fontSize,kr=de.node().getBBox(),Ye=[],ir=!1,br=!1,We=0,Ve=0,xr=0,bn=0,yn=kr.height+2*Re,$n=1;ue.forEach(function(Hn){Hn.attributeKeyType!==void 0&&(ir=!0),Hn.attributeComment!==void 0&&(br=!0)}),ue.forEach(function(Hn){var Oa="".concat(de.node().id,"-attr-").concat($n),xa=0,ys=Qr(Hn.attributeType),Vo=ce.append("text").attr("class","er entityLabel").attr("id","".concat(Oa,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Bt().fontFamily+"; font-size: "+$e+"px").text(ys),Xa=ce.append("text").attr("class","er entityLabel").attr("id","".concat(Oa,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Bt().fontFamily+"; font-size: "+$e+"px").text(Hn.attributeName),Ra={};Ra.tn=Vo,Ra.nn=Xa;var Hl=Vo.node().getBBox(),ql=Xa.node().getBBox();if(We=Math.max(We,Hl.width),Ve=Math.max(Ve,ql.width),xa=Math.max(Hl.height,ql.height),ir){var Wl=ce.append("text").attr("class","er entityLabel").attr("id","".concat(Oa,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Bt().fontFamily+"; font-size: "+$e+"px").text(Hn.attributeKeyType||"");Ra.kn=Wl;var _h=Wl.node().getBBox();xr=Math.max(xr,_h.width),xa=Math.max(xa,_h.height)}if(br){var bh=ce.append("text").attr("class","er entityLabel").attr("id","".concat(Oa,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Bt().fontFamily+"; font-size: "+$e+"px").text(Hn.attributeComment||"");Ra.cn=bh;var Xi=bh.node().getBBox();bn=Math.max(bn,Xi.width),xa=Math.max(xa,Xi.height)}Ra.height=xa,Ye.push(Ra),yn+=xa+2*Re,$n+=1});var mn=4;ir&&(mn+=2),br&&(mn+=2);var xi=We+Ve+xr+bn,pn={width:Math.max(Fn.minEntityWidth,Math.max(kr.width+2*Fn.entityPadding,xi+Le*mn)),height:ue.length>0?yn:Math.max(Fn.minEntityHeight,kr.height+2*Fn.entityPadding)};if(ue.length>0){var Da=Math.max(0,(pn.width-xi-Le*mn)/(mn/2));de.attr("transform","translate("+pn.width/2+","+(Re+kr.height/2)+")");var fa=kr.height+2*Re,li="attributeBoxOdd";Ye.forEach(function(Hn){var Oa=fa+Re+Hn.height/2;Hn.tn.attr("transform","translate("+Le+","+Oa+")");var xa=ce.insert("rect","#"+Hn.tn.node().id).attr("class","er ".concat(li)).attr("fill",Fn.fill).attr("fill-opacity","100%").attr("stroke",Fn.stroke).attr("x",0).attr("y",fa).attr("width",We+2*Le+Da).attr("height",Hn.height+2*Re),ys=parseFloat(xa.attr("x"))+parseFloat(xa.attr("width"));Hn.nn.attr("transform","translate("+(ys+Le)+","+Oa+")");var Vo=ce.insert("rect","#"+Hn.nn.node().id).attr("class","er ".concat(li)).attr("fill",Fn.fill).attr("fill-opacity","100%").attr("stroke",Fn.stroke).attr("x",ys).attr("y",fa).attr("width",Ve+2*Le+Da).attr("height",Hn.height+2*Re),Xa=parseFloat(Vo.attr("x"))+parseFloat(Vo.attr("width"));if(ir){Hn.kn.attr("transform","translate("+(Xa+Le)+","+Oa+")");var Ra=ce.insert("rect","#"+Hn.kn.node().id).attr("class","er ".concat(li)).attr("fill",Fn.fill).attr("fill-opacity","100%").attr("stroke",Fn.stroke).attr("x",Xa).attr("y",fa).attr("width",xr+2*Le+Da).attr("height",Hn.height+2*Re);Xa=parseFloat(Ra.attr("x"))+parseFloat(Ra.attr("width"))}br&&(Hn.cn.attr("transform","translate("+(Xa+Le)+","+Oa+")"),ce.insert("rect","#"+Hn.cn.node().id).attr("class","er ".concat(li)).attr("fill",Fn.fill).attr("fill-opacity","100%").attr("stroke",Fn.stroke).attr("x",Xa).attr("y",fa).attr("width",bn+2*Le+Da).attr("height",Hn.height+2*Re)),fa+=Hn.height+2*Re,li=li=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else pn.height=Math.max(Fn.minEntityHeight,yn),de.attr("transform","translate("+pn.width/2+","+pn.height/2+")");return pn}(ae,pe,Ft[It].attributes),$t=Ee.width,fe=Ee.height,Xt=ae.insert("rect","#"+Se).attr("class","er entityBox").attr("fill",Fn.fill).attr("fill-opacity","100%").attr("stroke",Fn.stroke).attr("x",0).attr("y",0).attr("width",$t).attr("height",fe).node().getBBox();Pt.setNode(It,{width:Xt.width,height:Xt.height,shape:"rect",id:It})}),Yt}(D,k.db.getEntities(),N),tt=function(zt,Ft){return zt.forEach(function(Pt){Ft.setEdge(Pt.entityA,Pt.entityB,{relationship:Pt},h1(Pt))}),zt}(k.db.getRelationships(),N);ks().layout(N),P=D,(U=N).nodes().forEach(function(zt){zt!==void 0&&U.node(zt)!==void 0&&P.select("#"+zt).attr("transform","translate("+(U.node(zt).x-U.node(zt).width/2)+","+(U.node(zt).y-U.node(zt).height/2)+" )")}),tt.forEach(function(zt){(function(Ft,Pt,Yt,It,ae){d1++;var Se=Yt.edge(Pt.entityA,Pt.entityB,h1(Pt)),pe=(0,T.line)().x(function(ue){return ue.x}).y(function(ue){return ue.y}).curve(T.curveBasis),Ee=Ft.insert("path","#"+It).attr("class","er relationshipLine").attr("d",pe(Se.points)).attr("stroke",Fn.stroke).attr("fill","none");Pt.relSpec.relType===ae.db.Identification.NON_IDENTIFYING&&Ee.attr("stroke-dasharray","8,8");var $t="";switch(Fn.arrowMarkerAbsolute&&($t=($t=($t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Pt.relSpec.cardA){case ae.db.Cardinality.ZERO_OR_ONE:Ee.attr("marker-end","url("+$t+"#"+$o.ZERO_OR_ONE_END+")");break;case ae.db.Cardinality.ZERO_OR_MORE:Ee.attr("marker-end","url("+$t+"#"+$o.ZERO_OR_MORE_END+")");break;case ae.db.Cardinality.ONE_OR_MORE:Ee.attr("marker-end","url("+$t+"#"+$o.ONE_OR_MORE_END+")");break;case ae.db.Cardinality.ONLY_ONE:Ee.attr("marker-end","url("+$t+"#"+$o.ONLY_ONE_END+")")}switch(Pt.relSpec.cardB){case ae.db.Cardinality.ZERO_OR_ONE:Ee.attr("marker-start","url("+$t+"#"+$o.ZERO_OR_ONE_START+")");break;case ae.db.Cardinality.ZERO_OR_MORE:Ee.attr("marker-start","url("+$t+"#"+$o.ZERO_OR_MORE_START+")");break;case ae.db.Cardinality.ONE_OR_MORE:Ee.attr("marker-start","url("+$t+"#"+$o.ONE_OR_MORE_START+")");break;case ae.db.Cardinality.ONLY_ONE:Ee.attr("marker-start","url("+$t+"#"+$o.ONLY_ONE_START+")")}var fe=Ee.node().getTotalLength(),Xt=Ee.node().getPointAtLength(.5*fe),ce="rel"+d1,de=Ft.append("text").attr("class","er relationshipLabel").attr("id",ce).attr("x",Xt.x).attr("y",Xt.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Bt().fontFamily+"; font-size: "+Fn.fontSize+"px").text(Pt.roleA).node().getBBox();Ft.insert("rect","#"+ce).attr("class","er relationshipLabelBox").attr("x",Xt.x-de.width/2).attr("y",Xt.y-de.height/2).attr("width",de.width).attr("height",de.height).attr("fill","white").attr("fill-opacity","85%")})(D,zt,N,K,k)});var st=Fn.diagramPadding,ot=D.node().getBBox(),Lt=ot.width+2*st,Dt=ot.height+2*st;Ji(D,0,Lt,Fn.useMaxWidth),D.attr("viewBox","".concat(ot.x-st," ").concat(ot.y-st," ").concat(Lt," ").concat(Dt)),Sn(k.db,D,o)}},gu={setConf:function(l){Object.keys(l).forEach(function(o){l[o]})},draw:function(l,o,y){try{_.debug(`Renering svg for syntax error
|
|
`);var k=(0,T.select)("#"+o),E=k.append("g");E.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"),E.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"),E.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"),E.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"),E.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"),E.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"),E.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),E.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+y),k.attr("height",100),k.attr("width",500),k.attr("viewBox","768 0 912 512")}catch(L){_.error("Error while rendering info diagram"),_.error(L.message)}}};var ud=h(5890),hd=h.n(ud);function yu(l){return yu=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},yu(l)}function mu(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var xo,cl,f1="flowchart-",p1=0,_u=Bt(),ci={},ns=[],Cs=[],ki=[],Tc={},ll={},Ya=0,bu=!0,ul=[],Is=function(l){return cr.sanitizeText(l,_u)},hl=function(l){for(var o=Object.keys(ci),y=0;y<o.length;y++)if(ci[o[y]].id===l)return ci[o[y]].domId;return l},dd=function(l,o,y,k){var E={start:l,end:o,type:void 0,text:""};(k=y.text)!==void 0&&(E.text=Is(k.trim()),E.text[0]==='"'&&E.text[E.text.length-1]==='"'&&(E.text=E.text.substring(1,E.text.length-1))),y!==void 0&&(E.type=y.type,E.stroke=y.stroke,E.length=y.length),ns.push(E)},vu=function(l,o){l.split(",").forEach(function(y){var k=y;ci[k]!==void 0&&ci[k].classes.push(o),Tc[k]!==void 0&&Tc[k].classes.push(o)})},g1=function(l){var o=(0,T.select)(".mermaidTooltip");(o._groups||o)[0][0]===null&&(o=(0,T.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,T.select)(l).select("svg").selectAll("g.node").on("mouseover",function(){var y=(0,T.select)(this);if(y.attr("title")!==null){var k=this.getBoundingClientRect();o.transition().duration(200).style("opacity",".9"),o.text(y.attr("title")).style("left",window.scrollX+k.left+(k.right-k.left)/2+"px").style("top",window.scrollY+k.top-14+document.body.scrollTop+"px"),o.html(o.html().replace(/<br\/>/g,"<br/>")),y.classed("hover",!0)}}).on("mouseout",function(){o.transition().duration(500).style("opacity",0),(0,T.select)(this).classed("hover",!1)})};ul.push(g1);var xu=function(l){for(var o=0;o<ki.length;o++)if(ki[o].id===l)return o;return-1},wu=-1,y1=[],ku=function l(o,y){var k=ki[y].nodes;if(!((wu+=1)>2e3)){if(y1[wu]=y,ki[y].id===o)return{result:!0,count:0};for(var E=0,L=1;E<k.length;){var N=xu(k[E]);if(N>=0){var D=l(o,N);if(D.result)return{result:!0,count:L+D.count};L+=D.count}E+=1}return{result:!1,count:L}}},Eu=function(l,o){var y=!1;return l.forEach(function(k){k.nodes.indexOf(o)>=0&&(y=!0)}),y},dl=function(l,o){var y=[];return l.nodes.forEach(function(k,E){Eu(o,k)||y.push(l.nodes[E])}),{nodes:y}};const ba={parseDirective:function(l,o,y){Br.parseDirective(this,l,o,y)},defaultConfig:function(){return ui.flowchart},setAccTitle:Tn,getAccTitle:Bn,getAccDescription:fi,setAccDescription:Xn,addVertex:function(l,o,y,k,E,L){var N,D=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},P=l;P!==void 0&&P.trim().length!==0&&(ci[P]===void 0&&(ci[P]={id:P,domId:f1+P+"-"+p1,styles:[],classes:[]}),p1++,o!==void 0?(_u=Bt(),(N=Is(o.trim()))[0]==='"'&&N[N.length-1]==='"'&&(N=N.substring(1,N.length-1)),ci[P].text=N):ci[P].text===void 0&&(ci[P].text=l),y!==void 0&&(ci[P].type=y),k!=null&&k.forEach(function(U){ci[P].styles.push(U)}),E!=null&&E.forEach(function(U){ci[P].classes.push(U)}),L!==void 0&&(ci[P].dir=L),ci[P].props=D)},lookUpDomId:hl,addLink:function(l,o,y,k){var E,L;for(E=0;E<l.length;E++)for(L=0;L<o.length;L++)dd(l[E],o[L],y,k)},updateLinkInterpolate:function(l,o){l.forEach(function(y){y==="default"?ns.defaultInterpolate=o:ns[y].interpolate=o})},updateLink:function(l,o){l.forEach(function(y){y==="default"?ns.defaultStyle=o:(Vr.isSubstringInArray("fill",o)===-1&&o.push("fill:none"),ns[y].style=o)})},addClass:function(l,o){Cs[l]===void 0&&(Cs[l]={id:l,styles:[],textStyles:[]}),o!=null&&o.forEach(function(y){if(y.match("color")){var k=y.replace("fill","bgFill").replace("color","fill");Cs[l].textStyles.push(k)}Cs[l].styles.push(y)})},setDirection:function(l){(xo=l).match(/.*</)&&(xo="RL"),xo.match(/.*\^/)&&(xo="BT"),xo.match(/.*>/)&&(xo="LR"),xo.match(/.*v/)&&(xo="TB")},setClass:vu,setTooltip:function(l,o){l.split(",").forEach(function(y){o!==void 0&&(ll[cl==="gen-1"?hl(y):y]=Is(o))})},getTooltip:function(l){return ll[l]},setClickEvent:function(l,o,y){l.split(",").forEach(function(k){(function(E,L,N){var D=hl(E);if(Bt().securityLevel==="loose"&&L!==void 0){var P=[];if(typeof N=="string"){P=N.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var U=0;U<P.length;U++){var K=P[U].trim();K.charAt(0)==='"'&&K.charAt(K.length-1)==='"'&&(K=K.substr(1,K.length-2)),P[U]=K}}P.length===0&&P.push(E),ci[E]!==void 0&&(ci[E].haveCallback=!0,ul.push(function(){var tt=document.querySelector('[id="'.concat(D,'"]'));tt!==null&&tt.addEventListener("click",function(){var st;Vr.runFunc.apply(Vr,[L].concat(function(ot){if(Array.isArray(ot))return mu(ot)}(st=P)||function(ot){if(typeof Symbol<"u"&&ot[Symbol.iterator]!=null||ot["@@iterator"]!=null)return Array.from(ot)}(st)||function(ot,Lt){if(ot){if(typeof ot=="string")return mu(ot,Lt);var Dt=Object.prototype.toString.call(ot).slice(8,-1);return Dt==="Object"&&ot.constructor&&(Dt=ot.constructor.name),Dt==="Map"||Dt==="Set"?Array.from(ot):Dt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Dt)?mu(ot,Lt):void 0}}(st)||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)}))}})(k,o,y)}),vu(l,"clickable")},setLink:function(l,o,y){l.split(",").forEach(function(k){ci[k]!==void 0&&(ci[k].link=Vr.formatUrl(o,_u),ci[k].linkTarget=y)}),vu(l,"clickable")},bindFunctions:function(l){ul.forEach(function(o){o(l)})},getDirection:function(){return xo.trim()},getVertices:function(){return ci},getEdges:function(){return ns},getClasses:function(){return Cs},clear:function(l){ci={},Cs={},ns=[],(ul=[]).push(g1),ki=[],Tc={},Ya=0,ll=[],bu=!0,cl=l||"gen-1",re()},setGen:function(l){cl=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 k=l.trim(),E=y;l===y&&y.match(/\s/)&&(k=void 0);var L=[],N=function(tt){var st,ot={boolean:{},number:{},string:{}},Lt=[],Dt=tt.filter(function(zt){var Ft=yu(zt);return zt.stmt&&zt.stmt==="dir"?(st=zt.value,!1):zt.trim()!==""&&(Ft in ot?!ot[Ft].hasOwnProperty(zt)&&(ot[Ft][zt]=!0):!(Lt.indexOf(zt)>=0)&&Lt.push(zt))});return{nodeList:Dt,dir:st}}(L.concat.apply(L,o)),D=N.nodeList,P=N.dir;if(L=D,cl==="gen-1")for(var U=0;U<L.length;U++)L[U]=hl(L[U]);k=k||"subGraph"+Ya,E=Is(E=E||""),Ya+=1;var K={id:k,nodes:L,title:E.trim(),classes:[],dir:P};return _.info("Adding",K.id,K.nodes,K.dir),K.nodes=dl(K,ki).nodes,ki.push(K),Tc[k]=K,k},getDepthFirstPos:function(l){return y1[l]},indexNodes:function(){wu=-1,ki.length>0&&ku("none",ki.length-1)},getSubGraphs:function(){return ki},destructLink:function(l,o){var y,k=function(E){var L=E.trim(),N=L.slice(0,-1),D="arrow_open";switch(L.slice(-1)){case"x":D="arrow_cross",L[0]==="x"&&(D="double_"+D,N=N.slice(1));break;case">":D="arrow_point",L[0]==="<"&&(D="double_"+D,N=N.slice(1));break;case"o":D="arrow_circle",L[0]==="o"&&(D="double_"+D,N=N.slice(1))}var P="normal",U=N.length-1;N[0]==="="&&(P="thick");var K=function(tt,st){for(var ot=st.length,Lt=0,Dt=0;Dt<ot;++Dt)st[Dt]==="."&&++Lt;return Lt}(0,N);return K&&(P="dotted",U=K),{type:D,stroke:P,length:U}}(l);if(o){if(y=function(E){var L=E.trim(),N="arrow_open";switch(L[0]){case"<":N="arrow_point",L=L.slice(1);break;case"x":N="arrow_cross",L=L.slice(1);break;case"o":N="arrow_circle",L=L.slice(1)}var D="normal";return L.indexOf("=")!==-1&&(D="thick"),L.indexOf(".")!==-1&&(D="dotted"),{type:N,stroke:D}}(o),y.stroke!==k.stroke)return{type:"INVALID",stroke:"INVALID"};if(y.type==="arrow_open")y.type=k.type;else{if(y.type!==k.type)return{type:"INVALID",stroke:"INVALID"};y.type="double_"+y.type}return y.type==="double_arrow"&&(y.type="double_arrow_point"),y.length=k.length,y}return k},lex:{firstGraph:function(){return!!bu&&(bu=!1,!0)}},exists:Eu,makeUniq:dl};var Ns=h(4949),da=h.n(Ns),Hi=h(8284),Fi=h.n(Hi);function m1(l,o,y){var k=.9*(o.width+o.height),E=[{x:k/2,y:0},{x:k,y:-k/2},{x:k/2,y:-k},{x:0,y:-k/2}],L=ko(l,k,k,E);return y.intersect=function(N){return da().intersect.polygon(y,E,N)},L}function Tu(l,o,y){var k=o.height,E=k/4,L=o.width+2*E,N=[{x:E,y:0},{x:L-E,y:0},{x:L,y:-k/2},{x:L-E,y:-k},{x:E,y:-k},{x:0,y:-k/2}],D=ko(l,L,k,N);return y.intersect=function(P){return da().intersect.polygon(y,N,P)},D}function fl(l,o,y){var k=o.width,E=o.height,L=[{x:-E/2,y:0},{x:k,y:0},{x:k,y:-E},{x:-E/2,y:-E},{x:0,y:-E/2}],N=ko(l,k,E,L);return y.intersect=function(D){return da().intersect.polygon(y,L,D)},N}function pl(l,o,y){var k=o.width,E=o.height,L=[{x:-2*E/6,y:0},{x:k-E/6,y:0},{x:k+2*E/6,y:-E},{x:E/6,y:-E}],N=ko(l,k,E,L);return y.intersect=function(D){return da().intersect.polygon(y,L,D)},N}function fd(l,o,y){var k=o.width,E=o.height,L=[{x:2*E/6,y:0},{x:k+E/6,y:0},{x:k-2*E/6,y:-E},{x:-E/6,y:-E}],N=ko(l,k,E,L);return y.intersect=function(D){return da().intersect.polygon(y,L,D)},N}function wo(l,o,y){var k=o.width,E=o.height,L=[{x:-2*E/6,y:0},{x:k+2*E/6,y:0},{x:k-E/6,y:-E},{x:E/6,y:-E}],N=ko(l,k,E,L);return y.intersect=function(D){return da().intersect.polygon(y,L,D)},N}function _1(l,o,y){var k=o.width,E=o.height,L=[{x:E/6,y:0},{x:k-E/6,y:0},{x:k+2*E/6,y:-E},{x:-2*E/6,y:-E}],N=ko(l,k,E,L);return y.intersect=function(D){return da().intersect.polygon(y,L,D)},N}function b1(l,o,y){var k=o.width,E=o.height,L=[{x:0,y:0},{x:k+E/2,y:0},{x:k,y:-E/2},{x:k+E/2,y:-E},{x:0,y:-E}],N=ko(l,k,E,L);return y.intersect=function(D){return da().intersect.polygon(y,L,D)},N}function pd(l,o,y){var k=o.height,E=o.width+k/4,L=l.insert("rect",":first-child").attr("rx",k/2).attr("ry",k/2).attr("x",-E/2).attr("y",-k/2).attr("width",E).attr("height",k);return y.intersect=function(N){return da().intersect.rect(y,N)},L}function gd(l,o,y){var k=o.width,E=o.height,L=[{x:0,y:0},{x:k,y:0},{x:k,y:-E},{x:0,y:-E},{x:0,y:0},{x:-8,y:0},{x:k+8,y:0},{x:k+8,y:-E},{x:-8,y:-E},{x:-8,y:0}],N=ko(l,k,E,L);return y.intersect=function(D){return da().intersect.polygon(y,L,D)},N}function Sc(l,o,y){var k=o.width,E=k/2,L=E/(2.5+k/50),N=o.height+L,D="M 0,"+L+" a "+E+","+L+" 0,0,0 "+k+" 0 a "+E+","+L+" 0,0,0 "+-k+" 0 l 0,"+N+" a "+E+","+L+" 0,0,0 "+k+" 0 l 0,"+-N,P=l.attr("label-offset-y",L).insert("path",":first-child").attr("d",D).attr("transform","translate("+-k/2+","+-(N/2+L)+")");return y.intersect=function(U){var K=da().intersect.rect(y,U),tt=K.x-y.x;if(E!=0&&(Math.abs(tt)<y.width/2||Math.abs(tt)==y.width/2&&Math.abs(K.y-y.y)>y.height/2-L)){var st=L*L*(1-tt*tt/(E*E));st!=0&&(st=Math.sqrt(st)),st=L-st,U.y-y.y>0&&(st=-st),K.y+=st}return K},P}function ko(l,o,y,k){return l.insert("polygon",":first-child").attr("points",k.map(function(E){return E.x+","+E.y}).join(" ")).attr("transform","translate("+-o/2+","+y/2+")")}const yd=function(l){l.shapes().question=m1,l.shapes().hexagon=Tu,l.shapes().stadium=pd,l.shapes().subroutine=gd,l.shapes().cylinder=Sc,l.shapes().rect_left_inv_arrow=fl,l.shapes().lean_right=pl,l.shapes().lean_left=fd,l.shapes().trapezoid=wo,l.shapes().inv_trapezoid=_1,l.shapes().rect_right_inv_arrow=b1};var v1={},gl=function(l,o,y,k,E,L){Bt().securityLevel;var N=k?k.select('[id="'.concat(y,'"]')):(0,T.select)('[id="'.concat(y,'"]')),D=E||document;Object.keys(l).forEach(function(P){var U=l[P],K="default";U.classes.length>0&&(K=U.classes.join(" "));var tt,st=Ni(U.styles),ot=U.text!==void 0?U.text:U.id;if(sr(Bt().flowchart.htmlLabels)){var Lt={label:ot.replace(/fa[lrsb]?:fa-[\w-]+/g,function(ae){return"<i class='".concat(ae.replace(":"," "),"'></i>")})};(tt=Fi()(N,Lt).node()).parentNode.removeChild(tt)}else{var Dt=D.createElementNS("http://www.w3.org/2000/svg","text");Dt.setAttribute("style",st.labelStyle.replace("color:","fill:"));for(var zt=ot.split(cr.lineBreakRegex),Ft=0;Ft<zt.length;Ft++){var Pt=D.createElementNS("http://www.w3.org/2000/svg","tspan");Pt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Pt.setAttribute("dy","1em"),Pt.setAttribute("x","1"),Pt.textContent=zt[Ft],Dt.appendChild(Pt)}tt=Dt}var Yt=0,It="";switch(U.type){case"round":Yt=5,It="rect";break;case"square":case"group":default:It="rect";break;case"diamond":It="question";break;case"hexagon":It="hexagon";break;case"odd":case"odd_right":It="rect_left_inv_arrow";break;case"lean_right":It="lean_right";break;case"lean_left":It="lean_left";break;case"trapezoid":It="trapezoid";break;case"inv_trapezoid":It="inv_trapezoid";break;case"circle":It="circle";break;case"ellipse":It="ellipse";break;case"stadium":It="stadium";break;case"subroutine":It="subroutine";break;case"cylinder":It="cylinder"}_.warn("Adding node",U.id,U.domId),o.setNode(L.db.lookUpDomId(U.id),{labelType:"svg",labelStyle:st.labelStyle,shape:It,label:tt,rx:Yt,ry:Yt,class:K,style:st.style,id:L.db.lookUpDomId(U.id)})})},x1=function(l,o,y){var k,E,L=0;if(l.defaultStyle!==void 0){var N=Ni(l.defaultStyle);k=N.style,E=N.labelStyle}l.forEach(function(D){L++;var P="L-"+D.start+"-"+D.end,U="LS-"+D.start,K="LE-"+D.end,tt={};D.type==="arrow_open"?tt.arrowhead="none":tt.arrowhead="normal";var st="",ot="";if(D.style!==void 0){var Lt=Ni(D.style);st=Lt.style,ot=Lt.labelStyle}else switch(D.stroke){case"normal":st="fill:none",k!==void 0&&(st=k),E!==void 0&&(ot=E);break;case"dotted":st="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":st=" stroke-width: 3.5px;fill:none"}tt.style=st,tt.labelStyle=ot,D.interpolate!==void 0?tt.curve=ma(D.interpolate,T.curveLinear):l.defaultInterpolate!==void 0?tt.curve=ma(l.defaultInterpolate,T.curveLinear):tt.curve=ma(v1.curve,T.curveLinear),D.text===void 0?D.style!==void 0&&(tt.arrowheadStyle="fill: #333"):(tt.arrowheadStyle="fill: #333",tt.labelpos="c",sr(Bt().flowchart.htmlLabels)?(tt.labelType="html",tt.label='<span id="L-'.concat(P,'" class="edgeLabel L-').concat(U,"' L-").concat(K,'" style="').concat(tt.labelStyle,'">').concat(D.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Dt){return"<i class='".concat(Dt.replace(":"," "),"'></i>")}),"</span>")):(tt.labelType="text",tt.label=D.text.replace(cr.lineBreakRegex,`
|
|
`),D.style===void 0&&(tt.style=tt.style||"stroke: #333; stroke-width: 1.5px;fill:none"),tt.labelStyle=tt.labelStyle.replace("color:","fill:"))),tt.id=P,tt.class=U+" "+K,tt.minlen=D.length||1,o.setEdge(y.db.lookUpDomId(D.start),y.db.lookUpDomId(D.end),tt,L)})};const yl={setConf:function(l){for(var o=Object.keys(l),y=0;y<o.length;y++)v1[o[y]]=l[o[y]]},addVertices:gl,addEdges:x1,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,k){_.info("Drawing flowchart"),k.db.clear();var E,L=Bt().securityLevel;L==="sandbox"&&(E=(0,T.select)("#i"+o));var N=L==="sandbox"?(0,T.select)(E.nodes()[0].contentDocument.body):(0,T.select)("body"),D=L==="sandbox"?E.nodes()[0].contentDocument:document;try{k.parser.parse(l)}catch{_.debug("Parsing failed")}var P=k.db.getDirection();P===void 0&&(P="TD");for(var U,K=Bt().flowchart,tt=K.nodeSpacing||50,st=K.rankSpacing||50,ot=new(mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:P,nodesep:tt,ranksep:st,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),Lt=k.db.getSubGraphs(),Dt=Lt.length-1;Dt>=0;Dt--)U=Lt[Dt],k.db.addVertex(U.id,U.title,"group",void 0,U.classes);var zt=k.db.getVertices();_.warn("Get vertices",zt);var Ft=k.db.getEdges(),Pt=0;for(Pt=Lt.length-1;Pt>=0;Pt--){U=Lt[Pt],(0,T.selectAll)("cluster").append("text");for(var Yt=0;Yt<U.nodes.length;Yt++)_.warn("Setting subgraph",U.nodes[Yt],k.db.lookUpDomId(U.nodes[Yt]),k.db.lookUpDomId(U.id)),ot.setParent(k.db.lookUpDomId(U.nodes[Yt]),k.db.lookUpDomId(U.id))}gl(zt,ot,o,N,D,k),x1(Ft,ot,k);var It=new(da()).render;yd(It),It.arrows().none=function(Ye,ir,br,We){var Ve=Ye.append("marker").attr("id",ir).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");da().util.applyStyle(Ve,br[We+"Style"])},It.arrows().normal=function(Ye,ir){Ye.append("marker").attr("id",ir).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 ae=N.select('[id="'.concat(o,'"]'));Sn(k.db,ae,o);var Se=N.select("#"+o+" g");for(It(Se,ot),Se.selectAll("g.node").attr("title",function(){return k.db.getTooltip(this.id)}),k.db.indexNodes("subGraph"+Pt),Pt=0;Pt<Lt.length;Pt++)if((U=Lt[Pt]).title!=="undefined"){var pe=D.querySelectorAll("#"+o+' [id="'+k.db.lookUpDomId(U.id)+'"] rect'),Ee=D.querySelectorAll("#"+o+' [id="'+k.db.lookUpDomId(U.id)+'"]'),$t=pe[0].x.baseVal.value,fe=pe[0].y.baseVal.value,Xt=pe[0].width.baseVal.value,ce=(0,T.select)(Ee[0]).select(".label");ce.attr("transform","translate(".concat($t+Xt/2,", ").concat(fe+14,")")),ce.attr("id",o+"Text");for(var de=0;de<U.classes.length;de++)Ee[0].classList.add(U.classes[de])}sr(K.htmlLabels);for(var ue=D.querySelectorAll('[id="'+o+'"] .edgeLabel .label'),Re=0;Re<ue.length;Re++){var Le=ue[Re],$e=Le.getBBox(),kr=D.createElementNS("http://www.w3.org/2000/svg","rect");kr.setAttribute("rx",0),kr.setAttribute("ry",0),kr.setAttribute("width",$e.width),kr.setAttribute("height",$e.height),Le.insertBefore(kr,Le.firstChild)}Fo(ot,ae,K.diagramPadding,K.useMaxWidth),Object.keys(zt).forEach(function(Ye){var ir=zt[Ye];if(ir.link){var br=N.select("#"+o+' [id="'+k.db.lookUpDomId(Ye)+'"]');if(br){var We=D.createElementNS("http://www.w3.org/2000/svg","a");We.setAttributeNS("http://www.w3.org/2000/svg","class",ir.classes.join(" ")),We.setAttributeNS("http://www.w3.org/2000/svg","href",ir.link),We.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),L==="sandbox"?We.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ir.linkTarget&&We.setAttributeNS("http://www.w3.org/2000/svg","target",ir.linkTarget);var Ve=br.insert(function(){return We},":first-child"),xr=br.select(".label-container");xr&&Ve.append(function(){return xr.node()});var bn=br.select(".label");bn&&Ve.append(function(){return bn.node()})}}})}};var w1={},k1=function(l,o,y,k,E,L){var N=k.select('[id="'.concat(y,'"]'));Object.keys(l).forEach(function(D){var P=l[D],U="default";P.classes.length>0&&(U=P.classes.join(" "));var K,tt=Ni(P.styles),st=P.text!==void 0?P.text:P.id;if(sr(Bt().flowchart.htmlLabels)){var ot={label:st.replace(/fa[lrsb]?:fa-[\w-]+/g,function(It){return"<i class='".concat(It.replace(":"," "),"'></i>")})};(K=Fi()(N,ot).node()).parentNode.removeChild(K)}else{var Lt=E.createElementNS("http://www.w3.org/2000/svg","text");Lt.setAttribute("style",tt.labelStyle.replace("color:","fill:"));for(var Dt=st.split(cr.lineBreakRegex),zt=0;zt<Dt.length;zt++){var Ft=E.createElementNS("http://www.w3.org/2000/svg","tspan");Ft.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Ft.setAttribute("dy","1em"),Ft.setAttribute("x","1"),Ft.textContent=Dt[zt],Lt.appendChild(Ft)}K=Lt}var Pt=0,Yt="";switch(P.type){case"round":Pt=5,Yt="rect";break;case"square":case"group":default:Yt="rect";break;case"diamond":Yt="question";break;case"hexagon":Yt="hexagon";break;case"odd":case"odd_right":Yt="rect_left_inv_arrow";break;case"lean_right":Yt="lean_right";break;case"lean_left":Yt="lean_left";break;case"trapezoid":Yt="trapezoid";break;case"inv_trapezoid":Yt="inv_trapezoid";break;case"circle":Yt="circle";break;case"ellipse":Yt="ellipse";break;case"stadium":Yt="stadium";break;case"subroutine":Yt="subroutine";break;case"cylinder":Yt="cylinder";break;case"doublecircle":Yt="doublecircle"}o.setNode(P.id,{labelStyle:tt.labelStyle,shape:Yt,labelText:st,rx:Pt,ry:Pt,class:U,style:tt.style,id:P.id,link:P.link,linkTarget:P.linkTarget,tooltip:L.db.getTooltip(P.id)||"",domId:L.db.lookUpDomId(P.id),haveCallback:P.haveCallback,width:P.type==="group"?500:void 0,dir:P.dir,type:P.type,props:P.props,padding:Bt().flowchart.padding}),_.info("setNode",{labelStyle:tt.labelStyle,shape:Yt,labelText:st,rx:Pt,ry:Pt,class:U,style:tt.style,id:P.id,domId:L.db.lookUpDomId(P.id),width:P.type==="group"?500:void 0,type:P.type,dir:P.dir,props:P.props,padding:Bt().flowchart.padding})})},E1=function(l,o,y){_.info("abc78 edges = ",l);var k,E,L=0,N={};if(l.defaultStyle!==void 0){var D=Ni(l.defaultStyle);k=D.style,E=D.labelStyle}l.forEach(function(P){L++;var U="L-"+P.start+"-"+P.end;N[U]===void 0?(N[U]=0,_.info("abc78 new entry",U,N[U])):(N[U]++,_.info("abc78 new entry",U,N[U]));var K=U+"-"+N[U];_.info("abc78 new link id to be used is",U,K,N[U]);var tt="LS-"+P.start,st="LE-"+P.end,ot={style:"",labelStyle:""};switch(ot.minlen=P.length||1,P.type==="arrow_open"?ot.arrowhead="none":ot.arrowhead="normal",ot.arrowTypeStart="arrow_open",ot.arrowTypeEnd="arrow_open",P.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 Lt="",Dt="";switch(P.stroke){case"normal":Lt="fill:none;",k!==void 0&&(Lt=k),E!==void 0&&(Dt=E),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(P.style!==void 0){var zt=Ni(P.style);Lt=zt.style,Dt=zt.labelStyle}ot.style=ot.style+=Lt,ot.labelStyle=ot.labelStyle+=Dt,P.interpolate!==void 0?ot.curve=ma(P.interpolate,T.curveLinear):l.defaultInterpolate!==void 0?ot.curve=ma(l.defaultInterpolate,T.curveLinear):ot.curve=ma(w1.curve,T.curveLinear),P.text===void 0?P.style!==void 0&&(ot.arrowheadStyle="fill: #333"):(ot.arrowheadStyle="fill: #333",ot.labelpos="c"),ot.labelType="text",ot.label=P.text.replace(cr.lineBreakRegex,`
|
|
`),P.style===void 0&&(ot.style=ot.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),ot.labelStyle=ot.labelStyle.replace("color:","fill:"),ot.id=K,ot.classes="flowchart-link "+tt+" "+st,o.setEdge(P.start,P.end,ot,L)})};const Ac={setConf:function(l){for(var o=Object.keys(l),y=0;y<o.length;y++)w1[o[y]]=l[o[y]]},addVertices:k1,addEdges:E1,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,k){_.info("Drawing flowchart"),k.db.clear(),ba.setGen("gen-2"),k.parser.parse(l);var E=k.db.getDirection();E===void 0&&(E="TD");var L,N=Bt().flowchart,D=N.nodeSpacing||50,P=N.rankSpacing||50,U=Bt().securityLevel;U==="sandbox"&&(L=(0,T.select)("#i"+o));var K,tt=U==="sandbox"?(0,T.select)(L.nodes()[0].contentDocument.body):(0,T.select)("body"),st=U==="sandbox"?L.nodes()[0].contentDocument:document,ot=new(mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:E,nodesep:D,ranksep:P,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}}),Lt=k.db.getSubGraphs();_.info("Subgraphs - ",Lt);for(var Dt=Lt.length-1;Dt>=0;Dt--)K=Lt[Dt],_.info("Subgraph - ",K),k.db.addVertex(K.id,K.title,"group",void 0,K.classes,K.dir);var zt=k.db.getVertices(),Ft=k.db.getEdges();_.info(Ft);var Pt=0;for(Pt=Lt.length-1;Pt>=0;Pt--){K=Lt[Pt],(0,T.selectAll)("cluster").append("text");for(var Yt=0;Yt<K.nodes.length;Yt++)_.info("Setting up subgraphs",K.nodes[Yt],K.id),ot.setParent(K.nodes[Yt],K.id)}k1(zt,ot,o,tt,st,k),E1(Ft,ot);var It=tt.select('[id="'.concat(o,'"]'));Sn(k.db,It,o);var ae=tt.select("#"+o+" g");if(sl(ae,ot,["point","circle","cross"],"flowchart",o),Fo(ot,It,N.diagramPadding,N.useMaxWidth),k.db.indexNodes("subGraph"+Pt),!N.htmlLabels)for(var Se=st.querySelectorAll('[id="'+o+'"] .edgeLabel .label'),pe=0;pe<Se.length;pe++){var Ee=Se[pe],$t=Ee.getBBox(),fe=st.createElementNS("http://www.w3.org/2000/svg","rect");fe.setAttribute("rx",0),fe.setAttribute("ry",0),fe.setAttribute("width",$t.width),fe.setAttribute("height",$t.height),Ee.insertBefore(fe,Ee.firstChild)}Object.keys(zt).forEach(function(Xt){var ce=zt[Xt];if(ce.link){var de=(0,T.select)("#"+o+' [id="'+Xt+'"]');if(de){var ue=st.createElementNS("http://www.w3.org/2000/svg","a");ue.setAttributeNS("http://www.w3.org/2000/svg","class",ce.classes.join(" ")),ue.setAttributeNS("http://www.w3.org/2000/svg","href",ce.link),ue.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),U==="sandbox"?ue.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ce.linkTarget&&ue.setAttributeNS("http://www.w3.org/2000/svg","target",ce.linkTarget);var Re=de.insert(function(){return ue},":first-child"),Le=de.select(".label-container");Le&&Re.append(function(){return Le.node()});var $e=de.select(".label");$e&&Re.append(function(){return $e.node()})}}})}};var T1=h(3602),is=h.n(T1);function Ho(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var ml,as,ja="",_l="",Cc="",os=[],Ic=[],Su={},Au=[],Cu=[],qo="",bl=["active","done","crit","milestone"],Ls=[],$a=!1,Iu=!1,Nc=0,Nu=function(l,o,y,k){return!(k.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)},Wo=function(l,o,y,k){if(y.length&&!l.manualEndTime){var E=f()(l.startTime,o,!0);E.add(1,"d");var L=f()(l.endTime,o,!0),N=md(E,L,o,y,k);l.endTime=L.toDate(),l.renderEndTime=N}},md=function(l,o,y,k,E){for(var L=!1,N=null;l<=o;)L||(N=o.toDate()),(L=Nu(l,y,k,E))&&o.add(1,"d"),l.add(1,"d");return N},Eo=function(l,o,y){y=y.trim();var k=/^after\s+([\d\w- ]+)/.exec(y.trim());if(k!==null){var E=null;if(k[1].split(" ").forEach(function(D){var P=Ds(D);P!==void 0&&(E?P.endTime>E.endTime&&(E=P):E=P)}),E)return E.endTime;var L=new Date;return L.setHours(0,0,0,0),L}var N=f()(y,o.trim(),!0);return N.isValid()?N.toDate():(_.debug("Invalid date:"+y),_.debug("With date format:"+o.trim()),new Date)},S1=function(l,o){if(l!==null)switch(l[2]){case"ms":o.add(l[1],"milliseconds");break;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()},A1=function(l,o,y,k){k=k||!1,y=y.trim();var E=f()(y,o.trim(),!0);return E.isValid()?(k&&E.add(1,"d"),E.toDate()):S1(/^([\d]+)([wdhms]|ms)$/.exec(y.trim()),f()(l))},Lu=0,Ms=function(l){return l===void 0?"task"+(Lu+=1):l},bi=[],C1={},Ds=function(l){var o=C1[l];return bi[o]},Mu=function(){for(var l=function(k){var E=bi[k],L="";switch(bi[k].raw.startTime.type){case"prevTaskEnd":var N=Ds(E.prevTaskId);E.startTime=N.endTime;break;case"getStartDate":(L=Eo(0,ja,bi[k].raw.startTime.startData))&&(bi[k].startTime=L)}return bi[k].startTime&&(bi[k].endTime=A1(bi[k].startTime,ja,bi[k].raw.endTime.data,$a),bi[k].endTime&&(bi[k].processed=!0,bi[k].manualEndTime=f()(bi[k].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Wo(bi[k],ja,Ic,os))),bi[k].processed},o=!0,y=0;y<bi.length;y++)l(y),o=o&&bi[y].processed;return o},I1=function(l,o){l.split(",").forEach(function(y){var k=Ds(y);k!==void 0&&k.classes.push(o)})},N1=function(l,o){Ls.push(function(){var y=document.querySelector('[id="'.concat(l,'"]'));y!==null&&y.addEventListener("click",function(){o()})}),Ls.push(function(){var y=document.querySelector('[id="'.concat(l,'-text"]'));y!==null&&y.addEventListener("click",function(){o()})})};const Du={parseDirective:function(l,o,y){Br.parseDirective(this,l,o,y)},getConfig:function(){return Bt().gantt},clear:function(){Au=[],Cu=[],qo="",Ls=[],Lu=0,ml=void 0,as=void 0,bi=[],ja="",_l="",Cc="",os=[],Ic=[],$a=!1,Iu=!1,Nc=0,Su={},re()},setDateFormat:function(l){ja=l},getDateFormat:function(){return ja},enableInclusiveEndDates:function(){$a=!0},endDatesAreInclusive:function(){return $a},enableTopAxis:function(){Iu=!0},topAxisEnabled:function(){return Iu},setAxisFormat:function(l){_l=l},getAxisFormat:function(){return _l},setTodayMarker:function(l){Cc=l},getTodayMarker:function(){return Cc},setAccTitle:Tn,getAccTitle:Bn,setDiagramTitle:Sa,getDiagramTitle:gn,setAccDescription:Xn,getAccDescription:fi,addSection:function(l){qo=l,Au.push(l)},getSections:function(){return Au},getTasks:function(){for(var l=Mu(),o=0;!l&&o<10;)l=Mu(),o++;return Cu=bi},addTask:function(l,o){var y={section:qo,type:qo,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:o},task:l,classes:[]},k=function(L,N){var D=(N.substr(0,1)===":"?N.substr(1,N.length):N).split(","),P={};Ou(D,P,bl);for(var U=0;U<D.length;U++)D[U]=D[U].trim();switch(D.length){case 1:P.id=Ms(),P.startTime={type:"prevTaskEnd",id:L},P.endTime={data:D[0]};break;case 2:P.id=Ms(),P.startTime={type:"getStartDate",startData:D[0]},P.endTime={data:D[1]};break;case 3:P.id=Ms(D[0]),P.startTime={type:"getStartDate",startData:D[1]},P.endTime={data:D[2]}}return P}(as,o);y.raw.startTime=k.startTime,y.raw.endTime=k.endTime,y.id=k.id,y.prevTaskId=as,y.active=k.active,y.done=k.done,y.crit=k.crit,y.milestone=k.milestone,y.order=Nc,Nc++;var E=bi.push(y);as=y.id,C1[y.id]=E-1},findTaskById:Ds,addTaskOrg:function(l,o){var y={section:qo,type:qo,description:l,task:l,classes:[]},k=function(E,L){var N=(L.substr(0,1)===":"?L.substr(1,L.length):L).split(","),D={};Ou(N,D,bl);for(var P=0;P<N.length;P++)N[P]=N[P].trim();var U="";switch(N.length){case 1:D.id=Ms(),D.startTime=E.endTime,U=N[0];break;case 2:D.id=Ms(),D.startTime=Eo(0,ja,N[0]),U=N[1];break;case 3:D.id=Ms(N[0]),D.startTime=Eo(0,ja,N[1]),U=N[2]}return U&&(D.endTime=A1(D.startTime,ja,U,$a),D.manualEndTime=f()(U,"YYYY-MM-DD",!0).isValid(),Wo(D,ja,Ic,os)),D}(ml,o);y.startTime=k.startTime,y.endTime=k.endTime,y.id=k.id,y.active=k.active,y.done=k.done,y.crit=k.crit,y.milestone=k.milestone,ml=y,Cu.push(y)},setIncludes:function(l){os=l.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return os},setExcludes:function(l){Ic=l.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return Ic},setClickEvent:function(l,o,y){l.split(",").forEach(function(k){(function(E,L,N){if(Bt().securityLevel==="loose"&&L!==void 0){var D=[];if(typeof N=="string"){D=N.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var P=0;P<D.length;P++){var U=D[P].trim();U.charAt(0)==='"'&&U.charAt(U.length-1)==='"'&&(U=U.substr(1,U.length-2)),D[P]=U}}D.length===0&&D.push(E),Ds(E)!==void 0&&N1(E,function(){var K;Vr.runFunc.apply(Vr,[L].concat(function(tt){if(Array.isArray(tt))return Ho(tt)}(K=D)||function(tt){if(typeof Symbol<"u"&&tt[Symbol.iterator]!=null||tt["@@iterator"]!=null)return Array.from(tt)}(K)||function(tt,st){if(tt){if(typeof tt=="string")return Ho(tt,st);var ot=Object.prototype.toString.call(tt).slice(8,-1);return ot==="Object"&&tt.constructor&&(ot=tt.constructor.name),ot==="Map"||ot==="Set"?Array.from(tt):ot==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ot)?Ho(tt,st):void 0}}(K)||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.`)}()))})}})(k,o,y)}),I1(l,"clickable")},setLink:function(l,o){var y=o;Bt().securityLevel!=="loose"&&(y=(0,ii.N)(o)),l.split(",").forEach(function(k){Ds(k)!==void 0&&(N1(k,function(){window.open(y,"_self")}),Su[k]=y)}),I1(l,"clickable")},getLinks:function(){return Su},bindFunctions:function(l){Ls.forEach(function(o){o(l)})},durationToDate:S1,isInvalidDate:Nu};function Ou(l,o,y){for(var k=!0;k;)k=!1,y.forEach(function(E){var L=new RegExp("^\\s*"+E+"\\s*$");l[0].match(L)&&(o[E]=!0,l.shift(1),k=!0)})}var To;const vl={setConf:function(){_.debug("Something is calling, setConf, remove the call")},draw:function(l,o,y,k){var E,L=Bt().gantt,N=Bt().securityLevel;N==="sandbox"&&(E=(0,T.select)("#i"+o));var D=N==="sandbox"?(0,T.select)(E.nodes()[0].contentDocument.body):(0,T.select)("body"),P=N==="sandbox"?E.nodes()[0].contentDocument:document,U=P.getElementById(o);(To=U.parentElement.offsetWidth)===void 0&&(To=1200),L.useWidth!==void 0&&(To=L.useWidth);var K=k.db.getTasks(),tt=K.length*(L.barHeight+L.barGap)+2*L.topPadding;U.setAttribute("viewBox","0 0 "+To+" "+tt);for(var st=D.select('[id="'.concat(o,'"]')),ot=(0,T.scaleTime)().domain([(0,T.min)(K,function(Ft){return Ft.startTime}),(0,T.max)(K,function(Ft){return Ft.endTime})]).rangeRound([0,To-L.leftPadding-L.rightPadding]),Lt=[],Dt=0;Dt<K.length;Dt++)Lt.push(K[Dt].type);var zt=Lt;Lt=function(Ft){for(var Pt={},Yt=[],It=0,ae=Ft.length;It<ae;++It)Object.prototype.hasOwnProperty.call(Pt,Ft[It])||(Pt[Ft[It]]=!0,Yt.push(Ft[It]));return Yt}(Lt),K.sort(function(Ft,Pt){var Yt=Ft.startTime,It=Pt.startTime,ae=0;return Yt>It?ae=1:Yt<It&&(ae=-1),ae}),function(Ft,Pt,Yt){var It=L.barHeight,ae=It+L.barGap,Se=L.topPadding,pe=L.leftPadding;(0,T.scaleLinear)().domain([0,Lt.length]).range(["#00B9FA","#F95002"]).interpolate(T.interpolateHcl),function(Ee,$t,fe,Xt,ce,de,ue,Re){var Le=de.reduce(function(We,Ve){var xr=Ve.startTime;return We?Math.min(We,xr):xr},0),$e=de.reduce(function(We,Ve){var xr=Ve.endTime;return We?Math.max(We,xr):xr},0),kr=k.db.getDateFormat();if(Le&&$e){for(var Ye=[],ir=null,br=f()(Le);br.valueOf()<=$e;)k.db.isInvalidDate(br,kr,ue,Re)?ir?ir.end=br.clone():ir={start:br.clone(),end:br.clone()}:ir&&(Ye.push(ir),ir=null),br.add(1,"d");st.append("g").selectAll("rect").data(Ye).enter().append("rect").attr("id",function(We){return"exclude-"+We.start.format("YYYY-MM-DD")}).attr("x",function(We){return ot(We.start)+fe}).attr("y",L.gridLineStartPadding).attr("width",function(We){var Ve=We.end.clone().add(1,"day");return ot(Ve)-ot(We.start)}).attr("height",ce-$t-L.gridLineStartPadding).attr("transform-origin",function(We,Ve){return(ot(We.start)+fe+.5*(ot(We.end)-ot(We.start))).toString()+"px "+(Ve*Ee+.5*ce).toString()+"px"}).attr("class","exclude-range")}}(ae,Se,pe,0,Yt,Ft,k.db.getExcludes(),k.db.getIncludes()),function(Ee,$t,fe,Xt){var ce=(0,T.axisBottom)(ot).tickSize(-Xt+$t+L.gridLineStartPadding).tickFormat((0,T.timeFormat)(k.db.getAxisFormat()||L.axisFormat||"%Y-%m-%d"));if(st.append("g").attr("class","grid").attr("transform","translate("+Ee+", "+(Xt-50)+")").call(ce).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),k.db.topAxisEnabled()||L.topAxis){var de=(0,T.axisTop)(ot).tickSize(-Xt+$t+L.gridLineStartPadding).tickFormat((0,T.timeFormat)(k.db.getAxisFormat()||L.axisFormat||"%Y-%m-%d"));st.append("g").attr("class","grid").attr("transform","translate("+Ee+", "+$t+")").call(de).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(pe,Se,0,Yt),function(Ee,$t,fe,Xt,ce,de,ue){st.append("g").selectAll("rect").data(Ee).enter().append("rect").attr("x",0).attr("y",function(Ye,ir){return Ye.order*$t+fe-2}).attr("width",function(){return ue-L.rightPadding/2}).attr("height",$t).attr("class",function(Ye){for(var ir=0;ir<Lt.length;ir++)if(Ye.type===Lt[ir])return"section section"+ir%L.numberSectionStyles;return"section section0"});var Re=st.append("g").selectAll("rect").data(Ee).enter(),Le=k.db.getLinks();if(Re.append("rect").attr("id",function(Ye){return Ye.id}).attr("rx",3).attr("ry",3).attr("x",function(Ye){return Ye.milestone?ot(Ye.startTime)+Xt+.5*(ot(Ye.endTime)-ot(Ye.startTime))-.5*ce:ot(Ye.startTime)+Xt}).attr("y",function(Ye,ir){return Ye.order*$t+fe}).attr("width",function(Ye){return Ye.milestone?ce:ot(Ye.renderEndTime||Ye.endTime)-ot(Ye.startTime)}).attr("height",ce).attr("transform-origin",function(Ye,ir){return ir=Ye.order,(ot(Ye.startTime)+Xt+.5*(ot(Ye.endTime)-ot(Ye.startTime))).toString()+"px "+(ir*$t+fe+.5*ce).toString()+"px"}).attr("class",function(Ye){var ir="";Ye.classes.length>0&&(ir=Ye.classes.join(" "));for(var br=0,We=0;We<Lt.length;We++)Ye.type===Lt[We]&&(br=We%L.numberSectionStyles);var Ve="";return Ye.active?Ye.crit?Ve+=" activeCrit":Ve=" active":Ye.done?Ve=Ye.crit?" doneCrit":" done":Ye.crit&&(Ve+=" crit"),Ve.length===0&&(Ve=" task"),Ye.milestone&&(Ve=" milestone "+Ve),"task"+(Ve+=br)+" "+ir}),Re.append("text").attr("id",function(Ye){return Ye.id+"-text"}).text(function(Ye){return Ye.task}).attr("font-size",L.fontSize).attr("x",function(Ye){var ir=ot(Ye.startTime),br=ot(Ye.renderEndTime||Ye.endTime);Ye.milestone&&(ir+=.5*(ot(Ye.endTime)-ot(Ye.startTime))-.5*ce),Ye.milestone&&(br=ir+ce);var We=this.getBBox().width;return We>br-ir?br+We+1.5*L.leftPadding>ue?ir+Xt-5:br+Xt+5:(br-ir)/2+ir+Xt}).attr("y",function(Ye,ir){return Ye.order*$t+L.barHeight/2+(L.fontSize/2-2)+fe}).attr("text-height",ce).attr("class",function(Ye){var ir=ot(Ye.startTime),br=ot(Ye.endTime);Ye.milestone&&(br=ir+ce);var We=this.getBBox().width,Ve="";Ye.classes.length>0&&(Ve=Ye.classes.join(" "));for(var xr=0,bn=0;bn<Lt.length;bn++)Ye.type===Lt[bn]&&(xr=bn%L.numberSectionStyles);var yn="";return Ye.active&&(yn=Ye.crit?"activeCritText"+xr:"activeText"+xr),Ye.done?yn=Ye.crit?yn+" doneCritText"+xr:yn+" doneText"+xr:Ye.crit&&(yn=yn+" critText"+xr),Ye.milestone&&(yn+=" milestoneText"),We>br-ir?br+We+1.5*L.leftPadding>ue?Ve+" taskTextOutsideLeft taskTextOutside"+xr+" "+yn:Ve+" taskTextOutsideRight taskTextOutside"+xr+" "+yn+" width-"+We:Ve+" taskText taskText"+xr+" "+yn+" width-"+We}),Bt().securityLevel==="sandbox"){var $e;$e=(0,T.select)("#i"+o),(0,T.select)($e.nodes()[0].contentDocument.body);var kr=$e.nodes()[0].contentDocument;Re.filter(function(Ye){return Le[Ye.id]!==void 0}).each(function(Ye){var ir=kr.querySelector("#"+Ye.id),br=kr.querySelector("#"+Ye.id+"-text"),We=ir.parentNode,Ve=kr.createElement("a");Ve.setAttribute("xlink:href",Le[Ye.id]),Ve.setAttribute("target","_top"),We.appendChild(Ve),Ve.appendChild(ir),Ve.appendChild(br)})}}(Ft,ae,Se,pe,It,0,Pt),function(Ee,$t){for(var fe=[],Xt=0,ce=0;ce<Lt.length;ce++)fe[ce]=[Lt[ce],(de=Lt[ce],ue=zt,function(Re){for(var Le=Re.length,$e={};Le;)$e[Re[--Le]]=($e[Re[Le]]||0)+1;return $e}(ue)[de]||0)];var de,ue;st.append("g").selectAll("text").data(fe).enter().append(function(Re){var Le=Re[0].split(cr.lineBreakRegex),$e=-(Le.length-1)/2,kr=P.createElementNS("http://www.w3.org/2000/svg","text");kr.setAttribute("dy",$e+"em");for(var Ye=0;Ye<Le.length;Ye++){var ir=P.createElementNS("http://www.w3.org/2000/svg","tspan");ir.setAttribute("alignment-baseline","central"),ir.setAttribute("x","10"),Ye>0&&ir.setAttribute("dy","1em"),ir.textContent=Le[Ye],kr.appendChild(ir)}return kr}).attr("x",10).attr("y",function(Re,Le){if(!(Le>0))return Re[1]*Ee/2+$t;for(var $e=0;$e<Le;$e++)return Xt+=fe[Le-1][1],Re[1]*Ee/2+Xt*Ee+$t}).attr("font-size",L.sectionFontSize).attr("font-size",L.sectionFontSize).attr("class",function(Re){for(var Le=0;Le<Lt.length;Le++)if(Re[0]===Lt[Le])return"sectionTitle sectionTitle"+Le%L.numberSectionStyles;return"sectionTitle"})}(ae,Se),function(Ee,$t,fe,Xt){var ce=k.db.getTodayMarker();if(ce!=="off"){var de=st.append("g").attr("class","today"),ue=new Date,Re=de.append("line");Re.attr("x1",ot(ue)+Ee).attr("x2",ot(ue)+Ee).attr("y1",L.titleTopMargin).attr("y2",Xt-L.titleTopMargin).attr("class","today"),ce!==""&&Re.attr("style",ce.replace(/,/g,";"))}}(pe,0,0,Yt)}(K,To,tt),Ji(st,0,To,L.useMaxWidth),st.append("text").text(k.db.getDiagramTitle()).attr("x",To/2).attr("y",L.titleTopMargin).attr("class","titleText"),Sn(k.db,st,o)}};var L1=h(9959),Ru=h.n(L1),Bu="",Fu=!1;const _d={setMessage:function(l){_.debug("Setting message to: "+l),Bu=l},getMessage:function(){return Bu},setInfo:function(l){Fu=l},getInfo:function(){return Fu}},xl={draw:function(l,o,y,k){try{_.debug(`Renering info diagram
|
|
`+l);var E,L=Bt().securityLevel;L==="sandbox"&&(E=(0,T.select)("#i"+o));var N=L==="sandbox"?(0,T.select)(E.nodes()[0].contentDocument.body):(0,T.select)("body"),D=(L==="sandbox"&&E.nodes()[0].contentDocument,N.select("#"+o));D.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+y),D.attr("height",100),D.attr("width",400)}catch(P){_.error("Error while rendering info diagram"),_.error(P.message)}}};var Ha=h(6765),Pu=h.n(Ha),Uu=h(7062),zu=h.n(Uu),Os={},wl=!1;const bd={parseDirective:function(l,o,y){Br.parseDirective(this,l,o,y)},getConfig:function(){return Bt().pie},addSection:function(l,o){l=cr.sanitizeText(l,Bt()),Os[l]===void 0&&(Os[l]=o,_.debug("Added new section :",l))},getSections:function(){return Os},cleanupValue:function(l){return l.substring(0,1)===":"&&(l=l.substring(1).trim()),Number(l.trim())},clear:function(){Os={},wl=!1,re()},setAccTitle:Tn,getAccTitle:Bn,setDiagramTitle:Sa,getDiagramTitle:gn,setShowData:function(l){wl=l},getShowData:function(){return wl},getAccDescription:fi,setAccDescription:Xn};var qa,Oi=Bt();const M1={draw:function(l,o,y,k){try{Oi=Bt(),_.debug(`Rendering info diagram
|
|
`+l);var E,L=Bt().securityLevel;L==="sandbox"&&(E=(0,T.select)("#i"+o));var N=L==="sandbox"?(0,T.select)(E.nodes()[0].contentDocument.body):(0,T.select)("body"),D=L==="sandbox"?E.nodes()[0].contentDocument:document;k.db.clear(),k.parser.parse(l),_.debug("Parsed info diagram");var P=D.getElementById(o);(qa=P.parentElement.offsetWidth)===void 0&&(qa=1200),Oi.useWidth!==void 0&&(qa=Oi.useWidth),Oi.pie.useWidth!==void 0&&(qa=Oi.pie.useWidth);var U=N.select("#"+o);Ji(U,0,qa,Oi.pie.useMaxWidth),Sn(k.db,U,o),P.setAttribute("viewBox","0 0 "+qa+" 450");var K=Math.min(qa,450)/2-40,tt=U.append("g").attr("transform","translate("+qa/2+",225)"),st=k.db.getSections(),ot=0;Object.keys(st).forEach(function(It){ot+=st[It]});var Lt=Oi.themeVariables,Dt=[Lt.pie1,Lt.pie2,Lt.pie3,Lt.pie4,Lt.pie5,Lt.pie6,Lt.pie7,Lt.pie8,Lt.pie9,Lt.pie10,Lt.pie11,Lt.pie12],zt=(0,T.scaleOrdinal)().range(Dt),Ft=(0,T.pie)().value(function(It){return It[1]})(Object.entries(st)),Pt=(0,T.arc)().innerRadius(0).outerRadius(K);tt.selectAll("mySlices").data(Ft).enter().append("path").attr("d",Pt).attr("fill",function(It){return zt(It.data[0])}).attr("class","pieCircle"),tt.selectAll("mySlices").data(Ft).enter().append("text").text(function(It){return(It.data[1]/ot*100).toFixed(0)+"%"}).attr("transform",function(It){return"translate("+Pt.centroid(It)+")"}).style("text-anchor","middle").attr("class","slice"),tt.append("text").text(k.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var Yt=tt.selectAll(".legend").data(zt.domain()).enter().append("g").attr("class","legend").attr("transform",function(It,ae){return"translate(216,"+(22*ae-22*zt.domain().length/2)+")"});Yt.append("rect").attr("width",18).attr("height",18).style("fill",zt).style("stroke",zt),Yt.data(Ft).append("text").attr("x",22).attr("y",14).text(function(It){return k.db.getShowData()||Oi.showData||Oi.pie.showData?It.data[0]+" ["+It.data[1]+"]":It.data[0]})}catch(It){_.error("Error while rendering info diagram"),_.error(It)}}};var D1=h(3176),Yu=h.n(D1),Lc=[],Pi={},So={},Ao={},Rs={};const O1={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){Br.parseDirective(this,l,o,y)},getConfig:function(){return Bt().req},addRequirement:function(l,o){return So[l]===void 0&&(So[l]={name:l,type:o,id:Pi.id,text:Pi.text,risk:Pi.risk,verifyMethod:Pi.verifyMethod}),Pi={},So[l]},getRequirements:function(){return So},setNewReqId:function(l){Pi!==void 0&&(Pi.id=l)},setNewReqText:function(l){Pi!==void 0&&(Pi.text=l)},setNewReqRisk:function(l){Pi!==void 0&&(Pi.risk=l)},setNewReqVerifyMethod:function(l){Pi!==void 0&&(Pi.verifyMethod=l)},setAccTitle:Tn,getAccTitle:Bn,setAccDescription:Xn,getAccDescription:fi,addElement:function(l){return Rs[l]===void 0&&(Rs[l]={name:l,type:Ao.type,docRef:Ao.docRef},_.info("Added new requirement: ",l)),Ao={},Rs[l]},getElements:function(){return Rs},setNewElementType:function(l){Ao!==void 0&&(Ao.type=l)},setNewElementDocRef:function(l){Ao!==void 0&&(Ao.docRef=l)},addRelationship:function(l,o,y){Lc.push({type:l,src:o,dst:y})},getRelationships:function(){return Lc},clear:function(){Lc=[],Pi={},So={},Ao={},Rs={},re()}};var ju={CONTAINS:"contains",ARROW:"arrow"};const Wa=ju;var zn={},$u=0,R1=function(l,o){return l.insert("rect","#"+o).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",zn.rect_min_width+"px").attr("height",zn.rect_min_height+"px")},Co=function(l,o,y){var k=zn.rect_min_width/2,E=l.append("text").attr("class","req reqLabel reqTitle").attr("id",o).attr("x",k).attr("y",zn.rect_padding).attr("dominant-baseline","hanging"),L=0;y.forEach(function(D){L==0?E.append("tspan").attr("text-anchor","middle").attr("x",zn.rect_min_width/2).attr("dy",0).text(D):E.append("tspan").attr("text-anchor","middle").attr("x",zn.rect_min_width/2).attr("dy",.75*zn.line_height).text(D),L++});var N=1.5*zn.rect_padding+L*zn.line_height*.75;return l.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",zn.rect_min_width).attr("y1",N).attr("y2",N),{titleNode:E,y:N}},B1=function(l,o,y,k){var E=l.append("text").attr("class","req reqLabel").attr("id",o).attr("x",zn.rect_padding).attr("y",k).attr("dominant-baseline","hanging"),L=0,N=[];return y.forEach(function(D){for(var P=D.length;P>30&&L<3;){var U=D.substring(0,30);P=(D=D.substring(30,D.length)).length,N[N.length]=U,L++}if(L==3){var K=N[N.length-1];N[N.length-1]=K.substring(0,K.length-4)+"..."}else N[N.length]=D;L=0}),N.forEach(function(D){E.append("tspan").attr("x",zn.rect_padding).attr("dy",zn.line_height).text(D)}),E},Bs=function(l){return l.replace(/\s/g,"").replace(/\./g,"_")};const vd={draw:function(l,o,y,k){zn=Bt().requirement,k.db.clear(),k.parser.parse(l);var E,L=zn.securityLevel;L==="sandbox"&&(E=(0,T.select)("#i"+o));var N=L==="sandbox"?(0,T.select)(E.nodes()[0].contentDocument.body):(0,T.select)("body"),D=(L==="sandbox"&&E.nodes()[0].contentDocument,N.select("[id='".concat(o,"']")));(function(Yt,It){var ae=Yt.append("defs").append("marker").attr("id",ju.CONTAINS+"_line_ending").attr("refX",0).attr("refY",It.line_height/2).attr("markerWidth",It.line_height).attr("markerHeight",It.line_height).attr("orient","auto").append("g");ae.append("circle").attr("cx",It.line_height/2).attr("cy",It.line_height/2).attr("r",It.line_height/2).attr("fill","none"),ae.append("line").attr("x1",0).attr("x2",It.line_height).attr("y1",It.line_height/2).attr("y2",It.line_height/2).attr("stroke-width",1),ae.append("line").attr("y1",0).attr("y2",It.line_height).attr("x1",It.line_height/2).attr("x2",It.line_height/2).attr("stroke-width",1),Yt.append("defs").append("marker").attr("id",ju.ARROW+"_line_ending").attr("refX",It.line_height).attr("refY",.5*It.line_height).attr("markerWidth",It.line_height).attr("markerHeight",It.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|
L`.concat(It.line_height,",").concat(It.line_height/2,`
|
|
M`).concat(It.line_height,",").concat(It.line_height/2,`
|
|
L0,`).concat(It.line_height)).attr("stroke-width",1)})(D,zn);var P,U,K,tt=new(mi()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:zn.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),st=k.db.getRequirements(),ot=k.db.getElements(),Lt=k.db.getRelationships();P=st,U=tt,K=D,Object.keys(P).forEach(function(Yt){var It=P[Yt];Yt=Bs(Yt),_.info("Added new requirement: ",Yt);var ae=K.append("g").attr("id",Yt),Se=R1(ae,"req-"+Yt),pe=Co(ae,Yt+"_title",["<<".concat(It.type,">>"),"".concat(It.name)]);B1(ae,Yt+"_body",["Id: ".concat(It.id),"Text: ".concat(It.text),"Risk: ".concat(It.risk),"Verification: ".concat(It.verifyMethod)],pe.y);var Ee=Se.node().getBBox();U.setNode(Yt,{width:Ee.width,height:Ee.height,shape:"rect",id:Yt})}),function(Yt,It,ae){Object.keys(Yt).forEach(function(Se){var pe=Yt[Se],Ee=Bs(Se),$t=ae.append("g").attr("id",Ee),fe="element-"+Ee,Xt=R1($t,fe),ce=Co($t,fe+"_title",["<<Element>>","".concat(Se)]);B1($t,fe+"_body",["Type: ".concat(pe.type||"Not Specified"),"Doc Ref: ".concat(pe.docRef||"None")],ce.y);var de=Xt.node().getBBox();It.setNode(Ee,{width:de.width,height:de.height,shape:"rect",id:Ee})})}(ot,tt,D),function(Yt,It){Yt.forEach(function(ae){var Se=Bs(ae.src),pe=Bs(ae.dst);It.setEdge(Se,pe,{relationship:ae})})}(Lt,tt),ks().layout(tt),function(Yt,It){It.nodes().forEach(function(ae){ae!==void 0&&It.node(ae)!==void 0&&(Yt.select("#"+ae),Yt.select("#"+ae).attr("transform","translate("+(It.node(ae).x-It.node(ae).width/2)+","+(It.node(ae).y-It.node(ae).height/2)+" )"))})}(D,tt),Lt.forEach(function(Yt){(function(It,ae,Se,pe,Ee){var $t=Se.edge(Bs(ae.src),Bs(ae.dst)),fe=(0,T.line)().x(function(ce){return ce.x}).y(function(ce){return ce.y}),Xt=It.insert("path","#"+pe).attr("class","er relationshipLine").attr("d",fe($t.points)).attr("fill","none");ae.type==Ee.db.Relationships.CONTAINS?Xt.attr("marker-start","url("+cr.getUrl(zn.arrowMarkerAbsolute)+"#"+ae.type+"_line_ending)"):(Xt.attr("stroke-dasharray","10,7"),Xt.attr("marker-end","url("+cr.getUrl(zn.arrowMarkerAbsolute)+"#"+Wa.ARROW+"_line_ending)")),function(ce,de,ue,Re){var Le=de.node().getTotalLength(),$e=de.node().getPointAtLength(.5*Le),kr="rel"+$u;$u++;var Ye=ce.append("text").attr("class","req relationshipLabel").attr("id",kr).attr("x",$e.x).attr("y",$e.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(Re).node().getBBox();ce.insert("rect","#"+kr).attr("class","req reqLabelBox").attr("x",$e.x-Ye.width/2).attr("y",$e.y-Ye.height/2).attr("width",Ye.width).attr("height",Ye.height).attr("fill","white").attr("fill-opacity","85%")}(It,Xt,0,"<<".concat(ae.type,">>"))})(D,Yt,tt,o,k)});var Dt=zn.rect_padding,zt=D.node().getBBox(),Ft=zt.width+2*Dt,Pt=zt.height+2*Dt;Ji(D,0,Ft,zn.useMaxWidth),D.attr("viewBox","".concat(zt.x-Dt," ").concat(zt.y-Dt," ").concat(Ft," ").concat(Pt)),Sn(k.db,D,o)}};var Hu,Io=h(6876),F1=h.n(Io),ss=void 0,no={},Ga=[],kl=!1,qu=function(l,o,y,k){var E=no[l];E&&o===E.name&&y==null||(y!=null&&y.text!=null||(y={text:o,wrap:null,type:k}),k!=null&&y.text!=null||(y={text:o,wrap:null,type:k}),no[l]={name:o,description:y.text,wrap:y.wrap===void 0&&io()||!!y.wrap,prevActor:ss,links:{},properties:{},actorCnt:null,rectData:null,type:k||"participant"},ss&&no[ss]&&(no[ss].nextActor=l),ss=l)},xd=function(l){var o,y=0;for(o=0;o<Ga.length;o++)Ga[o].type===ao.ACTIVE_START&&Ga[o].from.actor===l&&y++,Ga[o].type===ao.ACTIVE_END&&Ga[o].from.actor===l&&y--;return y},Yn=function(l,o){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},k=arguments.length>3?arguments[3]:void 0;if(k===ao.ACTIVE_END){var E=xd(l.actor);if(E<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 Ga.push({from:l,to:o,message:y.text,wrap:y.wrap===void 0&&io()||!!y.wrap,type:k}),!0},cs=function(l){return no[l]},io=function(){return Hu!==void 0?Hu:Bt().sequence.wrap},ao={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},Wu=function(l,o,y){y.text,y.wrap===void 0&&io()||y.wrap;var k=[].concat(l,l);Ga.push({from:k[0],to:k[1],message:y.text,wrap:y.wrap===void 0&&io()||!!y.wrap,type:ao.NOTE,placement:o})},Gu=function(l,o){var y=cs(l);try{var k=dn(o.text,Bt());k=(k=k.replace(/&/g,"&")).replace(/=/g,"="),El(y,JSON.parse(k))}catch(E){_.error("error while parsing actor link text",E)}};function El(l,o){if(l.links==null)l.links=o;else for(var y in o)l.links[y]=o[y]}var qi=function(l,o){var y=cs(l);try{var k=dn(o.text,Bt());Mc(y,JSON.parse(k))}catch(E){_.error("error while parsing actor properties text",E)}};function Mc(l,o){if(l.properties==null)l.properties=o;else for(var y in o)l.properties[y]=o[y]}var Vu=function(l,o){var y=cs(l),k=document.getElementById(o.text);try{var E=k.innerHTML,L=JSON.parse(E);L.properties&&Mc(y,L.properties),L.links&&El(y,L.links)}catch(N){_.error("error while parsing actor details text",N)}};const Dc={addActor:qu,addMessage:function(l,o,y,k){Ga.push({from:l,to:o,message:y.text,wrap:y.wrap===void 0&&io()||!!y.wrap,answer:k})},addSignal:Yn,addLinks:Gu,addDetails:Vu,addProperties:qi,autoWrap:io,setWrap:function(l){Hu=l},enableSequenceNumbers:function(){kl=!0},disableSequenceNumbers:function(){kl=!1},showSequenceNumbers:function(){return kl},getMessages:function(){return Ga},getActors:function(){return no},getActor:cs,getActorKeys:function(){return Object.keys(no)},getActorProperty:function(l,o){if(l!==void 0&&l.properties!==void 0)return l.properties[o]},getAccTitle:Bn,getDiagramTitle:gn,setDiagramTitle:Sa,parseDirective:function(l,o,y){Br.parseDirective(this,l,o,y)},getConfig:function(){return Bt().sequence},clear:function(){no={},Ga=[],kl=!1,re()},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:ao,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:Wu,setAccTitle:Tn,apply:function l(o){if(o instanceof Array)o.forEach(function(y){l(y)});else switch(o.type){case"sequenceIndex":Ga.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":qu(o.actor,o.actor,o.description,"participant");break;case"addActor":qu(o.actor,o.actor,o.description,"actor");break;case"activeStart":case"activeEnd":Yn(o.actor,void 0,void 0,o.signalType);break;case"addNote":Wu(o.actor,o.placement,o.text);break;case"addLinks":Gu(o.actor,o.text);break;case"addALink":(function(y,k){var E=cs(y);try{var L={},N=dn(k.text,Bt()),D=N.indexOf("@"),P=(N=(N=N.replace(/&/g,"&")).replace(/=/g,"=")).slice(0,D-1).trim(),U=N.slice(D+1).trim();L[P]=U,El(E,L)}catch(K){_.error("error while parsing actor link text",K)}})(o.actor,o.text);break;case"addProperties":qi(o.actor,o.text);break;case"addDetails":Vu(o.actor,o.text);break;case"addMessage":Yn(o.from,o.to,o.msg,o.signalType);break;case"loopStart":Yn(void 0,void 0,o.loopText,o.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":Yn(void 0,void 0,void 0,o.signalType);break;case"rectStart":Yn(void 0,void 0,o.color,o.signalType);break;case"optStart":Yn(void 0,void 0,o.optText,o.signalType);break;case"altStart":case"else":Yn(void 0,void 0,o.altText,o.signalType);break;case"setAccTitle":Tn(o.text);break;case"parStart":case"and":Yn(void 0,void 0,o.parText,o.signalType);break;case"criticalStart":Yn(void 0,void 0,o.criticalText,o.signalType);break;case"option":Yn(void 0,void 0,o.optionText,o.signalType);break;case"breakStart":Yn(void 0,void 0,o.breakText,o.signalType)}},setAccDescription:Xn,getAccDescription:fi};var Fs=[],Ps=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},P1=function(l,o){var y;y=function(){var k=document.querySelectorAll(l);k.length!==0&&(k[0].addEventListener("mouseover",function(){Oc("actor"+o+"_popup")}),k[0].addEventListener("mouseout",function(){kd("actor"+o+"_popup")}))},Fs.push(y)},wd=function(l,o,y,k){var E=l.append("image");E.attr("x",o),E.attr("y",y);var L=(0,ii.N)(k);E.attr("xlink:href",L)},Us=function(l,o,y,k){var E=l.append("use");E.attr("x",o),E.attr("y",y);var L=(0,ii.N)(k);E.attr("xlink:href","#"+L)},Oc=function(l){var o=document.getElementById(l);o!=null&&(o.style.display="block")},kd=function(l){var o=document.getElementById(l);o!=null&&(o.style.display="none")},Rc=function(l,o){var y=0,k=0,E=o.text.split(cr.lineBreakRegex),L=[],N=0,D=function(){return o.y};if(o.valign!==void 0&&o.textMargin!==void 0&&o.textMargin>0)switch(o.valign){case"top":case"start":D=function(){return Math.round(o.y+o.textMargin)};break;case"middle":case"center":D=function(){return Math.round(o.y+(y+k+o.textMargin)/2)};break;case"bottom":case"end":D=function(){return Math.round(o.y+(y+k+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 P=0;P<E.length;P++){var U=E[P];o.textMargin!==void 0&&o.textMargin===0&&o.fontSize!==void 0&&(N=P*o.fontSize);var K=l.append("text");if(K.attr("x",o.x),K.attr("y",D()),o.anchor!==void 0&&K.attr("text-anchor",o.anchor).attr("dominant-baseline",o.dominantBaseline).attr("alignment-baseline",o.alignmentBaseline),o.fontFamily!==void 0&&K.style("font-family",o.fontFamily),o.fontSize!==void 0&&K.style("font-size",o.fontSize),o.fontWeight!==void 0&&K.style("font-weight",o.fontWeight),o.fill!==void 0&&K.attr("fill",o.fill),o.class!==void 0&&K.attr("class",o.class),o.dy!==void 0?K.attr("dy",o.dy):N!==0&&K.attr("dy",N),o.tspan){var tt=K.append("tspan");tt.attr("x",o.x),o.fill!==void 0&&tt.attr("fill",o.fill),tt.text(U)}else K.text(U);o.valign!==void 0&&o.textMargin!==void 0&&o.textMargin>0&&(k+=(K._groups||K)[0][0].getBBox().height,y=k),L.push(K)}return L},U1=function(l,o){var y=l.append("polygon");return y.attr("points",function(k,E,L,N,D){return k+","+E+" "+(k+L)+","+E+" "+(k+L)+","+(E+N-7)+" "+(k+L-8.4)+","+(E+N)+" "+k+","+(E+N)}(o.x,o.y,o.width,o.height)),y.attr("class","labelBox"),o.y=o.y+o.height/2,Rc(l,o),y},Wi=-1,Zu=function(l,o){l.selectAll&&l.selectAll(".actor-line").attr("class","200").attr("y2",o-55)},z1=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},Ed=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},ls=function(){function l(E,L,N,D,P,U,K){k(L.append("text").attr("x",N+P/2).attr("y",D+U/2+5).style("text-anchor","middle").text(E),K)}function o(E,L,N,D,P,U,K,tt){for(var st=tt.actorFontSize,ot=tt.actorFontFamily,Lt=tt.actorFontWeight,Dt=st&&st.replace?st.replace("px",""):st,zt=E.split(cr.lineBreakRegex),Ft=0;Ft<zt.length;Ft++){var Pt=Ft*Dt-Dt*(zt.length-1)/2,Yt=L.append("text").attr("x",N+P/2).attr("y",D).style("text-anchor","middle").style("font-size",st).style("font-weight",Lt).style("font-family",ot);Yt.append("tspan").attr("x",N+P/2).attr("dy",Pt).text(zt[Ft]),Yt.attr("y",D+U/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),k(Yt,K)}}function y(E,L,N,D,P,U,K,tt){var st=L.append("switch"),ot=st.append("foreignObject").attr("x",N).attr("y",D).attr("width",P).attr("height",U).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(E),o(E,st,N,D,P,U,K,tt),k(ot,K)}function k(E,L){for(var N in L)L.hasOwnProperty(N)&&E.attr(N,L[N])}return function(E){return E.textPlacement==="fo"?y:E.textPlacement==="old"?l:o}}(),Td=function(){function l(E,L,N,D,P,U,K){k(L.append("text").attr("x",N).attr("y",D).style("text-anchor","start").text(E),K)}function o(E,L,N,D,P,U,K,tt){for(var st=tt.actorFontSize,ot=tt.actorFontFamily,Lt=tt.actorFontWeight,Dt=E.split(cr.lineBreakRegex),zt=0;zt<Dt.length;zt++){var Ft=zt*st-st*(Dt.length-1)/2,Pt=L.append("text").attr("x",N).attr("y",D).style("text-anchor","start").style("font-size",st).style("font-weight",Lt).style("font-family",ot);Pt.append("tspan").attr("x",N).attr("dy",Ft).text(Dt[zt]),Pt.attr("y",D+U/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),k(Pt,K)}}function y(E,L,N,D,P,U,K,tt){var st=L.append("switch"),ot=st.append("foreignObject").attr("x",N).attr("y",D).attr("width",P).attr("height",U).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(E),o(E,st,N,D,0,U,K,tt),k(ot,K)}function k(E,L){for(var N in L)L.hasOwnProperty(N)&&E.attr(N,L[N])}return function(E){return E.textPlacement==="fo"?y:E.textPlacement==="old"?l:o}}();const Sd=Ps,Ad=function(l,o,y){switch(o.type){case"actor":return function(k,E,L){var N=E.x+E.width/2;E.y===0&&(Wi++,k.append("line").attr("id","actor"+Wi).attr("x1",N).attr("y1",80).attr("x2",N).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var D=k.append("g");D.attr("class","actor-man");var P={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};P.x=E.x,P.y=E.y,P.fill="#eaeaea",P.width=E.width,P.height=E.height,P.class="actor",P.rx=3,P.ry=3,D.append("line").attr("id","actor-man-torso"+Wi).attr("x1",N).attr("y1",E.y+25).attr("x2",N).attr("y2",E.y+45),D.append("line").attr("id","actor-man-arms"+Wi).attr("x1",N-18).attr("y1",E.y+33).attr("x2",N+18).attr("y2",E.y+33),D.append("line").attr("x1",N-18).attr("y1",E.y+60).attr("x2",N).attr("y2",E.y+45),D.append("line").attr("x1",N).attr("y1",E.y+45).attr("x2",N+16).attr("y2",E.y+60);var U=D.append("circle");U.attr("cx",E.x+E.width/2),U.attr("cy",E.y+10),U.attr("r",15),U.attr("width",E.width),U.attr("height",E.height);var K=D.node().getBBox();return E.height=K.height,ls(L)(E.description,D,P.x,P.y+35,P.width,P.height,{class:"actor"},L),E.height}(l,o,y);case"participant":return function(k,E,L){var N=E.x+E.width/2,D=k.append("g"),P=D;E.y===0&&(Wi++,P.append("line").attr("id","actor"+Wi).attr("x1",N).attr("y1",5).attr("x2",N).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),P=D.append("g"),E.actorCnt=Wi,E.links!=null&&(P.attr("id","root-"+Wi),P1("#root-"+Wi,Wi)));var U={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},K="actor";E.properties!=null&&E.properties.class?K=E.properties.class:U.fill="#eaeaea",U.x=E.x,U.y=E.y,U.width=E.width,U.height=E.height,U.class=K,U.rx=3,U.ry=3;var tt=Ps(P,U);if(E.rectData=U,E.properties!=null&&E.properties.icon){var st=E.properties.icon.trim();st.charAt(0)==="@"?Us(P,U.x+U.width-20,U.y+10,st.substr(1)):wd(P,U.x+U.width-20,U.y+10,st)}ls(L)(E.description,P,U.x,U.y,U.width,U.height,{class:"actor"},L);var ot=E.height;if(tt.node){var Lt=tt.node().getBBox();E.height=Lt.height,ot=Lt.height}return ot}(l,o,y)}},Xu=function(l,o,y,k,E){if(o.links===void 0||o.links===null||Object.keys(o.links).length===0)return{height:0,width:0};var L=o.links,N=o.actorCnt,D=o.rectData,P="none";E&&(P="block !important");var U=l.append("g");U.attr("id","actor"+N+"_popup"),U.attr("class","actorPopupMenu"),U.attr("display",P),P1("#actor"+N+"_popup",N);var K="";D.class!==void 0&&(K=" "+D.class);var tt=D.width>y?D.width:y,st=U.append("rect");if(st.attr("class","actorPopupMenuPanel"+K),st.attr("x",D.x),st.attr("y",D.height),st.attr("fill",D.fill),st.attr("stroke",D.stroke),st.attr("width",tt),st.attr("height",D.height),st.attr("rx",D.rx),st.attr("ry",D.ry),L!=null){var ot=20;for(var Lt in L){var Dt=U.append("a"),zt=(0,ii.N)(L[Lt]);Dt.attr("xlink:href",zt),Dt.attr("target","_blank"),Td(k)(Lt,Dt,D.x+10,D.height+ot,tt,20,{class:"actor"},k),ot+=30}}return st.attr("height",ot),{height:D.height+ot,width:tt}},Tl=function(l){return l.append("g")},Ku=function(l,o,y,k,E){var L={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},N=o.anchored;L.x=o.startx,L.y=o.starty,L.class="activation"+E%3,L.width=o.stopx-o.startx,L.height=y-o.starty,Ps(N,L)},zs=function(l,o,y,k){var E=k.boxMargin,L=k.boxTextMargin,N=k.labelBoxHeight,D=k.labelBoxWidth,P=k.messageFontFamily,U=k.messageFontSize,K=k.messageFontWeight,tt=l.append("g"),st=function(Dt,zt,Ft,Pt){return tt.append("line").attr("x1",Dt).attr("y1",zt).attr("x2",Ft).attr("y2",Pt).attr("class","loopLine")};st(o.startx,o.starty,o.stopx,o.starty),st(o.stopx,o.starty,o.stopx,o.stopy),st(o.startx,o.stopy,o.stopx,o.stopy),st(o.startx,o.starty,o.startx,o.stopy),o.sections!==void 0&&o.sections.forEach(function(Dt){st(o.startx,Dt.y,o.stopx,Dt.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=P,ot.fontSize=U,ot.fontWeight=K,ot.anchor="middle",ot.valign="middle",ot.tspan=!1,ot.width=D||50,ot.height=N||20,ot.textMargin=L,ot.class="labelText",U1(tt,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+D/2+(o.stopx-o.startx)/2,ot.y=o.starty+E+L,ot.anchor="middle",ot.valign="middle",ot.textMargin=L,ot.class="loopText",ot.fontFamily=P,ot.fontSize=U,ot.fontWeight=K,ot.wrap=!0;var Lt=Rc(tt,ot);return o.sectionTitles!==void 0&&o.sectionTitles.forEach(function(Dt,zt){if(Dt.message){ot.text=Dt.message,ot.x=o.startx+(o.stopx-o.startx)/2,ot.y=o.sections[zt].y+E+L,ot.class="loopText",ot.anchor="middle",ot.valign="middle",ot.tspan=!1,ot.fontFamily=P,ot.fontSize=U,ot.fontWeight=K,ot.wrap=o.wrap,Lt=Rc(tt,ot);var Ft=Math.round(Lt.map(function(Pt){return(Pt._groups||Pt)[0][0].getBBox().height}).reduce(function(Pt,Yt){return Pt+Yt}));o.sections[zt].height+=Ft-(E+L)}}),o.height=Math.round(o.stopy-o.starty),tt},Cd=function(l,o){Ps(l,{x:o.startx,y:o.starty,width:o.stopx-o.startx,height:o.stopy-o.starty,fill:o.fill,class:"rect"}).lower()},Id=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")},Nd=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")},Ld=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)},Y1=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")},Ju=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")},j1=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")},$1=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")},ea=z1,Sl=Ed;ii.N;var ge={},hr={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,q1(Bt())},updateVal:function(l,o,y,k){l[o]===void 0?l[o]=y:l[o]=k(y,l[o])},updateBounds:function(l,o,y,k){var E=this,L=0;function N(D){return function(P){L++;var U=E.sequenceItems.length-L+1;E.updateVal(P,"starty",o-U*ge.boxMargin,Math.min),E.updateVal(P,"stopy",k+U*ge.boxMargin,Math.max),E.updateVal(hr.data,"startx",l-U*ge.boxMargin,Math.min),E.updateVal(hr.data,"stopx",y+U*ge.boxMargin,Math.max),D!=="activation"&&(E.updateVal(P,"startx",l-U*ge.boxMargin,Math.min),E.updateVal(P,"stopx",y+U*ge.boxMargin,Math.max),E.updateVal(hr.data,"starty",o-U*ge.boxMargin,Math.min),E.updateVal(hr.data,"stopy",k+U*ge.boxMargin,Math.max))}}this.sequenceItems.forEach(N()),this.activations.forEach(N("activation"))},insert:function(l,o,y,k){var E=Math.min(l,y),L=Math.max(l,y),N=Math.min(o,k),D=Math.max(o,k);this.updateVal(hr.data,"startx",E,Math.min),this.updateVal(hr.data,"starty",N,Math.min),this.updateVal(hr.data,"stopx",L,Math.max),this.updateVal(hr.data,"stopy",D,Math.max),this.updateBounds(E,N,L,D)},newActivation:function(l,o,y){var k=y[l.from.actor],E=oo(l.from.actor).length||0,L=k.x+k.width/2+(E-1)*ge.activationWidth/2;this.activations.push({startx:L,starty:this.verticalPos+2,stopx:L+ge.activationWidth,stopy:void 0,actor:l.from.actor,anchored:Tl(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:hr.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}}},Ys=function(l){return{fontFamily:l.messageFontFamily,fontSize:l.messageFontSize,fontWeight:l.messageFontWeight}},js=function(l){return{fontFamily:l.noteFontFamily,fontSize:l.noteFontSize,fontWeight:l.noteFontWeight}},Qu=function(l){return{fontFamily:l.actorFontFamily,fontSize:l.actorFontSize,fontWeight:l.actorFontWeight}},th=function(l,o,y,k,E,L){if(E.hideUnusedParticipants===!0){var N=new Set;L.forEach(function(ot){N.add(ot.from),N.add(ot.to)}),y=y.filter(function(ot){return N.has(ot)})}for(var D=0,P=0,U=0,K=0;K<y.length;K++){var tt=o[y[K]];tt.width=tt.width||ge.width,tt.height=Math.max(tt.height||ge.height,ge.height),tt.margin=tt.margin||ge.actorMargin,tt.x=D+P,tt.y=k;var st=Ad(l,tt,ge);U=Math.max(U,st),hr.insert(tt.x,k,tt.x+tt.width,tt.height),D+=tt.width,P+=tt.margin,hr.models.addActor(tt)}hr.bumpVerticalPos(U)},H1=function(l,o,y,k){for(var E=0,L=0,N=0;N<y.length;N++){var D=o[y[N]],P=Md(D),U=Xu(l,D,P,ge,ge.forceMenus);U.height>E&&(E=U.height),U.width+D.x>L&&(L=U.width+D.x)}return{maxHeight:E,maxWidth:L}},q1=function(l){ie(ge,l),l.fontFamily&&(ge.actorFontFamily=ge.noteFontFamily=ge.messageFontFamily=l.fontFamily),l.fontSize&&(ge.actorFontSize=ge.noteFontSize=ge.messageFontSize=l.fontSize),l.fontWeight&&(ge.actorFontWeight=ge.noteFontWeight=ge.messageFontWeight=l.fontWeight)},oo=function(l){return hr.activations.filter(function(o){return o.actor===l})},eh=function(l,o){var y=o[l],k=oo(l);return[k.reduce(function(E,L){return Math.min(E,L.startx)},y.x+y.width/2),k.reduce(function(E,L){return Math.max(E,L.stopx)},y.x+y.width/2)]};function so(l,o,y,k,E){hr.bumpVerticalPos(y);var L=k;if(o.id&&o.message&&l[o.id]){var N=l[o.id].width,D=Ys(ge);o.message=Vr.wrapLabel("[".concat(o.message,"]"),N-2*ge.wrapPadding,D),o.width=N,o.wrap=!0;var P=Vr.calculateTextDimensions(o.message,D),U=Math.max(P.height,ge.labelBoxHeight);L=k+U,_.debug("".concat(U," - ").concat(o.message))}E(o),hr.bumpVerticalPos(L)}var Md=function(l){var o=0,y=Qu(ge);for(var k in l.links){var E=Vr.calculateTextDimensions(k,y).width+2*ge.wrapPadding+2*ge.boxMargin;o<E&&(o=E)}return o};const Bc={bounds:hr,drawActors:th,drawActorsPopup:H1,setConf:q1,draw:function(l,o,y,k){ge=Bt().sequence;var E,L=Bt().securityLevel;L==="sandbox"&&(E=(0,T.select)("#i"+o));var N=L==="sandbox"?(0,T.select)(E.nodes()[0].contentDocument.body):(0,T.select)("body");L==="sandbox"&&E.nodes()[0].contentDocument,hr.init(),_.debug(k.db);var D=L==="sandbox"?N.select('[id="'.concat(o,'"]')):(0,T.select)('[id="'.concat(o,'"]')),P=k.db.getActors(),U=k.db.getActorKeys(),K=k.db.getMessages(),tt=k.db.getDiagramTitle(),st=function(Ee,$t,fe){var Xt={};return $t.forEach(function(ce){if(Ee[ce.to]&&Ee[ce.from]){var de=Ee[ce.to];if(ce.placement===fe.db.PLACEMENT.LEFTOF&&!de.prevActor||ce.placement===fe.db.PLACEMENT.RIGHTOF&&!de.nextActor)return;var ue=ce.placement!==void 0,Re=!ue,Le=ue?js(ge):Ys(ge),$e=ce.wrap?Vr.wrapLabel(ce.message,ge.width-2*ge.wrapPadding,Le):ce.message,kr=Vr.calculateTextDimensions($e,Le).width+2*ge.wrapPadding;Re&&ce.from===de.nextActor?Xt[ce.to]=Math.max(Xt[ce.to]||0,kr):Re&&ce.from===de.prevActor?Xt[ce.from]=Math.max(Xt[ce.from]||0,kr):Re&&ce.from===ce.to?(Xt[ce.from]=Math.max(Xt[ce.from]||0,kr/2),Xt[ce.to]=Math.max(Xt[ce.to]||0,kr/2)):ce.placement===fe.db.PLACEMENT.RIGHTOF?Xt[ce.from]=Math.max(Xt[ce.from]||0,kr):ce.placement===fe.db.PLACEMENT.LEFTOF?Xt[de.prevActor]=Math.max(Xt[de.prevActor]||0,kr):ce.placement===fe.db.PLACEMENT.OVER&&(de.prevActor&&(Xt[de.prevActor]=Math.max(Xt[de.prevActor]||0,kr/2)),de.nextActor&&(Xt[ce.from]=Math.max(Xt[ce.from]||0,kr/2)))}}),_.debug("maxMessageWidthPerActor:",Xt),Xt}(P,K,k);ge.height=function(Ee,$t){var fe=0;for(var Xt in Object.keys(Ee).forEach(function(Re){var Le=Ee[Re];Le.wrap&&(Le.description=Vr.wrapLabel(Le.description,ge.width-2*ge.wrapPadding,Qu(ge)));var $e=Vr.calculateTextDimensions(Le.description,Qu(ge));Le.width=Le.wrap?ge.width:Math.max(ge.width,$e.width+2*ge.wrapPadding),Le.height=Le.wrap?Math.max($e.height,ge.height):ge.height,fe=Math.max(fe,Le.height)}),$t){var ce=Ee[Xt];if(ce){var de=Ee[ce.nextActor];if(de){var ue=$t[Xt]+ge.actorMargin-ce.width/2-de.width/2;ce.margin=Math.max(ue,ge.actorMargin)}}}return Math.max(fe,ge.height)}(P,st),j1(D),Ju(D),$1(D),th(D,P,U,0,ge,K);var ot=function(Ee,$t,fe,Xt){var ce,de,ue,Re={},Le=[];return Ee.forEach(function($e){switch($e.id=Vr.random({length:10}),$e.type){case Xt.db.LINETYPE.LOOP_START:case Xt.db.LINETYPE.ALT_START:case Xt.db.LINETYPE.OPT_START:case Xt.db.LINETYPE.PAR_START:case Xt.db.LINETYPE.CRITICAL_START:case Xt.db.LINETYPE.BREAK_START:Le.push({id:$e.id,msg:$e.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case Xt.db.LINETYPE.ALT_ELSE:case Xt.db.LINETYPE.PAR_AND:case Xt.db.LINETYPE.CRITICAL_OPTION:$e.message&&(ce=Le.pop(),Re[ce.id]=ce,Re[$e.id]=ce,Le.push(ce));break;case Xt.db.LINETYPE.LOOP_END:case Xt.db.LINETYPE.ALT_END:case Xt.db.LINETYPE.OPT_END:case Xt.db.LINETYPE.PAR_END:case Xt.db.LINETYPE.CRITICAL_END:case Xt.db.LINETYPE.BREAK_END:ce=Le.pop(),Re[ce.id]=ce;break;case Xt.db.LINETYPE.ACTIVE_START:var kr=$t[$e.from?$e.from.actor:$e.to.actor],Ye=oo($e.from?$e.from.actor:$e.to.actor).length,ir=kr.x+kr.width/2+(Ye-1)*ge.activationWidth/2,br={startx:ir,stopx:ir+ge.activationWidth,actor:$e.from.actor,enabled:!0};hr.activations.push(br);break;case Xt.db.LINETYPE.ACTIVE_END:var We=hr.activations.map(function(Ve){return Ve.actor}).lastIndexOf($e.from.actor);delete hr.activations.splice(We,1)[0]}$e.placement!==void 0?(de=function(Ve,xr,bn){var yn=xr[Ve.from].x,$n=xr[Ve.to].x,mn=Ve.wrap&&Ve.message,xi=Vr.calculateTextDimensions(mn?Vr.wrapLabel(Ve.message,ge.width,js(ge)):Ve.message,js(ge)),pn={width:mn?ge.width:Math.max(ge.width,xi.width+2*ge.noteMargin),height:0,startx:xr[Ve.from].x,stopx:0,starty:0,stopy:0,message:Ve.message};return Ve.placement===bn.db.PLACEMENT.RIGHTOF?(pn.width=mn?Math.max(ge.width,xi.width):Math.max(xr[Ve.from].width/2+xr[Ve.to].width/2,xi.width+2*ge.noteMargin),pn.startx=yn+(xr[Ve.from].width+ge.actorMargin)/2):Ve.placement===bn.db.PLACEMENT.LEFTOF?(pn.width=Math.max(mn?ge.width:xr[Ve.from].width/2+xr[Ve.to].width/2,xi.width+2*ge.noteMargin),pn.startx=yn-pn.width+(xr[Ve.from].width-ge.actorMargin)/2):Ve.to===Ve.from?(xi=Vr.calculateTextDimensions(mn?Vr.wrapLabel(Ve.message,Math.max(ge.width,xr[Ve.from].width),js(ge)):Ve.message,js(ge)),pn.width=mn?Math.max(ge.width,xr[Ve.from].width):Math.max(xr[Ve.from].width,ge.width,xi.width+2*ge.noteMargin),pn.startx=yn+(xr[Ve.from].width-pn.width)/2):(pn.width=Math.abs(yn+xr[Ve.from].width/2-($n+xr[Ve.to].width/2))+ge.actorMargin,pn.startx=yn<$n?yn+xr[Ve.from].width/2-ge.actorMargin/2:$n+xr[Ve.to].width/2-ge.actorMargin/2),mn&&(pn.message=Vr.wrapLabel(Ve.message,pn.width-2*ge.wrapPadding,js(ge))),_.debug("NM:[".concat(pn.startx,",").concat(pn.stopx,",").concat(pn.starty,",").concat(pn.stopy,":").concat(pn.width,",").concat(pn.height,"=").concat(Ve.message,"]")),pn}($e,$t,Xt),$e.noteModel=de,Le.forEach(function(Ve){(ce=Ve).from=Math.min(ce.from,de.startx),ce.to=Math.max(ce.to,de.startx+de.width),ce.width=Math.max(ce.width,Math.abs(ce.from-ce.to))-ge.labelBoxWidth})):(ue=function(Ve,xr,bn){var yn=!1;if([bn.db.LINETYPE.SOLID_OPEN,bn.db.LINETYPE.DOTTED_OPEN,bn.db.LINETYPE.SOLID,bn.db.LINETYPE.DOTTED,bn.db.LINETYPE.SOLID_CROSS,bn.db.LINETYPE.DOTTED_CROSS,bn.db.LINETYPE.SOLID_POINT,bn.db.LINETYPE.DOTTED_POINT].includes(Ve.type)&&(yn=!0),!yn)return{};var $n=eh(Ve.from,xr),mn=eh(Ve.to,xr),xi=$n[0]<=mn[0]?1:0,pn=$n[0]<mn[0]?0:1,Da=$n.concat(mn),fa=Math.abs(mn[pn]-$n[xi]);Ve.wrap&&Ve.message&&(Ve.message=Vr.wrapLabel(Ve.message,Math.max(fa+2*ge.wrapPadding,ge.width),Ys(ge)));var li=Vr.calculateTextDimensions(Ve.message,Ys(ge));return{width:Math.max(Ve.wrap?0:li.width+2*ge.wrapPadding,fa+2*ge.wrapPadding,ge.width),height:0,startx:$n[xi],stopx:mn[pn],starty:0,stopy:0,message:Ve.message,type:Ve.type,wrap:Ve.wrap,fromBounds:Math.min.apply(null,Da),toBounds:Math.max.apply(null,Da)}}($e,$t,Xt),$e.msgModel=ue,ue.startx&&ue.stopx&&Le.length>0&&Le.forEach(function(Ve){if(ce=Ve,ue.startx===ue.stopx){var xr=$t[$e.from],bn=$t[$e.to];ce.from=Math.min(xr.x-ue.width/2,xr.x-xr.width/2,ce.from),ce.to=Math.max(bn.x+ue.width/2,bn.x+xr.width/2,ce.to),ce.width=Math.max(ce.width,Math.abs(ce.to-ce.from))-ge.labelBoxWidth}else ce.from=Math.min(ue.startx,ce.from),ce.to=Math.max(ue.stopx,ce.to),ce.width=Math.max(ce.width,ue.width)-ge.labelBoxWidth}))}),hr.activations=[],_.debug("Loop type widths:",Re),Re}(K,P,0,k);Id(D),Y1(D),Nd(D),Ld(D);var Lt=1,Dt=1,zt=Array();K.forEach(function(Ee){var $t,fe,Xt;switch(Ee.type){case k.db.LINETYPE.NOTE:fe=Ee.noteModel,function(de,ue){hr.bumpVerticalPos(ge.boxMargin),ue.height=ge.boxMargin,ue.starty=hr.getVerticalPos();var Re=Sl();Re.x=ue.startx,Re.y=ue.starty,Re.width=ue.width||ge.width,Re.class="note";var Le=de.append("g"),$e=Sd(Le,Re),kr=ea();kr.x=ue.startx,kr.y=ue.starty,kr.width=Re.width,kr.dy="1em",kr.text=ue.message,kr.class="noteText",kr.fontFamily=ge.noteFontFamily,kr.fontSize=ge.noteFontSize,kr.fontWeight=ge.noteFontWeight,kr.anchor=ge.noteAlign,kr.textMargin=ge.noteMargin,kr.valign="center";var Ye=Rc(Le,kr),ir=Math.round(Ye.map(function(br){return(br._groups||br)[0][0].getBBox().height}).reduce(function(br,We){return br+We}));$e.attr("height",ir+2*ge.noteMargin),ue.height+=ir+2*ge.noteMargin,hr.bumpVerticalPos(ir+2*ge.noteMargin),ue.stopy=ue.starty+ir+2*ge.noteMargin,ue.stopx=ue.startx+Re.width,hr.insert(ue.startx,ue.starty,ue.stopx,ue.stopy),hr.models.addNote(ue)}(D,fe);break;case k.db.LINETYPE.ACTIVE_START:hr.newActivation(Ee,D,P);break;case k.db.LINETYPE.ACTIVE_END:(function(de,ue){var Re=hr.endActivation(de);Re.starty+18>ue&&(Re.starty=ue-6,ue+=12),Ku(D,Re,ue,ge,oo(de.from.actor).length),hr.insert(Re.startx,ue-10,Re.stopx,ue)})(Ee,hr.getVerticalPos());break;case k.db.LINETYPE.LOOP_START:so(ot,Ee,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(de){return hr.newLoop(de)});break;case k.db.LINETYPE.LOOP_END:$t=hr.endLoop(),zs(D,$t,"loop",ge),hr.bumpVerticalPos($t.stopy-hr.getVerticalPos()),hr.models.addLoop($t);break;case k.db.LINETYPE.RECT_START:so(ot,Ee,ge.boxMargin,ge.boxMargin,function(de){return hr.newLoop(void 0,de.message)});break;case k.db.LINETYPE.RECT_END:$t=hr.endLoop(),Cd(D,$t),hr.models.addLoop($t),hr.bumpVerticalPos($t.stopy-hr.getVerticalPos());break;case k.db.LINETYPE.OPT_START:so(ot,Ee,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(de){return hr.newLoop(de)});break;case k.db.LINETYPE.OPT_END:$t=hr.endLoop(),zs(D,$t,"opt",ge),hr.bumpVerticalPos($t.stopy-hr.getVerticalPos()),hr.models.addLoop($t);break;case k.db.LINETYPE.ALT_START:so(ot,Ee,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(de){return hr.newLoop(de)});break;case k.db.LINETYPE.ALT_ELSE:so(ot,Ee,ge.boxMargin+ge.boxTextMargin,ge.boxMargin,function(de){return hr.addSectionToLoop(de)});break;case k.db.LINETYPE.ALT_END:$t=hr.endLoop(),zs(D,$t,"alt",ge),hr.bumpVerticalPos($t.stopy-hr.getVerticalPos()),hr.models.addLoop($t);break;case k.db.LINETYPE.PAR_START:so(ot,Ee,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(de){return hr.newLoop(de)});break;case k.db.LINETYPE.PAR_AND:so(ot,Ee,ge.boxMargin+ge.boxTextMargin,ge.boxMargin,function(de){return hr.addSectionToLoop(de)});break;case k.db.LINETYPE.PAR_END:$t=hr.endLoop(),zs(D,$t,"par",ge),hr.bumpVerticalPos($t.stopy-hr.getVerticalPos()),hr.models.addLoop($t);break;case k.db.LINETYPE.AUTONUMBER:Lt=Ee.message.start||Lt,Dt=Ee.message.step||Dt,Ee.message.visible?k.db.enableSequenceNumbers():k.db.disableSequenceNumbers();break;case k.db.LINETYPE.CRITICAL_START:so(ot,Ee,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(de){return hr.newLoop(de)});break;case k.db.LINETYPE.CRITICAL_OPTION:so(ot,Ee,ge.boxMargin+ge.boxTextMargin,ge.boxMargin,function(de){return hr.addSectionToLoop(de)});break;case k.db.LINETYPE.CRITICAL_END:$t=hr.endLoop(),zs(D,$t,"critical",ge),hr.bumpVerticalPos($t.stopy-hr.getVerticalPos()),hr.models.addLoop($t);break;case k.db.LINETYPE.BREAK_START:so(ot,Ee,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(de){return hr.newLoop(de)});break;case k.db.LINETYPE.BREAK_END:$t=hr.endLoop(),zs(D,$t,"break",ge),hr.bumpVerticalPos($t.stopy-hr.getVerticalPos()),hr.models.addLoop($t);break;default:try{(Xt=Ee.msgModel).starty=hr.getVerticalPos(),Xt.sequenceIndex=Lt,Xt.sequenceVisible=k.db.showSequenceNumbers();var ce=function(de,ue){hr.bumpVerticalPos(10);var Re,Le=ue.startx,$e=ue.stopx,kr=ue.message,Ye=cr.splitBreaks(kr).length,ir=Vr.calculateTextDimensions(kr,Ys(ge)),br=ir.height/Ye;ue.height+=br,hr.bumpVerticalPos(br);var We=ir.height-10,Ve=ir.width;if(Le===$e){Re=hr.getVerticalPos()+We,ge.rightAngles||(We+=ge.boxMargin,Re=hr.getVerticalPos()+We),We+=30;var xr=Math.max(Ve/2,ge.width/2);hr.insert(Le-xr,hr.getVerticalPos()-10+We,$e+xr,hr.getVerticalPos()+30+We)}else We+=ge.boxMargin,Re=hr.getVerticalPos()+We,hr.insert(Le,Re-10,$e,Re);return hr.bumpVerticalPos(We),ue.height+=We,ue.stopy=ue.starty+ue.height,hr.insert(ue.fromBounds,ue.starty,ue.toBounds,ue.stopy),Re}(0,Xt);zt.push({messageModel:Xt,lineStarty:ce}),hr.models.addMessage(Xt)}catch(de){_.error("error while drawing message",de)}}[k.db.LINETYPE.SOLID_OPEN,k.db.LINETYPE.DOTTED_OPEN,k.db.LINETYPE.SOLID,k.db.LINETYPE.DOTTED,k.db.LINETYPE.SOLID_CROSS,k.db.LINETYPE.DOTTED_CROSS,k.db.LINETYPE.SOLID_POINT,k.db.LINETYPE.DOTTED_POINT].includes(Ee.type)&&(Lt+=Dt)}),zt.forEach(function(Ee){return function($t,fe,Xt,ce){var de=fe.startx,ue=fe.stopx,Re=fe.starty,Le=fe.message,$e=fe.type,kr=fe.sequenceIndex,Ye=fe.sequenceVisible,ir=Vr.calculateTextDimensions(Le,Ys(ge)),br=ea();br.x=de,br.y=Re+10,br.width=ue-de,br.class="messageText",br.dy="1em",br.text=Le,br.fontFamily=ge.messageFontFamily,br.fontSize=ge.messageFontSize,br.fontWeight=ge.messageFontWeight,br.anchor=ge.messageAlign,br.valign="center",br.textMargin=ge.wrapPadding,br.tspan=!1,Rc($t,br);var We,Ve=ir.width;de===ue?We=ge.rightAngles?$t.append("path").attr("d","M ".concat(de,",").concat(Xt," H ").concat(de+Math.max(ge.width/2,Ve/2)," V ").concat(Xt+25," H ").concat(de)):$t.append("path").attr("d","M "+de+","+Xt+" C "+(de+60)+","+(Xt-10)+" "+(de+60)+","+(Xt+30)+" "+de+","+(Xt+20)):((We=$t.append("line")).attr("x1",de),We.attr("y1",Xt),We.attr("x2",ue),We.attr("y2",Xt)),$e===ce.db.LINETYPE.DOTTED||$e===ce.db.LINETYPE.DOTTED_CROSS||$e===ce.db.LINETYPE.DOTTED_POINT||$e===ce.db.LINETYPE.DOTTED_OPEN?(We.style("stroke-dasharray","3, 3"),We.attr("class","messageLine1")):We.attr("class","messageLine0");var xr="";ge.arrowMarkerAbsolute&&(xr=(xr=(xr=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),We.attr("stroke-width",2),We.attr("stroke","none"),We.style("fill","none"),$e!==ce.db.LINETYPE.SOLID&&$e!==ce.db.LINETYPE.DOTTED||We.attr("marker-end","url("+xr+"#arrowhead)"),$e!==ce.db.LINETYPE.SOLID_POINT&&$e!==ce.db.LINETYPE.DOTTED_POINT||We.attr("marker-end","url("+xr+"#filled-head)"),$e!==ce.db.LINETYPE.SOLID_CROSS&&$e!==ce.db.LINETYPE.DOTTED_CROSS||We.attr("marker-end","url("+xr+"#crosshead)"),(Ye||ge.showSequenceNumbers)&&(We.attr("marker-start","url("+xr+"#sequencenumber)"),$t.append("text").attr("x",de).attr("y",Xt+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(kr))}(D,Ee.messageModel,Ee.lineStarty,k)}),ge.mirrorActors&&(hr.bumpVerticalPos(2*ge.boxMargin),th(D,P,U,hr.getVerticalPos(),ge,K),hr.bumpVerticalPos(ge.boxMargin),Zu(D,hr.getVerticalPos()));var Ft=H1(D,P,U),Pt=hr.getBounds().bounds;_.debug("For line height fix Querying: #"+o+" .actor-line"),(0,T.selectAll)("#"+o+" .actor-line").attr("y2",Pt.stopy);var Yt=Pt.stopy-Pt.starty;Yt<Ft.maxHeight&&(Yt=Ft.maxHeight);var It=Yt+2*ge.diagramMarginY;ge.mirrorActors&&(It=It-ge.boxMargin+ge.bottomMarginAdj);var ae=Pt.stopx-Pt.startx;ae<Ft.maxWidth&&(ae=Ft.maxWidth);var Se=ae+2*ge.diagramMarginX;tt&&D.append("text").text(tt).attr("x",(Pt.stopx-Pt.startx)/2-2*ge.diagramMarginX).attr("y",-25),Ji(D,0,Se,ge.useMaxWidth);var pe=tt?40:0;D.attr("viewBox",Pt.startx-ge.diagramMarginX+" -"+(ge.diagramMarginY+pe)+" "+Se+" "+(It+pe)),Sn(k.db,D,o),_.debug("models:",hr.models)}};var Dd=h(3584),W1=h.n(Dd);function rh(l){return rh=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},rh(l)}var Al=function(l){return JSON.parse(JSON.stringify(l))},Cl=[],Od=function l(o,y,k){if(y.stmt==="relation")l(o,y.state1,!0),l(o,y.state2,!1);else if(y.stmt==="state"&&y.id==="[*]"&&(y.id=k?o.id+"_start":o.id+"_end",y.start=k),y.doc){var E=[],L=0,N=[];for(L=0;L<y.doc.length;L++)if(y.doc[L].type==="divider"){var D=Al(y.doc[L]);D.doc=Al(N),E.push(D),N=[]}else N.push(y.doc[L]);if(E.length>0&&N.length>0){var P={stmt:"state",id:uc(),type:"divider",doc:Al(N)};E.push(Al(P)),y.doc=E}y.doc.forEach(function(U){return l(y,U,!0)})}},Il={root:{relations:[],states:{},documents:{}}},Gi=Il.root,Nl=0,Ll=function(l,o,y,k,E){Gi.states[l]===void 0?Gi.states[l]={id:l,descriptions:[],type:o,doc:y,note:E}:(Gi.states[l].doc||(Gi.states[l].doc=y),Gi.states[l].type||(Gi.states[l].type=o)),k&&(_.info("Adding state ",l,k),typeof k=="string"&&ih(l,k.trim()),rh(k)==="object"&&k.forEach(function(L){return ih(l,L.trim())})),E&&(Gi.states[l].note=E,Gi.states[l].note.text=cr.sanitizeText(Gi.states[l].note.text,Bt()))},G1=function(l){Gi=(Il={root:{relations:[],states:{},documents:{}}}).root,Gi=Il.root,Nl=0,Z1=[],l||re()},nh=function(l,o,y){var k=l,E=o,L="default",N="default";l==="[*]"&&(k="start"+ ++Nl,L="start"),o==="[*]"&&(E="end"+Nl,N="end"),Ll(k,L),Ll(E,N),Gi.relations.push({id1:k,id2:E,title:cr.sanitizeText(y,Bt())})},ih=function(l,o){var y=Gi.states[l],k=o;k[0]===":"&&(k=k.substr(1).trim()),y.descriptions.push(cr.sanitizeText(k,Bt()))},V1=0,Z1=[],X1="TB";const co={parseDirective:function(l,o,y){Br.parseDirective(this,l,o,y)},getConfig:function(){return Bt().state},addState:Ll,clear:G1,getState:function(l){return Gi.states[l]},getStates:function(){return Gi.states},getRelations:function(){return Gi.relations},getClasses:function(){return Z1},getDirection:function(){return X1},addRelation:nh,getDividerId:function(){return"divider-id-"+ ++V1},setDirection:function(l){X1=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 = ",Il)},getRootDoc:function(){return Cl},setRootDoc:function(l){_.info("Setting root doc",l),Cl=l},getRootDocV2:function(){return Od({id:"root"},{id:"root",doc:Cl},!0),{id:"root",doc:Cl}},extract:function(l){var o;o=l.doc?l.doc:l,_.info(o),G1(!0),_.info("Extract",o),o.forEach(function(y){y.stmt==="state"&&Ll(y.id,y.type,y.doc,y.description,y.note),y.stmt==="relation"&&nh(y.state1.id,y.state2.id,y.description)})},trimColon:function(l){return l&&l[0]===":"?l.substr(1).trim():l.trim()},getAccTitle:Bn,setAccTitle:Tn,getAccDescription:fi,setAccDescription:Xn};function No(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var va,Rd=function(l,o,y){var k,E=Bt().state.padding,L=2*Bt().state.padding,N=l.node().getBBox(),D=N.width,P=N.x,U=l.append("text").attr("x",0).attr("y",Bt().state.titleShift).attr("font-size",Bt().state.fontSize).attr("class","state-title").text(o.id),K=U.node().getBBox().width+L,tt=Math.max(K,D);tt===D&&(tt+=L);var st=l.node().getBBox();o.doc,k=P-E,K>D&&(k=(D-tt)/2+E),Math.abs(P-st.x)<E&&K>D&&(k=P-(K-D)/2);var ot=1-Bt().state.textHeight;return l.insert("rect",":first-child").attr("x",k).attr("y",ot).attr("class",y?"alt-composit":"composit").attr("width",tt).attr("height",st.height+Bt().state.textHeight+Bt().state.titleShift+1).attr("rx","0"),U.attr("x",k+E),K<=D&&U.attr("x",P+(tt-L)/2-K/2+E),l.insert("rect",":first-child").attr("x",k).attr("y",Bt().state.titleShift-Bt().state.textHeight-Bt().state.padding).attr("width",tt).attr("height",3*Bt().state.textHeight).attr("rx",Bt().state.radius),l.insert("rect",":first-child").attr("x",k).attr("y",Bt().state.titleShift-Bt().state.textHeight-Bt().state.padding).attr("width",tt).attr("height",st.height+3+2*Bt().state.textHeight).attr("rx",Bt().state.radius),l},K1=function(l,o){o.attr("class","state-note");var y=o.append("rect").attr("x",0).attr("y",Bt().state.padding),k=function(N,D,P,U){var K=0,tt=U.append("text");tt.style("text-anchor","start"),tt.attr("class","noteText");var st,ot=N.replace(/\r\n/g,"<br/>"),Lt=(ot=ot.replace(/\n/g,"<br/>")).split(cr.lineBreakRegex),Dt=1.25*Bt().state.noteMargin,zt=function(Yt,It){var ae=typeof Symbol<"u"&&Yt[Symbol.iterator]||Yt["@@iterator"];if(!ae){if(Array.isArray(Yt)||(ae=function(Xt,ce){if(Xt){if(typeof Xt=="string")return No(Xt,ce);var de=Object.prototype.toString.call(Xt).slice(8,-1);return de==="Object"&&Xt.constructor&&(de=Xt.constructor.name),de==="Map"||de==="Set"?Array.from(Xt):de==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(de)?No(Xt,ce):void 0}}(Yt))||It&&Yt&&typeof Yt.length=="number"){ae&&(Yt=ae);var Se=0,pe=function(){};return{s:pe,n:function(){return Se>=Yt.length?{done:!0}:{done:!1,value:Yt[Se++]}},e:function(Xt){throw Xt},f:pe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ee,$t=!0,fe=!1;return{s:function(){ae=ae.call(Yt)},n:function(){var Xt=ae.next();return $t=Xt.done,Xt},e:function(Xt){fe=!0,Ee=Xt},f:function(){try{$t||ae.return==null||ae.return()}finally{if(fe)throw Ee}}}}(Lt);try{for(zt.s();!(st=zt.n()).done;){var Ft=st.value.trim();if(Ft.length>0){var Pt=tt.append("tspan");Pt.text(Ft),Dt===0&&(Dt+=Pt.node().getBBox().height),K+=Dt,Pt.attr("x",0+Bt().state.noteMargin),Pt.attr("y",0+K+1.25*Bt().state.noteMargin)}}}catch(Yt){zt.e(Yt)}finally{zt.f()}return{textWidth:tt.node().getBBox().width,textHeight:K}}(l,0,0,o.append("g")),E=k.textWidth,L=k.textHeight;return y.attr("height",L+2*Bt().state.noteMargin),y.attr("width",E+2*Bt().state.noteMargin),y},J1=function(l,o){var y=o.id,k={id:y,label:o.id,width:0,height:0},E=l.append("g").attr("id",y).attr("class","stateGroup");o.type==="start"&&function(N){N.append("circle").attr("class","start-state").attr("r",Bt().state.sizeUnit).attr("cx",Bt().state.padding+Bt().state.sizeUnit).attr("cy",Bt().state.padding+Bt().state.sizeUnit)}(E),o.type==="end"&&function(N){N.append("circle").attr("class","end-state-outer").attr("r",Bt().state.sizeUnit+Bt().state.miniPadding).attr("cx",Bt().state.padding+Bt().state.sizeUnit+Bt().state.miniPadding).attr("cy",Bt().state.padding+Bt().state.sizeUnit+Bt().state.miniPadding),N.append("circle").attr("class","end-state-inner").attr("r",Bt().state.sizeUnit).attr("cx",Bt().state.padding+Bt().state.sizeUnit+2).attr("cy",Bt().state.padding+Bt().state.sizeUnit+2)}(E),o.type!=="fork"&&o.type!=="join"||function(N,D){var P=Bt().state.forkWidth,U=Bt().state.forkHeight;if(D.parentId){var K=P;P=U,U=K}N.append("rect").style("stroke","black").style("fill","black").attr("width",P).attr("height",U).attr("x",Bt().state.padding).attr("y",Bt().state.padding)}(E,o),o.type==="note"&&K1(o.note.text,E),o.type==="divider"&&function(N){N.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Bt().state.textHeight).attr("class","divider").attr("x2",2*Bt().state.textHeight).attr("y1",0).attr("y2",0)}(E),o.type==="default"&&o.descriptions.length===0&&function(N,D){var P=N.append("text").attr("x",2*Bt().state.padding).attr("y",Bt().state.textHeight+2*Bt().state.padding).attr("font-size",Bt().state.fontSize).attr("class","state-title").text(D.id).node().getBBox();N.insert("rect",":first-child").attr("x",Bt().state.padding).attr("y",Bt().state.padding).attr("width",P.width+2*Bt().state.padding).attr("height",P.height+2*Bt().state.padding).attr("rx",Bt().state.radius)}(E,o),o.type==="default"&&o.descriptions.length>0&&function(N,D){var P=N.append("text").attr("x",2*Bt().state.padding).attr("y",Bt().state.textHeight+1.3*Bt().state.padding).attr("font-size",Bt().state.fontSize).attr("class","state-title").text(D.descriptions[0]).node().getBBox(),U=P.height,K=N.append("text").attr("x",Bt().state.padding).attr("y",U+.4*Bt().state.padding+Bt().state.dividerMargin+Bt().state.textHeight).attr("class","state-description"),tt=!0,st=!0;D.descriptions.forEach(function(zt){tt||(function(Ft,Pt,Yt){var It=Ft.append("tspan").attr("x",2*Bt().state.padding).text(Pt);Yt||It.attr("dy",Bt().state.textHeight)}(K,zt,st),st=!1),tt=!1});var ot=N.append("line").attr("x1",Bt().state.padding).attr("y1",Bt().state.padding+U+Bt().state.dividerMargin/2).attr("y2",Bt().state.padding+U+Bt().state.dividerMargin/2).attr("class","descr-divider"),Lt=K.node().getBBox(),Dt=Math.max(Lt.width,P.width);ot.attr("x2",Dt+3*Bt().state.padding),N.insert("rect",":first-child").attr("x",Bt().state.padding).attr("y",Bt().state.padding).attr("width",Dt+2*Bt().state.padding).attr("height",Lt.height+U+2*Bt().state.padding).attr("rx",Bt().state.radius)}(E,o);var L=E.node().getBBox();return k.width=L.width+2*Bt().state.padding,k.height=L.height+2*Bt().state.padding,k},Q1=0,Ml={},Dl=function l(o,y,k,E,L,N,D){var P,U=new(mi()).Graph({compound:!0,multigraph:!0}),K=!0;for(P=0;P<o.length;P++)if(o[P].stmt==="relation"){K=!1;break}k?U.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:K?1:va.edgeLengthFactor,nodeSep:K?1:50,isMultiGraph:!0}):U.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:K?1:va.edgeLengthFactor,nodeSep:K?1:50,ranker:"tight-tree",isMultiGraph:!0}),U.setDefaultEdgeLabel(function(){return{}}),D.db.extract(o);for(var tt=D.db.getStates(),st=D.db.getRelations(),ot=Object.keys(tt),Lt=0;Lt<ot.length;Lt++){var Dt=tt[ot[Lt]];k&&(Dt.parentId=k);var zt=void 0;if(Dt.doc){var Ft=y.append("g").attr("id",Dt.id).attr("class","stateGroup");zt=l(Dt.doc,Ft,Dt.id,!E,L,N,D);var Pt=(Ft=Rd(Ft,Dt,E)).node().getBBox();zt.width=Pt.width,zt.height=Pt.height+va.padding/2,Ml[Dt.id]={y:va.compositTitleSize}}else zt=J1(y,Dt);if(Dt.note){var Yt={descriptions:[],id:Dt.id+"-note",note:Dt.note,type:"note"},It=J1(y,Yt);Dt.note.position==="left of"?(U.setNode(zt.id+"-note",It),U.setNode(zt.id,zt)):(U.setNode(zt.id,zt),U.setNode(zt.id+"-note",It)),U.setParent(zt.id,zt.id+"-group"),U.setParent(zt.id+"-note",zt.id+"-group")}else U.setNode(zt.id,zt)}_.debug("Count=",U.nodeCount(),U);var ae=0;st.forEach(function($t){var fe;ae++,_.debug("Setting edge",$t),U.setEdge($t.id1,$t.id2,{relation:$t,width:(fe=$t.title,fe?fe.length*va.fontSizeFactor:1),height:va.labelHeight*cr.getRows($t.title).length,labelpos:"c"},"id"+ae)}),ks().layout(U),_.debug("Graph after layout",U.nodes());var Se=y.node();U.nodes().forEach(function($t){$t!==void 0&&U.node($t)!==void 0?(_.warn("Node "+$t+": "+JSON.stringify(U.node($t))),L.select("#"+Se.id+" #"+$t).attr("transform","translate("+(U.node($t).x-U.node($t).width/2)+","+(U.node($t).y+(Ml[$t]?Ml[$t].y:0)-U.node($t).height/2)+" )"),L.select("#"+Se.id+" #"+$t).attr("data-x-shift",U.node($t).x-U.node($t).width/2),N.querySelectorAll("#"+Se.id+" #"+$t+" .divider").forEach(function(fe){var Xt=fe.parentElement,ce=0,de=0;Xt&&(Xt.parentElement&&(ce=Xt.parentElement.getBBox().width),de=parseInt(Xt.getAttribute("data-x-shift"),10),Number.isNaN(de)&&(de=0)),fe.setAttribute("x1",0-de+8),fe.setAttribute("x2",ce-de-8)})):_.debug("No Node "+$t+": "+JSON.stringify(U.node($t)))});var pe=Se.getBBox();U.edges().forEach(function($t){$t!==void 0&&U.edge($t)!==void 0&&(_.debug("Edge "+$t.v+" -> "+$t.w+": "+JSON.stringify(U.edge($t))),function(fe,Xt,ce){Xt.points=Xt.points.filter(function(li){return!Number.isNaN(li.y)});var de=Xt.points,ue=(0,T.line)().x(function(li){return li.x}).y(function(li){return li.y}).curve(T.curveBasis),Re=fe.append("path").attr("d",ue(de)).attr("id","edge"+Q1).attr("class","transition"),Le="";if(Bt().state.arrowMarkerAbsolute&&(Le=(Le=(Le=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Re.attr("marker-end","url("+Le+"#"+function(li){switch(li){case co.relationType.AGGREGATION:return"aggregation";case co.relationType.EXTENSION:return"extension";case co.relationType.COMPOSITION:return"composition";case co.relationType.DEPENDENCY:return"dependency"}}(co.relationType.DEPENDENCY)+"End)"),ce.title!==void 0){for(var $e=fe.append("g").attr("class","stateLabel"),kr=Vr.calcLabelPosition(Xt.points),Ye=kr.x,ir=kr.y,br=cr.getRows(ce.title),We=0,Ve=[],xr=0,bn=0,yn=0;yn<=br.length;yn++){var $n=$e.append("text").attr("text-anchor","middle").text(br[yn]).attr("x",Ye).attr("y",ir+We),mn=$n.node().getBBox();if(xr=Math.max(xr,mn.width),bn=Math.min(bn,mn.x),_.info(mn.x,Ye,ir+We),We===0){var xi=$n.node().getBBox();We=xi.height,_.info("Title height",We,ir)}Ve.push($n)}var pn=We*br.length;if(br.length>1){var Da=(br.length-1)*We*.5;Ve.forEach(function(li,Hn){return li.attr("y",ir+Hn*We-Da)}),pn=We*br.length}var fa=$e.node().getBBox();$e.insert("rect",":first-child").attr("class","box").attr("x",Ye-xr/2-Bt().state.padding/2).attr("y",ir-pn/2-Bt().state.padding/2-3.5).attr("width",xr+Bt().state.padding).attr("height",pn+Bt().state.padding),_.info(fa)}Q1++}(y,U.edge($t),U.edge($t).relation))}),pe=Se.getBBox();var Ee={id:k||"root",label:k||"root",width:0,height:0};return Ee.width=pe.width+2*va.padding,Ee.height=pe.height+2*va.padding,_.debug("Doc rendered",Ee,U),Ee};const t0={setConf:function(){},draw:function(l,o,y,k){va=Bt().state;var E,L=Bt().securityLevel;L==="sandbox"&&(E=(0,T.select)("#i"+o));var N=L==="sandbox"?(0,T.select)(E.nodes()[0].contentDocument.body):(0,T.select)("body"),D=L==="sandbox"?E.nodes()[0].contentDocument:document;_.debug("Rendering diagram "+l);var P=N.select("[id='".concat(o,"']"));P.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new(mi()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var U=k.db.getRootDoc();Dl(U,P,void 0,!1,N,D,k);var K=va.padding,tt=P.node().getBBox(),st=tt.width+2*K,ot=tt.height+2*K;Ji(P,0,1.75*st,va.useMaxWidth),P.attr("viewBox","".concat(tt.x-va.padding," ").concat(tt.y-va.padding," ")+st+" "+ot),Sn(k.db,P,o)}};var Fc={},wn={},$s=function(l,o,y,k){if(y.id!=="root"){var E="rect";y.start===!0&&(E="start"),y.start===!1&&(E="end"),y.type!=="default"&&(E=y.type),wn[y.id]||(wn[y.id]={id:y.id,shape:E,description:cr.sanitizeText(y.id,Bt()),classes:"statediagram-state"}),y.description&&(Array.isArray(wn[y.id].description)?(wn[y.id].shape="rectWithTitle",wn[y.id].description.push(y.description)):wn[y.id].description.length>0?(wn[y.id].shape="rectWithTitle",wn[y.id].description===y.id?wn[y.id].description=[y.description]:wn[y.id].description=[wn[y.id].description,y.description]):(wn[y.id].shape="rect",wn[y.id].description=y.description),wn[y.id].description=cr.sanitizeTextOrArray(wn[y.id].description,Bt())),wn[y.id].description.length===1&&wn[y.id].shape==="rectWithTitle"&&(wn[y.id].shape="rect"),!wn[y.id].type&&y.doc&&(_.info("Setting cluster for ",y.id,Ol(y)),wn[y.id].type="group",wn[y.id].dir=Ol(y),wn[y.id].shape=y.type==="divider"?"divider":"roundedWithTitle",wn[y.id].classes=wn[y.id].classes+" "+(k?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var L={labelStyle:"",shape:wn[y.id].shape,labelText:wn[y.id].description,classes:wn[y.id].classes,style:"",id:y.id,dir:wn[y.id].dir,domId:"state-"+y.id+"-"+Go,type:wn[y.id].type,padding:15};if(y.note){var N={labelStyle:"",shape:"note",labelText:y.note.text,classes:"statediagram-note",style:"",id:y.id+"----note-"+Go,domId:"state-"+y.id+"----note-"+Go,type:wn[y.id].type,padding:15},D={labelStyle:"",shape:"noteGroup",labelText:y.note.text,classes:wn[y.id].classes,style:"",id:y.id+"----parent",domId:"state-"+y.id+"----parent-"+Go,type:"group",padding:0};Go++,l.setNode(y.id+"----parent",D),l.setNode(N.id,N),l.setNode(y.id,L),l.setParent(y.id,y.id+"----parent"),l.setParent(N.id,y.id+"----parent");var P=y.id,U=N.id;y.note.position==="left of"&&(P=N.id,U=y.id),l.setEdge(P,U,{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 "),Bd(l,y,y.doc,!k))},Go=0,Bd=function(l,o,y,k){_.trace("items",y),y.forEach(function(E){if(E.stmt==="state"||E.stmt==="default")$s(l,o,E,k);else if(E.stmt==="relation"){$s(l,o,E.state1,k),$s(l,o,E.state2,k);var L={id:"edge"+Go,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:cr.sanitizeText(E.description,Bt()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},N=E.state1.id,D=E.state2.id;l.setEdge(N,D,L,Go),Go++}})},Ol=function(l,o){var y=o||"TB";if(l.doc)for(var k=0;k<l.doc.length;k++){var E=l.doc[k];E.stmt==="dir"&&(y=E.value)}return y};const us={setConf:function(l){for(var o=Object.keys(l),y=0;y<o.length;y++)Fc[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,k){_.info("Drawing state diagram (v2)",o),wn={},k.db.getDirection();var E=Bt().state,L=E.nodeSpacing||50,N=E.rankSpacing||50,D=Bt().securityLevel;_.info(k.db.getRootDocV2()),k.db.extract(k.db.getRootDocV2()),_.info(k.db.getRootDocV2());var P,U=new(mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:Ol(k.db.getRootDocV2()),nodesep:L,ranksep:N,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});$s(U,void 0,k.db.getRootDocV2(),!0),D==="sandbox"&&(P=(0,T.select)("#i"+o));var K=D==="sandbox"?(0,T.select)(P.nodes()[0].contentDocument.body):(0,T.select)("body"),tt=(D==="sandbox"&&P.nodes()[0].contentDocument,K.select('[id="'.concat(o,'"]'))),st=K.select("#"+o+" g");sl(st,U,["barb"],"statediagram",o);var ot=tt.node().getBBox(),Lt=ot.width+16,Dt=ot.height+16;tt.attr("class","statediagram");var zt=tt.node().getBBox();Ji(tt,0,Lt,E.useMaxWidth);var Ft="".concat(zt.x-8," ").concat(zt.y-8," ").concat(Lt," ").concat(Dt);_.debug("viewBox ".concat(Ft)),tt.attr("viewBox",Ft);for(var Pt=document.querySelectorAll('[id="'+o+'"] .edgeLabel .label'),Yt=0;Yt<Pt.length;Yt++){var It=Pt[Yt],ae=It.getBBox(),Se=document.createElementNS("http://www.w3.org/2000/svg","rect");Se.setAttribute("rx",0),Se.setAttribute("ry",0),Se.setAttribute("width",ae.width),Se.setAttribute("height",ae.height),It.insertBefore(Se,It.firstChild)}Sn(k.db,tt,o)}};function e0(l){return function(o){if(Array.isArray(o))return Rl(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 Rl(o,y);var k=Object.prototype.toString.call(o).slice(8,-1);return k==="Object"&&o.constructor&&(k=o.constructor.name),k==="Map"||k==="Set"?Array.from(o):k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k)?Rl(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 Rl(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var Hs="",ah=[],qs=[],Ws=[],r0=function(){for(var l=!0,o=0;o<Ws.length;o++)Ws[o].processed,l=l&&Ws[o].processed;return l};const n0={parseDirective:function(l,o,y){Br.parseDirective(this,l,o,y)},getConfig:function(){return Bt().journey},clear:function(){ah.length=0,qs.length=0,Hs="",Ws.length=0,re()},setDiagramTitle:Sa,getDiagramTitle:gn,setAccTitle:Tn,getAccTitle:Bn,setAccDescription:Xn,getAccDescription:fi,addSection:function(l){Hs=l,ah.push(l)},getSections:function(){return ah},getTasks:function(){for(var l=r0(),o=0;!l&&o<100;)l=r0(),o++;return qs.push.apply(qs,Ws),qs},addTask:function(l,o){var y=o.substr(1).split(":"),k=0,E=[];y.length===1?(k=Number(y[0]),E=[]):(k=Number(y[0]),E=y[1].split(","));var L=E.map(function(D){return D.trim()}),N={section:Hs,type:Hs,people:L,task:l,score:k};Ws.push(N)},addTaskOrg:function(l){var o={section:Hs,type:Hs,description:l,task:l,classes:[]};qs.push(o)},getActors:function(){return l=[],qs.forEach(function(o){o.people&&l.push.apply(l,e0(o.people))}),e0(new Set(l)).sort();var l}};var Pc=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},oh=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},i0=-1,a0=function(){function l(E,L,N,D,P,U,K,tt){k(L.append("text").attr("x",N+P/2).attr("y",D+U/2+5).style("font-color",tt).style("text-anchor","middle").text(E),K)}function o(E,L,N,D,P,U,K,tt,st){for(var ot=tt.taskFontSize,Lt=tt.taskFontFamily,Dt=E.split(/<br\s*\/?>/gi),zt=0;zt<Dt.length;zt++){var Ft=zt*ot-ot*(Dt.length-1)/2,Pt=L.append("text").attr("x",N+P/2).attr("y",D).attr("fill",st).style("text-anchor","middle").style("font-size",ot).style("font-family",Lt);Pt.append("tspan").attr("x",N+P/2).attr("dy",Ft).text(Dt[zt]),Pt.attr("y",D+U/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),k(Pt,K)}}function y(E,L,N,D,P,U,K,tt){var st=L.append("switch"),ot=st.append("foreignObject").attr("x",N).attr("y",D).attr("width",P).attr("height",U).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(E),o(E,st,N,D,P,U,K,tt),k(ot,K)}function k(E,L){for(var N in L)N in L&&E.attr(N,L[N])}return function(E){return E.textPlacement==="fo"?y:E.textPlacement==="old"?l:o}}();const Fd=oh,Pd=function(l,o,y){var k=l.append("g"),E={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};E.x=o.x,E.y=o.y,E.fill=o.fill,E.width=y.width,E.height=y.height,E.class="journey-section section-type-"+o.num,E.rx=3,E.ry=3,Pc(k,E),a0(y)(o.text,k,E.x,E.y,E.width,E.height,{class:"journey-section section-type-"+o.num},y,o.colour)},Ud=function(l,o){var y=o.text.replace(/<br\s*\/?>/gi," "),k=l.append("text");k.attr("x",o.x),k.attr("y",o.y),k.attr("class","legend"),k.style("text-anchor",o.anchor),o.class!==void 0&&k.attr("class",o.class);var E=k.append("tspan");return E.attr("x",o.x+2*o.textMargin),E.text(y),k},zd=function(l,o,y){var k,E,L,N=o.x+y.width/2,D=l.append("g");i0++,D.append("line").attr("id","task"+i0).attr("x1",N).attr("y1",o.y).attr("x2",N).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),k=D,E={cx:N,cy:300+30*(5-o.score),score:o.score},k.append("circle").attr("cx",E.cx).attr("cy",E.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(L=k.append("g")).append("circle").attr("cx",E.cx-5).attr("cy",E.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),L.append("circle").attr("cx",E.cx+5).attr("cy",E.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),E.score>3?function(K){var tt=(0,T.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);K.append("path").attr("class","mouth").attr("d",tt).attr("transform","translate("+E.cx+","+(E.cy+2)+")")}(L):E.score<3?function(K){var tt=(0,T.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);K.append("path").attr("class","mouth").attr("d",tt).attr("transform","translate("+E.cx+","+(E.cy+7)+")")}(L):function(K){K.append("line").attr("class","mouth").attr("stroke",2).attr("x1",E.cx-5).attr("y1",E.cy+7).attr("x2",E.cx+5).attr("y2",E.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(L);var P={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};P.x=o.x,P.y=o.y,P.fill=o.fill,P.width=y.width,P.height=y.height,P.class="task task-type-"+o.num,P.rx=3,P.ry=3,Pc(D,P);var U=o.x+14;o.people.forEach(function(K){var tt=o.actors[K].color,st={cx:U,cy:o.y,r:7,fill:tt,stroke:"#000",title:K,pos:o.actors[K].position};oh(D,st),U+=10}),a0(y)(o.task,D,P.x,P.y,P.width,P.height,{class:"task"},y,o.colour)};var Va={},sh=Bt().journey,hs=Bt().journey.leftMargin,Ma={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,k){l[o]===void 0?l[o]=y:l[o]=k(y,l[o])},updateBounds:function(l,o,y,k){var E=Bt().journey,L=this,N=0;this.sequenceItems.forEach(function(D){N++;var P=L.sequenceItems.length-N+1;L.updateVal(D,"starty",o-P*E.boxMargin,Math.min),L.updateVal(D,"stopy",k+P*E.boxMargin,Math.max),L.updateVal(Ma.data,"startx",l-P*E.boxMargin,Math.min),L.updateVal(Ma.data,"stopx",y+P*E.boxMargin,Math.max),L.updateVal(D,"startx",l-P*E.boxMargin,Math.min),L.updateVal(D,"stopx",y+P*E.boxMargin,Math.max),L.updateVal(Ma.data,"starty",o-P*E.boxMargin,Math.min),L.updateVal(Ma.data,"stopy",k+P*E.boxMargin,Math.max)})},insert:function(l,o,y,k){var E=Math.min(l,y),L=Math.max(l,y),N=Math.min(o,k),D=Math.max(o,k);this.updateVal(Ma.data,"startx",E,Math.min),this.updateVal(Ma.data,"starty",N,Math.min),this.updateVal(Ma.data,"stopx",L,Math.max),this.updateVal(Ma.data,"stopy",D,Math.max),this.updateBounds(E,N,L,D)},bumpVerticalPos:function(l){this.verticalPos=this.verticalPos+l,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},ch=sh.sectionFills,lh=sh.sectionColours;const Ui={setConf:function(l){Object.keys(l).forEach(function(o){sh[o]=l[o]})},draw:function(l,o,y,k){var E=Bt().journey;k.db.clear(),k.parser.parse(l+`
|
|
`);var L,N=Bt().securityLevel;N==="sandbox"&&(L=(0,T.select)("#i"+o));var D=N==="sandbox"?(0,T.select)(L.nodes()[0].contentDocument.body):(0,T.select)("body");Ma.init();var P=D.select("#"+o);P.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 U=k.db.getTasks(),K=k.db.getDiagramTitle(),tt=k.db.getActors();for(var st in Va)delete Va[st];var ot=0;tt.forEach(function(Pt){Va[Pt]={color:E.actorColours[ot%E.actorColours.length],position:ot},ot++}),function(Pt){var Yt=Bt().journey,It=60;Object.keys(Va).forEach(function(ae){var Se=Va[ae].color,pe={cx:20,cy:It,r:7,fill:Se,stroke:"#000",pos:Va[ae].position};Fd(Pt,pe);var Ee={x:40,y:It+7,fill:"#666",text:ae,textMargin:5|Yt.boxTextMargin};Ud(Pt,Ee),It+=20})}(P),Ma.insert(0,0,hs,50*Object.keys(Va).length),function(Pt,Yt,It){for(var ae=Bt().journey,Se="",pe=It+(2*ae.height+ae.diagramMarginY),Ee=0,$t="#CCC",fe="black",Xt=0,ce=0;ce<Yt.length;ce++){var de=Yt[ce];if(Se!==de.section){$t=ch[Ee%ch.length],Xt=Ee%ch.length,fe=lh[Ee%lh.length];var ue={x:ce*ae.taskMargin+ce*ae.width+hs,y:50,text:de.section,fill:$t,num:Xt,colour:fe};Pd(Pt,ue,ae),Se=de.section,Ee++}var Re=de.people.reduce(function(Le,$e){return Va[$e]&&(Le[$e]=Va[$e]),Le},{});de.x=ce*ae.taskMargin+ce*ae.width+hs,de.y=pe,de.width=ae.diagramMarginX,de.height=ae.diagramMarginY,de.colour=fe,de.fill=$t,de.num=Xt,de.actors=Re,zd(Pt,de,ae),Ma.insert(de.x,de.y,de.x+de.width+ae.taskMargin,450)}}(P,U,0);var Lt=Ma.getBounds();K&&P.append("text").text(K).attr("x",hs).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var Dt=Lt.stopy-Lt.starty+2*E.diagramMarginY,zt=hs+Lt.stopx+2*E.diagramMarginX;Ji(P,0,zt,E.useMaxWidth),P.append("line").attr("x1",hs).attr("y1",4*E.height).attr("x2",zt-hs-4).attr("y2",4*E.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var Ft=K?70:0;P.attr("viewBox","".concat(Lt.startx," -25 ").concat(zt," ").concat(Dt+Ft)),P.attr("preserveAspectRatio","xMinYMin meet"),P.attr("height",Dt+Ft+25),Sn(k.db,P,o)}};var Yd=h(9763),jd=h.n(Yd),Uc={c4:{db:ni,renderer:nr,parser:mr(),init:function(l){nr.setConf(l.c4)}},class:{db:la,renderer:od,parser:fu(),init:function(l){l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,la.clear()}},error:{db:{},renderer:gu,parser:{parser:{yy:{}},parse:function(){}},init:function(){}},classDiagram:{db:la,renderer:sd,parser:fu(),init:function(l){l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,la.clear()}},er:{db:cd,renderer:ld,parser:hd()},flowchart:{db:ba,renderer:yl,parser:is(),init:function(l){yl.setConf(l.flowchart),l.flowchart.arrowMarkerAbsolute=l.arrowMarkerAbsolute,ba.clear(),ba.setGen("gen-1")}},"flowchart-v2":{db:ba,renderer:Ac,parser:is(),init:function(l){Ac.setConf(l.flowchart),l.flowchart.arrowMarkerAbsolute=l.arrowMarkerAbsolute,ba.clear(),ba.setGen("gen-2")}},gantt:{db:Du,renderer:vl,parser:Ru(),init:function(l){vl.setConf(l.gantt)}},info:{db:_d,renderer:xl,parser:Pu()},pie:{db:bd,renderer:M1,parser:zu()},requirement:{db:O1,renderer:vd,parser:Yu()},sequence:{db:Dc,renderer:Bc,parser:F1(),init:function(l){l.sequence.arrowMarkerAbsolute=l.arrowMarkerAbsolute,l.sequenceDiagram&&(Bc.setConf(Object.assign(l.sequence,l.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")),Dc.setWrap(l.wrap),Bc.setConf(l.sequence)}},state:{db:co,renderer:t0,parser:W1(),init:function(l){l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,co.clear()}},stateDiagram:{db:co,renderer:us,parser:W1(),init:function(l){l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,co.clear()}},journey:{db:n0,renderer:Ui,parser:jd(),init:function(l){Ui.setConf(l.journey),n0.clear()}}},uh=function(){return Uc};function hh(l,o){var y=Object.keys(l);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(l);o&&(k=k.filter(function(E){return Object.getOwnPropertyDescriptor(l,E).enumerable})),y.push.apply(y,k)}return y}function Vi(l){for(var o=1;o<arguments.length;o++){var y=arguments[o]!=null?arguments[o]:{};o%2?hh(Object(y),!0).forEach(function(k){Ei(l,k,y[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(y)):hh(Object(y)).forEach(function(k){Object.defineProperty(l,k,Object.getOwnPropertyDescriptor(y,k))})}return l}function Ei(l,o,y){return o in l?Object.defineProperty(l,o,{value:y,enumerable:!0,configurable:!0,writable:!0}):l[o]=y,l}var Za=Bt().gitGraph.mainBranchName,$d=Bt().gitGraph.mainBranchOrder,Ti={},ra=null,Bl={};Bl[Za]={name:Za,order:$d};var vi={};vi[Za]=ra;var zi=Za,dh="LR",ds=0;function fh(){return hc({length:7})}var o0={},s0=function(l){if(l=cr.sanitizeText(l,Bt()),vi[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=vi[zi=l];ra=Ti[y]};function c0(l,o,y){var k=l.indexOf(o);k===-1?l.push(y):l.splice(k,1,y)}function l0(l){var o=l.reduce(function(K,tt){return K.seq>tt.seq?K:tt},l[0]),y="";l.forEach(function(K){y+=K===o?" *":" |"});var k,E,L,N=[y,o.id,o.seq];for(var D in vi)vi[D]===o.id&&N.push(D);if(_.debug(N.join(" ")),o.parents&&o.parents.length==2){var P=Ti[o.parents[0]];c0(l,o,P),l.push(Ti[o.parents[1]])}else{if(o.parents.length==0)return;var U=Ti[o.parents];c0(l,o,U)}k=l,E=function(K){return K.id},L=Object.create(null),l0(l=k.reduce(function(K,tt){var st=E(tt);return L[st]||(L[st]=!0,K.push(tt)),K},[]))}var u0=function(){var l=Object.keys(Ti).map(function(o){return Ti[o]});return l.forEach(function(o){_.debug(o.id)}),l.sort(function(o,y){return o.seq-y.seq}),l},zc={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};const Fl={parseDirective:function(l,o,y){Br.parseDirective(this,l,o,y)},getConfig:function(){return Bt().gitGraph},setDirection:function(l){dh=l},setOptions:function(l){_.debug("options str",l),l=(l=l&&l.trim())||"{}";try{o0=JSON.parse(l)}catch(o){_.error("error while parsing gitGraph options",o.message)}},getOptions:function(){return o0},commit:function(l,o,y,k){_.debug("Entering commit:",l,o,y,k),o=cr.sanitizeText(o,Bt()),l=cr.sanitizeText(l,Bt()),k=cr.sanitizeText(k,Bt());var E={id:o||ds+"-"+fh(),message:l,seq:ds++,type:y||zc.NORMAL,tag:k||"",parents:ra==null?[]:[ra.id],branch:zi};ra=E,Ti[E.id]=E,vi[zi]=E.id,_.debug("in pushCommit "+E.id)},branch:function(l,o){if(l=cr.sanitizeText(l,Bt()),vi[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}vi[l]=ra!=null?ra.id:null,Bl[l]={name:l,order:o?parseInt(o,10):null},s0(l),_.debug("in createBranch")},merge:function(l,o,y,k){l=cr.sanitizeText(l,Bt()),o=cr.sanitizeText(o,Bt());var E=Ti[vi[zi]],L=Ti[vi[l]];if(zi===l){var N=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw N.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},N}if(E===void 0||!E){var D=new Error('Incorrect usage of "merge". Current branch ('+zi+")has no commits");throw D.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},D}if(vi[l]===void 0){var P=new Error('Incorrect usage of "merge". Branch to be merged ('+l+") does not exist");throw P.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]},P}if(L===void 0||!L){var U=new Error('Incorrect usage of "merge". Branch to be merged ('+l+") has no commits");throw U.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},U}if(E===L){var K=new Error('Incorrect usage of "merge". Both branches have same head');throw K.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"]},K}if(o&&Ti[o]!==void 0){var tt=new Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom Id");throw tt.hash={text:"merge "+l+o+y+k,token:"merge "+l+o+y+k,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+l+" "+o+"_UNIQUE "+y+" "+k]},tt}var st={id:o||ds+"-"+fh(),message:"merged branch "+l+" into "+zi,seq:ds++,parents:[ra==null?null:ra.id,vi[l]],branch:zi,type:zc.MERGE,customType:y,customId:!!o,tag:k||""};ra=st,Ti[st.id]=st,vi[zi]=st.id,_.debug(vi),_.debug("in mergeBranch")},cherryPick:function(l,o){if(l=cr.sanitizeText(l,Bt()),o=cr.sanitizeText(o,Bt()),!l||Ti[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 k=Ti[l],E=k.branch;if(k.type===zc.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||Ti[o]===void 0){if(E===zi){var N=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw N.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"]},N}var D=Ti[vi[zi]];if(D===void 0||!D){var P=new Error('Incorrect usage of "cherry-pick". Current branch ('+zi+")has no commits");throw P.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"]},P}var U={id:ds+"-"+fh(),message:"cherry-picked "+k+" into "+zi,seq:ds++,parents:[ra==null?null:ra.id,k.id],branch:zi,type:zc.CHERRY_PICK,tag:"cherry-pick:"+k.id};ra=U,Ti[U.id]=U,vi[zi]=U.id,_.debug(vi),_.debug("in cheeryPick")}},checkout:s0,prettyPrint:function(){_.debug(Ti),l0([u0()[0]])},clear:function(){Ti={},ra=null;var l=Bt().gitGraph.mainBranchName,o=Bt().gitGraph.mainBranchOrder;(vi={})[l]=null,(Bl={})[l]={name:l,order:o},zi=l,ds=0,re()},getBranchesAsObjArray:function(){return Object.values(Bl).map(function(l,o){return l.order!==null?l:Vi(Vi({},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 vi},getCommits:function(){return Ti},getCommitsArray:u0,getCurrentBranch:function(){return zi},getDirection:function(){return dh},getHead:function(){return ra},setAccTitle:Tn,getAccTitle:Bn,getAccDescription:fi,setAccDescription:Xn,commitType:zc};var lo={},na={},Gs={},uo=[],fs=0,ph=function(l,o,y){var k=Bt().gitGraph,E=l.append("g").attr("class","commit-bullets"),L=l.append("g").attr("class","commit-labels"),N=0;Object.keys(o).sort(function(D,P){return o[D].seq-o[P].seq}).forEach(function(D,P){var U=o[D],K=na[U.branch].pos,tt=N+10;if(y){var st,ot=U.customType!==void 0&&U.customType!==""?U.customType:U.type;switch(ot){case 0:default:st="commit-normal";break;case 1:st="commit-reverse";break;case 2:st="commit-highlight";break;case 3:st="commit-merge";break;case 4:st="commit-cherry-pick"}if(ot===2){var Lt=E.append("rect");Lt.attr("x",tt-10),Lt.attr("y",K-10),Lt.attr("height",20),Lt.attr("width",20),Lt.attr("class","commit ".concat(U.id," commit-highlight").concat(na[U.branch].index%8," ").concat(st,"-outer")),E.append("rect").attr("x",tt-6).attr("y",K-6).attr("height",12).attr("width",12).attr("class","commit ".concat(U.id," commit").concat(na[U.branch].index%8," ").concat(st,"-inner"))}else if(ot===4)E.append("circle").attr("cx",tt).attr("cy",K).attr("r",10).attr("class","commit ".concat(U.id," ").concat(st)),E.append("circle").attr("cx",tt-3).attr("cy",K+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(U.id," ").concat(st)),E.append("circle").attr("cx",tt+3).attr("cy",K+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(U.id," ").concat(st)),E.append("line").attr("x1",tt+3).attr("y1",K+1).attr("x2",tt).attr("y2",K-5).attr("stroke","#fff").attr("class","commit ".concat(U.id," ").concat(st)),E.append("line").attr("x1",tt-3).attr("y1",K+1).attr("x2",tt).attr("y2",K-5).attr("stroke","#fff").attr("class","commit ".concat(U.id," ").concat(st));else{var Dt=E.append("circle");if(Dt.attr("cx",tt),Dt.attr("cy",K),Dt.attr("r",U.type===3?9:10),Dt.attr("class","commit ".concat(U.id," commit").concat(na[U.branch].index%8)),ot===3){var zt=E.append("circle");zt.attr("cx",tt),zt.attr("cy",K),zt.attr("r",6),zt.attr("class","commit ".concat(st," ").concat(U.id," commit").concat(na[U.branch].index%8))}ot===1&&E.append("path").attr("d","M ".concat(tt-5,",").concat(K-5,"L").concat(tt+5,",").concat(K+5,"M").concat(tt-5,",").concat(K+5,"L").concat(tt+5,",").concat(K-5)).attr("class","commit ".concat(st," ").concat(U.id," commit").concat(na[U.branch].index%8))}}if(Gs[U.id]={x:N+10,y:K},y){if(U.type!==4&&(U.customId&&U.type===3||U.type!==3)&&k.showCommitLabel){var Ft=L.append("g"),Pt=Ft.insert("rect").attr("class","commit-label-bkg"),Yt=Ft.append("text").attr("x",N).attr("y",K+25).attr("class","commit-label").text(U.id),It=Yt.node().getBBox();if(Pt.attr("x",N+10-It.width/2-2).attr("y",K+13.5).attr("width",It.width+4).attr("height",It.height+4),Yt.attr("x",N+10-It.width/2),k.rotateCommitLabel){var ae=-7.5-(It.width+10)/25*9.5,Se=10+It.width/25*8.5;Ft.attr("transform","translate("+ae+", "+Se+") rotate(-45, "+N+", "+K+")")}}if(U.tag){var pe=L.insert("polygon"),Ee=L.append("circle"),$t=L.append("text").attr("y",K-16).attr("class","tag-label").text(U.tag),fe=$t.node().getBBox();$t.attr("x",N+10-fe.width/2);var Xt=fe.height/2,ce=K-19.2;pe.attr("class","tag-label-bkg").attr("points",`
|
|
`.concat(N-fe.width/2-2,",").concat(ce+2,`
|
|
`).concat(N-fe.width/2-2,",").concat(ce-2,`
|
|
`).concat(N+10-fe.width/2-4,",").concat(ce-Xt-2,`
|
|
`).concat(N+10+fe.width/2+4,",").concat(ce-Xt-2,`
|
|
`).concat(N+10+fe.width/2+4,",").concat(ce+Xt+2,`
|
|
`).concat(N+10-fe.width/2-4,",").concat(ce+Xt+2)),Ee.attr("cx",N-fe.width/2+2).attr("cy",ce).attr("r",1.5).attr("class","tag-hole")}}(N+=50)>fs&&(fs=N)})},gh=function l(o,y,k){var E=k||0,L=o+Math.abs(o-y)/2;if(E>5)return L;for(var N=!0,D=0;D<uo.length;D++)Math.abs(uo[D]-L)<10&&(N=!1);return N?(uo.push(L),L):l(o,y-Math.abs(o-y)/5,E+1)};const h0={draw:function(l,o,y,k){na={},Gs={},lo={},fs=0,uo=[];var E=Bt(),L=Bt().gitGraph;_.debug("in gitgraph renderer",l+`
|
|
`,"id:",o,y),lo=k.db.getCommits();var N=k.db.getBranchesAsObjArray(),D=0;N.forEach(function(Lt,Dt){na[Lt.name]={pos:D,index:Dt},D+=50+(L.rotateCommitLabel?40:0)});var P=(0,T.select)('[id="'.concat(o,'"]'));Sn(k.db,P,o),ph(P,lo,!1),L.showBranches&&function(Lt,Dt){var zt=Bt().gitGraph,Ft=Lt.append("g");Dt.forEach(function(Pt,Yt){var It=Yt%8,ae=na[Pt.name].pos,Se=Ft.append("line");Se.attr("x1",0),Se.attr("y1",ae),Se.attr("x2",fs),Se.attr("y2",ae),Se.attr("class","branch branch"+It),uo.push(ae);var pe=function(Xt){var ce=document.createElementNS("http://www.w3.org/2000/svg","text"),de=[];de=typeof Xt=="string"?Xt.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(Xt)?Xt:[];for(var ue=0;ue<de.length;ue++){var Re=document.createElementNS("http://www.w3.org/2000/svg","tspan");Re.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Re.setAttribute("dy","1em"),Re.setAttribute("x","0"),Re.setAttribute("class","row"),Re.textContent=de[ue].trim(),ce.appendChild(Re)}return ce}(Pt.name),Ee=Ft.insert("rect"),$t=Ft.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+It);$t.node().appendChild(pe);var fe=pe.getBBox();Ee.attr("class","branchLabelBkg label"+It).attr("rx",4).attr("ry",4).attr("x",-fe.width-4-(zt.rotateCommitLabel===!0?30:0)).attr("y",-fe.height/2+8).attr("width",fe.width+18).attr("height",fe.height+4),$t.attr("transform","translate("+(-fe.width-14-(zt.rotateCommitLabel===!0?30:0))+", "+(ae-fe.height/2-1)+")"),Ee.attr("transform","translate(-19, "+(ae-fe.height/2)+")")})}(P,N),function(Lt,Dt){var zt=Lt.append("g").attr("class","commit-arrows");Object.keys(Dt).forEach(function(Ft,Pt){var Yt=Dt[Ft];Yt.parents&&Yt.parents.length>0&&Yt.parents.forEach(function(It){(function(ae,Se,pe,Ee){var $t=Bt(),fe=Gs[Se.id],Xt=Gs[pe.id],ce=function(ir,br,We){return Gs[br.id],Gs[ir.id],Object.keys(We).filter(function(Ve){return We[Ve].branch===br.branch&&We[Ve].seq>ir.seq&&We[Ve].seq<br.seq}).length>0}(Se,pe,Ee);$t.arrowMarkerAbsolute&&(window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)");var de,ue="",Re="",Le=0,$e=0,kr=na[pe.branch].index;if(ce){ue="A 10 10, 0, 0, 0,",Re="A 10 10, 0, 0, 1,",Le=10,$e=10,kr=na[pe.branch].index;var Ye=fe.y<Xt.y?gh(fe.y,Xt.y):gh(Xt.y,fe.y);de=fe.y<Xt.y?"M ".concat(fe.x," ").concat(fe.y," L ").concat(fe.x," ").concat(Ye-Le," ").concat(ue," ").concat(fe.x+$e," ").concat(Ye," L ").concat(Xt.x-Le," ").concat(Ye," ").concat(Re," ").concat(Xt.x," ").concat(Ye+$e," L ").concat(Xt.x," ").concat(Xt.y):"M ".concat(fe.x," ").concat(fe.y," L ").concat(fe.x," ").concat(Ye+Le," ").concat(Re," ").concat(fe.x+$e," ").concat(Ye," L ").concat(Xt.x-Le," ").concat(Ye," ").concat(ue," ").concat(Xt.x," ").concat(Ye-$e," L ").concat(Xt.x," ").concat(Xt.y)}else fe.y<Xt.y&&(ue="A 20 20, 0, 0, 0,",Le=20,$e=20,kr=na[pe.branch].index,de="M ".concat(fe.x," ").concat(fe.y," L ").concat(fe.x," ").concat(Xt.y-Le," ").concat(ue," ").concat(fe.x+$e," ").concat(Xt.y," L ").concat(Xt.x," ").concat(Xt.y)),fe.y>Xt.y&&(ue="A 20 20, 0, 0, 0,",Le=20,$e=20,kr=na[Se.branch].index,de="M ".concat(fe.x," ").concat(fe.y," L ").concat(Xt.x-Le," ").concat(fe.y," ").concat(ue," ").concat(Xt.x," ").concat(fe.y-$e," L ").concat(Xt.x," ").concat(Xt.y)),fe.y===Xt.y&&(kr=na[Se.branch].index,de="M ".concat(fe.x," ").concat(fe.y," L ").concat(fe.x," ").concat(Xt.y-Le," ").concat(ue," ").concat(fe.x+$e," ").concat(Xt.y," L ").concat(Xt.x," ").concat(Xt.y));ae.append("path").attr("d",de).attr("class","arrow arrow"+kr%8)})(zt,Dt[It],Yt,Dt)})})}(P,lo),ph(P,lo,!0);var U=L.diagramPadding,K=P.node().getBBox(),tt=K.width+2*U,st=K.height+2*U;Ji(P,0,tt,E.useMaxWidth);var ot="".concat(K.x-U-(L.showBranches&&L.rotateCommitLabel===!0?30:0)," ").concat(K.y-U," ").concat(tt," ").concat(st);P.attr("viewBox",ot)}};var Pl=h(2553),Ul=h.n(Pl);const yh=function(l){return l.match(/^\s*gitGraph/)?"gitGraph":null},zl=function(){var l,o,y,k,E,L;l="gitGraph",o=Ul(),y=Fl,k=h0,E=void 0,L=yh,Uc[l]={parser:o,db:y,renderer:k,init:E},function(N,D){In[N]={detector:D}}(l,L)};function d0(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}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 f0=function(){function l(k){var E,L;(function(P,U){if(!(P instanceof U))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 N=uh(),D=Bt();this.txt=k,this.type=pi(k,D),_.debug("Type "+this.type),this.db=N[this.type].db,(E=(L=this.db).clear)===null||E===void 0||E.call(L),this.renderer=N[this.type].renderer,this.parser=N[this.type].parser,this.parser.parser.yy=this.db,typeof N[this.type].init=="function"&&(N[this.type].init(D),_.debug("Initialized diagram "+this.type,D)),this.txt=this.txt+`
|
|
`,this.parser.parser.yy.graphType=this.type,this.parser.parser.yy.parseError=function(P,U){throw{str:P,hash:U}},this.parser.parse(this.txt)}var o,y;return o=l,(y=[{key:"parse",value:function(k){var E=!1;try{k+=`
|
|
`,this.db.clear(),this.parser.parse(k)}catch(L){if(E=!0,!h.g.mermaid.parseError)throw L;L.str!=null?h.g.mermaid.parseError(L.str,L.hash):h.g.mermaid.parseError(L)}return!E}},{key:"getParser",value:function(){return this.parser}},{key:"getType",value:function(){return this.type}}])&&d0(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();const Yl=f0,jl=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;
|
|
}
|
|
|
|
#lollipopStart, .lollipop {
|
|
fill: `).concat(l.mainBkg,` !important;
|
|
stroke: `).concat(l.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#lollipopEnd, .lollipop {
|
|
fill: `).concat(l.mainBkg,` !important;
|
|
stroke: `).concat(l.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.edgeTerminals {
|
|
font-size: 11px;
|
|
}
|
|
|
|
`)},mh=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;
|
|
}
|
|
`)},Jr=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 $l={flowchart:mh,"flowchart-v2":mh,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: none;
|
|
}
|
|
|
|
.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:jl,"classDiagram-v2":jl,class:jl,stateDiagram:Jr,state:Jr,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,`;
|
|
}
|
|
`)},error:function(){return""},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 nn(l){return nn=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},nn(l)}var jn=!1,Vs=function(l){var o=l;return(o=(o=o.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},Si={};function Pn(l){yl.setConf(l.flowchart),Ac.setConf(l.flowchart),l.sequenceDiagram!==void 0&&Bc.setConf(ie(l.sequence,l.sequenceDiagram)),Bc.setConf(l.sequence),vl.setConf(l.gantt),t0.setConf(l.state),us.setConf(l.state),Ui.setConf(l.journey),gu.setConf(l.class)}var Wr=Object.freeze({render:function(l,o,y,k){jn||(zl(),jn=!0),Kr();var E=o.replace(/\r\n?/g,`
|
|
`),L=Vr.detectInit(E);L&&(yi(L),Rn(L));var N=Bt();_.debug(N),o.length>N.maxTextSize&&(E="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var D,P,U=(0,T.select)("body");if(k!==void 0){if(N.securityLevel==="sandbox"){var K=(0,T.select)("body").append("iframe").attr("id","i"+l).attr("style","width: 100%; height: 100%;").attr("sandbox","");(U=(0,T.select)(K.nodes()[0].contentDocument.body)).node().style.margin=0}if(k.innerHTML="",N.securityLevel==="sandbox"){var tt=(0,T.select)(k).append("iframe").attr("id","i"+l).attr("style","width: 100%; height: 100%;").attr("sandbox","");(U=(0,T.select)(tt.nodes()[0].contentDocument.body)).node().style.margin=0}else U=(0,T.select)(k);U.append("div").attr("id","d"+l).attr("style","font-family: "+N.fontFamily).append("svg").attr("id",l).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").attr("xmlns:xlink","http://www.w3.org/1999/xlink").append("g")}else{var st,ot=document.getElementById(l);if(ot&&ot.remove(),(st=N.securityLevel!=="sandbox"?document.querySelector("#d"+l):document.querySelector("#i"+l))&&st.remove(),N.securityLevel==="sandbox"){var Lt=(0,T.select)("body").append("iframe").attr("id","i"+l).attr("style","width: 100%; height: 100%;").attr("sandbox","");(U=(0,T.select)(Lt.nodes()[0].contentDocument.body)).node().style.margin=0}else U=(0,T.select)("body");U.append("div").attr("id","d"+l).append("svg").attr("id",l).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}E=E.replace(/style.*:\S*#.*;/g,function(ue){return ue.substring(0,ue.length-1)}).replace(/classDef.*:\S*#.*;/g,function(ue){return ue.substring(0,ue.length-1)}).replace(/#\w+;/g,function(ue){var Re=ue.substring(1,ue.length-1);return/^\+?\d+$/.test(Re)?"\uFB02\xB0\xB0"+Re+"\xB6\xDF":"\uFB02\xB0"+Re+"\xB6\xDF"});try{D=new Yl(E)}catch(ue){D=new Yl("error"),P=ue}var Dt=U.select("#d"+l).node(),zt=D.type,Ft=Dt.firstChild,Pt=Ft.firstChild,Yt="";if(N.themeCSS!==void 0&&(Yt+=`
|
|
`.concat(N.themeCSS)),N.fontFamily!==void 0&&(Yt+=`
|
|
:root { --mermaid-font-family: `.concat(N.fontFamily,"}")),N.altFontFamily!==void 0&&(Yt+=`
|
|
:root { --mermaid-alt-font-family: `.concat(N.altFontFamily,"}")),zt==="flowchart"||zt==="flowchart-v2"||zt==="graph"){var It=yl.getClasses(E,D),ae=N.htmlLabels||N.flowchart.htmlLabels;for(var Se in It)ae?(Yt+=`
|
|
.`.concat(Se," > * { ").concat(It[Se].styles.join(" !important; ")," !important; }"),Yt+=`
|
|
.`.concat(Se," span { ").concat(It[Se].styles.join(" !important; ")," !important; }")):(Yt+=`
|
|
.`.concat(Se," path { ").concat(It[Se].styles.join(" !important; ")," !important; }"),Yt+=`
|
|
.`.concat(Se," rect { ").concat(It[Se].styles.join(" !important; ")," !important; }"),Yt+=`
|
|
.`.concat(Se," polygon { ").concat(It[Se].styles.join(" !important; ")," !important; }"),Yt+=`
|
|
.`.concat(Se," ellipse { ").concat(It[Se].styles.join(" !important; ")," !important; }"),Yt+=`
|
|
.`.concat(Se," circle { ").concat(It[Se].styles.join(" !important; ")," !important; }"),It[Se].textStyles&&(Yt+=`
|
|
.`.concat(Se," tspan { ").concat(It[Se].textStyles.join(" !important; ")," !important; }")))}var pe=function(ue,Re){return St(Sr("".concat(ue,"{").concat(Re,"}")),gt)}("#".concat(l),function(ue,Re,Le){return` {
|
|
font-family: `.concat(Le.fontFamily,`;
|
|
font-size: `).concat(Le.fontSize,`;
|
|
fill: `).concat(Le.textColor,`
|
|
}
|
|
|
|
/* Classes common for multiple diagrams */
|
|
|
|
.error-icon {
|
|
fill: `).concat(Le.errorBkgColor,`;
|
|
}
|
|
.error-text {
|
|
fill: `).concat(Le.errorTextColor,`;
|
|
stroke: `).concat(Le.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(Le.lineColor,`;
|
|
stroke: `).concat(Le.lineColor,`;
|
|
}
|
|
.marker.cross {
|
|
stroke: `).concat(Le.lineColor,`;
|
|
}
|
|
|
|
svg {
|
|
font-family: `).concat(Le.fontFamily,`;
|
|
font-size: `).concat(Le.fontSize,`;
|
|
}
|
|
|
|
`).concat($l[ue](Le),`
|
|
|
|
`).concat(Re,`
|
|
`)}(zt,Yt,N.themeVariables)),Ee=document.createElement("style");Ee.innerHTML="#".concat(l," ")+pe,Ft.insertBefore(Ee,Pt);try{D.renderer.draw(E,l,he,D)}catch(ue){throw gu.draw(l,he),ue}U.select('[id="'.concat(l,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var $t=U.select("#d"+l).node().innerHTML;if(_.debug("cnf.arrowMarkerAbsolute",N.arrowMarkerAbsolute),N.arrowMarkerAbsolute&&N.arrowMarkerAbsolute!=="false"||N.arrowMarkerAbsolute==="sandbox"||($t=$t.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),$t=($t=Vs($t)).replace(/<br>/g,"<br/>"),N.securityLevel==="sandbox"){var fe=U.select("#d"+l+" svg").node(),Xt="100%";fe&&(Xt=fe.viewBox.baseVal.height+"px"),$t='<iframe style="width:'.concat("100%",";height:").concat(Xt,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+$t+"</body>"),`" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
The \u201Ciframe\u201D tag is not supported by your browser.
|
|
</iframe>`)}else N.securityLevel!=="loose"&&($t=Wn().sanitize($t,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(y!==void 0)switch(zt){case"flowchart":case"flowchart-v2":y($t,ba.bindFunctions);break;case"gantt":y($t,Du.bindFunctions);break;case"class":case"classDiagram":y($t,la.bindFunctions);break;default:y($t)}else _.debug("CB = undefined!");Fs.forEach(function(ue){ue()}),Fs=[];var ce=N.securityLevel==="sandbox"?"#i"+l:"#d"+l,de=(0,T.select)(ce).node();if(de!==null&&typeof de.remove=="function"&&(0,T.select)(ce).node().remove(),P)throw P;return $t},parse:function(l,o){jn||(zl(),jn=!0);var y=!1;try{var k=o||new Yl(l);return k.db.clear(),k.parse(l)}catch(E){if(y=!0,!gs.parseError)throw E;E.str!=null?gs.parseError(E.str,E.hash):gs.parseError(E)}return!y},parseDirective:function(l,o,y,k){try{if(o!==void 0)switch(o=o.trim(),y){case"open_directive":Si={};break;case"type_directive":Si.type=o.toLowerCase();break;case"arg_directive":Si.args=JSON.parse(o);break;case"close_directive":(function(E,L,N){switch(_.debug("Directive type=".concat(L.type," with args:"),L.args),L.type){case"init":case"initialize":["config"].forEach(function(D){L.args[D]!==void 0&&(N==="flowchart-v2"&&(N="flowchart"),L.args[N]=L.args[D],delete L.args[D])}),_.debug("sanitize in handleDirective",L.args),yi(L.args),_.debug("sanitize in handleDirective (done)",L.args),Rn(L.args);break;case"wrap":case"nowrap":E&&E.setWrap&&E.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,Si,k),Si=null}}catch(E){_.error("Error while rendering sequenceDiagram directive: ".concat(o," jison context: ").concat(y)),_.error(E.message)}},initialize:function(l){var o;l!=null&&l.fontFamily&&((o=l.themeVariables)!==null&&o!==void 0&&o.fontFamily||(l.themeVariables={fontFamily:l.fontFamily})),function(k){Ir=ie({},k)}(l),l!=null&&l.theme&&Pr[l.theme]?l.themeVariables=Pr[l.theme].getThemeVariables(l.themeVariables):l&&(l.themeVariables=Pr.default.getThemeVariables(l.themeVariables));var y=nn(l)==="object"?function(k){return Or=ie({},ui),Or=ie(Or,k),k.theme&&Pr[k.theme]&&(Or.themeVariables=Pr[k.theme].getThemeVariables(k.themeVariables)),Ln=vn(Or,En),Or}(l):Zn();Pn(y),A(y.logLevel),jn||(zl(),jn=!0)},getConfig:Bt,setConfig:function(l){return ie(Ln,l),Bt()},getSiteConfig:Zn,updateSiteConfig:function(l){return Or=ie(Or,l),vn(Or,En),Or},reset:function(){Kr()},globalReset:function(){Kr(),Pn(Bt())},defaultConfig:ui});A(Bt().logLevel),Kr(Bt());const Br=Wr;var ps=function(){var l,o,y=Br.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(wr.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: "+wr.startOnLoad),wr.startOnLoad!==void 0&&(_.debug("Start On Load inner: "+wr.startOnLoad),Br.updateSiteConfig({startOnLoad:wr.startOnLoad})),wr.ganttConfig!==void 0&&Br.updateSiteConfig({gantt:wr.ganttConfig});for(var k,E=new Vr.initIdGenerator(y.deterministicIds,y.deterministicIDSeed),L=[],N=function(P){_.info("Rendering diagram: "+l[P].id,P);var U=l[P];if(U.getAttribute("data-processed"))return"continue";U.setAttribute("data-processed",!0);var K="mermaid-".concat(E.next());k=U.innerHTML,k=Vr.entityDecode(k).trim().replace(/<br\s*\/?>/gi,"<br/>");var tt=Vr.detectInit(k);tt&&_.debug("Detected early reinit: ",tt);try{Br.render(K,k,function(st,ot){U.innerHTML=st,o!==void 0&&o(K),ot&&ot(U)},U)}catch(st){_.warn("Catching Error (bootstrap)",st),typeof wr.parseError=="function"&&wr.parseError({error:st,str:st.str,hash:st.hash,message:st.str}),L.push({error:st,str:st.str,hash:st.hash,message:st.str})}},D=0;D<l.length;D++)N(D);if(L.length>0)throw L[0]},Zi=function(){wr.startOnLoad?Br.getConfig().startOnLoad&&wr.init():wr.startOnLoad===void 0&&(_.debug("In start, no config"),Br.getConfig().startOnLoad&&wr.init())};typeof document<"u"&&window.addEventListener("load",function(){Zi()},!1);var wr={startOnLoad:!0,htmlLabels:!0,diagrams:{},mermaidAPI:Br,parse:Br!=null?Br.parse:null,render:Br!=null?Br.render:null,init:function(){try{ps.apply(void 0,arguments)}catch(l){_.warn("Syntax Error rendering"),_.warn(l.str)}},initThrowsErrors:ps,initialize:function(l){l.mermaid!==void 0&&(l.mermaid.startOnLoad!==void 0&&(wr.startOnLoad=l.mermaid.startOnLoad),l.mermaid.htmlLabels!==void 0&&(wr.htmlLabels=l.mermaid.htmlLabels!=="false"&&l.mermaid.htmlLabels!==!1)),Br.initialize(l)},contentLoaded:Zi,setParseErrorHandler:function(l){wr.parseError=l}};const gs=wr},4949:(d,b,h)=>{d.exports={graphlib:h(6614),dagre:h(6478),intersect:h(8114),render:h(5787),util:h(8355),version:h(5689)}},9144:(d,b,h)=>{var m=h(8355);function f(v,_,A,M){var T=v.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(T,A[M+"Style"]),A[M+"Class"]&&T.attr("class",A[M+"Class"])}d.exports={default:f,normal:f,vee:function(v,_,A,M){var T=v.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(T,A[M+"Style"]),A[M+"Class"]&&T.attr("class",A[M+"Class"])},undirected:function(v,_,A,M){var T=v.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(T,A[M+"Style"]),A[M+"Class"]&&T.attr("class",A[M+"Class"])}}},5632:(d,b,h)=>{var m=h(8355),f=h(4322),v=h(1322);d.exports=function(_,A){var M,T=A.nodes().filter(function(B){return m.isSubgraph(A,B)}),O=_.selectAll("g.cluster").data(T,function(B){return B});return O.selectAll("*").remove(),O.enter().append("g").attr("class","cluster").attr("id",function(B){return A.node(B).id}).style("opacity",0),O=_.selectAll("g.cluster"),m.applyTransition(O,A).style("opacity",1),O.each(function(B){var z=A.node(B),q=f.select(this);f.select(this).append("rect");var J=q.append("g").attr("class","label");v(J,z,z.clusterLabelPos)}),O.selectAll("rect").each(function(B){var z=A.node(B),q=f.select(this);m.applyStyle(q,z.style)}),M=O.exit?O.exit():O.selectAll(null),m.applyTransition(M,A).style("opacity",0).remove(),O}},6315:(d,b,h)=>{var m=h(1034),f=h(1322),v=h(8355),_=h(4322);d.exports=function(A,M){var T,O=A.selectAll("g.edgeLabel").data(M.edges(),function(B){return v.edgeToId(B)}).classed("update",!0);return O.exit().remove(),O.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(O=A.selectAll("g.edgeLabel")).each(function(B){var z=_.select(this);z.select(".label").remove();var q=M.edge(B),J=f(z,M.edge(B),0,0).classed("label",!0),rt=J.node().getBBox();q.labelId&&J.attr("id",q.labelId),m.has(q,"width")||(q.width=rt.width),m.has(q,"height")||(q.height=rt.height)}),T=O.exit?O.exit():O.selectAll(null),v.applyTransition(T,M).style("opacity",0).remove(),O}},940:(d,b,h)=>{var m=h(1034),f=h(3042),v=h(8355),_=h(4322);function A(M,T){var O=(_.line||_.svg.line)().x(function(B){return B.x}).y(function(B){return B.y});return(O.curve||O.interpolate)(M.curve),O(T)}d.exports=function(M,T,O){var B=M.selectAll("g.edgePath").data(T.edges(),function(J){return v.edgeToId(J)}).classed("update",!0),z=function(J,rt){var ut=J.enter().append("g").attr("class","edgePath").style("opacity",0);return ut.append("path").attr("class","path").attr("d",function(Z){var mt=rt.edge(Z),nt=rt.node(Z.v).elem;return A(mt,m.range(mt.points.length).map(function(){return _t=(at=nt).getBBox(),{x:(jt=at.ownerSVGElement.getScreenCTM().inverse().multiply(at.getScreenCTM()).translate(_t.width/2,_t.height/2)).e,y:jt.f};var at,_t,jt}))}),ut.append("defs"),ut}(B,T);(function(J,rt){var ut=J.exit();v.applyTransition(ut,rt).style("opacity",0).remove()})(B,T);var q=B.merge!==void 0?B.merge(z):B;return v.applyTransition(q,T).style("opacity",1),q.each(function(J){var rt=_.select(this),ut=T.edge(J);ut.elem=this,ut.id&&rt.attr("id",ut.id),v.applyClass(rt,ut.class,(rt.classed("update")?"update ":"")+"edgePath")}),q.selectAll("path.path").each(function(J){var rt=T.edge(J);rt.arrowheadId=m.uniqueId("arrowhead");var ut=_.select(this).attr("marker-end",function(){return"url("+(Z=location.href,mt=rt.arrowheadId,Z.split("#")[0]+"#"+mt+")");var Z,mt}).style("fill","none");v.applyTransition(ut,T).attr("d",function(Z){return function(mt,nt){var at=mt.edge(nt),_t=mt.node(nt.v),jt=mt.node(nt.w),St=at.points.slice(1,at.points.length-1);return St.unshift(f(_t,St[0])),St.push(f(jt,St[St.length-1])),A(at,St)}(T,Z)}),v.applyStyle(ut,rt.style)}),q.selectAll("defs *").remove(),q.selectAll("defs").each(function(J){var rt=T.edge(J);(0,O[rt.arrowhead])(_.select(this),rt.arrowheadId,rt,"arrowhead")}),q}},607:(d,b,h)=>{var m=h(1034),f=h(1322),v=h(8355),_=h(4322);d.exports=function(A,M,T){var O,B=M.nodes().filter(function(q){return!v.isSubgraph(M,q)}),z=A.selectAll("g.node").data(B,function(q){return q}).classed("update",!0);return z.exit().remove(),z.enter().append("g").attr("class","node").style("opacity",0),(z=A.selectAll("g.node")).each(function(q){var J=M.node(q),rt=_.select(this);v.applyClass(rt,J.class,(rt.classed("update")?"update ":"")+"node"),rt.select("g.label").remove();var ut=rt.append("g").attr("class","label"),Z=f(ut,J),mt=T[J.shape],nt=m.pick(Z.node().getBBox(),"width","height");J.elem=this,J.id&&rt.attr("id",J.id),J.labelId&&ut.attr("id",J.labelId),m.has(J,"width")&&(nt.width=J.width),m.has(J,"height")&&(nt.height=J.height),nt.width+=J.paddingLeft+J.paddingRight,nt.height+=J.paddingTop+J.paddingBottom,ut.attr("transform","translate("+(J.paddingLeft-J.paddingRight)/2+","+(J.paddingTop-J.paddingBottom)/2+")");var at=_.select(this);at.select(".label-container").remove();var _t=mt(at,nt,J).classed("label-container",!0);v.applyStyle(_t,J.style);var jt=_t.node().getBBox();J.width=jt.width,J.height=jt.height}),O=z.exit?z.exit():z.selectAll(null),v.applyTransition(O,M).style("opacity",0).remove(),z}},4322:(d,b,h)=>{var m;if(!m)try{m=h(7543)}catch{}m||(m=window.d3),d.exports=m},6478:(d,b,h)=>{var m;try{m=h(681)}catch{}m||(m=window.dagre),d.exports=m},6614:(d,b,h)=>{var m;try{m=h(8282)}catch{}m||(m=window.graphlib),d.exports=m},8114:(d,b,h)=>{d.exports={node:h(3042),circle:h(6587),ellipse:h(3260),polygon:h(5337),rect:h(8049)}},6587:(d,b,h)=>{var m=h(3260);d.exports=function(f,v,_){return m(f,v,v,_)}},3260:d=>{d.exports=function(b,h,m,f){var v=b.x,_=b.y,A=v-f.x,M=_-f.y,T=Math.sqrt(h*h*M*M+m*m*A*A),O=Math.abs(h*m*A/T);f.x<v&&(O=-O);var B=Math.abs(h*m*M/T);return f.y<_&&(B=-B),{x:v+O,y:_+B}}},6808:d=>{function b(h,m){return h*m>0}d.exports=function(h,m,f,v){var _,A,M,T,O,B,z,q,J,rt,ut,Z,mt;if(_=m.y-h.y,M=h.x-m.x,O=m.x*h.y-h.x*m.y,J=_*f.x+M*f.y+O,rt=_*v.x+M*v.y+O,!(J!==0&&rt!==0&&b(J,rt)||(A=v.y-f.y,T=f.x-v.x,B=v.x*f.y-f.x*v.y,z=A*h.x+T*h.y+B,q=A*m.x+T*m.y+B,z!==0&&q!==0&&b(z,q)||(ut=_*T-A*M)==0)))return Z=Math.abs(ut/2),{x:(mt=M*B-T*O)<0?(mt-Z)/ut:(mt+Z)/ut,y:(mt=A*O-_*B)<0?(mt-Z)/ut:(mt+Z)/ut}}},3042:d=>{d.exports=function(b,h){return b.intersect(h)}},5337:(d,b,h)=>{var m=h(6808);d.exports=function(f,v,_){var A=f.x,M=f.y,T=[],O=Number.POSITIVE_INFINITY,B=Number.POSITIVE_INFINITY;v.forEach(function(mt){O=Math.min(O,mt.x),B=Math.min(B,mt.y)});for(var z=A-f.width/2-O,q=M-f.height/2-B,J=0;J<v.length;J++){var rt=v[J],ut=v[J<v.length-1?J+1:0],Z=m(f,_,{x:z+rt.x,y:q+rt.y},{x:z+ut.x,y:q+ut.y});Z&&T.push(Z)}return T.length?(T.length>1&&T.sort(function(mt,nt){var at=mt.x-_.x,_t=mt.y-_.y,jt=Math.sqrt(at*at+_t*_t),St=nt.x-_.x,gt=nt.y-_.y,Ct=Math.sqrt(St*St+gt*gt);return jt<Ct?-1:jt===Ct?0:1}),T[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",f),f)}},8049:d=>{d.exports=function(b,h){var m,f,v=b.x,_=b.y,A=h.x-v,M=h.y-_,T=b.width/2,O=b.height/2;return Math.abs(M)*T>Math.abs(A)*O?(M<0&&(O=-O),m=M===0?0:O*A/M,f=O):(A<0&&(T=-T),m=T,f=A===0?0:T*M/A),{x:v+m,y:_+f}}},8284:(d,b,h)=>{var m=h(8355);d.exports=function(f,v){var _=f.append("foreignObject").attr("width","100000"),A=_.append("xhtml:div");A.attr("xmlns","http://www.w3.org/1999/xhtml");var M=v.label;switch(typeof M){case"function":A.insert(M);break;case"object":A.insert(function(){return M});break;default:A.html(M)}m.applyStyle(A,v.labelStyle),A.style("display","inline-block"),A.style("white-space","nowrap");var T=A.node().getBoundingClientRect();return _.attr("width",T.width).attr("height",T.height),_}},1322:(d,b,h)=>{var m=h(7318),f=h(8284),v=h(8287);d.exports=function(_,A,M){var T=A.label,O=_.append("g");A.labelType==="svg"?v(O,A):typeof T!="string"||A.labelType==="html"?f(O,A):m(O,A);var B,z=O.node().getBBox();switch(M){case"top":B=-A.height/2;break;case"bottom":B=A.height/2-z.height;break;default:B=-z.height/2}return O.attr("transform","translate("+-z.width/2+","+B+")"),O}},8287:(d,b,h)=>{var m=h(8355);d.exports=function(f,v){var _=f;return _.node().appendChild(v.label),m.applyStyle(_,v.labelStyle),_}},7318:(d,b,h)=>{var m=h(8355);d.exports=function(f,v){for(var _=f.append("text"),A=function(T){for(var O,B="",z=!1,q=0;q<T.length;++q)O=T[q],z?(B+=O==="n"?`
|
|
`:O,z=!1):O==="\\"?z=!0:B+=O;return B}(v.label).split(`
|
|
`),M=0;M<A.length;M++)_.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(A[M]);return m.applyStyle(_,v.labelStyle),_}},1034:(d,b,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._),d.exports=m},6381:(d,b,h)=>{var m=h(8355),f=h(4322);d.exports=function(v,_){var A=v.filter(function(){return!f.select(this).classed("update")});function M(T){var O=_.node(T);return"translate("+O.x+","+O.y+")"}A.attr("transform",M),m.applyTransition(v,_).style("opacity",1).attr("transform",M),m.applyTransition(A.selectAll("rect"),_).attr("width",function(T){return _.node(T).width}).attr("height",function(T){return _.node(T).height}).attr("x",function(T){return-_.node(T).width/2}).attr("y",function(T){return-_.node(T).height/2})}},4577:(d,b,h)=>{var m=h(8355),f=h(4322),v=h(1034);d.exports=function(_,A){function M(T){var O=A.edge(T);return v.has(O,"x")?"translate("+O.x+","+O.y+")":""}_.filter(function(){return!f.select(this).classed("update")}).attr("transform",M),m.applyTransition(_,A).style("opacity",1).attr("transform",M)}},4849:(d,b,h)=>{var m=h(8355),f=h(4322);d.exports=function(v,_){function A(M){var T=_.node(M);return"translate("+T.x+","+T.y+")"}v.filter(function(){return!f.select(this).classed("update")}).attr("transform",A),m.applyTransition(v,_).style("opacity",1).attr("transform",A)}},5787:(d,b,h)=>{var m=h(1034),f=h(4322),v=h(6478).layout;d.exports=function(){var T=h(607),O=h(5632),B=h(6315),z=h(940),q=h(4849),J=h(4577),rt=h(6381),ut=h(4418),Z=h(9144),mt=function(nt,at){(function(ft){ft.nodes().forEach(function(Q){var ht=ft.node(Q);m.has(ht,"label")||ft.children(Q).length||(ht.label=Q),m.has(ht,"paddingX")&&m.defaults(ht,{paddingLeft:ht.paddingX,paddingRight:ht.paddingX}),m.has(ht,"paddingY")&&m.defaults(ht,{paddingTop:ht.paddingY,paddingBottom:ht.paddingY}),m.has(ht,"padding")&&m.defaults(ht,{paddingLeft:ht.padding,paddingRight:ht.padding,paddingTop:ht.padding,paddingBottom:ht.padding}),m.defaults(ht,_),m.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function($){ht[$]=Number(ht[$])}),m.has(ht,"width")&&(ht._prevWidth=ht.width),m.has(ht,"height")&&(ht._prevHeight=ht.height)}),ft.edges().forEach(function(Q){var ht=ft.edge(Q);m.has(ht,"label")||(ht.label=""),m.defaults(ht,A)})})(at);var _t=M(nt,"output"),jt=M(_t,"clusters"),St=M(_t,"edgePaths"),gt=B(M(_t,"edgeLabels"),at),Ct=T(M(_t,"nodes"),at,ut);v(at),q(Ct,at),J(gt,at),z(St,at,Z);var vt=O(jt,at);rt(vt,at),function(ft){m.each(ft.nodes(),function(Q){var ht=ft.node(Q);m.has(ht,"_prevWidth")?ht.width=ht._prevWidth:delete ht.width,m.has(ht,"_prevHeight")?ht.height=ht._prevHeight:delete ht.height,delete ht._prevWidth,delete ht._prevHeight})}(at)};return mt.createNodes=function(nt){return arguments.length?(T=nt,mt):T},mt.createClusters=function(nt){return arguments.length?(O=nt,mt):O},mt.createEdgeLabels=function(nt){return arguments.length?(B=nt,mt):B},mt.createEdgePaths=function(nt){return arguments.length?(z=nt,mt):z},mt.shapes=function(nt){return arguments.length?(ut=nt,mt):ut},mt.arrows=function(nt){return arguments.length?(Z=nt,mt):Z},mt};var _={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},A={arrowhead:"normal",curve:f.curveLinear};function M(T,O){var B=T.select("g."+O);return B.empty()&&(B=T.append("g").attr("class",O)),B}},4418:(d,b,h)=>{var m=h(8049),f=h(3260),v=h(6587),_=h(5337);d.exports={rect:function(A,M,T){var O=A.insert("rect",":first-child").attr("rx",T.rx).attr("ry",T.ry).attr("x",-M.width/2).attr("y",-M.height/2).attr("width",M.width).attr("height",M.height);return T.intersect=function(B){return m(T,B)},O},ellipse:function(A,M,T){var O=M.width/2,B=M.height/2,z=A.insert("ellipse",":first-child").attr("x",-M.width/2).attr("y",-M.height/2).attr("rx",O).attr("ry",B);return T.intersect=function(q){return f(T,O,B,q)},z},circle:function(A,M,T){var O=Math.max(M.width,M.height)/2,B=A.insert("circle",":first-child").attr("x",-M.width/2).attr("y",-M.height/2).attr("r",O);return T.intersect=function(z){return v(T,O,z)},B},diamond:function(A,M,T){var O=M.width*Math.SQRT2/2,B=M.height*Math.SQRT2/2,z=[{x:0,y:-B},{x:-O,y:0},{x:0,y:B},{x:O,y:0}],q=A.insert("polygon",":first-child").attr("points",z.map(function(J){return J.x+","+J.y}).join(" "));return T.intersect=function(J){return _(T,z,J)},q}}},8355:(d,b,h)=>{var m=h(1034);d.exports={isSubgraph:function(_,A){return!!_.children(A).length},edgeToId:function(_){return v(_.v)+":"+v(_.w)+":"+v(_.name)},applyStyle:function(_,A){A&&_.attr("style",A)},applyClass:function(_,A,M){A&&_.attr("class",A).attr("class",M+" "+_.attr("class"))},applyTransition:function(_,A){var M=A.graph();if(m.isPlainObject(M)){var T=M.transition;if(m.isFunction(T))return T(_)}return _}};var f=/:/g;function v(_){return _?String(_).replace(f,"\\:"):""}},5689:d=>{d.exports="0.6.4"},681:(d,b,h)=>{d.exports={graphlib:h(574),layout:h(8123),debug:h(7570),util:{time:h(1138).time,notime:h(1138).notime},version:h(8177)}},2188:(d,b,h)=>{var m=h(8436),f=h(4079);d.exports={run:function(v){var _=v.graph().acyclicer==="greedy"?f(v,function(A){return function(M){return A.edge(M).weight}}(v)):function(A){var M=[],T={},O={};return m.forEach(A.nodes(),function B(z){m.has(O,z)||(O[z]=!0,T[z]=!0,m.forEach(A.outEdges(z),function(q){m.has(T,q.w)?M.push(q):B(q.w)}),delete T[z])}),M}(v);m.forEach(_,function(A){var M=v.edge(A);v.removeEdge(A),M.forwardName=A.name,M.reversed=!0,v.setEdge(A.w,A.v,M,m.uniqueId("rev"))})},undo:function(v){m.forEach(v.edges(),function(_){var A=v.edge(_);if(A.reversed){v.removeEdge(_);var M=A.forwardName;delete A.reversed,delete A.forwardName,v.setEdge(_.w,_.v,A,M)}})}}},1133:(d,b,h)=>{var m=h(8436),f=h(1138);function v(_,A,M,T,O,B){var z={width:0,height:0,rank:B,borderType:A},q=O[A][B-1],J=f.addDummyNode(_,"border",z,M);O[A][B]=J,_.setParent(J,T),q&&_.setEdge(q,J,{weight:1})}d.exports=function(_){m.forEach(_.children(),function A(M){var T=_.children(M),O=_.node(M);if(T.length&&m.forEach(T,A),m.has(O,"minRank")){O.borderLeft=[],O.borderRight=[];for(var B=O.minRank,z=O.maxRank+1;B<z;++B)v(_,"borderLeft","_bl",M,O,B),v(_,"borderRight","_br",M,O,B)}})}},3258:(d,b,h)=>{var m=h(8436);function f(M){m.forEach(M.nodes(),function(T){v(M.node(T))}),m.forEach(M.edges(),function(T){v(M.edge(T))})}function v(M){var T=M.width;M.width=M.height,M.height=T}function _(M){M.y=-M.y}function A(M){var T=M.x;M.x=M.y,M.y=T}d.exports={adjust:function(M){var T=M.graph().rankdir.toLowerCase();T!=="lr"&&T!=="rl"||f(M)},undo:function(M){var T=M.graph().rankdir.toLowerCase();T!=="bt"&&T!=="rl"||function(O){m.forEach(O.nodes(),function(B){_(O.node(B))}),m.forEach(O.edges(),function(B){var z=O.edge(B);m.forEach(z.points,_),m.has(z,"y")&&_(z)})}(M),T!=="lr"&&T!=="rl"||(function(O){m.forEach(O.nodes(),function(B){A(O.node(B))}),m.forEach(O.edges(),function(B){var z=O.edge(B);m.forEach(z.points,A),m.has(z,"x")&&A(z)})}(M),f(M))}}},7822:d=>{function b(){var f={};f._next=f._prev=f,this._sentinel=f}function h(f){f._prev._next=f._next,f._next._prev=f._prev,delete f._next,delete f._prev}function m(f,v){if(f!=="_next"&&f!=="_prev")return v}d.exports=b,b.prototype.dequeue=function(){var f=this._sentinel,v=f._prev;if(v!==f)return h(v),v},b.prototype.enqueue=function(f){var v=this._sentinel;f._prev&&f._next&&h(f),f._next=v._next,v._next._prev=f,v._next=f,f._prev=v},b.prototype.toString=function(){for(var f=[],v=this._sentinel,_=v._prev;_!==v;)f.push(JSON.stringify(_,m)),_=_._prev;return"["+f.join(", ")+"]"}},7570:(d,b,h)=>{var m=h(8436),f=h(1138),v=h(574).Graph;d.exports={debugOrdering:function(_){var A=f.buildLayerMatrix(_),M=new v({compound:!0,multigraph:!0}).setGraph({});return m.forEach(_.nodes(),function(T){M.setNode(T,{label:T}),M.setParent(T,"layer"+_.node(T).rank)}),m.forEach(_.edges(),function(T){M.setEdge(T.v,T.w,{},T.name)}),m.forEach(A,function(T,O){var B="layer"+O;M.setNode(B,{rank:"same"}),m.reduce(T,function(z,q){return M.setEdge(z,q,{style:"invis"}),q})}),M}}},574:(d,b,h)=>{var m;try{m=h(8282)}catch{}m||(m=window.graphlib),d.exports=m},4079:(d,b,h)=>{var m=h(8436),f=h(574).Graph,v=h(7822);d.exports=function(T,O){if(T.nodeCount()<=1)return[];var B=function(q,J){var rt=new f,ut=0,Z=0;m.forEach(q.nodes(),function(at){rt.setNode(at,{v:at,in:0,out:0})}),m.forEach(q.edges(),function(at){var _t=rt.edge(at.v,at.w)||0,jt=J(at),St=_t+jt;rt.setEdge(at.v,at.w,St),Z=Math.max(Z,rt.node(at.v).out+=jt),ut=Math.max(ut,rt.node(at.w).in+=jt)});var mt=m.range(Z+ut+3).map(function(){return new v}),nt=ut+1;return m.forEach(rt.nodes(),function(at){M(mt,nt,rt.node(at))}),{graph:rt,buckets:mt,zeroIdx:nt}}(T,O||_),z=function(q,J,rt){for(var ut,Z=[],mt=J[J.length-1],nt=J[0];q.nodeCount();){for(;ut=nt.dequeue();)A(q,J,rt,ut);for(;ut=mt.dequeue();)A(q,J,rt,ut);if(q.nodeCount()){for(var at=J.length-2;at>0;--at)if(ut=J[at].dequeue()){Z=Z.concat(A(q,J,rt,ut,!0));break}}}return Z}(B.graph,B.buckets,B.zeroIdx);return m.flatten(m.map(z,function(q){return T.outEdges(q.v,q.w)}),!0)};var _=m.constant(1);function A(T,O,B,z,q){var J=q?[]:void 0;return m.forEach(T.inEdges(z.v),function(rt){var ut=T.edge(rt),Z=T.node(rt.v);q&&J.push({v:rt.v,w:rt.w}),Z.out-=ut,M(O,B,Z)}),m.forEach(T.outEdges(z.v),function(rt){var ut=T.edge(rt),Z=rt.w,mt=T.node(Z);mt.in-=ut,M(O,B,mt)}),T.removeNode(z.v),J}function M(T,O,B){B.out?B.in?T[B.out-B.in+O].enqueue(B):T[T.length-1].enqueue(B):T[0].enqueue(B)}},8123:(d,b,h)=>{var m=h(8436),f=h(2188),v=h(5995),_=h(8093),A=h(1138).normalizeRanks,M=h(4219),T=h(1138).removeEmptyRanks,O=h(2981),B=h(1133),z=h(3258),q=h(3408),J=h(7873),rt=h(1138),ut=h(574).Graph;d.exports=function(ft,Q){var ht=Q&&Q.debugTiming?rt.time:rt.notime;ht("layout",function(){var $=ht(" buildLayoutGraph",function(){return function(kt){var W=new ut({multigraph:!0,compound:!0}),At=vt(kt.graph());return W.setGraph(m.merge({},mt,Ct(At,Z),m.pick(At,nt))),m.forEach(kt.nodes(),function(Nt){var Gt=vt(kt.node(Nt));W.setNode(Nt,m.defaults(Ct(Gt,at),_t)),W.setParent(Nt,kt.parent(Nt))}),m.forEach(kt.edges(),function(Nt){var Gt=vt(kt.edge(Nt));W.setEdge(Nt,m.merge({},St,Ct(Gt,jt),m.pick(Gt,gt)))}),W}(ft)});ht(" runLayout",function(){(function(kt,W){W(" makeSpaceForEdgeLabels",function(){(function(At){var Nt=At.graph();Nt.ranksep/=2,m.forEach(At.edges(),function(Gt){var xe=At.edge(Gt);xe.minlen*=2,xe.labelpos.toLowerCase()!=="c"&&(Nt.rankdir==="TB"||Nt.rankdir==="BT"?xe.width+=xe.labeloffset:xe.height+=xe.labeloffset)})})(kt)}),W(" removeSelfEdges",function(){(function(At){m.forEach(At.edges(),function(Nt){if(Nt.v===Nt.w){var Gt=At.node(Nt.v);Gt.selfEdges||(Gt.selfEdges=[]),Gt.selfEdges.push({e:Nt,label:At.edge(Nt)}),At.removeEdge(Nt)}})})(kt)}),W(" acyclic",function(){f.run(kt)}),W(" nestingGraph.run",function(){O.run(kt)}),W(" rank",function(){_(rt.asNonCompoundGraph(kt))}),W(" injectEdgeLabelProxies",function(){(function(At){m.forEach(At.edges(),function(Nt){var Gt=At.edge(Nt);if(Gt.width&&Gt.height){var xe=At.node(Nt.v),Ge={rank:(At.node(Nt.w).rank-xe.rank)/2+xe.rank,e:Nt};rt.addDummyNode(At,"edge-proxy",Ge,"_ep")}})})(kt)}),W(" removeEmptyRanks",function(){T(kt)}),W(" nestingGraph.cleanup",function(){O.cleanup(kt)}),W(" normalizeRanks",function(){A(kt)}),W(" assignRankMinMax",function(){(function(At){var Nt=0;m.forEach(At.nodes(),function(Gt){var xe=At.node(Gt);xe.borderTop&&(xe.minRank=At.node(xe.borderTop).rank,xe.maxRank=At.node(xe.borderBottom).rank,Nt=m.max(Nt,xe.maxRank))}),At.graph().maxRank=Nt})(kt)}),W(" removeEdgeLabelProxies",function(){(function(At){m.forEach(At.nodes(),function(Nt){var Gt=At.node(Nt);Gt.dummy==="edge-proxy"&&(At.edge(Gt.e).labelRank=Gt.rank,At.removeNode(Nt))})})(kt)}),W(" normalize.run",function(){v.run(kt)}),W(" parentDummyChains",function(){M(kt)}),W(" addBorderSegments",function(){B(kt)}),W(" order",function(){q(kt)}),W(" insertSelfEdges",function(){(function(At){var Nt=rt.buildLayerMatrix(At);m.forEach(Nt,function(Gt){var xe=0;m.forEach(Gt,function(Ge,Te){var ye=At.node(Ge);ye.order=Te+xe,m.forEach(ye.selfEdges,function(ke){rt.addDummyNode(At,"selfedge",{width:ke.label.width,height:ke.label.height,rank:ye.rank,order:Te+ ++xe,e:ke.e,label:ke.label},"_se")}),delete ye.selfEdges})})})(kt)}),W(" adjustCoordinateSystem",function(){z.adjust(kt)}),W(" position",function(){J(kt)}),W(" positionSelfEdges",function(){(function(At){m.forEach(At.nodes(),function(Nt){var Gt=At.node(Nt);if(Gt.dummy==="selfedge"){var xe=At.node(Gt.e.v),Ge=xe.x+xe.width/2,Te=xe.y,ye=Gt.x-Ge,ke=xe.height/2;At.setEdge(Gt.e,Gt.label),At.removeNode(Nt),Gt.label.points=[{x:Ge+2*ye/3,y:Te-ke},{x:Ge+5*ye/6,y:Te-ke},{x:Ge+ye,y:Te},{x:Ge+5*ye/6,y:Te+ke},{x:Ge+2*ye/3,y:Te+ke}],Gt.label.x=Gt.x,Gt.label.y=Gt.y}})})(kt)}),W(" removeBorderNodes",function(){(function(At){m.forEach(At.nodes(),function(Nt){if(At.children(Nt).length){var Gt=At.node(Nt),xe=At.node(Gt.borderTop),Ge=At.node(Gt.borderBottom),Te=At.node(m.last(Gt.borderLeft)),ye=At.node(m.last(Gt.borderRight));Gt.width=Math.abs(ye.x-Te.x),Gt.height=Math.abs(Ge.y-xe.y),Gt.x=Te.x+Gt.width/2,Gt.y=xe.y+Gt.height/2}}),m.forEach(At.nodes(),function(Nt){At.node(Nt).dummy==="border"&&At.removeNode(Nt)})})(kt)}),W(" normalize.undo",function(){v.undo(kt)}),W(" fixupEdgeLabelCoords",function(){(function(At){m.forEach(At.edges(),function(Nt){var Gt=At.edge(Nt);if(m.has(Gt,"x"))switch(Gt.labelpos!=="l"&&Gt.labelpos!=="r"||(Gt.width-=Gt.labeloffset),Gt.labelpos){case"l":Gt.x-=Gt.width/2+Gt.labeloffset;break;case"r":Gt.x+=Gt.width/2+Gt.labeloffset}})})(kt)}),W(" undoCoordinateSystem",function(){z.undo(kt)}),W(" translateGraph",function(){(function(At){var Nt=Number.POSITIVE_INFINITY,Gt=0,xe=Number.POSITIVE_INFINITY,Ge=0,Te=At.graph(),ye=Te.marginx||0,ke=Te.marginy||0;function Me(Oe){var we=Oe.x,Sr=Oe.y,_e=Oe.width,er=Oe.height;Nt=Math.min(Nt,we-_e/2),Gt=Math.max(Gt,we+_e/2),xe=Math.min(xe,Sr-er/2),Ge=Math.max(Ge,Sr+er/2)}m.forEach(At.nodes(),function(Oe){Me(At.node(Oe))}),m.forEach(At.edges(),function(Oe){var we=At.edge(Oe);m.has(we,"x")&&Me(we)}),Nt-=ye,xe-=ke,m.forEach(At.nodes(),function(Oe){var we=At.node(Oe);we.x-=Nt,we.y-=xe}),m.forEach(At.edges(),function(Oe){var we=At.edge(Oe);m.forEach(we.points,function(Sr){Sr.x-=Nt,Sr.y-=xe}),m.has(we,"x")&&(we.x-=Nt),m.has(we,"y")&&(we.y-=xe)}),Te.width=Gt-Nt+ye,Te.height=Ge-xe+ke})(kt)}),W(" assignNodeIntersects",function(){(function(At){m.forEach(At.edges(),function(Nt){var Gt,xe,Ge=At.edge(Nt),Te=At.node(Nt.v),ye=At.node(Nt.w);Ge.points?(Gt=Ge.points[0],xe=Ge.points[Ge.points.length-1]):(Ge.points=[],Gt=ye,xe=Te),Ge.points.unshift(rt.intersectRect(Te,Gt)),Ge.points.push(rt.intersectRect(ye,xe))})})(kt)}),W(" reversePoints",function(){(function(At){m.forEach(At.edges(),function(Nt){var Gt=At.edge(Nt);Gt.reversed&&Gt.points.reverse()})})(kt)}),W(" acyclic.undo",function(){f.undo(kt)})})($,ht)}),ht(" updateInputGraph",function(){(function(kt,W){m.forEach(kt.nodes(),function(At){var Nt=kt.node(At),Gt=W.node(At);Nt&&(Nt.x=Gt.x,Nt.y=Gt.y,W.children(At).length&&(Nt.width=Gt.width,Nt.height=Gt.height))}),m.forEach(kt.edges(),function(At){var Nt=kt.edge(At),Gt=W.edge(At);Nt.points=Gt.points,m.has(Gt,"x")&&(Nt.x=Gt.x,Nt.y=Gt.y)}),kt.graph().width=W.graph().width,kt.graph().height=W.graph().height})(ft,$)})})};var Z=["nodesep","edgesep","ranksep","marginx","marginy"],mt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},nt=["acyclicer","ranker","rankdir","align"],at=["width","height"],_t={width:0,height:0},jt=["minlen","weight","width","height","labeloffset"],St={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},gt=["labelpos"];function Ct(ft,Q){return m.mapValues(m.pick(ft,Q),Number)}function vt(ft){var Q={};return m.forEach(ft,function(ht,$){Q[$.toLowerCase()]=ht}),Q}},8436:(d,b,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._),d.exports=m},2981:(d,b,h)=>{var m=h(8436),f=h(1138);function v(_,A,M,T,O,B,z){var q=_.children(z);if(q.length){var J=f.addBorderNode(_,"_bt"),rt=f.addBorderNode(_,"_bb"),ut=_.node(z);_.setParent(J,z),ut.borderTop=J,_.setParent(rt,z),ut.borderBottom=rt,m.forEach(q,function(Z){v(_,A,M,T,O,B,Z);var mt=_.node(Z),nt=mt.borderTop?mt.borderTop:Z,at=mt.borderBottom?mt.borderBottom:Z,_t=mt.borderTop?T:2*T,jt=nt!==at?1:O-B[z]+1;_.setEdge(J,nt,{weight:_t,minlen:jt,nestingEdge:!0}),_.setEdge(at,rt,{weight:_t,minlen:jt,nestingEdge:!0})}),_.parent(z)||_.setEdge(A,J,{weight:0,minlen:O+B[z]})}else z!==A&&_.setEdge(A,z,{weight:0,minlen:M})}d.exports={run:function(_){var A=f.addDummyNode(_,"root",{},"_root"),M=function(z){var q={};function J(rt,ut){var Z=z.children(rt);Z&&Z.length&&m.forEach(Z,function(mt){J(mt,ut+1)}),q[rt]=ut}return m.forEach(z.children(),function(rt){J(rt,1)}),q}(_),T=m.max(m.values(M))-1,O=2*T+1;_.graph().nestingRoot=A,m.forEach(_.edges(),function(z){_.edge(z).minlen*=O});var B=function(z){return m.reduce(z.edges(),function(q,J){return q+z.edge(J).weight},0)}(_)+1;m.forEach(_.children(),function(z){v(_,A,O,B,T,M,z)}),_.graph().nodeRankFactor=O},cleanup:function(_){var A=_.graph();_.removeNode(A.nestingRoot),delete A.nestingRoot,m.forEach(_.edges(),function(M){_.edge(M).nestingEdge&&_.removeEdge(M)})}}},5995:(d,b,h)=>{var m=h(8436),f=h(1138);d.exports={run:function(v){v.graph().dummyChains=[],m.forEach(v.edges(),function(_){(function(A,M){var T,O,B,z=M.v,q=A.node(z).rank,J=M.w,rt=A.node(J).rank,ut=M.name,Z=A.edge(M),mt=Z.labelRank;if(rt!==q+1){for(A.removeEdge(M),B=0,++q;q<rt;++B,++q)Z.points=[],O={width:0,height:0,edgeLabel:Z,edgeObj:M,rank:q},T=f.addDummyNode(A,"edge",O,"_d"),q===mt&&(O.width=Z.width,O.height=Z.height,O.dummy="edge-label",O.labelpos=Z.labelpos),A.setEdge(z,T,{weight:Z.weight},ut),B===0&&A.graph().dummyChains.push(T),z=T;A.setEdge(z,J,{weight:Z.weight},ut)}})(v,_)})},undo:function(v){m.forEach(v.graph().dummyChains,function(_){var A,M=v.node(_),T=M.edgeLabel;for(v.setEdge(M.edgeObj,T);M.dummy;)A=v.successors(_)[0],v.removeNode(_),T.points.push({x:M.x,y:M.y}),M.dummy==="edge-label"&&(T.x=M.x,T.y=M.y,T.width=M.width,T.height=M.height),_=A,M=v.node(_)})}}},5093:(d,b,h)=>{var m=h(8436);d.exports=function(f,v,_){var A,M={};m.forEach(_,function(T){for(var O,B,z=f.parent(T);z;){if((O=f.parent(z))?(B=M[O],M[O]=z):(B=A,A=z),B&&B!==z)return void v.setEdge(B,z);z=O}})}},5439:(d,b,h)=>{var m=h(8436);d.exports=function(f,v){return m.map(v,function(_){var A=f.inEdges(_);if(A.length){var M=m.reduce(A,function(T,O){var B=f.edge(O),z=f.node(O.v);return{sum:T.sum+B.weight*z.order,weight:T.weight+B.weight}},{sum:0,weight:0});return{v:_,barycenter:M.sum/M.weight,weight:M.weight}}return{v:_}})}},3128:(d,b,h)=>{var m=h(8436),f=h(574).Graph;d.exports=function(v,_,A){var M=function(O){for(var B;O.hasNode(B=m.uniqueId("_root")););return B}(v),T=new f({compound:!0}).setGraph({root:M}).setDefaultNodeLabel(function(O){return v.node(O)});return m.forEach(v.nodes(),function(O){var B=v.node(O),z=v.parent(O);(B.rank===_||B.minRank<=_&&_<=B.maxRank)&&(T.setNode(O),T.setParent(O,z||M),m.forEach(v[A](O),function(q){var J=q.v===O?q.w:q.v,rt=T.edge(J,O),ut=m.isUndefined(rt)?0:rt.weight;T.setEdge(J,O,{weight:v.edge(q).weight+ut})}),m.has(B,"minRank")&&T.setNode(O,{borderLeft:B.borderLeft[_],borderRight:B.borderRight[_]}))}),T}},6630:(d,b,h)=>{var m=h(8436);function f(v,_,A){for(var M=m.zipObject(A,m.map(A,function(J,rt){return rt})),T=m.flatten(m.map(_,function(J){return m.sortBy(m.map(v.outEdges(J),function(rt){return{pos:M[rt.w],weight:v.edge(rt).weight}}),"pos")}),!0),O=1;O<A.length;)O<<=1;var B=2*O-1;O-=1;var z=m.map(new Array(B),function(){return 0}),q=0;return m.forEach(T.forEach(function(J){var rt=J.pos+O;z[rt]+=J.weight;for(var ut=0;rt>0;)rt%2&&(ut+=z[rt+1]),z[rt=rt-1>>1]+=J.weight;q+=J.weight*ut})),q}d.exports=function(v,_){for(var A=0,M=1;M<_.length;++M)A+=f(v,_[M-1],_[M]);return A}},3408:(d,b,h)=>{var m=h(8436),f=h(2588),v=h(6630),_=h(1026),A=h(3128),M=h(5093),T=h(574).Graph,O=h(1138);function B(J,rt,ut){return m.map(rt,function(Z){return A(J,Z,ut)})}function z(J,rt){var ut=new T;m.forEach(J,function(Z){var mt=Z.graph().root,nt=_(Z,mt,ut,rt);m.forEach(nt.vs,function(at,_t){Z.node(at).order=_t}),M(Z,ut,nt.vs)})}function q(J,rt){m.forEach(rt,function(ut){m.forEach(ut,function(Z,mt){J.node(Z).order=mt})})}d.exports=function(J){var rt=O.maxRank(J),ut=B(J,m.range(1,rt+1),"inEdges"),Z=B(J,m.range(rt-1,-1,-1),"outEdges"),mt=f(J);q(J,mt);for(var nt,at=Number.POSITIVE_INFINITY,_t=0,jt=0;jt<4;++_t,++jt){z(_t%2?ut:Z,_t%4>=2),mt=O.buildLayerMatrix(J);var St=v(J,mt);St<at&&(jt=0,nt=m.cloneDeep(mt),at=St)}q(J,nt)}},2588:(d,b,h)=>{var m=h(8436);d.exports=function(f){var v={},_=m.filter(f.nodes(),function(O){return!f.children(O).length}),A=m.max(m.map(_,function(O){return f.node(O).rank})),M=m.map(m.range(A+1),function(){return[]}),T=m.sortBy(_,function(O){return f.node(O).rank});return m.forEach(T,function O(B){if(!m.has(v,B)){v[B]=!0;var z=f.node(B);M[z.rank].push(B),m.forEach(f.successors(B),O)}}),M}},9567:(d,b,h)=>{var m=h(8436);d.exports=function(f,v){var _={};return m.forEach(f,function(A,M){var T=_[A.v]={indegree:0,in:[],out:[],vs:[A.v],i:M};m.isUndefined(A.barycenter)||(T.barycenter=A.barycenter,T.weight=A.weight)}),m.forEach(v.edges(),function(A){var M=_[A.v],T=_[A.w];m.isUndefined(M)||m.isUndefined(T)||(T.indegree++,M.out.push(_[A.w]))}),function(A){var M=[];function T(z){return function(q){var J,rt,ut,Z;q.merged||(m.isUndefined(q.barycenter)||m.isUndefined(z.barycenter)||q.barycenter>=z.barycenter)&&(rt=q,ut=0,Z=0,(J=z).weight&&(ut+=J.barycenter*J.weight,Z+=J.weight),rt.weight&&(ut+=rt.barycenter*rt.weight,Z+=rt.weight),J.vs=rt.vs.concat(J.vs),J.barycenter=ut/Z,J.weight=Z,J.i=Math.min(rt.i,J.i),rt.merged=!0)}}function O(z){return function(q){q.in.push(z),--q.indegree==0&&A.push(q)}}for(;A.length;){var B=A.pop();M.push(B),m.forEach(B.in.reverse(),T(B)),m.forEach(B.out,O(B))}return m.map(m.filter(M,function(z){return!z.merged}),function(z){return m.pick(z,["vs","i","barycenter","weight"])})}(m.filter(_,function(A){return!A.indegree}))}},1026:(d,b,h)=>{var m=h(8436),f=h(5439),v=h(9567),_=h(7304);d.exports=function A(M,T,O,B){var z=M.children(T),q=M.node(T),J=q?q.borderLeft:void 0,rt=q?q.borderRight:void 0,ut={};J&&(z=m.filter(z,function(jt){return jt!==J&&jt!==rt}));var Z=f(M,z);m.forEach(Z,function(jt){if(M.children(jt.v).length){var St=A(M,jt.v,O,B);ut[jt.v]=St,m.has(St,"barycenter")&&(gt=jt,Ct=St,m.isUndefined(gt.barycenter)?(gt.barycenter=Ct.barycenter,gt.weight=Ct.weight):(gt.barycenter=(gt.barycenter*gt.weight+Ct.barycenter*Ct.weight)/(gt.weight+Ct.weight),gt.weight+=Ct.weight))}var gt,Ct});var mt=v(Z,O);(function(jt,St){m.forEach(jt,function(gt){gt.vs=m.flatten(gt.vs.map(function(Ct){return St[Ct]?St[Ct].vs:Ct}),!0)})})(mt,ut);var nt=_(mt,B);if(J&&(nt.vs=m.flatten([J,nt.vs,rt],!0),M.predecessors(J).length)){var at=M.node(M.predecessors(J)[0]),_t=M.node(M.predecessors(rt)[0]);m.has(nt,"barycenter")||(nt.barycenter=0,nt.weight=0),nt.barycenter=(nt.barycenter*nt.weight+at.order+_t.order)/(nt.weight+2),nt.weight+=2}return nt}},7304:(d,b,h)=>{var m=h(8436),f=h(1138);function v(_,A,M){for(var T;A.length&&(T=m.last(A)).i<=M;)A.pop(),_.push(T.vs),M++;return M}d.exports=function(_,A){var M,T=f.partition(_,function(Z){return m.has(Z,"barycenter")}),O=T.lhs,B=m.sortBy(T.rhs,function(Z){return-Z.i}),z=[],q=0,J=0,rt=0;O.sort((M=!!A,function(Z,mt){return Z.barycenter<mt.barycenter?-1:Z.barycenter>mt.barycenter?1:M?mt.i-Z.i:Z.i-mt.i})),rt=v(z,B,rt),m.forEach(O,function(Z){rt+=Z.vs.length,z.push(Z.vs),q+=Z.barycenter*Z.weight,J+=Z.weight,rt=v(z,B,rt)});var ut={vs:m.flatten(z,!0)};return J&&(ut.barycenter=q/J,ut.weight=J),ut}},4219:(d,b,h)=>{var m=h(8436);d.exports=function(f){var v=function(_){var A={},M=0;return m.forEach(_.children(),function T(O){var B=M;m.forEach(_.children(O),T),A[O]={low:B,lim:M++}}),A}(f);m.forEach(f.graph().dummyChains,function(_){for(var A=f.node(_),M=A.edgeObj,T=function(rt,ut,Z,mt){var nt,at,_t=[],jt=[],St=Math.min(ut[Z].low,ut[mt].low),gt=Math.max(ut[Z].lim,ut[mt].lim);nt=Z;do nt=rt.parent(nt),_t.push(nt);while(nt&&(ut[nt].low>St||gt>ut[nt].lim));for(at=nt,nt=mt;(nt=rt.parent(nt))!==at;)jt.push(nt);return{path:_t.concat(jt.reverse()),lca:at}}(f,v,M.v,M.w),O=T.path,B=T.lca,z=0,q=O[z],J=!0;_!==M.w;){if(A=f.node(_),J){for(;(q=O[z])!==B&&f.node(q).maxRank<A.rank;)z++;q===B&&(J=!1)}if(!J){for(;z<O.length-1&&f.node(q=O[z+1]).minRank<=A.rank;)z++;q=O[z]}f.setParent(_,q),_=f.successors(_)[0]}})}},3573:(d,b,h)=>{var m=h(8436),f=h(574).Graph,v=h(1138);function _(rt,ut){var Z={};return m.reduce(ut,function(mt,nt){var at=0,_t=0,jt=mt.length,St=m.last(nt);return m.forEach(nt,function(gt,Ct){var vt=function(Q,ht){if(Q.node(ht).dummy)return m.find(Q.predecessors(ht),function($){return Q.node($).dummy})}(rt,gt),ft=vt?rt.node(vt).order:jt;(vt||gt===St)&&(m.forEach(nt.slice(_t,Ct+1),function(Q){m.forEach(rt.predecessors(Q),function(ht){var $=rt.node(ht),kt=$.order;!(kt<at||ft<kt)||$.dummy&&rt.node(Q).dummy||M(Z,ht,Q)})}),_t=Ct+1,at=ft)}),nt}),Z}function A(rt,ut){var Z={};function mt(nt,at,_t,jt,St){var gt;m.forEach(m.range(at,_t),function(Ct){gt=nt[Ct],rt.node(gt).dummy&&m.forEach(rt.predecessors(gt),function(vt){var ft=rt.node(vt);ft.dummy&&(ft.order<jt||ft.order>St)&&M(Z,vt,gt)})})}return m.reduce(ut,function(nt,at){var _t,jt=-1,St=0;return m.forEach(at,function(gt,Ct){if(rt.node(gt).dummy==="border"){var vt=rt.predecessors(gt);vt.length&&(_t=rt.node(vt[0]).order,mt(at,St,Ct,jt,_t),St=Ct,jt=_t)}mt(at,St,at.length,_t,nt.length)}),at}),Z}function M(rt,ut,Z){if(ut>Z){var mt=ut;ut=Z,Z=mt}var nt=rt[ut];nt||(rt[ut]=nt={}),nt[Z]=!0}function T(rt,ut,Z){if(ut>Z){var mt=ut;ut=Z,Z=mt}return m.has(rt[ut],Z)}function O(rt,ut,Z,mt){var nt={},at={},_t={};return m.forEach(ut,function(jt){m.forEach(jt,function(St,gt){nt[St]=St,at[St]=St,_t[St]=gt})}),m.forEach(ut,function(jt){var St=-1;m.forEach(jt,function(gt){var Ct=mt(gt);if(Ct.length){Ct=m.sortBy(Ct,function($){return _t[$]});for(var vt=(Ct.length-1)/2,ft=Math.floor(vt),Q=Math.ceil(vt);ft<=Q;++ft){var ht=Ct[ft];at[gt]===gt&&St<_t[ht]&&!T(Z,gt,ht)&&(at[ht]=gt,at[gt]=nt[gt]=nt[ht],St=_t[ht])}}})}),{root:nt,align:at}}function B(rt,ut,Z,mt,nt){var at={},_t=function(gt,Ct,vt,ft){var Q=new f,ht=gt.graph(),$=function(kt,W,At){return function(Nt,Gt,xe){var Ge,Te=Nt.node(Gt),ye=Nt.node(xe),ke=0;if(ke+=Te.width/2,m.has(Te,"labelpos"))switch(Te.labelpos.toLowerCase()){case"l":Ge=-Te.width/2;break;case"r":Ge=Te.width/2}if(Ge&&(ke+=At?Ge:-Ge),Ge=0,ke+=(Te.dummy?W:kt)/2,ke+=(ye.dummy?W:kt)/2,ke+=ye.width/2,m.has(ye,"labelpos"))switch(ye.labelpos.toLowerCase()){case"l":Ge=ye.width/2;break;case"r":Ge=-ye.width/2}return Ge&&(ke+=At?Ge:-Ge),Ge=0,ke}}(ht.nodesep,ht.edgesep,ft);return m.forEach(Ct,function(kt){var W;m.forEach(kt,function(At){var Nt=vt[At];if(Q.setNode(Nt),W){var Gt=vt[W],xe=Q.edge(Gt,Nt);Q.setEdge(Gt,Nt,Math.max($(gt,At,W),xe||0))}W=At})}),Q}(rt,ut,Z,nt),jt=nt?"borderLeft":"borderRight";function St(gt,Ct){for(var vt=_t.nodes(),ft=vt.pop(),Q={};ft;)Q[ft]?gt(ft):(Q[ft]=!0,vt.push(ft),vt=vt.concat(Ct(ft))),ft=vt.pop()}return St(function(gt){at[gt]=_t.inEdges(gt).reduce(function(Ct,vt){return Math.max(Ct,at[vt.v]+_t.edge(vt))},0)},_t.predecessors.bind(_t)),St(function(gt){var Ct=_t.outEdges(gt).reduce(function(ft,Q){return Math.min(ft,at[Q.w]-_t.edge(Q))},Number.POSITIVE_INFINITY),vt=rt.node(gt);Ct!==Number.POSITIVE_INFINITY&&vt.borderType!==jt&&(at[gt]=Math.max(at[gt],Ct))},_t.successors.bind(_t)),m.forEach(mt,function(gt){at[gt]=at[Z[gt]]}),at}function z(rt,ut){return m.minBy(m.values(ut),function(Z){var mt=Number.NEGATIVE_INFINITY,nt=Number.POSITIVE_INFINITY;return m.forIn(Z,function(at,_t){var jt=function(St,gt){return St.node(gt).width}(rt,_t)/2;mt=Math.max(at+jt,mt),nt=Math.min(at-jt,nt)}),mt-nt})}function q(rt,ut){var Z=m.values(ut),mt=m.min(Z),nt=m.max(Z);m.forEach(["u","d"],function(at){m.forEach(["l","r"],function(_t){var jt,St=at+_t,gt=rt[St];if(gt!==ut){var Ct=m.values(gt);(jt=_t==="l"?mt-m.min(Ct):nt-m.max(Ct))&&(rt[St]=m.mapValues(gt,function(vt){return vt+jt}))}})})}function J(rt,ut){return m.mapValues(rt.ul,function(Z,mt){if(ut)return rt[ut.toLowerCase()][mt];var nt=m.sortBy(m.map(rt,mt));return(nt[1]+nt[2])/2})}d.exports={positionX:function(rt){var ut,Z=v.buildLayerMatrix(rt),mt=m.merge(_(rt,Z),A(rt,Z)),nt={};m.forEach(["u","d"],function(_t){ut=_t==="u"?Z:m.values(Z).reverse(),m.forEach(["l","r"],function(jt){jt==="r"&&(ut=m.map(ut,function(vt){return m.values(vt).reverse()}));var St=(_t==="u"?rt.predecessors:rt.successors).bind(rt),gt=O(0,ut,mt,St),Ct=B(rt,ut,gt.root,gt.align,jt==="r");jt==="r"&&(Ct=m.mapValues(Ct,function(vt){return-vt})),nt[_t+jt]=Ct})});var at=z(rt,nt);return q(nt,at),J(nt,rt.graph().align)},findType1Conflicts:_,findType2Conflicts:A,addConflict:M,hasConflict:T,verticalAlignment:O,horizontalCompaction:B,alignCoordinates:q,findSmallestWidthAlignment:z,balance:J}},7873:(d,b,h)=>{var m=h(8436),f=h(1138),v=h(3573).positionX;d.exports=function(_){(function(A){var M=f.buildLayerMatrix(A),T=A.graph().ranksep,O=0;m.forEach(M,function(B){var z=m.max(m.map(B,function(q){return A.node(q).height}));m.forEach(B,function(q){A.node(q).y=O+z/2}),O+=z+T})})(_=f.asNonCompoundGraph(_)),m.forEach(v(_),function(A,M){_.node(M).x=A})}},300:(d,b,h)=>{var m=h(8436),f=h(574).Graph,v=h(6681).slack;function _(T,O){return m.forEach(T.nodes(),function B(z){m.forEach(O.nodeEdges(z),function(q){var J=q.v,rt=z===J?q.w:J;T.hasNode(rt)||v(O,q)||(T.setNode(rt,{}),T.setEdge(z,rt,{}),B(rt))})}),T.nodeCount()}function A(T,O){return m.minBy(O.edges(),function(B){if(T.hasNode(B.v)!==T.hasNode(B.w))return v(O,B)})}function M(T,O,B){m.forEach(T.nodes(),function(z){O.node(z).rank+=B})}d.exports=function(T){var O,B,z=new f({directed:!1}),q=T.nodes()[0],J=T.nodeCount();for(z.setNode(q,{});_(z,T)<J;)O=A(z,T),B=z.hasNode(O.v)?v(T,O):-v(T,O),M(z,T,B);return z}},8093:(d,b,h)=>{var m=h(6681).longestPath,f=h(300),v=h(2472);d.exports=function(A){switch(A.graph().ranker){case"network-simplex":default:(function(M){v(M)})(A);break;case"tight-tree":(function(M){m(M),f(M)})(A);break;case"longest-path":_(A)}};var _=m},2472:(d,b,h)=>{var m=h(8436),f=h(300),v=h(6681).slack,_=h(6681).longestPath,A=h(574).alg.preorder,M=h(574).alg.postorder,T=h(1138).simplify;function O(nt){nt=T(nt),_(nt);var at,_t=f(nt);for(q(_t),B(_t,nt);at=rt(_t);)Z(_t,nt,at,ut(_t,nt,at))}function B(nt,at){var _t=M(nt,nt.nodes());_t=_t.slice(0,_t.length-1),m.forEach(_t,function(jt){(function(St,gt,Ct){var vt=St.node(Ct).parent;St.edge(Ct,vt).cutvalue=z(St,gt,Ct)})(nt,at,jt)})}function z(nt,at,_t){var jt=nt.node(_t).parent,St=!0,gt=at.edge(_t,jt),Ct=0;return gt||(St=!1,gt=at.edge(jt,_t)),Ct=gt.weight,m.forEach(at.nodeEdges(_t),function(vt){var ft,Q,ht=vt.v===_t,$=ht?vt.w:vt.v;if($!==jt){var kt=ht===St,W=at.edge(vt).weight;if(Ct+=kt?W:-W,ft=_t,Q=$,nt.hasEdge(ft,Q)){var At=nt.edge(_t,$).cutvalue;Ct+=kt?-At:At}}}),Ct}function q(nt,at){arguments.length<2&&(at=nt.nodes()[0]),J(nt,{},1,at)}function J(nt,at,_t,jt,St){var gt=_t,Ct=nt.node(jt);return at[jt]=!0,m.forEach(nt.neighbors(jt),function(vt){m.has(at,vt)||(_t=J(nt,at,_t,vt,jt))}),Ct.low=gt,Ct.lim=_t++,St?Ct.parent=St:delete Ct.parent,_t}function rt(nt){return m.find(nt.edges(),function(at){return nt.edge(at).cutvalue<0})}function ut(nt,at,_t){var jt=_t.v,St=_t.w;at.hasEdge(jt,St)||(jt=_t.w,St=_t.v);var gt=nt.node(jt),Ct=nt.node(St),vt=gt,ft=!1;gt.lim>Ct.lim&&(vt=Ct,ft=!0);var Q=m.filter(at.edges(),function(ht){return ft===mt(0,nt.node(ht.v),vt)&&ft!==mt(0,nt.node(ht.w),vt)});return m.minBy(Q,function(ht){return v(at,ht)})}function Z(nt,at,_t,jt){var St=_t.v,gt=_t.w;nt.removeEdge(St,gt),nt.setEdge(jt.v,jt.w,{}),q(nt),B(nt,at),function(Ct,vt){var ft=m.find(Ct.nodes(),function(ht){return!vt.node(ht).parent}),Q=A(Ct,ft);Q=Q.slice(1),m.forEach(Q,function(ht){var $=Ct.node(ht).parent,kt=vt.edge(ht,$),W=!1;kt||(kt=vt.edge($,ht),W=!0),vt.node(ht).rank=vt.node($).rank+(W?kt.minlen:-kt.minlen)})}(nt,at)}function mt(nt,at,_t){return _t.low<=at.lim&&at.lim<=_t.lim}d.exports=O,O.initLowLimValues=q,O.initCutValues=B,O.calcCutValue=z,O.leaveEdge=rt,O.enterEdge=ut,O.exchangeEdges=Z},6681:(d,b,h)=>{var m=h(8436);d.exports={longestPath:function(f){var v={};m.forEach(f.sources(),function _(A){var M=f.node(A);if(m.has(v,A))return M.rank;v[A]=!0;var T=m.min(m.map(f.outEdges(A),function(O){return _(O.w)-f.edge(O).minlen}));return T!==Number.POSITIVE_INFINITY&&T!=null||(T=0),M.rank=T})},slack:function(f,v){return f.node(v.w).rank-f.node(v.v).rank-f.edge(v).minlen}}},1138:(d,b,h)=>{var m=h(8436),f=h(574).Graph;function v(A,M,T,O){var B;do B=m.uniqueId(O);while(A.hasNode(B));return T.dummy=M,A.setNode(B,T),B}function _(A){return m.max(m.map(A.nodes(),function(M){var T=A.node(M).rank;if(!m.isUndefined(T))return T}))}d.exports={addDummyNode:v,simplify:function(A){var M=new f().setGraph(A.graph());return m.forEach(A.nodes(),function(T){M.setNode(T,A.node(T))}),m.forEach(A.edges(),function(T){var O=M.edge(T.v,T.w)||{weight:0,minlen:1},B=A.edge(T);M.setEdge(T.v,T.w,{weight:O.weight+B.weight,minlen:Math.max(O.minlen,B.minlen)})}),M},asNonCompoundGraph:function(A){var M=new f({multigraph:A.isMultigraph()}).setGraph(A.graph());return m.forEach(A.nodes(),function(T){A.children(T).length||M.setNode(T,A.node(T))}),m.forEach(A.edges(),function(T){M.setEdge(T,A.edge(T))}),M},successorWeights:function(A){var M=m.map(A.nodes(),function(T){var O={};return m.forEach(A.outEdges(T),function(B){O[B.w]=(O[B.w]||0)+A.edge(B).weight}),O});return m.zipObject(A.nodes(),M)},predecessorWeights:function(A){var M=m.map(A.nodes(),function(T){var O={};return m.forEach(A.inEdges(T),function(B){O[B.v]=(O[B.v]||0)+A.edge(B).weight}),O});return m.zipObject(A.nodes(),M)},intersectRect:function(A,M){var T,O,B=A.x,z=A.y,q=M.x-B,J=M.y-z,rt=A.width/2,ut=A.height/2;if(!q&&!J)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(J)*rt>Math.abs(q)*ut?(J<0&&(ut=-ut),T=ut*q/J,O=ut):(q<0&&(rt=-rt),T=rt,O=rt*J/q),{x:B+T,y:z+O}},buildLayerMatrix:function(A){var M=m.map(m.range(_(A)+1),function(){return[]});return m.forEach(A.nodes(),function(T){var O=A.node(T),B=O.rank;m.isUndefined(B)||(M[B][O.order]=T)}),M},normalizeRanks:function(A){var M=m.min(m.map(A.nodes(),function(T){return A.node(T).rank}));m.forEach(A.nodes(),function(T){var O=A.node(T);m.has(O,"rank")&&(O.rank-=M)})},removeEmptyRanks:function(A){var M=m.min(m.map(A.nodes(),function(z){return A.node(z).rank})),T=[];m.forEach(A.nodes(),function(z){var q=A.node(z).rank-M;T[q]||(T[q]=[]),T[q].push(z)});var O=0,B=A.graph().nodeRankFactor;m.forEach(T,function(z,q){m.isUndefined(z)&&q%B!=0?--O:O&&m.forEach(z,function(J){A.node(J).rank+=O})})},addBorderNode:function(A,M,T,O){var B={width:0,height:0};return arguments.length>=4&&(B.rank=T,B.order=O),v(A,"border",B,M)},maxRank:_,partition:function(A,M){var T={lhs:[],rhs:[]};return m.forEach(A,function(O){M(O)?T.lhs.push(O):T.rhs.push(O)}),T},time:function(A,M){var T=m.now();try{return M()}finally{console.log(A+" time: "+(m.now()-T)+"ms")}},notime:function(A,M){return M()}}},8177:d=>{d.exports="0.8.5"},7856:function(d){d.exports=function(){function b(xt){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Rt){return typeof Rt}:function(Rt){return Rt&&typeof Symbol=="function"&&Rt.constructor===Symbol&&Rt!==Symbol.prototype?"symbol":typeof Rt},b(xt)}function h(xt,Rt){return h=Object.setPrototypeOf||function(me,Pe){return me.__proto__=Pe,me},h(xt,Rt)}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 f(xt,Rt,me){return f=m()?Reflect.construct:function(Pe,ar,Ze){var ur=[null];ur.push.apply(ur,ar);var ze=new(Function.bind.apply(Pe,ur));return Ze&&h(ze,Ze.prototype),ze},f.apply(null,arguments)}function v(xt){return function(Rt){if(Array.isArray(Rt))return _(Rt)}(xt)||function(Rt){if(typeof Symbol<"u"&&Rt[Symbol.iterator]!=null||Rt["@@iterator"]!=null)return Array.from(Rt)}(xt)||function(Rt,me){if(Rt){if(typeof Rt=="string")return _(Rt,me);var Pe=Object.prototype.toString.call(Rt).slice(8,-1);return Pe==="Object"&&Rt.constructor&&(Pe=Rt.constructor.name),Pe==="Map"||Pe==="Set"?Array.from(Rt):Pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pe)?_(Rt,me):void 0}}(xt)||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 _(xt,Rt){(Rt==null||Rt>xt.length)&&(Rt=xt.length);for(var me=0,Pe=new Array(Rt);me<Rt;me++)Pe[me]=xt[me];return Pe}var A=Object.hasOwnProperty,M=Object.setPrototypeOf,T=Object.isFrozen,O=Object.getPrototypeOf,B=Object.getOwnPropertyDescriptor,z=Object.freeze,q=Object.seal,J=Object.create,rt=typeof Reflect<"u"&&Reflect,ut=rt.apply,Z=rt.construct;ut||(ut=function(xt,Rt,me){return xt.apply(Rt,me)}),z||(z=function(xt){return xt}),q||(q=function(xt){return xt}),Z||(Z=function(xt,Rt){return f(xt,v(Rt))});var mt,nt=ht(Array.prototype.forEach),at=ht(Array.prototype.pop),_t=ht(Array.prototype.push),jt=ht(String.prototype.toLowerCase),St=ht(String.prototype.match),gt=ht(String.prototype.replace),Ct=ht(String.prototype.indexOf),vt=ht(String.prototype.trim),ft=ht(RegExp.prototype.test),Q=(mt=TypeError,function(){for(var xt=arguments.length,Rt=new Array(xt),me=0;me<xt;me++)Rt[me]=arguments[me];return Z(mt,Rt)});function ht(xt){return function(Rt){for(var me=arguments.length,Pe=new Array(me>1?me-1:0),ar=1;ar<me;ar++)Pe[ar-1]=arguments[ar];return ut(xt,Rt,Pe)}}function $(xt,Rt,me){me=me||jt,M&&M(xt,null);for(var Pe=Rt.length;Pe--;){var ar=Rt[Pe];if(typeof ar=="string"){var Ze=me(ar);Ze!==ar&&(T(Rt)||(Rt[Pe]=Ze),ar=Ze)}xt[ar]=!0}return xt}function kt(xt){var Rt,me=J(null);for(Rt in xt)ut(A,xt,[Rt])&&(me[Rt]=xt[Rt]);return me}function W(xt,Rt){for(;xt!==null;){var me=B(xt,Rt);if(me){if(me.get)return ht(me.get);if(typeof me.value=="function")return ht(me.value)}xt=O(xt)}return function(Pe){return console.warn("fallback value for",Pe),null}}var At=z(["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"]),Nt=z(["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"]),Gt=z(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),xe=z(["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"]),Ge=z(["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"]),Te=z(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ye=z(["#text"]),ke=z(["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"]),Me=z(["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"]),Oe=z(["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"]),we=z(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Sr=q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_e=q(/<%[\w\W]*|[\w\W]*%>/gm),er=q(/^data-[\-\w.\u00B7-\uFFFF]/),oe=q(/^aria-[\-\w]+$/),ee=q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),he=q(/^(?:\w+script|data):/i),Mt=q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ie=q(/^html$/i),pt=function(){return typeof window>"u"?null:window},wt=function(xt,Rt){if(b(xt)!=="object"||typeof xt.createPolicy!="function")return null;var me=null,Pe="data-tt-policy-suffix";Rt.currentScript&&Rt.currentScript.hasAttribute(Pe)&&(me=Rt.currentScript.getAttribute(Pe));var ar="dompurify"+(me?"#"+me:"");try{return xt.createPolicy(ar,{createHTML:function(Ze){return Ze},createScriptURL:function(Ze){return Ze}})}catch{return console.warn("TrustedTypes policy "+ar+" could not be created."),null}};return function xt(){var Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pt(),me=function(Qt){return xt(Qt)};if(me.version="2.4.0",me.removed=[],!Rt||!Rt.document||Rt.document.nodeType!==9)return me.isSupported=!1,me;var Pe=Rt.document,ar=Rt.document,Ze=Rt.DocumentFragment,ur=Rt.HTMLTemplateElement,ze=Rt.Node,Ce=Rt.Element,Be=Rt.NodeFilter,Fe=Rt.NamedNodeMap,be=Fe===void 0?Rt.NamedNodeMap||Rt.MozNamedAttrMap:Fe,se=Rt.HTMLFormElement,Lr=Rt.DOMParser,Ue=Rt.trustedTypes,dr=Ce.prototype,qe=W(dr,"cloneNode"),gr=W(dr,"nextSibling"),rn=W(dr,"childNodes"),Dr=W(dr,"parentNode");if(typeof ur=="function"){var Ar=ar.createElement("template");Ar.content&&Ar.content.ownerDocument&&(ar=Ar.content.ownerDocument)}var De=wt(Ue,Pe),rr=De?De.createHTML(""):"",Qe=ar,Ie=Qe.implementation,vr=Qe.createNodeIterator,Ot=Qe.createDocumentFragment,kn=Qe.getElementsByTagName,Vt=Pe.importNode,qr={};try{qr=kt(ar).documentMode?ar.documentMode:{}}catch{}var zr={};me.isSupported=typeof Dr=="function"&&Ie&&Ie.createHTMLDocument!==void 0&&qr!==9;var Zr,Mr,Xr=Sr,Pr=_e,Cr=er,Ur=oe,Yr=he,jr=Mt,ya=ee,On=null,Cn=$({},[].concat(v(At),v(Nt),v(Gt),v(Ge),v(ye))),Ir=null,ui=$({},[].concat(v(ke),v(Me),v(Oe),v(we))),Or=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}})),En=null,Ln=null,vn=!0,Zn=!0,Bt=!1,Mn=!1,Rn=!1,Kr=!1,ti=!1,Wn=!1,Un=!1,ei=!1,Ta=!0,dn=!1,aa="user-content-",oa=!0,Ri=!1,sr={},Qr=null,cr=$({},["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"]),or=null,on=$({},["audio","video","img","source","image","track"]),Kt=null,Ai=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),re="http://www.w3.org/1998/Math/MathML",Tn="http://www.w3.org/2000/svg",Bn="http://www.w3.org/1999/xhtml",Xn=Bn,fi=!1,Sa=["application/xhtml+xml","text/html"],gn="text/html",Er=null,sa=ar.createElement("form"),Rr=function(Qt){return Qt instanceof RegExp||Qt instanceof Function},wi=function(Qt){Er&&Er===Qt||(Qt&&b(Qt)==="object"||(Qt={}),Qt=kt(Qt),Zr=Zr=Sa.indexOf(Qt.PARSER_MEDIA_TYPE)===-1?gn:Qt.PARSER_MEDIA_TYPE,Mr=Zr==="application/xhtml+xml"?function(Xe){return Xe}:jt,On="ALLOWED_TAGS"in Qt?$({},Qt.ALLOWED_TAGS,Mr):Cn,Ir="ALLOWED_ATTR"in Qt?$({},Qt.ALLOWED_ATTR,Mr):ui,Kt="ADD_URI_SAFE_ATTR"in Qt?$(kt(Ai),Qt.ADD_URI_SAFE_ATTR,Mr):Ai,or="ADD_DATA_URI_TAGS"in Qt?$(kt(on),Qt.ADD_DATA_URI_TAGS,Mr):on,Qr="FORBID_CONTENTS"in Qt?$({},Qt.FORBID_CONTENTS,Mr):cr,En="FORBID_TAGS"in Qt?$({},Qt.FORBID_TAGS,Mr):{},Ln="FORBID_ATTR"in Qt?$({},Qt.FORBID_ATTR,Mr):{},sr="USE_PROFILES"in Qt&&Qt.USE_PROFILES,vn=Qt.ALLOW_ARIA_ATTR!==!1,Zn=Qt.ALLOW_DATA_ATTR!==!1,Bt=Qt.ALLOW_UNKNOWN_PROTOCOLS||!1,Mn=Qt.SAFE_FOR_TEMPLATES||!1,Rn=Qt.WHOLE_DOCUMENT||!1,Wn=Qt.RETURN_DOM||!1,Un=Qt.RETURN_DOM_FRAGMENT||!1,ei=Qt.RETURN_TRUSTED_TYPE||!1,ti=Qt.FORCE_BODY||!1,Ta=Qt.SANITIZE_DOM!==!1,dn=Qt.SANITIZE_NAMED_PROPS||!1,oa=Qt.KEEP_CONTENT!==!1,Ri=Qt.IN_PLACE||!1,ya=Qt.ALLOWED_URI_REGEXP||ya,Xn=Qt.NAMESPACE||Bn,Qt.CUSTOM_ELEMENT_HANDLING&&Rr(Qt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Or.tagNameCheck=Qt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Qt.CUSTOM_ELEMENT_HANDLING&&Rr(Qt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Or.attributeNameCheck=Qt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Qt.CUSTOM_ELEMENT_HANDLING&&typeof Qt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Or.allowCustomizedBuiltInElements=Qt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Mn&&(Zn=!1),Un&&(Wn=!0),sr&&(On=$({},v(ye)),Ir=[],sr.html===!0&&($(On,At),$(Ir,ke)),sr.svg===!0&&($(On,Nt),$(Ir,Me),$(Ir,we)),sr.svgFilters===!0&&($(On,Gt),$(Ir,Me),$(Ir,we)),sr.mathMl===!0&&($(On,Ge),$(Ir,Oe),$(Ir,we))),Qt.ADD_TAGS&&(On===Cn&&(On=kt(On)),$(On,Qt.ADD_TAGS,Mr)),Qt.ADD_ATTR&&(Ir===ui&&(Ir=kt(Ir)),$(Ir,Qt.ADD_ATTR,Mr)),Qt.ADD_URI_SAFE_ATTR&&$(Kt,Qt.ADD_URI_SAFE_ATTR,Mr),Qt.FORBID_CONTENTS&&(Qr===cr&&(Qr=kt(Qr)),$(Qr,Qt.FORBID_CONTENTS,Mr)),oa&&(On["#text"]=!0),Rn&&$(On,["html","head","body"]),On.table&&($(On,["tbody"]),delete En.tbody),z&&z(Qt),Er=Qt)},hi=$({},["mi","mo","mn","ms","mtext"]),Bi=$({},["foreignobject","desc","title","annotation-xml"]),fn=$({},["title","style","font","a","script"]),ri=$({},Nt);$(ri,Gt),$(ri,xe);var Kn=$({},Ge);$(Kn,Te);var Jn=function(Qt){var Xe=Dr(Qt);Xe&&Xe.tagName||(Xe={namespaceURI:Bn,tagName:"template"});var mr=jt(Qt.tagName),ln=jt(Xe.tagName);return Qt.namespaceURI===Tn?Xe.namespaceURI===Bn?mr==="svg":Xe.namespaceURI===re?mr==="svg"&&(ln==="annotation-xml"||hi[ln]):Boolean(ri[mr]):Qt.namespaceURI===re?Xe.namespaceURI===Bn?mr==="math":Xe.namespaceURI===Tn?mr==="math"&&Bi[ln]:Boolean(Kn[mr]):Qt.namespaceURI===Bn&&!(Xe.namespaceURI===Tn&&!Bi[ln])&&!(Xe.namespaceURI===re&&!hi[ln])&&!Kn[mr]&&(fn[mr]||!ri[mr])},oi=function(Qt){_t(me.removed,{element:Qt});try{Qt.parentNode.removeChild(Qt)}catch{try{Qt.outerHTML=rr}catch{Qt.remove()}}},Ci=function(Qt,Xe){try{_t(me.removed,{attribute:Xe.getAttributeNode(Qt),from:Xe})}catch{_t(me.removed,{attribute:null,from:Xe})}if(Xe.removeAttribute(Qt),Qt==="is"&&!Ir[Qt])if(Wn||Un)try{oi(Xe)}catch{}else try{Xe.setAttribute(Qt,"")}catch{}},Qn=function(Qt){var Xe,mr;if(ti)Qt="<remove></remove>"+Qt;else{var ln=St(Qt,/^[\r\n\t ]+/);mr=ln&&ln[0]}Zr==="application/xhtml+xml"&&(Qt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Qt+"</body></html>");var di=De?De.createHTML(Qt):Qt;if(Xn===Bn)try{Xe=new Lr().parseFromString(di,Zr)}catch{}if(!Xe||!Xe.documentElement){Xe=Ie.createDocument(Xn,"template",null);try{Xe.documentElement.innerHTML=fi?"":di}catch{}}var In=Xe.body||Xe.documentElement;return Qt&&mr&&In.insertBefore(ar.createTextNode(mr),In.childNodes[0]||null),Xn===Bn?kn.call(Xe,Rn?"html":"body")[0]:Rn?Xe.documentElement:In},Aa=function(Qt){return vr.call(Qt.ownerDocument||Qt,Qt,Be.SHOW_ELEMENT|Be.SHOW_COMMENT|Be.SHOW_TEXT,null,!1)},Fa=function(Qt){return Qt instanceof se&&(typeof Qt.nodeName!="string"||typeof Qt.textContent!="string"||typeof Qt.removeChild!="function"||!(Qt.attributes instanceof be)||typeof Qt.removeAttribute!="function"||typeof Qt.setAttribute!="function"||typeof Qt.namespaceURI!="string"||typeof Qt.insertBefore!="function")},_n=function(Qt){return b(ze)==="object"?Qt instanceof ze:Qt&&b(Qt)==="object"&&typeof Qt.nodeType=="number"&&typeof Qt.nodeName=="string"},ni=function(Qt,Xe,mr){zr[Qt]&&nt(zr[Qt],function(ln){ln.call(me,Xe,mr,Er)})},ii=function(Qt){var Xe;if(ni("beforeSanitizeElements",Qt,null),Fa(Qt)||ft(/[\u0080-\uFFFF]/,Qt.nodeName))return oi(Qt),!0;var mr=Mr(Qt.nodeName);if(ni("uponSanitizeElement",Qt,{tagName:mr,allowedTags:On}),Qt.hasChildNodes()&&!_n(Qt.firstElementChild)&&(!_n(Qt.content)||!_n(Qt.content.firstElementChild))&&ft(/<[/\w]/g,Qt.innerHTML)&&ft(/<[/\w]/g,Qt.textContent)||mr==="select"&&ft(/<template/i,Qt.innerHTML))return oi(Qt),!0;if(!On[mr]||En[mr]){if(!En[mr]&&Ja(mr)&&(Or.tagNameCheck instanceof RegExp&&ft(Or.tagNameCheck,mr)||Or.tagNameCheck instanceof Function&&Or.tagNameCheck(mr)))return!1;if(oa&&!Qr[mr]){var ln=Dr(Qt)||Qt.parentNode,di=rn(Qt)||Qt.childNodes;if(di&&ln)for(var In=di.length-1;In>=0;--In)ln.insertBefore(qe(di[In],!0),gr(Qt))}return oi(Qt),!0}return Qt instanceof Ce&&!Jn(Qt)?(oi(Qt),!0):mr!=="noscript"&&mr!=="noembed"||!ft(/<\/no(script|embed)/i,Qt.innerHTML)?(Mn&&Qt.nodeType===3&&(Xe=Qt.textContent,Xe=gt(Xe,Xr," "),Xe=gt(Xe,Pr," "),Qt.textContent!==Xe&&(_t(me.removed,{element:Qt.cloneNode()}),Qt.textContent=Xe)),ni("afterSanitizeElements",Qt,null),!1):(oi(Qt),!0)},Oo=function(Qt,Xe,mr){if(Ta&&(Xe==="id"||Xe==="name")&&(mr in ar||mr in sa))return!1;if(!(Zn&&!Ln[Xe]&&ft(Cr,Xe))){if(!(vn&&ft(Ur,Xe))){if(!Ir[Xe]||Ln[Xe]){if(!(Ja(Qt)&&(Or.tagNameCheck instanceof RegExp&&ft(Or.tagNameCheck,Qt)||Or.tagNameCheck instanceof Function&&Or.tagNameCheck(Qt))&&(Or.attributeNameCheck instanceof RegExp&&ft(Or.attributeNameCheck,Xe)||Or.attributeNameCheck instanceof Function&&Or.attributeNameCheck(Xe))||Xe==="is"&&Or.allowCustomizedBuiltInElements&&(Or.tagNameCheck instanceof RegExp&&ft(Or.tagNameCheck,mr)||Or.tagNameCheck instanceof Function&&Or.tagNameCheck(mr))))return!1}else if(!Kt[Xe]){if(!ft(ya,gt(mr,jr,""))){if((Xe!=="src"&&Xe!=="xlink:href"&&Xe!=="href"||Qt==="script"||Ct(mr,"data:")!==0||!or[Qt])&&!(Bt&&!ft(Yr,gt(mr,jr,"")))){if(mr)return!1}}}}}return!0},Ja=function(Qt){return Qt.indexOf("-")>0},ca=function(Qt){var Xe,mr,ln,di;ni("beforeSanitizeAttributes",Qt,null);var In=Qt.attributes;if(In){var pi={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ir};for(di=In.length;di--;){var Pa=Xe=In[di],gi=Pa.name,Ii=Pa.namespaceURI;if(mr=gi==="value"?Xe.value:vt(Xe.value),ln=Mr(gi),pi.attrName=ln,pi.attrValue=mr,pi.keepAttr=!0,pi.forceKeepAttr=void 0,ni("uponSanitizeAttribute",Qt,pi),mr=pi.attrValue,!pi.forceKeepAttr&&(Ci(gi,Qt),pi.keepAttr))if(ft(/\/>/i,mr))Ci(gi,Qt);else{Mn&&(mr=gt(mr,Xr," "),mr=gt(mr,Pr," "));var Ro=Mr(Qt.nodeName);if(Oo(Ro,ln,mr)){if(!dn||ln!=="id"&&ln!=="name"||(Ci(gi,Qt),mr=aa+mr),De&&b(Ue)==="object"&&typeof Ue.getAttributeType=="function"&&!Ii)switch(Ue.getAttributeType(Ro,ln)){case"TrustedHTML":mr=De.createHTML(mr);break;case"TrustedScriptURL":mr=De.createScriptURL(mr)}try{Ii?Qt.setAttributeNS(Ii,gi,mr):Qt.setAttribute(gi,mr),at(me.removed)}catch{}}}}ni("afterSanitizeAttributes",Qt,null)}},sc=function Qt(Xe){var mr,ln=Aa(Xe);for(ni("beforeSanitizeShadowDOM",Xe,null);mr=ln.nextNode();)ni("uponSanitizeShadowNode",mr,null),ii(mr)||(mr.content instanceof Ze&&Qt(mr.content),ca(mr));ni("afterSanitizeShadowDOM",Xe,null)};return me.sanitize=function(Qt){var Xe,mr,ln,di,In,pi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if((fi=!Qt)&&(Qt="<!-->"),typeof Qt!="string"&&!_n(Qt)){if(typeof Qt.toString!="function")throw Q("toString is not a function");if(typeof(Qt=Qt.toString())!="string")throw Q("dirty is not a string, aborting")}if(!me.isSupported){if(b(Rt.toStaticHTML)==="object"||typeof Rt.toStaticHTML=="function"){if(typeof Qt=="string")return Rt.toStaticHTML(Qt);if(_n(Qt))return Rt.toStaticHTML(Qt.outerHTML)}return Qt}if(Kr||wi(pi),me.removed=[],typeof Qt=="string"&&(Ri=!1),Ri){if(Qt.nodeName){var Pa=Mr(Qt.nodeName);if(!On[Pa]||En[Pa])throw Q("root node is forbidden and cannot be sanitized in-place")}}else if(Qt instanceof ze)(mr=(Xe=Qn("<!---->")).ownerDocument.importNode(Qt,!0)).nodeType===1&&mr.nodeName==="BODY"||mr.nodeName==="HTML"?Xe=mr:Xe.appendChild(mr);else{if(!Wn&&!Mn&&!Rn&&Qt.indexOf("<")===-1)return De&&ei?De.createHTML(Qt):Qt;if(!(Xe=Qn(Qt)))return Wn?null:ei?rr:""}Xe&&ti&&oi(Xe.firstChild);for(var gi=Aa(Ri?Qt:Xe);ln=gi.nextNode();)ln.nodeType===3&&ln===di||ii(ln)||(ln.content instanceof Ze&&sc(ln.content),ca(ln),di=ln);if(di=null,Ri)return Qt;if(Wn){if(Un)for(In=Ot.call(Xe.ownerDocument);Xe.firstChild;)In.appendChild(Xe.firstChild);else In=Xe;return Ir.shadowroot&&(In=Vt.call(Pe,In,!0)),In}var Ii=Rn?Xe.outerHTML:Xe.innerHTML;return Rn&&On["!doctype"]&&Xe.ownerDocument&&Xe.ownerDocument.doctype&&Xe.ownerDocument.doctype.name&&ft(ie,Xe.ownerDocument.doctype.name)&&(Ii="<!DOCTYPE "+Xe.ownerDocument.doctype.name+`>
|
|
`+Ii),Mn&&(Ii=gt(Ii,Xr," "),Ii=gt(Ii,Pr," ")),De&&ei?De.createHTML(Ii):Ii},me.setConfig=function(Qt){wi(Qt),Kr=!0},me.clearConfig=function(){Er=null,Kr=!1},me.isValidAttribute=function(Qt,Xe,mr){Er||wi({});var ln=Mr(Qt),di=Mr(Xe);return Oo(ln,di,mr)},me.addHook=function(Qt,Xe){typeof Xe=="function"&&(zr[Qt]=zr[Qt]||[],_t(zr[Qt],Xe))},me.removeHook=function(Qt){if(zr[Qt])return at(zr[Qt])},me.removeHooks=function(Qt){zr[Qt]&&(zr[Qt]=[])},me.removeAllHooks=function(){zr={}},me}()}()},8282:(d,b,h)=>{var m=h(2354);d.exports={Graph:m.Graph,json:h(8974),alg:h(2440),version:m.version}},2842:(d,b,h)=>{var m=h(9126);d.exports=function(f){var v,_={},A=[];function M(T){m.has(_,T)||(_[T]=!0,v.push(T),m.each(f.successors(T),M),m.each(f.predecessors(T),M))}return m.each(f.nodes(),function(T){v=[],M(T),v.length&&A.push(v)}),A}},3984:(d,b,h)=>{var m=h(9126);function f(v,_,A,M,T,O){m.has(M,_)||(M[_]=!0,A||O.push(_),m.each(T(_),function(B){f(v,B,A,M,T,O)}),A&&O.push(_))}d.exports=function(v,_,A){m.isArray(_)||(_=[_]);var M=(v.isDirected()?v.successors:v.neighbors).bind(v),T=[],O={};return m.each(_,function(B){if(!v.hasNode(B))throw new Error("Graph does not have node: "+B);f(v,B,A==="post",O,M,T)}),T}},4847:(d,b,h)=>{var m=h(3763),f=h(9126);d.exports=function(v,_,A){return f.transform(v.nodes(),function(M,T){M[T]=m(v,T,_,A)},{})}},3763:(d,b,h)=>{var m=h(9126),f=h(9675);d.exports=function(_,A,M,T){return function(O,B,z,q){var J,rt,ut={},Z=new f,mt=function(nt){var at=nt.v!==J?nt.v:nt.w,_t=ut[at],jt=z(nt),St=rt.distance+jt;if(jt<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+nt+" Weight: "+jt);St<_t.distance&&(_t.distance=St,_t.predecessor=J,Z.decrease(at,St))};for(O.nodes().forEach(function(nt){var at=nt===B?0:Number.POSITIVE_INFINITY;ut[nt]={distance:at},Z.add(nt,at)});Z.size()>0&&(J=Z.removeMin(),(rt=ut[J]).distance!==Number.POSITIVE_INFINITY);)q(J).forEach(mt);return ut}(_,String(A),M||v,T||function(O){return _.outEdges(O)})};var v=m.constant(1)},9096:(d,b,h)=>{var m=h(9126),f=h(5023);d.exports=function(v){return m.filter(f(v),function(_){return _.length>1||_.length===1&&v.hasEdge(_[0],_[0])})}},8924:(d,b,h)=>{var m=h(9126);d.exports=function(v,_,A){return function(M,T,O){var B={},z=M.nodes();return z.forEach(function(q){B[q]={},B[q][q]={distance:0},z.forEach(function(J){q!==J&&(B[q][J]={distance:Number.POSITIVE_INFINITY})}),O(q).forEach(function(J){var rt=J.v===q?J.w:J.v,ut=T(J);B[q][rt]={distance:ut,predecessor:q}})}),z.forEach(function(q){var J=B[q];z.forEach(function(rt){var ut=B[rt];z.forEach(function(Z){var mt=ut[q],nt=J[Z],at=ut[Z],_t=mt.distance+nt.distance;_t<at.distance&&(at.distance=_t,at.predecessor=nt.predecessor)})})}),B}(v,_||f,A||function(M){return v.outEdges(M)})};var f=m.constant(1)},2440:(d,b,h)=>{d.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:(d,b,h)=>{var m=h(2166);d.exports=function(f){try{m(f)}catch(v){if(v instanceof m.CycleException)return!1;throw v}return!0}},8828:(d,b,h)=>{var m=h(3984);d.exports=function(f,v){return m(f,v,"post")}},2648:(d,b,h)=>{var m=h(3984);d.exports=function(f,v){return m(f,v,"pre")}},514:(d,b,h)=>{var m=h(9126),f=h(771),v=h(9675);d.exports=function(_,A){var M,T=new f,O={},B=new v;function z(J){var rt=J.v===M?J.w:J.v,ut=B.priority(rt);if(ut!==void 0){var Z=A(J);Z<ut&&(O[rt]=M,B.decrease(rt,Z))}}if(_.nodeCount()===0)return T;m.each(_.nodes(),function(J){B.add(J,Number.POSITIVE_INFINITY),T.setNode(J)}),B.decrease(_.nodes()[0],0);for(var q=!1;B.size()>0;){if(M=B.removeMin(),m.has(O,M))T.setEdge(M,O[M]);else{if(q)throw new Error("Input graph is not connected: "+_);q=!0}_.nodeEdges(M).forEach(z)}return T}},5023:(d,b,h)=>{var m=h(9126);d.exports=function(f){var v=0,_=[],A={},M=[];function T(O){var B=A[O]={onStack:!0,lowlink:v,index:v++};if(_.push(O),f.successors(O).forEach(function(J){m.has(A,J)?A[J].onStack&&(B.lowlink=Math.min(B.lowlink,A[J].index)):(T(J),B.lowlink=Math.min(B.lowlink,A[J].lowlink))}),B.lowlink===B.index){var z,q=[];do z=_.pop(),A[z].onStack=!1,q.push(z);while(O!==z);M.push(q)}}return f.nodes().forEach(function(O){m.has(A,O)||T(O)}),M}},2166:(d,b,h)=>{var m=h(9126);function f(_){var A={},M={},T=[];if(m.each(_.sinks(),function O(B){if(m.has(M,B))throw new v;m.has(A,B)||(M[B]=!0,A[B]=!0,m.each(_.predecessors(B),O),delete M[B],T.push(B))}),m.size(A)!==_.nodeCount())throw new v;return T}function v(){}d.exports=f,f.CycleException=v,v.prototype=new Error},9675:(d,b,h)=>{var m=h(9126);function f(){this._arr=[],this._keyIndices={}}d.exports=f,f.prototype.size=function(){return this._arr.length},f.prototype.keys=function(){return this._arr.map(function(v){return v.key})},f.prototype.has=function(v){return m.has(this._keyIndices,v)},f.prototype.priority=function(v){var _=this._keyIndices[v];if(_!==void 0)return this._arr[_].priority},f.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},f.prototype.add=function(v,_){var A=this._keyIndices;if(v=String(v),!m.has(A,v)){var M=this._arr,T=M.length;return A[v]=T,M.push({key:v,priority:_}),this._decrease(T),!0}return!1},f.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var v=this._arr.pop();return delete this._keyIndices[v.key],this._heapify(0),v.key},f.prototype.decrease=function(v,_){var A=this._keyIndices[v];if(_>this._arr[A].priority)throw new Error("New priority is greater than current priority. Key: "+v+" Old: "+this._arr[A].priority+" New: "+_);this._arr[A].priority=_,this._decrease(A)},f.prototype._heapify=function(v){var _=this._arr,A=2*v,M=A+1,T=v;A<_.length&&(T=_[A].priority<_[T].priority?A:T,M<_.length&&(T=_[M].priority<_[T].priority?M:T),T!==v&&(this._swap(v,T),this._heapify(T)))},f.prototype._decrease=function(v){for(var _,A=this._arr,M=A[v].priority;v!==0&&!(A[_=v>>1].priority<M);)this._swap(v,_),v=_},f.prototype._swap=function(v,_){var A=this._arr,M=this._keyIndices,T=A[v],O=A[_];A[v]=O,A[_]=T,M[O.key]=v,M[T.key]=_}},771:(d,b,h)=>{var m=h(9126);d.exports=v;var f="\0";function v(B){this._isDirected=!m.has(B,"directed")||B.directed,this._isMultigraph=!!m.has(B,"multigraph")&&B.multigraph,this._isCompound=!!m.has(B,"compound")&&B.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 _(B,z){B[z]?B[z]++:B[z]=1}function A(B,z){--B[z]||delete B[z]}function M(B,z,q,J){var rt=""+z,ut=""+q;if(!B&&rt>ut){var Z=rt;rt=ut,ut=Z}return rt+""+ut+""+(m.isUndefined(J)?"\0":J)}function T(B,z,q,J){var rt=""+z,ut=""+q;if(!B&&rt>ut){var Z=rt;rt=ut,ut=Z}var mt={v:rt,w:ut};return J&&(mt.name=J),mt}function O(B,z){return M(B,z.v,z.w,z.name)}v.prototype._nodeCount=0,v.prototype._edgeCount=0,v.prototype.isDirected=function(){return this._isDirected},v.prototype.isMultigraph=function(){return this._isMultigraph},v.prototype.isCompound=function(){return this._isCompound},v.prototype.setGraph=function(B){return this._label=B,this},v.prototype.graph=function(){return this._label},v.prototype.setDefaultNodeLabel=function(B){return m.isFunction(B)||(B=m.constant(B)),this._defaultNodeLabelFn=B,this},v.prototype.nodeCount=function(){return this._nodeCount},v.prototype.nodes=function(){return m.keys(this._nodes)},v.prototype.sources=function(){var B=this;return m.filter(this.nodes(),function(z){return m.isEmpty(B._in[z])})},v.prototype.sinks=function(){var B=this;return m.filter(this.nodes(),function(z){return m.isEmpty(B._out[z])})},v.prototype.setNodes=function(B,z){var q=arguments,J=this;return m.each(B,function(rt){q.length>1?J.setNode(rt,z):J.setNode(rt)}),this},v.prototype.setNode=function(B,z){return m.has(this._nodes,B)?(arguments.length>1&&(this._nodes[B]=z),this):(this._nodes[B]=arguments.length>1?z:this._defaultNodeLabelFn(B),this._isCompound&&(this._parent[B]=f,this._children[B]={},this._children["\0"][B]=!0),this._in[B]={},this._preds[B]={},this._out[B]={},this._sucs[B]={},++this._nodeCount,this)},v.prototype.node=function(B){return this._nodes[B]},v.prototype.hasNode=function(B){return m.has(this._nodes,B)},v.prototype.removeNode=function(B){var z=this;if(m.has(this._nodes,B)){var q=function(J){z.removeEdge(z._edgeObjs[J])};delete this._nodes[B],this._isCompound&&(this._removeFromParentsChildList(B),delete this._parent[B],m.each(this.children(B),function(J){z.setParent(J)}),delete this._children[B]),m.each(m.keys(this._in[B]),q),delete this._in[B],delete this._preds[B],m.each(m.keys(this._out[B]),q),delete this._out[B],delete this._sucs[B],--this._nodeCount}return this},v.prototype.setParent=function(B,z){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(m.isUndefined(z))z=f;else{for(var q=z+="";!m.isUndefined(q);q=this.parent(q))if(q===B)throw new Error("Setting "+z+" as parent of "+B+" would create a cycle");this.setNode(z)}return this.setNode(B),this._removeFromParentsChildList(B),this._parent[B]=z,this._children[z][B]=!0,this},v.prototype._removeFromParentsChildList=function(B){delete this._children[this._parent[B]][B]},v.prototype.parent=function(B){if(this._isCompound){var z=this._parent[B];if(z!==f)return z}},v.prototype.children=function(B){if(m.isUndefined(B)&&(B=f),this._isCompound){var z=this._children[B];if(z)return m.keys(z)}else{if(B===f)return this.nodes();if(this.hasNode(B))return[]}},v.prototype.predecessors=function(B){var z=this._preds[B];if(z)return m.keys(z)},v.prototype.successors=function(B){var z=this._sucs[B];if(z)return m.keys(z)},v.prototype.neighbors=function(B){var z=this.predecessors(B);if(z)return m.union(z,this.successors(B))},v.prototype.isLeaf=function(B){return(this.isDirected()?this.successors(B):this.neighbors(B)).length===0},v.prototype.filterNodes=function(B){var z=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});z.setGraph(this.graph());var q=this;m.each(this._nodes,function(ut,Z){B(Z)&&z.setNode(Z,ut)}),m.each(this._edgeObjs,function(ut){z.hasNode(ut.v)&&z.hasNode(ut.w)&&z.setEdge(ut,q.edge(ut))});var J={};function rt(ut){var Z=q.parent(ut);return Z===void 0||z.hasNode(Z)?(J[ut]=Z,Z):Z in J?J[Z]:rt(Z)}return this._isCompound&&m.each(z.nodes(),function(ut){z.setParent(ut,rt(ut))}),z},v.prototype.setDefaultEdgeLabel=function(B){return m.isFunction(B)||(B=m.constant(B)),this._defaultEdgeLabelFn=B,this},v.prototype.edgeCount=function(){return this._edgeCount},v.prototype.edges=function(){return m.values(this._edgeObjs)},v.prototype.setPath=function(B,z){var q=this,J=arguments;return m.reduce(B,function(rt,ut){return J.length>1?q.setEdge(rt,ut,z):q.setEdge(rt,ut),ut}),this},v.prototype.setEdge=function(){var B,z,q,J,rt=!1,ut=arguments[0];typeof ut=="object"&&ut!==null&&"v"in ut?(B=ut.v,z=ut.w,q=ut.name,arguments.length===2&&(J=arguments[1],rt=!0)):(B=ut,z=arguments[1],q=arguments[3],arguments.length>2&&(J=arguments[2],rt=!0)),B=""+B,z=""+z,m.isUndefined(q)||(q=""+q);var Z=M(this._isDirected,B,z,q);if(m.has(this._edgeLabels,Z))return rt&&(this._edgeLabels[Z]=J),this;if(!m.isUndefined(q)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(B),this.setNode(z),this._edgeLabels[Z]=rt?J:this._defaultEdgeLabelFn(B,z,q);var mt=T(this._isDirected,B,z,q);return B=mt.v,z=mt.w,Object.freeze(mt),this._edgeObjs[Z]=mt,_(this._preds[z],B),_(this._sucs[B],z),this._in[z][Z]=mt,this._out[B][Z]=mt,this._edgeCount++,this},v.prototype.edge=function(B,z,q){var J=arguments.length===1?O(this._isDirected,arguments[0]):M(this._isDirected,B,z,q);return this._edgeLabels[J]},v.prototype.hasEdge=function(B,z,q){var J=arguments.length===1?O(this._isDirected,arguments[0]):M(this._isDirected,B,z,q);return m.has(this._edgeLabels,J)},v.prototype.removeEdge=function(B,z,q){var J=arguments.length===1?O(this._isDirected,arguments[0]):M(this._isDirected,B,z,q),rt=this._edgeObjs[J];return rt&&(B=rt.v,z=rt.w,delete this._edgeLabels[J],delete this._edgeObjs[J],A(this._preds[z],B),A(this._sucs[B],z),delete this._in[z][J],delete this._out[B][J],this._edgeCount--),this},v.prototype.inEdges=function(B,z){var q=this._in[B];if(q){var J=m.values(q);return z?m.filter(J,function(rt){return rt.v===z}):J}},v.prototype.outEdges=function(B,z){var q=this._out[B];if(q){var J=m.values(q);return z?m.filter(J,function(rt){return rt.w===z}):J}},v.prototype.nodeEdges=function(B,z){var q=this.inEdges(B,z);if(q)return q.concat(this.outEdges(B,z))}},2354:(d,b,h)=>{d.exports={Graph:h(771),version:h(9631)}},8974:(d,b,h)=>{var m=h(9126),f=h(771);function v(A){return m.map(A.nodes(),function(M){var T=A.node(M),O=A.parent(M),B={v:M};return m.isUndefined(T)||(B.value=T),m.isUndefined(O)||(B.parent=O),B})}function _(A){return m.map(A.edges(),function(M){var T=A.edge(M),O={v:M.v,w:M.w};return m.isUndefined(M.name)||(O.name=M.name),m.isUndefined(T)||(O.value=T),O})}d.exports={write:function(A){var M={options:{directed:A.isDirected(),multigraph:A.isMultigraph(),compound:A.isCompound()},nodes:v(A),edges:_(A)};return m.isUndefined(A.graph())||(M.value=m.clone(A.graph())),M},read:function(A){var M=new f(A.options).setGraph(A.value);return m.each(A.nodes,function(T){M.setNode(T.v,T.value),T.parent&&M.setParent(T.v,T.parent)}),m.each(A.edges,function(T){M.setEdge({v:T.v,w:T.w,name:T.name},T.value)}),M}}},9126:(d,b,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._),d.exports=m},9631:d=>{d.exports="2.1.8"},8552:(d,b,h)=>{var m=h(852)(h(5639),"DataView");d.exports=m},1989:(d,b,h)=>{var m=h(1789),f=h(401),v=h(7667),_=h(1327),A=h(1866);function M(T){var O=-1,B=T==null?0:T.length;for(this.clear();++O<B;){var z=T[O];this.set(z[0],z[1])}}M.prototype.clear=m,M.prototype.delete=f,M.prototype.get=v,M.prototype.has=_,M.prototype.set=A,d.exports=M},8407:(d,b,h)=>{var m=h(7040),f=h(4125),v=h(2117),_=h(7518),A=h(4705);function M(T){var O=-1,B=T==null?0:T.length;for(this.clear();++O<B;){var z=T[O];this.set(z[0],z[1])}}M.prototype.clear=m,M.prototype.delete=f,M.prototype.get=v,M.prototype.has=_,M.prototype.set=A,d.exports=M},7071:(d,b,h)=>{var m=h(852)(h(5639),"Map");d.exports=m},3369:(d,b,h)=>{var m=h(4785),f=h(1285),v=h(6e3),_=h(9916),A=h(5265);function M(T){var O=-1,B=T==null?0:T.length;for(this.clear();++O<B;){var z=T[O];this.set(z[0],z[1])}}M.prototype.clear=m,M.prototype.delete=f,M.prototype.get=v,M.prototype.has=_,M.prototype.set=A,d.exports=M},3818:(d,b,h)=>{var m=h(852)(h(5639),"Promise");d.exports=m},8525:(d,b,h)=>{var m=h(852)(h(5639),"Set");d.exports=m},8668:(d,b,h)=>{var m=h(3369),f=h(619),v=h(2385);function _(A){var M=-1,T=A==null?0:A.length;for(this.__data__=new m;++M<T;)this.add(A[M])}_.prototype.add=_.prototype.push=f,_.prototype.has=v,d.exports=_},6384:(d,b,h)=>{var m=h(8407),f=h(7465),v=h(3779),_=h(7599),A=h(4758),M=h(4309);function T(O){var B=this.__data__=new m(O);this.size=B.size}T.prototype.clear=f,T.prototype.delete=v,T.prototype.get=_,T.prototype.has=A,T.prototype.set=M,d.exports=T},2705:(d,b,h)=>{var m=h(5639).Symbol;d.exports=m},1149:(d,b,h)=>{var m=h(5639).Uint8Array;d.exports=m},577:(d,b,h)=>{var m=h(852)(h(5639),"WeakMap");d.exports=m},6874:d=>{d.exports=function(b,h,m){switch(m.length){case 0:return b.call(h);case 1:return b.call(h,m[0]);case 2:return b.call(h,m[0],m[1]);case 3:return b.call(h,m[0],m[1],m[2])}return b.apply(h,m)}},7412:d=>{d.exports=function(b,h){for(var m=-1,f=b==null?0:b.length;++m<f&&h(b[m],m,b)!==!1;);return b}},4963:d=>{d.exports=function(b,h){for(var m=-1,f=b==null?0:b.length,v=0,_=[];++m<f;){var A=b[m];h(A,m,b)&&(_[v++]=A)}return _}},7443:(d,b,h)=>{var m=h(2118);d.exports=function(f,v){return!(f==null||!f.length)&&m(f,v,0)>-1}},1196:d=>{d.exports=function(b,h,m){for(var f=-1,v=b==null?0:b.length;++f<v;)if(m(h,b[f]))return!0;return!1}},4636:(d,b,h)=>{var m=h(2545),f=h(5694),v=h(1469),_=h(4144),A=h(5776),M=h(6719),T=Object.prototype.hasOwnProperty;d.exports=function(O,B){var z=v(O),q=!z&&f(O),J=!z&&!q&&_(O),rt=!z&&!q&&!J&&M(O),ut=z||q||J||rt,Z=ut?m(O.length,String):[],mt=Z.length;for(var nt in O)!B&&!T.call(O,nt)||ut&&(nt=="length"||J&&(nt=="offset"||nt=="parent")||rt&&(nt=="buffer"||nt=="byteLength"||nt=="byteOffset")||A(nt,mt))||Z.push(nt);return Z}},9932:d=>{d.exports=function(b,h){for(var m=-1,f=b==null?0:b.length,v=Array(f);++m<f;)v[m]=h(b[m],m,b);return v}},2488:d=>{d.exports=function(b,h){for(var m=-1,f=h.length,v=b.length;++m<f;)b[v+m]=h[m];return b}},2663:d=>{d.exports=function(b,h,m,f){var v=-1,_=b==null?0:b.length;for(f&&_&&(m=b[++v]);++v<_;)m=h(m,b[v],v,b);return m}},2908:d=>{d.exports=function(b,h){for(var m=-1,f=b==null?0:b.length;++m<f;)if(h(b[m],m,b))return!0;return!1}},8983:(d,b,h)=>{var m=h(371)("length");d.exports=m},6556:(d,b,h)=>{var m=h(9465),f=h(7813);d.exports=function(v,_,A){(A!==void 0&&!f(v[_],A)||A===void 0&&!(_ in v))&&m(v,_,A)}},4865:(d,b,h)=>{var m=h(9465),f=h(7813),v=Object.prototype.hasOwnProperty;d.exports=function(_,A,M){var T=_[A];v.call(_,A)&&f(T,M)&&(M!==void 0||A in _)||m(_,A,M)}},8470:(d,b,h)=>{var m=h(7813);d.exports=function(f,v){for(var _=f.length;_--;)if(m(f[_][0],v))return _;return-1}},4037:(d,b,h)=>{var m=h(8363),f=h(3674);d.exports=function(v,_){return v&&m(_,f(_),v)}},3886:(d,b,h)=>{var m=h(8363),f=h(1704);d.exports=function(v,_){return v&&m(_,f(_),v)}},9465:(d,b,h)=>{var m=h(8777);d.exports=function(f,v,_){v=="__proto__"&&m?m(f,v,{configurable:!0,enumerable:!0,value:_,writable:!0}):f[v]=_}},5990:(d,b,h)=>{var m=h(6384),f=h(7412),v=h(4865),_=h(4037),A=h(3886),M=h(4626),T=h(278),O=h(8805),B=h(1911),z=h(8234),q=h(6904),J=h(4160),rt=h(3824),ut=h(9148),Z=h(8517),mt=h(1469),nt=h(4144),at=h(6688),_t=h(3218),jt=h(2928),St=h(3674),gt=h(1704),Ct="[object Arguments]",vt="[object Function]",ft="[object Object]",Q={};Q[Ct]=Q["[object Array]"]=Q["[object ArrayBuffer]"]=Q["[object DataView]"]=Q["[object Boolean]"]=Q["[object Date]"]=Q["[object Float32Array]"]=Q["[object Float64Array]"]=Q["[object Int8Array]"]=Q["[object Int16Array]"]=Q["[object Int32Array]"]=Q["[object Map]"]=Q["[object Number]"]=Q[ft]=Q["[object RegExp]"]=Q["[object Set]"]=Q["[object String]"]=Q["[object Symbol]"]=Q["[object Uint8Array]"]=Q["[object Uint8ClampedArray]"]=Q["[object Uint16Array]"]=Q["[object Uint32Array]"]=!0,Q["[object Error]"]=Q[vt]=Q["[object WeakMap]"]=!1,d.exports=function ht($,kt,W,At,Nt,Gt){var xe,Ge=1&kt,Te=2&kt,ye=4&kt;if(W&&(xe=Nt?W($,At,Nt,Gt):W($)),xe!==void 0)return xe;if(!_t($))return $;var ke=mt($);if(ke){if(xe=rt($),!Ge)return T($,xe)}else{var Me=J($),Oe=Me==vt||Me=="[object GeneratorFunction]";if(nt($))return M($,Ge);if(Me==ft||Me==Ct||Oe&&!Nt){if(xe=Te||Oe?{}:Z($),!Ge)return Te?B($,A(xe,$)):O($,_(xe,$))}else{if(!Q[Me])return Nt?$:{};xe=ut($,Me,Ge)}}Gt||(Gt=new m);var we=Gt.get($);if(we)return we;Gt.set($,xe),jt($)?$.forEach(function(_e){xe.add(ht(_e,kt,W,_e,$,Gt))}):at($)&&$.forEach(function(_e,er){xe.set(er,ht(_e,kt,W,er,$,Gt))});var Sr=ke?void 0:(ye?Te?q:z:Te?gt:St)($);return f(Sr||$,function(_e,er){Sr&&(_e=$[er=_e]),v(xe,er,ht(_e,kt,W,er,$,Gt))}),xe}},3118:(d,b,h)=>{var m=h(3218),f=Object.create,v=function(){function _(){}return function(A){if(!m(A))return{};if(f)return f(A);_.prototype=A;var M=new _;return _.prototype=void 0,M}}();d.exports=v},9881:(d,b,h)=>{var m=h(7816),f=h(9291)(m);d.exports=f},6029:(d,b,h)=>{var m=h(3448);d.exports=function(f,v,_){for(var A=-1,M=f.length;++A<M;){var T=f[A],O=v(T);if(O!=null&&(B===void 0?O==O&&!m(O):_(O,B)))var B=O,z=T}return z}},760:(d,b,h)=>{var m=h(9881);d.exports=function(f,v){var _=[];return m(f,function(A,M,T){v(A,M,T)&&_.push(A)}),_}},1848:d=>{d.exports=function(b,h,m,f){for(var v=b.length,_=m+(f?1:-1);f?_--:++_<v;)if(h(b[_],_,b))return _;return-1}},1078:(d,b,h)=>{var m=h(2488),f=h(7285);d.exports=function v(_,A,M,T,O){var B=-1,z=_.length;for(M||(M=f),O||(O=[]);++B<z;){var q=_[B];A>0&&M(q)?A>1?v(q,A-1,M,T,O):m(O,q):T||(O[O.length]=q)}return O}},8483:(d,b,h)=>{var m=h(5063)();d.exports=m},7816:(d,b,h)=>{var m=h(8483),f=h(3674);d.exports=function(v,_){return v&&m(v,_,f)}},7786:(d,b,h)=>{var m=h(1811),f=h(327);d.exports=function(v,_){for(var A=0,M=(_=m(_,v)).length;v!=null&&A<M;)v=v[f(_[A++])];return A&&A==M?v:void 0}},8866:(d,b,h)=>{var m=h(2488),f=h(1469);d.exports=function(v,_,A){var M=_(v);return f(v)?M:m(M,A(v))}},4239:(d,b,h)=>{var m=h(2705),f=h(9607),v=h(2333),_=m?m.toStringTag:void 0;d.exports=function(A){return A==null?A===void 0?"[object Undefined]":"[object Null]":_&&_ in Object(A)?f(A):v(A)}},3325:d=>{d.exports=function(b,h){return b>h}},8565:d=>{var b=Object.prototype.hasOwnProperty;d.exports=function(h,m){return h!=null&&b.call(h,m)}},13:d=>{d.exports=function(b,h){return b!=null&&h in Object(b)}},2118:(d,b,h)=>{var m=h(1848),f=h(2722),v=h(2351);d.exports=function(_,A,M){return A==A?v(_,A,M):m(_,f,M)}},9454:(d,b,h)=>{var m=h(4239),f=h(7005);d.exports=function(v){return f(v)&&m(v)=="[object Arguments]"}},939:(d,b,h)=>{var m=h(2492),f=h(7005);d.exports=function v(_,A,M,T,O){return _===A||(_==null||A==null||!f(_)&&!f(A)?_!=_&&A!=A:m(_,A,M,T,v,O))}},2492:(d,b,h)=>{var m=h(6384),f=h(7114),v=h(8351),_=h(6096),A=h(4160),M=h(1469),T=h(4144),O=h(6719),B="[object Arguments]",z="[object Array]",q="[object Object]",J=Object.prototype.hasOwnProperty;d.exports=function(rt,ut,Z,mt,nt,at){var _t=M(rt),jt=M(ut),St=_t?z:A(rt),gt=jt?z:A(ut),Ct=(St=St==B?q:St)==q,vt=(gt=gt==B?q:gt)==q,ft=St==gt;if(ft&&T(rt)){if(!T(ut))return!1;_t=!0,Ct=!1}if(ft&&!Ct)return at||(at=new m),_t||O(rt)?f(rt,ut,Z,mt,nt,at):v(rt,ut,St,Z,mt,nt,at);if(!(1&Z)){var Q=Ct&&J.call(rt,"__wrapped__"),ht=vt&&J.call(ut,"__wrapped__");if(Q||ht){var $=Q?rt.value():rt,kt=ht?ut.value():ut;return at||(at=new m),nt($,kt,Z,mt,at)}}return!!ft&&(at||(at=new m),_(rt,ut,Z,mt,nt,at))}},5588:(d,b,h)=>{var m=h(4160),f=h(7005);d.exports=function(v){return f(v)&&m(v)=="[object Map]"}},2958:(d,b,h)=>{var m=h(6384),f=h(939);d.exports=function(v,_,A,M){var T=A.length,O=T,B=!M;if(v==null)return!O;for(v=Object(v);T--;){var z=A[T];if(B&&z[2]?z[1]!==v[z[0]]:!(z[0]in v))return!1}for(;++T<O;){var q=(z=A[T])[0],J=v[q],rt=z[1];if(B&&z[2]){if(J===void 0&&!(q in v))return!1}else{var ut=new m;if(M)var Z=M(J,rt,q,v,_,ut);if(!(Z===void 0?f(rt,J,3,M,ut):Z))return!1}}return!0}},2722:d=>{d.exports=function(b){return b!=b}},8458:(d,b,h)=>{var m=h(3560),f=h(5346),v=h(3218),_=h(346),A=/^\[object .+?Constructor\]$/,M=Function.prototype,T=Object.prototype,O=M.toString,B=T.hasOwnProperty,z=RegExp("^"+O.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");d.exports=function(q){return!(!v(q)||f(q))&&(m(q)?z:A).test(_(q))}},9221:(d,b,h)=>{var m=h(4160),f=h(7005);d.exports=function(v){return f(v)&&m(v)=="[object Set]"}},8749:(d,b,h)=>{var m=h(4239),f=h(1780),v=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,d.exports=function(A){return v(A)&&f(A.length)&&!!_[m(A)]}},7206:(d,b,h)=>{var m=h(1573),f=h(6432),v=h(6557),_=h(1469),A=h(9601);d.exports=function(M){return typeof M=="function"?M:M==null?v:typeof M=="object"?_(M)?f(M[0],M[1]):m(M):A(M)}},280:(d,b,h)=>{var m=h(5726),f=h(6916),v=Object.prototype.hasOwnProperty;d.exports=function(_){if(!m(_))return f(_);var A=[];for(var M in Object(_))v.call(_,M)&&M!="constructor"&&A.push(M);return A}},313:(d,b,h)=>{var m=h(3218),f=h(5726),v=h(3498),_=Object.prototype.hasOwnProperty;d.exports=function(A){if(!m(A))return v(A);var M=f(A),T=[];for(var O in A)(O!="constructor"||!M&&_.call(A,O))&&T.push(O);return T}},433:d=>{d.exports=function(b,h){return b<h}},9199:(d,b,h)=>{var m=h(9881),f=h(8612);d.exports=function(v,_){var A=-1,M=f(v)?Array(v.length):[];return m(v,function(T,O,B){M[++A]=_(T,O,B)}),M}},1573:(d,b,h)=>{var m=h(2958),f=h(1499),v=h(2634);d.exports=function(_){var A=f(_);return A.length==1&&A[0][2]?v(A[0][0],A[0][1]):function(M){return M===_||m(M,_,A)}}},6432:(d,b,h)=>{var m=h(939),f=h(7361),v=h(9095),_=h(5403),A=h(9162),M=h(2634),T=h(327);d.exports=function(O,B){return _(O)&&A(B)?M(T(O),B):function(z){var q=f(z,O);return q===void 0&&q===B?v(z,O):m(B,q,3)}}},2980:(d,b,h)=>{var m=h(6384),f=h(6556),v=h(8483),_=h(9783),A=h(3218),M=h(1704),T=h(6390);d.exports=function O(B,z,q,J,rt){B!==z&&v(z,function(ut,Z){if(rt||(rt=new m),A(ut))_(B,z,Z,q,O,J,rt);else{var mt=J?J(T(B,Z),ut,Z+"",B,z,rt):void 0;mt===void 0&&(mt=ut),f(B,Z,mt)}},M)}},9783:(d,b,h)=>{var m=h(6556),f=h(4626),v=h(7133),_=h(278),A=h(8517),M=h(5694),T=h(1469),O=h(9246),B=h(4144),z=h(3560),q=h(3218),J=h(8630),rt=h(6719),ut=h(6390),Z=h(3678);d.exports=function(mt,nt,at,_t,jt,St,gt){var Ct=ut(mt,at),vt=ut(nt,at),ft=gt.get(vt);if(ft)m(mt,at,ft);else{var Q=St?St(Ct,vt,at+"",mt,nt,gt):void 0,ht=Q===void 0;if(ht){var $=T(vt),kt=!$&&B(vt),W=!$&&!kt&&rt(vt);Q=vt,$||kt||W?T(Ct)?Q=Ct:O(Ct)?Q=_(Ct):kt?(ht=!1,Q=f(vt,!0)):W?(ht=!1,Q=v(vt,!0)):Q=[]:J(vt)||M(vt)?(Q=Ct,M(Ct)?Q=Z(Ct):q(Ct)&&!z(Ct)||(Q=A(vt))):ht=!1}ht&&(gt.set(vt,Q),jt(Q,vt,_t,St,gt),gt.delete(vt)),m(mt,at,Q)}}},9556:(d,b,h)=>{var m=h(9932),f=h(7786),v=h(7206),_=h(9199),A=h(1131),M=h(1717),T=h(5022),O=h(6557),B=h(1469);d.exports=function(z,q,J){q=q.length?m(q,function(Z){return B(Z)?function(mt){return f(mt,Z.length===1?Z[0]:Z)}:Z}):[O];var rt=-1;q=m(q,M(v));var ut=_(z,function(Z,mt,nt){return{criteria:m(q,function(at){return at(Z)}),index:++rt,value:Z}});return A(ut,function(Z,mt){return T(Z,mt,J)})}},5970:(d,b,h)=>{var m=h(3012),f=h(9095);d.exports=function(v,_){return m(v,_,function(A,M){return f(v,M)})}},3012:(d,b,h)=>{var m=h(7786),f=h(611),v=h(1811);d.exports=function(_,A,M){for(var T=-1,O=A.length,B={};++T<O;){var z=A[T],q=m(_,z);M(q,z)&&f(B,v(z,_),q)}return B}},371:d=>{d.exports=function(b){return function(h){return h==null?void 0:h[b]}}},9152:(d,b,h)=>{var m=h(7786);d.exports=function(f){return function(v){return m(v,f)}}},98:d=>{var b=Math.ceil,h=Math.max;d.exports=function(m,f,v,_){for(var A=-1,M=h(b((f-m)/(v||1)),0),T=Array(M);M--;)T[_?M:++A]=m,m+=v;return T}},107:d=>{d.exports=function(b,h,m,f,v){return v(b,function(_,A,M){m=f?(f=!1,_):h(m,_,A,M)}),m}},5976:(d,b,h)=>{var m=h(6557),f=h(5357),v=h(61);d.exports=function(_,A){return v(f(_,A,m),_+"")}},611:(d,b,h)=>{var m=h(4865),f=h(1811),v=h(5776),_=h(3218),A=h(327);d.exports=function(M,T,O,B){if(!_(M))return M;for(var z=-1,q=(T=f(T,M)).length,J=q-1,rt=M;rt!=null&&++z<q;){var ut=A(T[z]),Z=O;if(ut==="__proto__"||ut==="constructor"||ut==="prototype")return M;if(z!=J){var mt=rt[ut];(Z=B?B(mt,ut,rt):void 0)===void 0&&(Z=_(mt)?mt:v(T[z+1])?[]:{})}m(rt,ut,Z),rt=rt[ut]}return M}},6560:(d,b,h)=>{var m=h(5703),f=h(8777),v=h(6557),_=f?function(A,M){return f(A,"toString",{configurable:!0,enumerable:!1,value:m(M),writable:!0})}:v;d.exports=_},1131:d=>{d.exports=function(b,h){var m=b.length;for(b.sort(h);m--;)b[m]=b[m].value;return b}},2545:d=>{d.exports=function(b,h){for(var m=-1,f=Array(b);++m<b;)f[m]=h(m);return f}},531:(d,b,h)=>{var m=h(2705),f=h(9932),v=h(1469),_=h(3448),A=m?m.prototype:void 0,M=A?A.toString:void 0;d.exports=function T(O){if(typeof O=="string")return O;if(v(O))return f(O,T)+"";if(_(O))return M?M.call(O):"";var B=O+"";return B=="0"&&1/O==-1/0?"-0":B}},7561:(d,b,h)=>{var m=h(7990),f=/^\s+/;d.exports=function(v){return v&&v.slice(0,m(v)+1).replace(f,"")}},1717:d=>{d.exports=function(b){return function(h){return b(h)}}},5652:(d,b,h)=>{var m=h(8668),f=h(7443),v=h(1196),_=h(4757),A=h(3593),M=h(1814);d.exports=function(T,O,B){var z=-1,q=f,J=T.length,rt=!0,ut=[],Z=ut;if(B)rt=!1,q=v;else if(J>=200){var mt=O?null:A(T);if(mt)return M(mt);rt=!1,q=_,Z=new m}else Z=O?[]:ut;t:for(;++z<J;){var nt=T[z],at=O?O(nt):nt;if(nt=B||nt!==0?nt:0,rt&&at==at){for(var _t=Z.length;_t--;)if(Z[_t]===at)continue t;O&&Z.push(at),ut.push(nt)}else q(Z,at,B)||(Z!==ut&&Z.push(at),ut.push(nt))}return ut}},7415:(d,b,h)=>{var m=h(9932);d.exports=function(f,v){return m(v,function(_){return f[_]})}},1757:d=>{d.exports=function(b,h,m){for(var f=-1,v=b.length,_=h.length,A={};++f<v;){var M=f<_?h[f]:void 0;m(A,b[f],M)}return A}},4757:d=>{d.exports=function(b,h){return b.has(h)}},4290:(d,b,h)=>{var m=h(6557);d.exports=function(f){return typeof f=="function"?f:m}},1811:(d,b,h)=>{var m=h(1469),f=h(5403),v=h(5514),_=h(9833);d.exports=function(A,M){return m(A)?A:f(A,M)?[A]:v(_(A))}},4318:(d,b,h)=>{var m=h(1149);d.exports=function(f){var v=new f.constructor(f.byteLength);return new m(v).set(new m(f)),v}},4626:(d,b,h)=>{d=h.nmd(d);var m=h(5639),f=b&&!b.nodeType&&b,v=f&&d&&!d.nodeType&&d,_=v&&v.exports===f?m.Buffer:void 0,A=_?_.allocUnsafe:void 0;d.exports=function(M,T){if(T)return M.slice();var O=M.length,B=A?A(O):new M.constructor(O);return M.copy(B),B}},7157:(d,b,h)=>{var m=h(4318);d.exports=function(f,v){var _=v?m(f.buffer):f.buffer;return new f.constructor(_,f.byteOffset,f.byteLength)}},3147:d=>{var b=/\w*$/;d.exports=function(h){var m=new h.constructor(h.source,b.exec(h));return m.lastIndex=h.lastIndex,m}},419:(d,b,h)=>{var m=h(2705),f=m?m.prototype:void 0,v=f?f.valueOf:void 0;d.exports=function(_){return v?Object(v.call(_)):{}}},7133:(d,b,h)=>{var m=h(4318);d.exports=function(f,v){var _=v?m(f.buffer):f.buffer;return new f.constructor(_,f.byteOffset,f.length)}},6393:(d,b,h)=>{var m=h(3448);d.exports=function(f,v){if(f!==v){var _=f!==void 0,A=f===null,M=f==f,T=m(f),O=v!==void 0,B=v===null,z=v==v,q=m(v);if(!B&&!q&&!T&&f>v||T&&O&&z&&!B&&!q||A&&O&&z||!_&&z||!M)return 1;if(!A&&!T&&!q&&f<v||q&&_&&M&&!A&&!T||B&&_&&M||!O&&M||!z)return-1}return 0}},5022:(d,b,h)=>{var m=h(6393);d.exports=function(f,v,_){for(var A=-1,M=f.criteria,T=v.criteria,O=M.length,B=_.length;++A<O;){var z=m(M[A],T[A]);if(z)return A>=B?z:z*(_[A]=="desc"?-1:1)}return f.index-v.index}},278:d=>{d.exports=function(b,h){var m=-1,f=b.length;for(h||(h=Array(f));++m<f;)h[m]=b[m];return h}},8363:(d,b,h)=>{var m=h(4865),f=h(9465);d.exports=function(v,_,A,M){var T=!A;A||(A={});for(var O=-1,B=_.length;++O<B;){var z=_[O],q=M?M(A[z],v[z],z,A,v):void 0;q===void 0&&(q=v[z]),T?f(A,z,q):m(A,z,q)}return A}},8805:(d,b,h)=>{var m=h(8363),f=h(9551);d.exports=function(v,_){return m(v,f(v),_)}},1911:(d,b,h)=>{var m=h(8363),f=h(1442);d.exports=function(v,_){return m(v,f(v),_)}},4429:(d,b,h)=>{var m=h(5639)["__core-js_shared__"];d.exports=m},1463:(d,b,h)=>{var m=h(5976),f=h(6612);d.exports=function(v){return m(function(_,A){var M=-1,T=A.length,O=T>1?A[T-1]:void 0,B=T>2?A[2]:void 0;for(O=v.length>3&&typeof O=="function"?(T--,O):void 0,B&&f(A[0],A[1],B)&&(O=T<3?void 0:O,T=1),_=Object(_);++M<T;){var z=A[M];z&&v(_,z,M,O)}return _})}},9291:(d,b,h)=>{var m=h(8612);d.exports=function(f,v){return function(_,A){if(_==null)return _;if(!m(_))return f(_,A);for(var M=_.length,T=v?M:-1,O=Object(_);(v?T--:++T<M)&&A(O[T],T,O)!==!1;);return _}}},5063:d=>{d.exports=function(b){return function(h,m,f){for(var v=-1,_=Object(h),A=f(h),M=A.length;M--;){var T=A[b?M:++v];if(m(_[T],T,_)===!1)break}return h}}},7740:(d,b,h)=>{var m=h(7206),f=h(8612),v=h(3674);d.exports=function(_){return function(A,M,T){var O=Object(A);if(!f(A)){var B=m(M,3);A=v(A),M=function(q){return B(O[q],q,O)}}var z=_(A,M,T);return z>-1?O[B?A[z]:z]:void 0}}},7445:(d,b,h)=>{var m=h(98),f=h(6612),v=h(8601);d.exports=function(_){return function(A,M,T){return T&&typeof T!="number"&&f(A,M,T)&&(M=T=void 0),A=v(A),M===void 0?(M=A,A=0):M=v(M),T=T===void 0?A<M?1:-1:v(T),m(A,M,T,_)}}},3593:(d,b,h)=>{var m=h(8525),f=h(308),v=h(1814),_=m&&1/v(new m([,-0]))[1]==1/0?function(A){return new m(A)}:f;d.exports=_},8777:(d,b,h)=>{var m=h(852),f=function(){try{var v=m(Object,"defineProperty");return v({},"",{}),v}catch{}}();d.exports=f},7114:(d,b,h)=>{var m=h(8668),f=h(2908),v=h(4757);d.exports=function(_,A,M,T,O,B){var z=1&M,q=_.length,J=A.length;if(q!=J&&!(z&&J>q))return!1;var rt=B.get(_),ut=B.get(A);if(rt&&ut)return rt==A&&ut==_;var Z=-1,mt=!0,nt=2&M?new m:void 0;for(B.set(_,A),B.set(A,_);++Z<q;){var at=_[Z],_t=A[Z];if(T)var jt=z?T(_t,at,Z,A,_,B):T(at,_t,Z,_,A,B);if(jt!==void 0){if(jt)continue;mt=!1;break}if(nt){if(!f(A,function(St,gt){if(!v(nt,gt)&&(at===St||O(at,St,M,T,B)))return nt.push(gt)})){mt=!1;break}}else if(at!==_t&&!O(at,_t,M,T,B)){mt=!1;break}}return B.delete(_),B.delete(A),mt}},8351:(d,b,h)=>{var m=h(2705),f=h(1149),v=h(7813),_=h(7114),A=h(8776),M=h(1814),T=m?m.prototype:void 0,O=T?T.valueOf:void 0;d.exports=function(B,z,q,J,rt,ut,Z){switch(q){case"[object DataView]":if(B.byteLength!=z.byteLength||B.byteOffset!=z.byteOffset)return!1;B=B.buffer,z=z.buffer;case"[object ArrayBuffer]":return!(B.byteLength!=z.byteLength||!ut(new f(B),new f(z)));case"[object Boolean]":case"[object Date]":case"[object Number]":return v(+B,+z);case"[object Error]":return B.name==z.name&&B.message==z.message;case"[object RegExp]":case"[object String]":return B==z+"";case"[object Map]":var mt=A;case"[object Set]":var nt=1&J;if(mt||(mt=M),B.size!=z.size&&!nt)return!1;var at=Z.get(B);if(at)return at==z;J|=2,Z.set(B,z);var _t=_(mt(B),mt(z),J,rt,ut,Z);return Z.delete(B),_t;case"[object Symbol]":if(O)return O.call(B)==O.call(z)}return!1}},6096:(d,b,h)=>{var m=h(8234),f=Object.prototype.hasOwnProperty;d.exports=function(v,_,A,M,T,O){var B=1&A,z=m(v),q=z.length;if(q!=m(_).length&&!B)return!1;for(var J=q;J--;){var rt=z[J];if(!(B?rt in _:f.call(_,rt)))return!1}var ut=O.get(v),Z=O.get(_);if(ut&&Z)return ut==_&&Z==v;var mt=!0;O.set(v,_),O.set(_,v);for(var nt=B;++J<q;){var at=v[rt=z[J]],_t=_[rt];if(M)var jt=B?M(_t,at,rt,_,v,O):M(at,_t,rt,v,_,O);if(!(jt===void 0?at===_t||T(at,_t,A,M,O):jt)){mt=!1;break}nt||(nt=rt=="constructor")}if(mt&&!nt){var St=v.constructor,gt=_.constructor;St==gt||!("constructor"in v)||!("constructor"in _)||typeof St=="function"&&St instanceof St&&typeof gt=="function"&> instanceof gt||(mt=!1)}return O.delete(v),O.delete(_),mt}},9021:(d,b,h)=>{var m=h(5564),f=h(5357),v=h(61);d.exports=function(_){return v(f(_,void 0,m),_+"")}},1957:(d,b,h)=>{var m=typeof h.g=="object"&&h.g&&h.g.Object===Object&&h.g;d.exports=m},8234:(d,b,h)=>{var m=h(8866),f=h(9551),v=h(3674);d.exports=function(_){return m(_,v,f)}},6904:(d,b,h)=>{var m=h(8866),f=h(1442),v=h(1704);d.exports=function(_){return m(_,v,f)}},5050:(d,b,h)=>{var m=h(7019);d.exports=function(f,v){var _=f.__data__;return m(v)?_[typeof v=="string"?"string":"hash"]:_.map}},1499:(d,b,h)=>{var m=h(9162),f=h(3674);d.exports=function(v){for(var _=f(v),A=_.length;A--;){var M=_[A],T=v[M];_[A]=[M,T,m(T)]}return _}},852:(d,b,h)=>{var m=h(8458),f=h(7801);d.exports=function(v,_){var A=f(v,_);return m(A)?A:void 0}},5924:(d,b,h)=>{var m=h(5569)(Object.getPrototypeOf,Object);d.exports=m},9607:(d,b,h)=>{var m=h(2705),f=Object.prototype,v=f.hasOwnProperty,_=f.toString,A=m?m.toStringTag:void 0;d.exports=function(M){var T=v.call(M,A),O=M[A];try{M[A]=void 0;var B=!0}catch{}var z=_.call(M);return B&&(T?M[A]=O:delete M[A]),z}},9551:(d,b,h)=>{var m=h(4963),f=h(479),v=Object.prototype.propertyIsEnumerable,_=Object.getOwnPropertySymbols,A=_?function(M){return M==null?[]:(M=Object(M),m(_(M),function(T){return v.call(M,T)}))}:f;d.exports=A},1442:(d,b,h)=>{var m=h(2488),f=h(5924),v=h(9551),_=h(479),A=Object.getOwnPropertySymbols?function(M){for(var T=[];M;)m(T,v(M)),M=f(M);return T}:_;d.exports=A},4160:(d,b,h)=>{var m=h(8552),f=h(7071),v=h(3818),_=h(8525),A=h(577),M=h(4239),T=h(346),O="[object Map]",B="[object Promise]",z="[object Set]",q="[object WeakMap]",J="[object DataView]",rt=T(m),ut=T(f),Z=T(v),mt=T(_),nt=T(A),at=M;(m&&at(new m(new ArrayBuffer(1)))!=J||f&&at(new f)!=O||v&&at(v.resolve())!=B||_&&at(new _)!=z||A&&at(new A)!=q)&&(at=function(_t){var jt=M(_t),St=jt=="[object Object]"?_t.constructor:void 0,gt=St?T(St):"";if(gt)switch(gt){case rt:return J;case ut:return O;case Z:return B;case mt:return z;case nt:return q}return jt}),d.exports=at},7801:d=>{d.exports=function(b,h){return b==null?void 0:b[h]}},222:(d,b,h)=>{var m=h(1811),f=h(5694),v=h(1469),_=h(5776),A=h(1780),M=h(327);d.exports=function(T,O,B){for(var z=-1,q=(O=m(O,T)).length,J=!1;++z<q;){var rt=M(O[z]);if(!(J=T!=null&&B(T,rt)))break;T=T[rt]}return J||++z!=q?J:!!(q=T==null?0:T.length)&&A(q)&&_(rt,q)&&(v(T)||f(T))}},2689:d=>{var b=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");d.exports=function(h){return b.test(h)}},1789:(d,b,h)=>{var m=h(4536);d.exports=function(){this.__data__=m?m(null):{},this.size=0}},401:d=>{d.exports=function(b){var h=this.has(b)&&delete this.__data__[b];return this.size-=h?1:0,h}},7667:(d,b,h)=>{var m=h(4536),f=Object.prototype.hasOwnProperty;d.exports=function(v){var _=this.__data__;if(m){var A=_[v];return A==="__lodash_hash_undefined__"?void 0:A}return f.call(_,v)?_[v]:void 0}},1327:(d,b,h)=>{var m=h(4536),f=Object.prototype.hasOwnProperty;d.exports=function(v){var _=this.__data__;return m?_[v]!==void 0:f.call(_,v)}},1866:(d,b,h)=>{var m=h(4536);d.exports=function(f,v){var _=this.__data__;return this.size+=this.has(f)?0:1,_[f]=m&&v===void 0?"__lodash_hash_undefined__":v,this}},3824:d=>{var b=Object.prototype.hasOwnProperty;d.exports=function(h){var m=h.length,f=new h.constructor(m);return m&&typeof h[0]=="string"&&b.call(h,"index")&&(f.index=h.index,f.input=h.input),f}},9148:(d,b,h)=>{var m=h(4318),f=h(7157),v=h(3147),_=h(419),A=h(7133);d.exports=function(M,T,O){var B=M.constructor;switch(T){case"[object ArrayBuffer]":return m(M);case"[object Boolean]":case"[object Date]":return new B(+M);case"[object DataView]":return f(M,O);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return A(M,O);case"[object Map]":case"[object Set]":return new B;case"[object Number]":case"[object String]":return new B(M);case"[object RegExp]":return v(M);case"[object Symbol]":return _(M)}}},8517:(d,b,h)=>{var m=h(3118),f=h(5924),v=h(5726);d.exports=function(_){return typeof _.constructor!="function"||v(_)?{}:m(f(_))}},7285:(d,b,h)=>{var m=h(2705),f=h(5694),v=h(1469),_=m?m.isConcatSpreadable:void 0;d.exports=function(A){return v(A)||f(A)||!!(_&&A&&A[_])}},5776:d=>{var b=/^(?:0|[1-9]\d*)$/;d.exports=function(h,m){var f=typeof h;return!!(m=m==null?9007199254740991:m)&&(f=="number"||f!="symbol"&&b.test(h))&&h>-1&&h%1==0&&h<m}},6612:(d,b,h)=>{var m=h(7813),f=h(8612),v=h(5776),_=h(3218);d.exports=function(A,M,T){if(!_(T))return!1;var O=typeof M;return!!(O=="number"?f(T)&&v(M,T.length):O=="string"&&M in T)&&m(T[M],A)}},5403:(d,b,h)=>{var m=h(1469),f=h(3448),v=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/;d.exports=function(A,M){if(m(A))return!1;var T=typeof A;return!(T!="number"&&T!="symbol"&&T!="boolean"&&A!=null&&!f(A))||_.test(A)||!v.test(A)||M!=null&&A in Object(M)}},7019:d=>{d.exports=function(b){var h=typeof b;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?b!=="__proto__":b===null}},5346:(d,b,h)=>{var m,f=h(4429),v=(m=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";d.exports=function(_){return!!v&&v in _}},5726:d=>{var b=Object.prototype;d.exports=function(h){var m=h&&h.constructor;return h===(typeof m=="function"&&m.prototype||b)}},9162:(d,b,h)=>{var m=h(3218);d.exports=function(f){return f==f&&!m(f)}},7040:d=>{d.exports=function(){this.__data__=[],this.size=0}},4125:(d,b,h)=>{var m=h(8470),f=Array.prototype.splice;d.exports=function(v){var _=this.__data__,A=m(_,v);return!(A<0||(A==_.length-1?_.pop():f.call(_,A,1),--this.size,0))}},2117:(d,b,h)=>{var m=h(8470);d.exports=function(f){var v=this.__data__,_=m(v,f);return _<0?void 0:v[_][1]}},7518:(d,b,h)=>{var m=h(8470);d.exports=function(f){return m(this.__data__,f)>-1}},4705:(d,b,h)=>{var m=h(8470);d.exports=function(f,v){var _=this.__data__,A=m(_,f);return A<0?(++this.size,_.push([f,v])):_[A][1]=v,this}},4785:(d,b,h)=>{var m=h(1989),f=h(8407),v=h(7071);d.exports=function(){this.size=0,this.__data__={hash:new m,map:new(v||f),string:new m}}},1285:(d,b,h)=>{var m=h(5050);d.exports=function(f){var v=m(this,f).delete(f);return this.size-=v?1:0,v}},6e3:(d,b,h)=>{var m=h(5050);d.exports=function(f){return m(this,f).get(f)}},9916:(d,b,h)=>{var m=h(5050);d.exports=function(f){return m(this,f).has(f)}},5265:(d,b,h)=>{var m=h(5050);d.exports=function(f,v){var _=m(this,f),A=_.size;return _.set(f,v),this.size+=_.size==A?0:1,this}},8776:d=>{d.exports=function(b){var h=-1,m=Array(b.size);return b.forEach(function(f,v){m[++h]=[v,f]}),m}},2634:d=>{d.exports=function(b,h){return function(m){return m!=null&&m[b]===h&&(h!==void 0||b in Object(m))}}},4523:(d,b,h)=>{var m=h(8306);d.exports=function(f){var v=m(f,function(A){return _.size===500&&_.clear(),A}),_=v.cache;return v}},4536:(d,b,h)=>{var m=h(852)(Object,"create");d.exports=m},6916:(d,b,h)=>{var m=h(5569)(Object.keys,Object);d.exports=m},3498:d=>{d.exports=function(b){var h=[];if(b!=null)for(var m in Object(b))h.push(m);return h}},1167:(d,b,h)=>{d=h.nmd(d);var m=h(1957),f=b&&!b.nodeType&&b,v=f&&d&&!d.nodeType&&d,_=v&&v.exports===f&&m.process,A=function(){try{return v&&v.require&&v.require("util").types||_&&_.binding&&_.binding("util")}catch{}}();d.exports=A},2333:d=>{var b=Object.prototype.toString;d.exports=function(h){return b.call(h)}},5569:d=>{d.exports=function(b,h){return function(m){return b(h(m))}}},5357:(d,b,h)=>{var m=h(6874),f=Math.max;d.exports=function(v,_,A){return _=f(_===void 0?v.length-1:_,0),function(){for(var M=arguments,T=-1,O=f(M.length-_,0),B=Array(O);++T<O;)B[T]=M[_+T];T=-1;for(var z=Array(_+1);++T<_;)z[T]=M[T];return z[_]=A(B),m(v,this,z)}}},5639:(d,b,h)=>{var m=h(1957),f=typeof self=="object"&&self&&self.Object===Object&&self,v=m||f||Function("return this")();d.exports=v},6390:d=>{d.exports=function(b,h){if((h!=="constructor"||typeof b[h]!="function")&&h!="__proto__")return b[h]}},619:d=>{d.exports=function(b){return this.__data__.set(b,"__lodash_hash_undefined__"),this}},2385:d=>{d.exports=function(b){return this.__data__.has(b)}},1814:d=>{d.exports=function(b){var h=-1,m=Array(b.size);return b.forEach(function(f){m[++h]=f}),m}},61:(d,b,h)=>{var m=h(6560),f=h(1275)(m);d.exports=f},1275:d=>{var b=Date.now;d.exports=function(h){var m=0,f=0;return function(){var v=b(),_=16-(v-f);if(f=v,_>0){if(++m>=800)return arguments[0]}else m=0;return h.apply(void 0,arguments)}}},7465:(d,b,h)=>{var m=h(8407);d.exports=function(){this.__data__=new m,this.size=0}},3779:d=>{d.exports=function(b){var h=this.__data__,m=h.delete(b);return this.size=h.size,m}},7599:d=>{d.exports=function(b){return this.__data__.get(b)}},4758:d=>{d.exports=function(b){return this.__data__.has(b)}},4309:(d,b,h)=>{var m=h(8407),f=h(7071),v=h(3369);d.exports=function(_,A){var M=this.__data__;if(M instanceof m){var T=M.__data__;if(!f||T.length<199)return T.push([_,A]),this.size=++M.size,this;M=this.__data__=new v(T)}return M.set(_,A),this.size=M.size,this}},2351:d=>{d.exports=function(b,h,m){for(var f=m-1,v=b.length;++f<v;)if(b[f]===h)return f;return-1}},8016:(d,b,h)=>{var m=h(8983),f=h(2689),v=h(1903);d.exports=function(_){return f(_)?v(_):m(_)}},5514:(d,b,h)=>{var m=h(4523),f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g,_=m(function(A){var M=[];return A.charCodeAt(0)===46&&M.push(""),A.replace(f,function(T,O,B,z){M.push(B?z.replace(v,"$1"):O||T)}),M});d.exports=_},327:(d,b,h)=>{var m=h(3448);d.exports=function(f){if(typeof f=="string"||m(f))return f;var v=f+"";return v=="0"&&1/f==-1/0?"-0":v}},346:d=>{var b=Function.prototype.toString;d.exports=function(h){if(h!=null){try{return b.call(h)}catch{}try{return h+""}catch{}}return""}},7990:d=>{var b=/\s/;d.exports=function(h){for(var m=h.length;m--&&b.test(h.charAt(m)););return m}},1903:d=>{var b="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",h="\\ud83c[\\udffb-\\udfff]",m="[^\\ud800-\\udfff]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",_="(?:"+b+"|"+h+")?",A="[\\ufe0e\\ufe0f]?",M=A+_+"(?:\\u200d(?:"+[m,f,v].join("|")+")"+A+_+")*",T="(?:"+[m+b+"?",b,f,v,"[\\ud800-\\udfff]"].join("|")+")",O=RegExp(h+"(?="+h+")|"+T+M,"g");d.exports=function(B){for(var z=O.lastIndex=0;O.test(B);)++z;return z}},6678:(d,b,h)=>{var m=h(5990);d.exports=function(f){return m(f,4)}},361:(d,b,h)=>{var m=h(5990);d.exports=function(f){return m(f,5)}},5703:d=>{d.exports=function(b){return function(){return b}}},1747:(d,b,h)=>{var m=h(5976),f=h(7813),v=h(6612),_=h(1704),A=Object.prototype,M=A.hasOwnProperty,T=m(function(O,B){O=Object(O);var z=-1,q=B.length,J=q>2?B[2]:void 0;for(J&&v(B[0],B[1],J)&&(q=1);++z<q;)for(var rt=B[z],ut=_(rt),Z=-1,mt=ut.length;++Z<mt;){var nt=ut[Z],at=O[nt];(at===void 0||f(at,A[nt])&&!M.call(O,nt))&&(O[nt]=rt[nt])}return O});d.exports=T},6073:(d,b,h)=>{d.exports=h(4486)},7813:d=>{d.exports=function(b,h){return b===h||b!=b&&h!=h}},3105:(d,b,h)=>{var m=h(4963),f=h(760),v=h(7206),_=h(1469);d.exports=function(A,M){return(_(A)?m:f)(A,v(M,3))}},3311:(d,b,h)=>{var m=h(7740)(h(998));d.exports=m},998:(d,b,h)=>{var m=h(1848),f=h(7206),v=h(554),_=Math.max;d.exports=function(A,M,T){var O=A==null?0:A.length;if(!O)return-1;var B=T==null?0:v(T);return B<0&&(B=_(O+B,0)),m(A,f(M,3),B)}},5564:(d,b,h)=>{var m=h(1078);d.exports=function(f){return f!=null&&f.length?m(f,1):[]}},4486:(d,b,h)=>{var m=h(7412),f=h(9881),v=h(4290),_=h(1469);d.exports=function(A,M){return(_(A)?m:f)(A,v(M))}},2620:(d,b,h)=>{var m=h(8483),f=h(4290),v=h(1704);d.exports=function(_,A){return _==null?_:m(_,f(A),v)}},7361:(d,b,h)=>{var m=h(7786);d.exports=function(f,v,_){var A=f==null?void 0:m(f,v);return A===void 0?_:A}},8721:(d,b,h)=>{var m=h(8565),f=h(222);d.exports=function(v,_){return v!=null&&f(v,_,m)}},9095:(d,b,h)=>{var m=h(13),f=h(222);d.exports=function(v,_){return v!=null&&f(v,_,m)}},6557:d=>{d.exports=function(b){return b}},5694:(d,b,h)=>{var m=h(9454),f=h(7005),v=Object.prototype,_=v.hasOwnProperty,A=v.propertyIsEnumerable,M=m(function(){return arguments}())?m:function(T){return f(T)&&_.call(T,"callee")&&!A.call(T,"callee")};d.exports=M},1469:d=>{var b=Array.isArray;d.exports=b},8612:(d,b,h)=>{var m=h(3560),f=h(1780);d.exports=function(v){return v!=null&&f(v.length)&&!m(v)}},9246:(d,b,h)=>{var m=h(8612),f=h(7005);d.exports=function(v){return f(v)&&m(v)}},4144:(d,b,h)=>{d=h.nmd(d);var m=h(5639),f=h(5062),v=b&&!b.nodeType&&b,_=v&&d&&!d.nodeType&&d,A=_&&_.exports===v?m.Buffer:void 0,M=(A?A.isBuffer:void 0)||f;d.exports=M},1609:(d,b,h)=>{var m=h(280),f=h(4160),v=h(5694),_=h(1469),A=h(8612),M=h(4144),T=h(5726),O=h(6719),B=Object.prototype.hasOwnProperty;d.exports=function(z){if(z==null)return!0;if(A(z)&&(_(z)||typeof z=="string"||typeof z.splice=="function"||M(z)||O(z)||v(z)))return!z.length;var q=f(z);if(q=="[object Map]"||q=="[object Set]")return!z.size;if(T(z))return!m(z).length;for(var J in z)if(B.call(z,J))return!1;return!0}},3560:(d,b,h)=>{var m=h(4239),f=h(3218);d.exports=function(v){if(!f(v))return!1;var _=m(v);return _=="[object Function]"||_=="[object GeneratorFunction]"||_=="[object AsyncFunction]"||_=="[object Proxy]"}},1780:d=>{d.exports=function(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=9007199254740991}},6688:(d,b,h)=>{var m=h(5588),f=h(1717),v=h(1167),_=v&&v.isMap,A=_?f(_):m;d.exports=A},3218:d=>{d.exports=function(b){var h=typeof b;return b!=null&&(h=="object"||h=="function")}},7005:d=>{d.exports=function(b){return b!=null&&typeof b=="object"}},8630:(d,b,h)=>{var m=h(4239),f=h(5924),v=h(7005),_=Function.prototype,A=Object.prototype,M=_.toString,T=A.hasOwnProperty,O=M.call(Object);d.exports=function(B){if(!v(B)||m(B)!="[object Object]")return!1;var z=f(B);if(z===null)return!0;var q=T.call(z,"constructor")&&z.constructor;return typeof q=="function"&&q instanceof q&&M.call(q)==O}},2928:(d,b,h)=>{var m=h(9221),f=h(1717),v=h(1167),_=v&&v.isSet,A=_?f(_):m;d.exports=A},7037:(d,b,h)=>{var m=h(4239),f=h(1469),v=h(7005);d.exports=function(_){return typeof _=="string"||!f(_)&&v(_)&&m(_)=="[object String]"}},3448:(d,b,h)=>{var m=h(4239),f=h(7005);d.exports=function(v){return typeof v=="symbol"||f(v)&&m(v)=="[object Symbol]"}},6719:(d,b,h)=>{var m=h(8749),f=h(1717),v=h(1167),_=v&&v.isTypedArray,A=_?f(_):m;d.exports=A},2353:d=>{d.exports=function(b){return b===void 0}},3674:(d,b,h)=>{var m=h(4636),f=h(280),v=h(8612);d.exports=function(_){return v(_)?m(_):f(_)}},1704:(d,b,h)=>{var m=h(4636),f=h(313),v=h(8612);d.exports=function(_){return v(_)?m(_,!0):f(_)}},928:d=>{d.exports=function(b){var h=b==null?0:b.length;return h?b[h-1]:void 0}},5161:(d,b,h)=>{var m=h(9932),f=h(7206),v=h(9199),_=h(1469);d.exports=function(A,M){return(_(A)?m:v)(A,f(M,3))}},6604:(d,b,h)=>{var m=h(9465),f=h(7816),v=h(7206);d.exports=function(_,A){var M={};return A=v(A,3),f(_,function(T,O,B){m(M,O,A(T,O,B))}),M}},6162:(d,b,h)=>{var m=h(6029),f=h(3325),v=h(6557);d.exports=function(_){return _&&_.length?m(_,v,f):void 0}},8306:(d,b,h)=>{var m=h(3369);function f(v,_){if(typeof v!="function"||_!=null&&typeof _!="function")throw new TypeError("Expected a function");var A=function(){var M=arguments,T=_?_.apply(this,M):M[0],O=A.cache;if(O.has(T))return O.get(T);var B=v.apply(this,M);return A.cache=O.set(T,B)||O,B};return A.cache=new(f.Cache||m),A}f.Cache=m,d.exports=f},3857:(d,b,h)=>{var m=h(2980),f=h(1463)(function(v,_,A){m(v,_,A)});d.exports=f},3632:(d,b,h)=>{var m=h(6029),f=h(433),v=h(6557);d.exports=function(_){return _&&_.length?m(_,v,f):void 0}},2762:(d,b,h)=>{var m=h(6029),f=h(7206),v=h(433);d.exports=function(_,A){return _&&_.length?m(_,f(A,2),v):void 0}},308:d=>{d.exports=function(){}},7771:(d,b,h)=>{var m=h(5639);d.exports=function(){return m.Date.now()}},9722:(d,b,h)=>{var m=h(5970),f=h(9021)(function(v,_){return v==null?{}:m(v,_)});d.exports=f},9601:(d,b,h)=>{var m=h(371),f=h(9152),v=h(5403),_=h(327);d.exports=function(A){return v(A)?m(_(A)):f(A)}},6026:(d,b,h)=>{var m=h(7445)();d.exports=m},4061:(d,b,h)=>{var m=h(2663),f=h(9881),v=h(7206),_=h(107),A=h(1469);d.exports=function(M,T,O){var B=A(M)?m:_,z=arguments.length<3;return B(M,v(T,4),O,z,f)}},4238:(d,b,h)=>{var m=h(280),f=h(4160),v=h(8612),_=h(7037),A=h(8016);d.exports=function(M){if(M==null)return 0;if(v(M))return _(M)?A(M):M.length;var T=f(M);return T=="[object Map]"||T=="[object Set]"?M.size:m(M).length}},9734:(d,b,h)=>{var m=h(1078),f=h(9556),v=h(5976),_=h(6612),A=v(function(M,T){if(M==null)return[];var O=T.length;return O>1&&_(M,T[0],T[1])?T=[]:O>2&&_(T[0],T[1],T[2])&&(T=[T[0]]),f(M,m(T,1),[])});d.exports=A},479:d=>{d.exports=function(){return[]}},5062:d=>{d.exports=function(){return!1}},8601:(d,b,h)=>{var m=h(4841);d.exports=function(f){return f?(f=m(f))===1/0||f===-1/0?17976931348623157e292*(f<0?-1:1):f==f?f:0:f===0?f:0}},554:(d,b,h)=>{var m=h(8601);d.exports=function(f){var v=m(f),_=v%1;return v==v?_?v-_:v:0}},4841:(d,b,h)=>{var m=h(7561),f=h(3218),v=h(3448),_=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,M=/^0o[0-7]+$/i,T=parseInt;d.exports=function(O){if(typeof O=="number")return O;if(v(O))return NaN;if(f(O)){var B=typeof O.valueOf=="function"?O.valueOf():O;O=f(B)?B+"":B}if(typeof O!="string")return O===0?O:+O;O=m(O);var z=A.test(O);return z||M.test(O)?T(O.slice(2),z?2:8):_.test(O)?NaN:+O}},3678:(d,b,h)=>{var m=h(8363),f=h(1704);d.exports=function(v){return m(v,f(v))}},9833:(d,b,h)=>{var m=h(531);d.exports=function(f){return f==null?"":m(f)}},8718:(d,b,h)=>{var m=h(7412),f=h(3118),v=h(7816),_=h(7206),A=h(5924),M=h(1469),T=h(4144),O=h(3560),B=h(3218),z=h(6719);d.exports=function(q,J,rt){var ut=M(q),Z=ut||T(q)||z(q);if(J=_(J,4),rt==null){var mt=q&&q.constructor;rt=Z?ut?new mt:[]:B(q)&&O(mt)?f(A(q)):{}}return(Z?m:v)(q,function(nt,at,_t){return J(rt,nt,at,_t)}),rt}},3386:(d,b,h)=>{var m=h(1078),f=h(5976),v=h(5652),_=h(9246),A=f(function(M){return v(m(M,1,_,!0))});d.exports=A},3955:(d,b,h)=>{var m=h(9833),f=0;d.exports=function(v){var _=++f;return m(v)+_}},2628:(d,b,h)=>{var m=h(7415),f=h(3674);d.exports=function(v){return v==null?[]:m(v,f(v))}},7287:(d,b,h)=>{var m=h(4865),f=h(1757);d.exports=function(v,_){return f(v||[],_||[],m)}},9234:()=>{},1748:(d,b,h)=>{var m={"./locale":9234,"./locale.js":9234};function f(_){var A=v(_);return h(A)}function v(_){if(!h.o(m,_)){var A=new Error("Cannot find module '"+_+"'");throw A.code="MODULE_NOT_FOUND",A}return m[_]}f.keys=function(){return Object.keys(m)},f.resolve=v,d.exports=f,f.id=1748},1941:function(d,b,h){(d=h.nmd(d)).exports=function(){var m,f;function v(){return m.apply(null,arguments)}function _(I){return I instanceof Array||Object.prototype.toString.call(I)==="[object Array]"}function A(I){return I!=null&&Object.prototype.toString.call(I)==="[object Object]"}function M(I){return I===void 0}function T(I){return typeof I=="number"||Object.prototype.toString.call(I)==="[object Number]"}function O(I){return I instanceof Date||Object.prototype.toString.call(I)==="[object Date]"}function B(I,Y){var et,yt=[];for(et=0;et<I.length;++et)yt.push(Y(I[et],et));return yt}function z(I,Y){return Object.prototype.hasOwnProperty.call(I,Y)}function q(I,Y){for(var et in Y)z(Y,et)&&(I[et]=Y[et]);return z(Y,"toString")&&(I.toString=Y.toString),z(Y,"valueOf")&&(I.valueOf=Y.valueOf),I}function J(I,Y,et,yt){return Sa(I,Y,et,yt,!0).utc()}function rt(I){return I._pf==null&&(I._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),I._pf}function ut(I){if(I._isValid==null){var Y=rt(I),et=f.call(Y.parsedDateParts,function(te){return te!=null}),yt=!isNaN(I._d.getTime())&&Y.overflow<0&&!Y.empty&&!Y.invalidMonth&&!Y.invalidWeekday&&!Y.weekdayMismatch&&!Y.nullInput&&!Y.invalidFormat&&!Y.userInvalidated&&(!Y.meridiem||Y.meridiem&&et);if(I._strict&&(yt=yt&&Y.charsLeftOver===0&&Y.unusedTokens.length===0&&Y.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(I))return yt;I._isValid=yt}return I._isValid}function Z(I){var Y=J(NaN);return I!=null?q(rt(Y),I):rt(Y).userInvalidated=!0,Y}f=Array.prototype.some?Array.prototype.some:function(I){for(var Y=Object(this),et=Y.length>>>0,yt=0;yt<et;yt++)if(yt in Y&&I.call(this,Y[yt],yt,Y))return!0;return!1};var mt=v.momentProperties=[];function nt(I,Y){var et,yt,te;if(M(Y._isAMomentObject)||(I._isAMomentObject=Y._isAMomentObject),M(Y._i)||(I._i=Y._i),M(Y._f)||(I._f=Y._f),M(Y._l)||(I._l=Y._l),M(Y._strict)||(I._strict=Y._strict),M(Y._tzm)||(I._tzm=Y._tzm),M(Y._isUTC)||(I._isUTC=Y._isUTC),M(Y._offset)||(I._offset=Y._offset),M(Y._pf)||(I._pf=rt(Y)),M(Y._locale)||(I._locale=Y._locale),0<mt.length)for(et=0;et<mt.length;et++)M(te=Y[yt=mt[et]])||(I[yt]=te);return I}var at=!1;function _t(I){nt(this,I),this._d=new Date(I._d!=null?I._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),at===!1&&(at=!0,v.updateOffset(this),at=!1)}function jt(I){return I instanceof _t||I!=null&&I._isAMomentObject!=null}function St(I){return I<0?Math.ceil(I)||0:Math.floor(I)}function gt(I){var Y=+I,et=0;return Y!==0&&isFinite(Y)&&(et=St(Y)),et}function Ct(I,Y,et){var yt,te=Math.min(I.length,Y.length),Ne=Math.abs(I.length-Y.length),je=0;for(yt=0;yt<te;yt++)(et&&I[yt]!==Y[yt]||!et&>(I[yt])!==gt(Y[yt]))&&je++;return je+Ne}function vt(I){v.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+I)}function ft(I,Y){var et=!0;return q(function(){if(v.deprecationHandler!=null&&v.deprecationHandler(null,I),et){for(var yt,te=[],Ne=0;Ne<arguments.length;Ne++){if(yt="",typeof arguments[Ne]=="object"){for(var je in yt+=`
|
|
[`+Ne+"] ",arguments[0])yt+=je+": "+arguments[0][je]+", ";yt=yt.slice(0,-2)}else yt=arguments[Ne];te.push(yt)}vt(I+`
|
|
Arguments: `+Array.prototype.slice.call(te).join("")+`
|
|
`+new Error().stack),et=!1}return Y.apply(this,arguments)},Y)}var Q,ht={};function $(I,Y){v.deprecationHandler!=null&&v.deprecationHandler(I,Y),ht[I]||(vt(Y),ht[I]=!0)}function kt(I){return I instanceof Function||Object.prototype.toString.call(I)==="[object Function]"}function W(I,Y){var et,yt=q({},I);for(et in Y)z(Y,et)&&(A(I[et])&&A(Y[et])?(yt[et]={},q(yt[et],I[et]),q(yt[et],Y[et])):Y[et]!=null?yt[et]=Y[et]:delete yt[et]);for(et in I)z(I,et)&&!z(Y,et)&&A(I[et])&&(yt[et]=q({},yt[et]));return yt}function At(I){I!=null&&this.set(I)}v.suppressDeprecationWarnings=!1,v.deprecationHandler=null,Q=Object.keys?Object.keys:function(I){var Y,et=[];for(Y in I)z(I,Y)&&et.push(Y);return et};var Nt={};function Gt(I,Y){var et=I.toLowerCase();Nt[et]=Nt[et+"s"]=Nt[Y]=I}function xe(I){return typeof I=="string"?Nt[I]||Nt[I.toLowerCase()]:void 0}function Ge(I){var Y,et,yt={};for(et in I)z(I,et)&&(Y=xe(et))&&(yt[Y]=I[et]);return yt}var Te={};function ye(I,Y){Te[I]=Y}function ke(I,Y,et){var yt=""+Math.abs(I),te=Y-yt.length;return(0<=I?et?"+":"":"-")+Math.pow(10,Math.max(0,te)).toString().substr(1)+yt}var Me=/(\[[^\[]*\])|(\\)?([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,Oe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,we={},Sr={};function _e(I,Y,et,yt){var te=yt;typeof yt=="string"&&(te=function(){return this[yt]()}),I&&(Sr[I]=te),Y&&(Sr[Y[0]]=function(){return ke(te.apply(this,arguments),Y[1],Y[2])}),et&&(Sr[et]=function(){return this.localeData().ordinal(te.apply(this,arguments),I)})}function er(I,Y){return I.isValid()?(Y=oe(Y,I.localeData()),we[Y]=we[Y]||function(et){var yt,te,Ne,je=et.match(Me);for(yt=0,te=je.length;yt<te;yt++)Sr[je[yt]]?je[yt]=Sr[je[yt]]:je[yt]=(Ne=je[yt]).match(/\[[\s\S]/)?Ne.replace(/^\[|\]$/g,""):Ne.replace(/\\/g,"");return function(tr){var nr,fr="";for(nr=0;nr<te;nr++)fr+=kt(je[nr])?je[nr].call(tr,et):je[nr];return fr}}(Y),we[Y](I)):I.localeData().invalidDate()}function oe(I,Y){var et=5;function yt(te){return Y.longDateFormat(te)||te}for(Oe.lastIndex=0;0<=et&&Oe.test(I);)I=I.replace(Oe,yt),Oe.lastIndex=0,et-=1;return I}var ee=/\d/,he=/\d\d/,Mt=/\d{3}/,ie=/\d{4}/,pt=/[+-]?\d{6}/,wt=/\d\d?/,xt=/\d\d\d\d?/,Rt=/\d\d\d\d\d\d?/,me=/\d{1,3}/,Pe=/\d{1,4}/,ar=/[+-]?\d{1,6}/,Ze=/\d+/,ur=/[+-]?\d+/,ze=/Z|[+-]\d\d:?\d\d/gi,Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,Be=/[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,Fe={};function be(I,Y,et){Fe[I]=kt(Y)?Y:function(yt,te){return yt&&et?et:Y}}function se(I,Y){return z(Fe,I)?Fe[I](Y._strict,Y._locale):new RegExp(Lr(I.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(et,yt,te,Ne,je){return yt||te||Ne||je})))}function Lr(I){return I.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ue={};function dr(I,Y){var et,yt=Y;for(typeof I=="string"&&(I=[I]),T(Y)&&(yt=function(te,Ne){Ne[Y]=gt(te)}),et=0;et<I.length;et++)Ue[I[et]]=yt}function qe(I,Y){dr(I,function(et,yt,te,Ne){te._w=te._w||{},Y(et,te._w,te,Ne)})}function gr(I){return rn(I)?366:365}function rn(I){return I%4==0&&I%100!=0||I%400==0}_e("Y",0,0,function(){var I=this.year();return I<=9999?""+I:"+"+I}),_e(0,["YY",2],0,function(){return this.year()%100}),_e(0,["YYYY",4],0,"year"),_e(0,["YYYYY",5],0,"year"),_e(0,["YYYYYY",6,!0],0,"year"),Gt("year","y"),ye("year",1),be("Y",ur),be("YY",wt,he),be("YYYY",Pe,ie),be("YYYYY",ar,pt),be("YYYYYY",ar,pt),dr(["YYYYY","YYYYYY"],0),dr("YYYY",function(I,Y){Y[0]=I.length===2?v.parseTwoDigitYear(I):gt(I)}),dr("YY",function(I,Y){Y[0]=v.parseTwoDigitYear(I)}),dr("Y",function(I,Y){Y[0]=parseInt(I,10)}),v.parseTwoDigitYear=function(I){return gt(I)+(68<gt(I)?1900:2e3)};var Dr,Ar=De("FullYear",!0);function De(I,Y){return function(et){return et!=null?(Qe(this,I,et),v.updateOffset(this,Y),this):rr(this,I)}}function rr(I,Y){return I.isValid()?I._d["get"+(I._isUTC?"UTC":"")+Y]():NaN}function Qe(I,Y,et){I.isValid()&&!isNaN(et)&&(Y==="FullYear"&&rn(I.year())&&I.month()===1&&I.date()===29?I._d["set"+(I._isUTC?"UTC":"")+Y](et,I.month(),Ie(et,I.month())):I._d["set"+(I._isUTC?"UTC":"")+Y](et))}function Ie(I,Y){if(isNaN(I)||isNaN(Y))return NaN;var et=(Y%12+12)%12;return I+=(Y-et)/12,et===1?rn(I)?29:28:31-et%7%2}Dr=Array.prototype.indexOf?Array.prototype.indexOf:function(I){var Y;for(Y=0;Y<this.length;++Y)if(this[Y]===I)return Y;return-1},_e("M",["MM",2],"Mo",function(){return this.month()+1}),_e("MMM",0,0,function(I){return this.localeData().monthsShort(this,I)}),_e("MMMM",0,0,function(I){return this.localeData().months(this,I)}),Gt("month","M"),ye("month",8),be("M",wt),be("MM",wt,he),be("MMM",function(I,Y){return Y.monthsShortRegex(I)}),be("MMMM",function(I,Y){return Y.monthsRegex(I)}),dr(["M","MM"],function(I,Y){Y[1]=gt(I)-1}),dr(["MMM","MMMM"],function(I,Y,et,yt){var te=et._locale.monthsParse(I,yt,et._strict);te!=null?Y[1]=te:rt(et).invalidMonth=I});var vr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),kn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Vt(I,Y){var et;if(!I.isValid())return I;if(typeof Y=="string"){if(/^\d+$/.test(Y))Y=gt(Y);else if(!T(Y=I.localeData().monthsParse(Y)))return I}return et=Math.min(I.date(),Ie(I.year(),Y)),I._d["set"+(I._isUTC?"UTC":"")+"Month"](Y,et),I}function qr(I){return I!=null?(Vt(this,I),v.updateOffset(this,!0),this):rr(this,"Month")}var zr=Be,Zr=Be;function Mr(){function I(je,tr){return tr.length-je.length}var Y,et,yt=[],te=[],Ne=[];for(Y=0;Y<12;Y++)et=J([2e3,Y]),yt.push(this.monthsShort(et,"")),te.push(this.months(et,"")),Ne.push(this.months(et,"")),Ne.push(this.monthsShort(et,""));for(yt.sort(I),te.sort(I),Ne.sort(I),Y=0;Y<12;Y++)yt[Y]=Lr(yt[Y]),te[Y]=Lr(te[Y]);for(Y=0;Y<24;Y++)Ne[Y]=Lr(Ne[Y]);this._monthsRegex=new RegExp("^("+Ne.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+te.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+yt.join("|")+")","i")}function Xr(I){var Y;if(I<100&&0<=I){var et=Array.prototype.slice.call(arguments);et[0]=I+400,Y=new Date(Date.UTC.apply(null,et)),isFinite(Y.getUTCFullYear())&&Y.setUTCFullYear(I)}else Y=new Date(Date.UTC.apply(null,arguments));return Y}function Pr(I,Y,et){var yt=7+Y-et;return-(7+Xr(I,0,yt).getUTCDay()-Y)%7+yt-1}function Cr(I,Y,et,yt,te){var Ne,je,tr=1+7*(Y-1)+(7+et-yt)%7+Pr(I,yt,te);return je=tr<=0?gr(Ne=I-1)+tr:tr>gr(I)?(Ne=I+1,tr-gr(I)):(Ne=I,tr),{year:Ne,dayOfYear:je}}function Ur(I,Y,et){var yt,te,Ne=Pr(I.year(),Y,et),je=Math.floor((I.dayOfYear()-Ne-1)/7)+1;return je<1?yt=je+Yr(te=I.year()-1,Y,et):je>Yr(I.year(),Y,et)?(yt=je-Yr(I.year(),Y,et),te=I.year()+1):(te=I.year(),yt=je),{week:yt,year:te}}function Yr(I,Y,et){var yt=Pr(I,Y,et),te=Pr(I+1,Y,et);return(gr(I)-yt+te)/7}function jr(I,Y){return I.slice(Y,7).concat(I.slice(0,Y))}_e("w",["ww",2],"wo","week"),_e("W",["WW",2],"Wo","isoWeek"),Gt("week","w"),Gt("isoWeek","W"),ye("week",5),ye("isoWeek",5),be("w",wt),be("ww",wt,he),be("W",wt),be("WW",wt,he),qe(["w","ww","W","WW"],function(I,Y,et,yt){Y[yt.substr(0,1)]=gt(I)}),_e("d",0,"do","day"),_e("dd",0,0,function(I){return this.localeData().weekdaysMin(this,I)}),_e("ddd",0,0,function(I){return this.localeData().weekdaysShort(this,I)}),_e("dddd",0,0,function(I){return this.localeData().weekdays(this,I)}),_e("e",0,0,"weekday"),_e("E",0,0,"isoWeekday"),Gt("day","d"),Gt("weekday","e"),Gt("isoWeekday","E"),ye("day",11),ye("weekday",11),ye("isoWeekday",11),be("d",wt),be("e",wt),be("E",wt),be("dd",function(I,Y){return Y.weekdaysMinRegex(I)}),be("ddd",function(I,Y){return Y.weekdaysShortRegex(I)}),be("dddd",function(I,Y){return Y.weekdaysRegex(I)}),qe(["dd","ddd","dddd"],function(I,Y,et,yt){var te=et._locale.weekdaysParse(I,yt,et._strict);te!=null?Y.d=te:rt(et).invalidWeekday=I}),qe(["d","e","E"],function(I,Y,et,yt){Y[yt]=gt(I)});var ya="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),On="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Cn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ir=Be,ui=Be,Or=Be;function En(){function I(_r,$r){return $r.length-_r.length}var Y,et,yt,te,Ne,je=[],tr=[],nr=[],fr=[];for(Y=0;Y<7;Y++)et=J([2e3,1]).day(Y),yt=this.weekdaysMin(et,""),te=this.weekdaysShort(et,""),Ne=this.weekdays(et,""),je.push(yt),tr.push(te),nr.push(Ne),fr.push(yt),fr.push(te),fr.push(Ne);for(je.sort(I),tr.sort(I),nr.sort(I),fr.sort(I),Y=0;Y<7;Y++)tr[Y]=Lr(tr[Y]),nr[Y]=Lr(nr[Y]),fr[Y]=Lr(fr[Y]);this._weekdaysRegex=new RegExp("^("+fr.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+nr.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+tr.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+je.join("|")+")","i")}function Ln(){return this.hours()%12||12}function vn(I,Y){_e(I,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),Y)})}function Zn(I,Y){return Y._meridiemParse}_e("H",["HH",2],0,"hour"),_e("h",["hh",2],0,Ln),_e("k",["kk",2],0,function(){return this.hours()||24}),_e("hmm",0,0,function(){return""+Ln.apply(this)+ke(this.minutes(),2)}),_e("hmmss",0,0,function(){return""+Ln.apply(this)+ke(this.minutes(),2)+ke(this.seconds(),2)}),_e("Hmm",0,0,function(){return""+this.hours()+ke(this.minutes(),2)}),_e("Hmmss",0,0,function(){return""+this.hours()+ke(this.minutes(),2)+ke(this.seconds(),2)}),vn("a",!0),vn("A",!1),Gt("hour","h"),ye("hour",13),be("a",Zn),be("A",Zn),be("H",wt),be("h",wt),be("k",wt),be("HH",wt,he),be("hh",wt,he),be("kk",wt,he),be("hmm",xt),be("hmmss",Rt),be("Hmm",xt),be("Hmmss",Rt),dr(["H","HH"],3),dr(["k","kk"],function(I,Y,et){var yt=gt(I);Y[3]=yt===24?0:yt}),dr(["a","A"],function(I,Y,et){et._isPm=et._locale.isPM(I),et._meridiem=I}),dr(["h","hh"],function(I,Y,et){Y[3]=gt(I),rt(et).bigHour=!0}),dr("hmm",function(I,Y,et){var yt=I.length-2;Y[3]=gt(I.substr(0,yt)),Y[4]=gt(I.substr(yt)),rt(et).bigHour=!0}),dr("hmmss",function(I,Y,et){var yt=I.length-4,te=I.length-2;Y[3]=gt(I.substr(0,yt)),Y[4]=gt(I.substr(yt,2)),Y[5]=gt(I.substr(te)),rt(et).bigHour=!0}),dr("Hmm",function(I,Y,et){var yt=I.length-2;Y[3]=gt(I.substr(0,yt)),Y[4]=gt(I.substr(yt))}),dr("Hmmss",function(I,Y,et){var yt=I.length-4,te=I.length-2;Y[3]=gt(I.substr(0,yt)),Y[4]=gt(I.substr(yt,2)),Y[5]=gt(I.substr(te))});var Bt,Mn=De("Hours",!0),Rn={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:Ot,monthsShort:kn,week:{dow:0,doy:6},weekdays:ya,weekdaysMin:Cn,weekdaysShort:On,meridiemParse:/[ap]\.?m?\.?/i},Kr={},ti={};function Wn(I){return I&&I.toLowerCase().replace("_","-")}function Un(I){var Y=null;if(!Kr[I]&&d&&d.exports)try{Y=Bt._abbr,h(1748)("./"+I),ei(Y)}catch{}return Kr[I]}function ei(I,Y){var et;return I&&((et=M(Y)?dn(I):Ta(I,Y))?Bt=et:typeof console<"u"&&console.warn&&console.warn("Locale "+I+" not found. Did you forget to load it?")),Bt._abbr}function Ta(I,Y){if(Y===null)return delete Kr[I],null;var et,yt=Rn;if(Y.abbr=I,Kr[I]!=null)$("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=Kr[I]._config;else if(Y.parentLocale!=null)if(Kr[Y.parentLocale]!=null)yt=Kr[Y.parentLocale]._config;else{if((et=Un(Y.parentLocale))==null)return ti[Y.parentLocale]||(ti[Y.parentLocale]=[]),ti[Y.parentLocale].push({name:I,config:Y}),null;yt=et._config}return Kr[I]=new At(W(yt,Y)),ti[I]&&ti[I].forEach(function(te){Ta(te.name,te.config)}),ei(I),Kr[I]}function dn(I){var Y;if(I&&I._locale&&I._locale._abbr&&(I=I._locale._abbr),!I)return Bt;if(!_(I)){if(Y=Un(I))return Y;I=[I]}return function(et){for(var yt,te,Ne,je,tr=0;tr<et.length;){for(yt=(je=Wn(et[tr]).split("-")).length,te=(te=Wn(et[tr+1]))?te.split("-"):null;0<yt;){if(Ne=Un(je.slice(0,yt).join("-")))return Ne;if(te&&te.length>=yt&&Ct(je,te,!0)>=yt-1)break;yt--}tr++}return Bt}(I)}function aa(I){var Y,et=I._a;return et&&rt(I).overflow===-2&&(Y=et[1]<0||11<et[1]?1:et[2]<1||et[2]>Ie(et[0],et[1])?2:et[3]<0||24<et[3]||et[3]===24&&(et[4]!==0||et[5]!==0||et[6]!==0)?3:et[4]<0||59<et[4]?4:et[5]<0||59<et[5]?5:et[6]<0||999<et[6]?6:-1,rt(I)._overflowDayOfYear&&(Y<0||2<Y)&&(Y=2),rt(I)._overflowWeeks&&Y===-1&&(Y=7),rt(I)._overflowWeekday&&Y===-1&&(Y=8),rt(I).overflow=Y),I}function oa(I,Y,et){return I!=null?I:Y!=null?Y:et}function Ri(I){var Y,et,yt,te,Ne,je=[];if(!I._d){var tr,nr;for(tr=I,nr=new Date(v.now()),yt=tr._useUTC?[nr.getUTCFullYear(),nr.getUTCMonth(),nr.getUTCDate()]:[nr.getFullYear(),nr.getMonth(),nr.getDate()],I._w&&I._a[2]==null&&I._a[1]==null&&function(fr){var _r,$r,pr,xn,un,Gn,si,qn;if((_r=fr._w).GG!=null||_r.W!=null||_r.E!=null)un=1,Gn=4,$r=oa(_r.GG,fr._a[0],Ur(gn(),1,4).year),pr=oa(_r.W,1),((xn=oa(_r.E,1))<1||7<xn)&&(qn=!0);else{un=fr._locale._week.dow,Gn=fr._locale._week.doy;var ws=Ur(gn(),un,Gn);$r=oa(_r.gg,fr._a[0],ws.year),pr=oa(_r.w,ws.week),_r.d!=null?((xn=_r.d)<0||6<xn)&&(qn=!0):_r.e!=null?(xn=_r.e+un,(_r.e<0||6<_r.e)&&(qn=!0)):xn=un}pr<1||pr>Yr($r,un,Gn)?rt(fr)._overflowWeeks=!0:qn!=null?rt(fr)._overflowWeekday=!0:(si=Cr($r,pr,xn,un,Gn),fr._a[0]=si.year,fr._dayOfYear=si.dayOfYear)}(I),I._dayOfYear!=null&&(Ne=oa(I._a[0],yt[0]),(I._dayOfYear>gr(Ne)||I._dayOfYear===0)&&(rt(I)._overflowDayOfYear=!0),et=Xr(Ne,0,I._dayOfYear),I._a[1]=et.getUTCMonth(),I._a[2]=et.getUTCDate()),Y=0;Y<3&&I._a[Y]==null;++Y)I._a[Y]=je[Y]=yt[Y];for(;Y<7;Y++)I._a[Y]=je[Y]=I._a[Y]==null?Y===2?1:0:I._a[Y];I._a[3]===24&&I._a[4]===0&&I._a[5]===0&&I._a[6]===0&&(I._nextDay=!0,I._a[3]=0),I._d=(I._useUTC?Xr:function(fr,_r,$r,pr,xn,un,Gn){var si;return fr<100&&0<=fr?(si=new Date(fr+400,_r,$r,pr,xn,un,Gn),isFinite(si.getFullYear())&&si.setFullYear(fr)):si=new Date(fr,_r,$r,pr,xn,un,Gn),si}).apply(null,je),te=I._useUTC?I._d.getUTCDay():I._d.getDay(),I._tzm!=null&&I._d.setUTCMinutes(I._d.getUTCMinutes()-I._tzm),I._nextDay&&(I._a[3]=24),I._w&&I._w.d!==void 0&&I._w.d!==te&&(rt(I).weekdayMismatch=!0)}}var sr=/^\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)?)?$/,Qr=/^\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)?)?$/,cr=/Z|[+-]\d\d(?::?\d\d)?/,or=[["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}/]],on=[["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/]],Kt=/^\/?Date\((\-?\d+)/i;function Ai(I){var Y,et,yt,te,Ne,je,tr=I._i,nr=sr.exec(tr)||Qr.exec(tr);if(nr){for(rt(I).iso=!0,Y=0,et=or.length;Y<et;Y++)if(or[Y][1].exec(nr[1])){te=or[Y][0],yt=or[Y][2]!==!1;break}if(te==null)return void(I._isValid=!1);if(nr[3]){for(Y=0,et=on.length;Y<et;Y++)if(on[Y][1].exec(nr[3])){Ne=(nr[2]||" ")+on[Y][0];break}if(Ne==null)return void(I._isValid=!1)}if(!yt&&Ne!=null)return void(I._isValid=!1);if(nr[4]){if(!cr.exec(nr[4]))return void(I._isValid=!1);je="Z"}I._f=te+(Ne||"")+(je||""),Xn(I)}else I._isValid=!1}var re=/^(?:(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}))$/,Tn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Bn(I){var Y,et,yt,te=re.exec(I._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(te){var Ne=function(je,tr,nr,fr,_r,$r){var pr=[function(xn){var un=parseInt(xn,10);return un<=49?2e3+un:un<=999?1900+un:un}(je),kn.indexOf(tr),parseInt(nr,10),parseInt(fr,10),parseInt(_r,10)];return $r&&pr.push(parseInt($r,10)),pr}(te[4],te[3],te[2],te[5],te[6],te[7]);if(et=Ne,yt=I,(Y=te[1])&&On.indexOf(Y)!==new Date(et[0],et[1],et[2]).getDay()&&(rt(yt).weekdayMismatch=!0,!(yt._isValid=!1)))return;I._a=Ne,I._tzm=function(je,tr,nr){if(je)return Tn[je];if(tr)return 0;var fr=parseInt(nr,10),_r=fr%100;return(fr-_r)/100*60+_r}(te[8],te[9],te[10]),I._d=Xr.apply(null,I._a),I._d.setUTCMinutes(I._d.getUTCMinutes()-I._tzm),rt(I).rfc2822=!0}else I._isValid=!1}function Xn(I){if(I._f!==v.ISO_8601)if(I._f!==v.RFC_2822){I._a=[],rt(I).empty=!0;var Y,et,yt,te,Ne,je,tr,nr,fr=""+I._i,_r=fr.length,$r=0;for(yt=oe(I._f,I._locale).match(Me)||[],Y=0;Y<yt.length;Y++)te=yt[Y],(et=(fr.match(se(te,I))||[])[0])&&(0<(Ne=fr.substr(0,fr.indexOf(et))).length&&rt(I).unusedInput.push(Ne),fr=fr.slice(fr.indexOf(et)+et.length),$r+=et.length),Sr[te]?(et?rt(I).empty=!1:rt(I).unusedTokens.push(te),je=te,nr=I,(tr=et)!=null&&z(Ue,je)&&Ue[je](tr,nr._a,nr,je)):I._strict&&!et&&rt(I).unusedTokens.push(te);rt(I).charsLeftOver=_r-$r,0<fr.length&&rt(I).unusedInput.push(fr),I._a[3]<=12&&rt(I).bigHour===!0&&0<I._a[3]&&(rt(I).bigHour=void 0),rt(I).parsedDateParts=I._a.slice(0),rt(I).meridiem=I._meridiem,I._a[3]=function(pr,xn,un){var Gn;return un==null?xn:pr.meridiemHour!=null?pr.meridiemHour(xn,un):(pr.isPM!=null&&((Gn=pr.isPM(un))&&xn<12&&(xn+=12),Gn||xn!==12||(xn=0)),xn)}(I._locale,I._a[3],I._meridiem),Ri(I),aa(I)}else Bn(I);else Ai(I)}function fi(I){var Y,et,yt,te,Ne=I._i,je=I._f;return I._locale=I._locale||dn(I._l),Ne===null||je===void 0&&Ne===""?Z({nullInput:!0}):(typeof Ne=="string"&&(I._i=Ne=I._locale.preparse(Ne)),jt(Ne)?new _t(aa(Ne)):(O(Ne)?I._d=Ne:_(je)?function(tr){var nr,fr,_r,$r,pr;if(tr._f.length===0)return rt(tr).invalidFormat=!0,tr._d=new Date(NaN);for($r=0;$r<tr._f.length;$r++)pr=0,nr=nt({},tr),tr._useUTC!=null&&(nr._useUTC=tr._useUTC),nr._f=tr._f[$r],Xn(nr),ut(nr)&&(pr+=rt(nr).charsLeftOver,pr+=10*rt(nr).unusedTokens.length,rt(nr).score=pr,(_r==null||pr<_r)&&(_r=pr,fr=nr));q(tr,fr||nr)}(I):je?Xn(I):M(et=(Y=I)._i)?Y._d=new Date(v.now()):O(et)?Y._d=new Date(et.valueOf()):typeof et=="string"?(yt=Y,(te=Kt.exec(yt._i))===null?(Ai(yt),yt._isValid===!1&&(delete yt._isValid,Bn(yt),yt._isValid===!1&&(delete yt._isValid,v.createFromInputFallback(yt)))):yt._d=new Date(+te[1])):_(et)?(Y._a=B(et.slice(0),function(tr){return parseInt(tr,10)}),Ri(Y)):A(et)?function(tr){if(!tr._d){var nr=Ge(tr._i);tr._a=B([nr.year,nr.month,nr.day||nr.date,nr.hour,nr.minute,nr.second,nr.millisecond],function(fr){return fr&&parseInt(fr,10)}),Ri(tr)}}(Y):T(et)?Y._d=new Date(et):v.createFromInputFallback(Y),ut(I)||(I._d=null),I))}function Sa(I,Y,et,yt,te){var Ne,je={};return et!==!0&&et!==!1||(yt=et,et=void 0),(A(I)&&function(tr){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(tr).length===0;var nr;for(nr in tr)if(tr.hasOwnProperty(nr))return!1;return!0}(I)||_(I)&&I.length===0)&&(I=void 0),je._isAMomentObject=!0,je._useUTC=je._isUTC=te,je._l=et,je._i=I,je._f=Y,je._strict=yt,(Ne=new _t(aa(fi(je))))._nextDay&&(Ne.add(1,"d"),Ne._nextDay=void 0),Ne}function gn(I,Y,et,yt){return Sa(I,Y,et,yt,!1)}v.createFromInputFallback=ft("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(I){I._d=new Date(I._i+(I._useUTC?" UTC":""))}),v.ISO_8601=function(){},v.RFC_2822=function(){};var Er=ft("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var I=gn.apply(null,arguments);return this.isValid()&&I.isValid()?I<this?this:I:Z()}),sa=ft("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var I=gn.apply(null,arguments);return this.isValid()&&I.isValid()?this<I?this:I:Z()});function Rr(I,Y){var et,yt;if(Y.length===1&&_(Y[0])&&(Y=Y[0]),!Y.length)return gn();for(et=Y[0],yt=1;yt<Y.length;++yt)Y[yt].isValid()&&!Y[yt][I](et)||(et=Y[yt]);return et}var wi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function hi(I){var Y=Ge(I),et=Y.year||0,yt=Y.quarter||0,te=Y.month||0,Ne=Y.week||Y.isoWeek||0,je=Y.day||0,tr=Y.hour||0,nr=Y.minute||0,fr=Y.second||0,_r=Y.millisecond||0;this._isValid=function($r){for(var pr in $r)if(Dr.call(wi,pr)===-1||$r[pr]!=null&&isNaN($r[pr]))return!1;for(var xn=!1,un=0;un<wi.length;++un)if($r[wi[un]]){if(xn)return!1;parseFloat($r[wi[un]])!==gt($r[wi[un]])&&(xn=!0)}return!0}(Y),this._milliseconds=+_r+1e3*fr+6e4*nr+1e3*tr*60*60,this._days=+je+7*Ne,this._months=+te+3*yt+12*et,this._data={},this._locale=dn(),this._bubble()}function Bi(I){return I instanceof hi}function fn(I){return I<0?-1*Math.round(-1*I):Math.round(I)}function ri(I,Y){_e(I,0,0,function(){var et=this.utcOffset(),yt="+";return et<0&&(et=-et,yt="-"),yt+ke(~~(et/60),2)+Y+ke(~~et%60,2)})}ri("Z",":"),ri("ZZ",""),be("Z",Ce),be("ZZ",Ce),dr(["Z","ZZ"],function(I,Y,et){et._useUTC=!0,et._tzm=Jn(Ce,I)});var Kn=/([\+\-]|\d\d)/gi;function Jn(I,Y){var et=(Y||"").match(I);if(et===null)return null;var yt=((et[et.length-1]||[])+"").match(Kn)||["-",0,0],te=60*yt[1]+gt(yt[2]);return te===0?0:yt[0]==="+"?te:-te}function oi(I,Y){var et,yt;return Y._isUTC?(et=Y.clone(),yt=(jt(I)||O(I)?I.valueOf():gn(I).valueOf())-et.valueOf(),et._d.setTime(et._d.valueOf()+yt),v.updateOffset(et,!1),et):gn(I).local()}function Ci(I){return 15*-Math.round(I._d.getTimezoneOffset()/15)}function Qn(){return!!this.isValid()&&this._isUTC&&this._offset===0}v.updateOffset=function(){};var Aa=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Fa=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _n(I,Y){var et,yt,te,Ne=I,je=null;return Bi(I)?Ne={ms:I._milliseconds,d:I._days,M:I._months}:T(I)?(Ne={},Y?Ne[Y]=I:Ne.milliseconds=I):(je=Aa.exec(I))?(et=je[1]==="-"?-1:1,Ne={y:0,d:gt(je[2])*et,h:gt(je[3])*et,m:gt(je[4])*et,s:gt(je[5])*et,ms:gt(fn(1e3*je[6]))*et}):(je=Fa.exec(I))?(et=je[1]==="-"?-1:1,Ne={y:ni(je[2],et),M:ni(je[3],et),w:ni(je[4],et),d:ni(je[5],et),h:ni(je[6],et),m:ni(je[7],et),s:ni(je[8],et)}):Ne==null?Ne={}:typeof Ne=="object"&&("from"in Ne||"to"in Ne)&&(te=function(tr,nr){var fr;return tr.isValid()&&nr.isValid()?(nr=oi(nr,tr),tr.isBefore(nr)?fr=ii(tr,nr):((fr=ii(nr,tr)).milliseconds=-fr.milliseconds,fr.months=-fr.months),fr):{milliseconds:0,months:0}}(gn(Ne.from),gn(Ne.to)),(Ne={}).ms=te.milliseconds,Ne.M=te.months),yt=new hi(Ne),Bi(I)&&z(I,"_locale")&&(yt._locale=I._locale),yt}function ni(I,Y){var et=I&&parseFloat(I.replace(",","."));return(isNaN(et)?0:et)*Y}function ii(I,Y){var et={};return et.months=Y.month()-I.month()+12*(Y.year()-I.year()),I.clone().add(et.months,"M").isAfter(Y)&&--et.months,et.milliseconds=+Y-+I.clone().add(et.months,"M"),et}function Oo(I,Y){return function(et,yt){var te;return yt===null||isNaN(+yt)||($(Y,"moment()."+Y+"(period, number) is deprecated. Please use moment()."+Y+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),te=et,et=yt,yt=te),Ja(this,_n(et=typeof et=="string"?+et:et,yt),I),this}}function Ja(I,Y,et,yt){var te=Y._milliseconds,Ne=fn(Y._days),je=fn(Y._months);I.isValid()&&(yt=yt==null||yt,je&&Vt(I,rr(I,"Month")+je*et),Ne&&Qe(I,"Date",rr(I,"Date")+Ne*et),te&&I._d.setTime(I._d.valueOf()+te*et),yt&&v.updateOffset(I,Ne||je))}_n.fn=hi.prototype,_n.invalid=function(){return _n(NaN)};var ca=Oo(1,"add"),sc=Oo(-1,"subtract");function Qt(I,Y){var et=12*(Y.year()-I.year())+(Y.month()-I.month()),yt=I.clone().add(et,"months");return-(et+(Y-yt<0?(Y-yt)/(yt-I.clone().add(et-1,"months")):(Y-yt)/(I.clone().add(et+1,"months")-yt)))||0}function Xe(I){var Y;return I===void 0?this._locale._abbr:((Y=dn(I))!=null&&(this._locale=Y),this)}v.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",v.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var mr=ft("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(I){return I===void 0?this.localeData():this.locale(I)});function ln(){return this._locale}var di=126227808e5;function In(I,Y){return(I%Y+Y)%Y}function pi(I,Y,et){return I<100&&0<=I?new Date(I+400,Y,et)-di:new Date(I,Y,et).valueOf()}function Pa(I,Y,et){return I<100&&0<=I?Date.UTC(I+400,Y,et)-di:Date.UTC(I,Y,et)}function gi(I,Y){_e(0,[I,I.length],0,Y)}function Ii(I,Y,et,yt,te){var Ne;return I==null?Ur(this,yt,te).year:((Ne=Yr(I,yt,te))<Y&&(Y=Ne),function(je,tr,nr,fr,_r){var $r=Cr(je,tr,nr,fr,_r),pr=Xr($r.year,0,$r.dayOfYear);return this.year(pr.getUTCFullYear()),this.month(pr.getUTCMonth()),this.date(pr.getUTCDate()),this}.call(this,I,Y,et,yt,te))}_e(0,["gg",2],0,function(){return this.weekYear()%100}),_e(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gi("gggg","weekYear"),gi("ggggg","weekYear"),gi("GGGG","isoWeekYear"),gi("GGGGG","isoWeekYear"),Gt("weekYear","gg"),Gt("isoWeekYear","GG"),ye("weekYear",1),ye("isoWeekYear",1),be("G",ur),be("g",ur),be("GG",wt,he),be("gg",wt,he),be("GGGG",Pe,ie),be("gggg",Pe,ie),be("GGGGG",ar,pt),be("ggggg",ar,pt),qe(["gggg","ggggg","GGGG","GGGGG"],function(I,Y,et,yt){Y[yt.substr(0,2)]=gt(I)}),qe(["gg","GG"],function(I,Y,et,yt){Y[yt]=v.parseTwoDigitYear(I)}),_e("Q",0,"Qo","quarter"),Gt("quarter","Q"),ye("quarter",7),be("Q",ee),dr("Q",function(I,Y){Y[1]=3*(gt(I)-1)}),_e("D",["DD",2],"Do","date"),Gt("date","D"),ye("date",9),be("D",wt),be("DD",wt,he),be("Do",function(I,Y){return I?Y._dayOfMonthOrdinalParse||Y._ordinalParse:Y._dayOfMonthOrdinalParseLenient}),dr(["D","DD"],2),dr("Do",function(I,Y){Y[2]=gt(I.match(wt)[0])});var Ro=De("Date",!0);_e("DDD",["DDDD",3],"DDDo","dayOfYear"),Gt("dayOfYear","DDD"),ye("dayOfYear",4),be("DDD",me),be("DDDD",Mt),dr(["DDD","DDDD"],function(I,Y,et){et._dayOfYear=gt(I)}),_e("m",["mm",2],0,"minute"),Gt("minute","m"),ye("minute",14),be("m",wt),be("mm",wt,he),dr(["m","mm"],4);var cc=De("Minutes",!1);_e("s",["ss",2],0,"second"),Gt("second","s"),ye("second",15),be("s",wt),be("ss",wt,he),dr(["s","ss"],5);var Ua,lc=De("Seconds",!1);for(_e("S",0,0,function(){return~~(this.millisecond()/100)}),_e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_e(0,["SSS",3],0,"millisecond"),_e(0,["SSSS",4],0,function(){return 10*this.millisecond()}),_e(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),_e(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),_e(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),_e(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),_e(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Gt("millisecond","ms"),ye("millisecond",16),be("S",me,ee),be("SS",me,he),be("SSS",me,Mt),Ua="SSSS";Ua.length<=9;Ua+="S")be(Ua,Ze);function bs(I,Y){Y[6]=gt(1e3*("0."+I))}for(Ua="S";Ua.length<=9;Ua+="S")dr(Ua,bs);var au=De("Milliseconds",!1);_e("z",0,0,"zoneAbbr"),_e("zz",0,0,"zoneName");var lr=_t.prototype;function Kc(I){return I}lr.add=ca,lr.calendar=function(I,Y){var et=I||gn(),yt=oi(et,this).startOf("day"),te=v.calendarFormat(this,yt)||"sameElse",Ne=Y&&(kt(Y[te])?Y[te].call(this,et):Y[te]);return this.format(Ne||this.localeData().calendar(te,this,gn(et)))},lr.clone=function(){return new _t(this)},lr.diff=function(I,Y,et){var yt,te,Ne;if(!this.isValid())return NaN;if(!(yt=oi(I,this)).isValid())return NaN;switch(te=6e4*(yt.utcOffset()-this.utcOffset()),Y=xe(Y)){case"year":Ne=Qt(this,yt)/12;break;case"month":Ne=Qt(this,yt);break;case"quarter":Ne=Qt(this,yt)/3;break;case"second":Ne=(this-yt)/1e3;break;case"minute":Ne=(this-yt)/6e4;break;case"hour":Ne=(this-yt)/36e5;break;case"day":Ne=(this-yt-te)/864e5;break;case"week":Ne=(this-yt-te)/6048e5;break;default:Ne=this-yt}return et?Ne:St(Ne)},lr.endOf=function(I){var Y;if((I=xe(I))===void 0||I==="millisecond"||!this.isValid())return this;var et=this._isUTC?Pa:pi;switch(I){case"year":Y=et(this.year()+1,0,1)-1;break;case"quarter":Y=et(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Y=et(this.year(),this.month()+1,1)-1;break;case"week":Y=et(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Y=et(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Y=et(this.year(),this.month(),this.date()+1)-1;break;case"hour":Y=this._d.valueOf(),Y+=36e5-In(Y+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":Y=this._d.valueOf(),Y+=6e4-In(Y,6e4)-1;break;case"second":Y=this._d.valueOf(),Y+=1e3-In(Y,1e3)-1}return this._d.setTime(Y),v.updateOffset(this,!0),this},lr.format=function(I){I||(I=this.isUtc()?v.defaultFormatUtc:v.defaultFormat);var Y=er(this,I);return this.localeData().postformat(Y)},lr.from=function(I,Y){return this.isValid()&&(jt(I)&&I.isValid()||gn(I).isValid())?_n({to:this,from:I}).locale(this.locale()).humanize(!Y):this.localeData().invalidDate()},lr.fromNow=function(I){return this.from(gn(),I)},lr.to=function(I,Y){return this.isValid()&&(jt(I)&&I.isValid()||gn(I).isValid())?_n({from:this,to:I}).locale(this.locale()).humanize(!Y):this.localeData().invalidDate()},lr.toNow=function(I){return this.to(gn(),I)},lr.get=function(I){return kt(this[I=xe(I)])?this[I]():this},lr.invalidAt=function(){return rt(this).overflow},lr.isAfter=function(I,Y){var et=jt(I)?I:gn(I);return!(!this.isValid()||!et.isValid())&&((Y=xe(Y)||"millisecond")==="millisecond"?this.valueOf()>et.valueOf():et.valueOf()<this.clone().startOf(Y).valueOf())},lr.isBefore=function(I,Y){var et=jt(I)?I:gn(I);return!(!this.isValid()||!et.isValid())&&((Y=xe(Y)||"millisecond")==="millisecond"?this.valueOf()<et.valueOf():this.clone().endOf(Y).valueOf()<et.valueOf())},lr.isBetween=function(I,Y,et,yt){var te=jt(I)?I:gn(I),Ne=jt(Y)?Y:gn(Y);return!!(this.isValid()&&te.isValid()&&Ne.isValid())&&((yt=yt||"()")[0]==="("?this.isAfter(te,et):!this.isBefore(te,et))&&(yt[1]===")"?this.isBefore(Ne,et):!this.isAfter(Ne,et))},lr.isSame=function(I,Y){var et,yt=jt(I)?I:gn(I);return!(!this.isValid()||!yt.isValid())&&((Y=xe(Y)||"millisecond")==="millisecond"?this.valueOf()===yt.valueOf():(et=yt.valueOf(),this.clone().startOf(Y).valueOf()<=et&&et<=this.clone().endOf(Y).valueOf()))},lr.isSameOrAfter=function(I,Y){return this.isSame(I,Y)||this.isAfter(I,Y)},lr.isSameOrBefore=function(I,Y){return this.isSame(I,Y)||this.isBefore(I,Y)},lr.isValid=function(){return ut(this)},lr.lang=mr,lr.locale=Xe,lr.localeData=ln,lr.max=sa,lr.min=Er,lr.parsingFlags=function(){return q({},rt(this))},lr.set=function(I,Y){if(typeof I=="object")for(var et=function(te){var Ne=[];for(var je in te)Ne.push({unit:je,priority:Te[je]});return Ne.sort(function(tr,nr){return tr.priority-nr.priority}),Ne}(I=Ge(I)),yt=0;yt<et.length;yt++)this[et[yt].unit](I[et[yt].unit]);else if(kt(this[I=xe(I)]))return this[I](Y);return this},lr.startOf=function(I){var Y;if((I=xe(I))===void 0||I==="millisecond"||!this.isValid())return this;var et=this._isUTC?Pa:pi;switch(I){case"year":Y=et(this.year(),0,1);break;case"quarter":Y=et(this.year(),this.month()-this.month()%3,1);break;case"month":Y=et(this.year(),this.month(),1);break;case"week":Y=et(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":Y=et(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":Y=et(this.year(),this.month(),this.date());break;case"hour":Y=this._d.valueOf(),Y-=In(Y+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":Y=this._d.valueOf(),Y-=In(Y,6e4);break;case"second":Y=this._d.valueOf(),Y-=In(Y,1e3)}return this._d.setTime(Y),v.updateOffset(this,!0),this},lr.subtract=sc,lr.toArray=function(){var I=this;return[I.year(),I.month(),I.date(),I.hour(),I.minute(),I.second(),I.millisecond()]},lr.toObject=function(){var I=this;return{years:I.year(),months:I.month(),date:I.date(),hours:I.hours(),minutes:I.minutes(),seconds:I.seconds(),milliseconds:I.milliseconds()}},lr.toDate=function(){return new Date(this.valueOf())},lr.toISOString=function(I){if(!this.isValid())return null;var Y=I!==!0,et=Y?this.clone().utc():this;return et.year()<0||9999<et.year()?er(et,Y?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):kt(Date.prototype.toISOString)?Y?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",er(et,"Z")):er(et,Y?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},lr.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I="moment",Y="";this.isLocal()||(I=this.utcOffset()===0?"moment.utc":"moment.parseZone",Y="Z");var et="["+I+'("]',yt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",te=Y+'[")]';return this.format(et+yt+"-MM-DD[T]HH:mm:ss.SSS"+te)},lr.toJSON=function(){return this.isValid()?this.toISOString():null},lr.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},lr.unix=function(){return Math.floor(this.valueOf()/1e3)},lr.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},lr.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},lr.year=Ar,lr.isLeapYear=function(){return rn(this.year())},lr.weekYear=function(I){return Ii.call(this,I,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},lr.isoWeekYear=function(I){return Ii.call(this,I,this.isoWeek(),this.isoWeekday(),1,4)},lr.quarter=lr.quarters=function(I){return I==null?Math.ceil((this.month()+1)/3):this.month(3*(I-1)+this.month()%3)},lr.month=qr,lr.daysInMonth=function(){return Ie(this.year(),this.month())},lr.week=lr.weeks=function(I){var Y=this.localeData().week(this);return I==null?Y:this.add(7*(I-Y),"d")},lr.isoWeek=lr.isoWeeks=function(I){var Y=Ur(this,1,4).week;return I==null?Y:this.add(7*(I-Y),"d")},lr.weeksInYear=function(){var I=this.localeData()._week;return Yr(this.year(),I.dow,I.doy)},lr.isoWeeksInYear=function(){return Yr(this.year(),1,4)},lr.date=Ro,lr.day=lr.days=function(I){if(!this.isValid())return I!=null?this:NaN;var Y,et,yt=this._isUTC?this._d.getUTCDay():this._d.getDay();return I!=null?(Y=I,et=this.localeData(),I=typeof Y!="string"?Y:isNaN(Y)?typeof(Y=et.weekdaysParse(Y))=="number"?Y:null:parseInt(Y,10),this.add(I-yt,"d")):yt},lr.weekday=function(I){if(!this.isValid())return I!=null?this:NaN;var Y=(this.day()+7-this.localeData()._week.dow)%7;return I==null?Y:this.add(I-Y,"d")},lr.isoWeekday=function(I){if(!this.isValid())return I!=null?this:NaN;if(I==null)return this.day()||7;var Y,et,yt=(Y=I,et=this.localeData(),typeof Y=="string"?et.weekdaysParse(Y)%7||7:isNaN(Y)?null:Y);return this.day(this.day()%7?yt:yt-7)},lr.dayOfYear=function(I){var Y=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return I==null?Y:this.add(I-Y,"d")},lr.hour=lr.hours=Mn,lr.minute=lr.minutes=cc,lr.second=lr.seconds=lc,lr.millisecond=lr.milliseconds=au,lr.utcOffset=function(I,Y,et){var yt,te=this._offset||0;if(!this.isValid())return I!=null?this:NaN;if(I==null)return this._isUTC?te:Ci(this);if(typeof I=="string"){if((I=Jn(Ce,I))===null)return this}else Math.abs(I)<16&&!et&&(I*=60);return!this._isUTC&&Y&&(yt=Ci(this)),this._offset=I,this._isUTC=!0,yt!=null&&this.add(yt,"m"),te!==I&&(!Y||this._changeInProgress?Ja(this,_n(I-te,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,v.updateOffset(this,!0),this._changeInProgress=null)),this},lr.utc=function(I){return this.utcOffset(0,I)},lr.local=function(I){return this._isUTC&&(this.utcOffset(0,I),this._isUTC=!1,I&&this.subtract(Ci(this),"m")),this},lr.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var I=Jn(ze,this._i);I!=null?this.utcOffset(I):this.utcOffset(0,!0)}return this},lr.hasAlignedHourOffset=function(I){return!!this.isValid()&&(I=I?gn(I).utcOffset():0,(this.utcOffset()-I)%60==0)},lr.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},lr.isLocal=function(){return!!this.isValid()&&!this._isUTC},lr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},lr.isUtc=Qn,lr.isUTC=Qn,lr.zoneAbbr=function(){return this._isUTC?"UTC":""},lr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},lr.dates=ft("dates accessor is deprecated. Use date instead.",Ro),lr.months=ft("months accessor is deprecated. Use month instead",qr),lr.years=ft("years accessor is deprecated. Use year instead",Ar),lr.zone=ft("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(I,Y){return I!=null?(typeof I!="string"&&(I=-I),this.utcOffset(I,Y),this):-this.utcOffset()}),lr.isDSTShifted=ft("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!M(this._isDSTShifted))return this._isDSTShifted;var I={};if(nt(I,this),(I=fi(I))._a){var Y=I._isUTC?J(I._a):gn(I._a);this._isDSTShifted=this.isValid()&&0<Ct(I._a,Y.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Dn=At.prototype;function go(I,Y,et,yt){var te=dn(),Ne=J().set(yt,Y);return te[et](Ne,I)}function ma(I,Y,et){if(T(I)&&(Y=I,I=void 0),I=I||"",Y!=null)return go(I,Y,et,"month");var yt,te=[];for(yt=0;yt<12;yt++)te[yt]=go(I,yt,et,"month");return te}function Qa(I,Y,et,yt){typeof I=="boolean"?T(Y)&&(et=Y,Y=void 0):(Y=I,I=!1,T(et=Y)&&(et=Y,Y=void 0)),Y=Y||"";var te,Ne=dn(),je=I?Ne._week.dow:0;if(et!=null)return go(Y,(et+je)%7,yt,"day");var tr=[];for(te=0;te<7;te++)tr[te]=go(Y,(te+je)%7,yt,"day");return tr}Dn.calendar=function(I,Y,et){var yt=this._calendar[I]||this._calendar.sameElse;return kt(yt)?yt.call(Y,et):yt},Dn.longDateFormat=function(I){var Y=this._longDateFormat[I],et=this._longDateFormat[I.toUpperCase()];return Y||!et?Y:(this._longDateFormat[I]=et.replace(/MMMM|MM|DD|dddd/g,function(yt){return yt.slice(1)}),this._longDateFormat[I])},Dn.invalidDate=function(){return this._invalidDate},Dn.ordinal=function(I){return this._ordinal.replace("%d",I)},Dn.preparse=Kc,Dn.postformat=Kc,Dn.relativeTime=function(I,Y,et,yt){var te=this._relativeTime[et];return kt(te)?te(I,Y,et,yt):te.replace(/%d/i,I)},Dn.pastFuture=function(I,Y){var et=this._relativeTime[0<I?"future":"past"];return kt(et)?et(Y):et.replace(/%s/i,Y)},Dn.set=function(I){var Y,et;for(et in I)kt(Y=I[et])?this[et]=Y:this["_"+et]=Y;this._config=I,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Dn.months=function(I,Y){return I?_(this._months)?this._months[I.month()]:this._months[(this._months.isFormat||vr).test(Y)?"format":"standalone"][I.month()]:_(this._months)?this._months:this._months.standalone},Dn.monthsShort=function(I,Y){return I?_(this._monthsShort)?this._monthsShort[I.month()]:this._monthsShort[vr.test(Y)?"format":"standalone"][I.month()]:_(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Dn.monthsParse=function(I,Y,et){var yt,te,Ne;if(this._monthsParseExact)return function(je,tr,nr){var fr,_r,$r,pr=je.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],fr=0;fr<12;++fr)$r=J([2e3,fr]),this._shortMonthsParse[fr]=this.monthsShort($r,"").toLocaleLowerCase(),this._longMonthsParse[fr]=this.months($r,"").toLocaleLowerCase();return nr?tr==="MMM"?(_r=Dr.call(this._shortMonthsParse,pr))!==-1?_r:null:(_r=Dr.call(this._longMonthsParse,pr))!==-1?_r:null:tr==="MMM"?(_r=Dr.call(this._shortMonthsParse,pr))!==-1||(_r=Dr.call(this._longMonthsParse,pr))!==-1?_r:null:(_r=Dr.call(this._longMonthsParse,pr))!==-1||(_r=Dr.call(this._shortMonthsParse,pr))!==-1?_r:null}.call(this,I,Y,et);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),yt=0;yt<12;yt++)if(te=J([2e3,yt]),et&&!this._longMonthsParse[yt]&&(this._longMonthsParse[yt]=new RegExp("^"+this.months(te,"").replace(".","")+"$","i"),this._shortMonthsParse[yt]=new RegExp("^"+this.monthsShort(te,"").replace(".","")+"$","i")),et||this._monthsParse[yt]||(Ne="^"+this.months(te,"")+"|^"+this.monthsShort(te,""),this._monthsParse[yt]=new RegExp(Ne.replace(".",""),"i")),et&&Y==="MMMM"&&this._longMonthsParse[yt].test(I)||et&&Y==="MMM"&&this._shortMonthsParse[yt].test(I)||!et&&this._monthsParse[yt].test(I))return yt},Dn.monthsRegex=function(I){return this._monthsParseExact?(z(this,"_monthsRegex")||Mr.call(this),I?this._monthsStrictRegex:this._monthsRegex):(z(this,"_monthsRegex")||(this._monthsRegex=Zr),this._monthsStrictRegex&&I?this._monthsStrictRegex:this._monthsRegex)},Dn.monthsShortRegex=function(I){return this._monthsParseExact?(z(this,"_monthsRegex")||Mr.call(this),I?this._monthsShortStrictRegex:this._monthsShortRegex):(z(this,"_monthsShortRegex")||(this._monthsShortRegex=zr),this._monthsShortStrictRegex&&I?this._monthsShortStrictRegex:this._monthsShortRegex)},Dn.week=function(I){return Ur(I,this._week.dow,this._week.doy).week},Dn.firstDayOfYear=function(){return this._week.doy},Dn.firstDayOfWeek=function(){return this._week.dow},Dn.weekdays=function(I,Y){var et=_(this._weekdays)?this._weekdays:this._weekdays[I&&I!==!0&&this._weekdays.isFormat.test(Y)?"format":"standalone"];return I===!0?jr(et,this._week.dow):I?et[I.day()]:et},Dn.weekdaysMin=function(I){return I===!0?jr(this._weekdaysMin,this._week.dow):I?this._weekdaysMin[I.day()]:this._weekdaysMin},Dn.weekdaysShort=function(I){return I===!0?jr(this._weekdaysShort,this._week.dow):I?this._weekdaysShort[I.day()]:this._weekdaysShort},Dn.weekdaysParse=function(I,Y,et){var yt,te,Ne;if(this._weekdaysParseExact)return function(je,tr,nr){var fr,_r,$r,pr=je.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],fr=0;fr<7;++fr)$r=J([2e3,1]).day(fr),this._minWeekdaysParse[fr]=this.weekdaysMin($r,"").toLocaleLowerCase(),this._shortWeekdaysParse[fr]=this.weekdaysShort($r,"").toLocaleLowerCase(),this._weekdaysParse[fr]=this.weekdays($r,"").toLocaleLowerCase();return nr?tr==="dddd"?(_r=Dr.call(this._weekdaysParse,pr))!==-1?_r:null:tr==="ddd"?(_r=Dr.call(this._shortWeekdaysParse,pr))!==-1?_r:null:(_r=Dr.call(this._minWeekdaysParse,pr))!==-1?_r:null:tr==="dddd"?(_r=Dr.call(this._weekdaysParse,pr))!==-1||(_r=Dr.call(this._shortWeekdaysParse,pr))!==-1||(_r=Dr.call(this._minWeekdaysParse,pr))!==-1?_r:null:tr==="ddd"?(_r=Dr.call(this._shortWeekdaysParse,pr))!==-1||(_r=Dr.call(this._weekdaysParse,pr))!==-1||(_r=Dr.call(this._minWeekdaysParse,pr))!==-1?_r:null:(_r=Dr.call(this._minWeekdaysParse,pr))!==-1||(_r=Dr.call(this._weekdaysParse,pr))!==-1||(_r=Dr.call(this._shortWeekdaysParse,pr))!==-1?_r:null}.call(this,I,Y,et);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),yt=0;yt<7;yt++)if(te=J([2e3,1]).day(yt),et&&!this._fullWeekdaysParse[yt]&&(this._fullWeekdaysParse[yt]=new RegExp("^"+this.weekdays(te,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[yt]=new RegExp("^"+this.weekdaysShort(te,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[yt]=new RegExp("^"+this.weekdaysMin(te,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[yt]||(Ne="^"+this.weekdays(te,"")+"|^"+this.weekdaysShort(te,"")+"|^"+this.weekdaysMin(te,""),this._weekdaysParse[yt]=new RegExp(Ne.replace(".",""),"i")),et&&Y==="dddd"&&this._fullWeekdaysParse[yt].test(I)||et&&Y==="ddd"&&this._shortWeekdaysParse[yt].test(I)||et&&Y==="dd"&&this._minWeekdaysParse[yt].test(I)||!et&&this._weekdaysParse[yt].test(I))return yt},Dn.weekdaysRegex=function(I){return this._weekdaysParseExact?(z(this,"_weekdaysRegex")||En.call(this),I?this._weekdaysStrictRegex:this._weekdaysRegex):(z(this,"_weekdaysRegex")||(this._weekdaysRegex=Ir),this._weekdaysStrictRegex&&I?this._weekdaysStrictRegex:this._weekdaysRegex)},Dn.weekdaysShortRegex=function(I){return this._weekdaysParseExact?(z(this,"_weekdaysRegex")||En.call(this),I?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(z(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ui),this._weekdaysShortStrictRegex&&I?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Dn.weekdaysMinRegex=function(I){return this._weekdaysParseExact?(z(this,"_weekdaysRegex")||En.call(this),I?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(z(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Or),this._weekdaysMinStrictRegex&&I?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Dn.isPM=function(I){return(I+"").toLowerCase().charAt(0)==="p"},Dn.meridiem=function(I,Y,et){return 11<I?et?"pm":"PM":et?"am":"AM"},ei("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(I){var Y=I%10;return I+(gt(I%100/10)===1?"th":Y===1?"st":Y===2?"nd":Y===3?"rd":"th")}}),v.lang=ft("moment.lang is deprecated. Use moment.locale instead.",ei),v.langData=ft("moment.langData is deprecated. Use moment.localeData instead.",dn);var Ni=Math.abs;function Bo(I,Y,et,yt){var te=_n(Y,et);return I._milliseconds+=yt*te._milliseconds,I._days+=yt*te._days,I._months+=yt*te._months,I._bubble()}function uc(I){return I<0?Math.floor(I):Math.ceil(I)}function hc(I){return 4800*I/146097}function dc(I){return 146097*I/4800}function Ca(I){return function(){return this.as(I)}}var ou=Ca("ms"),fc=Ca("s"),Ia=Ca("m"),vs=Ca("h"),Jc=Ca("d"),Ji=Ca("w"),Fo=Ca("M"),yi=Ca("Q"),ts=Ca("y");function Vr(I){return function(){return this.isValid()?this._data[I]:NaN}}var Sn=Vr("milliseconds"),Qc=Vr("seconds"),Po=Vr("minutes"),xs=Vr("hours"),yo=Vr("days"),mo=Vr("months"),_o=Vr("years"),$i=Math.round,Li={ss:44,s:45,m:45,h:22,d:26,M:11},Tr=Math.abs;function Qi(I){return(0<I)-(I<0)||+I}function _a(){if(!this.isValid())return this.localeData().invalidDate();var I,Y,et=Tr(this._milliseconds)/1e3,yt=Tr(this._days),te=Tr(this._months);Y=St((I=St(et/60))/60),et%=60,I%=60;var Ne=St(te/12),je=te%=12,tr=yt,nr=Y,fr=I,_r=et?et.toFixed(3).replace(/\.?0+$/,""):"",$r=this.asSeconds();if(!$r)return"P0D";var pr=$r<0?"-":"",xn=Qi(this._months)!==Qi($r)?"-":"",un=Qi(this._days)!==Qi($r)?"-":"",Gn=Qi(this._milliseconds)!==Qi($r)?"-":"";return pr+"P"+(Ne?xn+Ne+"Y":"")+(je?xn+je+"M":"")+(tr?un+tr+"D":"")+(nr||fr||_r?"T":"")+(nr?Gn+nr+"H":"")+(fr?Gn+fr+"M":"")+(_r?Gn+_r+"S":"")}var tn=hi.prototype;return tn.isValid=function(){return this._isValid},tn.abs=function(){var I=this._data;return this._milliseconds=Ni(this._milliseconds),this._days=Ni(this._days),this._months=Ni(this._months),I.milliseconds=Ni(I.milliseconds),I.seconds=Ni(I.seconds),I.minutes=Ni(I.minutes),I.hours=Ni(I.hours),I.months=Ni(I.months),I.years=Ni(I.years),this},tn.add=function(I,Y){return Bo(this,I,Y,1)},tn.subtract=function(I,Y){return Bo(this,I,Y,-1)},tn.as=function(I){if(!this.isValid())return NaN;var Y,et,yt=this._milliseconds;if((I=xe(I))==="month"||I==="quarter"||I==="year")switch(Y=this._days+yt/864e5,et=this._months+hc(Y),I){case"month":return et;case"quarter":return et/3;case"year":return et/12}else switch(Y=this._days+Math.round(dc(this._months)),I){case"week":return Y/7+yt/6048e5;case"day":return Y+yt/864e5;case"hour":return 24*Y+yt/36e5;case"minute":return 1440*Y+yt/6e4;case"second":return 86400*Y+yt/1e3;case"millisecond":return Math.floor(864e5*Y)+yt;default:throw new Error("Unknown unit "+I)}},tn.asMilliseconds=ou,tn.asSeconds=fc,tn.asMinutes=Ia,tn.asHours=vs,tn.asDays=Jc,tn.asWeeks=Ji,tn.asMonths=Fo,tn.asQuarters=yi,tn.asYears=ts,tn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*gt(this._months/12):NaN},tn._bubble=function(){var I,Y,et,yt,te,Ne=this._milliseconds,je=this._days,tr=this._months,nr=this._data;return 0<=Ne&&0<=je&&0<=tr||Ne<=0&&je<=0&&tr<=0||(Ne+=864e5*uc(dc(tr)+je),tr=je=0),nr.milliseconds=Ne%1e3,I=St(Ne/1e3),nr.seconds=I%60,Y=St(I/60),nr.minutes=Y%60,et=St(Y/60),nr.hours=et%24,tr+=te=St(hc(je+=St(et/24))),je-=uc(dc(te)),yt=St(tr/12),tr%=12,nr.days=je,nr.months=tr,nr.years=yt,this},tn.clone=function(){return _n(this)},tn.get=function(I){return I=xe(I),this.isValid()?this[I+"s"]():NaN},tn.milliseconds=Sn,tn.seconds=Qc,tn.minutes=Po,tn.hours=xs,tn.days=yo,tn.weeks=function(){return St(this.days()/7)},tn.months=mo,tn.years=_o,tn.humanize=function(I){if(!this.isValid())return this.localeData().invalidDate();var Y,et,yt,te,Ne,je,tr,nr,fr,_r,$r=this.localeData(),pr=(Y=!I,et=$r,yt=_n(this).abs(),te=$i(yt.as("s")),Ne=$i(yt.as("m")),je=$i(yt.as("h")),tr=$i(yt.as("d")),nr=$i(yt.as("M")),fr=$i(yt.as("y")),(_r=te<=Li.ss&&["s",te]||te<Li.s&&["ss",te]||Ne<=1&&["m"]||Ne<Li.m&&["mm",Ne]||je<=1&&["h"]||je<Li.h&&["hh",je]||tr<=1&&["d"]||tr<Li.d&&["dd",tr]||nr<=1&&["M"]||nr<Li.M&&["MM",nr]||fr<=1&&["y"]||["yy",fr])[2]=Y,_r[3]=0<+this,_r[4]=et,function(xn,un,Gn,si,qn){return qn.relativeTime(un||1,!!Gn,xn,si)}.apply(null,_r));return I&&(pr=$r.pastFuture(+this,pr)),$r.postformat(pr)},tn.toISOString=_a,tn.toString=_a,tn.toJSON=_a,tn.locale=Xe,tn.localeData=ln,tn.toIsoString=ft("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_a),tn.lang=mr,_e("X",0,0,"unix"),_e("x",0,0,"valueOf"),be("x",ur),be("X",/[+-]?\d+(\.\d{1,3})?/),dr("X",function(I,Y,et){et._d=new Date(1e3*parseFloat(I,10))}),dr("x",function(I,Y,et){et._d=new Date(gt(I))}),v.version="2.24.0",m=gn,v.fn=lr,v.min=function(){return Rr("isBefore",[].slice.call(arguments,0))},v.max=function(){return Rr("isAfter",[].slice.call(arguments,0))},v.now=function(){return Date.now?Date.now():+new Date},v.utc=J,v.unix=function(I){return gn(1e3*I)},v.months=function(I,Y){return ma(I,Y,"months")},v.isDate=O,v.locale=ei,v.invalid=Z,v.duration=_n,v.isMoment=jt,v.weekdays=function(I,Y,et){return Qa(I,Y,et,"weekdays")},v.parseZone=function(){return gn.apply(null,arguments).parseZone()},v.localeData=dn,v.isDuration=Bi,v.monthsShort=function(I,Y){return ma(I,Y,"monthsShort")},v.weekdaysMin=function(I,Y,et){return Qa(I,Y,et,"weekdaysMin")},v.defineLocale=Ta,v.updateLocale=function(I,Y){if(Y!=null){var et,yt,te=Rn;(yt=Un(I))!=null&&(te=yt._config),(et=new At(Y=W(te,Y))).parentLocale=Kr[I],Kr[I]=et,ei(I)}else Kr[I]!=null&&(Kr[I].parentLocale!=null?Kr[I]=Kr[I].parentLocale:Kr[I]!=null&&delete Kr[I]);return Kr[I]},v.locales=function(){return Q(Kr)},v.weekdaysShort=function(I,Y,et){return Qa(I,Y,et,"weekdaysShort")},v.normalizeUnits=xe,v.relativeTimeRounding=function(I){return I===void 0?$i:typeof I=="function"&&($i=I,!0)},v.relativeTimeThreshold=function(I,Y){return Li[I]!==void 0&&(Y===void 0?Li[I]:(Li[I]=Y,I==="s"&&(Li.ss=Y-1),!0))},v.calendarFormat=function(I,Y){var et=I.diff(Y,"days",!0);return et<-6?"sameElse":et<-1?"lastWeek":et<0?"lastDay":et<1?"sameDay":et<2?"nextDay":et<7?"nextWeek":"sameElse"},v.prototype=lr,v.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"},v}()},6470:d=>{function b(f){if(typeof f!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(f))}function h(f,v){for(var _,A="",M=0,T=-1,O=0,B=0;B<=f.length;++B){if(B<f.length)_=f.charCodeAt(B);else{if(_===47)break;_=47}if(_===47){if(!(T===B-1||O===1))if(T!==B-1&&O===2){if(A.length<2||M!==2||A.charCodeAt(A.length-1)!==46||A.charCodeAt(A.length-2)!==46){if(A.length>2){var z=A.lastIndexOf("/");if(z!==A.length-1){z===-1?(A="",M=0):M=(A=A.slice(0,z)).length-1-A.lastIndexOf("/"),T=B,O=0;continue}}else if(A.length===2||A.length===1){A="",M=0,T=B,O=0;continue}}v&&(A.length>0?A+="/..":A="..",M=2)}else A.length>0?A+="/"+f.slice(T+1,B):A=f.slice(T+1,B),M=B-T-1;T=B,O=0}else _===46&&O!==-1?++O:O=-1}return A}var m={resolve:function(){for(var f,v="",_=!1,A=arguments.length-1;A>=-1&&!_;A--){var M;A>=0?M=arguments[A]:(f===void 0&&(f=process.cwd()),M=f),b(M),M.length!==0&&(v=M+"/"+v,_=M.charCodeAt(0)===47)}return v=h(v,!_),_?v.length>0?"/"+v:"/":v.length>0?v:"."},normalize:function(f){if(b(f),f.length===0)return".";var v=f.charCodeAt(0)===47,_=f.charCodeAt(f.length-1)===47;return(f=h(f,!v)).length!==0||v||(f="."),f.length>0&&_&&(f+="/"),v?"/"+f:f},isAbsolute:function(f){return b(f),f.length>0&&f.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var f,v=0;v<arguments.length;++v){var _=arguments[v];b(_),_.length>0&&(f===void 0?f=_:f+="/"+_)}return f===void 0?".":m.normalize(f)},relative:function(f,v){if(b(f),b(v),f===v||(f=m.resolve(f))===(v=m.resolve(v)))return"";for(var _=1;_<f.length&&f.charCodeAt(_)===47;++_);for(var A=f.length,M=A-_,T=1;T<v.length&&v.charCodeAt(T)===47;++T);for(var O=v.length-T,B=M<O?M:O,z=-1,q=0;q<=B;++q){if(q===B){if(O>B){if(v.charCodeAt(T+q)===47)return v.slice(T+q+1);if(q===0)return v.slice(T+q)}else M>B&&(f.charCodeAt(_+q)===47?z=q:q===0&&(z=0));break}var J=f.charCodeAt(_+q);if(J!==v.charCodeAt(T+q))break;J===47&&(z=q)}var rt="";for(q=_+z+1;q<=A;++q)q!==A&&f.charCodeAt(q)!==47||(rt.length===0?rt+="..":rt+="/..");return rt.length>0?rt+v.slice(T+z):(T+=z,v.charCodeAt(T)===47&&++T,v.slice(T))},_makeLong:function(f){return f},dirname:function(f){if(b(f),f.length===0)return".";for(var v=f.charCodeAt(0),_=v===47,A=-1,M=!0,T=f.length-1;T>=1;--T)if((v=f.charCodeAt(T))===47){if(!M){A=T;break}}else M=!1;return A===-1?_?"/":".":_&&A===1?"//":f.slice(0,A)},basename:function(f,v){if(v!==void 0&&typeof v!="string")throw new TypeError('"ext" argument must be a string');b(f);var _,A=0,M=-1,T=!0;if(v!==void 0&&v.length>0&&v.length<=f.length){if(v.length===f.length&&v===f)return"";var O=v.length-1,B=-1;for(_=f.length-1;_>=0;--_){var z=f.charCodeAt(_);if(z===47){if(!T){A=_+1;break}}else B===-1&&(T=!1,B=_+1),O>=0&&(z===v.charCodeAt(O)?--O==-1&&(M=_):(O=-1,M=B))}return A===M?M=B:M===-1&&(M=f.length),f.slice(A,M)}for(_=f.length-1;_>=0;--_)if(f.charCodeAt(_)===47){if(!T){A=_+1;break}}else M===-1&&(T=!1,M=_+1);return M===-1?"":f.slice(A,M)},extname:function(f){b(f);for(var v=-1,_=0,A=-1,M=!0,T=0,O=f.length-1;O>=0;--O){var B=f.charCodeAt(O);if(B!==47)A===-1&&(M=!1,A=O+1),B===46?v===-1?v=O:T!==1&&(T=1):v!==-1&&(T=-1);else if(!M){_=O+1;break}}return v===-1||A===-1||T===0||T===1&&v===A-1&&v===_+1?"":f.slice(v,A)},format:function(f){if(f===null||typeof f!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof f);return function(v,_){var A=_.dir||_.root,M=_.base||(_.name||"")+(_.ext||"");return A?A===_.root?A+M:A+"/"+M:M}(0,f)},parse:function(f){b(f);var v={root:"",dir:"",base:"",ext:"",name:""};if(f.length===0)return v;var _,A=f.charCodeAt(0),M=A===47;M?(v.root="/",_=1):_=0;for(var T=-1,O=0,B=-1,z=!0,q=f.length-1,J=0;q>=_;--q)if((A=f.charCodeAt(q))!==47)B===-1&&(z=!1,B=q+1),A===46?T===-1?T=q:J!==1&&(J=1):T!==-1&&(J=-1);else if(!z){O=q+1;break}return T===-1||B===-1||J===0||J===1&&T===B-1&&T===O+1?B!==-1&&(v.base=v.name=O===0&&M?f.slice(1,B):f.slice(O,B)):(O===0&&M?(v.name=f.slice(1,T),v.base=f.slice(1,B)):(v.name=f.slice(O,T),v.base=f.slice(O,B)),v.ext=f.slice(T,B)),O>0?v.dir=f.slice(0,O-1):M&&(v.dir="/"),v},sep:"/",delimiter:":",win32:null,posix:null};m.posix=m,d.exports=m},555:()=>{},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{},7543:(d,b,h)=>{function m(i,a){return i==null||a==null?NaN:i<a?-1:i>a?1:i>=a?0:NaN}function f(i){let a=i,s=i,u=i;function p(g,x,w=0,S=g.length){if(w<S){if(s(x,x)!==0)return S;do{const C=w+S>>>1;u(g[C],x)<0?w=C+1:S=C}while(w<S)}return w}return i.length!==2&&(a=(g,x)=>i(g)-x,s=m,u=(g,x)=>m(i(g),x)),{left:p,center:function(g,x,w=0,S=g.length){const C=p(g,x,w,S-1);return C>w&&a(g[C-1],x)>-a(g[C],x)?C-1:C},right:function(g,x,w=0,S=g.length){if(w<S){if(s(x,x)!==0)return S;do{const C=w+S>>>1;u(g[C],x)<=0?w=C+1:S=C}while(w<S)}return w}}}function v(i){return i===null?NaN:+i}h.r(b),h.d(b,{Adder:()=>_t,Delaunay:()=>Xu,FormatSpecifier:()=>fs,InternMap:()=>gt,InternSet:()=>Ct,Node:()=>$c,Voronoi:()=>z1,ZoomTransform:()=>Qo,active:()=>g1,arc:()=>bv,area:()=>Zy,areaRadial:()=>Qy,ascending:()=>m,autoType:()=>Al,axisBottom:()=>dn,axisLeft:()=>aa,axisRight:()=>Ta,axisTop:()=>ei,bin:()=>ar,bisect:()=>O,bisectCenter:()=>T,bisectLeft:()=>M,bisectRight:()=>A,bisector:()=>f,blob:()=>qs,brush:()=>E1,brushSelection:()=>yl,brushX:()=>w1,brushY:()=>k1,buffer:()=>r0,chord:()=>Su,chordDirected:()=>Cu,chordTranspose:()=>Au,cluster:()=>N_,color:()=>pr,contourDensity:()=>xd,contours:()=>F1,count:()=>B,create:()=>sv,creator:()=>Bo,cross:()=>rt,csv:()=>a0,csvFormat:()=>js,csvFormatBody:()=>Qu,csvFormatRow:()=>H1,csvFormatRows:()=>th,csvFormatValue:()=>q1,csvParse:()=>hr,csvParseRows:()=>Ys,cubehelix:()=>Wa,cumsum:()=>ut,curveBasis:()=>Pv,curveBasisClosed:()=>Uv,curveBasisOpen:()=>zv,curveBumpX:()=>Yv,curveBumpY:()=>jv,curveBundle:()=>$v,curveCardinal:()=>Hv,curveCardinalClosed:()=>qv,curveCardinalOpen:()=>Wv,curveCatmullRom:()=>Gv,curveCatmullRomClosed:()=>Vv,curveCatmullRomOpen:()=>Zv,curveLinear:()=>K0,curveLinearClosed:()=>Xv,curveMonotoneX:()=>Kv,curveMonotoneY:()=>Jv,curveNatural:()=>Qv,curveStep:()=>t5,curveStepAfter:()=>r5,curveStepBefore:()=>e5,descending:()=>Z,deviation:()=>nt,difference:()=>On,disjoint:()=>Cn,dispatch:()=>on,drag:()=>Ld,dragDisable:()=>mo,dragEnable:()=>_o,dsv:()=>i0,dsvFormat:()=>Sl,easeBack:()=>Ol,easeBackIn:()=>Go,easeBackInOut:()=>Ol,easeBackOut:()=>Bd,easeBounce:()=>Fc,easeBounceIn:()=>t0,easeBounceInOut:()=>wn,easeBounceOut:()=>Fc,easeCircle:()=>Ml,easeCircleIn:()=>J1,easeCircleInOut:()=>Ml,easeCircleOut:()=>Q1,easeCubic:()=>Is,easeCubicIn:()=>bu,easeCubicInOut:()=>Is,easeCubicOut:()=>ul,easeElastic:()=>Rl,easeElasticIn:()=>e0,easeElasticInOut:()=>Hs,easeElasticOut:()=>Rl,easeExp:()=>K1,easeExpIn:()=>va,easeExpInOut:()=>K1,easeExpOut:()=>Rd,easeLinear:()=>Od,easePoly:()=>nh,easePolyIn:()=>Ll,easePolyInOut:()=>nh,easePolyOut:()=>G1,easeQuad:()=>Nl,easeQuadIn:()=>Il,easeQuadInOut:()=>Nl,easeQuadOut:()=>Gi,easeSin:()=>co,easeSinIn:()=>Z1,easeSinInOut:()=>co,easeSinOut:()=>X1,every:()=>Pr,extent:()=>at,fcumsum:()=>St,filter:()=>Ur,flatGroup:()=>Nt,flatRollup:()=>Gt,forceCenter:()=>ch,forceCollide:()=>ra,forceLink:()=>zi,forceManyBody:()=>c0,forceRadial:()=>l0,forceSimulation:()=>s0,forceX:()=>u0,forceY:()=>zc,format:()=>Ul,formatDefaultLocale:()=>f0,formatLocale:()=>Yc,formatPrefix:()=>yh,formatSpecifier:()=>uo,fsum:()=>jt,geoAlbers:()=>kp,geoAlbersUsa:()=>f_,geoArea:()=>bn,geoAzimuthalEqualArea:()=>p_,geoAzimuthalEqualAreaRaw:()=>_f,geoAzimuthalEquidistant:()=>g_,geoAzimuthalEquidistantRaw:()=>bf,geoBounds:()=>Om,geoCentroid:()=>zm,geoCircle:()=>Ym,geoClipAntimeridian:()=>Xd,geoClipCircle:()=>W2,geoClipExtent:()=>Hm,geoClipRectangle:()=>b0,geoConicConformal:()=>m_,geoConicConformalRaw:()=>Sp,geoConicEqualArea:()=>I0,geoConicEqualAreaRaw:()=>wp,geoConicEquidistant:()=>b_,geoConicEquidistantRaw:()=>Ap,geoContains:()=>Xm,geoDistance:()=>v0,geoEqualEarth:()=>v_,geoEqualEarthRaw:()=>vf,geoEquirectangular:()=>__,geoEquirectangularRaw:()=>Lh,geoGnomonic:()=>x_,geoGnomonicRaw:()=>xf,geoGraticule:()=>rp,geoGraticule10:()=>Km,geoIdentity:()=>w_,geoInterpolate:()=>Jm,geoLength:()=>G2,geoMercator:()=>y_,geoMercatorRaw:()=>Nh,geoNaturalEarth1:()=>k_,geoNaturalEarth1Raw:()=>wf,geoOrthographic:()=>E_,geoOrthographicRaw:()=>kf,geoPath:()=>l_,geoProjection:()=>Ko,geoProjectionMutator:()=>yf,geoRotation:()=>P2,geoStereographic:()=>T_,geoStereographicRaw:()=>Ef,geoStream:()=>Ft,geoTransform:()=>u_,geoTransverseMercator:()=>S_,geoTransverseMercatorRaw:()=>Tf,gray:()=>_d,greatest:()=>vr,greatestIndex:()=>Ot,group:()=>kt,groupSort:()=>er,groups:()=>W,hcl:()=>qa,hierarchy:()=>Sf,histogram:()=>ar,hsl:()=>gc,html:()=>hs,image:()=>Pd,index:()=>Te,indexes:()=>ye,interpolate:()=>en,interpolateArray:()=>od,interpolateBasis:()=>Qh,interpolateBasisClosed:()=>mi,interpolateBlues:()=>j4,interpolateBrBG:()=>x4,interpolateBuGn:()=>N4,interpolateBuPu:()=>L4,interpolateCividis:()=>V4,interpolateCool:()=>K4,interpolateCubehelix:()=>o3,interpolateCubehelixDefault:()=>Z4,interpolateCubehelixLong:()=>P0,interpolateDate:()=>e1,interpolateDiscrete:()=>Q_,interpolateGnBu:()=>M4,interpolateGreens:()=>$4,interpolateGreys:()=>H4,interpolateHcl:()=>i3,interpolateHclLong:()=>a3,interpolateHsl:()=>e3,interpolateHslLong:()=>r3,interpolateHue:()=>t3,interpolateInferno:()=>av,interpolateLab:()=>n3,interpolateMagma:()=>iv,interpolateNumber:()=>ua,interpolateNumberArray:()=>_c,interpolateObject:()=>ta,interpolateOrRd:()=>D4,interpolateOranges:()=>G4,interpolatePRGn:()=>w4,interpolatePiYG:()=>k4,interpolatePlasma:()=>ov,interpolatePuBu:()=>R4,interpolatePuBuGn:()=>O4,interpolatePuOr:()=>E4,interpolatePuRd:()=>B4,interpolatePurples:()=>q4,interpolateRainbow:()=>J4,interpolateRdBu:()=>T4,interpolateRdGy:()=>S4,interpolateRdPu:()=>F4,interpolateRdYlBu:()=>A4,interpolateRdYlGn:()=>C4,interpolateReds:()=>W4,interpolateRgb:()=>mc,interpolateRgbBasis:()=>rl,interpolateRgbBasisClosed:()=>ad,interpolateRound:()=>F0,interpolateSinebow:()=>ev,interpolateSpectral:()=>I4,interpolateString:()=>za,interpolateTransformCss:()=>c1,interpolateTransformSvg:()=>sl,interpolateTurbo:()=>rv,interpolateViridis:()=>nv,interpolateWarm:()=>X4,interpolateYlGn:()=>U4,interpolateYlGnBu:()=>P4,interpolateYlOrBr:()=>z4,interpolateYlOrRd:()=>Y4,interpolateZoom:()=>Wp,interrupt:()=>ro,intersection:()=>Ir,interval:()=>_5,isoFormat:()=>g5,isoParse:()=>m5,json:()=>zd,lab:()=>xl,lch:()=>bd,least:()=>Qe,leastIndex:()=>Ie,line:()=>g2,lineRadial:()=>Jy,linkHorizontal:()=>Iv,linkRadial:()=>Lv,linkVertical:()=>Nv,local:()=>qy,map:()=>Yr,matcher:()=>Xn,max:()=>Ze,maxIndex:()=>Lr,mean:()=>Ue,median:()=>dr,merge:()=>qe,min:()=>ur,minIndex:()=>gr,mode:()=>rn,namespace:()=>Qn,namespaces:()=>Ci,nice:()=>me,now:()=>wc,pack:()=>U_,packEnclose:()=>Ip,packSiblings:()=>F_,pairs:()=>Dr,partition:()=>z_,path:()=>Wo,permute:()=>Oe,pie:()=>kv,piecewise:()=>Xp,pointRadial:()=>Zh,pointer:()=>ha,pointers:()=>lv,polygonArea:()=>c3,polygonCentroid:()=>l3,polygonContains:()=>f3,polygonHull:()=>d3,polygonLength:()=>p3,precisionFixed:()=>Yl,precisionPrefix:()=>jl,precisionRound:()=>mh,quadtree:()=>Uc,quantile:()=>Be,quantileSorted:()=>Fe,quantize:()=>s3,quickselect:()=>ze,radialArea:()=>Qy,radialLine:()=>Jy,randomBates:()=>_3,randomBernoulli:()=>x3,randomBeta:()=>tg,randomBinomial:()=>eg,randomCauchy:()=>k3,randomExponential:()=>b3,randomGamma:()=>Of,randomGeometric:()=>Qp,randomInt:()=>y3,randomIrwinHall:()=>Jp,randomLcg:()=>S3,randomLogNormal:()=>m3,randomLogistic:()=>E3,randomNormal:()=>Df,randomPareto:()=>v3,randomPoisson:()=>T3,randomUniform:()=>g3,randomWeibull:()=>w3,range:()=>De,rank:()=>rr,reduce:()=>jr,reverse:()=>ya,rgb:()=>si,ribbon:()=>I1,ribbonArrow:()=>N1,rollup:()=>xe,rollups:()=>Ge,scaleBand:()=>Ff,scaleDiverging:()=>gy,scaleDivergingLog:()=>yy,scaleDivergingPow:()=>u2,scaleDivergingSqrt:()=>l4,scaleDivergingSymlog:()=>my,scaleIdentity:()=>sg,scaleImplicit:()=>Rf,scaleLinear:()=>og,scaleLog:()=>dg,scaleOrdinal:()=>Bf,scalePoint:()=>A3,scalePow:()=>$f,scaleQuantile:()=>bg,scaleQuantize:()=>vg,scaleRadial:()=>_g,scaleSequential:()=>hy,scaleSequentialLog:()=>dy,scaleSequentialPow:()=>l2,scaleSequentialQuantile:()=>py,scaleSequentialSqrt:()=>c4,scaleSequentialSymlog:()=>fy,scaleSqrt:()=>R3,scaleSymlog:()=>gg,scaleThreshold:()=>xg,scaleTime:()=>o4,scaleUtc:()=>s4,scan:()=>kn,schemeAccent:()=>h4,schemeBlues:()=>Uy,schemeBrBG:()=>_y,schemeBuGn:()=>Ay,schemeBuPu:()=>Cy,schemeCategory10:()=>u4,schemeDark2:()=>d4,schemeGnBu:()=>Iy,schemeGreens:()=>zy,schemeGreys:()=>Yy,schemeOrRd:()=>Ny,schemeOranges:()=>Hy,schemePRGn:()=>by,schemePaired:()=>f4,schemePastel1:()=>p4,schemePastel2:()=>g4,schemePiYG:()=>vy,schemePuBu:()=>My,schemePuBuGn:()=>Ly,schemePuOr:()=>xy,schemePuRd:()=>Dy,schemePurples:()=>jy,schemeRdBu:()=>wy,schemeRdGy:()=>ky,schemeRdPu:()=>Oy,schemeRdYlBu:()=>Ey,schemeRdYlGn:()=>Ty,schemeReds:()=>$y,schemeSet1:()=>y4,schemeSet2:()=>m4,schemeSet3:()=>_4,schemeSpectral:()=>Sy,schemeTableau10:()=>b4,schemeYlGn:()=>By,schemeYlGnBu:()=>Ry,schemeYlOrBr:()=>Fy,schemeYlOrRd:()=>Py,select:()=>Sn,selectAll:()=>uv,selection:()=>Vr,selector:()=>Ai,selectorAll:()=>Bn,shuffle:()=>Vt,shuffler:()=>qr,some:()=>Cr,sort:()=>we,stack:()=>a5,stackOffsetDiverging:()=>s5,stackOffsetExpand:()=>o5,stackOffsetNone:()=>ru,stackOffsetSilhouette:()=>c5,stackOffsetWiggle:()=>l5,stackOrderAppearance:()=>km,stackOrderAscending:()=>Em,stackOrderDescending:()=>h5,stackOrderInsideOut:()=>d5,stackOrderNone:()=>nu,stackOrderReverse:()=>f5,stratify:()=>H_,style:()=>Xe,subset:()=>Ln,sum:()=>zr,superset:()=>Or,svg:()=>Ma,symbol:()=>Fv,symbolCircle:()=>_2,symbolCross:()=>tm,symbolDiamond:()=>rm,symbolSquare:()=>am,symbolStar:()=>im,symbolTriangle:()=>om,symbolWye:()=>sm,symbols:()=>Bv,text:()=>Pc,thresholdFreedmanDiaconis:()=>be,thresholdScott:()=>se,thresholdSturges:()=>Pe,tickFormat:()=>ag,tickIncrement:()=>xt,tickStep:()=>Rt,ticks:()=>wt,timeDay:()=>Yh,timeDays:()=>U3,timeFormat:()=>o2,timeFormatDefaultLocale:()=>uy,timeFormatLocale:()=>Vg,timeFriday:()=>Ng,timeFridays:()=>H3,timeHour:()=>Kf,timeHours:()=>P3,timeInterval:()=>Yi,timeMillisecond:()=>Zf,timeMilliseconds:()=>wg,timeMinute:()=>Xf,timeMinutes:()=>F3,timeMonday:()=>jh,timeMondays:()=>z3,timeMonth:()=>Jf,timeMonths:()=>W3,timeParse:()=>Zg,timeSaturday:()=>Lg,timeSaturdays:()=>q3,timeSecond:()=>Js,timeSeconds:()=>Eg,timeSunday:()=>Jl,timeSundays:()=>Mg,timeThursday:()=>Wc,timeThursdays:()=>$3,timeTickInterval:()=>Gg,timeTicks:()=>Wg,timeTuesday:()=>Cg,timeTuesdays:()=>Y3,timeWednesday:()=>Ig,timeWednesdays:()=>j3,timeWeek:()=>Jl,timeWeeks:()=>Mg,timeYear:()=>Qs,timeYears:()=>G3,timeout:()=>al,timer:()=>Yo,timerFlush:()=>Ts,transition:()=>Tc,transpose:()=>Zr,tree:()=>V_,treemap:()=>Z_,treemapBinary:()=>X_,treemapDice:()=>Fh,treemapResquarify:()=>J_,treemapSlice:()=>B0,treemapSliceDice:()=>K_,treemapSquarify:()=>Hp,tsv:()=>Fd,tsvFormat:()=>Md,tsvFormatBody:()=>Bc,tsvFormatRow:()=>W1,tsvFormatRows:()=>Dd,tsvFormatValue:()=>rh,tsvParse:()=>eh,tsvParseRows:()=>so,union:()=>vn,utcDay:()=>$h,utcDays:()=>X3,utcFormat:()=>j0,utcFriday:()=>Ug,utcFridays:()=>eb,utcHour:()=>e2,utcHours:()=>Z3,utcMillisecond:()=>Zf,utcMilliseconds:()=>wg,utcMinute:()=>t2,utcMinutes:()=>V3,utcMonday:()=>Hh,utcMondays:()=>K3,utcMonth:()=>r2,utcMonths:()=>nb,utcParse:()=>s2,utcSaturday:()=>zg,utcSaturdays:()=>rb,utcSecond:()=>Js,utcSeconds:()=>Eg,utcSunday:()=>Ql,utcSundays:()=>Yg,utcThursday:()=>Vc,utcThursdays:()=>tb,utcTickInterval:()=>qg,utcTicks:()=>Hg,utcTuesday:()=>Fg,utcTuesdays:()=>J3,utcWednesday:()=>Pg,utcWednesdays:()=>Q3,utcWeek:()=>Ql,utcWeeks:()=>Yg,utcYear:()=>tc,utcYears:()=>ib,variance:()=>mt,window:()=>Ja,xml:()=>sh,zip:()=>Xr,zoom:()=>T5,zoomIdentity:()=>id,zoomTransform:()=>Am});const _=f(m),A=_.right,M=_.left,T=f(v).center,O=A;function B(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 z(i){return 0|i.length}function q(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(x){return w=>x(...w)}(i.pop()),s=(i=i.map(J)).map(z),u=i.length-1,p=new Array(u+1).fill(0),g=[];if(u<0||s.some(q))return g;for(;;){g.push(p.map((w,S)=>i[S][w]));let x=u;for(;++p[x]===s[x];){if(x===0)return a?g.map(a):g;p[x--]=0}}}function ut(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 Z(i,a){return i==null||a==null?NaN:a<i?-1:a>i?1:a>=i?0:NaN}function mt(i,a){let s,u=0,p=0,g=0;if(a===void 0)for(let x of i)x!=null&&(x=+x)>=x&&(s=x-p,p+=s/++u,g+=s*(x-p));else{let x=-1;for(let w of i)(w=a(w,++x,i))!=null&&(w=+w)>=w&&(s=w-p,p+=s/++u,g+=s*(w-p))}if(u>1)return g/(u-1)}function nt(i,a){const s=mt(i,a);return s&&Math.sqrt(s)}function at(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 _t{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],x=a+g,w=Math.abs(a)<Math.abs(g)?a-(x-g):g-(x-a);w&&(s[u++]=w),a=x}return s[u]=a,this._n=u+1,this}valueOf(){const a=this._partials;let s,u,p,g=this._n,x=0;if(g>0){for(x=a[--g];g>0&&(s=x,u=a[--g],x=s+u,p=u-(x-s),!p););g>0&&(p<0&&a[g-1]<0||p>0&&a[g-1]>0)&&(u=2*p,s=x+u,u==s-x&&(x=s))}return x}}function jt(i,a){const s=new _t;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 St(i,a){const s=new _t;let u=-1;return Float64Array.from(i,a===void 0?p=>s.add(+p||0):p=>s.add(+a(p,++u,i)||0))}class gt extends Map{constructor(a,s=ht){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(vt(this,a))}has(a){return super.has(vt(this,a))}set(a,s){return super.set(ft(this,a),s)}delete(a){return super.delete(Q(this,a))}}class Ct extends Set{constructor(a,s=ht){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(vt(this,a))}add(a){return super.add(ft(this,a))}delete(a){return super.delete(Q(this,a))}}function vt({_intern:i,_key:a},s){const u=a(s);return i.has(u)?i.get(u):s}function ft({_intern:i,_key:a},s){const u=a(s);return i.has(u)?i.get(u):(i.set(u,s),s)}function Q({_intern:i,_key:a},s){const u=a(s);return i.has(u)&&(s=i.get(u),i.delete(u)),s}function ht(i){return i!==null&&typeof i=="object"?i.valueOf():i}function $(i){return i}function kt(i,...a){return Me(i,$,$,a)}function W(i,...a){return Me(i,Array.from,$,a)}function At(i,a){for(let s=1,u=a.length;s<u;++s)i=i.flatMap(p=>p.pop().map(([g,x])=>[...p,g,x]));return i}function Nt(i,...a){return At(W(i,...a),a)}function Gt(i,a,...s){return At(Ge(i,a,...s),s)}function xe(i,a,...s){return Me(i,$,a,s)}function Ge(i,a,...s){return Me(i,Array.from,a,s)}function Te(i,...a){return Me(i,$,ke,a)}function ye(i,...a){return Me(i,Array.from,ke,a)}function ke(i){if(i.length!==1)throw new Error("duplicate key");return i[0]}function Me(i,a,s,u){return function p(g,x){if(x>=u.length)return s(g);const w=new gt,S=u[x++];let C=-1;for(const R of g){const j=S(R,++C,g),F=w.get(j);F?F.push(R):w.set(j,[R])}for(const[R,j]of w)w.set(R,p(j,x));return a(w)}(i,0)}function Oe(i,a){return Array.from(a,s=>i[s])}function we(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 x of a){const w=_e(x[p],x[g]);if(w)return w}})):(s=i.map(s),u.sort((p,g)=>_e(s[p],s[g]))),Oe(i,u)}return i.sort(Sr(s))}function Sr(i=m){if(i===m)return _e;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 _e(i,a){return(i==null||!(i>=i))-(a==null||!(a>=a))||(i<a?-1:i>a?1:0)}function er(i,a,s){return(a.length!==2?we(xe(i,a,s),([u,p],[g,x])=>m(p,x)||m(u,g)):we(kt(i,s),([u,p],[g,x])=>a(p,x)||m(u,g))).map(([u])=>u)}var oe=Array.prototype,ee=oe.slice;function he(i){return()=>i}var Mt=Math.sqrt(50),ie=Math.sqrt(10),pt=Math.sqrt(2);function wt(i,a,s){var u,p,g,x,w=-1;if(s=+s,(i=+i)==(a=+a)&&s>0)return[i];if((u=a<i)&&(p=i,i=a,a=p),(x=xt(i,a,s))===0||!isFinite(x))return[];if(x>0){let S=Math.round(i/x),C=Math.round(a/x);for(S*x<i&&++S,C*x>a&&--C,g=new Array(p=C-S+1);++w<p;)g[w]=(S+w)*x}else{x=-x;let S=Math.round(i*x),C=Math.round(a*x);for(S/x<i&&++S,C/x>a&&--C,g=new Array(p=C-S+1);++w<p;)g[w]=(S+w)/x}return u&&g.reverse(),g}function xt(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>=Mt?10:g>=ie?5:g>=pt?2:1)*Math.pow(10,p):-Math.pow(10,-p)/(g>=Mt?10:g>=ie?5:g>=pt?2:1)}function Rt(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>=Mt?p*=10:g>=ie?p*=5:g>=pt&&(p*=2),a<i?-p:p}function me(i,a,s){let u;for(;;){const p=xt(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(B(i))/Math.LN2)+1}function ar(){var i=$,a=at,s=Pe;function u(p){Array.isArray(p)||(p=Array.from(p));var g,x,w=p.length,S=new Array(w);for(g=0;g<w;++g)S[g]=i(p[g],g,p);var C=a(S),R=C[0],j=C[1],F=s(S,R,j);if(!Array.isArray(F)){const V=j,X=+F;if(a===at&&([R,j]=me(R,j,X)),(F=wt(R,j,X))[F.length-1]>=j)if(V>=j&&a===at){const dt=xt(R,j,X);isFinite(dt)&&(dt>0?j=(Math.floor(j/dt)+1)*dt:dt<0&&(j=(Math.ceil(j*-dt)+1)/-dt))}else F.pop()}for(var H=F.length;F[0]<=R;)F.shift(),--H;for(;F[H-1]>j;)F.pop(),--H;var it,G=new Array(H+1);for(g=0;g<=H;++g)(it=G[g]=[]).x0=g>0?F[g-1]:R,it.x1=g<H?F[g]:j;for(g=0;g<w;++g)(x=S[g])!=null&&R<=x&&x<=j&&G[O(F,x,0,H)].push(p[g]);return G}return u.value=function(p){return arguments.length?(i=typeof p=="function"?p:he(p),u):i},u.domain=function(p){return arguments.length?(a=typeof p=="function"?p:he([p[0],p[1]]),u):a},u.thresholds=function(p){return arguments.length?(s=typeof p=="function"?p:Array.isArray(p)?he(ee.call(p)):he(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 ur(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 ze(i,a,s=0,u=i.length-1,p){for(p=p===void 0?_e:Sr(p);u>s;){if(u-s>600){const S=u-s+1,C=a-s+1,R=Math.log(S),j=.5*Math.exp(2*R/3),F=.5*Math.sqrt(R*j*(S-j)/S)*(C-S/2<0?-1:1);ze(i,a,Math.max(s,Math.floor(a-C*j/S+F)),Math.min(u,Math.floor(a+(S-C)*j/S+F)),p)}const g=i[a];let x=s,w=u;for(Ce(i,s,a),p(i[u],g)>0&&Ce(i,s,u);x<w;){for(Ce(i,x,w),++x,--w;p(i[x],g)<0;)++x;for(;p(i[w],g)>0;)--w}p(i[s],g)===0?Ce(i,s,w):(++w,Ce(i,w,u)),w<=a&&(s=w+1),a<=w&&(u=w-1)}return i}function Ce(i,a,s){const u=i[a];i[a]=i[s],i[s]=u}function Be(i,a,s){if(i=Float64Array.from(function*(w,S){if(S===void 0)for(let C of w)C!=null&&(C=+C)>=C&&(yield C);else{let C=-1;for(let R of w)(R=S(R,++C,w))!=null&&(R=+R)>=R&&(yield R)}}(i,s)),u=i.length){if((a=+a)<=0||u<2)return ur(i);if(a>=1)return Ze(i);var u,p=(u-1)*a,g=Math.floor(p),x=Ze(ze(i,g).subarray(0,g+1));return x+(ur(i.subarray(g+1))-x)*(p-g)}}function Fe(i,a,s=v){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),x=+s(i[g],g,i);return x+(+s(i[g+1],g+1,i)-x)*(p-g)}}function be(i,a,s){return Math.ceil((s-a)/(2*(Be(i,.75)-Be(i,.25))*Math.pow(B(i),-1/3)))}function se(i,a,s){return Math.ceil((s-a)/(3.5*nt(i)*Math.pow(B(i),-1/3)))}function Lr(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 Ue(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 dr(i,a){return Be(i,.5,a)}function qe(i){return Array.from(function*(a){for(const s of a)yield*s}(i))}function gr(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 rn(i,a){const s=new gt;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 x of i)(x=a(x,++g,i))!=null&&x>=x&&s.set(x,(s.get(x)||0)+1)}let u,p=0;for(const[g,x]of s)x>p&&(p=x,u=g);return u}function Dr(i,a=Ar){const s=[];let u,p=!1;for(const g of i)p&&s.push(a(u,g)),u=g,p=!0;return s}function Ar(i,a){return[i,a]}function De(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 rr(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=(w,S)=>a(s[w],s[S]);let g,x;return Uint32Array.from(s,(w,S)=>S).sort(a===m?(w,S)=>_e(s[w],s[S]):Sr(p)).forEach((w,S)=>{const C=p(w,g===void 0?w:g);C>=0?((g===void 0||C>0)&&(g=w,x=S),u[w]=x):u[w]=NaN}),u}function Qe(i,a=m){let s,u=!1;if(a.length===1){let p;for(const g of i){const x=a(g);(u?m(x,p)<0:m(x,x)===0)&&(s=g,p=x,u=!0)}}else for(const p of i)(u?a(p,s)<0:a(p,p)===0)&&(s=p,u=!0);return s}function Ie(i,a=m){if(a.length===1)return gr(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 vr(i,a=m){let s,u=!1;if(a.length===1){let p;for(const g of i){const x=a(g);(u?m(x,p)>0:m(x,x)===0)&&(s=g,p=x,u=!0)}}else for(const p of i)(u?a(p,s)>0:a(p,p)===0)&&(s=p,u=!0);return s}function Ot(i,a=m){if(a.length===1)return Lr(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 kn(i,a){const s=Ie(i,a);return s<0?void 0:s}const Vt=qr(Math.random);function qr(i){return function(a,s=0,u=a.length){let p=u-(s=+s);for(;p;){const g=i()*p--|0,x=a[p+s];a[p+s]=a[g+s],a[g+s]=x}return a}}function zr(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 Zr(i){if(!(p=i.length))return[];for(var a=-1,s=ur(i,Mr),u=new Array(s);++a<s;)for(var p,g=-1,x=u[a]=new Array(p);++g<p;)x[g]=i[g][a];return u}function Mr(i){return i.length}function Xr(){return Zr(arguments)}function Pr(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 Cr(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 Ur(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 Yr(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 jr(i,a,s){if(typeof a!="function")throw new TypeError("reducer is not a function");const u=i[Symbol.iterator]();let p,g,x=-1;if(arguments.length<3){if({done:p,value:s}=u.next(),p)return;++x}for(;{done:p,value:g}=u.next(),!p;)s=a(s,g,++x,i);return s}function ya(i){if(typeof i[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(i).reverse()}function On(i,...a){i=new Ct(i);for(const s of a)for(const u of s)i.delete(u);return i}function Cn(i,a){const s=a[Symbol.iterator](),u=new Ct;for(const p of i){if(u.has(p))return!1;let g,x;for(;({value:g,done:x}=s.next())&&!x;){if(Object.is(p,g))return!1;u.add(g)}}return!0}function Ir(i,...a){i=new Ct(i),a=a.map(ui);t:for(const s of i)for(const u of a)if(!u.has(s)){i.delete(s);continue t}return i}function ui(i){return i instanceof Ct?i:new Ct(i)}function Or(i,a){const s=i[Symbol.iterator](),u=new Set;for(const p of a){const g=En(p);if(u.has(g))continue;let x,w;for(;{value:x,done:w}=s.next();){if(w)return!1;const S=En(x);if(u.add(S),Object.is(g,S))break}}return!0}function En(i){return i!==null&&typeof i=="object"?i.valueOf():i}function Ln(i,a){return Or(a,i)}function vn(...i){const a=new Ct;for(const s of i)for(const u of s)a.add(u);return a}function Zn(i){return i}var Bt=1e-6;function Mn(i){return"translate("+i+",0)"}function Rn(i){return"translate(0,"+i+")"}function Kr(i){return a=>+i(a)}function ti(i,a){return a=Math.max(0,i.bandwidth()-2*a)/2,i.round()&&(a=Math.round(a)),s=>+i(s)+a}function Wn(){return!this.__axis}function Un(i,a){var s=[],u=null,p=null,g=6,x=6,w=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,C=i===1||i===4?-1:1,R=i===4||i===2?"x":"y",j=i===1||i===3?Mn:Rn;function F(H){var it=u==null?a.ticks?a.ticks.apply(a,s):a.domain():u,G=p==null?a.tickFormat?a.tickFormat.apply(a,s):Zn:p,V=Math.max(g,0)+w,X=a.range(),dt=+X[0]+S,ct=+X[X.length-1]+S,lt=(a.bandwidth?ti:Kr)(a.copy(),S),bt=H.selection?H.selection():H,Et=bt.selectAll(".domain").data([null]),ne=bt.selectAll(".tick").data(it,a).order(),ve=ne.exit(),Zt=ne.enter().append("g").attr("class","tick"),Ht=ne.select("line"),qt=ne.select("text");Et=Et.merge(Et.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ne=ne.merge(Zt),Ht=Ht.merge(Zt.append("line").attr("stroke","currentColor").attr(R+"2",C*g)),qt=qt.merge(Zt.append("text").attr("fill","currentColor").attr(R,C*V).attr("dy",i===1?"0em":i===3?"0.71em":"0.32em")),H!==bt&&(Et=Et.transition(H),ne=ne.transition(H),Ht=Ht.transition(H),qt=qt.transition(H),ve=ve.transition(H).attr("opacity",Bt).attr("transform",function(Wt){return isFinite(Wt=lt(Wt))?j(Wt+S):this.getAttribute("transform")}),Zt.attr("opacity",Bt).attr("transform",function(Wt){var Tt=this.parentNode.__axis;return j((Tt&&isFinite(Tt=Tt(Wt))?Tt:lt(Wt))+S)})),ve.remove(),Et.attr("d",i===4||i===2?x?"M"+C*x+","+dt+"H"+S+"V"+ct+"H"+C*x:"M"+S+","+dt+"V"+ct:x?"M"+dt+","+C*x+"V"+S+"H"+ct+"V"+C*x:"M"+dt+","+S+"H"+ct),ne.attr("opacity",1).attr("transform",function(Wt){return j(lt(Wt)+S)}),Ht.attr(R+"2",C*g),qt.attr(R,C*V).text(G),bt.filter(Wn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",i===2?"start":i===4?"end":"middle"),bt.each(function(){this.__axis=lt})}return F.scale=function(H){return arguments.length?(a=H,F):a},F.ticks=function(){return s=Array.from(arguments),F},F.tickArguments=function(H){return arguments.length?(s=H==null?[]:Array.from(H),F):s.slice()},F.tickValues=function(H){return arguments.length?(u=H==null?null:Array.from(H),F):u&&u.slice()},F.tickFormat=function(H){return arguments.length?(p=H,F):p},F.tickSize=function(H){return arguments.length?(g=x=+H,F):g},F.tickSizeInner=function(H){return arguments.length?(g=+H,F):g},F.tickSizeOuter=function(H){return arguments.length?(x=+H,F):x},F.tickPadding=function(H){return arguments.length?(w=+H,F):w},F.offset=function(H){return arguments.length?(S=+H,F):S},F}function ei(i){return Un(1,i)}function Ta(i){return Un(2,i)}function dn(i){return Un(3,i)}function aa(i){return Un(4,i)}var oa={value:()=>{}};function Ri(){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 sr(u)}function sr(i){this._=i}function Qr(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 cr(i,a){for(var s,u=0,p=i.length;u<p;++u)if((s=i[u]).name===a)return s.value}function or(i,a,s){for(var u=0,p=i.length;u<p;++u)if(i[u].name===a){i[u]=oa,i=i.slice(0,u).concat(i.slice(u+1));break}return s!=null&&i.push({name:a,value:s}),i}sr.prototype=Ri.prototype={constructor:sr,on:function(i,a){var s,u=this._,p=Qr(i+"",u),g=-1,x=p.length;if(!(arguments.length<2)){if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++g<x;)if(s=(i=p[g]).type)u[s]=or(u[s],i.name,a);else if(a==null)for(s in u)u[s]=or(u[s],i.name,null);return this}for(;++g<x;)if((s=(i=p[g]).type)&&(s=cr(u[s],i.name)))return s},copy:function(){var i={},a=this._;for(var s in a)i[s]=a[s].slice();return new sr(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 on=Ri;function Kt(){}function Ai(i){return i==null?Kt:function(){return this.querySelector(i)}}function re(i){return i==null?[]:Array.isArray(i)?i:Array.from(i)}function Tn(){return[]}function Bn(i){return i==null?Tn:function(){return this.querySelectorAll(i)}}function Xn(i){return function(){return this.matches(i)}}function fi(i){return function(a){return a.matches(i)}}var Sa=Array.prototype.find;function gn(){return this.firstElementChild}var Er=Array.prototype.filter;function sa(){return Array.from(this.children)}function Rr(i){return new Array(i.length)}function wi(i,a){this.ownerDocument=i.ownerDocument,this.namespaceURI=i.namespaceURI,this._next=null,this._parent=i,this.__data__=a}function hi(i){return function(){return i}}function Bi(i,a,s,u,p,g){for(var x,w=0,S=a.length,C=g.length;w<C;++w)(x=a[w])?(x.__data__=g[w],u[w]=x):s[w]=new wi(i,g[w]);for(;w<S;++w)(x=a[w])&&(p[w]=x)}function fn(i,a,s,u,p,g,x){var w,S,C,R=new Map,j=a.length,F=g.length,H=new Array(j);for(w=0;w<j;++w)(S=a[w])&&(H[w]=C=x.call(S,S.__data__,w,a)+"",R.has(C)?p[w]=S:R.set(C,S));for(w=0;w<F;++w)C=x.call(i,g[w],w,g)+"",(S=R.get(C))?(u[w]=S,S.__data__=g[w],R.delete(C)):s[w]=new wi(i,g[w]);for(w=0;w<j;++w)(S=a[w])&&R.get(H[w])===S&&(p[w]=S)}function ri(i){return i.__data__}function Kn(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function Jn(i,a){return i<a?-1:i>a?1:i>=a?0:NaN}wi.prototype={constructor:wi,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 oi="http://www.w3.org/1999/xhtml";const Ci={svg:"http://www.w3.org/2000/svg",xhtml:oi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Qn(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 Aa(i){return function(){this.removeAttribute(i)}}function Fa(i){return function(){this.removeAttributeNS(i.space,i.local)}}function _n(i,a){return function(){this.setAttribute(i,a)}}function ni(i,a){return function(){this.setAttributeNS(i.space,i.local,a)}}function ii(i,a){return function(){var s=a.apply(this,arguments);s==null?this.removeAttribute(i):this.setAttribute(i,s)}}function Oo(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 Ja(i){return i.ownerDocument&&i.ownerDocument.defaultView||i.document&&i||i.defaultView}function ca(i){return function(){this.style.removeProperty(i)}}function sc(i,a,s){return function(){this.style.setProperty(i,a,s)}}function Qt(i,a,s){return function(){var u=a.apply(this,arguments);u==null?this.style.removeProperty(i):this.style.setProperty(i,u,s)}}function Xe(i,a){return i.style.getPropertyValue(a)||Ja(i).getComputedStyle(i,null).getPropertyValue(a)}function mr(i){return function(){delete this[i]}}function ln(i,a){return function(){this[i]=a}}function di(i,a){return function(){var s=a.apply(this,arguments);s==null?delete this[i]:this[i]=s}}function In(i){return i.trim().split(/^|\s+/)}function pi(i){return i.classList||new Pa(i)}function Pa(i){this._node=i,this._names=In(i.getAttribute("class")||"")}function gi(i,a){for(var s=pi(i),u=-1,p=a.length;++u<p;)s.add(a[u])}function Ii(i,a){for(var s=pi(i),u=-1,p=a.length;++u<p;)s.remove(a[u])}function Ro(i){return function(){gi(this,i)}}function cc(i){return function(){Ii(this,i)}}function Ua(i,a){return function(){(a.apply(this,arguments)?gi:Ii)(this,i)}}function lc(){this.textContent=""}function bs(i){return function(){this.textContent=i}}function au(i){return function(){var a=i.apply(this,arguments);this.textContent=a==null?"":a}}function lr(){this.innerHTML=""}function Kc(i){return function(){this.innerHTML=i}}function Dn(i){return function(){var a=i.apply(this,arguments);this.innerHTML=a==null?"":a}}function go(){this.nextSibling&&this.parentNode.appendChild(this)}function ma(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qa(i){return function(){var a=this.ownerDocument,s=this.namespaceURI;return s===oi&&a.documentElement.namespaceURI===oi?a.createElement(i):a.createElementNS(s,i)}}function Ni(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function Bo(i){var a=Qn(i);return(a.local?Ni:Qa)(a)}function uc(){return null}function hc(){var i=this.parentNode;i&&i.removeChild(this)}function dc(){var i=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function Ca(){var i=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function ou(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 fc(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 Ia(i,a,s){return function(){var u,p=this.__on,g=function(S){return function(C){S.call(this,C,this.__data__)}}(a);if(p){for(var x=0,w=p.length;x<w;++x)if((u=p[x]).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 vs(i,a,s){var u=Ja(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 Jc(i,a){return function(){return vs(this,i,a)}}function Ji(i,a){return function(){return vs(this,i,a.apply(this,arguments))}}Pa.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 Fo=[null];function yi(i,a){this._groups=i,this._parents=a}function ts(){return new yi([[document.documentElement]],Fo)}yi.prototype=ts.prototype={constructor:yi,select:function(i){typeof i!="function"&&(i=Ai(i));for(var a=this._groups,s=a.length,u=new Array(s),p=0;p<s;++p)for(var g,x,w=a[p],S=w.length,C=u[p]=new Array(S),R=0;R<S;++R)(g=w[R])&&(x=i.call(g,g.__data__,R,w))&&("__data__"in g&&(x.__data__=g.__data__),C[R]=x);return new yi(u,this._parents)},selectAll:function(i){i=typeof i=="function"?function(R){return function(){return re(R.apply(this,arguments))}}(i):Bn(i);for(var a=this._groups,s=a.length,u=[],p=[],g=0;g<s;++g)for(var x,w=a[g],S=w.length,C=0;C<S;++C)(x=w[C])&&(u.push(i.call(x,x.__data__,C,w)),p.push(x));return new yi(u,p)},selectChild:function(i){return this.select(i==null?gn:function(a){return function(){return Sa.call(this.children,a)}}(typeof i=="function"?i:fi(i)))},selectChildren:function(i){return this.selectAll(i==null?sa:function(a){return function(){return Er.call(this.children,a)}}(typeof i=="function"?i:fi(i)))},filter:function(i){typeof i!="function"&&(i=Xn(i));for(var a=this._groups,s=a.length,u=new Array(s),p=0;p<s;++p)for(var g,x=a[p],w=x.length,S=u[p]=[],C=0;C<w;++C)(g=x[C])&&i.call(g,g.__data__,C,x)&&S.push(g);return new yi(u,this._parents)},data:function(i,a){if(!arguments.length)return Array.from(this,ri);var s=a?fn:Bi,u=this._parents,p=this._groups;typeof i!="function"&&(i=hi(i));for(var g=p.length,x=new Array(g),w=new Array(g),S=new Array(g),C=0;C<g;++C){var R=u[C],j=p[C],F=j.length,H=Kn(i.call(R,R&&R.__data__,C,u)),it=H.length,G=w[C]=new Array(it),V=x[C]=new Array(it),X=S[C]=new Array(F);s(R,j,G,V,X,H,a);for(var dt,ct,lt=0,bt=0;lt<it;++lt)if(dt=G[lt]){for(lt>=bt&&(bt=lt+1);!(ct=V[bt])&&++bt<it;);dt._next=ct||null}}return(x=new yi(x,u))._enter=w,x._exit=S,x},enter:function(){return new yi(this._enter||this._groups.map(Rr),this._parents)},exit:function(){return new yi(this._exit||this._groups.map(Rr),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,x=Math.min(p,g),w=new Array(p),S=0;S<x;++S)for(var C,R=s[S],j=u[S],F=R.length,H=w[S]=new Array(F),it=0;it<F;++it)(C=R[it]||j[it])&&(H[it]=C);for(;S<p;++S)w[S]=s[S];return new yi(w,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,x=p[g];--g>=0;)(u=p[g])&&(x&&4^u.compareDocumentPosition(x)&&x.parentNode.insertBefore(u,x),x=u);return this},sort:function(i){function a(j,F){return j&&F?i(j.__data__,F.__data__):!j-!F}i||(i=Jn);for(var s=this._groups,u=s.length,p=new Array(u),g=0;g<u;++g){for(var x,w=s[g],S=w.length,C=p[g]=new Array(S),R=0;R<S;++R)(x=w[R])&&(C[R]=x);C.sort(a)}return new yi(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 x=u[p];if(x)return x}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],x=0,w=g.length;x<w;++x)(p=g[x])&&i.call(p,p.__data__,x,g);return this},attr:function(i,a){var s=Qn(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?Fa:Aa:typeof a=="function"?s.local?Oo:ii:s.local?ni:_n)(s,a))},style:function(i,a,s){return arguments.length>1?this.each((a==null?ca:typeof a=="function"?Qt:sc)(i,a,s==null?"":s)):Xe(this.node(),i)},property:function(i,a){return arguments.length>1?this.each((a==null?mr:typeof a=="function"?di:ln)(i,a)):this.node()[i]},classed:function(i,a){var s=In(i+"");if(arguments.length<2){for(var u=pi(this.node()),p=-1,g=s.length;++p<g;)if(!u.contains(s[p]))return!1;return!0}return this.each((typeof a=="function"?Ua:a?Ro:cc)(s,a))},text:function(i){return arguments.length?this.each(i==null?lc:(typeof i=="function"?au:bs)(i)):this.node().textContent},html:function(i){return arguments.length?this.each(i==null?lr:(typeof i=="function"?Dn:Kc)(i)):this.node().innerHTML},raise:function(){return this.each(go)},lower:function(){return this.each(ma)},append:function(i){var a=typeof i=="function"?i:Bo(i);return this.select(function(){return this.appendChild(a.apply(this,arguments))})},insert:function(i,a){var s=typeof i=="function"?i:Bo(i),u=a==null?uc:typeof a=="function"?a:Ai(a);return this.select(function(){return this.insertBefore(s.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(hc)},clone:function(i){return this.select(i?Ca:dc)},datum:function(i){return arguments.length?this.property("__data__",i):this.node().__data__},on:function(i,a,s){var u,p,g=ou(i+""),x=g.length;if(!(arguments.length<2)){for(w=a?Ia:fc,u=0;u<x;++u)this.each(w(g[u],a,s));return this}var w=this.node().__on;if(w){for(var S,C=0,R=w.length;C<R;++C)for(u=0,S=w[C];u<x;++u)if((p=g[u]).type===S.type&&p.name===S.name)return S.value}},dispatch:function(i,a){return this.each((typeof a=="function"?Ji:Jc)(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,x=p.length;g<x;++g)(u=p[g])&&(yield u)}};const Vr=ts;function Sn(i){return typeof i=="string"?new yi([[document.querySelector(i)]],[document.documentElement]):new yi([[i]],Fo)}const Qc={passive:!1},Po={capture:!0,passive:!1};function xs(i){i.stopImmediatePropagation()}function yo(i){i.preventDefault(),i.stopImmediatePropagation()}function mo(i){var a=i.document.documentElement,s=Sn(i).on("dragstart.drag",yo,Po);"onselectstart"in a?s.on("selectstart.drag",yo,Po):(a.__noselect=a.style.MozUserSelect,a.style.MozUserSelect="none")}function _o(i,a){var s=i.document.documentElement,u=Sn(i).on("dragstart.drag",null);a&&(u.on("click.drag",yo,Po),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 $i(i,a,s){i.prototype=a.prototype=s,s.constructor=i}function Li(i,a){var s=Object.create(i.prototype);for(var u in a)s[u]=a[u];return s}function Tr(){}var Qi=.7,_a=1/Qi,tn="\\s*([+-]?\\d+)\\s*",I="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Y="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",et=/^#([0-9a-f]{3,8})$/,yt=new RegExp("^rgb\\("+[tn,tn,tn]+"\\)$"),te=new RegExp("^rgb\\("+[Y,Y,Y]+"\\)$"),Ne=new RegExp("^rgba\\("+[tn,tn,tn,I]+"\\)$"),je=new RegExp("^rgba\\("+[Y,Y,Y,I]+"\\)$"),tr=new RegExp("^hsl\\("+[I,Y,Y]+"\\)$"),nr=new RegExp("^hsla\\("+[I,Y,Y,I]+"\\)$"),fr={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 _r(){return this.rgb().formatHex()}function $r(){return this.rgb().formatRgb()}function pr(i){var a,s;return i=(i+"").trim().toLowerCase(),(a=et.exec(i))?(s=a[1].length,a=parseInt(a[1],16),s===6?xn(a):s===3?new qn(a>>8&15|a>>4&240,a>>4&15|240&a,(15&a)<<4|15&a,1):s===8?un(a>>24&255,a>>16&255,a>>8&255,(255&a)/255):s===4?un(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 qn(a[1],a[2],a[3],1):(a=te.exec(i))?new qn(255*a[1]/100,255*a[2]/100,255*a[3]/100,1):(a=Ne.exec(i))?un(a[1],a[2],a[3],a[4]):(a=je.exec(i))?un(255*a[1]/100,255*a[2]/100,255*a[3]/100,a[4]):(a=tr.exec(i))?Jh(a[1],a[2]/100,a[3]/100,1):(a=nr.exec(i))?Jh(a[1],a[2]/100,a[3]/100,a[4]):fr.hasOwnProperty(i)?xn(fr[i]):i==="transparent"?new qn(NaN,NaN,NaN,0):null}function xn(i){return new qn(i>>16&255,i>>8&255,255&i,1)}function un(i,a,s,u){return u<=0&&(i=a=s=NaN),new qn(i,a,s,u)}function Gn(i){return i instanceof Tr||(i=pr(i)),i?new qn((i=i.rgb()).r,i.g,i.b,i.opacity):new qn}function si(i,a,s,u){return arguments.length===1?Gn(i):new qn(i,a,s,u==null?1:u)}function qn(i,a,s,u){this.r=+i,this.g=+a,this.b=+s,this.opacity=+u}function ws(){return"#"+pc(this.r)+pc(this.g)+pc(this.b)}function su(){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 pc(i){return((i=Math.max(0,Math.min(255,Math.round(i)||0)))<16?"0":"")+i.toString(16)}function Jh(i,a,s,u){return u<=0?i=a=s=NaN:s<=0||s>=1?i=a=NaN:a<=0&&(i=NaN),new la(i,a,s,u)}function cu(i){if(i instanceof la)return new la(i.h,i.s,i.l,i.opacity);if(i instanceof Tr||(i=pr(i)),!i)return new la;if(i instanceof la)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),x=NaN,w=g-p,S=(g+p)/2;return w?(x=a===g?(s-u)/w+6*(s<u):s===g?(u-a)/w+2:(a-s)/w+4,w/=S<.5?g+p:2-g-p,x*=60):w=S>0&&S<1?0:x,new la(x,w,S,i.opacity)}function gc(i,a,s,u){return arguments.length===1?cu(i):new la(i,a,s,u==null?1:u)}function la(i,a,s,u){this.h=+i,this.s=+a,this.l=+s,this.opacity=+u}function lu(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 ks(i,a,s,u,p){var g=i*i,x=g*i;return((1-3*i+3*g-x)*a+(4-6*g+3*x)*s+(1+3*i+3*g-3*x)*u+x*p)/6}function Qh(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],x=u>0?i[u-1]:2*p-g,w=u<a-1?i[u+2]:2*g-p;return ks((s-u/a)*a,x,p,g,w)}}function mi(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],x=i[(u+1)%a],w=i[(u+2)%a];return ks((s-u/a)*a,p,g,x,w)}}$i(Tr,pr,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:_r,formatHex:_r,formatHsl:function(){return cu(this).formatHsl()},formatRgb:$r,toString:$r}),$i(qn,si,Li(Tr,{brighter:function(i){return i=i==null?_a:Math.pow(_a,i),new qn(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=i==null?Qi:Math.pow(Qi,i),new qn(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:ws,formatHex:ws,formatRgb:su,toString:su})),$i(la,gc,Li(Tr,{brighter:function(i){return i=i==null?_a:Math.pow(_a,i),new la(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?Qi:Math.pow(Qi,i),new la(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 qn(lu(i>=240?i-240:i+120,p,u),lu(i,p,u),lu(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 yc=i=>()=>i;function tl(i,a){return function(s){return i+s*a}}function el(i,a){var s=a-i;return s?tl(i,s>180||s<-180?s-360*Math.round(s/360):s):yc(isNaN(i)?a:i)}function Mi(i,a){var s=a-i;return s?tl(i,s):yc(isNaN(i)?a:i)}const mc=function i(a){var s=function(p){return(p=+p)==1?Mi:function(g,x){return x-g?function(w,S,C){return w=Math.pow(w,C),S=Math.pow(S,C)-w,C=1/C,function(R){return Math.pow(w+R*S,C)}}(g,x,p):yc(isNaN(g)?x:g)}}(a);function u(p,g){var x=s((p=si(p)).r,(g=si(g)).r),w=s(p.g,g.g),S=s(p.b,g.b),C=Mi(p.opacity,g.opacity);return function(R){return p.r=x(R),p.g=w(R),p.b=S(R),p.opacity=C(R),p+""}}return u.gamma=i,u}(1);function uu(i){return function(a){var s,u,p=a.length,g=new Array(p),x=new Array(p),w=new Array(p);for(s=0;s<p;++s)u=si(a[s]),g[s]=u.r||0,x[s]=u.g||0,w[s]=u.b||0;return g=i(g),x=i(x),w=i(w),u.opacity=1,function(S){return u.r=g(S),u.g=x(S),u.b=w(S),u+""}}}var rl=uu(Qh),ad=uu(mi);function _c(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 bc(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}function od(i,a){return(bc(a)?_c:t1)(i,a)}function t1(i,a){var s,u=a?a.length:0,p=i?Math.min(u,i.length):0,g=new Array(p),x=new Array(u);for(s=0;s<p;++s)g[s]=en(i[s],a[s]);for(;s<u;++s)x[s]=a[s];return function(w){for(s=0;s<p;++s)x[s]=g[s](w);return x}}function e1(i,a){var s=new Date;return i=+i,a=+a,function(u){return s.setTime(i*(1-u)+a*u),s}}function ua(i,a){return i=+i,a=+a,function(s){return i*(1-s)+a*s}}function ta(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]=en(i[s],a[s]):p[s]=a[s];return function(g){for(s in u)p[s]=u[s](g);return p}}var Di=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ai=new RegExp(Di.source,"g");function za(i,a){var s,u,p,g=Di.lastIndex=ai.lastIndex=0,x=-1,w=[],S=[];for(i+="",a+="";(s=Di.exec(i))&&(u=ai.exec(a));)(p=u.index)>g&&(p=a.slice(g,p),w[x]?w[x]+=p:w[++x]=p),(s=s[0])===(u=u[0])?w[x]?w[x]+=u:w[++x]=u:(w[++x]=null,S.push({i:x,x:ua(s,u)})),g=ai.lastIndex;return g<a.length&&(p=a.slice(g),w[x]?w[x]+=p:w[++x]=p),w.length<2?S[0]?function(C){return function(R){return C(R)+""}}(S[0].x):function(C){return function(){return C}}(a):(a=S.length,function(C){for(var R,j=0;j<a;++j)w[(R=S[j]).i]=R.x(C);return w.join("")})}function en(i,a){var s,u=typeof a;return a==null||u==="boolean"?yc(a):(u==="number"?ua:u==="string"?(s=pr(a))?(a=s,mc):za:a instanceof pr?mc:a instanceof Date?e1:bc(a)?_c:Array.isArray(a)?t1:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?ta:ua)(i,a)}function Na(i){let a;for(;a=i.sourceEvent;)i=a;return i}function ha(i,a){if(i=Na(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 es,vc,Es=0,Uo=0,zo=0,nl=0,rs=0,il=0,xc=typeof performance=="object"&&performance.now?performance:Date,r1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(i){setTimeout(i,17)};function wc(){return rs||(r1(n1),rs=xc.now()+il)}function n1(){rs=0}function kc(){this._call=this._time=this._next=null}function Yo(i,a,s){var u=new kc;return u.restart(i,a,s),u}function Ts(){wc(),++Es;for(var i,a=es;a;)(i=rs-a._time)>=0&&a._call.call(void 0,i),a=a._next;--Es}function to(){rs=(nl=xc.now())+il,Es=Uo=0;try{Ts()}finally{Es=0,function(){for(var i,a,s=es,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:es=a);vc=i,Ss(u)}(),rs=0}}function jo(){var i=xc.now(),a=i-nl;a>1e3&&(il-=a,nl=i)}function Ss(i){Es||(Uo&&(Uo=clearTimeout(Uo)),i-rs>24?(i<1/0&&(Uo=setTimeout(to,i-xc.now()-il)),zo&&(zo=clearInterval(zo))):(zo||(nl=xc.now(),zo=setInterval(jo,1e3)),Es=1,r1(to)))}function al(i,a,s){var u=new kc;return a=a==null?0:+a,u.restart(p=>{u.stop(),i(p+a)},a,s),u}kc.prototype=Yo.prototype={constructor:kc,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||vc===this||(vc?vc._next=this:es=this,vc=this),this._call=i,this._time=s,Ss()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ss())}};var i1=on("start","end","cancel","interrupt"),a1=[];function bo(i,a,s,u,p,g){var x=i.__transition;if(x){if(s in x)return}else i.__transition={};(function(w,S,C){var R,j=w.__transition;function F(G){var V,X,dt,ct;if(C.state!==1)return it();for(V in j)if((ct=j[V]).name===C.name){if(ct.state===3)return al(F);ct.state===4?(ct.state=6,ct.timer.stop(),ct.on.call("interrupt",w,w.__data__,ct.index,ct.group),delete j[V]):+V<S&&(ct.state=6,ct.timer.stop(),ct.on.call("cancel",w,w.__data__,ct.index,ct.group),delete j[V])}if(al(function(){C.state===3&&(C.state=4,C.timer.restart(H,C.delay,C.time),H(G))}),C.state=2,C.on.call("start",w,w.__data__,C.index,C.group),C.state===2){for(C.state=3,R=new Array(dt=C.tween.length),V=0,X=-1;V<dt;++V)(ct=C.tween[V].value.call(w,w.__data__,C.index,C.group))&&(R[++X]=ct);R.length=X+1}}function H(G){for(var V=G<C.duration?C.ease.call(null,G/C.duration):(C.timer.restart(it),C.state=5,1),X=-1,dt=R.length;++X<dt;)R[X].call(w,V);C.state===5&&(C.on.call("end",w,w.__data__,C.index,C.group),it())}function it(){for(var G in C.state=6,C.timer.stop(),delete j[S],j)return;delete w.__transition}j[S]=C,C.timer=Yo(function(G){C.state=1,C.timer.restart(F,C.delay,C.time),C.delay<=G&&F(G-C.delay)},0,C.time)})(i,s,{name:a,index:u,group:p,on:i1,tween:a1,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:0})}function ol(i,a){var s=La(i,a);if(s.state>0)throw new Error("too late; already scheduled");return s}function eo(i,a){var s=La(i,a);if(s.state>3)throw new Error("too late; already running");return s}function La(i,a){var s=i.__transition;if(!s||!(s=s[a]))throw new Error("transition not found");return s}function ro(i,a){var s,u,p,g=i.__transition,x=!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]):x=!1;x&&delete i.__transition}}var _i,o1=180/Math.PI,As={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function s1(i,a,s,u,p,g){var x,w,S;return(x=Math.sqrt(i*i+a*a))&&(i/=x,a/=x),(S=i*s+a*u)&&(s-=i*S,u-=a*S),(w=Math.sqrt(s*s+u*u))&&(s/=w,u/=w,S/=w),i*u<a*s&&(i=-i,a=-a,S=-S,x=-x),{translateX:p,translateY:g,rotate:Math.atan2(a,i)*o1,skewX:Math.atan(S)*o1,scaleX:x,scaleY:w}}function hu(i,a,s,u){function p(g){return g.length?g.pop()+" ":""}return function(g,x){var w=[],S=[];return g=i(g),x=i(x),function(C,R,j,F,H,it){if(C!==j||R!==F){var G=H.push("translate(",null,a,null,s);it.push({i:G-4,x:ua(C,j)},{i:G-2,x:ua(R,F)})}else(j||F)&&H.push("translate("+j+a+F+s)}(g.translateX,g.translateY,x.translateX,x.translateY,w,S),function(C,R,j,F){C!==R?(C-R>180?R+=360:R-C>180&&(C+=360),F.push({i:j.push(p(j)+"rotate(",null,u)-2,x:ua(C,R)})):R&&j.push(p(j)+"rotate("+R+u)}(g.rotate,x.rotate,w,S),function(C,R,j,F){C!==R?F.push({i:j.push(p(j)+"skewX(",null,u)-2,x:ua(C,R)}):R&&j.push(p(j)+"skewX("+R+u)}(g.skewX,x.skewX,w,S),function(C,R,j,F,H,it){if(C!==j||R!==F){var G=H.push(p(H)+"scale(",null,",",null,")");it.push({i:G-4,x:ua(C,j)},{i:G-2,x:ua(R,F)})}else j===1&&F===1||H.push(p(H)+"scale("+j+","+F+")")}(g.scaleX,g.scaleY,x.scaleX,x.scaleY,w,S),g=x=null,function(C){for(var R,j=-1,F=S.length;++j<F;)w[(R=S[j]).i]=R.x(C);return w.join("")}}}var c1=hu(function(i){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(i+"");return a.isIdentity?As:s1(a.a,a.b,a.c,a.d,a.e,a.f)},"px, ","px)","deg)"),sl=hu(function(i){return i==null?As:(_i||(_i=document.createElementNS("http://www.w3.org/2000/svg","g")),_i.setAttribute("transform",i),(i=_i.transform.baseVal.consolidate())?s1((i=i.matrix).a,i.b,i.c,i.d,i.e,i.f):As)},", ",")",")");function l1(i,a){var s,u;return function(){var p=eo(this,i),g=p.tween;if(g!==s){for(var x=0,w=(u=s=g).length;x<w;++x)if(u[x].name===a){(u=u.slice()).splice(x,1);break}}p.tween=u}}function sd(i,a,s){var u,p;if(typeof s!="function")throw new Error;return function(){var g=eo(this,i),x=g.tween;if(x!==u){p=(u=x).slice();for(var w={name:a,value:s},S=0,C=p.length;S<C;++S)if(p[S].name===a){p[S]=w;break}S===C&&p.push(w)}g.tween=p}}function du(i,a,s){var u=i._id;return i.each(function(){var p=eo(this,u);(p.value||(p.value={}))[a]=s.apply(this,arguments)}),function(p){return La(p,u).value[a]}}function fu(i,a){var s;return(typeof a=="number"?ua:a instanceof pr?mc:(s=pr(a))?(a=s,mc):za)(i,a)}function Ec(i){return function(){this.removeAttribute(i)}}function pu(i){return function(){this.removeAttributeNS(i.space,i.local)}}function u1(i,a,s){var u,p,g=s+"";return function(){var x=this.getAttribute(i);return x===g?null:x===u?p:p=a(u=x,s)}}function cd(i,a,s){var u,p,g=s+"";return function(){var x=this.getAttributeNS(i.space,i.local);return x===g?null:x===u?p:p=a(u=x,s)}}function vo(i,a,s){var u,p,g;return function(){var x,w,S=s(this);if(S!=null)return(x=this.getAttribute(i))===(w=S+"")?null:x===u&&w===p?g:(p=w,g=a(u=x,S));this.removeAttribute(i)}}function $o(i,a,s){var u,p,g;return function(){var x,w,S=s(this);if(S!=null)return(x=this.getAttributeNS(i.space,i.local))===(w=S+"")?null:x===u&&w===p?g:(p=w,g=a(u=x,S));this.removeAttributeNS(i.space,i.local)}}function Fn(i,a){return function(s){this.setAttribute(i,a.call(this,s))}}function h1(i,a){return function(s){this.setAttributeNS(i.space,i.local,a.call(this,s))}}function d1(i,a){var s,u;function p(){var g=a.apply(this,arguments);return g!==u&&(s=(u=g)&&h1(i,g)),s}return p._value=a,p}function ld(i,a){var s,u;function p(){var g=a.apply(this,arguments);return g!==u&&(s=(u=g)&&Fn(i,g)),s}return p._value=a,p}function gu(i,a){return function(){ol(this,i).delay=+a.apply(this,arguments)}}function ud(i,a){return a=+a,function(){ol(this,i).delay=a}}function hd(i,a){return function(){eo(this,i).duration=+a.apply(this,arguments)}}function yu(i,a){return a=+a,function(){eo(this,i).duration=a}}function mu(i,a){if(typeof a!="function")throw new Error;return function(){eo(this,i).ease=a}}function xo(i,a,s){var u,p,g=function(x){return(x+"").trim().split(/^|\s+/).every(function(w){var S=w.indexOf(".");return S>=0&&(w=w.slice(0,S)),!w||w==="start"})}(a)?ol:eo;return function(){var x=g(this,i),w=x.on;w!==u&&(p=(u=w).copy()).on(a,s),x.on=p}}var cl=Vr.prototype.constructor;function f1(i){return function(){this.style.removeProperty(i)}}function p1(i,a,s){return function(u){this.style.setProperty(i,a.call(this,u),s)}}function _u(i,a,s){var u,p;function g(){var x=a.apply(this,arguments);return x!==p&&(u=(p=x)&&p1(i,x,s)),u}return g._value=a,g}function ci(i){return function(a){this.textContent=i.call(this,a)}}function ns(i){var a,s;function u(){var p=i.apply(this,arguments);return p!==s&&(a=(s=p)&&ci(p)),a}return u._value=i,u}var Cs=0;function ki(i,a,s,u){this._groups=i,this._parents=a,this._name=s,this._id=u}function Tc(i){return Vr().transition(i)}function ll(){return++Cs}var Ya=Vr.prototype;function bu(i){return i*i*i}function ul(i){return--i*i*i+1}function Is(i){return((i*=2)<=1?i*i*i:(i-=2)*i*i+2)/2}ki.prototype=Tc.prototype={constructor:ki,select:function(i){var a=this._name,s=this._id;typeof i!="function"&&(i=Ai(i));for(var u=this._groups,p=u.length,g=new Array(p),x=0;x<p;++x)for(var w,S,C=u[x],R=C.length,j=g[x]=new Array(R),F=0;F<R;++F)(w=C[F])&&(S=i.call(w,w.__data__,F,C))&&("__data__"in w&&(S.__data__=w.__data__),j[F]=S,bo(j[F],a,s,F,j,La(w,s)));return new ki(g,this._parents,a,s)},selectAll:function(i){var a=this._name,s=this._id;typeof i!="function"&&(i=Bn(i));for(var u=this._groups,p=u.length,g=[],x=[],w=0;w<p;++w)for(var S,C=u[w],R=C.length,j=0;j<R;++j)if(S=C[j]){for(var F,H=i.call(S,S.__data__,j,C),it=La(S,s),G=0,V=H.length;G<V;++G)(F=H[G])&&bo(F,a,s,G,H,it);g.push(H),x.push(S)}return new ki(g,x,a,s)},selectChild:Ya.selectChild,selectChildren:Ya.selectChildren,filter:function(i){typeof i!="function"&&(i=Xn(i));for(var a=this._groups,s=a.length,u=new Array(s),p=0;p<s;++p)for(var g,x=a[p],w=x.length,S=u[p]=[],C=0;C<w;++C)(g=x[C])&&i.call(g,g.__data__,C,x)&&S.push(g);return new ki(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),x=new Array(u),w=0;w<g;++w)for(var S,C=a[w],R=s[w],j=C.length,F=x[w]=new Array(j),H=0;H<j;++H)(S=C[H]||R[H])&&(F[H]=S);for(;w<u;++w)x[w]=a[w];return new ki(x,this._parents,this._name,this._id)},selection:function(){return new cl(this._groups,this._parents)},transition:function(){for(var i=this._name,a=this._id,s=ll(),u=this._groups,p=u.length,g=0;g<p;++g)for(var x,w=u[g],S=w.length,C=0;C<S;++C)if(x=w[C]){var R=La(x,a);bo(x,i,s,C,w,{time:R.time+R.delay+R.duration,delay:0,duration:R.duration,ease:R.ease})}return new ki(u,this._parents,i,s)},call:Ya.call,nodes:Ya.nodes,node:Ya.node,size:Ya.size,empty:Ya.empty,each:Ya.each,on:function(i,a){var s=this._id;return arguments.length<2?La(this.node(),s).on.on(i):this.each(xo(s,i,a))},attr:function(i,a){var s=Qn(i),u=s==="transform"?sl:fu;return this.attrTween(i,typeof a=="function"?(s.local?$o:vo)(s,u,du(this,"attr."+i,a)):a==null?(s.local?pu:Ec)(s):(s.local?cd:u1)(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=Qn(i);return this.tween(s,(u.local?d1:ld)(u,a))},style:function(i,a,s){var u=(i+="")=="transform"?c1:fu;return a==null?this.styleTween(i,function(p,g){var x,w,S;return function(){var C=Xe(this,p),R=(this.style.removeProperty(p),Xe(this,p));return C===R?null:C===x&&R===w?S:S=g(x=C,w=R)}}(i,u)).on("end.style."+i,f1(i)):typeof a=="function"?this.styleTween(i,function(p,g,x){var w,S,C;return function(){var R=Xe(this,p),j=x(this),F=j+"";return j==null&&(this.style.removeProperty(p),F=j=Xe(this,p)),R===F?null:R===w&&F===S?C:(S=F,C=g(w=R,j))}}(i,u,du(this,"style."+i,a))).each(function(p,g){var x,w,S,C,R="style."+g,j="end."+R;return function(){var F=eo(this,p),H=F.on,it=F.value[R]==null?C||(C=f1(g)):void 0;H===x&&S===it||(w=(x=H).copy()).on(j,S=it),F.on=w}}(this._id,i)):this.styleTween(i,function(p,g,x){var w,S,C=x+"";return function(){var R=Xe(this,p);return R===C?null:R===w?S:S=g(w=R,x)}}(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,_u(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}}(du(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,ns(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=La(this.node(),s).tween,g=0,x=p.length;g<x;++g)if((u=p[g]).name===i)return u.value;return null}return this.each((a==null?l1:sd)(s,i,a))},delay:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?gu:ud)(a,i)):La(this.node(),a).delay},duration:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?hd:yu)(a,i)):La(this.node(),a).duration},ease:function(i){var a=this._id;return arguments.length?this.each(mu(a,i)):La(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;eo(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,x){var w={value:x},S={value:function(){--p==0&&g()}};s.each(function(){var C=eo(this,u),R=C.on;R!==i&&((a=(i=R).copy())._.cancel.push(w),a._.interrupt.push(w),a._.end.push(S)),C.on=a}),p===0&&g()})},[Symbol.iterator]:Ya[Symbol.iterator]};var hl={time:null,delay:0,duration:250,ease:Is};function dd(i,a){for(var s;!(s=i.__transition)||!(s=s[a]);)if(!(i=i.parentNode))throw new Error(`transition ${a} not found`);return s}Vr.prototype.interrupt=function(i){return this.each(function(){ro(this,i)})},Vr.prototype.transition=function(i){var a,s;i instanceof ki?(a=i._id,i=i._name):(a=ll(),(s=hl).time=wc(),i=i==null?null:i+"");for(var u=this._groups,p=u.length,g=0;g<p;++g)for(var x,w=u[g],S=w.length,C=0;C<S;++C)(x=w[C])&&bo(x,i,a,C,w,s||dd(x,a));return new ki(u,this._parents,i,a)};var vu=[null];function g1(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 ki([[i]],vu,a,+u)}return null}const xu=i=>()=>i;function wu(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 y1(i){i.stopImmediatePropagation()}function ku(i){i.preventDefault(),i.stopImmediatePropagation()}var Eu={name:"drag"},dl={name:"space"},ba={name:"handle"},Ns={name:"center"};const{abs:da,max:Hi,min:Fi}=Math;function m1(i){return[+i[0],+i[1]]}function Tu(i){return[m1(i[0]),m1(i[1])]}var fl={name:"x",handles:["w","e"].map(Sc),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]]}},pl={name:"y",handles:["n","s"].map(Sc),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]]}},fd={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Sc),input:function(i){return i==null?null:Tu(i)},output:function(i){return i}},wo={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"},_1={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},b1={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},pd={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},gd={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Sc(i){return{type:i}}function ko(i){return!i.ctrlKey&&!i.button}function yd(){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 v1(){return navigator.maxTouchPoints||"ontouchstart"in this}function gl(i){for(;!i.__brush;)if(!(i=i.parentNode))return;return i.__brush}function x1(i){return i[0][0]===i[1][0]||i[0][1]===i[1][1]}function yl(i){var a=i.__brush;return a?a.dim.output(a.selection):null}function w1(){return Ac(fl)}function k1(){return Ac(pl)}function E1(){return Ac(fd)}function Ac(i){var a,s=yd,u=ko,p=v1,g=!0,x=on("start","brush","end"),w=6;function S(V){var X=V.property("__brush",G).selectAll(".overlay").data([Sc("overlay")]);X.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",wo.overlay).merge(X).each(function(){var ct=gl(this).extent;Sn(this).attr("x",ct[0][0]).attr("y",ct[0][1]).attr("width",ct[1][0]-ct[0][0]).attr("height",ct[1][1]-ct[0][1])}),V.selectAll(".selection").data([Sc("selection")]).enter().append("rect").attr("class","selection").attr("cursor",wo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var dt=V.selectAll(".handle").data(i.handles,function(ct){return ct.type});dt.exit().remove(),dt.enter().append("rect").attr("class",function(ct){return"handle handle--"+ct.type}).attr("cursor",function(ct){return wo[ct.type]}),V.each(C).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",F).filter(p).on("touchstart.brush",F).on("touchmove.brush",H).on("touchend.brush touchcancel.brush",it).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function C(){var V=Sn(this),X=gl(this).selection;X?(V.selectAll(".selection").style("display",null).attr("x",X[0][0]).attr("y",X[0][1]).attr("width",X[1][0]-X[0][0]).attr("height",X[1][1]-X[0][1]),V.selectAll(".handle").style("display",null).attr("x",function(dt){return dt.type[dt.type.length-1]==="e"?X[1][0]-w/2:X[0][0]-w/2}).attr("y",function(dt){return dt.type[0]==="s"?X[1][1]-w/2:X[0][1]-w/2}).attr("width",function(dt){return dt.type==="n"||dt.type==="s"?X[1][0]-X[0][0]+w:w}).attr("height",function(dt){return dt.type==="e"||dt.type==="w"?X[1][1]-X[0][1]+w:w})):V.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function R(V,X,dt){var ct=V.__brush.emitter;return!ct||dt&&ct.clean?new j(V,X,dt):ct}function j(V,X,dt){this.that=V,this.args=X,this.state=V.__brush,this.active=0,this.clean=dt}function F(V){if((!a||V.touches)&&u.apply(this,arguments)){var X,dt,ct,lt,bt,Et,ne,ve,Zt,Ht,qt,Wt=this,Tt=V.target.__data__.type,Ut=(g&&V.metaKey?Tt="overlay":Tt)==="selection"?Eu:g&&V.altKey?Ns:ba,Jt=i===pl?null:pd[Tt],le=i===fl?null:gd[Tt],Ae=gl(Wt),He=Ae.extent,Ke=Ae.selection,yr=He[0][0],Je=He[0][1],Hr=He[1][0],Gr=He[1][1],Nr=0,Fr=0,An=Jt&&le&&g&&V.shiftKey,cn=Array.from(V.touches||[V],hn=>{const ji=hn.identifier;return(hn=ha(hn,Wt)).point0=hn.slice(),hn.identifier=ji,hn});ro(Wt);var Ba=R(Wt,arguments,!0).beforestart();if(Tt==="overlay"){Ke&&(Zt=!0);const hn=[cn[0],cn[1]||cn[0]];Ae.selection=Ke=[[X=i===pl?yr:Fi(hn[0][0],hn[1][0]),ct=i===fl?Je:Fi(hn[0][1],hn[1][1])],[bt=i===pl?Hr:Hi(hn[0][0],hn[1][0]),ne=i===fl?Gr:Hi(hn[0][1],hn[1][1])]],cn.length>1&&Xc(V)}else X=Ke[0][0],ct=Ke[0][1],bt=Ke[1][0],ne=Ke[1][1];dt=X,lt=ct,Et=bt,ve=ne;var ac=Sn(Wt).attr("pointer-events","none"),Do=ac.selectAll(".overlay").attr("cursor",wo[Tt]);if(V.touches)Ba.moved=Im,Ba.ended=Nm;else{var iu=Sn(V.view).on("mousemove.brush",Im,!0).on("mouseup.brush",Nm,!0);g&&iu.on("keydown.brush",S5,!0).on("keyup.brush",A5,!0),mo(V.view)}C.call(Wt),Ba.start(V,Ut.name)}function Im(hn){for(const ji of hn.changedTouches||[hn])for(const Kh of cn)Kh.identifier===ji.identifier&&(Kh.cur=ha(ji,Wt));if(An&&!Ht&&!qt&&cn.length===1){const ji=cn[0];da(ji.cur[0]-ji[0])>da(ji.cur[1]-ji[1])?qt=!0:Ht=!0}for(const ji of cn)ji.cur&&(ji[0]=ji.cur[0],ji[1]=ji.cur[1]);Zt=!0,ku(hn),Xc(hn)}function Xc(hn){const ji=cn[0],Kh=ji.point0;var oc;switch(Nr=ji[0]-Kh[0],Fr=ji[1]-Kh[1],Ut){case dl:case Eu:Jt&&(Nr=Hi(yr-X,Fi(Hr-bt,Nr)),dt=X+Nr,Et=bt+Nr),le&&(Fr=Hi(Je-ct,Fi(Gr-ne,Fr)),lt=ct+Fr,ve=ne+Fr);break;case ba:cn[1]?(Jt&&(dt=Hi(yr,Fi(Hr,cn[0][0])),Et=Hi(yr,Fi(Hr,cn[1][0])),Jt=1),le&&(lt=Hi(Je,Fi(Gr,cn[0][1])),ve=Hi(Je,Fi(Gr,cn[1][1])),le=1)):(Jt<0?(Nr=Hi(yr-X,Fi(Hr-X,Nr)),dt=X+Nr,Et=bt):Jt>0&&(Nr=Hi(yr-bt,Fi(Hr-bt,Nr)),dt=X,Et=bt+Nr),le<0?(Fr=Hi(Je-ct,Fi(Gr-ct,Fr)),lt=ct+Fr,ve=ne):le>0&&(Fr=Hi(Je-ne,Fi(Gr-ne,Fr)),lt=ct,ve=ne+Fr));break;case Ns:Jt&&(dt=Hi(yr,Fi(Hr,X-Nr*Jt)),Et=Hi(yr,Fi(Hr,bt+Nr*Jt))),le&&(lt=Hi(Je,Fi(Gr,ct-Fr*le)),ve=Hi(Je,Fi(Gr,ne+Fr*le)))}Et<dt&&(Jt*=-1,oc=X,X=bt,bt=oc,oc=dt,dt=Et,Et=oc,Tt in _1&&Do.attr("cursor",wo[Tt=_1[Tt]])),ve<lt&&(le*=-1,oc=ct,ct=ne,ne=oc,oc=lt,lt=ve,ve=oc,Tt in b1&&Do.attr("cursor",wo[Tt=b1[Tt]])),Ae.selection&&(Ke=Ae.selection),Ht&&(dt=Ke[0][0],Et=Ke[1][0]),qt&&(lt=Ke[0][1],ve=Ke[1][1]),Ke[0][0]===dt&&Ke[0][1]===lt&&Ke[1][0]===Et&&Ke[1][1]===ve||(Ae.selection=[[dt,lt],[Et,ve]],C.call(Wt),Ba.brush(hn,Ut.name))}function Nm(hn){if(y1(hn),hn.touches){if(hn.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500)}else _o(hn.view,Zt),iu.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ac.attr("pointer-events","all"),Do.attr("cursor",wo.overlay),Ae.selection&&(Ke=Ae.selection),x1(Ke)&&(Ae.selection=null,C.call(Wt)),Ba.end(hn,Ut.name)}function S5(hn){switch(hn.keyCode){case 16:An=Jt&≤break;case 18:Ut===ba&&(Jt&&(bt=Et-Nr*Jt,X=dt+Nr*Jt),le&&(ne=ve-Fr*le,ct=lt+Fr*le),Ut=Ns,Xc(hn));break;case 32:Ut!==ba&&Ut!==Ns||(Jt<0?bt=Et-Nr:Jt>0&&(X=dt-Nr),le<0?ne=ve-Fr:le>0&&(ct=lt-Fr),Ut=dl,Do.attr("cursor",wo.selection),Xc(hn));break;default:return}ku(hn)}function A5(hn){switch(hn.keyCode){case 16:An&&(Ht=qt=An=!1,Xc(hn));break;case 18:Ut===Ns&&(Jt<0?bt=Et:Jt>0&&(X=dt),le<0?ne=ve:le>0&&(ct=lt),Ut=ba,Xc(hn));break;case 32:Ut===dl&&(hn.altKey?(Jt&&(bt=Et-Nr*Jt,X=dt+Nr*Jt),le&&(ne=ve-Fr*le,ct=lt+Fr*le),Ut=Ns):(Jt<0?bt=Et:Jt>0&&(X=dt),le<0?ne=ve:le>0&&(ct=lt),Ut=ba),Do.attr("cursor",wo[Tt]),Xc(hn));break;default:return}ku(hn)}}function H(V){R(this,arguments).moved(V)}function it(V){R(this,arguments).ended(V)}function G(){var V=this.__brush||{selection:null};return V.extent=Tu(s.apply(this,arguments)),V.dim=i,V}return S.move=function(V,X,dt){V.tween?V.on("start.brush",function(ct){R(this,arguments).beforestart().start(ct)}).on("interrupt.brush end.brush",function(ct){R(this,arguments).end(ct)}).tween("brush",function(){var ct=this,lt=ct.__brush,bt=R(ct,arguments),Et=lt.selection,ne=i.input(typeof X=="function"?X.apply(this,arguments):X,lt.extent),ve=en(Et,ne);function Zt(Ht){lt.selection=Ht===1&&ne===null?null:ve(Ht),C.call(ct),bt.brush()}return Et!==null&&ne!==null?Zt:Zt(1)}):V.each(function(){var ct=this,lt=arguments,bt=ct.__brush,Et=i.input(typeof X=="function"?X.apply(ct,lt):X,bt.extent),ne=R(ct,lt).beforestart();ro(ct),bt.selection=Et===null?null:Et,C.call(ct),ne.start(dt).brush(dt).end(dt)})},S.clear=function(V,X){S.move(V,null,X)},j.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function(V,X){return this.starting?(this.starting=!1,this.emit("start",V,X)):this.emit("brush",V),this},brush:function(V,X){return this.emit("brush",V,X),this},end:function(V,X){return--this.active==0&&(delete this.state.emitter,this.emit("end",V,X)),this},emit:function(V,X,dt){var ct=Sn(this.that).datum();x.call(V,this.that,new wu(V,{sourceEvent:X,target:S,selection:i.output(this.state.selection),mode:dt,dispatch:x}),ct)}},S.extent=function(V){return arguments.length?(s=typeof V=="function"?V:xu(Tu(V)),S):s},S.filter=function(V){return arguments.length?(u=typeof V=="function"?V:xu(!!V),S):u},S.touchable=function(V){return arguments.length?(p=typeof V=="function"?V:xu(!!V),S):p},S.handleSize=function(V){return arguments.length?(w=+V,S):w},S.keyModifiers=function(V){return arguments.length?(g=!!V,S):g},S.on=function(){var V=x.on.apply(x,arguments);return V===x?S:V},S}var T1=Math.abs,is=Math.cos,Ho=Math.sin,ml=Math.PI,as=ml/2,ja=2*ml,_l=Math.max,Cc=1e-12;function os(i,a){return Array.from({length:a-i},(s,u)=>i+u)}function Ic(i){return function(a,s){return i(a.source.value+a.target.value,s.source.value+s.target.value)}}function Su(){return qo(!1,!1)}function Au(){return qo(!1,!0)}function Cu(){return qo(!0,!1)}function qo(i,a){var s=0,u=null,p=null,g=null;function x(w){var S,C=w.length,R=new Array(C),j=os(0,C),F=new Array(C*C),H=new Array(C),it=0;w=Float64Array.from({length:C*C},a?(G,V)=>w[V%C][V/C|0]:(G,V)=>w[V/C|0][V%C]);for(let G=0;G<C;++G){let V=0;for(let X=0;X<C;++X)V+=w[G*C+X]+i*w[X*C+G];it+=R[G]=V}S=(it=_l(0,ja-s*C)/it)?s:ja/C;{let G=0;u&&j.sort((V,X)=>u(R[V],R[X]));for(const V of j){const X=G;if(i){const dt=os(1+~C,C).filter(ct=>ct<0?w[~ct*C+V]:w[V*C+ct]);p&&dt.sort((ct,lt)=>p(ct<0?-w[~ct*C+V]:w[V*C+ct],lt<0?-w[~lt*C+V]:w[V*C+lt]));for(const ct of dt)ct<0?(F[~ct*C+V]||(F[~ct*C+V]={source:null,target:null})).target={index:V,startAngle:G,endAngle:G+=w[~ct*C+V]*it,value:w[~ct*C+V]}:(F[V*C+ct]||(F[V*C+ct]={source:null,target:null})).source={index:V,startAngle:G,endAngle:G+=w[V*C+ct]*it,value:w[V*C+ct]};H[V]={index:V,startAngle:X,endAngle:G,value:R[V]}}else{const dt=os(0,C).filter(ct=>w[V*C+ct]||w[ct*C+V]);p&&dt.sort((ct,lt)=>p(w[V*C+ct],w[V*C+lt]));for(const ct of dt){let lt;if(V<ct?(lt=F[V*C+ct]||(F[V*C+ct]={source:null,target:null}),lt.source={index:V,startAngle:G,endAngle:G+=w[V*C+ct]*it,value:w[V*C+ct]}):(lt=F[ct*C+V]||(F[ct*C+V]={source:null,target:null}),lt.target={index:V,startAngle:G,endAngle:G+=w[V*C+ct]*it,value:w[V*C+ct]},V===ct&&(lt.source=lt.target)),lt.source&<.target&<.source.value<lt.target.value){const bt=lt.source;lt.source=lt.target,lt.target=bt}}H[V]={index:V,startAngle:X,endAngle:G,value:R[V]}}G+=S}}return(F=Object.values(F)).groups=H,g?F.sort(g):F}return x.padAngle=function(w){return arguments.length?(s=_l(0,w),x):s},x.sortGroups=function(w){return arguments.length?(u=w,x):u},x.sortSubgroups=function(w){return arguments.length?(p=w,x):p},x.sortChords=function(w){return arguments.length?(w==null?g=null:(g=Ic(w))._=w,x):g&&g._},x}const bl=Math.PI,Ls=2*bl,$a=1e-6,Iu=Ls-$a;function Nc(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Nu(){return new Nc}Nc.prototype=Nu.prototype={constructor:Nc,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,x=this._y1,w=s-i,S=u-a,C=g-i,R=x-a,j=C*C+R*R;if(p<0)throw new Error("negative radius: "+p);if(this._x1===null)this._+="M"+(this._x1=i)+","+(this._y1=a);else if(j>$a)if(Math.abs(R*w-S*C)>$a&&p){var F=s-g,H=u-x,it=w*w+S*S,G=F*F+H*H,V=Math.sqrt(it),X=Math.sqrt(j),dt=p*Math.tan((bl-Math.acos((it+j-G)/(2*V*X)))/2),ct=dt/X,lt=dt/V;Math.abs(ct-1)>$a&&(this._+="L"+(i+ct*C)+","+(a+ct*R)),this._+="A"+p+","+p+",0,0,"+ +(R*F>C*H)+","+(this._x1=i+lt*w)+","+(this._y1=a+lt*S)}else this._+="L"+(this._x1=i)+","+(this._y1=a)},arc:function(i,a,s,u,p,g){i=+i,a=+a,g=!!g;var x=(s=+s)*Math.cos(u),w=s*Math.sin(u),S=i+x,C=a+w,R=1^g,j=g?u-p:p-u;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+S+","+C:(Math.abs(this._x1-S)>$a||Math.abs(this._y1-C)>$a)&&(this._+="L"+S+","+C),s&&(j<0&&(j=j%Ls+Ls),j>Iu?this._+="A"+s+","+s+",0,1,"+R+","+(i-x)+","+(a-w)+"A"+s+","+s+",0,1,"+R+","+(this._x1=S)+","+(this._y1=C):j>$a&&(this._+="A"+s+","+s+",0,"+ +(j>=bl)+","+R+","+(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 Wo=Nu;var md=Array.prototype.slice;function Eo(i){return function(){return i}}function S1(i){return i.source}function A1(i){return i.target}function Lu(i){return i.radius}function Ms(i){return i.startAngle}function bi(i){return i.endAngle}function C1(){return 0}function Ds(){return 10}function Mu(i){var a=S1,s=A1,u=Lu,p=Lu,g=Ms,x=bi,w=C1,S=null;function C(){var R,j=a.apply(this,arguments),F=s.apply(this,arguments),H=w.apply(this,arguments)/2,it=md.call(arguments),G=+u.apply(this,(it[0]=j,it)),V=g.apply(this,it)-as,X=x.apply(this,it)-as,dt=+p.apply(this,(it[0]=F,it)),ct=g.apply(this,it)-as,lt=x.apply(this,it)-as;if(S||(S=R=Wo()),H>Cc&&(T1(X-V)>2*H+Cc?X>V?(V+=H,X-=H):(V-=H,X+=H):V=X=(V+X)/2,T1(lt-ct)>2*H+Cc?lt>ct?(ct+=H,lt-=H):(ct-=H,lt+=H):ct=lt=(ct+lt)/2),S.moveTo(G*is(V),G*Ho(V)),S.arc(0,0,G,V,X),V!==ct||X!==lt)if(i){var bt=+i.apply(this,arguments),Et=dt-bt,ne=(ct+lt)/2;S.quadraticCurveTo(0,0,Et*is(ct),Et*Ho(ct)),S.lineTo(dt*is(ne),dt*Ho(ne)),S.lineTo(Et*is(lt),Et*Ho(lt))}else S.quadraticCurveTo(0,0,dt*is(ct),dt*Ho(ct)),S.arc(0,0,dt,ct,lt);if(S.quadraticCurveTo(0,0,G*is(V),G*Ho(V)),S.closePath(),R)return S=null,R+""||null}return i&&(C.headRadius=function(R){return arguments.length?(i=typeof R=="function"?R:Eo(+R),C):i}),C.radius=function(R){return arguments.length?(u=p=typeof R=="function"?R:Eo(+R),C):u},C.sourceRadius=function(R){return arguments.length?(u=typeof R=="function"?R:Eo(+R),C):u},C.targetRadius=function(R){return arguments.length?(p=typeof R=="function"?R:Eo(+R),C):p},C.startAngle=function(R){return arguments.length?(g=typeof R=="function"?R:Eo(+R),C):g},C.endAngle=function(R){return arguments.length?(x=typeof R=="function"?R:Eo(+R),C):x},C.padAngle=function(R){return arguments.length?(w=typeof R=="function"?R:Eo(+R),C):w},C.source=function(R){return arguments.length?(a=R,C):a},C.target=function(R){return arguments.length?(s=R,C):s},C.context=function(R){return arguments.length?(S=R==null?null:R,C):S},C}function I1(){return Mu()}function N1(){return Mu(Ds)}const Du=Math.PI/180,Ou=180/Math.PI,To=.96422,vl=.82521,L1=4/29,Ru=6/29,Bu=3*Ru*Ru;function Fu(i){if(i instanceof Ha)return new Ha(i.l,i.a,i.b,i.opacity);if(i instanceof Oi)return M1(i);i instanceof qn||(i=Gn(i));var a,s,u=Os(i.r),p=Os(i.g),g=Os(i.b),x=Pu((.2225045*u+.7168786*p+.0606169*g)/1);return u===p&&p===g?a=s=x:(a=Pu((.4360747*u+.3850649*p+.1430804*g)/To),s=Pu((.0139322*u+.0971045*p+.7141733*g)/vl)),new Ha(116*x-16,500*(a-x),200*(x-s),i.opacity)}function _d(i,a){return new Ha(i,0,0,a==null?1:a)}function xl(i,a,s,u){return arguments.length===1?Fu(i):new Ha(i,a,s,u==null?1:u)}function Ha(i,a,s,u){this.l=+i,this.a=+a,this.b=+s,this.opacity=+u}function Pu(i){return i>.008856451679035631?Math.pow(i,1/3):i/Bu+L1}function Uu(i){return i>Ru?i*i*i:Bu*(i-L1)}function zu(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function Os(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function wl(i){if(i instanceof Oi)return new Oi(i.h,i.c,i.l,i.opacity);if(i instanceof Ha||(i=Fu(i)),i.a===0&&i.b===0)return new Oi(NaN,0<i.l&&i.l<100?0:NaN,i.l,i.opacity);var a=Math.atan2(i.b,i.a)*Ou;return new Oi(a<0?a+360:a,Math.sqrt(i.a*i.a+i.b*i.b),i.l,i.opacity)}function bd(i,a,s,u){return arguments.length===1?wl(i):new Oi(s,a,i,u==null?1:u)}function qa(i,a,s,u){return arguments.length===1?wl(i):new Oi(i,a,s,u==null?1:u)}function Oi(i,a,s,u){this.h=+i,this.c=+a,this.l=+s,this.opacity=+u}function M1(i){if(isNaN(i.h))return new Ha(i.l,0,0,i.opacity);var a=i.h*Du;return new Ha(i.l,Math.cos(a)*i.c,Math.sin(a)*i.c,i.opacity)}$i(Ha,xl,Li(Tr,{brighter:function(i){return new Ha(this.l+18*(i==null?1:i),this.a,this.b,this.opacity)},darker:function(i){return new Ha(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 qn(zu(3.1338561*(a=To*Uu(a))-1.6168667*(i=1*Uu(i))-.4906146*(s=vl*Uu(s))),zu(-.9787684*a+1.9161415*i+.033454*s),zu(.0719453*a-.2289914*i+1.4052427*s),this.opacity)}})),$i(Oi,qa,Li(Tr,{brighter:function(i){return new Oi(this.h,this.c,this.l+18*(i==null?1:i),this.opacity)},darker:function(i){return new Oi(this.h,this.c,this.l-18*(i==null?1:i),this.opacity)},rgb:function(){return M1(this).rgb()}}));var D1=-.14861,Yu=1.78277,Lc=-.29227,Pi=-.90649,So=1.97294,Ao=So*Pi,Rs=So*Yu,O1=Yu*Lc-Pi*D1;function ju(i){if(i instanceof zn)return new zn(i.h,i.s,i.l,i.opacity);i instanceof qn||(i=Gn(i));var a=i.r/255,s=i.g/255,u=i.b/255,p=(O1*u+Ao*a-Rs*s)/(O1+Ao-Rs),g=u-p,x=(So*(s-p)-Lc*g)/Pi,w=Math.sqrt(x*x+g*g)/(So*p*(1-p)),S=w?Math.atan2(x,g)*Ou-120:NaN;return new zn(S<0?S+360:S,w,p,i.opacity)}function Wa(i,a,s,u){return arguments.length===1?ju(i):new zn(i,a,s,u==null?1:u)}function zn(i,a,s,u){this.h=+i,this.s=+a,this.l=+s,this.opacity=+u}$i(zn,Wa,Li(Tr,{brighter:function(i){return i=i==null?_a:Math.pow(_a,i),new zn(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?Qi:Math.pow(Qi,i),new zn(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=isNaN(this.h)?0:(this.h+120)*Du,a=+this.l,s=isNaN(this.s)?0:this.s*a*(1-a),u=Math.cos(i),p=Math.sin(i);return new qn(255*(a+s*(D1*u+Yu*p)),255*(a+s*(Lc*u+Pi*p)),255*(a+s*(So*u)),this.opacity)}}));var $u=Array.prototype.slice;function R1(i,a){return i-a}const Co=i=>()=>i;function B1(i,a){for(var s,u=-1,p=a.length;++u<p;)if(s=Bs(i,a[u]))return s;return 0}function Bs(i,a){for(var s=a[0],u=a[1],p=-1,g=0,x=i.length,w=x-1;g<x;w=g++){var S=i[g],C=S[0],R=S[1],j=i[w],F=j[0],H=j[1];if(vd(S,j,a))return 0;R>u!=H>u&&s<(F-C)*(u-R)/(H-R)+C&&(p=-p)}return p}function vd(i,a,s){var u,p,g,x;return function(w,S,C){return(S[0]-w[0])*(C[1]-w[1])==(C[0]-w[0])*(S[1]-w[1])}(i,a,s)&&(p=i[u=+(i[0]===a[0])],g=s[u],x=a[u],p<=g&&g<=x||x<=g&&g<=p)}function Hu(){}var Io=[[],[[[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 F1(){var i=1,a=1,s=Pe,u=w;function p(S){var C=s(S);if(Array.isArray(C))C=C.slice().sort(R1);else{const R=at(S),j=Rt(R[0],R[1],C);C=wt(Math.floor(R[0]/j)*j,Math.floor(R[1]/j-1)*j,C)}return C.map(R=>g(S,R))}function g(S,C){var R=[],j=[];return function(F,H,it){var G,V,X,dt,ct,lt,bt=new Array,Et=new Array;for(G=V=-1,dt=F[0]>=H,Io[dt<<1].forEach(ne);++G<i-1;)X=dt,dt=F[G+1]>=H,Io[X|dt<<1].forEach(ne);for(Io[dt<<0].forEach(ne);++V<a-1;){for(G=-1,dt=F[V*i+i]>=H,ct=F[V*i]>=H,Io[dt<<1|ct<<2].forEach(ne);++G<i-1;)X=dt,dt=F[V*i+i+G+1]>=H,lt=ct,ct=F[V*i+G+1]>=H,Io[X|dt<<1|ct<<2|lt<<3].forEach(ne);Io[dt|ct<<3].forEach(ne)}for(G=-1,ct=F[V*i]>=H,Io[ct<<2].forEach(ne);++G<i-1;)lt=ct,ct=F[V*i+G+1]>=H,Io[ct<<2|lt<<3].forEach(ne);function ne(ve){var Zt,Ht,qt=[ve[0][0]+G,ve[0][1]+V],Wt=[ve[1][0]+G,ve[1][1]+V],Tt=x(qt),Ut=x(Wt);(Zt=Et[Tt])?(Ht=bt[Ut])?(delete Et[Zt.end],delete bt[Ht.start],Zt===Ht?(Zt.ring.push(Wt),it(Zt.ring)):bt[Zt.start]=Et[Ht.end]={start:Zt.start,end:Ht.end,ring:Zt.ring.concat(Ht.ring)}):(delete Et[Zt.end],Zt.ring.push(Wt),Et[Zt.end=Ut]=Zt):(Zt=bt[Ut])?(Ht=Et[Tt])?(delete bt[Zt.start],delete Et[Ht.end],Zt===Ht?(Zt.ring.push(Wt),it(Zt.ring)):bt[Ht.start]=Et[Zt.end]={start:Ht.start,end:Zt.end,ring:Ht.ring.concat(Zt.ring)}):(delete bt[Zt.start],Zt.ring.unshift(qt),bt[Zt.start=Tt]=Zt):bt[Tt]=Et[Ut]={start:Tt,end:Ut,ring:[qt,Wt]}}Io[ct<<3].forEach(ne)}(S,C,function(F){u(F,S,C),function(H){for(var it=0,G=H.length,V=H[G-1][1]*H[0][0]-H[G-1][0]*H[0][1];++it<G;)V+=H[it-1][1]*H[it][0]-H[it-1][0]*H[it][1];return V}(F)>0?R.push([F]):j.push(F)}),j.forEach(function(F){for(var H,it=0,G=R.length;it<G;++it)if(B1((H=R[it])[0],F)!==-1)return void H.push(F)}),{type:"MultiPolygon",value:C,coordinates:R}}function x(S){return 2*S[0]+S[1]*(i+1)*4}function w(S,C,R){S.forEach(function(j){var F,H=j[0],it=j[1],G=0|H,V=0|it,X=C[V*i+G];H>0&&H<i&&G===H&&(F=C[V*i+G-1],j[0]=H+(R-F)/(X-F)-.5),it>0&&it<a&&V===it&&(F=C[(V-1)*i+G],j[1]=it+(R-F)/(X-F)-.5)})}return p.contour=g,p.size=function(S){if(!arguments.length)return[i,a];var C=Math.floor(S[0]),R=Math.floor(S[1]);if(!(C>=0&&R>=0))throw new Error("invalid size");return i=C,a=R,p},p.thresholds=function(S){return arguments.length?(s=typeof S=="function"?S:Array.isArray(S)?Co($u.call(S)):Co(S),p):s},p.smooth=function(S){return arguments.length?(u=S?w:Hu,p):u===w},p}function ss(i,a,s){for(var u=i.width,p=i.height,g=1+(s<<1),x=0;x<p;++x)for(var w=0,S=0;w<u+s;++w)w<u&&(S+=i.data[w+x*u]),w>=s&&(w>=g&&(S-=i.data[w-g+x*u]),a.data[w-s+x*u]=S/Math.min(w+1,u-1+g-w,g))}function no(i,a,s){for(var u=i.width,p=i.height,g=1+(s<<1),x=0;x<u;++x)for(var w=0,S=0;w<p+s;++w)w<p&&(S+=i.data[x+w*u]),w>=s&&(w>=g&&(S-=i.data[x+(w-g)*u]),a.data[x+(w-s)*u]=S/Math.min(w+1,p-1+g-w,g))}function Ga(i){return i[0]}function kl(i){return i[1]}function qu(){return 1}function xd(){var i=Ga,a=kl,s=qu,u=960,p=500,g=20,x=2,w=3*g,S=u+2*w>>x,C=p+2*w>>x,R=Co(20);function j(X){var dt=new Float32Array(S*C),ct=new Float32Array(S*C),lt=Math.pow(2,-x);X.forEach(function(ne,ve,Zt){var Ht=(i(ne,ve,Zt)+w)*lt,qt=(a(ne,ve,Zt)+w)*lt,Wt=+s(ne,ve,Zt);if(Ht>=0&&Ht<S&&qt>=0&&qt<C){var Tt=Math.floor(Ht),Ut=Math.floor(qt),Jt=Ht-Tt-.5,le=qt-Ut-.5;dt[Tt+Ut*S]+=(1-Jt)*(1-le)*Wt,dt[Tt+1+Ut*S]+=Jt*(1-le)*Wt,dt[Tt+1+(Ut+1)*S]+=Jt*le*Wt,dt[Tt+(Ut+1)*S]+=(1-Jt)*le*Wt}}),ss({width:S,height:C,data:dt},{width:S,height:C,data:ct},g>>x),no({width:S,height:C,data:ct},{width:S,height:C,data:dt},g>>x),ss({width:S,height:C,data:dt},{width:S,height:C,data:ct},g>>x),no({width:S,height:C,data:ct},{width:S,height:C,data:dt},g>>x),ss({width:S,height:C,data:dt},{width:S,height:C,data:ct},g>>x),no({width:S,height:C,data:ct},{width:S,height:C,data:dt},g>>x);var bt=R(dt);if(!Array.isArray(bt)){var Et=Ze(dt);bt=Rt(0,Et,bt),(bt=De(0,Math.floor(Et/bt)*bt,bt)).shift()}return F1().thresholds(bt).size([S,C])(dt).map(F)}function F(X){return X.value*=Math.pow(2,-2*x),X.coordinates.forEach(H),X}function H(X){X.forEach(it)}function it(X){X.forEach(G)}function G(X){X[0]=X[0]*Math.pow(2,x)-w,X[1]=X[1]*Math.pow(2,x)-w}function V(){return S=u+2*(w=3*g)>>x,C=p+2*w>>x,j}return j.x=function(X){return arguments.length?(i=typeof X=="function"?X:Co(+X),j):i},j.y=function(X){return arguments.length?(a=typeof X=="function"?X:Co(+X),j):a},j.weight=function(X){return arguments.length?(s=typeof X=="function"?X:Co(+X),j):s},j.size=function(X){if(!arguments.length)return[u,p];var dt=+X[0],ct=+X[1];if(!(dt>=0&&ct>=0))throw new Error("invalid size");return u=dt,p=ct,V()},j.cellSize=function(X){if(!arguments.length)return 1<<x;if(!((X=+X)>=1))throw new Error("invalid cell size");return x=Math.floor(Math.log(X)/Math.LN2),V()},j.thresholds=function(X){return arguments.length?(R=typeof X=="function"?X:Array.isArray(X)?Co($u.call(X)):Co(X),j):R},j.bandwidth=function(X){if(!arguments.length)return Math.sqrt(g*(g+1));if(!((X=+X)>=0))throw new Error("invalid bandwidth");return g=Math.round((Math.sqrt(4*X*X+1)-1)/2),V()},j}const Yn=134217729;function cs(i,a,s,u,p){let g,x,w,S,C=a[0],R=u[0],j=0,F=0;R>C==R>-C?(g=C,C=a[++j]):(g=R,R=u[++F]);let H=0;if(j<i&&F<s)for(R>C==R>-C?(x=C+g,w=g-(x-C),C=a[++j]):(x=R+g,w=g-(x-R),R=u[++F]),g=x,w!==0&&(p[H++]=w);j<i&&F<s;)R>C==R>-C?(x=g+C,S=x-g,w=g-(x-S)+(C-S),C=a[++j]):(x=g+R,S=x-g,w=g-(x-S)+(R-S),R=u[++F]),g=x,w!==0&&(p[H++]=w);for(;j<i;)x=g+C,S=x-g,w=g-(x-S)+(C-S),C=a[++j],g=x,w!==0&&(p[H++]=w);for(;F<s;)x=g+R,S=x-g,w=g-(x-S)+(R-S),R=u[++F],g=x,w!==0&&(p[H++]=w);return g===0&&H!==0||(p[H++]=g),H}function io(i){return new Float64Array(i)}const ao=io(4),Wu=io(8),Gu=io(12),El=io(16),qi=io(4);function Mc(i,a,s,u,p,g){const x=(a-g)*(s-p),w=(i-p)*(u-g),S=x-w;if(x===0||w===0||x>0!=w>0)return S;const C=Math.abs(x+w);return Math.abs(S)>=33306690738754716e-32*C?S:-function(R,j,F,H,it,G,V){let X,dt,ct,lt,bt,Et,ne,ve,Zt,Ht,qt,Wt,Tt,Ut,Jt,le,Ae,He;const Ke=R-it,yr=F-it,Je=j-G,Hr=H-G;Ut=Ke*Hr,Et=Yn*Ke,ne=Et-(Et-Ke),ve=Ke-ne,Et=Yn*Hr,Zt=Et-(Et-Hr),Ht=Hr-Zt,Jt=ve*Ht-(Ut-ne*Zt-ve*Zt-ne*Ht),le=Je*yr,Et=Yn*Je,ne=Et-(Et-Je),ve=Je-ne,Et=Yn*yr,Zt=Et-(Et-yr),Ht=yr-Zt,Ae=ve*Ht-(le-ne*Zt-ve*Zt-ne*Ht),qt=Jt-Ae,bt=Jt-qt,ao[0]=Jt-(qt+bt)+(bt-Ae),Wt=Ut+qt,bt=Wt-Ut,Tt=Ut-(Wt-bt)+(qt-bt),qt=Tt-le,bt=Tt-qt,ao[1]=Tt-(qt+bt)+(bt-le),He=Wt+qt,bt=He-Wt,ao[2]=Wt-(He-bt)+(qt-bt),ao[3]=He;let Gr=function(Ba,ac){let Do=ac[0];for(let iu=1;iu<4;iu++)Do+=ac[iu];return Do}(0,ao),Nr=22204460492503146e-32*V;if(Gr>=Nr||-Gr>=Nr||(bt=R-Ke,X=R-(Ke+bt)+(bt-it),bt=F-yr,ct=F-(yr+bt)+(bt-it),bt=j-Je,dt=j-(Je+bt)+(bt-G),bt=H-Hr,lt=H-(Hr+bt)+(bt-G),X===0&&dt===0&&ct===0&<===0)||(Nr=11093356479670487e-47*V+33306690738754706e-32*Math.abs(Gr),Gr+=Ke*lt+Hr*X-(Je*ct+yr*dt),Gr>=Nr||-Gr>=Nr))return Gr;Ut=X*Hr,Et=Yn*X,ne=Et-(Et-X),ve=X-ne,Et=Yn*Hr,Zt=Et-(Et-Hr),Ht=Hr-Zt,Jt=ve*Ht-(Ut-ne*Zt-ve*Zt-ne*Ht),le=dt*yr,Et=Yn*dt,ne=Et-(Et-dt),ve=dt-ne,Et=Yn*yr,Zt=Et-(Et-yr),Ht=yr-Zt,Ae=ve*Ht-(le-ne*Zt-ve*Zt-ne*Ht),qt=Jt-Ae,bt=Jt-qt,qi[0]=Jt-(qt+bt)+(bt-Ae),Wt=Ut+qt,bt=Wt-Ut,Tt=Ut-(Wt-bt)+(qt-bt),qt=Tt-le,bt=Tt-qt,qi[1]=Tt-(qt+bt)+(bt-le),He=Wt+qt,bt=He-Wt,qi[2]=Wt-(He-bt)+(qt-bt),qi[3]=He;const Fr=cs(4,ao,4,qi,Wu);Ut=Ke*lt,Et=Yn*Ke,ne=Et-(Et-Ke),ve=Ke-ne,Et=Yn*lt,Zt=Et-(Et-lt),Ht=lt-Zt,Jt=ve*Ht-(Ut-ne*Zt-ve*Zt-ne*Ht),le=Je*ct,Et=Yn*Je,ne=Et-(Et-Je),ve=Je-ne,Et=Yn*ct,Zt=Et-(Et-ct),Ht=ct-Zt,Ae=ve*Ht-(le-ne*Zt-ve*Zt-ne*Ht),qt=Jt-Ae,bt=Jt-qt,qi[0]=Jt-(qt+bt)+(bt-Ae),Wt=Ut+qt,bt=Wt-Ut,Tt=Ut-(Wt-bt)+(qt-bt),qt=Tt-le,bt=Tt-qt,qi[1]=Tt-(qt+bt)+(bt-le),He=Wt+qt,bt=He-Wt,qi[2]=Wt-(He-bt)+(qt-bt),qi[3]=He;const An=cs(Fr,Wu,4,qi,Gu);Ut=X*lt,Et=Yn*X,ne=Et-(Et-X),ve=X-ne,Et=Yn*lt,Zt=Et-(Et-lt),Ht=lt-Zt,Jt=ve*Ht-(Ut-ne*Zt-ve*Zt-ne*Ht),le=dt*ct,Et=Yn*dt,ne=Et-(Et-dt),ve=dt-ne,Et=Yn*ct,Zt=Et-(Et-ct),Ht=ct-Zt,Ae=ve*Ht-(le-ne*Zt-ve*Zt-ne*Ht),qt=Jt-Ae,bt=Jt-qt,qi[0]=Jt-(qt+bt)+(bt-Ae),Wt=Ut+qt,bt=Wt-Ut,Tt=Ut-(Wt-bt)+(qt-bt),qt=Tt-le,bt=Tt-qt,qi[1]=Tt-(qt+bt)+(bt-le),He=Wt+qt,bt=He-Wt,qi[2]=Wt-(He-bt)+(qt-bt),qi[3]=He;const cn=cs(An,Gu,4,qi,El);return El[cn-1]}(i,a,s,u,p,g,C)}const Vu=Math.pow(2,-52),Dc=new Uint32Array(512);class Fs{static from(a,s=kd,u=Rc){const p=a.length,g=new Float64Array(2*p);for(let x=0;x<p;x++){const w=a[x];g[2*x]=s(w),g[2*x+1]=u(w)}return new Fs(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,x=a.length>>1;let w=1/0,S=1/0,C=-1/0,R=-1/0;for(let Ht=0;Ht<x;Ht++){const qt=a[2*Ht],Wt=a[2*Ht+1];qt<w&&(w=qt),Wt<S&&(S=Wt),qt>C&&(C=qt),Wt>R&&(R=Wt),this._ids[Ht]=Ht}const j=(w+C)/2,F=(S+R)/2;let H,it,G,V=1/0;for(let Ht=0;Ht<x;Ht++){const qt=Ps(j,F,a[2*Ht],a[2*Ht+1]);qt<V&&(H=Ht,V=qt)}const X=a[2*H],dt=a[2*H+1];V=1/0;for(let Ht=0;Ht<x;Ht++){if(Ht===H)continue;const qt=Ps(X,dt,a[2*Ht],a[2*Ht+1]);qt<V&&qt>0&&(it=Ht,V=qt)}let ct=a[2*it],lt=a[2*it+1],bt=1/0;for(let Ht=0;Ht<x;Ht++){if(Ht===H||Ht===it)continue;const qt=wd(X,dt,ct,lt,a[2*Ht],a[2*Ht+1]);qt<bt&&(G=Ht,bt=qt)}let Et=a[2*G],ne=a[2*G+1];if(bt===1/0){for(let Wt=0;Wt<x;Wt++)this._dists[Wt]=a[2*Wt]-a[0]||a[2*Wt+1]-a[1];Us(this._ids,this._dists,0,x-1);const Ht=new Uint32Array(x);let qt=0;for(let Wt=0,Tt=-1/0;Wt<x;Wt++){const Ut=this._ids[Wt];this._dists[Ut]>Tt&&(Ht[qt++]=Ut,Tt=this._dists[Ut])}return this.hull=Ht.subarray(0,qt),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(Mc(X,dt,ct,lt,Et,ne)<0){const Ht=it,qt=ct,Wt=lt;it=G,ct=Et,lt=ne,G=Ht,Et=qt,ne=Wt}const ve=function(Ht,qt,Wt,Tt,Ut,Jt){const le=Wt-Ht,Ae=Tt-qt,He=Ut-Ht,Ke=Jt-qt,yr=le*le+Ae*Ae,Je=He*He+Ke*Ke,Hr=.5/(le*Ke-Ae*He);return{x:Ht+(Ke*yr-Ae*Je)*Hr,y:qt+(le*Je-He*yr)*Hr}}(X,dt,ct,lt,Et,ne);this._cx=ve.x,this._cy=ve.y;for(let Ht=0;Ht<x;Ht++)this._dists[Ht]=Ps(a[2*Ht],a[2*Ht+1],ve.x,ve.y);Us(this._ids,this._dists,0,x-1),this._hullStart=H;let Zt=3;u[H]=s[G]=it,u[it]=s[H]=G,u[G]=s[it]=H,p[H]=0,p[it]=1,p[G]=2,g.fill(-1),g[this._hashKey(X,dt)]=H,g[this._hashKey(ct,lt)]=it,g[this._hashKey(Et,ne)]=G,this.trianglesLen=0,this._addTriangle(H,it,G,-1,-1,-1);for(let Ht,qt,Wt=0;Wt<this._ids.length;Wt++){const Tt=this._ids[Wt],Ut=a[2*Tt],Jt=a[2*Tt+1];if(Wt>0&&Math.abs(Ut-Ht)<=Vu&&Math.abs(Jt-qt)<=Vu||(Ht=Ut,qt=Jt,Tt===H||Tt===it||Tt===G))continue;let le=0;for(let Je=0,Hr=this._hashKey(Ut,Jt);Je<this._hashSize&&(le=g[(Hr+Je)%this._hashSize],le===-1||le===u[le]);Je++);le=s[le];let Ae,He=le;for(;Ae=u[He],Mc(Ut,Jt,a[2*He],a[2*He+1],a[2*Ae],a[2*Ae+1])>=0;)if(He=Ae,He===le){He=-1;break}if(He===-1)continue;let Ke=this._addTriangle(He,Tt,u[He],-1,-1,p[He]);p[Tt]=this._legalize(Ke+2),p[He]=Ke,Zt++;let yr=u[He];for(;Ae=u[yr],Mc(Ut,Jt,a[2*yr],a[2*yr+1],a[2*Ae],a[2*Ae+1])<0;)Ke=this._addTriangle(yr,Tt,Ae,p[Tt],-1,p[yr]),p[Tt]=this._legalize(Ke+2),u[yr]=yr,Zt--,yr=Ae;if(He===le)for(;Ae=s[He],Mc(Ut,Jt,a[2*Ae],a[2*Ae+1],a[2*He],a[2*He+1])<0;)Ke=this._addTriangle(Ae,Tt,He,-1,p[He],p[Ae]),this._legalize(Ke+2),p[Ae]=Ke,u[He]=He,Zt--,He=Ae;this._hullStart=s[Tt]=He,u[He]=s[yr]=Tt,u[Tt]=yr,g[this._hashKey(Ut,Jt)]=Tt,g[this._hashKey(a[2*He],a[2*He+1])]=He}this.hull=new Uint32Array(Zt);for(let Ht=0,qt=this._hullStart;Ht<Zt;Ht++)this.hull[Ht]=qt,qt=u[qt];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,x=0;for(;;){const w=u[a],S=a-a%3;if(x=S+(a+2)%3,w===-1){if(g===0)break;a=Dc[--g];continue}const C=w-w%3,R=S+(a+1)%3,j=C+(w+2)%3,F=s[x],H=s[a],it=s[R],G=s[j];if(P1(p[2*F],p[2*F+1],p[2*H],p[2*H+1],p[2*it],p[2*it+1],p[2*G],p[2*G+1])){s[a]=G,s[w]=F;const V=u[j];if(V===-1){let dt=this._hullStart;do{if(this._hullTri[dt]===j){this._hullTri[dt]=a;break}dt=this._hullPrev[dt]}while(dt!==this._hullStart)}this._link(a,V),this._link(w,u[x]),this._link(x,j);const X=C+(w+1)%3;g<Dc.length&&(Dc[g++]=X)}else{if(g===0)break;a=Dc[--g]}}return x}_link(a,s){this._halfedges[a]=s,s!==-1&&(this._halfedges[s]=a)}_addTriangle(a,s,u,p,g,x){const w=this.trianglesLen;return this._triangles[w]=a,this._triangles[w+1]=s,this._triangles[w+2]=u,this._link(w,p),this._link(w+1,g),this._link(w+2,x),this.trianglesLen+=3,w}}function Ps(i,a,s,u){const p=i-s,g=a-u;return p*p+g*g}function P1(i,a,s,u,p,g,x,w){const S=i-x,C=a-w,R=s-x,j=u-w,F=p-x,H=g-w,it=R*R+j*j,G=F*F+H*H;return S*(j*G-it*H)-C*(R*G-it*F)+(S*S+C*C)*(R*H-j*F)<0}function wd(i,a,s,u,p,g){const x=s-i,w=u-a,S=p-i,C=g-a,R=x*x+w*w,j=S*S+C*C,F=.5/(x*C-w*S),H=(C*R-w*j)*F,it=(x*j-S*R)*F;return H*H+it*it}function Us(i,a,s,u){if(u-s<=20)for(let p=s+1;p<=u;p++){const g=i[p],x=a[g];let w=p-1;for(;w>=s&&a[i[w]]>x;)i[w+1]=i[w--];i[w+1]=g}else{let p=s+1,g=u;Oc(i,s+u>>1,p),a[i[s]]>a[i[u]]&&Oc(i,s,u),a[i[p]]>a[i[u]]&&Oc(i,p,u),a[i[s]]>a[i[p]]&&Oc(i,s,p);const x=i[p],w=a[x];for(;;){do p++;while(a[i[p]]<w);do g--;while(a[i[g]]>w);if(g<p)break;Oc(i,p,g)}i[s+1]=i[g],i[g]=x,u-p+1>=g-s?(Us(i,a,p,u),Us(i,a,s,g-1)):(Us(i,a,s,g-1),Us(i,a,p,u))}}function Oc(i,a,s){const u=i[a];i[a]=i[s],i[s]=u}function kd(i){return i[0]}function Rc(i){return i[1]}const U1=1e-6;class Wi{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)>U1||Math.abs(this._y1-g)>U1)&&(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 Zu{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 z1{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 H,it,G=0,V=0,X=u.length;G<X;G+=3,V+=2){const dt=2*u[G],ct=2*u[G+1],lt=2*u[G+2],bt=a[dt],Et=a[dt+1],ne=a[ct],ve=a[ct+1],Zt=a[lt],Ht=a[lt+1],qt=ne-bt,Wt=ve-Et,Tt=Zt-bt,Ut=Ht-Et,Jt=2*(qt*Ut-Wt*Tt);if(Math.abs(Jt)<1e-9){let le=1e9;const Ae=2*u[0];le*=Math.sign((a[Ae]-bt)*Ut-(a[Ae+1]-Et)*Tt),H=(bt+Zt)/2-le*Ut,it=(Et+Ht)/2+le*Tt}else{const le=1/Jt,Ae=qt*qt+Wt*Wt,He=Tt*Tt+Ut*Ut;H=bt+(Ut*Ae-Wt*He)*le,it=Et+(qt*He-Tt*Ae)*le}g[V]=H,g[V+1]=it}let x,w,S,C=s[s.length-1],R=4*C,j=a[2*C],F=a[2*C+1];p.fill(0);for(let H=0;H<s.length;++H)C=s[H],x=R,w=j,S=F,R=4*C,j=a[2*C],F=a[2*C+1],p[x+2]=p[R]=S-F,p[x+3]=p[R+1]=j-w}render(a){const s=a==null?a=new Wi:void 0,{delaunay:{halfedges:u,inedges:p,hull:g},circumcenters:x,vectors:w}=this;if(g.length<=1)return null;for(let R=0,j=u.length;R<j;++R){const F=u[R];if(F<R)continue;const H=2*Math.floor(R/3),it=2*Math.floor(F/3),G=x[H],V=x[H+1],X=x[it],dt=x[it+1];this._renderSegment(G,V,X,dt,a)}let S,C=g[g.length-1];for(let R=0;R<g.length;++R){S=C,C=g[R];const j=2*Math.floor(p[C]/3),F=x[j],H=x[j+1],it=4*S,G=this._project(F,H,w[it+2],w[it+3]);G&&this._renderSegment(F,H,G[0],G[1],a)}return s&&s.value()}renderBounds(a){const s=a==null?a=new Wi: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 Wi: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 x=2;x<g;x+=2)p[x]===p[x-2]&&p[x+1]===p[x-1]||s.lineTo(p[x],p[x+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 Zu;return this.renderCell(a,s),s.value()}_renderSegment(a,s,u,p,g){let x;const w=this._regioncode(a,s),S=this._regioncode(u,p);w===0&&S===0?(g.moveTo(a,s),g.lineTo(u,p)):(x=this._clipSegment(a,s,u,p,w,S))&&(g.moveTo(x[0],x[1]),g.lineTo(x[2],x[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,x=s.length;g<x;g+=2)for(let w=0,S=p.length;w<S;w+=2)if(s[g]==p[w]&&s[g+1]==p[w+1]&&s[(g+2)%x]==p[(w+S-2)%S]&&s[(g+3)%x]==p[(w+S-1)%S]){yield u;break t}}}}_cell(a){const{circumcenters:s,delaunay:{inedges:u,halfedges:p,triangles:g}}=this,x=u[a];if(x===-1)return null;const w=[];let S=x;do{const C=Math.floor(S/3);if(w.push(s[2*C],s[2*C+1]),S=S%3==2?S-2:S+1,g[S]!==a)break;S=p[S]}while(S!==x&&S!==-1);return w}_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,x,w,S=null,C=s[u-2],R=s[u-1],j=this._regioncode(C,R),F=0;for(let H=0;H<u;H+=2)if(p=C,g=R,C=s[H],R=s[H+1],x=j,j=this._regioncode(C,R),x===0&&j===0)w=F,F=0,S?S.push(C,R):S=[C,R];else{let it,G,V,X,dt;if(x===0){if((it=this._clipSegment(p,g,C,R,x,j))===null)continue;[G,V,X,dt]=it}else{if((it=this._clipSegment(C,R,p,g,j,x))===null)continue;[X,dt,G,V]=it,w=F,F=this._edgecode(G,V),w&&F&&this._edge(a,w,F,S,S.length),S?S.push(G,V):S=[G,V]}w=F,F=this._edgecode(X,dt),w&&F&&this._edge(a,w,F,S,S.length),S?S.push(X,dt):S=[X,dt]}if(S)w=F,F=this._edgecode(S[0],S[1]),w&&F&&this._edge(a,w,F,S,S.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 S}_clipSegment(a,s,u,p,g,x){for(;;){if(g===0&&x===0)return[a,s,u,p];if(g&x)return null;let w,S,C=g||x;8&C?(w=a+(u-a)*(this.ymax-s)/(p-s),S=this.ymax):4&C?(w=a+(u-a)*(this.ymin-s)/(p-s),S=this.ymin):2&C?(S=s+(p-s)*(this.xmax-a)/(u-a),w=this.xmax):(S=s+(p-s)*(this.xmin-a)/(u-a),w=this.xmin),g?(a=w,s=S,g=this._regioncode(a,s)):(u=w,p=S,x=this._regioncode(u,p))}}_clipInfinite(a,s,u,p,g,x){let w,S=Array.from(s);if((w=this._project(S[0],S[1],u,p))&&S.unshift(w[0],w[1]),(w=this._project(S[S.length-2],S[S.length-1],g,x))&&S.push(w[0],w[1]),S=this._clipFinite(a,S))for(let C,R=0,j=S.length,F=this._edgecode(S[j-2],S[j-1]);R<j;R+=2)C=F,F=this._edgecode(S[R],S[R+1]),C&&F&&(R=this._edge(a,C,F,S,R),j=S.length);else this.contains(a,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(S=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return S}_edge(a,s,u,p,g){for(;s!==u;){let x,w;switch(s){case 5:s=4;continue;case 4:s=6,x=this.xmax,w=this.ymin;break;case 6:s=2;continue;case 2:s=10,x=this.xmax,w=this.ymax;break;case 10:s=8;continue;case 8:s=9,x=this.xmin,w=this.ymax;break;case 9:s=1;continue;case 1:s=5,x=this.xmin,w=this.ymin}p[g]===x&&p[g+1]===w||!this.contains(a,x,w)||(p.splice(g,0,x,w),g+=2)}if(p.length>4)for(let x=0;x<p.length;x+=2){const w=(x+2)%p.length,S=(x+4)%p.length;(p[x]===p[w]&&p[w]===p[S]||p[x+1]===p[w+1]&&p[w+1]===p[S+1])&&(p.splice(w,2),x-=2)}return g}_project(a,s,u,p){let g,x,w,S=1/0;if(p<0){if(s<=this.ymin)return null;(g=(this.ymin-s)/p)<S&&(w=this.ymin,x=a+(S=g)*u)}else if(p>0){if(s>=this.ymax)return null;(g=(this.ymax-s)/p)<S&&(w=this.ymax,x=a+(S=g)*u)}if(u>0){if(a>=this.xmax)return null;(g=(this.xmax-a)/u)<S&&(x=this.xmax,w=s+(S=g)*p)}else if(u<0){if(a<=this.xmin)return null;(g=(this.xmin-a)/u)<S&&(x=this.xmin,w=s+(S=g)*p)}return[x,w]}_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 Ed=2*Math.PI,ls=Math.pow;function Td(i){return i[0]}function Sd(i){return i[1]}function Ad(i,a,s){return[i+Math.sin(i+a)*s,a+Math.cos(i-a)*s]}class Xu{static from(a,s=Td,u=Sd,p){return new Xu("length"in a?function(g,x,w,S){const C=g.length,R=new Float64Array(2*C);for(let j=0;j<C;++j){const F=g[j];R[2*j]=x.call(S,F,j,g),R[2*j+1]=w.call(S,F,j,g)}return R}(a,s,u,p):Float64Array.from(function*(g,x,w,S){let C=0;for(const R of g)yield x.call(S,R,C,g),yield w.call(S,R,C,g),++C}(a,s,u,p)))}constructor(a){this._delaunator=new Fs(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(S){const{triangles:C,coords:R}=S;for(let j=0;j<C.length;j+=3){const F=2*C[j],H=2*C[j+1],it=2*C[j+2];if((R[it]-R[F])*(R[H+1]-R[F+1])-(R[H]-R[F])*(R[it+1]-R[F+1])>1e-10)return!1}return!0}(a)){this.collinear=Int32Array.from({length:s.length/2},(F,H)=>H).sort((F,H)=>s[2*F]-s[2*H]||s[2*F+1]-s[2*H+1]);const S=this.collinear[0],C=this.collinear[this.collinear.length-1],R=[s[2*S],s[2*S+1],s[2*C],s[2*C+1]],j=1e-8*Math.hypot(R[3]-R[1],R[2]-R[0]);for(let F=0,H=s.length/2;F<H;++F){const it=Ad(s[2*F],s[2*F+1],j);s[2*F]=it[0],s[2*F+1]=it[1]}this._delaunator=new Fs(s)}else delete this.collinear;const u=this.halfedges=this._delaunator.halfedges,p=this.hull=this._delaunator.hull,g=this.triangles=this._delaunator.triangles,x=this.inedges.fill(-1),w=this._hullIndex.fill(-1);for(let S=0,C=u.length;S<C;++S){const R=g[S%3==2?S-2:S+1];u[S]!==-1&&x[R]!==-1||(x[R]=S)}for(let S=0,C=p.length;S<C;++S)w[p[S]]=S;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],x[p[0]]=1,p.length===2&&(x[p[1]]=0,this.triangles[1]=p[1],this.triangles[2]=p[1]))}voronoi(a){return new z1(this,a)}*neighbors(a){const{inedges:s,hull:u,_hullIndex:p,halfedges:g,triangles:x,collinear:w}=this;if(w){const j=w.indexOf(a);return j>0&&(yield w[j-1]),void(j<w.length-1&&(yield w[j+1]))}const S=s[a];if(S===-1)return;let C=S,R=-1;do{if(yield R=x[C],C=C%3==2?C-2:C+1,x[C]!==a)return;if(C=g[C],C===-1){const j=u[(p[a]+1)%u.length];return void(j!==R&&(yield j))}}while(C!==S)}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:x,halfedges:w,triangles:S,points:C}=this;if(p[a]===-1||!C.length)return(a+1)%(C.length>>1);let R=a,j=ls(s-C[2*a],2)+ls(u-C[2*a+1],2);const F=p[a];let H=F;do{let it=S[H];const G=ls(s-C[2*it],2)+ls(u-C[2*it+1],2);if(G<j&&(j=G,R=it),H=H%3==2?H-2:H+1,S[H]!==a)break;if(H=w[H],H===-1){if(H=g[(x[a]+1)%g.length],H!==it&&ls(s-C[2*H],2)+ls(u-C[2*H+1],2)<j)return H;break}}while(H!==F);return R}render(a){const s=a==null?a=new Wi:void 0,{points:u,halfedges:p,triangles:g}=this;for(let x=0,w=p.length;x<w;++x){const S=p[x];if(S<x)continue;const C=2*g[x],R=2*g[S];a.moveTo(u[C],u[C+1]),a.lineTo(u[R],u[R+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 Wi:void 0,{points:p}=this;for(let g=0,x=p.length;g<x;g+=2){const w=p[g],S=p[g+1];a.moveTo(w+s,S),a.arc(w,S,s,0,Ed)}return u&&u.value()}renderHull(a){const s=a==null?a=new Wi:void 0,{hull:u,points:p}=this,g=2*u[0],x=u.length;a.moveTo(p[g],p[g+1]);for(let w=1;w<x;++w){const S=2*u[w];a.lineTo(p[S],p[S+1])}return a.closePath(),s&&s.value()}hullPolygon(){const a=new Zu;return this.renderHull(a),a.value()}renderTriangle(a,s){const u=s==null?s=new Wi:void 0,{points:p,triangles:g}=this,x=2*g[a*=3],w=2*g[a+1],S=2*g[a+2];return s.moveTo(p[x],p[x+1]),s.lineTo(p[w],p[w+1]),s.lineTo(p[S],p[S+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 Zu;return this.renderTriangle(a,s),s.value()}}const Tl=i=>()=>i;function Ku(i,{sourceEvent:a,subject:s,target:u,identifier:p,active:g,x,y:w,dx:S,dy:C,dispatch:R}){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:x,enumerable:!0,configurable:!0},y:{value:w,enumerable:!0,configurable:!0},dx:{value:S,enumerable:!0,configurable:!0},dy:{value:C,enumerable:!0,configurable:!0},_:{value:R}})}function zs(i){return!i.ctrlKey&&!i.button}function Cd(){return this.parentNode}function Id(i,a){return a==null?{x:i.x,y:i.y}:a}function Nd(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ld(){var i,a,s,u,p=zs,g=Cd,x=Id,w=Nd,S={},C=on("start","drag","end"),R=0,j=0;function F(lt){lt.on("mousedown.drag",H).filter(w).on("touchstart.drag",V).on("touchmove.drag",X,Qc).on("touchend.drag touchcancel.drag",dt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function H(lt,bt){if(!u&&p.call(this,lt,bt)){var Et=ct(this,g.call(this,lt,bt),lt,bt,"mouse");Et&&(Sn(lt.view).on("mousemove.drag",it,Po).on("mouseup.drag",G,Po),mo(lt.view),xs(lt),s=!1,i=lt.clientX,a=lt.clientY,Et("start",lt))}}function it(lt){if(yo(lt),!s){var bt=lt.clientX-i,Et=lt.clientY-a;s=bt*bt+Et*Et>j}S.mouse("drag",lt)}function G(lt){Sn(lt.view).on("mousemove.drag mouseup.drag",null),_o(lt.view,s),yo(lt),S.mouse("end",lt)}function V(lt,bt){if(p.call(this,lt,bt)){var Et,ne,ve=lt.changedTouches,Zt=g.call(this,lt,bt),Ht=ve.length;for(Et=0;Et<Ht;++Et)(ne=ct(this,Zt,lt,bt,ve[Et].identifier,ve[Et]))&&(xs(lt),ne("start",lt,ve[Et]))}}function X(lt){var bt,Et,ne=lt.changedTouches,ve=ne.length;for(bt=0;bt<ve;++bt)(Et=S[ne[bt].identifier])&&(yo(lt),Et("drag",lt,ne[bt]))}function dt(lt){var bt,Et,ne=lt.changedTouches,ve=ne.length;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),bt=0;bt<ve;++bt)(Et=S[ne[bt].identifier])&&(xs(lt),Et("end",lt,ne[bt]))}function ct(lt,bt,Et,ne,ve,Zt){var Ht,qt,Wt,Tt=C.copy(),Ut=ha(Zt||Et,bt);if((Wt=x.call(lt,new Ku("beforestart",{sourceEvent:Et,target:F,identifier:ve,active:R,x:Ut[0],y:Ut[1],dx:0,dy:0,dispatch:Tt}),ne))!=null)return Ht=Wt.x-Ut[0]||0,qt=Wt.y-Ut[1]||0,function Jt(le,Ae,He){var Ke,yr=Ut;switch(le){case"start":S[ve]=Jt,Ke=R++;break;case"end":delete S[ve],--R;case"drag":Ut=ha(He||Ae,bt),Ke=R}Tt.call(le,lt,new Ku(le,{sourceEvent:Ae,subject:Wt,target:F,identifier:ve,active:Ke,x:Ut[0]+Ht,y:Ut[1]+qt,dx:Ut[0]-yr[0],dy:Ut[1]-yr[1],dispatch:Tt}),ne)}}return F.filter=function(lt){return arguments.length?(p=typeof lt=="function"?lt:Tl(!!lt),F):p},F.container=function(lt){return arguments.length?(g=typeof lt=="function"?lt:Tl(lt),F):g},F.subject=function(lt){return arguments.length?(x=typeof lt=="function"?lt:Tl(lt),F):x},F.touchable=function(lt){return arguments.length?(w=typeof lt=="function"?lt:Tl(!!lt),F):w},F.on=function(){var lt=C.on.apply(C,arguments);return lt===C?F:lt},F.clickDistance=function(lt){return arguments.length?(j=(lt=+lt)*lt,F):Math.sqrt(j)},F}Ku.prototype.on=function(){var i=this._.on.apply(this._,arguments);return i===this._?this:i};var Y1={},Ju={};function j1(i){return new Function("d","return {"+i.map(function(a,s){return JSON.stringify(a)+": d["+s+'] || ""'}).join(",")+"}")}function $1(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 ea(i,a){var s=i+"",u=s.length;return u<a?new Array(a-u+1).join(0)+s:s}function Sl(i){var a=new RegExp('["'+i+`
|
|
\r]`),s=i.charCodeAt(0);function u(w,S){var C,R=[],j=w.length,F=0,H=0,it=j<=0,G=!1;function V(){if(it)return Ju;if(G)return G=!1,Y1;var dt,ct,lt=F;if(w.charCodeAt(lt)===34){for(;F++<j&&w.charCodeAt(F)!==34||w.charCodeAt(++F)===34;);return(dt=F)>=j?it=!0:(ct=w.charCodeAt(F++))===10?G=!0:ct===13&&(G=!0,w.charCodeAt(F)===10&&++F),w.slice(lt+1,dt-1).replace(/""/g,'"')}for(;F<j;){if((ct=w.charCodeAt(dt=F++))===10)G=!0;else if(ct===13)G=!0,w.charCodeAt(F)===10&&++F;else if(ct!==s)continue;return w.slice(lt,dt)}return it=!0,w.slice(lt,j)}for(w.charCodeAt(j-1)===10&&--j,w.charCodeAt(j-1)===13&&--j;(C=V())!==Ju;){for(var X=[];C!==Y1&&C!==Ju;)X.push(C),C=V();S&&(X=S(X,H++))==null||R.push(X)}return R}function p(w,S){return w.map(function(C){return S.map(function(R){return x(C[R])}).join(i)})}function g(w){return w.map(x).join(i)}function x(w){return w==null?"":w instanceof Date?function(S){var C=S.getUTCHours(),R=S.getUTCMinutes(),j=S.getUTCSeconds(),F=S.getUTCMilliseconds();return isNaN(S)?"Invalid Date":function(H){return H<0?"-"+ea(-H,6):H>9999?"+"+ea(H,6):ea(H,4)}(S.getUTCFullYear())+"-"+ea(S.getUTCMonth()+1,2)+"-"+ea(S.getUTCDate(),2)+(F?"T"+ea(C,2)+":"+ea(R,2)+":"+ea(j,2)+"."+ea(F,3)+"Z":j?"T"+ea(C,2)+":"+ea(R,2)+":"+ea(j,2)+"Z":R||C?"T"+ea(C,2)+":"+ea(R,2)+"Z":"")}(w):a.test(w+="")?'"'+w.replace(/"/g,'""')+'"':w}return{parse:function(w,S){var C,R,j=u(w,function(F,H){if(C)return C(F,H-1);R=F,C=S?function(it,G){var V=j1(it);return function(X,dt){return G(V(X),dt,it)}}(F,S):j1(F)});return j.columns=R||[],j},parseRows:u,format:function(w,S){return S==null&&(S=$1(w)),[S.map(x).join(i)].concat(p(w,S)).join(`
|
|
`)},formatBody:function(w,S){return S==null&&(S=$1(w)),p(w,S).join(`
|
|
`)},formatRows:function(w){return w.map(g).join(`
|
|
`)},formatRow:g,formatValue:x}}var ge=Sl(","),hr=ge.parse,Ys=ge.parseRows,js=ge.format,Qu=ge.formatBody,th=ge.formatRows,H1=ge.formatRow,q1=ge.formatValue,oo=Sl(" "),eh=oo.parse,so=oo.parseRows,Md=oo.format,Bc=oo.formatBody,Dd=oo.formatRows,W1=oo.formatRow,rh=oo.formatValue;function Al(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;Cl&&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 Cl=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),Od=i=>+i;function Il(i){return i*i}function Gi(i){return i*(2-i)}function Nl(i){return((i*=2)<=1?i*i:--i*(2-i)+1)/2}var Ll=function i(a){function s(u){return Math.pow(u,a)}return a=+a,s.exponent=i,s}(3),G1=function i(a){function s(u){return 1-Math.pow(1-u,a)}return a=+a,s.exponent=i,s}(3),nh=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),ih=Math.PI,V1=ih/2;function Z1(i){return+i==1?1:1-Math.cos(i*V1)}function X1(i){return Math.sin(i*V1)}function co(i){return(1-Math.cos(ih*i))/2}function No(i){return 1.0009775171065494*(Math.pow(2,-10*i)-.0009765625)}function va(i){return No(1-+i)}function Rd(i){return 1-No(i)}function K1(i){return((i*=2)<=1?No(1-i):2-No(i-1))/2}function J1(i){return 1-Math.sqrt(1-i*i)}function Q1(i){return Math.sqrt(1- --i*i)}function Ml(i){return((i*=2)<=1?1-Math.sqrt(1-i*i):Math.sqrt(1-(i-=2)*i)+1)/2}var Dl=7.5625;function t0(i){return 1-Fc(1-i)}function Fc(i){return(i=+i)<.36363636363636365?Dl*i*i:i<.7272727272727273?Dl*(i-=.5454545454545454)*i+.75:i<.9090909090909091?Dl*(i-=.8181818181818182)*i+.9375:Dl*(i-=.9545454545454546)*i+.984375}function wn(i){return((i*=2)<=1?1-Fc(1-i):Fc(i-1)+1)/2}var $s=1.70158,Go=function i(a){function s(u){return(u=+u)*u*(a*(u-1)+u)}return a=+a,s.overshoot=i,s}($s),Bd=function i(a){function s(u){return--u*u*((u+1)*a+u)+1}return a=+a,s.overshoot=i,s}($s),Ol=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}($s),us=2*Math.PI,e0=function i(a,s){var u=Math.asin(1/(a=Math.max(1,a)))*(s/=us);function p(g){return a*No(- --g)*Math.sin((u-g)/s)}return p.amplitude=function(g){return i(g,s*us)},p.period=function(g){return i(a,g)},p}(1,.3),Rl=function i(a,s){var u=Math.asin(1/(a=Math.max(1,a)))*(s/=us);function p(g){return 1-a*No(g=+g)*Math.sin((g+u)/s)}return p.amplitude=function(g){return i(g,s*us)},p.period=function(g){return i(a,g)},p}(1,.3),Hs=function i(a,s){var u=Math.asin(1/(a=Math.max(1,a)))*(s/=us);function p(g){return((g=2*g-1)<0?a*No(-g)*Math.sin((u-g)/s):2-a*No(g)*Math.sin((u+g)/s))/2}return p.amplitude=function(g){return i(g,s*us)},p.period=function(g){return i(a,g)},p}(1,.3);function ah(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);return i.blob()}function qs(i,a){return fetch(i,a).then(ah)}function Ws(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);return i.arrayBuffer()}function r0(i,a){return fetch(i,a).then(Ws)}function n0(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);return i.text()}function Pc(i,a){return fetch(i,a).then(n0)}function oh(i){return function(a,s,u){return arguments.length===2&&typeof s=="function"&&(u=s,s=void 0),Pc(a,s).then(function(p){return i(p,u)})}}function i0(i,a,s,u){arguments.length===3&&typeof s=="function"&&(u=s,s=void 0);var p=Sl(i);return Pc(a,s).then(function(g){return p.parse(g,u)})}var a0=oh(hr),Fd=oh(eh);function Pd(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 Ud(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);if(i.status!==204&&i.status!==205)return i.json()}function zd(i,a){return fetch(i,a).then(Ud)}function Va(i){return(a,s)=>Pc(a,s).then(u=>new DOMParser().parseFromString(u,i))}const sh=Va("application/xml");var hs=Va("text/html"),Ma=Va("image/svg+xml");function ch(i,a){var s,u=1;function p(){var g,x,w=s.length,S=0,C=0;for(g=0;g<w;++g)S+=(x=s[g]).x,C+=x.y;for(S=(S/w-i)*u,C=(C/w-a)*u,g=0;g<w;++g)(x=s[g]).x-=S,x.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 lh(i,a,s,u){if(isNaN(a)||isNaN(s))return i;var p,g,x,w,S,C,R,j,F,H=i._root,it={data:u},G=i._x0,V=i._y0,X=i._x1,dt=i._y1;if(!H)return i._root=it,i;for(;H.length;)if((C=a>=(g=(G+X)/2))?G=g:X=g,(R=s>=(x=(V+dt)/2))?V=x:dt=x,p=H,!(H=H[j=R<<1|C]))return p[j]=it,i;if(w=+i._x.call(null,H.data),S=+i._y.call(null,H.data),a===w&&s===S)return it.next=H,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+X)/2))?G=g:X=g,(R=s>=(x=(V+dt)/2))?V=x:dt=x;while((j=R<<1|C)==(F=(S>=x)<<1|w>=g));return p[F]=H,p[j]=it,i}function Ui(i,a,s,u,p){this.node=i,this.x0=a,this.y0=s,this.x1=u,this.y1=p}function Yd(i){return i[0]}function jd(i){return i[1]}function Uc(i,a,s){var u=new uh(a==null?Yd:a,s==null?jd:s,NaN,NaN,NaN,NaN);return i==null?u:u.addAll(i)}function uh(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 hh(i){for(var a={data:i.data},s=a;i=i.next;)s=s.next={data:i.data};return a}var Vi=Uc.prototype=uh.prototype;function Ei(i){return function(){return i}}function Za(i){return 1e-6*(i()-.5)}function $d(i){return i.x+i.vx}function Ti(i){return i.y+i.vy}function ra(i){var a,s,u,p=1,g=1;function x(){for(var C,R,j,F,H,it,G,V=a.length,X=0;X<g;++X)for(R=Uc(a,$d,Ti).visitAfter(w),C=0;C<V;++C)j=a[C],it=s[j.index],G=it*it,F=j.x+j.vx,H=j.y+j.vy,R.visit(dt);function dt(ct,lt,bt,Et,ne){var ve=ct.data,Zt=ct.r,Ht=it+Zt;if(!ve)return lt>F+Ht||Et<F-Ht||bt>H+Ht||ne<H-Ht;if(ve.index>j.index){var qt=F-ve.x-ve.vx,Wt=H-ve.y-ve.vy,Tt=qt*qt+Wt*Wt;Tt<Ht*Ht&&(qt===0&&(Tt+=(qt=Za(u))*qt),Wt===0&&(Tt+=(Wt=Za(u))*Wt),Tt=(Ht-(Tt=Math.sqrt(Tt)))/Tt*p,j.vx+=(qt*=Tt)*(Ht=(Zt*=Zt)/(G+Zt)),j.vy+=(Wt*=Tt)*Ht,ve.vx-=qt*(Ht=1-Ht),ve.vy-=Wt*Ht)}}}function w(C){if(C.data)return C.r=s[C.data.index];for(var R=C.r=0;R<4;++R)C[R]&&C[R].r>C.r&&(C.r=C[R].r)}function S(){if(a){var C,R,j=a.length;for(s=new Array(j),C=0;C<j;++C)R=a[C],s[R.index]=+i(R,C,a)}}return typeof i!="function"&&(i=Ei(i==null?1:+i)),x.initialize=function(C,R){a=C,u=R,S()},x.iterations=function(C){return arguments.length?(g=+C,x):g},x.strength=function(C){return arguments.length?(p=+C,x):p},x.radius=function(C){return arguments.length?(i=typeof C=="function"?C:Ei(+C),S(),x):i},x}function Bl(i){return i.index}function vi(i,a){var s=i.get(a);if(!s)throw new Error("node not found: "+a);return s}function zi(i){var a,s,u,p,g,x,w=Bl,S=function(G){return 1/Math.min(p[G.source.index],p[G.target.index])},C=Ei(30),R=1;function j(G){for(var V=0,X=i.length;V<R;++V)for(var dt,ct,lt,bt,Et,ne,ve,Zt=0;Zt<X;++Zt)ct=(dt=i[Zt]).source,bt=(lt=dt.target).x+lt.vx-ct.x-ct.vx||Za(x),Et=lt.y+lt.vy-ct.y-ct.vy||Za(x),bt*=ne=((ne=Math.sqrt(bt*bt+Et*Et))-s[Zt])/ne*G*a[Zt],Et*=ne,lt.vx-=bt*(ve=g[Zt]),lt.vy-=Et*ve,ct.vx+=bt*(ve=1-ve),ct.vy+=Et*ve}function F(){if(u){var G,V,X=u.length,dt=i.length,ct=new Map(u.map((lt,bt)=>[w(lt,bt,u),lt]));for(G=0,p=new Array(X);G<dt;++G)(V=i[G]).index=G,typeof V.source!="object"&&(V.source=vi(ct,V.source)),typeof V.target!="object"&&(V.target=vi(ct,V.target)),p[V.source.index]=(p[V.source.index]||0)+1,p[V.target.index]=(p[V.target.index]||0)+1;for(G=0,g=new Array(dt);G<dt;++G)V=i[G],g[G]=p[V.source.index]/(p[V.source.index]+p[V.target.index]);a=new Array(dt),H(),s=new Array(dt),it()}}function H(){if(u)for(var G=0,V=i.length;G<V;++G)a[G]=+S(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,x=V,F()},j.links=function(G){return arguments.length?(i=G,F(),j):i},j.id=function(G){return arguments.length?(w=G,j):w},j.iterations=function(G){return arguments.length?(R=+G,j):R},j.strength=function(G){return arguments.length?(S=typeof G=="function"?G:Ei(+G),H(),j):S},j.distance=function(G){return arguments.length?(C=typeof G=="function"?G:Ei(+G),it(),j):C},j}Vi.copy=function(){var i,a,s=new uh(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=hh(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]=hh(a));return s},Vi.add=function(i){const a=+this._x.call(null,i),s=+this._y.call(null,i);return lh(this.cover(a,s),a,s,i)},Vi.addAll=function(i){var a,s,u,p,g=i.length,x=new Array(g),w=new Array(g),S=1/0,C=1/0,R=-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))||(x[s]=u,w[s]=p,u<S&&(S=u),u>R&&(R=u),p<C&&(C=p),p>j&&(j=p));if(S>R||C>j)return this;for(this.cover(S,C).cover(R,j),s=0;s<g;++s)lh(this,x[s],w[s],i[s]);return this},Vi.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 x,w,S=p-s||1,C=this._root;s>i||i>=p||u>a||a>=g;)switch(w=(a<u)<<1|i<s,(x=new Array(4))[w]=C,C=x,S*=2,w){case 0:p=s+S,g=u+S;break;case 1:s=p-S,g=u+S;break;case 2:p=s+S,u=g-S;break;case 3:s=p-S,u=g-S}this._root&&this._root.length&&(this._root=C)}return this._x0=s,this._y0=u,this._x1=p,this._y1=g,this},Vi.data=function(){var i=[];return this.visit(function(a){if(!a.length)do i.push(a.data);while(a=a.next)}),i},Vi.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]]},Vi.find=function(i,a,s){var u,p,g,x,w,S,C,R=this._x0,j=this._y0,F=this._x1,H=this._y1,it=[],G=this._root;for(G&&it.push(new Ui(G,R,j,F,H)),s==null?s=1/0:(R=i-s,j=a-s,F=i+s,H=a+s,s*=s);S=it.pop();)if(!(!(G=S.node)||(p=S.x0)>F||(g=S.y0)>H||(x=S.x1)<R||(w=S.y1)<j))if(G.length){var V=(p+x)/2,X=(g+w)/2;it.push(new Ui(G[3],V,X,x,w),new Ui(G[2],p,X,V,w),new Ui(G[1],V,g,x,X),new Ui(G[0],p,g,V,X)),(C=(a>=X)<<1|i>=V)&&(S=it[it.length-1],it[it.length-1]=it[it.length-1-C],it[it.length-1-C]=S)}else{var dt=i-+this._x.call(null,G.data),ct=a-+this._y.call(null,G.data),lt=dt*dt+ct*ct;if(lt<s){var bt=Math.sqrt(s=lt);R=i-bt,j=a-bt,F=i+bt,H=a+bt,u=G.data}}return u},Vi.remove=function(i){if(isNaN(g=+this._x.call(null,i))||isNaN(x=+this._y.call(null,i)))return this;var a,s,u,p,g,x,w,S,C,R,j,F,H=this._root,it=this._x0,G=this._y0,V=this._x1,X=this._y1;if(!H)return this;if(H.length)for(;;){if((C=g>=(w=(it+V)/2))?it=w:V=w,(R=x>=(S=(G+X)/2))?G=S:X=S,a=H,!(H=H[j=R<<1|C]))return this;if(!H.length)break;(a[j+1&3]||a[j+2&3]||a[j+3&3])&&(s=a,F=j)}for(;H.data!==i;)if(u=H,!(H=H.next))return this;return(p=H.next)&&delete H.next,u?(p?u.next=p:delete u.next,this):a?(p?a[j]=p:delete a[j],(H=a[0]||a[1]||a[2]||a[3])&&H===(a[3]||a[2]||a[1]||a[0])&&!H.length&&(s?s[F]=H:this._root=H),this):(this._root=p,this)},Vi.removeAll=function(i){for(var a=0,s=i.length;a<s;++a)this.remove(i[a]);return this},Vi.root=function(){return this._root},Vi.size=function(){var i=0;return this.visit(function(a){if(!a.length)do++i;while(a=a.next)}),i},Vi.visit=function(i){var a,s,u,p,g,x,w=[],S=this._root;for(S&&w.push(new Ui(S,this._x0,this._y0,this._x1,this._y1));a=w.pop();)if(!i(S=a.node,u=a.x0,p=a.y0,g=a.x1,x=a.y1)&&S.length){var C=(u+g)/2,R=(p+x)/2;(s=S[3])&&w.push(new Ui(s,C,R,g,x)),(s=S[2])&&w.push(new Ui(s,u,R,C,x)),(s=S[1])&&w.push(new Ui(s,C,p,g,R)),(s=S[0])&&w.push(new Ui(s,u,p,C,R))}return this},Vi.visitAfter=function(i){var a,s=[],u=[];for(this._root&&s.push(new Ui(this._root,this._x0,this._y0,this._x1,this._y1));a=s.pop();){var p=a.node;if(p.length){var g,x=a.x0,w=a.y0,S=a.x1,C=a.y1,R=(x+S)/2,j=(w+C)/2;(g=p[0])&&s.push(new Ui(g,x,w,R,j)),(g=p[1])&&s.push(new Ui(g,R,w,S,j)),(g=p[2])&&s.push(new Ui(g,x,j,R,C)),(g=p[3])&&s.push(new Ui(g,R,j,S,C))}u.push(a)}for(;a=u.pop();)i(a.node,a.x0,a.y0,a.x1,a.y1);return this},Vi.x=function(i){return arguments.length?(this._x=i,this):this._x},Vi.y=function(i){return arguments.length?(this._y=i,this):this._y};const dh=4294967296;function ds(i){return i.x}function fh(i){return i.y}var o0=Math.PI*(3-Math.sqrt(5));function s0(i){var a,s=1,u=.001,p=1-Math.pow(u,1/300),g=0,x=.6,w=new Map,S=Yo(j),C=on("tick","end"),R=function(){let G=1;return()=>(G=(1664525*G+1013904223)%dh)/dh}();function j(){F(),C.call("tick",a),s<u&&(S.stop(),C.call("end",a))}function F(G){var V,X,dt=i.length;G===void 0&&(G=1);for(var ct=0;ct<G;++ct)for(s+=(g-s)*p,w.forEach(function(lt){lt(s)}),V=0;V<dt;++V)(X=i[V]).fx==null?X.x+=X.vx*=x:(X.x=X.fx,X.vx=0),X.fy==null?X.y+=X.vy*=x:(X.y=X.fy,X.vy=0);return a}function H(){for(var G,V=0,X=i.length;V<X;++V){if((G=i[V]).index=V,G.fx!=null&&(G.x=G.fx),G.fy!=null&&(G.y=G.fy),isNaN(G.x)||isNaN(G.y)){var dt=10*Math.sqrt(.5+V),ct=V*o0;G.x=dt*Math.cos(ct),G.y=dt*Math.sin(ct)}(isNaN(G.vx)||isNaN(G.vy))&&(G.vx=G.vy=0)}}function it(G){return G.initialize&&G.initialize(i,R),G}return i==null&&(i=[]),H(),a={tick:F,restart:function(){return S.restart(j),a},stop:function(){return S.stop(),a},nodes:function(G){return arguments.length?(i=G,H(),w.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?(x=1-G,a):1-x},randomSource:function(G){return arguments.length?(R=G,w.forEach(it),a):R},force:function(G,V){return arguments.length>1?(V==null?w.delete(G):w.set(G,it(V)),a):w.get(G)},find:function(G,V,X){var dt,ct,lt,bt,Et,ne=0,ve=i.length;for(X==null?X=1/0:X*=X,ne=0;ne<ve;++ne)(lt=(dt=G-(bt=i[ne]).x)*dt+(ct=V-bt.y)*ct)<X&&(Et=bt,X=lt);return Et},on:function(G,V){return arguments.length>1?(C.on(G,V),a):C.on(G)}}}function c0(){var i,a,s,u,p,g=Ei(-30),x=1,w=1/0,S=.81;function C(H){var it,G=i.length,V=Uc(i,ds,fh).visitAfter(j);for(u=H,it=0;it<G;++it)a=i[it],V.visit(F)}function R(){if(i){var H,it,G=i.length;for(p=new Array(G),H=0;H<G;++H)it=i[H],p[it.index]=+g(it,H,i)}}function j(H){var it,G,V,X,dt,ct=0,lt=0;if(H.length){for(V=X=dt=0;dt<4;++dt)(it=H[dt])&&(G=Math.abs(it.value))&&(ct+=it.value,lt+=G,V+=G*it.x,X+=G*it.y);H.x=V/lt,H.y=X/lt}else{(it=H).x=it.data.x,it.y=it.data.y;do ct+=p[it.data.index];while(it=it.next)}H.value=ct}function F(H,it,G,V){if(!H.value)return!0;var X=H.x-a.x,dt=H.y-a.y,ct=V-it,lt=X*X+dt*dt;if(ct*ct/S<lt)return lt<w&&(X===0&&(lt+=(X=Za(s))*X),dt===0&&(lt+=(dt=Za(s))*dt),lt<x&&(lt=Math.sqrt(x*lt)),a.vx+=X*H.value*u/lt,a.vy+=dt*H.value*u/lt),!0;if(!(H.length||lt>=w)){(H.data!==a||H.next)&&(X===0&&(lt+=(X=Za(s))*X),dt===0&&(lt+=(dt=Za(s))*dt),lt<x&&(lt=Math.sqrt(x*lt)));do H.data!==a&&(ct=p[H.data.index]*u/lt,a.vx+=X*ct,a.vy+=dt*ct);while(H=H.next)}}return C.initialize=function(H,it){i=H,s=it,R()},C.strength=function(H){return arguments.length?(g=typeof H=="function"?H:Ei(+H),R(),C):g},C.distanceMin=function(H){return arguments.length?(x=H*H,C):Math.sqrt(x)},C.distanceMax=function(H){return arguments.length?(w=H*H,C):Math.sqrt(w)},C.theta=function(H){return arguments.length?(S=H*H,C):Math.sqrt(S)},C}function l0(i,a,s){var u,p,g,x=Ei(.1);function w(C){for(var R=0,j=u.length;R<j;++R){var F=u[R],H=F.x-a||1e-6,it=F.y-s||1e-6,G=Math.sqrt(H*H+it*it),V=(g[R]-G)*p[R]*C/G;F.vx+=H*V,F.vy+=it*V}}function S(){if(u){var C,R=u.length;for(p=new Array(R),g=new Array(R),C=0;C<R;++C)g[C]=+i(u[C],C,u),p[C]=isNaN(g[C])?0:+x(u[C],C,u)}}return typeof i!="function"&&(i=Ei(+i)),a==null&&(a=0),s==null&&(s=0),w.initialize=function(C){u=C,S()},w.strength=function(C){return arguments.length?(x=typeof C=="function"?C:Ei(+C),S(),w):x},w.radius=function(C){return arguments.length?(i=typeof C=="function"?C:Ei(+C),S(),w):i},w.x=function(C){return arguments.length?(a=+C,w):a},w.y=function(C){return arguments.length?(s=+C,w):s},w}function u0(i){var a,s,u,p=Ei(.1);function g(w){for(var S,C=0,R=a.length;C<R;++C)(S=a[C]).vx+=(u[C]-S.x)*s[C]*w}function x(){if(a){var w,S=a.length;for(s=new Array(S),u=new Array(S),w=0;w<S;++w)s[w]=isNaN(u[w]=+i(a[w],w,a))?0:+p(a[w],w,a)}}return typeof i!="function"&&(i=Ei(i==null?0:+i)),g.initialize=function(w){a=w,x()},g.strength=function(w){return arguments.length?(p=typeof w=="function"?w:Ei(+w),x(),g):p},g.x=function(w){return arguments.length?(i=typeof w=="function"?w:Ei(+w),x(),g):i},g}function zc(i){var a,s,u,p=Ei(.1);function g(w){for(var S,C=0,R=a.length;C<R;++C)(S=a[C]).vy+=(u[C]-S.y)*s[C]*w}function x(){if(a){var w,S=a.length;for(s=new Array(S),u=new Array(S),w=0;w<S;++w)s[w]=isNaN(u[w]=+i(a[w],w,a))?0:+p(a[w],w,a)}}return typeof i!="function"&&(i=Ei(i==null?0:+i)),g.initialize=function(w){a=w,x()},g.strength=function(w){return arguments.length?(p=typeof w=="function"?w:Ei(+w),x(),g):p},g.y=function(w){return arguments.length?(i=typeof w=="function"?w:Ei(+w),x(),g):i},g}function Fl(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 lo(i){return(i=Fl(Math.abs(i)))?i[1]:NaN}var na,Gs=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uo(i){if(!(a=Gs.exec(i)))throw new Error("invalid format: "+i);var a;return new fs({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 fs(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 ph(i,a){var s=Fl(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")}uo.prototype=fs.prototype,fs.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 gh={"%":(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)=>ph(100*i,a),r:ph,s:function(i,a){var s=Fl(i,a);if(!s)return i+"";var u=s[0],p=s[1],g=p-(na=3*Math.max(-8,Math.min(8,Math.floor(p/3))))+1,x=u.length;return g===x?u:g>x?u+new Array(g-x+1).join("0"):g>0?u.slice(0,g)+"."+u.slice(g):"0."+new Array(1-g).join("0")+Fl(i,Math.max(0,a+g-1))[0]},X:i=>Math.round(i).toString(16).toUpperCase(),x:i=>Math.round(i).toString(16)};function h0(i){return i}var Pl,Ul,yh,zl=Array.prototype.map,d0=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Yc(i){var a,s,u=i.grouping===void 0||i.thousands===void 0?h0:(a=zl.call(i.grouping,Number),s=i.thousands+"",function(F,H){for(var it=F.length,G=[],V=0,X=a[0],dt=0;it>0&&X>0&&(dt+X+1>H&&(X=Math.max(1,H-dt)),G.push(F.substring(it-=X,it+X)),!((dt+=X+1)>H));)X=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]+"",x=i.decimal===void 0?".":i.decimal+"",w=i.numerals===void 0?h0:function(F){return function(H){return H.replace(/[0-9]/g,function(it){return F[+it]})}}(zl.call(i.numerals,String)),S=i.percent===void 0?"%":i.percent+"",C=i.minus===void 0?"\u2212":i.minus+"",R=i.nan===void 0?"NaN":i.nan+"";function j(F){var H=(F=uo(F)).fill,it=F.align,G=F.sign,V=F.symbol,X=F.zero,dt=F.width,ct=F.comma,lt=F.precision,bt=F.trim,Et=F.type;Et==="n"?(ct=!0,Et="g"):gh[Et]||(lt===void 0&&(lt=12),bt=!0,Et="g"),(X||H==="0"&&it==="=")&&(X=!0,H="0",it="=");var ne=V==="$"?p:V==="#"&&/[boxX]/.test(Et)?"0"+Et.toLowerCase():"",ve=V==="$"?g:/[%p]/.test(Et)?S:"",Zt=gh[Et],Ht=/[defgprs%]/.test(Et);function qt(Wt){var Tt,Ut,Jt,le=ne,Ae=ve;if(Et==="c")Ae=Zt(Wt)+Ae,Wt="";else{var He=(Wt=+Wt)<0||1/Wt<0;if(Wt=isNaN(Wt)?R:Zt(Math.abs(Wt),lt),bt&&(Wt=function(Je){t:for(var Hr,Gr=Je.length,Nr=1,Fr=-1;Nr<Gr;++Nr)switch(Je[Nr]){case".":Fr=Hr=Nr;break;case"0":Fr===0&&(Fr=Nr),Hr=Nr;break;default:if(!+Je[Nr])break t;Fr>0&&(Fr=0)}return Fr>0?Je.slice(0,Fr)+Je.slice(Hr+1):Je}(Wt)),He&&+Wt==0&&G!=="+"&&(He=!1),le=(He?G==="("?G:C:G==="-"||G==="("?"":G)+le,Ae=(Et==="s"?d0[8+na/3]:"")+Ae+(He&&G==="("?")":""),Ht){for(Tt=-1,Ut=Wt.length;++Tt<Ut;)if(48>(Jt=Wt.charCodeAt(Tt))||Jt>57){Ae=(Jt===46?x+Wt.slice(Tt+1):Wt.slice(Tt))+Ae,Wt=Wt.slice(0,Tt);break}}}ct&&!X&&(Wt=u(Wt,1/0));var Ke=le.length+Wt.length+Ae.length,yr=Ke<dt?new Array(dt-Ke+1).join(H):"";switch(ct&&X&&(Wt=u(yr+Wt,yr.length?dt-Ae.length:1/0),yr=""),it){case"<":Wt=le+Wt+Ae+yr;break;case"=":Wt=le+yr+Wt+Ae;break;case"^":Wt=yr.slice(0,Ke=yr.length>>1)+le+Wt+Ae+yr.slice(Ke);break;default:Wt=yr+le+Wt+Ae}return w(Wt)}return lt=lt===void 0?6:/[gprs]/.test(Et)?Math.max(1,Math.min(21,lt)):Math.max(0,Math.min(20,lt)),qt.toString=function(){return F+""},qt}return{format:j,formatPrefix:function(F,H){var it=j(((F=uo(F)).type="f",F)),G=3*Math.max(-8,Math.min(8,Math.floor(lo(H)/3))),V=Math.pow(10,-G),X=d0[8+G/3];return function(dt){return it(V*dt)+X}}}}function f0(i){return Pl=Yc(i),Ul=Pl.format,yh=Pl.formatPrefix,Pl}function Yl(i){return Math.max(0,-lo(Math.abs(i)))}function jl(i,a){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(lo(a)/3)))-lo(Math.abs(i)))}function mh(i,a){return i=Math.abs(i),a=Math.abs(a)-i,Math.max(0,lo(a)-lo(i))+1}f0({thousands:",",grouping:[3],currency:["$",""]});var Jr=1e-6,$l=1e-12,nn=Math.PI,jn=nn/2,Vs=nn/4,Si=2*nn,Pn=180/nn,Wr=nn/180,Br=Math.abs,ps=Math.atan,Zi=Math.atan2,wr=Math.cos,gs=Math.ceil,l=Math.exp,o=Math.hypot,y=Math.log,k=Math.pow,E=Math.sin,L=Math.sign||function(i){return i>0?1:i<0?-1:0},N=Math.sqrt,D=Math.tan;function P(i){return i>1?0:i<-1?nn:Math.acos(i)}function U(i){return i>1?jn:i<-1?-jn:Math.asin(i)}function K(i){return(i=E(i/2))*i}function tt(){}function st(i,a){i&&Lt.hasOwnProperty(i.type)&&Lt[i.type](i,a)}var ot={Feature:function(i,a){st(i.geometry,a)},FeatureCollection:function(i,a){for(var s=i.features,u=-1,p=s.length;++u<p;)st(s[u].geometry,a)}},Lt={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){Dt(i.coordinates,a,0)},MultiLineString:function(i,a){for(var s=i.coordinates,u=-1,p=s.length;++u<p;)Dt(s[u],a,0)},Polygon:function(i,a){zt(i.coordinates,a)},MultiPolygon:function(i,a){for(var s=i.coordinates,u=-1,p=s.length;++u<p;)zt(s[u],a)},GeometryCollection:function(i,a){for(var s=i.geometries,u=-1,p=s.length;++u<p;)st(s[u],a)}};function Dt(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 zt(i,a){var s=-1,u=i.length;for(a.polygonStart();++s<u;)Dt(i[s],a,1);a.polygonEnd()}function Ft(i,a){i&&ot.hasOwnProperty(i.type)?ot[i.type](i,a):st(i,a)}var Pt,Yt,It,ae,Se,pe,Ee,$t,fe,Xt,ce,de,ue,Re,Le,$e,kr=new _t,Ye=new _t,ir={point:tt,lineStart:tt,lineEnd:tt,polygonStart:function(){kr=new _t,ir.lineStart=br,ir.lineEnd=We},polygonEnd:function(){var i=+kr;Ye.add(i<0?Si+i:i),this.lineStart=this.lineEnd=this.point=tt},sphere:function(){Ye.add(Si)}};function br(){ir.point=Ve}function We(){xr(Pt,Yt)}function Ve(i,a){ir.point=xr,Pt=i,Yt=a,It=i*=Wr,ae=wr(a=(a*=Wr)/2+Vs),Se=E(a)}function xr(i,a){var s=(i*=Wr)-It,u=s>=0?1:-1,p=u*s,g=wr(a=(a*=Wr)/2+Vs),x=E(a),w=Se*x,S=ae*g+w*wr(p),C=w*u*E(p);kr.add(Zi(C,S)),It=i,ae=g,Se=x}function bn(i){return Ye=new _t,Ft(i,ir),2*Ye}function yn(i){return[Zi(i[1],i[0]),U(i[2])]}function $n(i){var a=i[0],s=i[1],u=wr(s);return[u*wr(a),u*E(a),E(s)]}function mn(i,a){return i[0]*a[0]+i[1]*a[1]+i[2]*a[2]}function xi(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 pn(i,a){i[0]+=a[0],i[1]+=a[1],i[2]+=a[2]}function Da(i,a){return[i[0]*a,i[1]*a,i[2]*a]}function fa(i){var a=N(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]);i[0]/=a,i[1]/=a,i[2]/=a}var li,Hn,Oa,xa,ys,Vo,Xa,Ra,Hl,ql,Wl,_h,bh,Xi,wa,ka,ms={point:Hd,lineStart:C2,lineEnd:I2,polygonStart:function(){ms.point=N2,ms.lineStart=Lm,ms.lineEnd=Mm,Re=new _t,ir.polygonStart()},polygonEnd:function(){ir.polygonEnd(),ms.point=Hd,ms.lineStart=C2,ms.lineEnd=I2,kr<0?(pe=-($t=180),Ee=-(fe=90)):Re>Jr?fe=90:Re<-1e-6&&(Ee=-90),$e[0]=pe,$e[1]=$t},sphere:function(){pe=-($t=180),Ee=-(fe=90)}};function Hd(i,a){Le.push($e=[pe=i,$t=i]),a<Ee&&(Ee=a),a>fe&&(fe=a)}function A2(i,a){var s=$n([i*Wr,a*Wr]);if(ue){var u=xi(ue,s),p=xi([u[1],-u[0],0],u);fa(p),p=yn(p);var g,x=i-Xt,w=x>0?1:-1,S=p[0]*Pn*w,C=Br(x)>180;C^(w*Xt<S&&S<w*i)?(g=p[1]*Pn)>fe&&(fe=g):C^(w*Xt<(S=(S+360)%360-180)&&S<w*i)?(g=-p[1]*Pn)<Ee&&(Ee=g):(a<Ee&&(Ee=a),a>fe&&(fe=a)),C?i<Xt?Ka(pe,i)>Ka(pe,$t)&&($t=i):Ka(i,$t)>Ka(pe,$t)&&(pe=i):$t>=pe?(i<pe&&(pe=i),i>$t&&($t=i)):i>Xt?Ka(pe,i)>Ka(pe,$t)&&($t=i):Ka(i,$t)>Ka(pe,$t)&&(pe=i)}else Le.push($e=[pe=i,$t=i]);a<Ee&&(Ee=a),a>fe&&(fe=a),ue=s,Xt=i}function C2(){ms.point=A2}function I2(){$e[0]=pe,$e[1]=$t,ms.point=Hd,ue=null}function N2(i,a){if(ue){var s=i-Xt;Re.add(Br(s)>180?s+(s>0?360:-360):s)}else ce=i,de=a;ir.point(i,a),A2(i,a)}function Lm(){ir.lineStart()}function Mm(){N2(ce,de),ir.lineEnd(),Br(Re)>Jr&&(pe=-($t=180)),$e[0]=pe,$e[1]=$t,ue=null}function Ka(i,a){return(a-=i)<0?a+360:a}function Dm(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 Om(i){var a,s,u,p,g,x,w;if(fe=$t=-(pe=Ee=1/0),Le=[],Ft(i,ms),s=Le.length){for(Le.sort(Dm),a=1,g=[u=Le[0]];a<s;++a)L2(u,(p=Le[a])[0])||L2(u,p[1])?(Ka(u[0],p[1])>Ka(u[0],u[1])&&(u[1]=p[1]),Ka(p[0],u[1])>Ka(u[0],u[1])&&(u[0]=p[0])):g.push(u=p);for(x=-1/0,a=0,u=g[s=g.length-1];a<=s;u=p,++a)p=g[a],(w=Ka(u[1],p[0]))>x&&(x=w,pe=p[0],$t=u[1])}return Le=$e=null,pe===1/0||Ee===1/0?[[NaN,NaN],[NaN,NaN]]:[[pe,Ee],[$t,fe]]}var Lo={sphere:tt,point:qd,lineStart:M2,lineEnd:D2,polygonStart:function(){Lo.lineStart=Fm,Lo.lineEnd=Pm},polygonEnd:function(){Lo.lineStart=M2,Lo.lineEnd=D2}};function qd(i,a){i*=Wr;var s=wr(a*=Wr);vh(s*wr(i),s*E(i),E(a))}function vh(i,a,s){++li,Oa+=(i-Oa)/li,xa+=(a-xa)/li,ys+=(s-ys)/li}function M2(){Lo.point=Rm}function Rm(i,a){i*=Wr;var s=wr(a*=Wr);Xi=s*wr(i),wa=s*E(i),ka=E(a),Lo.point=Bm,vh(Xi,wa,ka)}function Bm(i,a){i*=Wr;var s=wr(a*=Wr),u=s*wr(i),p=s*E(i),g=E(a),x=Zi(N((x=wa*g-ka*p)*x+(x=ka*u-Xi*g)*x+(x=Xi*p-wa*u)*x),Xi*u+wa*p+ka*g);Hn+=x,Vo+=x*(Xi+(Xi=u)),Xa+=x*(wa+(wa=p)),Ra+=x*(ka+(ka=g)),vh(Xi,wa,ka)}function D2(){Lo.point=qd}function Fm(){Lo.point=Um}function Pm(){O2(_h,bh),Lo.point=qd}function Um(i,a){_h=i,bh=a,i*=Wr,a*=Wr,Lo.point=O2;var s=wr(a);Xi=s*wr(i),wa=s*E(i),ka=E(a),vh(Xi,wa,ka)}function O2(i,a){i*=Wr;var s=wr(a*=Wr),u=s*wr(i),p=s*E(i),g=E(a),x=wa*g-ka*p,w=ka*u-Xi*g,S=Xi*p-wa*u,C=o(x,w,S),R=U(C),j=C&&-R/C;Hl.add(j*x),ql.add(j*w),Wl.add(j*S),Hn+=R,Vo+=R*(Xi+(Xi=u)),Xa+=R*(wa+(wa=p)),Ra+=R*(ka+(ka=g)),vh(Xi,wa,ka)}function zm(i){li=Hn=Oa=xa=ys=Vo=Xa=Ra=0,Hl=new _t,ql=new _t,Wl=new _t,Ft(i,Lo);var a=+Hl,s=+ql,u=+Wl,p=o(a,s,u);return p<$l&&(a=Vo,s=Xa,u=Ra,Hn<Jr&&(a=Oa,s=xa,u=ys),(p=o(a,s,u))<$l)?[NaN,NaN]:[Zi(s,a)*Pn,U(u/p)*Pn]}function Gl(i){return function(){return i}}function Wd(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 Gd(i,a){return[Br(i)>nn?i+Math.round(-i/Si)*Si:i,a]}function Vd(i,a,s){return(i%=Si)?a||s?Wd(B2(i),F2(a,s)):B2(i):a||s?F2(a,s):Gd}function R2(i){return function(a,s){return[(a+=i)>nn?a-Si:a<-nn?a+Si:a,s]}}function B2(i){var a=R2(i);return a.invert=R2(-i),a}function F2(i,a){var s=wr(i),u=E(i),p=wr(a),g=E(a);function x(w,S){var C=wr(S),R=wr(w)*C,j=E(w)*C,F=E(S),H=F*s+R*u;return[Zi(j*p-H*g,R*s-F*u),U(H*p+j*g)]}return x.invert=function(w,S){var C=wr(S),R=wr(w)*C,j=E(w)*C,F=E(S),H=F*p-j*g;return[Zi(j*p+F*g,R*s+H*u),U(H*s-R*u)]},x}function P2(i){function a(s){return(s=i(s[0]*Wr,s[1]*Wr))[0]*=Pn,s[1]*=Pn,s}return i=Vd(i[0]*Wr,i[1]*Wr,i.length>2?i[2]*Wr:0),a.invert=function(s){return(s=i.invert(s[0]*Wr,s[1]*Wr))[0]*=Pn,s[1]*=Pn,s},a}function U2(i,a,s,u,p,g){if(s){var x=wr(a),w=E(a),S=u*s;p==null?(p=a+u*Si,g=a-S/2):(p=z2(x,p),g=z2(x,g),(u>0?p<g:p>g)&&(p+=u*Si));for(var C,R=p;u>0?R>g:R<g;R-=S)C=yn([x,-w*wr(R),-w*E(R)]),i.point(C[0],C[1])}}function z2(i,a){(a=$n(a))[0]-=i,fa(a);var s=P(-a[1]);return((-a[2]<0?-s:s)+Si-Jr)%Si}function Ym(){var i,a,s=Gl([0,0]),u=Gl(90),p=Gl(6),g={point:function(w,S){i.push(w=a(w,S)),w[0]*=Pn,w[1]*=Pn}};function x(){var w=s.apply(this,arguments),S=u.apply(this,arguments)*Wr,C=p.apply(this,arguments)*Wr;return i=[],a=Vd(-w[0]*Wr,-w[1]*Wr,0).invert,U2(g,S,C,1),w={type:"Polygon",coordinates:[i]},i=a=null,w}return x.center=function(w){return arguments.length?(s=typeof w=="function"?w:Gl([+w[0],+w[1]]),x):s},x.radius=function(w){return arguments.length?(u=typeof w=="function"?w:Gl(+w),x):u},x.precision=function(w){return arguments.length?(p=typeof w=="function"?w:Gl(+w),x):p},x}function Y2(){var i,a=[];return{point:function(s,u,p){i.push([s,u,p])},lineStart:function(){a.push(i=[])},lineEnd:tt,rejoin:function(){a.length>1&&a.push(a.pop().concat(a.shift()))},result:function(){var s=a;return a=[],i=null,s}}}function p0(i,a){return Br(i[0]-a[0])<Jr&&Br(i[1]-a[1])<Jr}function g0(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,x,w=[],S=[];if(i.forEach(function(it){if(!((G=it.length-1)<=0)){var G,V,X=it[0],dt=it[G];if(p0(X,dt)){if(!X[2]&&!dt[2]){for(p.lineStart(),g=0;g<G;++g)p.point((X=it[g])[0],X[1]);return void p.lineEnd()}dt[0]+=2e-6}w.push(V=new g0(X,it,null,!0)),S.push(V.o=new g0(X,null,V,!1)),w.push(V=new g0(dt,it,null,!1)),S.push(V.o=new g0(dt,null,V,!0))}}),w.length){for(S.sort(a),$2(w),$2(S),g=0,x=S.length;g<x;++g)S[g].e=s=!s;for(var C,R,j=w[0];;){for(var F=j,H=!0;F.v;)if((F=F.n)===j)return;C=F.z,p.lineStart();do{if(F.v=F.o.v=!0,F.e){if(H)for(g=0,x=C.length;g<x;++g)p.point((R=C[g])[0],R[1]);else u(F.x,F.n.x,1,p);F=F.n}else{if(H)for(C=F.p.z,g=C.length-1;g>=0;--g)p.point((R=C[g])[0],R[1]);else u(F.x,F.p.x,-1,p);F=F.p}C=(F=F.o).z,H=!H}while(!F.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 Zd(i){return Br(i[0])<=nn?i[0]:L(i[0])*((Br(i[0])+nn)%Si-nn)}function H2(i,a){var s=Zd(a),u=a[1],p=E(u),g=[E(s),-wr(s),0],x=0,w=0,S=new _t;p===1?u=jn+Jr:p===-1&&(u=-jn-Jr);for(var C=0,R=i.length;C<R;++C)if(F=(j=i[C]).length)for(var j,F,H=j[F-1],it=Zd(H),G=H[1]/2+Vs,V=E(G),X=wr(G),dt=0;dt<F;++dt,it=lt,V=Et,X=ne,H=ct){var ct=j[dt],lt=Zd(ct),bt=ct[1]/2+Vs,Et=E(bt),ne=wr(bt),ve=lt-it,Zt=ve>=0?1:-1,Ht=Zt*ve,qt=Ht>nn,Wt=V*Et;if(S.add(Zi(Wt*Zt*E(Ht),X*ne+Wt*wr(Ht))),x+=qt?ve+Zt*Si:ve,qt^it>=s^lt>=s){var Tt=xi($n(H),$n(ct));fa(Tt);var Ut=xi(g,Tt);fa(Ut);var Jt=(qt^ve>=0?-1:1)*U(Ut[2]);(u>Jt||u===Jt&&(Tt[0]||Tt[1]))&&(w+=qt^ve>=0?1:-1)}}return(x<-1e-6||x<Jr&&S<-1e-12)^1&w}function q2(i,a,s,u){return function(p){var g,x,w,S=a(p),C=Y2(),R=a(C),j=!1,F={point:H,lineStart:G,lineEnd:V,polygonStart:function(){F.point=X,F.lineStart=dt,F.lineEnd=ct,x=[],g=[]},polygonEnd:function(){F.point=H,F.lineStart=G,F.lineEnd=V,x=qe(x);var lt=H2(g,u);x.length?(j||(p.polygonStart(),j=!0),j2(x,$m,lt,s,p)):lt&&(j||(p.polygonStart(),j=!0),p.lineStart(),s(null,null,1,p),p.lineEnd()),j&&(p.polygonEnd(),j=!1),x=g=null},sphere:function(){p.polygonStart(),p.lineStart(),s(null,null,1,p),p.lineEnd(),p.polygonEnd()}};function H(lt,bt){i(lt,bt)&&p.point(lt,bt)}function it(lt,bt){S.point(lt,bt)}function G(){F.point=it,S.lineStart()}function V(){F.point=H,S.lineEnd()}function X(lt,bt){w.push([lt,bt]),R.point(lt,bt)}function dt(){R.lineStart(),w=[]}function ct(){X(w[0][0],w[0][1]),R.lineEnd();var lt,bt,Et,ne,ve=R.clean(),Zt=C.result(),Ht=Zt.length;if(w.pop(),g.push(w),w=null,Ht)if(1&ve){if((bt=(Et=Zt[0]).length-1)>0){for(j||(p.polygonStart(),j=!0),p.lineStart(),lt=0;lt<bt;++lt)p.point((ne=Et[lt])[0],ne[1]);p.lineEnd()}}else Ht>1&&2&ve&&Zt.push(Zt.pop().concat(Zt.shift())),x.push(Zt.filter(jm))}return F}}function jm(i){return i.length>1}function $m(i,a){return((i=i.x)[0]<0?i[1]-jn-Jr:jn-i[1])-((a=a.x)[0]<0?a[1]-jn-Jr:jn-a[1])}Gd.invert=Gd;const Xd=q2(function(){return!0},function(i){var a,s=NaN,u=NaN,p=NaN;return{lineStart:function(){i.lineStart(),a=1},point:function(g,x){var w=g>0?nn:-nn,S=Br(g-s);Br(S-nn)<Jr?(i.point(s,u=(u+x)/2>0?jn:-jn),i.point(p,u),i.lineEnd(),i.lineStart(),i.point(w,u),i.point(g,u),a=0):p!==w&&S>=nn&&(Br(s-p)<Jr&&(s-=p*Jr),Br(g-w)<Jr&&(g-=w*Jr),u=function(C,R,j,F){var H,it,G=E(C-j);return Br(G)>Jr?ps((E(R)*(it=wr(F))*E(j)-E(F)*(H=wr(R))*E(C))/(H*it*G)):(R+F)/2}(s,u,g,x),i.point(p,u),i.lineEnd(),i.lineStart(),i.point(w,u),a=0),i.point(s=g,u=x),p=w},lineEnd:function(){i.lineEnd(),s=u=NaN},clean:function(){return 2-a}}},function(i,a,s,u){var p;if(i==null)p=s*jn,u.point(-nn,p),u.point(0,p),u.point(nn,p),u.point(nn,0),u.point(nn,-p),u.point(0,-p),u.point(-nn,-p),u.point(-nn,0),u.point(-nn,p);else if(Br(i[0]-a[0])>Jr){var g=i[0]<a[0]?nn:-nn;p=s*g/2,u.point(-g,p),u.point(0,p),u.point(g,p)}else u.point(a[0],a[1])},[-nn,-jn]);function W2(i){var a=wr(i),s=6*Wr,u=a>0,p=Br(a)>Jr;function g(S,C){return wr(S)*wr(C)>a}function x(S,C,R){var j=[1,0,0],F=xi($n(S),$n(C)),H=mn(F,F),it=F[0],G=H-it*it;if(!G)return!R&&S;var V=a*H/G,X=-a*it/G,dt=xi(j,F),ct=Da(j,V);pn(ct,Da(F,X));var lt=dt,bt=mn(ct,lt),Et=mn(lt,lt),ne=bt*bt-Et*(mn(ct,ct)-1);if(!(ne<0)){var ve=N(ne),Zt=Da(lt,(-bt-ve)/Et);if(pn(Zt,ct),Zt=yn(Zt),!R)return Zt;var Ht,qt=S[0],Wt=C[0],Tt=S[1],Ut=C[1];Wt<qt&&(Ht=qt,qt=Wt,Wt=Ht);var Jt=Wt-qt,le=Br(Jt-nn)<Jr;if(!le&&Ut<Tt&&(Ht=Tt,Tt=Ut,Ut=Ht),le||Jt<Jr?le?Tt+Ut>0^Zt[1]<(Br(Zt[0]-qt)<Jr?Tt:Ut):Tt<=Zt[1]&&Zt[1]<=Ut:Jt>nn^(qt<=Zt[0]&&Zt[0]<=Wt)){var Ae=Da(lt,(-bt+ve)/Et);return pn(Ae,ct),[Zt,yn(Ae)]}}}function w(S,C){var R=u?i:nn-i,j=0;return S<-R?j|=1:S>R&&(j|=2),C<-R?j|=4:C>R&&(j|=8),j}return q2(g,function(S){var C,R,j,F,H;return{lineStart:function(){F=j=!1,H=1},point:function(it,G){var V,X=[it,G],dt=g(it,G),ct=u?dt?0:w(it,G):dt?w(it+(it<0?nn:-nn),G):0;if(!C&&(F=j=dt)&&S.lineStart(),dt!==j&&(!(V=x(C,X))||p0(C,V)||p0(X,V))&&(X[2]=1),dt!==j)H=0,dt?(S.lineStart(),V=x(X,C),S.point(V[0],V[1])):(V=x(C,X),S.point(V[0],V[1],2),S.lineEnd()),C=V;else if(p&&C&&u^dt){var lt;ct&R||!(lt=x(X,C,!0))||(H=0,u?(S.lineStart(),S.point(lt[0][0],lt[0][1]),S.point(lt[1][0],lt[1][1]),S.lineEnd()):(S.point(lt[1][0],lt[1][1]),S.lineEnd(),S.lineStart(),S.point(lt[0][0],lt[0][1],3)))}!dt||C&&p0(C,X)||S.point(X[0],X[1]),C=X,j=dt,R=ct},lineEnd:function(){j&&S.lineEnd(),C=null},clean:function(){return H|(F&&j)<<1}}},function(S,C,R,j){U2(j,i,s,R,S,C)},u?[0,-i]:[-nn,i-nn])}var Kd,Jd,y0,m0,xh=1e9,_0=-xh;function b0(i,a,s,u){function p(C,R){return i<=C&&C<=s&&a<=R&&R<=u}function g(C,R,j,F){var H=0,it=0;if(C==null||(H=x(C,j))!==(it=x(R,j))||S(C,R)<0^j>0)do F.point(H===0||H===3?i:s,H>1?u:a);while((H=(H+j+4)%4)!==it);else F.point(R[0],R[1])}function x(C,R){return Br(C[0]-i)<Jr?R>0?0:3:Br(C[0]-s)<Jr?R>0?2:1:Br(C[1]-a)<Jr?R>0?1:0:R>0?3:2}function w(C,R){return S(C.x,R.x)}function S(C,R){var j=x(C,1),F=x(R,1);return j!==F?j-F:j===0?R[1]-C[1]:j===1?C[0]-R[0]:j===2?C[1]-R[1]:R[0]-C[0]}return function(C){var R,j,F,H,it,G,V,X,dt,ct,lt,bt=C,Et=Y2(),ne={point:ve,lineStart:function(){ne.point=Zt,j&&j.push(F=[]),ct=!0,dt=!1,V=X=NaN},lineEnd:function(){R&&(Zt(H,it),G&&dt&&Et.rejoin(),R.push(Et.result())),ne.point=ve,dt&&bt.lineEnd()},polygonStart:function(){bt=Et,R=[],j=[],lt=!0},polygonEnd:function(){var Ht=function(){for(var Tt=0,Ut=0,Jt=j.length;Ut<Jt;++Ut)for(var le,Ae,He=j[Ut],Ke=1,yr=He.length,Je=He[0],Hr=Je[0],Gr=Je[1];Ke<yr;++Ke)le=Hr,Ae=Gr,Hr=(Je=He[Ke])[0],Gr=Je[1],Ae<=u?Gr>u&&(Hr-le)*(u-Ae)>(Gr-Ae)*(i-le)&&++Tt:Gr<=u&&(Hr-le)*(u-Ae)<(Gr-Ae)*(i-le)&&--Tt;return Tt}(),qt=lt&&Ht,Wt=(R=qe(R)).length;(qt||Wt)&&(C.polygonStart(),qt&&(C.lineStart(),g(null,null,1,C),C.lineEnd()),Wt&&j2(R,w,Ht,g,C),C.polygonEnd()),bt=C,R=j=F=null}};function ve(Ht,qt){p(Ht,qt)&&bt.point(Ht,qt)}function Zt(Ht,qt){var Wt=p(Ht,qt);if(j&&F.push([Ht,qt]),ct)H=Ht,it=qt,G=Wt,ct=!1,Wt&&(bt.lineStart(),bt.point(Ht,qt));else if(Wt&&dt)bt.point(Ht,qt);else{var Tt=[V=Math.max(_0,Math.min(xh,V)),X=Math.max(_0,Math.min(xh,X))],Ut=[Ht=Math.max(_0,Math.min(xh,Ht)),qt=Math.max(_0,Math.min(xh,qt))];(function(Jt,le,Ae,He,Ke,yr){var Je,Hr=Jt[0],Gr=Jt[1],Nr=0,Fr=1,An=le[0]-Hr,cn=le[1]-Gr;if(Je=Ae-Hr,An||!(Je>0)){if(Je/=An,An<0){if(Je<Nr)return;Je<Fr&&(Fr=Je)}else if(An>0){if(Je>Fr)return;Je>Nr&&(Nr=Je)}if(Je=Ke-Hr,An||!(Je<0)){if(Je/=An,An<0){if(Je>Fr)return;Je>Nr&&(Nr=Je)}else if(An>0){if(Je<Nr)return;Je<Fr&&(Fr=Je)}if(Je=He-Gr,cn||!(Je>0)){if(Je/=cn,cn<0){if(Je<Nr)return;Je<Fr&&(Fr=Je)}else if(cn>0){if(Je>Fr)return;Je>Nr&&(Nr=Je)}if(Je=yr-Gr,cn||!(Je<0)){if(Je/=cn,cn<0){if(Je>Fr)return;Je>Nr&&(Nr=Je)}else if(cn>0){if(Je<Nr)return;Je<Fr&&(Fr=Je)}return Nr>0&&(Jt[0]=Hr+Nr*An,Jt[1]=Gr+Nr*cn),Fr<1&&(le[0]=Hr+Fr*An,le[1]=Gr+Fr*cn),!0}}}}})(Tt,Ut,i,a,s,u)?(dt||(bt.lineStart(),bt.point(Tt[0],Tt[1])),bt.point(Ut[0],Ut[1]),Wt||bt.lineEnd(),lt=!1):Wt&&(bt.lineStart(),bt.point(Ht,qt),lt=!1)}V=Ht,X=qt,dt=Wt}return ne}}function Hm(){var i,a,s,u=0,p=0,g=960,x=500;return s={stream:function(w){return i&&a===w?i:i=b0(u,p,g,x)(a=w)},extent:function(w){return arguments.length?(u=+w[0][0],p=+w[0][1],g=+w[1][0],x=+w[1][1],i=a=null,s):[[u,p],[g,x]]}}}var Vl={sphere:tt,point:tt,lineStart:function(){Vl.point=Wm,Vl.lineEnd=qm},lineEnd:tt,polygonStart:tt,polygonEnd:tt};function qm(){Vl.point=Vl.lineEnd=tt}function Wm(i,a){Jd=i*=Wr,y0=E(a*=Wr),m0=wr(a),Vl.point=Gm}function Gm(i,a){i*=Wr;var s=E(a*=Wr),u=wr(a),p=Br(i-Jd),g=wr(p),x=u*E(p),w=m0*s-y0*u*g,S=y0*s+m0*u*g;Kd.add(Zi(N(x*x+w*w),S)),Jd=i,y0=s,m0=u}function G2(i){return Kd=new _t,Ft(i,Vl),+Kd}var Qd=[null,null],Vm={type:"LineString",coordinates:Qd};function v0(i,a){return Qd[0]=i,Qd[1]=a,G2(Vm)}var V2={Feature:function(i,a){return x0(i.geometry,a)},FeatureCollection:function(i,a){for(var s=i.features,u=-1,p=s.length;++u<p;)if(x0(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(x0(s[u],a))return!0;return!1}};function x0(i,a){return!(!i||!Z2.hasOwnProperty(i.type))&&Z2[i.type](i,a)}function X2(i,a){return v0(i,a)===0}function K2(i,a){for(var s,u,p,g=0,x=i.length;g<x;g++){if((u=v0(i[g],a))===0||g>0&&(p=v0(i[g],i[g-1]))>0&&s<=p&&u<=p&&(s+u-p)*(1-Math.pow((s-u)/p,2))<$l*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]*Wr,i[1]*Wr]}function Xm(i,a){return(i&&V2.hasOwnProperty(i.type)?V2[i.type]:x0)(i,a)}function tp(i,a,s){var u=De(i,a-Jr,s).concat(a);return function(p){return u.map(function(g){return[p,g]})}}function ep(i,a,s){var u=De(i,a-Jr,s).concat(a);return function(p){return u.map(function(g){return[g,p]})}}function rp(){var i,a,s,u,p,g,x,w,S,C,R,j,F=10,H=F,it=90,G=360,V=2.5;function X(){return{type:"MultiLineString",coordinates:dt()}}function dt(){return De(gs(u/it)*it,s,it).map(R).concat(De(gs(w/G)*G,x,G).map(j)).concat(De(gs(a/F)*F,i,F).filter(function(ct){return Br(ct%it)>Jr}).map(S)).concat(De(gs(g/H)*H,p,H).filter(function(ct){return Br(ct%G)>Jr}).map(C))}return X.lines=function(){return dt().map(function(ct){return{type:"LineString",coordinates:ct}})},X.outline=function(){return{type:"Polygon",coordinates:[R(u).concat(j(x).slice(1),R(s).reverse().slice(1),j(w).reverse().slice(1))]}},X.extent=function(ct){return arguments.length?X.extentMajor(ct).extentMinor(ct):X.extentMinor()},X.extentMajor=function(ct){return arguments.length?(u=+ct[0][0],s=+ct[1][0],w=+ct[0][1],x=+ct[1][1],u>s&&(ct=u,u=s,s=ct),w>x&&(ct=w,w=x,x=ct),X.precision(V)):[[u,w],[s,x]]},X.extentMinor=function(ct){return arguments.length?(a=+ct[0][0],i=+ct[1][0],g=+ct[0][1],p=+ct[1][1],a>i&&(ct=a,a=i,i=ct),g>p&&(ct=g,g=p,p=ct),X.precision(V)):[[a,g],[i,p]]},X.step=function(ct){return arguments.length?X.stepMajor(ct).stepMinor(ct):X.stepMinor()},X.stepMajor=function(ct){return arguments.length?(it=+ct[0],G=+ct[1],X):[it,G]},X.stepMinor=function(ct){return arguments.length?(F=+ct[0],H=+ct[1],X):[F,H]},X.precision=function(ct){return arguments.length?(V=+ct,S=tp(g,p,90),C=ep(a,i,V),R=tp(w,x,90),j=ep(u,s,V),X):V},X.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Km(){return rp()()}function Jm(i,a){var s=i[0]*Wr,u=i[1]*Wr,p=a[0]*Wr,g=a[1]*Wr,x=wr(u),w=E(u),S=wr(g),C=E(g),R=x*wr(s),j=x*E(s),F=S*wr(p),H=S*E(p),it=2*U(N(K(g-u)+x*S*K(p-s))),G=E(it),V=it?function(X){var dt=E(X*=it)/G,ct=E(it-X)/G,lt=ct*R+dt*F,bt=ct*j+dt*H,Et=ct*w+dt*C;return[Zi(bt,lt)*Pn,Zi(Et,N(lt*lt+bt*bt))*Pn]}:function(){return[s*Pn,u*Pn]};return V.distance=it,V}const wh=i=>i;var np,ip,tf,ef,rf=new _t,nf=new _t,Zs={point:tt,lineStart:tt,lineEnd:tt,polygonStart:function(){Zs.lineStart=Qm,Zs.lineEnd=e_},polygonEnd:function(){Zs.lineStart=Zs.lineEnd=Zs.point=tt,rf.add(Br(nf)),nf=new _t},result:function(){var i=rf/2;return rf=new _t,i}};function Qm(){Zs.point=t_}function t_(i,a){Zs.point=ap,np=tf=i,ip=ef=a}function ap(i,a){nf.add(ef*i-tf*a),tf=i,ef=a}function e_(){ap(np,ip)}const op=Zs;var Zl=1/0,w0=Zl,kh=-Zl,k0=kh,r_={point:function(i,a){i<Zl&&(Zl=i),i>kh&&(kh=i),a<w0&&(w0=a),a>k0&&(k0=a)},lineStart:tt,lineEnd:tt,polygonStart:tt,polygonEnd:tt,result:function(){var i=[[Zl,w0],[kh,k0]];return kh=k0=-(w0=Zl=1/0),i}};const E0=r_;var sp,cp,Zo,Xo,af=0,of=0,Eh=0,T0=0,S0=0,Xl=0,sf=0,cf=0,Th=0,Mo={point:jc,lineStart:lp,lineEnd:up,polygonStart:function(){Mo.lineStart=a_,Mo.lineEnd=o_},polygonEnd:function(){Mo.point=jc,Mo.lineStart=lp,Mo.lineEnd=up},result:function(){var i=Th?[sf/Th,cf/Th]:Xl?[T0/Xl,S0/Xl]:Eh?[af/Eh,of/Eh]:[NaN,NaN];return af=of=Eh=T0=S0=Xl=sf=cf=Th=0,i}};function jc(i,a){af+=i,of+=a,++Eh}function lp(){Mo.point=n_}function n_(i,a){Mo.point=i_,jc(Zo=i,Xo=a)}function i_(i,a){var s=i-Zo,u=a-Xo,p=N(s*s+u*u);T0+=p*(Zo+i)/2,S0+=p*(Xo+a)/2,Xl+=p,jc(Zo=i,Xo=a)}function up(){Mo.point=jc}function a_(){Mo.point=s_}function o_(){hp(sp,cp)}function s_(i,a){Mo.point=hp,jc(sp=Zo=i,cp=Xo=a)}function hp(i,a){var s=i-Zo,u=a-Xo,p=N(s*s+u*u);T0+=p*(Zo+i)/2,S0+=p*(Xo+a)/2,Xl+=p,sf+=(p=Xo*i-Zo*a)*(Zo+i),cf+=p*(Xo+a),Th+=3*p,jc(Zo=i,Xo=a)}const dp=Mo;function fp(i){this._context=i}fp.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,Si)}},result:tt};var lf,pp,gp,Sh,Ah,uf=new _t,A0={point:tt,lineStart:function(){A0.point=c_},lineEnd:function(){lf&&yp(pp,gp),A0.point=tt},polygonStart:function(){lf=!0},polygonEnd:function(){lf=null},result:function(){var i=+uf;return uf=new _t,i}};function c_(i,a){A0.point=yp,pp=Sh=i,gp=Ah=a}function yp(i,a){Sh-=i,Ah-=a,uf.add(N(Sh*Sh+Ah*Ah)),Sh=i,Ah=a}const mp=A0;function _p(){this._string=[]}function bp(i){return"m0,"+i+"a"+i+","+i+" 0 1,1 0,"+-2*i+"a"+i+","+i+" 0 1,1 0,"+2*i+"z"}function l_(i,a){var s,u,p=4.5;function g(x){return x&&(typeof p=="function"&&u.pointRadius(+p.apply(this,arguments)),Ft(x,s(u))),u.result()}return g.area=function(x){return Ft(x,s(op)),op.result()},g.measure=function(x){return Ft(x,s(mp)),mp.result()},g.bounds=function(x){return Ft(x,s(E0)),E0.result()},g.centroid=function(x){return Ft(x,s(dp)),dp.result()},g.projection=function(x){return arguments.length?(s=x==null?(i=null,wh):(i=x).stream,g):i},g.context=function(x){return arguments.length?(u=x==null?(a=null,new _p):new fp(a=x),typeof p!="function"&&u.pointRadius(p),g):a},g.pointRadius=function(x){return arguments.length?(p=typeof x=="function"?x:(u.pointRadius(+x),+x),g):p},g.projection(i).context(a)}function u_(i){return{stream:Ch(i)}}function Ch(i){return function(a){var s=new hf;for(var u in i)s[u]=i[u];return s.stream=a,s}}function hf(){}function df(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(E0)),a(E0.result()),u!=null&&i.clipExtent(u),i}function C0(i,a,s){return df(i,function(u){var p=a[1][0]-a[0][0],g=a[1][1]-a[0][1],x=Math.min(p/(u[1][0]-u[0][0]),g/(u[1][1]-u[0][1])),w=+a[0][0]+(p-x*(u[1][0]+u[0][0]))/2,S=+a[0][1]+(g-x*(u[1][1]+u[0][1]))/2;i.scale(150*x).translate([w,S])},s)}function ff(i,a,s){return C0(i,[[0,0],a],s)}function pf(i,a,s){return df(i,function(u){var p=+a,g=p/(u[1][0]-u[0][0]),x=(p-g*(u[1][0]+u[0][0]))/2,w=-g*u[0][1];i.scale(150*g).translate([x,w])},s)}function gf(i,a,s){return df(i,function(u){var p=+a,g=p/(u[1][1]-u[0][1]),x=-g*u[0][0],w=(p-g*(u[1][1]+u[0][1]))/2;i.scale(150*g).translate([x,w])},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}},hf.prototype={constructor:hf,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_=wr(30*Wr);function vp(i,a){return+a?function(s,u){function p(g,x,w,S,C,R,j,F,H,it,G,V,X,dt){var ct=j-g,lt=F-x,bt=ct*ct+lt*lt;if(bt>4*u&&X--){var Et=S+it,ne=C+G,ve=R+V,Zt=N(Et*Et+ne*ne+ve*ve),Ht=U(ve/=Zt),qt=Br(Br(ve)-1)<Jr||Br(w-H)<Jr?(w+H)/2:Zi(ne,Et),Wt=s(qt,Ht),Tt=Wt[0],Ut=Wt[1],Jt=Tt-g,le=Ut-x,Ae=lt*Jt-ct*le;(Ae*Ae/bt>u||Br((ct*Jt+lt*le)/bt-.5)>.3||S*it+C*G+R*V<h_)&&(p(g,x,w,S,C,R,Tt,Ut,qt,Et/=Zt,ne/=Zt,ve,X,dt),dt.point(Tt,Ut),p(Tt,Ut,qt,Et,ne,ve,j,F,H,it,G,V,X,dt))}}return function(g){var x,w,S,C,R,j,F,H,it,G,V,X,dt={point:ct,lineStart:lt,lineEnd:Et,polygonStart:function(){g.polygonStart(),dt.lineStart=ne},polygonEnd:function(){g.polygonEnd(),dt.lineStart=lt}};function ct(Ht,qt){Ht=s(Ht,qt),g.point(Ht[0],Ht[1])}function lt(){H=NaN,dt.point=bt,g.lineStart()}function bt(Ht,qt){var Wt=$n([Ht,qt]),Tt=s(Ht,qt);p(H,it,F,G,V,X,H=Tt[0],it=Tt[1],F=Ht,G=Wt[0],V=Wt[1],X=Wt[2],16,g),g.point(H,it)}function Et(){dt.point=ct,g.lineEnd()}function ne(){lt(),dt.point=ve,dt.lineEnd=Zt}function ve(Ht,qt){bt(x=Ht,qt),w=H,S=it,C=G,R=V,j=X,dt.point=bt}function Zt(){p(H,it,F,G,V,X,w,S,x,C,R,j,16,g),dt.lineEnd=Et,Et()}return dt}}(i,a):function(s){return Ch({point:function(u,p){u=s(u,p),this.stream.point(u[0],u[1])}})}(i)}var d_=Ch({point:function(i,a){this.stream.point(i*Wr,a*Wr)}});function xp(i,a,s,u,p,g){if(!g)return function(G,V,X,dt,ct){function lt(bt,Et){return[V+G*(bt*=dt),X-G*(Et*=ct)]}return lt.invert=function(bt,Et){return[(bt-V)/G*dt,(X-Et)/G*ct]},lt}(i,a,s,u,p);var x=wr(g),w=E(g),S=x*i,C=w*i,R=x/i,j=w/i,F=(w*s-x*a)/i,H=(w*a+x*s)/i;function it(G,V){return[S*(G*=u)-C*(V*=p)+a,s-C*G-S*V]}return it.invert=function(G,V){return[u*(R*G-j*V+F),p*(H-j*G-R*V)]},it}function Ko(i){return yf(function(){return i})()}function yf(i){var a,s,u,p,g,x,w,S,C,R,j=150,F=480,H=250,it=0,G=0,V=0,X=0,dt=0,ct=0,lt=1,bt=1,Et=null,ne=Xd,ve=null,Zt=wh,Ht=.5;function qt(Jt){return S(Jt[0]*Wr,Jt[1]*Wr)}function Wt(Jt){return(Jt=S.invert(Jt[0],Jt[1]))&&[Jt[0]*Pn,Jt[1]*Pn]}function Tt(){var Jt=xp(j,0,0,lt,bt,ct).apply(null,a(it,G)),le=xp(j,F-Jt[0],H-Jt[1],lt,bt,ct);return s=Vd(V,X,dt),w=Wd(a,le),S=Wd(s,w),x=vp(w,Ht),Ut()}function Ut(){return C=R=null,qt}return qt.stream=function(Jt){return C&&R===Jt?C:C=d_(function(le){return Ch({point:function(Ae,He){var Ke=le(Ae,He);return this.stream.point(Ke[0],Ke[1])}})}(s)(ne(x(Zt(R=Jt)))))},qt.preclip=function(Jt){return arguments.length?(ne=Jt,Et=void 0,Ut()):ne},qt.postclip=function(Jt){return arguments.length?(Zt=Jt,ve=u=p=g=null,Ut()):Zt},qt.clipAngle=function(Jt){return arguments.length?(ne=+Jt?W2(Et=Jt*Wr):(Et=null,Xd),Ut()):Et*Pn},qt.clipExtent=function(Jt){return arguments.length?(Zt=Jt==null?(ve=u=p=g=null,wh):b0(ve=+Jt[0][0],u=+Jt[0][1],p=+Jt[1][0],g=+Jt[1][1]),Ut()):ve==null?null:[[ve,u],[p,g]]},qt.scale=function(Jt){return arguments.length?(j=+Jt,Tt()):j},qt.translate=function(Jt){return arguments.length?(F=+Jt[0],H=+Jt[1],Tt()):[F,H]},qt.center=function(Jt){return arguments.length?(it=Jt[0]%360*Wr,G=Jt[1]%360*Wr,Tt()):[it*Pn,G*Pn]},qt.rotate=function(Jt){return arguments.length?(V=Jt[0]%360*Wr,X=Jt[1]%360*Wr,dt=Jt.length>2?Jt[2]%360*Wr:0,Tt()):[V*Pn,X*Pn,dt*Pn]},qt.angle=function(Jt){return arguments.length?(ct=Jt%360*Wr,Tt()):ct*Pn},qt.reflectX=function(Jt){return arguments.length?(lt=Jt?-1:1,Tt()):lt<0},qt.reflectY=function(Jt){return arguments.length?(bt=Jt?-1:1,Tt()):bt<0},qt.precision=function(Jt){return arguments.length?(x=vp(w,Ht=Jt*Jt),Ut()):N(Ht)},qt.fitExtent=function(Jt,le){return C0(qt,Jt,le)},qt.fitSize=function(Jt,le){return ff(qt,Jt,le)},qt.fitWidth=function(Jt,le){return pf(qt,Jt,le)},qt.fitHeight=function(Jt,le){return gf(qt,Jt,le)},function(){return a=i.apply(this,arguments),qt.invert=a.invert&&Wt,Tt()}}function mf(i){var a=0,s=nn/3,u=yf(i),p=u(a,s);return p.parallels=function(g){return arguments.length?u(a=g[0]*Wr,s=g[1]*Wr):[a*Pn,s*Pn]},p}function wp(i,a){var s=E(i),u=(s+E(a))/2;if(Br(u)<Jr)return function(w){var S=wr(w);function C(R,j){return[R*S,E(j)/S]}return C.invert=function(R,j){return[R/S,U(j*S)]},C}(i);var p=1+s*(2*u-s),g=N(p)/u;function x(w,S){var C=N(p-2*u*E(S))/u;return[C*E(w*=u),g-C*wr(w)]}return x.invert=function(w,S){var C=g-S,R=Zi(w,Br(C))*L(C);return C*u<0&&(R-=nn*L(w)*L(C)),[R/u,U((p-(w*w+C*C)*u*u)/(2*u))]},x}function I0(){return mf(wp).scale(155.424).center([0,33.6442])}function kp(){return I0().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function f_(){var i,a,s,u,p,g,x=kp(),w=I0().rotate([154,0]).center([-2,58.5]).parallels([55,65]),S=I0().rotate([157,0]).center([-3,19.9]).parallels([8,18]),C={point:function(F,H){g=[F,H]}};function R(F){var H=F[0],it=F[1];return g=null,s.point(H,it),g||(u.point(H,it),g)||(p.point(H,it),g)}function j(){return i=a=null,R}return R.invert=function(F){var H=x.scale(),it=x.translate(),G=(F[0]-it[0])/H,V=(F[1]-it[1])/H;return(V>=.12&&V<.234&&G>=-.425&&G<-.214?w:V>=.166&&V<.234&&G>=-.214&&G<-.115?S:x).invert(F)},R.stream=function(F){return i&&a===F?i:(H=[x.stream(a=F),w.stream(F),S.stream(F)],it=H.length,i={point:function(G,V){for(var X=-1;++X<it;)H[X].point(G,V)},sphere:function(){for(var G=-1;++G<it;)H[G].sphere()},lineStart:function(){for(var G=-1;++G<it;)H[G].lineStart()},lineEnd:function(){for(var G=-1;++G<it;)H[G].lineEnd()},polygonStart:function(){for(var G=-1;++G<it;)H[G].polygonStart()},polygonEnd:function(){for(var G=-1;++G<it;)H[G].polygonEnd()}});var H,it},R.precision=function(F){return arguments.length?(x.precision(F),w.precision(F),S.precision(F),j()):x.precision()},R.scale=function(F){return arguments.length?(x.scale(F),w.scale(.35*F),S.scale(F),R.translate(x.translate())):x.scale()},R.translate=function(F){if(!arguments.length)return x.translate();var H=x.scale(),it=+F[0],G=+F[1];return s=x.translate(F).clipExtent([[it-.455*H,G-.238*H],[it+.455*H,G+.238*H]]).stream(C),u=w.translate([it-.307*H,G+.201*H]).clipExtent([[it-.425*H+Jr,G+.12*H+Jr],[it-.214*H-Jr,G+.234*H-Jr]]).stream(C),p=S.translate([it-.205*H,G+.212*H]).clipExtent([[it-.214*H+Jr,G+.166*H+Jr],[it-.115*H-Jr,G+.234*H-Jr]]).stream(C),j()},R.fitExtent=function(F,H){return C0(R,F,H)},R.fitSize=function(F,H){return ff(R,F,H)},R.fitWidth=function(F,H){return pf(R,F,H)},R.fitHeight=function(F,H){return gf(R,F,H)},R.scale(1070)}function Ep(i){return function(a,s){var u=wr(a),p=wr(s),g=i(u*p);return g===1/0?[2,0]:[g*p*E(a),g*E(s)]}}function Ih(i){return function(a,s){var u=N(a*a+s*s),p=i(u),g=E(p),x=wr(p);return[Zi(a*g,u*x),U(u&&s*g/u)]}}var _f=Ep(function(i){return N(2/(1+i))});function p_(){return Ko(_f).scale(124.75).clipAngle(179.999)}_f.invert=Ih(function(i){return 2*U(i/2)});var bf=Ep(function(i){return(i=P(i))&&i/E(i)});function g_(){return Ko(bf).scale(79.4188).clipAngle(179.999)}function Nh(i,a){return[i,y(D((jn+a)/2))]}function y_(){return Tp(Nh).scale(961/Si)}function Tp(i){var a,s,u,p=Ko(i),g=p.center,x=p.scale,w=p.translate,S=p.clipExtent,C=null;function R(){var j=nn*x(),F=p(P2(p.rotate()).invert([0,0]));return S(C==null?[[F[0]-j,F[1]-j],[F[0]+j,F[1]+j]]:i===Nh?[[Math.max(F[0]-j,C),a],[Math.min(F[0]+j,s),u]]:[[C,Math.max(F[1]-j,a)],[s,Math.min(F[1]+j,u)]])}return p.scale=function(j){return arguments.length?(x(j),R()):x()},p.translate=function(j){return arguments.length?(w(j),R()):w()},p.center=function(j){return arguments.length?(g(j),R()):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]),R()):C==null?null:[[C,a],[s,u]]},R()}function N0(i){return D((jn+i)/2)}function Sp(i,a){var s=wr(i),u=i===a?E(i):y(s/wr(a))/y(N0(a)/N0(i)),p=s*k(N0(i),u)/u;if(!u)return Nh;function g(x,w){p>0?w<-jn+Jr&&(w=-jn+Jr):w>jn-Jr&&(w=jn-Jr);var S=p/k(N0(w),u);return[S*E(u*x),p-S*wr(u*x)]}return g.invert=function(x,w){var S=p-w,C=L(u)*N(x*x+S*S),R=Zi(x,Br(S))*L(S);return S*u<0&&(R-=nn*L(x)*L(S)),[R/u,2*ps(k(p/C,1/u))-jn]},g}function m_(){return mf(Sp).scale(109.5).parallels([30,30])}function Lh(i,a){return[i,a]}function __(){return Ko(Lh).scale(152.63)}function Ap(i,a){var s=wr(i),u=i===a?E(i):(s-wr(a))/(a-i),p=s/u+i;if(Br(u)<Jr)return Lh;function g(x,w){var S=p-w,C=u*x;return[S*E(C),p-S*wr(C)]}return g.invert=function(x,w){var S=p-w,C=Zi(x,Br(S))*L(S);return S*u<0&&(C-=nn*L(x)*L(S)),[C/u,p-L(u)*N(x*x+S*S)]},g}function b_(){return mf(Ap).scale(131.154).center([0,13.9389])}bf.invert=Ih(function(i){return i}),Nh.invert=function(i,a){return[i,2*ps(l(a))-jn]},Lh.invert=Lh;var Mh=1.340264,Dh=-.081106,Oh=893e-6,Rh=.003796,L0=N(3)/2;function vf(i,a){var s=U(L0*E(a)),u=s*s,p=u*u*u;return[i*wr(s)/(L0*(Mh+3*Dh*u+p*(7*Oh+9*Rh*u))),s*(Mh+Dh*u+p*(Oh+Rh*u))]}function v_(){return Ko(vf).scale(177.158)}function xf(i,a){var s=wr(a),u=wr(i)*s;return[s*E(i)/u,E(a)/u]}function x_(){return Ko(xf).scale(144.049).clipAngle(60)}function w_(){var i,a,s,u,p,g,x,w=1,S=0,C=0,R=1,j=1,F=0,H=null,it=1,G=1,V=Ch({point:function(lt,bt){var Et=ct([lt,bt]);this.stream.point(Et[0],Et[1])}}),X=wh;function dt(){return it=w*R,G=w*j,g=x=null,ct}function ct(lt){var bt=lt[0]*it,Et=lt[1]*G;if(F){var ne=Et*i-bt*a;bt=bt*i+Et*a,Et=ne}return[bt+S,Et+C]}return ct.invert=function(lt){var bt=lt[0]-S,Et=lt[1]-C;if(F){var ne=Et*i+bt*a;bt=bt*i-Et*a,Et=ne}return[bt/it,Et/G]},ct.stream=function(lt){return g&&x===lt?g:g=V(X(x=lt))},ct.postclip=function(lt){return arguments.length?(X=lt,H=s=u=p=null,dt()):X},ct.clipExtent=function(lt){return arguments.length?(X=lt==null?(H=s=u=p=null,wh):b0(H=+lt[0][0],s=+lt[0][1],u=+lt[1][0],p=+lt[1][1]),dt()):H==null?null:[[H,s],[u,p]]},ct.scale=function(lt){return arguments.length?(w=+lt,dt()):w},ct.translate=function(lt){return arguments.length?(S=+lt[0],C=+lt[1],dt()):[S,C]},ct.angle=function(lt){return arguments.length?(a=E(F=lt%360*Wr),i=wr(F),dt()):F*Pn},ct.reflectX=function(lt){return arguments.length?(R=lt?-1:1,dt()):R<0},ct.reflectY=function(lt){return arguments.length?(j=lt?-1:1,dt()):j<0},ct.fitExtent=function(lt,bt){return C0(ct,lt,bt)},ct.fitSize=function(lt,bt){return ff(ct,lt,bt)},ct.fitWidth=function(lt,bt){return pf(ct,lt,bt)},ct.fitHeight=function(lt,bt){return gf(ct,lt,bt)},ct}function wf(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 k_(){return Ko(wf).scale(175.295)}function kf(i,a){return[wr(a)*E(i),E(a)]}function E_(){return Ko(kf).scale(249.5).clipAngle(90.000001)}function Ef(i,a){var s=wr(a),u=1+wr(i)*s;return[s*E(i)/u,E(a)/u]}function T_(){return Ko(Ef).scale(250).clipAngle(142)}function Tf(i,a){return[y(D((jn+a)/2)),-i]}function S_(){var i=Tp(Tf),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 x,w=0;g.eachAfter(function(F){var H=F.children;H?(F.x=function(it){return it.reduce(C_,0)/it.length}(H),F.y=function(it){return 1+it.reduce(I_,0)}(H)):(F.x=x?w+=i(F,x):0,F.y=0,x=F)});var S=function(F){for(var H;H=F.children;)F=H[0];return F}(g),C=function(F){for(var H;H=F.children;)F=H[H.length-1];return F}(g),R=S.x-i(S,C)/2,j=C.x+i(C,S)/2;return g.eachAfter(u?function(F){F.x=(F.x-g.x)*a,F.y=(g.y-F.y)*s}:function(F){F.x=(F.x-R)/(j-R)*a,F.y=(1-(g.y?F.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 Sf(i,a){i instanceof Map?(i=[void 0,i],a===void 0&&(a=D_)):a===void 0&&(a=M_);for(var s,u,p,g,x,w=new $c(i),S=[w];s=S.pop();)if((p=a(s.data))&&(x=(p=Array.from(p)).length))for(s.children=p,g=x-1;g>=0;--g)S.push(u=p[g]=new $c(p[g])),u.parent=s,u.depth=s.depth+1;return w.eachBefore(Cp)}function M_(i){return i.children}function D_(i){return Array.isArray(i)?i[1]:null}function O_(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 $c(i){this.data=i,this.depth=this.height=0,this.parent=null}function Ip(i){for(var a,s,u=0,p=(i=function(x){for(var w,S,C=x.length;C;)S=Math.random()*C--|0,w=x[C],x[C]=x[S],x[S]=w;return x}(Array.from(i))).length,g=[];u<p;)a=i[u],s&&Np(s,a)?++u:(s=B_(g=R_(g,a)),u=0);return s}function R_(i,a){var s,u;if(Af(a,i))return[a];for(s=0;s<i.length;++s)if(M0(a,i[s])&&Af(Bh(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(M0(Bh(i[s],i[u]),a)&&M0(Bh(i[s],a),i[u])&&M0(Bh(i[u],a),i[s])&&Af(Lp(i[s],i[u],a),i))return[i[s],i[u],a];throw new Error}function M0(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 Af(i,a){for(var s=0;s<a.length;++s)if(!Np(i,a[s]))return!1;return!0}function B_(i){switch(i.length){case 1:return{x:(a=i[0]).x,y:a.y,r:a.r};case 2:return Bh(i[0],i[1]);case 3:return Lp(i[0],i[1],i[2])}var a}function Bh(i,a){var s=i.x,u=i.y,p=i.r,g=a.x,x=a.y,w=a.r,S=g-s,C=x-u,R=w-p,j=Math.sqrt(S*S+C*C);return{x:(s+g+S/j*R)/2,y:(u+x+C/j*R)/2,r:(j+p+w)/2}}function Lp(i,a,s){var u=i.x,p=i.y,g=i.r,x=a.x,w=a.y,S=a.r,C=s.x,R=s.y,j=s.r,F=u-x,H=u-C,it=p-w,G=p-R,V=S-g,X=j-g,dt=u*u+p*p-g*g,ct=dt-x*x-w*w+S*S,lt=dt-C*C-R*R+j*j,bt=H*it-F*G,Et=(it*lt-G*ct)/(2*bt)-u,ne=(G*V-it*X)/bt,ve=(H*ct-F*lt)/(2*bt)-p,Zt=(F*X-H*V)/bt,Ht=ne*ne+Zt*Zt-1,qt=2*(g+Et*ne+ve*Zt),Wt=Et*Et+ve*ve-g*g,Tt=-(Ht?(qt+Math.sqrt(qt*qt-4*Ht*Wt))/(2*Ht):Wt/qt);return{x:u+Et+ne*Tt,y:p+ve+Zt*Tt,r:Tt}}function Mp(i,a,s){var u,p,g,x,w=i.x-a.x,S=i.y-a.y,C=w*w+S*S;C?(p=a.r+s.r,p*=p,x=i.r+s.r,p>(x*=x)?(u=(C+x-p)/(2*C),g=Math.sqrt(Math.max(0,x/C-u*u)),s.x=i.x-u*w-g*S,s.y=i.y-u*S+g*w):(u=(C+p-x)/(2*C),g=Math.sqrt(Math.max(0,p/C-u*u)),s.x=a.x+u*w-g*S,s.y=a.y+u*S+g*w)):(s.x=a.x+s.r,s.y=a.y)}function Dp(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 Op(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 D0(i){this._=i,this.next=null,this.previous=null}function Rp(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,x,w,S,C,R,j,F;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 D0(s),u=new D0(u),p=new D0(p),s.next=p.previous=u,u.next=s.previous=p,p.next=u.previous=s;t:for(S=3;S<g;++S){Mp(s._,u._,p=i[S]),p=new D0(p),C=u.next,R=s.previous,j=u._.r,F=s._.r;do if(j<=F){if(Dp(C._,p._)){u=C,s.next=u,u.previous=s,--S;continue t}j+=C._.r,C=C.next}else{if(Dp(R._,p._)){(s=R).next=u,u.previous=s,--S;continue t}F+=R._.r,R=R.previous}while(C!==R.next);for(p.previous=s,p.next=u,s.next=u.previous=u=p,x=Op(s);(p=p.next)!==u;)(w=Op(p))<x&&(s=p,x=w);u=s.next}for(s=[u._],p=u;(p=p.next)!==u;)s.push(p._);for(p=Ip(s),S=0;S<g;++S)(s=i[S]).x-=p.x,s.y-=p.y;return p.r}function F_(i){return Rp(i),i}function O0(i){return i==null?null:Bp(i)}function Bp(i){if(typeof i!="function")throw new Error;return i}function Hc(){return 0}function Kl(i){return function(){return i}}function P_(i){return Math.sqrt(i.value)}function U_(){var i=null,a=1,s=1,u=Hc;function p(g){return g.x=a/2,g.y=s/2,i?g.eachBefore(Fp(i)).eachAfter(Cf(u,.5)).eachBefore(Pp(1)):g.eachBefore(Fp(P_)).eachAfter(Cf(Hc,1)).eachAfter(Cf(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=O0(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:Kl(+g),p):u},p}function Fp(i){return function(a){a.children||(a.r=Math.max(0,+i(a)||0))}}function Cf(i,a){return function(s){if(u=s.children){var u,p,g,x=u.length,w=i(s)*a||0;if(w)for(p=0;p<x;++p)u[p].r+=w;if(g=Rp(u),w)for(p=0;p<x;++p)u[p].r-=w;s.r=g+w}}}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 Fh(i,a,s,u,p){for(var g,x=i.children,w=-1,S=x.length,C=i.value&&(u-a)/i.value;++w<S;)(g=x[w]).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 x=g.height+1;return g.x0=g.y0=s,g.x1=i,g.y1=a/x,g.eachBefore(function(w,S){return function(C){C.children&&Fh(C,C.x0,w*(C.depth+1)/S,C.x1,w*(C.depth+2)/S);var R=C.x0,j=C.y0,F=C.x1-s,H=C.y1-s;F<R&&(R=F=(R+F)/2),H<j&&(j=H=(j+H)/2),C.x0=R,C.y0=j,C.x1=F,C.y1=H}}(a,x)),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}vf.invert=function(i,a){for(var s,u=a,p=u*u,g=p*p*p,x=0;x<12&&(g=(p=(u-=s=(u*(Mh+Dh*p+g*(Oh+Rh*p))-a)/(Mh+3*Dh*p+g*(7*Oh+9*Rh*p)))*u)*p*p,!(Br(s)<$l));++x);return[L0*i*(Mh+3*Dh*p+g*(7*Oh+9*Rh*p))/wr(u),U(E(u)/L0)]},xf.invert=Ih(ps),wf.invert=function(i,a){var s,u=a,p=25;do{var g=u*u,x=g*g;u-=s=(u*(1.007226+g*(.015085+x*(.028874*g-.044475-.005916*x)))-a)/(1.007226+g*(.045255+x*(.259866*g-.311325-.005916*11*x)))}while(Br(s)>Jr&&--p>0);return[i/(.8707+(g=u*u)*(g*(g*g*g*(.003971-.001529*g)-.013791)-.131979)),u]},kf.invert=Ih(U),Ef.invert=Ih(function(i){return 2*ps(i)}),Tf.invert=function(i,a){return[-a,2*ps(l(i))-jn]},$c.prototype=Sf.prototype={constructor:$c,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,x=[g],w=[],S=-1;g=x.pop();)if(w.push(g),s=g.children)for(u=0,p=s.length;u<p;++u)x.push(s[u]);for(;g=w.pop();)i.call(a,g,++S,this);return this},eachBefore:function(i,a){for(var s,u,p=this,g=[p],x=-1;p=g.pop();)if(i.call(a,p,++x,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,x){if(g===x)return g;var w=g.ancestors(),S=x.ancestors(),C=null;for(g=w.pop(),x=S.pop();g===x;)C=g,g=w.pop(),x=S.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 Sf(this).eachBefore(O_)},[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={},If={};function j_(i){return i.id}function $_(i){return i.parentId}function H_(){var i,a=j_,s=$_;function u(p){var g,x,w,S,C,R,j,F,H=Array.from(p),it=a,G=s,V=new Map;if(i!=null){const X=H.map((lt,bt)=>function(Et){let ne=(Et=`${Et}`).length;return Nf(Et,ne-1)&&!Nf(Et,ne-2)&&(Et=Et.slice(0,-1)),Et[0]==="/"?Et:`/${Et}`}(i(lt,bt,p))),dt=X.map(Yp),ct=new Set(X).add("");for(const lt of dt)ct.has(lt)||(ct.add(lt),X.push(lt),dt.push(Yp(lt)),H.push(If));it=(lt,bt)=>X[bt],G=(lt,bt)=>dt[bt]}for(w=0,g=H.length;w<g;++w)x=H[w],R=H[w]=new $c(x),(j=it(x,w,p))!=null&&(j+="")&&(F=R.id=j,V.set(F,V.has(F)?zp:R)),(j=G(x,w,p))!=null&&(j+="")&&(R.parent=j);for(w=0;w<g;++w)if(j=(R=H[w]).parent){if(!(C=V.get(j)))throw new Error("missing: "+j);if(C===zp)throw new Error("ambiguous: "+j);C.children?C.children.push(R):C.children=[R],R.parent=C}else{if(S)throw new Error("multiple roots");S=R}if(!S)throw new Error("no root");if(i!=null){for(;S.data===If&&S.children.length===1;)S=S.children[0],--g;for(let X=H.length-1;X>=0&&(R=H[X],R.data===If);--X)R.data=null}if(S.parent=Y_,S.eachBefore(function(X){X.depth=X.parent.depth+1,--g}).eachBefore(Cp),S.parent=null,g>0)throw new Error("cycle");return S}return u.id=function(p){return arguments.length?(a=O0(p),u):a},u.parentId=function(p){return arguments.length?(s=O0(p),u):s},u.path=function(p){return arguments.length?(i=O0(p),u):i},u}function Yp(i){let a=i.length;if(a<2)return"";for(;--a>1&&!Nf(i,a););return i.slice(0,a)}function Nf(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 Lf(i){var a=i.children;return a?a[0]:i.t}function Mf(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 R0(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(S){var C=function(X){for(var dt,ct,lt,bt,Et,ne=new R0(X,0),ve=[ne];dt=ve.pop();)if(lt=dt._.children)for(dt.children=new Array(Et=lt.length),bt=Et-1;bt>=0;--bt)ve.push(ct=dt.children[bt]=new R0(lt[bt],bt)),ct.parent=dt;return(ne.parent=new R0(null,0)).children=[ne],ne}(S);if(C.eachAfter(g),C.parent.m=-C.z,C.eachBefore(x),u)S.eachBefore(w);else{var R=S,j=S,F=S;S.eachBefore(function(X){X.x<R.x&&(R=X),X.x>j.x&&(j=X),X.depth>F.depth&&(F=X)});var H=R===j?1:i(R,j)/2,it=H-R.x,G=a/(j.x+H+it),V=s/(F.depth||1);S.eachBefore(function(X){X.x=(X.x+it)*G,X.y=X.depth*V})}return S}function g(S){var C=S.children,R=S.parent.children,j=S.i?R[S.i-1]:null;if(C){(function(H){for(var it,G=0,V=0,X=H.children,dt=X.length;--dt>=0;)(it=X[dt]).z+=G,it.m+=G,G+=it.s+(V+=it.c)})(S);var F=(C[0].z+C[C.length-1].z)/2;j?(S.z=j.z+i(S._,j._),S.m=S.z-F):S.z=F}else j&&(S.z=j.z+i(S._,j._));S.parent.A=function(H,it,G){if(it){for(var V,X=H,dt=H,ct=it,lt=X.parent.children[0],bt=X.m,Et=dt.m,ne=ct.m,ve=lt.m;ct=Mf(ct),X=Lf(X),ct&&X;)lt=Lf(lt),(dt=Mf(dt)).a=H,(V=ct.z+ne-X.z-bt+i(ct._,X._))>0&&(W_(G_(ct,H,G),H,V),bt+=V,Et+=V),ne+=ct.m,bt+=X.m,ve+=lt.m,Et+=dt.m;ct&&!Mf(dt)&&(dt.t=ct,dt.m+=ne-Et),X&&!Lf(lt)&&(lt.t=X,lt.m+=bt-ve,G=H)}return G}(S,j,S.parent.A||R[0])}function x(S){S._.x=S.z+S.parent.m,S.m+=S.parent.m}function w(S){S.x*=a,S.y=S.depth*s}return p.separation=function(S){return arguments.length?(i=S,p):i},p.size=function(S){return arguments.length?(u=!1,a=+S[0],s=+S[1],p):u?null:[a,s]},p.nodeSize=function(S){return arguments.length?(u=!0,a=+S[0],s=+S[1],p):u?[a,s]:null},p}function B0(i,a,s,u,p){for(var g,x=i.children,w=-1,S=x.length,C=i.value&&(p-s)/i.value;++w<S;)(g=x[w]).x0=a,g.x1=u,g.y0=s,g.y1=s+=g.value*C}R0.prototype=Object.create($c.prototype);var jp=(1+Math.sqrt(5))/2;function $p(i,a,s,u,p,g){for(var x,w,S,C,R,j,F,H,it,G,V,X=[],dt=a.children,ct=0,lt=0,bt=dt.length,Et=a.value;ct<bt;){S=p-s,C=g-u;do R=dt[lt++].value;while(!R&<<bt);for(j=F=R,V=R*R*(G=Math.max(C/S,S/C)/(Et*i)),it=Math.max(F/V,V/j);lt<bt;++lt){if(R+=w=dt[lt].value,w<j&&(j=w),w>F&&(F=w),V=R*R*G,(H=Math.max(F/V,V/j))>it){R-=w;break}it=H}X.push(x={value:R,dice:S<C,children:dt.slice(ct,lt)}),x.dice?Fh(x,s,u,p,Et?u+=C*R/Et:g):B0(x,s,u,Et?s+=S*R/Et:p,g),Et-=R,ct=lt}return X}const Hp=function i(a){function s(u,p,g,x,w){$p(a,u,p,g,x,w)}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=Hc,x=Hc,w=Hc,S=Hc,C=Hc;function R(F){return F.x0=F.y0=0,F.x1=s,F.y1=u,F.eachBefore(j),p=[0],a&&F.eachBefore(Up),F}function j(F){var H=p[F.depth],it=F.x0+H,G=F.y0+H,V=F.x1-H,X=F.y1-H;V<it&&(it=V=(it+V)/2),X<G&&(G=X=(G+X)/2),F.x0=it,F.y0=G,F.x1=V,F.y1=X,F.children&&(H=p[F.depth+1]=g(F)/2,it+=C(F)-H,G+=x(F)-H,(V-=w(F)-H)<it&&(it=V=(it+V)/2),(X-=S(F)-H)<G&&(G=X=(G+X)/2),i(F,it,G,V,X))}return R.round=function(F){return arguments.length?(a=!!F,R):a},R.size=function(F){return arguments.length?(s=+F[0],u=+F[1],R):[s,u]},R.tile=function(F){return arguments.length?(i=Bp(F),R):i},R.padding=function(F){return arguments.length?R.paddingInner(F).paddingOuter(F):R.paddingInner()},R.paddingInner=function(F){return arguments.length?(g=typeof F=="function"?F:Kl(+F),R):g},R.paddingOuter=function(F){return arguments.length?R.paddingTop(F).paddingRight(F).paddingBottom(F).paddingLeft(F):R.paddingTop()},R.paddingTop=function(F){return arguments.length?(x=typeof F=="function"?F:Kl(+F),R):x},R.paddingRight=function(F){return arguments.length?(w=typeof F=="function"?F:Kl(+F),R):w},R.paddingBottom=function(F){return arguments.length?(S=typeof F=="function"?F:Kl(+F),R):S},R.paddingLeft=function(F){return arguments.length?(C=typeof F=="function"?F:Kl(+F),R):C},R}function X_(i,a,s,u,p){var g,x,w=i.children,S=w.length,C=new Array(S+1);for(C[0]=x=g=0;g<S;++g)C[g+1]=x+=w[g].value;(function R(j,F,H,it,G,V,X){if(j>=F-1){var dt=w[j];return dt.x0=it,dt.y0=G,dt.x1=V,void(dt.y1=X)}for(var ct=C[j],lt=H/2+ct,bt=j+1,Et=F-1;bt<Et;){var ne=bt+Et>>>1;C[ne]<lt?bt=ne+1:Et=ne}lt-C[bt-1]<C[bt]-lt&&j+1<bt&&--bt;var ve=C[bt]-ct,Zt=H-ve;if(V-it>X-G){var Ht=H?(it*Zt+V*ve)/H:V;R(j,bt,ve,it,G,Ht,X),R(bt,F,Zt,Ht,G,V,X)}else{var qt=H?(G*Zt+X*ve)/H:X;R(j,bt,ve,it,G,V,qt),R(bt,F,Zt,it,qt,V,X)}})(0,S,i.value,a,s,u,p)}function K_(i,a,s,u,p){(1&i.depth?B0:Fh)(i,a,s,u,p)}const J_=function i(a){function s(u,p,g,x,w){if((S=u._squarify)&&S.ratio===a)for(var S,C,R,j,F,H=-1,it=S.length,G=u.value;++H<it;){for(R=(C=S[H]).children,j=C.value=0,F=R.length;j<F;++j)C.value+=R[j].value;C.dice?Fh(C,p,g,x,G?g+=(w-g)*C.value/G:w):B0(C,p,g,G?p+=(x-p)*C.value/G:x,w),G-=C.value}else u._squarify=S=$p(a,u,p,g,x,w),S.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=el(+i,+a);return function(u){var p=s(u);return p-360*Math.floor(p/360)}}function F0(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,x){var w,S,C=g[0],R=g[1],j=g[2],F=x[0],H=x[1],it=x[2],G=F-C,V=H-R,X=G*G+V*V;if(X<1e-12)S=Math.log(it/j)/a,w=function(ne){return[C+ne*G,R+ne*V,j*Math.exp(a*ne*S)]};else{var dt=Math.sqrt(X),ct=(it*it-j*j+u*X)/(2*j*s*dt),lt=(it*it-j*j-u*X)/(2*it*s*dt),bt=Math.log(Math.sqrt(ct*ct+1)-ct),Et=Math.log(Math.sqrt(lt*lt+1)-lt);S=(Et-bt)/a,w=function(ne){var ve,Zt=ne*S,Ht=qp(bt),qt=j/(s*dt)*(Ht*(ve=a*Zt+bt,((ve=Math.exp(2*ve))-1)/(ve+1))-function(Wt){return((Wt=Math.exp(Wt))-1/Wt)/2}(bt));return[C+qt*G,R+qt*V,j*Ht/qp(a*Zt+bt)]}}return w.duration=1e3*S*a/Math.SQRT2,w}return p.rho=function(g){var x=Math.max(.001,+g),w=x*x;return i(x,w,w*w)},p}(Math.SQRT2,2,4);function Gp(i){return function(a,s){var u=i((a=gc(a)).h,(s=gc(s)).h),p=Mi(a.s,s.s),g=Mi(a.l,s.l),x=Mi(a.opacity,s.opacity);return function(w){return a.h=u(w),a.s=p(w),a.l=g(w),a.opacity=x(w),a+""}}}const e3=Gp(el);var r3=Gp(Mi);function n3(i,a){var s=Mi((i=xl(i)).l,(a=xl(a)).l),u=Mi(i.a,a.a),p=Mi(i.b,a.b),g=Mi(i.opacity,a.opacity);return function(x){return i.l=s(x),i.a=u(x),i.b=p(x),i.opacity=g(x),i+""}}function Vp(i){return function(a,s){var u=i((a=qa(a)).h,(s=qa(s)).h),p=Mi(a.c,s.c),g=Mi(a.l,s.l),x=Mi(a.opacity,s.opacity);return function(w){return a.h=u(w),a.c=p(w),a.l=g(w),a.opacity=x(w),a+""}}}const i3=Vp(el);var a3=Vp(Mi);function Zp(i){return function a(s){function u(p,g){var x=i((p=Wa(p)).h,(g=Wa(g)).h),w=Mi(p.s,g.s),S=Mi(p.l,g.l),C=Mi(p.opacity,g.opacity);return function(R){return p.h=x(R),p.s=w(R),p.l=S(Math.pow(R,s)),p.opacity=C(R),p+""}}return s=+s,u.gamma=a,u}(1)}const o3=Zp(el);var P0=Zp(Mi);function Xp(i,a){a===void 0&&(a=i,i=en);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(x){var w=Math.max(0,Math.min(u-1,Math.floor(x*=u)));return g[w](x-w)}}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,x=0,w=i[p-1],S=0;++u<p;)a=w,w=i[u],S+=s=a[0]*w[1]-w[0]*a[1],g+=(a[0]+w[0])*s,x+=(a[1]+w[1])*s;return[g/(S*=3),x/S]}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 d3(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),x=Kp(p),w=x[0]===g[0],S=x[x.length-1]===g[g.length-1],C=[];for(a=g.length-1;a>=0;--a)C.push(i[u[g[a]][2]]);for(a=+w;a<x.length-S;++a)C.push(i[u[x[a]][2]]);return C}function f3(i,a){for(var s,u,p=i.length,g=i[p-1],x=a[0],w=a[1],S=g[0],C=g[1],R=!1,j=0;j<p;++j)s=(g=i[j])[0],(u=g[1])>w!=C>w&&x<(S-s)*(w-u)/(C-u)+s&&(R=!R),S=s,C=u;return R}function p3(i){for(var a,s,u=-1,p=i.length,g=i[p-1],x=g[0],w=g[1],S=0;++u<p;)a=x,s=w,a-=x=(g=i[u])[0],s-=w=g[1],S+=Math.hypot(a,s);return S}const ia=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}(ia),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}(ia),Df=function i(a){function s(u,p){var g,x;return u=u==null?0:+u,p=p==null?1:+p,function(){var w;if(g!=null)w=g,g=null;else do g=2*a()-1,w=2*a()-1,x=g*g+w*w;while(!x||x>1);return u+p*w*Math.sqrt(-2*Math.log(x)/x)}}return s.source=i,s}(ia),m3=function i(a){var s=Df.source(a);function u(){var p=s.apply(this,arguments);return function(){return Math.exp(p())}}return u.source=i,u}(ia),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}(ia),_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}(ia),b3=function i(a){function s(u){return function(){return-Math.log1p(-a())/u}}return s.source=i,s}(ia),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}(ia),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}(ia),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}(ia),Of=function i(a){var s=Df.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 x=(p<1?p+1:p)-1/3,w=1/(3*Math.sqrt(x)),S=p<1?()=>Math.pow(a(),1/p):()=>1;return function(){do{do var C=s(),R=1+w*C;while(R<=0);R*=R*R;var j=1-a()}while(j>=1-.0331*C*C*C*C&&Math.log(j)>=.5*C*C+x*(1-R+Math.log(R)));return x*R*S()*g}}return u.source=i,u}(ia),tg=function i(a){var s=Of.source(a);function u(p,g){var x=s(p),w=s(g);return function(){var S=x();return S===0?0:S/(S+w())}}return u.source=i,u}(ia),eg=function i(a){var s=Qp.source(a),u=tg.source(a);function p(g,x){return g=+g,(x=+x)>=1?()=>g:x<=0?()=>0:function(){for(var w=0,S=g,C=x;S*C>16&&S*(1-C)>16;){var R=Math.floor((S+1)*C),j=u(R,S-R+1)();j<=C?(w+=R,S-=R,C=(C-j)/(1-j)):(S=R-1,C/=j)}for(var F=C<.5,H=s(F?C:1-C),it=H(),G=0;it<=S;++G)it+=H();return w+(F?G:S-G)}}return p.source=i,p}(ia),w3=function i(a){function s(u,p,g){var x;return(u=+u)==0?x=w=>-Math.log(w):(u=1/u,x=w=>Math.pow(w,u)),p=p==null?0:+p,g=g==null?1:+g,function(){return p+g*x(-Math.log1p(-a()))}}return s.source=i,s}(ia),k3=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}(ia),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}(ia),T3=function i(a){var s=Of.source(a),u=eg.source(a);function p(g){return function(){for(var x=0,w=g;w>16;){var S=Math.floor(.875*w),C=s(S)();if(C>w)return x+u(S-1,w/C)();x+=S,w-=C}for(var R=-Math.log1p(-a()),j=0;R<=w;++j)R-=Math.log1p(-a());return x+j}}return p.source=i,p}(ia),rg=1/4294967296;function S3(i=Math.random()){let a=0|(0<=i&&i<1?i/rg:Math.abs(i));return()=>(a=1664525*a+1013904223|0,rg*(a>>>0))}function ho(i,a){switch(arguments.length){case 0:break;case 1:this.range(i);break;default:this.range(a).domain(i)}return this}function _s(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 Rf=Symbol("implicit");function Bf(){var i=new gt,a=[],s=[],u=Rf;function p(g){let x=i.get(g);if(x===void 0){if(u!==Rf)return u;i.set(g,x=a.push(g)-1)}return s[x%s.length]}return p.domain=function(g){if(!arguments.length)return a.slice();a=[],i=new gt;for(const x of g)i.has(x)||i.set(x,a.push(x)-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 Bf(a,s).unknown(u)},ho.apply(p,arguments),p}function Ff(){var i,a,s=Bf().unknown(void 0),u=s.domain,p=s.range,g=0,x=1,w=!1,S=0,C=0,R=.5;function j(){var F=u().length,H=x<g,it=H?x:g,G=H?g:x;i=(G-it)/Math.max(1,F-S+2*C),w&&(i=Math.floor(i)),it+=(G-it-i*(F-S))*R,a=i*(1-S),w&&(it=Math.round(it),a=Math.round(a));var V=De(F).map(function(X){return it+i*X});return p(H?V.reverse():V)}return delete s.unknown,s.domain=function(F){return arguments.length?(u(F),j()):u()},s.range=function(F){return arguments.length?([g,x]=F,g=+g,x=+x,j()):[g,x]},s.rangeRound=function(F){return[g,x]=F,g=+g,x=+x,w=!0,j()},s.bandwidth=function(){return a},s.step=function(){return i},s.round=function(F){return arguments.length?(w=!!F,j()):w},s.padding=function(F){return arguments.length?(S=Math.min(1,C=+F),j()):S},s.paddingInner=function(F){return arguments.length?(S=Math.min(1,F),j()):S},s.paddingOuter=function(F){return arguments.length?(C=+F,j()):C},s.align=function(F){return arguments.length?(R=Math.max(0,Math.min(1,F)),j()):R},s.copy=function(){return Ff(u(),[g,x]).round(w).paddingInner(S).paddingOuter(C).align(R)},ho.apply(j(),arguments)}function ng(i){var a=i.copy;return i.padding=i.paddingOuter,delete i.paddingInner,delete i.paddingOuter,i.copy=function(){return ng(a())},i}function A3(){return ng(Ff.apply(null,arguments).paddingInner(1))}function U0(i){return+i}var ig=[0,1];function Ea(i){return i}function Pf(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],x=a[1];return p<u?(u=Pf(p,u),g=s(x,g)):(u=Pf(u,p),g=s(g,x)),function(w){return g(u(w))}}function I3(i,a,s){var u=Math.min(i.length,a.length)-1,p=new Array(u),g=new Array(u),x=-1;for(i[u]<i[0]&&(i=i.slice().reverse(),a=a.slice().reverse());++x<u;)p[x]=Pf(i[x],i[x+1]),g[x]=s(a[x],a[x+1]);return function(w){var S=O(i,w,1,u)-1;return g[S](p[S](w))}}function Ph(i,a){return a.domain(i.domain()).range(i.range()).interpolate(i.interpolate()).clamp(i.clamp()).unknown(i.unknown())}function z0(){var i,a,s,u,p,g,x=ig,w=ig,S=en,C=Ea;function R(){var F,H,it,G=Math.min(x.length,w.length);return C!==Ea&&(F=x[0],H=x[G-1],F>H&&(it=F,F=H,H=it),C=function(V){return Math.max(F,Math.min(H,V))}),u=G>2?I3:C3,p=g=null,j}function j(F){return F==null||isNaN(F=+F)?s:(p||(p=u(x.map(i),w,S)))(i(C(F)))}return j.invert=function(F){return C(a((g||(g=u(w,x.map(i),ua)))(F)))},j.domain=function(F){return arguments.length?(x=Array.from(F,U0),R()):x.slice()},j.range=function(F){return arguments.length?(w=Array.from(F),R()):w.slice()},j.rangeRound=function(F){return w=Array.from(F),S=F0,R()},j.clamp=function(F){return arguments.length?(C=!!F||Ea,R()):C!==Ea},j.interpolate=function(F){return arguments.length?(S=F,R()):S},j.unknown=function(F){return arguments.length?(s=F,j):s},function(F,H){return i=F,a=H,R()}}function Uf(){return z0()(Ea,Ea)}function ag(i,a,s,u){var p,g=Rt(i,a,s);switch((u=uo(u==null?",f":u)).type){case"s":var x=Math.max(Math.abs(i),Math.abs(a));return u.precision!=null||isNaN(p=jl(g,x))||(u.precision=p),yh(u,x);case"":case"e":case"g":case"p":case"r":u.precision!=null||isNaN(p=mh(g,Math.max(Math.abs(i),Math.abs(a))))||(u.precision=p-(u.type==="e"));break;case"f":case"%":u.precision!=null||isNaN(p=Yl(g))||(u.precision=p-2*(u.type==="%"))}return Ul(u)}function Xs(i){var a=i.domain;return i.ticks=function(s){var u=a();return wt(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(),x=0,w=g.length-1,S=g[x],C=g[w],R=10;for(C<S&&(p=S,S=C,C=p,p=x,x=w,w=p);R-- >0;){if((p=xt(S,C,s))===u)return g[x]=S,g[w]=C,a(g);if(p>0)S=Math.floor(S/p)*p,C=Math.ceil(C/p)*p;else{if(!(p<0))break;S=Math.ceil(S*p)/p,C=Math.floor(C*p)/p}u=p}return i},i}function og(){var i=Uf();return i.copy=function(){return Ph(i,og())},ho.apply(i,arguments),Xs(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,U0),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,U0):[0,1],Xs(s)}function cg(i,a){var s,u=0,p=(i=i.slice()).length-1,g=i[u],x=i[p];return x<g&&(s=u,u=p,p=s,s=g,g=x,x=s),i[u]=a.floor(g),i[p]=a.ceil(x),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 zf(i){const a=i(lg,ug),s=a.domain;let u,p,g=10;function x(){return u=function(w){return w===Math.E?Math.log:w===10&&Math.log10||w===2&&Math.log2||(w=Math.log(w),S=>Math.log(S)/w)}(g),p=function(w){return w===10?M3:w===Math.E?Math.exp:S=>Math.pow(w,S)}(g),s()[0]<0?(u=hg(u),p=hg(p),i(N3,L3)):i(lg,ug),a}return a.base=function(w){return arguments.length?(g=+w,x()):g},a.domain=function(w){return arguments.length?(s(w),x()):s()},a.ticks=w=>{const S=s();let C=S[0],R=S[S.length-1];const j=R<C;j&&([C,R]=[R,C]);let F,H,it=u(C),G=u(R);const V=w==null?10:+w;let X=[];if(!(g%1)&&G-it<V){if(it=Math.floor(it),G=Math.ceil(G),C>0){for(;it<=G;++it)for(F=1;F<g;++F)if(H=it<0?F/p(-it):F*p(it),!(H<C)){if(H>R)break;X.push(H)}}else for(;it<=G;++it)for(F=g-1;F>=1;--F)if(H=it>0?F/p(-it):F*p(it),!(H<C)){if(H>R)break;X.push(H)}2*X.length<V&&(X=wt(C,R,V))}else X=wt(it,G,Math.min(G-it,V)).map(p);return j?X.reverse():X},a.tickFormat=(w,S)=>{if(w==null&&(w=10),S==null&&(S=g===10?"s":","),typeof S!="function"&&(g%1||(S=uo(S)).precision!=null||(S.trim=!0),S=Ul(S)),w===1/0)return S;const C=Math.max(1,g*w/a.ticks().length);return R=>{let j=R/p(Math.round(u(R)));return j*g<g-.5&&(j*=g),j<=C?S(R):""}},a.nice=()=>s(cg(s(),{floor:w=>p(Math.floor(u(w))),ceil:w=>p(Math.ceil(u(w)))})),a}function dg(){const i=zf(z0()).domain([1,10]);return i.copy=()=>Ph(i,dg()).base(i.base()),ho.apply(i,arguments),i}function fg(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 Yf(i){var a=1,s=i(fg(a),pg(a));return s.constant=function(u){return arguments.length?i(fg(a=+u),pg(a)):a},Xs(s)}function gg(){var i=Yf(z0());return i.copy=function(){return Ph(i,gg()).constant(i.constant())},ho.apply(i,arguments)}function yg(i){return function(a){return a<0?-Math.pow(-a,i):Math.pow(a,i)}}function D3(i){return i<0?-Math.sqrt(-i):Math.sqrt(i)}function O3(i){return i<0?-i*i:i*i}function jf(i){var a=i(Ea,Ea),s=1;function u(){return s===1?i(Ea,Ea):s===.5?i(D3,O3):i(yg(s),yg(1/s))}return a.exponent=function(p){return arguments.length?(s=+p,u()):s},Xs(a)}function $f(){var i=jf(z0());return i.copy=function(){return Ph(i,$f()).exponent(i.exponent())},ho.apply(i,arguments),i}function R3(){return $f.apply(null,arguments).exponent(.5)}function mg(i){return Math.sign(i)*i*i}function B3(i){return Math.sign(i)*Math.sqrt(Math.abs(i))}function _g(){var i,a=Uf(),s=[0,1],u=!1;function p(g){var x=B3(a(g));return isNaN(x)?i:u?Math.round(x):x}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,U0)).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)},ho.apply(p,arguments),Xs(p)}function bg(){var i,a=[],s=[],u=[];function p(){var x=0,w=Math.max(1,s.length);for(u=new Array(w-1);++x<w;)u[x-1]=Fe(a,x/w);return g}function g(x){return x==null||isNaN(x=+x)?i:s[O(u,x)]}return g.invertExtent=function(x){var w=s.indexOf(x);return w<0?[NaN,NaN]:[w>0?u[w-1]:a[0],w<u.length?u[w]:a[a.length-1]]},g.domain=function(x){if(!arguments.length)return a.slice();a=[];for(let w of x)w==null||isNaN(w=+w)||a.push(w);return a.sort(m),p()},g.range=function(x){return arguments.length?(s=Array.from(x),p()):s.slice()},g.unknown=function(x){return arguments.length?(i=x,g):i},g.quantiles=function(){return u.slice()},g.copy=function(){return bg().domain(a).range(s).unknown(i)},ho.apply(g,arguments)}function vg(){var i,a=0,s=1,u=1,p=[.5],g=[0,1];function x(S){return S!=null&&S<=S?g[O(p,S,0,u)]:i}function w(){var S=-1;for(p=new Array(u);++S<u;)p[S]=((S+1)*s-(S-u)*a)/(u+1);return x}return x.domain=function(S){return arguments.length?([a,s]=S,a=+a,s=+s,w()):[a,s]},x.range=function(S){return arguments.length?(u=(g=Array.from(S)).length-1,w()):g.slice()},x.invertExtent=function(S){var C=g.indexOf(S);return C<0?[NaN,NaN]:C<1?[a,p[0]]:C>=u?[p[u-1],s]:[p[C-1],p[C]]},x.unknown=function(S){return arguments.length&&(i=S),x},x.thresholds=function(){return p.slice()},x.copy=function(){return vg().domain([a,s]).range(g).unknown(i)},ho.apply(Xs(x),arguments)}function xg(){var i,a=[.5],s=[0,1],u=1;function p(g){return g!=null&&g<=g?s[O(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 x=s.indexOf(g);return[a[x-1],a[x]]},p.unknown=function(g){return arguments.length?(i=g,p):i},p.copy=function(){return xg().domain(a).range(s).unknown(i)},ho.apply(p,arguments)}const Uh=1e3,Ks=6e4,zh=36e5,Hf=864e5,qf=6048e5,Wf=31536e6;var Gf=new Date,Vf=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 x=p(g),w=p.ceil(g);return g-x<w-g?x:w},p.offset=function(g,x){return a(g=new Date(+g),x==null?1:Math.floor(x)),g},p.range=function(g,x,w){var S,C=[];if(g=p.ceil(g),w=w==null?1:Math.floor(w),!(g<x&&w>0))return C;do C.push(S=new Date(+g)),a(g,w),i(g);while(S<g&&g<x);return C},p.filter=function(g){return Yi(function(x){if(x>=x)for(;i(x),!g(x);)x.setTime(x-1)},function(x,w){if(x>=x)if(w<0)for(;++w<=0;)for(;a(x,-1),!g(x););else for(;--w>=0;)for(;a(x,1),!g(x););})},s&&(p.count=function(g,x){return Gf.setTime(+g),Vf.setTime(+x),i(Gf),i(Vf),Math.floor(s(Gf,Vf))},p.every=function(g){return g=Math.floor(g),isFinite(g)&&g>0?g>1?p.filter(u?function(x){return u(x)%g==0}:function(x){return p.count(0,x)%g==0}):p:null}),p}var Y0=Yi(function(){},function(i,a){i.setTime(+i+a)},function(i,a){return a-i});Y0.every=function(i){return i=Math.floor(i),isFinite(i)&&i>0?i>1?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}):Y0:null};const Zf=Y0;var wg=Y0.range,kg=Yi(function(i){i.setTime(i-i.getMilliseconds())},function(i,a){i.setTime(+i+a*Uh)},function(i,a){return(a-i)/Uh},function(i){return i.getUTCSeconds()});const Js=kg;var Eg=kg.range,Tg=Yi(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*Uh)},function(i,a){i.setTime(+i+a*Ks)},function(i,a){return(a-i)/Ks},function(i){return i.getMinutes()});const Xf=Tg;var F3=Tg.range,Sg=Yi(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*Uh-i.getMinutes()*Ks)},function(i,a){i.setTime(+i+a*zh)},function(i,a){return(a-i)/zh},function(i){return i.getHours()});const Kf=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())*Ks)/Hf,i=>i.getDate()-1);const Yh=Ag;var U3=Ag.range;function qc(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())*Ks)/qf})}var Jl=qc(0),jh=qc(1),Cg=qc(2),Ig=qc(3),Wc=qc(4),Ng=qc(5),Lg=qc(6),Mg=Jl.range,z3=jh.range,Y3=Cg.range,j3=Ig.range,$3=Wc.range,H3=Ng.range,q3=Lg.range,Dg=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 Jf=Dg;var W3=Dg.range,Qf=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()});Qf.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 Qs=Qf;var G3=Qf.range,Og=Yi(function(i){i.setUTCSeconds(0,0)},function(i,a){i.setTime(+i+a*Ks)},function(i,a){return(a-i)/Ks},function(i){return i.getUTCMinutes()});const t2=Og;var V3=Og.range,Rg=Yi(function(i){i.setUTCMinutes(0,0,0)},function(i,a){i.setTime(+i+a*zh)},function(i,a){return(a-i)/zh},function(i){return i.getUTCHours()});const e2=Rg;var Z3=Rg.range,Bg=Yi(function(i){i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCDate(i.getUTCDate()+a)},function(i,a){return(a-i)/Hf},function(i){return i.getUTCDate()-1});const $h=Bg;var X3=Bg.range;function Gc(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)/qf})}var Ql=Gc(0),Hh=Gc(1),Fg=Gc(2),Pg=Gc(3),Vc=Gc(4),Ug=Gc(5),zg=Gc(6),Yg=Ql.range,K3=Hh.range,J3=Fg.range,Q3=Pg.range,tb=Vc.range,eb=Ug.range,rb=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 r2=jg;var nb=jg.range,n2=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()});n2.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 tc=n2;var ib=n2.range;function $g(i,a,s,u,p,g){const x=[[Js,1,Uh],[Js,5,5e3],[Js,15,15e3],[Js,30,3e4],[g,1,Ks],[g,5,3e5],[g,15,9e5],[g,30,18e5],[p,1,zh],[p,3,108e5],[p,6,216e5],[p,12,432e5],[u,1,Hf],[u,2,1728e5],[s,1,qf],[a,1,2592e6],[a,3,7776e6],[i,1,Wf]];function w(S,C,R){const j=Math.abs(C-S)/R,F=f(([,,G])=>G).right(x,j);if(F===x.length)return i.every(Rt(S/Wf,C/Wf,R));if(F===0)return Zf.every(Math.max(Rt(S,C,R),1));const[H,it]=x[j/x[F-1][2]<x[F][2]/j?F-1:F];return H.every(it)}return[function(S,C,R){const j=C<S;j&&([S,C]=[C,S]);const F=R&&typeof R.range=="function"?R:w(S,C,R),H=F?F.range(S,+C+1):[];return j?H.reverse():H},w]}const[Hg,qg]=$g(tc,r2,Ql,$h,e2,t2),[Wg,Gg]=$g(Qs,Jf,Jl,Yh,Kf,Xf);function i2(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 a2(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 qh(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,x=i.shortDays,w=i.months,S=i.shortMonths,C=Wh(p),R=Gh(p),j=Wh(g),F=Gh(g),H=Wh(x),it=Gh(x),G=Wh(w),V=Gh(w),X=Wh(S),dt=Gh(S),ct={a:function(Zt){return x[Zt.getDay()]},A:function(Zt){return g[Zt.getDay()]},b:function(Zt){return S[Zt.getMonth()]},B:function(Zt){return w[Zt.getMonth()]},c:null,d:ey,e:ey,f:Ab,g:Fb,G:Ub,H:Eb,I:Tb,j:Sb,L:ry,m:Cb,M:Ib,p:function(Zt){return p[+(Zt.getHours()>=12)]},q:function(Zt){return 1+~~(Zt.getMonth()/3)},Q:cy,s:ly,S:Nb,u:Lb,U:Mb,V:Db,w:Ob,W:Rb,x:null,X:null,y:Bb,Y:Pb,Z:zb,"%":sy},lt={a:function(Zt){return x[Zt.getUTCDay()]},A:function(Zt){return g[Zt.getUTCDay()]},b:function(Zt){return S[Zt.getUTCMonth()]},B:function(Zt){return w[Zt.getUTCMonth()]},c:null,d:iy,e:iy,f:Hb,g:t4,G:r4,H:Yb,I:jb,j:$b,L:ay,m:qb,M:Wb,p:function(Zt){return p[+(Zt.getUTCHours()>=12)]},q:function(Zt){return 1+~~(Zt.getUTCMonth()/3)},Q:cy,s:ly,S:Gb,u:Vb,U:Zb,V:Xb,w:Kb,W:Jb,x:null,X:null,y:Qb,Y:e4,Z:n4,"%":sy},bt={a:function(Zt,Ht,qt){var Wt=H.exec(Ht.slice(qt));return Wt?(Zt.w=it.get(Wt[0].toLowerCase()),qt+Wt[0].length):-1},A:function(Zt,Ht,qt){var Wt=j.exec(Ht.slice(qt));return Wt?(Zt.w=F.get(Wt[0].toLowerCase()),qt+Wt[0].length):-1},b:function(Zt,Ht,qt){var Wt=X.exec(Ht.slice(qt));return Wt?(Zt.m=dt.get(Wt[0].toLowerCase()),qt+Wt[0].length):-1},B:function(Zt,Ht,qt){var Wt=G.exec(Ht.slice(qt));return Wt?(Zt.m=V.get(Wt[0].toLowerCase()),qt+Wt[0].length):-1},c:function(Zt,Ht,qt){return ve(Zt,a,Ht,qt)},d:Qg,e:Qg,f:vb,g:Jg,G:Kg,H:ty,I:ty,j:yb,L:bb,m:gb,M:mb,p:function(Zt,Ht,qt){var Wt=C.exec(Ht.slice(qt));return Wt?(Zt.p=R.get(Wt[0].toLowerCase()),qt+Wt[0].length):-1},q:pb,Q:wb,s:kb,S:_b,u:lb,U:ub,V:hb,w:cb,W:db,x:function(Zt,Ht,qt){return ve(Zt,s,Ht,qt)},X:function(Zt,Ht,qt){return ve(Zt,u,Ht,qt)},y:Jg,Y:Kg,Z:fb,"%":xb};function Et(Zt,Ht){return function(qt){var Wt,Tt,Ut,Jt=[],le=-1,Ae=0,He=Zt.length;for(qt instanceof Date||(qt=new Date(+qt));++le<He;)Zt.charCodeAt(le)===37&&(Jt.push(Zt.slice(Ae,le)),(Tt=Xg[Wt=Zt.charAt(++le)])!=null?Wt=Zt.charAt(++le):Tt=Wt==="e"?" ":"0",(Ut=Ht[Wt])&&(Wt=Ut(qt,Tt)),Jt.push(Wt),Ae=le+1);return Jt.push(Zt.slice(Ae,le)),Jt.join("")}}function ne(Zt,Ht){return function(qt){var Wt,Tt,Ut=qh(1900,void 0,1);if(ve(Ut,Zt,qt+="",0)!=qt.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(Ht&&!("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?(Tt=(Wt=a2(qh(Ut.y,0,1))).getUTCDay(),Wt=Tt>4||Tt===0?Hh.ceil(Wt):Hh(Wt),Wt=$h.offset(Wt,7*(Ut.V-1)),Ut.y=Wt.getUTCFullYear(),Ut.m=Wt.getUTCMonth(),Ut.d=Wt.getUTCDate()+(Ut.w+6)%7):(Tt=(Wt=i2(qh(Ut.y,0,1))).getDay(),Wt=Tt>4||Tt===0?jh.ceil(Wt):jh(Wt),Wt=Yh.offset(Wt,7*(Ut.V-1)),Ut.y=Wt.getFullYear(),Ut.m=Wt.getMonth(),Ut.d=Wt.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),Tt="Z"in Ut?a2(qh(Ut.y,0,1)).getUTCDay():i2(qh(Ut.y,0,1)).getDay(),Ut.m=0,Ut.d="W"in Ut?(Ut.w+6)%7+7*Ut.W-(Tt+5)%7:Ut.w+7*Ut.U-(Tt+6)%7);return"Z"in Ut?(Ut.H+=Ut.Z/100|0,Ut.M+=Ut.Z%100,a2(Ut)):i2(Ut)}}function ve(Zt,Ht,qt,Wt){for(var Tt,Ut,Jt=0,le=Ht.length,Ae=qt.length;Jt<le;){if(Wt>=Ae)return-1;if((Tt=Ht.charCodeAt(Jt++))===37){if(Tt=Ht.charAt(Jt++),!(Ut=bt[Tt in Xg?Ht.charAt(Jt++):Tt])||(Wt=Ut(Zt,qt,Wt))<0)return-1}else if(Tt!=qt.charCodeAt(Wt++))return-1}return Wt}return ct.x=Et(s,ct),ct.X=Et(u,ct),ct.c=Et(a,ct),lt.x=Et(s,lt),lt.X=Et(u,lt),lt.c=Et(a,lt),{format:function(Zt){var Ht=Et(Zt+="",ct);return Ht.toString=function(){return Zt},Ht},parse:function(Zt){var Ht=ne(Zt+="",!1);return Ht.toString=function(){return Zt},Ht},utcFormat:function(Zt){var Ht=Et(Zt+="",lt);return Ht.toString=function(){return Zt},Ht},utcParse:function(Zt){var Ht=ne(Zt+="",!0);return Ht.toString=function(){return Zt},Ht}}}var tu,o2,Zg,j0,s2,Xg={"-":"",_:" ",0:"0"},Ki=/^\s*\d+/,ab=/^%/,ob=/[\\^$*+?|[\]().{}]/g;function Nn(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 sb(i){return i.replace(ob,"\\$&")}function Wh(i){return new RegExp("^(?:"+i.map(sb).join("|")+")","i")}function Gh(i){return new Map(i.map((a,s)=>[a.toLowerCase(),s]))}function cb(i,a,s){var u=Ki.exec(a.slice(s,s+1));return u?(i.w=+u[0],s+u[0].length):-1}function lb(i,a,s){var u=Ki.exec(a.slice(s,s+1));return u?(i.u=+u[0],s+u[0].length):-1}function ub(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.U=+u[0],s+u[0].length):-1}function hb(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.V=+u[0],s+u[0].length):-1}function db(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.W=+u[0],s+u[0].length):-1}function Kg(i,a,s){var u=Ki.exec(a.slice(s,s+4));return u?(i.y=+u[0],s+u[0].length):-1}function Jg(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.y=+u[0]+(+u[0]>68?1900:2e3),s+u[0].length):-1}function fb(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 pb(i,a,s){var u=Ki.exec(a.slice(s,s+1));return u?(i.q=3*u[0]-3,s+u[0].length):-1}function gb(i,a,s){var u=Ki.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=Ki.exec(a.slice(s,s+2));return u?(i.d=+u[0],s+u[0].length):-1}function yb(i,a,s){var u=Ki.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=Ki.exec(a.slice(s,s+2));return u?(i.H=+u[0],s+u[0].length):-1}function mb(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.M=+u[0],s+u[0].length):-1}function _b(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.S=+u[0],s+u[0].length):-1}function bb(i,a,s){var u=Ki.exec(a.slice(s,s+3));return u?(i.L=+u[0],s+u[0].length):-1}function vb(i,a,s){var u=Ki.exec(a.slice(s,s+6));return u?(i.L=Math.floor(u[0]/1e3),s+u[0].length):-1}function xb(i,a,s){var u=ab.exec(a.slice(s,s+1));return u?s+u[0].length:-1}function wb(i,a,s){var u=Ki.exec(a.slice(s));return u?(i.Q=+u[0],s+u[0].length):-1}function kb(i,a,s){var u=Ki.exec(a.slice(s));return u?(i.s=+u[0],s+u[0].length):-1}function ey(i,a){return Nn(i.getDate(),a,2)}function Eb(i,a){return Nn(i.getHours(),a,2)}function Tb(i,a){return Nn(i.getHours()%12||12,a,2)}function Sb(i,a){return Nn(1+Yh.count(Qs(i),i),a,3)}function ry(i,a){return Nn(i.getMilliseconds(),a,3)}function Ab(i,a){return ry(i,a)+"000"}function Cb(i,a){return Nn(i.getMonth()+1,a,2)}function Ib(i,a){return Nn(i.getMinutes(),a,2)}function Nb(i,a){return Nn(i.getSeconds(),a,2)}function Lb(i){var a=i.getDay();return a===0?7:a}function Mb(i,a){return Nn(Jl.count(Qs(i)-1,i),a,2)}function ny(i){var a=i.getDay();return a>=4||a===0?Wc(i):Wc.ceil(i)}function Db(i,a){return i=ny(i),Nn(Wc.count(Qs(i),i)+(Qs(i).getDay()===4),a,2)}function Ob(i){return i.getDay()}function Rb(i,a){return Nn(jh.count(Qs(i)-1,i),a,2)}function Bb(i,a){return Nn(i.getFullYear()%100,a,2)}function Fb(i,a){return Nn((i=ny(i)).getFullYear()%100,a,2)}function Pb(i,a){return Nn(i.getFullYear()%1e4,a,4)}function Ub(i,a){var s=i.getDay();return Nn((i=s>=4||s===0?Wc(i):Wc.ceil(i)).getFullYear()%1e4,a,4)}function zb(i){var a=i.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+Nn(a/60|0,"0",2)+Nn(a%60,"0",2)}function iy(i,a){return Nn(i.getUTCDate(),a,2)}function Yb(i,a){return Nn(i.getUTCHours(),a,2)}function jb(i,a){return Nn(i.getUTCHours()%12||12,a,2)}function $b(i,a){return Nn(1+$h.count(tc(i),i),a,3)}function ay(i,a){return Nn(i.getUTCMilliseconds(),a,3)}function Hb(i,a){return ay(i,a)+"000"}function qb(i,a){return Nn(i.getUTCMonth()+1,a,2)}function Wb(i,a){return Nn(i.getUTCMinutes(),a,2)}function Gb(i,a){return Nn(i.getUTCSeconds(),a,2)}function Vb(i){var a=i.getUTCDay();return a===0?7:a}function Zb(i,a){return Nn(Ql.count(tc(i)-1,i),a,2)}function oy(i){var a=i.getUTCDay();return a>=4||a===0?Vc(i):Vc.ceil(i)}function Xb(i,a){return i=oy(i),Nn(Vc.count(tc(i),i)+(tc(i).getUTCDay()===4),a,2)}function Kb(i){return i.getUTCDay()}function Jb(i,a){return Nn(Hh.count(tc(i)-1,i),a,2)}function Qb(i,a){return Nn(i.getUTCFullYear()%100,a,2)}function t4(i,a){return Nn((i=oy(i)).getUTCFullYear()%100,a,2)}function e4(i,a){return Nn(i.getUTCFullYear()%1e4,a,4)}function r4(i,a){var s=i.getUTCDay();return Nn((i=s>=4||s===0?Vc(i):Vc.ceil(i)).getUTCFullYear()%1e4,a,4)}function n4(){return"+0000"}function sy(){return"%"}function cy(i){return+i}function ly(i){return Math.floor(+i/1e3)}function uy(i){return tu=Vg(i),o2=tu.format,Zg=tu.parse,j0=tu.utcFormat,s2=tu.utcParse,tu}function i4(i){return new Date(i)}function a4(i){return i instanceof Date?+i:+new Date(+i)}function c2(i,a,s,u,p,g,x,w,S,C){var R=Uf(),j=R.invert,F=R.domain,H=C(".%L"),it=C(":%S"),G=C("%I:%M"),V=C("%I %p"),X=C("%a %d"),dt=C("%b %d"),ct=C("%B"),lt=C("%Y");function bt(Et){return(S(Et)<Et?H:w(Et)<Et?it:x(Et)<Et?G:g(Et)<Et?V:u(Et)<Et?p(Et)<Et?X:dt:s(Et)<Et?ct:lt)(Et)}return R.invert=function(Et){return new Date(j(Et))},R.domain=function(Et){return arguments.length?F(Array.from(Et,a4)):F().map(i4)},R.ticks=function(Et){var ne=F();return i(ne[0],ne[ne.length-1],Et==null?10:Et)},R.tickFormat=function(Et,ne){return ne==null?bt:C(ne)},R.nice=function(Et){var ne=F();return Et&&typeof Et.range=="function"||(Et=a(ne[0],ne[ne.length-1],Et==null?10:Et)),Et?F(cg(ne,Et)):R},R.copy=function(){return Ph(R,c2(i,a,s,u,p,g,x,w,S,C))},R}function o4(){return ho.apply(c2(Wg,Gg,Qs,Jf,Jl,Yh,Kf,Xf,Js,o2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function s4(){return ho.apply(c2(Hg,qg,tc,r2,Ql,$h,e2,t2,Js,j0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $0(){var i,a,s,u,p,g=0,x=1,w=Ea,S=!1;function C(j){return j==null||isNaN(j=+j)?p:w(s===0?.5:(j=(u(j)-i)*s,S?Math.max(0,Math.min(1,j)):j))}function R(j){return function(F){var H,it;return arguments.length?([H,it]=F,w=j(H,it),C):[w(0),w(1)]}}return C.domain=function(j){return arguments.length?([g,x]=j,i=u(g=+g),a=u(x=+x),s=i===a?0:1/(a-i),C):[g,x]},C.clamp=function(j){return arguments.length?(S=!!j,C):S},C.interpolator=function(j){return arguments.length?(w=j,C):w},C.range=R(en),C.rangeRound=R(F0),C.unknown=function(j){return arguments.length?(p=j,C):p},function(j){return u=j,i=j(g),a=j(x),s=i===a?0:1/(a-i),C}}function ec(i,a){return a.domain(i.domain()).interpolator(i.interpolator()).clamp(i.clamp()).unknown(i.unknown())}function hy(){var i=Xs($0()(Ea));return i.copy=function(){return ec(i,hy())},_s.apply(i,arguments)}function dy(){var i=zf($0()).domain([1,10]);return i.copy=function(){return ec(i,dy()).base(i.base())},_s.apply(i,arguments)}function fy(){var i=Yf($0());return i.copy=function(){return ec(i,fy()).constant(i.constant())},_s.apply(i,arguments)}function l2(){var i=jf($0());return i.copy=function(){return ec(i,l2()).exponent(i.exponent())},_s.apply(i,arguments)}function c4(){return l2.apply(null,arguments).exponent(.5)}function py(){var i=[],a=Ea;function s(u){if(u!=null&&!isNaN(u=+u))return a((O(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)=>Be(i,g/u))},s.copy=function(){return py(a).domain(i)},_s.apply(s,arguments)}function H0(){var i,a,s,u,p,g,x,w=0,S=.5,C=1,R=1,j=Ea,F=!1;function H(G){return isNaN(G=+G)?x:(G=.5+((G=+g(G))-a)*(R*G<R*a?u:p),j(F?Math.max(0,Math.min(1,G)):G))}function it(G){return function(V){var X,dt,ct;return arguments.length?([X,dt,ct]=V,j=Xp(G,[X,dt,ct]),H):[j(0),j(.5),j(1)]}}return H.domain=function(G){return arguments.length?([w,S,C]=G,i=g(w=+w),a=g(S=+S),s=g(C=+C),u=i===a?0:.5/(a-i),p=a===s?0:.5/(s-a),R=a<i?-1:1,H):[w,S,C]},H.clamp=function(G){return arguments.length?(F=!!G,H):F},H.interpolator=function(G){return arguments.length?(j=G,H):j},H.range=it(en),H.rangeRound=it(F0),H.unknown=function(G){return arguments.length?(x=G,H):x},function(G){return g=G,i=G(w),a=G(S),s=G(C),u=i===a?0:.5/(a-i),p=a===s?0:.5/(s-a),R=a<i?-1:1,H}}function gy(){var i=Xs(H0()(Ea));return i.copy=function(){return ec(i,gy())},_s.apply(i,arguments)}function yy(){var i=zf(H0()).domain([.1,1,10]);return i.copy=function(){return ec(i,yy()).base(i.base())},_s.apply(i,arguments)}function my(){var i=Yf(H0());return i.copy=function(){return ec(i,my()).constant(i.constant())},_s.apply(i,arguments)}function u2(){var i=jf(H0());return i.copy=function(){return ec(i,u2()).exponent(i.exponent())},_s.apply(i,arguments)}function l4(){return u2.apply(null,arguments).exponent(.5)}function sn(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 u4=sn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),h4=sn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),d4=sn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),f4=sn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),p4=sn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),g4=sn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),y4=sn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),m4=sn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),_4=sn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),b4=sn("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Vn=i=>rl(i[i.length-1]);var _y=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(sn);const x4=Vn(_y);var by=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(sn);const w4=Vn(by);var vy=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(sn);const k4=Vn(vy);var xy=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(sn);const E4=Vn(xy);var wy=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(sn);const T4=Vn(wy);var ky=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(sn);const S4=Vn(ky);var Ey=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(sn);const A4=Vn(Ey);var Ty=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(sn);const C4=Vn(Ty);var Sy=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(sn);const I4=Vn(Sy);var Ay=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(sn);const N4=Vn(Ay);var Cy=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(sn);const L4=Vn(Cy);var Iy=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(sn);const M4=Vn(Iy);var Ny=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(sn);const D4=Vn(Ny);var Ly=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(sn);const O4=Vn(Ly);var My=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(sn);const R4=Vn(My);var Dy=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(sn);const B4=Vn(Dy);var Oy=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(sn);const F4=Vn(Oy);var Ry=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(sn);const P4=Vn(Ry);var By=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(sn);const U4=Vn(By);var Fy=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(sn);const z4=Vn(Fy);var Py=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(sn);const Y4=Vn(Py);var Uy=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(sn);const j4=Vn(Uy);var zy=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(sn);const $4=Vn(zy);var Yy=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(sn);const H4=Vn(Yy);var jy=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(sn);const q4=Vn(jy);var $y=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(sn);const W4=Vn($y);var Hy=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(sn);const G4=Vn(Hy);function V4(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 Z4=P0(Wa(300,.5,0),Wa(-240,.5,1));var X4=P0(Wa(-100,.75,.35),Wa(80,1.5,.8)),K4=P0(Wa(260,.75,.35),Wa(80,1.5,.8)),q0=Wa();function J4(i){(i<0||i>1)&&(i-=Math.floor(i));var a=Math.abs(i-.5);return q0.h=360*i-100,q0.s=1.5-1.5*a,q0.l=.8-.9*a,q0+""}var W0=si(),Q4=Math.PI/3,tv=2*Math.PI/3;function ev(i){var a;return i=(.5-i)*Math.PI,W0.r=255*(a=Math.sin(i))*a,W0.g=255*(a=Math.sin(i+Q4))*a,W0.b=255*(a=Math.sin(i+tv))*a,W0+""}function rv(i){return i=Math.max(0,Math.min(1,i)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+i*(1172.33-i*(10793.56-i*(33300.12-i*(38394.49-14825.05*i)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+i*(557.33+i*(1225.33-i*(3574.96-i*(1073.77+707.56*i)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+i*(3211.1-i*(15327.97-i*(27814-i*(22569.18-6838.66*i)))))))+")"}function G0(i){var a=i.length;return function(s){return i[Math.max(0,Math.min(a-1,Math.floor(s*a)))]}}const nv=G0(sn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var iv=G0(sn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),av=G0(sn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ov=G0(sn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function sv(i){return Sn(Bo(i).call(document.documentElement))}var cv=0;function qy(){return new h2}function h2(){this._="@"+(++cv).toString(36)}function lv(i,a){return i.target&&(i=Na(i),a===void 0&&(a=i.currentTarget),i=i.touches||[i]),Array.from(i,s=>ha(s,a))}function uv(i){return typeof i=="string"?new yi([document.querySelectorAll(i)],[document.documentElement]):new yi([re(i)],Fo)}function an(i){return function(){return i}}h2.prototype=qy.prototype={constructor:h2,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,pa=Math.atan2,Zc=Math.cos,hv=Math.max,d2=Math.min,Jo=Math.sin,eu=Math.sqrt,ga=1e-12,rc=Math.PI,V0=rc/2,nc=2*rc;function dv(i){return i>1?0:i<-1?rc:Math.acos(i)}function Gy(i){return i>=1?V0:i<=-1?-V0:Math.asin(i)}function fv(i){return i.innerRadius}function pv(i){return i.outerRadius}function gv(i){return i.startAngle}function yv(i){return i.endAngle}function mv(i){return i&&i.padAngle}function _v(i,a,s,u,p,g,x,w){var S=s-i,C=u-a,R=x-p,j=w-g,F=j*S-R*C;if(!(F*F<ga))return[i+(F=(R*(a-g)-j*(i-p))/F)*S,a+F*C]}function Z0(i,a,s,u,p,g,x){var w=i-s,S=a-u,C=(x?g:-g)/eu(w*w+S*S),R=C*S,j=-C*w,F=i+R,H=a+j,it=s+R,G=u+j,V=(F+it)/2,X=(H+G)/2,dt=it-F,ct=G-H,lt=dt*dt+ct*ct,bt=p-g,Et=F*G-it*H,ne=(ct<0?-1:1)*eu(hv(0,bt*bt*lt-Et*Et)),ve=(Et*ct-dt*ne)/lt,Zt=(-Et*dt-ct*ne)/lt,Ht=(Et*ct+dt*ne)/lt,qt=(-Et*dt+ct*ne)/lt,Wt=ve-V,Tt=Zt-X,Ut=Ht-V,Jt=qt-X;return Wt*Wt+Tt*Tt>Ut*Ut+Jt*Jt&&(ve=Ht,Zt=qt),{cx:ve,cy:Zt,x01:-R,y01:-j,x11:ve*(p/bt-1),y11:Zt*(p/bt-1)}}function bv(){var i=fv,a=pv,s=an(0),u=null,p=gv,g=yv,x=mv,w=null;function S(){var C,R,j=+i.apply(this,arguments),F=+a.apply(this,arguments),H=p.apply(this,arguments)-V0,it=g.apply(this,arguments)-V0,G=Wy(it-H),V=it>H;if(w||(w=C=Wo()),F<j&&(R=F,F=j,j=R),F>ga)if(G>nc-ga)w.moveTo(F*Zc(H),F*Jo(H)),w.arc(0,0,F,H,it,!V),j>ga&&(w.moveTo(j*Zc(it),j*Jo(it)),w.arc(0,0,j,it,H,V));else{var X,dt,ct=H,lt=it,bt=H,Et=it,ne=G,ve=G,Zt=x.apply(this,arguments)/2,Ht=Zt>ga&&(u?+u.apply(this,arguments):eu(j*j+F*F)),qt=d2(Wy(F-j)/2,+s.apply(this,arguments)),Wt=qt,Tt=qt;if(Ht>ga){var Ut=Gy(Ht/j*Jo(Zt)),Jt=Gy(Ht/F*Jo(Zt));(ne-=2*Ut)>ga?(bt+=Ut*=V?1:-1,Et-=Ut):(ne=0,bt=Et=(H+it)/2),(ve-=2*Jt)>ga?(ct+=Jt*=V?1:-1,lt-=Jt):(ve=0,ct=lt=(H+it)/2)}var le=F*Zc(ct),Ae=F*Jo(ct),He=j*Zc(Et),Ke=j*Jo(Et);if(qt>ga){var yr,Je=F*Zc(lt),Hr=F*Jo(lt),Gr=j*Zc(bt),Nr=j*Jo(bt);if(G<rc&&(yr=_v(le,Ae,Gr,Nr,Je,Hr,He,Ke))){var Fr=le-yr[0],An=Ae-yr[1],cn=Je-yr[0],Ba=Hr-yr[1],ac=1/Jo(dv((Fr*cn+An*Ba)/(eu(Fr*Fr+An*An)*eu(cn*cn+Ba*Ba)))/2),Do=eu(yr[0]*yr[0]+yr[1]*yr[1]);Wt=d2(qt,(j-Do)/(ac-1)),Tt=d2(qt,(F-Do)/(ac+1))}}ve>ga?Tt>ga?(X=Z0(Gr,Nr,le,Ae,F,Tt,V),dt=Z0(Je,Hr,He,Ke,F,Tt,V),w.moveTo(X.cx+X.x01,X.cy+X.y01),Tt<qt?w.arc(X.cx,X.cy,Tt,pa(X.y01,X.x01),pa(dt.y01,dt.x01),!V):(w.arc(X.cx,X.cy,Tt,pa(X.y01,X.x01),pa(X.y11,X.x11),!V),w.arc(0,0,F,pa(X.cy+X.y11,X.cx+X.x11),pa(dt.cy+dt.y11,dt.cx+dt.x11),!V),w.arc(dt.cx,dt.cy,Tt,pa(dt.y11,dt.x11),pa(dt.y01,dt.x01),!V))):(w.moveTo(le,Ae),w.arc(0,0,F,ct,lt,!V)):w.moveTo(le,Ae),j>ga&&ne>ga?Wt>ga?(X=Z0(He,Ke,Je,Hr,j,-Wt,V),dt=Z0(le,Ae,Gr,Nr,j,-Wt,V),w.lineTo(X.cx+X.x01,X.cy+X.y01),Wt<qt?w.arc(X.cx,X.cy,Wt,pa(X.y01,X.x01),pa(dt.y01,dt.x01),!V):(w.arc(X.cx,X.cy,Wt,pa(X.y01,X.x01),pa(X.y11,X.x11),!V),w.arc(0,0,j,pa(X.cy+X.y11,X.cx+X.x11),pa(dt.cy+dt.y11,dt.cx+dt.x11),V),w.arc(dt.cx,dt.cy,Wt,pa(dt.y11,dt.x11),pa(dt.y01,dt.x01),!V))):w.arc(0,0,j,Et,bt,V):w.lineTo(He,Ke)}else w.moveTo(0,0);if(w.closePath(),C)return w=null,C+""||null}return S.centroid=function(){var C=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2,R=(+p.apply(this,arguments)+ +g.apply(this,arguments))/2-rc/2;return[Zc(R)*C,Jo(R)*C]},S.innerRadius=function(C){return arguments.length?(i=typeof C=="function"?C:an(+C),S):i},S.outerRadius=function(C){return arguments.length?(a=typeof C=="function"?C:an(+C),S):a},S.cornerRadius=function(C){return arguments.length?(s=typeof C=="function"?C:an(+C),S):s},S.padRadius=function(C){return arguments.length?(u=C==null?null:typeof C=="function"?C:an(+C),S):u},S.startAngle=function(C){return arguments.length?(p=typeof C=="function"?C:an(+C),S):p},S.endAngle=function(C){return arguments.length?(g=typeof C=="function"?C:an(+C),S):g},S.padAngle=function(C){return arguments.length?(x=typeof C=="function"?C:an(+C),S):x},S.context=function(C){return arguments.length?(w=C==null?null:C,S):w},S}var vv=Array.prototype.slice;function X0(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function Vy(i){this._context=i}function K0(i){return new Vy(i)}function f2(i){return i[0]}function p2(i){return i[1]}function g2(i,a){var s=an(!0),u=null,p=K0,g=null;function x(w){var S,C,R,j=(w=X0(w)).length,F=!1;for(u==null&&(g=p(R=Wo())),S=0;S<=j;++S)!(S<j&&s(C=w[S],S,w))===F&&((F=!F)?g.lineStart():g.lineEnd()),F&&g.point(+i(C,S,w),+a(C,S,w));if(R)return g=null,R+""||null}return i=typeof i=="function"?i:i===void 0?f2:an(i),a=typeof a=="function"?a:a===void 0?p2:an(a),x.x=function(w){return arguments.length?(i=typeof w=="function"?w:an(+w),x):i},x.y=function(w){return arguments.length?(a=typeof w=="function"?w:an(+w),x):a},x.defined=function(w){return arguments.length?(s=typeof w=="function"?w:an(!!w),x):s},x.curve=function(w){return arguments.length?(p=w,u!=null&&(g=p(u)),x):p},x.context=function(w){return arguments.length?(w==null?u=g=null:g=p(u=w),x):u},x}function Zy(i,a,s){var u=null,p=an(!0),g=null,x=K0,w=null;function S(R){var j,F,H,it,G,V=(R=X0(R)).length,X=!1,dt=new Array(V),ct=new Array(V);for(g==null&&(w=x(G=Wo())),j=0;j<=V;++j){if(!(j<V&&p(it=R[j],j,R))===X)if(X=!X)F=j,w.areaStart(),w.lineStart();else{for(w.lineEnd(),w.lineStart(),H=j-1;H>=F;--H)w.point(dt[H],ct[H]);w.lineEnd(),w.areaEnd()}X&&(dt[j]=+i(it,j,R),ct[j]=+a(it,j,R),w.point(u?+u(it,j,R):dt[j],s?+s(it,j,R):ct[j]))}if(G)return w=null,G+""||null}function C(){return g2().defined(p).curve(x).context(g)}return i=typeof i=="function"?i:i===void 0?f2:an(+i),a=typeof a=="function"?a:an(a===void 0?0:+a),s=typeof s=="function"?s:s===void 0?p2:an(+s),S.x=function(R){return arguments.length?(i=typeof R=="function"?R:an(+R),u=null,S):i},S.x0=function(R){return arguments.length?(i=typeof R=="function"?R:an(+R),S):i},S.x1=function(R){return arguments.length?(u=R==null?null:typeof R=="function"?R:an(+R),S):u},S.y=function(R){return arguments.length?(a=typeof R=="function"?R:an(+R),s=null,S):a},S.y0=function(R){return arguments.length?(a=typeof R=="function"?R:an(+R),S):a},S.y1=function(R){return arguments.length?(s=R==null?null:typeof R=="function"?R:an(+R),S):s},S.lineX0=S.lineY0=function(){return C().x(i).y(a)},S.lineY1=function(){return C().x(i).y(s)},S.lineX1=function(){return C().x(u).y(a)},S.defined=function(R){return arguments.length?(p=typeof R=="function"?R:an(!!R),S):p},S.curve=function(R){return arguments.length?(x=R,g!=null&&(w=x(g)),S):x},S.context=function(R){return arguments.length?(R==null?g=w=null:w=x(g=R),S):g},S}function xv(i,a){return a<i?-1:a>i?1:a>=i?0:NaN}function wv(i){return i}function kv(){var i=wv,a=xv,s=null,u=an(0),p=an(nc),g=an(0);function x(w){var S,C,R,j,F,H=(w=X0(w)).length,it=0,G=new Array(H),V=new Array(H),X=+u.apply(this,arguments),dt=Math.min(nc,Math.max(-nc,p.apply(this,arguments)-X)),ct=Math.min(Math.abs(dt)/H,g.apply(this,arguments)),lt=ct*(dt<0?-1:1);for(S=0;S<H;++S)(F=V[G[S]=S]=+i(w[S],S,w))>0&&(it+=F);for(a!=null?G.sort(function(bt,Et){return a(V[bt],V[Et])}):s!=null&&G.sort(function(bt,Et){return s(w[bt],w[Et])}),S=0,R=it?(dt-H*lt)/it:0;S<H;++S,X=j)C=G[S],j=X+((F=V[C])>0?F*R:0)+lt,V[C]={data:w[C],index:S,value:F,startAngle:X,endAngle:j,padAngle:ct};return V}return x.value=function(w){return arguments.length?(i=typeof w=="function"?w:an(+w),x):i},x.sortValues=function(w){return arguments.length?(a=w,s=null,x):a},x.sort=function(w){return arguments.length?(s=w,a=null,x):s},x.startAngle=function(w){return arguments.length?(u=typeof w=="function"?w:an(+w),x):u},x.endAngle=function(w){return arguments.length?(p=typeof w=="function"?w:an(+w),x):p},x.padAngle=function(w){return arguments.length?(g=typeof w=="function"?w:an(+w),x):g},x}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=y2(K0);function Ky(i){this._curve=i}function y2(i){function a(s){return new Ky(i(s))}return a._curve=i,a}function Vh(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(y2(s)):a()._curve},i}function Jy(){return Vh(g2().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 Vh(s())},delete i.lineX0,i.lineEndAngle=function(){return Vh(u())},delete i.lineX1,i.lineInnerRadius=function(){return Vh(p())},delete i.lineY0,i.lineOuterRadius=function(){return Vh(g())},delete i.lineY1,i.curve=function(x){return arguments.length?a(y2(x)):a()._curve},i}function Zh(i,a){return[(a=+a)*Math.cos(i-=Math.PI/2),a*Math.sin(i)]}function Ev(i){return i.source}function Tv(i){return i.target}function m2(i){var a=Ev,s=Tv,u=f2,p=p2,g=null;function x(){var w,S=vv.call(arguments),C=a.apply(this,S),R=s.apply(this,S);if(g||(g=w=Wo()),i(g,+u.apply(this,(S[0]=C,S)),+p.apply(this,S),+u.apply(this,(S[0]=R,S)),+p.apply(this,S)),w)return g=null,w+""||null}return x.source=function(w){return arguments.length?(a=w,x):a},x.target=function(w){return arguments.length?(s=w,x):s},x.x=function(w){return arguments.length?(u=typeof w=="function"?w:an(+w),x):u},x.y=function(w){return arguments.length?(p=typeof w=="function"?w:an(+w),x):p},x.context=function(w){return arguments.length?(g=w==null?null:w,x):g},x}function Sv(i,a,s,u,p){i.moveTo(a,s),i.bezierCurveTo(a=(a+u)/2,s,a,p,u,p)}function Av(i,a,s,u,p){i.moveTo(a,s),i.bezierCurveTo(a,s=(s+p)/2,u,s,u,p)}function Cv(i,a,s,u,p){var g=Zh(a,s),x=Zh(a,s=(s+p)/2),w=Zh(u,s),S=Zh(u,p);i.moveTo(g[0],g[1]),i.bezierCurveTo(x[0],x[1],w[0],w[1],S[0],S[1])}function Iv(){return m2(Sv)}function Nv(){return m2(Av)}function Lv(){var i=m2(Cv);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 _2={draw:function(i,a){var s=Math.sqrt(a/rc);i.moveTo(s,0),i.arc(0,0,s,0,nc)}},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),Mv=2*em;const rm={draw:function(i,a){var s=Math.sqrt(a/Mv),u=s*em;i.moveTo(0,-s),i.lineTo(u,0),i.lineTo(0,s),i.lineTo(-u,0),i.closePath()}};var nm=Math.sin(rc/10)/Math.sin(7*rc/10),Dv=Math.sin(nc/10)*nm,Ov=-Math.cos(nc/10)*nm;const im={draw:function(i,a){var s=Math.sqrt(.8908130915292852*a),u=Dv*s,p=Ov*s;i.moveTo(0,-s),i.lineTo(u,p);for(var g=1;g<5;++g){var x=nc*g/5,w=Math.cos(x),S=Math.sin(x);i.lineTo(S*s,-w*s),i.lineTo(w*u-S*p,S*u+w*p)}i.closePath()}},am={draw:function(i,a){var s=Math.sqrt(a),u=-s/2;i.rect(u,u,s,s)}};var b2=Math.sqrt(3);const om={draw:function(i,a){var s=-Math.sqrt(a/(3*b2));i.moveTo(0,2*s),i.lineTo(-b2*s,-s),i.lineTo(b2*s,-s),i.closePath()}};var fo=-.5,po=Math.sqrt(3)/2,v2=1/Math.sqrt(12),Rv=3*(v2/2+1);const sm={draw:function(i,a){var s=Math.sqrt(a/Rv),u=s/2,p=s*v2,g=u,x=s*v2+s,w=-g,S=x;i.moveTo(u,p),i.lineTo(g,x),i.lineTo(w,S),i.lineTo(fo*u-po*p,po*u+fo*p),i.lineTo(fo*g-po*x,po*g+fo*x),i.lineTo(fo*w-po*S,po*w+fo*S),i.lineTo(fo*u+po*p,fo*p-po*u),i.lineTo(fo*g+po*x,fo*x-po*g),i.lineTo(fo*w+po*S,fo*S-po*w),i.closePath()}};var Bv=[_2,tm,rm,am,im,om,sm];function Fv(i,a){var s=null;function u(){var p;if(s||(s=p=Wo()),i.apply(this,arguments).draw(s,+a.apply(this,arguments)),p)return s=null,p+""||null}return i=typeof i=="function"?i:an(i||_2),a=typeof a=="function"?a:an(a===void 0?64:+a),u.type=function(p){return arguments.length?(i=typeof p=="function"?p:an(p),u):i},u.size=function(p){return arguments.length?(a=typeof p=="function"?p:an(+p),u):a},u.context=function(p){return arguments.length?(s=p==null?null:p,u):s},u}function ic(){}function J0(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 Q0(i){this._context=i}function Pv(i){return new Q0(i)}function cm(i){this._context=i}function Uv(i){return new cm(i)}function lm(i){this._context=i}function zv(i){return new lm(i)}Q0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:J0(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:J0(this,i,a)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}},cm.prototype={areaStart:ic,areaEnd:ic,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._x2=i,this._y2=a;break;case 1:this._point=2,this._x3=i,this._y3=a;break;case 2:this._point=3,this._x4=i,this._y4=a,this._context.moveTo((this._x0+4*this._x1+i)/6,(this._y0+4*this._y1+a)/6);break;default:J0(this,i,a)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}},lm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var 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:J0(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 Yv(i){return new um(i,!0)}function jv(i){return new um(i,!1)}function hm(i,a){this._basis=new Q0(i),this._beta=a}hm.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var i=this._x,a=this._y,s=i.length-1;if(s>0)for(var u,p=i[0],g=a[0],x=i[s]-p,w=a[s]-g,S=-1;++S<=s;)u=S/s,this._basis.point(this._beta*i[S]+(1-this._beta)*(p+u*x),this._beta*a[S]+(1-this._beta)*(g+u*w));this._x=this._y=null,this._basis.lineEnd()},point:function(i,a){this._x.push(+i),this._y.push(+a)}};const $v=function i(a){function s(u){return a===1?new Q0(u):new hm(u,a)}return s.beta=function(u){return i(+u)},s}(.85);function td(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 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(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:td(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:td(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 x2(u,a)}return s.tension=function(u){return i(+u)},s}(0);function w2(i,a){this._context=i,this._k=(1-a)/6}w2.prototype={areaStart:ic,areaEnd:ic,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:td(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 w2(u,a)}return s.tension=function(u){return i(+u)},s}(0);function k2(i,a){this._context=i,this._k=(1-a)/6}k2.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:td(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 Wv=function i(a){function s(u){return new k2(u,a)}return s.tension=function(u){return i(+u)},s}(0);function E2(i,a,s){var u=i._x1,p=i._y1,g=i._x2,x=i._y2;if(i._l01_a>ga){var w=2*i._l01_2a+3*i._l01_a*i._l12_a+i._l12_2a,S=3*i._l01_a*(i._l01_a+i._l12_a);u=(u*w-i._x0*i._l12_2a+i._x2*i._l01_2a)/S,p=(p*w-i._y0*i._l12_2a+i._y2*i._l01_2a)/S}if(i._l23_a>ga){var C=2*i._l23_2a+3*i._l23_a*i._l12_a+i._l12_2a,R=3*i._l23_a*(i._l23_a+i._l12_a);g=(g*C+i._x1*i._l23_2a-a*i._l12_2a)/R,x=(x*C+i._y1*i._l23_2a-s*i._l12_2a)/R}i._context.bezierCurveTo(u,p,g,x,i._x2,i._y2)}function dm(i,a){this._context=i,this._alpha=a}dm.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:E2(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 x2(u,0)}return s.alpha=function(u){return i(+u)},s}(.5);function fm(i,a){this._context=i,this._alpha=a}fm.prototype={areaStart:ic,areaEnd:ic,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:E2(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 fm(u,a):new w2(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:E2(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 Zv=function i(a){function s(u){return a?new pm(u,a):new k2(u,0)}return s.alpha=function(u){return i(+u)},s}(.5);function gm(i){this._context=i}function Xv(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),x=(s-i._y1)/(p||u<0&&-0),w=(g*p+x*u)/(u+p);return(ym(g)+ym(x))*Math.min(Math.abs(g),Math.abs(x),.5*Math.abs(w))||0}function _m(i,a){var s=i._x1-i._x0;return s?(3*(i._y1-i._y0)/s-a)/2:a}function T2(i,a,s){var u=i._x0,p=i._y0,g=i._x1,x=i._y1,w=(g-u)/3;i._context.bezierCurveTo(u+w,p+w*a,g-w,x-w*s,g,x)}function ed(i){this._context=i}function bm(i){this._context=new vm(i)}function vm(i){this._context=i}function Kv(i){return new ed(i)}function Jv(i){return new bm(i)}function xm(i){this._context=i}function wm(i){var a,s,u=i.length-1,p=new Array(u),g=new Array(u),x=new Array(u);for(p[0]=0,g[0]=2,x[0]=i[0]+2*i[1],a=1;a<u-1;++a)p[a]=1,g[a]=4,x[a]=4*i[a]+2*i[a+1];for(p[u-1]=2,g[u-1]=7,x[u-1]=8*i[u-1]+i[u],a=1;a<u;++a)s=p[a]/g[a-1],g[a]-=s,x[a]-=s*x[a-1];for(p[u-1]=x[u-1]/g[u-1],a=u-2;a>=0;--a)p[a]=(x[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 Qv(i){return new xm(i)}function rd(i,a){this._context=i,this._t=a}function t5(i){return new rd(i,.5)}function e5(i){return new rd(i,0)}function r5(i){return new rd(i,1)}function ru(i,a){if((p=i.length)>1)for(var s,u,p,g=1,x=i[a[0]],w=x.length;g<p;++g)for(u=x,x=i[a[g]],s=0;s<w;++s)x[s][1]+=x[s][0]=isNaN(u[s][1])?u[s][0]:u[s][1]}function nu(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 i5(i){const a=[];return a.key=i,a}function a5(){var i=an([]),a=nu,s=ru,u=n5;function p(g){var x,w,S=Array.from(i.apply(this,arguments),i5),C=S.length,R=-1;for(const j of g)for(x=0,++R;x<C;++x)(S[x][R]=[0,+u(j,S[x].key,R,g)]).data=j;for(x=0,w=X0(a(S));x<C;++x)S[w[x]].index=x;return s(S,w),S}return p.keys=function(g){return arguments.length?(i=typeof g=="function"?g:an(Array.from(g)),p):i},p.value=function(g){return arguments.length?(u=typeof g=="function"?g:an(+g),p):u},p.order=function(g){return arguments.length?(a=g==null?nu:typeof g=="function"?g:an(Array.from(g)),p):a},p.offset=function(g){return arguments.length?(s=g==null?ru:g,p):s},p}function o5(i,a){if((u=i.length)>0){for(var s,u,p,g=0,x=i[0].length;g<x;++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 s5(i,a){if((w=i.length)>0)for(var s,u,p,g,x,w,S=0,C=i[a[0]].length;S<C;++S)for(g=x=0,s=0;s<w;++s)(p=(u=i[a[s]][S])[1]-u[0])>0?(u[0]=g,u[1]=g+=p):p<0?(u[1]=x,u[0]=x+=p):(u[0]=0,u[1]=p)}function c5(i,a){if((s=i.length)>0){for(var s,u=0,p=i[a[0]],g=p.length;u<g;++u){for(var x=0,w=0;x<s;++x)w+=i[x][u][1]||0;p[u][1]+=p[u][0]=-w/2}ru(i,a)}}function l5(i,a){if((p=i.length)>0&&(u=(s=i[a[0]]).length)>0){for(var s,u,p,g=0,x=1;x<u;++x){for(var w=0,S=0,C=0;w<p;++w){for(var R=i[a[w]],j=R[x][1]||0,F=(j-(R[x-1][1]||0))/2,H=0;H<w;++H){var it=i[a[H]];F+=(it[x][1]||0)-(it[x-1][1]||0)}S+=j,C+=F*j}s[x-1][1]+=s[x-1][0]=g,S&&(g-=C/S)}s[x-1][1]+=s[x-1][0]=g,ru(i,a)}}function km(i){var a=i.map(u5);return nu(i).sort(function(s,u){return a[s]-a[u]})}function u5(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 nu(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 h5(i){return Em(i).reverse()}function d5(i){var a,s,u=i.length,p=i.map(Tm),g=km(i),x=0,w=0,S=[],C=[];for(a=0;a<u;++a)s=g[a],x<w?(x+=p[s],S.push(s)):(w+=p[s],C.push(s));return C.reverse().concat(S)}function f5(i){return nu(i).reverse()}gm.prototype={areaStart:ic,areaEnd:ic,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))}},ed.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:T2(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,T2(this,_m(this,s=mm(this,i,a)),s);break;default:T2(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(ed.prototype)).point=function(i,a){ed.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=wm(i),p=wm(a),g=0,x=1;x<s;++g,++x)this._context.bezierCurveTo(u[0][g],p[0][g],u[1][g],p[1][g],i[x],a[x]);(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)}},rd.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",p5=Date.prototype.toISOString?function(i){return i.toISOString()}:j0(Sm);const g5=p5;var y5=+new Date("2000-01-01T00:00:00.000Z")?function(i){var a=new Date(i);return isNaN(a)?null:a}:s2(Sm);const m5=y5;function _5(i,a,s){var u=new kc,p=a;return a==null?(u.restart(i,a,s),u):(u._restart=u.restart,u.restart=function(g,x,w){x=+x,w=w==null?wc():+w,u._restart(function S(C){C+=p,u._restart(S,p+=x,w),g(C)},x,w)},u.restart(i,a,s),u)}const nd=i=>()=>i;function b5(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 Qo(i,a,s){this.k=i,this.x=a,this.y=s}Qo.prototype={constructor:Qo,scale:function(i){return i===1?this:new Qo(this.k*i,this.x,this.y)},translate:function(i,a){return i===0&a===0?this:new Qo(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 id=new Qo(1,0,0);function Am(i){for(;!i.__zoom;)if(!(i=i.parentNode))return id;return i.__zoom}function S2(i){i.stopImmediatePropagation()}function Xh(i){i.preventDefault(),i.stopImmediatePropagation()}function v5(i){return!(i.ctrlKey&&i.type!=="wheel"||i.button)}function x5(){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||id}function w5(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 E5(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],x=i.invertY(a[1][1])-s[1][1];return i.translate(p>u?(u+p)/2:Math.min(0,u)||Math.max(0,p),x>g?(g+x)/2:Math.min(0,g)||Math.max(0,x))}function T5(){var i,a,s,u=v5,p=x5,g=E5,x=w5,w=k5,S=[0,1/0],C=[[-1/0,-1/0],[1/0,1/0]],R=250,j=Wp,F=on("start","zoom","end"),H=500,it=0,G=10;function V(Tt){Tt.property("__zoom",Cm).on("wheel.zoom",ne,{passive:!1}).on("mousedown.zoom",ve).on("dblclick.zoom",Zt).filter(w).on("touchstart.zoom",Ht).on("touchmove.zoom",qt).on("touchend.zoom touchcancel.zoom",Wt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function X(Tt,Ut){return(Ut=Math.max(S[0],Math.min(S[1],Ut)))===Tt.k?Tt:new Qo(Ut,Tt.x,Tt.y)}function dt(Tt,Ut,Jt){var le=Ut[0]-Jt[0]*Tt.k,Ae=Ut[1]-Jt[1]*Tt.k;return le===Tt.x&&Ae===Tt.y?Tt:new Qo(Tt.k,le,Ae)}function ct(Tt){return[(+Tt[0][0]+ +Tt[1][0])/2,(+Tt[0][1]+ +Tt[1][1])/2]}function lt(Tt,Ut,Jt,le){Tt.on("start.zoom",function(){bt(this,arguments).event(le).start()}).on("interrupt.zoom end.zoom",function(){bt(this,arguments).event(le).end()}).tween("zoom",function(){var Ae=this,He=arguments,Ke=bt(Ae,He).event(le),yr=p.apply(Ae,He),Je=Jt==null?ct(yr):typeof Jt=="function"?Jt.apply(Ae,He):Jt,Hr=Math.max(yr[1][0]-yr[0][0],yr[1][1]-yr[0][1]),Gr=Ae.__zoom,Nr=typeof Ut=="function"?Ut.apply(Ae,He):Ut,Fr=j(Gr.invert(Je).concat(Hr/Gr.k),Nr.invert(Je).concat(Hr/Nr.k));return function(An){if(An===1)An=Nr;else{var cn=Fr(An),Ba=Hr/cn[2];An=new Qo(Ba,Je[0]-cn[0]*Ba,Je[1]-cn[1]*Ba)}Ke.zoom(null,An)}})}function bt(Tt,Ut,Jt){return!Jt&&Tt.__zooming||new Et(Tt,Ut)}function Et(Tt,Ut){this.that=Tt,this.args=Ut,this.active=0,this.sourceEvent=null,this.extent=p.apply(Tt,Ut),this.taps=0}function ne(Tt,...Ut){if(u.apply(this,arguments)){var Jt=bt(this,Ut).event(Tt),le=this.__zoom,Ae=Math.max(S[0],Math.min(S[1],le.k*Math.pow(2,x.apply(this,arguments)))),He=ha(Tt);if(Jt.wheel)Jt.mouse[0][0]===He[0]&&Jt.mouse[0][1]===He[1]||(Jt.mouse[1]=le.invert(Jt.mouse[0]=He)),clearTimeout(Jt.wheel);else{if(le.k===Ae)return;Jt.mouse=[He,le.invert(He)],ro(this),Jt.start()}Xh(Tt),Jt.wheel=setTimeout(Ke,150),Jt.zoom("mouse",g(dt(X(le,Ae),Jt.mouse[0],Jt.mouse[1]),Jt.extent,C))}function Ke(){Jt.wheel=null,Jt.end()}}function ve(Tt,...Ut){if(!s&&u.apply(this,arguments)){var Jt=Tt.currentTarget,le=bt(this,Ut,!0).event(Tt),Ae=Sn(Tt.view).on("mousemove.zoom",Je,!0).on("mouseup.zoom",Hr,!0),He=ha(Tt,Jt),Ke=Tt.clientX,yr=Tt.clientY;mo(Tt.view),S2(Tt),le.mouse=[He,this.__zoom.invert(He)],ro(this),le.start()}function Je(Gr){if(Xh(Gr),!le.moved){var Nr=Gr.clientX-Ke,Fr=Gr.clientY-yr;le.moved=Nr*Nr+Fr*Fr>it}le.event(Gr).zoom("mouse",g(dt(le.that.__zoom,le.mouse[0]=ha(Gr,Jt),le.mouse[1]),le.extent,C))}function Hr(Gr){Ae.on("mousemove.zoom mouseup.zoom",null),_o(Gr.view,le.moved),Xh(Gr),le.event(Gr).end()}}function Zt(Tt,...Ut){if(u.apply(this,arguments)){var Jt=this.__zoom,le=ha(Tt.changedTouches?Tt.changedTouches[0]:Tt,this),Ae=Jt.invert(le),He=Jt.k*(Tt.shiftKey?.5:2),Ke=g(dt(X(Jt,He),le,Ae),p.apply(this,Ut),C);Xh(Tt),R>0?Sn(this).transition().duration(R).call(lt,Ke,le,Tt):Sn(this).call(V.transform,Ke,le,Tt)}}function Ht(Tt,...Ut){if(u.apply(this,arguments)){var Jt,le,Ae,He,Ke=Tt.touches,yr=Ke.length,Je=bt(this,Ut,Tt.changedTouches.length===yr).event(Tt);for(S2(Tt),le=0;le<yr;++le)He=[He=ha(Ae=Ke[le],this),this.__zoom.invert(He),Ae.identifier],Je.touch0?Je.touch1||Je.touch0[2]===He[2]||(Je.touch1=He,Je.taps=0):(Je.touch0=He,Jt=!0,Je.taps=1+!!i);i&&(i=clearTimeout(i)),Jt&&(Je.taps<2&&(a=He[0],i=setTimeout(function(){i=null},H)),ro(this),Je.start())}}function qt(Tt,...Ut){if(this.__zooming){var Jt,le,Ae,He,Ke=bt(this,Ut).event(Tt),yr=Tt.changedTouches,Je=yr.length;for(Xh(Tt),Jt=0;Jt<Je;++Jt)Ae=ha(le=yr[Jt],this),Ke.touch0&&Ke.touch0[2]===le.identifier?Ke.touch0[0]=Ae:Ke.touch1&&Ke.touch1[2]===le.identifier&&(Ke.touch1[0]=Ae);if(le=Ke.that.__zoom,Ke.touch1){var Hr=Ke.touch0[0],Gr=Ke.touch0[1],Nr=Ke.touch1[0],Fr=Ke.touch1[1],An=(An=Nr[0]-Hr[0])*An+(An=Nr[1]-Hr[1])*An,cn=(cn=Fr[0]-Gr[0])*cn+(cn=Fr[1]-Gr[1])*cn;le=X(le,Math.sqrt(An/cn)),Ae=[(Hr[0]+Nr[0])/2,(Hr[1]+Nr[1])/2],He=[(Gr[0]+Fr[0])/2,(Gr[1]+Fr[1])/2]}else{if(!Ke.touch0)return;Ae=Ke.touch0[0],He=Ke.touch0[1]}Ke.zoom("touch",g(dt(le,Ae,He),Ke.extent,C))}}function Wt(Tt,...Ut){if(this.__zooming){var Jt,le,Ae=bt(this,Ut).event(Tt),He=Tt.changedTouches,Ke=He.length;for(S2(Tt),s&&clearTimeout(s),s=setTimeout(function(){s=null},H),Jt=0;Jt<Ke;++Jt)le=He[Jt],Ae.touch0&&Ae.touch0[2]===le.identifier?delete Ae.touch0:Ae.touch1&&Ae.touch1[2]===le.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&&(le=ha(le,this),Math.hypot(a[0]-le[0],a[1]-le[1])<G)){var yr=Sn(this).on("dblclick.zoom");yr&&yr.apply(this,arguments)}}}return V.transform=function(Tt,Ut,Jt,le){var Ae=Tt.selection?Tt.selection():Tt;Ae.property("__zoom",Cm),Tt!==Ae?lt(Tt,Ut,Jt,le):Ae.interrupt().each(function(){bt(this,arguments).event(le).start().zoom(null,typeof Ut=="function"?Ut.apply(this,arguments):Ut).end()})},V.scaleBy=function(Tt,Ut,Jt,le){V.scaleTo(Tt,function(){var Ae=this.__zoom.k,He=typeof Ut=="function"?Ut.apply(this,arguments):Ut;return Ae*He},Jt,le)},V.scaleTo=function(Tt,Ut,Jt,le){V.transform(Tt,function(){var Ae=p.apply(this,arguments),He=this.__zoom,Ke=Jt==null?ct(Ae):typeof Jt=="function"?Jt.apply(this,arguments):Jt,yr=He.invert(Ke),Je=typeof Ut=="function"?Ut.apply(this,arguments):Ut;return g(dt(X(He,Je),Ke,yr),Ae,C)},Jt,le)},V.translateBy=function(Tt,Ut,Jt,le){V.transform(Tt,function(){return g(this.__zoom.translate(typeof Ut=="function"?Ut.apply(this,arguments):Ut,typeof Jt=="function"?Jt.apply(this,arguments):Jt),p.apply(this,arguments),C)},null,le)},V.translateTo=function(Tt,Ut,Jt,le,Ae){V.transform(Tt,function(){var He=p.apply(this,arguments),Ke=this.__zoom,yr=le==null?ct(He):typeof le=="function"?le.apply(this,arguments):le;return g(id.translate(yr[0],yr[1]).scale(Ke.k).translate(typeof Ut=="function"?-Ut.apply(this,arguments):-Ut,typeof Jt=="function"?-Jt.apply(this,arguments):-Jt),He,C)},le,Ae)},Et.prototype={event:function(Tt){return Tt&&(this.sourceEvent=Tt),this},start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Tt,Ut){return this.mouse&&Tt!=="mouse"&&(this.mouse[1]=Ut.invert(this.mouse[0])),this.touch0&&Tt!=="touch"&&(this.touch0[1]=Ut.invert(this.touch0[0])),this.touch1&&Tt!=="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(Tt){var Ut=Sn(this.that).datum();F.call(Tt,this.that,new b5(Tt,{sourceEvent:this.sourceEvent,target:V,type:Tt,transform:this.that.__zoom,dispatch:F}),Ut)}},V.wheelDelta=function(Tt){return arguments.length?(x=typeof Tt=="function"?Tt:nd(+Tt),V):x},V.filter=function(Tt){return arguments.length?(u=typeof Tt=="function"?Tt:nd(!!Tt),V):u},V.touchable=function(Tt){return arguments.length?(w=typeof Tt=="function"?Tt:nd(!!Tt),V):w},V.extent=function(Tt){return arguments.length?(p=typeof Tt=="function"?Tt:nd([[+Tt[0][0],+Tt[0][1]],[+Tt[1][0],+Tt[1][1]]]),V):p},V.scaleExtent=function(Tt){return arguments.length?(S[0]=+Tt[0],S[1]=+Tt[1],V):[S[0],S[1]]},V.translateExtent=function(Tt){return arguments.length?(C[0][0]=+Tt[0][0],C[1][0]=+Tt[1][0],C[0][1]=+Tt[0][1],C[1][1]=+Tt[1][1],V):[[C[0][0],C[0][1]],[C[1][0],C[1][1]]]},V.constrain=function(Tt){return arguments.length?(g=Tt,V):g},V.duration=function(Tt){return arguments.length?(R=+Tt,V):R},V.interpolate=function(Tt){return arguments.length?(j=Tt,V):j},V.on=function(){var Tt=F.on.apply(F,arguments);return Tt===F?V:Tt},V.clickDistance=function(Tt){return arguments.length?(it=(Tt=+Tt)*Tt,V):Math.sqrt(it)},V.tapDistance=function(Tt){return arguments.length?(G=+Tt,V):G},V}Am.prototype=Qo.prototype}},e={};function n(d){var b=e[d];if(b!==void 0)return b.exports;var h=e[d]={id:d,loaded:!1,exports:{}};return t[d].call(h.exports,h,h.exports,n),h.loaded=!0,h.exports}n.c=e,n.n=d=>{var b=d&&d.__esModule?()=>d.default:()=>d;return n.d(b,{a:b}),b},n.d=(d,b)=>{for(var h in b)n.o(b,h)&&!n.o(d,h)&&Object.defineProperty(d,h,{enumerable:!0,get:b[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=(d,b)=>Object.prototype.hasOwnProperty.call(d,b),n.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},n.nmd=d=>(d.paths=[],d.children||(d.children=[]),d);var r=n(n.s=6187).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),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],([d])=>{var h;const b={...d,serialized:"",errorMarkers:[],error:void 0,editorMode:(h=d.editorMode)!=null?h:"code"};try{b.serialized=serializeState(d),r.parse(d.code),JSON.parse(d.mermaid)}catch(m){if(b.error=m,console.error(m),m.hash)try{const f={severity:8,startLineNumber:m.hash.loc.first_line,startColumn:m.hash.loc.first_column,endLineNumber:m.hash.loc.last_line,endColumn:m.hash.loc.last_column+1,message:m.str};b.errorMarkers=[f]}catch(f){console.error("Error without line helper",f)}}return b}),loadState=d=>{let b;console.log(`Loading '${d}'`);try{b=deserializeState(d);const h=typeof b.mermaid=="string"?JSON.parse(b.mermaid):b.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,b.mermaid=JSON.stringify(h,null,2)}catch(h){b=get_store_value(inputStateStore),d&&(console.error("Init error",h),b.code=urlParseFailedState,b.mermaid=defaultState.mermaid)}updateCodeStore({...b})},updateCodeStore=d=>{inputStateStore.update(b=>({...b,...d}))};let prompted=!1;const updateCode=(d,{updateDiagram:b=!1,resetPanZoom:h=!1}={})=>{const m=countLines(d);if(saveStatistics(d),m>50&&!prompted&&get_store_value(stateStore).autoSync){const f=confirm(`Long diagram detected. Turn off Auto Sync? Use ${cmdKey} + Enter or click the sync logo to manually sync.`);prompted=!0,f&&updateCodeStore({autoSync:!1})}inputStateStore.update(f=>(h&&(f.pan=void 0,f.zoom=void 0),{...f,code:d,updateDiagram:b}))},updateConfig=d=>{inputStateStore.update(b=>({...b,mermaid:d}))},toggleDarkTheme=d=>{inputStateStore.update(b=>{const h=JSON.parse(b.mermaid);return(!h.theme||["dark","default"].includes(h.theme))&&(h.theme=d?"dark":"default"),{...b,mermaid:JSON.stringify(h,null,2)}})};let urlDebounce;const initURLSubscription=()=>{stateStore.subscribe(({serialized:d})=>{clearTimeout(urlDebounce),urlDebounce=window.setTimeout(()=>{history.replaceState(void 0,void 0,`#${d}`)},250)})},getStateString=()=>JSON.stringify(get_store_value(inputStateStore));export{getAugmentedNamespace as A,localStorage as a,logEvent as b,syncDiagram as c,updateConfig as d,analytics as e,pakoSerde as f,encode as g,inputStateStore as h,initHandler as i,historyStore as j,historyModeStore as k,loadingStateStore as l,loaderHistoryStore as m,getStateString as n,getPreviousState as o,persist as p,addHistoryEntry as q,restoreHistory as r,stateStore as s,toggleDarkTheme as t,updateCode as u,clearHistoryData as v,updateCodeStore as w,cmdKey as x,commonjsGlobal as y,r as z};
|