240 lines
2.6 MiB
JavaScript
240 lines
2.6 MiB
JavaScript
|
const __vite__fileDeps=["./c4Diagram-c0b17d02-BbabBQ0b.js","./svgDrawCommon-42e92da3-C6U370Ki.js","./flowDiagram-d6f8fe3a-7u7sIj1R.js","./flowDb-ff651a22-BhvlhwYW.js","./layout-DtdJliGi.js","./styles-1b0c237a-DEBp4bhg.js","./index-f58d48f9-CLIR902B.js","./edges-0005682e-uu5Q-DT8.js","./createText-3b1f58a4-B660LV3z.js","./svgDraw-70101091-Dh3U16Ho.js","./line-DZ-Aqgz-.js","./array-BKyUJesY.js","./flowDiagram-v2-58f49b84-Uh8t1wXl.js","./erDiagram-dedf2781-UypcrLiV.js","./ganttDiagram-088dbd90-CCT2OGMU.js","./linear-DUiwtY7t.js","./init-Gi6I4Gst.js","./pieDiagram-3fca7ce7-BHW_2pxx.js","./ordinal-BENe2yWM.js","./quadrantDiagram-0ca4be02-CgS2VYwn.js","./requirementDiagram-e13af0f0-A36FzTFs.js","./sequenceDiagram-84aa38e3-cRYkMtox.js","./classDiagram-a8cc8886-Cb1pwH4D.js","./styles-622362e4-D0xMTP1a.js","./classDiagram-v2-802a48d3-B2afvXL5.js","./stateDiagram-9a586ac6-F5S0TN6m.js","./styles-a1a6e33f-6K82cYVq.js","./stateDiagram-v2-96f2b9df-sN1qYj9L.js","./journeyDiagram-adaa34f8-DJehzvup.js","./flowchart-elk-definition-56584a6c-N1aEE1b6.js","./mindmap-definition-57868176-BtpU4SME.js","./sankeyDiagram-a7f8e230-BqJxOJ7I.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|||
|
var Ft=Object.defineProperty;var Bt=(e,t,r)=>t in e?Ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ie=(e,t,r)=>(Bt(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function r(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(o){if(o.ep)return;o.ep=!0;const u=r(o);fetch(o.href,u)}})();function flatHooks(e,t={},r){for(const a in e){const o=e[a],u=r?`${r}:${a}`:a;typeof o=="object"&&o!==null?flatHooks(o,t,u):typeof o=="function"&&(t[u]=o)}return t}const defaultTask={run:e=>e()},_createTask=()=>defaultTask,createTask=typeof console.createTask<"u"?console.createTask:_createTask;function serialTaskCaller(e,t){const r=t.shift(),a=createTask(r);return e.reduce((o,u)=>o.then(()=>a.run(()=>u(...t))),Promise.resolve())}function parallelTaskCaller(e,t){const r=t.shift(),a=createTask(r);return Promise.all(e.map(o=>a.run(()=>o(...t))))}function callEachWith(e,t){for(const r of[...e])r(t)}class Hookable{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,r,a={}){if(!t||typeof r!="function")return()=>{};const o=t;let u;for(;this._deprecatedHooks[t];)u=this._deprecatedHooks[t],t=u.to;if(u&&!a.allowDeprecated){let d=u.message;d||(d=`${o} hook has been deprecated`+(u.to?`, please use ${u.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(d)||(console.warn(d),this._deprecatedMessages.add(d))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let a,o=(...u)=>(typeof a=="function"&&a(),a=void 0,o=void 0,r(...u));return a=this.hook(t,o),a}removeHook(t,r){if(this._hooks[t]){const a=this._hooks[t].indexOf(r);a!==-1&&this._hooks[t].splice(a,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const a=this._hooks[t]||[];delete this._hooks[t];for(const o of a)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=flatHooks(t),a=Object.keys(r).map(o=>this.hook(o,r[o]));return()=>{for(const o of a.splice(0,a.length))o()}}removeHooks(t){const r=flatHooks(t);for(const a in r)this.removeHook(a,r[a])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(serialTaskCaller,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(parallelTaskCaller,t,...r)}callHookWith(t,r,...a){const o=this._before||this._after?{name:r,args:a,context:{}}:void 0;this._before&&callEachWith(this._before,o);const u=t(r in this._hooks?[...this._hooks[r]]:[],a);return u instanceof Promise?u.finally(()=>{this._after&&o&&callEachWith(this._after,o)}):(this._after&&o&&callEachWith(this._after,o),u)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}}function createHooks(){return new Hookable}function asArray$1(e){return Array.isArray(e)?e:[e]}const TagsWithInnerConte
|
|||
|
* @vue/shared v3.4.21
|
|||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
* @license MIT
|
|||
|
**/function makeMap(e,t){const r=new Set(e.split(","));return t?a=>r.has(a.toLowerCase()):a=>r.has(a)}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn$1=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),isModelListener=e=>e.startsWith("onUpdate:"),extend$2=Object.assign,remove$1=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},hasOwnProperty$e=Object.prototype.hasOwnProperty,hasOwn$1=(e,t)=>hasOwnProperty$e.call(e,t),isArray$4=Array.isArray,isMap=e=>toTypeString(e)==="[object Map]",isSet=e=>toTypeString(e)==="[object Set]",isDate$1=e=>toTypeString(e)==="[object Date]",isRegExp=e=>toTypeString(e)==="[object RegExp]",isFunction$2=e=>typeof e=="function",isString$1=e=>typeof e=="string",isSymbol=e=>typeof e=="symbol",isObject$6=e=>e!==null&&typeof e=="object",isPromise$1=e=>(isObject$6(e)||isFunction$2(e))&&isFunction$2(e.then)&&isFunction$2(e.catch),objectToString$1=Object.prototype.toString,toTypeString=e=>objectToString$1.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject$1=e=>toTypeString(e)==="[object Object]",isIntegerKey=e=>isString$1(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),isBuiltInDirective=makeMap("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),cacheStringFunction=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(e=>e.replace(camelizeRE,(t,r)=>r?r.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),toHandlerKey=cacheStringFunction(e=>e?`on${capitalize(e)}`:""),hasChanged=(e,t)=>!Object.is(e,t),invokeArrayFns=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},def=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},looseToNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t},toNumber=e=>{const t=isString$1(e)?Number(e):NaN;return isNaN(t)?e:t};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),GLOBALS_ALLOWED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",isGloballyAllowed=makeMap(GLOBALS_ALLOWED);function normalizeStyle(e){if(isArray$4(e)){const t={};for(let r=0;r<e.length;r++){const a=e[r],o=isString$1(a)?parseStringStyle(a):normalizeStyle(a);if(o)for(const u in o)t[u]=o[u]}return t}else if(isString$1(e)||isObject$6(e))return e}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){const t={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach(r=>{if(r){const a=r.split(propertyDelimiterRE);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function normalizeClass(e){let t="";if(isString$1(e))t=e;else if(isArray$4(e))for(let r=0;r<e.length;r++){const a=normalizeClass(e[r]);a&&(t+=a+" ")}else if(isObject$6(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function normalizeProps(e){if(!e)return null;let{class:t,style:r}=e;return t&&!isString$1(t)&&(e.class=normalizeClass(t)),r&&(e.style=normalizeStyle(r)),e}const HTML_TAGS="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template
|
|||
|
* @vue/reactivity v3.4.21
|
|||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
* @license MIT
|
|||
|
**/let activeEffectScope;class EffectScope{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!t&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=activeEffectScope;try{return activeEffectScope=this,t()}finally{activeEffectScope=r}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(t){if(this._active){let r,a;for(r=0,a=this.effects.length;r<a;r++)this.effects[r].stop();for(r=0,a=this.cleanups.length;r<a;r++)this.cleanups[r]();if(this.scopes)for(r=0,a=this.scopes.length;r<a;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function effectScope(e){return new EffectScope(e)}function recordEffectScope(e,t=activeEffectScope){t&&t.active&&t.effects.push(e)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(e){activeEffectScope&&activeEffectScope.cleanups.push(e)}let activeEffect;class ReactiveEffect{constructor(t,r,a,o){this.fn=t,this.trigger=r,this.scheduler=a,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,recordEffectScope(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,pauseTracking();for(let t=0;t<this._depsLength;t++){const r=this.deps[t];if(r.computed&&(triggerComputed(r.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),resetTracking()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=shouldTrack,r=activeEffect;try{return shouldTrack=!0,activeEffect=this,this._runnings++,preCleanupEffect(this),this.fn()}finally{postCleanupEffect(this),this._runnings--,activeEffect=r,shouldTrack=t}}stop(){var t;this.active&&(preCleanupEffect(this),postCleanupEffect(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function triggerComputed(e){return e.value}function preCleanupEffect(e){e._trackId++,e._depsLength=0}function postCleanupEffect(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)cleanupDepEffect(e.deps[t],e);e.deps.length=e._depsLength}}function cleanupDepEffect(e,t){const r=e.get(t);r!==void 0&&t._trackId!==r&&(e.delete(t),e.size===0&&e.cleanup())}function effect(e,t){e.effect instanceof ReactiveEffect&&(e=e.effect.fn);const r=new ReactiveEffect(e,NOOP,()=>{r.dirty&&r.run()});t&&(extend$2(r,t),t.scope&&recordEffectScope(r,t.scope)),(!t||!t.lazy)&&r.run();const a=r.run.bind(r);return a.effect=r,a}function stop(e){e.effect.stop()}let shouldTrack=!0,pauseScheduleStack=0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const e=trackStack.pop();shouldTrack=e===void 0?!0:e}function pauseScheduling(){pauseScheduleStack++}function resetScheduling(){for(pauseScheduleStack--;!pauseScheduleStack&&queueEffectSchedulers.length;)queueEffectSchedulers.shift()()}function trackEffect(e,t,r){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const a=e.deps[e._depsLength];a!==t?(a&&cleanupDepEffect(a,e),e.deps[e._depsLength++]=t):e._depsLength++}}const queueEffectSchedulers=[];function triggerEffects(e,t,r){pauseScheduling();for(const a of e.keys()){let o;a._dirtyLevel<t&&(o??(o=e.get(a)===a._trackId))&&(a._shouldSchedule||(a._shouldSchedule=a._dirtyLevel===0),a._dirtyLevel=t),a._shouldSchedule&&(o??(o=e.get(a)===a._trackId))&&(a.trigger(),(!a._runnings||a.allowRecurse)&&a._dirtyLevel!==2&&(a._shouldSchedule=!1,a.scheduler&&queueEffectSchedulers.push(a.scheduler)))}resetScheduling()}const createDep=(e,t)=>{const r=new Map;return r.cleanup=e,r.computed=t,r},targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");function track(e,t,r){if(shouldTrack&&activeEffect){let a=targetMap.get(e);a||targetMap.set(e,a=new Map);let o=a.get(r);o||a.set(r,o=cr
|
|||
|
* @vue/runtime-core v3.4.21
|
|||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
* @license MIT
|
|||
|
**/const stack$1=[];function warn$1(e,...t){pauseTracking();const r=stack$1.length?stack$1[stack$1.length-1].component:null,a=r&&r.appContext.config.warnHandler,o=getComponentTrace();if(a)callWithErrorHandling(a,r,11,[e+t.map(u=>{var d,f;return(f=(d=u.toString)==null?void 0:d.call(u))!=null?f:JSON.stringify(u)}).join(""),r&&r.proxy,o.map(({vnode:u})=>`at <${formatComponentName(r,u.type)}>`).join(`
|
|||
|
`),o]);else{const u=[`[Vue warn]: ${e}`,...t];o.length&&u.push(`
|
|||
|
`,...formatTrace(o)),console.warn(...u)}resetTracking()}function getComponentTrace(){let e=stack$1[stack$1.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const a=e.component&&e.component.parent;e=a&&a.vnode}return t}function formatTrace(e){const t=[];return e.forEach((r,a)=>{t.push(...a===0?[]:[`
|
|||
|
`],...formatTraceEntry(r))}),t}function formatTraceEntry({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",a=e.component?e.component.parent==null:!1,o=` at <${formatComponentName(e.component,e.type,a)}`,u=">"+r;return e.props?[o,...formatProps(e.props),u]:[o+u]}function formatProps(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(a=>{t.push(...formatProp(a,e[a]))}),r.length>3&&t.push(" ..."),t}function formatProp(e,t,r){return isString$1(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:isRef(t)?(t=formatProp(e,toRaw(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):isFunction$2(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=toRaw(t),r?t:[`${e}=`,t])}function assertNumber(e,t){}const ErrorCodes={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},ErrorTypeStrings$1={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function callWithErrorHandling(e,t,r,a){try{return a?e(...a):e()}catch(o){handleError$1(o,t,r)}}function callWithAsyncErrorHandling(e,t,r,a){if(isFunction$2(e)){const u=callWithErrorHandling(e,t,r,a);return u&&isPromise$1(u)&&u.catch(d=>{handleError$1(d,t,r)}),u}const o=[];for(let u=0;u<e.length;u++)o.push(callWithAsyncErrorHandling(e[u],t,r,a));return o}function handleError$1(e,t,r,a=!0){const o=t?t.vnode:null;if(t){let u=t.parent;const d=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${r}`;for(;u;){const _=u.ec;if(_){for(let S=0;S<_.length;S++)if(_[S](e,d,f)===!1)return}u=u.parent}const g=t.appContext.config.errorHandler;if(g){callWithErrorHandling(g,null,10,[e,d,f]);return}}logError(e,r,o,a)}function logError(e,t,r,a=!0){console.error(e)}let isFlushing=!1,isFlushPending=!1;const queue=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick$1(e){const t=currentFlushPromise||resolvedPromise;return e?t.then(this?e.bind(this):e):t}function findInsertionIndex(e){let t=flushIndex+1,r=queue.length;for(;t<r;){const a=t+r>>>1,o=queue[a],u=getId(o);u<e||u===e&&o.pre?t=a+1:r=a}return t}function queueJob(e){(!queue.length||!queue.includes(e,isFlushing&&e.allowRecurse?flushIndex+1:flushIndex))&&(e.id==null?queue.push(e):queue.splice(findInsertionIndex(e.id),0,e),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(e){const t=queue.indexOf(e);t>flushIndex&&queue.splice(t,1)}function queuePostFlushCb(e){isArray$4(e)?pendingPostFlushCbs.push(...e):(!activePostFlushCbs||!activePostFlushCbs.includes(e,e.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(e),queueFlush()}function flushPreFlushCbs(e,t,r=isFlushing?flushIndex+1:0){for(;r<queue.length;r++){const a=queue[r];if(a&&a.pre){if(e&&a.id!==e.uid)continue;queue.s
|
|||
|
* @vue/runtime-dom v3.4.21
|
|||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
* @license MIT
|
|||
|
**/const svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,a)=>{const o=t==="svg"?doc.createElementNS(svgNS,e):t==="mathml"?doc.createElementNS(mathmlNS,e):doc.createElement(e,r?{is:r}:void 0);return e==="select"&&a&&a.multiple!=null&&o.setAttribute("multiple",a.multiple),o},createText:e=>doc.createTextNode(e),createComment:e=>doc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,a,o,u){const d=r?r.previousSibling:t.lastChild;if(o&&(o===u||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===u||!(o=o.nextSibling)););else{templateContainer.innerHTML=a==="svg"?`<svg>${e}</svg>`:a==="mathml"?`<math>${e}</math>`:e;const f=templateContainer.content;if(a==="svg"||a==="mathml"){const g=f.firstChild;for(;g.firstChild;)f.appendChild(g.firstChild);f.removeChild(g)}t.insertBefore(f,r)}return[d?d.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},TRANSITION$1="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition$1=(e,{slots:t})=>h(BaseTransition,resolveTransitionProps(e),t);Transition$1.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition$1.props=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=(e,t=[])=>{isArray$4(e)?e.forEach(r=>r(...t)):e&&e(...t)},hasExplicitCallback=e=>e?isArray$4(e)?e.some(t=>t.length>1):e.length>1:!1;function resolveTransitionProps(e){const t={};for(const B in e)B in DOMTransitionPropsValidators||(t[B]=e[B]);if(e.css===!1)return t;const{name:r="v",type:a,duration:o,enterFromClass:u=`${r}-enter-from`,enterActiveClass:d=`${r}-enter-active`,enterToClass:f=`${r}-enter-to`,appearFromClass:g=u,appearActiveClass:_=d,appearToClass:S=f,leaveFromClass:E=`${r}-leave-from`,leaveActiveClass:v=`${r}-leave-active`,leaveToClass:b=`${r}-leave-to`}=e,y=normalizeDuration(o),T=y&&y[0],C=y&&y[1],{onBeforeEnter:R,onEnter:A,onEnterCancelled:O,onLeave:x,onLeaveCancelled:N,onBeforeAppear:I=R,onAppear:k=A,onAppearCancelled:D=O}=t,P=(B,V,U)=>{removeTransitionClass(B,V?S:f),removeTransitionClass(B,V?_:d),U&&U()},L=(B,V)=>{B._isLeaving=!1,removeTransitionClass(B,E),removeTransitionClass(B,b),removeTransitionClass(B,v),V&&V()},F=B=>(V,U)=>{const W=B?k:A,K=()=>P(V,B,U);callHook(W,[V,K]),nextFrame(()=>{removeTransitionClass(V,B?g:u),addTransitionClass(V,B?S:f),hasExplicitCallback(W)||whenTransitionEnds(V,a,T,K)})};return extend$2(t,{onBeforeEnter(B){callHook(R,[B]),addTransitionClass(B,u),addTransitionClass(B,d)},onBeforeAppear(B){callHook(I,[B]),addTransitionClass(B,g),addTransitionClass(B,_)},onEnter:F(!1),onAppear:F(!0),onLeave(B,V){B._isLeaving=!0;const U=()=>L(B,V);addTransitionClass(B,E),forceReflow(),addTransitionClass(B,v),nextFrame(()=>{B._isLeaving&&(removeTransitionClass(B,E),addTransitionClass(B,b),hasExplicitCallback(x)||whenTransitionEnds(B,a,C,U))}),callHook(x,[B,U])},onEnterCancelled(B){P(B,!1),callHook(O,[B])},onAppearCancelled(B){P(B,!0),callHook(D,[B])},onLeaveCancelled(B){L(B),callHook(N,[B])}})}function normalizeDuration(e){if(e==null)return null;if(isObject$6(e))return[NumberOf(e.enter),NumberOf(e.leave)];{const t=NumberOf(e);return[t,t]}}function NumberOf(e){return toNumber(e)}function addTransitionClass(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[vtcKey]||(e[vtcKey]=new Set)).add(t)}function removeTransitionClass(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const r=e[
|
|||
|
* @vue/compiler-core v3.4.21
|
|||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
* @license MIT
|
|||
|
**/const FRAGMENT=Symbol(""),TELEPORT=Symbol(""),SUSPENSE=Symbol(""),KEEP_ALIVE=Symbol(""),BASE_TRANSITION=Symbol(""),OPEN_BLOCK=Symbol(""),CREATE_BLOCK=Symbol(""),CREATE_ELEMENT_BLOCK=Symbol(""),CREATE_VNODE=Symbol(""),CREATE_ELEMENT_VNODE=Symbol(""),CREATE_COMMENT=Symbol(""),CREATE_TEXT=Symbol(""),CREATE_STATIC=Symbol(""),RESOLVE_COMPONENT=Symbol(""),RESOLVE_DYNAMIC_COMPONENT=Symbol(""),RESOLVE_DIRECTIVE=Symbol(""),RESOLVE_FILTER=Symbol(""),WITH_DIRECTIVES=Symbol(""),RENDER_LIST=Symbol(""),RENDER_SLOT=Symbol(""),CREATE_SLOTS=Symbol(""),TO_DISPLAY_STRING=Symbol(""),MERGE_PROPS=Symbol(""),NORMALIZE_CLASS=Symbol(""),NORMALIZE_STYLE=Symbol(""),NORMALIZE_PROPS=Symbol(""),GUARD_REACTIVE_PROPS=Symbol(""),TO_HANDLERS=Symbol(""),CAMELIZE=Symbol(""),CAPITALIZE=Symbol(""),TO_HANDLER_KEY=Symbol(""),SET_BLOCK_TRACKING=Symbol(""),PUSH_SCOPE_ID=Symbol(""),POP_SCOPE_ID=Symbol(""),WITH_CTX=Symbol(""),UNREF=Symbol(""),IS_REF=Symbol(""),WITH_MEMO=Symbol(""),IS_MEMO_SAME=Symbol(""),helperNameMap={[FRAGMENT]:"Fragment",[TELEPORT]:"Teleport",[SUSPENSE]:"Suspense",[KEEP_ALIVE]:"KeepAlive",[BASE_TRANSITION]:"BaseTransition",[OPEN_BLOCK]:"openBlock",[CREATE_BLOCK]:"createBlock",[CREATE_ELEMENT_BLOCK]:"createElementBlock",[CREATE_VNODE]:"createVNode",[CREATE_ELEMENT_VNODE]:"createElementVNode",[CREATE_COMMENT]:"createCommentVNode",[CREATE_TEXT]:"createTextVNode",[CREATE_STATIC]:"createStaticVNode",[RESOLVE_COMPONENT]:"resolveComponent",[RESOLVE_DYNAMIC_COMPONENT]:"resolveDynamicComponent",[RESOLVE_DIRECTIVE]:"resolveDirective",[RESOLVE_FILTER]:"resolveFilter",[WITH_DIRECTIVES]:"withDirectives",[RENDER_LIST]:"renderList",[RENDER_SLOT]:"renderSlot",[CREATE_SLOTS]:"createSlots",[TO_DISPLAY_STRING]:"toDisplayString",[MERGE_PROPS]:"mergeProps",[NORMALIZE_CLASS]:"normalizeClass",[NORMALIZE_STYLE]:"normalizeStyle",[NORMALIZE_PROPS]:"normalizeProps",[GUARD_REACTIVE_PROPS]:"guardReactiveProps",[TO_HANDLERS]:"toHandlers",[CAMELIZE]:"camelize",[CAPITALIZE]:"capitalize",[TO_HANDLER_KEY]:"toHandlerKey",[SET_BLOCK_TRACKING]:"setBlockTracking",[PUSH_SCOPE_ID]:"pushScopeId",[POP_SCOPE_ID]:"popScopeId",[WITH_CTX]:"withCtx",[UNREF]:"unref",[IS_REF]:"isRef",[WITH_MEMO]:"withMemo",[IS_MEMO_SAME]:"isMemoSame"};function registerRuntimeHelpers(e){Object.getOwnPropertySymbols(e).forEach(t=>{helperNameMap[t]=e[t]})}const locStub={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function createRoot(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:locStub}}function createVNodeCall(e,t,r,a,o,u,d,f=!1,g=!1,_=!1,S=locStub){return e&&(f?(e.helper(OPEN_BLOCK),e.helper(getVNodeBlockHelper(e.inSSR,_))):e.helper(getVNodeHelper(e.inSSR,_)),d&&e.helper(WITH_DIRECTIVES)),{type:13,tag:t,props:r,children:a,patchFlag:o,dynamicProps:u,directives:d,isBlock:f,disableTracking:g,isComponent:_,loc:S}}function createArrayExpression(e,t=locStub){return{type:17,loc:t,elements:e}}function createObjectExpression(e,t=locStub){return{type:15,loc:t,properties:e}}function createObjectProperty(e,t){return{type:16,loc:locStub,key:isString$1(e)?createSimpleExpression(e,!0):e,value:t}}function createSimpleExpression(e,t=!1,r=locStub,a=0){return{type:4,loc:r,content:e,isStatic:t,constType:t?3:a}}function createCompoundExpression(e,t=locStub){return{type:8,loc:t,children:e}}function createCallExpression(e,t=[],r=locStub){return{type:14,loc:r,callee:e,arguments:t}}function createFunctionExpression(e,t=void 0,r=!1,a=!1,o=locStub){return{type:18,params:e,returns:t,newline:r,isSlot:a,loc:o}}function createConditionalExpression(e,t,r,a=!0){return{type:19,test:e,consequent:t,alternate:r,newline:a,loc:locStub}}function createCacheExpression(e,t,r=!1){return{type:20,index:e,value:t,isVNode:r,loc:locStub}}function createBlockStatement(e){return{type:21,body:e,loc:locStub}}function getVNodeHelper(e,t){return e||t?CREATE_VNODE:CREATE_ELEMENT_VNODE}function getVNodeBlockHelper(e,t){return e||t?CREATE_BLOCK:CREATE_ELEMENT_BLOCK}function convertToBlock(e,{helper:t,removeHelper:r,inSSR:a}){e.isBlo
|
|||
|
`);else if(isAllWhitespace(f.content)){const g=(r=e[d-1])==null?void 0:r.type,_=(a=e[d+1])==null?void 0:a.type;!g||!_||o&&(g===3&&(_===3||_===1)||g===1&&(_===3||_===1&&hasNewlineChar(f.content)))?(u=!0,e[d]=null):f.content=" "}else o&&(f.content=condense(f.content))}if(inPre&&t&¤tOptions.isPreTag(t)){const d=e[0];d&&d.type===2&&(d.content=d.content.replace(/^\r?\n/,""))}return u?e.filter(Boolean):e}function isAllWhitespace(e){for(let t=0;t<e.length;t++)if(!isWhitespace(e.charCodeAt(t)))return!1;return!0}function hasNewlineChar(e){for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r===10||r===13)return!0}return!1}function condense(e){let t="",r=!1;for(let a=0;a<e.length;a++)isWhitespace(e.charCodeAt(a))?r||(t+=" ",r=!0):(t+=e[a],r=!1);return t}function addNode(e){(stack[0]||currentRoot).children.push(e)}function getLoc(e,t){return{start:tokenizer.getPos(e),end:t==null?t:tokenizer.getPos(t),source:t==null?t:getSlice(e,t)}}function setLocEnd(e,t){e.end=tokenizer.getPos(t),e.source=getSlice(e.start.offset,t)}function dirToAttr(e){const t={type:6,name:e.rawName,nameLoc:getLoc(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const r=e.exp.loc;r.end.offset<e.loc.end.offset&&(r.start.offset--,r.start.column--,r.end.offset++,r.end.column++),t.value={type:2,content:e.exp.content,loc:r}}return t}function createExp(e,t=!1,r,a=0,o=0){return createSimpleExpression(e,t,r,a)}function emitError(e,t,r){currentOptions.onError(createCompilerError(e,getLoc(t,t)))}function reset$1(){tokenizer.reset(),currentOpenTag=null,currentProp=null,currentAttrValue="",currentAttrStartIndex=-1,currentAttrEndIndex=-1,stack.length=0}function baseParse(e,t){if(reset$1(),currentInput=e,currentOptions=extend$2({},defaultParserOptions),t){let o;for(o in t)t[o]!=null&&(currentOptions[o]=t[o])}tokenizer.mode=currentOptions.parseMode==="html"?1:currentOptions.parseMode==="sfc"?2:0,tokenizer.inXML=currentOptions.ns===1||currentOptions.ns===2;const r=t==null?void 0:t.delimiters;r&&(tokenizer.delimiterOpen=toCharCodes(r[0]),tokenizer.delimiterClose=toCharCodes(r[1]));const a=currentRoot=createRoot([],e);return tokenizer.parse(currentInput),a.loc=getLoc(0,e.length),a.children=condenseWhitespace(a.children),currentRoot=null,a}function hoistStatic(e,t){walk(e,t,isSingleElementRoot(e,e.children[0]))}function isSingleElementRoot(e,t){const{children:r}=e;return r.length===1&&t.type===1&&!isSlotOutlet(t)}function walk(e,t,r=!1){const{children:a}=e,o=a.length;let u=0;for(let d=0;d<a.length;d++){const f=a[d];if(f.type===1&&f.tagType===0){const g=r?0:getConstantType(f,t);if(g>0){if(g>=2){f.codegenNode.patchFlag="-1",f.codegenNode=t.hoist(f.codegenNode),u++;continue}}else{const _=f.codegenNode;if(_.type===13){const S=getPatchFlag(_);if((!S||S===512||S===1)&&getGeneratedPropsConstantType(f,t)>=2){const E=getNodeProps(f);E&&(_.props=t.hoist(E))}_.dynamicProps&&(_.dynamicProps=t.hoist(_.dynamicProps))}}}if(f.type===1){const g=f.tagType===1;g&&t.scopes.vSlot++,walk(f,t),g&&t.scopes.vSlot--}else if(f.type===11)walk(f,t,f.children.length===1);else if(f.type===9)for(let g=0;g<f.branches.length;g++)walk(f.branches[g],t,f.branches[g].children.length===1)}if(u&&t.transformHoist&&t.transformHoist(a,t,e),u&&u===o&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&isArray$4(e.codegenNode.children)){const d=t.hoist(createArrayExpression(e.codegenNode.children));t.hmr&&(d.content=`[...${d.content}]`),e.codegenNode.children=d}}function getConstantType(e,t){const{constantCache:r}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const a=r.get(e);if(a!==void 0)return a;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(getPatchFlag(o))return r.set(e,0),0;{let f=3;const g=getGeneratedPropsConstantType(e,t);if(g===0)return r.set(e,0),0;g<f&&(f=g);for(let _=0;_<e.children.length;_++){const S=getConstantType(e.children[_],t);if(S===0)return r.set(e,0),0;S<f&&(f=S)}if(f>1)for(let _=0;_<e.props.length;_++){const S=e.props[_];if(S.type===7&&S.name==="bind"&&S.exp){const E=getConstantTyp
|
|||
|
`+" ".repeat(T),0)}return b}function generate(e,t={}){const r=createCodegenContext(e,t);t.onContextCreated&&t.onContextCreated(r);const{mode:a,push:o,prefixIdentifiers:u,indent:d,deindent:f,newline:g,scopeId:_,ssr:S}=r,E=Array.from(e.helpers),v=E.length>0,b=!u&&a!=="module";genFunctionPreamble(e,r);const T=S?"ssrRender":"render",R=(S?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${T}(${R}) {`),d(),b&&(o("with (_ctx) {"),d(),v&&(o(`const { ${E.map(aliasHelper).join(", ")} } = _Vue
|
|||
|
`,-1),g())),e.components.length&&(genAssets(e.components,"component",r),(e.directives.length||e.temps>0)&&g()),e.directives.length&&(genAssets(e.directives,"directive",r),e.temps>0&&g()),e.filters&&e.filters.length&&(g(),genAssets(e.filters,"filter",r),g()),e.temps>0){o("let ");for(let A=0;A<e.temps;A++)o(`${A>0?", ":""}_temp${A}`)}return(e.components.length||e.directives.length||e.temps)&&(o(`
|
|||
|
`,0),g()),S||o("return "),e.codegenNode?genNode(e.codegenNode,r):o("null"),b&&(f(),o("}")),f(),o("}"),{ast:e,code:r.code,preamble:"",map:r.map?r.map.toJSON():void 0}}function genFunctionPreamble(e,t){const{ssr:r,prefixIdentifiers:a,push:o,newline:u,runtimeModuleName:d,runtimeGlobalName:f,ssrRuntimeModuleName:g}=t,_=f,S=Array.from(e.helpers);if(S.length>0&&(o(`const _Vue = ${_}
|
|||
|
`,-1),e.hoists.length)){const E=[CREATE_VNODE,CREATE_ELEMENT_VNODE,CREATE_COMMENT,CREATE_TEXT,CREATE_STATIC].filter(v=>S.includes(v)).map(aliasHelper).join(", ");o(`const { ${E} } = _Vue
|
|||
|
`,-1)}genHoists(e.hoists,t),u(),o("return ")}function genAssets(e,t,{helper:r,push:a,newline:o,isTS:u}){const d=r(t==="filter"?RESOLVE_FILTER:t==="component"?RESOLVE_COMPONENT:RESOLVE_DIRECTIVE);for(let f=0;f<e.length;f++){let g=e[f];const _=g.endsWith("__self");_&&(g=g.slice(0,-6)),a(`const ${toValidAssetId(g,t)} = ${d}(${JSON.stringify(g)}${_?", true":""})${u?"!":""}`),f<e.length-1&&o()}}function genHoists(e,t){if(!e.length)return;t.pure=!0;const{push:r,newline:a,helper:o,scopeId:u,mode:d}=t;a();for(let f=0;f<e.length;f++){const g=e[f];g&&(r(`const _hoisted_${f+1} = `),genNode(g,t),a())}t.pure=!1}function genNodeListAsArray(e,t){const r=e.length>3||!1;t.push("["),r&&t.indent(),genNodeList(e,t,r),r&&t.deindent(),t.push("]")}function genNodeList(e,t,r=!1,a=!0){const{push:o,newline:u}=t;for(let d=0;d<e.length;d++){const f=e[d];isString$1(f)?o(f,-3):isArray$4(f)?genNodeListAsArray(f,t):genNode(f,t),d<e.length-1&&(r?(a&&o(","),u()):a&&o(", "))}}function genNode(e,t){if(isString$1(e)){t.push(e,-3);return}if(isSymbol(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:genNode(e.codegenNode,t);break;case 2:genText(e,t);break;case 4:genExpression(e,t);break;case 5:genInterpolation(e,t);break;case 12:genNode(e.codegenNode,t);break;case 8:genCompoundExpression(e,t);break;case 3:genComment(e,t);break;case 13:genVNodeCall(e,t);break;case 14:genCallExpression(e,t);break;case 15:genObjectExpression(e,t);break;case 17:genArrayExpression(e,t);break;case 18:genFunctionExpression(e,t);break;case 19:genConditionalExpression(e,t);break;case 20:genCacheExpression(e,t);break;case 21:genNodeList(e.body,t,!0,!1);break}}function genText(e,t){t.push(JSON.stringify(e.content),-3,e)}function genExpression(e,t){const{content:r,isStatic:a}=e;t.push(a?JSON.stringify(r):r,-3,e)}function genInterpolation(e,t){const{push:r,helper:a,pure:o}=t;o&&r(PURE_ANNOTATION),r(`${a(TO_DISPLAY_STRING)}(`),genNode(e.content,t),r(")")}function genCompoundExpression(e,t){for(let r=0;r<e.children.length;r++){const a=e.children[r];isString$1(a)?t.push(a,-3):genNode(a,t)}}function genExpressionAsPropertyKey(e,t){const{push:r}=t;if(e.type===8)r("["),genCompoundExpression(e,t),r("]");else if(e.isStatic){const a=isSimpleIdentifier(e.content)?e.content:JSON.stringify(e.content);r(a,-2,e)}else r(`[${e.content}]`,-3,e)}function genComment(e,t){const{push:r,helper:a,pure:o}=t;o&&r(PURE_ANNOTATION),r(`${a(CREATE_COMMENT)}(${JSON.stringify(e.content)})`,-3,e)}function genVNodeCall(e,t){const{push:r,helper:a,pure:o}=t,{tag:u,props:d,children:f,patchFlag:g,dynamicProps:_,directives:S,isBlock:E,disableTracking:v,isComponent:b}=e;S&&r(a(WITH_DIRECTIVES)+"("),E&&r(`(${a(OPEN_BLOCK)}(${v?"true":""}), `),o&&r(PURE_ANNOTATION);const y=E?getVNodeBlockHelper(t.inSSR,b):getVNodeHelper(t.inSSR,b);r(a(y)+"(",-2,e),genNodeList(genNullableArgs([u,d,f,g,_]),t),r(")"),E&&r(")"),S&&(r(", "),genNode(S,t),r(")"))}function genNullableArgs(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(r=>r||"null")}function genCallExpression(e,t){const{push:r,helper:a,pure:o}=t,u=isString$1(e.callee)?e.callee:a(e.callee);o&&r(PURE_ANNOTATION),r(u+"(",-2,e),genNodeList(e.arguments,t),r(")")}function genObjectExpression(e,t){const{push:r,indent:a,deindent:o,newline:u}=t,{properties:d}=e;if(!d.length){r("{}",-2,e);return}const f=d.length>1||!1;r(f?"{":"{ "),f&&a();for(let g=0;g<d.length;g++){const{key:_,value:S}=d[g];genExpressionAsPropertyKey(_,t),r(": "),genNode(S,t),g<d.length-1&&(r(","),u())}f&&o(),r(f?"}":" }")}function genArrayExpression(e,t){genNodeListAsArray(e.elements,t)}function genFunctionExpression(e,t){const{push:r,indent:a,deindent:o}=t,{params:u,returns:d,body:f,newline:g,isSlot:_}=e;_&&r(`_${helperNameMap[WITH_CTX]}(`),r("(",-2,e),isArray$4(u)?genNodeList(u,t):u&&genNode(u,t),r(") => "),(g||f)&&(r("{"),a()),d?(g&&r("return "),isArray$4(d)?genNodeListAsArray(d,t):genNode(d,t)):f&&genNode(f,t),(g||f)&&(o(),r("}")),_&&(e.isNonScopedSlot&&r(", undefined, true"),r(")"))}function genConditionalExpression(e,t){const{test:r,consequent:a,alternate:o,newline:u}=e,{push:d,indent
|
|||
|
* @vue/compiler-dom v3.4.21
|
|||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
* @license MIT
|
|||
|
**/const V_MODEL_RADIO=Symbol(""),V_MODEL_CHECKBOX=Symbol(""),V_MODEL_TEXT=Symbol(""),V_MODEL_SELECT=Symbol(""),V_MODEL_DYNAMIC=Symbol(""),V_ON_WITH_MODIFIERS=Symbol(""),V_ON_WITH_KEYS=Symbol(""),V_SHOW=Symbol(""),TRANSITION=Symbol(""),TRANSITION_GROUP=Symbol("");registerRuntimeHelpers({[V_MODEL_RADIO]:"vModelRadio",[V_MODEL_CHECKBOX]:"vModelCheckbox",[V_MODEL_TEXT]:"vModelText",[V_MODEL_SELECT]:"vModelSelect",[V_MODEL_DYNAMIC]:"vModelDynamic",[V_ON_WITH_MODIFIERS]:"withModifiers",[V_ON_WITH_KEYS]:"withKeys",[V_SHOW]:"vShow",[TRANSITION]:"Transition",[TRANSITION_GROUP]:"TransitionGroup"});let decoder$1;function decodeHtmlBrowser(e,t=!1){return decoder$1||(decoder$1=document.createElement("div")),t?(decoder$1.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,decoder$1.children[0].getAttribute("foo")):(decoder$1.innerHTML=e,decoder$1.textContent)}const parserOptions={parseMode:"html",isVoidTag,isNativeTag:e=>isHTMLTag(e)||isSVGTag(e)||isMathMLTag(e),isPreTag:e=>e==="pre",decodeEntities:decodeHtmlBrowser,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return TRANSITION;if(e==="TransitionGroup"||e==="transition-group")return TRANSITION_GROUP},getNamespace(e,t,r){let a=t?t.ns:r;if(t&&a===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(o=>o.type===6&&o.name==="encoding"&&o.value!=null&&(o.value.content==="text/html"||o.value.content==="application/xhtml+xml"))&&(a=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(a=0);else t&&a===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(a=0);if(a===0){if(e==="svg")return 1;if(e==="math")return 2}return a}},transformStyle=e=>{e.type===1&&e.props.forEach((t,r)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[r]={type:7,name:"bind",arg:createSimpleExpression("style",!0,t.loc),exp:parseInlineCSS(t.value.content,t.loc),modifiers:[],loc:t.loc})})},parseInlineCSS=(e,t)=>{const r=parseStringStyle(e);return createSimpleExpression(JSON.stringify(r),!1,t,3)};function createDOMCompilerError(e,t){return createCompilerError(e,t)}const transformVHtml=(e,t,r)=>{const{exp:a,loc:o}=e;return a||r.onError(createDOMCompilerError(53,o)),t.children.length&&(r.onError(createDOMCompilerError(54,o)),t.children.length=0),{props:[createObjectProperty(createSimpleExpression("innerHTML",!0,o),a||createSimpleExpression("",!0))]}},transformVText=(e,t,r)=>{const{exp:a,loc:o}=e;return a||r.onError(createDOMCompilerError(55,o)),t.children.length&&(r.onError(createDOMCompilerError(56,o)),t.children.length=0),{props:[createObjectProperty(createSimpleExpression("textContent",!0),a?getConstantType(a,r)>0?a:createCallExpression(r.helperString(TO_DISPLAY_STRING),[a],o):createSimpleExpression("",!0))]}},transformModel=(e,t,r)=>{const a=transformModel$1(e,t,r);if(!a.props.length||t.tagType===1)return a;e.arg&&r.onError(createDOMCompilerError(58,e.arg.loc));const{tag:o}=t,u=r.isCustomElement(o);if(o==="input"||o==="textarea"||o==="select"||u){let d=V_MODEL_TEXT,f=!1;if(o==="input"||u){const g=findProp(t,"type");if(g){if(g.type===7)d=V_MODEL_DYNAMIC;else if(g.value)switch(g.value.content){case"radio":d=V_MODEL_RADIO;break;case"checkbox":d=V_MODEL_CHECKBOX;break;case"file":f=!0,r.onError(createDOMCompilerError(59,e.loc));break}}else hasDynamicKeyVBind(t)&&(d=V_MODEL_DYNAMIC)}else o==="select"&&(d=V_MODEL_SELECT);f||(a.needRuntime=r.helper(d))}else r.onError(createDOMCompilerError(57,e.loc));return a.props=a.props.filter(d=>!(d.key.type===4&&d.key.content==="modelValue")),a},isEventOptionModifier=makeMap("passive,once,capture"),isNonKeyModifier=makeMap("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),maybeKeyModifier=makeMap("left,right"),isKeyboardEvent$1=makeMap("onkeyup,onkeydown,onkeypress",!0),resolveModifiers=(e,t,r,a)=>{const o=[],u=[],d=[];for(let f=0;f<t.length;f++){const g=t[f];g==="native"&&checkCompatEnabled("COMPILER_V_ON_NATIVE",r)||isEventOptionModifier(g)?d.push(g):maybeKeyModifier(g)?isStaticExp(e)?isKeyboardEvent$1(e.content)?o.push(g):u.push(g):(o.push(g),u.push(g)):isNonKeyModifier(g)?u.push(g):o.push(g)}return{keyModifiers:o,nonKeyMo
|
|||
|
* vue v3.4.21
|
|||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
* @license MIT
|
|||
|
**/const compileCache=new WeakMap;function getCache(e){let t=compileCache.get(e??EMPTY_OBJ);return t||(t=Object.create(null),compileCache.set(e??EMPTY_OBJ,t)),t}function compileToFunction(e,t){if(!isString$1(e))if(e.nodeType)e=e.innerHTML;else return NOOP;const r=e,a=getCache(t),o=a[r];if(o)return o;if(e[0]==="#"){const g=document.querySelector(e);e=g?g.innerHTML:""}const u=extend$2({hoistStatic:!0,onError:void 0,onWarn:NOOP},t);!u.isCustomElement&&typeof customElements<"u"&&(u.isCustomElement=g=>!!customElements.get(g));const{code:d}=compile$1(e,u),f=new Function("Vue",d)(runtimeDom);return f._rc=!0,a[r]=f}registerRuntimeCompiler(compileToFunction);const Vue=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition,BaseTransitionPropsValidators,Comment,DeprecationTypes,EffectScope,ErrorCodes,ErrorTypeStrings,Fragment,KeepAlive,ReactiveEffect,Static,Suspense,Teleport,Text,TrackOpTypes,Transition:Transition$1,TransitionGroup,TriggerOpTypes,VueElement,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,camelize,capitalize,cloneVNode,compatUtils,compile:compileToFunction,computed,createApp,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSSRApp,createSlots,createStaticVNode,createTextVNode,createVNode,customRef,defineAsyncComponent,defineComponent:defineComponent$1,defineCustomElement,defineEmits,defineExpose,defineModel,defineOptions,defineProps,defineSSRCustomElement,defineSlots,devtools,effect,effectScope,getCurrentInstance:getCurrentInstance$1,getCurrentScope,getTransitionRawChildren,guardReactiveProps,h,handleError:handleError$1,hasInjectionContext,hydrate,initCustomFormatter,initDirectivesForSSR,inject:inject$1,isMemoSame,isProxy,isReactive,isReadonly,isRef,isRuntimeOnly,isShallow,isVNode,markRaw,mergeDefaults,mergeModels,mergeProps,nextTick:nextTick$1,normalizeClass,normalizeProps,normalizeStyle,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onScopeDispose,onServerPrefetch,onUnmounted,onUpdated,openBlock,popScopeId,provide,proxyRefs,pushScopeId,queuePostFlushCb,reactive,readonly,ref:ref$1,registerRuntimeCompiler,render:render$2,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,shallowReactive,shallowReadonly,shallowRef,ssrContextKey,ssrUtils,stop,toDisplayString,toHandlerKey,toHandlers,toRaw,toRef,toRefs,toValue,transformVNodeArgs,triggerRef,unref,useAttrs,useCssModule,useCssVars,useModel,useSSRContext,useSlots,useTransitionState,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,version:version$6,warn:warn$2,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withKeys,withMemo,withModifiers,withScopeId},Symbol.toStringTag,{value:"Module"})),Vue3=version$6.startsWith("3");function resolveUnref(e){return typeof e=="function"?e():unref(e)}function resolveUnrefHeadInput(e,t=""){if(e instanceof Promise)return e;const r=resolveUnref(e);return!e||!r?r:Array.isArray(r)?r.map(a=>resolveUnrefHeadInput(a,t)):typeof r=="object"?Object.fromEntries(Object.entries(r).map(([a,o])=>a==="titleTemplate"||a.startsWith("on")?[a,unref(o)]:[a,resolveUnrefHeadInput(o,a)])):r}const VueReactivityPlugin={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=resolveUnrefHeadInput(t.input)}}},headSymbol="usehead";function vueInstall(e){return{install(r){Vue3&&(r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(headSymbol,e))}}.install}function createHead(e={}){e.domDelayFn=e.domDelayFn||(r=>nextTick$1(()=>setTimeout(()=>r(),0)));const t=createHead$1(e);return t.use(VueReactivityPlugin),t.install=vueInstall(t),t}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__unhead_injection_handler__";function injectHead(){if(globalKey
|
|||
|
* vuex v4.1.0
|
|||
|
* (c) 2022 Evan You
|
|||
|
* @license MIT
|
|||
|
*/var storeKey="store";function useStore(e){return e===void 0&&(e=null),inject$1(e!==null?e:storeKey)}function find$1(e,t){return e.filter(t)[0]}function deepCopy(e,t){if(t===void 0&&(t=[]),e===null||typeof e!="object")return e;var r=find$1(t,function(o){return o.original===e});if(r)return r.copy;var a=Array.isArray(e)?[]:{};return t.push({original:e,copy:a}),Object.keys(e).forEach(function(o){a[o]=deepCopy(e[o],t)}),a}function forEachValue(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function isObject$5(e){return e!==null&&typeof e=="object"}function isPromise(e){return e&&typeof e.then=="function"}function partial(e,t){return function(){return e(t)}}function genericSubscribe(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function resetStore(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;installModule(e,r,[],e._modules.root,!0),resetStoreState(e,r,t)}function resetStoreState(e,t,r){var a=e._state,o=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var u=e._wrappedGetters,d={},f={},g=effectScope(!0);g.run(function(){forEachValue(u,function(_,S){d[S]=partial(_,e),f[S]=computed(function(){return d[S]()}),Object.defineProperty(e.getters,S,{get:function(){return f[S].value},enumerable:!0})})}),e._state=reactive({data:t}),e._scope=g,e.strict&&enableStrictMode(e),a&&r&&e._withCommit(function(){a.data=null}),o&&o.stop()}function installModule(e,t,r,a,o){var u=!r.length,d=e._modules.getNamespace(r);if(a.namespaced&&(e._modulesNamespaceMap[d],e._modulesNamespaceMap[d]=a),!u&&!o){var f=getNestedState(t,r.slice(0,-1)),g=r[r.length-1];e._withCommit(function(){f[g]=a.state})}var _=a.context=makeLocalContext(e,d,r);a.forEachMutation(function(S,E){var v=d+E;registerMutation(e,v,S,_)}),a.forEachAction(function(S,E){var v=S.root?E:d+E,b=S.handler||S;registerAction(e,v,b,_)}),a.forEachGetter(function(S,E){var v=d+E;registerGetter(e,v,S,_)}),a.forEachChild(function(S,E){installModule(e,t,r.concat(E),S,o)})}function makeLocalContext(e,t,r){var a=t==="",o={dispatch:a?e.dispatch:function(u,d,f){var g=unifyObjectStyle(u,d,f),_=g.payload,S=g.options,E=g.type;return(!S||!S.root)&&(E=t+E),e.dispatch(E,_)},commit:a?e.commit:function(u,d,f){var g=unifyObjectStyle(u,d,f),_=g.payload,S=g.options,E=g.type;(!S||!S.root)&&(E=t+E),e.commit(E,_,S)}};return Object.defineProperties(o,{getters:{get:a?function(){return e.getters}:function(){return makeLocalGetters(e,t)}},state:{get:function(){return getNestedState(e.state,r)}}}),o}function makeLocalGetters(e,t){if(!e._makeLocalGettersCache[t]){var r={},a=t.length;Object.keys(e.getters).forEach(function(o){if(o.slice(0,a)===t){var u=o.slice(a);Object.defineProperty(r,u,{get:function(){return e.getters[o]},enumerable:!0})}}),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function registerMutation(e,t,r,a){var o=e._mutations[t]||(e._mutations[t]=[]);o.push(function(d){r.call(e,a.state,d)})}function registerAction(e,t,r,a){var o=e._actions[t]||(e._actions[t]=[]);o.push(function(d){var f=r.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},d);return isPromise(f)||(f=Promise.resolve(f)),e._devtoolHook?f.catch(function(g){throw e._devtoolHook.emit("vuex:error",g),g}):f})}function registerGetter(e,t,r,a){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(u){return r(a.state,a.getters,u.state,u.getters)})}function enableStrictMode(e){watch(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function getNestedState(e,t){return t.reduce(function(r,a){return r[a]},e)}function unifyObjectStyle(e,t,r){return isObject$5(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}var LABEL_VUEX_BINDINGS="vuex bindings",MUTATIONS_LAYER_ID="vuex:mutations",ACTIONS_LAYER_ID="vuex:actions",INSPECTOR_ID="vuex",actionId=0;function addDevtools(e,t){setupDevtoolsPlugin({id:"org.vuejs.vuex",app:e,label:"Vuex",home
|
|||
|
|
|||
|
`+toDisplayString(o.data.slice(0,10))+`
|
|||
|
... [+ `+toDisplayString(o.data.length-10)+` more]
|
|||
|
`,1)):o.data?(openBlock(),createElementBlock("pre",_hoisted_2$i,toDisplayString(o.data),1)):(openBlock(),createElementBlock("p",_hoisted_3$a,"No Data Found")),createVNode(d,{style:{margin:"12px"},variant:"outlined","prepend-icon":"mdi-refresh",onClick:t[0]||(t[0]=f=>u.getData())},{default:withCtx(()=>[createTextVNode("Refresh")]),_:1})],64)}const DebugData=_export_sfc(_sfc_main$x,[["render",_sfc_render$u]]);function getProperty(e,t){return t.split(".").forEach(a=>{e&&(e=e[a])}),e}const _sfc_main$w={name:"DebugView",components:{"debug-data":DebugData},inject:["$socket","$dataTracker"],data(){return{view:{tab:"",nested:"properties"},filters:{pages:[],groups:[],widgets:[]},search:{groups:"",widgets:""},messages:[]}},computed:{...mapState("ui",["dashboards","pages","themes","groups","widgets"]),...mapState("data",["messages"]),items:function(){return{dashboards:Object.values(this.dashboards),pages:Object.values(this.pages).filter(e=>this.filters.pages.every(t=>getProperty(e,t.key)===t.value)),themes:Object.values(this.themes),groups:Object.values(this.groups).filter(e=>this.filters.groups.every(t=>getProperty(e,t.key)===t.value)),widgets:Object.values(this.widgets).filter(e=>this.filters.widgets.every(t=>getProperty(e,t.key)===t.value))}},headers:function(){return{dashboards:[{title:"ID",value:"id"},{title:"Name",value:"name"},{title:"Path",value:"path"},{title:"",value:"filter.pages",align:"end"}],themes:[{title:"ID",value:"id"},{title:"Name",value:"name"},{title:"Colors",value:"colors"},{title:"Sizes",value:"sizes"}],pages:[{title:"ID",value:"id"},{title:"Name",value:"name"},{title:"Path",value:"path"},{title:"Layout",value:"layout"},{title:"",value:"filter.groups",align:"end"}],groups:[{title:"ID",value:"id"},{title:"Name",value:"name"},{title:"Size",value:"size"},{title:"",value:"filter.widgets",align:"end"}],widgets:[{title:"ID",value:"id"},{title:"Name",value:"props.name"},{title:"Label",value:"props.label"},{title:"Type",value:"type"},{title:"Size",value:"size"}]}}},methods:{applyFilter(e,t,r){this.filters[e].push({key:t,value:r}),this.view.tab=e},clearFilter(e,t){this.filters[e].splice(t,1)},refresh(){this.$socket.disconnect(),this.$socket.connect()}}},_hoisted_1$m={class:"nrdb-debug-view"},_hoisted_2$h=createBaseVNode("div",{class:"nrdb-debug-description"},[createBaseVNode("p",null,'Data does not automatically update for each item (as event listeners are managed within the rendered components), you will need to manually "refresh" to see updated data.'),createBaseVNode("p",null,[createTextVNode("This will reconnect the socket connection, where this UI will receive the latest "),createBaseVNode("code",null,"ui-config"),createTextVNode(" message.")])],-1),_hoisted_3$9=["colspan"],_hoisted_4$5={key:0,class:"debug-filters"},_hoisted_5$4=createBaseVNode("label",null,"Filters:",-1),_hoisted_6$5={class:"debug-filters-chips"},_hoisted_7$3=["colspan"],_hoisted_8$2={key:0,class:"debug-filters"},_hoisted_9$2=createBaseVNode("label",null,"Filters:",-1),_hoisted_10$2={class:"debug-filters-chips"},_hoisted_11$1=["colspan"],_hoisted_12={key:0,class:"debug-filters"},_hoisted_13=createBaseVNode("label",null,"Filters:",-1),_hoisted_14={class:"debug-filters-chips"},_hoisted_15=["colspan"];function _sfc_render$t(e,t,r,a,o,u){const d=resolveComponent("v-btn"),f=resolveComponent("v-tab"),g=resolveComponent("v-tabs"),_=resolveComponent("v-data-table"),S=resolveComponent("v-window-item"),E=resolveComponent("v-chip"),v=resolveComponent("debug-data"),b=resolveComponent("v-window"),y=resolveComponent("v-text-field");return openBlock(),createElementBlock("div",_hoisted_1$m,[createBaseVNode("h1",null,[createTextVNode("Dashboard Debug View "),createVNode(d,{variant:"outlined","prepend-icon":"mdi-refresh",onClick:t[0]||(t[0]=T=>u.refresh())},{default:withCtx(()=>[createTextVNode("Refresh")]),_:1})]),_hoisted_2$h,createVNode(g,{modelValue:o.view.tab,"onUpdate:modelValue":t[1]||(t[1]=T=>o.view.tab=T)},{default:withCtx(()=>[createVNode(f,{value:"dashboards"},{default:withCtx(()=>[createTextVNode("Dashboards")]),_:1}),createVNode(f,{value:"themes
|
|||
|
* @kurkle/color v0.3.2
|
|||
|
* https://github.com/kurkle/color#readme
|
|||
|
* (c) 2023 Jukka Kurkela
|
|||
|
* Released under the MIT License
|
|||
|
*/function round(e){return e+.5|0}const lim=(e,t,r)=>Math.max(Math.min(e,r),t);function p2b(e){return lim(round(e*2.55),0,255)}function n2b(e){return lim(round(e*255),0,255)}function b2n(e){return lim(round(e/2.55)/100,0,1)}function n2p(e){return lim(round(e*100),0,100)}const map$1$1={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hex$2=[..."0123456789ABCDEF"],h1=e=>hex$2[e&15],h2=e=>hex$2[(e&240)>>4]+hex$2[e&15],eq$1=e=>(e&240)>>4===(e&15),isShort=e=>eq$1(e.r)&&eq$1(e.g)&&eq$1(e.b)&&eq$1(e.a);function hexParse(e){var t=e.length,r;return e[0]==="#"&&(t===4||t===5?r={r:255&map$1$1[e[1]]*17,g:255&map$1$1[e[2]]*17,b:255&map$1$1[e[3]]*17,a:t===5?map$1$1[e[4]]*17:255}:(t===7||t===9)&&(r={r:map$1$1[e[1]]<<4|map$1$1[e[2]],g:map$1$1[e[3]]<<4|map$1$1[e[4]],b:map$1$1[e[5]]<<4|map$1$1[e[6]],a:t===9?map$1$1[e[7]]<<4|map$1$1[e[8]]:255})),r}const alpha=(e,t)=>e<255?t(e):"";function hexString(e){var t=isShort(e)?h1:h2;return e?"#"+t(e.r)+t(e.g)+t(e.b)+alpha(e.a,t):void 0}const HUE_RE=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function hsl2rgbn(e,t,r){const a=t*Math.min(r,1-r),o=(u,d=(u+e/30)%12)=>r-a*Math.max(Math.min(d-3,9-d,1),-1);return[o(0),o(8),o(4)]}function hsv2rgbn(e,t,r){const a=(o,u=(o+e/60)%6)=>r-r*t*Math.max(Math.min(u,4-u,1),0);return[a(5),a(3),a(1)]}function hwb2rgbn(e,t,r){const a=hsl2rgbn(e,1,.5);let o;for(t+r>1&&(o=1/(t+r),t*=o,r*=o),o=0;o<3;o++)a[o]*=1-t-r,a[o]+=t;return a}function hueValue(e,t,r,a,o){return e===o?(t-r)/a+(t<r?6:0):t===o?(r-e)/a+2:(e-t)/a+4}function rgb2hsl(e){const r=e.r/255,a=e.g/255,o=e.b/255,u=Math.max(r,a,o),d=Math.min(r,a,o),f=(u+d)/2;let g,_,S;return u!==d&&(S=u-d,_=f>.5?S/(2-u-d):S/(u+d),g=hueValue(r,a,o,S,u),g=g*60+.5),[g|0,_||0,f]}function calln(e,t,r,a){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,r,a)).map(n2b)}function hsl2rgb$1(e,t,r){return calln(hsl2rgbn,e,t,r)}function hwb2rgb(e,t,r){return calln(hwb2rgbn,e,t,r)}function hsv2rgb(e,t,r){return calln(hsv2rgbn,e,t,r)}function hue$1(e){return(e%360+360)%360}function hueParse(e){const t=HUE_RE.exec(e);let r=255,a;if(!t)return;t[5]!==a&&(r=t[6]?p2b(+t[5]):n2b(+t[5]));const o=hue$1(+t[2]),u=+t[3]/100,d=+t[4]/100;return t[1]==="hwb"?a=hwb2rgb(o,u,d):t[1]==="hsv"?a=hsv2rgb(o,u,d):a=hsl2rgb$1(o,u,d),{r:a[0],g:a[1],b:a[2],a:r}}function rotate(e,t){var r=rgb2hsl(e);r[0]=hue$1(r[0]+t),r=hsl2rgb$1(r),e.r=r[0],e.g=r[1],e.b=r[2]}function hslString(e){if(!e)return;const t=rgb2hsl(e),r=t[0],a=n2p(t[1]),o=n2p(t[2]);return e.a<255?`hsla(${r}, ${a}%, ${o}%, ${b2n(e.a)})`:`hsl(${r}, ${a}%, ${o}%)`}const map$3={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},names$1={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"7
|
|||
|
* Chart.js v4.4.0
|
|||
|
* https://www.chartjs.org
|
|||
|
* (c) 2023 Chart.js Contributors
|
|||
|
* Released under the MIT License
|
|||
|
*/function noop$4(){}const uid=(()=>{let e=0;return()=>e++})();function isNullOrUndef(e){return e===null||typeof e>"u"}function isArray$3(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function isObject$4(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function isNumberFinite(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function finiteOrDefault(e,t){return isNumberFinite(e)?e:t}function valueOrDefault(e,t){return typeof e>"u"?t:e}const toPercentage=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,toDimension=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function callback(e,t,r){if(e&&typeof e.call=="function")return e.apply(r,t)}function each(e,t,r,a){let o,u,d;if(isArray$3(e))if(u=e.length,a)for(o=u-1;o>=0;o--)t.call(r,e[o],o);else for(o=0;o<u;o++)t.call(r,e[o],o);else if(isObject$4(e))for(d=Object.keys(e),u=d.length,o=0;o<u;o++)t.call(r,e[d[o]],d[o])}function _elementsEqual(e,t){let r,a,o,u;if(!e||!t||e.length!==t.length)return!1;for(r=0,a=e.length;r<a;++r)if(o=e[r],u=t[r],o.datasetIndex!==u.datasetIndex||o.index!==u.index)return!1;return!0}function clone$3(e){if(isArray$3(e))return e.map(clone$3);if(isObject$4(e)){const t=Object.create(null),r=Object.keys(e),a=r.length;let o=0;for(;o<a;++o)t[r[o]]=clone$3(e[r[o]]);return t}return e}function isValidKey(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function _merger(e,t,r,a){if(!isValidKey(e))return;const o=t[e],u=r[e];isObject$4(o)&&isObject$4(u)?merge$3(o,u,a):t[e]=clone$3(u)}function merge$3(e,t,r){const a=isArray$3(t)?t:[t],o=a.length;if(!isObject$4(e))return e;r=r||{};const u=r.merger||_merger;let d;for(let f=0;f<o;++f){if(d=a[f],!isObject$4(d))continue;const g=Object.keys(d);for(let _=0,S=g.length;_<S;++_)u(g[_],e,d,r)}return e}function mergeIf(e,t){return merge$3(e,t,{merger:_mergerIf})}function _mergerIf(e,t,r){if(!isValidKey(e))return;const a=t[e],o=r[e];isObject$4(a)&&isObject$4(o)?mergeIf(a,o):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=clone$3(o))}const keyResolvers={"":e=>e,x:e=>e.x,y:e=>e.y};function _splitKey(e){const t=e.split("."),r=[];let a="";for(const o of t)a+=o,a.endsWith("\\")?a=a.slice(0,-1)+".":(r.push(a),a="");return r}function _getKeyResolver(e){const t=_splitKey(e);return r=>{for(const a of t){if(a==="")break;r=r&&r[a]}return r}}function resolveObjectKey(e,t){return(keyResolvers[t]||(keyResolvers[t]=_getKeyResolver(t)))(e)}function _capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}const defined=e=>typeof e<"u",isFunction$1=e=>typeof e=="function",setsEqual=(e,t)=>{if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0};function _isClickEvent(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const PI=Math.PI,TAU=2*PI,PITAU=TAU+PI,INFINITY=Number.POSITIVE_INFINITY,RAD_PER_DEG=PI/180,HALF_PI=PI/2,QUARTER_PI=PI/4,TWO_THIRDS_PI=PI*2/3,log10=Math.log10,sign$1=Math.sign;function almostEquals(e,t,r){return Math.abs(e-t)<r}function niceNum(e){const t=Math.round(e);e=almostEquals(e,t,e/1e3)?t:e;const r=Math.pow(10,Math.floor(log10(e))),a=e/r;return(a<=1?1:a<=2?2:a<=5?5:10)*r}function _factorize(e){const t=[],r=Math.sqrt(e);let a;for(a=1;a<r;a++)e%a===0&&(t.push(a),t.push(e/a));return r===(r|0)&&t.push(r),t.sort((o,u)=>o-u).pop(),t}function isNumber$1(e){return!isNaN(parseFloat(e))&&isFinite(e)}function almostWhole(e,t){const r=Math.round(e);return r-t<=e&&r+t>=e}function _setMinAndMaxByKey(e,t,r){let a,o,u;for(a=0,o=e.length;a<o;a++)u=e[a][r],isNaN(u)||(t.min=Math.min(t.min,u),t.max=Math.max(t.max,u))}function toRadians(e){return e*(PI/180)}function toDegrees(e){return e*(180/PI)}function _decimalPlaces(e){if(!isNumberFinite(e))return;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r++;return r}function getAngleFromPoint(e,t){const r=t.x-e.x,a=t.y-e.y,o=Math.sqrt(r*r+a*a);let u=Math.atan2(a,r);return u<-.5*PI&&(u+=TAU),{angle:u,distance:o}}function distanceBetweenPoints(e,t){return Math.sqrt(Math.pow(t
|
|||
|
* Chart.js v4.4.0
|
|||
|
* https://www.chartjs.org
|
|||
|
* (c) 2023 Chart.js Contributors
|
|||
|
* Released under the MIT License
|
|||
|
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,r,a,o){const u=r.listeners[o],d=r.duration;u.forEach(f=>f({chart:t,initial:r.initial,numSteps:d,currentStep:Math.min(a-r.start,d)}))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let r=0;this._charts.forEach((a,o)=>{if(!a.running||!a.items.length)return;const u=a.items;let d=u.length-1,f=!1,g;for(;d>=0;--d)g=u[d],g._active?(g._total>a.duration&&(a.duration=g._total),g.tick(t),f=!0):(u[d]=u[u.length-1],u.pop());f&&(o.draw(),this._notify(o,a,t,"progress")),u.length||(a.running=!1,this._notify(o,a,t,"complete"),a.initial=!1),r+=u.length}),this._lastDate=t,r===0&&(this._running=!1)}_getAnims(t){const r=this._charts;let a=r.get(t);return a||(a={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},r.set(t,a)),a}listen(t,r,a){this._getAnims(t).listeners[r].push(a)}add(t,r){!r||!r.length||this._getAnims(t).items.push(...r)}has(t){return this._getAnims(t).items.length>0}start(t){const r=this._charts.get(t);r&&(r.running=!0,r.start=Date.now(),r.duration=r.items.reduce((a,o)=>Math.max(a,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const r=this._charts.get(t);return!(!r||!r.running||!r.items.length)}stop(t){const r=this._charts.get(t);if(!r||!r.items.length)return;const a=r.items;let o=a.length-1;for(;o>=0;--o)a[o].cancel();r.items=[],this._notify(t,r,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var animator=new Animator;const transparent="transparent",interpolators={boolean(e,t,r){return r>.5?t:e},color(e,t,r){const a=color$1(e||transparent),o=a.valid&&color$1(t||transparent);return o&&o.valid?o.mix(a,r).hexString():t},number(e,t,r){return e+(t-e)*r}};class Animation{constructor(t,r,a,o){const u=r[a];o=resolve([t.to,o,u,t.from]);const d=resolve([t.from,u,o]);this._active=!0,this._fn=t.fn||interpolators[t.type||typeof d],this._easing=effects[t.easing]||effects.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=r,this._prop=a,this._from=d,this._to=o,this._promises=void 0}active(){return this._active}update(t,r,a){if(this._active){this._notify(!1);const o=this._target[this._prop],u=a-this._start,d=this._duration-u;this._start=a,this._duration=Math.floor(Math.max(d,t.duration)),this._total+=u,this._loop=!!t.loop,this._to=resolve([t.to,r,o,t.from]),this._from=resolve([t.from,o,r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const r=t-this._start,a=this._duration,o=this._prop,u=this._from,d=this._loop,f=this._to;let g;if(this._active=u!==f&&(d||r<a),!this._active){this._target[o]=f,this._notify(!0);return}if(r<0){this._target[o]=u;return}g=r/a%2,g=d&&g>1?2-g:g,g=this._easing(Math.min(1,Math.max(0,g))),this._target[o]=this._fn(u,f,g)}wait(){const t=this._promises||(this._promises=[]);return new Promise((r,a)=>{t.push({res:r,rej:a})})}_notify(t){const r=t?"res":"rej",a=this._promises||[];for(let o=0;o<a.length;o++)a[o][r]()}}class Animations{constructor(t,r){this._chart=t,this._properties=new Map,this.configure(r)}configure(t){if(!isObject$4(t))return;const r=Object.keys(defaults$1.animation),a=this._properties;Object.getOwnPropertyNames(t).forEach(o=>{const u=t[o];if(!isObject$4(u))return;const d={};for(const f of r)d[f]=u[f];(isArray$3(u.properties)&&u.properties||[o]).forEach(f=>{(f===o||!a.has(f))&&a.set(f,d)})})}_animateOptions(t,r){const a=r.options,o=resolveTargetOptions(t,a);if(!o)return[];const u=this._createAnimations(o,a);return a.$shared&&awaitAll(t.options.$animations,a).then(()=>{t.options=a},()=>{}),u}_createAnimations(t,r){const a=this._properties,o=[],u=t.$animations||(t.$animations={}),d=Object.keys(r),f=Date.now();let g;for(g=d.length-1;g>=0;--g){const _=d[g];if(_.charAt(0)==="$")continue;if(_==="options"){o.push(...this._animateOptions(t,r));continue}const S=r[_];let E=u[_];cons
|
|||
|
`)>-1?e.split(`
|
|||
|
`):e}function createTooltipItem(e,t){const{element:r,datasetIndex:a,index:o}=t,u=e.getDatasetMeta(a).controller,{label:d,value:f}=u.getLabelAndValue(o);return{chart:e,label:d,parsed:u.getParsed(o),raw:e.data.datasets[a].data[o],formattedValue:f,dataset:u.getDataset(),dataIndex:o,datasetIndex:a,element:r}}function getTooltipSize(e,t){const r=e.chart.ctx,{body:a,footer:o,title:u}=e,{boxWidth:d,boxHeight:f}=t,g=toFont(t.bodyFont),_=toFont(t.titleFont),S=toFont(t.footerFont),E=u.length,v=o.length,b=a.length,y=toPadding(t.padding);let T=y.height,C=0,R=a.reduce((x,N)=>x+N.before.length+N.lines.length+N.after.length,0);if(R+=e.beforeBody.length+e.afterBody.length,E&&(T+=E*_.lineHeight+(E-1)*t.titleSpacing+t.titleMarginBottom),R){const x=t.displayColors?Math.max(f,g.lineHeight):g.lineHeight;T+=b*x+(R-b)*g.lineHeight+(R-1)*t.bodySpacing}v&&(T+=t.footerMarginTop+v*S.lineHeight+(v-1)*t.footerSpacing);let A=0;const O=function(x){C=Math.max(C,r.measureText(x).width+A)};return r.save(),r.font=_.string,each(e.title,O),r.font=g.string,each(e.beforeBody.concat(e.afterBody),O),A=t.displayColors?d+2+t.boxPadding:0,each(a,x=>{each(x.before,O),each(x.lines,O),each(x.after,O)}),A=0,r.font=S.string,each(e.footer,O),r.restore(),C+=y.width,{width:C,height:T}}function determineYAlign(e,t){const{y:r,height:a}=t;return r<a/2?"top":r>e.height-a/2?"bottom":"center"}function doesNotFitWithAlign(e,t,r,a){const{x:o,width:u}=a,d=r.caretSize+r.caretPadding;if(e==="left"&&o+u+d>t.width||e==="right"&&o-u-d<0)return!0}function determineXAlign(e,t,r,a){const{x:o,width:u}=r,{width:d,chartArea:{left:f,right:g}}=e;let _="center";return a==="center"?_=o<=(f+g)/2?"left":"right":o<=u/2?_="left":o>=d-u/2&&(_="right"),doesNotFitWithAlign(_,e,t,r)&&(_="center"),_}function determineAlignment(e,t,r){const a=r.yAlign||t.yAlign||determineYAlign(e,r);return{xAlign:r.xAlign||t.xAlign||determineXAlign(e,t,r,a),yAlign:a}}function alignX(e,t){let{x:r,width:a}=e;return t==="right"?r-=a:t==="center"&&(r-=a/2),r}function alignY(e,t,r){let{y:a,height:o}=e;return t==="top"?a+=r:t==="bottom"?a-=o+r:a-=o/2,a}function getBackgroundPoint(e,t,r,a){const{caretSize:o,caretPadding:u,cornerRadius:d}=e,{xAlign:f,yAlign:g}=r,_=o+u,{topLeft:S,topRight:E,bottomLeft:v,bottomRight:b}=toTRBLCorners(d);let y=alignX(t,f);const T=alignY(t,g,_);return g==="center"?f==="left"?y+=_:f==="right"&&(y-=_):f==="left"?y-=Math.max(S,v)+o:f==="right"&&(y+=Math.max(E,b)+o),{x:_limitValue(y,0,a.width-t.width),y:_limitValue(T,0,a.height-t.height)}}function getAlignedX(e,t,r){const a=toPadding(r.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-a.right:e.x+a.left}function getBeforeAfterBodyLines(e){return pushOrConcat([],splitNewlines(e))}function createTooltipContext(e,t,r){return createContext(e,{tooltip:t,tooltipItems:r,type:"tooltip"})}function overrideCallbacks(e,t){const r=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return r?e.override(r):e}const defaultCallbacks={beforeTitle:noop$4,title(e){if(e.length>0){const t=e[0],r=t.chart.data.labels,a=r?r.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(a>0&&t.dataIndex<a)return r[t.dataIndex]}return""},afterTitle:noop$4,beforeBody:noop$4,beforeLabel:noop$4,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const r=e.formattedValue;return isNullOrUndef(r)||(t+=r),t},labelColor(e){const r=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:r.borderColor,backgroundColor:r.backgroundColor,borderWidth:r.borderWidth,borderDash:r.borderDash,borderDashOffset:r.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const r=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:r.pointStyle,rotation:r.rotation}},afterLabel:noop$4,afterBody:noop$4,beforeFooter:noop$4,footer:noop$4,afterFooter:noop$4};function invokeCallbackWithFallback(e,t,r,a){const o=e[
|
|||
|
* chartjs-adapter-luxon v1.3.1
|
|||
|
* https://www.chartjs.org
|
|||
|
* (c) 2023 chartjs-adapter-luxon Contributors
|
|||
|
* Released under the MIT license
|
|||
|
*/const FORMATS={datetime:DateTime.DATETIME_MED_WITH_SECONDS,millisecond:"h:mm:ss.SSS a",second:DateTime.TIME_WITH_SECONDS,minute:DateTime.TIME_SIMPLE,hour:{hour:"numeric"},day:{day:"numeric",month:"short"},week:"DD",month:{month:"short",year:"numeric"},quarter:"'Q'q - yyyy",year:{year:"numeric"}};adapters._date.override({_id:"luxon",_create:function(e){return DateTime.fromMillis(e,this.options)},init(e){this.options.locale||(this.options.locale=e.locale)},formats:function(){return FORMATS},parse:function(e,t){const r=this.options,a=typeof e;return e===null||a==="undefined"?null:(a==="number"?e=this._create(e):a==="string"?typeof t=="string"?e=DateTime.fromFormat(e,t,r):e=DateTime.fromISO(e,r):e instanceof Date?e=DateTime.fromJSDate(e,r):a==="object"&&!(e instanceof DateTime)&&(e=DateTime.fromObject(e,r)),e.isValid?e.valueOf():null)},format:function(e,t){const r=this._create(e);return typeof t=="string"?r.toFormat(t):r.toLocaleString(t)},add:function(e,t,r){const a={};return a[r]=t,this._create(e).plus(a).valueOf()},diff:function(e,t,r){return this._create(e).diff(this._create(t)).as(r).valueOf()},startOf:function(e,t,r){if(t==="isoWeek"){r=Math.trunc(Math.min(Math.max(0,r),6));const a=this._create(e);return a.minus({days:(a.weekday-r+7)%7}).startOf("day").valueOf()}return t?this._create(e).startOf(t).valueOf():e},endOf:function(e,t){return this._create(e).endOf(t).valueOf()}});const _sfc_main$m={name:"DBUIChart",inject:["$socket","$dataTracker"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},data(){return{chart:null,hasData:!1}},computed:{...mapState("data",["messages"]),radialChart(){return this.props.xAxisType==="radial"}},watch:{"props.label":function(e){this.chart.options.plugins.title.text=e,this.chart.update()},"props.chartType":function(e){this.chart.config.type=e,this.chart.update()},"props.xAxisType":function(e){this.chart.options.scales.x.type=e,this.chart.update()},"props.xAxisFormatType":function(e){this.chart.options.scales.x.time.displayFormats=this.getXDisplayFormats(e),this.chart.update()}},created(){this.$dataTracker(this.id,this.onMsgInput,this.onLoad)},mounted(){var S,E;const e=this.$refs.chart,t={};this.props.xAxisType!=="radial"?(this.props.xAxisProperty&&this.props.xAxisPropertyType==="property"&&(t.xAxisKey=this.props.xAxisProperty),this.props.categoryType!=="json"&&this.props.yAxisProperty&&(t.yAxisKey=this.props.yAxisProperty)):t.key=this.props.yAxisProperty||"y";let r=!1;this.props.stackSeries===!0&&this.props.chartType==="bar"&&(r=!0);let a=Chart.defaults.color,o=Chart.defaults.borderColor;(S=this.props)!=null&&S.textColor&&this.props.textColorDefault!==void 0&&this.props.textColorDefault===!1&&(a=this.props.textColor[0]),(E=this.props)!=null&&E.gridColor&&this.props.gridColorDefault!==void 0&&this.props.gridColorDefault===!1&&(o=this.props.gridColor[0]);const u={title:{display:!!this.props.yAxisLabel,text:this.props.yAxisLabel,color:a},ticks:{color:a},grid:{color:o},border:{color:o},stacked:r};Object.hasOwn(this.props,"ymin")&&this.props.ymin!==""&&(u.min=parseFloat(this.props.ymin)),Object.hasOwn(this.props,"ymax")&&this.props.ymax!==""&&(u.max=parseFloat(this.props.ymax));const d={};this.props.xAxisType!=="radial"&&(d.x={type:this.props.xAxisType||"linear",title:{display:!!this.props.xAxisLabel,text:this.props.xAxisLabel,color:a},time:{displayFormats:this.getXDisplayFormats(this.props.xAxisFormatType)},ticks:{color:a},grid:{color:o},border:{color:o},stacked:r},d.y=u);let f=this.props.showLegend;this.props.categoryType==="none"&&(f=!1);const g={type:this.props.chartType,data:{labels:[],datasets:[]},options:{animation:!1,maintainAspectRatio:!1,borderJoinStyle:"round",scales:d,plugins:{title:{display:!0,text:this.props.label,color:a},legend:{display:f,labels:{color:a}}},parsing:t}},_=new Chart(e,g);this.chart=shallowRef(_)},methods:{getLabel(e,t){return this.props.categoryType!=="property"?t:(t&&t.split(".").forEach(a=>{e&&(e=e[a])}),e)},onLoad(e){e&&e.length>0&&(this.clear(),this.onMsgInput(e))},onMsgInput(e){Array.isArray(e.payload)&&!e.payload.length?this.clear(
|
|||
|
`+We),oe&&(We=stringReplace(We,F," "),We=stringReplace(We,B," "),We=stringReplace(We,V," ")),O&&ae?O.createHTML(We):We},t.setConfig=function(Le){at(Le),pe=!0},t.clearConfig=function(){Je=null,pe=!1},t.isValidAttribute=function(Le,se,xe){Je||at({});const we=Ue(Le),Ge=Ue(se);return st(we,Ge,xe)},t.addHook=function(Le,se){typeof se=="function"&&(L[Le]=L[Le]||[],arrayPush(L[Le],se))},t.removeHook=function(Le){if(L[Le])return arrayPop(L[Le])},t.removeHooks=function(Le){L[Le]&&(L[Le]=[])},t.removeAllHooks=function(){L={}},t}var purify=createDOMPurify(),commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function deepFreeze(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const r=e[t],a=typeof r;(a==="object"||a==="function")&&!Object.isFrozen(r)&&deepFreeze(r)}),e}class Response{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function escapeHTML(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function inherit$1(e,...t){const r=Object.create(null);for(const a in e)r[a]=e[a];return t.forEach(function(a){for(const o in a)r[o]=a[o]}),r}const SPAN_CLOSE="</span>",emitsWrappingTags=e=>!!e.scope,scopeToCSSClass=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const r=e.split(".");return[`${t}${r.shift()}`,...r.map((a,o)=>`${a}${"_".repeat(o+1)}`)].join(" ")}return`${t}${e}`};class HTMLRenderer{constructor(t,r){this.buffer="",this.classPrefix=r.classPrefix,t.walk(this)}addText(t){this.buffer+=escapeHTML(t)}openNode(t){if(!emitsWrappingTags(t))return;const r=scopeToCSSClass(t.scope,{prefix:this.classPrefix});this.span(r)}closeNode(t){emitsWrappingTags(t)&&(this.buffer+=SPAN_CLOSE)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const newNode=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class TokenTree{constructor(){this.rootNode=newNode(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const r=newNode({scope:t});this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,r){return typeof r=="string"?t.addText(r):r.children&&(t.openNode(r),r.children.forEach(a=>this._walk(t,a)),t.closeNode(r)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(r=>typeof r=="string")?t.children=[t.children.join("")]:t.children.forEach(r=>{TokenTree._collapse(r)}))}}class TokenTreeEmitter extends TokenTree{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,r){const a=t.root;r&&(a.scope=`language:${r}`),this.add(a)}toHTML(){return new HTMLRenderer(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function source(e){return e?typeof e=="string"?e:e.source:null}function lookahead(e){return concat("(?=",e,")")}function anyNumberOfTimes(e){return concat("(?:",e,")*")}function optional(e){return concat("(?:",e,")?")}function concat(...e){return e.map(r=>source(r)).join("")}function stripOptionsFromArgs(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function either(...e){return"("+(stripOptionsFromArgs(e).capture?"":"?:")+e.map(a=>source(a)).join("|")+")"}function countMatchGroups(e){return new RegExp(e.toString()+"|").exec("").length-1}function startsWi
|
|||
|
https://github.com/highlightjs/highlight.js/issues/2277`),J=G,Z=Y),Q===void 0&&(Q=!0);const te={code:Z,language:J};W("before:highlight",te);const fe=te.result?te.result:E(te.language,te.code,Q);return fe.code=te.code,W("after:highlight",fe),fe}function E(G,Y,Q,Z){const J=Object.create(null);function te(le,Te){return le.keywords[Te]}function fe(){if(!he.keywords){Se.addText(ge);return}let le=0;he.keywordPatternRe.lastIndex=0;let Te=he.keywordPatternRe.exec(ge),Ne="";for(;Te;){Ne+=ge.substring(le,Te.index);const Me=ae.case_insensitive?Te[0].toLowerCase():Te[0],Fe=te(he,Me);if(Fe){const[Ve,$e]=Fe;if(Se.addText(Ne),Ne="",J[Me]=(J[Me]||0)+1,J[Me]<=MAX_KEYWORD_HITS&&(Oe+=$e),Ve.startsWith("_"))Ne+=Te[0];else{const Ke=ae.classNameAliases[Ve]||Ve;ie(Te[0],Ke)}}else Ne+=Te[0];le=he.keywordPatternRe.lastIndex,Te=he.keywordPatternRe.exec(ge)}Ne+=ge.substring(le),Se.addText(Ne)}function ve(){if(ge==="")return;let le=null;if(typeof he.subLanguage=="string"){if(!t[he.subLanguage]){Se.addText(ge);return}le=E(he.subLanguage,ge,!0,Ce[he.subLanguage]),Ce[he.subLanguage]=le._top}else le=b(ge,he.subLanguage.length?he.subLanguage:null);he.relevance>0&&(Oe+=le.relevance),Se.__addSublanguage(le._emitter,le.language)}function ue(){he.subLanguage!=null?ve():fe(),ge=""}function ie(le,Te){le!==""&&(Se.startScope(Te),Se.addText(le),Se.endScope())}function ee(le,Te){let Ne=1;const Me=Te.length-1;for(;Ne<=Me;){if(!le._emit[Ne]){Ne++;continue}const Fe=ae.classNameAliases[le[Ne]]||le[Ne],Ve=Te[Ne];Fe?ie(Ve,Fe):(ge=Ve,fe(),ge=""),Ne++}}function de(le,Te){return le.scope&&typeof le.scope=="string"&&Se.openNode(ae.classNameAliases[le.scope]||le.scope),le.beginScope&&(le.beginScope._wrap?(ie(ge,ae.classNameAliases[le.beginScope._wrap]||le.beginScope._wrap),ge=""):le.beginScope._multi&&(ee(le.beginScope,Te),ge="")),he=Object.create(le,{parent:{value:he}}),he}function me(le,Te,Ne){let Me=startsWith(le.endRe,Ne);if(Me){if(le["on:end"]){const Fe=new Response(le);le["on:end"](Te,Fe),Fe.isMatchIgnored&&(Me=!1)}if(Me){for(;le.endsParent&&le.parent;)le=le.parent;return le}}if(le.endsWithParent)return me(le.parent,Te,Ne)}function oe(le){return he.matcher.regexIndex===0?(ge+=le[0],1):(ke=!0,0)}function Ee(le){const Te=le[0],Ne=le.rule,Me=new Response(Ne),Fe=[Ne.__beforeBegin,Ne["on:begin"]];for(const Ve of Fe)if(Ve&&(Ve(le,Me),Me.isMatchIgnored))return oe(Te);return Ne.skip?ge+=Te:(Ne.excludeBegin&&(ge+=Te),ue(),!Ne.returnBegin&&!Ne.excludeBegin&&(ge=Te)),de(Ne,le),Ne.returnBegin?0:Te.length}function pe(le){const Te=le[0],Ne=Y.substring(le.index),Me=me(he,le,Ne);if(!Me)return NO_MATCH;const Fe=he;he.endScope&&he.endScope._wrap?(ue(),ie(Te,he.endScope._wrap)):he.endScope&&he.endScope._multi?(ue(),ee(he.endScope,le)):Fe.skip?ge+=Te:(Fe.returnEnd||Fe.excludeEnd||(ge+=Te),ue(),Fe.excludeEnd&&(ge=Te));do he.scope&&Se.closeNode(),!he.skip&&!he.subLanguage&&(Oe+=he.relevance),he=he.parent;while(he!==Me.parent);return Me.starts&&de(Me.starts,le),Fe.returnEnd?0:Te.length}function z(){const le=[];for(let Te=he;Te!==ae;Te=Te.parent)Te.scope&&le.unshift(Te.scope);le.forEach(Te=>Se.openNode(Te))}let j={};function ne(le,Te){const Ne=Te&&Te[0];if(ge+=le,Ne==null)return ue(),0;if(j.type==="begin"&&Te.type==="end"&&j.index===Te.index&&Ne===""){if(ge+=Y.slice(Te.index,Te.index+1),!o){const Me=new Error(`0 width match regex (${G})`);throw Me.languageName=G,Me.badRule=j.rule,Me}return 1}if(j=Te,Te.type==="begin")return Ee(Te);if(Te.type==="illegal"&&!Q){const Me=new Error('Illegal lexeme "'+Ne+'" for mode "'+(he.scope||"<unnamed>")+'"');throw Me.mode=he,Me}else if(Te.type==="end"){const Me=pe(Te);if(Me!==NO_MATCH)return Me}if(Te.type==="illegal"&&Ne==="")return 1;if(Re>1e5&&Re>Te.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ge+=Ne,Ne.length}const ae=P(G);if(!ae)throw error(u.replace("{}",G)),new Error('Unknown language: "'+G+'"');const ce=compileLanguage(ae);let ye="",he=Z||ce;const Ce={},Se=new f.__emitter(f);z();let ge="",Oe=0,De=0,Re=0,ke=!1;try{if(ae.__emitTokens)ae.__emitTokens(Y,Se);else{for(he.matcher.considerAll();;){Re++,ke?ke=!1
|
|||
|
`},y]}}return kotlin_1=o,kotlin_1}var lasso_1,hasRequiredLasso;function requireLasso(){if(hasRequiredLasso)return lasso_1;hasRequiredLasso=1;function e(t){const r="[a-zA-Z_][\\w.]*",a="<\\?(lasso(script)?|=)",o="\\]|\\?>",u={$pattern:r+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},d=t.COMMENT("<!--","-->",{relevance:0}),f={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[d]}},g={className:"meta",begin:"\\[/noprocess|"+a},_={className:"symbol",begin:"'"+r+"'"},S=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.inherit(t.C_NUMBER_MODE,{begin:t.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[_]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[t.inherit(t.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:u,contains:[{className:"meta",begin:o,relevance:0,starts:{end:"\\[|"+a,returnEnd:!0,relevance:0,contains:[d]}},f,g,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:u,contains:[{className:"meta",begin:o,relevance:0,starts:{end:"\\[noprocess\\]|"+a,returnEnd:!0,contains:[d]}},f,g].concat(S)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(S)}}return lasso_1=e,lasso_1}var latex_1,hasRequiredLatex;function requireLatex(){if(hasRequiredLatex)return latex_1;hasRequiredLatex=1;function e(t){const a=t.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|
|
|||
|
]`,y={scope:"string",variants:[S,_,E,v]},T={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},C=["false","null","true"],R=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],A=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],x={keyword:R,literal:(U=>{const W=[];return U.forEach(K=>{W.push(K),K.toLowerCase()===K?W.push(K.toUpperCase()):W.push(K.toLowerCase())}),W})(C),built_in:A},N=U=>U.map(W=>W.replace(/\|\d+$/,"")),I={variants:[{match:[/new/,r.concat(b,"+"),r.concat("(?!",N(A).join("\\b|"),"\\b)"),u],scope:{1:"keyword",4:"title.class"}}]},k=r.concat(o,"\\b(?!\\()"),D={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),k],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[u,r.concat(/::/,r.lookahead(/(?!class\b)/)),k],scope:{1:"title.class",3:"variable.constant"}},{match:[u,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[u,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},P={scope:"attr",match:r.concat(o,r.lookahead(":"),r.lookahead(/(?!::)/))},L={relevance:0,begin:/\(/,end:/\)/,keywords:x,contains:[P,d,D,t.C_BLOCK_COMMENT_MODE,y,T,I]},F={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",N(R).join("\\b|"),"|",N(A).join("\\b|"),"\\b)"),o,r.concat(b,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[L]};L.contains.push(F);const B=[P,D,t.C_BLOCK_COMMENT_MODE,y,T,I],V={begin:r.concat(/#\[\s*/,u),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:C,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:C,keyword:["new","array"]},contains:["self",...B]},...B,{s
|
|||
|
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return smali_1=e,smali_1}var smalltalk_1,hasRequiredSmalltalk;function requireSmalltalk(){if(hasRequiredSmalltalk)return smalltalk_1;hasRequiredSmalltalk=1;function e(t){const r="[a-z][a-zA-Z0-9_]*",a={className:"string",begin:"\\$.{1}"},o={className:"symbol",begin:"#"+t.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[t.COMMENT('"','"'),t.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},t.C_NUMBER_MODE,o,a,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[t.APOS_STRING_MODE,a,t.C_NUMBER_MODE,o]}]}}return smalltalk_1=e,smalltalk_1}var sml_1,hasRequiredSml;function requireSml(){if(hasRequiredSml)return sml_1;hasRequiredSml=1;function e(t){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return sml_1=e,sml_1}var sqf_1,hasRequiredSqf;function requireSqf(){if(hasRequiredSqf)return sqf_1;hasRequiredSqf=1;function e(t){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},a={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},o={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},u=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],d=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],f=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPubl
|
|||
|
]*?"'`},{begin:`"[^\r
|
|||
|
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},t.COMMENT("^[ ]*\\*.*$",!1),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}return stata_1=e,stata_1}var step21_1,hasRequiredStep21;function requireStep21(){if(hasRequiredStep21)return step21_1;hasRequiredStep21=1;function e(t){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*!","\\*/"),t.C_NUMBER_MODE,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return step21_1=e,step21_1}var stylus_1,hasRequiredStylus;function requireStylus(){if(hasRequiredStylus)return stylus_1;hasRequiredStylus=1;const e=f=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:f.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:f.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop"
|
|||
|
(multipart)?`,end:`\\]
|
|||
|
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return subunit_1=e,subunit_1}var swift_1,hasRequiredSwift;function requireSwift(){if(hasRequiredSwift)return swift_1;hasRequiredSwift=1;function e(D){return D?typeof D=="string"?D:D.source:null}function t(D){return r("(?=",D,")")}function r(...D){return D.map(L=>e(L)).join("")}function a(D){const P=D[D.length-1];return typeof P=="object"&&P.constructor===Object?(D.splice(D.length-1,1),P):{}}function o(...D){return"("+(a(D).capture?"":"?:")+D.map(F=>e(F)).join("|")+")"}const u=D=>r(/\b/,D,/\w$/.test(D)?/\b/:/\B/),d=["Protocol","Type"].map(u),f=["init","self"].map(u),g=["Any","Self"],_=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],S=["false","nil","true"],E=["assignment","associativity","higherThan","left","lowerThan","none","right"],v=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],b=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],y=o(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),T=o(y,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),C=r(y,T,"*"),R=o(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),A=o(R,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),O=r(R,A,"*"),x=r(/[A-Z]/,A,"*"),N=["autoclosure",r(/convention\(/,o("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,O,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicat
|
|||
|
`).map(o=>{const u=o.match(/^\s+/);if(u===null)return o;const[d]=u;return d.length>=a.length?o.slice(a.length):o}).join(`
|
|||
|
`)}class Tokenizer{constructor(t){this.options=t||defaults}space(t){const r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){const r=this.rules.block.code.exec(t);if(r){const a=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?a:rtrim(a,`
|
|||
|
`)}}}fences(t){const r=this.rules.block.fences.exec(t);if(r){const a=r[0],o=indentCodeCompensation(a,r[3]||"");return{type:"code",raw:a,lang:r[2]?r[2].trim().replace(this.rules.inline._escapes,"$1"):r[2],text:o}}}heading(t){const r=this.rules.block.heading.exec(t);if(r){let a=r[2].trim();if(/#$/.test(a)){const o=rtrim(a,"#");(this.options.pedantic||!o||/ $/.test(o))&&(a=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(t){const r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:r[0]}}blockquote(t){const r=this.rules.block.blockquote.exec(t);if(r){const a=r[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const u=this.lexer.blockTokens(a);return this.lexer.state.top=o,{type:"blockquote",raw:r[0],tokens:u,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let a,o,u,d,f,g,_,S,E,v,b,y,T=r[1].trim();const C=T.length>1,R={type:"list",raw:"",ordered:C,start:C?+T.slice(0,-1):"",loose:!1,items:[]};T=C?`\\d{1,9}\\${T.slice(-1)}`:`\\${T}`,this.options.pedantic&&(T=C?T:"[*+-]");const A=new RegExp(`^( {0,3}${T})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(y=!1,!(!(r=A.exec(t))||this.rules.block.hr.test(t)));){if(a=r[0],t=t.substring(a.length),S=r[2].split(`
|
|||
|
`,1)[0].replace(/^\t+/,x=>" ".repeat(3*x.length)),E=t.split(`
|
|||
|
`,1)[0],this.options.pedantic?(d=2,b=S.trimLeft()):(d=r[2].search(/[^ ]/),d=d>4?1:d,b=S.slice(d),d+=r[1].length),g=!1,!S&&/^ *$/.test(E)&&(a+=E+`
|
|||
|
`,t=t.substring(E.length+1),y=!0),!y){const x=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),N=new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),I=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),k=new RegExp(`^ {0,${Math.min(3,d-1)}}#`);for(;t&&(v=t.split(`
|
|||
|
`,1)[0],E=v,this.options.pedantic&&(E=E.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(I.test(E)||k.test(E)||x.test(E)||N.test(t)));){if(E.search(/[^ ]/)>=d||!E.trim())b+=`
|
|||
|
`+E.slice(d);else{if(g||S.search(/[^ ]/)>=4||I.test(S)||k.test(S)||N.test(S))break;b+=`
|
|||
|
`+E}!g&&!E.trim()&&(g=!0),a+=v+`
|
|||
|
`,t=t.substring(v.length+1),S=E.slice(d)}}R.loose||(_?R.loose=!0:/\n *\n *$/.test(a)&&(_=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(b),o&&(u=o[0]!=="[ ] ",b=b.replace(/^\[[ xX]\] +/,""))),R.items.push({type:"list_item",raw:a,task:!!o,checked:u,loose:!1,text:b}),R.raw+=a}R.items[R.items.length-1].raw=a.trimRight(),R.items[R.items.length-1].text=b.trimRight(),R.raw=R.raw.trimRight();const O=R.items.length;for(f=0;f<O;f++)if(this.lexer.state.top=!1,R.items[f].tokens=this.lexer.blockTokens(R.items[f].text,[]),!R.loose){const x=R.items[f].tokens.filter(I=>I.type==="space"),N=x.length>0&&x.some(I=>/\n.*\n/.test(I.raw));R.loose=N}if(R.loose)for(f=0;f<O;f++)R.items[f].loose=!0;return R}}html(t){const r=this.rules.block.html.exec(t);if(r){const a={type:"html",raw:r[0],pre:!this.options.sanitizer&&(r[1]==="pre"||r[1]==="script"||r[1]==="style"),text:r[0]};if(this.options.sanitize){const o=this.options.sanitizer?this.options.sanitizer(r[0]):escape$1(r[0]);a.type="paragraph",a.text=o,a.tokens=this.lexer.inline(o)}return a}}def(t){const r=this.rules.block.def.exec(t);if(r){const a=r[1].toLowerCase().replace(/\s+/g," "),o=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",u=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline._escapes,"$1"):r[3];return{type:"def",tag:a,raw:r[0],href:o,title:u}}}table(t){const r=this.rules.block.table.exec(t);if(r){const a={type:"table",header:splitCells(r[1]).map(o=>({text:o})),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
|
|||
|
`):[]};if(a.header.length===a.align.length){a.raw=r[0];let o=a.align.length,u,d,f,g;for(u=0;u<o;u++)/^ *-+: *$/.test(a.align[u])?a.align[u]="right":/^ *:-+: *$/.test(a.align[u])?a.align[u]="center":/^ *:-+ *$/.test(a.align[u])?a.align[u]="left":a.align[u]=null;for(o=a.rows.length,u=0;u<o;u++)a.rows[u]=splitCells(a.rows[u],a.header.length).map(_=>({text:_}));for(o=a.header.length,d=0;d<o;d++)a.header[d].tokens=this.lexer.inline(a.header[d].text);for(o=a.rows.length,d=0;d<o;d++)for(g=a.rows[d],f=0;f<g.length;f++)g[f].tokens=this.lexer.inline(g[f].text);return a}}}lheading(t){const r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){const r=this.rules.block.paragraph.exec(t);if(r){const a=r[1].charAt(r[1].length-1)===`
|
|||
|
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:a,tokens:this.lexer.inline(a)}}}text(t){const r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){const r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:escape$1(r[1])}}tag(t){const r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):escape$1(r[0]):r[0]}}link(t){const r=this.rules.inline.link.exec(t);if(r){const a=r[2].trim();if(!this.options.pedantic&&/^</.test(a)){if(!/>$/.test(a))return;const d=rtrim(a.slice(0,-1),"\\");if((a.length-d.length)%2===0)return}else{const d=findClosingBracket(r[2],"()");if(d>-1){const g=(r[0].indexOf("!")===0?5:4)+r[1].length+d;r[2]=r[2].substring(0,d),r[0]=r[0].substring(0,g).trim(),r[3]=""}}let o=r[2],u="";if(this.options.pedantic){const d=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);d&&(o=d[1],u=d[3])}else u=r[3]?r[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(a)?o=o.slice(1):o=o.slice(1,-1)),outputLink(r,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:u&&u.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(t,r){let a;if((a=this.rules.inline.reflink.exec(t))||(a=this.rules.inline.nolink.exec(t))){let o=(a[2]||a[1]).replace(/\s+/g," ");if(o=r[o.toLowerCase()],!o){const u=a[0].charAt(0);return{type:"text",raw:u,text:u}}return outputLink(a,o,a[0],this.lexer)}}emStrong(t,r,a=""){let o=this.rules.inline.emStrong.lDelim.exec(t);if(!o||o[3]&&a.match(/[\p{L}\p{N}]/u))return;const u=o[1]||o[2]||"";if(!u||u&&(a===""||this.rules.inline.punctuation.exec(a))){const d=o[0].length-1;let f,g,_=d,S=0;const E=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(E.lastIndex=0,r=r.slice(-1*t.length+d);(o=E.exec(r))!=null;){if(f=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!f)continue;if(g=f.length,o[3]||o[4]){_+=g;continue}else if((o[5]||o[6])&&d%3&&!((d+g)%3)){S+=g;continue}if(_-=g,_>0)continue;g=Math.min(g,g+_+S);const v=t.slice(0,d+o.index+(o[0].length-f.length)+g);if(Math.min(d,g)%2){const y=v.slice(1,-1);return{type:"em",raw:v,text:y,tokens:this.lexer.inlineTokens(y)}}const b=v.slice(2,-2);return{type:"strong",raw:v,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(t){const r=this.rules.inline.code.exec(t);if(r){let a=r[2].replace(/\n/g," ");const o=/[^ ]/.test(a),u=/^ /.test(a)&&/ $/.test(a);return o&&u&&(a=a.substring(1,a.length-1)),a=escape$1(a,!0),{type:"codespan",raw:r[0],text:a}}}br(t){const r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){const r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t,r){const a=this.rules.inline.autolink.exec(t);if(a){let o,u;return a[2]==="@"?(o=escape$1(this.options.mangle?r(a[1]):a[1]),u="mailto:"+o):(o=escape$1(a[1]),u=o),{type:"link",raw:a[0],text:o,href:u,tokens:[{type:"text",raw:o,text:o}]}}}url(t,r){let a;if(a=this.rules.inline.url.exec(t)){let o,u;if(a[2]==="@")o=escape$1(this.options.mangle?r(a[0]):a[0]),u="mailto:"+o;else{let d;do d=a[0],a[0]=this.rules.inline._backpedal.exec(a[0])[0];while(d!==a[0]);o=escape$1(a[0]),a[1]==="www."?u="http://"+a[0]:u=a[0]}return{type:"link",raw:a[0],text:o,href:u,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t,r){const a=this.rules.inline.text.exec(t);if(a){let o;return this.lexer.state.inRawBlock?o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):escape$1(a[0]):a[0]:o=escape$1(this.options.smartypants?r(a[0]):a[0]),{type
|
|||
|
]`).replace("lheading",block$1.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const inline$1={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noopTest,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:noopTest,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};inline$1._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";inline$1.punctuation=edit(inline$1.punctuation).replace(/punctuation/g,inline$1._punctuation).getRegex();inline$1.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;inline$1.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;inline$1._comment=edit(block$1._comment).replace("(?:-->|$)","-->").getRegex();inline$1.emStrong.lDelim=edit(inline$1.emStrong.lDelim).replace(/punct/g,inline$1._punctuation).getRegex();inline$1.emStrong.rDelimAst=edit(inline$1.emStrong.rDelimAst,"g").replace(/punct/g,inline$1._punctuation).getRegex();inline$1.emStrong.rDelimUnd=edit(inline$1.emStrong.rDelimUnd,"g").replace(/punct/g,inline$1._punctuation).getRegex();inline$1._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;inline$1._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;inline$1._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;inline$1.autolink=edit(inline$1.autolink).replace("scheme",inline$1._scheme).replace("email",inline$1._email).getRegex();inline$1._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;inline$1.tag=edit(inline$1.tag).replace("comment",inline$1._comment).replace("attribute",inline$1._attribute).getRegex();inline$1._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;inline$1._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;inline$1._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;inline$1.link=edit(inline$1.link).replace("label",inline$1._label).replace("href",inline$1._href).replace("title",inline$1._title).getRegex();inline$1.reflink=edit(inline$1.reflink).replace("label",inline$1._label).replace("ref",block$1._label).getRegex();inline$1.nolink=edit(inline$1.nolink).replace("ref",block$1._label).getRegex();inline$1.reflinkSearch=edit(inline$1.reflinkSearch,"g").replace("reflink",inline$1.reflink).replace("nolink",inline$1.nolink).getRegex();inline$1.normal={...inline$1};inline$1.pedantic={...inline$1.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",inline$1._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",inline$1._label).getRegex()};inline$1.gfm={...inline$1.normal,escape:edit(inline$1.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:
|
|||
|
`),this.blockTokens(t,this.tokens);let r;for(;r=this.inlineQueue.shift();)this.inlineTokens(r.src,r.tokens);return this.tokens}blockTokens(t,r=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(f,g,_)=>g+" ".repeat(_.length));let a,o,u,d;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(f=>(a=f.call({lexer:this},t,r))?(t=t.substring(a.raw.length),r.push(a),!0):!1))){if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length),a.raw.length===1&&r.length>0?r[r.length-1].raw+=`
|
|||
|
`:r.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
|||
|
`+a.raw,o.text+=`
|
|||
|
`+a.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
|||
|
`+a.raw,o.text+=`
|
|||
|
`+a.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title});continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),r.push(a);continue}if(u=t,this.options.extensions&&this.options.extensions.startBlock){let f=1/0;const g=t.slice(1);let _;this.options.extensions.startBlock.forEach(function(S){_=S.call({lexer:this},g),typeof _=="number"&&_>=0&&(f=Math.min(f,_))}),f<1/0&&f>=0&&(u=t.substring(0,f+1))}if(this.state.top&&(a=this.tokenizer.paragraph(u))){o=r[r.length-1],d&&o.type==="paragraph"?(o.raw+=`
|
|||
|
`+a.raw,o.text+=`
|
|||
|
`+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(a),d=u.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length),o=r[r.length-1],o&&o.type==="text"?(o.raw+=`
|
|||
|
`+a.raw,o.text+=`
|
|||
|
`+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(a);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let a,o,u,d=t,f,g,_;if(this.tokens.links){const S=Object.keys(this.tokens.links);if(S.length>0)for(;(f=this.tokenizer.rules.inline.reflinkSearch.exec(d))!=null;)S.includes(f[0].slice(f[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,f.index)+"["+repeatString("a",f[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(f=this.tokenizer.rules.inline.blockSkip.exec(d))!=null;)d=d.slice(0,f.index)+"["+repeatString("a",f[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(f=this.tokenizer.rules.inline.escapedEmSt.exec(d))!=null;)d=d.slice(0,f.index+f[0].length-2)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(g||(_=""),g=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(S=>(a=S.call({lexer:this},t,r))?(t=t.substring(a.raw.length),r.push(a),!0):!1))){if(a=this.tokenizer.escape(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.tag(t)){t=t.substring(a.raw.length),o=r[r.length-1],o&&a.type==="text"&&o.type==="text"?(o.raw+=a.raw,o.text+=a.text):r.push(a);continue}if(a=this.tokenizer.link(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(a.raw.length),o=r[r.length-1],o&&a.type==="text"&&o.type==="text"?(o.raw+=a.raw,o.text+=a.text):r.push(a);continue}if(a=this.tokenizer.emStrong(t,d,_)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.codespan(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.br(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.del(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.autolink(t,mangle)){t=t.substring(a.raw.length),r.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(t,mangle))){t=t.substring(a.raw.length),r.push(a);continue}if(u=t,this.options.extensions&&this.options.extensions.startInline){let S=1/0;const E=t.slice(1);let v;this.options.extensions.startInline.forEach(function(b){v=b.call({lexer:this},E),typeof v=="number"&&v>=0&&(S=Math.min(S,v))}),S<1/0&&S>=0&&(u=t.substring(0,S+1))}if(a=this.tokenizer.inlineText(u,smartypants)){t=t.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(_=a.raw.slice(-1)),g=!0,o=r[r.length-1],o&&o.type==="text"?(o.raw+=a.raw,o.text+=a.text):r.push(a);continue}if(t){const S="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(S);break}else throw new Error(S)}}return r}}class Renderer{constructor(t){this.options=t||defaults}code(t,r,a){const o=(r||"").match(/\S*/)[0];if(this.options.highlight){const u=this.options.highlight(t,o);u!=null&&u!==t&&(a=!0,t=u)}return t=t.replace(/\n$/,"")+`
|
|||
|
`,o?'<pre><code class="'+this.options.langPrefix+escape$1(o)+'">'+(a?t:escape$1(t,!0))+`</code></pre>
|
|||
|
`:"<pre><code>"+(a?t:escape$1(t,!0))+`</code></pre>
|
|||
|
`}blockquote(t){return`<blockquote>
|
|||
|
${t}</blockquote>
|
|||
|
`}html(t){return t}heading(t,r,a,o){if(this.options.headerIds){const u=this.options.headerPrefix+o.slug(a);return`<h${r} id="${u}">${t}</h${r}>
|
|||
|
`}return`<h${r}>${t}</h${r}>
|
|||
|
`}hr(){return this.options.xhtml?`<hr/>
|
|||
|
`:`<hr>
|
|||
|
`}list(t,r,a){const o=r?"ol":"ul",u=r&&a!==1?' start="'+a+'"':"";return"<"+o+u+`>
|
|||
|
`+t+"</"+o+`>
|
|||
|
`}listitem(t){return`<li>${t}</li>
|
|||
|
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return`<p>${t}</p>
|
|||
|
`}table(t,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|||
|
<thead>
|
|||
|
`+t+`</thead>
|
|||
|
`+r+`</table>
|
|||
|
`}tablerow(t){return`<tr>
|
|||
|
${t}</tr>
|
|||
|
`}tablecell(t,r){const a=r.header?"th":"td";return(r.align?`<${a} align="${r.align}">`:`<${a}>`)+t+`</${a}>
|
|||
|
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return`<del>${t}</del>`}link(t,r,a){if(t=cleanUrl(this.options.sanitize,this.options.baseUrl,t),t===null)return a;let o='<a href="'+t+'"';return r&&(o+=' title="'+r+'"'),o+=">"+a+"</a>",o}image(t,r,a){if(t=cleanUrl(this.options.sanitize,this.options.baseUrl,t),t===null)return a;let o=`<img src="${t}" alt="${a}"`;return r&&(o+=` title="${r}"`),o+=this.options.xhtml?"/>":">",o}text(t){return t}}class TextRenderer{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,r,a){return""+a}image(t,r,a){return""+a}br(){return""}}class Slugger{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,r){let a=t,o=0;if(this.seen.hasOwnProperty(a)){o=this.seen[t];do o++,a=t+"-"+o;while(this.seen.hasOwnProperty(a))}return r||(this.seen[t]=o,this.seen[a]=0),a}slug(t,r={}){const a=this.serialize(t);return this.getNextSafeSlug(a,r.dryrun)}}let Parser$1=class _t{constructor(t){this.options=t||defaults,this.options.renderer=this.options.renderer||new Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new TextRenderer,this.slugger=new Slugger}static parse(t,r){return new _t(r).parse(t)}static parseInline(t,r){return new _t(r).parseInline(t)}parse(t,r=!0){let a="",o,u,d,f,g,_,S,E,v,b,y,T,C,R,A,O,x,N,I;const k=t.length;for(o=0;o<k;o++){if(b=t[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[b.type]&&(I=this.options.extensions.renderers[b.type].call({parser:this},b),I!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(b.type))){a+=I||"";continue}switch(b.type){case"space":continue;case"hr":{a+=this.renderer.hr();continue}case"heading":{a+=this.renderer.heading(this.parseInline(b.tokens),b.depth,unescape$1(this.parseInline(b.tokens,this.textRenderer)),this.slugger);continue}case"code":{a+=this.renderer.code(b.text,b.lang,b.escaped);continue}case"table":{for(E="",S="",f=b.header.length,u=0;u<f;u++)S+=this.renderer.tablecell(this.parseInline(b.header[u].tokens),{header:!0,align:b.align[u]});for(E+=this.renderer.tablerow(S),v="",f=b.rows.length,u=0;u<f;u++){for(_=b.rows[u],S="",g=_.length,d=0;d<g;d++)S+=this.renderer.tablecell(this.parseInline(_[d].tokens),{header:!1,align:b.align[d]});v+=this.renderer.tablerow(S)}a+=this.renderer.table(E,v);continue}case"blockquote":{v=this.parse(b.tokens),a+=this.renderer.blockquote(v);continue}case"list":{for(y=b.ordered,T=b.start,C=b.loose,f=b.items.length,v="",u=0;u<f;u++)A=b.items[u],O=A.checked,x=A.task,R="",A.task&&(N=this.renderer.checkbox(O),C?A.tokens.length>0&&A.tokens[0].type==="paragraph"?(A.tokens[0].text=N+" "+A.tokens[0].text,A.tokens[0].tokens&&A.tokens[0].tokens.length>0&&A.tokens[0].tokens[0].type==="text"&&(A.tokens[0].tokens[0].text=N+" "+A.tokens[0].tokens[0].text)):A.tokens.unshift({type:"text",text:N}):R+=N),R+=this.parse(A.tokens,C),v+=this.renderer.listitem(R,x,O);a+=this.renderer.list(v,y,T);continue}case"html":{a+=this.renderer.html(b.text);continue}case"paragraph":{a+=this.renderer.paragraph(this.parseInline(b.tokens));continue}case"text":{for(v=b.tokens?this.parseInline(b.tokens):b.text;o+1<k&&t[o+1].type==="text";)b=t[++o],v+=`
|
|||
|
`+(b.tokens?this.parseInline(b.tokens):b.text);a+=r?this.renderer.paragraph(v):v;continue}default:{const D='Token with "'+b.type+'" type was not found.';if(this.options.silent){console.error(D);return}else throw new Error(D)}}}return a}parseInline(t,r){r=r||this.renderer;let a="",o,u,d;const f=t.length;for(o=0;o<f;o++){if(u=t[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(d=this.options.extensions.renderers[u.type].call({parser:this},u),d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(u.type))){a+=d||"";continue}switch(u.type){case"escape":{a+=r.text(u.text);break}case"html":{a+=r.html(u.text);break}case"link":{a+=r.link(u.href,u.title,this.parseInline(u.tokens,r));break}case"image":{a+=r.image(u.href,u.title,u.text);break}case"strong":{a+=r.strong(this.parseInline(u.tokens,r));break}case"em":{a+=r.em(this.parseInline(u.tokens,r));break}case"codespan":{a+=r.codespan(u.text);break}case"br":{a+=r.br();break}case"del":{a+=r.del(this.parseInline(u.tokens,r));break}case"text":{a+=r.text(u.text);break}default:{const g='Token with "'+u.type+'" type was not found.';if(this.options.silent){console.error(g);return}else throw new Error(g)}}}return a}};class Hooks{constructor(t){this.options=t||defaults}preprocess(t){return t}postprocess(t){return t}}Ie(Hooks,"passThroughHooks",new Set(["preprocess","postprocess"]));function onError(e,t,r){return a=>{if(a.message+=`
|
|||
|
Please report this to https://github.com/markedjs/marked.`,e){const o="<p>An error occurred:</p><pre>"+escape$1(a.message+"",!0)+"</pre>";if(t)return Promise.resolve(o);if(r){r(null,o);return}return o}if(t)return Promise.reject(a);if(r){r(a);return}throw a}}function parseMarkdown(e,t){return(r,a,o)=>{typeof a=="function"&&(o=a,a=null);const u={...a};a={...marked.defaults,...u};const d=onError(a.silent,a.async,o);if(typeof r>"u"||r===null)return d(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return d(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(checkSanitizeDeprecation(a),a.hooks&&(a.hooks.options=a),o){const f=a.highlight;let g;try{a.hooks&&(r=a.hooks.preprocess(r)),g=e(r,a)}catch(E){return d(E)}const _=function(E){let v;if(!E)try{a.walkTokens&&marked.walkTokens(g,a.walkTokens),v=t(g,a),a.hooks&&(v=a.hooks.postprocess(v))}catch(b){E=b}return a.highlight=f,E?d(E):o(null,v)};if(!f||f.length<3||(delete a.highlight,!g.length))return _();let S=0;marked.walkTokens(g,function(E){E.type==="code"&&(S++,setTimeout(()=>{f(E.text,E.lang,function(v,b){if(v)return _(v);b!=null&&b!==E.text&&(E.text=b,E.escaped=!0),S--,S===0&&_()})},0))}),S===0&&_();return}if(a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(r):r).then(f=>e(f,a)).then(f=>a.walkTokens?Promise.all(marked.walkTokens(f,a.walkTokens)).then(()=>f):f).then(f=>t(f,a)).then(f=>a.hooks?a.hooks.postprocess(f):f).catch(d);try{a.hooks&&(r=a.hooks.preprocess(r));const f=e(r,a);a.walkTokens&&marked.walkTokens(f,a.walkTokens);let g=t(f,a);return a.hooks&&(g=a.hooks.postprocess(g)),g}catch(f){return d(f)}}}function marked(e,t,r){return parseMarkdown(Lexer.lex,Parser$1.parse)(e,t,r)}marked.options=marked.setOptions=function(e){return marked.defaults={...marked.defaults,...e},changeDefaults(marked.defaults),marked};marked.getDefaults=getDefaults;marked.defaults=defaults;marked.use=function(...e){const t=marked.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(r=>{const a={...r};if(a.async=marked.defaults.async||a.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const u=t.renderers[o.name];u?t.renderers[o.name]=function(...d){let f=o.renderer.apply(this,d);return f===!1&&(f=u.apply(this,d)),f}:t.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[o.level]?t[o.level].unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),a.extensions=t),r.renderer){const o=marked.defaults.renderer||new Renderer;for(const u in r.renderer){const d=o[u];o[u]=(...f)=>{let g=r.renderer[u].apply(o,f);return g===!1&&(g=d.apply(o,f)),g}}a.renderer=o}if(r.tokenizer){const o=marked.defaults.tokenizer||new Tokenizer;for(const u in r.tokenizer){const d=o[u];o[u]=(...f)=>{let g=r.tokenizer[u].apply(o,f);return g===!1&&(g=d.apply(o,f)),g}}a.tokenizer=o}if(r.hooks){const o=marked.defaults.hooks||new Hooks;for(const u in r.hooks){const d=o[u];Hooks.passThroughHooks.has(u)?o[u]=f=>{if(marked.defaults.async)return Promise.resolve(r.hooks[u].call(o,f)).then(_=>d.call(o,_));const g=r.hooks[u].call(o,f);return d.call(o,g)}:o[u]=(...f)=>{let g=r.hooks[u].apply(o,f);return g===!1&&(g=d.apply(o,f)),g}}a.hooks=o}if(r.walkTokens){const o=marked.defaults.walkTokens;a.walkTokens=function(u){let d=[];return d.push(r.walkTokens.call(this,u)),o&&(d=d.concat(o.call(this,u))),d}}marked.setOptions(a)})};marked.walkTokens=function(e,t){let r=[];for(const a of e)switch(r=r.concat(t.call(marked,a)),a.type){case"table":{for(const o of a.header)r=r.concat(marked.walkTokens(o.tokens,t));for(const o of a.rows)for(const u of o)r=r.concat(marked.walkTokens(u.tokens,t));break}case"list":{r=r.concat(marked.walkTokens(a.items,t));break
|
|||
|
[ ]{`+Math.min.apply(Math,o)+"}","g");a=a.map(function(f){return f.replace(u,`
|
|||
|
`)})}a[0]=a[0].replace(/^\r?\n/,"");var d=a[0];return t.forEach(function(f,g){var _=d.match(/(?:^|\n)( *)$/),S=_?_[1]:"",E=f;typeof f=="string"&&f.includes(`
|
|||
|
`)&&(E=String(f).split(`
|
|||
|
`).map(function(v,b){return b===0?v:""+S+v}).join(`
|
|||
|
`)),d+=E+a[g+1]}),d}var dayjs_min={exports:{}};(function(e,t){(function(r,a){e.exports=a()})(commonjsGlobal,function(){var r=1e3,a=6e4,o=36e5,u="millisecond",d="second",f="minute",g="hour",_="day",S="week",E="month",v="quarter",b="year",y="date",T="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var U=["th","st","nd","rd"],W=V%100;return"["+V+(U[(W-20)%10]||U[W]||U[0])+"]"}},O=function(V,U,W){var K=String(V);return!K||K.length>=U?V:""+Array(U+1-K.length).join(W)+V},x={s:O,z:function(V){var U=-V.utcOffset(),W=Math.abs(U),K=Math.floor(W/60),G=W%60;return(U<=0?"+":"-")+O(K,2,"0")+":"+O(G,2,"0")},m:function V(U,W){if(U.date()<W.date())return-V(W,U);var K=12*(W.year()-U.year())+(W.month()-U.month()),G=U.clone().add(K,E),Y=W-G<0,Q=U.clone().add(K+(Y?-1:1),E);return+(-(K+(W-G)/(Y?G-Q:Q-G))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:E,y:b,w:S,d:_,D:y,h:g,m:f,s:d,ms:u,Q:v}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},N="en",I={};I[N]=A;var k=function(V){return V instanceof F},D=function V(U,W,K){var G;if(!U)return N;if(typeof U=="string"){var Y=U.toLowerCase();I[Y]&&(G=Y),W&&(I[Y]=W,G=Y);var Q=U.split("-");if(!G&&Q.length>1)return V(Q[0])}else{var Z=U.name;I[Z]=U,G=Z}return!K&&G&&(N=G),G||!K&&N},P=function(V,U){if(k(V))return V.clone();var W=typeof U=="object"?U:{};return W.date=V,W.args=arguments,new F(W)},L=x;L.l=D,L.i=k,L.w=function(V,U){return P(V,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var F=function(){function V(W){this.$L=D(W.locale,null,!0),this.parse(W)}var U=V.prototype;return U.parse=function(W){this.$d=function(K){var G=K.date,Y=K.utc;if(G===null)return new Date(NaN);if(L.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var Q=G.match(C);if(Q){var Z=Q[2]-1||0,J=(Q[7]||"0").substring(0,3);return Y?new Date(Date.UTC(Q[1],Z,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,J)):new Date(Q[1],Z,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,J)}}return new Date(G)}(W),this.$x=W.x||{},this.init()},U.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},U.$utils=function(){return L},U.isValid=function(){return this.$d.toString()!==T},U.isSame=function(W,K){var G=P(W);return this.startOf(K)<=G&&G<=this.endOf(K)},U.isAfter=function(W,K){return P(W)<this.startOf(K)},U.isBefore=function(W,K){return this.endOf(K)<P(W)},U.$g=function(W,K,G){return L.u(W)?this[K]:this.set(G,W)},U.unix=function(){return Math.floor(this.valueOf()/1e3)},U.valueOf=function(){return this.$d.getTime()},U.startOf=function(W,K){var G=this,Y=!!L.u(K)||K,Q=L.p(W),Z=function(de,me){var oe=L.w(G.$u?Date.UTC(G.$y,me,de):new Date(G.$y,me,de),G);return Y?oe:oe.endOf(_)},J=function(de,me){return L.w(G.toDate()[de].apply(G.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(me)),G)},te=this.$W,fe=this.$M,ve=this.$D,ue="set"+(this.$u?"UTC":"");switch(Q){case b:return Y?Z(1,0):Z(31,11);case E:return Y?Z(1,fe):Z(0,fe+1);case S:var ie=this.$locale().weekStart||0,ee=(te<ie?te+7:te)-ie;return Z(Y?ve-ee:ve+(6-ee),fe);case _:case y:return J(ue+"Hours",0);case g:return J(ue+"Minutes",1);case f:return J(ue+"Seconds",2);case d:return J(ue+"Milliseconds",3);default:return this.clone()}},U.endOf=function(W){return this.startOf(W,!1)},U.$set=function(W,K){var G,Y=L.p(W),Q="set"+(this.$u?"UTC":""),Z=(G={},G[_]=Q+"Date",G[y]=Q+"Date",G[E]=Q+"Month",G[b]=Q+"FullYear",G[g]=Q+"Hours",G[f]=Q+"Minutes",G[d]=Q+"Seconds",G[u]=Q+"Milliseconds",G)[Y],J=Y===_?this.$D+(K-this.$W):K;if(Y===E||Y===b){var te=this.clone().set(y,1);te.$d[Z](J),te.init(),this.$d=te.set(y,Math.min(thi
|
|||
|
`);for(const[r,{detector:a}]of Object.entries(detectors))if(a(e,t))return r;throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${e}`)},registerLazyLoadedDiagrams=(...e)=>{for(const{id:t,detector:r,loader:a}of e)addDetector(t,r,a)},addDetector=(e,t,r)=>{detectors[e]?log$1.error(`Detector with key ${e} already exists`):detectors[e]={detector:t,loader:r},log$1.debug(`Detector with key ${e} added${r?" with loader":""}`)},getDiagramLoader=e=>detectors[e].loader,assignWithDepth=(e,t,{depth:r=2,clobber:a=!1}={})=>{const o={depth:r,clobber:a};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(u=>assignWithDepth(e,u,o)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(u=>{e.includes(u)||e.push(u)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(u=>{typeof t[u]=="object"&&(e[u]===void 0||typeof e[u]=="object")?(e[u]===void 0&&(e[u]=Array.isArray(t[u])?[]:{}),e[u]=assignWithDepth(e[u],t[u],{depth:r-1,clobber:a})):(a||typeof e[u]!="object"&&typeof t[u]!="object")&&(e[u]=t[u])}),e)},assignWithDepth$1=assignWithDepth,ZERO_WIDTH_SPACE="",d3CurveTypes={curveBasis,curveBasisClosed,curveBasisOpen,curveBumpX:bumpX,curveBumpY:bumpY,curveBundle,curveCardinalClosed,curveCardinalOpen,curveCardinal,curveCatmullRomClosed,curveCatmullRomOpen,curveCatmullRom,curveLinear,curveLinearClosed,curveMonotoneX:monotoneX,curveMonotoneY:monotoneY,curveNatural,curveStep,curveStepAfter:stepAfter,curveStepBefore:stepBefore},directiveWithoutOpen=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,detectInit=function(e,t){const r=detectDirective(e,/(?:init\b)|(?:initialize\b)/);let a={};if(Array.isArray(r)){const u=r.map(d=>d.args);sanitizeDirective(u),a=assignWithDepth$1(a,[...u])}else a=r.args;if(!a)return;let o=detectType(e,t);return["config"].forEach(u=>{a[u]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),a[o]=a[u],delete a[u])}),a},detectDirective=function(e,t=null){try{const r=new RegExp(`[%]{2}(?![{]${directiveWithoutOpen.source})(?=[}][%]{2}).*
|
|||
|
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),log$1.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let a;const o=[];for(;(a=directiveRegex.exec(e))!==null;)if(a.index===directiveRegex.lastIndex&&directiveRegex.lastIndex++,a&&!t||t&&a[1]&&a[1].match(t)||t&&a[2]&&a[2].match(t)){const u=a[1]?a[1]:a[2],d=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:u,args:d})}return o.length===0&&o.push({type:e,args:null}),o.length===1?o[0]:o}catch(r){return log$1.error(`ERROR: ${r.message} - Unable to parse directive
|
|||
|
${t!==null?" type:"+t:""} based on the text:${e}`),{type:null,args:null}}},isSubstringInArray=function(e,t){for(const[r,a]of t.entries())if(a.match(e))return r;return-1};function interpolateToCurve(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return d3CurveTypes[r]||t}function formatUrl(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?dist.sanitizeUrl(r):r}const runFunc=(e,...t)=>{const r=e.split("."),a=r.length-1,o=r[a];let u=window;for(let d=0;d<a;d++)if(u=u[r[d]],!u)return;u[o](...t)};function distance(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function traverseEdge(e){let t,r=0;e.forEach(u=>{r+=distance(u,t),t=u});let a=r/2,o;return t=void 0,e.forEach(u=>{if(t&&!o){const d=distance(u,t);if(d<a)a-=d;else{const f=a/d;f<=0&&(o=t),f>=1&&(o={x:u.x,y:u.y}),f>0&&f<1&&(o={x:(1-f)*t.x+f*u.x,y:(1-f)*t.y+f*u.y})}}t=u}),o}function calcLabelPosition(e){return e.length===1?e[0]:traverseEdge(e)}const calcCardinalityPosition=(e,t,r)=>{let a;log$1.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());let u=25,d;a=void 0,t.forEach(S=>{if(a&&!d){const E=distance(S,a);if(E<u)u-=E;else{const v=u/E;v<=0&&(d=a),v>=1&&(d={x:S.x,y:S.y}),v>0&&v<1&&(d={x:(1-v)*a.x+v*S.x,y:(1-v)*a.y+v*S.y})}}a=S});const f=e?10:5,g=Math.atan2(t[0].y-d.y,t[0].x-d.x),_={x:0,y:0};return _.x=Math.sin(g)*f+(t[0].x+d.x)/2,_.y=-Math.cos(g)*f+(t[0].y+d.y)/2,_};function calcTerminalLabelPosition(e,t,r){let a=JSON.parse(JSON.stringify(r)),o;log$1.info("our points",a),t!=="start_left"&&t!=="start_right"&&(a=a.reverse()),a.forEach(E=>{o=E});let d=25+e,f;o=void 0,a.forEach(E=>{if(o&&!f){const v=distance(E,o);if(v<d)d-=v;else{const b=d/v;b<=0&&(f=o),b>=1&&(f={x:E.x,y:E.y}),b>0&&b<1&&(f={x:(1-b)*o.x+b*E.x,y:(1-b)*o.y+b*E.y})}}o=E});const g=10+e*.5,_=Math.atan2(a[0].y-f.y,a[0].x-f.x),S={x:0,y:0};return S.x=Math.sin(_)*g+(a[0].x+f.x)/2,S.y=-Math.cos(_)*g+(a[0].y+f.y)/2,t==="start_left"&&(S.x=Math.sin(_+Math.PI)*g+(a[0].x+f.x)/2,S.y=-Math.cos(_+Math.PI)*g+(a[0].y+f.y)/2),t==="end_right"&&(S.x=Math.sin(_-Math.PI)*g+(a[0].x+f.x)/2-5,S.y=-Math.cos(_-Math.PI)*g+(a[0].y+f.y)/2-5),t==="end_left"&&(S.x=Math.sin(_)*g+(a[0].x+f.x)/2-5,S.y=-Math.cos(_)*g+(a[0].y+f.y)/2-5),S}function getStylesFromArray(e){let t="",r="";for(const a of e)a!==void 0&&(a.startsWith("color:")||a.startsWith("text-align:")?r=r+a+";":t=t+a+";");return{style:t,labelStyle:r}}let cnt=0;const generateId=()=>(cnt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+cnt);function makeid(e){let t="";const r="0123456789abcdef",a=r.length;for(let o=0;o<e;o++)t+=r.charAt(Math.floor(Math.random()*a));return t}const random=e=>makeid(e.length),getTextObj=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0}},drawSimpleText=function(e,t){const r=t.text.replace(common$1.lineBreakRegex," "),[,a]=parseFontSize(t.fontSize),o=e.append("text");o.attr("x",t.x),o.attr("y",t.y),o.style("text-anchor",t.anchor),o.style("font-family",t.fontFamily),o.style("font-size",a),o.style("font-weight",t.fontWeight),o.attr("fill",t.fill),t.class!==void 0&&o.attr("class",t.class);const u=o.append("tspan");return u.attr("x",t.x+t.textMargin*2),u.attr("fill",t.fill),u.text(r),o},wrapLabel=memoize((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),common$1.lineBreakRegex.test(e)))return e;const a=e.split(" "),o=[];let u="";return a.forEach((d,f)=>{const g=calculateTextWidth(`${d} `,r),_=calculateTextWidth(u,r);if(g>t){const{hyphenatedStrings:v,remainingWord:b}=breakString(d,t,"-",r);o.push(u,...v),u=b}else _+g>=t?(o.push(u),u=d):u=[u,d].filter(Boolean).join(" ");f+1===a.length&&o.push(u)}),o.filter(d=>d!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),breakString=memoize((e,t,r="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);const o=[...e],u=[];let d="";return o.forEach((f,g)=>{const _=`${d}${f}`;if(calculateTextWidth(_,a)>=t){const E=g+1,v=o.length===E,b=`${_}${r
|
|||
|
`);const a=selectSvgElement(t);a.attr("viewBox","0 0 2412 512"),configureSvgSize(a,100,512,!0);const o=a.append("g");o.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"),o.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"),o.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"),o.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"),o.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"),o.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"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},renderer={draw},errorRenderer=renderer,diagram={db:{},renderer,parser:{parser:{yy:{}},parse:()=>{}}},errorDiagram=diagram,id$3="flowchart-elk",detector$3=(e,t)=>{var r;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk")},loader$4=async()=>{const{diagram:e}=await __vitePreload(()=>import("./flowchart-elk-definition-56584a6c-N1aEE1b6.js"),__vite__mapDeps([29,3,7,8,9,10,11]),import.meta.url);return{id:id$3,diagram:e}},plugin$3={id:id$3,detector:detector$3,loader:loader$4},flowchartElk=plugin$3,id$2="timeline",detector$2=e=>/^\s*timeline/.test(e),loader$3=async()=>{const{diagram:e}=await __vitePreload(()=>import("./timeline-definition-1a90b03d-ikWN4tal.js"),[],import.meta.url);return{id:id$2,diagram:e}},plugin$2={id:id$2,detector:detector$2,loader:loader$3},timeline=plugin$2,id$1="mindmap",detector$1=e=>/^\s*mindmap/.test(e),loader$2=async()=>{const{diagram:e}=await __vitePreload(()=>import("./mindmap-definition-57868176-BtpU4SME.js"),__vite__mapDeps([30,8]),import.meta.url);return{id:id$1,diagram:e}},plugin$1={id:id$1,detector:detector$1,loader:loader$2},mindmap=plugin$1,id="sankey",detector=e=>/^\s*sankey-beta/.test(e),loader$1=async()=>{const{diagram:e}=await __vitePreload(()=>import("./sankeyDiagram-a7f8e230-BqJxOJ7I.js"),__vite__mapDeps([31,18,16]),import.meta.url);return{id,diagram:e}},plugin={id,detector,loader:loader$1},sankey=plugin,themes={},getStyles=(e,t,r)=>{let a="";return e in themes&&themes[e]?a=themes[e](r):log$1.warn(`No theme found for ${e}`),` & {
|
|||
|
font-family: ${r.fontFamily};
|
|||
|
font-size: ${r.fontSize};
|
|||
|
fill: ${r.textColor}
|
|||
|
}
|
|||
|
|
|||
|
/* Classes common for multiple diagrams */
|
|||
|
|
|||
|
& .error-icon {
|
|||
|
fill: ${r.errorBkgColor};
|
|||
|
}
|
|||
|
& .error-text {
|
|||
|
fill: ${r.errorTextColor};
|
|||
|
stroke: ${r.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: ${r.lineColor};
|
|||
|
stroke: ${r.lineColor};
|
|||
|
}
|
|||
|
& .marker.cross {
|
|||
|
stroke: ${r.lineColor};
|
|||
|
}
|
|||
|
|
|||
|
& svg {
|
|||
|
font-family: ${r.fontFamily};
|
|||
|
font-size: ${r.fontSize};
|
|||
|
}
|
|||
|
|
|||
|
${a}
|
|||
|
|
|||
|
${t}
|
|||
|
`},addStylesForDiagram=(e,t)=>{t!==void 0&&(themes[e]=t)},getStyles$1=getStyles;let title="",diagramTitle="",description$1="";const sanitizeText$1=e=>sanitizeText$2(e,getConfig$1()),clear=function(){title="",description$1="",diagramTitle=""},setAccTitle=function(e){title=sanitizeText$1(e).replace(/^\s+/g,"")},getAccTitle=function(){return title||diagramTitle},setAccDescription=function(e){description$1=sanitizeText$1(e).replace(/\n\s+/g,`
|
|||
|
`)},getAccDescription=function(){return description$1},setDiagramTitle=function(e){diagramTitle=sanitizeText$1(e)},getDiagramTitle=function(){return diagramTitle},commonDb={getAccTitle,setAccTitle,getDiagramTitle,setDiagramTitle,getAccDescription,setAccDescription,clear},commonDb$1=Object.freeze(Object.defineProperty({__proto__:null,clear,default:commonDb,getAccDescription,getAccTitle,getDiagramTitle,setAccDescription,setAccTitle,setDiagramTitle},Symbol.toStringTag,{value:"Module"}));let currentDirective={};const parseDirective$1=function(e,t,r,a){log$1.debug("parseDirective is being called",t,r,a);try{if(t!==void 0)switch(t=t.trim(),r){case"open_directive":currentDirective={};break;case"type_directive":if(!currentDirective)throw new Error("currentDirective is undefined");currentDirective.type=t.toLowerCase();break;case"arg_directive":if(!currentDirective)throw new Error("currentDirective is undefined");currentDirective.args=JSON.parse(t);break;case"close_directive":handleDirective(e,currentDirective,a),currentDirective=void 0;break}}catch(o){log$1.error(`Error while rendering sequenceDiagram directive: ${t} jison context: ${r}`),log$1.error(o.message)}},handleDirective=function(e,t,r){switch(log$1.info(`Directive type=${t.type} with args:`,t.args),t.type){case"init":case"initialize":{["config"].forEach(a=>{t.args[a]!==void 0&&(r==="flowchart-v2"&&(r="flowchart"),t.args[r]=t.args[a],delete t.args[a])}),addDirective(t.args);break}case"wrap":case"nowrap":e&&e.setWrap&&e.setWrap(t.type==="wrap");break;case"themeCss":log$1.warn("themeCss encountered");break;default:log$1.warn(`Unhandled directive: source: '%%{${t.type}: ${JSON.stringify(t.args?t.args:{})}}%%`,t);break}},log=log$1,setLogLevel=setLogLevel$1,getConfig=getConfig$1,sanitizeText=e=>sanitizeText$2(e,getConfig()),setupGraphViewbox=setupGraphViewbox$1,getCommonDb=()=>commonDb$1,parseDirective=(e,t,r,a)=>parseDirective$1(e,t,r,a),diagrams={},registerDiagram=(e,t,r)=>{if(diagrams[e])throw new Error(`Diagram ${e} already registered.`);diagrams[e]=t,r&&addDetector(e,r),addStylesForDiagram(e,t.styles),t.injectUtils&&t.injectUtils(log,setLogLevel,getConfig,sanitizeText,setupGraphViewbox,getCommonDb(),parseDirective)},getDiagram=e=>{if(e in diagrams)return diagrams[e];throw new DiagramNotFoundError(e)};class DiagramNotFoundError extends Error{constructor(t){super(`Diagram ${t} not found.`)}}let hasLoadedDiagrams=!1;const addDiagrams=()=>{hasLoadedDiagrams||(hasLoadedDiagrams=!0,registerDiagram("error",errorDiagram,e=>e.toLowerCase().trim()==="error"),registerDiagram("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),registerLazyLoadedDiagrams(c4,classDiagramV2,classDiagram,er,gantt,info,pie,requirement,sequence,flowchartElk,flowchartV2,flowchart,mindmap,timeline,git,stateV2,state,journey,quadrantChart,sankey))};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function isNothing(e){return typeof e>"u"||e===null}function isObject$2(e){return typeof e=="object"&&e!==null}function toArray$1(e){return Array.isArray(e)?e:isNothing(e)?[]:[e]}function extend(e,t){var r,a,o,u;if(t)for(u=Object.keys(t),r=0,a=u.length;r<a;r+=1)o=u[r],e[o]=t[o];return e}function repeat(e,t){var r="",a;for(a=0;a<t;a+=1)r+=e;return r}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var isNothing_1=isNothing,isObject_1=isObject$2,toArray_1=toArray$1,repeat_1=repeat,isNegativeZero_1=isNegativeZero,extend_1=extend,common={isNothing:isNothing_1,isObject:isObject_1,toArray:toArray_1,repeat:repeat_1,isNegativeZero:isNegativeZero_1,extend:extend_1};function formatError(e,t){var r="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|||
|
|
|||
|
`+e.mark.snippet),a+" "+r):a}function YAMLException$1(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=formatError(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}YAMLException$1.prototype=Object.create(Error.prototype);YAMLException$1.prototype.constructor=YAMLException$1;YAMLException$1.prototype.toString=function(t){return this.name+": "+formatError(this,t)};var exception=YAMLException$1;function getLine(e,t,r,a,o){var u="",d="",f=Math.floor(o/2)-1;return a-t>f&&(u=" ... ",t=a-f+u.length),r-a>f&&(d=" ...",r=a+f-d.length),{str:u+e.slice(t,r).replace(/\t/g,"→")+d,pos:a-t+u.length}}function padStart$1(e,t){return common.repeat(" ",t-e.length)+e}function makeSnippet(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,a=[0],o=[],u,d=-1;u=r.exec(e.buffer);)o.push(u.index),a.push(u.index+u[0].length),e.position<=u.index&&d<0&&(d=a.length-2);d<0&&(d=a.length-1);var f="",g,_,S=Math.min(e.line+t.linesAfter,o.length).toString().length,E=t.maxLength-(t.indent+S+3);for(g=1;g<=t.linesBefore&&!(d-g<0);g++)_=getLine(e.buffer,a[d-g],o[d-g],e.position-(a[d]-a[d-g]),E),f=common.repeat(" ",t.indent)+padStart$1((e.line-g+1).toString(),S)+" | "+_.str+`
|
|||
|
`+f;for(_=getLine(e.buffer,a[d],o[d],e.position,E),f+=common.repeat(" ",t.indent)+padStart$1((e.line+1).toString(),S)+" | "+_.str+`
|
|||
|
`,f+=common.repeat("-",t.indent+S+3+_.pos)+`^
|
|||
|
`,g=1;g<=t.linesAfter&&!(d+g>=o.length);g++)_=getLine(e.buffer,a[d+g],o[d+g],e.position-(a[d]-a[d+g]),E),f+=common.repeat(" ",t.indent)+padStart$1((e.line+g+1).toString(),S)+" | "+_.str+`
|
|||
|
`;return f.replace(/\n$/,"")}var snippet=makeSnippet,TYPE_CONSTRUCTOR_OPTIONS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],YAML_NODE_KINDS=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(a){t[String(a)]=r})}),t}function Type$1(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(r)===-1)throw new exception('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=compileStyleAliases(t.styleAliases||null),YAML_NODE_KINDS.indexOf(this.kind)===-1)throw new exception('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var type=Type$1;function compileList(e,t){var r=[];return e[t].forEach(function(a){var o=r.length;r.forEach(function(u,d){u.tag===a.tag&&u.kind===a.kind&&u.multi===a.multi&&(o=d)}),r[o]=a}),r}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function a(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(a);return e}function Schema$1(e){return this.extend(e)}Schema$1.prototype.extend=function(t){var r=[],a=[];if(t instanceof type)a.push(t);else if(Array.isArray(t))a=a.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(a=a.concat(t.explicit));else throw new exception("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(u){if(!(u instanceof type))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.loadKind!=="scalar")throw new exception("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(u.multi)throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(u){if(!(u instanceof type))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(Schema$1.prototype);return o.implicit=(this.implicit||[]).concat(r),o.explicit=(this.explicit||[]).concat(a),o.compiledImplicit=compileList(o,"implicit"),o.compiledExplicit=compileList(o,"explicit"),o.compiledTypeMap=compileMap(o.compiledImplicit,o.compiledExplicit),o};var schema=Schema$1,str=new type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),seq=new type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),map$1=new type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),failsafe=new schema({explicit:[str,seq,map$1]});function resolveYamlNull(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}var _null=new type("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function resolveYamlBoolean(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="tr
|
|||
|
\r`;function resolveYamlBinary(e){if(e===null)return!1;var t,r,a=0,o=e.length,u=BASE64_MAP;for(r=0;r<o;r++)if(t=u.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;a+=6}return a%8===0}function constructYamlBinary(e){var t,r,a=e.replace(/[\r\n=]/g,""),o=a.length,u=BASE64_MAP,d=0,f=[];for(t=0;t<o;t++)t%4===0&&t&&(f.push(d>>16&255),f.push(d>>8&255),f.push(d&255)),d=d<<6|u.indexOf(a.charAt(t));return r=o%4*6,r===0?(f.push(d>>16&255),f.push(d>>8&255),f.push(d&255)):r===18?(f.push(d>>10&255),f.push(d>>2&255)):r===12&&f.push(d>>4&255),new Uint8Array(f)}function representYamlBinary(e){var t="",r=0,a,o,u=e.length,d=BASE64_MAP;for(a=0;a<u;a++)a%3===0&&a&&(t+=d[r>>18&63],t+=d[r>>12&63],t+=d[r>>6&63],t+=d[r&63]),r=(r<<8)+e[a];return o=u%3,o===0?(t+=d[r>>18&63],t+=d[r>>12&63],t+=d[r>>6&63],t+=d[r&63]):o===2?(t+=d[r>>10&63],t+=d[r>>4&63],t+=d[r<<2&63],t+=d[64]):o===1&&(t+=d[r>>2&63],t+=d[r<<4&63],t+=d[64],t+=d[64]),t}function isBinary$1(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var binary=new type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary$1,represent:representYamlBinary}),_hasOwnProperty$3=Object.prototype.hasOwnProperty,_toString$2=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return!0;var t=[],r,a,o,u,d,f=e;for(r=0,a=f.length;r<a;r+=1){if(o=f[r],d=!1,_toString$2.call(o)!=="[object Object]")return!1;for(u in o)if(_hasOwnProperty$3.call(o,u))if(!d)d=!0;else return!1;if(!d)return!1;if(t.indexOf(u)===-1)t.push(u);else return!1}return!0}function constructYamlOmap(e){return e!==null?e:[]}var omap=new type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap}),_toString$1=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return!0;var t,r,a,o,u,d=e;for(u=new Array(d.length),t=0,r=d.length;t<r;t+=1){if(a=d[t],_toString$1.call(a)!=="[object Object]"||(o=Object.keys(a),o.length!==1))return!1;u[t]=[o[0],a[o[0]]]}return!0}function constructYamlPairs(e){if(e===null)return[];var t,r,a,o,u,d=e;for(u=new Array(d.length),t=0,r=d.length;t<r;t+=1)a=d[t],o=Object.keys(a),u[t]=[o[0],a[o[0]]];return u}var pairs=new type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs}),_hasOwnProperty$2=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return!0;var t,r=e;for(t in r)if(_hasOwnProperty$2.call(r,t)&&r[t]!==null)return!1;return!0}function constructYamlSet(e){return e!==null?e:{}}var set=new type("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet}),_default=core.extend({implicit:[timestamp,merge],explicit:[binary,omap,pairs,set]}),_hasOwnProperty$1=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/,PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i,PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function escapedHexLen(e){return e===120?2:e===117?4:e===85?8:0}function fromDecimalCode(e){return 48<=e&&e<=57?e-48:-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|||
|
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256);for(var i$2=0;i$2<256;i$2++)simpleEscapeCheck[i$2]=simpleEscapeSequence(i$2)?1:0,simpleEscapeMap[i$2]=simpleEscapeSequence(i$2);function State$1(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||_default,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function generateError(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=snippet(r),new exception(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){e.onWarning&&e.onWarning.call(null,generateError(e,t))}var directiveHandlers={YAML:function(t,r,a){var o,u,d;t.version!==null&&throwError(t,"duplication of %YAML directive"),a.length!==1&&throwError(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),o===null&&throwError(t,"ill-formed argument of the YAML directive"),u=parseInt(o[1],10),d=parseInt(o[2],10),u!==1&&throwError(t,"unacceptable YAML version of the document"),t.version=a[0],t.checkLineBreaks=d<2,d!==1&&d!==2&&throwWarning(t,"unsupported YAML version of the document")},TAG:function(t,r,a){var o,u;a.length!==2&&throwError(t,"TAG directive accepts exactly two arguments"),o=a[0],u=a[1],PATTERN_TAG_HANDLE.test(o)||throwError(t,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty$1.call(t.tagMap,o)&&throwError(t,'there is a previously declared suffix for "'+o+'" tag handle'),PATTERN_TAG_URI.test(u)||throwError(t,"ill-formed tag prefix (second argument) of the TAG directive");try{u=decodeURIComponent(u)}catch{throwError(t,"tag prefix is malformed: "+u)}t.tagMap[o]=u}};function captureSegment(e,t,r,a){var o,u,d,f;if(t<r){if(f=e.input.slice(t,r),a)for(o=0,u=f.length;o<u;o+=1)d=f.charCodeAt(o),d===9||32<=d&&d<=1114111||throwError(e,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(f)&&throwError(e,"the stream contains non-printable characters");e.result+=f}}function mergeMappings(e,t,r,a){var o,u,d,f;for(common.isObject(r)||throwError(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(r),d=0,f=o.length;d<f;d+=1)u=o[d],_hasOwnProperty$1.call(t,u)||(t[u]=r[u],a[u]=!0)}function storeMappingPair(e,t,r,a,o,u,d,f,g){var _,S;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),_=0,S=o.length;_<S;_+=1)Array.isArray(o[_])&&throwError(e,"nested arrays are not supported inside keys"),typeof o=="object"&&_class(o[_])==="[object Object]"&&(o[_]="[object Object]");if(typeof o=="object"&&_class(o)==="[object Object]"&&(o="[object Object]"),o=String(o),t===null&&(t={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(_=0,S=u.length;_<S;_+=1)mergeMappings(e,t,u[_],r);else mergeMappings(e,t,u,r);else!e.json&&!_hasOwnProperty$1.call(r,o)&&_hasOwnProperty$1.call(t,o)&&(e.line=d||e.line,e.lineStart=f||e.lineStart,e.position=g||e.position,throwError(e,"duplicated mapping key")),o==="__proto__"?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:u}):t[o]=u,delete r[o];return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):throwError(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function skipSeparationSpace(e,t,r){for(var a=0,o=e.input.charCodeAt(e.position);o!==0;){for(;is_WHITE_SPACE(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.ch
|
|||
|
`,t-1))}function readPlainScalar(e,t,r){var a,o,u,d,f,g,_,S,E=e.kind,v=e.result,b;if(b=e.input.charCodeAt(e.position),is_WS_OR_EOL(b)||is_FLOW_INDICATOR(b)||b===35||b===38||b===42||b===33||b===124||b===62||b===39||b===34||b===37||b===64||b===96||(b===63||b===45)&&(o=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(o)||r&&is_FLOW_INDICATOR(o)))return!1;for(e.kind="scalar",e.result="",u=d=e.position,f=!1;b!==0;){if(b===58){if(o=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(o)||r&&is_FLOW_INDICATOR(o))break}else if(b===35){if(a=e.input.charCodeAt(e.position-1),is_WS_OR_EOL(a))break}else{if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(b))break;if(is_EOL(b))if(g=e.line,_=e.lineStart,S=e.lineIndent,skipSeparationSpace(e,!1,-1),e.lineIndent>=t){f=!0,b=e.input.charCodeAt(e.position);continue}else{e.position=d,e.line=g,e.lineStart=_,e.lineIndent=S;break}}f&&(captureSegment(e,u,d,!1),writeFoldedLines(e,e.line-g),u=d=e.position,f=!1),is_WHITE_SPACE(b)||(d=e.position+1),b=e.input.charCodeAt(++e.position)}return captureSegment(e,u,d,!1),e.result?!0:(e.kind=E,e.result=v,!1)}function readSingleQuotedScalar(e,t){var r,a,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(captureSegment(e,a,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)a=e.position,e.position++,o=e.position;else return!0;else is_EOL(r)?(captureSegment(e,a,o,!0),writeFoldedLines(e,skipSeparationSpace(e,!1,t)),a=o=e.position):e.position===e.lineStart&&testDocumentSeparator(e)?throwError(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,a,o,u,d,f;if(f=e.input.charCodeAt(e.position),f!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(f=e.input.charCodeAt(e.position))!==0;){if(f===34)return captureSegment(e,r,e.position,!0),e.position++,!0;if(f===92){if(captureSegment(e,r,e.position,!0),f=e.input.charCodeAt(++e.position),is_EOL(f))skipSeparationSpace(e,!1,t);else if(f<256&&simpleEscapeCheck[f])e.result+=simpleEscapeMap[f],e.position++;else if((d=escapedHexLen(f))>0){for(o=d,u=0;o>0;o--)f=e.input.charCodeAt(++e.position),(d=fromHexCode(f))>=0?u=(u<<4)+d:throwError(e,"expected hexadecimal character");e.result+=charFromCodepoint(u),e.position++}else throwError(e,"unknown escape sequence");r=a=e.position}else is_EOL(f)?(captureSegment(e,r,a,!0),writeFoldedLines(e,skipSeparationSpace(e,!1,t)),r=a=e.position):e.position===e.lineStart&&testDocumentSeparator(e)?throwError(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=!0,a,o,u,d=e.tag,f,g=e.anchor,_,S,E,v,b,y=Object.create(null),T,C,R,A;if(A=e.input.charCodeAt(e.position),A===91)S=93,b=!1,f=[];else if(A===123)S=125,b=!0,f={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),A=e.input.charCodeAt(++e.position);A!==0;){if(skipSeparationSpace(e,!0,t),A=e.input.charCodeAt(e.position),A===S)return e.position++,e.tag=d,e.anchor=g,e.kind=b?"mapping":"sequence",e.result=f,!0;r?A===44&&throwError(e,"expected the node content, but found ','"):throwError(e,"missed comma between flow collection entries"),C=T=R=null,E=v=!1,A===63&&(_=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(_)&&(E=v=!0,e.position++,skipSeparationSpace(e,!0,t))),a=e.line,o=e.lineStart,u=e.position,composeNode(e,t,CONTEXT_FLOW_IN,!1,!0),C=e.tag,T=e.result,skipSeparationSpace(e,!0,t),A=e.input.charCodeAt(e.position),(v||e.line===a)&&A===58&&(E=!0,A=e.input.charCodeAt(++e.position),skipSeparationSpace(e,!0,t),composeNode(e,t,CONTEXT_FLOW_IN,!1,!0),R=e.result),b?storeMappingPair(e,f,y,C,T,R,a,o,u):E?f.push(storeMappingPair(e,null,y,C,T,R,a,o,u)):f.push(T),skipSeparationSpace(e,!0,t),A=e.input.charCodeAt(e.position),A===44?(r=!0,A=e.input.charCodeAt(++e.position)):r=!1}throwError(
|
|||
|
`,u?1+g:g):o===CHOMPING_CLIP&&u&&(e.result+=`
|
|||
|
`);break}for(a?is_WHITE_SPACE(E)?(_=!0,e.result+=common.repeat(`
|
|||
|
`,u?1+g:g)):_?(_=!1,e.result+=common.repeat(`
|
|||
|
`,g+1)):g===0?u&&(e.result+=" "):e.result+=common.repeat(`
|
|||
|
`,g):e.result+=common.repeat(`
|
|||
|
`,u?1+g:g),u=!0,d=!0,g=0,r=e.position;!is_EOL(E)&&E!==0;)E=e.input.charCodeAt(++e.position);captureSegment(e,r,e.position,!1)}return!0}function readBlockSequence(e,t){var r,a=e.tag,o=e.anchor,u=[],d,f=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),g=e.input.charCodeAt(e.position);g!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,throwError(e,"tab characters must not be used in indentation")),!(g!==45||(d=e.input.charCodeAt(e.position+1),!is_WS_OR_EOL(d))));){if(f=!0,e.position++,skipSeparationSpace(e,!0,-1)&&e.lineIndent<=t){u.push(null),g=e.input.charCodeAt(e.position);continue}if(r=e.line,composeNode(e,t,CONTEXT_BLOCK_IN,!1,!0),u.push(e.result),skipSeparationSpace(e,!0,-1),g=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&g!==0)throwError(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return f?(e.tag=a,e.anchor=o,e.kind="sequence",e.result=u,!0):!1}function readBlockMapping(e,t,r){var a,o,u,d,f,g,_=e.tag,S=e.anchor,E={},v=Object.create(null),b=null,y=null,T=null,C=!1,R=!1,A;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=E),A=e.input.charCodeAt(e.position);A!==0;){if(!C&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,throwError(e,"tab characters must not be used in indentation")),a=e.input.charCodeAt(e.position+1),u=e.line,(A===63||A===58)&&is_WS_OR_EOL(a))A===63?(C&&(storeMappingPair(e,E,v,b,y,null,d,f,g),b=y=T=null),R=!0,C=!0,o=!0):C?(C=!1,o=!0):throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,A=a;else{if(d=e.line,f=e.lineStart,g=e.position,!composeNode(e,r,CONTEXT_FLOW_OUT,!1,!0))break;if(e.line===u){for(A=e.input.charCodeAt(e.position);is_WHITE_SPACE(A);)A=e.input.charCodeAt(++e.position);if(A===58)A=e.input.charCodeAt(++e.position),is_WS_OR_EOL(A)||throwError(e,"a whitespace character is expected after the key-value separator within a block mapping"),C&&(storeMappingPair(e,E,v,b,y,null,d,f,g),b=y=T=null),R=!0,C=!1,o=!1,b=e.tag,y=e.result;else if(R)throwError(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=_,e.anchor=S,!0}else if(R)throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=_,e.anchor=S,!0}if((e.line===u||e.lineIndent>t)&&(C&&(d=e.line,f=e.lineStart,g=e.position),composeNode(e,t,CONTEXT_BLOCK_OUT,!0,o)&&(C?y=e.result:T=e.result),C||(storeMappingPair(e,E,v,b,y,T,d,f,g),b=y=T=null),skipSeparationSpace(e,!0,-1),A=e.input.charCodeAt(e.position)),(e.line===u||e.lineIndent>t)&&A!==0)throwError(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return C&&storeMappingPair(e,E,v,b,y,null,d,f,g),R&&(e.tag=_,e.anchor=S,e.kind="mapping",e.result=E),R}function readTagProperty(e){var t,r=!1,a=!1,o,u,d;if(d=e.input.charCodeAt(e.position),d!==33)return!1;if(e.tag!==null&&throwError(e,"duplication of a tag property"),d=e.input.charCodeAt(++e.position),d===60?(r=!0,d=e.input.charCodeAt(++e.position)):d===33?(a=!0,o="!!",d=e.input.charCodeAt(++e.position)):o="!",t=e.position,r){do d=e.input.charCodeAt(++e.position);while(d!==0&&d!==62);e.position<e.length?(u=e.input.slice(t,e.position),d=e.input.charCodeAt(++e.position)):throwError(e,"unexpected end of the stream within a verbatim tag")}else{for(;d!==0&&!is_WS_OR_EOL(d);)d===33&&(a?throwError(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),PATTERN_TAG_HANDLE.test(o)||throwError(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),d=e.input.charCodeAt(++e.position);u=e.input.slice(t,e.position),PATTERN_FLOW_INDICATORS.test(u)&&throwError(e,"tag suffix cannot contain flow indicator characters")}u&&!PATTERN_TAG_URI.test(u)&&throwError(e,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{throwError(e,"tag name is malformed: "+u)}return r?e.tag=u:_hasOwnProperty$1.call(e.tagMap,o)?e.tag=e.tagMap[o]+u:o==="!"?e.tag="!"+u:o==="!!"?e.tag="tag:yaml.org,2002:"+u:throwError(e,'undeclared tag ha
|
|||
|
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new State$1(e,t),a=e.indexOf("\0");for(a!==-1&&(r.position=a,throwError(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)readDocument(r);return r.documents}function loadAll$1(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var a=loadDocuments(e,r);if(typeof t!="function")return a;for(var o=0,u=a.length;o<u;o+=1)t(a[o])}function load$1(e,t){var r=loadDocuments(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new exception("expected a single document in the stream, but found more")}}var loadAll_1=loadAll$1,load_1=load$1,loader={loadAll:loadAll_1,load:load_1},JSON_SCHEMA=json,load=loader.load;function extractFrontMatter(e,t,r){var a,o;const u=e.match(frontMatterRegex);if(!u)return e;const d=load(u[1],{schema:JSON_SCHEMA});return d!=null&&d.title&&((a=t.setDiagramTitle)==null||a.call(t,d.title.toString())),d!=null&&d.displayMode&&((o=t.setDisplayMode)==null||o.call(t,d.displayMode.toString())),d!=null&&d.config&&(r==null||r(d.config)),e.slice(u[0].length)}const cleanupComments=e=>e.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,"");class Diagram{constructor(t){this.text=t,this.type="graph",this.text+=`
|
|||
|
`;const r=getConfig$1();try{this.type=detectType(t,r)}catch(u){this.type="error",this.detectError=u}const a=getDiagram(this.type);log$1.debug("Type "+this.type),this.db=a.db,this.renderer=a.renderer,this.parser=a.parser;const o=this.parser.parse.bind(this.parser);this.parser.parse=u=>o(cleanupComments(extractFrontMatter(u,this.db,addDirective))),this.parser.parser.yy=this.db,this.init=a.init,this.parse()}parse(){var t,r,a;if(this.detectError)throw this.detectError;(r=(t=this.db).clear)==null||r.call(t),(a=this.init)==null||a.call(this,getConfig$1()),this.parser.parse(this.text)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}}const getDiagramFromText=async e=>{const t=detectType(e,getConfig$1());try{getDiagram(t)}catch{const a=getDiagramLoader(t);if(!a)throw new UnknownDiagramError(`Diagram ${t} not found.`);const{id:o,diagram:u}=await a();registerDiagram(o,u)}return new Diagram(e)};let interactionFunctions=[];const addFunction=e=>{interactionFunctions.push(e)},attachFunctions=()=>{interactionFunctions.forEach(e=>{e()}),interactionFunctions=[]},SVG_ROLE="graphics-document document";function setA11yDiagramInfo(e,t){e.attr("role",SVG_ROLE),t!==""&&e.attr("aria-roledescription",t)}function addSVGa11yTitleDescription(e,t,r,a){if(e.insert!==void 0){if(r){const o=`chart-desc-${a}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${a}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}const CLASSDEF_DIAGRAMS=["graph","flowchart","flowchart-v2","flowchart-elk","stateDiagram","stateDiagram-v2"],MAX_TEXTLENGTH=5e4,MAX_TEXTLENGTH_EXCEEDED_MSG="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",SECURITY_LVL_SANDBOX="sandbox",SECURITY_LVL_LOOSE="loose",XMLNS_SVG_STD="http://www.w3.org/2000/svg",XMLNS_XLINK_STD="http://www.w3.org/1999/xlink",XMLNS_XHTML_STD="http://www.w3.org/1999/xhtml",IFRAME_WIDTH="100%",IFRAME_HEIGHT="100%",IFRAME_STYLES="border:0;margin:0;",IFRAME_BODY_STYLE="margin:0",IFRAME_SANDBOX_OPTS="allow-top-navigation-by-user-activation allow-popups",IFRAME_NOT_SUPPORTED_MSG='The "iframe" tag is not supported by your browser.',DOMPURIFY_TAGS=["foreignobject"],DOMPURIFY_ATTR=["dominant-baseline"];async function parse$1$1(e,t){addDiagrams();try{await getDiagramFromText(e)}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}return!0}const encodeEntities=function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const a=r.substring(1,r.length-1);return/^\+?\d+$/.test(a)?"fl°°"+a+"¶ß":"fl°"+a+"¶ß"}),t},decodeEntities=function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},cssImportantStyles=(e,t,r=[])=>`
|
|||
|
.${e} ${t} { ${r.join(" !important; ")} !important; }`,createCssStyles=(e,t,r={})=>{var a;let o="";if(e.themeCSS!==void 0&&(o+=`
|
|||
|
${e.themeCSS}`),e.fontFamily!==void 0&&(o+=`
|
|||
|
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(o+=`
|
|||
|
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),!isEmpty$1(r)&&CLASSDEF_DIAGRAMS.includes(t)){const g=e.htmlLabels||((a=e.flowchart)==null?void 0:a.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const _ in r){const S=r[_];isEmpty$1(S.styles)||g.forEach(E=>{o+=cssImportantStyles(S.id,E,S.styles)}),isEmpty$1(S.textStyles)||(o+=cssImportantStyles(S.id,"tspan",S.textStyles))}}return o},createUserStyles=(e,t,r,a)=>{const o=createCssStyles(e,t,r),u=getStyles$1(t,o,e.themeVariables);return serialize(compile(`${a}{${u}}`),stringify)},cleanUpSvgCode=(e="",t,r)=>{let a=e;return!r&&!t&&(a=a.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),a=decodeEntities(a),a=a.replace(/<br>/g,"<br/>"),a},putIntoIFrame=(e="",t)=>{var r,a;const o=(a=(r=t==null?void 0:t.viewBox)==null?void 0:r.baseVal)!=null&&a.height?t.viewBox.baseVal.height+"px":IFRAME_HEIGHT,u=btoa('<body style="'+IFRAME_BODY_STYLE+'">'+e+"</body>");return`<iframe style="width:${IFRAME_WIDTH};height:${o};${IFRAME_STYLES}" src="data:text/html;base64,${u}" sandbox="${IFRAME_SANDBOX_OPTS}">
|
|||
|
${IFRAME_NOT_SUPPORTED_MSG}
|
|||
|
</iframe>`},appendDivSvgG=(e,t,r,a,o)=>{const u=e.append("div");u.attr("id",r),a&&u.attr("style",a);const d=u.append("svg").attr("id",t).attr("width","100%").attr("xmlns",XMLNS_SVG_STD);return o&&d.attr("xmlns:xlink",o),d.append("g"),e};function sandboxedIframe(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const removeExistingElements=(e,t,r,a)=>{var o,u,d;(o=e.getElementById(t))==null||o.remove(),(u=e.getElementById(r))==null||u.remove(),(d=e.getElementById(a))==null||d.remove()},render$1=async function(e,t,r){var a,o,u,d;addDiagrams(),reset(),extractFrontMatter(t,{},addDirective);const f=utils$1.detectInit(t);f&&addDirective(f);const g=getConfig$1();log$1.debug(g),t.length>((g==null?void 0:g.maxTextSize)??MAX_TEXTLENGTH)&&(t=MAX_TEXTLENGTH_EXCEEDED_MSG),t=t.replace(/\r\n?/g,`
|
|||
|
`),t=t.replace(/<(\w+)([^>]*)>/g,(G,Y,Q)=>"<"+Y+Q.replace(/="([^"]*)"/g,"='$1'")+">");const _="#"+e,S="i"+e,E="#"+S,v="d"+e,b="#"+v;let y=select("body");const T=g.securityLevel===SECURITY_LVL_SANDBOX,C=g.securityLevel===SECURITY_LVL_LOOSE,R=g.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),T){const G=sandboxedIframe(select(r),S);y=select(G.nodes()[0].contentDocument.body),y.node().style.margin=0}else y=select(r);appendDivSvgG(y,e,v,`font-family: ${R}`,XMLNS_XLINK_STD)}else{if(removeExistingElements(document,e,v,S),T){const G=sandboxedIframe(select("body"),S);y=select(G.nodes()[0].contentDocument.body),y.node().style.margin=0}else y=select("body");appendDivSvgG(y,e,v)}t=encodeEntities(t);let A,O;try{A=await getDiagramFromText(t)}catch(G){A=new Diagram("error"),O=G}const x=y.select(b).node(),N=A.type,I=x.firstChild,k=I.firstChild,D=CLASSDEF_DIAGRAMS.includes(N)?A.renderer.getClasses(t,A):{},P=createUserStyles(g,N,D,_),L=document.createElement("style");L.innerHTML=P,I.insertBefore(L,k);try{await A.renderer.draw(t,e,version$3,A)}catch(G){throw errorRenderer.draw(t,e,version$3),G}const F=y.select(`${b} svg`),B=(o=(a=A.db).getAccTitle)==null?void 0:o.call(a),V=(d=(u=A.db).getAccDescription)==null?void 0:d.call(u);addA11yInfo(N,F,B,V),y.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",XMLNS_XHTML_STD);let U=y.select(b).node().innerHTML;if(log$1.debug("config.arrowMarkerAbsolute",g.arrowMarkerAbsolute),U=cleanUpSvgCode(U,T,evaluate(g.arrowMarkerAbsolute)),T){const G=y.select(b+" svg").node();U=putIntoIFrame(U,G)}else C||(U=purify.sanitize(U,{ADD_TAGS:DOMPURIFY_TAGS,ADD_ATTR:DOMPURIFY_ATTR}));if(attachFunctions(),O)throw O;const K=select(T?E:b).node();return K&&"remove"in K&&K.remove(),{svg:U,bindFunctions:A.db.bindFunctions}};function initialize$1(e={}){var t;e!=null&&e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),saveConfigFromInitialize(e),e!=null&&e.theme&&e.theme in theme$1?e.themeVariables=theme$1[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=theme$1.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?setSiteConfig(e):getSiteConfig();setLogLevel$1(r.logLevel),addDiagrams()}function addA11yInfo(e,t,r,a){setA11yDiagramInfo(t,e),addSVGa11yTitleDescription(t,r,a,t.attr("id"))}const mermaidAPI=Object.freeze({render:render$1,parse:parse$1$1,parseDirective:parseDirective$1,getDiagramFromText,initialize:initialize$1,getConfig:getConfig$1,setConfig,getSiteConfig,updateSiteConfig,reset:()=>{reset()},globalReset:()=>{reset(defaultConfig)},defaultConfig});setLogLevel$1(getConfig$1().logLevel);reset(getConfig$1());const loadRegisteredDiagrams=async()=>{log$1.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(detectors).map(async([r,{detector:a,loader:o}])=>{if(o)try{getDiagram(r)}catch{try{const{diagram:d,id:f}=await o();registerDiagram(f,d,a)}catch(d){throw log$1.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete detectors[r],d}}}))).filter(r=>r.status==="rejected");if(t.length>0){log$1.error(`Failed to load ${t.length} external diagrams`);for(const r of t)log$1.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},handleError=(e,t,r)=>{log$1.warn(e),isDetailedError(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},run$1=async function(e={querySelector:".mermaid"}){try{await runThrowsErrors(e)}catch(t){if(isDetailedError(t)&&log$1.error(t.str),mermaid.parseError&&mermaid.parseError(t),!e.suppressErrors)throw log$1.error("Use the suppressErrors option to suppress these errors"),t}},runThrowsErrors=async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const a=mermaidAPI.getConfig();log$1.debug(`${e?"":"No "}Callback function found`);let o;if(r)o=r;else if(t)o=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");log$
|
|||
|
* Wait for document loaded before starting the execution
|
|||
|
*/window.addEventListener("load",contentLoaded,!1)}const setParseErrorHandler=function(e){mermaid.parseError=e},executionQueue=[];let executionQueueRunning=!1;const executeQueue=async()=>{if(!executionQueueRunning){for(executionQueueRunning=!0;executionQueue.length>0;){const e=executionQueue.shift();if(e)try{await e()}catch(t){log$1.error("Error executing queue",t)}}executionQueueRunning=!1}},parse$3=async(e,t)=>new Promise((r,a)=>{const o=()=>new Promise((u,d)=>{mermaidAPI.parse(e,t).then(f=>{u(f),r(f)},f=>{var g;log$1.error("Error parsing",f),(g=mermaid.parseError)==null||g.call(mermaid,f),d(f),a(f)})});executionQueue.push(o),executeQueue().catch(a)}),render=(e,t,r)=>new Promise((a,o)=>{const u=()=>new Promise((d,f)=>{mermaidAPI.render(e,t,r).then(g=>{d(g),a(g)},g=>{var _;log$1.error("Error parsing",g),(_=mermaid.parseError)==null||_.call(mermaid,g),f(g),o(g)})});executionQueue.push(u),executeQueue().catch(o)}),mermaid={startOnLoad:!0,mermaidAPI,parse:parse$3,render,init,run:run$1,registerExternalDiagrams,initialize,parseError:void 0,contentLoaded,setParseErrorHandler,detectType},config={securityLevel:"loose",startOnLoad:!1,class:"mermaid",flowchart:{curve:"linear"},darkMode:!1};mermaid.initialize(config);const customRenderer={name:"code",renderer(e){const{lang:t,text:r}=e;if(t==="mermaid")return`<pre class="mermaid">${r}</pre>`;const a=HighlightJS.getLanguage(t)?t:"plaintext",o=` class="hljs language-${escapeHTML$1(a)}"`,u=r.replace(/\n$/,""),d=HighlightJS.highlight(u,{language:a}).value;return`<pre><code class="hljs language-${o}">${d}
|
|||
|
</code></pre>`}};marked.use({extensions:[customRenderer]});const _sfc_main$a={name:"DBUIMarkdown",inject:["$socket","$dataTracker"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},data(){return{content:null}},computed:{...mapState("data",["messages"]),msg(){return this.messages[this.id]||{}}},watch:{"props.content":function(){this.update()}},created(){this.$dataTracker(this.id,this.onMsgInput,this.onMsgLoad)},mounted(){this.update()},errorCaptured:(e,t,r)=>(console.error("errorCaptured",e,t,r),!1),methods:{update(){this.parseContent(),this.renderMermaid()},onMsgLoad:function(e){this.$store.commit("data/bind",{widgetId:this.id,msg:e}),this.update()},onMsgInput:function(e){this.msgChanged(this.$store.state.data.messages[this.id],e)&&this.$store.commit("data/bind",{widgetId:this.id,msg:e}),this.update()},msgChanged(e,t){const r=["_event","_msgid"];if(!e||Object.keys(e).length!==Object.keys(t).length)return!0;for(const a of Object.keys(e))if(!r.includes(a)&&e[a]!==t[a])return!0},parseContent(){const e=this.props.content.replace(/\|\|/g,"mdORmd");let t=marked.parse(e);t=t.replaceAll("mdORmd","||");const r=purify.sanitize(t),a={props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})},msg:{type:Object,default:()=>({})}},template:`<div ref="markdown" class="nrdb-ui-markdown-content">${r}</div>`};this.content=a},renderMermaid(){this.$nextTick(()=>{var e,t;this.$refs.markdown&&((t=(e=this.$refs.markdown)==null?void 0:e.querySelector(".mermaid"))==null||t.removeAttribute("data-processed")),mermaid.run({querySelector:".mermaid",suppressErrors:!0})})}}},_hoisted_1$5={ref:"markdown",class:"nrdb-ui-markdown-content"};function _sfc_render$9(e,t,r,a,o,u){return openBlock(),createElementBlock("div",_hoisted_1$5,[o.content?(openBlock(),createBlock(resolveDynamicComponent(o.content),{key:0,id:r.id,props:r.props,msg:u.msg},null,8,["id","props","msg"])):createCommentVNode("",!0)],512)}const UIMarkdown=_export_sfc(_sfc_main$a,[["render",_sfc_render$9]]),IN_BROWSER=typeof window<"u",SUPPORTS_INTERSECTION=IN_BROWSER&&"IntersectionObserver"in window,SUPPORTS_TOUCH=IN_BROWSER&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),SUPPORTS_EYE_DROPPER=IN_BROWSER&&"EyeDropper"in window;function _classPrivateFieldInitSpec(e,t,r){_checkPrivateRedeclaration(e,t),t.set(e,r)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldSet(e,t,r){return e.set(_assertClassBrand(e,t),r),r}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _assertClassBrand(e,t,r){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function getNestedValue(e,t,r){const a=t.length-1;if(a<0)return e===void 0?r:e;for(let o=0;o<a;o++){if(e==null)return r;e=e[t[o]]}return e==null||e[t[a]]===void 0?r:e[t[a]]}function deepEqual(e,t){if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const r=Object.keys(e);return r.length!==Object.keys(t).length?!1:r.every(a=>deepEqual(e[a],t[a]))}function getObjectValueByPath(e,t,r){return e==null||!t||typeof t!="string"?r:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),getNestedValue(e,t.split("."),r))}function getPropertyFromItem(e,t,r){if(t===!0)return e===void 0?r:e;if(t==null||typeof t=="boolean")return r;if(e!==Object(e)){if(typeof t!="function")return r;const o=t(e,r);return typeof o>"u"?r:o}if(typeof t=="string")return getObjectValueByPath(e,t,r);if(Array.isArray(t))return getNestedValue(e,t,r);if(typeof t!="function")return r;const a=t(e,r);return typeof a>"u"?r:a}function createRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(r,a)=>t+a)}function convertToUnit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function i
|
|||
|
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function HSVtoRGB(e){const{h:t,s:r,v:a,a:o}=e,u=f=>{const g=(f+t/60)%6;return a-a*r*Math.max(Math.min(g,4-g,1),0)},d=[u(5),u(3),u(1)].map(f=>Math.round(f*255));return{r:d[0],g:d[1],b:d[2],a:o}}function HSLtoRGB(e){return HSVtoRGB(HSLtoHSV(e))}function RGBtoHSV(e){if(!e)return{h:0,s:1,v:1,a:1};const t=e.r/255,r=e.g/255,a=e.b/255,o=Math.max(t,r,a),u=Math.min(t,r,a);let d=0;o!==u&&(o===t?d=60*(0+(r-a)/(o-u)):o===r?d=60*(2+(a-t)/(o-u)):o===a&&(d=60*(4+(t-r)/(o-u)))),d<0&&(d=d+360);const f=o===0?0:(o-u)/o,g=[d,f,o];return{h:g[0],s:g[1],v:g[2],a:e.a}}function HSVtoHSL(e){const{h:t,s:r,v:a,a:o}=e,u=a-a*r/2,d=u===1||u===0?0:(a-u)/Math.min(u,1-u);return{h:t,s:d,l:u,a:o}}function HSLtoHSV(e){const{h:t,s:r,l:a,a:o}=e,u=a+r*Math.min(a,1-a),d=u===0?0:2-2*a/u;return{h:t,s:d,v:u,a:o}}function RGBtoCSS(e){let{r:t,g:r,b:a,a:o}=e;return o===void 0?`rgb(${t}, ${r}, ${a})`:`rgba(${t}, ${r}, ${a}, ${o})`}function HSVtoCSS(e){return RGBtoCSS(HSVtoRGB(e))}function toHex(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function RGBtoHex(e){let{r:t,g:r,b:a,a:o}=e;return`#${[toHex(t),toHex(r),toHex(a),o!==void 0?toHex(Math.round(o*255)):""].join("")}`}function HexToRGB(e){e=parseHex(e);let[t,r,a,o]=chunk(e,2).map(u=>parseInt(u,16));return o=o===void 0?o:o/255,{r:t,g:r,b:a,a:o}}function HexToHSV(e){const t=HexToRGB(e);return RGBtoHSV(t)}function HSVtoHex(e){return RGBtoHex(HSVtoRGB(e))}function parseHex(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=padEnd(padEnd(e,6),8,"F")),e}function lighten(e,t){const r=fromXYZ$1(toXYZ(e));return r[0]=r[0]+t*10,fromXYZ(toXYZ$1(r))}function darken(e,t){const r=fromXYZ$1(toXYZ(e));return r[0]=r[0]-t*10,fromXYZ(toXYZ$1(r))}function getLuma(e){const t=parseColor(e);return toXYZ(t)[1]}function getContrast(e,t){const r=getLuma(e),a=getLuma(t),o=Math.max(r,a),u=Math.min(r,a);return(o+.05)/(u+.05)}function getForeground(e){const t=Math.abs(APCAcontrast(parseColor(0),parseColor(e)));return Math.abs(APCAcontrast(parseColor(16777215),parseColor(e)))>Math.min(t,50)?"#fff":"#000"}function propsFactory(e,t){return r=>Object.keys(e).reduce((a,o)=>{const d=typeof e[o]=="object"&&e[o]!=null&&!Array.isArray(e[o])?e[o]:{type:e[o]};return r&&o in r?a[o]={...d,default:r[o]}:a[o]=d,t&&!a[o].source&&(a[o].source=t),a},{})}const makeComponentProps=propsFactory({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function getCurrentInstance(e,t){const r=getCurrentInstance$1();if(!r)throw new Error(`[Vuetify] ${e} ${t||"must be called from inside a setup function"}`);return r}function getCurrentInstanceName(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=getCurrentInstance(e).type;return toKebabCase((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let _uid=0,_map=new WeakMap;function getUid(){const e=getCurrentInstance("getUid");if(_map.has(e))return _map.get(e);{const t=_uid++;return _map.set(e,t),t}}getUid.reset=()=>{_uid=0,_map=new WeakMap};function injectSelf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstance("injectSelf");const{provides:r}=t;if(r&&e in r)return r[e]}const DefaultsSymbol=Symbol.for("vuetify:defaults");function createDefaults(e){return ref$1(e)}function injectDefaults(){const e=inject$1(DefaultsSymbol);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function provideDefaults(e,t){const r=injectDefaults(),a=ref$1(e),o=computed(()=>{if(unref(t==null?void 0:t.disabled))return r.value;const d=unref(t==null?void 0:t.scoped),f=unref(t==null?void 0:t.reset),g=unref(t==null?void 0:t.root);if(a.value==null&&!(d||f||g))return r.value;let _=mergeDeep(a.value,{prev:r.value});if(d)return _;if(f||g){const S=Number(f||1/0);for(let E=0;E<=S&&!(!_||!("prev"in _));E++)_=_.prev;return _&&typeof g=="string"&&g in _&&(_=mergeDeep(mergeDeep(_,{prev:_}),_[g])),_}return _.prev?mer
|
|||
|
`,...r.map(a=>` ${a};
|
|||
|
`),`}
|
|||
|
`)}function genCssVariables(e){const t=e.dark?2:1,r=e.dark?1:2,a=[];for(const[o,u]of Object.entries(e.colors)){const d=parseColor(u);a.push(`--v-theme-${o}: ${d.r},${d.g},${d.b}`),o.startsWith("on-")||a.push(`--v-theme-${o}-overlay-multiplier: ${getLuma(u)>.18?t:r}`)}for(const[o,u]of Object.entries(e.variables)){const d=typeof u=="string"&&u.startsWith("#")?parseColor(u):void 0,f=d?`${d.r}, ${d.g}, ${d.b}`:void 0;a.push(`--v-${o}: ${f??u}`)}return a}function useColor(e){return destructComputed(()=>{const t=[],r={};if(e.value.background)if(isCssColor(e.value.background)){if(r.backgroundColor=e.value.background,!e.value.text&&isParsableColor(e.value.background)){const a=parseColor(e.value.background);if(a.a==null||a.a===1){const o=getForeground(a);r.color=o,r.caretColor=o}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(isCssColor(e.value.text)?(r.color=e.value.text,r.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:r}})}function useTextColor(e,t){const r=computed(()=>({text:isRef(e)?e.value:t?e[t]:null})),{colorClasses:a,colorStyles:o}=useColor(r);return{textColorClasses:a,textColorStyles:o}}function useBackgroundColor(e,t){const r=computed(()=>({background:isRef(e)?e.value:t?e[t]:null})),{colorClasses:a,colorStyles:o}=useColor(r);return{backgroundColorClasses:a,backgroundColorStyles:o}}const allowedVariants$2=["elevated","flat","tonal","outlined","text","plain"];function genOverlays(e,t){return createVNode(Fragment,null,[e&&createVNode("span",{key:"overlay",class:`${t}__overlay`},null),createVNode("span",{key:"underlay",class:`${t}__underlay`},null)])}const makeVariantProps=propsFactory({color:String,variant:{type:String,default:"elevated",validator:e=>allowedVariants$2.includes(e)}},"variant");function useVariant(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();const r=computed(()=>{const{variant:u}=unref(e);return`${t}--variant-${u}`}),{colorClasses:a,colorStyles:o}=useColor(computed(()=>{const{variant:u,color:d}=unref(e);return{[["elevated","flat"].includes(u)?"background":"text"]:d}}));return{colorClasses:a,colorStyles:o,variantClasses:r}}const makeVBtnGroupProps=propsFactory({baseColor:String,divided:Boolean,...makeBorderProps(),...makeComponentProps(),...makeDensityProps(),...makeElevationProps(),...makeRoundedProps(),...makeTagProps(),...makeThemeProps(),...makeVariantProps()},"VBtnGroup"),VBtnGroup=genericComponent()({name:"VBtnGroup",props:makeVBtnGroupProps(),setup(e,t){let{slots:r}=t;const{themeClasses:a}=provideTheme(e),{densityClasses:o}=useDensity(e),{borderClasses:u}=useBorder(e),{elevationClasses:d}=useElevation(e),{roundedClasses:f}=useRounded(e);provideDefaults({VBtn:{height:"auto",baseColor:toRef(e,"baseColor"),color:toRef(e,"color"),density:toRef(e,"density"),flat:!0,variant:toRef(e,"variant")}}),useRender(()=>createVNode(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},a.value,u.value,o.value,d.value,f.value,e.class],style:e.style},r))}});function useToggleScope(e,t){let r;function a(){r=effectScope(),r.run(()=>t.length?t(()=>{r==null||r.stop(),a()}):t())}watch(e,o=>{o&&!r?a():o||(r==null||r.stop(),r=void 0)},{immediate:!0}),onScopeDispose(()=>{r==null||r.stop()})}function useProxiedModel(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:E=>E,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:E=>E;const u=getCurrentInstance("useProxiedModel"),d=ref$1(e[t]!==void 0?e[t]:r),f=toKebabCase(t),_=computed(f!==t?()=>{var E,v,b,y;return e[t],!!(((E=u.vnode.props)!=null&&E.hasOwnProperty(t)||(v=u.vnode.props)!=null&&v.hasOwnProperty(f))&&((b=u.vnode.props)!=null&&b.hasOwnProperty(`onUpdate:${t}`)||(y=u.vnode.props)!=null&&y.hasOwnProperty(`onUpdate:${f}`)))}:()=>{var E,v;return e[t],!!((E=u.vnode.props)!=null&&E.hasOwnProperty(t)&&((v=u.vnode.props)!=null&&v.hasOwnProperty(`onUpdate:${t}`)))});useToggleScope(()=>!_.value,()=>{watch(()=>e[t],E=>{d.value=E})});const S=computed({get(){const E=e[t];return a(_.value?E:d.value)},set(E){const v=o(E),b=toRaw(_.value?e[t]:d.value);b===v||a(
|
|||
|
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),isArray$1(t.onToken)){var a=t.onToken;t.onToken=function(o){return a.push(o)}}return isArray$1(t.onComment)&&(t.onComment=pushComment(t,t.onComment)),t}function pushComment(e,t){return function(r,a,o,u,d,f){var g={type:r?"Block":"Line",value:a,start:o,end:u};e.locations&&(g.loc=new SourceLocation(this,d,f)),e.ranges&&(g.range=[o,u]),t.push(g)}}var SCOPE_TOP=1,SCOPE_FUNCTION=2,SCOPE_ASYNC=4,SCOPE_GENERATOR=8,SCOPE_ARROW=16,SCOPE_SIMPLE_CATCH=32,SCOPE_SUPER=64,SCOPE_DIRECT_SUPER=128,SCOPE_CLASS_STATIC_BLOCK=256,SCOPE_VAR=SCOPE_TOP|SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK;function functionFlags(e,t){return SCOPE_FUNCTION|(e?SCOPE_ASYNC:0)|(t?SCOPE_GENERATOR:0)}var BIND_NONE=0,BIND_VAR=1,BIND_LEXICAL=2,BIND_FUNCTION=3,BIND_SIMPLE_CATCH=4,BIND_OUTSIDE=5,Parser=function(t,r,a){this.options=t=getOptions(t),this.sourceFile=t.sourceFile,this.keywords=wordsRegexp(keywords$1[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var o="";t.allowReserved!==!0&&(o=reservedWords[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(o+=" await")),this.reservedWords=wordsRegexp(o);var u=(o?o+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(u),this.reservedWordsStrictBind=wordsRegexp(u+" "+reservedWords.strictBind),this.input=String(r),this.containsEsc=!1,a?(this.pos=a,this.lineStart=this.input.lastIndexOf(`
|
|||
|
`,a-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types$1.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(SCOPE_TOP),this.regexpState=null,this.privateNameStack=[]},prototypeAccessors={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Parser.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};prototypeAccessors.inFunction.get=function(){return(this.currentVarScope().flags&SCOPE_FUNCTION)>0};prototypeAccessors.inGenerator.get=function(){return(this.currentVarScope().flags&SCOPE_GENERATOR)>0&&!this.currentVarScope().inClassFieldInit};prototypeAccessors.inAsync.get=function(){return(this.currentVarScope().flags&SCOPE_ASYNC)>0&&!this.currentVarScope().inClassFieldInit};prototypeAccessors.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&SCOPE_CLASS_STATIC_BLOCK)return!1;if(t.flags&SCOPE_FUNCTION)return(t.flags&SCOPE_ASYNC)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};prototypeAccessors.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&SCOPE_SUPER)>0||r||this.options.allowSuperOutsideMethod};prototypeAccessors.allowDirectSuper.get=function(){return(this.currentThisScope().flags&SCOPE_DIRECT_SUPER)>0};prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};prototypeAccessors.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&(SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK))>0||r};prototypeAccessors.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&SCOPE_CLASS_STATIC_BLOCK)>0};Parser.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var a=this,o=0;o<t.length;o++)a=t[o](a);return a};Parser.parse=function(t,r){return new this(r,t).parse()};Parser.parseExpressionAt=function(t,r,a){var o=new this(a,t,r);return o.nextToken(),o.parseExpression()};Parser.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(Parser.prototype,prototypeAccessors);var pp$9=Parser.prototype,literal=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;pp$9.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){skipWhiteSpace.lastIndex=e,e+=skipWhiteSpace.exec(this.input)[0].length;var t=literal.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){skipWhiteSpace.lastIndex=e+t[0].length;var r=skipWhiteSpace.exec(this.input),a=r.index+r[0].length,o=this.input.charAt(a);return o===";"||o==="}"||lineBreak.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(o)||o==="!"&&this.input.charAt(a+1)==="=")}e+=t[0].length,skipWhiteSpace.lastIndex=e,e+=skipWhiteSpace.exec(this.input)[0].length,this.input[e]===";"&&e++}};pp$9.eat=function(e){return this.type===e?(this.next(),!0):!1};pp$9.isContextual=function(e){return this.type===types$1.name&&this.value===e&&!this.containsEsc};pp$9.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};pp$9.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};pp$9.canInsertSemicolon=function(){return thi
|
|||
|
`),cooked:this.value},this.next(),r.tail=this.type===types$1.backQuote,this.finishNode(r,"TemplateElement")};pp$5.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var a=this.parseTemplateElement({isTagged:t});for(r.quasis=[a];!a.tail;)this.type===types$1.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(types$1.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(types$1.braceR),r.quasis.push(a=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};pp$5.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===types$1.name||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types$1.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))};pp$5.parseObj=function(e,t){var r=this.startNode(),a=!0,o={};for(r.properties=[],this.next();!this.eat(types$1.braceR);){if(a)a=!1;else if(this.expect(types$1.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(types$1.braceR))break;var u=this.parseProperty(e,t);e||this.checkPropClash(u,o,t),r.properties.push(u)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};pp$5.parseProperty=function(e,t){var r=this.startNode(),a,o,u,d;if(this.options.ecmaVersion>=9&&this.eat(types$1.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===types$1.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(u=this.start,d=this.startLoc),e||(a=this.eat(types$1.star)));var f=this.containsEsc;return this.parsePropertyName(r),!e&&!f&&this.options.ecmaVersion>=8&&!a&&this.isAsyncProp(r)?(o=!0,a=this.options.ecmaVersion>=9&&this.eat(types$1.star),this.parsePropertyName(r)):o=!1,this.parsePropertyValue(r,e,a,o,u,d,t,f),this.finishNode(r,"Property")};pp$5.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var r=e.value.start;e.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};pp$5.parsePropertyValue=function(e,t,r,a,o,u,d,f){(r||a)&&this.type===types$1.colon&&this.unexpected(),this.eat(types$1.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,d),e.kind="init"):this.options.ecmaVersion>=6&&this.type===types$1.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,a)):!t&&!f&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==types$1.comma&&this.type!==types$1.braceR&&this.type!==types$1.eq?((r||a)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||a)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=o),e.kind="init",t?e.value=this.parseMaybeDefault(o,u,this.copyNode(e.key)):this.type===types$1.eq&&d?(d.shorthandAssign<0&&(d.shorthandAssign=this.start),e.value=this.parseMaybeDefault(o,u,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};pp$5.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(types$1.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(types$1.bracketR),e.key;e.computed=!1}return e.key=this.type===types$1.num||this.type===types$1.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};pp
|
|||
|
`;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};pp.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(types$1.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};pp.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|||
|
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var a=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(a,8);return o>255&&(a=a.slice(0,-1),o=parseInt(a,8)),this.pos+=a.length-1,t=this.input.charCodeAt(this.pos),(a!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-a.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(o)}return isNewLine(t)?"":String.fromCharCode(t)}};pp.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};pp.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,a=this.options.ecmaVersion>=6;this.pos<this.input.length;){var o=this.fullCharCodeAtPos();if(isIdentifierChar(o,a))this.pos+=o<=65535?1:2;else if(o===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var u=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var d=this.readCodePoint();(t?isIdentifierStart:isIdentifierChar)(d,a)||this.invalidStringToken(u,"Invalid Unicode escape"),e+=codePointToString(d),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};pp.readWord=function(){var e=this.readWord1(),t=types$1.name;return this.keywords.test(e)&&(t=keywords[e]),this.finishToken(t,e)};var version$2="8.11.3";Parser.acorn={Parser,version:version$2,defaultOptions,Position,SourceLocation,getLineInfo,Node:Node$1,TokenType,tokTypes:types$1,keywordTypes:keywords,TokContext,tokContexts:types,isIdentifierChar,isIdentifierStart,Token,isNewLine,lineBreak,lineBreakG,nonASCIIwhitespace};function parse$2(e,t){return Parser.parse(e,t)}var escodegen$1={},estraverse={};(function(e){(function t(r){var a,o,u,d,f,g;function _(N){var I={},k,D;for(k in N)N.hasOwnProperty(k)&&(D=N[k],typeof D=="object"&&D!==null?I[k]=_(D):I[k]=D);return I}function S(N,I){var k,D,P,L;for(D=N.length,P=0;D;)k=D>>>1,L=P+k,I(N[L])?D=k:(P=L+1,D-=k+1);return P}a={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledS
|
|||
|
`,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function pe(M,H){var $="";for(H|=0;H>0;H>>>=1,M+=M)H&1&&($+=M);return $}function z(M){return/[\r\n]/g.test(M)}function j(M){var H=M.length;return H&&d.code.isLineTerminator(M.charCodeAt(H-1))}function ne(M,H){var $;for($ in H)H.hasOwnProperty($)&&(M[$]=H[$]);return M}function ae(M,H){var $,q;function X(_e){return typeof _e=="object"&&_e instanceof Object&&!(_e instanceof RegExp)}for($ in H)H.hasOwnProperty($)&&(q=H[$],X(q)?X(M[$])?ae(M[$],q):M[$]=ae({},q):M[$]=q);return M}function ce(M){var H,$,q,X,_e;if(M!==M)throw new Error("Numeric literal whose value is NaN");if(M<0||M===0&&1/M<0)throw new Error("Numeric literal whose value is negative");if(M===1/0)return _?"null":S?"1e400":"1e+400";if(H=""+M,!S||H.length<3)return H;for($=H.indexOf("."),!_&&H.charCodeAt(0)===48&&$===1&&($=0,H=H.slice(1)),q=H,H=H.replace("e+","e"),X=0,(_e=q.indexOf("e"))>0&&(X=+q.slice(_e+1),q=q.slice(0,_e)),$>=0&&(X-=q.length-$-1,q=+(q.slice(0,$)+q.slice($+1))+""),_e=0;q.charCodeAt(q.length+_e-1)===48;)--_e;return _e!==0&&(X-=_e,q=q.slice(0,_e)),X!==0&&(q+="e"+X),(q.length<H.length||E&&M>1e12&&Math.floor(M)===M&&(q="0x"+M.toString(16)).length<H.length)&&+q===M&&(H=q),H}function ye(M,H){return(M&-2)===8232?(H?"u":"\\u")+(M===8232?"2028":"2029"):M===10||M===13?(H?"":"\\")+(M===10?"n":"r"):String.fromCharCode(M)}function he(M){var H,$,q,X,_e,be,Ae,Pe;if($=M.toString(),M.source){if(H=$.match(/\/([^/]*)$/),!H)return $;for(q=H[1],$="",Ae=!1,Pe=!1,X=0,_e=M.source.length;X<_e;++X)be=M.source.charCodeAt(X),Pe?($+=ye(be,Pe),Pe=!1):(Ae?be===93&&(Ae=!1):be===47?$+="\\":be===91&&(Ae=!0),$+=ye(be,Pe),Pe=be===92);return"/"+$+"/"+q}return $}function Ce(M,H){var $;return M===8?"\\b":M===12?"\\f":M===9?"\\t":($=M.toString(16).toUpperCase(),_||M>255?"\\u"+"0000".slice($.length)+$:M===0&&!d.code.isDecimalDigit(H)?"\\0":M===11?"\\x0B":"\\x"+"00".slice($.length)+$)}function Se(M){if(M===92)return"\\\\";if(M===10)return"\\n";if(M===13)return"\\r";if(M===8232)return"\\u2028";if(M===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function ge(M){var H,$,q,X;for(X=v==="double"?'"':"'",H=0,$=M.length;H<$;++H)if(q=M.charCodeAt(H),q===39){X='"';break}else if(q===34){X="'";break}else q===92&&++H;return X+M+X}function Oe(M){var H="",$,q,X,_e=0,be=0,Ae,Pe;for($=0,q=M.length;$<q;++$){if(X=M.charCodeAt($),X===39)++_e;else if(X===34)++be;else if(X===47&&_)H+="\\";else if(d.code.isLineTerminator(X)||X===92){H+=Se(X);continue}else if(!d.code.isIdentifierPartES5(X)&&(_&&X<32||!_&&!b&&(X<32||X>126))){H+=Ce(X,M.charCodeAt($+1));continue}H+=String.fromCharCode(X)}if(Ae=!(v==="double"||v==="auto"&&be<_e),Pe=Ae?"'":'"',!(Ae?_e:be))return Pe+H+Pe;for(M=H,H=Pe,$=0,q=M.length;$<q;++$)X=M.charCodeAt($),(X===39&&Ae||X===34&&!Ae)&&(H+="\\"),H+=String.fromCharCode(X);return H+Pe}function De(M){var H,$,q,X="";for(H=0,$=M.length;H<$;++H)q=M[H],X+=Array.isArray(q)?De(q):q;return X}function Re(M,H){if(!I)return Array.isArray(M)?De(M):M;if(H==null){if(M instanceof o)return M;H={}}return H.loc==null?new o(null,null,I,M,H.name||null):new o(H.loc.start.line,H.loc.start.column,I===!0?H.loc.source||null:I,M,H.name||null)}function ke(){return T||" "}function le(M,H){var $,q,X,_e;return $=Re(M).toString(),$.length===0?[H]:(q=Re(H).toString(),q.length===0?[M]:(X=$.charCodeAt($.length-1),_e=q.charCodeAt(0),(X===43||X===45)&&X===_e||d.code.isIdentifierPartES5(X)&&d.code.isIdentifierPartES5(_e)||X===47&&_e===105?[M,ke(),H]:d.code.isWhiteSpace(X)||d.code.isLineTerminator(X)||d.code.isWhiteSpace(_e)||d.code.isLineTerminator(_e)?[M,H]:[M,T,H]))}function Te(M){return[f,M]}function Ne(M){var H;H=f,f+=g,M(f),f=H}function Me(M){var H;for(H=M.length-1;H>=0&&!d.code.isLineTerminator(M.charCodeAt(H));--H);return M.length-1-H}function Fe(M,H){var $,q,X,_e,be,Ae,Pe,Be
|
|||
|
`)}function Ve(M,H){if(M.type==="Line"){if(j(M.value))return"//"+M.value;var $="//"+M.value;return D||($+=`
|
|||
|
`),$}return x.format.indent.adjustMultilineComment&&/[\n\r]/.test(M.value)?Fe("/*"+M.value+"*/",H):"/*"+M.value+"*/"}function $e(M,H){var $,q,X,_e,be,Ae,Pe,Be,ze,Qe,nt,st,ot,Ze;if(M.leadingComments&&M.leadingComments.length>0){if(_e=H,D){for(X=M.leadingComments[0],H=[],Be=X.extendedRange,ze=X.range,nt=k.substring(Be[0],ze[0]),Ze=(nt.match(/\n/g)||[]).length,Ze>0?(H.push(pe(`
|
|||
|
`,Ze)),H.push(Te(Ve(X)))):(H.push(nt),H.push(Ve(X))),Qe=ze,$=1,q=M.leadingComments.length;$<q;$++)X=M.leadingComments[$],ze=X.range,st=k.substring(Qe[1],ze[0]),Ze=(st.match(/\n/g)||[]).length,H.push(pe(`
|
|||
|
`,Ze)),H.push(Te(Ve(X))),Qe=ze;ot=k.substring(ze[1],Be[1]),Ze=(ot.match(/\n/g)||[]).length,H.push(pe(`
|
|||
|
`,Ze))}else for(X=M.leadingComments[0],H=[],A&&M.type===t.Program&&M.body.length===0&&H.push(`
|
|||
|
`),H.push(Ve(X)),j(Re(H).toString())||H.push(`
|
|||
|
`),$=1,q=M.leadingComments.length;$<q;++$)X=M.leadingComments[$],Pe=[Ve(X)],j(Re(Pe).toString())||Pe.push(`
|
|||
|
`),H.push(Te(Pe));H.push(Te(_e))}if(M.trailingComments)if(D)X=M.trailingComments[0],Be=X.extendedRange,ze=X.range,nt=k.substring(Be[0],ze[0]),Ze=(nt.match(/\n/g)||[]).length,Ze>0?(H.push(pe(`
|
|||
|
`,Ze)),H.push(Te(Ve(X)))):(H.push(nt),H.push(Ve(X)));else for(be=!j(Re(H).toString()),Ae=pe(" ",Me(Re([f,H,g]).toString())),$=0,q=M.trailingComments.length;$<q;++$)X=M.trailingComments[$],be?($===0?H=[H,g]:H=[H,Ae],H.push(Ve(X,Ae))):H=[H,Te(Ve(X))],$!==q-1&&!j(Re(H).toString())&&(H=[H,`
|
|||
|
`]);return H}function Ke(M,H,$){var q,X=0;for(q=M;q<H;q++)k[q]===`
|
|||
|
`&&X++;for(q=1;q<X;q++)$.push(y)}function qe(M,H,$){return H<$?["(",M,")"]:M}function He(M){var H,$,q;for(q=M.split(/\r\n|\n/),H=1,$=q.length;H<$;H++)q[H]=y+f+q[H];return q}function Xe(M,H){var $,q,X;return $=M[x.verbatim],typeof $=="string"?q=qe(He($),r.Sequence,H):(q=He($.content),X=$.precedence!=null?$.precedence:r.Sequence,q=qe(q,X,H)),Re(q,M)}function Ye(){}Ye.prototype.maybeBlock=function(M,H){var $,q,X=this;return q=!x.comment||!M.leadingComments,M.type===t.BlockStatement&&q?[T,this.generateStatement(M,H)]:M.type===t.EmptyStatement&&q?";":(Ne(function(){$=[y,Te(X.generateStatement(M,H))]}),$)},Ye.prototype.maybeBlockSuffix=function(M,H){var $=j(Re(H).toString());return M.type===t.BlockStatement&&(!x.comment||!M.leadingComments)&&!$?[H,T]:$?[H,f]:[H,y,f]};function Ue(M){return Re(M.name,M)}function Je(M,H){return M.async?"async"+(H?ke():T):""}function it(M){var H=M.generator&&!x.moz.starlessGenerator;return H?"*"+T:""}function rt(M){var H=M.value,$="";return H.async&&($+=Je(H,!M.computed)),H.generator&&($+=it(H)?"*":""),$}Ye.prototype.generatePattern=function(M,H,$){return M.type===t.Identifier?Ue(M):this.generateExpression(M,H,$)},Ye.prototype.generateFunctionParams=function(M){var H,$,q,X;if(X=!1,M.type===t.ArrowFunctionExpression&&!M.rest&&(!M.defaults||M.defaults.length===0)&&M.params.length===1&&M.params[0].type===t.Identifier)q=[Je(M,!0),Ue(M.params[0])];else{for(q=M.type===t.ArrowFunctionExpression?[Je(M,!1)]:[],q.push("("),M.defaults&&(X=!0),H=0,$=M.params.length;H<$;++H)X&&M.defaults[H]?q.push(this.generateAssignment(M.params[H],M.defaults[H],"=",r.Assignment,te)):q.push(this.generatePattern(M.params[H],r.Assignment,te)),H+1<$&&q.push(","+T);M.rest&&(M.params.length&&q.push(","+T),q.push("..."),q.push(Ue(M.rest))),q.push(")")}return q},Ye.prototype.generateFunctionBody=function(M){var H,$;return H=this.generateFunctionParams(M),M.type===t.ArrowFunctionExpression&&(H.push(T),H.push("=>")),M.expression?(H.push(T),$=this.generateExpression(M.body,r.Assignment,te),$.toString().charAt(0)==="{"&&($=["(",$,")"]),H.push($)):H.push(this.maybeBlock(M.body,oe)),H},Ye.prototype.generateIterationForStatement=function(M,H,$){var q=["for"+(H.await?ke()+"await":"")+T+"("],X=this;return Ne(function(){H.left.type===t.VariableDeclaration?Ne(function(){q.push(H.left.kind+ke()),q.push(X.generateStatement(H.left.declarations[0],de))}):q.push(X.generateExpression(H.left,r.Call,te)),q=le(q,M),q=[le(q,X.generateExpression(H.right,r.Assignment,te)),")"]}),q.push(this.maybeBlock(H.body,$)),q},Ye.prototype.generatePropertyKey=function(M,H){var $=[];return H&&$.push("["),$.push(this.generateExpression(M,r.Assignment,te)),H&&$.push("]"),$},Ye.prototype.generateAssignment=function(M,H,$,q,X){return r.Assignment<q&&(X|=V),qe([this.generateExpression(M,r.Call,X),T+$+T,this.generateExpression(H,r.Assignment,X)],r.Assignment,q)},Ye.prototype.semicolon=function(M){return!R&&M&Y?"":";"},Ye.Statement={BlockStatement:function(M,H){var $,q,X=["{",y],_e=this;return Ne(function(){M.body.length===0&&D&&($=M.range,$[1]-$[0]>2&&(q=k.substring($[0]+1,$[1]-1),q[0]===`
|
|||
|
`&&(X=["{"]),X.push(q)));var be,Ae,Pe,Be;for(Be=ie,H&K&&(Be|=G),be=0,Ae=M.body.length;be<Ae;++be)D&&(be===0&&(M.body[0].leadingComments&&($=M.body[0].leadingComments[0].extendedRange,q=k.substring($[0],$[1]),q[0]===`
|
|||
|
`&&(X=["{"])),M.body[0].leadingComments||Ke(M.range[0],M.body[0].range[0],X)),be>0&&!M.body[be-1].trailingComments&&!M.body[be].leadingComments&&Ke(M.body[be-1].range[1],M.body[be].range[0],X)),be===Ae-1&&(Be|=Y),M.body[be].leadingComments&&D?Pe=_e.generateStatement(M.body[be],Be):Pe=Te(_e.generateStatement(M.body[be],Be)),X.push(Pe),j(Re(Pe).toString())||D&&be<Ae-1&&M.body[be+1].leadingComments||X.push(y),D&&be===Ae-1&&(M.body[be].trailingComments||Ke(M.body[be].range[1],M.range[1],X))}),X.push(Te("}")),X},BreakStatement:function(M,H){return M.label?"break "+M.label.name+this.semicolon(H):"break"+this.semicolon(H)},ContinueStatement:function(M,H){return M.label?"continue "+M.label.name+this.semicolon(H):"continue"+this.semicolon(H)},ClassBody:function(M,H){var $=["{",y],q=this;return Ne(function(X){var _e,be;for(_e=0,be=M.body.length;_e<be;++_e)$.push(X),$.push(q.generateExpression(M.body[_e],r.Sequence,te)),_e+1<be&&$.push(y)}),j(Re($).toString())||$.push(y),$.push(f),$.push("}"),$},ClassDeclaration:function(M,H){var $,q;return $=["class"],M.id&&($=le($,this.generateExpression(M.id,r.Sequence,te))),M.superClass&&(q=le("extends",this.generateExpression(M.superClass,r.Unary,te)),$=le($,q)),$.push(T),$.push(this.generateStatement(M.body,ee)),$},DirectiveStatement:function(M,H){return x.raw&&M.raw?M.raw+this.semicolon(H):ge(M.directive)+this.semicolon(H)},DoWhileStatement:function(M,H){var $=le("do",this.maybeBlock(M.body,ie));return $=this.maybeBlockSuffix(M.body,$),le($,["while"+T+"(",this.generateExpression(M.test,r.Sequence,te),")"+this.semicolon(H)])},CatchClause:function(M,H){var $,q=this;return Ne(function(){var X;M.param?($=["catch"+T+"(",q.generateExpression(M.param,r.Sequence,te),")"],M.guard&&(X=q.generateExpression(M.guard,r.Sequence,te),$.splice(2,0," if ",X))):$=["catch"]}),$.push(this.maybeBlock(M.body,ie)),$},DebuggerStatement:function(M,H){return"debugger"+this.semicolon(H)},EmptyStatement:function(M,H){return";"},ExportDefaultDeclaration:function(M,H){var $=["export"],q;return q=H&Y?ee:ie,$=le($,"default"),B(M.declaration)?$=le($,this.generateStatement(M.declaration,q)):$=le($,this.generateExpression(M.declaration,r.Assignment,te)+this.semicolon(H)),$},ExportNamedDeclaration:function(M,H){var $=["export"],q,X=this;return q=H&Y?ee:ie,M.declaration?le($,this.generateStatement(M.declaration,q)):(M.specifiers&&(M.specifiers.length===0?$=le($,"{"+T+"}"):M.specifiers[0].type===t.ExportBatchSpecifier?$=le($,this.generateExpression(M.specifiers[0],r.Sequence,te)):($=le($,"{"),Ne(function(_e){var be,Ae;for($.push(y),be=0,Ae=M.specifiers.length;be<Ae;++be)$.push(_e),$.push(X.generateExpression(M.specifiers[be],r.Sequence,te)),be+1<Ae&&$.push(","+y)}),j(Re($).toString())||$.push(y),$.push(f+"}")),M.source?$=le($,["from"+T,this.generateExpression(M.source,r.Sequence,te),this.semicolon(H)]):$.push(this.semicolon(H))),$)},ExportAllDeclaration:function(M,H){return["export"+T,"*"+T,"from"+T,this.generateExpression(M.source,r.Sequence,te),this.semicolon(H)]},ExpressionStatement:function(M,H){var $,q;function X(Ae){var Pe;return Ae.slice(0,5)!=="class"?!1:(Pe=Ae.charCodeAt(5),Pe===123||d.code.isWhiteSpace(Pe)||d.code.isLineTerminator(Pe))}function _e(Ae){var Pe;return Ae.slice(0,8)!=="function"?!1:(Pe=Ae.charCodeAt(8),Pe===40||d.code.isWhiteSpace(Pe)||Pe===42||d.code.isLineTerminator(Pe))}function be(Ae){var Pe,Be,ze;if(Ae.slice(0,5)!=="async"||!d.code.isWhiteSpace(Ae.charCodeAt(5)))return!1;for(Be=6,ze=Ae.length;Be<ze&&d.code.isWhiteSpace(Ae.charCodeAt(Be));++Be);return Be===ze||Ae.slice(Be,Be+8)!=="function"?!1:(Pe=Ae.charCodeAt(Be+8),Pe===40||d.code.isWhiteSpace(Pe)||Pe===42||d.code.isLineTerminator(Pe))}return $=[this.generateExpression(M.expression,r.Sequence,te)],q=Re($).toString(),q.charCodeAt(0)===123||X(q)||_e(q)||be(q)||O&&H&G&&M.expression.type===t.Literal&&typeof M.expression.value=="string"?$=["(",$,")"+this.semicolon(H)]:$.push(this.semicolon(H)),$},ImportDeclaration:function(M,H){var $,q,X=this;return M.specifiers.length===0?["import",T,this.generateExpression(M.source,r.Sequence,te),this.semicolon(H)]:($=[
|
|||
|
`),$.push(Te(Ae.generateStatement(_e,be)))):($.push(ke()),$.push(Ae.generateStatement(_e,be))),q=1,X=M.declarations.length;q<X;++q)_e=M.declarations[q],x.comment&&_e.leadingComments?($.push(","+y),$.push(Te(Ae.generateStatement(_e,be)))):($.push(","+T),$.push(Ae.generateStatement(_e,be)))}return M.declarations.length>1?Ne(Pe):Pe(),$.push(this.semicolon(H)),$},ThrowStatement:function(M,H){return[le("throw",this.generateExpression(M.argument,r.Sequence,te)),this.semicolon(H)]},TryStatement:function(M,H){var $,q,X,_e;if($=["try",this.maybeBlock(M.block,ie)],$=this.maybeBlockSuffix(M.block,$),M.handlers)for(q=0,X=M.handlers.length;q<X;++q)$=le($,this.generateStatement(M.handlers[q],ie)),(M.finalizer||q+1!==X)&&($=this.maybeBlockSuffix(M.handlers[q].body,$));else{for(_e=M.guardedHandlers||[],q=0,X=_e.length;q<X;++q)$=le($,this.generateStatement(_e[q],ie)),(M.finalizer||q+1!==X)&&($=this.maybeBlockSuffix(_e[q].body,$));if(M.handler)if(Array.isArray(M.handler))for(q=0,X=M.handler.length;q<X;++q)$=le($,this.generateStatement(M.handler[q],ie)),(M.finalizer||q+1!==X)&&($=this.maybeBlockSuffix(M.handler[q].body,$));else $=le($,this.generateStatement(M.handler,ie)),M.finalizer&&($=this.maybeBlockSuffix(M.handler.body,$))}return M.finalizer&&($=le($,["finally",this.maybeBlock(M.finalizer,ie)])),$},SwitchStatement:function(M,H){var $,q,X,_e,be,Ae=this;if(Ne(function(){$=["switch"+T+"(",Ae.generateExpression(M.discriminant,r.Sequence,te),")"+T+"{"+y]}),M.cases)for(be=ie,X=0,_e=M.cases.length;X<_e;++X)X===_e-1&&(be|=Y),q=Te(this.generateStatement(M.cases[X],be)),$.push(q),j(Re(q).toString())||$.push(y);return $.push(Te("}")),$},SwitchCase:function(M,H){var $,q,X,_e,be,Ae=this;return Ne(function(){for(M.test?$=[le("case",Ae.generateExpression(M.test,r.Sequence,te)),":"]:$=["default:"],X=0,_e=M.consequent.length,_e&&M.consequent[0].type===t.BlockStatement&&(q=Ae.maybeBlock(M.consequent[0],ie),$.push(q),X=1),X!==_e&&!j(Re($).toString())&&$.push(y),be=ie;X<_e;++X)X===_e-1&&H&Y&&(be|=Y),q=Te(Ae.generateStatement(M.consequent[X],be)),$.push(q),X+1!==_e&&!j(Re(q).toString())&&$.push(y)}),$},IfStatement:function(M,H){var $,q,X,_e=this;return Ne(function(){$=["if"+T+"(",_e.generateExpression(M.test,r.Sequence,te),")"]}),X=H&Y,q=ie,X&&(q|=Y),M.alternate?($.push(this.maybeBlock(M.consequent,ie)),$=this.maybeBlockSuffix(M.consequent,$),M.alternate.type===t.IfStatement?$=le($,["else ",this.generateStatement(M.alternate,q)]):$=le($,le("else",this.maybeBlock(M.alternate,q)))):$.push(this.maybeBlock(M.consequent,q)),$},ForStatement:function(M,H){var $,q=this;return Ne(function(){$=["for"+T+"("],M.init?M.init.type===t.VariableDeclaration?$.push(q.generateStatement(M.init,de)):($.push(q.generateExpression(M.init,r.Sequence,Z)),$.push(";")):$.push(";"),M.test&&($.push(T),$.push(q.generateExpression(M.test,r.Sequence,te))),$.push(";"),M.update&&($.push(T),$.push(q.generateExpression(M.update,r.Sequence,te))),$.push(")")}),$.push(this.maybeBlock(M.body,H&Y?ee:ie)),$},ForInStatement:function(M,H){return this.generateIterationForStatement("in",M,H&Y?ee:ie)},ForOfStatement:function(M,H){return this.generateIterationForStatement("of",M,H&Y?ee:ie)},LabeledStatement:function(M,H){return[M.label.name+":",this.maybeBlock(M.body,H&Y?ee:ie)]},Program:function(M,H){var $,q,X,_e,be;for(_e=M.body.length,$=[A&&_e>0?`
|
|||
|
`:""],be=me,X=0;X<_e;++X)!A&&X===_e-1&&(be|=Y),D&&(X===0&&(M.body[0].leadingComments||Ke(M.range[0],M.body[X].range[0],$)),X>0&&!M.body[X-1].trailingComments&&!M.body[X].leadingComments&&Ke(M.body[X-1].range[1],M.body[X].range[0],$)),q=Te(this.generateStatement(M.body[X],be)),$.push(q),X+1<_e&&!j(Re(q).toString())&&(D&&M.body[X+1].leadingComments||$.push(y)),D&&X===_e-1&&(M.body[X].trailingComments||Ke(M.body[X].range[1],M.range[1],$));return $},FunctionDeclaration:function(M,H){return[Je(M,!0),"function",it(M)||ke(),M.id?Ue(M.id):"",this.generateFunctionBody(M)]},ReturnStatement:function(M,H){return M.argument?[le("return",this.generateExpression(M.argument,r.Sequence,te)),this.semicolon(H)]:["return"+this.semicolon(H)]},WhileStatement:function(M,H){var $,q=this;return Ne(function(){$=["while"+T+"(",q.generateExpression(M.test,r.Sequence,te),")"]}),$.push(this.maybeBlock(M.body,H&Y?ee:ie)),$},WithStatement:function(M,H){var $,q=this;return Ne(function(){$=["with"+T+"(",q.generateExpression(M.object,r.Sequence,te),")"]}),$.push(this.maybeBlock(M.body,H&Y?ee:ie)),$}},ne(Ye.prototype,Ye.Statement),Ye.Expression={SequenceExpression:function(M,H,$){var q,X,_e;for(r.Sequence<H&&($|=V),q=[],X=0,_e=M.expressions.length;X<_e;++X)q.push(this.generateExpression(M.expressions[X],r.Assignment,$)),X+1<_e&&q.push(","+T);return qe(q,r.Sequence,H)},AssignmentExpression:function(M,H,$){return this.generateAssignment(M.left,M.right,M.operator,H,$)},ArrowFunctionExpression:function(M,H,$){return qe(this.generateFunctionBody(M),r.ArrowFunction,H)},ConditionalExpression:function(M,H,$){return r.Conditional<H&&($|=V),qe([this.generateExpression(M.test,r.Coalesce,$),T+"?"+T,this.generateExpression(M.consequent,r.Assignment,$),T+":"+T,this.generateExpression(M.alternate,r.Assignment,$)],r.Conditional,H)},LogicalExpression:function(M,H,$){return M.operator==="??"&&($|=Q),this.BinaryExpression(M,H,$)},BinaryExpression:function(M,H,$){var q,X,_e,be,Ae,Pe;return be=a[M.operator],X=M.operator==="**"?r.Postfix:be,_e=M.operator==="**"?be:be+1,be<H&&($|=V),Ae=this.generateExpression(M.left,X,$),Pe=Ae.toString(),Pe.charCodeAt(Pe.length-1)===47&&d.code.isIdentifierPartES5(M.operator.charCodeAt(0))?q=[Ae,ke(),M.operator]:q=le(Ae,M.operator),Ae=this.generateExpression(M.right,_e,$),M.operator==="/"&&Ae.toString().charAt(0)==="/"||M.operator.slice(-1)==="<"&&Ae.toString().slice(0,3)==="!--"?(q.push(ke()),q.push(Ae)):q=le(q,Ae),M.operator==="in"&&!($&V)?["(",q,")"]:(M.operator==="||"||M.operator==="&&")&&$&Q?["(",q,")"]:qe(q,be,H)},CallExpression:function(M,H,$){var q,X,_e;for(q=[this.generateExpression(M.callee,r.Call,J)],M.optional&&q.push("?."),q.push("("),X=0,_e=M.arguments.length;X<_e;++X)q.push(this.generateExpression(M.arguments[X],r.Assignment,te)),X+1<_e&&q.push(","+T);return q.push(")"),$&U?qe(q,r.Call,H):["(",q,")"]},ChainExpression:function(M,H,$){r.OptionalChaining<H&&($|=U);var q=this.generateExpression(M.expression,r.OptionalChaining,$);return qe(q,r.OptionalChaining,H)},NewExpression:function(M,H,$){var q,X,_e,be,Ae;if(X=M.arguments.length,Ae=$&W&&!C&&X===0?ue:fe,q=le("new",this.generateExpression(M.callee,r.New,Ae)),!($&W)||C||X>0){for(q.push("("),_e=0,be=X;_e<be;++_e)q.push(this.generateExpression(M.arguments[_e],r.Assignment,te)),_e+1<be&&q.push(","+T);q.push(")")}return qe(q,r.New,H)},MemberExpression:function(M,H,$){var q,X;return q=[this.generateExpression(M.object,r.Call,$&U?J:fe)],M.computed?(M.optional&&q.push("?."),q.push("["),q.push(this.generateExpression(M.property,r.Sequence,$&U?te:ue)),q.push("]")):(!M.optional&&M.object.type===t.Literal&&typeof M.object.value=="number"&&(X=Re(q).toString(),X.indexOf(".")<0&&!/[eExX]/.test(X)&&d.code.isDecimalDigit(X.charCodeAt(X.length-1))&&!(X.length>=2&&X.charCodeAt(0)===48)&&q.push(" ")),q.push(M.optional?"?.":"."),q.push(Ue(M.property))),qe(q,r.Member,H)},MetaProperty:function(M,H,$){var q;return q=[],q.push(typeof M.meta=="string"?M.meta:Ue(M.meta)),q.push("."),q.push(typeof M.property=="string"?M.property:Ue(M.property)),qe(q,r.Member,H)},UnaryExpression:function(M,H,$){var q,X,_e,be,Ae
|
|||
|
`&&($=I?Re($).replaceRight(/\s+$/,""):q.replace(/\s+$/,"")),Re($,M)};function at(M){var H;if(H=new Ye,B(M))return H.generateStatement(M,ie);if(F(M))return H.generateExpression(M,r.Sequence,te);throw new Error("Unknown node type: "+M.type)}function ct(M,H){var $=Ee(),q,X;return H!=null?(typeof H.indent=="string"&&($.format.indent.style=H.indent),typeof H.base=="number"&&($.format.indent.base=H.base),H=ae($,H),g=H.format.indent.style,typeof H.base=="string"?f=H.base:f=pe(g,H.format.indent.base)):(H=$,g=H.format.indent.style,f=pe(g,H.format.indent.base)),_=H.format.json,S=H.format.renumber,E=_?!1:H.format.hexadecimal,v=_?"double":H.format.quotes,b=H.format.escapeless,y=H.format.newline,T=H.format.space,H.format.compact&&(y=T=g=f=""),C=H.format.parentheses,R=H.format.semicolons,A=H.format.safeConcatenation,O=H.directive,N=_?null:H.parse,I=H.sourceMap,k=H.sourceCode,D=H.format.preserveBlankLines&&k!==null,x=H,I&&(e.browser?o=commonjsGlobal.sourceMap.SourceNode:o=requireSourceMap().SourceNode),q=at(M),I?(X=q.toStringWithSourceMap({file:H.file,sourceRoot:H.sourceMapRoot}),H.sourceContent&&X.map.setSourceContent(H.sourceMap,H.sourceContent),H.sourceMapWithCode?X:X.map.toString()):(X={code:q.toString(),map:null},H.sourceMapWithCode?X:X.code)}P={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},L=Ee().format,e.version=require$$3.version,e.generate=ct,e.attachComments=u.attachComments,e.Precedence=ae({},r),e.browser=!1,e.FORMAT_MINIFY=P,e.FORMAT_DEFAULTS=L})()})(escodegen$1);const escodegen=getDefaultExportFromCjs(escodegen$1);function processProperty(e,t){switch(t.type){case"Literal":return t.value;case"FunctionExpression":return t.id||(t.id={type:"Identifier",name:e}),escodegen.generate(t);case"ArrayExpression":return escodegen.generate(t);case"ObjectExpression":return escodegen.generate(t);default:return escodegen.generate(t)}}function parseSFC(js){const options={ecmaVersion:"latest",sourceType:"module",locations:!1},tree=parse$2(js,options);if(tree.type==="Program"&&tree.body.length===1&&tree.body[0].type==="ExportDefaultDeclaration"){const declaration=tree.body[0].declaration;if(declaration.type==="ObjectExpression"){const component={};return declaration.properties.forEach(block=>{if(block.type==="Property"){const key=block.key.name;if(key==="name")component.name=processProperty(key,block.value);else if(key==="props")console.warn('"props" not supported in a ui-template Vue Component');else if(key==="data")eval("component.data = "+processProperty(key,block.value));else if(key==="computed"){const c=block.value;if(c.type==="ObjectExpression"){const computed={};c.properties.forEach(computedVar=>{eval("computed[computedVar.key.name] = "+processProperty(computedVar.key.name,computedVar.value))}),component.computed=computed}else console.warn('"methods" must be an object expression')}else if(key==="methods"){const m=block.value;if(m.type==="ObjectExpression"){const methods={};m.properties.forEach(method=>{eval("methods[method.key.name] = "+processProperty(method.key.name,method.value))}),component.methods=methods}else console.warn('"methods" must be an object expression')}else if(key==="watch"){const w=block.value;if(w.type==="ObjectExpression"){const watch={};w.properties.forEach(watchVar=>{eval("watch[watchVar.key.name] = "+processProperty(watchVar.key.name,watchVar.value))}),component.watch=watch}else console.warn('"methods" must be an object expression')}else key==="mounted"?eval("component.mounted = "+processProperty(key,block.value)):key==="unmounted"?eval("component.unmounted = "+processProperty(key,block.value)):console.warn(`"${key}" not supported in a ui-template Vue Component`)}}),component}else throw Error("Vue SFC must default export an object expression")}if(tree.type==="Program"&&tree.body.length>0){const e={};return e.js="",tree.body.forEach(t=>{e.js+=processProperty("",t)}),e}else throw Error("Vue SFC must default export an object expression")}const VueParser={parse:parseSFC},_sfc_main$3={name:"DBUITemplate",inject:["$socket","$dataTracker"],props
|
|||
|
* vue-router v4.2.4
|
|||
|
* (c) 2023 Eduardo San Martin Morote
|
|||
|
* @license MIT
|
|||
|
*/const isBrowser=typeof window<"u";function isESModule(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const assign=Object.assign;function applyToParams(e,t){const r={};for(const a in t){const o=t[a];r[a]=isArray(o)?o.map(e):e(o)}return r}const noop=()=>{},isArray=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=e=>e.replace(TRAILING_SLASH_RE,"");function parseURL(e,t,r="/"){let a,o={},u="",d="";const f=t.indexOf("#");let g=t.indexOf("?");return f<g&&f>=0&&(g=-1),g>-1&&(a=t.slice(0,g),u=t.slice(g+1,f>-1?f:t.length),o=e(u)),f>-1&&(a=a||t.slice(0,f),d=t.slice(f,t.length)),a=resolveRelativePath(a??t,r),{fullPath:a+(u&&"?")+u+d,path:a,query:o,hash:d}}function stringifyURL(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function stripBase(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function isSameRouteLocation(e,t,r){const a=t.matched.length-1,o=r.matched.length-1;return a>-1&&a===o&&isSameRouteRecord(t.matched[a],r.matched[o])&&isSameRouteLocationParams(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function isSameRouteRecord(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function isSameRouteLocationParams(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!isSameRouteLocationParamsValue(e[r],t[r]))return!1;return!0}function isSameRouteLocationParamsValue(e,t){return isArray(e)?isEquivalentArray(e,t):isArray(t)?isEquivalentArray(t,e):e===t}function isEquivalentArray(e,t){return isArray(t)?e.length===t.length&&e.every((r,a)=>r===t[a]):e.length===1&&e[0]===t}function resolveRelativePath(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),a=e.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let u=r.length-1,d,f;for(d=0;d<a.length;d++)if(f=a[d],f!==".")if(f==="..")u>1&&u--;else break;return r.slice(0,u).join("/")+"/"+a.slice(d-(d===a.length?1:0)).join("/")}var NavigationType;(function(e){e.pop="pop",e.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(e){e.back="back",e.forward="forward",e.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(e){if(!e)if(isBrowser){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),removeTrailingSlash(e)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(e,t){return e.replace(BEFORE_HASH_RE,"#")+t}function getElementPosition(e,t){const r=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-r.left-(t.left||0),top:a.top-r.top-(t.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(e){let t;if("el"in e){const r=e.el,a=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?a?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;t=getElementPosition(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function getScrollKey(e,t){return(history.state?history.state.position-t:-1)+e}const scrollPositions=new Map;function saveScrollPosition(e,t){scrollPositions.set(e,t)}function getSavedScrollPosition(e){const t=scrollPositions.get(e);return scrollPositions.delete(e),t}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(e,t){const{pathname:r,search:a,hash:o}=t,u=e.indexOf("#");if(u>-1){let f=o.includes(e.slice(u))?e.slice(u).length:1,g=o.slice(f);return g[0]!=="/"&&(g="/"+g),stripBase(g,"")}return stripBase(r,e)+a+o}function useHistoryListeners(e,t,r,a){let o=[],u=[],d=null;const f=({state:v})=>{const b=createCurrentLocation(e,location),y=r.value,T=t.value;let C=0;if(v){if(r.value=b,t.value=v,d&&d===y){d=null;return}C=T?v.position-T.position:0}else a(b);o.forEach(R=>{R(r.value,y,{delta:C,type:NavigationType.pop,direction:C?C>0?NavigationDirection.forward:NavigationDir
|