vite-plugin-vue-devtools 7.0.12 → 7.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* @vue/runtime-dom v3.4.15
|
|
15
15
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
16
|
* @license MIT
|
|
17
|
-
**/const _ee="http://www.w3.org/2000/svg",Eee="http://www.w3.org/1998/Math/MathML",fs=typeof document<"u"?document:null,ix=fs&&fs.createElement("template"),See={insert:(t,r,e)=>{r.insertBefore(t,e||null)},remove:t=>{const r=t.parentNode;r&&r.removeChild(t)},createElement:(t,r,e,n)=>{const i=r==="svg"?fs.createElementNS(_ee,t):r==="mathml"?fs.createElementNS(Eee,t):fs.createElement(t,e?{is:e}:void 0);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>fs.createTextNode(t),createComment:t=>fs.createComment(t),setText:(t,r)=>{t.nodeValue=r},setElementText:(t,r)=>{t.textContent=r},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>fs.querySelector(t),setScopeId(t,r){t.setAttribute(r,"")},insertStaticContent(t,r,e,n,i,o){const a=e?e.previousSibling:r.lastChild;if(i&&(i===o||i.nextSibling))for(;r.insertBefore(i.cloneNode(!0),e),!(i===o||!(i=i.nextSibling)););else{ix.innerHTML=n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t;const s=ix.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}r.insertBefore(s,e)}return[a?a.nextSibling:r.firstChild,e?e.previousSibling:r.lastChild]}},qa="transition",th="animation",sA=Symbol("_vtc"),XA=(t,{slots:r})=>ld(RJ,Tee(t),r);XA.displayName="Transition";const Lj={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};XA.props=Ur({},fj,Lj);const Dl=(t,r=[])=>{je(t)?t.forEach(e=>e(...r)):t&&t(...r)},ox=t=>t?je(t)?t.some(r=>r.length>1):t.length>1:!1;function Tee(t){const r={};for(const D in t)D in Lj||(r[D]=t[D]);if(t.css===!1)return r;const{name:e="v",type:n,duration:i,enterFromClass:o=`${e}-enter-from`,enterActiveClass:a=`${e}-enter-active`,enterToClass:s=`${e}-enter-to`,appearFromClass:l=o,appearActiveClass:g=a,appearToClass:u=s,leaveFromClass:c=`${e}-leave-from`,leaveActiveClass:d=`${e}-leave-active`,leaveToClass:h=`${e}-leave-to`}=t,A=Oee(i),f=A&&A[0],C=A&&A[1],{onBeforeEnter:I,onEnter:v,onEnterCancelled:p,onLeave:y,onLeaveCancelled:b,onBeforeAppear:_=I,onAppear:P=v,onAppearCancelled:k=p}=r,E=(D,M,Q)=>{Nl(D,M?u:s),Nl(D,M?g:a),Q&&Q()},O=(D,M)=>{D._isLeaving=!1,Nl(D,c),Nl(D,h),Nl(D,d),M&&M()},N=D=>(M,Q)=>{const j=D?P:v,W=()=>E(M,D,Q);Dl(j,[M,W]),ax(()=>{Nl(M,D?l:o),Ja(M,D?u:s),ox(j)||sx(M,n,f,W)})};return Ur(r,{onBeforeEnter(D){Dl(I,[D]),Ja(D,o),Ja(D,a)},onBeforeAppear(D){Dl(_,[D]),Ja(D,l),Ja(D,g)},onEnter:N(!1),onAppear:N(!0),onLeave(D,M){D._isLeaving=!0;const Q=()=>O(D,M);Ja(D,c),Pee(),Ja(D,d),ax(()=>{D._isLeaving&&(Nl(D,c),Ja(D,h),ox(y)||sx(D,n,C,Q))}),Dl(y,[D,Q])},onEnterCancelled(D){E(D,!1),Dl(p,[D])},onAppearCancelled(D){E(D,!0),Dl(k,[D])},onLeaveCancelled(D){O(D),Dl(b,[D])}})}function Oee(t){if(t==null)return null;if(Wt(t))return[Db(t.enter),Db(t.leave)];{const r=Db(t);return[r,r]}}function Db(t){return Rq(t)}function Ja(t,r){r.split(/\s+/).forEach(e=>e&&t.classList.add(e)),(t[sA]||(t[sA]=new Set)).add(r)}function Nl(t,r){r.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const e=t[sA];e&&(e.delete(r),e.size||(t[sA]=void 0))}function ax(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let kee=0;function sx(t,r,e,n){const i=t._endId=++kee,o=()=>{i===t._endId&&n()};if(e)return setTimeout(o,e);const{type:a,timeout:s,propCount:l}=xee(t,r);if(!a)return n();const g=a+"end";let u=0;const c=()=>{t.removeEventListener(g,d),o()},d=h=>{h.target===t&&++u>=l&&c()};setTimeout(()=>{u<l&&c()},s+1),t.addEventListener(g,d)}function xee(t,r){const e=window.getComputedStyle(t),n=A=>(e[A]||"").split(", "),i=n(`${qa}Delay`),o=n(`${qa}Duration`),a=lx(i,o),s=n(`${th}Delay`),l=n(`${th}Duration`),g=lx(s,l);let u=null,c=0,d=0;r===qa?a>0&&(u=qa,c=a,d=o.length):r===th?g>0&&(u=th,c=g,d=l.length):(c=Math.max(a,g),u=c>0?a>g?qa:th:null,d=u?u===qa?o.length:l.length:0);const h=u===qa&&/\b(transform|all)(,|$)/.test(n(`${qa}Property`).toString());return{type:u,timeout:c,propCount:d,hasTransform:h}}function lx(t,r){for(;t.length<r.length;)t=t.concat(t);return Math.max(...r.map((e,n)=>gx(e)+gx(t[n])))}function gx(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Pee(){return document.body.offsetHeight}function Ree(t,r,e){const n=t[sA];n&&(r=(r?[r,...n]:[...n]).join(" ")),r==null?t.removeAttribute("class"):e?t.setAttribute("class",r):t.className=r}const Dee=Symbol("_vod"),Nee=Symbol("");function Mee(t,r,e){const n=t.style,i=n.display,o=dr(e);if(e&&!o){if(r&&!dr(r))for(const a in r)e[a]==null&&t_(n,a,"");for(const a in e)t_(n,a,e[a])}else if(o){if(r!==e){const a=n[Nee];a&&(e+=";"+a),n.cssText=e}}else r&&t.removeAttribute("style");Dee in t&&(n.display=i)}const ux=/\s*!important$/;function t_(t,r,e){if(je(e))e.forEach(n=>t_(t,r,n));else if(e==null&&(e=""),r.startsWith("--"))t.setProperty(r,e);else{const n=Bee(t,r);ux.test(e)?t.setProperty(zg(n),e.replace(ux,""),"important"):t[n]=e}}const cx=["Webkit","Moz","ms"],Nb={};function Bee(t,r){const e=Nb[r];if(e)return e;let n=ta(r);if(n!=="filter"&&n in t)return Nb[r]=n;n=fm(n);for(let i=0;i<cx.length;i++){const o=cx[i]+n;if(o in t)return Nb[r]=o}return r}const dx="http://www.w3.org/1999/xlink";function Fee(t,r,e,n,i){if(n&&r.startsWith("xlink:"))e==null?t.removeAttributeNS(dx,r.slice(6,r.length)):t.setAttributeNS(dx,r,e);else{const o=Lq(r);e==null||o&&!z4(e)?t.removeAttribute(r):t.setAttribute(r,o?"":e)}}function Lee(t,r,e,n,i,o,a){if(r==="innerHTML"||r==="textContent"){n&&a(n,i,o),t[r]=e??"";return}const s=t.tagName;if(r==="value"&&s!=="PROGRESS"&&!s.includes("-")){t._value=e;const g=s==="OPTION"?t.getAttribute("value"):t.value,u=e??"";g!==u&&(t.value=u),e==null&&t.removeAttribute(r);return}let l=!1;if(e===""||e==null){const g=typeof t[r];g==="boolean"?e=z4(e):e==null&&g==="string"?(e="",l=!0):g==="number"&&(e=0,l=!0)}try{t[r]=e}catch{}l&&t.removeAttribute(r)}function Ca(t,r,e,n){t.addEventListener(r,e,n)}function zee(t,r,e,n){t.removeEventListener(r,e,n)}const hx=Symbol("_vei");function jee(t,r,e,n,i=null){const o=t[hx]||(t[hx]={}),a=o[r];if(n&&a)a.value=n;else{const[s,l]=Vee(r);if(n){const g=o[r]=Hee(n,i);Ca(t,s,g,l)}else a&&(zee(t,s,a,l),o[r]=void 0)}}const Ax=/(?:Once|Passive|Capture)$/;function Vee(t){let r;if(Ax.test(t)){r={};let n;for(;n=t.match(Ax);)t=t.slice(0,t.length-n[0].length),r[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):zg(t.slice(2)),r]}let Mb=0;const Gee=Promise.resolve(),Wee=()=>Mb||(Gee.then(()=>Mb=0),Mb=Date.now());function Hee(t,r){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Gi(Uee(n,e.value),r,5,[n])};return e.value=t,e.attached=Wee(),e}function Uee(t,r){if(je(r)){const e=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{e.call(t),t._stopped=!0},r.map(n=>i=>!i._stopped&&n&&n(i))}else return r}const fx=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Zee=(t,r,e,n,i,o,a,s,l)=>{const g=i==="svg";r==="class"?Ree(t,n,g):r==="style"?Mee(t,e,n):hm(r)?VS(r)||jee(t,r,e,n,a):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):Kee(t,r,n,g))?Lee(t,r,n,o,a,s,l):(r==="true-value"?t._trueValue=n:r==="false-value"&&(t._falseValue=n),Fee(t,r,n,g))};function Kee(t,r,e,n){if(n)return!!(r==="innerHTML"||r==="textContent"||r in t&&fx(r)&&rt(e));if(r==="spellcheck"||r==="draggable"||r==="translate"||r==="form"||r==="list"&&t.tagName==="INPUT"||r==="type"&&t.tagName==="TEXTAREA")return!1;if(r==="width"||r==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return fx(r)&&dr(e)?!1:r in t}const el=t=>{const r=t.props["onUpdate:modelValue"]||!1;return je(r)?e=>lv(r,e):r};function Yee(t){t.target.composing=!0}function Cx(t){const r=t.target;r.composing&&(r.composing=!1,r.dispatchEvent(new Event("input")))}const Hi=Symbol("_assign"),Ix={created(t,{modifiers:{lazy:r,trim:e,number:n}},i){t[Hi]=el(i);const o=n||i.props&&i.props.type==="number";Ca(t,r?"change":"input",a=>{if(a.target.composing)return;let s=t.value;e&&(s=s.trim()),o&&(s=rA(s)),t[Hi](s)}),e&&Ca(t,"change",()=>{t.value=t.value.trim()}),r||(Ca(t,"compositionstart",Yee),Ca(t,"compositionend",Cx),Ca(t,"change",Cx))},mounted(t,{value:r}){t.value=r??""},beforeUpdate(t,{value:r,modifiers:{lazy:e,trim:n,number:i}},o){if(t[Hi]=el(o),t.composing)return;const a=i||t.type==="number"?rA(t.value):t.value,s=r??"";a!==s&&(document.activeElement===t&&t.type!=="range"&&(e||n&&t.value.trim()===s)||(t.value=s))}},Xee={deep:!0,created(t,r,e){t[Hi]=el(e),Ca(t,"change",()=>{const n=t._modelValue,i=_c(t),o=t.checked,a=t[Hi];if(je(n)){const s=HS(n,i),l=s!==-1;if(o&&!l)a(n.concat(i));else if(!o&&l){const g=[...n];g.splice(s,1),a(g)}}else if(od(n)){const s=new Set(n);o?s.add(i):s.delete(i),a(s)}else a(zj(t,o))})},mounted:vx,beforeUpdate(t,r,e){t[Hi]=el(e),vx(t,r,e)}};function vx(t,{value:r,oldValue:e},n){t._modelValue=r,je(r)?t.checked=HS(r,n.props.value)>-1:od(r)?t.checked=r.has(n.props.value):r!==e&&(t.checked=Xs(r,zj(t,!0)))}const Qee={created(t,{value:r},e){t.checked=Xs(r,e.props.value),t[Hi]=el(e),Ca(t,"change",()=>{t[Hi](_c(t))})},beforeUpdate(t,{value:r,oldValue:e},n){t[Hi]=el(n),r!==e&&(t.checked=Xs(r,n.props.value))}},qee={deep:!0,created(t,{value:r,modifiers:{number:e}},n){const i=od(r);Ca(t,"change",()=>{const o=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>e?rA(_c(a)):_c(a));t[Hi](t.multiple?i?new Set(o):o:o[0]),t._assigning=!0,mn(()=>{t._assigning=!1})}),t[Hi]=el(n)},mounted(t,{value:r,oldValue:e,modifiers:{number:n}}){px(t,r,e,n)},beforeUpdate(t,r,e){t[Hi]=el(e)},updated(t,{value:r,oldValue:e,modifiers:{number:n}}){t._assigning||px(t,r,e,n)}};function px(t,r,e,n){const i=t.multiple,o=je(r);if(!(i&&!o&&!od(r))&&!(o&&Xs(r,e))){for(let a=0,s=t.options.length;a<s;a++){const l=t.options[a],g=_c(l);if(i)if(o){const u=typeof g;u==="string"||u==="number"?l.selected=r.includes(n?rA(g):g):l.selected=HS(r,g)>-1}else l.selected=r.has(g);else if(Xs(_c(l),r)){t.selectedIndex!==a&&(t.selectedIndex=a);return}}!i&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function _c(t){return"_value"in t?t._value:t.value}function zj(t,r){const e=r?"_trueValue":"_falseValue";return e in t?t[e]:r}const Jee={created(t,r,e){DC(t,r,e,null,"created")},mounted(t,r,e){DC(t,r,e,null,"mounted")},beforeUpdate(t,r,e,n){DC(t,r,e,n,"beforeUpdate")},updated(t,r,e,n){DC(t,r,e,n,"updated")}};function ete(t,r){switch(t){case"SELECT":return qee;case"TEXTAREA":return Ix;default:switch(r){case"checkbox":return Xee;case"radio":return Qee;default:return Ix}}}function DC(t,r,e,n,i){const a=ete(t.tagName,e.props&&e.props.type)[i];a&&a(t,r,e,n)}const tte=["ctrl","shift","alt","meta"],rte={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,r)=>tte.some(e=>t[`${e}Key`]&&!r.includes(e))},En=(t,r)=>{const e=t._withMods||(t._withMods={}),n=r.join(".");return e[n]||(e[n]=(i,...o)=>{for(let a=0;a<r.length;a++){const s=rte[r[a]];if(s&&s(i,r))return}return t(i,...o)})},nte={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},jj=(t,r)=>{const e=t._withKeys||(t._withKeys={}),n=r.join(".");return e[n]||(e[n]=i=>{if(!("key"in i))return;const o=zg(i.key);if(r.some(a=>a===o||nte[a]===o))return t(i)})},ite=Ur({patchProp:Zee},See);let mx;function Vj(){return mx||(mx=aee(ite))}const yx=(...t)=>{Vj().render(...t)},d2=(...t)=>{const r=Vj().createApp(...t),{mount:e}=r;return r.mount=n=>{const i=ate(n);if(!i)return;const o=r._component;!rt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const a=e(i,!1,ote(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},r};function ote(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function ate(t){return dr(t)?document.querySelector(t):t}var ste=Object.create,Gj=Object.defineProperty,lte=Object.getOwnPropertyDescriptor,h2=Object.getOwnPropertyNames,gte=Object.getPrototypeOf,ute=Object.prototype.hasOwnProperty,cte=(t,r)=>function(){return t&&(r=(0,t[h2(t)[0]])(t=0)),r},Wj=(t,r)=>function(){return r||(0,t[h2(t)[0]])((r={exports:{}}).exports,r),r.exports},dte=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of h2(r))!ute.call(t,i)&&i!==e&&Gj(t,i,{get:()=>r[i],enumerable:!(n=lte(r,i))||n.enumerable});return t},hte=(t,r,e)=>(e=t!=null?ste(gte(t)):{},dte(r||!t||!t.__esModule?Gj(e,"default",{value:t,enumerable:!0}):e,t)),it=cte({"../../node_modules/.pnpm/tsup@8.0.1_postcss@8.4.33_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js"(){}}),Ate=Wj({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(t,r){it(),function(e){var n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},i=["်","ް"],o={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},a={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},s={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},l=[";","?",":","@","&","=","+","$",",","/"].join(""),g=[";","?",":","@","&","=","+","$",","].join(""),u=[".","!","~","*","'","(",")"].join(""),c=function(C,I){var v="-",p="",y="",b=!0,_={},P,k,E,O,N,D,M,Q,j,W,q,oe,Pe,He,Le="";if(typeof C!="string")return"";if(typeof I=="string"&&(v=I),M=s.en,Q=a.en,typeof I=="object"){P=I.maintainCase||!1,_=I.custom&&typeof I.custom=="object"?I.custom:_,E=+I.truncate>1&&I.truncate||!1,O=I.uric||!1,N=I.uricNoSlash||!1,D=I.mark||!1,b=!(I.symbols===!1||I.lang===!1),v=I.separator||v,O&&(Le+=l),N&&(Le+=g),D&&(Le+=u),M=I.lang&&s[I.lang]&&b?s[I.lang]:b?s.en:{},Q=I.lang&&a[I.lang]?a[I.lang]:I.lang===!1||I.lang===!0?{}:a.en,I.titleCase&&typeof I.titleCase.length=="number"&&Array.prototype.toString.call(I.titleCase)?(I.titleCase.forEach(function(me){_[me+""]=me+""}),k=!0):k=!!I.titleCase,I.custom&&typeof I.custom.length=="number"&&Array.prototype.toString.call(I.custom)&&I.custom.forEach(function(me){_[me+""]=me+""}),Object.keys(_).forEach(function(me){var Ve;me.length>1?Ve=new RegExp("\\b"+h(me)+"\\b","gi"):Ve=new RegExp(h(me),"gi"),C=C.replace(Ve,_[me])});for(q in _)Le+=q}for(Le+=v,Le=h(Le),C=C.replace(/(^\s+|\s+$)/g,""),Pe=!1,He=!1,W=0,oe=C.length;W<oe;W++)q=C[W],A(q,_)?Pe=!1:Q[q]?(q=Pe&&Q[q].match(/[A-Za-z0-9]/)?" "+Q[q]:Q[q],Pe=!1):q in n?(W+1<oe&&i.indexOf(C[W+1])>=0?(y+=q,q=""):He===!0?(q=o[y]+n[q],y=""):q=Pe&&n[q].match(/[A-Za-z0-9]/)?" "+n[q]:n[q],Pe=!1,He=!1):q in o?(y+=q,q="",W===oe-1&&(q=o[y]),He=!0):M[q]&&!(O&&l.indexOf(q)!==-1)&&!(N&&g.indexOf(q)!==-1)?(q=Pe||p.substr(-1).match(/[A-Za-z0-9]/)?v+M[q]:M[q],q+=C[W+1]!==void 0&&C[W+1].match(/[A-Za-z0-9]/)?v:"",Pe=!0):(He===!0?(q=o[y]+q,y="",He=!1):Pe&&(/[A-Za-z0-9]/.test(q)||p.substr(-1).match(/A-Za-z0-9]/))&&(q=" "+q),Pe=!1),p+=q.replace(new RegExp("[^\\w\\s"+Le+"_-]","g"),v);return k&&(p=p.replace(/(\w)(\S*)/g,function(me,Ve,We){var ot=Ve.toUpperCase()+(We!==null?We:"");return Object.keys(_).indexOf(ot.toLowerCase())<0?ot:ot.toLowerCase()})),p=p.replace(/\s+/g,v).replace(new RegExp("\\"+v+"+","g"),v).replace(new RegExp("(^\\"+v+"+|\\"+v+"+$)","g"),""),E&&p.length>E&&(j=p.charAt(E)===v,p=p.slice(0,E),j||(p=p.slice(0,p.lastIndexOf(v)))),!P&&!k&&(p=p.toLowerCase()),p},d=function(C){return function(v){return c(v,C)}},h=function(C){return C.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},A=function(f,C){for(var I in C)if(C[I]===f)return!0};if(typeof r<"u"&&r.exports)r.exports=c,r.exports.createSlug=d;else if(typeof define<"u"&&define.amd)define([],function(){return c});else try{if(e.getSlug||e.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";e.getSlug=c,e.createSlug=d}catch{}}(t)}}),fte=Wj({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(t,r){it(),r.exports=Ate()}});it();it();it();it();it();it();var bx,$x,pi=($x=(bx=Je).__VUE_DEVTOOLS_HOOK)!=null?$x:bx.__VUE_DEVTOOLS_HOOK=N4(),Cte={vueAppInit(t){pi.hook(Gr.APP_INIT,t)},vueAppConnected(t){pi.hook(Gr.APP_CONNECTED,t)},componentAdded(t){return pi.hook(Gr.COMPONENT_ADDED,t)},componentUpdated(t){return pi.hook(Gr.COMPONENT_UPDATED,t)},componentRemoved(t){return pi.hook(Gr.COMPONENT_REMOVED,t)},setupDevtoolsPlugin(t){pi.hook(Gr.SETUP_DEVTOOLS_PLUGIN,t)}};function wx(){return{id:"vue-devtools-next",enabled:!1,appRecords:[],apps:{},events:new Map,on(t,r){var e;return this.events.has(t)||this.events.set(t,[]),(e=this.events.get(t))==null||e.push(r),()=>this.off(t,r)},once(t,r){const e=(...n)=>{this.off(t,e),r(...n)};return this.on(t,e),[t,e]},off(t,r){if(this.events.has(t)){const e=this.events.get(t),n=e.indexOf(r);n!==-1&&e.splice(n,1)}},emit(t,...r){this.events.has(t)&&this.events.get(t).forEach(e=>e(...r))}}}function Ite(){const t=Je.__VUE_DEVTOOLS_GLOBAL_HOOK__;t.on(Gr.APP_INIT,(r,e)=>{var n,i,o;(o=(i=(n=r?._instance)==null?void 0:n.type)==null?void 0:i.devtools)!=null&&o.hide||pi.callHook(Gr.APP_INIT,r,e)}),t.on(Gr.COMPONENT_ADDED,async(r,e,n,i)=>{var o,a,s;(s=(a=(o=r?._instance)==null?void 0:o.type)==null?void 0:a.devtools)!=null&&s.hide||!r||typeof e!="number"&&!e||!i||pi.callHook(Gr.COMPONENT_ADDED,r,e,n,i)}),t.on(Gr.COMPONENT_UPDATED,(r,e,n,i)=>{!r||typeof e!="number"&&!e||!i||pi.callHook(Gr.COMPONENT_UPDATED,r,e,n,i)}),t.on(Gr.COMPONENT_REMOVED,async(r,e,n,i)=>{!r||typeof e!="number"&&!e||!i||pi.callHook(Gr.COMPONENT_REMOVED,r,e,n,i)}),t.on(Gr.SETUP_DEVTOOLS_PLUGIN,(r,e)=>{pi.callHook(Gr.SETUP_DEVTOOLS_PLUGIN,r,e)})}var ig={on:Cte},Ec="__VUE_DEVTOOLS_ROUTER_INFO__",tp="__VUE_DEVTOOLS_ROUTER__",_x,Ex;(Ex=(_x=Je)[Ec])!=null||(_x[Ec]={currentRoute:null,routes:[],router:null});var Sx,Tx;(Tx=(Sx=Je)[tp])!=null||(Sx[tp]=null);var vte=new Proxy(Je[Ec],{get(t,r){return Je[Ec][r]}});function pte(t){const r=o=>{const a=new Map;return(o?.getRoutes()||[]).filter(s=>!a.has(s.path)&&a.set(s.path,1))};function e(o){return o.map(a=>{let{path:s,name:l,children:g}=a;return g?.length&&(g=e(g)),{path:s,name:l,children:g}})}function n(o){if(o){const{fullPath:a,hash:s,href:l,path:g,name:u,matched:c,params:d,query:h}=o;return{fullPath:a,hash:s,href:l,path:g,name:u,params:d,query:h,matched:e(c)}}return o}function i(){var o;const a=(o=t.app)==null?void 0:o.config.globalProperties.$router,s=n(a?.currentRoute.value),l=e(r(a)),g=console.warn;console.warn=()=>{},Je[Ec]={currentRoute:s?bc(s):{},routes:bc(l)},Je[tp]=a,console.warn=g}i(),ig.on.componentUpdated($c(()=>{i(),jt.callHook("router-info:updated",Je[Ec])},200))}function mte(t){return t.replace(/\D/g,"")||"0"}var Cs="__VUE_DEVTOOLS_GLOBAL_STATE__",zo="__VUE_DEVTOOLS_CONTEXT__",Hj={appRecord:null,api:null,inspector:[],timelineLayer:[],routerInfo:{},router:null,activeInspectorTreeId:"",componentPluginHookBuffer:[]},Ox,kx;(kx=(Ox=Je)[Cs])!=null||(Ox[Cs]={connected:!1,clientConnected:!1,appRecords:[],activeAppRecord:null,selectedComponentId:null,pluginBuffer:[],tabs:[],commands:[],vitePluginDetected:!1,activeAppRecordId:null});var xx,Px;(Px=(xx=Je)[zo])!=null||(xx[zo]=bc(Hj));var yte=$c((t,r)=>{jt.callHook("devtools:state-updated",t,r)},80),bte=$c((t,r)=>{jt.callHook("devtools:connected-updated",t,r)},80),Vt=new Proxy(Je[Cs],{get(t,r){return Je[Cs][r]},set(t,r,e){var n;const i={...Je[Cs]};return t[r]=e,Je[Cs][r]=e,r==="activeAppRecord"&&(Je[zo].appRecord=e,Je[zo].api=e.api,Je[zo].inspector=(n=e.inspector)!=null?n:[],pte(e),Je[zo].routerInfo=vte),yte(Je[Cs],i),["connected","clientConnected"].includes(r.toString())&&i[r]!==e&&bte(Je[Cs],i),!0},deleteProperty(t,r){return delete t[r],!0}});Object.defineProperty(Vt.tabs,"push",{configurable:!0,value(...t){const r=Array.prototype.push.apply(this,t);return Vt.tabs=this,jt.callHook("custom-tabs:updated",this),r}});["push","splice"].forEach(t=>{Object.defineProperty(Vt.commands,t,{configurable:!0,value(...r){const e=Array.prototype[t].apply(this,r);return Vt.commands=this,jt.callHook("custom-commands:updated",this),e}})});var Cr=new Proxy(Je[zo],{get(t,r){return r==="router"?Je[tp]:r==="clear"?$te:Je[zo][r]},set(t,r,e){return r==="componentPluginHookBuffer"&&(Je[zo][r]=e),!0}});function $te(){Je[zo]=bc(Hj)}it();it();it();it();var wte=new Set(["nextTick","defineComponent","defineAsyncComponent","defineCustomElement","ref","computed","reactive","readonly","watchEffect","watchPostEffect","watchSyncEffect","watch","isRef","unref","toRef","toRefs","isProxy","isReactive","isReadonly","shallowRef","triggerRef","customRef","shallowReactive","shallowReadonly","toRaw","markRaw","effectScope","getCurrentScope","onScopeDispose","onMounted","onUpdated","onUnmounted","onBeforeMount","onBeforeUpdate","onBeforeUnmount","onErrorCaptured","onRenderTracked","onRenderTriggered","onActivated","onDeactivated","onServerPrefetch","provide","inject","h","mergeProps","cloneVNode","isVNode","resolveComponent","resolveDirective","withDirectives","withModifiers"]),Rx=/^\[native Symbol Symbol\((.*)\)\]$/,_te=/^\[object (\w+)]$/,rp=/^\[native (\w+) (.*?)(<>((.|\s)*))?\]$/,Ete=/^(?:function|class) (\w+)/,Dx=1e4,Nx=5e3,QA="__vue_devtool_undefined__",Sm="__vue_devtool_infinity__",Tm="__vue_devtool_negative_infinity__",Om="__vue_devtool_nan__",Ste={"<":"<",">":">",'"':""","&":"&"};it();it();function Tte(t){return t.name||t._componentTag||t.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||t.__name}function Uj(t){const r=t.__file;if(r)return R4(Cq(r,".vue"))}function Ote(t){const r=t.displayName||t.name||t._componentTag;return r||Uj(t)}function Mx(t,r){return t.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=r,r}function lc(t){if(t.__VUE_DEVTOOLS_APP_RECORD__)return t.__VUE_DEVTOOLS_APP_RECORD__;if(t.root)return t.appContext.app.__VUE_DEVTOOLS_APP_RECORD__}async function cv(t){const{app:r,uid:e,instance:n}=t;try{if(n.__VUE_DEVTOOLS_UID__)return n.__VUE_DEVTOOLS_UID__;const i=await lc(r);if(!i)return null;const o=i.rootInstance===n;return`${i.id}:${o?"root":e}`}catch{}}function A2(t){var r;return((r=t.subTree)==null?void 0:r.type)===be}function Bb(t){return t._isBeingDestroyed||t.isUnmounted}function cl(t){var r,e,n;const i=Tte(t.type||{});if(i)return i;if(t.root===t)return"Root";for(const a in(e=(r=t.parent)==null?void 0:r.type)==null?void 0:e.components)if(t.parent.type.components[a]===t.type)return Mx(t,a);for(const a in(n=t.appContext)==null?void 0:n.components)if(t.appContext.components[a]===t.type)return Mx(t,a);const o=Uj(t.type||{});return o||"Anonymous Component"}function Zj(t){var r,e,n;const i=(n=(e=(r=t?.appContext)==null?void 0:r.app)==null?void 0:e.__VUE_DEVTOOLS_APP_RECORD_ID__)!=null?n:0,o=t===t.root?"root":t.uid;return`${i}:${o}`}function kte(t){return t==null?"":typeof t=="number"?t:typeof t=="string"?`'${t}'`:Array.isArray(t)?"Array":"Object"}function dl(t){try{return t()}catch(r){return r}}function Sc(t,r){return r=r||`${t.id}:root`,t.instanceMap.get(r)||t.instanceMap.get(":root")}it();it();it();function xte(t){return t._&&Object.keys(t._).includes("vnode")}function Kj(t){return Object.prototype.toString.call(t)==="[object Object]"}function Pte(t){if(t==null)return!0;const r=typeof t;return r==="string"||r==="number"||r==="boolean"}function Yj(t){return!!t.__v_isRef}function Rte(t){return Yj(t)&&!!t.effect}function Dte(t){return!!t.__v_isReactive}function Nte(t){return!!t.__v_isReadonly}var np={[QA]:"undefined",[Om]:"NaN",[Sm]:"Infinity",[Tm]:"-Infinity"},Fb=Object.entries(np).reduce((t,[r,e])=>(t[e]=r,t),{});function Mte(t){return t===null?"null":typeof t=="string"&&np[t]||!1}function Bte(t){const r=new RegExp(`"(${Object.keys(np).join("|")})"`,"g");return t.replace(r,(e,n)=>np[n])}function Fte(t){const r=Fb[t.trim()];if(r)return`"${r}"`;const e=new RegExp(`:\\s*(${Object.keys(Fb).join("|")})`,"g");return t.replace(e,(n,i)=>`:"${Fb[i]}"`)}function Xj(t){if(Array.isArray(t))return t.map(e=>Xj(e)).join(" or ");if(t==null)return"null";const r=t.toString().match(Ete);return typeof t=="function"&&r&&r[1]||"any"}function Lte(t){return!Pte(t)&&!Array.isArray(t)&&!Kj(t)?Object.prototype.toString.call(t):t}function Qj(t){return{ref:Yj(t),computed:Rte(t),reactive:Dte(t),readonly:Nte(t)}}function qj(t){return t?.__v_raw?t.__v_raw:t}function Ih(t){return t.replace(/[<>"&]/g,r=>Ste[r]||r)}function ip(t,r,e){if(typeof r=="function"&&(r=r.options),!r)return t;const{mixins:n,extends:i}=r;i&&ip(t,i),n&&n.forEach(o=>ip(t,o));for(const o of["computed","inject"])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]?Object.assign(t[o],r[o]):t[o]=r[o]);return t}function zte(t){const r=t.type,{mixins:e,extends:n}=r,i=t.appContext.mixins;if(!i.length&&!e&&!n)return r;const o={};return i.forEach(a=>ip(o,a)),ip(o,r),o}function jte(t){const r=[],e=t.type.props;for(const n in t.props){const i=e?e[n]:null,o=Aq(n);r.push({type:"props",key:o,value:dl(()=>t.props[n]),meta:i?{type:i.type?Xj(i.type):"any",required:!!i.required,...i.default?{default:i.default.toString()}:{}}:{type:"invalid"}})}return r}function Vte(t){const r=t.type,e=r.props,n=r.vuex&&r.vuex.getters,i=r.computed,o={...t.data,...t.renderContext};return Object.keys(o).filter(a=>!(e&&a in e)&&!(n&&a in n)&&!(i&&a in i)).map(a=>({key:a,type:"data",value:dl(()=>o[a]),editable:!0}))}function Gte(t){const r=t.computed?"computed":t.ref?"ref":t.reactive?"reactive":null,e=r?`${r.charAt(0).toUpperCase()}${r.slice(1)}`:null;return{stateType:r,stateTypeName:e}}function Wte(t){const r=t.devtoolsRawSetupState||{};return Object.keys(t.setupState).filter(e=>!wte.has(e)&&e.split(/(?=[A-Z])/)[0]!=="use").map(e=>{var n,i,o,a;const s=dl(()=>qj(t.setupState[e])),l=r[e];let g,u=typeof s=="function"||typeof s?.render=="function"||typeof s?.__asyncLoader=="function";if(l){const d=Qj(l),{stateType:h,stateTypeName:A}=Gte(d),f=d.ref||d.computed||d.reactive,C=((i=(n=l.effect)==null?void 0:n.raw)==null?void 0:i.toString())||((a=(o=l.effect)==null?void 0:o.fn)==null?void 0:a.toString());h&&(u=!1),g={...h?{stateType:h,stateTypeName:A}:{},...C?{raw:C}:{},editable:f&&!d.readonly}}return{key:e,value:s,type:u?"setup (other)":"setup",...g}})}function Hte(t,r){const e=r,n=[],i=e.computed||{};for(const o in i){const a=i[o],s=typeof a=="function"&&a.vuex?"vuex bindings":"computed";n.push({type:s,key:o,value:dl(()=>{var l;return(l=t?.proxy)==null?void 0:l[o]}),editable:typeof a.set=="function"})}return n}function Ute(t){return Object.keys(t.attrs).map(r=>({type:"attrs",key:r,value:dl(()=>t.attrs[r])}))}function Zte(t){return Reflect.ownKeys(t.provides).map(r=>({type:"provided",key:r.toString(),value:dl(()=>t.provides[r])}))}function Kte(t,r){if(!r?.inject)return[];let e=[],n;return Array.isArray(r.inject)?e=r.inject.map(i=>({key:i,originalKey:i})):e=Reflect.ownKeys(r.inject).map(i=>{const o=r.inject[i];let a;return typeof o=="string"||typeof o=="symbol"?a=o:(a=o.from,n=o.default),{key:i,originalKey:a}}),e.map(({key:i,originalKey:o})=>({type:"injected",key:o&&i!==o?`${o.toString()} ➞ ${i.toString()}`:i.toString(),value:dl(()=>t.ctx.hasOwnProperty(i)?t.ctx[i]:t.provides.hasOwnProperty(o)?t.provides[o]:n)}))}function Yte(t){return Object.keys(t.refs).map(r=>({type:"refs",key:r,value:dl(()=>t.refs[r])}))}function Xte(t){var r;const e=t.type.emits,n=Array.isArray(e)?e:Object.keys(e??{}),i=Object.keys((r=t.vnode.props)!=null?r:{}),o=[];for(const a of i){const[s,...l]=a.split(/(?=[A-Z])/);if(s==="on"){const g=l.join("-").toLowerCase(),u=n.includes(g);o.push({type:"event listeners",key:g,value:{_custom:{displayText:u?"✅ Declared":"⚠️ Not declared",key:u?"✅ Declared":"⚠️ Not declared",value:u?"✅ Declared":"⚠️ Not declared",tooltipText:u?null:`The event <code>${g}</code> is not declared in the <code>emits</code> option. It will leak into the component's attributes (<code>$attrs</code>).`}}})}}return o}function Jj(t){const r=zte(t);return jte(t).concat(Vte(t),Wte(t),Hte(t,r),Ute(t),Zte(t),Kte(t,r),Yte(t),Xte(t))}function Qte(t){let r="",e=null;try{r=Function.prototype.toString.call(t),e=String.prototype.match.call(r,/\([\s\S]*?\)/)}catch{}const n=e&&e[0],i=typeof n=="string"?n:"(?)",o=typeof t.name=="string"?t.name:"";return{_custom:{type:"function",displayText:`<span style="opacity:.5;">function</span> ${Ih(o)}${i}`,tooltipText:r.trim()?`<pre>${r}</pre>`:null}}}function qte(t){const r=BigInt.prototype.toString.call(t);return{_custom:{type:"bigint",displayText:`BigInt(${r})`,value:r}}}function Jte(t){const r=[];return t.forEach((e,n)=>r.push({key:n,value:e})),{_custom:{type:"map",displayText:"Map",value:r,readOnly:!0,fields:{abstract:!0}}}}function ere(t){const r=Array.from(t);return{_custom:{type:"set",displayText:`Set[${r.length}]`,value:r,readOnly:!0}}}function tre(t){const r={},e=t.getters||{},n=Object.keys(e);for(let i=0;i<n.length;i++){const o=n[i];Object.defineProperty(r,o,{enumerable:!0,get:()=>{try{return e[o]}catch(a){return a}}})}return r}function rre(t){if(t.length)return t.reduce((r,e)=>{const n=e.type||"data",i=r[n]=r[n]||{};return i[e.key]=e.value,r},{})}function nre(t){const r={},e=t.length;for(let n=0;n<e;n++){const i=t.item(n);r[i.name]=i.value}return r}function ire(t){return{_custom:{type:"store",displayText:"Store",value:{state:t.state,getters:tre(t)},fields:{abstract:!0}}}}function ore(t){return{_custom:{type:"router",displayText:"VueRouter",value:{options:t.options,currentRoute:t.currentRoute},fields:{abstract:!0}}}}function are(t){t._&&(t=t._);const r=Jj(t);return{_custom:{type:"component",id:t.__VUE_DEVTOOLS_UID__,displayText:cl(t),tooltipText:"Component instance",value:rre(r),fields:{abstract:!0}}}}function sre(t){let r=Ote(t);return r?t.name&&t.__file&&(r+=` <span>(${t.__file})</span>`):r="<i>Unknown Component</i>",{_custom:{type:"component-definition",displayText:r,tooltipText:"Component definition",...t.__file?{file:t.__file}:{}}}}function lre(t){try{return{_custom:{type:"HTMLElement",displayText:`<span class="opacity-30"><</span><span class="text-blue-500">${t.tagName.toLowerCase()}</span><span class="opacity-30">></span>`,value:nre(t.attributes)}}}catch{return{_custom:{type:"HTMLElement",displayText:`<span class="text-blue-500">${String(t)}</span>`}}}}function gre(t){var r,e,n,i;const o=Qj(t);if(o.ref||o.computed||o.reactive){const s=o.computed?"Computed":o.ref?"Ref":o.reactive?"Reactive":null,l=qj(o.reactive?t:t._value),g=((e=(r=t.effect)==null?void 0:r.raw)==null?void 0:e.toString())||((i=(n=t.effect)==null?void 0:n.fn)==null?void 0:i.toString());return{_custom:{type:s?.toLowerCase(),stateTypeName:s,value:l,...g?{tooltipText:`<span class="font-mono">${g}</span>`}:{}}}}if(typeof t.__asyncLoader=="function")return{_custom:{type:"component-definition",display:"Async component definition"}}}function ure(t){var r;if(t==="compilerOptions")return;const e=this[t],n=typeof e;if(Array.isArray(e)){const i=e.length;return i>Nx?{_isArray:!0,length:i,items:e.slice(0,Nx)}:e}else{if(typeof e=="string")return e.length>Dx?`${e.substring(0,Dx)}... (${e.length} total length)`:e;if(n==="undefined")return QA;if(e===Number.POSITIVE_INFINITY)return Sm;if(e===Number.NEGATIVE_INFINITY)return Tm;if(typeof e=="function")return Qte(e);if(n==="symbol")return`[native Symbol ${Symbol.prototype.toString.call(e)}]`;if(typeof e=="bigint")return qte(e);if(e!==null&&typeof e=="object"){const i=Object.prototype.toString.call(e);if(i==="[object Map]")return Jte(e);if(i==="[object Set]")return ere(e);if(i==="[object RegExp]")return`[native RegExp ${RegExp.prototype.toString.call(e)}]`;if(i==="[object Date]")return`[native Date ${Date.prototype.toString.call(e)}]`;if(i==="[object Error]")return`[native Error ${e.message}<>${e.stack}]`;if(e.state&&e._vm)return ire(e);if(e.constructor&&e.constructor.name==="VueRouter")return ore(e);if(xte(e))return are(e);if(typeof e.render=="function")return sre(e);if(e.constructor&&e.constructor.name==="VNode")return`[native VNode <${e.tag}>]`;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return lre(e);if(((r=e.constructor)==null?void 0:r.name)==="Store"&&e._wrappedGetters)return"[object Store]";if(e.currentRoute)return"[object Router]";const o=gre(e);if(o!=null)return o}else if(Number.isNaN(e))return Om}return Lte(e)}it();function cre(t){const r=new Set,e=t._custom.value;for(let n=0;n<e.length;n++){const i=e[n];r.add(km(i))}return r}function dre(t){const r=new Map,e=t._custom.value;for(let n=0;n<e.length;n++){const{key:i,value:o}=e[n];r.set(i,km(o))}return r}function km(t){var r;if(t!==QA){if(t===Sm)return Number.POSITIVE_INFINITY;if(t===Tm)return Number.NEGATIVE_INFINITY;if(t===Om)return Number.NaN;if(t&&t._custom){const{_custom:e}=t;return e.type==="component"?(r=Cr.appRecord)==null?void 0:r.instanceMap.get(e.id):e.type==="map"?dre(t):e.type==="set"?cre(t):e.type==="bigint"?BigInt(e.value):km(e.value)}else if(Rx.test(t)){const[,e]=Rx.exec(t);return Symbol.for(e)}else if(rp.test(t)){const[,e,n,,i]=rp.exec(t),o=new Je[e](n);return e==="Error"&&i&&(o.stack=i),o}else return t}}function e8(t,r){return km(r)}it();var NC=512*1024;function r_(t,r,e,n){let i,o,a,s,l;const g=n.get(t);if(g!=null)return g;const u=e.length,c=Object.prototype.toString.call(t);if(c==="[object Object]"){i={},n.set(t,u),e.push(i);const d=Object.keys(t);for(s=0,l=d.length;s<l;s++){o=d[s];try{if(o==="compilerOptions")return;a=t[o],r&&(a=r.call(t,o,a))}catch(h){a=h}i[o]=r_(a,r,e,n)}}else if(c==="[object Array]")for(i=[],n.set(t,u),e.push(i),s=0,l=t.length;s<l;s++){try{a=t[s],r&&(a=r.call(t,s,a))}catch(d){a=d}i[s]=r_(a,r,e,n)}else e.push(t);return u}function hre(t,r=null){let e=t.length,n,i,o,a,s,l;for(;e--;)if(o=t[e],l=Object.prototype.toString.call(o),l==="[object Object]"){const g=Object.keys(o);for(n=0,i=g.length;n<i;n++)a=g[n],s=t[o[a]],r&&(s=r.call(o,a,s)),o[a]=s}else if(l==="[object Array]")for(n=0,i=o.length;n<i;n++)s=t[o[n]],r&&(s=r.call(o,n,s)),o[n]=s}function Are(t,r=null,e=null){let n;try{n=arguments.length===1?JSON.stringify(t):JSON.stringify(t,r,e)}catch{n=fre(t,r,e)}if(n.length>NC){const i=Math.ceil(n.length/NC),o=[];for(let a=0;a<i;a++)o.push(n.slice(a*NC,(a+1)*NC));return o}return n}function fre(t,r=null,e=null){const n=[];return r_(t,r,n,new Map),e?` ${JSON.stringify(n,null,e)}`:` ${JSON.stringify(n)}`}function Bx(t,r=null){if(Array.isArray(t)&&(t=t.join("")),/^\s/.test(t)){const n=JSON.parse(t);return hre(n,r),n[0]}else return arguments.length===1?JSON.parse(t):JSON.parse(t,r)}it();function xm(t,r=!0){const e=typeof t;if(t==null||t===QA)return"null";if(e==="boolean"||e==="number"||t===Sm||t===Tm||t===Om)return"literal";if(t?._custom)return r||t._custom.display!=null||t._custom.displayText!=null?"custom":xm(t._custom.value);if(typeof t=="string"){const n=rp.exec(t);if(n){const[,i]=n;return`native ${i}`}else return"string"}else return Array.isArray(t)||t?._isArray?"array":Kj(t)?"plain-object":"unknown"}function t8(t,r=!1){var e,n;let i;const o=xm(t,!1);if(o!=="custom"&&t?._custom&&(t=t._custom.value),i=Mte(t))return i;if(o==="custom")return((e=t._custom.value)==null?void 0:e._custom)&&t8(t._custom.value)||t._custom.displayText||t._custom.display;if(o==="array")return`Array[${t.length}]`;if(o==="plain-object")return`Object${Object.keys(t).length?"":" (empty)"}`;if(o?.includes("native"))return Ih((n=rp.exec(t))==null?void 0:n[2]);if(typeof t=="string"){const a=t.match(_te);a?t=Ih(a[1]):r?t=`<span>"</span>${Ih(t)}<span>"</span>`:t=Ih(t),t=t.replace(/ /g," ").replace(/\n/g,"<span>\\n</span>")}return t}function f2(t){var r,e;const n=xm(t)==="custom";let i={};if(n){const o=t,a=(r=o._custom)==null?void 0:r.value,s=typeof a=="object"&&a!==null&&"_custom"in a?f2(a):{inherit:void 0,value:void 0};i=s.inherit||((e=o._custom)==null?void 0:e.fields)||{},t=s.value||a}return t&&t._isArray&&(t=t.items),{value:t,inherit:i}}function Cre(t){return Bte(JSON.stringify(t))}function r8(t){return JSON.parse(Fte(t),e8)}function Nu(t){return Are(t,ure)}function Do(t,r=!1){return t?r?Bx(t,e8):Bx(t):{}}it();function Ire(){return Date.now()}it();it();function vre(t){Cr.inspector.push(t)}function n_(t){return Cr.inspector.find(r=>r.id===t)}function Fx(t,r){const e=n_(t);e&&Object.assign(e,r)}it();function pre(t){Cr.timelineLayer.push(t)}it();it();var n8=class{constructor(){this.refEditor=new mre}set(t,r,e,n){const i=Array.isArray(r)?r:r.split(".");for(;i.length>1;){const s=i.shift();t=t[s],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}const o=i[0],a=this.refEditor.get(t)[o];n?n(t,o,e):this.refEditor.isRef(a)?this.refEditor.set(a,e):t[o]=e}get(t,r){const e=Array.isArray(r)?r:r.split(".");for(let n=0;n<e.length;n++)if(t=t[e[n]],this.refEditor.isRef(t)&&(t=this.refEditor.get(t)),!t)return;return t}has(t,r,e=!1){if(typeof t>"u")return!1;const n=Array.isArray(r)?r.slice():r.split("."),i=e?2:1;for(;t&&n.length>i;){const o=n.shift();t=t[o],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}return t!=null&&Object.prototype.hasOwnProperty.call(t,n[0])}createDefaultSetCallback(t){return(r,e,n)=>{if((t.remove||t.newKey)&&(Array.isArray(r)?r.splice(e,1):mt(r)instanceof Map&&typeof n=="object"&&n&&"key"in n?r.delete(n.key):mt(r)instanceof Set?r.delete(n):Reflect.deleteProperty(r,e)),!t.remove){const i=r[t.newKey||e];this.refEditor.isRef(i)?this.refEditor.set(i,n):r[t.newKey||e]=n}}}},mre=class{set(t,r){if(ze(t))t.value=r;else{const e=Object.keys(t),n=Object.keys(r);e.length>n.length&&e.filter(o=>!n.includes(o)).forEach(o=>Reflect.deleteProperty(t,o)),n.forEach(i=>{Reflect.set(t,i,Reflect.get(r,i))})}}get(t){return ze(t)?t.value:t}isRef(t){return ze(t)||ng(t)}};async function yre(t,r){const{path:e,nodeId:n,state:i,type:o}=t,a=Sc(Cr.appRecord,n);if(!a)return;const s=e.slice();let l;a.devtoolsRawSetupState&&Object.keys(a.devtoolsRawSetupState).includes(e[0])&&(l=a.devtoolsRawSetupState),l&&s&&(i.type,r.set(l,s,i.value,r.createDefaultSetCallback(i)))}var bre=new n8;async function $re(t){yre(t,bre)}it();function wre(t={}){const{file:r,line:e=0,column:n=0}=t;if(r){const i=window.location.origin;Je.__VUE_DEVTOOLS_VITE_PLUGIN_DETECTED__&&Je.__VUE_INSPECTOR__.openInEditor(i,r,e,n)}}it();it();it();it();function _re(t,r){Vt.pluginBuffer.push([t,r])}async function Ere(t){const{app:r,api:e}=t;Vt.pluginBuffer.filter(([i])=>i.app===r).forEach(async([i,o])=>{if(i.packageName!=="vue-query"){if(await lc(i.app),i.packageName==="vue-router"){const a=mte(`${i.id}`);i.app===r&&(Vt.appRecords=Vt.appRecords.map(s=>({...s,routerId:a})))}o(e)}}),Vt.appRecords=Vt.appRecords.map(i=>{var o,a;const s=(a=(o=i.app)==null?void 0:o.config)==null?void 0:a.globalProperties;return s?{...i,moduleDetectives:{vueRouter:!!s.$router,pinia:!!s.$pinia,vueI18n:!!s.$i18n}}:i})}function Sre(t,r){return pi.callHook(Gr.SETUP_DEVTOOLS_PLUGIN,t,r)}it();it();function op(t){return A2(t)?Tre(t.subTree):t.subTree?[t.subTree.el]:[]}function Tre(t){if(!t.children)return[];const r=[];return t.children.forEach(e=>{e.component?r.push(...op(e.component)):e?.el&&r.push(e.el)}),r}it();var Ore=class{constructor(t){this.filter=t||""}isQualified(t){const r=cl(t);return R4(r).toLowerCase().includes(this.filter)||fq(r).toLowerCase().includes(this.filter)}};function kre(t){return new Ore(t)}var xre=class{constructor(t){this.captureIds=new Map;const{filterText:r="",maxDepth:e,recursively:n}=t;this.componentFilter=kre(r),this.maxDepth=e,this.recursively=n}getComponentTree(t){return this.captureIds=new Map,this.findQualifiedChildren(t,0)}getComponentParents(t){this.captureIds=new Map;const r=[];this.captureId(t);let e=t;for(;e=e.parent;)this.captureId(e),r.push(e);return r}captureId(t){if(!t)return null;const r=t.__VUE_DEVTOOLS_UID__!=null?t.__VUE_DEVTOOLS_UID__:Zj(t);return t.__VUE_DEVTOOLS_UID__=r,this.captureIds.has(r)?null:(this.captureIds.set(r,void 0),this.mark(t),r)}async capture(t,r){var e;if(!t)return null;const n=this.captureId(t),i=cl(t),o=this.getInternalInstanceChildren(t.subTree).filter(c=>!Bb(c)),a=this.getComponentParents(t)||[],s=!!t.isDeactivated||a.some(c=>c.isDeactivated),l={uid:t.uid,id:n,name:i,renderKey:kte(t.vnode?t.vnode.key:null),inactive:s,children:[],isFragment:A2(t),tags:typeof t.type!="function"?[]:[{label:"functional",textColor:5592405,backgroundColor:15658734}],autoOpen:this.recursively,file:t.type.__file||""};if((r<this.maxDepth||t.type.__isKeepAlive||a.some(c=>c.type.__isKeepAlive))&&(l.children=await Promise.all(o.map(c=>this.capture(c,r+1)).filter(Boolean))),this.isKeepAlive(t)){const c=this.getKeepAliveCachedInstances(t),d=o.map(h=>h.__VUE_DEVTOOLS_UID__);for(const h of c)if(!d.includes(h.__VUE_DEVTOOLS_UID__)){const A=await this.capture({...h,isDeactivated:!0},r+1);A&&l.children.push(A)}}const u=op(t)[0];if(u?.parentElement){const c=t.parent,d=c?op(c):[];let h=u;const A=[];do A.push(Array.from(h.parentElement.childNodes).indexOf(h)),h=h.parentElement;while(h.parentElement&&d.length&&!d.includes(h));l.domOrder=A.reverse()}else l.domOrder=[-1];return(e=t.suspense)!=null&&e.suspenseKey&&(l.tags.push({label:t.suspense.suspenseKey,backgroundColor:14979812,textColor:16777215}),this.mark(t,!0)),Cr.api.visitComponentTree({treeNode:l,componentInstance:t,app:t.appContext.app,filter:this.componentFilter.filter}),l}async findQualifiedChildren(t,r){var e;if(this.componentFilter.isQualified(t)&&!((e=t.type.devtools)!=null&&e.hide))return[await this.capture(t,r)];if(t.subTree){const n=this.isKeepAlive(t)?this.getKeepAliveCachedInstances(t):this.getInternalInstanceChildren(t.subTree);return this.findQualifiedChildrenFromList(n,r)}else return[]}async findQualifiedChildrenFromList(t,r){return t=t.filter(e=>{var n;return!Bb(e)&&!((n=e.type.devtools)!=null&&n.hide)}),this.componentFilter.filter?Array.prototype.concat.apply([],await Promise.all(t.map(e=>this.findQualifiedChildren(e,r)))):Promise.all(t.map(e=>this.capture(e,r)))}getInternalInstanceChildren(t,r=null){const e=[];if(t)if(t.component)r?e.push({...t.component,suspense:r}):e.push(t.component);else if(t.suspense){const n=t.suspense.isInFallback?"suspense fallback":"suspense default";e.push(...this.getInternalInstanceChildren(t.suspense.activeBranch,{...t.suspense,suspenseKey:n}))}else Array.isArray(t.children)&&t.children.forEach(n=>{n.component?r?e.push({...n.component,suspense:r}):e.push(n.component):e.push(...this.getInternalInstanceChildren(n,r))});return e.filter(n=>{var i;return!Bb(n)&&!((i=n.type.devtools)!=null&&i.hide)})}mark(t,r=!1){const e=lc(t).instanceMap;(r||!e.has(t.__VUE_DEVTOOLS_UID__))&&e.set(t.__VUE_DEVTOOLS_UID__,t)}isKeepAlive(t){return t.type.__isKeepAlive&&t.__v_cache}getKeepAliveCachedInstances(t){return Array.from(t.__v_cache.values()).map(r=>r.component).filter(Boolean)}};it();function Pre(t){var r;const e=Sc(Cr.appRecord,t.instanceId),n=Zj(e),i=cl(e),o=(r=e?.type)==null?void 0:r.__file,a=Jj(e);return{id:n,name:i,file:o,state:a,instance:e}}it();function Rre(){const t={top:0,bottom:0,left:0,right:0,get width(){return t.right-t.left},get height(){return t.bottom-t.top}};return t}var MC;function Dre(t){return MC||(MC=document.createRange()),MC.selectNode(t),MC.getBoundingClientRect()}function Nre(t){const r=Rre();if(!t.children)return r;for(let e=0,n=t.children.length;e<n;e++){const i=t.children[e];let o;if(i.component)o=bg(i.component);else if(i.el){const a=i.el;a.nodeType===1||a.getBoundingClientRect?o=a.getBoundingClientRect():a.nodeType===3&&a.data.trim()&&(o=Dre(a))}o&&Mre(r,o)}return r}function Mre(t,r){return(!t.top||r.top<t.top)&&(t.top=r.top),(!t.bottom||r.bottom>t.bottom)&&(t.bottom=r.bottom),(!t.left||r.left<t.left)&&(t.left=r.left),(!t.right||r.right>t.right)&&(t.right=r.right),t}var Lx={top:0,left:0,right:0,bottom:0,width:0,height:0};function bg(t){const r=t.subTree.el;return typeof window>"u"?Lx:A2(t)?Nre(t.subTree):r?.nodeType===1?r?.getBoundingClientRect():t.subTree.component?bg(t.subTree.component):Lx}it();var zx,jx,jt=(jx=(zx=Je).__VUE_DEVTOOLS_API_HOOK)!=null?jx:zx.__VUE_DEVTOOLS_API_HOOK=N4(),Bre={devtoolsStateUpdated(t){jt.hook("devtools:state-updated",t)},routerInfoUpdated(t){jt.hook("router-info:updated",t)},getComponentBoundingRect(t){jt.hook("component-bounding-rect:get",t)},inspectComponent(t){jt.hook("component-state:inspect",t)},visitComponentTree(t){jt.hook("component-tree:visit",t)},getInspectorTree(t){jt.hook("inspector-tree:get",t)},getInspectorState(t){jt.hook("inspector-state:get",t)},sendInspectorTree(t){jt.hook("inspector-tree:send",t)},sendInspectorState(t){jt.hook("inspector-state:send",t)},addTimelineEvent(t){jt.hook("timeline:add-event",t)},editInspectorState(t){jt.hook("inspector-state:edit",t)},editComponentState(){},customTabsUpdated(t){jt.hook("custom-tabs:updated",t)},customCommandsUpdated(t){jt.hook("custom-commands:updated",t)}},es="components";function Fre(t){Sre({id:es,label:"Components",app:t},r=>{r.addInspector({id:es,label:"Components",treeFilterPlaceholder:"Search components"}),r.on.getComponentBoundingRect(s=>{if(s.app===t&&s.inspectorId===es){const l=Sc(Cr.appRecord,s.instanceId);if(l){if(typeof DOMRect>"u")return;s.rect=bg(l),s.rect instanceof DOMRect&&(s.rect={top:s.rect.top,left:s.rect.left,right:s.rect.right,bottom:s.rect.bottom,width:s.rect.width,height:s.rect.height})}}}),r.on.getInspectorTree(async s=>{if(s.app===t&&s.inspectorId===es){const l=Sc(Cr.appRecord,s.instanceId);if(l){const g=new xre({filterText:s.filter,maxDepth:100,recursively:!1});s.rootNodes=await g.getComponentTree(l)}}}),r.on.getInspectorState(async s=>{var l;if(s.app===t&&s.inspectorId===es){const g=Pre({instanceId:s.nodeId}),u=g.instance,c=(l=g.instance)==null?void 0:l.appContext.app,d={componentInstance:u,app:c,instanceData:g};jt.callHookWith(h=>{h.forEach(A=>A(d))},"component-state:inspect"),s.state=g}}),r.on.editInspectorState(async s=>{s.app===t&&s.inspectorId===es&&($re(s),await r.sendInspectorState("components"))});const e=$c(()=>{r.sendInspectorTree(es)},120),n=$c(()=>{r.sendInspectorState(es)},120),i=ig.on.componentAdded(async(s,l,g,u)=>{var c,d,h;if((h=(d=(c=s?._instance)==null?void 0:c.type)==null?void 0:d.devtools)!=null&&h.hide||!s||typeof l!="number"&&!l||!u)return;const A=await cv({app:s,uid:l,instance:u}),f=await lc(s);u&&(u.__VUE_DEVTOOLS_UID__==null&&(u.__VUE_DEVTOOLS_UID__=A),f?.instanceMap.has(A)||f?.instanceMap.set(A,u)),f&&e()}),o=ig.on.componentUpdated(async(s,l,g,u)=>{var c,d,h;if((h=(d=(c=s?._instance)==null?void 0:c.type)==null?void 0:d.devtools)!=null&&h.hide||!s||typeof l!="number"&&!l||!u)return;const A=await cv({app:s,uid:l,instance:u}),f=await lc(s);u&&(u.__VUE_DEVTOOLS_UID__==null&&(u.__VUE_DEVTOOLS_UID__=A),f?.instanceMap.has(A)||f?.instanceMap.set(A,u)),f&&(e(),n())}),a=ig.on.componentRemoved(async(s,l,g,u)=>{var c,d,h;if((h=(d=(c=s?._instance)==null?void 0:c.type)==null?void 0:d.devtools)!=null&&h.hide||!s||typeof l!="number"&&!l||!u)return;const A=await lc(s);if(!A)return;const f=await cv({app:s,uid:l,instance:u});A?.instanceMap.delete(f),e()});Cr.componentPluginHookBuffer=[i,o,a]})}async function i8(t){await Fre(t.app),Vt.activeAppRecord=t,Vt.activeAppRecordId=`${t.id}`,Ere({app:t.app,api:t.api})}async function Lre(t){Cr.componentPluginHookBuffer.forEach(e=>e()),Cr.api.clear(),Cr.clear();const r=Vt.appRecords.find(e=>e.id===t);if(r){Vt.pluginBuffer=Vt.pluginBuffer.filter(([n])=>n.id!=="components");const e=new u8;r.api=e,i8(r),window.postMessage({event:"toggle-app-record",target:"vue-devtools"})}}it();function zre(t){Vt.tabs.some(r=>r.name===t.name)||Vt.tabs.push(t)}it();function jre(t){Vt.commands.some(r=>r.id===t.id)||Vt.commands.push(t)}function Vre(t){const r=Vt.commands.findIndex(e=>e.id===t);r!==-1&&Vt.commands.splice(r,1)}it();function Gre(t){let r=0;const e=setInterval(()=>{Je.__VUE_INSPECTOR__&&(clearInterval(e),r+=30,t()),r>=5e3&&clearInterval(e)},30)}function Wre(){const t=Je.__VUE_INSPECTOR__,r=t.openInEditor;t.openInEditor=async(...e)=>{t.disable(),r(...e)}}function Hre(){return new Promise(t=>{function r(){Wre(),t(Je.__VUE_INSPECTOR__)}Je.__VUE_INSPECTOR__?r():Gre(()=>{r()})})}it();var o8="__vue-devtools-component-inspector__",a8="__vue-devtools-component-inspector__card__",s8="__vue-devtools-component-inspector__name__",l8="__vue-devtools-component-inspector__indicator__",g8={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},Ure={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},Zre={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function tl(){return document.getElementById(o8)}function Kre(){return document.getElementById(a8)}function Yre(){return document.getElementById(l8)}function Xre(){return document.getElementById(s8)}function C2(t){return{left:`${Math.round(t.left*100)/100}px`,top:`${Math.round(t.top*100)/100}px`,width:`${Math.round(t.width*100)/100}px`,height:`${Math.round(t.height*100)/100}px`}}function Pm(t){var r;const e=document.createElement("div");e.id=(r=t.elementId)!=null?r:o8,Object.assign(e.style,{...g8,...C2(t.bounds),...t.style});const n=document.createElement("span");n.id=a8,Object.assign(n.style,{...Ure,top:t.bounds.top<35?0:"-35px"});const i=document.createElement("span");i.id=s8,i.innerHTML=`<${t.name}> `;const o=document.createElement("i");return o.id=l8,o.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`,Object.assign(o.style,Zre),n.appendChild(i),n.appendChild(o),e.appendChild(n),document.body.appendChild(e),e}function Rm(t){const r=tl(),e=Kre(),n=Xre(),i=Yre();r&&(Object.assign(r.style,{...g8,...C2(t.bounds)}),Object.assign(e.style,{top:t.bounds.top<35?0:"-35px"}),n.innerHTML=`<${t.name}> `,i.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`)}function Qre(t){if(t.visible){const r=Sc(Cr.appRecord,t.id);if(r&&(t.bounds.width||t.bounds.height)){const e=cl(r);tl()?Rm({...t,name:e}):Pm({...t,name:e})}}else{const r=tl();r&&(r.style.display="none")}}function qre(t){const r=bg(t),e=cl(t);tl()?Rm({bounds:r,name:e}):Pm({bounds:r,name:e})}function Jre(){const t=tl();t&&(t.style.display="none")}var i_=null;function Vx(t){const r=t.target;if(r){const e=r.__vueParentComponent;if(e&&(i_=e,e.vnode.el)){const i=bg(e),o=cl(e);tl()?Rm({bounds:i,name:o}):Pm({bounds:i,name:o})}}}function ene(t,r){var e;if(t.preventDefault(),t.stopPropagation(),i_){const n=(e=Cr.appRecord)==null?void 0:e.app;cv({app:n,uid:n.uid,instance:i_}).then(i=>{r(i)})}}function tne(){return window.addEventListener("mouseover",Vx),new Promise(t=>{function r(e){e.preventDefault(),e.stopPropagation(),ene(e,n=>{window.removeEventListener("click",r),window.removeEventListener("mouseover",Vx);const i=tl();i&&(i.style.display="none"),t(JSON.stringify({id:n}))})}window.addEventListener("click",r)})}function rne(t){const r=Sc(Cr.appRecord,t.id);if(r){const[e]=op(r);if(typeof e.scrollIntoView=="function")e.scrollIntoView({behavior:"smooth"});else{const n=bg(r),i=document.createElement("div"),o={...C2(n),position:"absolute"};Object.assign(i.style,o),document.body.appendChild(i),i.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(i)},2e3)}setTimeout(()=>{const n=bg(r);if(n.width||n.height){const i=cl(r),o=tl();o?Rm({...t,name:i,bounds:n}):Pm({...t,name:i,bounds:n}),setTimeout(()=>{o&&(o.style.display="none")},1500)}},1200)}}it();function nne(){jt.removeAllHooks()}var u8=class{constructor(){this.on=Bre,this.clear=nne}toggleApp(t){return Lre(t)}addTimelineEvent(t){jt.callHook("timeline:add-event",t)}toggleComponentInspector(t){return Qre(t)}inspectComponentInspector(){return tne()}scrollToComponent(t){return rne(t)}getComponentBoundingRect(t){const{inspectorId:r,instanceId:e=""}=t,n={app:Cr.appRecord.app,inspectorId:r,instanceId:e,rect:{top:0,left:0,width:0,height:0}};return jt.callHookWith(i=>{i.map(o=>o(n))},"component-bounding-rect:get"),Nu(n.rect)}async getInspectorTree(t={}){const{inspectorId:r,filter:e="",instanceId:n=""}=t,i={app:Cr.appRecord.app,inspectorId:r,instanceId:n,filter:e,rootNodes:[]};return Fx(r,{filter:e}),await new Promise(o=>{jt.callHookWith(async a=>{await Promise.all(a.map(s=>s(i))),o()},"inspector-tree:get")}),Nu(i.rootNodes)}getInspectorState(t={}){const{inspectorId:r,nodeId:e}=t,n={app:Cr.appRecord.app,inspectorId:r,nodeId:e};Fx(r,{nodeId:e}),jt.callHookWith(o=>{o.forEach(a=>a(n))},"inspector-state:get");const i=n.state;return delete i.instance,Nu(i)}async editInspectorState(t){const r=new n8;jt.callHook("inspector-state:edit",{...t,app:Cr.appRecord.app,set:(e,n=t.path,i=t.state.value,o)=>{r.set(e,n,i,o||r.createDefaultSetCallback(t.state))}})}async sendInspectorTree(t){if(n_(t)){const e=await this.getInspectorTree({inspectorId:t});jt.callHook("inspector-tree:send",Nu({inspectorId:t,data:Do(e)}))}}async sendInspectorState(t){const r=n_(t);if(r&&r.nodeId){const e=await this.getInspectorState({inspectorId:t,nodeId:r.nodeId});jt.callHook("inspector-state:send",Nu({...Do(e),inspectorId:t}))}}addCustomTab(t){zre(t)}addCustomCommand(t){jre(t)}removeCustomCommand(t){Vre(t)}addInspector(t){var r;vre({id:t.id,nodeId:"",filter:"",treeFilterPlaceholder:(r=t.treeFilterPlaceholder)!=null?r:""})}openInEditor(t){wre(t)}highlightElement(t){qre(t)}unhighlightElement(){Jre()}async getComponentInstances(t){const r=t.__VUE_DEVTOOLS_APP_RECORD__,e=r.id.toString();return[...r.instanceMap].filter(([i])=>i.split(":")[0]===e).map(([,i])=>i)}getVueInspector(){return Hre()}visitComponentTree(t){jt.callHook("component-tree:visit",t)}addTimelineLayer(t){pre(t)}notifyComponentUpdate(){}now(){return Ire()}getSettings(){return{logStoreChanges:null}}};it();var ine=hte(fte(),1),Gx,Wx,Lu=(Wx=(Gx=Je).__VUE_DEVTOOLS_APP_RECROD_INFO__)!=null?Wx:Gx.__VUE_DEVTOOLS_APP_RECROD_INFO__={id:0,appIds:new Set};function one(t,r){var e;return((e=t?._component)==null?void 0:e.name)||`App ${r}`}function ane(t){var r,e,n,i;if(t._instance)return t._instance;if((e=(r=t._container)==null?void 0:r._vnode)!=null&&e.component)return(i=(n=t._container)==null?void 0:n._vnode)==null?void 0:i.component}function sne(t,r){if(t.__VUE_DEVTOOLS_APP_RECORD_ID__!=null)return t.__VUE_DEVTOOLS_APP_RECORD_ID__;let e=r??(Lu.id++).toString();if(r&&Lu.appIds.has(e)){let n=1;for(;Lu.appIds.has(`${r}_${n}`);)n++;e=`${r}_${n}`}return Lu.appIds.add(e),t.__VUE_DEVTOOLS_APP_RECORD_ID__=e,e}function lne(t){const r=ane(t);if(r){Lu.id++;const e=one(t,Lu.id.toString()),i={id:sne(t,(0,ine.default)(e)),name:e,instanceMap:new Map,rootInstance:r};t.__VUE_DEVTOOLS_APP_RECORD__=i;const o=`${i.id}:root`;return i.instanceMap.set(o,i.rootInstance),i.rootInstance.__VUE_DEVTOOLS_UID__=o,i}else return{}}function gne(){var t,r,e;Vt.vitePluginDetected=!!Je.__VUE_DEVTOOLS_VITE_PLUGIN_DETECTED__;const n=((t=Je.__VUE_DEVTOOLS_GLOBAL_HOOK__)==null?void 0:t.id)==="vue-devtools-next";Je.__VUE_DEVTOOLS_GLOBAL_HOOK__&&n||(Je.__VUE_DEVTOOLS_GLOBAL_HOOK__?Object.assign(__VUE_DEVTOOLS_GLOBAL_HOOK__,wx()):Je.__VUE_DEVTOOLS_GLOBAL_HOOK__=wx(),(e=(r=Je).__VUE_DEVTOOLS_APP_RECORDS__)!=null||(r.__VUE_DEVTOOLS_APP_RECORDS__=[]),ig.on.setupDevtoolsPlugin(_re),ig.on.vueAppInit(async(i,o)=>{var a;const s=lne(i),l=new u8;Vt.appRecords=[...(a=Vt.appRecords)!=null?a:[],{...s,app:i,version:o,api:l}],Vt.appRecords.length===1&&(await i8(Vt.appRecords[0]),Vt.connected=!0,pi.callHook(Gr.APP_CONNECTED))}),Ite())}var Ct={state:Vt,context:Cr,init:gne,hook:ig,get api(){return Cr.api}};const une=6e4;function c8(t){return t}const cne=c8,{clearTimeout:dne,setTimeout:hne}=globalThis,Ane=Math.random.bind(Math);function fne(t,r){const{post:e,on:n,eventNames:i=[],serialize:o=c8,deserialize:a=cne,resolver:s,timeout:l=une}=r,g=new Map;let u;const c=new Proxy({},{get(d,h){if(h==="$functions")return t;const A=(...C)=>{e(o({m:h,a:C,t:"q"}))};if(i.includes(h))return A.asEvent=A,A;const f=async(...C)=>(await u,new Promise((I,v)=>{const p=Ine();let y;l>=0&&(y=hne(()=>{v(new Error(`[birpc] timeout on calling "${h}"`)),g.delete(p)},l).unref?.()),g.set(p,{resolve:I,reject:v,timeoutId:y}),e(o({m:h,a:C,i:p,t:"q"}))}));return f.asEvent=A,f}});return u=n(async(d,...h)=>{const A=a(d);if(A.t==="q"){const{m:f,a:C}=A;let I,v;const p=s?s(f,t[f]):t[f];if(!p)v=new Error(`[birpc] function "${f}" not found`);else try{I=await p.apply(c,C)}catch(y){v=y}A.i&&(v&&r.onError&&r.onError(v,f,C),e(o({t:"s",i:A.i,r:I,e:v}),...h))}else{const{i:f,r:C,e:I}=A,v=g.get(f);v&&(dne(v.timeoutId),I?v.reject(I):v.resolve(C)),g.delete(f)}}),c}const Cne="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function Ine(t=21){let r="",e=t;for(;e--;)r+=Cne[Ane()*64|0];return r}function vne(t,r,e={},n={}){const i=`${t}:rpc`;return fne(e,{...n,on:async o=>{(await r).on(i,o)},post:async o=>{(await r).send(i,o)}})}var d8=class{constructor(t={tracker:Ek,trigger:Ek}){this.emitter=mq(),this.adapter=t,this.adapter.tracker(r=>{this._emit(r.event,r.data)})}_on(t,r){this.emitter.on(t,r)}off(t,r){this.emitter.off(t,r)}_emit(t,r){this.emitter.emit(t,r)}on(t,r){return this._on(t,r),()=>this.off(t,r)}once(t,r){const e=(...n)=>{r(...n),this.off(t,e)};this._on(t,e)}emit(t,r){this.adapter.trigger({event:t,data:r}),this._emit(t,r)}removeAllListeners(){this.emitter.all.clear()}},It={toggleComponentInspector:"toggle-component-inspector",inspectComponentInspector:"inspect-component-inspector",scrollToComponent:"scroll-to-component",componentBoundingRect:"component-bounding-rect",inspectorTree:"inspector-tree",inspectorState:"inspector-state",updateInspectorTreeId:"inspector-tree:update-id",state:"state",timelineLayer:"timeline-layer",routerInfo:"router-info",router:"router",routeMatched:"route-matched",editState:"edit-inspector-state",openInEditor:"open-in-editor",toggleApp:"toggle-app",isVueInspectorDetected:"vue-inspector:detected",enableVueInspector:"vue-inspector:enable",unhighlightElement:"element:unhighlight"},h8=class{constructor(t){this.bridge=t}on(t,r){this.bridge.on(`${t}:req`,async e=>{const n=await r(e);this.bridge.emit(`${t}:res`,n)})}emit(t,r){return new Promise(e=>{this.bridge.once(`${t}:res`,n=>{const i={data:Do(n)};e(i)}),this.bridge.emit(`${t}:req`,r)})}};function pne(t){return t?vne("vite-plugin-vue-devtools",t,{}):null}var I2=(t=>(t.DEVTOOLS_STATE_UPDATED="devtools-state:updated",t.CUSTOM_TABS_UPDATED="custom-tabs:updated",t.CUSTOM_COMMANDS_UPDATED="custom-commands:updated",t.ROUTER_INFO_UPDATED="router-info:updated",t.ROUTER="router",t.APP_CONNECTED="user-app:connected",t.CLIENT_READY="devtools:client-ready",t.SEND_INSPECTOR_TREE="inspector-tree:send",t.SEND_INSPECTOR_STATE="inspector-state:send",t.EDIT_STATE="state:edit",t.ADD_TIMELINE_EVENT="timeline:add-event",t))(I2||{}),wt={value:null,viteRpc:{enabled:!1,api:null},rpc:null};function mne(t){const r=pne(t.viteRPCContext);wt.value=t.bridge,wt.rpc=new h8(t.bridge),r&&(wt.viteRpc={enabled:!0,api:r})}var ap=class{static updateInspectorTreeId(t){wt.rpc.emit(It.updateInspectorTreeId,t)}static toggleComponentInspector(t){wt.rpc.emit(It.toggleComponentInspector,t)}static inspectComponentInspector(){return wt.rpc.emit(It.inspectComponentInspector)}static unhighlightElement(){return wt.rpc.emit(It.unhighlightElement)}static scrollToComponent(t){return wt.rpc.emit(It.scrollToComponent,t)}static async getComponentBoundingRect(t){return wt.rpc.emit(It.componentBoundingRect,t)}static getInspectorTree(t){return wt.rpc.emit(It.inspectorTree,t)}static async getInspectorState(t){return wt.rpc.emit(It.inspectorState,t)}static async editInspectorState(t){return wt.rpc.emit(It.editState,t)}static async getDevToolsState(){return wt.rpc.emit(It.state)}static async getTimelineLayer(){return wt.rpc.emit(It.timelineLayer)}static async getRouterInfo(){return wt.rpc.emit(It.routerInfo)}static async navigate(t){return wt.rpc.emit(It.router,JSON.stringify(t))}static async getMatchedRoutes(t){return wt.rpc.emit(It.routeMatched,t)}static async openInEditor(t){return wt.rpc.emit(It.openInEditor,JSON.stringify(t))}static async isVueInspectorDetected(){return wt.rpc.emit(It.isVueInspectorDetected)}static async enableVueInspector(){return wt.rpc.emit(It.enableVueInspector)}static async toggleApp(t){return wt.rpc.emit(It.toggleApp,t)}static getStaticAssets(){return wt.viteRpc.api.getStaticAssets()}static getImageMeta(t){return wt.viteRpc.api.getImageMeta(t)}static getTextAssetContent(t,r=300){return wt.viteRpc.api.getTextAssetContent(t,r)}static root(){return wt.viteRpc.api.root()}static getGraph(){return wt.viteRpc.api.getGraph()}};ap.on={inspectorTreeUpdated(t,r){wt.value.on("inspector-tree:send",e=>{const n=Do(e);r.inspectorId===n.inspectorId&&t(n)})},inspectorStateUpdated(t,r){wt.value.on("inspector-state:send",e=>{const n=Do(e);r.inspectorId===n.inspectorId&&t({state:n.state,getters:n.getters})})},devtoolsStateUpdated(t){wt.value.on("devtools-state:updated",r=>{t(Do(r))})},customTabsUpdated(t){wt.value.on("custom-tabs:updated",r=>{t(Do(r))})},customCommandsUpdated(t){wt.value.on("custom-commands:updated",r=>{t(Do(r))})},routerInfoUpdated(t){wt.value.on("router-info:updated",r=>{t(Do(r))})},addTimelineEvent(t){wt.value.on("timeline:add-event",r=>{t(Do(r))})}};function yne(t){const r=new h8(t);r.on(It.state,()=>{var n,i;return JSON.stringify({connected:Ct.state.connected,clientConnected:Ct.state.clientConnected,vueVersion:((i=(n=Ct.state)==null?void 0:n.activeAppRecord)==null?void 0:i.version)||"",tabs:Ct.state.tabs,commands:Ct.state.commands,vitePluginDetected:Ct.state.vitePluginDetected,appRecords:Ct.state.appRecords.map(o=>({id:o.id,name:o.name,version:o.version,routerId:o.routerId,moduleDetectives:o.moduleDetectives})),activeAppRecordId:Ct.state.activeAppRecordId})}),r.on(It.timelineLayer,()=>JSON.stringify(Ct.context.timelineLayer)),r.on(It.toggleComponentInspector,n=>(Ct.api.toggleComponentInspector(n),Promise.resolve(JSON.stringify({})))),r.on(It.inspectComponentInspector,()=>Ct.api.inspectComponentInspector()),r.on(It.unhighlightElement,()=>(Ct.api.unhighlightElement(),Promise.resolve(JSON.stringify({})))),r.on(It.scrollToComponent,n=>(Ct.api.scrollToComponent(n),Promise.resolve(JSON.stringify({})))),r.on(It.componentBoundingRect,async n=>Ct.api.getComponentBoundingRect(n)),r.on(It.inspectorTree,n=>Ct.api.getInspectorTree(n)),r.on(It.updateInspectorTreeId,async n=>{Ct.context.activeInspectorTreeId=n}),r.on(It.inspectorState,async n=>Ct.api.getInspectorState(n)),r.on(It.editState,async n=>Ct.api.editInspectorState(n)),r.on(It.routerInfo,()=>JSON.stringify(Ct.context.routerInfo)),r.on(It.router,n=>{var i;return(i=Ct.context.router)==null||i.push(JSON.parse(n)).catch(o=>o),Promise.resolve(JSON.stringify({}))}),r.on(It.openInEditor,async n=>Ct.api.openInEditor(JSON.parse(n))),r.on(It.isVueInspectorDetected,async()=>{var n,i,o;return!!await((o=(i=(n=Ct)==null?void 0:n.api)==null?void 0:i.getVueInspector)==null?void 0:o.call(i))}),r.on(It.enableVueInspector,async()=>{var n,i,o;const a=await((o=(i=(n=Ct)==null?void 0:n.api)==null?void 0:i.getVueInspector)==null?void 0:o.call(i));a&&await a.enable()}),r.on(It.routeMatched,n=>{var i,o;const a=console.warn;console.warn=()=>{};const s=(o=(i=Ct.context.router)==null?void 0:i.resolve({path:n||"/"}).matched)!=null?o:[];return console.warn=a,JSON.stringify(s)}),r.on(It.toggleApp,async n=>(await Ct.api.toggleApp(n),JSON.stringify({})));function e(){var n,i,o;t.emit("devtools-state:updated",JSON.stringify({vueVersion:((i=(n=Ct.state)==null?void 0:n.activeAppRecord)==null?void 0:i.version)||"",connected:!0,clientConnected:Ct.state.clientConnected,activeAppRecordId:(o=Ct.state)==null?void 0:o.activeAppRecordId,appRecords:Ct.state.appRecords.map(a=>({id:a.id,name:a.name,version:a.version,routerId:a.routerId,moduleDetectives:a.moduleDetectives}))})),Ct.api.on.devtoolsStateUpdated(a=>{var s;t.emit("devtools-state:updated",JSON.stringify({vueVersion:((s=a?.activeAppRecord)==null?void 0:s.version)||"",connected:a.connected,clientConnected:a.clientConnected,appRecords:a.appRecords.map(l=>({id:l.id,name:l.name,version:l.version,routerId:l.routerId,moduleDetectives:l.moduleDetectives})),activeAppRecordId:a.activeAppRecordId}))}),Ct.api.on.customTabsUpdated(a=>{t.emit("custom-tabs:updated",JSON.stringify(a))}),Ct.api.on.customCommandsUpdated(a=>{t.emit("custom-commands:updated",JSON.stringify(a))}),Ct.api.on.routerInfoUpdated(a=>{t.emit("router-info:updated",JSON.stringify(a))}),Ct.api.on.sendInspectorTree(a=>{t.emit("inspector-tree:send",a)}),Ct.api.on.sendInspectorState(a=>{t.emit("inspector-state:send",a)}),Ct.api.on.addTimelineEvent(a=>{t.emit("timeline:add-event",Nu(a))})}t.on("user-app:connected",()=>{e()}),x4&&window.addEventListener("message",n=>{const i=n.data;i.target==="vue-devtools"&&i.event==="toggle-app-record"&&e()})}function A8(t,r){t==="devtools"?mne(r):yne(r.bridge)}function bne(){const t=H(!1),r=H(!1),e=H(0),n=H(""),i=H([]),o=H([]),a=H(!1),s=H([]),l=H("");function g(){ap.getDevToolsState().then(({data:u})=>{t.value=u.connected,r.value=u.clientConnected,n.value=u.vueVersion||"",i.value=u.tabs,o.value=u.commands,a.value=u.vitePluginDetected,s.value=u.appRecords,l.value=u.activeAppRecordId}),ap.on.devtoolsStateUpdated(u=>{t.value=u.connected,r.value=u.clientConnected,n.value=u.vueVersion||"",s.value=u.appRecords,l.value=u.activeAppRecordId})}return{init:g,restore:g,vueVersion:n,connected:t,clientConnected:r,componentCount:e,tabs:i,commands:o,vitePluginDetected:a,appRecords:s,activeAppRecordId:l}}function $ne(t){const r=H(t);function e(n){r.value=n}return{bridge:r,restore:e}}var f8=Symbol("VueDevToolsBridgeSymbol"),C8=Symbol("VueDevToolsStateSymbol");function wne(t){return{install(r,e){const{bridge:n,viewMode:i}=t,o=H(i),a=bne(),s=$ne(n);a.init(),r.provide(f8,s.bridge),r.provide(C8,a),r.provide("viewMode",o),s.bridge.value.on("toggle-view-mode",l=>{o.value=l}),r.config.globalProperties.__VUE_DEVTOOLS_UPDATE__=l=>{s.restore(l),a.restore()}}}}function v2(){return Tr(f8)}function yn(){return ap}function Xi(){return Tr(C8)}var _ne=class{constructor(t){this.socket=t}},I8=class extends _ne{constructor(t){super(t)}onnConnect(){return new Promise(t=>{this.socket.on("syn",()=>{this.socket.emit("syn-ack");const r=setInterval(()=>{this.socket.emit("syn-ack")},300);this.socket.on("ack",()=>{clearInterval(r),t()})})})}};/*!
|
|
17
|
+
**/const _ee="http://www.w3.org/2000/svg",Eee="http://www.w3.org/1998/Math/MathML",fs=typeof document<"u"?document:null,ix=fs&&fs.createElement("template"),See={insert:(t,r,e)=>{r.insertBefore(t,e||null)},remove:t=>{const r=t.parentNode;r&&r.removeChild(t)},createElement:(t,r,e,n)=>{const i=r==="svg"?fs.createElementNS(_ee,t):r==="mathml"?fs.createElementNS(Eee,t):fs.createElement(t,e?{is:e}:void 0);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>fs.createTextNode(t),createComment:t=>fs.createComment(t),setText:(t,r)=>{t.nodeValue=r},setElementText:(t,r)=>{t.textContent=r},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>fs.querySelector(t),setScopeId(t,r){t.setAttribute(r,"")},insertStaticContent(t,r,e,n,i,o){const a=e?e.previousSibling:r.lastChild;if(i&&(i===o||i.nextSibling))for(;r.insertBefore(i.cloneNode(!0),e),!(i===o||!(i=i.nextSibling)););else{ix.innerHTML=n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t;const s=ix.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}r.insertBefore(s,e)}return[a?a.nextSibling:r.firstChild,e?e.previousSibling:r.lastChild]}},qa="transition",th="animation",sA=Symbol("_vtc"),XA=(t,{slots:r})=>ld(RJ,Tee(t),r);XA.displayName="Transition";const Lj={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};XA.props=Ur({},fj,Lj);const Dl=(t,r=[])=>{je(t)?t.forEach(e=>e(...r)):t&&t(...r)},ox=t=>t?je(t)?t.some(r=>r.length>1):t.length>1:!1;function Tee(t){const r={};for(const D in t)D in Lj||(r[D]=t[D]);if(t.css===!1)return r;const{name:e="v",type:n,duration:i,enterFromClass:o=`${e}-enter-from`,enterActiveClass:a=`${e}-enter-active`,enterToClass:s=`${e}-enter-to`,appearFromClass:l=o,appearActiveClass:g=a,appearToClass:u=s,leaveFromClass:c=`${e}-leave-from`,leaveActiveClass:d=`${e}-leave-active`,leaveToClass:h=`${e}-leave-to`}=t,A=Oee(i),f=A&&A[0],C=A&&A[1],{onBeforeEnter:I,onEnter:v,onEnterCancelled:p,onLeave:y,onLeaveCancelled:b,onBeforeAppear:_=I,onAppear:P=v,onAppearCancelled:k=p}=r,E=(D,M,Q)=>{Nl(D,M?u:s),Nl(D,M?g:a),Q&&Q()},O=(D,M)=>{D._isLeaving=!1,Nl(D,c),Nl(D,h),Nl(D,d),M&&M()},N=D=>(M,Q)=>{const j=D?P:v,W=()=>E(M,D,Q);Dl(j,[M,W]),ax(()=>{Nl(M,D?l:o),Ja(M,D?u:s),ox(j)||sx(M,n,f,W)})};return Ur(r,{onBeforeEnter(D){Dl(I,[D]),Ja(D,o),Ja(D,a)},onBeforeAppear(D){Dl(_,[D]),Ja(D,l),Ja(D,g)},onEnter:N(!1),onAppear:N(!0),onLeave(D,M){D._isLeaving=!0;const Q=()=>O(D,M);Ja(D,c),Pee(),Ja(D,d),ax(()=>{D._isLeaving&&(Nl(D,c),Ja(D,h),ox(y)||sx(D,n,C,Q))}),Dl(y,[D,Q])},onEnterCancelled(D){E(D,!1),Dl(p,[D])},onAppearCancelled(D){E(D,!0),Dl(k,[D])},onLeaveCancelled(D){O(D),Dl(b,[D])}})}function Oee(t){if(t==null)return null;if(Wt(t))return[Db(t.enter),Db(t.leave)];{const r=Db(t);return[r,r]}}function Db(t){return Rq(t)}function Ja(t,r){r.split(/\s+/).forEach(e=>e&&t.classList.add(e)),(t[sA]||(t[sA]=new Set)).add(r)}function Nl(t,r){r.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const e=t[sA];e&&(e.delete(r),e.size||(t[sA]=void 0))}function ax(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let kee=0;function sx(t,r,e,n){const i=t._endId=++kee,o=()=>{i===t._endId&&n()};if(e)return setTimeout(o,e);const{type:a,timeout:s,propCount:l}=xee(t,r);if(!a)return n();const g=a+"end";let u=0;const c=()=>{t.removeEventListener(g,d),o()},d=h=>{h.target===t&&++u>=l&&c()};setTimeout(()=>{u<l&&c()},s+1),t.addEventListener(g,d)}function xee(t,r){const e=window.getComputedStyle(t),n=A=>(e[A]||"").split(", "),i=n(`${qa}Delay`),o=n(`${qa}Duration`),a=lx(i,o),s=n(`${th}Delay`),l=n(`${th}Duration`),g=lx(s,l);let u=null,c=0,d=0;r===qa?a>0&&(u=qa,c=a,d=o.length):r===th?g>0&&(u=th,c=g,d=l.length):(c=Math.max(a,g),u=c>0?a>g?qa:th:null,d=u?u===qa?o.length:l.length:0);const h=u===qa&&/\b(transform|all)(,|$)/.test(n(`${qa}Property`).toString());return{type:u,timeout:c,propCount:d,hasTransform:h}}function lx(t,r){for(;t.length<r.length;)t=t.concat(t);return Math.max(...r.map((e,n)=>gx(e)+gx(t[n])))}function gx(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Pee(){return document.body.offsetHeight}function Ree(t,r,e){const n=t[sA];n&&(r=(r?[r,...n]:[...n]).join(" ")),r==null?t.removeAttribute("class"):e?t.setAttribute("class",r):t.className=r}const Dee=Symbol("_vod"),Nee=Symbol("");function Mee(t,r,e){const n=t.style,i=n.display,o=dr(e);if(e&&!o){if(r&&!dr(r))for(const a in r)e[a]==null&&t_(n,a,"");for(const a in e)t_(n,a,e[a])}else if(o){if(r!==e){const a=n[Nee];a&&(e+=";"+a),n.cssText=e}}else r&&t.removeAttribute("style");Dee in t&&(n.display=i)}const ux=/\s*!important$/;function t_(t,r,e){if(je(e))e.forEach(n=>t_(t,r,n));else if(e==null&&(e=""),r.startsWith("--"))t.setProperty(r,e);else{const n=Bee(t,r);ux.test(e)?t.setProperty(zg(n),e.replace(ux,""),"important"):t[n]=e}}const cx=["Webkit","Moz","ms"],Nb={};function Bee(t,r){const e=Nb[r];if(e)return e;let n=ta(r);if(n!=="filter"&&n in t)return Nb[r]=n;n=fm(n);for(let i=0;i<cx.length;i++){const o=cx[i]+n;if(o in t)return Nb[r]=o}return r}const dx="http://www.w3.org/1999/xlink";function Fee(t,r,e,n,i){if(n&&r.startsWith("xlink:"))e==null?t.removeAttributeNS(dx,r.slice(6,r.length)):t.setAttributeNS(dx,r,e);else{const o=Lq(r);e==null||o&&!z4(e)?t.removeAttribute(r):t.setAttribute(r,o?"":e)}}function Lee(t,r,e,n,i,o,a){if(r==="innerHTML"||r==="textContent"){n&&a(n,i,o),t[r]=e??"";return}const s=t.tagName;if(r==="value"&&s!=="PROGRESS"&&!s.includes("-")){t._value=e;const g=s==="OPTION"?t.getAttribute("value"):t.value,u=e??"";g!==u&&(t.value=u),e==null&&t.removeAttribute(r);return}let l=!1;if(e===""||e==null){const g=typeof t[r];g==="boolean"?e=z4(e):e==null&&g==="string"?(e="",l=!0):g==="number"&&(e=0,l=!0)}try{t[r]=e}catch{}l&&t.removeAttribute(r)}function Ca(t,r,e,n){t.addEventListener(r,e,n)}function zee(t,r,e,n){t.removeEventListener(r,e,n)}const hx=Symbol("_vei");function jee(t,r,e,n,i=null){const o=t[hx]||(t[hx]={}),a=o[r];if(n&&a)a.value=n;else{const[s,l]=Vee(r);if(n){const g=o[r]=Hee(n,i);Ca(t,s,g,l)}else a&&(zee(t,s,a,l),o[r]=void 0)}}const Ax=/(?:Once|Passive|Capture)$/;function Vee(t){let r;if(Ax.test(t)){r={};let n;for(;n=t.match(Ax);)t=t.slice(0,t.length-n[0].length),r[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):zg(t.slice(2)),r]}let Mb=0;const Gee=Promise.resolve(),Wee=()=>Mb||(Gee.then(()=>Mb=0),Mb=Date.now());function Hee(t,r){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Gi(Uee(n,e.value),r,5,[n])};return e.value=t,e.attached=Wee(),e}function Uee(t,r){if(je(r)){const e=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{e.call(t),t._stopped=!0},r.map(n=>i=>!i._stopped&&n&&n(i))}else return r}const fx=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Zee=(t,r,e,n,i,o,a,s,l)=>{const g=i==="svg";r==="class"?Ree(t,n,g):r==="style"?Mee(t,e,n):hm(r)?VS(r)||jee(t,r,e,n,a):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):Kee(t,r,n,g))?Lee(t,r,n,o,a,s,l):(r==="true-value"?t._trueValue=n:r==="false-value"&&(t._falseValue=n),Fee(t,r,n,g))};function Kee(t,r,e,n){if(n)return!!(r==="innerHTML"||r==="textContent"||r in t&&fx(r)&&rt(e));if(r==="spellcheck"||r==="draggable"||r==="translate"||r==="form"||r==="list"&&t.tagName==="INPUT"||r==="type"&&t.tagName==="TEXTAREA")return!1;if(r==="width"||r==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return fx(r)&&dr(e)?!1:r in t}const el=t=>{const r=t.props["onUpdate:modelValue"]||!1;return je(r)?e=>lv(r,e):r};function Yee(t){t.target.composing=!0}function Cx(t){const r=t.target;r.composing&&(r.composing=!1,r.dispatchEvent(new Event("input")))}const Hi=Symbol("_assign"),Ix={created(t,{modifiers:{lazy:r,trim:e,number:n}},i){t[Hi]=el(i);const o=n||i.props&&i.props.type==="number";Ca(t,r?"change":"input",a=>{if(a.target.composing)return;let s=t.value;e&&(s=s.trim()),o&&(s=rA(s)),t[Hi](s)}),e&&Ca(t,"change",()=>{t.value=t.value.trim()}),r||(Ca(t,"compositionstart",Yee),Ca(t,"compositionend",Cx),Ca(t,"change",Cx))},mounted(t,{value:r}){t.value=r??""},beforeUpdate(t,{value:r,modifiers:{lazy:e,trim:n,number:i}},o){if(t[Hi]=el(o),t.composing)return;const a=i||t.type==="number"?rA(t.value):t.value,s=r??"";a!==s&&(document.activeElement===t&&t.type!=="range"&&(e||n&&t.value.trim()===s)||(t.value=s))}},Xee={deep:!0,created(t,r,e){t[Hi]=el(e),Ca(t,"change",()=>{const n=t._modelValue,i=_c(t),o=t.checked,a=t[Hi];if(je(n)){const s=HS(n,i),l=s!==-1;if(o&&!l)a(n.concat(i));else if(!o&&l){const g=[...n];g.splice(s,1),a(g)}}else if(od(n)){const s=new Set(n);o?s.add(i):s.delete(i),a(s)}else a(zj(t,o))})},mounted:vx,beforeUpdate(t,r,e){t[Hi]=el(e),vx(t,r,e)}};function vx(t,{value:r,oldValue:e},n){t._modelValue=r,je(r)?t.checked=HS(r,n.props.value)>-1:od(r)?t.checked=r.has(n.props.value):r!==e&&(t.checked=Xs(r,zj(t,!0)))}const Qee={created(t,{value:r},e){t.checked=Xs(r,e.props.value),t[Hi]=el(e),Ca(t,"change",()=>{t[Hi](_c(t))})},beforeUpdate(t,{value:r,oldValue:e},n){t[Hi]=el(n),r!==e&&(t.checked=Xs(r,n.props.value))}},qee={deep:!0,created(t,{value:r,modifiers:{number:e}},n){const i=od(r);Ca(t,"change",()=>{const o=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>e?rA(_c(a)):_c(a));t[Hi](t.multiple?i?new Set(o):o:o[0]),t._assigning=!0,mn(()=>{t._assigning=!1})}),t[Hi]=el(n)},mounted(t,{value:r,oldValue:e,modifiers:{number:n}}){px(t,r,e,n)},beforeUpdate(t,r,e){t[Hi]=el(e)},updated(t,{value:r,oldValue:e,modifiers:{number:n}}){t._assigning||px(t,r,e,n)}};function px(t,r,e,n){const i=t.multiple,o=je(r);if(!(i&&!o&&!od(r))&&!(o&&Xs(r,e))){for(let a=0,s=t.options.length;a<s;a++){const l=t.options[a],g=_c(l);if(i)if(o){const u=typeof g;u==="string"||u==="number"?l.selected=r.includes(n?rA(g):g):l.selected=HS(r,g)>-1}else l.selected=r.has(g);else if(Xs(_c(l),r)){t.selectedIndex!==a&&(t.selectedIndex=a);return}}!i&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function _c(t){return"_value"in t?t._value:t.value}function zj(t,r){const e=r?"_trueValue":"_falseValue";return e in t?t[e]:r}const Jee={created(t,r,e){DC(t,r,e,null,"created")},mounted(t,r,e){DC(t,r,e,null,"mounted")},beforeUpdate(t,r,e,n){DC(t,r,e,n,"beforeUpdate")},updated(t,r,e,n){DC(t,r,e,n,"updated")}};function ete(t,r){switch(t){case"SELECT":return qee;case"TEXTAREA":return Ix;default:switch(r){case"checkbox":return Xee;case"radio":return Qee;default:return Ix}}}function DC(t,r,e,n,i){const a=ete(t.tagName,e.props&&e.props.type)[i];a&&a(t,r,e,n)}const tte=["ctrl","shift","alt","meta"],rte={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,r)=>tte.some(e=>t[`${e}Key`]&&!r.includes(e))},En=(t,r)=>{const e=t._withMods||(t._withMods={}),n=r.join(".");return e[n]||(e[n]=(i,...o)=>{for(let a=0;a<r.length;a++){const s=rte[r[a]];if(s&&s(i,r))return}return t(i,...o)})},nte={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},jj=(t,r)=>{const e=t._withKeys||(t._withKeys={}),n=r.join(".");return e[n]||(e[n]=i=>{if(!("key"in i))return;const o=zg(i.key);if(r.some(a=>a===o||nte[a]===o))return t(i)})},ite=Ur({patchProp:Zee},See);let mx;function Vj(){return mx||(mx=aee(ite))}const yx=(...t)=>{Vj().render(...t)},d2=(...t)=>{const r=Vj().createApp(...t),{mount:e}=r;return r.mount=n=>{const i=ate(n);if(!i)return;const o=r._component;!rt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const a=e(i,!1,ote(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},r};function ote(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function ate(t){return dr(t)?document.querySelector(t):t}var ste=Object.create,Gj=Object.defineProperty,lte=Object.getOwnPropertyDescriptor,h2=Object.getOwnPropertyNames,gte=Object.getPrototypeOf,ute=Object.prototype.hasOwnProperty,cte=(t,r)=>function(){return t&&(r=(0,t[h2(t)[0]])(t=0)),r},Wj=(t,r)=>function(){return r||(0,t[h2(t)[0]])((r={exports:{}}).exports,r),r.exports},dte=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of h2(r))!ute.call(t,i)&&i!==e&&Gj(t,i,{get:()=>r[i],enumerable:!(n=lte(r,i))||n.enumerable});return t},hte=(t,r,e)=>(e=t!=null?ste(gte(t)):{},dte(r||!t||!t.__esModule?Gj(e,"default",{value:t,enumerable:!0}):e,t)),it=cte({"../../node_modules/.pnpm/tsup@8.0.1_postcss@8.4.33_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js"(){}}),Ate=Wj({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(t,r){it(),function(e){var n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},i=["်","ް"],o={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},a={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},s={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},l=[";","?",":","@","&","=","+","$",",","/"].join(""),g=[";","?",":","@","&","=","+","$",","].join(""),u=[".","!","~","*","'","(",")"].join(""),c=function(C,I){var v="-",p="",y="",b=!0,_={},P,k,E,O,N,D,M,Q,j,W,q,oe,Pe,He,Le="";if(typeof C!="string")return"";if(typeof I=="string"&&(v=I),M=s.en,Q=a.en,typeof I=="object"){P=I.maintainCase||!1,_=I.custom&&typeof I.custom=="object"?I.custom:_,E=+I.truncate>1&&I.truncate||!1,O=I.uric||!1,N=I.uricNoSlash||!1,D=I.mark||!1,b=!(I.symbols===!1||I.lang===!1),v=I.separator||v,O&&(Le+=l),N&&(Le+=g),D&&(Le+=u),M=I.lang&&s[I.lang]&&b?s[I.lang]:b?s.en:{},Q=I.lang&&a[I.lang]?a[I.lang]:I.lang===!1||I.lang===!0?{}:a.en,I.titleCase&&typeof I.titleCase.length=="number"&&Array.prototype.toString.call(I.titleCase)?(I.titleCase.forEach(function(me){_[me+""]=me+""}),k=!0):k=!!I.titleCase,I.custom&&typeof I.custom.length=="number"&&Array.prototype.toString.call(I.custom)&&I.custom.forEach(function(me){_[me+""]=me+""}),Object.keys(_).forEach(function(me){var Ve;me.length>1?Ve=new RegExp("\\b"+h(me)+"\\b","gi"):Ve=new RegExp(h(me),"gi"),C=C.replace(Ve,_[me])});for(q in _)Le+=q}for(Le+=v,Le=h(Le),C=C.replace(/(^\s+|\s+$)/g,""),Pe=!1,He=!1,W=0,oe=C.length;W<oe;W++)q=C[W],A(q,_)?Pe=!1:Q[q]?(q=Pe&&Q[q].match(/[A-Za-z0-9]/)?" "+Q[q]:Q[q],Pe=!1):q in n?(W+1<oe&&i.indexOf(C[W+1])>=0?(y+=q,q=""):He===!0?(q=o[y]+n[q],y=""):q=Pe&&n[q].match(/[A-Za-z0-9]/)?" "+n[q]:n[q],Pe=!1,He=!1):q in o?(y+=q,q="",W===oe-1&&(q=o[y]),He=!0):M[q]&&!(O&&l.indexOf(q)!==-1)&&!(N&&g.indexOf(q)!==-1)?(q=Pe||p.substr(-1).match(/[A-Za-z0-9]/)?v+M[q]:M[q],q+=C[W+1]!==void 0&&C[W+1].match(/[A-Za-z0-9]/)?v:"",Pe=!0):(He===!0?(q=o[y]+q,y="",He=!1):Pe&&(/[A-Za-z0-9]/.test(q)||p.substr(-1).match(/A-Za-z0-9]/))&&(q=" "+q),Pe=!1),p+=q.replace(new RegExp("[^\\w\\s"+Le+"_-]","g"),v);return k&&(p=p.replace(/(\w)(\S*)/g,function(me,Ve,We){var ot=Ve.toUpperCase()+(We!==null?We:"");return Object.keys(_).indexOf(ot.toLowerCase())<0?ot:ot.toLowerCase()})),p=p.replace(/\s+/g,v).replace(new RegExp("\\"+v+"+","g"),v).replace(new RegExp("(^\\"+v+"+|\\"+v+"+$)","g"),""),E&&p.length>E&&(j=p.charAt(E)===v,p=p.slice(0,E),j||(p=p.slice(0,p.lastIndexOf(v)))),!P&&!k&&(p=p.toLowerCase()),p},d=function(C){return function(v){return c(v,C)}},h=function(C){return C.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},A=function(f,C){for(var I in C)if(C[I]===f)return!0};if(typeof r<"u"&&r.exports)r.exports=c,r.exports.createSlug=d;else if(typeof define<"u"&&define.amd)define([],function(){return c});else try{if(e.getSlug||e.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";e.getSlug=c,e.createSlug=d}catch{}}(t)}}),fte=Wj({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(t,r){it(),r.exports=Ate()}});it();it();it();it();it();it();var bx,$x,pi=($x=(bx=Je).__VUE_DEVTOOLS_HOOK)!=null?$x:bx.__VUE_DEVTOOLS_HOOK=N4(),Cte={vueAppInit(t){pi.hook(Gr.APP_INIT,t)},vueAppConnected(t){pi.hook(Gr.APP_CONNECTED,t)},componentAdded(t){return pi.hook(Gr.COMPONENT_ADDED,t)},componentUpdated(t){return pi.hook(Gr.COMPONENT_UPDATED,t)},componentRemoved(t){return pi.hook(Gr.COMPONENT_REMOVED,t)},setupDevtoolsPlugin(t){pi.hook(Gr.SETUP_DEVTOOLS_PLUGIN,t)}};function wx(){return{id:"vue-devtools-next",enabled:!1,appRecords:[],apps:{},events:new Map,on(t,r){var e;return this.events.has(t)||this.events.set(t,[]),(e=this.events.get(t))==null||e.push(r),()=>this.off(t,r)},once(t,r){const e=(...n)=>{this.off(t,e),r(...n)};return this.on(t,e),[t,e]},off(t,r){if(this.events.has(t)){const e=this.events.get(t),n=e.indexOf(r);n!==-1&&e.splice(n,1)}},emit(t,...r){this.events.has(t)&&this.events.get(t).forEach(e=>e(...r))}}}function Ite(){const t=Je.__VUE_DEVTOOLS_GLOBAL_HOOK__;t.on(Gr.APP_INIT,(r,e)=>{var n,i,o;(o=(i=(n=r?._instance)==null?void 0:n.type)==null?void 0:i.devtools)!=null&&o.hide||pi.callHook(Gr.APP_INIT,r,e)}),t.on(Gr.COMPONENT_ADDED,async(r,e,n,i)=>{var o,a,s;(s=(a=(o=r?._instance)==null?void 0:o.type)==null?void 0:a.devtools)!=null&&s.hide||!r||typeof e!="number"&&!e||!i||pi.callHook(Gr.COMPONENT_ADDED,r,e,n,i)}),t.on(Gr.COMPONENT_UPDATED,(r,e,n,i)=>{!r||typeof e!="number"&&!e||!i||pi.callHook(Gr.COMPONENT_UPDATED,r,e,n,i)}),t.on(Gr.COMPONENT_REMOVED,async(r,e,n,i)=>{!r||typeof e!="number"&&!e||!i||pi.callHook(Gr.COMPONENT_REMOVED,r,e,n,i)}),t.on(Gr.SETUP_DEVTOOLS_PLUGIN,(r,e)=>{pi.callHook(Gr.SETUP_DEVTOOLS_PLUGIN,r,e)})}var ig={on:Cte},Ec="__VUE_DEVTOOLS_ROUTER_INFO__",tp="__VUE_DEVTOOLS_ROUTER__",_x,Ex;(Ex=(_x=Je)[Ec])!=null||(_x[Ec]={currentRoute:null,routes:[],router:null});var Sx,Tx;(Tx=(Sx=Je)[tp])!=null||(Sx[tp]=null);var vte=new Proxy(Je[Ec],{get(t,r){return Je[Ec][r]}});function pte(t){const r=o=>{const a=new Map;return(o?.getRoutes()||[]).filter(s=>!a.has(s.path)&&a.set(s.path,1))};function e(o){return o.map(a=>{let{path:s,name:l,children:g}=a;return g?.length&&(g=e(g)),{path:s,name:l,children:g}})}function n(o){if(o){const{fullPath:a,hash:s,href:l,path:g,name:u,matched:c,params:d,query:h}=o;return{fullPath:a,hash:s,href:l,path:g,name:u,params:d,query:h,matched:e(c)}}return o}function i(){var o;const a=(o=t.app)==null?void 0:o.config.globalProperties.$router,s=n(a?.currentRoute.value),l=e(r(a)),g=console.warn;console.warn=()=>{},Je[Ec]={currentRoute:s?bc(s):{},routes:bc(l)},Je[tp]=a,console.warn=g}i(),ig.on.componentUpdated($c(()=>{i(),jt.callHook("router-info:updated",Je[Ec])},200))}function mte(t){return t.replace(/\D/g,"")||"0"}var Cs="__VUE_DEVTOOLS_GLOBAL_STATE__",zo="__VUE_DEVTOOLS_CONTEXT__",Hj={appRecord:null,api:null,inspector:[],timelineLayer:[],routerInfo:{},router:null,activeInspectorTreeId:"",componentPluginHookBuffer:[]},Ox,kx;(kx=(Ox=Je)[Cs])!=null||(Ox[Cs]={connected:!1,clientConnected:!1,appRecords:[],activeAppRecord:null,selectedComponentId:null,pluginBuffer:[],tabs:[],commands:[],vitePluginDetected:!1,activeAppRecordId:null});var xx,Px;(Px=(xx=Je)[zo])!=null||(xx[zo]=bc(Hj));var yte=$c((t,r)=>{jt.callHook("devtools:state-updated",t,r)},80),bte=$c((t,r)=>{jt.callHook("devtools:connected-updated",t,r)},80),Vt=new Proxy(Je[Cs],{get(t,r){return Je[Cs][r]},set(t,r,e){var n;const i={...Je[Cs]};return t[r]=e,Je[Cs][r]=e,r==="activeAppRecord"&&(Je[zo].appRecord=e,Je[zo].api=e.api,Je[zo].inspector=(n=e.inspector)!=null?n:[],pte(e),Je[zo].routerInfo=vte),yte(Je[Cs],i),["connected","clientConnected"].includes(r.toString())&&i[r]!==e&&bte(Je[Cs],i),!0},deleteProperty(t,r){return delete t[r],!0}});Object.defineProperty(Vt.tabs,"push",{configurable:!0,value(...t){const r=Array.prototype.push.apply(this,t);return Vt.tabs=this,jt.callHook("custom-tabs:updated",this),r}});["push","splice"].forEach(t=>{Object.defineProperty(Vt.commands,t,{configurable:!0,value(...r){const e=Array.prototype[t].apply(this,r);return Vt.commands=this,jt.callHook("custom-commands:updated",this),e}})});var Cr=new Proxy(Je[zo],{get(t,r){return r==="router"?Je[tp]:r==="clear"?$te:Je[zo][r]},set(t,r,e){return r==="componentPluginHookBuffer"&&(Je[zo][r]=e),!0}});function $te(){Je[zo]=bc(Hj)}it();it();it();it();var wte=new Set(["nextTick","defineComponent","defineAsyncComponent","defineCustomElement","ref","computed","reactive","readonly","watchEffect","watchPostEffect","watchSyncEffect","watch","isRef","unref","toRef","toRefs","isProxy","isReactive","isReadonly","shallowRef","triggerRef","customRef","shallowReactive","shallowReadonly","toRaw","markRaw","effectScope","getCurrentScope","onScopeDispose","onMounted","onUpdated","onUnmounted","onBeforeMount","onBeforeUpdate","onBeforeUnmount","onErrorCaptured","onRenderTracked","onRenderTriggered","onActivated","onDeactivated","onServerPrefetch","provide","inject","h","mergeProps","cloneVNode","isVNode","resolveComponent","resolveDirective","withDirectives","withModifiers"]),Rx=/^\[native Symbol Symbol\((.*)\)\]$/,_te=/^\[object (\w+)]$/,rp=/^\[native (\w+) (.*?)(<>((.|\s)*))?\]$/,Ete=/^(?:function|class) (\w+)/,Dx=1e4,Nx=5e3,QA="__vue_devtool_undefined__",Sm="__vue_devtool_infinity__",Tm="__vue_devtool_negative_infinity__",Om="__vue_devtool_nan__",Ste={"<":"<",">":">",'"':""","&":"&"};it();it();function Tte(t){return t.name||t._componentTag||t.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||t.__name}function Uj(t){const r=t.__file;if(r)return R4(Cq(r,".vue"))}function Ote(t){const r=t.displayName||t.name||t._componentTag;return r||Uj(t)}function Mx(t,r){return t.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=r,r}function lc(t){if(t.__VUE_DEVTOOLS_APP_RECORD__)return t.__VUE_DEVTOOLS_APP_RECORD__;if(t.root)return t.appContext.app.__VUE_DEVTOOLS_APP_RECORD__}async function cv(t){const{app:r,uid:e,instance:n}=t;try{if(n.__VUE_DEVTOOLS_UID__)return n.__VUE_DEVTOOLS_UID__;const i=await lc(r);if(!i)return null;const o=i.rootInstance===n;return`${i.id}:${o?"root":e}`}catch{}}function A2(t){var r;return((r=t.subTree)==null?void 0:r.type)===be}function Bb(t){return t._isBeingDestroyed||t.isUnmounted}function cl(t){var r,e,n;const i=Tte(t.type||{});if(i)return i;if(t.root===t)return"Root";for(const a in(e=(r=t.parent)==null?void 0:r.type)==null?void 0:e.components)if(t.parent.type.components[a]===t.type)return Mx(t,a);for(const a in(n=t.appContext)==null?void 0:n.components)if(t.appContext.components[a]===t.type)return Mx(t,a);const o=Uj(t.type||{});return o||"Anonymous Component"}function Zj(t){var r,e,n;const i=(n=(e=(r=t?.appContext)==null?void 0:r.app)==null?void 0:e.__VUE_DEVTOOLS_APP_RECORD_ID__)!=null?n:0,o=t===t.root?"root":t.uid;return`${i}:${o}`}function kte(t){return t==null?"":typeof t=="number"?t:typeof t=="string"?`'${t}'`:Array.isArray(t)?"Array":"Object"}function dl(t){try{return t()}catch(r){return r}}function Sc(t,r){return r=r||`${t.id}:root`,t.instanceMap.get(r)||t.instanceMap.get(":root")}it();it();it();function xte(t){return t._&&Object.keys(t._).includes("vnode")}function Kj(t){return Object.prototype.toString.call(t)==="[object Object]"}function Pte(t){if(t==null)return!0;const r=typeof t;return r==="string"||r==="number"||r==="boolean"}function Yj(t){return!!t.__v_isRef}function Rte(t){return Yj(t)&&!!t.effect}function Dte(t){return!!t.__v_isReactive}function Nte(t){return!!t.__v_isReadonly}var np={[QA]:"undefined",[Om]:"NaN",[Sm]:"Infinity",[Tm]:"-Infinity"},Fb=Object.entries(np).reduce((t,[r,e])=>(t[e]=r,t),{});function Mte(t){return t===null?"null":typeof t=="string"&&np[t]||!1}function Bte(t){const r=new RegExp(`"(${Object.keys(np).join("|")})"`,"g");return t.replace(r,(e,n)=>np[n])}function Fte(t){const r=Fb[t.trim()];if(r)return`"${r}"`;const e=new RegExp(`:\\s*(${Object.keys(Fb).join("|")})`,"g");return t.replace(e,(n,i)=>`:"${Fb[i]}"`)}function Xj(t){if(Array.isArray(t))return t.map(e=>Xj(e)).join(" or ");if(t==null)return"null";const r=t.toString().match(Ete);return typeof t=="function"&&r&&r[1]||"any"}function Lte(t){return!Pte(t)&&!Array.isArray(t)&&!Kj(t)?Object.prototype.toString.call(t):t}function Qj(t){return{ref:Yj(t),computed:Rte(t),reactive:Dte(t),readonly:Nte(t)}}function qj(t){return t?.__v_raw?t.__v_raw:t}function Ih(t){return t.replace(/[<>"&]/g,r=>Ste[r]||r)}function ip(t,r,e){if(typeof r=="function"&&(r=r.options),!r)return t;const{mixins:n,extends:i}=r;i&&ip(t,i),n&&n.forEach(o=>ip(t,o));for(const o of["computed","inject"])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]?Object.assign(t[o],r[o]):t[o]=r[o]);return t}function zte(t){const r=t.type,{mixins:e,extends:n}=r,i=t.appContext.mixins;if(!i.length&&!e&&!n)return r;const o={};return i.forEach(a=>ip(o,a)),ip(o,r),o}function jte(t){const r=[],e=t.type.props;for(const n in t.props){const i=e?e[n]:null,o=Aq(n);r.push({type:"props",key:o,value:dl(()=>t.props[n]),meta:i?{type:i.type?Xj(i.type):"any",required:!!i.required,...i.default?{default:i.default.toString()}:{}}:{type:"invalid"}})}return r}function Vte(t){const r=t.type,e=r.props,n=r.vuex&&r.vuex.getters,i=r.computed,o={...t.data,...t.renderContext};return Object.keys(o).filter(a=>!(e&&a in e)&&!(n&&a in n)&&!(i&&a in i)).map(a=>({key:a,type:"data",value:dl(()=>o[a]),editable:!0}))}function Gte(t){const r=t.computed?"computed":t.ref?"ref":t.reactive?"reactive":null,e=r?`${r.charAt(0).toUpperCase()}${r.slice(1)}`:null;return{stateType:r,stateTypeName:e}}function Wte(t){const r=t.devtoolsRawSetupState||{};return Object.keys(t.setupState).filter(e=>!wte.has(e)&&e.split(/(?=[A-Z])/)[0]!=="use").map(e=>{var n,i,o,a;const s=dl(()=>qj(t.setupState[e])),l=r[e];let g,u=typeof s=="function"||typeof s?.render=="function"||typeof s?.__asyncLoader=="function";if(l){const d=Qj(l),{stateType:h,stateTypeName:A}=Gte(d),f=d.ref||d.computed||d.reactive,C=((i=(n=l.effect)==null?void 0:n.raw)==null?void 0:i.toString())||((a=(o=l.effect)==null?void 0:o.fn)==null?void 0:a.toString());h&&(u=!1),g={...h?{stateType:h,stateTypeName:A}:{},...C?{raw:C}:{},editable:f&&!d.readonly}}return{key:e,value:s,type:u?"setup (other)":"setup",...g}})}function Hte(t,r){const e=r,n=[],i=e.computed||{};for(const o in i){const a=i[o],s=typeof a=="function"&&a.vuex?"vuex bindings":"computed";n.push({type:s,key:o,value:dl(()=>{var l;return(l=t?.proxy)==null?void 0:l[o]}),editable:typeof a.set=="function"})}return n}function Ute(t){return Object.keys(t.attrs).map(r=>({type:"attrs",key:r,value:dl(()=>t.attrs[r])}))}function Zte(t){return Reflect.ownKeys(t.provides).map(r=>({type:"provided",key:r.toString(),value:dl(()=>t.provides[r])}))}function Kte(t,r){if(!r?.inject)return[];let e=[],n;return Array.isArray(r.inject)?e=r.inject.map(i=>({key:i,originalKey:i})):e=Reflect.ownKeys(r.inject).map(i=>{const o=r.inject[i];let a;return typeof o=="string"||typeof o=="symbol"?a=o:(a=o.from,n=o.default),{key:i,originalKey:a}}),e.map(({key:i,originalKey:o})=>({type:"injected",key:o&&i!==o?`${o.toString()} ➞ ${i.toString()}`:i.toString(),value:dl(()=>t.ctx.hasOwnProperty(i)?t.ctx[i]:t.provides.hasOwnProperty(o)?t.provides[o]:n)}))}function Yte(t){return Object.keys(t.refs).map(r=>({type:"refs",key:r,value:dl(()=>t.refs[r])}))}function Xte(t){var r;const e=t.type.emits,n=Array.isArray(e)?e:Object.keys(e??{}),i=Object.keys((r=t.vnode.props)!=null?r:{}),o=[];for(const a of i){const[s,...l]=a.split(/(?=[A-Z])/);if(s==="on"){const g=l.join("-").toLowerCase(),u=n.includes(g);o.push({type:"event listeners",key:g,value:{_custom:{displayText:u?"✅ Declared":"⚠️ Not declared",key:u?"✅ Declared":"⚠️ Not declared",value:u?"✅ Declared":"⚠️ Not declared",tooltipText:u?null:`The event <code>${g}</code> is not declared in the <code>emits</code> option. It will leak into the component's attributes (<code>$attrs</code>).`}}})}}return o}function Jj(t){const r=zte(t);return jte(t).concat(Vte(t),Wte(t),Hte(t,r),Ute(t),Zte(t),Kte(t,r),Yte(t),Xte(t))}function Qte(t){let r="",e=null;try{r=Function.prototype.toString.call(t),e=String.prototype.match.call(r,/\([\s\S]*?\)/)}catch{}const n=e&&e[0],i=typeof n=="string"?n:"(?)",o=typeof t.name=="string"?t.name:"";return{_custom:{type:"function",displayText:`<span style="opacity:.5;">function</span> ${Ih(o)}${i}`,tooltipText:r.trim()?`<pre>${r}</pre>`:null}}}function qte(t){const r=BigInt.prototype.toString.call(t);return{_custom:{type:"bigint",displayText:`BigInt(${r})`,value:r}}}function Jte(t){const r=[];return t.forEach((e,n)=>r.push({key:n,value:e})),{_custom:{type:"map",displayText:"Map",value:r,readOnly:!0,fields:{abstract:!0}}}}function ere(t){const r=Array.from(t);return{_custom:{type:"set",displayText:`Set[${r.length}]`,value:r,readOnly:!0}}}function tre(t){const r={},e=t.getters||{},n=Object.keys(e);for(let i=0;i<n.length;i++){const o=n[i];Object.defineProperty(r,o,{enumerable:!0,get:()=>{try{return e[o]}catch(a){return a}}})}return r}function rre(t){if(t.length)return t.reduce((r,e)=>{const n=e.type||"data",i=r[n]=r[n]||{};return i[e.key]=e.value,r},{})}function nre(t){const r={},e=t.length;for(let n=0;n<e;n++){const i=t.item(n);r[i.name]=i.value}return r}function ire(t){return{_custom:{type:"store",displayText:"Store",value:{state:t.state,getters:tre(t)},fields:{abstract:!0}}}}function ore(t){return{_custom:{type:"router",displayText:"VueRouter",value:{options:t.options,currentRoute:t.currentRoute},fields:{abstract:!0}}}}function are(t){t._&&(t=t._);const r=Jj(t);return{_custom:{type:"component",id:t.__VUE_DEVTOOLS_UID__,displayText:cl(t),tooltipText:"Component instance",value:rre(r),fields:{abstract:!0}}}}function sre(t){let r=Ote(t);return r?t.name&&t.__file&&(r+=` <span>(${t.__file})</span>`):r="<i>Unknown Component</i>",{_custom:{type:"component-definition",displayText:r,tooltipText:"Component definition",...t.__file?{file:t.__file}:{}}}}function lre(t){try{return{_custom:{type:"HTMLElement",displayText:`<span class="opacity-30"><</span><span class="text-blue-500">${t.tagName.toLowerCase()}</span><span class="opacity-30">></span>`,value:nre(t.attributes)}}}catch{return{_custom:{type:"HTMLElement",displayText:`<span class="text-blue-500">${String(t)}</span>`}}}}function gre(t){var r,e,n,i;const o=Qj(t);if(o.ref||o.computed||o.reactive){const s=o.computed?"Computed":o.ref?"Ref":o.reactive?"Reactive":null,l=qj(o.reactive?t:t._value),g=((e=(r=t.effect)==null?void 0:r.raw)==null?void 0:e.toString())||((i=(n=t.effect)==null?void 0:n.fn)==null?void 0:i.toString());return{_custom:{type:s?.toLowerCase(),stateTypeName:s,value:l,...g?{tooltipText:`<span class="font-mono">${g}</span>`}:{}}}}if(typeof t.__asyncLoader=="function")return{_custom:{type:"component-definition",display:"Async component definition"}}}function ure(t){var r;if(t==="compilerOptions")return;const e=this[t],n=typeof e;if(Array.isArray(e)){const i=e.length;return i>Nx?{_isArray:!0,length:i,items:e.slice(0,Nx)}:e}else{if(typeof e=="string")return e.length>Dx?`${e.substring(0,Dx)}... (${e.length} total length)`:e;if(n==="undefined")return QA;if(e===Number.POSITIVE_INFINITY)return Sm;if(e===Number.NEGATIVE_INFINITY)return Tm;if(typeof e=="function")return Qte(e);if(n==="symbol")return`[native Symbol ${Symbol.prototype.toString.call(e)}]`;if(typeof e=="bigint")return qte(e);if(e!==null&&typeof e=="object"){const i=Object.prototype.toString.call(e);if(i==="[object Map]")return Jte(e);if(i==="[object Set]")return ere(e);if(i==="[object RegExp]")return`[native RegExp ${RegExp.prototype.toString.call(e)}]`;if(i==="[object Date]")return`[native Date ${Date.prototype.toString.call(e)}]`;if(i==="[object Error]")return`[native Error ${e.message}<>${e.stack}]`;if(e.state&&e._vm)return ire(e);if(e.constructor&&e.constructor.name==="VueRouter")return ore(e);if(xte(e))return are(e);if(typeof e.render=="function")return sre(e);if(e.constructor&&e.constructor.name==="VNode")return`[native VNode <${e.tag}>]`;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return lre(e);if(((r=e.constructor)==null?void 0:r.name)==="Store"&&e._wrappedGetters)return"[object Store]";if(e.currentRoute)return"[object Router]";const o=gre(e);if(o!=null)return o}else if(Number.isNaN(e))return Om}return Lte(e)}it();function cre(t){const r=new Set,e=t._custom.value;for(let n=0;n<e.length;n++){const i=e[n];r.add(km(i))}return r}function dre(t){const r=new Map,e=t._custom.value;for(let n=0;n<e.length;n++){const{key:i,value:o}=e[n];r.set(i,km(o))}return r}function km(t){var r;if(t!==QA){if(t===Sm)return Number.POSITIVE_INFINITY;if(t===Tm)return Number.NEGATIVE_INFINITY;if(t===Om)return Number.NaN;if(t&&t._custom){const{_custom:e}=t;return e.type==="component"?(r=Cr.appRecord)==null?void 0:r.instanceMap.get(e.id):e.type==="map"?dre(t):e.type==="set"?cre(t):e.type==="bigint"?BigInt(e.value):km(e.value)}else if(Rx.test(t)){const[,e]=Rx.exec(t);return Symbol.for(e)}else if(rp.test(t)){const[,e,n,,i]=rp.exec(t),o=new Je[e](n);return e==="Error"&&i&&(o.stack=i),o}else return t}}function e8(t,r){return km(r)}it();var NC=512*1024;function r_(t,r,e,n){let i,o,a,s,l;const g=n.get(t);if(g!=null)return g;const u=e.length,c=Object.prototype.toString.call(t);if(c==="[object Object]"){i={},n.set(t,u),e.push(i);const d=Object.keys(t);for(s=0,l=d.length;s<l;s++){o=d[s];try{if(o==="compilerOptions")return;a=t[o],r&&(a=r.call(t,o,a))}catch(h){a=h}i[o]=r_(a,r,e,n)}}else if(c==="[object Array]")for(i=[],n.set(t,u),e.push(i),s=0,l=t.length;s<l;s++){try{a=t[s],r&&(a=r.call(t,s,a))}catch(d){a=d}i[s]=r_(a,r,e,n)}else e.push(t);return u}function hre(t,r=null){let e=t.length,n,i,o,a,s,l;for(;e--;)if(o=t[e],l=Object.prototype.toString.call(o),l==="[object Object]"){const g=Object.keys(o);for(n=0,i=g.length;n<i;n++)a=g[n],s=t[o[a]],r&&(s=r.call(o,a,s)),o[a]=s}else if(l==="[object Array]")for(n=0,i=o.length;n<i;n++)s=t[o[n]],r&&(s=r.call(o,n,s)),o[n]=s}function Are(t,r=null,e=null){let n;try{n=arguments.length===1?JSON.stringify(t):JSON.stringify(t,r,e)}catch{n=fre(t,r,e)}if(n.length>NC){const i=Math.ceil(n.length/NC),o=[];for(let a=0;a<i;a++)o.push(n.slice(a*NC,(a+1)*NC));return o}return n}function fre(t,r=null,e=null){const n=[];return r_(t,r,n,new Map),e?` ${JSON.stringify(n,null,e)}`:` ${JSON.stringify(n)}`}function Bx(t,r=null){if(Array.isArray(t)&&(t=t.join("")),/^\s/.test(t)){const n=JSON.parse(t);return hre(n,r),n[0]}else return arguments.length===1?JSON.parse(t):JSON.parse(t,r)}it();function xm(t,r=!0){const e=typeof t;if(t==null||t===QA)return"null";if(e==="boolean"||e==="number"||t===Sm||t===Tm||t===Om)return"literal";if(t?._custom)return r||t._custom.display!=null||t._custom.displayText!=null?"custom":xm(t._custom.value);if(typeof t=="string"){const n=rp.exec(t);if(n){const[,i]=n;return`native ${i}`}else return"string"}else return Array.isArray(t)||t?._isArray?"array":Kj(t)?"plain-object":"unknown"}function t8(t,r=!1){var e,n;let i;const o=xm(t,!1);if(o!=="custom"&&t?._custom&&(t=t._custom.value),i=Mte(t))return i;if(o==="custom")return((e=t._custom.value)==null?void 0:e._custom)&&t8(t._custom.value)||t._custom.displayText||t._custom.display;if(o==="array")return`Array[${t.length}]`;if(o==="plain-object")return`Object${Object.keys(t).length?"":" (empty)"}`;if(o?.includes("native"))return Ih((n=rp.exec(t))==null?void 0:n[2]);if(typeof t=="string"){const a=t.match(_te);a?t=Ih(a[1]):r?t=`<span>"</span>${Ih(t)}<span>"</span>`:t=Ih(t),t=t.replace(/ /g," ").replace(/\n/g,"<span>\\n</span>")}return t}function f2(t){var r,e;const n=xm(t)==="custom";let i={};if(n){const o=t,a=(r=o._custom)==null?void 0:r.value,s=typeof a=="object"&&a!==null&&"_custom"in a?f2(a):{inherit:void 0,value:void 0};i=s.inherit||((e=o._custom)==null?void 0:e.fields)||{},t=s.value||a}return t&&t._isArray&&(t=t.items),{value:t,inherit:i}}function Cre(t){return Bte(JSON.stringify(t))}function r8(t){return JSON.parse(Fte(t),e8)}function Nu(t){return Are(t,ure)}function Do(t,r=!1){return t?r?Bx(t,e8):Bx(t):{}}it();function Ire(){return Date.now()}it();it();function vre(t){Cr.inspector.push(t)}function n_(t){return Cr.inspector.find(r=>r.id===t)}function Fx(t,r){const e=n_(t);e&&Object.assign(e,r)}it();function pre(t){Cr.timelineLayer.push(t)}it();it();var n8=class{constructor(){this.refEditor=new mre}set(t,r,e,n){const i=Array.isArray(r)?r:r.split(".");for(;i.length>1;){const s=i.shift();t=t[s],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}const o=i[0],a=this.refEditor.get(t)[o];n?n(t,o,e):this.refEditor.isRef(a)?this.refEditor.set(a,e):t[o]=e}get(t,r){const e=Array.isArray(r)?r:r.split(".");for(let n=0;n<e.length;n++)if(t=t[e[n]],this.refEditor.isRef(t)&&(t=this.refEditor.get(t)),!t)return;return t}has(t,r,e=!1){if(typeof t>"u")return!1;const n=Array.isArray(r)?r.slice():r.split("."),i=e?2:1;for(;t&&n.length>i;){const o=n.shift();t=t[o],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}return t!=null&&Object.prototype.hasOwnProperty.call(t,n[0])}createDefaultSetCallback(t){return(r,e,n)=>{if((t.remove||t.newKey)&&(Array.isArray(r)?r.splice(e,1):mt(r)instanceof Map&&typeof n=="object"&&n&&"key"in n?r.delete(n.key):mt(r)instanceof Set?r.delete(n):Reflect.deleteProperty(r,e)),!t.remove){const i=r[t.newKey||e];this.refEditor.isRef(i)?this.refEditor.set(i,n):r[t.newKey||e]=n}}}},mre=class{set(t,r){if(ze(t))t.value=r;else{const e=Object.keys(t),n=Object.keys(r);e.length>n.length&&e.filter(o=>!n.includes(o)).forEach(o=>Reflect.deleteProperty(t,o)),n.forEach(i=>{Reflect.set(t,i,Reflect.get(r,i))})}}get(t){return ze(t)?t.value:t}isRef(t){return ze(t)||ng(t)}};async function yre(t,r){const{path:e,nodeId:n,state:i,type:o}=t,a=Sc(Cr.appRecord,n);if(!a)return;const s=e.slice();let l;a.devtoolsRawSetupState&&Object.keys(a.devtoolsRawSetupState).includes(e[0])&&(l=a.devtoolsRawSetupState),l&&s&&(i.type,r.set(l,s,i.value,r.createDefaultSetCallback(i)))}var bre=new n8;async function $re(t){yre(t,bre)}it();function wre(t={}){const{file:r,line:e=0,column:n=0}=t;if(r){const i=window.location.origin;Je.__VUE_DEVTOOLS_VITE_PLUGIN_DETECTED__&&Je.__VUE_INSPECTOR__.openInEditor(i,r,e,n)}}it();it();it();it();function _re(t,r){Vt.pluginBuffer.push([t,r])}async function Ere(t){const{app:r,api:e}=t;Vt.pluginBuffer.filter(([i])=>i.app===r).forEach(async([i,o])=>{if(i.packageName!=="vue-query"){if(await lc(i.app),i.packageName==="vue-router"){const a=mte(`${i.id}`);i.app===r&&(Vt.appRecords=Vt.appRecords.map(s=>({...s,routerId:a})))}o(e)}}),Vt.appRecords=Vt.appRecords.map(i=>{var o,a;const s=(a=(o=i.app)==null?void 0:o.config)==null?void 0:a.globalProperties;return s?{...i,moduleDetectives:{vueRouter:!!s.$router,pinia:!!s.$pinia,vueI18n:!!s.$i18n}}:i})}function Sre(t,r){return pi.callHook(Gr.SETUP_DEVTOOLS_PLUGIN,t,r)}it();it();function op(t){return A2(t)?Tre(t.subTree):t.subTree?[t.subTree.el]:[]}function Tre(t){if(!t.children)return[];const r=[];return t.children.forEach(e=>{e.component?r.push(...op(e.component)):e?.el&&r.push(e.el)}),r}it();var Ore=class{constructor(t){this.filter=t||""}isQualified(t){const r=cl(t);return R4(r).toLowerCase().includes(this.filter)||fq(r).toLowerCase().includes(this.filter)}};function kre(t){return new Ore(t)}var xre=class{constructor(t){this.captureIds=new Map;const{filterText:r="",maxDepth:e,recursively:n}=t;this.componentFilter=kre(r),this.maxDepth=e,this.recursively=n}getComponentTree(t){return this.captureIds=new Map,this.findQualifiedChildren(t,0)}getComponentParents(t){this.captureIds=new Map;const r=[];this.captureId(t);let e=t;for(;e=e.parent;)this.captureId(e),r.push(e);return r}captureId(t){if(!t)return null;const r=t.__VUE_DEVTOOLS_UID__!=null?t.__VUE_DEVTOOLS_UID__:Zj(t);return t.__VUE_DEVTOOLS_UID__=r,this.captureIds.has(r)?null:(this.captureIds.set(r,void 0),this.mark(t),r)}async capture(t,r){var e;if(!t)return null;const n=this.captureId(t),i=cl(t),o=this.getInternalInstanceChildren(t.subTree).filter(c=>!Bb(c)),a=this.getComponentParents(t)||[],s=!!t.isDeactivated||a.some(c=>c.isDeactivated),l={uid:t.uid,id:n,name:i,renderKey:kte(t.vnode?t.vnode.key:null),inactive:s,children:[],isFragment:A2(t),tags:typeof t.type!="function"?[]:[{label:"functional",textColor:5592405,backgroundColor:15658734}],autoOpen:this.recursively,file:t.type.__file||""};if((r<this.maxDepth||t.type.__isKeepAlive||a.some(c=>c.type.__isKeepAlive))&&(l.children=await Promise.all(o.map(c=>this.capture(c,r+1)).filter(Boolean))),this.isKeepAlive(t)){const c=this.getKeepAliveCachedInstances(t),d=o.map(h=>h.__VUE_DEVTOOLS_UID__);for(const h of c)if(!d.includes(h.__VUE_DEVTOOLS_UID__)){const A=await this.capture({...h,isDeactivated:!0},r+1);A&&l.children.push(A)}}const u=op(t)[0];if(u?.parentElement){const c=t.parent,d=c?op(c):[];let h=u;const A=[];do A.push(Array.from(h.parentElement.childNodes).indexOf(h)),h=h.parentElement;while(h.parentElement&&d.length&&!d.includes(h));l.domOrder=A.reverse()}else l.domOrder=[-1];return(e=t.suspense)!=null&&e.suspenseKey&&(l.tags.push({label:t.suspense.suspenseKey,backgroundColor:14979812,textColor:16777215}),this.mark(t,!0)),Cr.api.visitComponentTree({treeNode:l,componentInstance:t,app:t.appContext.app,filter:this.componentFilter.filter}),l}async findQualifiedChildren(t,r){var e;if(this.componentFilter.isQualified(t)&&!((e=t.type.devtools)!=null&&e.hide))return[await this.capture(t,r)];if(t.subTree){const n=this.isKeepAlive(t)?this.getKeepAliveCachedInstances(t):this.getInternalInstanceChildren(t.subTree);return this.findQualifiedChildrenFromList(n,r)}else return[]}async findQualifiedChildrenFromList(t,r){return t=t.filter(e=>{var n;return!Bb(e)&&!((n=e.type.devtools)!=null&&n.hide)}),this.componentFilter.filter?Array.prototype.concat.apply([],await Promise.all(t.map(e=>this.findQualifiedChildren(e,r)))):Promise.all(t.map(e=>this.capture(e,r)))}getInternalInstanceChildren(t,r=null){const e=[];if(t)if(t.component)r?e.push({...t.component,suspense:r}):e.push(t.component);else if(t.suspense){const n=t.suspense.isInFallback?"suspense fallback":"suspense default";e.push(...this.getInternalInstanceChildren(t.suspense.activeBranch,{...t.suspense,suspenseKey:n}))}else Array.isArray(t.children)&&t.children.forEach(n=>{n.component?r?e.push({...n.component,suspense:r}):e.push(n.component):e.push(...this.getInternalInstanceChildren(n,r))});return e.filter(n=>{var i;return!Bb(n)&&!((i=n.type.devtools)!=null&&i.hide)})}mark(t,r=!1){const e=lc(t).instanceMap;(r||!e.has(t.__VUE_DEVTOOLS_UID__))&&e.set(t.__VUE_DEVTOOLS_UID__,t)}isKeepAlive(t){return t.type.__isKeepAlive&&t.__v_cache}getKeepAliveCachedInstances(t){return Array.from(t.__v_cache.values()).map(r=>r.component).filter(Boolean)}};it();function Pre(t){var r;const e=Sc(Cr.appRecord,t.instanceId),n=Zj(e),i=cl(e),o=(r=e?.type)==null?void 0:r.__file,a=Jj(e);return{id:n,name:i,file:o,state:a,instance:e}}it();function Rre(){const t={top:0,bottom:0,left:0,right:0,get width(){return t.right-t.left},get height(){return t.bottom-t.top}};return t}var MC;function Dre(t){return MC||(MC=document.createRange()),MC.selectNode(t),MC.getBoundingClientRect()}function Nre(t){const r=Rre();if(!t.children)return r;for(let e=0,n=t.children.length;e<n;e++){const i=t.children[e];let o;if(i.component)o=bg(i.component);else if(i.el){const a=i.el;a.nodeType===1||a.getBoundingClientRect?o=a.getBoundingClientRect():a.nodeType===3&&a.data.trim()&&(o=Dre(a))}o&&Mre(r,o)}return r}function Mre(t,r){return(!t.top||r.top<t.top)&&(t.top=r.top),(!t.bottom||r.bottom>t.bottom)&&(t.bottom=r.bottom),(!t.left||r.left<t.left)&&(t.left=r.left),(!t.right||r.right>t.right)&&(t.right=r.right),t}var Lx={top:0,left:0,right:0,bottom:0,width:0,height:0};function bg(t){const r=t.subTree.el;return typeof window>"u"?Lx:A2(t)?Nre(t.subTree):r?.nodeType===1?r?.getBoundingClientRect():t.subTree.component?bg(t.subTree.component):Lx}it();var zx,jx,jt=(jx=(zx=Je).__VUE_DEVTOOLS_API_HOOK)!=null?jx:zx.__VUE_DEVTOOLS_API_HOOK=N4(),Bre={devtoolsStateUpdated(t){jt.hook("devtools:state-updated",t)},routerInfoUpdated(t){jt.hook("router-info:updated",t)},getComponentBoundingRect(t){jt.hook("component-bounding-rect:get",t)},inspectComponent(t){jt.hook("component-state:inspect",t)},visitComponentTree(t){jt.hook("component-tree:visit",t)},getInspectorTree(t){jt.hook("inspector-tree:get",t)},getInspectorState(t){jt.hook("inspector-state:get",t)},sendInspectorTree(t){jt.hook("inspector-tree:send",t)},sendInspectorState(t){jt.hook("inspector-state:send",t)},addTimelineEvent(t){jt.hook("timeline:add-event",t)},editInspectorState(t){jt.hook("inspector-state:edit",t)},editComponentState(){},customTabsUpdated(t){jt.hook("custom-tabs:updated",t)},customCommandsUpdated(t){jt.hook("custom-commands:updated",t)}},es="components";function Fre(t){Sre({id:es,label:"Components",app:t},r=>{r.addInspector({id:es,label:"Components",treeFilterPlaceholder:"Search components"}),r.on.getComponentBoundingRect(s=>{if(s.app===t&&s.inspectorId===es){const l=Sc(Cr.appRecord,s.instanceId);if(l){if(typeof DOMRect>"u")return;s.rect=bg(l),s.rect instanceof DOMRect&&(s.rect={top:s.rect.top,left:s.rect.left,right:s.rect.right,bottom:s.rect.bottom,width:s.rect.width,height:s.rect.height})}}}),r.on.getInspectorTree(async s=>{if(s.app===t&&s.inspectorId===es){const l=Sc(Cr.appRecord,s.instanceId);if(l){const g=new xre({filterText:s.filter,maxDepth:100,recursively:!1});s.rootNodes=await g.getComponentTree(l)}}}),r.on.getInspectorState(async s=>{var l;if(s.app===t&&s.inspectorId===es){const g=Pre({instanceId:s.nodeId}),u=g.instance,c=(l=g.instance)==null?void 0:l.appContext.app,d={componentInstance:u,app:c,instanceData:g};jt.callHookWith(h=>{h.forEach(A=>A(d))},"component-state:inspect"),s.state=g}}),r.on.editInspectorState(async s=>{s.app===t&&s.inspectorId===es&&($re(s),await r.sendInspectorState("components"))});const e=$c(()=>{r.sendInspectorTree(es)},120),n=$c(()=>{r.sendInspectorState(es)},120),i=ig.on.componentAdded(async(s,l,g,u)=>{var c,d,h;if((h=(d=(c=s?._instance)==null?void 0:c.type)==null?void 0:d.devtools)!=null&&h.hide||!s||typeof l!="number"&&!l||!u)return;const A=await cv({app:s,uid:l,instance:u}),f=await lc(s);u&&(u.__VUE_DEVTOOLS_UID__==null&&(u.__VUE_DEVTOOLS_UID__=A),f?.instanceMap.has(A)||f?.instanceMap.set(A,u)),f&&e()}),o=ig.on.componentUpdated(async(s,l,g,u)=>{var c,d,h;if((h=(d=(c=s?._instance)==null?void 0:c.type)==null?void 0:d.devtools)!=null&&h.hide||!s||typeof l!="number"&&!l||!u)return;const A=await cv({app:s,uid:l,instance:u}),f=await lc(s);u&&(u.__VUE_DEVTOOLS_UID__==null&&(u.__VUE_DEVTOOLS_UID__=A),f?.instanceMap.has(A)||f?.instanceMap.set(A,u)),f&&(e(),n())}),a=ig.on.componentRemoved(async(s,l,g,u)=>{var c,d,h;if((h=(d=(c=s?._instance)==null?void 0:c.type)==null?void 0:d.devtools)!=null&&h.hide||!s||typeof l!="number"&&!l||!u)return;const A=await lc(s);if(!A)return;const f=await cv({app:s,uid:l,instance:u});A?.instanceMap.delete(f),e()});Cr.componentPluginHookBuffer=[i,o,a]})}async function i8(t){await Fre(t.app),Vt.activeAppRecord=t,Vt.activeAppRecordId=`${t.id}`,Ere({app:t.app,api:t.api})}async function Lre(t){Cr.componentPluginHookBuffer.forEach(e=>e()),Cr.api.clear(),Cr.clear();const r=Vt.appRecords.find(e=>e.id===t);if(r){Vt.pluginBuffer=Vt.pluginBuffer.filter(([n])=>n.id!=="components");const e=new u8;r.api=e,i8(r),window.postMessage({event:"toggle-app-record",target:"vue-devtools"})}}it();function zre(t){Vt.tabs.some(r=>r.name===t.name)||Vt.tabs.push(t)}it();function jre(t){Vt.commands.some(r=>r.id===t.id)||Vt.commands.push(t)}function Vre(t){const r=Vt.commands.findIndex(e=>e.id===t);r!==-1&&Vt.commands.splice(r,1)}it();function Gre(t){let r=0;const e=setInterval(()=>{Je.__VUE_INSPECTOR__&&(clearInterval(e),r+=30,t()),r>=5e3&&clearInterval(e)},30)}function Wre(){const t=Je.__VUE_INSPECTOR__,r=t.openInEditor;t.openInEditor=async(...e)=>{t.disable(),r(...e)}}function Hre(){return new Promise(t=>{function r(){Wre(),t(Je.__VUE_INSPECTOR__)}Je.__VUE_INSPECTOR__?r():Gre(()=>{r()})})}it();var o8="__vue-devtools-component-inspector__",a8="__vue-devtools-component-inspector__card__",s8="__vue-devtools-component-inspector__name__",l8="__vue-devtools-component-inspector__indicator__",g8={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},Ure={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},Zre={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function tl(){return document.getElementById(o8)}function Kre(){return document.getElementById(a8)}function Yre(){return document.getElementById(l8)}function Xre(){return document.getElementById(s8)}function C2(t){return{left:`${Math.round(t.left*100)/100}px`,top:`${Math.round(t.top*100)/100}px`,width:`${Math.round(t.width*100)/100}px`,height:`${Math.round(t.height*100)/100}px`}}function Pm(t){var r;const e=document.createElement("div");e.id=(r=t.elementId)!=null?r:o8,Object.assign(e.style,{...g8,...C2(t.bounds),...t.style});const n=document.createElement("span");n.id=a8,Object.assign(n.style,{...Ure,top:t.bounds.top<35?0:"-35px"});const i=document.createElement("span");i.id=s8,i.innerHTML=`<${t.name}> `;const o=document.createElement("i");return o.id=l8,o.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`,Object.assign(o.style,Zre),n.appendChild(i),n.appendChild(o),e.appendChild(n),document.body.appendChild(e),e}function Rm(t){const r=tl(),e=Kre(),n=Xre(),i=Yre();r&&(Object.assign(r.style,{...g8,...C2(t.bounds)}),Object.assign(e.style,{top:t.bounds.top<35?0:"-35px"}),n.innerHTML=`<${t.name}> `,i.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`)}function Qre(t){if(t.visible){const r=Sc(Cr.appRecord,t.id);if(r&&(t.bounds.width||t.bounds.height)){const e=cl(r);tl()?Rm({...t,name:e}):Pm({...t,name:e})}}else{const r=tl();r&&(r.style.display="none")}}function qre(t){const r=bg(t),e=cl(t);tl()?Rm({bounds:r,name:e}):Pm({bounds:r,name:e})}function Jre(){const t=tl();t&&(t.style.display="none")}var i_=null;function Vx(t){const r=t.target;if(r){const e=r.__vueParentComponent;if(e&&(i_=e,e.vnode.el)){const i=bg(e),o=cl(e);tl()?Rm({bounds:i,name:o}):Pm({bounds:i,name:o})}}}function ene(t,r){var e;if(t.preventDefault(),t.stopPropagation(),i_){const n=(e=Cr.appRecord)==null?void 0:e.app;cv({app:n,uid:n.uid,instance:i_}).then(i=>{r(i)})}}function tne(){return window.addEventListener("mouseover",Vx),new Promise(t=>{function r(e){e.preventDefault(),e.stopPropagation(),ene(e,n=>{window.removeEventListener("click",r),window.removeEventListener("mouseover",Vx);const i=tl();i&&(i.style.display="none"),t(JSON.stringify({id:n}))})}window.addEventListener("click",r)})}function rne(t){const r=Sc(Cr.appRecord,t.id);if(r){const[e]=op(r);if(typeof e.scrollIntoView=="function")e.scrollIntoView({behavior:"smooth"});else{const n=bg(r),i=document.createElement("div"),o={...C2(n),position:"absolute"};Object.assign(i.style,o),document.body.appendChild(i),i.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(i)},2e3)}setTimeout(()=>{const n=bg(r);if(n.width||n.height){const i=cl(r),o=tl();o?Rm({...t,name:i,bounds:n}):Pm({...t,name:i,bounds:n}),setTimeout(()=>{o&&(o.style.display="none")},1500)}},1200)}}it();function nne(){jt.removeAllHooks()}var u8=class{constructor(){this.on=Bre,this.clear=nne}toggleApp(t){return Lre(t)}addTimelineEvent(t){jt.callHook("timeline:add-event",t)}toggleComponentInspector(t){return Qre(t)}inspectComponentInspector(){return tne()}scrollToComponent(t){return rne(t)}getComponentBoundingRect(t){const{inspectorId:r,instanceId:e=""}=t,n={app:Cr.appRecord.app,inspectorId:r,instanceId:e,rect:{top:0,left:0,width:0,height:0}};return jt.callHookWith(i=>{i.map(o=>o(n))},"component-bounding-rect:get"),Nu(n.rect)}async getInspectorTree(t={}){const{inspectorId:r,filter:e="",instanceId:n=""}=t,i={app:Cr.appRecord.app,inspectorId:r,instanceId:n,filter:e,rootNodes:[]};return Fx(r,{filter:e}),await new Promise(o=>{jt.callHookWith(async a=>{await Promise.all(a.map(s=>s(i))),o()},"inspector-tree:get")}),Nu(i.rootNodes)}getInspectorState(t={}){const{inspectorId:r,nodeId:e}=t,n={app:Cr.appRecord.app,inspectorId:r,nodeId:e};Fx(r,{nodeId:e}),jt.callHookWith(o=>{o.forEach(a=>a(n))},"inspector-state:get");const i=n.state;return delete i.instance,Nu(i)}async editInspectorState(t){const r=new n8;jt.callHook("inspector-state:edit",{...t,app:Cr.appRecord.app,set:(e,n=t.path,i=t.state.value,o)=>{r.set(e,n,i,o||r.createDefaultSetCallback(t.state))}})}async sendInspectorTree(t){if(n_(t)){const e=await this.getInspectorTree({inspectorId:t});jt.callHook("inspector-tree:send",Nu({inspectorId:t,data:Do(e)}))}}async sendInspectorState(t){const r=n_(t);if(r&&r.nodeId){const e=await this.getInspectorState({inspectorId:t,nodeId:r.nodeId});jt.callHook("inspector-state:send",Nu({...Do(e),inspectorId:t}))}}addCustomTab(t){zre(t)}addCustomCommand(t){jre(t)}removeCustomCommand(t){Vre(t)}addInspector(t){var r;vre({id:t.id,nodeId:"",filter:"",treeFilterPlaceholder:(r=t.treeFilterPlaceholder)!=null?r:""})}openInEditor(t){wre(t)}highlightElement(t){qre(t)}unhighlightElement(){Jre()}async getComponentInstances(t){const r=t.__VUE_DEVTOOLS_APP_RECORD__,e=r.id.toString();return[...r.instanceMap].filter(([i])=>i.split(":")[0]===e).map(([,i])=>i)}getVueInspector(){return Hre()}visitComponentTree(t){jt.callHook("component-tree:visit",t)}addTimelineLayer(t){pre(t)}notifyComponentUpdate(){}now(){return Ire()}getSettings(){return{logStoreChanges:null}}};it();var ine=hte(fte(),1),Gx,Wx,Lu=(Wx=(Gx=Je).__VUE_DEVTOOLS_APP_RECROD_INFO__)!=null?Wx:Gx.__VUE_DEVTOOLS_APP_RECROD_INFO__={id:0,appIds:new Set};function one(t,r){var e;return((e=t?._component)==null?void 0:e.name)||`App ${r}`}function ane(t){var r,e,n,i;if(t._instance)return t._instance;if((e=(r=t._container)==null?void 0:r._vnode)!=null&&e.component)return(i=(n=t._container)==null?void 0:n._vnode)==null?void 0:i.component}function sne(t,r){if(t.__VUE_DEVTOOLS_APP_RECORD_ID__!=null)return t.__VUE_DEVTOOLS_APP_RECORD_ID__;let e=r??(Lu.id++).toString();if(r&&Lu.appIds.has(e)){let n=1;for(;Lu.appIds.has(`${r}_${n}`);)n++;e=`${r}_${n}`}return Lu.appIds.add(e),t.__VUE_DEVTOOLS_APP_RECORD_ID__=e,e}function lne(t){const r=ane(t);if(r){Lu.id++;const e=one(t,Lu.id.toString()),i={id:sne(t,(0,ine.default)(e)),name:e,instanceMap:new Map,rootInstance:r};t.__VUE_DEVTOOLS_APP_RECORD__=i;const o=`${i.id}:root`;return i.instanceMap.set(o,i.rootInstance),i.rootInstance.__VUE_DEVTOOLS_UID__=o,i}else return{}}function gne(){var t,r,e;Vt.vitePluginDetected=!!Je.__VUE_DEVTOOLS_VITE_PLUGIN_DETECTED__;const n=((t=Je.__VUE_DEVTOOLS_GLOBAL_HOOK__)==null?void 0:t.id)==="vue-devtools-next";Je.__VUE_DEVTOOLS_GLOBAL_HOOK__&&n||(Je.__VUE_DEVTOOLS_GLOBAL_HOOK__?Object.assign(__VUE_DEVTOOLS_GLOBAL_HOOK__,wx()):Je.__VUE_DEVTOOLS_GLOBAL_HOOK__=wx(),(e=(r=Je).__VUE_DEVTOOLS_APP_RECORDS__)!=null||(r.__VUE_DEVTOOLS_APP_RECORDS__=[]),ig.on.setupDevtoolsPlugin(_re),ig.on.vueAppInit(async(i,o)=>{var a;const s=lne(i),l=new u8;Vt.appRecords=[...(a=Vt.appRecords)!=null?a:[],{...s,app:i,version:o,api:l}],Vt.appRecords.length===1&&(await i8(Vt.appRecords[0]),Vt.connected=!0,pi.callHook(Gr.APP_CONNECTED))}),Ite())}var Ct={state:Vt,context:Cr,init:gne,hook:ig,get api(){return Cr.api}};const une=6e4;function c8(t){return t}const cne=c8,{clearTimeout:dne,setTimeout:hne}=globalThis,Ane=Math.random.bind(Math);function fne(t,r){const{post:e,on:n,eventNames:i=[],serialize:o=c8,deserialize:a=cne,resolver:s,timeout:l=une}=r,g=new Map;let u;const c=new Proxy({},{get(d,h){if(h==="$functions")return t;const A=(...C)=>{e(o({m:h,a:C,t:"q"}))};if(i.includes(h))return A.asEvent=A,A;const f=async(...C)=>(await u,new Promise((I,v)=>{const p=Ine();let y;l>=0&&(y=hne(()=>{v(new Error(`[birpc] timeout on calling "${h}"`)),g.delete(p)},l).unref?.()),g.set(p,{resolve:I,reject:v,timeoutId:y}),e(o({m:h,a:C,i:p,t:"q"}))}));return f.asEvent=A,f}});return u=n(async(d,...h)=>{const A=a(d);if(A.t==="q"){const{m:f,a:C}=A;let I,v;const p=s?s(f,t[f]):t[f];if(!p)v=new Error(`[birpc] function "${f}" not found`);else try{I=await p.apply(c,C)}catch(y){v=y}A.i&&(v&&r.onError&&r.onError(v,f,C),e(o({t:"s",i:A.i,r:I,e:v}),...h))}else{const{i:f,r:C,e:I}=A,v=g.get(f);v&&(dne(v.timeoutId),I?v.reject(I):v.resolve(C)),g.delete(f)}}),c}const Cne="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function Ine(t=21){let r="",e=t;for(;e--;)r+=Cne[Ane()*64|0];return r}function vne(t,r,e={},n={}){const i=`${t}:rpc`;return fne(e,{...n,on:async o=>{(await r).on(i,o)},post:async o=>{(await r).send(i,o)}})}var d8=class{constructor(t={tracker:Ek,trigger:Ek}){this.emitter=mq(),this.adapter=t,this.adapter.tracker(r=>{this._emit(r.event,r.data)})}_on(t,r){this.emitter.on(t,r)}off(t,r){this.emitter.off(t,r)}_emit(t,r){this.emitter.emit(t,r)}on(t,r){return this._on(t,r),()=>this.off(t,r)}once(t,r){const e=(...n)=>{r(...n),this.off(t,e)};this._on(t,e)}emit(t,r){this.adapter.trigger({event:t,data:r}),this._emit(t,r)}removeAllListeners(){this.emitter.all.clear()}},It={toggleComponentInspector:"toggle-component-inspector",inspectComponentInspector:"inspect-component-inspector",scrollToComponent:"scroll-to-component",componentBoundingRect:"component-bounding-rect",inspectorTree:"inspector-tree",inspectorState:"inspector-state",updateInspectorTreeId:"inspector-tree:update-id",state:"state",timelineLayer:"timeline-layer",routerInfo:"router-info",router:"router",routeMatched:"route-matched",editState:"edit-inspector-state",openInEditor:"open-in-editor",toggleApp:"toggle-app",isVueInspectorDetected:"vue-inspector:detected",enableVueInspector:"vue-inspector:enable",unhighlightElement:"element:unhighlight"},h8=class{constructor(t){this.bridge=t}on(t,r){this.bridge.on(`${t}:req`,async e=>{const n=await r(e);this.bridge.emit(`${t}:res`,n)})}emit(t,r){return new Promise(e=>{this.bridge.once(`${t}:res`,n=>{const i={data:Do(n)};e(i)}),this.bridge.emit(`${t}:req`,r)})}};function pne(t,r={}){if(!t)return null;const{moduleUpdated:e=()=>{}}=r;return vne("vite-plugin-vue-devtools",t,{moduleUpdated:e},{timeout:-1})}var I2=(t=>(t.DEVTOOLS_STATE_UPDATED="devtools-state:updated",t.CUSTOM_TABS_UPDATED="custom-tabs:updated",t.CUSTOM_COMMANDS_UPDATED="custom-commands:updated",t.ROUTER_INFO_UPDATED="router-info:updated",t.ROUTER="router",t.APP_CONNECTED="user-app:connected",t.CLIENT_READY="devtools:client-ready",t.SEND_INSPECTOR_TREE="inspector-tree:send",t.SEND_INSPECTOR_STATE="inspector-state:send",t.EDIT_STATE="state:edit",t.ADD_TIMELINE_EVENT="timeline:add-event",t))(I2||{}),yt={value:null,viteRpc:{enabled:!1,api:null,on:{moduleUpdated(){}},off:{moduleUpdated(){}}},rpc:null};function mne(t){yt.value=t.bridge,yt.rpc=new h8(t.bridge);const r=[],e=pne(t.viteRPCContext,{moduleUpdated:()=>{r.forEach(n=>n())}});e&&(yt.viteRpc={enabled:!0,api:e,on:{moduleUpdated(n){r.push(n)}},off:{moduleUpdated(){r.length=0}}})}var ap=class{static updateInspectorTreeId(t){yt.rpc.emit(It.updateInspectorTreeId,t)}static toggleComponentInspector(t){yt.rpc.emit(It.toggleComponentInspector,t)}static inspectComponentInspector(){return yt.rpc.emit(It.inspectComponentInspector)}static unhighlightElement(){return yt.rpc.emit(It.unhighlightElement)}static scrollToComponent(t){return yt.rpc.emit(It.scrollToComponent,t)}static async getComponentBoundingRect(t){return yt.rpc.emit(It.componentBoundingRect,t)}static getInspectorTree(t){return yt.rpc.emit(It.inspectorTree,t)}static async getInspectorState(t){return yt.rpc.emit(It.inspectorState,t)}static async editInspectorState(t){return yt.rpc.emit(It.editState,t)}static async getDevToolsState(){return yt.rpc.emit(It.state)}static async getTimelineLayer(){return yt.rpc.emit(It.timelineLayer)}static async getRouterInfo(){return yt.rpc.emit(It.routerInfo)}static async navigate(t){return yt.rpc.emit(It.router,JSON.stringify(t))}static async getMatchedRoutes(t){return yt.rpc.emit(It.routeMatched,t)}static async openInEditor(t){return yt.rpc.emit(It.openInEditor,JSON.stringify(t))}static async isVueInspectorDetected(){return yt.rpc.emit(It.isVueInspectorDetected)}static async enableVueInspector(){return yt.rpc.emit(It.enableVueInspector)}static async toggleApp(t){return yt.rpc.emit(It.toggleApp,t)}static getStaticAssets(){return yt.viteRpc.api.getStaticAssets()}static getImageMeta(t){return yt.viteRpc.api.getImageMeta(t)}static getTextAssetContent(t,r=300){return yt.viteRpc.api.getTextAssetContent(t,r)}static root(){return yt.viteRpc.api.root()}static getGraph(){return yt.viteRpc.api.getGraph()}static graphModuleUpdated(t){return yt.viteRpc.on.moduleUpdated(t),()=>yt.viteRpc.off.moduleUpdated()}};ap.on={inspectorTreeUpdated(t,r){yt.value.on("inspector-tree:send",e=>{const n=Do(e);r.inspectorId===n.inspectorId&&t(n)})},inspectorStateUpdated(t,r){yt.value.on("inspector-state:send",e=>{const n=Do(e);r.inspectorId===n.inspectorId&&t({state:n.state,getters:n.getters})})},devtoolsStateUpdated(t){yt.value.on("devtools-state:updated",r=>{t(Do(r))})},customTabsUpdated(t){yt.value.on("custom-tabs:updated",r=>{t(Do(r))})},customCommandsUpdated(t){yt.value.on("custom-commands:updated",r=>{t(Do(r))})},routerInfoUpdated(t){yt.value.on("router-info:updated",r=>{t(Do(r))})},addTimelineEvent(t){yt.value.on("timeline:add-event",r=>{t(Do(r))})}};function yne(t){const r=new h8(t);r.on(It.state,()=>{var n,i;return JSON.stringify({connected:Ct.state.connected,clientConnected:Ct.state.clientConnected,vueVersion:((i=(n=Ct.state)==null?void 0:n.activeAppRecord)==null?void 0:i.version)||"",tabs:Ct.state.tabs,commands:Ct.state.commands,vitePluginDetected:Ct.state.vitePluginDetected,appRecords:Ct.state.appRecords.map(o=>({id:o.id,name:o.name,version:o.version,routerId:o.routerId,moduleDetectives:o.moduleDetectives})),activeAppRecordId:Ct.state.activeAppRecordId})}),r.on(It.timelineLayer,()=>JSON.stringify(Ct.context.timelineLayer)),r.on(It.toggleComponentInspector,n=>(Ct.api.toggleComponentInspector(n),Promise.resolve(JSON.stringify({})))),r.on(It.inspectComponentInspector,()=>Ct.api.inspectComponentInspector()),r.on(It.unhighlightElement,()=>(Ct.api.unhighlightElement(),Promise.resolve(JSON.stringify({})))),r.on(It.scrollToComponent,n=>(Ct.api.scrollToComponent(n),Promise.resolve(JSON.stringify({})))),r.on(It.componentBoundingRect,async n=>Ct.api.getComponentBoundingRect(n)),r.on(It.inspectorTree,n=>Ct.api.getInspectorTree(n)),r.on(It.updateInspectorTreeId,async n=>{Ct.context.activeInspectorTreeId=n}),r.on(It.inspectorState,async n=>Ct.api.getInspectorState(n)),r.on(It.editState,async n=>Ct.api.editInspectorState(n)),r.on(It.routerInfo,()=>JSON.stringify(Ct.context.routerInfo)),r.on(It.router,n=>{var i;return(i=Ct.context.router)==null||i.push(JSON.parse(n)).catch(o=>o),Promise.resolve(JSON.stringify({}))}),r.on(It.openInEditor,async n=>Ct.api.openInEditor(JSON.parse(n))),r.on(It.isVueInspectorDetected,async()=>{var n,i,o;return!!await((o=(i=(n=Ct)==null?void 0:n.api)==null?void 0:i.getVueInspector)==null?void 0:o.call(i))}),r.on(It.enableVueInspector,async()=>{var n,i,o;const a=await((o=(i=(n=Ct)==null?void 0:n.api)==null?void 0:i.getVueInspector)==null?void 0:o.call(i));a&&await a.enable()}),r.on(It.routeMatched,n=>{var i,o;const a=console.warn;console.warn=()=>{};const s=(o=(i=Ct.context.router)==null?void 0:i.resolve({path:n||"/"}).matched)!=null?o:[];return console.warn=a,JSON.stringify(s)}),r.on(It.toggleApp,async n=>(await Ct.api.toggleApp(n),JSON.stringify({})));function e(){var n,i,o;t.emit("devtools-state:updated",JSON.stringify({vueVersion:((i=(n=Ct.state)==null?void 0:n.activeAppRecord)==null?void 0:i.version)||"",connected:!0,clientConnected:Ct.state.clientConnected,activeAppRecordId:(o=Ct.state)==null?void 0:o.activeAppRecordId,appRecords:Ct.state.appRecords.map(a=>({id:a.id,name:a.name,version:a.version,routerId:a.routerId,moduleDetectives:a.moduleDetectives}))})),Ct.api.on.devtoolsStateUpdated(a=>{var s;t.emit("devtools-state:updated",JSON.stringify({vueVersion:((s=a?.activeAppRecord)==null?void 0:s.version)||"",connected:a.connected,clientConnected:a.clientConnected,appRecords:a.appRecords.map(l=>({id:l.id,name:l.name,version:l.version,routerId:l.routerId,moduleDetectives:l.moduleDetectives})),activeAppRecordId:a.activeAppRecordId}))}),Ct.api.on.customTabsUpdated(a=>{t.emit("custom-tabs:updated",JSON.stringify(a))}),Ct.api.on.customCommandsUpdated(a=>{t.emit("custom-commands:updated",JSON.stringify(a))}),Ct.api.on.routerInfoUpdated(a=>{t.emit("router-info:updated",JSON.stringify(a))}),Ct.api.on.sendInspectorTree(a=>{t.emit("inspector-tree:send",a)}),Ct.api.on.sendInspectorState(a=>{t.emit("inspector-state:send",a)}),Ct.api.on.addTimelineEvent(a=>{t.emit("timeline:add-event",Nu(a))})}t.on("user-app:connected",()=>{e()}),x4&&window.addEventListener("message",n=>{const i=n.data;i.target==="vue-devtools"&&i.event==="toggle-app-record"&&e()})}function A8(t,r){t==="devtools"?mne(r):yne(r.bridge)}function bne(){const t=H(!1),r=H(!1),e=H(0),n=H(""),i=H([]),o=H([]),a=H(!1),s=H([]),l=H("");function g(){ap.getDevToolsState().then(({data:u})=>{t.value=u.connected,r.value=u.clientConnected,n.value=u.vueVersion||"",i.value=u.tabs,o.value=u.commands,a.value=u.vitePluginDetected,s.value=u.appRecords,l.value=u.activeAppRecordId}),ap.on.devtoolsStateUpdated(u=>{t.value=u.connected,r.value=u.clientConnected,n.value=u.vueVersion||"",s.value=u.appRecords,l.value=u.activeAppRecordId})}return{init:g,restore:g,vueVersion:n,connected:t,clientConnected:r,componentCount:e,tabs:i,commands:o,vitePluginDetected:a,appRecords:s,activeAppRecordId:l}}function $ne(t){const r=H(t);function e(n){r.value=n}return{bridge:r,restore:e}}var f8=Symbol("VueDevToolsBridgeSymbol"),C8=Symbol("VueDevToolsStateSymbol");function wne(t){return{install(r,e){const{bridge:n,viewMode:i}=t,o=H(i),a=bne(),s=$ne(n);a.init(),r.provide(f8,s.bridge),r.provide(C8,a),r.provide("viewMode",o),s.bridge.value.on("toggle-view-mode",l=>{o.value=l}),r.config.globalProperties.__VUE_DEVTOOLS_UPDATE__=l=>{s.restore(l),a.restore()}}}}function v2(){return Tr(f8)}function yn(){return ap}function Xi(){return Tr(C8)}var _ne=class{constructor(t){this.socket=t}},I8=class extends _ne{constructor(t){super(t)}onnConnect(){return new Promise(t=>{this.socket.on("syn",()=>{this.socket.emit("syn-ack");const r=setInterval(()=>{this.socket.emit("syn-ack")},300);this.socket.on("ack",()=>{clearInterval(r),t()})})})}};/*!
|
|
18
18
|
* vue-router v4.2.5
|
|
19
19
|
* (c) 2023 Eduardo San Martin Morote
|
|
20
20
|
* @license MIT
|
|
21
|
-
*/const Mu=typeof window<"u";function Ene(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const ar=Object.assign;function Lb(t,r){const e={};for(const n in r){const i=r[n];e[n]=yo(i)?i.map(t):t(i)}return e}const xh=()=>{},yo=Array.isArray,Sne=/\/$/,Tne=t=>t.replace(Sne,"");function zb(t,r,e="/"){let n,i={},o="",a="";const s=r.indexOf("#");let l=r.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=r.slice(0,l),o=r.slice(l+1,s>-1?s:r.length),i=t(o)),s>-1&&(n=n||r.slice(0,s),a=r.slice(s,r.length)),n=Pne(n??r,e),{fullPath:n+(o&&"?")+o+a,path:n,query:i,hash:a}}function One(t,r){const e=r.query?t(r.query):"";return r.path+(e&&"?")+e+(r.hash||"")}function kne(t,r,e){const n=r.matched.length-1,i=e.matched.length-1;return n>-1&&n===i&&Tc(r.matched[n],e.matched[i])&&v8(r.params,e.params)&&t(r.query)===t(e.query)&&r.hash===e.hash}function Tc(t,r){return(t.aliasOf||t)===(r.aliasOf||r)}function v8(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const e in t)if(!xne(t[e],r[e]))return!1;return!0}function xne(t,r){return yo(t)?Hx(t,r):yo(r)?Hx(r,t):t===r}function Hx(t,r){return yo(r)?t.length===r.length&&t.every((e,n)=>e===r[n]):t.length===1&&t[0]===r}function Pne(t,r){if(t.startsWith("/"))return t;if(!t)return r;const e=r.split("/"),n=t.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=e.length-1,a,s;for(a=0;a<n.length;a++)if(s=n[a],s!==".")if(s==="..")o>1&&o--;else break;return e.slice(0,o).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var lA;(function(t){t.pop="pop",t.push="push"})(lA||(lA={}));var sp;(function(t){t.back="back",t.forward="forward",t.unknown=""})(sp||(sp={}));const jb="";function Rne(t){if(!t)if(Mu){const r=document.querySelector("base");t=r&&r.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Tne(t)}const Dne=/^[^#]+#/;function Nne(t,r){return t.replace(Dne,"#")+r}function Mne(t,r){const e=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:r.behavior,left:n.left-e.left-(r.left||0),top:n.top-e.top-(r.top||0)}}const Bne=()=>({left:window.pageXOffset,top:window.pageYOffset});function Fne(t){let r;if("el"in t){const e=t.el,n=typeof e=="string"&&e.startsWith("#"),i=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!i)return;r=Mne(i,t)}else r=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(r):window.scrollTo(r.left!=null?r.left:window.pageXOffset,r.top!=null?r.top:window.pageYOffset)}function Ux(t,r){return(history.state?history.state.position-r:-1)+t}const o_=new Map;function Lne(t,r){o_.set(t,r)}function zne(t){const r=o_.get(t);return o_.delete(t),r}function jne(t=""){let r=[],e=[jb],n=0;t=Rne(t);function i(s){n++,n!==e.length&&e.splice(n),e.push(s)}function o(s,l,{direction:g,delta:u}){const c={direction:g,delta:u,type:lA.pop};for(const d of r)d(s,l,c)}const a={location:jb,state:{},base:t,createHref:Nne.bind(null,t),replace(s){e.splice(n--,1),i(s)},push(s,l){i(s)},listen(s){return r.push(s),()=>{const l=r.indexOf(s);l>-1&&r.splice(l,1)}},destroy(){r=[],e=[jb],n=0},go(s,l=!0){const g=this.location,u=s<0?sp.back:sp.forward;n=Math.max(0,Math.min(n+s,e.length-1)),l&&o(this.location,g,{direction:u,delta:s})}};return Object.defineProperty(a,"location",{enumerable:!0,get:()=>e[n]}),a}function Vne(t){return typeof t=="string"||t&&typeof t=="object"}function p8(t){return typeof t=="string"||typeof t=="symbol"}const ts={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},m8=Symbol("");var Zx;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Zx||(Zx={}));function Oc(t,r){return ar(new Error,{type:t,[m8]:!0},r)}function Aa(t,r){return t instanceof Error&&m8 in t&&(r==null||!!(t.type&r))}const Kx="[^/]+?",Gne={sensitive:!1,strict:!1,start:!0,end:!0},Wne=/[.+*?^${}()[\]/\\]/g;function Hne(t,r){const e=ar({},Gne,r),n=[];let i=e.start?"^":"";const o=[];for(const g of t){const u=g.length?[]:[90];e.strict&&!g.length&&(i+="/");for(let c=0;c<g.length;c++){const d=g[c];let h=40+(e.sensitive?.25:0);if(d.type===0)c||(i+="/"),i+=d.value.replace(Wne,"\\$&"),h+=40;else if(d.type===1){const{value:A,repeatable:f,optional:C,regexp:I}=d;o.push({name:A,repeatable:f,optional:C});const v=I||Kx;if(v!==Kx){h+=10;try{new RegExp(`(${v})`)}catch(y){throw new Error(`Invalid custom RegExp for param "${A}" (${v}): `+y.message)}}let p=f?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;c||(p=C&&g.length<2?`(?:/${p})`:"/"+p),C&&(p+="?"),i+=p,h+=20,C&&(h+=-8),f&&(h+=-20),v===".*"&&(h+=-50)}u.push(h)}n.push(u)}if(e.strict&&e.end){const g=n.length-1;n[g][n[g].length-1]+=.7000000000000001}e.strict||(i+="/?"),e.end?i+="$":e.strict&&(i+="(?:/|$)");const a=new RegExp(i,e.sensitive?"":"i");function s(g){const u=g.match(a),c={};if(!u)return null;for(let d=1;d<u.length;d++){const h=u[d]||"",A=o[d-1];c[A.name]=h&&A.repeatable?h.split("/"):h}return c}function l(g){let u="",c=!1;for(const d of t){(!c||!u.endsWith("/"))&&(u+="/"),c=!1;for(const h of d)if(h.type===0)u+=h.value;else if(h.type===1){const{value:A,repeatable:f,optional:C}=h,I=A in g?g[A]:"";if(yo(I)&&!f)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const v=yo(I)?I.join("/"):I;if(!v)if(C)d.length<2&&(u.endsWith("/")?u=u.slice(0,-1):c=!0);else throw new Error(`Missing required param "${A}"`);u+=v}}return u||"/"}return{re:a,score:n,keys:o,parse:s,stringify:l}}function Une(t,r){let e=0;for(;e<t.length&&e<r.length;){const n=r[e]-t[e];if(n)return n;e++}return t.length<r.length?t.length===1&&t[0]===80?-1:1:t.length>r.length?r.length===1&&r[0]===80?1:-1:0}function Zne(t,r){let e=0;const n=t.score,i=r.score;for(;e<n.length&&e<i.length;){const o=Une(n[e],i[e]);if(o)return o;e++}if(Math.abs(i.length-n.length)===1){if(Yx(n))return 1;if(Yx(i))return-1}return i.length-n.length}function Yx(t){const r=t[t.length-1];return t.length>0&&r[r.length-1]<0}const Kne={type:0,value:""},Yne=/[a-zA-Z0-9_]/;function Xne(t){if(!t)return[[]];if(t==="/")return[[Kne]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function r(h){throw new Error(`ERR (${e})/"${g}": ${h}`)}let e=0,n=e;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,g="",u="";function c(){g&&(e===0?o.push({type:0,value:g}):e===1||e===2||e===3?(o.length>1&&(l==="*"||l==="+")&&r(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:g,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):r("Invalid state to consume buffer"),g="")}function d(){g+=l}for(;s<t.length;){if(l=t[s++],l==="\\"&&e!==2){n=e,e=4;continue}switch(e){case 0:l==="/"?(g&&c(),a()):l===":"?(c(),e=1):d();break;case 4:d(),e=n;break;case 1:l==="("?e=2:Yne.test(l)?d():(c(),e=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:e=3:u+=l;break;case 3:c(),e=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,u="";break;default:r("Unknown state");break}}return e===2&&r(`Unfinished custom RegExp for param "${g}"`),c(),a(),i}function Qne(t,r,e){const n=Hne(Xne(t.path),e),i=ar(n,{record:t,parent:r,children:[],alias:[]});return r&&!i.record.aliasOf==!r.record.aliasOf&&r.children.push(i),i}function qne(t,r){const e=[],n=new Map;r=qx({strict:!1,end:!0,sensitive:!1},r);function i(u){return n.get(u)}function o(u,c,d){const h=!d,A=Jne(u);A.aliasOf=d&&d.record;const f=qx(r,u),C=[A];if("alias"in u){const p=typeof u.alias=="string"?[u.alias]:u.alias;for(const y of p)C.push(ar({},A,{components:d?d.record.components:A.components,path:y,aliasOf:d?d.record:A}))}let I,v;for(const p of C){const{path:y}=p;if(c&&y[0]!=="/"){const b=c.record.path,_=b[b.length-1]==="/"?"":"/";p.path=c.record.path+(y&&_+y)}if(I=Qne(p,c,f),d?d.alias.push(I):(v=v||I,v!==I&&v.alias.push(I),h&&u.name&&!Qx(I)&&a(u.name)),A.children){const b=A.children;for(let _=0;_<b.length;_++)o(b[_],I,d&&d.children[_])}d=d||I,(I.record.components&&Object.keys(I.record.components).length||I.record.name||I.record.redirect)&&l(I)}return v?()=>{a(v)}:xh}function a(u){if(p8(u)){const c=n.get(u);c&&(n.delete(u),e.splice(e.indexOf(c),1),c.children.forEach(a),c.alias.forEach(a))}else{const c=e.indexOf(u);c>-1&&(e.splice(c,1),u.record.name&&n.delete(u.record.name),u.children.forEach(a),u.alias.forEach(a))}}function s(){return e}function l(u){let c=0;for(;c<e.length&&Zne(u,e[c])>=0&&(u.record.path!==e[c].record.path||!y8(u,e[c]));)c++;e.splice(c,0,u),u.record.name&&!Qx(u)&&n.set(u.record.name,u)}function g(u,c){let d,h={},A,f;if("name"in u&&u.name){if(d=n.get(u.name),!d)throw Oc(1,{location:u});f=d.record.name,h=ar(Xx(c.params,d.keys.filter(v=>!v.optional).map(v=>v.name)),u.params&&Xx(u.params,d.keys.map(v=>v.name))),A=d.stringify(h)}else if("path"in u)A=u.path,d=e.find(v=>v.re.test(A)),d&&(h=d.parse(A),f=d.record.name);else{if(d=c.name?n.get(c.name):e.find(v=>v.re.test(c.path)),!d)throw Oc(1,{location:u,currentLocation:c});f=d.record.name,h=ar({},c.params,u.params),A=d.stringify(h)}const C=[];let I=d;for(;I;)C.unshift(I.record),I=I.parent;return{name:f,path:A,params:h,matched:C,meta:tie(C)}}return t.forEach(u=>o(u)),{addRoute:o,resolve:g,removeRoute:a,getRoutes:s,getRecordMatcher:i}}function Xx(t,r){const e={};for(const n of r)n in t&&(e[n]=t[n]);return e}function Jne(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:eie(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function eie(t){const r={},e=t.props||!1;if("component"in t)r.default=e;else for(const n in t.components)r[n]=typeof e=="object"?e[n]:e;return r}function Qx(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function tie(t){return t.reduce((r,e)=>ar(r,e.meta),{})}function qx(t,r){const e={};for(const n in t)e[n]=n in r?r[n]:t[n];return e}function y8(t,r){return r.children.some(e=>e===t||y8(t,e))}const b8=/#/g,rie=/&/g,nie=/\//g,iie=/=/g,oie=/\?/g,$8=/\+/g,aie=/%5B/g,sie=/%5D/g,w8=/%5E/g,lie=/%60/g,_8=/%7B/g,gie=/%7C/g,E8=/%7D/g,uie=/%20/g;function p2(t){return encodeURI(""+t).replace(gie,"|").replace(aie,"[").replace(sie,"]")}function cie(t){return p2(t).replace(_8,"{").replace(E8,"}").replace(w8,"^")}function a_(t){return p2(t).replace($8,"%2B").replace(uie,"+").replace(b8,"%23").replace(rie,"%26").replace(lie,"`").replace(_8,"{").replace(E8,"}").replace(w8,"^")}function die(t){return a_(t).replace(iie,"%3D")}function hie(t){return p2(t).replace(b8,"%23").replace(oie,"%3F")}function Aie(t){return t==null?"":hie(t).replace(nie,"%2F")}function lp(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function fie(t){const r={};if(t===""||t==="?")return r;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;i<n.length;++i){const o=n[i].replace($8," "),a=o.indexOf("="),s=lp(a<0?o:o.slice(0,a)),l=a<0?null:lp(o.slice(a+1));if(s in r){let g=r[s];yo(g)||(g=r[s]=[g]),g.push(l)}else r[s]=l}return r}function Jx(t){let r="";for(let e in t){const n=t[e];if(e=die(e),n==null){n!==void 0&&(r+=(r.length?"&":"")+e);continue}(yo(n)?n.map(o=>o&&a_(o)):[n&&a_(n)]).forEach(o=>{o!==void 0&&(r+=(r.length?"&":"")+e,o!=null&&(r+="="+o))})}return r}function Cie(t){const r={};for(const e in t){const n=t[e];n!==void 0&&(r[e]=yo(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return r}const Iie=Symbol(""),eP=Symbol(""),Dm=Symbol(""),m2=Symbol(""),s_=Symbol("");function rh(){let t=[];function r(n){return t.push(n),()=>{const i=t.indexOf(n);i>-1&&t.splice(i,1)}}function e(){t=[]}return{add:r,list:()=>t.slice(),reset:e}}function Is(t,r,e,n,i){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((a,s)=>{const l=c=>{c===!1?s(Oc(4,{from:e,to:r})):c instanceof Error?s(c):Vne(c)?s(Oc(2,{from:r,to:c})):(o&&n.enterCallbacks[i]===o&&typeof c=="function"&&o.push(c),a())},g=t.call(n&&n.instances[i],r,e,l);let u=Promise.resolve(g);t.length<3&&(u=u.then(l)),u.catch(c=>s(c))})}function Vb(t,r,e,n){const i=[];for(const o of t)for(const a in o.components){let s=o.components[a];if(!(r!=="beforeRouteEnter"&&!o.instances[a]))if(vie(s)){const g=(s.__vccOpts||s)[r];g&&i.push(Is(g,e,n,o,a))}else{let l=s();i.push(()=>l.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${o.path}"`));const u=Ene(g)?g.default:g;o.components[a]=u;const d=(u.__vccOpts||u)[r];return d&&Is(d,e,n,o,a)()}))}}return i}function vie(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function tP(t){const r=Tr(Dm),e=Tr(m2),n=J(()=>r.resolve(m(t.to))),i=J(()=>{const{matched:l}=n.value,{length:g}=l,u=l[g-1],c=e.matched;if(!u||!c.length)return-1;const d=c.findIndex(Tc.bind(null,u));if(d>-1)return d;const h=rP(l[g-2]);return g>1&&rP(u)===h&&c[c.length-1].path!==h?c.findIndex(Tc.bind(null,l[g-2])):d}),o=J(()=>i.value>-1&&yie(e.params,n.value.params)),a=J(()=>i.value>-1&&i.value===e.matched.length-1&&v8(e.params,n.value.params));function s(l={}){return mie(l)?r[m(t.replace)?"replace":"push"](m(t.to)).catch(xh):Promise.resolve()}return{route:n,href:J(()=>n.value.href),isActive:o,isExactActive:a,navigate:s}}const pie=we({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:tP,setup(t,{slots:r}){const e=Qs(tP(t)),{options:n}=Tr(Dm),i=J(()=>({[nP(t.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[nP(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const o=r.default&&r.default(e);return t.custom?o:ld("a",{"aria-current":e.isExactActive?t.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:i.value},o)}}}),S8=pie;function mie(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const r=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(r))return}return t.preventDefault&&t.preventDefault(),!0}}function yie(t,r){for(const e in r){const n=r[e],i=t[e];if(typeof n=="string"){if(n!==i)return!1}else if(!yo(i)||i.length!==n.length||n.some((o,a)=>o!==i[a]))return!1}return!0}function rP(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const nP=(t,r,e)=>t??r??e,bie=we({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:r,slots:e}){const n=Tr(s_),i=J(()=>t.route||n.value),o=Tr(eP,0),a=J(()=>{let g=m(o);const{matched:u}=i.value;let c;for(;(c=u[g])&&!c.components;)g++;return g}),s=J(()=>i.value.matched[a.value]);pa(eP,J(()=>a.value+1)),pa(Iie,s),pa(s_,i);const l=H();return et(()=>[l.value,s.value,t.name],([g,u,c],[d,h,A])=>{u&&(u.instances[c]=g,h&&h!==u&&g&&g===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),g&&u&&(!h||!Tc(u,h)||!d)&&(u.enterCallbacks[c]||[]).forEach(f=>f(g))},{flush:"post"}),()=>{const g=i.value,u=t.name,c=s.value,d=c&&c.components[u];if(!d)return iP(e.default,{Component:d,route:g});const h=c.props[u],A=h?h===!0?g.params:typeof h=="function"?h(g):h:null,C=ld(d,ar({},A,r,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(c.instances[u]=null)},ref:l}));return iP(e.default,{Component:C,route:g})||C}}});function iP(t,r){if(!t)return null;const e=t(r);return e.length===1?e[0]:e}const $ie=bie;function wie(t){const r=qne(t.routes,t),e=t.parseQuery||fie,n=t.stringifyQuery||Jx,i=t.history,o=rh(),a=rh(),s=rh(),l=aa(ts);let g=ts;Mu&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Lb.bind(null,U=>""+U),c=Lb.bind(null,Aie),d=Lb.bind(null,lp);function h(U,ie){let R,x;return p8(U)?(R=r.getRecordMatcher(U),x=ie):x=U,r.addRoute(x,R)}function A(U){const ie=r.getRecordMatcher(U);ie&&r.removeRoute(ie)}function f(){return r.getRoutes().map(U=>U.record)}function C(U){return!!r.getRecordMatcher(U)}function I(U,ie){if(ie=ar({},ie||l.value),typeof U=="string"){const S=zb(e,U,ie.path),F=r.resolve({path:S.path},ie),Z=i.createHref(S.fullPath);return ar(S,F,{params:d(F.params),hash:lp(S.hash),redirectedFrom:void 0,href:Z})}let R;if("path"in U)R=ar({},U,{path:zb(e,U.path,ie.path).path});else{const S=ar({},U.params);for(const F in S)S[F]==null&&delete S[F];R=ar({},U,{params:c(S)}),ie.params=c(ie.params)}const x=r.resolve(R,ie),B=U.hash||"";x.params=u(d(x.params));const K=One(n,ar({},U,{hash:cie(B),path:x.path})),$=i.createHref(K);return ar({fullPath:K,hash:B,query:n===Jx?Cie(U.query):U.query||{}},x,{redirectedFrom:void 0,href:$})}function v(U){return typeof U=="string"?zb(e,U,l.value.path):ar({},U)}function p(U,ie){if(g!==U)return Oc(8,{from:ie,to:U})}function y(U){return P(U)}function b(U){return y(ar(v(U),{replace:!0}))}function _(U){const ie=U.matched[U.matched.length-1];if(ie&&ie.redirect){const{redirect:R}=ie;let x=typeof R=="function"?R(U):R;return typeof x=="string"&&(x=x.includes("?")||x.includes("#")?x=v(x):{path:x},x.params={}),ar({query:U.query,hash:U.hash,params:"path"in x?{}:U.params},x)}}function P(U,ie){const R=g=I(U),x=l.value,B=U.state,K=U.force,$=U.replace===!0,S=_(R);if(S)return P(ar(v(S),{state:typeof S=="object"?ar({},B,S.state):B,force:K,replace:$}),ie||R);const F=R;F.redirectedFrom=ie;let Z;return!K&&kne(n,x,R)&&(Z=Oc(16,{to:F,from:x}),Le(x,x,!0,!1)),(Z?Promise.resolve(Z):O(F,x)).catch(G=>Aa(G)?Aa(G,2)?G:He(G):oe(G,F,x)).then(G=>{if(G){if(Aa(G,2))return P(ar({replace:$},v(G.to),{state:typeof G.to=="object"?ar({},B,G.to.state):B,force:K}),ie||F)}else G=D(F,x,!0,$,B);return N(F,x,G),G})}function k(U,ie){const R=p(U,ie);return R?Promise.reject(R):Promise.resolve()}function E(U){const ie=We.values().next().value;return ie&&typeof ie.runWithContext=="function"?ie.runWithContext(U):U()}function O(U,ie){let R;const[x,B,K]=_ie(U,ie);R=Vb(x.reverse(),"beforeRouteLeave",U,ie);for(const S of x)S.leaveGuards.forEach(F=>{R.push(Is(F,U,ie))});const $=k.bind(null,U,ie);return R.push($),At(R).then(()=>{R=[];for(const S of o.list())R.push(Is(S,U,ie));return R.push($),At(R)}).then(()=>{R=Vb(B,"beforeRouteUpdate",U,ie);for(const S of B)S.updateGuards.forEach(F=>{R.push(Is(F,U,ie))});return R.push($),At(R)}).then(()=>{R=[];for(const S of K)if(S.beforeEnter)if(yo(S.beforeEnter))for(const F of S.beforeEnter)R.push(Is(F,U,ie));else R.push(Is(S.beforeEnter,U,ie));return R.push($),At(R)}).then(()=>(U.matched.forEach(S=>S.enterCallbacks={}),R=Vb(K,"beforeRouteEnter",U,ie),R.push($),At(R))).then(()=>{R=[];for(const S of a.list())R.push(Is(S,U,ie));return R.push($),At(R)}).catch(S=>Aa(S,8)?S:Promise.reject(S))}function N(U,ie,R){s.list().forEach(x=>E(()=>x(U,ie,R)))}function D(U,ie,R,x,B){const K=p(U,ie);if(K)return K;const $=ie===ts,S=Mu?history.state:{};R&&(x||$?i.replace(U.fullPath,ar({scroll:$&&S&&S.scroll},B)):i.push(U.fullPath,B)),l.value=U,Le(U,ie,R,$),He()}let M;function Q(){M||(M=i.listen((U,ie,R)=>{if(!ot.listening)return;const x=I(U),B=_(x);if(B){P(ar(B,{replace:!0}),x).catch(xh);return}g=x;const K=l.value;Mu&&Lne(Ux(K.fullPath,R.delta),Bne()),O(x,K).catch($=>Aa($,12)?$:Aa($,2)?(P($.to,x).then(S=>{Aa(S,20)&&!R.delta&&R.type===lA.pop&&i.go(-1,!1)}).catch(xh),Promise.reject()):(R.delta&&i.go(-R.delta,!1),oe($,x,K))).then($=>{$=$||D(x,K,!1),$&&(R.delta&&!Aa($,8)?i.go(-R.delta,!1):R.type===lA.pop&&Aa($,20)&&i.go(-1,!1)),N(x,K,$)}).catch(xh)}))}let j=rh(),W=rh(),q;function oe(U,ie,R){He(U);const x=W.list();return x.length?x.forEach(B=>B(U,ie,R)):console.error(U),Promise.reject(U)}function Pe(){return q&&l.value!==ts?Promise.resolve():new Promise((U,ie)=>{j.add([U,ie])})}function He(U){return q||(q=!U,Q(),j.list().forEach(([ie,R])=>U?R(U):ie()),j.reset()),U}function Le(U,ie,R,x){const{scrollBehavior:B}=t;if(!Mu||!B)return Promise.resolve();const K=!R&&zne(Ux(U.fullPath,0))||(x||!R)&&history.state&&history.state.scroll||null;return mn().then(()=>B(U,ie,K)).then($=>$&&Fne($)).catch($=>oe($,U,ie))}const me=U=>i.go(U);let Ve;const We=new Set,ot={currentRoute:l,listening:!0,addRoute:h,removeRoute:A,hasRoute:C,getRoutes:f,resolve:I,options:t,push:y,replace:b,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:W.add,isReady:Pe,install(U){const ie=this;U.component("RouterLink",S8),U.component("RouterView",$ie),U.config.globalProperties.$router=ie,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>m(l)}),Mu&&!Ve&&l.value===ts&&(Ve=!0,y(i.location).catch(B=>{}));const R={};for(const B in ts)Object.defineProperty(R,B,{get:()=>l.value[B],enumerable:!0});U.provide(Dm,ie),U.provide(m2,qS(R)),U.provide(s_,l);const x=U.unmount;We.add(U),U.unmount=function(){We.delete(U),We.size<1&&(g=ts,M&&M(),M=null,l.value=ts,Ve=!1,q=!1),x()}}};function At(U){return U.reduce((ie,R)=>ie.then(()=>E(R)),Promise.resolve())}return ot}function _ie(t,r){const e=[],n=[],i=[],o=Math.max(r.matched.length,t.matched.length);for(let a=0;a<o;a++){const s=r.matched[a];s&&(t.matched.find(g=>Tc(g,s))?n.push(s):e.push(s));const l=t.matched[a];l&&(r.matched.find(g=>Tc(g,l))||i.push(l))}return[e,n,i]}function gd(){return Tr(Dm)}function Nm(){return Tr(m2)}const Eie="modulepreload",Sie=function(t,r){return new URL(t,r).href},oP={},$n=function(r,e,n){let i=Promise.resolve();if(e&&e.length>0){const o=document.getElementsByTagName("link");i=Promise.all(e.map(a=>{if(a=Sie(a,n),a in oP)return;oP[a]=!0;const s=a.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!n)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===a&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":Eie,s||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),s)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})}))}return i.then(()=>r()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})};async function Tie(t="/",r=!0){try{const e=`${t}@vite/client`,n=await fetch(e);if((await n.text()).startsWith("<")||!n.headers.get("content-type")?.includes("javascript"))throw new Error("Not javascript");return await $n(()=>import(e),__vite__mapDeps([]),import.meta.url)}catch{r&&console.error(`[vite-hot-client] Failed to import "${t}@vite/client"`)}}const Oie=["src","alt"],kie=["title"],qA=we({__name:"TabIcon",props:{icon:{},title:{},showTitle:{type:Boolean,default:!0}},setup(t){return(r,e)=>r.icon&&(r.icon.startsWith("/")||r.icon.match(/^https?:/))?(T(),L("img",wn({key:0,style:{width:"1em",height:"1em"}},r.$attrs,{src:r.icon,alt:r.title}),null,16,Oie)):(T(),L("div",wn({key:1,style:{width:"1em",height:"1em"}},r.$attrs,{class:r.icon||"i-carbon-bring-forward",title:r.showTitle?r.title:void 0}),null,16,kie))}}),xie=["top","right","bottom","left"],aP=["start","end"],sP=xie.reduce((t,r)=>t.concat(r,r+"-"+aP[0],r+"-"+aP[1]),[]),gA=Math.min,zl=Math.max,Pie={left:"right",right:"left",bottom:"top",top:"bottom"},Rie={start:"end",end:"start"};function l_(t,r,e){return zl(t,gA(r,e))}function Gg(t,r){return typeof t=="function"?t(r):t}function ra(t){return t.split("-")[0]}function po(t){return t.split("-")[1]}function T8(t){return t==="x"?"y":"x"}function y2(t){return t==="y"?"height":"width"}function JA(t){return["top","bottom"].includes(ra(t))?"y":"x"}function b2(t){return T8(JA(t))}function O8(t,r,e){e===void 0&&(e=!1);const n=po(t),i=b2(t),o=y2(i);let a=i==="x"?n===(e?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[o]>r.floating[o]&&(a=up(a)),[a,up(a)]}function Die(t){const r=up(t);return[gp(t),r,gp(r)]}function gp(t){return t.replace(/start|end/g,r=>Rie[r])}function Nie(t,r,e){const n=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?r?i:n:r?n:i;case"left":case"right":return r?o:a;default:return[]}}function Mie(t,r,e,n){const i=po(t);let o=Nie(ra(t),e==="start",n);return i&&(o=o.map(a=>a+"-"+i),r&&(o=o.concat(o.map(gp)))),o}function up(t){return t.replace(/left|right|bottom|top/g,r=>Pie[r])}function Bie(t){return{top:0,right:0,bottom:0,left:0,...t}}function k8(t){return typeof t!="number"?Bie(t):{top:t,right:t,bottom:t,left:t}}function Ph(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function lP(t,r,e){let{reference:n,floating:i}=t;const o=JA(r),a=b2(r),s=y2(a),l=ra(r),g=o==="y",u=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2;let h;switch(l){case"top":h={x:u,y:n.y-i.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:c};break;case"left":h={x:n.x-i.width,y:c};break;default:h={x:n.x,y:n.y}}switch(po(r)){case"start":h[a]-=d*(e&&g?-1:1);break;case"end":h[a]+=d*(e&&g?-1:1);break}return h}const Fie=async(t,r,e)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=e,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(r));let g=await a.getElementRects({reference:t,floating:r,strategy:i}),{x:u,y:c}=lP(g,n,l),d=n,h={},A=0;for(let f=0;f<s.length;f++){const{name:C,fn:I}=s[f],{x:v,y:p,data:y,reset:b}=await I({x:u,y:c,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:g,platform:a,elements:{reference:t,floating:r}});if(u=v??u,c=p??c,h={...h,[C]:{...h[C],...y}},b&&A<=50){A++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(g=b.rects===!0?await a.getElementRects({reference:t,floating:r,strategy:i}):b.rects),{x:u,y:c}=lP(g,d,l)),f=-1;continue}}return{x:u,y:c,placement:d,strategy:i,middlewareData:h}};async function Mm(t,r){var e;r===void 0&&(r={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=t,{boundary:g="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:d=!1,padding:h=0}=Gg(r,t),A=k8(h),C=s[d?c==="floating"?"reference":"floating":c],I=Ph(await o.getClippingRect({element:(e=await(o.isElement==null?void 0:o.isElement(C)))==null||e?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:g,rootBoundary:u,strategy:l})),v=c==="floating"?{...a.floating,x:n,y:i}:a.reference,p=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),y=await(o.isElement==null?void 0:o.isElement(p))?await(o.getScale==null?void 0:o.getScale(p))||{x:1,y:1}:{x:1,y:1},b=Ph(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:p,strategy:l}):v);return{top:(I.top-b.top+A.top)/y.y,bottom:(b.bottom-I.bottom+A.bottom)/y.y,left:(I.left-b.left+A.left)/y.x,right:(b.right-I.right+A.right)/y.x}}const Lie=t=>({name:"arrow",options:t,async fn(r){const{x:e,y:n,placement:i,rects:o,platform:a,elements:s}=r,{element:l,padding:g=0}=Gg(t,r)||{};if(l==null)return{};const u=k8(g),c={x:e,y:n},d=b2(i),h=y2(d),A=await a.getDimensions(l),f=d==="y",C=f?"top":"left",I=f?"bottom":"right",v=f?"clientHeight":"clientWidth",p=o.reference[h]+o.reference[d]-c[d]-o.floating[h],y=c[d]-o.reference[d],b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let _=b?b[v]:0;(!_||!await(a.isElement==null?void 0:a.isElement(b)))&&(_=s.floating[v]||o.floating[h]);const P=p/2-y/2,k=_/2-A[h]/2-1,E=gA(u[C],k),O=gA(u[I],k),N=E,D=_-A[h]-O,M=_/2-A[h]/2+P,Q=l_(N,M,D),W=po(i)!=null&&M!=Q&&o.reference[h]/2-(M<N?E:O)-A[h]/2<0?M<N?N-M:D-M:0;return{[d]:c[d]-W,data:{[d]:Q,centerOffset:M-Q+W}}}});function zie(t,r,e){return(t?[...e.filter(i=>po(i)===t),...e.filter(i=>po(i)!==t)]:e.filter(i=>ra(i)===i)).filter(i=>t?po(i)===t||(r?gp(i)!==i:!1):!0)}const jie=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(r){var e,n,i;const{rects:o,middlewareData:a,placement:s,platform:l,elements:g}=r,{crossAxis:u=!1,alignment:c,allowedPlacements:d=sP,autoAlignment:h=!0,...A}=Gg(t,r),f=c!==void 0||d===sP?zie(c||null,h,d):d,C=await Mm(r,A),I=((e=a.autoPlacement)==null?void 0:e.index)||0,v=f[I];if(v==null)return{};const p=O8(v,o,await(l.isRTL==null?void 0:l.isRTL(g.floating)));if(s!==v)return{reset:{placement:f[0]}};const y=[C[ra(v)],C[p[0]],C[p[1]]],b=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:v,overflows:y}],_=f[I+1];if(_)return{data:{index:I+1,overflows:b},reset:{placement:_}};const P=b.map(O=>{const N=po(O.placement);return[O.placement,N&&u?O.overflows.slice(0,2).reduce((D,M)=>D+M,0):O.overflows[0],O.overflows]}).sort((O,N)=>O[1]-N[1]),E=((i=P.filter(O=>O[2].slice(0,po(O[0])?2:3).every(N=>N<=0))[0])==null?void 0:i[0])||P[0][0];return E!==s?{data:{index:I+1,overflows:b},reset:{placement:E}}:{}}}},Vie=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var e;const{placement:n,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:l}=r,{mainAxis:g=!0,crossAxis:u=!0,fallbackPlacements:c,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:A=!0,...f}=Gg(t,r),C=ra(n),I=ra(a)===a,v=await(s.isRTL==null?void 0:s.isRTL(l.floating)),p=c||(I||!A?[up(a)]:Die(a));!c&&h!=="none"&&p.push(...Mie(a,A,h,v));const y=[a,...p],b=await Mm(r,f),_=[];let P=((e=i.flip)==null?void 0:e.overflows)||[];if(g&&_.push(b[C]),u){const N=O8(n,o,v);_.push(b[N[0]],b[N[1]])}if(P=[...P,{placement:n,overflows:_}],!_.every(N=>N<=0)){var k,E;const N=(((k=i.flip)==null?void 0:k.index)||0)+1,D=y[N];if(D)return{data:{index:N,overflows:P},reset:{placement:D}};let M=(E=P.filter(Q=>Q.overflows[0]<=0).sort((Q,j)=>Q.overflows[1]-j.overflows[1])[0])==null?void 0:E.placement;if(!M)switch(d){case"bestFit":{var O;const Q=(O=P.map(j=>[j.placement,j.overflows.filter(W=>W>0).reduce((W,q)=>W+q,0)]).sort((j,W)=>j[1]-W[1])[0])==null?void 0:O[0];Q&&(M=Q);break}case"initialPlacement":M=a;break}if(n!==M)return{reset:{placement:M}}}return{}}}};async function Gie(t,r){const{placement:e,platform:n,elements:i}=t,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=ra(e),s=po(e),l=JA(e)==="y",g=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,c=Gg(r,t);let{mainAxis:d,crossAxis:h,alignmentAxis:A}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&typeof A=="number"&&(h=s==="end"?A*-1:A),l?{x:h*u,y:d*g}:{x:d*g,y:h*u}}const Wie=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){const{x:e,y:n}=r,i=await Gie(r,t);return{x:e+i.x,y:n+i.y,data:i}}}},Hie=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:e,y:n,placement:i}=r,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:C=>{let{x:I,y:v}=C;return{x:I,y:v}}},...l}=Gg(t,r),g={x:e,y:n},u=await Mm(r,l),c=JA(ra(i)),d=T8(c);let h=g[d],A=g[c];if(o){const C=d==="y"?"top":"left",I=d==="y"?"bottom":"right",v=h+u[C],p=h-u[I];h=l_(v,h,p)}if(a){const C=c==="y"?"top":"left",I=c==="y"?"bottom":"right",v=A+u[C],p=A-u[I];A=l_(v,A,p)}const f=s.fn({...r,[d]:h,[c]:A});return{...f,data:{x:f.x-e,y:f.y-n}}}}},Uie=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){const{placement:e,rects:n,platform:i,elements:o}=r,{apply:a=()=>{},...s}=Gg(t,r),l=await Mm(r,s),g=ra(e),u=po(e),c=JA(e)==="y",{width:d,height:h}=n.floating;let A,f;g==="top"||g==="bottom"?(A=g,f=u===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(f=g,A=u==="end"?"top":"bottom");const C=h-l[A],I=d-l[f],v=!r.middlewareData.shift;let p=C,y=I;if(c){const _=d-l.left-l.right;y=u||v?gA(I,_):_}else{const _=h-l.top-l.bottom;p=u||v?gA(C,_):_}if(v&&!u){const _=zl(l.left,0),P=zl(l.right,0),k=zl(l.top,0),E=zl(l.bottom,0);c?y=d-2*(_!==0||P!==0?_+P:zl(l.left,l.right)):p=h-2*(k!==0||E!==0?k+E:zl(l.top,l.bottom))}await a({...r,availableWidth:y,availableHeight:p});const b=await i.getDimensions(o.floating);return d!==b.width||h!==b.height?{reset:{rects:!0}}:{}}}};function Vi(t){var r;return((r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Zo(t){return Vi(t).getComputedStyle(t)}const gP=Math.min,Rh=Math.max,cp=Math.round;function x8(t){const r=Zo(t);let e=parseFloat(r.width),n=parseFloat(r.height);const i=t.offsetWidth,o=t.offsetHeight,a=cp(e)!==i||cp(n)!==o;return a&&(e=i,n=o),{width:e,height:n,fallback:a}}function rl(t){return R8(t)?(t.nodeName||"").toLowerCase():""}let BC;function P8(){if(BC)return BC;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(BC=t.brands.map(r=>r.brand+"/"+r.version).join(" "),BC):navigator.userAgent}function Ko(t){return t instanceof Vi(t).HTMLElement}function Ps(t){return t instanceof Vi(t).Element}function R8(t){return t instanceof Vi(t).Node}function uP(t){return typeof ShadowRoot>"u"?!1:t instanceof Vi(t).ShadowRoot||t instanceof ShadowRoot}function Bm(t){const{overflow:r,overflowX:e,overflowY:n,display:i}=Zo(t);return/auto|scroll|overlay|hidden|clip/.test(r+n+e)&&!["inline","contents"].includes(i)}function Zie(t){return["table","td","th"].includes(rl(t))}function g_(t){const r=/firefox/i.test(P8()),e=Zo(t),n=e.backdropFilter||e.WebkitBackdropFilter;return e.transform!=="none"||e.perspective!=="none"||!!n&&n!=="none"||r&&e.willChange==="filter"||r&&!!e.filter&&e.filter!=="none"||["transform","perspective"].some(i=>e.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const o=e.contain;return o!=null&&o.includes(i)})}function D8(){return!/^((?!chrome|android).)*safari/i.test(P8())}function $2(t){return["html","body","#document"].includes(rl(t))}function N8(t){return Ps(t)?t:t.contextElement}const M8={x:1,y:1};function gc(t){const r=N8(t);if(!Ko(r))return M8;const e=r.getBoundingClientRect(),{width:n,height:i,fallback:o}=x8(r);let a=(o?cp(e.width):e.width)/n,s=(o?cp(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function uA(t,r,e,n){var i,o;r===void 0&&(r=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),s=N8(t);let l=M8;r&&(n?Ps(n)&&(l=gc(n)):l=gc(t));const g=s?Vi(s):window,u=!D8()&&e;let c=(a.left+(u&&((i=g.visualViewport)==null?void 0:i.offsetLeft)||0))/l.x,d=(a.top+(u&&((o=g.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,h=a.width/l.x,A=a.height/l.y;if(s){const f=Vi(s),C=n&&Ps(n)?Vi(n):n;let I=f.frameElement;for(;I&&n&&C!==f;){const v=gc(I),p=I.getBoundingClientRect(),y=getComputedStyle(I);p.x+=(I.clientLeft+parseFloat(y.paddingLeft))*v.x,p.y+=(I.clientTop+parseFloat(y.paddingTop))*v.y,c*=v.x,d*=v.y,h*=v.x,A*=v.y,c+=p.x,d+=p.y,I=Vi(I).frameElement}}return{width:h,height:A,top:d,right:c+h,bottom:d+A,left:c,x:c,y:d}}function Rs(t){return((R8(t)?t.ownerDocument:t.document)||window.document).documentElement}function Fm(t){return Ps(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function B8(t){return uA(Rs(t)).left+Fm(t).scrollLeft}function cA(t){if(rl(t)==="html")return t;const r=t.assignedSlot||t.parentNode||uP(t)&&t.host||Rs(t);return uP(r)?r.host:r}function F8(t){const r=cA(t);return $2(r)?r.ownerDocument.body:Ko(r)&&Bm(r)?r:F8(r)}function dp(t,r){var e;r===void 0&&(r=[]);const n=F8(t),i=n===((e=t.ownerDocument)==null?void 0:e.body),o=Vi(n);return i?r.concat(o,o.visualViewport||[],Bm(n)?n:[]):r.concat(n,dp(n))}function cP(t,r,e){return r==="viewport"?Ph(function(n,i){const o=Vi(n),a=Rs(n),s=o.visualViewport;let l=a.clientWidth,g=a.clientHeight,u=0,c=0;if(s){l=s.width,g=s.height;const d=D8();(d||!d&&i==="fixed")&&(u=s.offsetLeft,c=s.offsetTop)}return{width:l,height:g,x:u,y:c}}(t,e)):Ps(r)?Ph(function(n,i){const o=uA(n,!0,i==="fixed"),a=o.top+n.clientTop,s=o.left+n.clientLeft,l=Ko(n)?gc(n):{x:1,y:1};return{width:n.clientWidth*l.x,height:n.clientHeight*l.y,x:s*l.x,y:a*l.y}}(r,e)):Ph(function(n){const i=Rs(n),o=Fm(n),a=n.ownerDocument.body,s=Rh(i.scrollWidth,i.clientWidth,a.scrollWidth,a.clientWidth),l=Rh(i.scrollHeight,i.clientHeight,a.scrollHeight,a.clientHeight);let g=-o.scrollLeft+B8(n);const u=-o.scrollTop;return Zo(a).direction==="rtl"&&(g+=Rh(i.clientWidth,a.clientWidth)-s),{width:s,height:l,x:g,y:u}}(Rs(t)))}function dP(t){return Ko(t)&&Zo(t).position!=="fixed"?t.offsetParent:null}function hP(t){const r=Vi(t);let e=dP(t);for(;e&&Zie(e)&&Zo(e).position==="static";)e=dP(e);return e&&(rl(e)==="html"||rl(e)==="body"&&Zo(e).position==="static"&&!g_(e))?r:e||function(n){let i=cA(n);for(;Ko(i)&&!$2(i);){if(g_(i))return i;i=cA(i)}return null}(t)||r}function Kie(t,r,e){const n=Ko(r),i=Rs(r),o=uA(t,!0,e==="fixed",r);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(n||!n&&e!=="fixed")if((rl(r)!=="body"||Bm(i))&&(a=Fm(r)),Ko(r)){const l=uA(r,!0);s.x=l.x+r.clientLeft,s.y=l.y+r.clientTop}else i&&(s.x=B8(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}const Yie={getClippingRect:function(t){let{element:r,boundary:e,rootBoundary:n,strategy:i}=t;const o=e==="clippingAncestors"?function(g,u){const c=u.get(g);if(c)return c;let d=dp(g).filter(C=>Ps(C)&&rl(C)!=="body"),h=null;const A=Zo(g).position==="fixed";let f=A?cA(g):g;for(;Ps(f)&&!$2(f);){const C=Zo(f),I=g_(f);(A?I||h:I||C.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=C:d=d.filter(v=>v!==f),f=cA(f)}return u.set(g,d),d}(r,this._c):[].concat(e),a=[...o,n],s=a[0],l=a.reduce((g,u)=>{const c=cP(r,u,i);return g.top=Rh(c.top,g.top),g.right=gP(c.right,g.right),g.bottom=gP(c.bottom,g.bottom),g.left=Rh(c.left,g.left),g},cP(r,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:r,offsetParent:e,strategy:n}=t;const i=Ko(e),o=Rs(e);if(e===o)return r;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((i||!i&&n!=="fixed")&&((rl(e)!=="body"||Bm(o))&&(a=Fm(e)),Ko(e))){const g=uA(e);s=gc(e),l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}return{width:r.width*s.x,height:r.height*s.y,x:r.x*s.x-a.scrollLeft*s.x+l.x,y:r.y*s.y-a.scrollTop*s.y+l.y}},isElement:Ps,getDimensions:function(t){return Ko(t)?x8(t):t.getBoundingClientRect()},getOffsetParent:hP,getDocumentElement:Rs,getScale:gc,async getElementRects(t){let{reference:r,floating:e,strategy:n}=t;const i=this.getOffsetParent||hP,o=this.getDimensions;return{reference:Kie(r,await i(e),n),floating:{x:0,y:0,...await o(e)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>Zo(t).direction==="rtl"},Xie=(t,r,e)=>{const n=new Map,i={platform:Yie,...e},o={...i.platform,_c:n};return Fie(t,r,{...i,platform:o})},og={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function dA(t,r){let e=og.themes[t]||{},n;do n=e[r],typeof n>"u"?e.$extend?e=og.themes[e.$extend]||{}:(e=null,n=og[r]):e=null;while(e);return n}function Qie(t){const r=[t];let e=og.themes[t]||{};do e.$extend&&!e.$resetCss?(r.push(e.$extend),e=og.themes[e.$extend]||{}):e=null;while(e);return r.map(n=>`v-popper--theme-${n}`)}function AP(t){const r=[t];let e=og.themes[t]||{};do e.$extend?(r.push(e.$extend),e=og.themes[e.$extend]||{}):e=null;while(e);return r}let $g=!1;if(typeof window<"u"){$g=!1;try{const t=Object.defineProperty({},"passive",{get(){$g=!0}});window.addEventListener("test",null,t)}catch{}}let L8=!1;typeof window<"u"&&typeof navigator<"u"&&(L8=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const z8=["auto","top","bottom","left","right"].reduce((t,r)=>t.concat([r,`${r}-start`,`${r}-end`]),[]),fP={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},CP={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function IP(t,r){const e=t.indexOf(r);e!==-1&&t.splice(e,1)}function Gb(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const co=[];let Ml=null;const vP={};function pP(t){let r=vP[t];return r||(r=vP[t]=[]),r}let u_=function(){};typeof window<"u"&&(u_=window.Element);function bt(t){return function(r){return dA(r.theme,t)}}const Wb="__floating-vue__popper",j8=()=>we({name:"VPopper",provide(){return{[Wb]:{parentPopper:this}}},inject:{[Wb]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:bt("disabled")},positioningDisabled:{type:Boolean,default:bt("positioningDisabled")},placement:{type:String,default:bt("placement"),validator:t=>z8.includes(t)},delay:{type:[String,Number,Object],default:bt("delay")},distance:{type:[Number,String],default:bt("distance")},skidding:{type:[Number,String],default:bt("skidding")},triggers:{type:Array,default:bt("triggers")},showTriggers:{type:[Array,Function],default:bt("showTriggers")},hideTriggers:{type:[Array,Function],default:bt("hideTriggers")},popperTriggers:{type:Array,default:bt("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:bt("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:bt("popperHideTriggers")},container:{type:[String,Object,u_,Boolean],default:bt("container")},boundary:{type:[String,u_],default:bt("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:bt("strategy")},autoHide:{type:[Boolean,Function],default:bt("autoHide")},handleResize:{type:Boolean,default:bt("handleResize")},instantMove:{type:Boolean,default:bt("instantMove")},eagerMount:{type:Boolean,default:bt("eagerMount")},popperClass:{type:[String,Array,Object],default:bt("popperClass")},computeTransformOrigin:{type:Boolean,default:bt("computeTransformOrigin")},autoMinSize:{type:Boolean,default:bt("autoMinSize")},autoSize:{type:[Boolean,String],default:bt("autoSize")},autoMaxSize:{type:Boolean,default:bt("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:bt("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:bt("preventOverflow")},overflowPadding:{type:[Number,String],default:bt("overflowPadding")},arrowPadding:{type:[Number,String],default:bt("arrowPadding")},arrowOverflow:{type:Boolean,default:bt("arrowOverflow")},flip:{type:Boolean,default:bt("flip")},shift:{type:Boolean,default:bt("shift")},shiftCrossAxis:{type:Boolean,default:bt("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:bt("noAutoFocus")},disposeTimeout:{type:Number,default:bt("disposeTimeout")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var t;return(t=this[Wb])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,r;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((r=this.popperShowTriggers)==null?void 0:r.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((t,r)=>(t[r]="$_refreshListeners",t),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,r)=>(t[r]="$_computePosition",t),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:r=!1,force:e=!1}={}){var n,i;(n=this.parentPopper)!=null&&n.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(e||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(t,r),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:r=!1}={}){var e;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:r}),this.parentPopper.lockedChild=null)},1e3));return}((e=this.parentPopper)==null?void 0:e.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(t,r),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var t;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((t=this.referenceNode)==null?void 0:t.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(r=>r.nodeType===r.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(Wie({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");if(r?t.middleware.push(jie({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(Hie({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&t.middleware.push(Vie({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(Lie({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:i,middlewareData:o})=>{let a;const{centerOffset:s}=o.arrow;return n.startsWith("top")||n.startsWith("bottom")?a=Math.abs(s)>i.reference.width/2:a=Math.abs(s)>i.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const n=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:i,placement:o,middlewareData:a})=>{var s;if((s=a.autoSize)!=null&&s.skip)return{};let l,g;return o.startsWith("top")||o.startsWith("bottom")?l=i.reference.width:g=i.reference.height,this.$_innerNode.style[n==="min"?"minWidth":n==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[n==="min"?"minHeight":n==="max"?"maxHeight":"height"]=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(Uie({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:n,availableHeight:i})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const e=await Xie(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:e.x,y:e.y,placement:e.placement,strategy:e.strategy,arrow:{...e.middlewareData.arrow,...e.middlewareData.arrowOverflow}})},$_scheduleShow(t=null,r=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ml&&this.instantMove&&Ml.instantMove&&Ml!==this.parentPopper){Ml.$_applyHide(!0),this.$_applyShow(!0);return}r?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,r=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ml=this),r?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const r=this.delay;return parseInt(r&&r[t]||r||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await Gb(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...dp(this.$_referenceNode),...dp(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const r=this.$_referenceNode.getBoundingClientRect(),e=this.$_popperNode.querySelector(".v-popper__wrapper"),n=e.parentNode.getBoundingClientRect(),i=r.x+r.width/2-(n.left+e.offsetLeft),o=r.y+r.height/2-(n.top+e.offsetTop);this.result.transformOrigin=`${i}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let r;for(let e=0;e<co.length;e++)r=co[e],r.showGroup!==t&&(r.hide(),r.$emit("close-group"))}co.push(this),document.body.classList.add("v-popper--some-open");for(const r of AP(this.theme))pP(r).push(this),document.body.classList.add(`v-popper--some-open--${r}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Gb(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,IP(co,this),co.length===0&&document.body.classList.remove("v-popper--some-open");for(const e of AP(this.theme)){const n=pP(e);IP(n,this),n.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}Ml===this&&(Ml=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const r=this.disposeTimeout;r!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},r)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Gb(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,fP,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],fP,this.popperTriggers,this.popperShowTriggers,t);const r=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,CP,this.triggers,this.hideTriggers,r),this.$_registerTriggerListeners([this.$_popperNode],CP,this.popperTriggers,this.popperHideTriggers,r)},$_registerEventListeners(t,r,e){this.$_events.push({targetNodes:t,eventType:r,handler:e}),t.forEach(n=>n.addEventListener(r,e,$g?{passive:!0}:void 0))},$_registerTriggerListeners(t,r,e,n,i){let o=e;n!=null&&(o=typeof n=="function"?n(o):n),o.forEach(a=>{const s=r[a];s&&this.$_registerEventListeners(t,s,i)})},$_removeEventListeners(t){const r=[];this.$_events.forEach(e=>{const{targetNodes:n,eventType:i,handler:o}=e;!t||t===i?n.forEach(a=>a.removeEventListener(i,o)):r.push(e)}),this.$_events=r},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,r=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),r&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,r){for(const e of this.$_targetNodes){const n=e.getAttribute(t);n&&(e.removeAttribute(t),e.setAttribute(r,n))}},$_applyAttrsToTarget(t){for(const r of this.$_targetNodes)for(const e in t){const n=t[e];n==null?r.removeAttribute(e):r.setAttribute(e,n)}},$_updateParentShownChildren(t){let r=this.parentPopper;for(;r;)t?r.shownChildren.add(this.randomId):(r.shownChildren.delete(this.randomId),r.$_pendingHide&&r.hide()),r=r.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if(Dh>=t.left&&Dh<=t.right&&Nh>=t.top&&Nh<=t.bottom){const r=this.$_popperNode.getBoundingClientRect(),e=Dh-os,n=Nh-as,i=r.left+r.width/2-os+(r.top+r.height/2)-as+r.width+r.height,o=os+e*i,a=as+n*i;return FC(os,as,o,a,r.left,r.top,r.left,r.bottom)||FC(os,as,o,a,r.left,r.top,r.right,r.top)||FC(os,as,o,a,r.right,r.top,r.right,r.bottom)||FC(os,as,o,a,r.left,r.bottom,r.right,r.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(L8?(document.addEventListener("touchstart",mP,$g?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Jie,$g?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",mP,!0),window.addEventListener("click",qie,!0)),window.addEventListener("resize",roe));function mP(t){for(let r=0;r<co.length;r++){const e=co[r];try{const n=e.popperNode();e.$_mouseDownContains=n.contains(t.target)}catch{}}}function qie(t){V8(t)}function Jie(t){V8(t,!0)}function V8(t,r=!1){const e={};for(let n=co.length-1;n>=0;n--){const i=co[n];try{const o=i.$_containsGlobalTarget=eoe(i,t);i.$_pendingHide=!1,requestAnimationFrame(()=>{if(i.$_pendingHide=!1,!e[i.randomId]&&yP(i,o,t)){if(i.$_handleGlobalClose(t,r),!t.closeAllPopover&&t.closePopover&&o){let s=i.parentPopper;for(;s;)e[s.randomId]=!0,s=s.parentPopper;return}let a=i.parentPopper;for(;a&&yP(a,a.$_containsGlobalTarget,t);)a.$_handleGlobalClose(t,r),a=a.parentPopper}})}catch{}}}function eoe(t,r){const e=t.popperNode();return t.$_mouseDownContains||e.contains(r.target)}function yP(t,r,e){return e.closeAllPopover||e.closePopover&&r||toe(t,e)&&!r}function toe(t,r){if(typeof t.autoHide=="function"){const e=t.autoHide(r);return t.lastAutoHide=e,e}return t.autoHide}function roe(t){for(let r=0;r<co.length;r++)co[r].$_computePosition(t)}let os=0,as=0,Dh=0,Nh=0;typeof window<"u"&&window.addEventListener("mousemove",t=>{os=Dh,as=Nh,Dh=t.clientX,Nh=t.clientY},$g?{passive:!0}:void 0);function FC(t,r,e,n,i,o,a,s){const l=((a-i)*(r-o)-(s-o)*(t-i))/((s-o)*(e-t)-(a-i)*(n-r)),g=((e-t)*(r-o)-(n-r)*(t-i))/((s-o)*(e-t)-(a-i)*(n-r));return l>=0&&l<=1&&g>=0&&g<=1}const noe={extends:j8()},Lm=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e};function ioe(t,r,e,n,i,o){return T(),L("div",{ref:"reference",class:Ee(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[Qe(t.$slots,"default",HA(sd(t.slotData)))],2)}const ooe=Lm(noe,[["render",ioe]]);function aoe(){var t=window.navigator.userAgent,r=t.indexOf("MSIE ");if(r>0)return parseInt(t.substring(r+5,t.indexOf(".",r)),10);var e=t.indexOf("Trident/");if(e>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let dv;function c_(){c_.init||(c_.init=!0,dv=aoe()!==-1)}var zm={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){c_(),mn(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",dv&&this.$el.appendChild(t),t.data="about:blank",dv||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!dv&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const soe=dj();mm("data-v-b329ee4c");const loe={class:"resize-observer",tabindex:"-1"};ym();const goe=soe((t,r,e,n,i,o)=>(T(),re("div",loe)));zm.render=goe;zm.__scopeId="data-v-b329ee4c";zm.__file="src/components/ResizeObserver.vue";const G8=(t="theme")=>({computed:{themeClass(){return Qie(this[t])}}}),uoe=we({name:"VPopperContent",components:{ResizeObserver:zm},mixins:[G8()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),coe=["id","aria-hidden","tabindex","data-popper-placement"],doe={ref:"inner",class:"v-popper__inner"},hoe=w("div",{class:"v-popper__arrow-outer"},null,-1),Aoe=w("div",{class:"v-popper__arrow-inner"},null,-1),foe=[hoe,Aoe];function Coe(t,r,e,n,i,o){const a=_i("ResizeObserver");return T(),L("div",{id:t.popperId,ref:"popover",class:Ee(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:Er(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:r[2]||(r[2]=jj(s=>t.autoHide&&t.$emit("hide"),["esc"]))},[w("div",{class:"v-popper__backdrop",onClick:r[0]||(r[0]=s=>t.autoHide&&t.$emit("hide"))}),w("div",{class:"v-popper__wrapper",style:Er(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[w("div",doe,[t.mounted?(T(),L(be,{key:0},[w("div",null,[Qe(t.$slots,"default")]),t.handleResize?(T(),re(a,{key:0,onNotify:r[1]||(r[1]=s=>t.$emit("resize",s))})):$e("",!0)],64)):$e("",!0)],512),w("div",{ref:"arrow",class:"v-popper__arrow-container",style:Er(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},foe,4)],4)],46,coe)}const W8=Lm(uoe,[["render",Coe]]),H8={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}},Ioe=we({name:"VPopperWrapper",components:{Popper:ooe,PopperContent:W8},mixins:[H8,G8("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function voe(t,r,e,n,i,o){const a=_i("PopperContent"),s=_i("Popper");return T(),re(s,{ref:"popper",theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:Ee([t.themeClass])},{default:V(({popperId:l,isShown:g,shouldMountContent:u,skipTransition:c,autoHide:d,show:h,hide:A,handleResize:f,onResize:C,classes:I,result:v})=>[Qe(t.$slots,"default",{shown:g,show:h,hide:A}),z(a,{ref:"popperContent","popper-id":l,theme:t.finalTheme,shown:g,mounted:u,"skip-transition":c,"auto-hide":d,"handle-resize":f,classes:I,result:v,onHide:A,onResize:C},{default:V(()=>[Qe(t.$slots,"popper",{shown:g,hide:A})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}const w2=Lm(Ioe,[["render",voe]]),poe={...w2,name:"VDropdown",vPopperTheme:"dropdown"};({...w2});const moe={...w2,name:"VTooltip",vPopperTheme:"tooltip"},yoe=we({name:"VTooltipDirective",components:{Popper:j8(),PopperContent:W8},mixins:[H8],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>dA(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>dA(t.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const r=++this.$_fetchId,e=this.content(this);e.then?e.then(n=>this.onResult(r,n)):this.onResult(r,e)}},onResult(t,r){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=r)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),boe=["innerHTML"],$oe=["textContent"];function woe(t,r,e,n,i,o){const a=_i("PopperContent"),s=_i("Popper");return T(),re(s,wn({ref:"popper"},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:V(({popperId:l,isShown:g,shouldMountContent:u,skipTransition:c,autoHide:d,hide:h,handleResize:A,onResize:f,classes:C,result:I})=>[z(a,{ref:"popperContent",class:Ee({"v-popper--tooltip-loading":t.loading}),"popper-id":l,theme:t.theme,shown:g,mounted:u,"skip-transition":c,"auto-hide":d,"handle-resize":A,classes:C,result:I,onHide:h,onResize:f},{default:V(()=>[t.html?(T(),L("div",{key:0,innerHTML:t.finalContent},null,8,boe)):(T(),L("div",{key:1,textContent:_e(t.finalContent)},null,8,$oe))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const _oe=Lm(yoe,[["render",woe]]),U8="v-popper--has-tooltip";function Eoe(t,r){let e=t.placement;if(!e&&r)for(const n of z8)r[n]&&(e=n);return e||(e=dA(t.theme||"tooltip","placement")),e}function Z8(t,r,e){let n;const i=typeof r;return i==="string"?n={content:r}:r&&i==="object"?n=r:n={content:!1},n.placement=Eoe(n,e),n.targetNodes=()=>[t],n.referenceNode=()=>t,n}let Hb,hA,Soe=0;function Toe(){if(Hb)return;hA=H([]),Hb=d2({name:"VTooltipDirectiveApp",setup(){return{directives:hA}},render(){return this.directives.map(r=>ld(_oe,{...r.options,shown:r.shown||r.options.shown,key:r.id}))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),Hb.mount(t)}function Ooe(t,r,e){Toe();const n=H(Z8(t,r,e)),i=H(!1),o={id:Soe++,options:n,shown:i};return hA.value.push(o),t.classList&&t.classList.add(U8),t.$_popper={options:n,item:o,show(){i.value=!0},hide(){i.value=!1}}}function K8(t){if(t.$_popper){const r=hA.value.indexOf(t.$_popper.item);r!==-1&&hA.value.splice(r,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(U8)}function bP(t,{value:r,modifiers:e}){const n=Z8(t,r,e);if(!n.content||dA(n.theme||"tooltip","disabled"))K8(t);else{let i;t.$_popper?(i=t.$_popper,i.options.value=n):i=Ooe(t,r,e),typeof r.shown<"u"&&r.shown!==t.$_popperOldShown&&(t.$_popperOldShown=r.shown,r.shown?i.show():i.hide())}}const koe={beforeMount:bP,updated:bP,beforeUnmount(t){K8(t)}};function $P(t){t.addEventListener("click",Y8),t.addEventListener("touchstart",X8,$g?{passive:!0}:!1)}function wP(t){t.removeEventListener("click",Y8),t.removeEventListener("touchstart",X8),t.removeEventListener("touchend",Q8),t.removeEventListener("touchcancel",q8)}function Y8(t){const r=t.currentTarget;t.closePopover=!r.$_vclosepopover_touch,t.closeAllPopover=r.$_closePopoverModifiers&&!!r.$_closePopoverModifiers.all}function X8(t){if(t.changedTouches.length===1){const r=t.currentTarget;r.$_vclosepopover_touch=!0;const e=t.changedTouches[0];r.$_vclosepopover_touchPoint=e,r.addEventListener("touchend",Q8),r.addEventListener("touchcancel",q8)}}function Q8(t){const r=t.currentTarget;if(r.$_vclosepopover_touch=!1,t.changedTouches.length===1){const e=t.changedTouches[0],n=r.$_vclosepopover_touchPoint;t.closePopover=Math.abs(e.screenY-n.screenY)<20&&Math.abs(e.screenX-n.screenX)<20,t.closeAllPopover=r.$_closePopoverModifiers&&!!r.$_closePopoverModifiers.all}}function q8(t){const r=t.currentTarget;r.$_vclosepopover_touch=!1}const xoe={beforeMount(t,{value:r,modifiers:e}){t.$_closePopoverModifiers=e,(typeof r>"u"||r)&&$P(t)},updated(t,{value:r,oldValue:e,modifiers:n}){t.$_closePopoverModifiers=n,r!==e&&(typeof r>"u"||r?$P(t):wP(t))},beforeUnmount(t){wP(t)}},$i=koe,J8=xoe,Poe=poe,Roe=moe,_2=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},Doe={},Noe={class:"h-3 w-3 $ui-inline-fcc"},Moe=w("svg",{class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[w("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),w("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),Boe=[Moe];function Foe(t,r){return T(),L("div",Noe,Boe)}const e6=_2(Doe,[["render",Foe]]),Loe={key:2},at=we({inheritAttrs:!1,__name:"Button",props:{type:{default:"default"},round:{type:[String,Boolean],default:"normal"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:"normal"},flat:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:r}){const e=t,n=r,i=ZJ(),o=J(()=>i.to?"router-link":i.href?"a":"button"),a=J(()=>e.loading||e.disabled);function s(c){if(a.value){c.preventDefault(),c.stopPropagation(),c.stopImmediatePropagation();return}n("click",c)}const l={common:{default:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",primary:"active:bg-primary-500-darker",accent:"active:bg-accent-500-darker",danger:"active:bg-danger-500-darker",warning:"active:bg-warning-500-darker",info:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",success:"active:bg-primary-100-darker dark:active:bg-gray-800-darker"},normal:{default:"bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter dark:hover:text-white",primary:" text-white bg-primary-500 hover:bg-primary-500-lighter dark:hover:bg-primary-500-darker",accent:"text-white bg-accent-500 hover:bg-accent-500-lighter dark:bg-accent-500-darker dark:bg-accent-300",danger:"text-white bg-danger-500 hover:bg-danger-500-lighter dark:hover:bg-danger-500-darker",warning:"text-white bg-warning-500 hover:bg-warning-500-lighter dark:hover:bg-warning-500-darker",info:"text-info-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter",success:"text-primary-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter"},flat:{default:"hover:bg-primary-100 hover:text-black !dark:text-white dark:hover:bg-primary-800",primary:"hover:bg-primary-500 hover:text-white",accent:"hover:bg-accent-500 hover:text-white",danger:"hover:bg-danger-500 hover:text-white",warning:"hover:bg-warning-500 hover:text-white",info:"hover:bg-primary-100 hover:text-info-500 dark:hover:bg-gray-800 dark:hover:text-info-400",success:"hover:bg-primary-100 hover:text-primary-500 dark:hover:bg-primary-800 dark:hover:text-primary-400"},outlined:{default:"hover:border-primary-100 hover:text-primary-300 hover:active:ring-primary-100:5 hover:active:bg-primary-100:5",primary:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5",accent:"hover:border-accent-500 hover:text-accent-500 active:ring-accent-500:5 active:bg-accent-500:5",danger:"hover:border-danger-500 hover:text-danger-500 active:ring-danger-500:5 active:bg-danger-500:5",warning:"hover:border-warning-500 hover:text-warning-500 active:ring-warning-500:5 active:bg-warning-500:5",info:"hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",success:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"}},g=bj(),u=J(()=>e.flat?l.flat[e.type]:e.outlined?l.outlined[e.type]:l.normal[e.type]);return(c,d)=>(T(),re(qs(o.value),wn(c.$attrs,{role:"button","aria-disabled":a.value,class:["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition",[[l.common[e.type]],{"rounded-full":e.round==="full","$ui-base-br":e.round==="normal","opacity-50 cursor-not-allowed":a.value,"bg-transparent":e.flat||e.outlined},[c.outlined?"b-1 $ui-border-base active:ring-3 shadow-sm":"border-none",c.size==="mini"?"px1 text-3 h5.5":"px3.5 text-3.5 h8",u.value]]],onClickCapture:s}),{default:V(()=>[c.loading?(T(),re(e6,{key:0,class:"mt0.5 h-full w3"})):Qe(c.$slots,"icon",{key:1,class:"h-full w3 $ui-inline-fcc"}),m(g).default?(T(),L("div",Loe,[Qe(c.$slots,"default")])):$e("",!0),Qe(c.$slots,"icon-right")]),_:3},16,["aria-disabled","class"]))}}),zoe={},joe={class:"mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function Voe(t,r){return T(),L("span",joe,[Qe(t.$slots,"default")])}const _P=_2(zoe,[["render",Voe]]),St=we({__name:"Icon",props:{icon:{},inline:{type:Boolean},action:{type:Boolean,default:!1}},setup(t){return(r,e)=>(T(),re(qs(r.inline?"span":"div"),{class:Ee(["$ui-base",[r.icon,r.action?"cursor-pointer hover:op50":""]])},null,8,["class"]))}});function jm(t){return US()?(V4(t),!0):!1}function Goe(t,r,{enumerable:e=!1,unwrap:n=!0}={}){for(const[i,o]of Object.entries(r))i!=="value"&&(ze(o)&&n?Object.defineProperty(t,i,{get(){return o.value},set(a){o.value=a},enumerable:e}):Object.defineProperty(t,i,{value:o,enumerable:e}));return t}function Ui(t){return typeof t=="function"?t():m(t)}const t6=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Woe=t=>typeof t<"u",Hoe=Object.prototype.toString,Uoe=t=>Hoe.call(t)==="[object Object]",hp=()=>{},EP=Zoe();function Zoe(){var t,r;return t6&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((r=window?.navigator)==null?void 0:r.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function r6(t,r){function e(...n){return new Promise((i,o)=>{Promise.resolve(t(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(i).catch(o)})}return e}const n6=t=>t();function Koe(t,r={}){let e,n,i=hp;const o=a=>{clearTimeout(a),i(),i=hp};return a=>{const s=Ui(t),l=Ui(r.maxWait);return e&&o(e),s<=0||l!==void 0&&l<=0?(n&&(o(n),n=null),Promise.resolve(a())):new Promise((g,u)=>{i=r.rejectOnCancel?u:g,l&&!n&&(n=setTimeout(()=>{e&&o(e),n=null,g(a())},l)),e=setTimeout(()=>{n&&o(n),n=null,g(a())},s)})}}function Yoe(t=n6){const r=H(!0);function e(){r.value=!1}function n(){r.value=!0}const i=(...o)=>{r.value&&t(...o)};return{isActive:Va(r),pause:e,resume:n,eventFilter:i}}function Xoe(t){return t||ul()}function i6(...t){if(t.length!==1)return oj(...t);const r=t[0];return typeof r=="function"?Va(n2(()=>({get:r,set:hp}))):H(r)}function Qoe(t,r=200,e={}){return r6(Koe(r,e),t)}function qoe(t,r=200,e={}){const n=H(t.value),i=Qoe(()=>{n.value=t.value},r,e);return et(t,()=>i()),n}function Joe(t,r={}){let e=t,n,i;const o=n2((l,g)=>(n=l,i=g,{get(){return a()},set(u){s(u)}}));function a(l=!0){return l&&n(),e}function s(l,g=!0){var u,c;if(l===e)return;const d=e;((u=r.onBeforeChange)==null?void 0:u.call(r,l,d))!==!1&&(e=l,(c=r.onChanged)==null||c.call(r,l,d),g&&i())}return Goe(o,{get:a,set:s,untrackedGet:()=>a(!1),silentSet:l=>s(l,!1),peek:()=>a(!1),lay:l=>s(l,!1)},{enumerable:!0})}function eae(t,r,e={}){const{eventFilter:n=n6,...i}=e;return et(t,r6(n,r),i)}function tae(t,r,e={}){const{eventFilter:n,...i}=e,{eventFilter:o,pause:a,resume:s,isActive:l}=Yoe(n);return{stop:eae(t,r,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function E2(t,r=!0,e){Xoe()?Si(t,e):r?t():mn(t)}function rae(t=!1,r={}){const{truthyValue:e=!0,falsyValue:n=!1}=r,i=ze(t),o=H(t);function a(s){if(arguments.length)return o.value=s,o.value;{const l=Ui(e);return o.value=o.value===l?Ui(n):l,o.value}}return i?a:[o,a]}function ws(t){var r;const e=Ui(t);return(r=e?.$el)!=null?r:e}const nl=t6?window:void 0;function Ap(...t){let r,e,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,n,i]=t,r=nl):[r,e,n,i]=t,!r)return hp;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const o=[],a=()=>{o.forEach(u=>u()),o.length=0},s=(u,c,d,h)=>(u.addEventListener(c,d,h),()=>u.removeEventListener(c,d,h)),l=et(()=>[ws(r),Ui(i)],([u,c])=>{if(a(),!u)return;const d=Uoe(c)?{...c}:c;o.push(...e.flatMap(h=>n.map(A=>s(u,h,A,d))))},{immediate:!0,flush:"post"}),g=()=>{l(),a()};return jm(g),g}function nae(t){return typeof t=="function"?t:typeof t=="string"?r=>r.key===t:Array.isArray(t)?r=>t.includes(r.key):()=>!0}function o6(...t){let r,e,n={};t.length===3?(r=t[0],e=t[1],n=t[2]):t.length===2?typeof t[1]=="object"?(r=!0,e=t[0],n=t[1]):(r=t[0],e=t[1]):(r=!0,e=t[0]);const{target:i=nl,eventName:o="keydown",passive:a=!1,dedupe:s=!1}=n,l=nae(r);return Ap(i,o,g=>{g.repeat&&Ui(s)||l(g)&&e(g)},a)}function iae(){const t=H(!1);return ul()&&Si(()=>{t.value=!0}),t}function a6(t){const r=iae();return J(()=>(r.value,!!t()))}function oae(t,r={}){const{window:e=nl}=r,n=a6(()=>e&&"matchMedia"in e&&typeof e.matchMedia=="function");let i;const o=H(!1),a=g=>{o.value=g.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},l=Mn(()=>{n.value&&(s(),i=e.matchMedia(Ui(t)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),o.value=i.matches)});return jm(()=>{l(),s(),i=void 0}),o}function aae(t){return JSON.parse(JSON.stringify(t))}const LC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zC="__vueuse_ssr_handlers__",sae=lae();function lae(){return zC in LC||(LC[zC]=LC[zC]||{}),LC[zC]}function s6(t,r){return sae[t]||r}function gae(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const uae={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},SP="vueuse-storage";function cae(t,r,e,n={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:g=!1,shallow:u,window:c=nl,eventFilter:d,onError:h=E=>{console.error(E)},initOnMounted:A}=n,f=(u?aa:H)(typeof r=="function"?r():r);if(!e)try{e=s6("getDefaultStorage",()=>{var E;return(E=nl)==null?void 0:E.localStorage})()}catch(E){h(E)}if(!e)return f;const C=Ui(r),I=gae(C),v=(i=n.serializer)!=null?i:uae[I],{pause:p,resume:y}=tae(f,()=>b(f.value),{flush:o,deep:a,eventFilter:d});return c&&s&&E2(()=>{Ap(c,"storage",k),Ap(c,SP,P),A&&k()}),A||k(),f;function b(E){try{if(E==null)e.removeItem(t);else{const O=v.write(E),N=e.getItem(t);N!==O&&(e.setItem(t,O),c&&c.dispatchEvent(new CustomEvent(SP,{detail:{key:t,oldValue:N,newValue:O,storageArea:e}})))}}catch(O){h(O)}}function _(E){const O=E?E.newValue:e.getItem(t);if(O==null)return l&&C!=null&&e.setItem(t,v.write(C)),C;if(!E&&g){const N=v.read(O);return typeof g=="function"?g(N,C):I==="object"&&!Array.isArray(N)?{...C,...N}:N}else return typeof O!="string"?O:v.read(O)}function P(E){k(E.detail)}function k(E){if(!(E&&E.storageArea!==e)){if(E&&E.key==null){f.value=C;return}if(!(E&&E.key!==t)){p();try{E?.newValue!==v.write(f.value)&&(f.value=_(E))}catch(O){h(O)}finally{E?mn(y):y()}}}}}function dae(t){return oae("(prefers-color-scheme: dark)",t)}function hae(t={}){const{selector:r="html",attribute:e="class",initialValue:n="auto",window:i=nl,storage:o,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:g,disableTransition:u=!0}=t,c={auto:"",light:"light",dark:"dark",...t.modes||{}},d=dae({window:i}),h=J(()=>d.value?"dark":"light"),A=l||(a==null?i6(n):cae(a,n,o,{window:i,listenToStorageChanges:s})),f=J(()=>A.value==="auto"?h.value:A.value),C=s6("updateHTMLAttrs",(y,b,_)=>{const P=typeof y=="string"?i?.document.querySelector(y):ws(y);if(!P)return;let k;if(u){k=i.document.createElement("style");const E="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";k.appendChild(document.createTextNode(E)),i.document.head.appendChild(k)}if(b==="class"){const E=_.split(/\s/g);Object.values(c).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{E.includes(O)?P.classList.add(O):P.classList.remove(O)})}else P.setAttribute(b,_);u&&(i.getComputedStyle(k).opacity,document.head.removeChild(k))});function I(y){var b;C(r,e,(b=c[y])!=null?b:y)}function v(y){t.onChanged?t.onChanged(y,I):I(y)}et(f,v,{flush:"post",immediate:!0}),E2(()=>v(f.value));const p=J({get(){return g?A.value:f.value},set(y){A.value=y}});try{return Object.assign(p,{store:A,system:h,state:f})}catch{return p}}function Aae(t,r,e={}){const{window:n=nl,...i}=e;let o;const a=a6(()=>n&&"ResizeObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=J(()=>Array.isArray(t)?t.map(c=>ws(c)):[ws(t)]),g=et(l,c=>{if(s(),a.value&&n){o=new ResizeObserver(r);for(const d of c)d&&o.observe(d,i)}},{immediate:!0,flush:"post",deep:!0}),u=()=>{s(),g()};return jm(u),{isSupported:a,stop:u}}function fae(t,r={width:0,height:0},e={}){const{window:n=nl,box:i="content-box"}=e,o=J(()=>{var c,d;return(d=(c=ws(t))==null?void 0:c.namespaceURI)==null?void 0:d.includes("svg")}),a=H(r.width),s=H(r.height),{stop:l}=Aae(t,([c])=>{const d=i==="border-box"?c.borderBoxSize:i==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(n&&o.value){const h=ws(t);if(h){const A=n.getComputedStyle(h);a.value=Number.parseFloat(A.width),s.value=Number.parseFloat(A.height)}}else if(d){const h=Array.isArray(d)?d:[d];a.value=h.reduce((A,{inlineSize:f})=>A+f,0),s.value=h.reduce((A,{blockSize:f})=>A+f,0)}else a.value=c.contentRect.width,s.value=c.contentRect.height},e);E2(()=>{const c=ws(t);c&&(a.value="offsetWidth"in c?c.offsetWidth:r.width,s.value="offsetHeight"in c?c.offsetHeight:r.height)});const g=et(()=>ws(t),c=>{a.value=c?r.width:0,s.value=c?r.height:0});function u(){l(),g()}return{width:a,height:s,stop:u}}function Ub(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function l6(t){const r=window.getComputedStyle(t);if(r.overflowX==="scroll"||r.overflowY==="scroll"||r.overflowX==="auto"&&t.clientWidth<t.scrollWidth||r.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const e=t.parentNode;return!e||e.tagName==="BODY"?!1:l6(e)}}function Cae(t){const r=t||window.event,e=r.target;return l6(e)?!1:r.touches.length>1?!0:(r.preventDefault&&r.preventDefault(),!1)}const jC=new WeakMap;function Iae(t,r=!1){const e=H(r);let n=null,i;et(i6(t),s=>{const l=Ub(Ui(s));if(l){const g=l;jC.get(g)||jC.set(g,i),e.value&&(g.style.overflow="hidden")}},{immediate:!0});const o=()=>{const s=Ub(Ui(t));!s||e.value||(EP&&(n=Ap(s,"touchmove",l=>{Cae(l)},{passive:!1})),s.style.overflow="hidden",e.value=!0)},a=()=>{var s;const l=Ub(Ui(t));!l||!e.value||(EP&&n?.(),l.style.overflow=(s=jC.get(l))!=null?s:"",jC.delete(l),e.value=!1)};return jm(a),J({get(){return e.value},set(s){s?o():a()}})}function Wg(t,r,e,n={}){var i,o,a;const{clone:s=!1,passive:l=!1,eventName:g,deep:u=!1,defaultValue:c,shouldEmit:d}=n,h=ul(),A=e||h?.emit||((i=h?.$emit)==null?void 0:i.bind(h))||((a=(o=h?.proxy)==null?void 0:o.$emit)==null?void 0:a.bind(h?.proxy));let f=g;r||(r="modelValue"),f=f||`update:${r.toString()}`;const C=p=>s?typeof s=="function"?s(p):aae(p):p,I=()=>Woe(t[r])?C(t[r]):c,v=p=>{d?d(p)&&A(f,p):A(f,p)};if(l){const p=I(),y=H(p);let b=!1;return et(()=>t[r],_=>{b||(b=!0,y.value=C(_),mn(()=>b=!1))}),et(y,_=>{!b&&(_!==t[r]||u)&&v(_)},{deep:u}),y}else return J({get(){return I()},set(p){v(p)}})}const vae={class:"$ui-dark-toggle-vtr"},g6=we({__name:"DarkToggle",props:{isDark:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},animationDuration:{default:400}},setup(t){const r=t,e=Wg(r,"isDark"),n=hae({initialValue:e.value?"dark":"light",onChanged:s=>{e.value=s==="dark"}}),i=J({get:()=>n.value==="dark",set:s=>n.value=s?"dark":"light"}),o=document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function a(s){if(!o||!s||!r.animation){i.value=!i.value;return}const l=s.clientX,g=s.clientY,u=Math.hypot(Math.max(l,innerWidth-l),Math.max(g,innerHeight-g));document.startViewTransition(async()=>{i.value=!i.value,await mn()}).ready.then(()=>{const c=[`circle(0px at ${l}px ${g}px)`,`circle(${u}px at ${l}px ${g}px)`];document.documentElement.animate({clipPath:i.value?[...c].reverse():c},{duration:r.animationDuration,easing:"ease-in",pseudoElement:i.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}return(s,l)=>(T(),L("span",vae,[Qe(s.$slots,"default",HA(sd({mode:m(n),isDark:i.value,toggle:a})))]))}}),pae={},mae={class:"$ui-base border $ui-border-base rounded shadow-sm"};function yae(t,r){return T(),L("div",mae,[Qe(t.$slots,"default")])}const hv=_2(pae,[["render",yae]]),S2=we({__name:"Overlay",props:{dim:{type:Boolean},blur:{type:Boolean}},setup(t){return(r,e)=>(T(),L("div",{class:Ee(["fixed left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base",[r.dim?"bg-opacity-50!":"bg-opacity-0!",r.blur?"backdrop-blur-sm":""]])},[Qe(r.$slots,"default")],2))}}),bae={class:"h7.5 w-full $ui-fbc"},$ae={class:"text-4.5"},wae=w("div",{class:"i-carbon-close"},null,-1),_ae=[wae],Eae={class:"content transition-all transition-duration-300"},Sae={class:"footer h8 w-full transition-all transition-duration-300 delay-250"},Tae={class:"$ui-fcc"},Oae=we({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},title:{default:"Dialog"},width:{default:"32rem"},height:{default:"18rem"},closable:{type:Boolean,default:!0},mountTo:{default:"body"},dim:{type:Boolean},blur:{type:Boolean}},emits:["close","update:modelValue"],setup(t,{emit:r}){const e=t,n=Wg(e,"modelValue",r,{passive:!0}),i=Iae(()=>window.document.documentElement);Mn(()=>{n.value?i.value=!0:i.value=!1});function o(){n.value&&e.autoClose&&(n.value=!1)}o6("Escape",()=>{o()});const a=H(!1);return Si(()=>a.value=!0),(s,l)=>a.value||s.mountTo==="body"?(T(),re(Pj,{key:0,to:s.mountTo},[z(XA,{"enter-from-class":"opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0","enter-to-class":"opacity-100 [&_.modal]:scale-100","leave-from-class":"opacity-100 [&_.modal]:scale-100","leave-to-class":"opacity-0 [&_.modal]:scale-95"},{default:V(()=>[m(n)?(T(),re(S2,{key:0,dim:s.dim,blur:s.blur},{default:V(()=>[w("div",{class:"modal relative grid grid-rows-[1.875rem_1fr_2.5rem] $ui-base max-h-[calc(100vh-6.25rem)] max-w-[calc(100vw-6.25rem)] min-h-6.25rem min-w-12.5rem gap-2.5 rounded-md bg-white px6 py4.5 color-gray-800 shadow-2xl transition-transform transition-duration-300 dark:bg-gray-900 dark:color-gray-200",style:Er({width:e.width,height:e.height})},[w("div",bae,[w("div",$ae,[Qe(s.$slots,"title",{},()=>[ke(_e(e.title),1)])]),s.closable?(T(),L("div",{key:0,class:"h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",onClick:o},_ae)):$e("",!0)]),w("div",Eae,[Qe(s.$slots,"default")]),w("div",Sae,[Qe(s.$slots,"footer",{},()=>[Qe(s.$slots,"footer",{},()=>[w("div",Tae,[z(at,{type:"primary",onClick:o},{default:V(()=>[ke(" close ")]),_:1})])])])])],4)]),_:3},8,["dim","blur"])):$e("",!0)]),_:3})],8,["to"])):$e("",!0)}}),kae=["type","placeholder","disabled"],xae={key:3,class:"pointer-events-none absolute bottom--0.25 left-50% right-50% z-9999 h-0.75 bg-primary-500 opacity-0 transition-all duration-240 group-[&.focused]:left-0 group-[&.focused]:right-0 group-[&.focused]:opacity-100 group-[&.accent.focused]:bg-accent-500"},Zb="transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500",Da=we({__name:"Input",props:{modelValue:{},placeholder:{default:""},variant:{default:"normal"},disabled:{type:Boolean,default:!1},password:{type:Boolean,default:!1},leftIcon:{},rightIcon:{},loading:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},loadingDebounceTime:{default:0},readonly:{type:Boolean,default:!1}},emits:["update:modelValue","updateFocused","keyTab"],setup(t,{emit:r}){const e=t,n=r,i=Wg(e,"modelValue",n),o=qoe(J(()=>e.loading),e.loadingDebounceTime),a=Joe(!1,{onChanged(c){n("updateFocused",c)}}),s=J(()=>e.variant==="flat"||e.variant==="warning"||e.disabled||e.readonly),l=J(()=>e.disabled||o.value),g=H();let u=!1;return Mn(()=>{o.value&&a.value?u=!0:!o.value&&u&&(u=!1,mn(()=>{a.value=!0}))}),Si(()=>{e.autoFocus&&(a.value=!0)}),Mn(()=>{var c;a.value&&((c=g.value)==null||c.focus())}),(c,d)=>(T(),L("div",{class:Ee(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100",[{"border-none bg-transparent group":c.variant==="flat","cursor-not-allowed opacity-50":l.value,accent:c.variant==="accent",focused:m(a)},[c.variant==="warning"?"border-warning-500 dark:border-warning-300":"border-primary-100 dark:border-gray-700"]]]),onClick:d[2]||(d[2]=()=>{a.value=!0})},[c.leftIcon?(T(),L("div",{key:0,class:Ee(Zb)},[z(St,{icon:c.leftIcon},null,8,["icon"])])):$e("",!0),Sr(w("input",{ref_key:"inputRef",ref:g,"onUpdate:modelValue":d[0]||(d[0]=h=>ze(i)?i.value=h:null),class:"$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",type:e.password?"password":"text",placeholder:c.placeholder,disabled:l.value||c.readonly,onBlur:d[1]||(d[1]=h=>a.value=!1)},null,40,kae),[[Jee,m(i)]]),m(o)?(T(),L("div",{key:1,class:Ee(Zb)},[z(e6)])):c.rightIcon?(T(),L("div",{key:2,class:Ee(Zb)},[z(St,{icon:c.rightIcon},null,8,["icon"])])):$e("",!0),s.value?$e("",!0):(T(),L("div",xae))],2))}}),Pae={class:"overflow-hidden rounded-lg shadow-lg"},Rae=w("div",{class:"p2 opacity-40"}," Empty... ",-1),kc=we({__name:"Dropdown",props:{label:{},buttonProps:{default:()=>({})},buttonClass:{default:""},trigger:{default:"click"},distance:{default:0},skidding:{},placement:{},disabled:{type:Boolean,default:!1},shown:{type:Boolean}},emits:["update:visible"],setup(t){const r=t;return pa("$ui-dropdown-disabled",J(()=>r.disabled)),(e,n)=>(T(),re(m(Poe),{disabled:e.disabled,class:"inline-block w-auto",shown:e.shown,triggers:[e.trigger],distance:e.distance+6,placement:e.placement,skidding:e.skidding,"onUpdate:shown":n[0]||(n[0]=i=>e.$emit("update:visible",i)),onClick:n[1]||(n[1]=i=>{i.stopPropagation()})},{popper:V(({hide:i})=>[w("div",Pae,[Qe(e.$slots,"popper",HA(sd({hide:i})),()=>[Rae])])]),default:V(()=>[Qe(e.$slots,"default",{},()=>[z(at,wn({...e.buttonProps,disabled:e.disabled},{class:e.buttonClass}),mj({icon:V(()=>[Qe(e.$slots,"button-icon")]),"icon-right":V(()=>[Qe(e.$slots,"button-icon-right")]),_:2},[e.label?{name:"default",fn:V(()=>[ke(_e(e.label),1)]),key:"0"}:void 0]),1040,["class"])])]),_:3},8,["disabled","shown","triggers","distance","placement","skidding"]))}}),TP=we({__name:"DropdownButton",props:{type:{},round:{type:[String,Boolean]},loading:{type:Boolean},disabled:{type:Boolean},size:{},flat:{type:Boolean},outlined:{type:Boolean},keepOpen:{type:Boolean,default:!1}},setup(t){const r=t,e=Tr("$ui-dropdown-disabled",void 0);return(n,i)=>Sr((T(),re(at,wn({...r,round:!1},{disabled:m(e),class:"w-full justify-start transition-colors not-action:bg-transparent!"}),{icon:V(()=>[Qe(n.$slots,"icon")]),default:V(()=>[Qe(n.$slots,"default")]),_:3},16,["disabled"])),[[m(J8)]])}}),Dae={class:"$ui-fec gap2.5"},Nae=we({__name:"Confirm",props:{modelValue:{type:Boolean},content:{},cancelText:{default:"Cancel"},confirmText:{default:"Confirm"},width:{default:"20%"},height:{default:"9rem"},title:{default:"Warning"},loading:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0}},emits:["update:modelValue","confirm","cancel","close"],setup(t,{emit:r}){const e=t,n=r,i=Wg(e,"modelValue",n);Mn(()=>{i.value||n("close")});function o(a=!1){(e.autoClose||a)&&(i.value=!1)}return(a,s)=>(T(),re(Oae,{modelValue:m(i),"onUpdate:modelValue":s[2]||(s[2]=l=>ze(i)?i.value=l:null),width:a.width,height:a.height,title:a.title,closable:!1},{footer:V(()=>[w("div",Dae,[z(at,{onClick:s[0]||(s[0]=()=>{n("cancel"),o(!0)})},{default:V(()=>[ke(_e(a.cancelText),1)]),_:1}),z(at,{loading:a.loading,type:"primary",onClick:s[1]||(s[1]=()=>{n("confirm"),o()})},{default:V(()=>[ke(_e(a.confirmText),1)]),_:1},8,["loading"])])]),default:V(()=>[Qe(a.$slots,"default",{class:"h-auto w-auto"},()=>[ke(_e(a.content),1)])]),_:3},8,["modelValue","width","height","title"]))}}),Mae={class:"m1 min-w-35 w-auto flex flex-col"},Bae=["onClick"],Fae=w("div",{class:"i-mdi-chevron-down"},null,-1),fp=we({__name:"Select",props:{modelValue:{},multiple:{default:!1},options:{},placeholder:{default:"Select..."},autoClose:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},labelRenderer:{type:Function,default:t=>String(t)},buttonProps:{default:()=>({})}},emits:["update:modelValue"],setup(t,{emit:r}){const e=t,n=r,i=bj(),o=J({get:()=>e.modelValue,set:l=>n("update:modelValue",l)}),a=J(()=>{const l=e.options.find(g=>g.value===o.value);return l!=null&&l.label?e.labelRenderer(l.label):e.placeholder});function s(l){e.multiple?o.value=o.value.includes(l.value)?o.value.filter(g=>g!==l.value):[...o.value,l.value]:o.value=l.value}return(l,g)=>(T(),re(kc,wn({label:a.value},{buttonProps:l.buttonProps,disabled:l.disabled}),mj({popper:V(()=>[w("div",Mae,[m(i).item?(T(!0),L(be,{key:0},pt(l.options,u=>(T(),L("div",{key:u.value,class:"cursor-pointer",onClick:c=>s(u)},[Qe(l.$slots,"item",HA(sd({item:u,active:l.multiple?o.value.includes(u.value):u.value===o.value,disabled:l.disabled})))],8,Bae))),128)):(T(!0),L(be,{key:1},pt(l.options,u=>Sr((T(),re(at,{key:u.value,disabled:l.disabled,round:"normal",class:Ee(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!",{active:l.multiple?o.value.includes(u.value):u.value===o.value}]),onClick:c=>s(u)},{default:V(()=>[ke(_e(u.label),1)]),_:2},1032,["disabled","class","onClick"])),[[m(J8),l.autoClose]])),128))])]),"button-icon-right":V(()=>[Fae]),_:2},[m(i).button?{name:"default",fn:V(()=>[Qe(l.$slots,"button")]),key:"0"}:void 0]),1040,["label"]))}}),OP=we({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:r}){const e=Wg(t,"modelValue",r),n=rae(e);return(i,o)=>(T(),L("div",{class:Ee([[i.disabled?"cursor-not-allowed":"cursor-pointer"],"$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),role:"checkbox",onClick:o[0]||(o[0]=a=>!i.disabled&&m(n)())},[Qe(i.$slots,"default"),w("div",{class:Ee([{selected:m(e)},"group relative $ui-base h4 w8 rounded-2 bg-primary-100 transition-colors dark:bg-gray-700 [&.selected]:bg-primary-500!"])},[w("div",{class:Ee(["h4 w4 rounded-full bg-primary-800 transition-transform group-[&.selected]:transform-translate-x-4 dark:bg-white",[{"group-hover:opacity-75 group-active:scale-85":!i.disabled},{"opacity-65":i.disabled}]])},null,2)],2)],2))}}),zu=we({__name:"Checkbox",props:{modelValue:{type:Boolean},variant:{default:"normal"}},emits:["update:modelValue"],setup(t,{emit:r}){const e=Wg(t,"modelValue",r);return(n,i)=>(T(),L("div",{class:Ee(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out",[m(e)?n.variant==="normal"?"bg-primary-500 border-primary-200 dark:border-primary-100":"bg-accent-500 border-accent-200 dark:border-accent-100":""]]),onClick:i[0]||(i[0]=o=>e.value=!m(e))},[w("div",{class:Ee([[m(e)?"opacity-100":"opacity-0"],"h-60% w-35% transform-translate-y--0.25 transform-rotate-45 border-width-[0_0.125rem_0.125rem_0] border-white border-solid transition-opacity duration-200 ease-in-out"])},null,2)],2))}}),u6=we({__name:"Drawer",props:{modelValue:{type:Boolean},mountTo:{default:"body"},placement:{default:"right"},closeOutside:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},contentClass:{},permanent:{type:Boolean,default:!1},contentBlur:{type:Boolean,default:!1},top:{},dim:{type:Boolean},blur:{type:Boolean}},emits:["update:modelValue","close"],setup(t,{emit:r}){const e=t,n=r,{height:i}=fae(()=>typeof e.top=="string"?document.querySelector(e.top):e.top,void 0,{box:"border-box"}),o=Wg(e,"modelValue",n),a={left:{class:"left-0 h-full b-r",transition:"[&_.drawer]:translate-x--100%"},right:{class:"right-0 h-full b-l",transition:"[&_.drawer]:translate-x-full"},top:{class:"w-full b-b",transition:"[&_.drawer]:translate-y--100%"},bottom:{class:"bottom-0 w-full b-t",transition:"[&_.drawer]:translate-y-100%"}};o6("Escape",()=>{e.closable&&(o.value=!1)});const s=J(()=>a[e.placement]),l=H(!1);return Si(()=>l.value=!0),(g,u)=>l.value||g.mountTo==="body"?(T(),re(Pj,{key:0,to:g.mountTo},[z(XA,{"enter-from-class":`${s.value.transition}`,"leave-to-class":`${s.value.transition}`},{default:V(()=>[m(o)?(T(),re(S2,{key:0,class:Ee({"pointer-events-none":g.permanent}),dim:g.dim,blur:g.blur,onClick:u[2]||(u[2]=c=>g.closeOutside&&g.closable&&(o.value=!1))},{default:V(()=>[w("div",{class:Ee([[s.value.class,g.contentClass??"",g.contentBlur?"$ui-glass-effect":"$ui-bg-base"],"drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),style:Er({top:g.placement==="bottom"?"auto":`${m(i)}px`,height:["top","bottom"].includes(g.placement)?"auto":`calc(100% - ${m(i)}px)`}),onClick:u[1]||(u[1]=En(()=>{},["stop"]))},[g.closable?(T(),L("div",{key:0,class:"i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",onClick:u[0]||(u[0]=c=>o.value=!1)})):$e("",!0),Qe(g.$slots,"default")],6)]),_:3},8,["class","dim","blur"])):$e("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],8,["to"])):$e("",!0)}}),Lae=we({__name:"Notification",props:{message:{},type:{default:"info"},classes:{},duration:{default:3e3},placement:{default:"top-center"},onClose:{}},setup(t){const r=t,e={success:"i-carbon-checkmark",info:"i-material-symbols-light-info",warning:"i-carbon-warning",error:"i-carbon-close"},n={success:"text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",info:"text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",warning:"text-amber-4 border-amber-2 dark:border-amber-4",error:"text-red-4 border-red-2 dark:border-red-4"},i=H(!1);Si(()=>{i.value=!0,setTimeout(()=>{i.value=!1},r.duration)});const o=J(()=>r.placement.startsWith("top")?"translate-y--300%":"translate-y-300%");return(a,s)=>(T(),L("div",{class:Ee(["fixed left-0 right-0 $ui-z-max-override text-center",[{"top-0":a.placement.startsWith("top")},{"bottom-0":a.placement.startsWith("bottom")}]])},[z(XA,{"enter-from-class":o.value,"leave-to-class":o.value,onAfterLeave:s[0]||(s[0]=()=>{var l;i.value||(l=a.onClose)==null||l.call(a)})},{default:V(()=>[i.value?(T(),L("div",{key:0,class:"flex transition-all duration-300",style:Er({justifyContent:a.placement.includes("right")?"right":a.placement.includes("left")?"left":"center"})},[w("div",{class:Ee(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base",[a.classes,n[a.type]]])},[w("div",{class:Ee(e[a.type])},null,2),w("div",null,_e(a.message),1)],2)],4)):$e("",!0)]),_:1},8,["enter-from-class","leave-to-class"])],2))}}),zae=we({__name:"Tooltip",props:{trigger:{},distance:{},skidding:{},placement:{},disabled:{type:Boolean},shown:{type:Boolean}},setup(t){return(r,e)=>(T(),re(m(Roe),wn({disabled:r.disabled,placement:r.placement},r.$attrs),{popper:V(()=>[Qe(r.$slots,"popper")]),default:V(()=>[Qe(r.$slots,"default")]),_:3},16,["disabled","placement"]))}});function d_(t){const r=document.createElement("div");r.classList.add("$ui-z-max-override","fixed"),document.body.appendChild(r);const e=t.onClose;function n(){yx(null,r)}t.onClose=()=>{n(),e?.(),document.body.removeChild(r)};const i=ld(Lae,t);yx(i,r)}function Na(t){return Array.isArray?Array.isArray(t):h6(t)==="[object Array]"}const jae=1/0;function Vae(t){if(typeof t=="string")return t;let r=t+"";return r=="0"&&1/t==-jae?"-0":r}function Gae(t){return t==null?"":Vae(t)}function jo(t){return typeof t=="string"}function c6(t){return typeof t=="number"}function Wae(t){return t===!0||t===!1||Hae(t)&&h6(t)=="[object Boolean]"}function d6(t){return typeof t=="object"}function Hae(t){return d6(t)&&t!==null}function mi(t){return t!=null}function Kb(t){return!t.trim().length}function h6(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Uae="Incorrect 'index' type",Zae=t=>`Invalid value for key ${t}`,Kae=t=>`Pattern length exceeds max of ${t}.`,Yae=t=>`Missing ${t} property in key`,Xae=t=>`Property 'weight' in key '${t}' must be a positive integer`,kP=Object.prototype.hasOwnProperty;class Qae{constructor(r){this._keys=[],this._keyMap={};let e=0;r.forEach(n=>{let i=A6(n);this._keys.push(i),this._keyMap[i.id]=i,e+=i.weight}),this._keys.forEach(n=>{n.weight/=e})}get(r){return this._keyMap[r]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function A6(t){let r=null,e=null,n=null,i=1,o=null;if(jo(t)||Na(t))n=t,r=xP(t),e=h_(t);else{if(!kP.call(t,"name"))throw new Error(Yae("name"));const a=t.name;if(n=a,kP.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(Xae(a));r=xP(a),e=h_(a),o=t.getFn}return{path:r,id:e,weight:i,src:n,getFn:o}}function xP(t){return Na(t)?t:t.split(".")}function h_(t){return Na(t)?t.join("."):t}function qae(t,r){let e=[],n=!1;const i=(o,a,s)=>{if(mi(o))if(!a[s])e.push(o);else{let l=a[s];const g=o[l];if(!mi(g))return;if(s===a.length-1&&(jo(g)||c6(g)||Wae(g)))e.push(Gae(g));else if(Na(g)){n=!0;for(let u=0,c=g.length;u<c;u+=1)i(g[u],a,s+1)}else a.length&&i(g,a,s+1)}};return i(t,jo(r)?r.split("."):r,0),n?e:e[0]}const Jae={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},ese={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,r)=>t.score===r.score?t.idx<r.idx?-1:1:t.score<r.score?-1:1},tse={location:0,threshold:.6,distance:100},rse={useExtendedSearch:!1,getFn:qae,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var tt={...ese,...Jae,...tse,...rse};const nse=/[^ ]+/g;function ise(t=1,r=3){const e=new Map,n=Math.pow(10,r);return{get(i){const o=i.match(nse).length;if(e.has(o))return e.get(o);const a=1/Math.pow(o,.5*t),s=parseFloat(Math.round(a*n)/n);return e.set(o,s),s},clear(){e.clear()}}}class T2{constructor({getFn:r=tt.getFn,fieldNormWeight:e=tt.fieldNormWeight}={}){this.norm=ise(e,3),this.getFn=r,this.isCreated=!1,this.setIndexRecords()}setSources(r=[]){this.docs=r}setIndexRecords(r=[]){this.records=r}setKeys(r=[]){this.keys=r,this._keysMap={},r.forEach((e,n)=>{this._keysMap[e.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,jo(this.docs[0])?this.docs.forEach((r,e)=>{this._addString(r,e)}):this.docs.forEach((r,e)=>{this._addObject(r,e)}),this.norm.clear())}add(r){const e=this.size();jo(r)?this._addString(r,e):this._addObject(r,e)}removeAt(r){this.records.splice(r,1);for(let e=r,n=this.size();e<n;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(r,e){return r[this._keysMap[e]]}size(){return this.records.length}_addString(r,e){if(!mi(r)||Kb(r))return;let n={v:r,i:e,n:this.norm.get(r)};this.records.push(n)}_addObject(r,e){let n={i:e,$:{}};this.keys.forEach((i,o)=>{let a=i.getFn?i.getFn(r):this.getFn(r,i.path);if(mi(a)){if(Na(a)){let s=[];const l=[{nestedArrIndex:-1,value:a}];for(;l.length;){const{nestedArrIndex:g,value:u}=l.pop();if(mi(u))if(jo(u)&&!Kb(u)){let c={v:u,i:g,n:this.norm.get(u)};s.push(c)}else Na(u)&&u.forEach((c,d)=>{l.push({nestedArrIndex:d,value:c})})}n.$[o]=s}else if(jo(a)&&!Kb(a)){let s={v:a,n:this.norm.get(a)};n.$[o]=s}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function f6(t,r,{getFn:e=tt.getFn,fieldNormWeight:n=tt.fieldNormWeight}={}){const i=new T2({getFn:e,fieldNormWeight:n});return i.setKeys(t.map(A6)),i.setSources(r),i.create(),i}function ose(t,{getFn:r=tt.getFn,fieldNormWeight:e=tt.fieldNormWeight}={}){const{keys:n,records:i}=t,o=new T2({getFn:r,fieldNormWeight:e});return o.setKeys(n),o.setIndexRecords(i),o}function VC(t,{errors:r=0,currentLocation:e=0,expectedLocation:n=0,distance:i=tt.distance,ignoreLocation:o=tt.ignoreLocation}={}){const a=r/t.length;if(o)return a;const s=Math.abs(n-e);return i?a+s/i:s?1:a}function ase(t=[],r=tt.minMatchCharLength){let e=[],n=-1,i=-1,o=0;for(let a=t.length;o<a;o+=1){let s=t[o];s&&n===-1?n=o:!s&&n!==-1&&(i=o-1,i-n+1>=r&&e.push([n,i]),n=-1)}return t[o-1]&&o-n>=r&&e.push([n,o-1]),e}const Ul=32;function sse(t,r,e,{location:n=tt.location,distance:i=tt.distance,threshold:o=tt.threshold,findAllMatches:a=tt.findAllMatches,minMatchCharLength:s=tt.minMatchCharLength,includeMatches:l=tt.includeMatches,ignoreLocation:g=tt.ignoreLocation}={}){if(r.length>Ul)throw new Error(Kae(Ul));const u=r.length,c=t.length,d=Math.max(0,Math.min(n,c));let h=o,A=d;const f=s>1||l,C=f?Array(c):[];let I;for(;(I=t.indexOf(r,A))>-1;){let P=VC(r,{currentLocation:I,expectedLocation:d,distance:i,ignoreLocation:g});if(h=Math.min(P,h),A=I+u,f){let k=0;for(;k<u;)C[I+k]=1,k+=1}}A=-1;let v=[],p=1,y=u+c;const b=1<<u-1;for(let P=0;P<u;P+=1){let k=0,E=y;for(;k<E;)VC(r,{errors:P,currentLocation:d+E,expectedLocation:d,distance:i,ignoreLocation:g})<=h?k=E:y=E,E=Math.floor((y-k)/2+k);y=E;let O=Math.max(1,d-E+1),N=a?c:Math.min(d+E,c)+u,D=Array(N+2);D[N+1]=(1<<P)-1;for(let Q=N;Q>=O;Q-=1){let j=Q-1,W=e[t.charAt(j)];if(f&&(C[j]=+!!W),D[Q]=(D[Q+1]<<1|1)&W,P&&(D[Q]|=(v[Q+1]|v[Q])<<1|1|v[Q+1]),D[Q]&b&&(p=VC(r,{errors:P,currentLocation:j,expectedLocation:d,distance:i,ignoreLocation:g}),p<=h)){if(h=p,A=j,A<=d)break;O=Math.max(1,2*d-A)}}if(VC(r,{errors:P+1,currentLocation:d,expectedLocation:d,distance:i,ignoreLocation:g})>h)break;v=D}const _={isMatch:A>=0,score:Math.max(.001,p)};if(f){const P=ase(C,s);P.length?l&&(_.indices=P):_.isMatch=!1}return _}function lse(t){let r={};for(let e=0,n=t.length;e<n;e+=1){const i=t.charAt(e);r[i]=(r[i]||0)|1<<n-e-1}return r}class C6{constructor(r,{location:e=tt.location,threshold:n=tt.threshold,distance:i=tt.distance,includeMatches:o=tt.includeMatches,findAllMatches:a=tt.findAllMatches,minMatchCharLength:s=tt.minMatchCharLength,isCaseSensitive:l=tt.isCaseSensitive,ignoreLocation:g=tt.ignoreLocation}={}){if(this.options={location:e,threshold:n,distance:i,includeMatches:o,findAllMatches:a,minMatchCharLength:s,isCaseSensitive:l,ignoreLocation:g},this.pattern=l?r:r.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(d,h)=>{this.chunks.push({pattern:d,alphabet:lse(d),startIndex:h})},c=this.pattern.length;if(c>Ul){let d=0;const h=c%Ul,A=c-h;for(;d<A;)u(this.pattern.substr(d,Ul),d),d+=Ul;if(h){const f=c-Ul;u(this.pattern.substr(f),f)}}else u(this.pattern,0)}searchIn(r){const{isCaseSensitive:e,includeMatches:n}=this.options;if(e||(r=r.toLowerCase()),this.pattern===r){let A={isMatch:!0,score:0};return n&&(A.indices=[[0,r.length-1]]),A}const{location:i,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,ignoreLocation:g}=this.options;let u=[],c=0,d=!1;this.chunks.forEach(({pattern:A,alphabet:f,startIndex:C})=>{const{isMatch:I,score:v,indices:p}=sse(r,A,f,{location:i+C,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,includeMatches:n,ignoreLocation:g});I&&(d=!0),c+=v,I&&p&&(u=[...u,...p])});let h={isMatch:d,score:d?c/this.chunks.length:1};return d&&n&&(h.indices=u),h}}class hl{constructor(r){this.pattern=r}static isMultiMatch(r){return PP(r,this.multiRegex)}static isSingleMatch(r){return PP(r,this.singleRegex)}search(){}}function PP(t,r){const e=t.match(r);return e?e[1]:null}class gse extends hl{constructor(r){super(r)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(r){const e=r===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class use extends hl{constructor(r){super(r)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(r){const n=r.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,r.length-1]}}}class cse extends hl{constructor(r){super(r)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(r){const e=r.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class dse extends hl{constructor(r){super(r)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(r){const e=!r.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,r.length-1]}}}class hse extends hl{constructor(r){super(r)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(r){const e=r.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[r.length-this.pattern.length,r.length-1]}}}class Ase extends hl{constructor(r){super(r)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(r){const e=!r.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,r.length-1]}}}class I6 extends hl{constructor(r,{location:e=tt.location,threshold:n=tt.threshold,distance:i=tt.distance,includeMatches:o=tt.includeMatches,findAllMatches:a=tt.findAllMatches,minMatchCharLength:s=tt.minMatchCharLength,isCaseSensitive:l=tt.isCaseSensitive,ignoreLocation:g=tt.ignoreLocation}={}){super(r),this._bitapSearch=new C6(r,{location:e,threshold:n,distance:i,includeMatches:o,findAllMatches:a,minMatchCharLength:s,isCaseSensitive:l,ignoreLocation:g})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(r){return this._bitapSearch.searchIn(r)}}class v6 extends hl{constructor(r){super(r)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(r){let e=0,n;const i=[],o=this.pattern.length;for(;(n=r.indexOf(this.pattern,e))>-1;)e=n+o,i.push([n,e-1]);const a=!!i.length;return{isMatch:a,score:a?0:1,indices:i}}}const A_=[gse,v6,cse,dse,Ase,hse,use,I6],RP=A_.length,fse=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Cse="|";function Ise(t,r={}){return t.split(Cse).map(e=>{let n=e.trim().split(fse).filter(o=>o&&!!o.trim()),i=[];for(let o=0,a=n.length;o<a;o+=1){const s=n[o];let l=!1,g=-1;for(;!l&&++g<RP;){const u=A_[g];let c=u.isMultiMatch(s);c&&(i.push(new u(c,r)),l=!0)}if(!l)for(g=-1;++g<RP;){const u=A_[g];let c=u.isSingleMatch(s);if(c){i.push(new u(c,r));break}}}return i})}const vse=new Set([I6.type,v6.type]);class pse{constructor(r,{isCaseSensitive:e=tt.isCaseSensitive,includeMatches:n=tt.includeMatches,minMatchCharLength:i=tt.minMatchCharLength,ignoreLocation:o=tt.ignoreLocation,findAllMatches:a=tt.findAllMatches,location:s=tt.location,threshold:l=tt.threshold,distance:g=tt.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:n,minMatchCharLength:i,findAllMatches:a,ignoreLocation:o,location:s,threshold:l,distance:g},this.pattern=e?r:r.toLowerCase(),this.query=Ise(this.pattern,this.options)}static condition(r,e){return e.useExtendedSearch}searchIn(r){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:i}=this.options;r=i?r:r.toLowerCase();let o=0,a=[],s=0;for(let l=0,g=e.length;l<g;l+=1){const u=e[l];a.length=0,o=0;for(let c=0,d=u.length;c<d;c+=1){const h=u[c],{isMatch:A,indices:f,score:C}=h.search(r);if(A){if(o+=1,s+=C,n){const I=h.constructor.type;vse.has(I)?a=[...a,...f]:a.push(f)}}else{s=0,o=0,a.length=0;break}}if(o){let c={isMatch:!0,score:s/o};return n&&(c.indices=a),c}}return{isMatch:!1,score:1}}}const f_=[];function mse(...t){f_.push(...t)}function C_(t,r){for(let e=0,n=f_.length;e<n;e+=1){let i=f_[e];if(i.condition(t,r))return new i(t,r)}return new C6(t,r)}const Cp={AND:"$and",OR:"$or"},I_={PATH:"$path",PATTERN:"$val"},v_=t=>!!(t[Cp.AND]||t[Cp.OR]),yse=t=>!!t[I_.PATH],bse=t=>!Na(t)&&d6(t)&&!v_(t),DP=t=>({[Cp.AND]:Object.keys(t).map(r=>({[r]:t[r]}))});function p6(t,r,{auto:e=!0}={}){const n=i=>{let o=Object.keys(i);const a=yse(i);if(!a&&o.length>1&&!v_(i))return n(DP(i));if(bse(i)){const l=a?i[I_.PATH]:o[0],g=a?i[I_.PATTERN]:i[l];if(!jo(g))throw new Error(Zae(l));const u={keyId:h_(l),pattern:g};return e&&(u.searcher=C_(g,r)),u}let s={children:[],operator:o[0]};return o.forEach(l=>{const g=i[l];Na(g)&&g.forEach(u=>{s.children.push(n(u))})}),s};return v_(t)||(t=DP(t)),n(t)}function $se(t,{ignoreFieldNorm:r=tt.ignoreFieldNorm}){t.forEach(e=>{let n=1;e.matches.forEach(({key:i,norm:o,score:a})=>{const s=i?i.weight:null;n*=Math.pow(a===0&&s?Number.EPSILON:a,(s||1)*(r?1:o))}),e.score=n})}function wse(t,r){const e=t.matches;r.matches=[],mi(e)&&e.forEach(n=>{if(!mi(n.indices)||!n.indices.length)return;const{indices:i,value:o}=n;let a={indices:i,value:o};n.key&&(a.key=n.key.src),n.idx>-1&&(a.refIndex=n.idx),r.matches.push(a)})}function _se(t,r){r.score=t.score}function Ese(t,r,{includeMatches:e=tt.includeMatches,includeScore:n=tt.includeScore}={}){const i=[];return e&&i.push(wse),n&&i.push(_se),t.map(o=>{const{idx:a}=o,s={item:r[a],refIndex:a};return i.length&&i.forEach(l=>{l(o,s)}),s})}class Hg{constructor(r,e={},n){this.options={...tt,...e},this.options.useExtendedSearch,this._keyStore=new Qae(this.options.keys),this.setCollection(r,n)}setCollection(r,e){if(this._docs=r,e&&!(e instanceof T2))throw new Error(Uae);this._myIndex=e||f6(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(r){mi(r)&&(this._docs.push(r),this._myIndex.add(r))}remove(r=()=>!1){const e=[];for(let n=0,i=this._docs.length;n<i;n+=1){const o=this._docs[n];r(o,n)&&(this.removeAt(n),n-=1,i-=1,e.push(o))}return e}removeAt(r){this._docs.splice(r,1),this._myIndex.removeAt(r)}getIndex(){return this._myIndex}search(r,{limit:e=-1}={}){const{includeMatches:n,includeScore:i,shouldSort:o,sortFn:a,ignoreFieldNorm:s}=this.options;let l=jo(r)?jo(this._docs[0])?this._searchStringList(r):this._searchObjectList(r):this._searchLogical(r);return $se(l,{ignoreFieldNorm:s}),o&&l.sort(a),c6(e)&&e>-1&&(l=l.slice(0,e)),Ese(l,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(r){const e=C_(r,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:o,i:a,n:s})=>{if(!mi(o))return;const{isMatch:l,score:g,indices:u}=e.searchIn(o);l&&i.push({item:o,idx:a,matches:[{score:g,value:o,norm:s,indices:u}]})}),i}_searchLogical(r){const e=p6(r,this.options),n=(s,l,g)=>{if(!s.children){const{keyId:c,searcher:d}=s,h=this._findMatches({key:this._keyStore.get(c),value:this._myIndex.getValueForItemAtKeyId(l,c),searcher:d});return h&&h.length?[{idx:g,item:l,matches:h}]:[]}const u=[];for(let c=0,d=s.children.length;c<d;c+=1){const h=s.children[c],A=n(h,l,g);if(A.length)u.push(...A);else if(s.operator===Cp.AND)return[]}return u},i=this._myIndex.records,o={},a=[];return i.forEach(({$:s,i:l})=>{if(mi(s)){let g=n(e,s,l);g.length&&(o[l]||(o[l]={idx:l,item:s,matches:[]},a.push(o[l])),g.forEach(({matches:u})=>{o[l].matches.push(...u)}))}}),a}_searchObjectList(r){const e=C_(r,this.options),{keys:n,records:i}=this._myIndex,o=[];return i.forEach(({$:a,i:s})=>{if(!mi(a))return;let l=[];n.forEach((g,u)=>{l.push(...this._findMatches({key:g,value:a[u],searcher:e}))}),l.length&&o.push({idx:s,item:a,matches:l})}),o}_findMatches({key:r,value:e,searcher:n}){if(!mi(e))return[];let i=[];if(Na(e))e.forEach(({v:o,i:a,n:s})=>{if(!mi(o))return;const{isMatch:l,score:g,indices:u}=n.searchIn(o);l&&i.push({score:g,key:r,value:o,idx:a,norm:s,indices:u})});else{const{v:o,n:a}=e,{isMatch:s,score:l,indices:g}=n.searchIn(o);s&&i.push({score:l,key:r,value:o,norm:a,indices:g})}return i}}Hg.version="7.0.0";Hg.createIndex=f6;Hg.parseIndex=ose;Hg.config=tt;Hg.parseQuery=p6;mse(pse);const Sse=[["app",[{icon:"i-carbon-information",name:"overview",order:-100,path:"overview",title:"Overview"},{icon:"i-carbon-assembly-cluster",name:"components",order:-100,path:"components",title:"Components"},{icon:"i-carbon-tree-view-alt",name:"pages",order:-100,path:"pages",title:"Pages"},{icon:"i-carbon-image-copy",name:"assets",order:-100,path:"assets",title:"Assets"},{icon:"i-icon-park-outline:vertical-timeline",name:"timeline",order:-100,path:"timeline",title:"Timeline"}]],["modules",[{icon:"i-ri-route-line",name:"router",order:-100,path:"router",title:"Router"},{icon:"i-icon-park-outline:pineapple",name:"pinia",order:-100,path:"pinia",title:"Pinia"},{icon:"i-carbon-language",name:"i18n",order:-100,path:"i18n",title:"I18n Resources"}]],["advanced",[{icon:"i-carbon-network-4",name:"graph",order:-100,path:"graph",title:"Graph"}]]],m6=["assets","graph","vite-inspect"],NP={pinia:"pinia",router:"vueRouter",i18n:"vueI18n"};function Tse(t,r){const e=r.name;return e in NP&&t[NP[e]]}function Ose(t,r){const e=bc(Sse);return e.forEach(n=>{n[0]==="modules"&&(n[1]=n[1].filter(i=>r?Tse(r,i):!0))}),t&&!zS?e:e.map(([n,i])=>[n,i.filter(o=>!m6.includes(o.name))])}const y6=aa([]),b6=H(null),kse=J(()=>y6.value.find(t=>t.id===b6.value));function na(t){return US()?(V4(t),!0):!1}function _r(t){return typeof t=="function"?t():m(t)}const wg=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xse=t=>typeof t<"u",Pse=Object.prototype.toString,Rse=t=>Pse.call(t)==="[object Object]",ma=()=>{},Dse=Nse();function Nse(){var t,r;return wg&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((r=window?.navigator)==null?void 0:r.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Mse(t,r){function e(...n){return new Promise((i,o)=>{Promise.resolve(t(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(i).catch(o)})}return e}const $6=t=>t();function Bse(t,r={}){let e,n,i=ma;const o=s=>{clearTimeout(s),i(),i=ma};return s=>{const l=_r(t),g=_r(r.maxWait);return e&&o(e),l<=0||g!==void 0&&g<=0?(n&&(o(n),n=null),Promise.resolve(s())):new Promise((u,c)=>{i=r.rejectOnCancel?c:u,g&&!n&&(n=setTimeout(()=>{e&&o(e),n=null,u(s())},g)),e=setTimeout(()=>{n&&o(n),n=null,u(s())},l)})}}function Fse(t=$6){const r=H(!0);function e(){r.value=!1}function n(){r.value=!0}const i=(...o)=>{r.value&&t(...o)};return{isActive:Va(r),pause:e,resume:n,eventFilter:i}}function MP(t,r=!1,e="Timeout"){return new Promise((n,i)=>{setTimeout(r?()=>i(e):n,t)})}function Lse(t){let r;function e(){return r||(r=t()),r}return e.reset=async()=>{const n=r;r=void 0,n&&await n},e}function zse(t){return t||ul()}function jse(...t){if(t.length!==1)return oj(...t);const r=t[0];return typeof r=="function"?Va(n2(()=>({get:r,set:ma}))):H(r)}function w6(t,r,e={}){const{eventFilter:n=$6,...i}=e;return et(t,Mse(n,r),i)}function Vse(t,r,e={}){const{eventFilter:n,...i}=e,{eventFilter:o,pause:a,resume:s,isActive:l}=Fse(n);return{stop:w6(t,r,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function ef(t,r=!0,e){zse()?Si(t,e):r?t():mn(t)}function p_(t,r=!1){function e(c,{flush:d="sync",deep:h=!1,timeout:A,throwOnTimeout:f}={}){let C=null;const v=[new Promise(p=>{C=et(t,y=>{c(y)!==r&&(C?.(),p(y))},{flush:d,deep:h,immediate:!0})})];return A!=null&&v.push(MP(A,f).then(()=>_r(t)).finally(()=>C?.())),Promise.race(v)}function n(c,d){if(!ze(c))return e(y=>y===c,d);const{flush:h="sync",deep:A=!1,timeout:f,throwOnTimeout:C}=d??{};let I=null;const p=[new Promise(y=>{I=et([t,c],([b,_])=>{r!==(b===_)&&(I?.(),y(b))},{flush:h,deep:A,immediate:!0})})];return f!=null&&p.push(MP(f,C).then(()=>_r(t)).finally(()=>(I?.(),_r(t)))),Promise.race(p)}function i(c){return e(d=>!!d,c)}function o(c){return n(null,c)}function a(c){return n(void 0,c)}function s(c){return e(Number.isNaN,c)}function l(c,d){return e(h=>{const A=Array.from(h);return A.includes(c)||A.includes(_r(c))},d)}function g(c){return u(1,c)}function u(c=1,d){let h=-1;return e(()=>(h+=1,h>=c),d)}return Array.isArray(_r(t))?{toMatch:e,toContains:l,changed:g,changedTimes:u,get not(){return p_(t,!r)}}:{toMatch:e,toBe:n,toBeTruthy:i,toBeNull:o,toBeNaN:s,toBeUndefined:a,changed:g,changedTimes:u,get not(){return p_(t,!r)}}}function Gse(t){return p_(t)}function Wse(t,r=1e3,e={}){const{immediate:n=!0,immediateCallback:i=!1}=e;let o=null;const a=H(!1);function s(){o&&(clearInterval(o),o=null)}function l(){a.value=!1,s()}function g(){const u=_r(r);u<=0||(a.value=!0,i&&t(),s(),o=setInterval(t,u))}if(n&&wg&&g(),ze(r)||typeof r=="function"){const u=et(r,()=>{a.value&&wg&&g()});na(u)}return na(l),{isActive:a,pause:l,resume:g}}function Hse(t,r,e={}){const{immediate:n=!0}=e,i=H(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...g){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...g)},_r(r))}return n&&(i.value=!0,wg&&l()),na(s),{isPending:Va(i),start:l,stop:s}}function O2(t=!1,r={}){const{truthyValue:e=!0,falsyValue:n=!1}=r,i=ze(t),o=H(t);function a(s){if(arguments.length)return o.value=s,o.value;{const l=_r(e);return o.value=o.value===l?_r(n):l,o.value}}return i?a:[o,a]}function k2(t,r,e={}){const{debounce:n=0,maxWait:i=void 0,...o}=e;return w6(t,r,{...o,eventFilter:Bse(n,{maxWait:i})})}function _6(t,r,e){const n=et(t,(...i)=>(mn(()=>n()),r(...i)),e);return n}function BP(t,r,e){let n;ze(e)?n={evaluating:e}:n=e||{};const{lazy:i=!1,evaluating:o=void 0,shallow:a=!0,onError:s=ma}=n,l=H(!i),g=a?aa(r):H(r);let u=0;return Mn(async c=>{if(!l.value)return;u++;const d=u;let h=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{const A=await t(f=>{c(()=>{o&&(o.value=!1),h||f()})});d===u&&(g.value=A)}catch(A){s(A)}finally{o&&d===u&&(o.value=!1),h=!0}}),i?J(()=>(l.value=!0,g.value)):g}function Ao(t){var r;const e=_r(t);return(r=e?.$el)!=null?r:e}const Ei=wg?window:void 0,Use=wg?window.document:void 0,E6=wg?window.navigator:void 0;function on(...t){let r,e,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,n,i]=t,r=Ei):[r,e,n,i]=t,!r)return ma;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const o=[],a=()=>{o.forEach(u=>u()),o.length=0},s=(u,c,d,h)=>(u.addEventListener(c,d,h),()=>u.removeEventListener(c,d,h)),l=et(()=>[Ao(r),_r(i)],([u,c])=>{if(a(),!u)return;const d=Rse(c)?{...c}:c;o.push(...e.flatMap(h=>n.map(A=>s(u,h,A,d))))},{immediate:!0,flush:"post"}),g=()=>{l(),a()};return na(g),g}let FP=!1;function Zse(t,r,e={}){const{window:n=Ei,ignore:i=[],capture:o=!0,detectIframe:a=!1}=e;if(!n)return ma;Dse&&!FP&&(FP=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",ma)),n.document.documentElement.addEventListener("click",ma));let s=!0;const l=d=>i.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(A=>A===d.target||d.composedPath().includes(A));{const A=Ao(h);return A&&(d.target===A||d.composedPath().includes(A))}}),u=[on(n,"click",d=>{const h=Ao(t);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}r(d)}},{passive:!0,capture:o}),on(n,"pointerdown",d=>{const h=Ao(t);s=!l(d)&&!!(h&&!d.composedPath().includes(h))},{passive:!0}),a&&on(n,"blur",d=>{setTimeout(()=>{var h;const A=Ao(t);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!A?.contains(n.document.activeElement)&&r(d)},0)})].filter(Boolean);return()=>u.forEach(d=>d())}function Kse(){const t=H(!1);return ul()&&Si(()=>{t.value=!0}),t}function ud(t){const r=Kse();return J(()=>(r.value,!!t()))}function Yse(t,r={}){const{immediate:e=!0,fpsLimit:n=void 0,window:i=Ei}=r,o=H(!1),a=n?1e3/n:null;let s=0,l=null;function g(d){if(!o.value||!i)return;const h=d-(s||d);if(a&&h<a){l=i.requestAnimationFrame(g);return}t({delta:h,timestamp:d}),s=d,l=i.requestAnimationFrame(g)}function u(){!o.value&&i&&(o.value=!0,l=i.requestAnimationFrame(g))}function c(){o.value=!1,l!=null&&i&&(i.cancelAnimationFrame(l),l=null)}return e&&u(),na(c),{isActive:Va(o),pause:c,resume:u}}function S6(t,r={}){const{window:e=Ei}=r,n=ud(()=>e&&"matchMedia"in e&&typeof e.matchMedia=="function");let i;const o=H(!1),a=g=>{o.value=g.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},l=Mn(()=>{n.value&&(s(),i=e.matchMedia(_r(t)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),o.value=i.matches)});return na(()=>{l(),s(),i=void 0}),o}function LP(t,r={}){const{controls:e=!1,navigator:n=E6}=r,i=ud(()=>n&&"permissions"in n);let o;const a=typeof t=="string"?{name:t}:t,s=H(),l=()=>{o&&(s.value=o.state)},g=Lse(async()=>{if(i.value){if(!o)try{o=await n.permissions.query(a),on(o,"change",l),l()}catch{s.value="prompt"}return o}});return g(),e?{state:s,isSupported:i,query:g}:s}function x2(t={}){const{navigator:r=E6,read:e=!1,source:n,copiedDuring:i=1500,legacy:o=!1}=t,a=ud(()=>r&&"clipboard"in r),s=LP("clipboard-read"),l=LP("clipboard-write"),g=J(()=>a.value||o),u=H(""),c=H(!1),d=Hse(()=>c.value=!1,i);function h(){a.value&&s.value!=="denied"?r.clipboard.readText().then(I=>{u.value=I}):u.value=C()}g.value&&e&&on(["copy","cut"],h);async function A(I=_r(n)){g.value&&I!=null&&(a.value&&l.value!=="denied"?await r.clipboard.writeText(I):f(I),u.value=I,c.value=!0,d.start())}function f(I){const v=document.createElement("textarea");v.value=I??"",v.style.position="absolute",v.style.opacity="0",document.body.appendChild(v),v.select(),document.execCommand("copy"),v.remove()}function C(){var I,v,p;return(p=(v=(I=document?.getSelection)==null?void 0:I.call(document))==null?void 0:v.toString())!=null?p:""}return{isSupported:g,text:u,copied:c,copy:A}}function Xse(t){return JSON.parse(JSON.stringify(t))}const GC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},WC="__vueuse_ssr_handlers__",Qse=qse();function qse(){return WC in GC||(GC[WC]=GC[WC]||{}),GC[WC]}function T6(t,r){return Qse[t]||r}function Jse(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const ele={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},zP="vueuse-storage";function O6(t,r,e,n={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:g=!1,shallow:u,window:c=Ei,eventFilter:d,onError:h=E=>{console.error(E)},initOnMounted:A}=n,f=(u?aa:H)(typeof r=="function"?r():r);if(!e)try{e=T6("getDefaultStorage",()=>{var E;return(E=Ei)==null?void 0:E.localStorage})()}catch(E){h(E)}if(!e)return f;const C=_r(r),I=Jse(C),v=(i=n.serializer)!=null?i:ele[I],{pause:p,resume:y}=Vse(f,()=>b(f.value),{flush:o,deep:a,eventFilter:d});return c&&s&&ef(()=>{on(c,"storage",k),on(c,zP,P),A&&k()}),A||k(),f;function b(E){try{if(E==null)e.removeItem(t);else{const O=v.write(E),N=e.getItem(t);N!==O&&(e.setItem(t,O),c&&c.dispatchEvent(new CustomEvent(zP,{detail:{key:t,oldValue:N,newValue:O,storageArea:e}})))}}catch(O){h(O)}}function _(E){const O=E?E.newValue:e.getItem(t);if(O==null)return l&&C!=null&&e.setItem(t,v.write(C)),C;if(!E&&g){const N=v.read(O);return typeof g=="function"?g(N,C):I==="object"&&!Array.isArray(N)?{...C,...N}:N}else return typeof O!="string"?O:v.read(O)}function P(E){k(E.detail)}function k(E){if(!(E&&E.storageArea!==e)){if(E&&E.key==null){f.value=C;return}if(!(E&&E.key!==t)){p();try{E?.newValue!==v.write(f.value)&&(f.value=_(E))}catch(O){h(O)}finally{E?mn(y):y()}}}}}function k6(t){return S6("(prefers-color-scheme: dark)",t)}function Vm(t={}){const{selector:r="html",attribute:e="class",initialValue:n="auto",window:i=Ei,storage:o,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:g,disableTransition:u=!0}=t,c={auto:"",light:"light",dark:"dark",...t.modes||{}},d=k6({window:i}),h=J(()=>d.value?"dark":"light"),A=l||(a==null?jse(n):O6(a,n,o,{window:i,listenToStorageChanges:s})),f=J(()=>A.value==="auto"?h.value:A.value),C=T6("updateHTMLAttrs",(y,b,_)=>{const P=typeof y=="string"?i?.document.querySelector(y):Ao(y);if(!P)return;let k;if(u){k=i.document.createElement("style");const E="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";k.appendChild(document.createTextNode(E)),i.document.head.appendChild(k)}if(b==="class"){const E=_.split(/\s/g);Object.values(c).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{E.includes(O)?P.classList.add(O):P.classList.remove(O)})}else P.setAttribute(b,_);u&&(i.getComputedStyle(k).opacity,document.head.removeChild(k))});function I(y){var b;C(r,e,(b=c[y])!=null?b:y)}function v(y){t.onChanged?t.onChanged(y,I):I(y)}et(f,v,{flush:"post",immediate:!0}),ef(()=>v(f.value));const p=J({get(){return g?A.value:f.value},set(y){A.value=y}});try{return Object.assign(p,{store:A,system:h,state:f})}catch{return p}}function tle(t,r,e={}){const{window:n=Ei,...i}=e;let o;const a=ud(()=>n&&"MutationObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=et(()=>Ao(t),c=>{s(),a.value&&n&&c&&(o=new MutationObserver(r),o.observe(c,i))},{immediate:!0}),g=()=>o?.takeRecords(),u=()=>{s(),l()};return na(u),{isSupported:a,stop:u,takeRecords:g}}function rle(t={}){const{valueDark:r="dark",valueLight:e="",window:n=Ei}=t,i=Vm({...t,onChanged:(s,l)=>{var g;t.onChanged?(g=t.onChanged)==null||g.call(t,s==="dark",l,s):l(s)},modes:{dark:r,light:e}}),o=J(()=>i.system?i.system.value:k6({window:n}).value?"dark":"light");return J({get(){return i.value==="dark"},set(s){const l=s?"dark":"light";o.value===l?i.value="auto":i.value=l}})}function nle(t,r,e={}){const{window:n=Ei,...i}=e;let o;const a=ud(()=>n&&"ResizeObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=J(()=>Array.isArray(t)?t.map(c=>Ao(c)):[Ao(t)]),g=et(l,c=>{if(s(),a.value&&n){o=new ResizeObserver(r);for(const d of c)d&&o.observe(d,i)}},{immediate:!0,flush:"post",deep:!0}),u=()=>{s(),g()};return na(u),{isSupported:a,stop:u}}function ile(t,r={}){const{reset:e=!0,windowResize:n=!0,windowScroll:i=!0,immediate:o=!0}=r,a=H(0),s=H(0),l=H(0),g=H(0),u=H(0),c=H(0),d=H(0),h=H(0);function A(){const f=Ao(t);if(!f){e&&(a.value=0,s.value=0,l.value=0,g.value=0,u.value=0,c.value=0,d.value=0,h.value=0);return}const C=f.getBoundingClientRect();a.value=C.height,s.value=C.bottom,l.value=C.left,g.value=C.right,u.value=C.top,c.value=C.width,d.value=C.x,h.value=C.y}return nle(t,A),et(()=>Ao(t),f=>!f&&A()),tle(t,A,{attributeFilter:["style","class"]}),i&&on("scroll",A,{capture:!0,passive:!0}),n&&on("resize",A,{passive:!0}),ef(()=>{o&&A()}),{height:a,bottom:s,left:l,right:g,top:u,width:c,x:d,y:h,update:A}}function ole(t={}){const{initialValue:r=""}=t,e=ud(()=>typeof window<"u"&&"EyeDropper"in window),n=H(r);async function i(o){if(!e.value)return;const s=await new window.EyeDropper().open(o);return n.value=s.sRGBHex,s}return{isSupported:e,sRGBHex:n,open:i}}function ale(t,r,e={}){const{window:n=Ei}=e;return O6(t,r,n?.localStorage,e)}const sle={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function lle(t={}){const{reactive:r=!1,target:e=Ei,aliasMap:n=sle,passive:i=!0,onEventFired:o=ma}=t,a=Qs(new Set),s={toJSON(){return{}},current:a},l=r?Qs(s):s,g=new Set,u=new Set;function c(f,C){f in l&&(r?l[f]=C:l[f].value=C)}function d(){a.clear();for(const f of u)c(f,!1)}function h(f,C){var I,v;const p=(I=f.key)==null?void 0:I.toLowerCase(),b=[(v=f.code)==null?void 0:v.toLowerCase(),p].filter(Boolean);p&&(C?a.add(p):a.delete(p));for(const _ of b)u.add(_),c(_,C);p==="meta"&&!C?(g.forEach(_=>{a.delete(_),c(_,!1)}),g.clear()):typeof f.getModifierState=="function"&&f.getModifierState("Meta")&&C&&[...a,...b].forEach(_=>g.add(_))}on(e,"keydown",f=>(h(f,!0),o(f)),{passive:i}),on(e,"keyup",f=>(h(f,!1),o(f)),{passive:i}),on("blur",d,{passive:!0}),on("focus",d,{passive:!0});const A=new Proxy(l,{get(f,C,I){if(typeof C!="string")return Reflect.get(f,C,I);if(C=C.toLowerCase(),C in n&&(C=n[C]),!(C in l))if(/[+_-]/.test(C)){const p=C.split(/[+_-]/g).map(y=>y.trim());l[C]=J(()=>p.every(y=>_r(A[y])))}else l[C]=H(!1);const v=Reflect.get(f,C,I);return r?_r(v):v}});return A}function gle(t={}){const{controls:r=!1,interval:e="requestAnimationFrame"}=t,n=H(new Date),i=()=>n.value=new Date,o=e==="requestAnimationFrame"?Yse(i,{immediate:!0}):Wse(i,e,{immediate:!0});return r?{now:n,...o}:n}let ule=0;function cle(t,r={}){const e=H(!1),{document:n=Use,immediate:i=!0,manual:o=!1,id:a=`vueuse_styletag_${++ule}`}=r,s=H(t);let l=()=>{};const g=()=>{if(!n)return;const c=n.getElementById(a)||n.createElement("style");c.isConnected||(c.id=a,r.media&&(c.media=r.media),n.head.appendChild(c)),!e.value&&(l=et(s,d=>{c.textContent=d},{immediate:!0}),e.value=!0)},u=()=>{!n||!e.value||(l(),n.head.removeChild(n.getElementById(a)),e.value=!1)};return i&&!o&&ef(g),o||na(u),{id:a,css:s,unload:u,load:g,isLoaded:Va(e)}}const dle=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],hle={justNow:"just now",past:t=>t.match(/\d/)?`${t} ago`:t,future:t=>t.match(/\d/)?`in ${t}`:t,month:(t,r)=>t===1?r?"last month":"next month":`${t} month${t>1?"s":""}`,year:(t,r)=>t===1?r?"last year":"next year":`${t} year${t>1?"s":""}`,day:(t,r)=>t===1?r?"yesterday":"tomorrow":`${t} day${t>1?"s":""}`,week:(t,r)=>t===1?r?"last week":"next week":`${t} week${t>1?"s":""}`,hour:t=>`${t} hour${t>1?"s":""}`,minute:t=>`${t} minute${t>1?"s":""}`,second:t=>`${t} second${t>1?"s":""}`,invalid:""};function Ale(t){return t.toISOString().slice(0,10)}function fle(t,r={}){const{controls:e=!1,updateInterval:n=3e4}=r,{now:i,...o}=gle({interval:n,controls:!0}),a=J(()=>Cle(new Date(_r(t)),r,_r(i)));return e?{timeAgo:a,...o}:a}function Cle(t,r={},e=Date.now()){var n;const{max:i,messages:o=hle,fullDateFormatter:a=Ale,units:s=dle,showSecond:l=!1,rounding:g="round"}=r,u=typeof g=="number"?C=>+C.toFixed(g):Math[g],c=+e-+t,d=Math.abs(c);function h(C,I){return u(Math.abs(C)/I.value)}function A(C,I){const v=h(C,I),p=C>0,y=f(I.name,v,p);return f(p?"past":"future",y,p)}function f(C,I,v){const p=o[C];return typeof p=="function"?p(I,v):p.replace("{0}",I.toString())}if(d<6e4&&!l)return o.justNow;if(typeof i=="number"&&d>i)return a(new Date(t));if(typeof i=="string"){const C=(n=s.find(I=>I.name===i))==null?void 0:n.max;if(C&&d>C)return a(new Date(t))}for(const[C,I]of s.entries()){if(h(c,I)<=0&&s[C-1])return A(c,s[C-1]);if(d<I.max)return A(c,I)}return o.invalid}function Gm(t,r,e,n={}){var i,o,a;const{clone:s=!1,passive:l=!1,eventName:g,deep:u=!1,defaultValue:c,shouldEmit:d}=n,h=ul(),A=e||h?.emit||((i=h?.$emit)==null?void 0:i.bind(h))||((a=(o=h?.proxy)==null?void 0:o.$emit)==null?void 0:a.bind(h?.proxy));let f=g;r||(r="modelValue"),f=f||`update:${r.toString()}`;const C=p=>s?typeof s=="function"?s(p):Xse(p):p,I=()=>xse(t[r])?C(t[r]):c,v=p=>{d?d(p)&&A(f,p):A(f,p)};if(l){const p=I(),y=H(p);let b=!1;return et(()=>t[r],_=>{b||(b=!0,y.value=C(_),mn(()=>b=!1))}),et(y,_=>{!b&&(_!==t[r]||u)&&v(_)},{deep:u}),y}else return J({get(){return I()},set(p){v(p)}})}function Ile(t={}){const{window:r=Ei,initialWidth:e=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0}=t,a=H(e),s=H(n),l=()=>{r&&(o?(a.value=r.innerWidth,s.value=r.innerHeight):(a.value=r.document.documentElement.clientWidth,s.value=r.document.documentElement.clientHeight))};if(l(),ef(l),on("resize",l,{passive:!0}),i){const g=S6("(orientation: portrait)");et(g,()=>l())}return{width:a,height:s}}function x6(){return{isFirstVisit:!0,route:"/",graphSettings:{node_modules:!1,virtual:!1,lib:!1},tabSettings:{hiddenTabCategories:[],hiddenTabs:[],pinnedTabs:[]},expandSidebar:!1,scrollableSidebar:!0,splitScreen:{enabled:!1,view:"overview",size:[50,50]},scale:1,interactionCloseOnOutsideClick:!1,showPanel:!0,minimizePanelInteractive:5e3}}const lr=ale("__VUE_DEVTOOLS_CLIENT_STATE__",x6(),{mergeDefaults:!0});function vle(){lr.value=x6()}et(()=>lr.value.splitScreen.enabled,(t,r)=>{r&&!t&&(lr.value.splitScreen.size=[50,50])});const ss=[];function _o(t){ss.push(t),na(()=>{ss.splice(ss.indexOf(t),1)});const{connected:r,clientConnected:e}=Xi(),n=J(()=>e.value&&r.value);if(n.value){ss.forEach(i=>i());return}return _6(n,i=>{i&&ss.forEach(o=>o())}),()=>{ss.splice(ss.indexOf(t),1)}}function ple(){ss.forEach(t=>t())}function tf(){const t=Xi(),r=H(t.tabs.value||[]),e=J(()=>{const l=t.vitePluginDetected.value,g=[...Ose(l,kse.value?.moduleDetectives)];return r.value.forEach(u=>{const c=g.find(d=>d[0]===u.category);if(c){if(c[1].some(d=>d.name===u.name)||(!l||zS)&&m6.includes(u.name))return;c[1].push({...u})}}),g}),n=J(()=>e.value.reduce((l,[g,u])=>(u.forEach(c=>{l.push(c)}),l),[])),i=J(()=>{const{hiddenTabCategories:l,hiddenTabs:g,pinnedTabs:u}=lr.value.tabSettings,c=l.includes("pinned"),d=e.value.reduce((h,[A,f])=>{const C=[{hidden:!1,name:A},[]],I=l.includes(A);return f.forEach(v=>{const p=g.includes(v.name);if(u.includes(v.name))h[0][1].push({...v,hidden:p||c});else{const y=p||I;C[1].push({...v,hidden:y})}}),C[0].hidden=C[1].every(v=>v.hidden),h.push(C),h},[[{name:"pinned",hidden:!1},[]]]);return d[0][0].hidden=d[0][1].every(h=>h.hidden),d[0][1].sort((h,A)=>u.indexOf(h.name)-u.indexOf(A.name)),d}),o=J(()=>i.value.reduce((l,[g,u])=>{if(g.hidden)return l;const c=u.filter(d=>!d.hidden);return c.length&&l.push([g,c]),l},[])),a=J(()=>o.value.reduce((l,[g,u])=>(u.forEach(c=>{l.push(c)}),l),[])),s=yn();return _o(()=>{s.on.customTabsUpdated(l=>{r.value=l})}),{categorizedTabs:i,flattenedTabs:n,enabledTabs:o,enabledFlattenTabs:a}}function jP(t,r){return J(()=>{const e=[],n=lr.value.tabSettings.pinnedTabs;Ww(r).reduce((a,[{name:s,hidden:l},g])=>(g.forEach(u=>{if(Ww(t).some(c=>c.name===u.name)){const c=n.includes(u.name)?"pinned":s||"app";a.push({tab:u,category:{name:c,hidden:l}})}}),a),[]).forEach(({tab:a,category:s})=>{const l=e.find(([{name:g}])=>g===s.name);l?l[1].push(a):e.push([s,[a]])});const o=e.find(([{name:a}])=>a==="pinned");return o&&o[1].sort((a,s)=>n.indexOf(a.name)-n.indexOf(s.name)),e})}function mle(t){const r=new Map;return t.forEach(e=>r.set(e.id,e)),Array.from(r.values())}const m_=Qs(new Map);function yle(){const{enabledFlattenTabs:t}=tf(),r=gd(),e=Xi(),n=H(e.commands.value||[]);Mn(()=>{n.value=e.commands.value||[]});const i=yn();_o(()=>{i.on.customCommandsUpdated(s=>{n.value=s})});const o=[{id:"fixed:settings",title:"Settings",icon:"carbon-settings-adjust",action:()=>{r.push("/settings")}},{id:"fixed:docs",title:"Vue Documentations",icon:"i-vscode-icons-file-type-vue",action:()=>$le()}],a=J(()=>t.value.map(s=>({id:`tab:${s.name}`,title:s.title||s.name,icon:s.icon,action:()=>{"onClick"in s&&s.onClick?s.onClick():r.push("path"in s&&s.path?s.path:`/custom-tab-view/${s.name}`)}})));return J(()=>mle([...o,...a.value,...ble(n.value),...Array.from(m_.values()).flatMap(s=>Ww(s))]))}function VP(t){t?.type==="url"&&window.open(t.src,"_blank")}function ble(t){return t.map(r=>({id:`${r.id}`,title:r.title,icon:r.icon,description:r.description,order:r.order,action:()=>{if(r.children)return r.children.map(e=>({id:e.id,title:e.title,icon:e.icon,description:e.description,order:e.order,action:()=>{VP(e.action)}})).sort((e,n)=>(n.order??0)-(e.order??0));VP(r.action)}})).sort((r,e)=>(e.order??0)-(r.order??0))}function GP(t){const r=vq();m_.set(r,t),ad(()=>{m_.delete(r)})}let Yb;async function $le(){return Yb||(Yb=(await $n(()=>import("./vue-apis-Nh9IahXf.js"),__vite__mapDeps([]),import.meta.url).then(r=>r.default)).map(r=>({...r,icon:"carbon-api-1",action:()=>{window.open(r.url,"_blank")}}))),Yb}const wle={flex:"~ col","max-h-120":"","min-h-60":"",h:"60%","w-xl":"","of-hidden":"",border:"1 base","rounded-md":"","text-3.75":""},_le={border:"b base","flex-none":""},Ele={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},Sle=["id","onClick","onMouseover"],Tle={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},Ole={"ws-nowrap":""},kle={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},xle={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},Ple=w("span",{op50:""},"No results for",-1),Rle={"text-primary":""},Dle={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},Nle={"text-xs":"",flex:"~ items-center gap2"},Mle={px1:""},Ble={px1:""},Fle=w("span",{op75:""},"to navigate",-1),Lle={"text-xs":"",flex:"~ items-center gap2"},zle=w("button",{px1:""}," Esc ",-1),jle={op75:""},Vle={"text-xs":"",flex:"~ items-center gap2"},Gle={px1:""},Wle=w("span",{op75:""},"to select",-1),Hle=we({__name:"CommandPalette",setup(t){const r=H(!1),e=H(""),n=yle(),i=H(),o=J(()=>i.value||n.value),a=J(()=>new Hg(o.value,{keys:["id","title"],distance:50})),s=J(()=>e.value?a.value.search(e.value).map(d=>d.item):o.value||[]),l=H(0);et(e,()=>{l.value=0,u()});function g(d){l.value=(l.value+d+s.value.length)%s.value.length,u()}function u(){document.getElementById(s.value[l.value]?.id)?.scrollIntoView({block:"center"})}async function c(d){const h=await d.action();h?(i.value=h,e.value=""):(i.value=void 0,e.value="",r.value=!1)}return on("keydown",d=>{if((d.altKey||d.metaKey)&&d.key==="k"){d.preventDefault(),i.value=void 0,e.value="",r.value=!r.value;return}if(r.value)switch(d.key){case"ArrowDown":case"ArrowUp":d.preventDefault(),g(d.key==="ArrowDown"?1:-1);break;case"Enter":{const h=s.value[l.value];h&&(d.preventDefault(),c(h));break}case"Escape":{d.preventDefault(),i.value?(i.value=void 0,e.value=""):r.value=!1;break}}}),(d,h)=>{const A=qA;return m(r)?(T(),re(m(S2),{key:0,dim:"",class:"backdrop-blur-2xl!"},{default:V(()=>[w("div",wle,[w("header",_le,[z(m(Da),{modelValue:m(e),"onUpdate:modelValue":h[0]||(h[0]=f=>ze(e)?e.value=f:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),w("div",Ele,[(T(!0),L(be,null,pt(m(s),(f,C)=>(T(),L("button",{id:f.id,key:f.id,onClick:I=>c(f),onMouseover:I=>l.value=C},[w("div",{flex:"~ gap-2 items-center justify-between",rounded:"",px3:"",py2:"",class:Ee(m(l)===C?"op100 bg-primary/10 text-primary saturate-100 bg-active":"op80")},[z(A,{icon:f.icon,title:f.title,"flex-none":"","text-xl":""},null,8,["icon","title"]),w("span",Tle,[w("span",Ole,_e(f.title),1),w("span",kle,_e(f.description),1)]),m(l)===C?(T(),re(m(St),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):$e("",!0)],2)],40,Sle))),128)),m(s).length?$e("",!0):(T(),L("div",xle,[z(m(St),{icon:"carbon-search",op50:""}),w("div",null,[Ple,w("strong",Rle,' "'+_e(m(e))+'" ',1)])]))]),w("footer",Dle,[w("div",Nle,[w("button",Mle,[z(m(St),{icon:"carbon-arrow-down"})]),w("button",Ble,[z(m(St),{icon:"carbon-arrow-up"})]),Fle]),w("div",Lle,[zle,w("span",jle,"to "+_e(m(i)?"go back":"close"),1)]),w("div",Vle,[w("button",Gle,[z(m(St),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),Wle])])])]),_:1})):$e("",!0)}}}),rf=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},Ule={},Zle={class:"panel-grids-center"};function Kle(t,r){return T(),L("div",Zle,[Qe(t.$slots,"default")])}const Eo=rf(Ule,[["render",Kle]]),Yle={flex:"~ items-center gap-3"},Xle={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},Qle={"translate-y-0.5px":""},qle={key:0,hidden:"","lg:block":""},P6=we({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"}},setup(t){const r=t,e=Nm(),n=J(()=>"path"in r.tab?`${r.tab.path.startsWith("/")?"":"/"}${r.tab.path}`:`/custom-tab-view/${r.tab.name}`),i=J(()=>"badge"in r.tab&&r.tab.badge?.()),o=J(()=>e.path.startsWith(n.value));function a(){"onClick"in r.tab&&r.tab.onClick?r.tab.onClick():r.target==="side"&&(lr.value.splitScreen.view=r.tab.name)}return(s,l)=>{const g=qA;return T(),re(m(zae),{disabled:!s.minimized,placement:"right",class:Ee({"w-full":!s.minimized})},{popper:V(()=>[w("div",null,_e(s.tab.title),1),"extraTabVNode"in s.tab&&s.tab.extraTabVNode?(T(),L("div",qle,[(T(),re(qs(s.tab.extraTabVNode)))])):$e("",!0)]),default:V(()=>[(T(),re(qs(s.target==="main"?m(S8):"button"),{to:m(n),flex:`~ items-center ${s.minimized?"justify-center":"justify-between"}`,hover:"bg-active op-100",w:s.minimized?"10":"full",rounded:s.minimized?"xl":"",p:s.minimized?"1":"x3","text-secondary":"",relative:"",block:"","h-10":"","select-none":"",op65:"","exact-active-class":"!text-primary-600 bg-active op-100!",onClick:a},{default:V(()=>[w("div",Yle,[z(g,{"text-xl":"",icon:s.tab.icon,title:"Settings","show-title":!1},null,8,["icon"]),s.minimized?$e("",!0):(T(),L("span",Xle,_e(s.tab.title),1))]),m(i)?(T(),L("div",{key:0,"h-4":"","w-4":"","rounded-full":"","text-9px":"","text-white":"",flex:"~ items-center justify-center",class:Ee([m(o)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":s.minimized}])},[w("span",Qle,_e(m(_r)(m(i))),1)],2)):$e("",!0)]),_:1},8,["to","flex","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),Jle={flex:"~ col gap-1","max-w-80":"",py1:""},ege={key:0,"h-1px":"",border:"b base"},tge={flex:"~ wrap",px1:""},R6=we({__name:"TabsGrid",props:{categories:{},target:{}},setup(t){return(r,e)=>{const n=P6;return T(),L("div",Jle,[(T(!0),L(be,null,pt(r.categories,([i,o],a)=>(T(),L(be,{key:i},[o.length?(T(),L(be,{key:0},[a?(T(),L("div",ege)):$e("",!0),w("div",tge,[(T(!0),L(be,null,pt(o,s=>(T(),re(n,{key:s.name,target:r.target,tab:s},null,8,["target","tab"]))),128))])],64)):$e("",!0)],64))),128))])}}}),rge={"h-full":"","h-screen":"","of-hidden":""},nge={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},ige={flex:"","cursor-pointer":"","items-center":"",gap2:""},oge=w("div",{"i-carbon-chevron-down":"","text-sm":"",op50:""},null,-1),age={capitalize:""},sge=w("div",{"flex-auto":""},null,-1),lge=w("div",{"i-carbon:side-panel-open":""},null,-1),gge=[lge],uge={key:1,"of-auto":"",style:{height:"calc(100% - 50px)"}},cge=w("span",{"text-lg":"",op50:""}," Select a tab to start ",-1),dge=we({__name:"SplitScreen",setup(t){function r(){lr.value.splitScreen.enabled=!1}const e=J(()=>lr.value.splitScreen),{enabledTabs:n,flattenedTabs:i}=tf(),o=gd(),a=Nm(),s=aa();function l(c){const d=a.path.startsWith("/")?a.path.slice(1):a.path;return c&&"path"in c&&d===c.path}const g=J(()=>{const c=i.value.find(d=>d.name===e.value.view);return l(c)?void 0:c});et(()=>g.value,c=>{if(!c)return;const d=o.getRoutes(),h=c&&"path"in c?d.find(C=>C.path===(c.path.startsWith("/")?c.path:`/${c.path}`)):d.find(C=>C.name==="custom-tab"),A=a.path.startsWith("/")?a.path.slice(1):a.path;if(h?.path===A||a.params?.name===c.name){s.value=void 0;return}const f=h?.components?.default;typeof f=="function"?s.value=DJ(f):s.value=f},{immediate:!0});const u=H(!1);return(c,d)=>{const h=qA,A=R6,f=Eo;return T(),L("div",rge,[m(s)&&m(g)?(T(),L("div",nge,[z(m(kc),{placement:"bottom-start",distance:12,skidding:5,shown:m(u),trigger:"click"},{popper:V(()=>[z(A,{categories:m(n),target:"side"},null,8,["categories"])]),default:V(()=>[w("div",ige,[oge,z(h,{"text-xl":"",icon:m(g)?.icon,title:"Settings","show-title":!1},null,8,["icon"]),w("span",age,_e(m(g)?.name),1)])]),_:1},8,["shown"]),sge,Sr((T(),L("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:r},gge)),[[m($i),"Close split screen"]])])):$e("",!0),m(s)&&m(g)?(T(),L("div",uge,[(T(),re(qs(m(s)),{key:`tab-${m(g).name}`}))])):(T(),re(f,{key:2},{default:V(()=>[cge,z(m(hv),{px4:"",py2:"","bg-base":""},{default:V(()=>[z(A,{categories:m(n),target:"side"},null,8,["categories"])]),_:1}),z(m(at),{type:"warning",outlined:"",mt2:"",onClick:r},{default:V(()=>[ke(" Close Split Screen ")]),_:1})]),_:1}))])}}});function Wm(){const t=v2(),r=H("");return yc&&Je.chrome.storage.local.get(Eb).then(e=>{r.value=e[Eb]??"overlay"}),{viewMode:r,toggle(e){r.value=e,Je.chrome.storage.local.set({[Eb]:e}),yc&&t.value.emit("toggle-view-mode",e)}}}const hge={px3:"",py2:"",border:"b base",flex:"~ gap-2"},Age=w("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1),fge=w("div",{"i-carbon-settings-adjust":""},null,-1),Cge={px3:"",py2:"",border:"b base",flex:"~ gap-2"},Ige=w("div",{"i-carbon-split-screen":""},null,-1),vge={px3:"",py2:"",flex:"~ gap2"},pge=we({__name:"DockingPanel",setup(t){const r=Tr("viewMode",H("overlay")),e=J(()=>r.value==="panel"&&yc),{toggle:n}=Wm(),i=yn(),o=gd(),a=J({get:()=>lr.value.expandSidebar,set:h=>lr.value.expandSidebar=h}),s=J({get:()=>lr.value.splitScreen.enabled,set:h=>lr.value.splitScreen.enabled=h});function l(){location.reload()}const g=Xi(),u=J(()=>g.appRecords.value.map(h=>({label:h.name+(h.version?` (${h.version})`:""),value:h.id}))),c=H(g.activeAppRecordId.value),d=J(()=>u.value.find(h=>h.value===c.value)?.label??"");return et(c,h=>{i.toggleApp(`${h}`).then(()=>{o.push("/overview").then(()=>{ple()})})}),(h,A)=>(T(),L("div",null,[w("div",hge,[z(m(g6),null,{default:V(({isDark:f,toggle:C})=>[z(m(at),{outlined:"",type:"primary",onClick:C},{default:V(()=>[Age,ke(" "+_e(f?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),z(m(at),{outlined:"",type:"primary",onClick:A[0]||(A[0]=f=>a.value=!m(a))},{default:V(()=>[z(m(St),{icon:m(a)?"i-carbon-side-panel-close":"i-carbon-side-panel-open"},null,8,["icon"]),ke(" "+_e(m(a)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),z(m(at),{to:"/settings",outlined:"",type:"primary"},{default:V(()=>[fge,ke(" Settings ")]),_:1})]),w("div",Cge,[z(m(at),{outlined:"",type:"primary",onClick:A[1]||(A[1]=f=>s.value=!m(s))},{default:V(()=>[Ige,ke(" "+_e(m(s)?"Close Split Screen":"Split Screen"),1)]),_:1})]),w("div",vge,[m(u).length>1?(T(),re(m(fp),{key:0,modelValue:m(c),"onUpdate:modelValue":A[2]||(A[2]=f=>ze(c)?c.value=f:null),options:m(u),placeholder:m(d)||"Toggle App","button-props":{outlined:!0,type:"primary"}},null,8,["modelValue","options","placeholder"])):$e("",!0),z(m(at),{outlined:"",type:"primary",onClick:l},{default:V(()=>[ke(" Refresh Page ")]),_:1}),m(e)?(T(),re(m(at),{key:1,outlined:"",type:"primary",onClick:A[3]||(A[3]=f=>m(n)("overlay"))},{default:V(()=>[ke(" Switch to Overlay Mode ")]),_:1})):$e("",!0)])]))}}),mge={border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},yge={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},bge=w("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1),$ge=w("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1),wge=w("div",{"flex-auto":""},null,-1),_ge=w("div",{"i-carbon-overflow-menu-vertical":""},null,-1),Ege={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},Sge=w("div",{"flex-auto":""},null,-1),Tge=["flex"],Oge={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},kge={"translate-y-0.5px":""},xge=45,Pge=we({__name:"SideNav",setup(t){const r=H(!1),e=H(!1),n=H(),i=H(),o=H(),a=J(()=>lr.value.expandSidebar),s=J(()=>lr.value.scrollableSidebar),{enabledTabs:l,flattenedTabs:g}=tf(),{height:u}=Ile(),c=J(()=>{const I=u.value-130;return Math.max(0,Math.floor(I/xge))}),d=J(()=>g.value.slice(0,c.value)),h=J(()=>g.value.slice(c.value)),A=jP(d,l),f=jP(h,l),C=J(()=>s.value||a.value?l.value:A.value);return Zse(n,I=>{i.value&&I.composedPath().includes(i.value)||o.value&&I.composedPath().includes(o.value)||(r.value=!1,e.value=!1)},{detectIframe:!0}),(I,v)=>{const p=pge,y=P6,b=qA,_=R6;return T(),L("div",mge,[w("div",yge,[z(m(kc),{placement:"left-start",distance:6,skidding:5,trigger:"click",shown:m(r),class:"w-full"},{popper:V(()=>[z(p)]),default:V(()=>[w("button",{ref_key:"buttonDocking",ref:i,flex:"~ items-center justify-center gap-2",hover:"bg-active","text-secondary":"",relative:"","h-10":"","select-none":"",p2:"","exact-active-class":"!text-primary bg-active",class:Ee([m(a)?"w-full rounded pl2.5":"w-10 rounded-xl"])},[bge,m(a)?(T(),L(be,{key:0},[$ge,wge,_ge],64)):$e("",!0)],2)]),_:1},8,["shown"])]),w("div",{flex:"~ auto col gap-0.5 items-center","w-full":"",p1:"",class:Ee(["no-scrollbar",m(a)?"":"of-x-hidden of-y-auto"])},[(T(!0),L(be,null,pt(m(C),([P,k],E)=>(T(),L(be,{key:P},[E?(T(),L("div",Ege)):$e("",!0),(T(!0),L(be,null,pt(k.filter(O=>!O.hidden),O=>(T(),re(y,{key:O.name,tab:O,minimized:!m(a)},null,8,["tab","minimized"]))),128))],64))),128)),Sge],2),w("div",{flex:`~ items-center gap-1 ${m(a)?"":"none col"}`,border:"t base",sticky:"","bottom-0":"","w-full":"",p1:"","bg-base":"",class:"$ui-z-max-override"},[m(h).length&&!m(s)&&!m(a)?(T(),re(m(kc),{key:0,placement:"left-end",distance:6},{popper:V(()=>[z(_,{categories:m(f),"max-w-80":"",target:"main"},null,8,["categories"])]),default:V(()=>[w("button",{ref_key:"buttonMoreTabs",ref:o,flex:"~",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-10":"","select-none":"","items-center":"","justify-center":"","rounded-xl":"",p1:"","exact-active-class":"!text-primary bg-active"},[z(b,{"text-xl":"",icon:"i-carbon-overflow-menu-vertical",title:"More tabs","show-title":!1}),w("div",Oge,[w("span",kge,_e(m(h).length),1)])],512)]),_:1})):$e("",!0),z(y,{minimized:!m(a),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,Tge)])}}}),Rge={},Dge={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nge=fee('<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 198" width="128" height="128"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>',2),Mge=[Nge];function Bge(t,r){return T(),L("svg",Dge,Mge)}const P2=rf(Rge,[["render",Bge]]),Fge={class:"fixed inset-0 h-screen w-screen flex flex-col items-center justify-center $ui-bg-base"},Lge=w("p",{class:"p3 text-sm font-bold"},[ke(" DevTools is currently injected into user application in "),w("em",{class:"text-primary-600"},"Overlay"),ke(" view mode. ")],-1),zge=we({__name:"ViewModeSwitch",setup(t){Vm();const{toggle:r}=Wm();return(e,n)=>{const i=P2;return T(),L("div",Fge,[z(i,{"h-18":""}),Lge,w("p",null,[z(m(at),{onClick:n[0]||(n[0]=En(o=>m(r)("panel"),["stop"]))},{default:V(()=>[ke(" Switch to Panel Mode ")]),_:1})])])}}}),jge="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20id='svg2'%20version='1.1'%20inkscape:version='0.91%20r13725'%20xml:space='preserve'%20width='375'%20height='375'%20viewBox='0%200%20375%20375'%20sodipodi:docname='vue-logo.svg'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata8'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs6'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1017'%20id='namedview4'%20showgrid='false'%20inkscape:zoom='0.62933333'%20inkscape:cx='187.5'%20inkscape:cy='187.5'%20inkscape:window-x='0'%20inkscape:window-y='30'%20inkscape:window-maximized='1'%20inkscape:current-layer='g10'%20/%3e%3cg%20id='g10'%20inkscape:groupmode='layer'%20inkscape:label='logo'%20transform='matrix(1.25,0,0,-1.25,0,375)'%3e%3cg%20id='g12'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-120.829,0%20-22.669,-170.017%2075.491,0%200,0%20Z'%20style='fill:%2341b883;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path14'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3cg%20id='g16'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-81.565,0%20-22.669,-102.01%2036.227,0%200,0%20Z'%20style='fill:%2334495e;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path18'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Vge={class:"h-screen w-screen $ui-fcc flex-col"},Gge={class:"outer"},Wge={class:"inner"},Hge=["src"],Uge=we({__name:"AppConnecting",setup(t){return(r,e)=>(T(),L("div",Vge,[w("div",Gge,[w("div",Wge,[w("img",{src:m(jge),class:"max-w-18",alt:"Vue logo"},null,8,Hge)])]),Qe(r.$slots,"default",{},void 0,!0)]))}}),D6=rf(Uge,[["__scopeId","data-v-204233a8"]]),cd={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,r)=>(t[r.id]=r)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,r){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=r},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,r){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===r?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,r),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=r,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[r])},onSplitterDblClick(t,r){let e=0;this.panes=this.panes.map((n,i)=>(n.size=i===r?n.max:n.min,i!==r&&(e+=n.min),n)),this.panes[r].size-=e,this.$emit("pane-maximize",this.panes[r]),this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},onPaneClick(t,r){this.$emit("pane-click",this.indexedPanes[r])},getCurrentMouseDrag(t){const r=this.container.getBoundingClientRect(),{clientX:e,clientY:n}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:e-r.left,y:n-r.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const r=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=r-t),t*100/r},calculatePanesSize(t){const r=this.touch.activeSplitter;let e={prevPanesSize:this.sumPrevPanesSize(r),nextPanesSize:this.sumNextPanesSize(r),prevReachedMinPanes:0,nextReachedMinPanes:0};const n=0+(this.pushOtherPanes?0:e.prevPanesSize),i=100-(this.pushOtherPanes?0:e.nextPanesSize),o=Math.max(Math.min(this.getCurrentDragPercentage(t),i),n);let a=[r,r+1],s=this.panes[a[0]]||null,l=this.panes[a[1]]||null;const g=s.max<100&&o>=s.max+e.prevPanesSize,u=l.max<100&&o<=100-(l.max+this.sumNextPanesSize(r+1));if(g||u){g?(s.size=s.max,l.size=Math.max(100-s.max-e.prevPanesSize-e.nextPanesSize,0)):(s.size=Math.max(100-l.max-e.prevPanesSize-this.sumNextPanesSize(r+1),0),l.size=l.max);return}if(this.pushOtherPanes){const c=this.doPushOtherPanes(e,o);if(!c)return;({sums:e,panesToResize:a}=c),s=this.panes[a[0]]||null,l=this.panes[a[1]]||null}s!==null&&(s.size=Math.min(Math.max(o-e.prevPanesSize-e.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-o-e.nextPanesSize-e.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(t,r){const e=this.touch.activeSplitter,n=[e,e+1];return r<t.prevPanesSize+this.panes[n[0]].min&&(n[0]=this.findPrevExpandedPane(e).index,t.prevReachedMinPanes=0,n[0]<e&&this.panes.forEach((i,o)=>{o>n[0]&&o<=e&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),t.prevPanesSize=this.sumPrevPanesSize(n[0]),n[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((i,o)=>{o>0&&o<=e&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),this.panes[n[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):r>100-t.nextPanesSize-this.panes[n[1]].min&&(n[1]=this.findNextExpandedPane(e).index,t.nextReachedMinPanes=0,n[1]>e+1&&this.panes.forEach((i,o)=>{o>e&&o<n[1]&&(i.size=i.min,t.nextReachedMinPanes+=i.min)}),t.nextPanesSize=this.sumNextPanesSize(n[1]-1),n[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((i,o)=>{o<this.panesCount-1&&o>=e+1&&(i.size=i.min,t.nextReachedMinPanes+=i.min)}),this.panes[n[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:n}},sumPrevPanesSize(t){return this.panes.reduce((r,e,n)=>r+(n<t?e.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((r,e,n)=>r+(n>t+1?e.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(r=>r.index<t&&r.size>r.min)||{}},findNextExpandedPane(t){return this.panes.find(r=>r.index>t+1&&r.size>r.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const r=t.classList.contains("splitpanes__pane"),e=t.classList.contains("splitpanes__splitter");!r&&!e&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(t,r,e=!1){const n=t-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),e||(i.onmousedown=o=>this.onMouseDown(o,n),typeof window<"u"&&"ontouchstart"in window&&(i.ontouchstart=o=>this.onMouseDown(o,n)),i.onclick=o=>this.onSplitterClick(o,n+1)),this.dblClickSplitter&&(i.ondblclick=o=>this.onSplitterDblClick(o,n+1)),r.parentNode.insertBefore(i,r)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(e=>{e.className.includes("splitpanes__splitter")&&this.removeSplitter(e)});let r=0;t.forEach(e=>{e.className.includes("splitpanes__pane")&&(!r&&this.firstSplitter?this.addSplitter(r,e,!0):r&&this.addSplitter(r,e),r++)})},requestUpdate({target:t,...r}){const e=this.indexedPanes[t._.uid];Object.entries(r).forEach(([n,i])=>e[n]=i)},onPaneAdd(t){let r=-1;Array.from(t.$el.parentNode.children).some(i=>(i.className.includes("splitpanes__pane")&&r++,i===t.$el));const e=parseFloat(t.minSize),n=parseFloat(t.maxSize);this.panes.splice(r,0,{id:t._.uid,index:r,min:isNaN(e)?0:e,max:isNaN(n)?100:n,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((i,o)=>i.index=o),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[r]}),this.$emit("pane-add",{index:r,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},onPaneRemove(t){const r=this.panes.findIndex(n=>n.id===t._.uid),e=this.panes.splice(r,1)[0];this.panes.forEach((n,i)=>n.index=i),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...e,index:r}}),this.$emit("pane-remove",{removed:e,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(r=>r.givenSize!==null||r.min||r.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},equalize(){const t=100/this.panesCount;let r=0;const e=[],n=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(t,i.max),i.min),r-=i.size,i.size>=i.max&&e.push(i.id),i.size<=i.min&&n.push(i.id)}),r>.1&&this.readjustSizes(r,e,n)},initialPanesSizing(){let t=100;const r=[],e=[];let n=0;this.panes.forEach(o=>{t-=o.size,o.size!==null&&n++,o.size>=o.max&&r.push(o.id),o.size<=o.min&&e.push(o.id)});let i=100;t>.1&&(this.panes.forEach(o=>{o.size===null&&(o.size=Math.max(Math.min(t/(this.panesCount-n),o.max),o.min)),i-=o.size}),i>.1&&this.readjustSizes(t,r,e))},equalizeAfterAddOrRemove({addedPane:t,removedPane:r}={}){let e=100/this.panesCount,n=0;const i=[],o=[];t&&t.givenSize!==null&&(e=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&o.push(a.id)}),!(Math.abs(n)<.1)&&(this.panes.forEach(a=>{t&&t.givenSize!==null&&t.id===a.id||(a.size=Math.max(Math.min(e,a.max),a.min)),n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&o.push(a.id)}),n>.1&&this.readjustSizes(n,i,o))},readjustSizes(t,r,e){let n;t>0?n=t/(this.panesCount-r.length):n=t/(this.panesCount-e.length),this.panes.forEach((i,o)=>{if(t>0&&!r.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),s=a-i.size;t-=s,i.size=a}else if(!e.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),s=a-i.size;t-=s,i.size=a}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((r,e)=>{r.ondblclick=t?n=>this.onSplitterDblClick(n,e):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return ld("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Zge=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},Kge={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function Yge(t,r,e,n,i,o){return T(),L("div",{class:"splitpanes__pane",onClick:r[0]||(r[0]=a=>o.onPaneClick(a,t._.uid)),style:Er(t.style)},[Qe(t.$slots,"default")],4)}const wi=Zge(Kge,[["render",Yge]]);function nf(){const{copy:t,copied:r}=x2();return{copy:(n,i={})=>{const{silent:o=!1,type:a=""}=i;t(n).then(()=>{o||d_({message:"Copied to clipboard",type:"success",duration:3e3})}).catch(()=>{o||d_({message:"Failed to copy to clipboard",type:"error",duration:3e3})})},copied:r}}const Xge={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},Qge=we({__name:"App",setup(t){$n(()=>import("./unocss-runtime-402WFgCt.js"),__vite__mapDeps([]),import.meta.url),Vm();const r=gd(),e=Nm(),{connected:n,clientConnected:i}=Xi(),o=yn(),a=lr,s=Tr("viewMode",H("overlay")),l=J(()=>s.value==="overlay"&&yc);Wm();const g=v2(),u=J(()=>e.path.startsWith("/__")||e.path==="/"),c=J(()=>a.value.expandSidebar),d=J(()=>i.value&&n.value);Mn(()=>{const v=lr.value.scale;document.documentElement.style.fontSize=`${v*15}px`}),et(d,v=>{v&&(r.replace(a.value.isFirstVisit?"/":a.value.route),r.afterEach(()=>{const p=e.path;p.includes("__")||(a.value.route=p)}))},{immediate:!0}),on("keydown",v=>{v.code==="KeyD"&&v.altKey&&v.shiftKey&&g.value.emit("toggle-panel")}),Mn(()=>{g.value.emit("update-client-state",{minimizePanelInteractive:lr.value.minimizePanelInteractive,closeOnOutsideClick:lr.value.interactionCloseOnOutsideClick,showFloatingPanel:lr.value.showPanel})});const h=J(()=>a.value.splitScreen.enabled),A=J({get:()=>a.value.splitScreen.size,set:v=>a.value.splitScreen.size=v}),f=Xi();Mn(()=>{y6.value=f.appRecords.value,b6.value=f.activeAppRecordId.value});const{copy:C}=nf(),I=ole({});return o?.isVueInspectorDetected?.()?.then(({data:v})=>{v&&GP(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{g.value.emit("toggle-panel",!1),await o.enableVueInspector()}}])}),GP(()=>[...I.isSupported.value?[{id:"action:eye-dropper",title:"Color Picker",icon:"i-carbon-eyedropper",action:async()=>{const{sRGBHex:v}=await I.open()||{};v&&C(v)}}]:[]]),(v,p)=>{const y=D6,b=zge,_=Pge,P=_i("RouterView"),k=dge,E=Hle;return T(),L("main",Xge,[m(d)?m(l)?(T(),re(b,{key:1})):(T(),L("div",{key:2,class:Ee(["h-full of-auto",m(u)?"flex":m(c)?"grid grid-cols-[250px_1fr]":"grid grid-cols-[50px_1fr]"]),"h-full":"","h-screen":"","of-hidden":"","font-sans":"","bg-base":""},[m(u)?$e("",!0):(T(),re(_,{key:0,"of-x-hidden":"","of-y-auto":""})),z(m(cd),{"h-full":"","of-hidden":"",onResize:p[0]||(p[0]=O=>A.value=O.map(N=>N.size))},{default:V(()=>[z(m(wi),{"h-full":"",class:"of-auto!","min-size":"10",size:m(A)[0]},{default:V(()=>[z(P)]),_:1},8,["size"]),!m(u)&&m(h)?(T(),re(m(wi),{key:0,relative:"","h-full":"",class:"of-auto!",size:m(A)[1]},{default:V(()=>[z(k)]),_:1},8,["size"])):$e("",!0)]),_:1})],2)):(T(),re(y,{key:0})),z(E)])}}}),R2=we({__name:"ExpandIcon",props:{value:{type:Boolean}},setup(t){return(r,e)=>(T(),L("i",{class:Ee(["i-radix-icons:triangle-right flex-none text-5 op-50 transition-base",{"transform rotate-90":r.value}])},null,2))}}),qge={class:"flex-inline items-center gap4px"},Jge=we({__name:"EditInput",props:{modelValue:{},type:{},showActions:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0}},emits:["cancel","submit","update:modelValue"],setup(t,{emit:r}){const e=t,n=r,{escape:i,enter:o}=lle();Mn(()=>{i.value?n("cancel"):o.value&&n("submit",e.type)});const a=Gm(e,"modelValue",n);function s(u){try{return r8(u),!0}catch{return!1}}const l=H(!1);return et(a,$c(()=>{l.value=!s(a.value)},300)),(u,c)=>(T(),L("span",qge,[z(m(Da),{modelValue:m(a),"onUpdate:modelValue":c[0]||(c[0]=d=>ze(a)?a.value=d:null),variant:m(l)?"warning":"normal",class:"h25px w120px px4px","auto-focus":u.autoFocus,onClick:c[1]||(c[1]=En(()=>{},["stop"]))},null,8,["modelValue","variant","auto-focus"]),u.showActions?(T(),L(be,{key:0},[Sr((T(),re(m(at),{size:"mini",flat:"",class:"p2px!",onClick:c[2]||(c[2]=En(d=>u.$emit("cancel"),["stop"]))},{icon:V(()=>[z(m(St),{icon:"i-material-symbols-cancel"})]),_:1})),[[m($i),{content:"Esc to cancel"}]]),m(l)?Sr((T(),re(m(St),{key:1,icon:"i-material-symbols-warning",class:"color-warning-500 dark:color-warning-300"},null,512)),[[m($i),{content:"Invalid value"}]]):Sr((T(),re(m(at),{key:0,size:"mini",flat:"",class:"p2px!",onClick:c[3]||(c[3]=En(d=>u.$emit("submit",u.type),["stop"]))},{icon:V(()=>[z(m(St),{icon:"i-material-symbols-save"})]),_:1})),[[m($i),{content:"Enter to submit change"}]])],64)):$e("",!0)]))}}),N6=Symbol("StateEditorSymbol");function eue(t){const r=H(t);return pa(N6,r),{context:r}}function D2(){return Tr(N6)}function tue(){const t=H(""),r=H("string"),e=H(!1),n=D2();return{editingText:t,editing:e,toggleEditing(i){i&&(r.value=i),e.value=!e.value},editingType:r,nodeId:n.value.nodeId}}function rue(t,r){if(t==="array")return r.length;const e="newProp";let n=1;for(;;){const i=`${e}${n}`;if(!r[i])return i;n++}}function nue(){const t=H({enable:!1,key:"",value:"undefined"});function r(n,i){const o=rue(n,i);t.value={enable:!0,key:o.toString(),value:"undefined"}}function e(){t.value={enable:!1,key:"",value:"undefined"}}return{addNewProp:r,resetDrafting:e,draftingNewProp:t}}const iue={class:"inline pl5px"},oue={class:"w160px py5px"},WP=we({__name:"Actions",props:{data:{},hovering:{type:Boolean},depth:{},showAddIfNeeded:{type:Boolean,default:!0},disableEdit:{type:Boolean}},emits:["enableEditInput","addNewProp"],setup(t){const r=t,e=yn(),n=D2(),{copy:i,isSupported:o}=x2(),a=H(!1),s=J(()=>f2(r.data.value).value),l=J(()=>typeof s.value),g={flat:!0,size:"mini"},u=J(()=>({"opacity-0":!r.hovering}));function c(d,h=!1){e.editInspectorState({path:r.data.key.split("."),inspectorId:n.value.inspectorId,type:r.data.stateType,nodeId:n.value.nodeId,state:{newKey:null,value:mt(d),type:l.value,remove:h}})}return(d,h)=>(T(),L("div",iue,[!r.disableEdit&&d.data.editable?(T(),L(be,{key:0},[m(l)==="string"||m(l)==="number"||m(l)==="object"?(T(),L(be,{key:0},[Sr((T(),re(m(at),wn(g,{class:m(u),onClick:h[0]||(h[0]=En(A=>d.$emit("enableEditInput",m(l)),["stop"]))}),{icon:V(()=>[z(m(St),{icon:"i-material-symbols-edit-rounded"})]),_:1},16,["class"])),[[m($i),{content:"Edit value"}]]),m(l)==="object"&&d.showAddIfNeeded?Sr((T(),re(m(at),wn({key:0},g,{class:m(u),onClick:h[1]||(h[1]=En(A=>d.$emit("addNewProp",Array.isArray(m(s))?"array":"object"),["stop"]))}),{icon:V(()=>[z(m(St),{icon:"i-material-symbols-add-circle-rounded"})]),_:1},16,["class"])),[[m($i),{content:"Add new value"}]]):$e("",!0)],64)):$e("",!0),m(l)==="boolean"?(T(),re(m(at),wn({key:1},g,{class:m(u),onClick:h[2]||(h[2]=A=>c(!m(s)))}),{icon:V(()=>[z(m(St),{icon:m(s)?"i-material-symbols-check-box-sharp":"i-material-symbols-check-box-outline-blank-sharp"},null,8,["icon"])]),_:1},16,["class"])):m(l)==="number"?(T(),L(be,{key:2},[z(m(at),wn(g,{class:m(u),onClick:h[3]||(h[3]=En(A=>c(m(s)+1),["stop"]))}),{icon:V(()=>[z(m(St),{icon:"i-carbon-add"})]),_:1},16,["class"]),z(m(at),wn(g,{class:m(u),onClick:h[4]||(h[4]=En(A=>c(m(s)-1),["stop"]))}),{icon:V(()=>[z(m(St),{icon:"i-carbon-subtract"})]),_:1},16,["class"])],64)):$e("",!0)],64)):$e("",!0),!r.disableEdit&&d.depth>0?(T(),re(m(at),wn({key:1},g,{class:m(u),onClick:h[5]||(h[5]=En(A=>c(m(s),!0),["stop"]))}),{icon:V(()=>[z(m(St),{icon:"i-material-symbols-delete-rounded"})]),_:1},16,["class"])):$e("",!0),z(m(kc),{class:Ee({"opacity-0":!d.hovering&&!m(a)}),"button-props":{flat:!0,size:"mini"},disabled:!m(o),"onUpdate:visible":h[8]||(h[8]=A=>a.value=A)},{popper:V(()=>[w("div",oue,[z(m(TP),{onClick:h[6]||(h[6]=A=>m(i)(m(l)==="object"?JSON.stringify(m(s)):m(s).toString()))},{icon:V(()=>[z(m(St),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),ke(" Copy Value ")]),_:1}),z(m(TP),{onClick:h[7]||(h[7]=()=>{m(i)(d.data.key)})},{icon:V(()=>[z(m(St),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),ke(" Copy Path ")]),_:1})])]),"button-icon":V(()=>[z(m(St),{icon:"i-material-symbols:more-vert"})]),_:1},8,["class","disabled"])]))}});function xc(t){const r=H({}),e=H({});return pa(`CollapseMapSymbol${t}`,r),pa(`CollapseMapSymbol${t}LinkedList`,e),{collapseMap:r,id:t,linkedList:e}}function aue(t){const r=Tr(`CollapseMapSymbol${t}`),e=Tr(`CollapseMapSymbol${t}LinkedList`);return{collapseMap:r,linkedList:e,id:t}}function N2(t,r,e){const{collapseMap:n,linkedList:i}=aue(t),o=J(()=>n.value[r]??!1),a=()=>{n.value[r]=!n.value[r]};return e?.length&&(i.value[r]=e??[]),{isExpanded:o,toggleCollapse:a}}function sue(t,r={}){const{enter:e=()=>{},leave:n=()=>{},initital:i=!1}=r,o=H(i);return on(t,"mouseenter",()=>{o.value=!0,e()}),on(t,"mouseleave",()=>{o.value=!1,n()}),{isHovering:o}}const M2=t=>(mm("data-v-c899a6c2"),t=t(),ym(),t),lue={key:0},gue={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},uue=M2(()=>w("span",{"mx-1":""},":",-1)),cue=["innerHTML"],due={key:1,"cursor-pointer":""},hue={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},Aue=M2(()=>w("span",{"mx-1":""},":",-1)),fue=["innerHTML"],Cue={key:0},Iue={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},vue=M2(()=>w("span",{"mx-1":""},":",-1)),HP=30,pue=we({__name:"InspectorStateField",props:{data:{},depth:{default:0},no:{},rootId:{}},setup(t){const r=t,e=D2(),n=yn(),i=J(()=>t8(r.data.value)),o=J(()=>xm(r.data.value)),a=J(()=>o.value==="custom"?`state-format-${r.data.value._custom?.type}`:""),{isExpanded:s,toggleCollapse:l}=N2("inspector-state",`${r.rootId}-${r.no}-${r.depth}-${r.data.key}`),g=J(()=>{const M=r.data._custom?.stateTypeName||r.data?.stateTypeName;if(M==="Reactive")return M;if(r.data.value?.fields?.abstract)return"";{const Q=`<span class="state-value-${o.value}">${i.value}</span>`;return M?`${Q} <span class="text-gray-500">(${M})</span>`:Q}}),u=J(()=>f2(r.data.value)),c=H(HP),d=J(()=>{const{value:M,inherit:Q}=u.value;let j;return Ok(M)?M.slice(0,c.value).map((q,oe)=>({key:`${r.data.key}.${oe}`,value:q,...Q,editable:r.data.editable,creating:!1})):(Tk(M)?(j=Object.keys(M).slice(0,c.value).map(W=>({key:`${r.data.key}.${W}`,value:M[W],...Q,editable:r.data.editable,creating:!1})),o.value!=="custom"&&(j=Iq(j))):j=[],j===r.data.value?{}:j)}),h=J(()=>{const{value:M}=u.value;return Ok(M)?M.length:Tk(M)?Object.keys(M).length:0}),A=J(()=>{const M=r.data.key,Q=M.lastIndexOf(".");return Q===-1?M:M.slice(Q+1)}),f=J(()=>Object.keys(d.value).length>0),{editingType:C,editing:I,editingText:v,toggleEditing:p,nodeId:y}=tue();et(()=>I.value,M=>{if(M){const{value:Q}=u.value;v.value=Cre(Q)}else v.value=""});function b(M){const Q=r.data;n.editInspectorState({path:Q.key.split("."),inspectorId:e.value.inspectorId,type:Q.stateType,nodeId:y,state:{newKey:null,type:M,value:r8(v.value)}}),p()}const{addNewProp:_,draftingNewProp:P,resetDrafting:k}=nue();function E(M){s.value||l(),_(M,u.value.value)}function O(){const M=r.data,Q=M.key.split(".");Q.push(P.value.key),n.editInspectorState({path:Q,inspectorId:e.value.inspectorId,type:M.stateType,nodeId:y,state:{newKey:P.value.key,type:typeof P.value.value,value:P.value.value}}),k()}const N=H(),{isHovering:D}=sue(()=>N.value);return(M,Q)=>{const j=Jge,W=R2,q=_i("InspectorStateField",!0);return T(),L("div",{ref_key:"containerRef",ref:N,class:"pl-6",style:Er({paddingLeft:`${M.depth*15+4}px`})},[m(f)?(T(),L("div",due,[w("div",{relative:"",flex:"","items-center":"",onClick:Q[2]||(Q[2]=(...oe)=>m(l)&&m(l)(...oe))},[z(W,{value:m(s),absolute:"","left--6":"","group-hover:text-white":""},null,8,["value"]),w("span",hue,_e(m(A)),1),Aue,m(I)?(T(),re(j,{key:0,modelValue:m(v),"onUpdate:modelValue":Q[1]||(Q[1]=oe=>ze(v)?v.value=oe:null),type:m(C),onCancel:m(p),onSubmit:b},null,8,["modelValue","type","onCancel"])):(T(),L(be,{key:1},[w("span",{class:Ee(m(a))},[w("span",{innerHTML:m(g)},null,8,fue)],2),z(WP,{"show-add-if-needed":!m(P).enable,hovering:m(D),data:M.data,"disable-edit":m(e).disableEdit,depth:M.depth,onEnableEditInput:m(p),onAddNewProp:E},null,8,["show-add-if-needed","hovering","data","disable-edit","depth","onEnableEditInput"])],64))]),m(s)?(T(),L("div",Cue,[(T(!0),L(be,null,pt(m(d),(oe,Pe)=>(T(),re(q,{key:Pe,data:oe,depth:M.depth+1,no:M.no,"root-id":M.rootId},null,8,["data","depth","no","root-id"]))),128)),m(h)>m(c)?Sr((T(),re(m(at),{key:0,flat:"",size:"mini",class:"ml-4",onClick:Q[3]||(Q[3]=oe=>c.value+=HP)},{icon:V(()=>[z(m(St),{icon:"i-material-symbols-more-horiz"})]),_:1})),[[m($i),"Show more"]]):$e("",!0),m(P).enable?(T(),L("div",{key:1,style:Er({paddingLeft:`${(M.depth+1)*15+4}px`})},[w("span",Iue,[z(j,{modelValue:m(P).key,"onUpdate:modelValue":Q[4]||(Q[4]=oe=>m(P).key=oe),type:"string","show-actions":!1},null,8,["modelValue"])]),vue,z(j,{modelValue:m(P).value,"onUpdate:modelValue":Q[5]||(Q[5]=oe=>m(P).value=oe),type:"string","auto-focus":!1,onCancel:m(k),onSubmit:O},null,8,["modelValue","onCancel"])],4)):$e("",!0)])):$e("",!0)])):(T(),L("div",lue,[w("span",gue,_e(m(A)),1),uue,m(I)?(T(),re(j,{key:0,modelValue:m(v),"onUpdate:modelValue":Q[0]||(Q[0]=oe=>ze(v)?v.value=oe:null),type:m(C),onCancel:m(p),onSubmit:b},null,8,["modelValue","type","onCancel"])):(T(),L(be,{key:1},[w("span",{class:Ee(m(a))},[w("span",{innerHTML:m(g)},null,8,cue)],2),z(WP,{hovering:m(D),"disable-edit":m(e).disableEdit,data:M.data,depth:M.depth,onEnableEditInput:m(p)},null,8,["hovering","disable-edit","data","depth","onEnableEditInput"])],64))]))],4)}}}),mue=rf(pue,[["__scopeId","data-v-c899a6c2"]]),yue=we({__name:"InspectorStateType",props:{data:{},depth:{default:0},rootId:{}},setup(t){return(r,e)=>{const n=mue;return T(!0),L(be,null,pt(r.data,(i,o)=>(T(),L("div",{key:o,class:"flex items-center pl-8 font-data-field"},[z(n,{data:i,no:o,"root-id":r.rootId},null,8,["data","no","root-id"])]))),128)}}}),bue={"text-primary-400":"","group-hover:text-white":"",class:"text-[#486887] dark:text-[#7595b5]"},of=we({__name:"InspectorState",props:{data:{},name:{},id:{},nodeId:{},inspectorId:{},disableEdit:{type:Boolean,default:!1}},setup(t){const r=t,{isExpanded:e,toggleCollapse:n}=N2("inspector-state",r.id);return!e.value&&n(),eue({nodeId:r.nodeId,inspectorId:r.inspectorId,disableEdit:r.disableEdit}),(i,o)=>{const a=R2,s=yue;return T(),L(be,null,[w("div",{class:"group w-full px-0 selectable-item",onClick:o[0]||(o[0]=(...l)=>m(n)&&m(n)(...l))},[z(a,{value:m(e),"group-hover:text-white":""},null,8,["value"]),w("span",bue,_e(i.name),1)]),m(e)?(T(),re(s,{key:0,data:i.data,"root-id":i.id},null,8,["data","root-id"])):$e("",!0)],64)}}});function y_(t){return t.toString(16).padStart(6,"0")}function $ue(t,r){const e=new Date(t);return`${e.toString().match(/\d\d:\d\d:\d\d/)[0]}${r==="ms"?`.${String(e.getMilliseconds()).padStart(3,"0")}`:""}`}const M6=we({__name:"InspectorNodeTag",props:{tag:{}},setup(t){return(r,e)=>{const n=bm("tooltip");return Sr((T(),L("span",{style:Er({color:`#${m(y_)(r.tag.textColor)}`,backgroundColor:`#${m(y_)(r.tag.backgroundColor)}`}),class:"ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"},[ke(_e(r.tag.label),1)],4)),[[n,{content:r.tag.tooltip,html:!0}]])}}});function wue(t){const r=H("");return pa(`SelectedSymbol${t}`,r),{selected:r,id:t}}function _ue(t){return{selected:Tr(`SelectedSymbol${t}`),id:t}}function Eue(t,r,e){const{selected:n}=_ue(t);return{isSelected:J(()=>n.value===r),toggleSelected:a=>{n.value=a,e?.(a)}}}const Sue={key:1,"inline-block":"","h-6":"","w-6":""},Tue={"text-primary-400":"","group-hover:text-white":"",class:"[.active_&]:text-white"},Oue=we({__name:"ComponentTreeNode",props:{data:{},depth:{default:0},linkedList:{default:()=>[]}},emits:["select","mouseenter","mouseleave"],setup(t,{emit:r}){const e=t,n=r,{isExpanded:i,toggleCollapse:o}=N2("component-tree",e.data.id,[...e.linkedList,e.data.id]),{isSelected:a,toggleSelected:s}=Eue("component-tree",e.data.id,l=>{n("select",l)});return(l,g)=>{const u=R2,c=M6,d=_i("ComponentTreeNode",!0);return T(),L(be,null,[w("div",{class:Ee(["group selectable-item",{active:m(a)}]),style:Er({paddingLeft:`${l.depth*15+4}px`}),onClick:g[0]||(g[0]=En(h=>m(s)(l.data.id),["stop"])),onMouseenter:g[1]||(g[1]=h=>n("mouseenter",l.data.id,!0)),onMouseleave:g[2]||(g[2]=h=>n("mouseleave",l.data.id,!1))},[l.data.children?.length?(T(),re(u,{key:0,value:m(i),"group-hover:text-white":"",class:"[.active_&]:text-white",onClick:En(m(o),["prevent","stop"])},null,8,["value","onClick"])):(T(),L("i",Sue)),w("span",Tue,_e(l.data.name),1),(T(!0),L(be,null,pt(l.data.tags,(h,A)=>(T(),re(c,{key:A,tag:h},null,8,["tag"]))),128))],38),l.data.children?.length&&m(i)?(T(!0),L(be,{key:0},pt(l.data.children,h=>(T(),re(d,{key:h.id,data:h,depth:l.depth+1,"linked-list":[...l.linkedList,l.data.id],onSelect:g[3]||(g[3]=A=>n("select",A)),onMouseenter:g[4]||(g[4]=A=>n("mouseenter",A,!0)),onMouseleave:g[5]||(g[5]=A=>n("mouseleave",A,!1))},null,8,["data","depth","linked-list"]))),128)):$e("",!0)],64)}}}),kue=yn();function Hm(t){return kue.openInEditor({file:t})}const xue={"w-full":"",flex:"",gap2:"",px2:"",py2:""},Pue=w("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[w("circle",{cx:"12",cy:"12",r:".5",fill:"currentColor"}),w("path",{d:"M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2"})],-1),Rue=[Pue],Due={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},Nue={flex:"","justify-between":"","overflow-auto":"",px2:"",py3:"",class:"no-scrollbar"},Mue={key:0},Bue={flex:"~ gap2"},Fue=w("p",{class:"x-divider"},null,-1),Lue=we({__name:"components",setup(t){const r=yn(),e=v2(),n=H([]),i=H(""),o=Hm,a=H(!1),[s,l]=O2(!0),{selected:g}=wue("component-tree"),{collapseMap:u,linkedList:c}=xc("component-tree");xc("inspector-state");const d=J(()=>{const j=[],W=q=>{q.forEach(oe=>{oe.id===g.value&&j.push(oe),oe.children?.length&&W(oe.children)})};return W(n.value),j[0]}),h=J(()=>{const j=[],W=(q,oe=[])=>{q.forEach(Pe=>{j.push([...oe,Pe.id]),Pe.children?.length&&W(Pe.children,[...oe,Pe.id])})};return W(n.value),j}),A=J(()=>d.value?.file??"");function f(j,W){return j.length?j.find(q=>q.id===W)?!0:j.some(q=>f(q.children||[],W)):!1}function C(j){j.length&&(g.value&&f(j,g.value)||(g.value=j?.[0].id,N(j?.[0].id)))}function I(j){return new Promise(W=>{r.getComponentBoundingRect({inspectorId:"components",instanceId:j}).then(({data:q})=>{W(q)})})}function v(j){return{[j[0].id]:!0,...j?.[0].children?.reduce((W,q)=>(W[q.id]=!0,W),{})}}function p(j){return new Promise(W=>{r.getInspectorTree({inspectorId:"components",filter:j}).then(({data:q})=>{const oe=!Object.keys(u.value).length;n.value=q,oe&&(u.value=v(q)),C(q),W()})})}const y=H(!1);async function b(j,W){y.value&&await Gse(y).toBe(!1),y.value=!0,I(j).then(q=>{r.toggleComponentInspector({id:j,visible:W,bounds:q}),y.value=!1})}function _(j){r.scrollToComponent({id:j})}function P(){e.value.emit("toggle-panel",!1),r.inspectComponentInspector().then(({data:j})=>{g.value=j.id,k(j.id);const W=c.value[j.id];W?W.forEach(q=>{u.value[q]=!0}):h.value.forEach(q=>{let oe=q.indexOf(j.id);if(oe>-1)for(;oe>=0;)u.value[q[oe]]=!0,oe--})}).finally(()=>{e.value.emit("toggle-panel",!0)})}function k(j){D(),N(j),i.value=j}et(g,j=>{r.updateInspectorTreeId(j)});const E=H({});function O(j){if(!j||!j?.state)return{};const W={};return j.state.forEach(q=>{W[q.type]||(W[q.type]=[]),W[q.type].push(q)}),W}function N(j){r.getInspectorState({inspectorId:"components",nodeId:j}).then(({data:W})=>{E.value=O(W)})}function D(){E.value={}}_o(()=>{p().then(()=>{a.value=!0}),r.on.inspectorTreeUpdated(j=>{j?.data?.length&&(n.value=j.data,u.value={...v(j.data),...u.value},C(j.data))},{inspectorId:"components"}),r.on.inspectorStateUpdated(j=>{E.value=O(j)},{inspectorId:"components"})});const M=H("");k2(M,j=>{const W=j.trim().toLowerCase();l(),p(W).then(()=>{l()})},{debounce:300});const Q=Xi();return(j,W)=>{const q=Oue,oe=of,Pe=Eo;return T(),re(Pe,{"h-screen":""},{default:V(()=>[z(m(cd),null,{default:V(()=>[z(m(wi),{flex:"","flex-col":"",border:"r base"},{default:V(()=>[w("div",xue,[m(a)?(T(),re(m(Da),{key:0,modelValue:m(M),"onUpdate:modelValue":W[0]||(W[0]=He=>ze(M)?M.value=He:null),"loading-debounce-time":250,loading:!m(s),placeholder:"Find components...","flex-1":""},null,8,["modelValue","loading"])):$e("",!0),m(Q).vitePluginDetected.value?(T(),L("button",{key:1,"px-1":"",onClick:P},[(T(),L("svg",{xmlns:"http://www.w3.org/2000/svg",style:Er([{height:"1.1em",width:"1.1em",opacity:"0.5"},"opacity:1;color:#00dc82"]),viewBox:"0 0 24 24"},Rue))])):$e("",!0)]),w("div",Due,[(T(!0),L(be,null,pt(m(n),He=>(T(),re(q,{key:He.id,data:He,onSelect:k,onMouseenter:b,onMouseleave:b},null,8,["data"]))),128))])]),_:1}),z(m(wi),{flex:"","flex-col":""},{default:V(()=>[w("div",Nue,[m(d)?.name?(T(),L("span",Mue,_e(m(d).name),1)):$e("",!0),w("div",Bue,[Sr(z(m(St),{title:"Scroll to Component",icon:"i-iconoir:mouse-scroll-wheel",action:"","flex-none":"",border:!1,onClick:W[1]||(W[1]=He=>_(m(g)))},null,512),[[m($i),"Scroll to Component"]]),m(A)&&m(Q).vitePluginDetected.value?Sr((T(),re(m(St),{key:0,title:"Open in Editor",icon:"i-carbon-launch",action:"","flex-none":"",border:!1,onClick:W[2]||(W[2]=He=>m(o)(m(A)))},null,512)),[[m($i),"Open in Editor"]]):$e("",!0)])]),Fue,(T(),L("div",{key:m(g),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(T(!0),L(be,null,pt(m(E),(He,Le)=>(T(),re(oe,{id:Le,key:Le,"node-id":m(i),data:He,name:`${Le}`,"inspector-id":"components"},null,8,["id","node-id","data","name"]))),128))]))]),_:1})]),_:1})]),_:1})}}}),zue="7.0.12",jue={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},Vue=w("div",{"flex-auto":""},null,-1),Gue={flex:"~ col","mt-20":"","items-center":""},Wue={flex:"~","mt--10":"","items-center":"","justify-center":""},Hue={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},Uue=w("span",{op40:""}," Vue DevTools ",-1),Zue={op40:""},Kue={flex:"~ gap2 wrap"},Yue={p4:"","theme-card-green":"",flex:"~ col auto"},Xue=w("div",{"i-logos-vue":"","text-3xl":""},null,-1),Que=w("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),que=w("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),Jue={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},ece=w("a",{href:"https://github.com/vuejs/devtools-next",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[w("div",{"i-carbon-star":""}),ke(" Star on GitHub ")],-1),tce=w("a",{href:"https://github.com/vuejs/devtools-next/discussions/111",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[w("div",{"i-carbon-data-enrichment":""}),ke(" Ideas & Suggestions ")],-1),rce=w("a",{href:"https://github.com/vuejs/devtools-next/discussions/112",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[w("div",{"i-carbon-plan":""}),ke(" Project Roadmap ")],-1),nce=w("a",{href:"https://github.com/vuejs/devtools-next/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[w("div",{"i-carbon-debug":""}),ke(" Bug Reports ")],-1),ice=w("div",{"i-carbon-settings":""},null,-1),oce=w("div",{"flex-auto":""},null,-1),ace={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},sce=w("span",null,"+",-1),lce=w("span",null,"+",-1),gce={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},uce=w("span",null,"+",-1),cce=w("span",null,"+",-1),dce=w("span",null,"+",-1),hce=w("span",null,"+",-1),Ace=we({__name:"overview",setup(t){const r=yn(),{vueVersion:e}=Xi(),n=H(1),i=H(0);function o(a){let s=0;for(const l of a)s++,l.children?.length&&(s+=o(l.children));return s}return _o(()=>{r.getRouterInfo().then(({data:a})=>{n.value=a?.routes?.length||1}),r.on.routerInfoUpdated(a=>{n.value=a?.routes?.length||1}),r.getInspectorTree({inspectorId:"components",filter:""}).then(({data:a})=>{i.value=o(a)}),r.on.inspectorTreeUpdated(a=>{a?.data?.length&&(i.value=o(a.data))},{inspectorId:"components"})}),(a,s)=>{const l=P2,g=_i("RouterLink"),u=Eo;return T(),re(u,{"h-screen":"","w-full":"",flex:"","of-auto":""},{default:V(()=>[w("div",jue,[Vue,w("div",Gue,[w("div",Wue,[z(l,{"h-18":""})]),w("div",Hue,[Uue,w("code",Zue,"v"+_e(m(zue)),1)])]),w("div",Kue,[w("div",Yue,[Xue,w("code",null,"v"+_e(m(e)),1)]),z(g,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:V(()=>[Que,w("div",null,_e(m(n))+" pages",1)]),_:1}),m(i)?(T(),re(g,{key:0,flex:"~ col auto",to:"/components",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:V(()=>[que,w("div",null,_e(m(i))+" components",1)]),_:1})):$e("",!0)]),w("div",Jue,[ece,tce,rce,nce,z(g,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:V(()=>[ice,ke(" Settings ")]),_:1})]),oce,w("div",ace,[ke(" Press "),m(Sk)()?(T(),L(be,{key:0},[z(m(at),null,{default:V(()=>[ke(" ⌘ Command ")]),_:1}),sce,z(m(at),null,{default:V(()=>[ke(" K ")]),_:1})],64)):(T(),L(be,{key:1},[z(m(at),null,{default:V(()=>[ke(" Alt ")]),_:1}),lce,z(m(at),null,{default:V(()=>[ke(" K ")]),_:1})],64)),ke(" to toggle Command Palette ")]),w("div",gce,[ke(" Press "),m(Sk)()?(T(),L(be,{key:0},[z(m(at),null,{default:V(()=>[ke(" ⇧ Shift ")]),_:1}),uce,z(m(at),null,{default:V(()=>[ke(" ⌥ Option ")]),_:1}),cce,z(m(at),null,{default:V(()=>[ke(" D ")]),_:1})],64)):(T(),L(be,{key:1},[z(m(at),null,{default:V(()=>[ke(" Shift ")]),_:1}),dce,z(m(at),null,{default:V(()=>[ke(" Alt ")]),_:1}),hce,z(m(at),null,{default:V(()=>[ke(" D ")]),_:1})],64)),ke(" to toggle DevTools ")])])]),_:1})}}});function fce(){var t=window.navigator.userAgent,r=t.indexOf("MSIE ");if(r>0)return parseInt(t.substring(r+5,t.indexOf(".",r)),10);var e=t.indexOf("Trident/");if(e>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let Av;function b_(){b_.init||(b_.init=!0,Av=fce()!==-1)}var Um={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){b_(),mn(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",Av&&this.$el.appendChild(t),t.data="about:blank",Av||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Av&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Cce=dj();mm("data-v-b329ee4c");const Ice={class:"resize-observer",tabindex:"-1"};ym();const vce=Cce((t,r,e,n,i,o)=>(T(),re("div",Ice)));Um.render=vce;Um.__scopeId="data-v-b329ee4c";Um.__file="src/components/ResizeObserver.vue";function fv(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fv=function(r){return typeof r}:fv=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},fv(t)}function pce(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function UP(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function mce(t,r,e){return r&&UP(t.prototype,r),e&&UP(t,e),t}function ZP(t){return yce(t)||bce(t)||$ce(t)||wce()}function yce(t){if(Array.isArray(t))return $_(t)}function bce(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function $ce(t,r){if(t){if(typeof t=="string")return $_(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return $_(t,r)}}function $_(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function wce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
21
|
+
*/const Mu=typeof window<"u";function Ene(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const ar=Object.assign;function Lb(t,r){const e={};for(const n in r){const i=r[n];e[n]=yo(i)?i.map(t):t(i)}return e}const xh=()=>{},yo=Array.isArray,Sne=/\/$/,Tne=t=>t.replace(Sne,"");function zb(t,r,e="/"){let n,i={},o="",a="";const s=r.indexOf("#");let l=r.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=r.slice(0,l),o=r.slice(l+1,s>-1?s:r.length),i=t(o)),s>-1&&(n=n||r.slice(0,s),a=r.slice(s,r.length)),n=Pne(n??r,e),{fullPath:n+(o&&"?")+o+a,path:n,query:i,hash:a}}function One(t,r){const e=r.query?t(r.query):"";return r.path+(e&&"?")+e+(r.hash||"")}function kne(t,r,e){const n=r.matched.length-1,i=e.matched.length-1;return n>-1&&n===i&&Tc(r.matched[n],e.matched[i])&&v8(r.params,e.params)&&t(r.query)===t(e.query)&&r.hash===e.hash}function Tc(t,r){return(t.aliasOf||t)===(r.aliasOf||r)}function v8(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const e in t)if(!xne(t[e],r[e]))return!1;return!0}function xne(t,r){return yo(t)?Hx(t,r):yo(r)?Hx(r,t):t===r}function Hx(t,r){return yo(r)?t.length===r.length&&t.every((e,n)=>e===r[n]):t.length===1&&t[0]===r}function Pne(t,r){if(t.startsWith("/"))return t;if(!t)return r;const e=r.split("/"),n=t.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=e.length-1,a,s;for(a=0;a<n.length;a++)if(s=n[a],s!==".")if(s==="..")o>1&&o--;else break;return e.slice(0,o).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var lA;(function(t){t.pop="pop",t.push="push"})(lA||(lA={}));var sp;(function(t){t.back="back",t.forward="forward",t.unknown=""})(sp||(sp={}));const jb="";function Rne(t){if(!t)if(Mu){const r=document.querySelector("base");t=r&&r.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Tne(t)}const Dne=/^[^#]+#/;function Nne(t,r){return t.replace(Dne,"#")+r}function Mne(t,r){const e=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:r.behavior,left:n.left-e.left-(r.left||0),top:n.top-e.top-(r.top||0)}}const Bne=()=>({left:window.pageXOffset,top:window.pageYOffset});function Fne(t){let r;if("el"in t){const e=t.el,n=typeof e=="string"&&e.startsWith("#"),i=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!i)return;r=Mne(i,t)}else r=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(r):window.scrollTo(r.left!=null?r.left:window.pageXOffset,r.top!=null?r.top:window.pageYOffset)}function Ux(t,r){return(history.state?history.state.position-r:-1)+t}const o_=new Map;function Lne(t,r){o_.set(t,r)}function zne(t){const r=o_.get(t);return o_.delete(t),r}function jne(t=""){let r=[],e=[jb],n=0;t=Rne(t);function i(s){n++,n!==e.length&&e.splice(n),e.push(s)}function o(s,l,{direction:g,delta:u}){const c={direction:g,delta:u,type:lA.pop};for(const d of r)d(s,l,c)}const a={location:jb,state:{},base:t,createHref:Nne.bind(null,t),replace(s){e.splice(n--,1),i(s)},push(s,l){i(s)},listen(s){return r.push(s),()=>{const l=r.indexOf(s);l>-1&&r.splice(l,1)}},destroy(){r=[],e=[jb],n=0},go(s,l=!0){const g=this.location,u=s<0?sp.back:sp.forward;n=Math.max(0,Math.min(n+s,e.length-1)),l&&o(this.location,g,{direction:u,delta:s})}};return Object.defineProperty(a,"location",{enumerable:!0,get:()=>e[n]}),a}function Vne(t){return typeof t=="string"||t&&typeof t=="object"}function p8(t){return typeof t=="string"||typeof t=="symbol"}const ts={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},m8=Symbol("");var Zx;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Zx||(Zx={}));function Oc(t,r){return ar(new Error,{type:t,[m8]:!0},r)}function Aa(t,r){return t instanceof Error&&m8 in t&&(r==null||!!(t.type&r))}const Kx="[^/]+?",Gne={sensitive:!1,strict:!1,start:!0,end:!0},Wne=/[.+*?^${}()[\]/\\]/g;function Hne(t,r){const e=ar({},Gne,r),n=[];let i=e.start?"^":"";const o=[];for(const g of t){const u=g.length?[]:[90];e.strict&&!g.length&&(i+="/");for(let c=0;c<g.length;c++){const d=g[c];let h=40+(e.sensitive?.25:0);if(d.type===0)c||(i+="/"),i+=d.value.replace(Wne,"\\$&"),h+=40;else if(d.type===1){const{value:A,repeatable:f,optional:C,regexp:I}=d;o.push({name:A,repeatable:f,optional:C});const v=I||Kx;if(v!==Kx){h+=10;try{new RegExp(`(${v})`)}catch(y){throw new Error(`Invalid custom RegExp for param "${A}" (${v}): `+y.message)}}let p=f?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;c||(p=C&&g.length<2?`(?:/${p})`:"/"+p),C&&(p+="?"),i+=p,h+=20,C&&(h+=-8),f&&(h+=-20),v===".*"&&(h+=-50)}u.push(h)}n.push(u)}if(e.strict&&e.end){const g=n.length-1;n[g][n[g].length-1]+=.7000000000000001}e.strict||(i+="/?"),e.end?i+="$":e.strict&&(i+="(?:/|$)");const a=new RegExp(i,e.sensitive?"":"i");function s(g){const u=g.match(a),c={};if(!u)return null;for(let d=1;d<u.length;d++){const h=u[d]||"",A=o[d-1];c[A.name]=h&&A.repeatable?h.split("/"):h}return c}function l(g){let u="",c=!1;for(const d of t){(!c||!u.endsWith("/"))&&(u+="/"),c=!1;for(const h of d)if(h.type===0)u+=h.value;else if(h.type===1){const{value:A,repeatable:f,optional:C}=h,I=A in g?g[A]:"";if(yo(I)&&!f)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const v=yo(I)?I.join("/"):I;if(!v)if(C)d.length<2&&(u.endsWith("/")?u=u.slice(0,-1):c=!0);else throw new Error(`Missing required param "${A}"`);u+=v}}return u||"/"}return{re:a,score:n,keys:o,parse:s,stringify:l}}function Une(t,r){let e=0;for(;e<t.length&&e<r.length;){const n=r[e]-t[e];if(n)return n;e++}return t.length<r.length?t.length===1&&t[0]===80?-1:1:t.length>r.length?r.length===1&&r[0]===80?1:-1:0}function Zne(t,r){let e=0;const n=t.score,i=r.score;for(;e<n.length&&e<i.length;){const o=Une(n[e],i[e]);if(o)return o;e++}if(Math.abs(i.length-n.length)===1){if(Yx(n))return 1;if(Yx(i))return-1}return i.length-n.length}function Yx(t){const r=t[t.length-1];return t.length>0&&r[r.length-1]<0}const Kne={type:0,value:""},Yne=/[a-zA-Z0-9_]/;function Xne(t){if(!t)return[[]];if(t==="/")return[[Kne]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function r(h){throw new Error(`ERR (${e})/"${g}": ${h}`)}let e=0,n=e;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,g="",u="";function c(){g&&(e===0?o.push({type:0,value:g}):e===1||e===2||e===3?(o.length>1&&(l==="*"||l==="+")&&r(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:g,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):r("Invalid state to consume buffer"),g="")}function d(){g+=l}for(;s<t.length;){if(l=t[s++],l==="\\"&&e!==2){n=e,e=4;continue}switch(e){case 0:l==="/"?(g&&c(),a()):l===":"?(c(),e=1):d();break;case 4:d(),e=n;break;case 1:l==="("?e=2:Yne.test(l)?d():(c(),e=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:e=3:u+=l;break;case 3:c(),e=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,u="";break;default:r("Unknown state");break}}return e===2&&r(`Unfinished custom RegExp for param "${g}"`),c(),a(),i}function Qne(t,r,e){const n=Hne(Xne(t.path),e),i=ar(n,{record:t,parent:r,children:[],alias:[]});return r&&!i.record.aliasOf==!r.record.aliasOf&&r.children.push(i),i}function qne(t,r){const e=[],n=new Map;r=qx({strict:!1,end:!0,sensitive:!1},r);function i(u){return n.get(u)}function o(u,c,d){const h=!d,A=Jne(u);A.aliasOf=d&&d.record;const f=qx(r,u),C=[A];if("alias"in u){const p=typeof u.alias=="string"?[u.alias]:u.alias;for(const y of p)C.push(ar({},A,{components:d?d.record.components:A.components,path:y,aliasOf:d?d.record:A}))}let I,v;for(const p of C){const{path:y}=p;if(c&&y[0]!=="/"){const b=c.record.path,_=b[b.length-1]==="/"?"":"/";p.path=c.record.path+(y&&_+y)}if(I=Qne(p,c,f),d?d.alias.push(I):(v=v||I,v!==I&&v.alias.push(I),h&&u.name&&!Qx(I)&&a(u.name)),A.children){const b=A.children;for(let _=0;_<b.length;_++)o(b[_],I,d&&d.children[_])}d=d||I,(I.record.components&&Object.keys(I.record.components).length||I.record.name||I.record.redirect)&&l(I)}return v?()=>{a(v)}:xh}function a(u){if(p8(u)){const c=n.get(u);c&&(n.delete(u),e.splice(e.indexOf(c),1),c.children.forEach(a),c.alias.forEach(a))}else{const c=e.indexOf(u);c>-1&&(e.splice(c,1),u.record.name&&n.delete(u.record.name),u.children.forEach(a),u.alias.forEach(a))}}function s(){return e}function l(u){let c=0;for(;c<e.length&&Zne(u,e[c])>=0&&(u.record.path!==e[c].record.path||!y8(u,e[c]));)c++;e.splice(c,0,u),u.record.name&&!Qx(u)&&n.set(u.record.name,u)}function g(u,c){let d,h={},A,f;if("name"in u&&u.name){if(d=n.get(u.name),!d)throw Oc(1,{location:u});f=d.record.name,h=ar(Xx(c.params,d.keys.filter(v=>!v.optional).map(v=>v.name)),u.params&&Xx(u.params,d.keys.map(v=>v.name))),A=d.stringify(h)}else if("path"in u)A=u.path,d=e.find(v=>v.re.test(A)),d&&(h=d.parse(A),f=d.record.name);else{if(d=c.name?n.get(c.name):e.find(v=>v.re.test(c.path)),!d)throw Oc(1,{location:u,currentLocation:c});f=d.record.name,h=ar({},c.params,u.params),A=d.stringify(h)}const C=[];let I=d;for(;I;)C.unshift(I.record),I=I.parent;return{name:f,path:A,params:h,matched:C,meta:tie(C)}}return t.forEach(u=>o(u)),{addRoute:o,resolve:g,removeRoute:a,getRoutes:s,getRecordMatcher:i}}function Xx(t,r){const e={};for(const n of r)n in t&&(e[n]=t[n]);return e}function Jne(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:eie(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function eie(t){const r={},e=t.props||!1;if("component"in t)r.default=e;else for(const n in t.components)r[n]=typeof e=="object"?e[n]:e;return r}function Qx(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function tie(t){return t.reduce((r,e)=>ar(r,e.meta),{})}function qx(t,r){const e={};for(const n in t)e[n]=n in r?r[n]:t[n];return e}function y8(t,r){return r.children.some(e=>e===t||y8(t,e))}const b8=/#/g,rie=/&/g,nie=/\//g,iie=/=/g,oie=/\?/g,$8=/\+/g,aie=/%5B/g,sie=/%5D/g,w8=/%5E/g,lie=/%60/g,_8=/%7B/g,gie=/%7C/g,E8=/%7D/g,uie=/%20/g;function p2(t){return encodeURI(""+t).replace(gie,"|").replace(aie,"[").replace(sie,"]")}function cie(t){return p2(t).replace(_8,"{").replace(E8,"}").replace(w8,"^")}function a_(t){return p2(t).replace($8,"%2B").replace(uie,"+").replace(b8,"%23").replace(rie,"%26").replace(lie,"`").replace(_8,"{").replace(E8,"}").replace(w8,"^")}function die(t){return a_(t).replace(iie,"%3D")}function hie(t){return p2(t).replace(b8,"%23").replace(oie,"%3F")}function Aie(t){return t==null?"":hie(t).replace(nie,"%2F")}function lp(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function fie(t){const r={};if(t===""||t==="?")return r;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;i<n.length;++i){const o=n[i].replace($8," "),a=o.indexOf("="),s=lp(a<0?o:o.slice(0,a)),l=a<0?null:lp(o.slice(a+1));if(s in r){let g=r[s];yo(g)||(g=r[s]=[g]),g.push(l)}else r[s]=l}return r}function Jx(t){let r="";for(let e in t){const n=t[e];if(e=die(e),n==null){n!==void 0&&(r+=(r.length?"&":"")+e);continue}(yo(n)?n.map(o=>o&&a_(o)):[n&&a_(n)]).forEach(o=>{o!==void 0&&(r+=(r.length?"&":"")+e,o!=null&&(r+="="+o))})}return r}function Cie(t){const r={};for(const e in t){const n=t[e];n!==void 0&&(r[e]=yo(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return r}const Iie=Symbol(""),eP=Symbol(""),Dm=Symbol(""),m2=Symbol(""),s_=Symbol("");function rh(){let t=[];function r(n){return t.push(n),()=>{const i=t.indexOf(n);i>-1&&t.splice(i,1)}}function e(){t=[]}return{add:r,list:()=>t.slice(),reset:e}}function Is(t,r,e,n,i){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((a,s)=>{const l=c=>{c===!1?s(Oc(4,{from:e,to:r})):c instanceof Error?s(c):Vne(c)?s(Oc(2,{from:r,to:c})):(o&&n.enterCallbacks[i]===o&&typeof c=="function"&&o.push(c),a())},g=t.call(n&&n.instances[i],r,e,l);let u=Promise.resolve(g);t.length<3&&(u=u.then(l)),u.catch(c=>s(c))})}function Vb(t,r,e,n){const i=[];for(const o of t)for(const a in o.components){let s=o.components[a];if(!(r!=="beforeRouteEnter"&&!o.instances[a]))if(vie(s)){const g=(s.__vccOpts||s)[r];g&&i.push(Is(g,e,n,o,a))}else{let l=s();i.push(()=>l.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${o.path}"`));const u=Ene(g)?g.default:g;o.components[a]=u;const d=(u.__vccOpts||u)[r];return d&&Is(d,e,n,o,a)()}))}}return i}function vie(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function tP(t){const r=Tr(Dm),e=Tr(m2),n=J(()=>r.resolve(m(t.to))),i=J(()=>{const{matched:l}=n.value,{length:g}=l,u=l[g-1],c=e.matched;if(!u||!c.length)return-1;const d=c.findIndex(Tc.bind(null,u));if(d>-1)return d;const h=rP(l[g-2]);return g>1&&rP(u)===h&&c[c.length-1].path!==h?c.findIndex(Tc.bind(null,l[g-2])):d}),o=J(()=>i.value>-1&&yie(e.params,n.value.params)),a=J(()=>i.value>-1&&i.value===e.matched.length-1&&v8(e.params,n.value.params));function s(l={}){return mie(l)?r[m(t.replace)?"replace":"push"](m(t.to)).catch(xh):Promise.resolve()}return{route:n,href:J(()=>n.value.href),isActive:o,isExactActive:a,navigate:s}}const pie=we({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:tP,setup(t,{slots:r}){const e=Qs(tP(t)),{options:n}=Tr(Dm),i=J(()=>({[nP(t.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[nP(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const o=r.default&&r.default(e);return t.custom?o:ld("a",{"aria-current":e.isExactActive?t.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:i.value},o)}}}),S8=pie;function mie(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const r=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(r))return}return t.preventDefault&&t.preventDefault(),!0}}function yie(t,r){for(const e in r){const n=r[e],i=t[e];if(typeof n=="string"){if(n!==i)return!1}else if(!yo(i)||i.length!==n.length||n.some((o,a)=>o!==i[a]))return!1}return!0}function rP(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const nP=(t,r,e)=>t??r??e,bie=we({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:r,slots:e}){const n=Tr(s_),i=J(()=>t.route||n.value),o=Tr(eP,0),a=J(()=>{let g=m(o);const{matched:u}=i.value;let c;for(;(c=u[g])&&!c.components;)g++;return g}),s=J(()=>i.value.matched[a.value]);pa(eP,J(()=>a.value+1)),pa(Iie,s),pa(s_,i);const l=H();return et(()=>[l.value,s.value,t.name],([g,u,c],[d,h,A])=>{u&&(u.instances[c]=g,h&&h!==u&&g&&g===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),g&&u&&(!h||!Tc(u,h)||!d)&&(u.enterCallbacks[c]||[]).forEach(f=>f(g))},{flush:"post"}),()=>{const g=i.value,u=t.name,c=s.value,d=c&&c.components[u];if(!d)return iP(e.default,{Component:d,route:g});const h=c.props[u],A=h?h===!0?g.params:typeof h=="function"?h(g):h:null,C=ld(d,ar({},A,r,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(c.instances[u]=null)},ref:l}));return iP(e.default,{Component:C,route:g})||C}}});function iP(t,r){if(!t)return null;const e=t(r);return e.length===1?e[0]:e}const $ie=bie;function wie(t){const r=qne(t.routes,t),e=t.parseQuery||fie,n=t.stringifyQuery||Jx,i=t.history,o=rh(),a=rh(),s=rh(),l=aa(ts);let g=ts;Mu&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Lb.bind(null,U=>""+U),c=Lb.bind(null,Aie),d=Lb.bind(null,lp);function h(U,ie){let R,x;return p8(U)?(R=r.getRecordMatcher(U),x=ie):x=U,r.addRoute(x,R)}function A(U){const ie=r.getRecordMatcher(U);ie&&r.removeRoute(ie)}function f(){return r.getRoutes().map(U=>U.record)}function C(U){return!!r.getRecordMatcher(U)}function I(U,ie){if(ie=ar({},ie||l.value),typeof U=="string"){const S=zb(e,U,ie.path),F=r.resolve({path:S.path},ie),Z=i.createHref(S.fullPath);return ar(S,F,{params:d(F.params),hash:lp(S.hash),redirectedFrom:void 0,href:Z})}let R;if("path"in U)R=ar({},U,{path:zb(e,U.path,ie.path).path});else{const S=ar({},U.params);for(const F in S)S[F]==null&&delete S[F];R=ar({},U,{params:c(S)}),ie.params=c(ie.params)}const x=r.resolve(R,ie),B=U.hash||"";x.params=u(d(x.params));const K=One(n,ar({},U,{hash:cie(B),path:x.path})),$=i.createHref(K);return ar({fullPath:K,hash:B,query:n===Jx?Cie(U.query):U.query||{}},x,{redirectedFrom:void 0,href:$})}function v(U){return typeof U=="string"?zb(e,U,l.value.path):ar({},U)}function p(U,ie){if(g!==U)return Oc(8,{from:ie,to:U})}function y(U){return P(U)}function b(U){return y(ar(v(U),{replace:!0}))}function _(U){const ie=U.matched[U.matched.length-1];if(ie&&ie.redirect){const{redirect:R}=ie;let x=typeof R=="function"?R(U):R;return typeof x=="string"&&(x=x.includes("?")||x.includes("#")?x=v(x):{path:x},x.params={}),ar({query:U.query,hash:U.hash,params:"path"in x?{}:U.params},x)}}function P(U,ie){const R=g=I(U),x=l.value,B=U.state,K=U.force,$=U.replace===!0,S=_(R);if(S)return P(ar(v(S),{state:typeof S=="object"?ar({},B,S.state):B,force:K,replace:$}),ie||R);const F=R;F.redirectedFrom=ie;let Z;return!K&&kne(n,x,R)&&(Z=Oc(16,{to:F,from:x}),Le(x,x,!0,!1)),(Z?Promise.resolve(Z):O(F,x)).catch(G=>Aa(G)?Aa(G,2)?G:He(G):oe(G,F,x)).then(G=>{if(G){if(Aa(G,2))return P(ar({replace:$},v(G.to),{state:typeof G.to=="object"?ar({},B,G.to.state):B,force:K}),ie||F)}else G=D(F,x,!0,$,B);return N(F,x,G),G})}function k(U,ie){const R=p(U,ie);return R?Promise.reject(R):Promise.resolve()}function E(U){const ie=We.values().next().value;return ie&&typeof ie.runWithContext=="function"?ie.runWithContext(U):U()}function O(U,ie){let R;const[x,B,K]=_ie(U,ie);R=Vb(x.reverse(),"beforeRouteLeave",U,ie);for(const S of x)S.leaveGuards.forEach(F=>{R.push(Is(F,U,ie))});const $=k.bind(null,U,ie);return R.push($),At(R).then(()=>{R=[];for(const S of o.list())R.push(Is(S,U,ie));return R.push($),At(R)}).then(()=>{R=Vb(B,"beforeRouteUpdate",U,ie);for(const S of B)S.updateGuards.forEach(F=>{R.push(Is(F,U,ie))});return R.push($),At(R)}).then(()=>{R=[];for(const S of K)if(S.beforeEnter)if(yo(S.beforeEnter))for(const F of S.beforeEnter)R.push(Is(F,U,ie));else R.push(Is(S.beforeEnter,U,ie));return R.push($),At(R)}).then(()=>(U.matched.forEach(S=>S.enterCallbacks={}),R=Vb(K,"beforeRouteEnter",U,ie),R.push($),At(R))).then(()=>{R=[];for(const S of a.list())R.push(Is(S,U,ie));return R.push($),At(R)}).catch(S=>Aa(S,8)?S:Promise.reject(S))}function N(U,ie,R){s.list().forEach(x=>E(()=>x(U,ie,R)))}function D(U,ie,R,x,B){const K=p(U,ie);if(K)return K;const $=ie===ts,S=Mu?history.state:{};R&&(x||$?i.replace(U.fullPath,ar({scroll:$&&S&&S.scroll},B)):i.push(U.fullPath,B)),l.value=U,Le(U,ie,R,$),He()}let M;function Q(){M||(M=i.listen((U,ie,R)=>{if(!ot.listening)return;const x=I(U),B=_(x);if(B){P(ar(B,{replace:!0}),x).catch(xh);return}g=x;const K=l.value;Mu&&Lne(Ux(K.fullPath,R.delta),Bne()),O(x,K).catch($=>Aa($,12)?$:Aa($,2)?(P($.to,x).then(S=>{Aa(S,20)&&!R.delta&&R.type===lA.pop&&i.go(-1,!1)}).catch(xh),Promise.reject()):(R.delta&&i.go(-R.delta,!1),oe($,x,K))).then($=>{$=$||D(x,K,!1),$&&(R.delta&&!Aa($,8)?i.go(-R.delta,!1):R.type===lA.pop&&Aa($,20)&&i.go(-1,!1)),N(x,K,$)}).catch(xh)}))}let j=rh(),W=rh(),q;function oe(U,ie,R){He(U);const x=W.list();return x.length?x.forEach(B=>B(U,ie,R)):console.error(U),Promise.reject(U)}function Pe(){return q&&l.value!==ts?Promise.resolve():new Promise((U,ie)=>{j.add([U,ie])})}function He(U){return q||(q=!U,Q(),j.list().forEach(([ie,R])=>U?R(U):ie()),j.reset()),U}function Le(U,ie,R,x){const{scrollBehavior:B}=t;if(!Mu||!B)return Promise.resolve();const K=!R&&zne(Ux(U.fullPath,0))||(x||!R)&&history.state&&history.state.scroll||null;return mn().then(()=>B(U,ie,K)).then($=>$&&Fne($)).catch($=>oe($,U,ie))}const me=U=>i.go(U);let Ve;const We=new Set,ot={currentRoute:l,listening:!0,addRoute:h,removeRoute:A,hasRoute:C,getRoutes:f,resolve:I,options:t,push:y,replace:b,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:W.add,isReady:Pe,install(U){const ie=this;U.component("RouterLink",S8),U.component("RouterView",$ie),U.config.globalProperties.$router=ie,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>m(l)}),Mu&&!Ve&&l.value===ts&&(Ve=!0,y(i.location).catch(B=>{}));const R={};for(const B in ts)Object.defineProperty(R,B,{get:()=>l.value[B],enumerable:!0});U.provide(Dm,ie),U.provide(m2,qS(R)),U.provide(s_,l);const x=U.unmount;We.add(U),U.unmount=function(){We.delete(U),We.size<1&&(g=ts,M&&M(),M=null,l.value=ts,Ve=!1,q=!1),x()}}};function At(U){return U.reduce((ie,R)=>ie.then(()=>E(R)),Promise.resolve())}return ot}function _ie(t,r){const e=[],n=[],i=[],o=Math.max(r.matched.length,t.matched.length);for(let a=0;a<o;a++){const s=r.matched[a];s&&(t.matched.find(g=>Tc(g,s))?n.push(s):e.push(s));const l=t.matched[a];l&&(r.matched.find(g=>Tc(g,l))||i.push(l))}return[e,n,i]}function gd(){return Tr(Dm)}function Nm(){return Tr(m2)}const Eie="modulepreload",Sie=function(t,r){return new URL(t,r).href},oP={},$n=function(r,e,n){let i=Promise.resolve();if(e&&e.length>0){const o=document.getElementsByTagName("link");i=Promise.all(e.map(a=>{if(a=Sie(a,n),a in oP)return;oP[a]=!0;const s=a.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!n)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===a&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":Eie,s||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),s)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})}))}return i.then(()=>r()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})};async function Tie(t="/",r=!0){try{const e=`${t}@vite/client`,n=await fetch(e);if((await n.text()).startsWith("<")||!n.headers.get("content-type")?.includes("javascript"))throw new Error("Not javascript");return await $n(()=>import(e),__vite__mapDeps([]),import.meta.url)}catch{r&&console.error(`[vite-hot-client] Failed to import "${t}@vite/client"`)}}const Oie=["src","alt"],kie=["title"],qA=we({__name:"TabIcon",props:{icon:{},title:{},showTitle:{type:Boolean,default:!0}},setup(t){return(r,e)=>r.icon&&(r.icon.startsWith("/")||r.icon.match(/^https?:/))?(T(),L("img",wn({key:0,style:{width:"1em",height:"1em"}},r.$attrs,{src:r.icon,alt:r.title}),null,16,Oie)):(T(),L("div",wn({key:1,style:{width:"1em",height:"1em"}},r.$attrs,{class:r.icon||"i-carbon-bring-forward",title:r.showTitle?r.title:void 0}),null,16,kie))}}),xie=["top","right","bottom","left"],aP=["start","end"],sP=xie.reduce((t,r)=>t.concat(r,r+"-"+aP[0],r+"-"+aP[1]),[]),gA=Math.min,zl=Math.max,Pie={left:"right",right:"left",bottom:"top",top:"bottom"},Rie={start:"end",end:"start"};function l_(t,r,e){return zl(t,gA(r,e))}function Gg(t,r){return typeof t=="function"?t(r):t}function ra(t){return t.split("-")[0]}function po(t){return t.split("-")[1]}function T8(t){return t==="x"?"y":"x"}function y2(t){return t==="y"?"height":"width"}function JA(t){return["top","bottom"].includes(ra(t))?"y":"x"}function b2(t){return T8(JA(t))}function O8(t,r,e){e===void 0&&(e=!1);const n=po(t),i=b2(t),o=y2(i);let a=i==="x"?n===(e?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[o]>r.floating[o]&&(a=up(a)),[a,up(a)]}function Die(t){const r=up(t);return[gp(t),r,gp(r)]}function gp(t){return t.replace(/start|end/g,r=>Rie[r])}function Nie(t,r,e){const n=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?r?i:n:r?n:i;case"left":case"right":return r?o:a;default:return[]}}function Mie(t,r,e,n){const i=po(t);let o=Nie(ra(t),e==="start",n);return i&&(o=o.map(a=>a+"-"+i),r&&(o=o.concat(o.map(gp)))),o}function up(t){return t.replace(/left|right|bottom|top/g,r=>Pie[r])}function Bie(t){return{top:0,right:0,bottom:0,left:0,...t}}function k8(t){return typeof t!="number"?Bie(t):{top:t,right:t,bottom:t,left:t}}function Ph(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function lP(t,r,e){let{reference:n,floating:i}=t;const o=JA(r),a=b2(r),s=y2(a),l=ra(r),g=o==="y",u=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2;let h;switch(l){case"top":h={x:u,y:n.y-i.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:c};break;case"left":h={x:n.x-i.width,y:c};break;default:h={x:n.x,y:n.y}}switch(po(r)){case"start":h[a]-=d*(e&&g?-1:1);break;case"end":h[a]+=d*(e&&g?-1:1);break}return h}const Fie=async(t,r,e)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=e,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(r));let g=await a.getElementRects({reference:t,floating:r,strategy:i}),{x:u,y:c}=lP(g,n,l),d=n,h={},A=0;for(let f=0;f<s.length;f++){const{name:C,fn:I}=s[f],{x:v,y:p,data:y,reset:b}=await I({x:u,y:c,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:g,platform:a,elements:{reference:t,floating:r}});if(u=v??u,c=p??c,h={...h,[C]:{...h[C],...y}},b&&A<=50){A++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(g=b.rects===!0?await a.getElementRects({reference:t,floating:r,strategy:i}):b.rects),{x:u,y:c}=lP(g,d,l)),f=-1;continue}}return{x:u,y:c,placement:d,strategy:i,middlewareData:h}};async function Mm(t,r){var e;r===void 0&&(r={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=t,{boundary:g="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:d=!1,padding:h=0}=Gg(r,t),A=k8(h),C=s[d?c==="floating"?"reference":"floating":c],I=Ph(await o.getClippingRect({element:(e=await(o.isElement==null?void 0:o.isElement(C)))==null||e?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:g,rootBoundary:u,strategy:l})),v=c==="floating"?{...a.floating,x:n,y:i}:a.reference,p=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),y=await(o.isElement==null?void 0:o.isElement(p))?await(o.getScale==null?void 0:o.getScale(p))||{x:1,y:1}:{x:1,y:1},b=Ph(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:p,strategy:l}):v);return{top:(I.top-b.top+A.top)/y.y,bottom:(b.bottom-I.bottom+A.bottom)/y.y,left:(I.left-b.left+A.left)/y.x,right:(b.right-I.right+A.right)/y.x}}const Lie=t=>({name:"arrow",options:t,async fn(r){const{x:e,y:n,placement:i,rects:o,platform:a,elements:s}=r,{element:l,padding:g=0}=Gg(t,r)||{};if(l==null)return{};const u=k8(g),c={x:e,y:n},d=b2(i),h=y2(d),A=await a.getDimensions(l),f=d==="y",C=f?"top":"left",I=f?"bottom":"right",v=f?"clientHeight":"clientWidth",p=o.reference[h]+o.reference[d]-c[d]-o.floating[h],y=c[d]-o.reference[d],b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let _=b?b[v]:0;(!_||!await(a.isElement==null?void 0:a.isElement(b)))&&(_=s.floating[v]||o.floating[h]);const P=p/2-y/2,k=_/2-A[h]/2-1,E=gA(u[C],k),O=gA(u[I],k),N=E,D=_-A[h]-O,M=_/2-A[h]/2+P,Q=l_(N,M,D),W=po(i)!=null&&M!=Q&&o.reference[h]/2-(M<N?E:O)-A[h]/2<0?M<N?N-M:D-M:0;return{[d]:c[d]-W,data:{[d]:Q,centerOffset:M-Q+W}}}});function zie(t,r,e){return(t?[...e.filter(i=>po(i)===t),...e.filter(i=>po(i)!==t)]:e.filter(i=>ra(i)===i)).filter(i=>t?po(i)===t||(r?gp(i)!==i:!1):!0)}const jie=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(r){var e,n,i;const{rects:o,middlewareData:a,placement:s,platform:l,elements:g}=r,{crossAxis:u=!1,alignment:c,allowedPlacements:d=sP,autoAlignment:h=!0,...A}=Gg(t,r),f=c!==void 0||d===sP?zie(c||null,h,d):d,C=await Mm(r,A),I=((e=a.autoPlacement)==null?void 0:e.index)||0,v=f[I];if(v==null)return{};const p=O8(v,o,await(l.isRTL==null?void 0:l.isRTL(g.floating)));if(s!==v)return{reset:{placement:f[0]}};const y=[C[ra(v)],C[p[0]],C[p[1]]],b=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:v,overflows:y}],_=f[I+1];if(_)return{data:{index:I+1,overflows:b},reset:{placement:_}};const P=b.map(O=>{const N=po(O.placement);return[O.placement,N&&u?O.overflows.slice(0,2).reduce((D,M)=>D+M,0):O.overflows[0],O.overflows]}).sort((O,N)=>O[1]-N[1]),E=((i=P.filter(O=>O[2].slice(0,po(O[0])?2:3).every(N=>N<=0))[0])==null?void 0:i[0])||P[0][0];return E!==s?{data:{index:I+1,overflows:b},reset:{placement:E}}:{}}}},Vie=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var e;const{placement:n,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:l}=r,{mainAxis:g=!0,crossAxis:u=!0,fallbackPlacements:c,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:A=!0,...f}=Gg(t,r),C=ra(n),I=ra(a)===a,v=await(s.isRTL==null?void 0:s.isRTL(l.floating)),p=c||(I||!A?[up(a)]:Die(a));!c&&h!=="none"&&p.push(...Mie(a,A,h,v));const y=[a,...p],b=await Mm(r,f),_=[];let P=((e=i.flip)==null?void 0:e.overflows)||[];if(g&&_.push(b[C]),u){const N=O8(n,o,v);_.push(b[N[0]],b[N[1]])}if(P=[...P,{placement:n,overflows:_}],!_.every(N=>N<=0)){var k,E;const N=(((k=i.flip)==null?void 0:k.index)||0)+1,D=y[N];if(D)return{data:{index:N,overflows:P},reset:{placement:D}};let M=(E=P.filter(Q=>Q.overflows[0]<=0).sort((Q,j)=>Q.overflows[1]-j.overflows[1])[0])==null?void 0:E.placement;if(!M)switch(d){case"bestFit":{var O;const Q=(O=P.map(j=>[j.placement,j.overflows.filter(W=>W>0).reduce((W,q)=>W+q,0)]).sort((j,W)=>j[1]-W[1])[0])==null?void 0:O[0];Q&&(M=Q);break}case"initialPlacement":M=a;break}if(n!==M)return{reset:{placement:M}}}return{}}}};async function Gie(t,r){const{placement:e,platform:n,elements:i}=t,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=ra(e),s=po(e),l=JA(e)==="y",g=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,c=Gg(r,t);let{mainAxis:d,crossAxis:h,alignmentAxis:A}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&typeof A=="number"&&(h=s==="end"?A*-1:A),l?{x:h*u,y:d*g}:{x:d*g,y:h*u}}const Wie=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){const{x:e,y:n}=r,i=await Gie(r,t);return{x:e+i.x,y:n+i.y,data:i}}}},Hie=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:e,y:n,placement:i}=r,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:C=>{let{x:I,y:v}=C;return{x:I,y:v}}},...l}=Gg(t,r),g={x:e,y:n},u=await Mm(r,l),c=JA(ra(i)),d=T8(c);let h=g[d],A=g[c];if(o){const C=d==="y"?"top":"left",I=d==="y"?"bottom":"right",v=h+u[C],p=h-u[I];h=l_(v,h,p)}if(a){const C=c==="y"?"top":"left",I=c==="y"?"bottom":"right",v=A+u[C],p=A-u[I];A=l_(v,A,p)}const f=s.fn({...r,[d]:h,[c]:A});return{...f,data:{x:f.x-e,y:f.y-n}}}}},Uie=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){const{placement:e,rects:n,platform:i,elements:o}=r,{apply:a=()=>{},...s}=Gg(t,r),l=await Mm(r,s),g=ra(e),u=po(e),c=JA(e)==="y",{width:d,height:h}=n.floating;let A,f;g==="top"||g==="bottom"?(A=g,f=u===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(f=g,A=u==="end"?"top":"bottom");const C=h-l[A],I=d-l[f],v=!r.middlewareData.shift;let p=C,y=I;if(c){const _=d-l.left-l.right;y=u||v?gA(I,_):_}else{const _=h-l.top-l.bottom;p=u||v?gA(C,_):_}if(v&&!u){const _=zl(l.left,0),P=zl(l.right,0),k=zl(l.top,0),E=zl(l.bottom,0);c?y=d-2*(_!==0||P!==0?_+P:zl(l.left,l.right)):p=h-2*(k!==0||E!==0?k+E:zl(l.top,l.bottom))}await a({...r,availableWidth:y,availableHeight:p});const b=await i.getDimensions(o.floating);return d!==b.width||h!==b.height?{reset:{rects:!0}}:{}}}};function Vi(t){var r;return((r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Zo(t){return Vi(t).getComputedStyle(t)}const gP=Math.min,Rh=Math.max,cp=Math.round;function x8(t){const r=Zo(t);let e=parseFloat(r.width),n=parseFloat(r.height);const i=t.offsetWidth,o=t.offsetHeight,a=cp(e)!==i||cp(n)!==o;return a&&(e=i,n=o),{width:e,height:n,fallback:a}}function rl(t){return R8(t)?(t.nodeName||"").toLowerCase():""}let BC;function P8(){if(BC)return BC;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(BC=t.brands.map(r=>r.brand+"/"+r.version).join(" "),BC):navigator.userAgent}function Ko(t){return t instanceof Vi(t).HTMLElement}function Ps(t){return t instanceof Vi(t).Element}function R8(t){return t instanceof Vi(t).Node}function uP(t){return typeof ShadowRoot>"u"?!1:t instanceof Vi(t).ShadowRoot||t instanceof ShadowRoot}function Bm(t){const{overflow:r,overflowX:e,overflowY:n,display:i}=Zo(t);return/auto|scroll|overlay|hidden|clip/.test(r+n+e)&&!["inline","contents"].includes(i)}function Zie(t){return["table","td","th"].includes(rl(t))}function g_(t){const r=/firefox/i.test(P8()),e=Zo(t),n=e.backdropFilter||e.WebkitBackdropFilter;return e.transform!=="none"||e.perspective!=="none"||!!n&&n!=="none"||r&&e.willChange==="filter"||r&&!!e.filter&&e.filter!=="none"||["transform","perspective"].some(i=>e.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const o=e.contain;return o!=null&&o.includes(i)})}function D8(){return!/^((?!chrome|android).)*safari/i.test(P8())}function $2(t){return["html","body","#document"].includes(rl(t))}function N8(t){return Ps(t)?t:t.contextElement}const M8={x:1,y:1};function gc(t){const r=N8(t);if(!Ko(r))return M8;const e=r.getBoundingClientRect(),{width:n,height:i,fallback:o}=x8(r);let a=(o?cp(e.width):e.width)/n,s=(o?cp(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function uA(t,r,e,n){var i,o;r===void 0&&(r=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),s=N8(t);let l=M8;r&&(n?Ps(n)&&(l=gc(n)):l=gc(t));const g=s?Vi(s):window,u=!D8()&&e;let c=(a.left+(u&&((i=g.visualViewport)==null?void 0:i.offsetLeft)||0))/l.x,d=(a.top+(u&&((o=g.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,h=a.width/l.x,A=a.height/l.y;if(s){const f=Vi(s),C=n&&Ps(n)?Vi(n):n;let I=f.frameElement;for(;I&&n&&C!==f;){const v=gc(I),p=I.getBoundingClientRect(),y=getComputedStyle(I);p.x+=(I.clientLeft+parseFloat(y.paddingLeft))*v.x,p.y+=(I.clientTop+parseFloat(y.paddingTop))*v.y,c*=v.x,d*=v.y,h*=v.x,A*=v.y,c+=p.x,d+=p.y,I=Vi(I).frameElement}}return{width:h,height:A,top:d,right:c+h,bottom:d+A,left:c,x:c,y:d}}function Rs(t){return((R8(t)?t.ownerDocument:t.document)||window.document).documentElement}function Fm(t){return Ps(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function B8(t){return uA(Rs(t)).left+Fm(t).scrollLeft}function cA(t){if(rl(t)==="html")return t;const r=t.assignedSlot||t.parentNode||uP(t)&&t.host||Rs(t);return uP(r)?r.host:r}function F8(t){const r=cA(t);return $2(r)?r.ownerDocument.body:Ko(r)&&Bm(r)?r:F8(r)}function dp(t,r){var e;r===void 0&&(r=[]);const n=F8(t),i=n===((e=t.ownerDocument)==null?void 0:e.body),o=Vi(n);return i?r.concat(o,o.visualViewport||[],Bm(n)?n:[]):r.concat(n,dp(n))}function cP(t,r,e){return r==="viewport"?Ph(function(n,i){const o=Vi(n),a=Rs(n),s=o.visualViewport;let l=a.clientWidth,g=a.clientHeight,u=0,c=0;if(s){l=s.width,g=s.height;const d=D8();(d||!d&&i==="fixed")&&(u=s.offsetLeft,c=s.offsetTop)}return{width:l,height:g,x:u,y:c}}(t,e)):Ps(r)?Ph(function(n,i){const o=uA(n,!0,i==="fixed"),a=o.top+n.clientTop,s=o.left+n.clientLeft,l=Ko(n)?gc(n):{x:1,y:1};return{width:n.clientWidth*l.x,height:n.clientHeight*l.y,x:s*l.x,y:a*l.y}}(r,e)):Ph(function(n){const i=Rs(n),o=Fm(n),a=n.ownerDocument.body,s=Rh(i.scrollWidth,i.clientWidth,a.scrollWidth,a.clientWidth),l=Rh(i.scrollHeight,i.clientHeight,a.scrollHeight,a.clientHeight);let g=-o.scrollLeft+B8(n);const u=-o.scrollTop;return Zo(a).direction==="rtl"&&(g+=Rh(i.clientWidth,a.clientWidth)-s),{width:s,height:l,x:g,y:u}}(Rs(t)))}function dP(t){return Ko(t)&&Zo(t).position!=="fixed"?t.offsetParent:null}function hP(t){const r=Vi(t);let e=dP(t);for(;e&&Zie(e)&&Zo(e).position==="static";)e=dP(e);return e&&(rl(e)==="html"||rl(e)==="body"&&Zo(e).position==="static"&&!g_(e))?r:e||function(n){let i=cA(n);for(;Ko(i)&&!$2(i);){if(g_(i))return i;i=cA(i)}return null}(t)||r}function Kie(t,r,e){const n=Ko(r),i=Rs(r),o=uA(t,!0,e==="fixed",r);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(n||!n&&e!=="fixed")if((rl(r)!=="body"||Bm(i))&&(a=Fm(r)),Ko(r)){const l=uA(r,!0);s.x=l.x+r.clientLeft,s.y=l.y+r.clientTop}else i&&(s.x=B8(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}const Yie={getClippingRect:function(t){let{element:r,boundary:e,rootBoundary:n,strategy:i}=t;const o=e==="clippingAncestors"?function(g,u){const c=u.get(g);if(c)return c;let d=dp(g).filter(C=>Ps(C)&&rl(C)!=="body"),h=null;const A=Zo(g).position==="fixed";let f=A?cA(g):g;for(;Ps(f)&&!$2(f);){const C=Zo(f),I=g_(f);(A?I||h:I||C.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=C:d=d.filter(v=>v!==f),f=cA(f)}return u.set(g,d),d}(r,this._c):[].concat(e),a=[...o,n],s=a[0],l=a.reduce((g,u)=>{const c=cP(r,u,i);return g.top=Rh(c.top,g.top),g.right=gP(c.right,g.right),g.bottom=gP(c.bottom,g.bottom),g.left=Rh(c.left,g.left),g},cP(r,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:r,offsetParent:e,strategy:n}=t;const i=Ko(e),o=Rs(e);if(e===o)return r;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((i||!i&&n!=="fixed")&&((rl(e)!=="body"||Bm(o))&&(a=Fm(e)),Ko(e))){const g=uA(e);s=gc(e),l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}return{width:r.width*s.x,height:r.height*s.y,x:r.x*s.x-a.scrollLeft*s.x+l.x,y:r.y*s.y-a.scrollTop*s.y+l.y}},isElement:Ps,getDimensions:function(t){return Ko(t)?x8(t):t.getBoundingClientRect()},getOffsetParent:hP,getDocumentElement:Rs,getScale:gc,async getElementRects(t){let{reference:r,floating:e,strategy:n}=t;const i=this.getOffsetParent||hP,o=this.getDimensions;return{reference:Kie(r,await i(e),n),floating:{x:0,y:0,...await o(e)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>Zo(t).direction==="rtl"},Xie=(t,r,e)=>{const n=new Map,i={platform:Yie,...e},o={...i.platform,_c:n};return Fie(t,r,{...i,platform:o})},og={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function dA(t,r){let e=og.themes[t]||{},n;do n=e[r],typeof n>"u"?e.$extend?e=og.themes[e.$extend]||{}:(e=null,n=og[r]):e=null;while(e);return n}function Qie(t){const r=[t];let e=og.themes[t]||{};do e.$extend&&!e.$resetCss?(r.push(e.$extend),e=og.themes[e.$extend]||{}):e=null;while(e);return r.map(n=>`v-popper--theme-${n}`)}function AP(t){const r=[t];let e=og.themes[t]||{};do e.$extend?(r.push(e.$extend),e=og.themes[e.$extend]||{}):e=null;while(e);return r}let $g=!1;if(typeof window<"u"){$g=!1;try{const t=Object.defineProperty({},"passive",{get(){$g=!0}});window.addEventListener("test",null,t)}catch{}}let L8=!1;typeof window<"u"&&typeof navigator<"u"&&(L8=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const z8=["auto","top","bottom","left","right"].reduce((t,r)=>t.concat([r,`${r}-start`,`${r}-end`]),[]),fP={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},CP={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function IP(t,r){const e=t.indexOf(r);e!==-1&&t.splice(e,1)}function Gb(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const co=[];let Ml=null;const vP={};function pP(t){let r=vP[t];return r||(r=vP[t]=[]),r}let u_=function(){};typeof window<"u"&&(u_=window.Element);function $t(t){return function(r){return dA(r.theme,t)}}const Wb="__floating-vue__popper",j8=()=>we({name:"VPopper",provide(){return{[Wb]:{parentPopper:this}}},inject:{[Wb]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:$t("disabled")},positioningDisabled:{type:Boolean,default:$t("positioningDisabled")},placement:{type:String,default:$t("placement"),validator:t=>z8.includes(t)},delay:{type:[String,Number,Object],default:$t("delay")},distance:{type:[Number,String],default:$t("distance")},skidding:{type:[Number,String],default:$t("skidding")},triggers:{type:Array,default:$t("triggers")},showTriggers:{type:[Array,Function],default:$t("showTriggers")},hideTriggers:{type:[Array,Function],default:$t("hideTriggers")},popperTriggers:{type:Array,default:$t("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:$t("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:$t("popperHideTriggers")},container:{type:[String,Object,u_,Boolean],default:$t("container")},boundary:{type:[String,u_],default:$t("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:$t("strategy")},autoHide:{type:[Boolean,Function],default:$t("autoHide")},handleResize:{type:Boolean,default:$t("handleResize")},instantMove:{type:Boolean,default:$t("instantMove")},eagerMount:{type:Boolean,default:$t("eagerMount")},popperClass:{type:[String,Array,Object],default:$t("popperClass")},computeTransformOrigin:{type:Boolean,default:$t("computeTransformOrigin")},autoMinSize:{type:Boolean,default:$t("autoMinSize")},autoSize:{type:[Boolean,String],default:$t("autoSize")},autoMaxSize:{type:Boolean,default:$t("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:$t("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:$t("preventOverflow")},overflowPadding:{type:[Number,String],default:$t("overflowPadding")},arrowPadding:{type:[Number,String],default:$t("arrowPadding")},arrowOverflow:{type:Boolean,default:$t("arrowOverflow")},flip:{type:Boolean,default:$t("flip")},shift:{type:Boolean,default:$t("shift")},shiftCrossAxis:{type:Boolean,default:$t("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:$t("noAutoFocus")},disposeTimeout:{type:Number,default:$t("disposeTimeout")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var t;return(t=this[Wb])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,r;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((r=this.popperShowTriggers)==null?void 0:r.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((t,r)=>(t[r]="$_refreshListeners",t),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,r)=>(t[r]="$_computePosition",t),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:r=!1,force:e=!1}={}){var n,i;(n=this.parentPopper)!=null&&n.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(e||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(t,r),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:r=!1}={}){var e;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:r}),this.parentPopper.lockedChild=null)},1e3));return}((e=this.parentPopper)==null?void 0:e.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(t,r),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var t;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((t=this.referenceNode)==null?void 0:t.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(r=>r.nodeType===r.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(Wie({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");if(r?t.middleware.push(jie({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(Hie({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&t.middleware.push(Vie({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(Lie({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:i,middlewareData:o})=>{let a;const{centerOffset:s}=o.arrow;return n.startsWith("top")||n.startsWith("bottom")?a=Math.abs(s)>i.reference.width/2:a=Math.abs(s)>i.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const n=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:i,placement:o,middlewareData:a})=>{var s;if((s=a.autoSize)!=null&&s.skip)return{};let l,g;return o.startsWith("top")||o.startsWith("bottom")?l=i.reference.width:g=i.reference.height,this.$_innerNode.style[n==="min"?"minWidth":n==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[n==="min"?"minHeight":n==="max"?"maxHeight":"height"]=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(Uie({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:n,availableHeight:i})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const e=await Xie(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:e.x,y:e.y,placement:e.placement,strategy:e.strategy,arrow:{...e.middlewareData.arrow,...e.middlewareData.arrowOverflow}})},$_scheduleShow(t=null,r=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ml&&this.instantMove&&Ml.instantMove&&Ml!==this.parentPopper){Ml.$_applyHide(!0),this.$_applyShow(!0);return}r?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,r=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ml=this),r?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const r=this.delay;return parseInt(r&&r[t]||r||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await Gb(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...dp(this.$_referenceNode),...dp(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const r=this.$_referenceNode.getBoundingClientRect(),e=this.$_popperNode.querySelector(".v-popper__wrapper"),n=e.parentNode.getBoundingClientRect(),i=r.x+r.width/2-(n.left+e.offsetLeft),o=r.y+r.height/2-(n.top+e.offsetTop);this.result.transformOrigin=`${i}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let r;for(let e=0;e<co.length;e++)r=co[e],r.showGroup!==t&&(r.hide(),r.$emit("close-group"))}co.push(this),document.body.classList.add("v-popper--some-open");for(const r of AP(this.theme))pP(r).push(this),document.body.classList.add(`v-popper--some-open--${r}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Gb(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,IP(co,this),co.length===0&&document.body.classList.remove("v-popper--some-open");for(const e of AP(this.theme)){const n=pP(e);IP(n,this),n.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}Ml===this&&(Ml=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const r=this.disposeTimeout;r!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},r)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Gb(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,fP,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],fP,this.popperTriggers,this.popperShowTriggers,t);const r=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,CP,this.triggers,this.hideTriggers,r),this.$_registerTriggerListeners([this.$_popperNode],CP,this.popperTriggers,this.popperHideTriggers,r)},$_registerEventListeners(t,r,e){this.$_events.push({targetNodes:t,eventType:r,handler:e}),t.forEach(n=>n.addEventListener(r,e,$g?{passive:!0}:void 0))},$_registerTriggerListeners(t,r,e,n,i){let o=e;n!=null&&(o=typeof n=="function"?n(o):n),o.forEach(a=>{const s=r[a];s&&this.$_registerEventListeners(t,s,i)})},$_removeEventListeners(t){const r=[];this.$_events.forEach(e=>{const{targetNodes:n,eventType:i,handler:o}=e;!t||t===i?n.forEach(a=>a.removeEventListener(i,o)):r.push(e)}),this.$_events=r},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,r=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),r&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,r){for(const e of this.$_targetNodes){const n=e.getAttribute(t);n&&(e.removeAttribute(t),e.setAttribute(r,n))}},$_applyAttrsToTarget(t){for(const r of this.$_targetNodes)for(const e in t){const n=t[e];n==null?r.removeAttribute(e):r.setAttribute(e,n)}},$_updateParentShownChildren(t){let r=this.parentPopper;for(;r;)t?r.shownChildren.add(this.randomId):(r.shownChildren.delete(this.randomId),r.$_pendingHide&&r.hide()),r=r.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if(Dh>=t.left&&Dh<=t.right&&Nh>=t.top&&Nh<=t.bottom){const r=this.$_popperNode.getBoundingClientRect(),e=Dh-os,n=Nh-as,i=r.left+r.width/2-os+(r.top+r.height/2)-as+r.width+r.height,o=os+e*i,a=as+n*i;return FC(os,as,o,a,r.left,r.top,r.left,r.bottom)||FC(os,as,o,a,r.left,r.top,r.right,r.top)||FC(os,as,o,a,r.right,r.top,r.right,r.bottom)||FC(os,as,o,a,r.left,r.bottom,r.right,r.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(L8?(document.addEventListener("touchstart",mP,$g?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Jie,$g?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",mP,!0),window.addEventListener("click",qie,!0)),window.addEventListener("resize",roe));function mP(t){for(let r=0;r<co.length;r++){const e=co[r];try{const n=e.popperNode();e.$_mouseDownContains=n.contains(t.target)}catch{}}}function qie(t){V8(t)}function Jie(t){V8(t,!0)}function V8(t,r=!1){const e={};for(let n=co.length-1;n>=0;n--){const i=co[n];try{const o=i.$_containsGlobalTarget=eoe(i,t);i.$_pendingHide=!1,requestAnimationFrame(()=>{if(i.$_pendingHide=!1,!e[i.randomId]&&yP(i,o,t)){if(i.$_handleGlobalClose(t,r),!t.closeAllPopover&&t.closePopover&&o){let s=i.parentPopper;for(;s;)e[s.randomId]=!0,s=s.parentPopper;return}let a=i.parentPopper;for(;a&&yP(a,a.$_containsGlobalTarget,t);)a.$_handleGlobalClose(t,r),a=a.parentPopper}})}catch{}}}function eoe(t,r){const e=t.popperNode();return t.$_mouseDownContains||e.contains(r.target)}function yP(t,r,e){return e.closeAllPopover||e.closePopover&&r||toe(t,e)&&!r}function toe(t,r){if(typeof t.autoHide=="function"){const e=t.autoHide(r);return t.lastAutoHide=e,e}return t.autoHide}function roe(t){for(let r=0;r<co.length;r++)co[r].$_computePosition(t)}let os=0,as=0,Dh=0,Nh=0;typeof window<"u"&&window.addEventListener("mousemove",t=>{os=Dh,as=Nh,Dh=t.clientX,Nh=t.clientY},$g?{passive:!0}:void 0);function FC(t,r,e,n,i,o,a,s){const l=((a-i)*(r-o)-(s-o)*(t-i))/((s-o)*(e-t)-(a-i)*(n-r)),g=((e-t)*(r-o)-(n-r)*(t-i))/((s-o)*(e-t)-(a-i)*(n-r));return l>=0&&l<=1&&g>=0&&g<=1}const noe={extends:j8()},Lm=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e};function ioe(t,r,e,n,i,o){return T(),L("div",{ref:"reference",class:Ee(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[Qe(t.$slots,"default",HA(sd(t.slotData)))],2)}const ooe=Lm(noe,[["render",ioe]]);function aoe(){var t=window.navigator.userAgent,r=t.indexOf("MSIE ");if(r>0)return parseInt(t.substring(r+5,t.indexOf(".",r)),10);var e=t.indexOf("Trident/");if(e>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let dv;function c_(){c_.init||(c_.init=!0,dv=aoe()!==-1)}var zm={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){c_(),mn(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",dv&&this.$el.appendChild(t),t.data="about:blank",dv||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!dv&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const soe=dj();mm("data-v-b329ee4c");const loe={class:"resize-observer",tabindex:"-1"};ym();const goe=soe((t,r,e,n,i,o)=>(T(),re("div",loe)));zm.render=goe;zm.__scopeId="data-v-b329ee4c";zm.__file="src/components/ResizeObserver.vue";const G8=(t="theme")=>({computed:{themeClass(){return Qie(this[t])}}}),uoe=we({name:"VPopperContent",components:{ResizeObserver:zm},mixins:[G8()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),coe=["id","aria-hidden","tabindex","data-popper-placement"],doe={ref:"inner",class:"v-popper__inner"},hoe=w("div",{class:"v-popper__arrow-outer"},null,-1),Aoe=w("div",{class:"v-popper__arrow-inner"},null,-1),foe=[hoe,Aoe];function Coe(t,r,e,n,i,o){const a=_i("ResizeObserver");return T(),L("div",{id:t.popperId,ref:"popover",class:Ee(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:Er(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:r[2]||(r[2]=jj(s=>t.autoHide&&t.$emit("hide"),["esc"]))},[w("div",{class:"v-popper__backdrop",onClick:r[0]||(r[0]=s=>t.autoHide&&t.$emit("hide"))}),w("div",{class:"v-popper__wrapper",style:Er(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[w("div",doe,[t.mounted?(T(),L(be,{key:0},[w("div",null,[Qe(t.$slots,"default")]),t.handleResize?(T(),re(a,{key:0,onNotify:r[1]||(r[1]=s=>t.$emit("resize",s))})):$e("",!0)],64)):$e("",!0)],512),w("div",{ref:"arrow",class:"v-popper__arrow-container",style:Er(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},foe,4)],4)],46,coe)}const W8=Lm(uoe,[["render",Coe]]),H8={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}},Ioe=we({name:"VPopperWrapper",components:{Popper:ooe,PopperContent:W8},mixins:[H8,G8("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function voe(t,r,e,n,i,o){const a=_i("PopperContent"),s=_i("Popper");return T(),re(s,{ref:"popper",theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:Ee([t.themeClass])},{default:V(({popperId:l,isShown:g,shouldMountContent:u,skipTransition:c,autoHide:d,show:h,hide:A,handleResize:f,onResize:C,classes:I,result:v})=>[Qe(t.$slots,"default",{shown:g,show:h,hide:A}),z(a,{ref:"popperContent","popper-id":l,theme:t.finalTheme,shown:g,mounted:u,"skip-transition":c,"auto-hide":d,"handle-resize":f,classes:I,result:v,onHide:A,onResize:C},{default:V(()=>[Qe(t.$slots,"popper",{shown:g,hide:A})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}const w2=Lm(Ioe,[["render",voe]]),poe={...w2,name:"VDropdown",vPopperTheme:"dropdown"};({...w2});const moe={...w2,name:"VTooltip",vPopperTheme:"tooltip"},yoe=we({name:"VTooltipDirective",components:{Popper:j8(),PopperContent:W8},mixins:[H8],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>dA(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>dA(t.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const r=++this.$_fetchId,e=this.content(this);e.then?e.then(n=>this.onResult(r,n)):this.onResult(r,e)}},onResult(t,r){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=r)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),boe=["innerHTML"],$oe=["textContent"];function woe(t,r,e,n,i,o){const a=_i("PopperContent"),s=_i("Popper");return T(),re(s,wn({ref:"popper"},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:V(({popperId:l,isShown:g,shouldMountContent:u,skipTransition:c,autoHide:d,hide:h,handleResize:A,onResize:f,classes:C,result:I})=>[z(a,{ref:"popperContent",class:Ee({"v-popper--tooltip-loading":t.loading}),"popper-id":l,theme:t.theme,shown:g,mounted:u,"skip-transition":c,"auto-hide":d,"handle-resize":A,classes:C,result:I,onHide:h,onResize:f},{default:V(()=>[t.html?(T(),L("div",{key:0,innerHTML:t.finalContent},null,8,boe)):(T(),L("div",{key:1,textContent:_e(t.finalContent)},null,8,$oe))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const _oe=Lm(yoe,[["render",woe]]),U8="v-popper--has-tooltip";function Eoe(t,r){let e=t.placement;if(!e&&r)for(const n of z8)r[n]&&(e=n);return e||(e=dA(t.theme||"tooltip","placement")),e}function Z8(t,r,e){let n;const i=typeof r;return i==="string"?n={content:r}:r&&i==="object"?n=r:n={content:!1},n.placement=Eoe(n,e),n.targetNodes=()=>[t],n.referenceNode=()=>t,n}let Hb,hA,Soe=0;function Toe(){if(Hb)return;hA=H([]),Hb=d2({name:"VTooltipDirectiveApp",setup(){return{directives:hA}},render(){return this.directives.map(r=>ld(_oe,{...r.options,shown:r.shown||r.options.shown,key:r.id}))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),Hb.mount(t)}function Ooe(t,r,e){Toe();const n=H(Z8(t,r,e)),i=H(!1),o={id:Soe++,options:n,shown:i};return hA.value.push(o),t.classList&&t.classList.add(U8),t.$_popper={options:n,item:o,show(){i.value=!0},hide(){i.value=!1}}}function K8(t){if(t.$_popper){const r=hA.value.indexOf(t.$_popper.item);r!==-1&&hA.value.splice(r,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(U8)}function bP(t,{value:r,modifiers:e}){const n=Z8(t,r,e);if(!n.content||dA(n.theme||"tooltip","disabled"))K8(t);else{let i;t.$_popper?(i=t.$_popper,i.options.value=n):i=Ooe(t,r,e),typeof r.shown<"u"&&r.shown!==t.$_popperOldShown&&(t.$_popperOldShown=r.shown,r.shown?i.show():i.hide())}}const koe={beforeMount:bP,updated:bP,beforeUnmount(t){K8(t)}};function $P(t){t.addEventListener("click",Y8),t.addEventListener("touchstart",X8,$g?{passive:!0}:!1)}function wP(t){t.removeEventListener("click",Y8),t.removeEventListener("touchstart",X8),t.removeEventListener("touchend",Q8),t.removeEventListener("touchcancel",q8)}function Y8(t){const r=t.currentTarget;t.closePopover=!r.$_vclosepopover_touch,t.closeAllPopover=r.$_closePopoverModifiers&&!!r.$_closePopoverModifiers.all}function X8(t){if(t.changedTouches.length===1){const r=t.currentTarget;r.$_vclosepopover_touch=!0;const e=t.changedTouches[0];r.$_vclosepopover_touchPoint=e,r.addEventListener("touchend",Q8),r.addEventListener("touchcancel",q8)}}function Q8(t){const r=t.currentTarget;if(r.$_vclosepopover_touch=!1,t.changedTouches.length===1){const e=t.changedTouches[0],n=r.$_vclosepopover_touchPoint;t.closePopover=Math.abs(e.screenY-n.screenY)<20&&Math.abs(e.screenX-n.screenX)<20,t.closeAllPopover=r.$_closePopoverModifiers&&!!r.$_closePopoverModifiers.all}}function q8(t){const r=t.currentTarget;r.$_vclosepopover_touch=!1}const xoe={beforeMount(t,{value:r,modifiers:e}){t.$_closePopoverModifiers=e,(typeof r>"u"||r)&&$P(t)},updated(t,{value:r,oldValue:e,modifiers:n}){t.$_closePopoverModifiers=n,r!==e&&(typeof r>"u"||r?$P(t):wP(t))},beforeUnmount(t){wP(t)}},$i=koe,J8=xoe,Poe=poe,Roe=moe,_2=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},Doe={},Noe={class:"h-3 w-3 $ui-inline-fcc"},Moe=w("svg",{class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[w("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),w("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),Boe=[Moe];function Foe(t,r){return T(),L("div",Noe,Boe)}const e6=_2(Doe,[["render",Foe]]),Loe={key:2},at=we({inheritAttrs:!1,__name:"Button",props:{type:{default:"default"},round:{type:[String,Boolean],default:"normal"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:"normal"},flat:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:r}){const e=t,n=r,i=ZJ(),o=J(()=>i.to?"router-link":i.href?"a":"button"),a=J(()=>e.loading||e.disabled);function s(c){if(a.value){c.preventDefault(),c.stopPropagation(),c.stopImmediatePropagation();return}n("click",c)}const l={common:{default:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",primary:"active:bg-primary-500-darker",accent:"active:bg-accent-500-darker",danger:"active:bg-danger-500-darker",warning:"active:bg-warning-500-darker",info:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",success:"active:bg-primary-100-darker dark:active:bg-gray-800-darker"},normal:{default:"bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter dark:hover:text-white",primary:" text-white bg-primary-500 hover:bg-primary-500-lighter dark:hover:bg-primary-500-darker",accent:"text-white bg-accent-500 hover:bg-accent-500-lighter dark:bg-accent-500-darker dark:bg-accent-300",danger:"text-white bg-danger-500 hover:bg-danger-500-lighter dark:hover:bg-danger-500-darker",warning:"text-white bg-warning-500 hover:bg-warning-500-lighter dark:hover:bg-warning-500-darker",info:"text-info-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter",success:"text-primary-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter"},flat:{default:"hover:bg-primary-100 hover:text-black !dark:text-white dark:hover:bg-primary-800",primary:"hover:bg-primary-500 hover:text-white",accent:"hover:bg-accent-500 hover:text-white",danger:"hover:bg-danger-500 hover:text-white",warning:"hover:bg-warning-500 hover:text-white",info:"hover:bg-primary-100 hover:text-info-500 dark:hover:bg-gray-800 dark:hover:text-info-400",success:"hover:bg-primary-100 hover:text-primary-500 dark:hover:bg-primary-800 dark:hover:text-primary-400"},outlined:{default:"hover:border-primary-100 hover:text-primary-300 hover:active:ring-primary-100:5 hover:active:bg-primary-100:5",primary:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5",accent:"hover:border-accent-500 hover:text-accent-500 active:ring-accent-500:5 active:bg-accent-500:5",danger:"hover:border-danger-500 hover:text-danger-500 active:ring-danger-500:5 active:bg-danger-500:5",warning:"hover:border-warning-500 hover:text-warning-500 active:ring-warning-500:5 active:bg-warning-500:5",info:"hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",success:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"}},g=bj(),u=J(()=>e.flat?l.flat[e.type]:e.outlined?l.outlined[e.type]:l.normal[e.type]);return(c,d)=>(T(),re(qs(o.value),wn(c.$attrs,{role:"button","aria-disabled":a.value,class:["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition",[[l.common[e.type]],{"rounded-full":e.round==="full","$ui-base-br":e.round==="normal","opacity-50 cursor-not-allowed":a.value,"bg-transparent":e.flat||e.outlined},[c.outlined?"b-1 $ui-border-base active:ring-3 shadow-sm":"border-none",c.size==="mini"?"px1 text-3 h5.5":"px3.5 text-3.5 h8",u.value]]],onClickCapture:s}),{default:V(()=>[c.loading?(T(),re(e6,{key:0,class:"mt0.5 h-full w3"})):Qe(c.$slots,"icon",{key:1,class:"h-full w3 $ui-inline-fcc"}),m(g).default?(T(),L("div",Loe,[Qe(c.$slots,"default")])):$e("",!0),Qe(c.$slots,"icon-right")]),_:3},16,["aria-disabled","class"]))}}),zoe={},joe={class:"mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function Voe(t,r){return T(),L("span",joe,[Qe(t.$slots,"default")])}const _P=_2(zoe,[["render",Voe]]),St=we({__name:"Icon",props:{icon:{},inline:{type:Boolean},action:{type:Boolean,default:!1}},setup(t){return(r,e)=>(T(),re(qs(r.inline?"span":"div"),{class:Ee(["$ui-base",[r.icon,r.action?"cursor-pointer hover:op50":""]])},null,8,["class"]))}});function jm(t){return US()?(V4(t),!0):!1}function Goe(t,r,{enumerable:e=!1,unwrap:n=!0}={}){for(const[i,o]of Object.entries(r))i!=="value"&&(ze(o)&&n?Object.defineProperty(t,i,{get(){return o.value},set(a){o.value=a},enumerable:e}):Object.defineProperty(t,i,{value:o,enumerable:e}));return t}function Ui(t){return typeof t=="function"?t():m(t)}const t6=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Woe=t=>typeof t<"u",Hoe=Object.prototype.toString,Uoe=t=>Hoe.call(t)==="[object Object]",hp=()=>{},EP=Zoe();function Zoe(){var t,r;return t6&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((r=window?.navigator)==null?void 0:r.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function r6(t,r){function e(...n){return new Promise((i,o)=>{Promise.resolve(t(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(i).catch(o)})}return e}const n6=t=>t();function Koe(t,r={}){let e,n,i=hp;const o=a=>{clearTimeout(a),i(),i=hp};return a=>{const s=Ui(t),l=Ui(r.maxWait);return e&&o(e),s<=0||l!==void 0&&l<=0?(n&&(o(n),n=null),Promise.resolve(a())):new Promise((g,u)=>{i=r.rejectOnCancel?u:g,l&&!n&&(n=setTimeout(()=>{e&&o(e),n=null,g(a())},l)),e=setTimeout(()=>{n&&o(n),n=null,g(a())},s)})}}function Yoe(t=n6){const r=H(!0);function e(){r.value=!1}function n(){r.value=!0}const i=(...o)=>{r.value&&t(...o)};return{isActive:Va(r),pause:e,resume:n,eventFilter:i}}function Xoe(t){return t||ul()}function i6(...t){if(t.length!==1)return oj(...t);const r=t[0];return typeof r=="function"?Va(n2(()=>({get:r,set:hp}))):H(r)}function Qoe(t,r=200,e={}){return r6(Koe(r,e),t)}function qoe(t,r=200,e={}){const n=H(t.value),i=Qoe(()=>{n.value=t.value},r,e);return et(t,()=>i()),n}function Joe(t,r={}){let e=t,n,i;const o=n2((l,g)=>(n=l,i=g,{get(){return a()},set(u){s(u)}}));function a(l=!0){return l&&n(),e}function s(l,g=!0){var u,c;if(l===e)return;const d=e;((u=r.onBeforeChange)==null?void 0:u.call(r,l,d))!==!1&&(e=l,(c=r.onChanged)==null||c.call(r,l,d),g&&i())}return Goe(o,{get:a,set:s,untrackedGet:()=>a(!1),silentSet:l=>s(l,!1),peek:()=>a(!1),lay:l=>s(l,!1)},{enumerable:!0})}function eae(t,r,e={}){const{eventFilter:n=n6,...i}=e;return et(t,r6(n,r),i)}function tae(t,r,e={}){const{eventFilter:n,...i}=e,{eventFilter:o,pause:a,resume:s,isActive:l}=Yoe(n);return{stop:eae(t,r,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function E2(t,r=!0,e){Xoe()?Si(t,e):r?t():mn(t)}function rae(t=!1,r={}){const{truthyValue:e=!0,falsyValue:n=!1}=r,i=ze(t),o=H(t);function a(s){if(arguments.length)return o.value=s,o.value;{const l=Ui(e);return o.value=o.value===l?Ui(n):l,o.value}}return i?a:[o,a]}function ws(t){var r;const e=Ui(t);return(r=e?.$el)!=null?r:e}const nl=t6?window:void 0;function Ap(...t){let r,e,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,n,i]=t,r=nl):[r,e,n,i]=t,!r)return hp;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const o=[],a=()=>{o.forEach(u=>u()),o.length=0},s=(u,c,d,h)=>(u.addEventListener(c,d,h),()=>u.removeEventListener(c,d,h)),l=et(()=>[ws(r),Ui(i)],([u,c])=>{if(a(),!u)return;const d=Uoe(c)?{...c}:c;o.push(...e.flatMap(h=>n.map(A=>s(u,h,A,d))))},{immediate:!0,flush:"post"}),g=()=>{l(),a()};return jm(g),g}function nae(t){return typeof t=="function"?t:typeof t=="string"?r=>r.key===t:Array.isArray(t)?r=>t.includes(r.key):()=>!0}function o6(...t){let r,e,n={};t.length===3?(r=t[0],e=t[1],n=t[2]):t.length===2?typeof t[1]=="object"?(r=!0,e=t[0],n=t[1]):(r=t[0],e=t[1]):(r=!0,e=t[0]);const{target:i=nl,eventName:o="keydown",passive:a=!1,dedupe:s=!1}=n,l=nae(r);return Ap(i,o,g=>{g.repeat&&Ui(s)||l(g)&&e(g)},a)}function iae(){const t=H(!1);return ul()&&Si(()=>{t.value=!0}),t}function a6(t){const r=iae();return J(()=>(r.value,!!t()))}function oae(t,r={}){const{window:e=nl}=r,n=a6(()=>e&&"matchMedia"in e&&typeof e.matchMedia=="function");let i;const o=H(!1),a=g=>{o.value=g.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},l=Mn(()=>{n.value&&(s(),i=e.matchMedia(Ui(t)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),o.value=i.matches)});return jm(()=>{l(),s(),i=void 0}),o}function aae(t){return JSON.parse(JSON.stringify(t))}const LC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zC="__vueuse_ssr_handlers__",sae=lae();function lae(){return zC in LC||(LC[zC]=LC[zC]||{}),LC[zC]}function s6(t,r){return sae[t]||r}function gae(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const uae={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},SP="vueuse-storage";function cae(t,r,e,n={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:g=!1,shallow:u,window:c=nl,eventFilter:d,onError:h=E=>{console.error(E)},initOnMounted:A}=n,f=(u?aa:H)(typeof r=="function"?r():r);if(!e)try{e=s6("getDefaultStorage",()=>{var E;return(E=nl)==null?void 0:E.localStorage})()}catch(E){h(E)}if(!e)return f;const C=Ui(r),I=gae(C),v=(i=n.serializer)!=null?i:uae[I],{pause:p,resume:y}=tae(f,()=>b(f.value),{flush:o,deep:a,eventFilter:d});return c&&s&&E2(()=>{Ap(c,"storage",k),Ap(c,SP,P),A&&k()}),A||k(),f;function b(E){try{if(E==null)e.removeItem(t);else{const O=v.write(E),N=e.getItem(t);N!==O&&(e.setItem(t,O),c&&c.dispatchEvent(new CustomEvent(SP,{detail:{key:t,oldValue:N,newValue:O,storageArea:e}})))}}catch(O){h(O)}}function _(E){const O=E?E.newValue:e.getItem(t);if(O==null)return l&&C!=null&&e.setItem(t,v.write(C)),C;if(!E&&g){const N=v.read(O);return typeof g=="function"?g(N,C):I==="object"&&!Array.isArray(N)?{...C,...N}:N}else return typeof O!="string"?O:v.read(O)}function P(E){k(E.detail)}function k(E){if(!(E&&E.storageArea!==e)){if(E&&E.key==null){f.value=C;return}if(!(E&&E.key!==t)){p();try{E?.newValue!==v.write(f.value)&&(f.value=_(E))}catch(O){h(O)}finally{E?mn(y):y()}}}}}function dae(t){return oae("(prefers-color-scheme: dark)",t)}function hae(t={}){const{selector:r="html",attribute:e="class",initialValue:n="auto",window:i=nl,storage:o,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:g,disableTransition:u=!0}=t,c={auto:"",light:"light",dark:"dark",...t.modes||{}},d=dae({window:i}),h=J(()=>d.value?"dark":"light"),A=l||(a==null?i6(n):cae(a,n,o,{window:i,listenToStorageChanges:s})),f=J(()=>A.value==="auto"?h.value:A.value),C=s6("updateHTMLAttrs",(y,b,_)=>{const P=typeof y=="string"?i?.document.querySelector(y):ws(y);if(!P)return;let k;if(u){k=i.document.createElement("style");const E="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";k.appendChild(document.createTextNode(E)),i.document.head.appendChild(k)}if(b==="class"){const E=_.split(/\s/g);Object.values(c).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{E.includes(O)?P.classList.add(O):P.classList.remove(O)})}else P.setAttribute(b,_);u&&(i.getComputedStyle(k).opacity,document.head.removeChild(k))});function I(y){var b;C(r,e,(b=c[y])!=null?b:y)}function v(y){t.onChanged?t.onChanged(y,I):I(y)}et(f,v,{flush:"post",immediate:!0}),E2(()=>v(f.value));const p=J({get(){return g?A.value:f.value},set(y){A.value=y}});try{return Object.assign(p,{store:A,system:h,state:f})}catch{return p}}function Aae(t,r,e={}){const{window:n=nl,...i}=e;let o;const a=a6(()=>n&&"ResizeObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=J(()=>Array.isArray(t)?t.map(c=>ws(c)):[ws(t)]),g=et(l,c=>{if(s(),a.value&&n){o=new ResizeObserver(r);for(const d of c)d&&o.observe(d,i)}},{immediate:!0,flush:"post",deep:!0}),u=()=>{s(),g()};return jm(u),{isSupported:a,stop:u}}function fae(t,r={width:0,height:0},e={}){const{window:n=nl,box:i="content-box"}=e,o=J(()=>{var c,d;return(d=(c=ws(t))==null?void 0:c.namespaceURI)==null?void 0:d.includes("svg")}),a=H(r.width),s=H(r.height),{stop:l}=Aae(t,([c])=>{const d=i==="border-box"?c.borderBoxSize:i==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(n&&o.value){const h=ws(t);if(h){const A=n.getComputedStyle(h);a.value=Number.parseFloat(A.width),s.value=Number.parseFloat(A.height)}}else if(d){const h=Array.isArray(d)?d:[d];a.value=h.reduce((A,{inlineSize:f})=>A+f,0),s.value=h.reduce((A,{blockSize:f})=>A+f,0)}else a.value=c.contentRect.width,s.value=c.contentRect.height},e);E2(()=>{const c=ws(t);c&&(a.value="offsetWidth"in c?c.offsetWidth:r.width,s.value="offsetHeight"in c?c.offsetHeight:r.height)});const g=et(()=>ws(t),c=>{a.value=c?r.width:0,s.value=c?r.height:0});function u(){l(),g()}return{width:a,height:s,stop:u}}function Ub(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function l6(t){const r=window.getComputedStyle(t);if(r.overflowX==="scroll"||r.overflowY==="scroll"||r.overflowX==="auto"&&t.clientWidth<t.scrollWidth||r.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const e=t.parentNode;return!e||e.tagName==="BODY"?!1:l6(e)}}function Cae(t){const r=t||window.event,e=r.target;return l6(e)?!1:r.touches.length>1?!0:(r.preventDefault&&r.preventDefault(),!1)}const jC=new WeakMap;function Iae(t,r=!1){const e=H(r);let n=null,i;et(i6(t),s=>{const l=Ub(Ui(s));if(l){const g=l;jC.get(g)||jC.set(g,i),e.value&&(g.style.overflow="hidden")}},{immediate:!0});const o=()=>{const s=Ub(Ui(t));!s||e.value||(EP&&(n=Ap(s,"touchmove",l=>{Cae(l)},{passive:!1})),s.style.overflow="hidden",e.value=!0)},a=()=>{var s;const l=Ub(Ui(t));!l||!e.value||(EP&&n?.(),l.style.overflow=(s=jC.get(l))!=null?s:"",jC.delete(l),e.value=!1)};return jm(a),J({get(){return e.value},set(s){s?o():a()}})}function Wg(t,r,e,n={}){var i,o,a;const{clone:s=!1,passive:l=!1,eventName:g,deep:u=!1,defaultValue:c,shouldEmit:d}=n,h=ul(),A=e||h?.emit||((i=h?.$emit)==null?void 0:i.bind(h))||((a=(o=h?.proxy)==null?void 0:o.$emit)==null?void 0:a.bind(h?.proxy));let f=g;r||(r="modelValue"),f=f||`update:${r.toString()}`;const C=p=>s?typeof s=="function"?s(p):aae(p):p,I=()=>Woe(t[r])?C(t[r]):c,v=p=>{d?d(p)&&A(f,p):A(f,p)};if(l){const p=I(),y=H(p);let b=!1;return et(()=>t[r],_=>{b||(b=!0,y.value=C(_),mn(()=>b=!1))}),et(y,_=>{!b&&(_!==t[r]||u)&&v(_)},{deep:u}),y}else return J({get(){return I()},set(p){v(p)}})}const vae={class:"$ui-dark-toggle-vtr"},g6=we({__name:"DarkToggle",props:{isDark:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},animationDuration:{default:400}},setup(t){const r=t,e=Wg(r,"isDark"),n=hae({initialValue:e.value?"dark":"light",onChanged:s=>{e.value=s==="dark"}}),i=J({get:()=>n.value==="dark",set:s=>n.value=s?"dark":"light"}),o=document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function a(s){if(!o||!s||!r.animation){i.value=!i.value;return}const l=s.clientX,g=s.clientY,u=Math.hypot(Math.max(l,innerWidth-l),Math.max(g,innerHeight-g));document.startViewTransition(async()=>{i.value=!i.value,await mn()}).ready.then(()=>{const c=[`circle(0px at ${l}px ${g}px)`,`circle(${u}px at ${l}px ${g}px)`];document.documentElement.animate({clipPath:i.value?[...c].reverse():c},{duration:r.animationDuration,easing:"ease-in",pseudoElement:i.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}return(s,l)=>(T(),L("span",vae,[Qe(s.$slots,"default",HA(sd({mode:m(n),isDark:i.value,toggle:a})))]))}}),pae={},mae={class:"$ui-base border $ui-border-base rounded shadow-sm"};function yae(t,r){return T(),L("div",mae,[Qe(t.$slots,"default")])}const hv=_2(pae,[["render",yae]]),S2=we({__name:"Overlay",props:{dim:{type:Boolean},blur:{type:Boolean}},setup(t){return(r,e)=>(T(),L("div",{class:Ee(["fixed left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base",[r.dim?"bg-opacity-50!":"bg-opacity-0!",r.blur?"backdrop-blur-sm":""]])},[Qe(r.$slots,"default")],2))}}),bae={class:"h7.5 w-full $ui-fbc"},$ae={class:"text-4.5"},wae=w("div",{class:"i-carbon-close"},null,-1),_ae=[wae],Eae={class:"content transition-all transition-duration-300"},Sae={class:"footer h8 w-full transition-all transition-duration-300 delay-250"},Tae={class:"$ui-fcc"},Oae=we({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},title:{default:"Dialog"},width:{default:"32rem"},height:{default:"18rem"},closable:{type:Boolean,default:!0},mountTo:{default:"body"},dim:{type:Boolean},blur:{type:Boolean}},emits:["close","update:modelValue"],setup(t,{emit:r}){const e=t,n=Wg(e,"modelValue",r,{passive:!0}),i=Iae(()=>window.document.documentElement);Mn(()=>{n.value?i.value=!0:i.value=!1});function o(){n.value&&e.autoClose&&(n.value=!1)}o6("Escape",()=>{o()});const a=H(!1);return Si(()=>a.value=!0),(s,l)=>a.value||s.mountTo==="body"?(T(),re(Pj,{key:0,to:s.mountTo},[z(XA,{"enter-from-class":"opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0","enter-to-class":"opacity-100 [&_.modal]:scale-100","leave-from-class":"opacity-100 [&_.modal]:scale-100","leave-to-class":"opacity-0 [&_.modal]:scale-95"},{default:V(()=>[m(n)?(T(),re(S2,{key:0,dim:s.dim,blur:s.blur},{default:V(()=>[w("div",{class:"modal relative grid grid-rows-[1.875rem_1fr_2.5rem] $ui-base max-h-[calc(100vh-6.25rem)] max-w-[calc(100vw-6.25rem)] min-h-6.25rem min-w-12.5rem gap-2.5 rounded-md bg-white px6 py4.5 color-gray-800 shadow-2xl transition-transform transition-duration-300 dark:bg-gray-900 dark:color-gray-200",style:Er({width:e.width,height:e.height})},[w("div",bae,[w("div",$ae,[Qe(s.$slots,"title",{},()=>[ke(_e(e.title),1)])]),s.closable?(T(),L("div",{key:0,class:"h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",onClick:o},_ae)):$e("",!0)]),w("div",Eae,[Qe(s.$slots,"default")]),w("div",Sae,[Qe(s.$slots,"footer",{},()=>[Qe(s.$slots,"footer",{},()=>[w("div",Tae,[z(at,{type:"primary",onClick:o},{default:V(()=>[ke(" close ")]),_:1})])])])])],4)]),_:3},8,["dim","blur"])):$e("",!0)]),_:3})],8,["to"])):$e("",!0)}}),kae=["type","placeholder","disabled"],xae={key:3,class:"pointer-events-none absolute bottom--0.25 left-50% right-50% z-9999 h-0.75 bg-primary-500 opacity-0 transition-all duration-240 group-[&.focused]:left-0 group-[&.focused]:right-0 group-[&.focused]:opacity-100 group-[&.accent.focused]:bg-accent-500"},Zb="transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500",Da=we({__name:"Input",props:{modelValue:{},placeholder:{default:""},variant:{default:"normal"},disabled:{type:Boolean,default:!1},password:{type:Boolean,default:!1},leftIcon:{},rightIcon:{},loading:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},loadingDebounceTime:{default:0},readonly:{type:Boolean,default:!1}},emits:["update:modelValue","updateFocused","keyTab"],setup(t,{emit:r}){const e=t,n=r,i=Wg(e,"modelValue",n),o=qoe(J(()=>e.loading),e.loadingDebounceTime),a=Joe(!1,{onChanged(c){n("updateFocused",c)}}),s=J(()=>e.variant==="flat"||e.variant==="warning"||e.disabled||e.readonly),l=J(()=>e.disabled||o.value),g=H();let u=!1;return Mn(()=>{o.value&&a.value?u=!0:!o.value&&u&&(u=!1,mn(()=>{a.value=!0}))}),Si(()=>{e.autoFocus&&(a.value=!0)}),Mn(()=>{var c;a.value&&((c=g.value)==null||c.focus())}),(c,d)=>(T(),L("div",{class:Ee(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100",[{"border-none bg-transparent group":c.variant==="flat","cursor-not-allowed opacity-50":l.value,accent:c.variant==="accent",focused:m(a)},[c.variant==="warning"?"border-warning-500 dark:border-warning-300":"border-primary-100 dark:border-gray-700"]]]),onClick:d[2]||(d[2]=()=>{a.value=!0})},[c.leftIcon?(T(),L("div",{key:0,class:Ee(Zb)},[z(St,{icon:c.leftIcon},null,8,["icon"])])):$e("",!0),Sr(w("input",{ref_key:"inputRef",ref:g,"onUpdate:modelValue":d[0]||(d[0]=h=>ze(i)?i.value=h:null),class:"$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",type:e.password?"password":"text",placeholder:c.placeholder,disabled:l.value||c.readonly,onBlur:d[1]||(d[1]=h=>a.value=!1)},null,40,kae),[[Jee,m(i)]]),m(o)?(T(),L("div",{key:1,class:Ee(Zb)},[z(e6)])):c.rightIcon?(T(),L("div",{key:2,class:Ee(Zb)},[z(St,{icon:c.rightIcon},null,8,["icon"])])):$e("",!0),s.value?$e("",!0):(T(),L("div",xae))],2))}}),Pae={class:"overflow-hidden rounded-lg shadow-lg"},Rae=w("div",{class:"p2 opacity-40"}," Empty... ",-1),kc=we({__name:"Dropdown",props:{label:{},buttonProps:{default:()=>({})},buttonClass:{default:""},trigger:{default:"click"},distance:{default:0},skidding:{},placement:{},disabled:{type:Boolean,default:!1},shown:{type:Boolean}},emits:["update:visible"],setup(t){const r=t;return pa("$ui-dropdown-disabled",J(()=>r.disabled)),(e,n)=>(T(),re(m(Poe),{disabled:e.disabled,class:"inline-block w-auto",shown:e.shown,triggers:[e.trigger],distance:e.distance+6,placement:e.placement,skidding:e.skidding,"onUpdate:shown":n[0]||(n[0]=i=>e.$emit("update:visible",i)),onClick:n[1]||(n[1]=i=>{i.stopPropagation()})},{popper:V(({hide:i})=>[w("div",Pae,[Qe(e.$slots,"popper",HA(sd({hide:i})),()=>[Rae])])]),default:V(()=>[Qe(e.$slots,"default",{},()=>[z(at,wn({...e.buttonProps,disabled:e.disabled},{class:e.buttonClass}),mj({icon:V(()=>[Qe(e.$slots,"button-icon")]),"icon-right":V(()=>[Qe(e.$slots,"button-icon-right")]),_:2},[e.label?{name:"default",fn:V(()=>[ke(_e(e.label),1)]),key:"0"}:void 0]),1040,["class"])])]),_:3},8,["disabled","shown","triggers","distance","placement","skidding"]))}}),TP=we({__name:"DropdownButton",props:{type:{},round:{type:[String,Boolean]},loading:{type:Boolean},disabled:{type:Boolean},size:{},flat:{type:Boolean},outlined:{type:Boolean},keepOpen:{type:Boolean,default:!1}},setup(t){const r=t,e=Tr("$ui-dropdown-disabled",void 0);return(n,i)=>Sr((T(),re(at,wn({...r,round:!1},{disabled:m(e),class:"w-full justify-start transition-colors not-action:bg-transparent!"}),{icon:V(()=>[Qe(n.$slots,"icon")]),default:V(()=>[Qe(n.$slots,"default")]),_:3},16,["disabled"])),[[m(J8)]])}}),Dae={class:"$ui-fec gap2.5"},Nae=we({__name:"Confirm",props:{modelValue:{type:Boolean},content:{},cancelText:{default:"Cancel"},confirmText:{default:"Confirm"},width:{default:"20%"},height:{default:"9rem"},title:{default:"Warning"},loading:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0}},emits:["update:modelValue","confirm","cancel","close"],setup(t,{emit:r}){const e=t,n=r,i=Wg(e,"modelValue",n);Mn(()=>{i.value||n("close")});function o(a=!1){(e.autoClose||a)&&(i.value=!1)}return(a,s)=>(T(),re(Oae,{modelValue:m(i),"onUpdate:modelValue":s[2]||(s[2]=l=>ze(i)?i.value=l:null),width:a.width,height:a.height,title:a.title,closable:!1},{footer:V(()=>[w("div",Dae,[z(at,{onClick:s[0]||(s[0]=()=>{n("cancel"),o(!0)})},{default:V(()=>[ke(_e(a.cancelText),1)]),_:1}),z(at,{loading:a.loading,type:"primary",onClick:s[1]||(s[1]=()=>{n("confirm"),o()})},{default:V(()=>[ke(_e(a.confirmText),1)]),_:1},8,["loading"])])]),default:V(()=>[Qe(a.$slots,"default",{class:"h-auto w-auto"},()=>[ke(_e(a.content),1)])]),_:3},8,["modelValue","width","height","title"]))}}),Mae={class:"m1 min-w-35 w-auto flex flex-col"},Bae=["onClick"],Fae=w("div",{class:"i-mdi-chevron-down"},null,-1),fp=we({__name:"Select",props:{modelValue:{},multiple:{default:!1},options:{},placeholder:{default:"Select..."},autoClose:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},labelRenderer:{type:Function,default:t=>String(t)},buttonProps:{default:()=>({})}},emits:["update:modelValue"],setup(t,{emit:r}){const e=t,n=r,i=bj(),o=J({get:()=>e.modelValue,set:l=>n("update:modelValue",l)}),a=J(()=>{const l=e.options.find(g=>g.value===o.value);return l!=null&&l.label?e.labelRenderer(l.label):e.placeholder});function s(l){e.multiple?o.value=o.value.includes(l.value)?o.value.filter(g=>g!==l.value):[...o.value,l.value]:o.value=l.value}return(l,g)=>(T(),re(kc,wn({label:a.value},{buttonProps:l.buttonProps,disabled:l.disabled}),mj({popper:V(()=>[w("div",Mae,[m(i).item?(T(!0),L(be,{key:0},pt(l.options,u=>(T(),L("div",{key:u.value,class:"cursor-pointer",onClick:c=>s(u)},[Qe(l.$slots,"item",HA(sd({item:u,active:l.multiple?o.value.includes(u.value):u.value===o.value,disabled:l.disabled})))],8,Bae))),128)):(T(!0),L(be,{key:1},pt(l.options,u=>Sr((T(),re(at,{key:u.value,disabled:l.disabled,round:"normal",class:Ee(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!",{active:l.multiple?o.value.includes(u.value):u.value===o.value}]),onClick:c=>s(u)},{default:V(()=>[ke(_e(u.label),1)]),_:2},1032,["disabled","class","onClick"])),[[m(J8),l.autoClose]])),128))])]),"button-icon-right":V(()=>[Fae]),_:2},[m(i).button?{name:"default",fn:V(()=>[Qe(l.$slots,"button")]),key:"0"}:void 0]),1040,["label"]))}}),OP=we({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:r}){const e=Wg(t,"modelValue",r),n=rae(e);return(i,o)=>(T(),L("div",{class:Ee([[i.disabled?"cursor-not-allowed":"cursor-pointer"],"$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),role:"checkbox",onClick:o[0]||(o[0]=a=>!i.disabled&&m(n)())},[Qe(i.$slots,"default"),w("div",{class:Ee([{selected:m(e)},"group relative $ui-base h4 w8 rounded-2 bg-primary-100 transition-colors dark:bg-gray-700 [&.selected]:bg-primary-500!"])},[w("div",{class:Ee(["h4 w4 rounded-full bg-primary-800 transition-transform group-[&.selected]:transform-translate-x-4 dark:bg-white",[{"group-hover:opacity-75 group-active:scale-85":!i.disabled},{"opacity-65":i.disabled}]])},null,2)],2)],2))}}),zu=we({__name:"Checkbox",props:{modelValue:{type:Boolean},variant:{default:"normal"}},emits:["update:modelValue"],setup(t,{emit:r}){const e=Wg(t,"modelValue",r);return(n,i)=>(T(),L("div",{class:Ee(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out",[m(e)?n.variant==="normal"?"bg-primary-500 border-primary-200 dark:border-primary-100":"bg-accent-500 border-accent-200 dark:border-accent-100":""]]),onClick:i[0]||(i[0]=o=>e.value=!m(e))},[w("div",{class:Ee([[m(e)?"opacity-100":"opacity-0"],"h-60% w-35% transform-translate-y--0.25 transform-rotate-45 border-width-[0_0.125rem_0.125rem_0] border-white border-solid transition-opacity duration-200 ease-in-out"])},null,2)],2))}}),u6=we({__name:"Drawer",props:{modelValue:{type:Boolean},mountTo:{default:"body"},placement:{default:"right"},closeOutside:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},contentClass:{},permanent:{type:Boolean,default:!1},contentBlur:{type:Boolean,default:!1},top:{},dim:{type:Boolean},blur:{type:Boolean}},emits:["update:modelValue","close"],setup(t,{emit:r}){const e=t,n=r,{height:i}=fae(()=>typeof e.top=="string"?document.querySelector(e.top):e.top,void 0,{box:"border-box"}),o=Wg(e,"modelValue",n),a={left:{class:"left-0 h-full b-r",transition:"[&_.drawer]:translate-x--100%"},right:{class:"right-0 h-full b-l",transition:"[&_.drawer]:translate-x-full"},top:{class:"w-full b-b",transition:"[&_.drawer]:translate-y--100%"},bottom:{class:"bottom-0 w-full b-t",transition:"[&_.drawer]:translate-y-100%"}};o6("Escape",()=>{e.closable&&(o.value=!1)});const s=J(()=>a[e.placement]),l=H(!1);return Si(()=>l.value=!0),(g,u)=>l.value||g.mountTo==="body"?(T(),re(Pj,{key:0,to:g.mountTo},[z(XA,{"enter-from-class":`${s.value.transition}`,"leave-to-class":`${s.value.transition}`},{default:V(()=>[m(o)?(T(),re(S2,{key:0,class:Ee({"pointer-events-none":g.permanent}),dim:g.dim,blur:g.blur,onClick:u[2]||(u[2]=c=>g.closeOutside&&g.closable&&(o.value=!1))},{default:V(()=>[w("div",{class:Ee([[s.value.class,g.contentClass??"",g.contentBlur?"$ui-glass-effect":"$ui-bg-base"],"drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),style:Er({top:g.placement==="bottom"?"auto":`${m(i)}px`,height:["top","bottom"].includes(g.placement)?"auto":`calc(100% - ${m(i)}px)`}),onClick:u[1]||(u[1]=En(()=>{},["stop"]))},[g.closable?(T(),L("div",{key:0,class:"i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",onClick:u[0]||(u[0]=c=>o.value=!1)})):$e("",!0),Qe(g.$slots,"default")],6)]),_:3},8,["class","dim","blur"])):$e("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],8,["to"])):$e("",!0)}}),Lae=we({__name:"Notification",props:{message:{},type:{default:"info"},classes:{},duration:{default:3e3},placement:{default:"top-center"},onClose:{}},setup(t){const r=t,e={success:"i-carbon-checkmark",info:"i-material-symbols-light-info",warning:"i-carbon-warning",error:"i-carbon-close"},n={success:"text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",info:"text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",warning:"text-amber-4 border-amber-2 dark:border-amber-4",error:"text-red-4 border-red-2 dark:border-red-4"},i=H(!1);Si(()=>{i.value=!0,setTimeout(()=>{i.value=!1},r.duration)});const o=J(()=>r.placement.startsWith("top")?"translate-y--300%":"translate-y-300%");return(a,s)=>(T(),L("div",{class:Ee(["fixed left-0 right-0 $ui-z-max-override text-center",[{"top-0":a.placement.startsWith("top")},{"bottom-0":a.placement.startsWith("bottom")}]])},[z(XA,{"enter-from-class":o.value,"leave-to-class":o.value,onAfterLeave:s[0]||(s[0]=()=>{var l;i.value||(l=a.onClose)==null||l.call(a)})},{default:V(()=>[i.value?(T(),L("div",{key:0,class:"flex transition-all duration-300",style:Er({justifyContent:a.placement.includes("right")?"right":a.placement.includes("left")?"left":"center"})},[w("div",{class:Ee(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base",[a.classes,n[a.type]]])},[w("div",{class:Ee(e[a.type])},null,2),w("div",null,_e(a.message),1)],2)],4)):$e("",!0)]),_:1},8,["enter-from-class","leave-to-class"])],2))}}),zae=we({__name:"Tooltip",props:{trigger:{},distance:{},skidding:{},placement:{},disabled:{type:Boolean},shown:{type:Boolean}},setup(t){return(r,e)=>(T(),re(m(Roe),wn({disabled:r.disabled,placement:r.placement},r.$attrs),{popper:V(()=>[Qe(r.$slots,"popper")]),default:V(()=>[Qe(r.$slots,"default")]),_:3},16,["disabled","placement"]))}});function d_(t){const r=document.createElement("div");r.classList.add("$ui-z-max-override","fixed"),document.body.appendChild(r);const e=t.onClose;function n(){yx(null,r)}t.onClose=()=>{n(),e?.(),document.body.removeChild(r)};const i=ld(Lae,t);yx(i,r)}function Na(t){return Array.isArray?Array.isArray(t):h6(t)==="[object Array]"}const jae=1/0;function Vae(t){if(typeof t=="string")return t;let r=t+"";return r=="0"&&1/t==-jae?"-0":r}function Gae(t){return t==null?"":Vae(t)}function jo(t){return typeof t=="string"}function c6(t){return typeof t=="number"}function Wae(t){return t===!0||t===!1||Hae(t)&&h6(t)=="[object Boolean]"}function d6(t){return typeof t=="object"}function Hae(t){return d6(t)&&t!==null}function mi(t){return t!=null}function Kb(t){return!t.trim().length}function h6(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Uae="Incorrect 'index' type",Zae=t=>`Invalid value for key ${t}`,Kae=t=>`Pattern length exceeds max of ${t}.`,Yae=t=>`Missing ${t} property in key`,Xae=t=>`Property 'weight' in key '${t}' must be a positive integer`,kP=Object.prototype.hasOwnProperty;class Qae{constructor(r){this._keys=[],this._keyMap={};let e=0;r.forEach(n=>{let i=A6(n);this._keys.push(i),this._keyMap[i.id]=i,e+=i.weight}),this._keys.forEach(n=>{n.weight/=e})}get(r){return this._keyMap[r]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function A6(t){let r=null,e=null,n=null,i=1,o=null;if(jo(t)||Na(t))n=t,r=xP(t),e=h_(t);else{if(!kP.call(t,"name"))throw new Error(Yae("name"));const a=t.name;if(n=a,kP.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(Xae(a));r=xP(a),e=h_(a),o=t.getFn}return{path:r,id:e,weight:i,src:n,getFn:o}}function xP(t){return Na(t)?t:t.split(".")}function h_(t){return Na(t)?t.join("."):t}function qae(t,r){let e=[],n=!1;const i=(o,a,s)=>{if(mi(o))if(!a[s])e.push(o);else{let l=a[s];const g=o[l];if(!mi(g))return;if(s===a.length-1&&(jo(g)||c6(g)||Wae(g)))e.push(Gae(g));else if(Na(g)){n=!0;for(let u=0,c=g.length;u<c;u+=1)i(g[u],a,s+1)}else a.length&&i(g,a,s+1)}};return i(t,jo(r)?r.split("."):r,0),n?e:e[0]}const Jae={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},ese={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,r)=>t.score===r.score?t.idx<r.idx?-1:1:t.score<r.score?-1:1},tse={location:0,threshold:.6,distance:100},rse={useExtendedSearch:!1,getFn:qae,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var tt={...ese,...Jae,...tse,...rse};const nse=/[^ ]+/g;function ise(t=1,r=3){const e=new Map,n=Math.pow(10,r);return{get(i){const o=i.match(nse).length;if(e.has(o))return e.get(o);const a=1/Math.pow(o,.5*t),s=parseFloat(Math.round(a*n)/n);return e.set(o,s),s},clear(){e.clear()}}}class T2{constructor({getFn:r=tt.getFn,fieldNormWeight:e=tt.fieldNormWeight}={}){this.norm=ise(e,3),this.getFn=r,this.isCreated=!1,this.setIndexRecords()}setSources(r=[]){this.docs=r}setIndexRecords(r=[]){this.records=r}setKeys(r=[]){this.keys=r,this._keysMap={},r.forEach((e,n)=>{this._keysMap[e.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,jo(this.docs[0])?this.docs.forEach((r,e)=>{this._addString(r,e)}):this.docs.forEach((r,e)=>{this._addObject(r,e)}),this.norm.clear())}add(r){const e=this.size();jo(r)?this._addString(r,e):this._addObject(r,e)}removeAt(r){this.records.splice(r,1);for(let e=r,n=this.size();e<n;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(r,e){return r[this._keysMap[e]]}size(){return this.records.length}_addString(r,e){if(!mi(r)||Kb(r))return;let n={v:r,i:e,n:this.norm.get(r)};this.records.push(n)}_addObject(r,e){let n={i:e,$:{}};this.keys.forEach((i,o)=>{let a=i.getFn?i.getFn(r):this.getFn(r,i.path);if(mi(a)){if(Na(a)){let s=[];const l=[{nestedArrIndex:-1,value:a}];for(;l.length;){const{nestedArrIndex:g,value:u}=l.pop();if(mi(u))if(jo(u)&&!Kb(u)){let c={v:u,i:g,n:this.norm.get(u)};s.push(c)}else Na(u)&&u.forEach((c,d)=>{l.push({nestedArrIndex:d,value:c})})}n.$[o]=s}else if(jo(a)&&!Kb(a)){let s={v:a,n:this.norm.get(a)};n.$[o]=s}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function f6(t,r,{getFn:e=tt.getFn,fieldNormWeight:n=tt.fieldNormWeight}={}){const i=new T2({getFn:e,fieldNormWeight:n});return i.setKeys(t.map(A6)),i.setSources(r),i.create(),i}function ose(t,{getFn:r=tt.getFn,fieldNormWeight:e=tt.fieldNormWeight}={}){const{keys:n,records:i}=t,o=new T2({getFn:r,fieldNormWeight:e});return o.setKeys(n),o.setIndexRecords(i),o}function VC(t,{errors:r=0,currentLocation:e=0,expectedLocation:n=0,distance:i=tt.distance,ignoreLocation:o=tt.ignoreLocation}={}){const a=r/t.length;if(o)return a;const s=Math.abs(n-e);return i?a+s/i:s?1:a}function ase(t=[],r=tt.minMatchCharLength){let e=[],n=-1,i=-1,o=0;for(let a=t.length;o<a;o+=1){let s=t[o];s&&n===-1?n=o:!s&&n!==-1&&(i=o-1,i-n+1>=r&&e.push([n,i]),n=-1)}return t[o-1]&&o-n>=r&&e.push([n,o-1]),e}const Ul=32;function sse(t,r,e,{location:n=tt.location,distance:i=tt.distance,threshold:o=tt.threshold,findAllMatches:a=tt.findAllMatches,minMatchCharLength:s=tt.minMatchCharLength,includeMatches:l=tt.includeMatches,ignoreLocation:g=tt.ignoreLocation}={}){if(r.length>Ul)throw new Error(Kae(Ul));const u=r.length,c=t.length,d=Math.max(0,Math.min(n,c));let h=o,A=d;const f=s>1||l,C=f?Array(c):[];let I;for(;(I=t.indexOf(r,A))>-1;){let P=VC(r,{currentLocation:I,expectedLocation:d,distance:i,ignoreLocation:g});if(h=Math.min(P,h),A=I+u,f){let k=0;for(;k<u;)C[I+k]=1,k+=1}}A=-1;let v=[],p=1,y=u+c;const b=1<<u-1;for(let P=0;P<u;P+=1){let k=0,E=y;for(;k<E;)VC(r,{errors:P,currentLocation:d+E,expectedLocation:d,distance:i,ignoreLocation:g})<=h?k=E:y=E,E=Math.floor((y-k)/2+k);y=E;let O=Math.max(1,d-E+1),N=a?c:Math.min(d+E,c)+u,D=Array(N+2);D[N+1]=(1<<P)-1;for(let Q=N;Q>=O;Q-=1){let j=Q-1,W=e[t.charAt(j)];if(f&&(C[j]=+!!W),D[Q]=(D[Q+1]<<1|1)&W,P&&(D[Q]|=(v[Q+1]|v[Q])<<1|1|v[Q+1]),D[Q]&b&&(p=VC(r,{errors:P,currentLocation:j,expectedLocation:d,distance:i,ignoreLocation:g}),p<=h)){if(h=p,A=j,A<=d)break;O=Math.max(1,2*d-A)}}if(VC(r,{errors:P+1,currentLocation:d,expectedLocation:d,distance:i,ignoreLocation:g})>h)break;v=D}const _={isMatch:A>=0,score:Math.max(.001,p)};if(f){const P=ase(C,s);P.length?l&&(_.indices=P):_.isMatch=!1}return _}function lse(t){let r={};for(let e=0,n=t.length;e<n;e+=1){const i=t.charAt(e);r[i]=(r[i]||0)|1<<n-e-1}return r}class C6{constructor(r,{location:e=tt.location,threshold:n=tt.threshold,distance:i=tt.distance,includeMatches:o=tt.includeMatches,findAllMatches:a=tt.findAllMatches,minMatchCharLength:s=tt.minMatchCharLength,isCaseSensitive:l=tt.isCaseSensitive,ignoreLocation:g=tt.ignoreLocation}={}){if(this.options={location:e,threshold:n,distance:i,includeMatches:o,findAllMatches:a,minMatchCharLength:s,isCaseSensitive:l,ignoreLocation:g},this.pattern=l?r:r.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(d,h)=>{this.chunks.push({pattern:d,alphabet:lse(d),startIndex:h})},c=this.pattern.length;if(c>Ul){let d=0;const h=c%Ul,A=c-h;for(;d<A;)u(this.pattern.substr(d,Ul),d),d+=Ul;if(h){const f=c-Ul;u(this.pattern.substr(f),f)}}else u(this.pattern,0)}searchIn(r){const{isCaseSensitive:e,includeMatches:n}=this.options;if(e||(r=r.toLowerCase()),this.pattern===r){let A={isMatch:!0,score:0};return n&&(A.indices=[[0,r.length-1]]),A}const{location:i,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,ignoreLocation:g}=this.options;let u=[],c=0,d=!1;this.chunks.forEach(({pattern:A,alphabet:f,startIndex:C})=>{const{isMatch:I,score:v,indices:p}=sse(r,A,f,{location:i+C,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,includeMatches:n,ignoreLocation:g});I&&(d=!0),c+=v,I&&p&&(u=[...u,...p])});let h={isMatch:d,score:d?c/this.chunks.length:1};return d&&n&&(h.indices=u),h}}class hl{constructor(r){this.pattern=r}static isMultiMatch(r){return PP(r,this.multiRegex)}static isSingleMatch(r){return PP(r,this.singleRegex)}search(){}}function PP(t,r){const e=t.match(r);return e?e[1]:null}class gse extends hl{constructor(r){super(r)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(r){const e=r===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class use extends hl{constructor(r){super(r)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(r){const n=r.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,r.length-1]}}}class cse extends hl{constructor(r){super(r)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(r){const e=r.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class dse extends hl{constructor(r){super(r)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(r){const e=!r.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,r.length-1]}}}class hse extends hl{constructor(r){super(r)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(r){const e=r.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[r.length-this.pattern.length,r.length-1]}}}class Ase extends hl{constructor(r){super(r)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(r){const e=!r.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,r.length-1]}}}class I6 extends hl{constructor(r,{location:e=tt.location,threshold:n=tt.threshold,distance:i=tt.distance,includeMatches:o=tt.includeMatches,findAllMatches:a=tt.findAllMatches,minMatchCharLength:s=tt.minMatchCharLength,isCaseSensitive:l=tt.isCaseSensitive,ignoreLocation:g=tt.ignoreLocation}={}){super(r),this._bitapSearch=new C6(r,{location:e,threshold:n,distance:i,includeMatches:o,findAllMatches:a,minMatchCharLength:s,isCaseSensitive:l,ignoreLocation:g})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(r){return this._bitapSearch.searchIn(r)}}class v6 extends hl{constructor(r){super(r)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(r){let e=0,n;const i=[],o=this.pattern.length;for(;(n=r.indexOf(this.pattern,e))>-1;)e=n+o,i.push([n,e-1]);const a=!!i.length;return{isMatch:a,score:a?0:1,indices:i}}}const A_=[gse,v6,cse,dse,Ase,hse,use,I6],RP=A_.length,fse=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Cse="|";function Ise(t,r={}){return t.split(Cse).map(e=>{let n=e.trim().split(fse).filter(o=>o&&!!o.trim()),i=[];for(let o=0,a=n.length;o<a;o+=1){const s=n[o];let l=!1,g=-1;for(;!l&&++g<RP;){const u=A_[g];let c=u.isMultiMatch(s);c&&(i.push(new u(c,r)),l=!0)}if(!l)for(g=-1;++g<RP;){const u=A_[g];let c=u.isSingleMatch(s);if(c){i.push(new u(c,r));break}}}return i})}const vse=new Set([I6.type,v6.type]);class pse{constructor(r,{isCaseSensitive:e=tt.isCaseSensitive,includeMatches:n=tt.includeMatches,minMatchCharLength:i=tt.minMatchCharLength,ignoreLocation:o=tt.ignoreLocation,findAllMatches:a=tt.findAllMatches,location:s=tt.location,threshold:l=tt.threshold,distance:g=tt.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:n,minMatchCharLength:i,findAllMatches:a,ignoreLocation:o,location:s,threshold:l,distance:g},this.pattern=e?r:r.toLowerCase(),this.query=Ise(this.pattern,this.options)}static condition(r,e){return e.useExtendedSearch}searchIn(r){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:i}=this.options;r=i?r:r.toLowerCase();let o=0,a=[],s=0;for(let l=0,g=e.length;l<g;l+=1){const u=e[l];a.length=0,o=0;for(let c=0,d=u.length;c<d;c+=1){const h=u[c],{isMatch:A,indices:f,score:C}=h.search(r);if(A){if(o+=1,s+=C,n){const I=h.constructor.type;vse.has(I)?a=[...a,...f]:a.push(f)}}else{s=0,o=0,a.length=0;break}}if(o){let c={isMatch:!0,score:s/o};return n&&(c.indices=a),c}}return{isMatch:!1,score:1}}}const f_=[];function mse(...t){f_.push(...t)}function C_(t,r){for(let e=0,n=f_.length;e<n;e+=1){let i=f_[e];if(i.condition(t,r))return new i(t,r)}return new C6(t,r)}const Cp={AND:"$and",OR:"$or"},I_={PATH:"$path",PATTERN:"$val"},v_=t=>!!(t[Cp.AND]||t[Cp.OR]),yse=t=>!!t[I_.PATH],bse=t=>!Na(t)&&d6(t)&&!v_(t),DP=t=>({[Cp.AND]:Object.keys(t).map(r=>({[r]:t[r]}))});function p6(t,r,{auto:e=!0}={}){const n=i=>{let o=Object.keys(i);const a=yse(i);if(!a&&o.length>1&&!v_(i))return n(DP(i));if(bse(i)){const l=a?i[I_.PATH]:o[0],g=a?i[I_.PATTERN]:i[l];if(!jo(g))throw new Error(Zae(l));const u={keyId:h_(l),pattern:g};return e&&(u.searcher=C_(g,r)),u}let s={children:[],operator:o[0]};return o.forEach(l=>{const g=i[l];Na(g)&&g.forEach(u=>{s.children.push(n(u))})}),s};return v_(t)||(t=DP(t)),n(t)}function $se(t,{ignoreFieldNorm:r=tt.ignoreFieldNorm}){t.forEach(e=>{let n=1;e.matches.forEach(({key:i,norm:o,score:a})=>{const s=i?i.weight:null;n*=Math.pow(a===0&&s?Number.EPSILON:a,(s||1)*(r?1:o))}),e.score=n})}function wse(t,r){const e=t.matches;r.matches=[],mi(e)&&e.forEach(n=>{if(!mi(n.indices)||!n.indices.length)return;const{indices:i,value:o}=n;let a={indices:i,value:o};n.key&&(a.key=n.key.src),n.idx>-1&&(a.refIndex=n.idx),r.matches.push(a)})}function _se(t,r){r.score=t.score}function Ese(t,r,{includeMatches:e=tt.includeMatches,includeScore:n=tt.includeScore}={}){const i=[];return e&&i.push(wse),n&&i.push(_se),t.map(o=>{const{idx:a}=o,s={item:r[a],refIndex:a};return i.length&&i.forEach(l=>{l(o,s)}),s})}class Hg{constructor(r,e={},n){this.options={...tt,...e},this.options.useExtendedSearch,this._keyStore=new Qae(this.options.keys),this.setCollection(r,n)}setCollection(r,e){if(this._docs=r,e&&!(e instanceof T2))throw new Error(Uae);this._myIndex=e||f6(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(r){mi(r)&&(this._docs.push(r),this._myIndex.add(r))}remove(r=()=>!1){const e=[];for(let n=0,i=this._docs.length;n<i;n+=1){const o=this._docs[n];r(o,n)&&(this.removeAt(n),n-=1,i-=1,e.push(o))}return e}removeAt(r){this._docs.splice(r,1),this._myIndex.removeAt(r)}getIndex(){return this._myIndex}search(r,{limit:e=-1}={}){const{includeMatches:n,includeScore:i,shouldSort:o,sortFn:a,ignoreFieldNorm:s}=this.options;let l=jo(r)?jo(this._docs[0])?this._searchStringList(r):this._searchObjectList(r):this._searchLogical(r);return $se(l,{ignoreFieldNorm:s}),o&&l.sort(a),c6(e)&&e>-1&&(l=l.slice(0,e)),Ese(l,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(r){const e=C_(r,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:o,i:a,n:s})=>{if(!mi(o))return;const{isMatch:l,score:g,indices:u}=e.searchIn(o);l&&i.push({item:o,idx:a,matches:[{score:g,value:o,norm:s,indices:u}]})}),i}_searchLogical(r){const e=p6(r,this.options),n=(s,l,g)=>{if(!s.children){const{keyId:c,searcher:d}=s,h=this._findMatches({key:this._keyStore.get(c),value:this._myIndex.getValueForItemAtKeyId(l,c),searcher:d});return h&&h.length?[{idx:g,item:l,matches:h}]:[]}const u=[];for(let c=0,d=s.children.length;c<d;c+=1){const h=s.children[c],A=n(h,l,g);if(A.length)u.push(...A);else if(s.operator===Cp.AND)return[]}return u},i=this._myIndex.records,o={},a=[];return i.forEach(({$:s,i:l})=>{if(mi(s)){let g=n(e,s,l);g.length&&(o[l]||(o[l]={idx:l,item:s,matches:[]},a.push(o[l])),g.forEach(({matches:u})=>{o[l].matches.push(...u)}))}}),a}_searchObjectList(r){const e=C_(r,this.options),{keys:n,records:i}=this._myIndex,o=[];return i.forEach(({$:a,i:s})=>{if(!mi(a))return;let l=[];n.forEach((g,u)=>{l.push(...this._findMatches({key:g,value:a[u],searcher:e}))}),l.length&&o.push({idx:s,item:a,matches:l})}),o}_findMatches({key:r,value:e,searcher:n}){if(!mi(e))return[];let i=[];if(Na(e))e.forEach(({v:o,i:a,n:s})=>{if(!mi(o))return;const{isMatch:l,score:g,indices:u}=n.searchIn(o);l&&i.push({score:g,key:r,value:o,idx:a,norm:s,indices:u})});else{const{v:o,n:a}=e,{isMatch:s,score:l,indices:g}=n.searchIn(o);s&&i.push({score:l,key:r,value:o,norm:a,indices:g})}return i}}Hg.version="7.0.0";Hg.createIndex=f6;Hg.parseIndex=ose;Hg.config=tt;Hg.parseQuery=p6;mse(pse);const Sse=[["app",[{icon:"i-carbon-information",name:"overview",order:-100,path:"overview",title:"Overview"},{icon:"i-carbon-assembly-cluster",name:"components",order:-100,path:"components",title:"Components"},{icon:"i-carbon-tree-view-alt",name:"pages",order:-100,path:"pages",title:"Pages"},{icon:"i-carbon-image-copy",name:"assets",order:-100,path:"assets",title:"Assets"},{icon:"i-icon-park-outline:vertical-timeline",name:"timeline",order:-100,path:"timeline",title:"Timeline"}]],["modules",[{icon:"i-ri-route-line",name:"router",order:-100,path:"router",title:"Router"},{icon:"i-icon-park-outline:pineapple",name:"pinia",order:-100,path:"pinia",title:"Pinia"},{icon:"i-carbon-language",name:"i18n",order:-100,path:"i18n",title:"I18n Resources"}]],["advanced",[{icon:"i-carbon-network-4",name:"graph",order:-100,path:"graph",title:"Graph"}]]],m6=["assets","graph","vite-inspect"],NP={pinia:"pinia",router:"vueRouter",i18n:"vueI18n"};function Tse(t,r){const e=r.name;return e in NP&&t[NP[e]]}function Ose(t,r){const e=bc(Sse);return e.forEach(n=>{n[0]==="modules"&&(n[1]=n[1].filter(i=>r?Tse(r,i):!0))}),t&&!zS?e:e.map(([n,i])=>[n,i.filter(o=>!m6.includes(o.name))])}const y6=aa([]),b6=H(null),kse=J(()=>y6.value.find(t=>t.id===b6.value));function na(t){return US()?(V4(t),!0):!1}function _r(t){return typeof t=="function"?t():m(t)}const wg=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xse=t=>typeof t<"u",Pse=Object.prototype.toString,Rse=t=>Pse.call(t)==="[object Object]",ma=()=>{},Dse=Nse();function Nse(){var t,r;return wg&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((r=window?.navigator)==null?void 0:r.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Mse(t,r){function e(...n){return new Promise((i,o)=>{Promise.resolve(t(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(i).catch(o)})}return e}const $6=t=>t();function Bse(t,r={}){let e,n,i=ma;const o=s=>{clearTimeout(s),i(),i=ma};return s=>{const l=_r(t),g=_r(r.maxWait);return e&&o(e),l<=0||g!==void 0&&g<=0?(n&&(o(n),n=null),Promise.resolve(s())):new Promise((u,c)=>{i=r.rejectOnCancel?c:u,g&&!n&&(n=setTimeout(()=>{e&&o(e),n=null,u(s())},g)),e=setTimeout(()=>{n&&o(n),n=null,u(s())},l)})}}function Fse(t=$6){const r=H(!0);function e(){r.value=!1}function n(){r.value=!0}const i=(...o)=>{r.value&&t(...o)};return{isActive:Va(r),pause:e,resume:n,eventFilter:i}}function MP(t,r=!1,e="Timeout"){return new Promise((n,i)=>{setTimeout(r?()=>i(e):n,t)})}function Lse(t){let r;function e(){return r||(r=t()),r}return e.reset=async()=>{const n=r;r=void 0,n&&await n},e}function zse(t){return t||ul()}function jse(...t){if(t.length!==1)return oj(...t);const r=t[0];return typeof r=="function"?Va(n2(()=>({get:r,set:ma}))):H(r)}function w6(t,r,e={}){const{eventFilter:n=$6,...i}=e;return et(t,Mse(n,r),i)}function Vse(t,r,e={}){const{eventFilter:n,...i}=e,{eventFilter:o,pause:a,resume:s,isActive:l}=Fse(n);return{stop:w6(t,r,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function ef(t,r=!0,e){zse()?Si(t,e):r?t():mn(t)}function p_(t,r=!1){function e(c,{flush:d="sync",deep:h=!1,timeout:A,throwOnTimeout:f}={}){let C=null;const v=[new Promise(p=>{C=et(t,y=>{c(y)!==r&&(C?.(),p(y))},{flush:d,deep:h,immediate:!0})})];return A!=null&&v.push(MP(A,f).then(()=>_r(t)).finally(()=>C?.())),Promise.race(v)}function n(c,d){if(!ze(c))return e(y=>y===c,d);const{flush:h="sync",deep:A=!1,timeout:f,throwOnTimeout:C}=d??{};let I=null;const p=[new Promise(y=>{I=et([t,c],([b,_])=>{r!==(b===_)&&(I?.(),y(b))},{flush:h,deep:A,immediate:!0})})];return f!=null&&p.push(MP(f,C).then(()=>_r(t)).finally(()=>(I?.(),_r(t)))),Promise.race(p)}function i(c){return e(d=>!!d,c)}function o(c){return n(null,c)}function a(c){return n(void 0,c)}function s(c){return e(Number.isNaN,c)}function l(c,d){return e(h=>{const A=Array.from(h);return A.includes(c)||A.includes(_r(c))},d)}function g(c){return u(1,c)}function u(c=1,d){let h=-1;return e(()=>(h+=1,h>=c),d)}return Array.isArray(_r(t))?{toMatch:e,toContains:l,changed:g,changedTimes:u,get not(){return p_(t,!r)}}:{toMatch:e,toBe:n,toBeTruthy:i,toBeNull:o,toBeNaN:s,toBeUndefined:a,changed:g,changedTimes:u,get not(){return p_(t,!r)}}}function Gse(t){return p_(t)}function Wse(t,r=1e3,e={}){const{immediate:n=!0,immediateCallback:i=!1}=e;let o=null;const a=H(!1);function s(){o&&(clearInterval(o),o=null)}function l(){a.value=!1,s()}function g(){const u=_r(r);u<=0||(a.value=!0,i&&t(),s(),o=setInterval(t,u))}if(n&&wg&&g(),ze(r)||typeof r=="function"){const u=et(r,()=>{a.value&&wg&&g()});na(u)}return na(l),{isActive:a,pause:l,resume:g}}function Hse(t,r,e={}){const{immediate:n=!0}=e,i=H(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...g){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...g)},_r(r))}return n&&(i.value=!0,wg&&l()),na(s),{isPending:Va(i),start:l,stop:s}}function O2(t=!1,r={}){const{truthyValue:e=!0,falsyValue:n=!1}=r,i=ze(t),o=H(t);function a(s){if(arguments.length)return o.value=s,o.value;{const l=_r(e);return o.value=o.value===l?_r(n):l,o.value}}return i?a:[o,a]}function k2(t,r,e={}){const{debounce:n=0,maxWait:i=void 0,...o}=e;return w6(t,r,{...o,eventFilter:Bse(n,{maxWait:i})})}function _6(t,r,e){const n=et(t,(...i)=>(mn(()=>n()),r(...i)),e);return n}function BP(t,r,e){let n;ze(e)?n={evaluating:e}:n=e||{};const{lazy:i=!1,evaluating:o=void 0,shallow:a=!0,onError:s=ma}=n,l=H(!i),g=a?aa(r):H(r);let u=0;return Mn(async c=>{if(!l.value)return;u++;const d=u;let h=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{const A=await t(f=>{c(()=>{o&&(o.value=!1),h||f()})});d===u&&(g.value=A)}catch(A){s(A)}finally{o&&d===u&&(o.value=!1),h=!0}}),i?J(()=>(l.value=!0,g.value)):g}function Ao(t){var r;const e=_r(t);return(r=e?.$el)!=null?r:e}const Ei=wg?window:void 0,Use=wg?window.document:void 0,E6=wg?window.navigator:void 0;function on(...t){let r,e,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,n,i]=t,r=Ei):[r,e,n,i]=t,!r)return ma;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const o=[],a=()=>{o.forEach(u=>u()),o.length=0},s=(u,c,d,h)=>(u.addEventListener(c,d,h),()=>u.removeEventListener(c,d,h)),l=et(()=>[Ao(r),_r(i)],([u,c])=>{if(a(),!u)return;const d=Rse(c)?{...c}:c;o.push(...e.flatMap(h=>n.map(A=>s(u,h,A,d))))},{immediate:!0,flush:"post"}),g=()=>{l(),a()};return na(g),g}let FP=!1;function Zse(t,r,e={}){const{window:n=Ei,ignore:i=[],capture:o=!0,detectIframe:a=!1}=e;if(!n)return ma;Dse&&!FP&&(FP=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",ma)),n.document.documentElement.addEventListener("click",ma));let s=!0;const l=d=>i.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(A=>A===d.target||d.composedPath().includes(A));{const A=Ao(h);return A&&(d.target===A||d.composedPath().includes(A))}}),u=[on(n,"click",d=>{const h=Ao(t);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}r(d)}},{passive:!0,capture:o}),on(n,"pointerdown",d=>{const h=Ao(t);s=!l(d)&&!!(h&&!d.composedPath().includes(h))},{passive:!0}),a&&on(n,"blur",d=>{setTimeout(()=>{var h;const A=Ao(t);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!A?.contains(n.document.activeElement)&&r(d)},0)})].filter(Boolean);return()=>u.forEach(d=>d())}function Kse(){const t=H(!1);return ul()&&Si(()=>{t.value=!0}),t}function ud(t){const r=Kse();return J(()=>(r.value,!!t()))}function Yse(t,r={}){const{immediate:e=!0,fpsLimit:n=void 0,window:i=Ei}=r,o=H(!1),a=n?1e3/n:null;let s=0,l=null;function g(d){if(!o.value||!i)return;const h=d-(s||d);if(a&&h<a){l=i.requestAnimationFrame(g);return}t({delta:h,timestamp:d}),s=d,l=i.requestAnimationFrame(g)}function u(){!o.value&&i&&(o.value=!0,l=i.requestAnimationFrame(g))}function c(){o.value=!1,l!=null&&i&&(i.cancelAnimationFrame(l),l=null)}return e&&u(),na(c),{isActive:Va(o),pause:c,resume:u}}function S6(t,r={}){const{window:e=Ei}=r,n=ud(()=>e&&"matchMedia"in e&&typeof e.matchMedia=="function");let i;const o=H(!1),a=g=>{o.value=g.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},l=Mn(()=>{n.value&&(s(),i=e.matchMedia(_r(t)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),o.value=i.matches)});return na(()=>{l(),s(),i=void 0}),o}function LP(t,r={}){const{controls:e=!1,navigator:n=E6}=r,i=ud(()=>n&&"permissions"in n);let o;const a=typeof t=="string"?{name:t}:t,s=H(),l=()=>{o&&(s.value=o.state)},g=Lse(async()=>{if(i.value){if(!o)try{o=await n.permissions.query(a),on(o,"change",l),l()}catch{s.value="prompt"}return o}});return g(),e?{state:s,isSupported:i,query:g}:s}function x2(t={}){const{navigator:r=E6,read:e=!1,source:n,copiedDuring:i=1500,legacy:o=!1}=t,a=ud(()=>r&&"clipboard"in r),s=LP("clipboard-read"),l=LP("clipboard-write"),g=J(()=>a.value||o),u=H(""),c=H(!1),d=Hse(()=>c.value=!1,i);function h(){a.value&&s.value!=="denied"?r.clipboard.readText().then(I=>{u.value=I}):u.value=C()}g.value&&e&&on(["copy","cut"],h);async function A(I=_r(n)){g.value&&I!=null&&(a.value&&l.value!=="denied"?await r.clipboard.writeText(I):f(I),u.value=I,c.value=!0,d.start())}function f(I){const v=document.createElement("textarea");v.value=I??"",v.style.position="absolute",v.style.opacity="0",document.body.appendChild(v),v.select(),document.execCommand("copy"),v.remove()}function C(){var I,v,p;return(p=(v=(I=document?.getSelection)==null?void 0:I.call(document))==null?void 0:v.toString())!=null?p:""}return{isSupported:g,text:u,copied:c,copy:A}}function Xse(t){return JSON.parse(JSON.stringify(t))}const GC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},WC="__vueuse_ssr_handlers__",Qse=qse();function qse(){return WC in GC||(GC[WC]=GC[WC]||{}),GC[WC]}function T6(t,r){return Qse[t]||r}function Jse(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const ele={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},zP="vueuse-storage";function O6(t,r,e,n={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:g=!1,shallow:u,window:c=Ei,eventFilter:d,onError:h=E=>{console.error(E)},initOnMounted:A}=n,f=(u?aa:H)(typeof r=="function"?r():r);if(!e)try{e=T6("getDefaultStorage",()=>{var E;return(E=Ei)==null?void 0:E.localStorage})()}catch(E){h(E)}if(!e)return f;const C=_r(r),I=Jse(C),v=(i=n.serializer)!=null?i:ele[I],{pause:p,resume:y}=Vse(f,()=>b(f.value),{flush:o,deep:a,eventFilter:d});return c&&s&&ef(()=>{on(c,"storage",k),on(c,zP,P),A&&k()}),A||k(),f;function b(E){try{if(E==null)e.removeItem(t);else{const O=v.write(E),N=e.getItem(t);N!==O&&(e.setItem(t,O),c&&c.dispatchEvent(new CustomEvent(zP,{detail:{key:t,oldValue:N,newValue:O,storageArea:e}})))}}catch(O){h(O)}}function _(E){const O=E?E.newValue:e.getItem(t);if(O==null)return l&&C!=null&&e.setItem(t,v.write(C)),C;if(!E&&g){const N=v.read(O);return typeof g=="function"?g(N,C):I==="object"&&!Array.isArray(N)?{...C,...N}:N}else return typeof O!="string"?O:v.read(O)}function P(E){k(E.detail)}function k(E){if(!(E&&E.storageArea!==e)){if(E&&E.key==null){f.value=C;return}if(!(E&&E.key!==t)){p();try{E?.newValue!==v.write(f.value)&&(f.value=_(E))}catch(O){h(O)}finally{E?mn(y):y()}}}}}function k6(t){return S6("(prefers-color-scheme: dark)",t)}function Vm(t={}){const{selector:r="html",attribute:e="class",initialValue:n="auto",window:i=Ei,storage:o,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:g,disableTransition:u=!0}=t,c={auto:"",light:"light",dark:"dark",...t.modes||{}},d=k6({window:i}),h=J(()=>d.value?"dark":"light"),A=l||(a==null?jse(n):O6(a,n,o,{window:i,listenToStorageChanges:s})),f=J(()=>A.value==="auto"?h.value:A.value),C=T6("updateHTMLAttrs",(y,b,_)=>{const P=typeof y=="string"?i?.document.querySelector(y):Ao(y);if(!P)return;let k;if(u){k=i.document.createElement("style");const E="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";k.appendChild(document.createTextNode(E)),i.document.head.appendChild(k)}if(b==="class"){const E=_.split(/\s/g);Object.values(c).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{E.includes(O)?P.classList.add(O):P.classList.remove(O)})}else P.setAttribute(b,_);u&&(i.getComputedStyle(k).opacity,document.head.removeChild(k))});function I(y){var b;C(r,e,(b=c[y])!=null?b:y)}function v(y){t.onChanged?t.onChanged(y,I):I(y)}et(f,v,{flush:"post",immediate:!0}),ef(()=>v(f.value));const p=J({get(){return g?A.value:f.value},set(y){A.value=y}});try{return Object.assign(p,{store:A,system:h,state:f})}catch{return p}}function tle(t,r,e={}){const{window:n=Ei,...i}=e;let o;const a=ud(()=>n&&"MutationObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=et(()=>Ao(t),c=>{s(),a.value&&n&&c&&(o=new MutationObserver(r),o.observe(c,i))},{immediate:!0}),g=()=>o?.takeRecords(),u=()=>{s(),l()};return na(u),{isSupported:a,stop:u,takeRecords:g}}function rle(t={}){const{valueDark:r="dark",valueLight:e="",window:n=Ei}=t,i=Vm({...t,onChanged:(s,l)=>{var g;t.onChanged?(g=t.onChanged)==null||g.call(t,s==="dark",l,s):l(s)},modes:{dark:r,light:e}}),o=J(()=>i.system?i.system.value:k6({window:n}).value?"dark":"light");return J({get(){return i.value==="dark"},set(s){const l=s?"dark":"light";o.value===l?i.value="auto":i.value=l}})}function nle(t,r,e={}){const{window:n=Ei,...i}=e;let o;const a=ud(()=>n&&"ResizeObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=J(()=>Array.isArray(t)?t.map(c=>Ao(c)):[Ao(t)]),g=et(l,c=>{if(s(),a.value&&n){o=new ResizeObserver(r);for(const d of c)d&&o.observe(d,i)}},{immediate:!0,flush:"post",deep:!0}),u=()=>{s(),g()};return na(u),{isSupported:a,stop:u}}function ile(t,r={}){const{reset:e=!0,windowResize:n=!0,windowScroll:i=!0,immediate:o=!0}=r,a=H(0),s=H(0),l=H(0),g=H(0),u=H(0),c=H(0),d=H(0),h=H(0);function A(){const f=Ao(t);if(!f){e&&(a.value=0,s.value=0,l.value=0,g.value=0,u.value=0,c.value=0,d.value=0,h.value=0);return}const C=f.getBoundingClientRect();a.value=C.height,s.value=C.bottom,l.value=C.left,g.value=C.right,u.value=C.top,c.value=C.width,d.value=C.x,h.value=C.y}return nle(t,A),et(()=>Ao(t),f=>!f&&A()),tle(t,A,{attributeFilter:["style","class"]}),i&&on("scroll",A,{capture:!0,passive:!0}),n&&on("resize",A,{passive:!0}),ef(()=>{o&&A()}),{height:a,bottom:s,left:l,right:g,top:u,width:c,x:d,y:h,update:A}}function ole(t={}){const{initialValue:r=""}=t,e=ud(()=>typeof window<"u"&&"EyeDropper"in window),n=H(r);async function i(o){if(!e.value)return;const s=await new window.EyeDropper().open(o);return n.value=s.sRGBHex,s}return{isSupported:e,sRGBHex:n,open:i}}function ale(t,r,e={}){const{window:n=Ei}=e;return O6(t,r,n?.localStorage,e)}const sle={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function lle(t={}){const{reactive:r=!1,target:e=Ei,aliasMap:n=sle,passive:i=!0,onEventFired:o=ma}=t,a=Qs(new Set),s={toJSON(){return{}},current:a},l=r?Qs(s):s,g=new Set,u=new Set;function c(f,C){f in l&&(r?l[f]=C:l[f].value=C)}function d(){a.clear();for(const f of u)c(f,!1)}function h(f,C){var I,v;const p=(I=f.key)==null?void 0:I.toLowerCase(),b=[(v=f.code)==null?void 0:v.toLowerCase(),p].filter(Boolean);p&&(C?a.add(p):a.delete(p));for(const _ of b)u.add(_),c(_,C);p==="meta"&&!C?(g.forEach(_=>{a.delete(_),c(_,!1)}),g.clear()):typeof f.getModifierState=="function"&&f.getModifierState("Meta")&&C&&[...a,...b].forEach(_=>g.add(_))}on(e,"keydown",f=>(h(f,!0),o(f)),{passive:i}),on(e,"keyup",f=>(h(f,!1),o(f)),{passive:i}),on("blur",d,{passive:!0}),on("focus",d,{passive:!0});const A=new Proxy(l,{get(f,C,I){if(typeof C!="string")return Reflect.get(f,C,I);if(C=C.toLowerCase(),C in n&&(C=n[C]),!(C in l))if(/[+_-]/.test(C)){const p=C.split(/[+_-]/g).map(y=>y.trim());l[C]=J(()=>p.every(y=>_r(A[y])))}else l[C]=H(!1);const v=Reflect.get(f,C,I);return r?_r(v):v}});return A}function gle(t={}){const{controls:r=!1,interval:e="requestAnimationFrame"}=t,n=H(new Date),i=()=>n.value=new Date,o=e==="requestAnimationFrame"?Yse(i,{immediate:!0}):Wse(i,e,{immediate:!0});return r?{now:n,...o}:n}let ule=0;function cle(t,r={}){const e=H(!1),{document:n=Use,immediate:i=!0,manual:o=!1,id:a=`vueuse_styletag_${++ule}`}=r,s=H(t);let l=()=>{};const g=()=>{if(!n)return;const c=n.getElementById(a)||n.createElement("style");c.isConnected||(c.id=a,r.media&&(c.media=r.media),n.head.appendChild(c)),!e.value&&(l=et(s,d=>{c.textContent=d},{immediate:!0}),e.value=!0)},u=()=>{!n||!e.value||(l(),n.head.removeChild(n.getElementById(a)),e.value=!1)};return i&&!o&&ef(g),o||na(u),{id:a,css:s,unload:u,load:g,isLoaded:Va(e)}}const dle=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],hle={justNow:"just now",past:t=>t.match(/\d/)?`${t} ago`:t,future:t=>t.match(/\d/)?`in ${t}`:t,month:(t,r)=>t===1?r?"last month":"next month":`${t} month${t>1?"s":""}`,year:(t,r)=>t===1?r?"last year":"next year":`${t} year${t>1?"s":""}`,day:(t,r)=>t===1?r?"yesterday":"tomorrow":`${t} day${t>1?"s":""}`,week:(t,r)=>t===1?r?"last week":"next week":`${t} week${t>1?"s":""}`,hour:t=>`${t} hour${t>1?"s":""}`,minute:t=>`${t} minute${t>1?"s":""}`,second:t=>`${t} second${t>1?"s":""}`,invalid:""};function Ale(t){return t.toISOString().slice(0,10)}function fle(t,r={}){const{controls:e=!1,updateInterval:n=3e4}=r,{now:i,...o}=gle({interval:n,controls:!0}),a=J(()=>Cle(new Date(_r(t)),r,_r(i)));return e?{timeAgo:a,...o}:a}function Cle(t,r={},e=Date.now()){var n;const{max:i,messages:o=hle,fullDateFormatter:a=Ale,units:s=dle,showSecond:l=!1,rounding:g="round"}=r,u=typeof g=="number"?C=>+C.toFixed(g):Math[g],c=+e-+t,d=Math.abs(c);function h(C,I){return u(Math.abs(C)/I.value)}function A(C,I){const v=h(C,I),p=C>0,y=f(I.name,v,p);return f(p?"past":"future",y,p)}function f(C,I,v){const p=o[C];return typeof p=="function"?p(I,v):p.replace("{0}",I.toString())}if(d<6e4&&!l)return o.justNow;if(typeof i=="number"&&d>i)return a(new Date(t));if(typeof i=="string"){const C=(n=s.find(I=>I.name===i))==null?void 0:n.max;if(C&&d>C)return a(new Date(t))}for(const[C,I]of s.entries()){if(h(c,I)<=0&&s[C-1])return A(c,s[C-1]);if(d<I.max)return A(c,I)}return o.invalid}function Gm(t,r,e,n={}){var i,o,a;const{clone:s=!1,passive:l=!1,eventName:g,deep:u=!1,defaultValue:c,shouldEmit:d}=n,h=ul(),A=e||h?.emit||((i=h?.$emit)==null?void 0:i.bind(h))||((a=(o=h?.proxy)==null?void 0:o.$emit)==null?void 0:a.bind(h?.proxy));let f=g;r||(r="modelValue"),f=f||`update:${r.toString()}`;const C=p=>s?typeof s=="function"?s(p):Xse(p):p,I=()=>xse(t[r])?C(t[r]):c,v=p=>{d?d(p)&&A(f,p):A(f,p)};if(l){const p=I(),y=H(p);let b=!1;return et(()=>t[r],_=>{b||(b=!0,y.value=C(_),mn(()=>b=!1))}),et(y,_=>{!b&&(_!==t[r]||u)&&v(_)},{deep:u}),y}else return J({get(){return I()},set(p){v(p)}})}function Ile(t={}){const{window:r=Ei,initialWidth:e=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0}=t,a=H(e),s=H(n),l=()=>{r&&(o?(a.value=r.innerWidth,s.value=r.innerHeight):(a.value=r.document.documentElement.clientWidth,s.value=r.document.documentElement.clientHeight))};if(l(),ef(l),on("resize",l,{passive:!0}),i){const g=S6("(orientation: portrait)");et(g,()=>l())}return{width:a,height:s}}function x6(){return{isFirstVisit:!0,route:"/",graphSettings:{node_modules:!1,virtual:!1,lib:!1},tabSettings:{hiddenTabCategories:[],hiddenTabs:[],pinnedTabs:[]},expandSidebar:!1,scrollableSidebar:!0,splitScreen:{enabled:!1,view:"overview",size:[50,50]},scale:1,interactionCloseOnOutsideClick:!1,showPanel:!0,minimizePanelInteractive:5e3}}const lr=ale("__VUE_DEVTOOLS_CLIENT_STATE__",x6(),{mergeDefaults:!0});function vle(){lr.value=x6()}et(()=>lr.value.splitScreen.enabled,(t,r)=>{r&&!t&&(lr.value.splitScreen.size=[50,50])});const ss=[];function _o(t){ss.push(t),na(()=>{ss.splice(ss.indexOf(t),1)});const{connected:r,clientConnected:e}=Xi(),n=J(()=>e.value&&r.value);if(n.value){ss.forEach(i=>i());return}return _6(n,i=>{i&&ss.forEach(o=>o())}),()=>{ss.splice(ss.indexOf(t),1)}}function ple(){ss.forEach(t=>t())}function tf(){const t=Xi(),r=H(t.tabs.value||[]),e=J(()=>{const l=t.vitePluginDetected.value,g=[...Ose(l,kse.value?.moduleDetectives)];return r.value.forEach(u=>{const c=g.find(d=>d[0]===u.category);if(c){if(c[1].some(d=>d.name===u.name)||(!l||zS)&&m6.includes(u.name))return;c[1].push({...u})}}),g}),n=J(()=>e.value.reduce((l,[g,u])=>(u.forEach(c=>{l.push(c)}),l),[])),i=J(()=>{const{hiddenTabCategories:l,hiddenTabs:g,pinnedTabs:u}=lr.value.tabSettings,c=l.includes("pinned"),d=e.value.reduce((h,[A,f])=>{const C=[{hidden:!1,name:A},[]],I=l.includes(A);return f.forEach(v=>{const p=g.includes(v.name);if(u.includes(v.name))h[0][1].push({...v,hidden:p||c});else{const y=p||I;C[1].push({...v,hidden:y})}}),C[0].hidden=C[1].every(v=>v.hidden),h.push(C),h},[[{name:"pinned",hidden:!1},[]]]);return d[0][0].hidden=d[0][1].every(h=>h.hidden),d[0][1].sort((h,A)=>u.indexOf(h.name)-u.indexOf(A.name)),d}),o=J(()=>i.value.reduce((l,[g,u])=>{if(g.hidden)return l;const c=u.filter(d=>!d.hidden);return c.length&&l.push([g,c]),l},[])),a=J(()=>o.value.reduce((l,[g,u])=>(u.forEach(c=>{l.push(c)}),l),[])),s=yn();return _o(()=>{s.on.customTabsUpdated(l=>{r.value=l})}),{categorizedTabs:i,flattenedTabs:n,enabledTabs:o,enabledFlattenTabs:a}}function jP(t,r){return J(()=>{const e=[],n=lr.value.tabSettings.pinnedTabs;Ww(r).reduce((a,[{name:s,hidden:l},g])=>(g.forEach(u=>{if(Ww(t).some(c=>c.name===u.name)){const c=n.includes(u.name)?"pinned":s||"app";a.push({tab:u,category:{name:c,hidden:l}})}}),a),[]).forEach(({tab:a,category:s})=>{const l=e.find(([{name:g}])=>g===s.name);l?l[1].push(a):e.push([s,[a]])});const o=e.find(([{name:a}])=>a==="pinned");return o&&o[1].sort((a,s)=>n.indexOf(a.name)-n.indexOf(s.name)),e})}function mle(t){const r=new Map;return t.forEach(e=>r.set(e.id,e)),Array.from(r.values())}const m_=Qs(new Map);function yle(){const{enabledFlattenTabs:t}=tf(),r=gd(),e=Xi(),n=H(e.commands.value||[]);Mn(()=>{n.value=e.commands.value||[]});const i=yn();_o(()=>{i.on.customCommandsUpdated(s=>{n.value=s})});const o=[{id:"fixed:settings",title:"Settings",icon:"carbon-settings-adjust",action:()=>{r.push("/settings")}},{id:"fixed:docs",title:"Vue Documentations",icon:"i-vscode-icons-file-type-vue",action:()=>$le()}],a=J(()=>t.value.map(s=>({id:`tab:${s.name}`,title:s.title||s.name,icon:s.icon,action:()=>{"onClick"in s&&s.onClick?s.onClick():r.push("path"in s&&s.path?s.path:`/custom-tab-view/${s.name}`)}})));return J(()=>mle([...o,...a.value,...ble(n.value),...Array.from(m_.values()).flatMap(s=>Ww(s))]))}function VP(t){t?.type==="url"&&window.open(t.src,"_blank")}function ble(t){return t.map(r=>({id:`${r.id}`,title:r.title,icon:r.icon,description:r.description,order:r.order,action:()=>{if(r.children)return r.children.map(e=>({id:e.id,title:e.title,icon:e.icon,description:e.description,order:e.order,action:()=>{VP(e.action)}})).sort((e,n)=>(n.order??0)-(e.order??0));VP(r.action)}})).sort((r,e)=>(e.order??0)-(r.order??0))}function GP(t){const r=vq();m_.set(r,t),ad(()=>{m_.delete(r)})}let Yb;async function $le(){return Yb||(Yb=(await $n(()=>import("./vue-apis-Nh9IahXf.js"),__vite__mapDeps([]),import.meta.url).then(r=>r.default)).map(r=>({...r,icon:"carbon-api-1",action:()=>{window.open(r.url,"_blank")}}))),Yb}const wle={flex:"~ col","max-h-120":"","min-h-60":"",h:"60%","w-xl":"","of-hidden":"",border:"1 base","rounded-md":"","text-3.75":""},_le={border:"b base","flex-none":""},Ele={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},Sle=["id","onClick","onMouseover"],Tle={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},Ole={"ws-nowrap":""},kle={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},xle={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},Ple=w("span",{op50:""},"No results for",-1),Rle={"text-primary":""},Dle={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},Nle={"text-xs":"",flex:"~ items-center gap2"},Mle={px1:""},Ble={px1:""},Fle=w("span",{op75:""},"to navigate",-1),Lle={"text-xs":"",flex:"~ items-center gap2"},zle=w("button",{px1:""}," Esc ",-1),jle={op75:""},Vle={"text-xs":"",flex:"~ items-center gap2"},Gle={px1:""},Wle=w("span",{op75:""},"to select",-1),Hle=we({__name:"CommandPalette",setup(t){const r=H(!1),e=H(""),n=yle(),i=H(),o=J(()=>i.value||n.value),a=J(()=>new Hg(o.value,{keys:["id","title"],distance:50})),s=J(()=>e.value?a.value.search(e.value).map(d=>d.item):o.value||[]),l=H(0);et(e,()=>{l.value=0,u()});function g(d){l.value=(l.value+d+s.value.length)%s.value.length,u()}function u(){document.getElementById(s.value[l.value]?.id)?.scrollIntoView({block:"center"})}async function c(d){const h=await d.action();h?(i.value=h,e.value=""):(i.value=void 0,e.value="",r.value=!1)}return on("keydown",d=>{if((d.altKey||d.metaKey)&&d.key==="k"){d.preventDefault(),i.value=void 0,e.value="",r.value=!r.value;return}if(r.value)switch(d.key){case"ArrowDown":case"ArrowUp":d.preventDefault(),g(d.key==="ArrowDown"?1:-1);break;case"Enter":{const h=s.value[l.value];h&&(d.preventDefault(),c(h));break}case"Escape":{d.preventDefault(),i.value?(i.value=void 0,e.value=""):r.value=!1;break}}}),(d,h)=>{const A=qA;return m(r)?(T(),re(m(S2),{key:0,dim:"",class:"backdrop-blur-2xl!"},{default:V(()=>[w("div",wle,[w("header",_le,[z(m(Da),{modelValue:m(e),"onUpdate:modelValue":h[0]||(h[0]=f=>ze(e)?e.value=f:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),w("div",Ele,[(T(!0),L(be,null,pt(m(s),(f,C)=>(T(),L("button",{id:f.id,key:f.id,onClick:I=>c(f),onMouseover:I=>l.value=C},[w("div",{flex:"~ gap-2 items-center justify-between",rounded:"",px3:"",py2:"",class:Ee(m(l)===C?"op100 bg-primary/10 text-primary saturate-100 bg-active":"op80")},[z(A,{icon:f.icon,title:f.title,"flex-none":"","text-xl":""},null,8,["icon","title"]),w("span",Tle,[w("span",Ole,_e(f.title),1),w("span",kle,_e(f.description),1)]),m(l)===C?(T(),re(m(St),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):$e("",!0)],2)],40,Sle))),128)),m(s).length?$e("",!0):(T(),L("div",xle,[z(m(St),{icon:"carbon-search",op50:""}),w("div",null,[Ple,w("strong",Rle,' "'+_e(m(e))+'" ',1)])]))]),w("footer",Dle,[w("div",Nle,[w("button",Mle,[z(m(St),{icon:"carbon-arrow-down"})]),w("button",Ble,[z(m(St),{icon:"carbon-arrow-up"})]),Fle]),w("div",Lle,[zle,w("span",jle,"to "+_e(m(i)?"go back":"close"),1)]),w("div",Vle,[w("button",Gle,[z(m(St),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),Wle])])])]),_:1})):$e("",!0)}}}),rf=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},Ule={},Zle={class:"panel-grids-center"};function Kle(t,r){return T(),L("div",Zle,[Qe(t.$slots,"default")])}const Eo=rf(Ule,[["render",Kle]]),Yle={flex:"~ items-center gap-3"},Xle={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},Qle={"translate-y-0.5px":""},qle={key:0,hidden:"","lg:block":""},P6=we({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"}},setup(t){const r=t,e=Nm(),n=J(()=>"path"in r.tab?`${r.tab.path.startsWith("/")?"":"/"}${r.tab.path}`:`/custom-tab-view/${r.tab.name}`),i=J(()=>"badge"in r.tab&&r.tab.badge?.()),o=J(()=>e.path.startsWith(n.value));function a(){"onClick"in r.tab&&r.tab.onClick?r.tab.onClick():r.target==="side"&&(lr.value.splitScreen.view=r.tab.name)}return(s,l)=>{const g=qA;return T(),re(m(zae),{disabled:!s.minimized,placement:"right",class:Ee({"w-full":!s.minimized})},{popper:V(()=>[w("div",null,_e(s.tab.title),1),"extraTabVNode"in s.tab&&s.tab.extraTabVNode?(T(),L("div",qle,[(T(),re(qs(s.tab.extraTabVNode)))])):$e("",!0)]),default:V(()=>[(T(),re(qs(s.target==="main"?m(S8):"button"),{to:m(n),flex:`~ items-center ${s.minimized?"justify-center":"justify-between"}`,hover:"bg-active op-100",w:s.minimized?"10":"full",rounded:s.minimized?"xl":"",p:s.minimized?"1":"x3","text-secondary":"",relative:"",block:"","h-10":"","select-none":"",op65:"","exact-active-class":"!text-primary-600 bg-active op-100!",onClick:a},{default:V(()=>[w("div",Yle,[z(g,{"text-xl":"",icon:s.tab.icon,title:"Settings","show-title":!1},null,8,["icon"]),s.minimized?$e("",!0):(T(),L("span",Xle,_e(s.tab.title),1))]),m(i)?(T(),L("div",{key:0,"h-4":"","w-4":"","rounded-full":"","text-9px":"","text-white":"",flex:"~ items-center justify-center",class:Ee([m(o)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":s.minimized}])},[w("span",Qle,_e(m(_r)(m(i))),1)],2)):$e("",!0)]),_:1},8,["to","flex","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),Jle={flex:"~ col gap-1","max-w-80":"",py1:""},ege={key:0,"h-1px":"",border:"b base"},tge={flex:"~ wrap",px1:""},R6=we({__name:"TabsGrid",props:{categories:{},target:{}},setup(t){return(r,e)=>{const n=P6;return T(),L("div",Jle,[(T(!0),L(be,null,pt(r.categories,([i,o],a)=>(T(),L(be,{key:i},[o.length?(T(),L(be,{key:0},[a?(T(),L("div",ege)):$e("",!0),w("div",tge,[(T(!0),L(be,null,pt(o,s=>(T(),re(n,{key:s.name,target:r.target,tab:s},null,8,["target","tab"]))),128))])],64)):$e("",!0)],64))),128))])}}}),rge={"h-full":"","h-screen":"","of-hidden":""},nge={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},ige={flex:"","cursor-pointer":"","items-center":"",gap2:""},oge=w("div",{"i-carbon-chevron-down":"","text-sm":"",op50:""},null,-1),age={capitalize:""},sge=w("div",{"flex-auto":""},null,-1),lge=w("div",{"i-carbon:side-panel-open":""},null,-1),gge=[lge],uge={key:1,"of-auto":"",style:{height:"calc(100% - 50px)"}},cge=w("span",{"text-lg":"",op50:""}," Select a tab to start ",-1),dge=we({__name:"SplitScreen",setup(t){function r(){lr.value.splitScreen.enabled=!1}const e=J(()=>lr.value.splitScreen),{enabledTabs:n,flattenedTabs:i}=tf(),o=gd(),a=Nm(),s=aa();function l(c){const d=a.path.startsWith("/")?a.path.slice(1):a.path;return c&&"path"in c&&d===c.path}const g=J(()=>{const c=i.value.find(d=>d.name===e.value.view);return l(c)?void 0:c});et(()=>g.value,c=>{if(!c)return;const d=o.getRoutes(),h=c&&"path"in c?d.find(C=>C.path===(c.path.startsWith("/")?c.path:`/${c.path}`)):d.find(C=>C.name==="custom-tab"),A=a.path.startsWith("/")?a.path.slice(1):a.path;if(h?.path===A||a.params?.name===c.name){s.value=void 0;return}const f=h?.components?.default;typeof f=="function"?s.value=DJ(f):s.value=f},{immediate:!0});const u=H(!1);return(c,d)=>{const h=qA,A=R6,f=Eo;return T(),L("div",rge,[m(s)&&m(g)?(T(),L("div",nge,[z(m(kc),{placement:"bottom-start",distance:12,skidding:5,shown:m(u),trigger:"click"},{popper:V(()=>[z(A,{categories:m(n),target:"side"},null,8,["categories"])]),default:V(()=>[w("div",ige,[oge,z(h,{"text-xl":"",icon:m(g)?.icon,title:"Settings","show-title":!1},null,8,["icon"]),w("span",age,_e(m(g)?.name),1)])]),_:1},8,["shown"]),sge,Sr((T(),L("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:r},gge)),[[m($i),"Close split screen"]])])):$e("",!0),m(s)&&m(g)?(T(),L("div",uge,[(T(),re(qs(m(s)),{key:`tab-${m(g).name}`}))])):(T(),re(f,{key:2},{default:V(()=>[cge,z(m(hv),{px4:"",py2:"","bg-base":""},{default:V(()=>[z(A,{categories:m(n),target:"side"},null,8,["categories"])]),_:1}),z(m(at),{type:"warning",outlined:"",mt2:"",onClick:r},{default:V(()=>[ke(" Close Split Screen ")]),_:1})]),_:1}))])}}});function Wm(){const t=v2(),r=H("");return yc&&Je.chrome.storage.local.get(Eb).then(e=>{r.value=e[Eb]??"overlay"}),{viewMode:r,toggle(e){r.value=e,Je.chrome.storage.local.set({[Eb]:e}),yc&&t.value.emit("toggle-view-mode",e)}}}const hge={px3:"",py2:"",border:"b base",flex:"~ gap-2"},Age=w("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1),fge=w("div",{"i-carbon-settings-adjust":""},null,-1),Cge={px3:"",py2:"",border:"b base",flex:"~ gap-2"},Ige=w("div",{"i-carbon-split-screen":""},null,-1),vge={px3:"",py2:"",flex:"~ gap2"},pge=we({__name:"DockingPanel",setup(t){const r=Tr("viewMode",H("overlay")),e=J(()=>r.value==="panel"&&yc),{toggle:n}=Wm(),i=yn(),o=gd(),a=J({get:()=>lr.value.expandSidebar,set:h=>lr.value.expandSidebar=h}),s=J({get:()=>lr.value.splitScreen.enabled,set:h=>lr.value.splitScreen.enabled=h});function l(){location.reload()}const g=Xi(),u=J(()=>g.appRecords.value.map(h=>({label:h.name+(h.version?` (${h.version})`:""),value:h.id}))),c=H(g.activeAppRecordId.value),d=J(()=>u.value.find(h=>h.value===c.value)?.label??"");return et(c,h=>{i.toggleApp(`${h}`).then(()=>{o.push("/overview").then(()=>{ple()})})}),(h,A)=>(T(),L("div",null,[w("div",hge,[z(m(g6),null,{default:V(({isDark:f,toggle:C})=>[z(m(at),{outlined:"",type:"primary",onClick:C},{default:V(()=>[Age,ke(" "+_e(f?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),z(m(at),{outlined:"",type:"primary",onClick:A[0]||(A[0]=f=>a.value=!m(a))},{default:V(()=>[z(m(St),{icon:m(a)?"i-carbon-side-panel-close":"i-carbon-side-panel-open"},null,8,["icon"]),ke(" "+_e(m(a)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),z(m(at),{to:"/settings",outlined:"",type:"primary"},{default:V(()=>[fge,ke(" Settings ")]),_:1})]),w("div",Cge,[z(m(at),{outlined:"",type:"primary",onClick:A[1]||(A[1]=f=>s.value=!m(s))},{default:V(()=>[Ige,ke(" "+_e(m(s)?"Close Split Screen":"Split Screen"),1)]),_:1})]),w("div",vge,[m(u).length>1?(T(),re(m(fp),{key:0,modelValue:m(c),"onUpdate:modelValue":A[2]||(A[2]=f=>ze(c)?c.value=f:null),options:m(u),placeholder:m(d)||"Toggle App","button-props":{outlined:!0,type:"primary"}},null,8,["modelValue","options","placeholder"])):$e("",!0),z(m(at),{outlined:"",type:"primary",onClick:l},{default:V(()=>[ke(" Refresh Page ")]),_:1}),m(e)?(T(),re(m(at),{key:1,outlined:"",type:"primary",onClick:A[3]||(A[3]=f=>m(n)("overlay"))},{default:V(()=>[ke(" Switch to Overlay Mode ")]),_:1})):$e("",!0)])]))}}),mge={border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},yge={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},bge=w("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1),$ge=w("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1),wge=w("div",{"flex-auto":""},null,-1),_ge=w("div",{"i-carbon-overflow-menu-vertical":""},null,-1),Ege={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},Sge=w("div",{"flex-auto":""},null,-1),Tge=["flex"],Oge={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},kge={"translate-y-0.5px":""},xge=45,Pge=we({__name:"SideNav",setup(t){const r=H(!1),e=H(!1),n=H(),i=H(),o=H(),a=J(()=>lr.value.expandSidebar),s=J(()=>lr.value.scrollableSidebar),{enabledTabs:l,flattenedTabs:g}=tf(),{height:u}=Ile(),c=J(()=>{const I=u.value-130;return Math.max(0,Math.floor(I/xge))}),d=J(()=>g.value.slice(0,c.value)),h=J(()=>g.value.slice(c.value)),A=jP(d,l),f=jP(h,l),C=J(()=>s.value||a.value?l.value:A.value);return Zse(n,I=>{i.value&&I.composedPath().includes(i.value)||o.value&&I.composedPath().includes(o.value)||(r.value=!1,e.value=!1)},{detectIframe:!0}),(I,v)=>{const p=pge,y=P6,b=qA,_=R6;return T(),L("div",mge,[w("div",yge,[z(m(kc),{placement:"left-start",distance:6,skidding:5,trigger:"click",shown:m(r),class:"w-full"},{popper:V(()=>[z(p)]),default:V(()=>[w("button",{ref_key:"buttonDocking",ref:i,flex:"~ items-center justify-center gap-2",hover:"bg-active","text-secondary":"",relative:"","h-10":"","select-none":"",p2:"","exact-active-class":"!text-primary bg-active",class:Ee([m(a)?"w-full rounded pl2.5":"w-10 rounded-xl"])},[bge,m(a)?(T(),L(be,{key:0},[$ge,wge,_ge],64)):$e("",!0)],2)]),_:1},8,["shown"])]),w("div",{flex:"~ auto col gap-0.5 items-center","w-full":"",p1:"",class:Ee(["no-scrollbar",m(a)?"":"of-x-hidden of-y-auto"])},[(T(!0),L(be,null,pt(m(C),([P,k],E)=>(T(),L(be,{key:P},[E?(T(),L("div",Ege)):$e("",!0),(T(!0),L(be,null,pt(k.filter(O=>!O.hidden),O=>(T(),re(y,{key:O.name,tab:O,minimized:!m(a)},null,8,["tab","minimized"]))),128))],64))),128)),Sge],2),w("div",{flex:`~ items-center gap-1 ${m(a)?"":"none col"}`,border:"t base",sticky:"","bottom-0":"","w-full":"",p1:"","bg-base":"",class:"$ui-z-max-override"},[m(h).length&&!m(s)&&!m(a)?(T(),re(m(kc),{key:0,placement:"left-end",distance:6},{popper:V(()=>[z(_,{categories:m(f),"max-w-80":"",target:"main"},null,8,["categories"])]),default:V(()=>[w("button",{ref_key:"buttonMoreTabs",ref:o,flex:"~",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-10":"","select-none":"","items-center":"","justify-center":"","rounded-xl":"",p1:"","exact-active-class":"!text-primary bg-active"},[z(b,{"text-xl":"",icon:"i-carbon-overflow-menu-vertical",title:"More tabs","show-title":!1}),w("div",Oge,[w("span",kge,_e(m(h).length),1)])],512)]),_:1})):$e("",!0),z(y,{minimized:!m(a),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,Tge)])}}}),Rge={},Dge={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nge=fee('<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 198" width="128" height="128"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>',2),Mge=[Nge];function Bge(t,r){return T(),L("svg",Dge,Mge)}const P2=rf(Rge,[["render",Bge]]),Fge={class:"fixed inset-0 h-screen w-screen flex flex-col items-center justify-center $ui-bg-base"},Lge=w("p",{class:"p3 text-sm font-bold"},[ke(" DevTools is currently injected into user application in "),w("em",{class:"text-primary-600"},"Overlay"),ke(" view mode. ")],-1),zge=we({__name:"ViewModeSwitch",setup(t){Vm();const{toggle:r}=Wm();return(e,n)=>{const i=P2;return T(),L("div",Fge,[z(i,{"h-18":""}),Lge,w("p",null,[z(m(at),{onClick:n[0]||(n[0]=En(o=>m(r)("panel"),["stop"]))},{default:V(()=>[ke(" Switch to Panel Mode ")]),_:1})])])}}}),jge="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20id='svg2'%20version='1.1'%20inkscape:version='0.91%20r13725'%20xml:space='preserve'%20width='375'%20height='375'%20viewBox='0%200%20375%20375'%20sodipodi:docname='vue-logo.svg'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata8'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs6'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1017'%20id='namedview4'%20showgrid='false'%20inkscape:zoom='0.62933333'%20inkscape:cx='187.5'%20inkscape:cy='187.5'%20inkscape:window-x='0'%20inkscape:window-y='30'%20inkscape:window-maximized='1'%20inkscape:current-layer='g10'%20/%3e%3cg%20id='g10'%20inkscape:groupmode='layer'%20inkscape:label='logo'%20transform='matrix(1.25,0,0,-1.25,0,375)'%3e%3cg%20id='g12'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-120.829,0%20-22.669,-170.017%2075.491,0%200,0%20Z'%20style='fill:%2341b883;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path14'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3cg%20id='g16'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-81.565,0%20-22.669,-102.01%2036.227,0%200,0%20Z'%20style='fill:%2334495e;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path18'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Vge={class:"h-screen w-screen $ui-fcc flex-col"},Gge={class:"outer"},Wge={class:"inner"},Hge=["src"],Uge=we({__name:"AppConnecting",setup(t){return(r,e)=>(T(),L("div",Vge,[w("div",Gge,[w("div",Wge,[w("img",{src:m(jge),class:"max-w-18",alt:"Vue logo"},null,8,Hge)])]),Qe(r.$slots,"default",{},void 0,!0)]))}}),D6=rf(Uge,[["__scopeId","data-v-204233a8"]]),cd={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,r)=>(t[r.id]=r)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,r){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=r},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,r){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===r?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,r),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=r,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[r])},onSplitterDblClick(t,r){let e=0;this.panes=this.panes.map((n,i)=>(n.size=i===r?n.max:n.min,i!==r&&(e+=n.min),n)),this.panes[r].size-=e,this.$emit("pane-maximize",this.panes[r]),this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},onPaneClick(t,r){this.$emit("pane-click",this.indexedPanes[r])},getCurrentMouseDrag(t){const r=this.container.getBoundingClientRect(),{clientX:e,clientY:n}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:e-r.left,y:n-r.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const r=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=r-t),t*100/r},calculatePanesSize(t){const r=this.touch.activeSplitter;let e={prevPanesSize:this.sumPrevPanesSize(r),nextPanesSize:this.sumNextPanesSize(r),prevReachedMinPanes:0,nextReachedMinPanes:0};const n=0+(this.pushOtherPanes?0:e.prevPanesSize),i=100-(this.pushOtherPanes?0:e.nextPanesSize),o=Math.max(Math.min(this.getCurrentDragPercentage(t),i),n);let a=[r,r+1],s=this.panes[a[0]]||null,l=this.panes[a[1]]||null;const g=s.max<100&&o>=s.max+e.prevPanesSize,u=l.max<100&&o<=100-(l.max+this.sumNextPanesSize(r+1));if(g||u){g?(s.size=s.max,l.size=Math.max(100-s.max-e.prevPanesSize-e.nextPanesSize,0)):(s.size=Math.max(100-l.max-e.prevPanesSize-this.sumNextPanesSize(r+1),0),l.size=l.max);return}if(this.pushOtherPanes){const c=this.doPushOtherPanes(e,o);if(!c)return;({sums:e,panesToResize:a}=c),s=this.panes[a[0]]||null,l=this.panes[a[1]]||null}s!==null&&(s.size=Math.min(Math.max(o-e.prevPanesSize-e.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-o-e.nextPanesSize-e.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(t,r){const e=this.touch.activeSplitter,n=[e,e+1];return r<t.prevPanesSize+this.panes[n[0]].min&&(n[0]=this.findPrevExpandedPane(e).index,t.prevReachedMinPanes=0,n[0]<e&&this.panes.forEach((i,o)=>{o>n[0]&&o<=e&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),t.prevPanesSize=this.sumPrevPanesSize(n[0]),n[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((i,o)=>{o>0&&o<=e&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),this.panes[n[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):r>100-t.nextPanesSize-this.panes[n[1]].min&&(n[1]=this.findNextExpandedPane(e).index,t.nextReachedMinPanes=0,n[1]>e+1&&this.panes.forEach((i,o)=>{o>e&&o<n[1]&&(i.size=i.min,t.nextReachedMinPanes+=i.min)}),t.nextPanesSize=this.sumNextPanesSize(n[1]-1),n[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((i,o)=>{o<this.panesCount-1&&o>=e+1&&(i.size=i.min,t.nextReachedMinPanes+=i.min)}),this.panes[n[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:n}},sumPrevPanesSize(t){return this.panes.reduce((r,e,n)=>r+(n<t?e.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((r,e,n)=>r+(n>t+1?e.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(r=>r.index<t&&r.size>r.min)||{}},findNextExpandedPane(t){return this.panes.find(r=>r.index>t+1&&r.size>r.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const r=t.classList.contains("splitpanes__pane"),e=t.classList.contains("splitpanes__splitter");!r&&!e&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(t,r,e=!1){const n=t-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),e||(i.onmousedown=o=>this.onMouseDown(o,n),typeof window<"u"&&"ontouchstart"in window&&(i.ontouchstart=o=>this.onMouseDown(o,n)),i.onclick=o=>this.onSplitterClick(o,n+1)),this.dblClickSplitter&&(i.ondblclick=o=>this.onSplitterDblClick(o,n+1)),r.parentNode.insertBefore(i,r)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(e=>{e.className.includes("splitpanes__splitter")&&this.removeSplitter(e)});let r=0;t.forEach(e=>{e.className.includes("splitpanes__pane")&&(!r&&this.firstSplitter?this.addSplitter(r,e,!0):r&&this.addSplitter(r,e),r++)})},requestUpdate({target:t,...r}){const e=this.indexedPanes[t._.uid];Object.entries(r).forEach(([n,i])=>e[n]=i)},onPaneAdd(t){let r=-1;Array.from(t.$el.parentNode.children).some(i=>(i.className.includes("splitpanes__pane")&&r++,i===t.$el));const e=parseFloat(t.minSize),n=parseFloat(t.maxSize);this.panes.splice(r,0,{id:t._.uid,index:r,min:isNaN(e)?0:e,max:isNaN(n)?100:n,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((i,o)=>i.index=o),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[r]}),this.$emit("pane-add",{index:r,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},onPaneRemove(t){const r=this.panes.findIndex(n=>n.id===t._.uid),e=this.panes.splice(r,1)[0];this.panes.forEach((n,i)=>n.index=i),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...e,index:r}}),this.$emit("pane-remove",{removed:e,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(r=>r.givenSize!==null||r.min||r.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},equalize(){const t=100/this.panesCount;let r=0;const e=[],n=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(t,i.max),i.min),r-=i.size,i.size>=i.max&&e.push(i.id),i.size<=i.min&&n.push(i.id)}),r>.1&&this.readjustSizes(r,e,n)},initialPanesSizing(){let t=100;const r=[],e=[];let n=0;this.panes.forEach(o=>{t-=o.size,o.size!==null&&n++,o.size>=o.max&&r.push(o.id),o.size<=o.min&&e.push(o.id)});let i=100;t>.1&&(this.panes.forEach(o=>{o.size===null&&(o.size=Math.max(Math.min(t/(this.panesCount-n),o.max),o.min)),i-=o.size}),i>.1&&this.readjustSizes(t,r,e))},equalizeAfterAddOrRemove({addedPane:t,removedPane:r}={}){let e=100/this.panesCount,n=0;const i=[],o=[];t&&t.givenSize!==null&&(e=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&o.push(a.id)}),!(Math.abs(n)<.1)&&(this.panes.forEach(a=>{t&&t.givenSize!==null&&t.id===a.id||(a.size=Math.max(Math.min(e,a.max),a.min)),n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&o.push(a.id)}),n>.1&&this.readjustSizes(n,i,o))},readjustSizes(t,r,e){let n;t>0?n=t/(this.panesCount-r.length):n=t/(this.panesCount-e.length),this.panes.forEach((i,o)=>{if(t>0&&!r.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),s=a-i.size;t-=s,i.size=a}else if(!e.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),s=a-i.size;t-=s,i.size=a}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((r,e)=>{r.ondblclick=t?n=>this.onSplitterDblClick(n,e):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return ld("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Zge=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},Kge={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function Yge(t,r,e,n,i,o){return T(),L("div",{class:"splitpanes__pane",onClick:r[0]||(r[0]=a=>o.onPaneClick(a,t._.uid)),style:Er(t.style)},[Qe(t.$slots,"default")],4)}const wi=Zge(Kge,[["render",Yge]]);function nf(){const{copy:t,copied:r}=x2();return{copy:(n,i={})=>{const{silent:o=!1,type:a=""}=i;t(n).then(()=>{o||d_({message:"Copied to clipboard",type:"success",duration:3e3})}).catch(()=>{o||d_({message:"Failed to copy to clipboard",type:"error",duration:3e3})})},copied:r}}const Xge={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},Qge=we({__name:"App",setup(t){$n(()=>import("./unocss-runtime-402WFgCt.js"),__vite__mapDeps([]),import.meta.url),Vm();const r=gd(),e=Nm(),{connected:n,clientConnected:i}=Xi(),o=yn(),a=lr,s=Tr("viewMode",H("overlay")),l=J(()=>s.value==="overlay"&&yc);Wm();const g=v2(),u=J(()=>e.path.startsWith("/__")||e.path==="/"),c=J(()=>a.value.expandSidebar),d=J(()=>i.value&&n.value);Mn(()=>{const v=lr.value.scale;document.documentElement.style.fontSize=`${v*15}px`}),et(d,v=>{v&&(r.replace(a.value.isFirstVisit?"/":a.value.route),r.afterEach(()=>{const p=e.path;p.includes("__")||(a.value.route=p)}))},{immediate:!0}),on("keydown",v=>{v.code==="KeyD"&&v.altKey&&v.shiftKey&&g.value.emit("toggle-panel")}),Mn(()=>{g.value.emit("update-client-state",{minimizePanelInteractive:lr.value.minimizePanelInteractive,closeOnOutsideClick:lr.value.interactionCloseOnOutsideClick,showFloatingPanel:lr.value.showPanel})});const h=J(()=>a.value.splitScreen.enabled),A=J({get:()=>a.value.splitScreen.size,set:v=>a.value.splitScreen.size=v}),f=Xi();Mn(()=>{y6.value=f.appRecords.value,b6.value=f.activeAppRecordId.value});const{copy:C}=nf(),I=ole({});return o?.isVueInspectorDetected?.()?.then(({data:v})=>{v&&GP(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{g.value.emit("toggle-panel",!1),await o.enableVueInspector()}}])}),GP(()=>[...I.isSupported.value?[{id:"action:eye-dropper",title:"Color Picker",icon:"i-carbon-eyedropper",action:async()=>{const{sRGBHex:v}=await I.open()||{};v&&C(v)}}]:[]]),(v,p)=>{const y=D6,b=zge,_=Pge,P=_i("RouterView"),k=dge,E=Hle;return T(),L("main",Xge,[m(d)?m(l)?(T(),re(b,{key:1})):(T(),L("div",{key:2,class:Ee(["h-full of-auto",m(u)?"flex":m(c)?"grid grid-cols-[250px_1fr]":"grid grid-cols-[50px_1fr]"]),"h-full":"","h-screen":"","of-hidden":"","font-sans":"","bg-base":""},[m(u)?$e("",!0):(T(),re(_,{key:0,"of-x-hidden":"","of-y-auto":""})),z(m(cd),{"h-full":"","of-hidden":"",onResize:p[0]||(p[0]=O=>A.value=O.map(N=>N.size))},{default:V(()=>[z(m(wi),{"h-full":"",class:"of-auto!","min-size":"10",size:m(A)[0]},{default:V(()=>[z(P)]),_:1},8,["size"]),!m(u)&&m(h)?(T(),re(m(wi),{key:0,relative:"","h-full":"",class:"of-auto!",size:m(A)[1]},{default:V(()=>[z(k)]),_:1},8,["size"])):$e("",!0)]),_:1})],2)):(T(),re(y,{key:0})),z(E)])}}}),R2=we({__name:"ExpandIcon",props:{value:{type:Boolean}},setup(t){return(r,e)=>(T(),L("i",{class:Ee(["i-radix-icons:triangle-right flex-none text-5 op-50 transition-base",{"transform rotate-90":r.value}])},null,2))}}),qge={class:"flex-inline items-center gap4px"},Jge=we({__name:"EditInput",props:{modelValue:{},type:{},showActions:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0}},emits:["cancel","submit","update:modelValue"],setup(t,{emit:r}){const e=t,n=r,{escape:i,enter:o}=lle();Mn(()=>{i.value?n("cancel"):o.value&&n("submit",e.type)});const a=Gm(e,"modelValue",n);function s(u){try{return r8(u),!0}catch{return!1}}const l=H(!1);return et(a,$c(()=>{l.value=!s(a.value)},300)),(u,c)=>(T(),L("span",qge,[z(m(Da),{modelValue:m(a),"onUpdate:modelValue":c[0]||(c[0]=d=>ze(a)?a.value=d:null),variant:m(l)?"warning":"normal",class:"h25px w120px px4px","auto-focus":u.autoFocus,onClick:c[1]||(c[1]=En(()=>{},["stop"]))},null,8,["modelValue","variant","auto-focus"]),u.showActions?(T(),L(be,{key:0},[Sr((T(),re(m(at),{size:"mini",flat:"",class:"p2px!",onClick:c[2]||(c[2]=En(d=>u.$emit("cancel"),["stop"]))},{icon:V(()=>[z(m(St),{icon:"i-material-symbols-cancel"})]),_:1})),[[m($i),{content:"Esc to cancel"}]]),m(l)?Sr((T(),re(m(St),{key:1,icon:"i-material-symbols-warning",class:"color-warning-500 dark:color-warning-300"},null,512)),[[m($i),{content:"Invalid value"}]]):Sr((T(),re(m(at),{key:0,size:"mini",flat:"",class:"p2px!",onClick:c[3]||(c[3]=En(d=>u.$emit("submit",u.type),["stop"]))},{icon:V(()=>[z(m(St),{icon:"i-material-symbols-save"})]),_:1})),[[m($i),{content:"Enter to submit change"}]])],64)):$e("",!0)]))}}),N6=Symbol("StateEditorSymbol");function eue(t){const r=H(t);return pa(N6,r),{context:r}}function D2(){return Tr(N6)}function tue(){const t=H(""),r=H("string"),e=H(!1),n=D2();return{editingText:t,editing:e,toggleEditing(i){i&&(r.value=i),e.value=!e.value},editingType:r,nodeId:n.value.nodeId}}function rue(t,r){if(t==="array")return r.length;const e="newProp";let n=1;for(;;){const i=`${e}${n}`;if(!r[i])return i;n++}}function nue(){const t=H({enable:!1,key:"",value:"undefined"});function r(n,i){const o=rue(n,i);t.value={enable:!0,key:o.toString(),value:"undefined"}}function e(){t.value={enable:!1,key:"",value:"undefined"}}return{addNewProp:r,resetDrafting:e,draftingNewProp:t}}const iue={class:"inline pl5px"},oue={class:"w160px py5px"},WP=we({__name:"Actions",props:{data:{},hovering:{type:Boolean},depth:{},showAddIfNeeded:{type:Boolean,default:!0},disableEdit:{type:Boolean}},emits:["enableEditInput","addNewProp"],setup(t){const r=t,e=yn(),n=D2(),{copy:i,isSupported:o}=x2(),a=H(!1),s=J(()=>f2(r.data.value).value),l=J(()=>typeof s.value),g={flat:!0,size:"mini"},u=J(()=>({"opacity-0":!r.hovering}));function c(d,h=!1){e.editInspectorState({path:r.data.key.split("."),inspectorId:n.value.inspectorId,type:r.data.stateType,nodeId:n.value.nodeId,state:{newKey:null,value:mt(d),type:l.value,remove:h}})}return(d,h)=>(T(),L("div",iue,[!r.disableEdit&&d.data.editable?(T(),L(be,{key:0},[m(l)==="string"||m(l)==="number"||m(l)==="object"?(T(),L(be,{key:0},[Sr((T(),re(m(at),wn(g,{class:m(u),onClick:h[0]||(h[0]=En(A=>d.$emit("enableEditInput",m(l)),["stop"]))}),{icon:V(()=>[z(m(St),{icon:"i-material-symbols-edit-rounded"})]),_:1},16,["class"])),[[m($i),{content:"Edit value"}]]),m(l)==="object"&&d.showAddIfNeeded?Sr((T(),re(m(at),wn({key:0},g,{class:m(u),onClick:h[1]||(h[1]=En(A=>d.$emit("addNewProp",Array.isArray(m(s))?"array":"object"),["stop"]))}),{icon:V(()=>[z(m(St),{icon:"i-material-symbols-add-circle-rounded"})]),_:1},16,["class"])),[[m($i),{content:"Add new value"}]]):$e("",!0)],64)):$e("",!0),m(l)==="boolean"?(T(),re(m(at),wn({key:1},g,{class:m(u),onClick:h[2]||(h[2]=A=>c(!m(s)))}),{icon:V(()=>[z(m(St),{icon:m(s)?"i-material-symbols-check-box-sharp":"i-material-symbols-check-box-outline-blank-sharp"},null,8,["icon"])]),_:1},16,["class"])):m(l)==="number"?(T(),L(be,{key:2},[z(m(at),wn(g,{class:m(u),onClick:h[3]||(h[3]=En(A=>c(m(s)+1),["stop"]))}),{icon:V(()=>[z(m(St),{icon:"i-carbon-add"})]),_:1},16,["class"]),z(m(at),wn(g,{class:m(u),onClick:h[4]||(h[4]=En(A=>c(m(s)-1),["stop"]))}),{icon:V(()=>[z(m(St),{icon:"i-carbon-subtract"})]),_:1},16,["class"])],64)):$e("",!0)],64)):$e("",!0),!r.disableEdit&&d.depth>0?(T(),re(m(at),wn({key:1},g,{class:m(u),onClick:h[5]||(h[5]=En(A=>c(m(s),!0),["stop"]))}),{icon:V(()=>[z(m(St),{icon:"i-material-symbols-delete-rounded"})]),_:1},16,["class"])):$e("",!0),z(m(kc),{class:Ee({"opacity-0":!d.hovering&&!m(a)}),"button-props":{flat:!0,size:"mini"},disabled:!m(o),"onUpdate:visible":h[8]||(h[8]=A=>a.value=A)},{popper:V(()=>[w("div",oue,[z(m(TP),{onClick:h[6]||(h[6]=A=>m(i)(m(l)==="object"?JSON.stringify(m(s)):m(s).toString()))},{icon:V(()=>[z(m(St),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),ke(" Copy Value ")]),_:1}),z(m(TP),{onClick:h[7]||(h[7]=()=>{m(i)(d.data.key)})},{icon:V(()=>[z(m(St),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),ke(" Copy Path ")]),_:1})])]),"button-icon":V(()=>[z(m(St),{icon:"i-material-symbols:more-vert"})]),_:1},8,["class","disabled"])]))}});function xc(t){const r=H({}),e=H({});return pa(`CollapseMapSymbol${t}`,r),pa(`CollapseMapSymbol${t}LinkedList`,e),{collapseMap:r,id:t,linkedList:e}}function aue(t){const r=Tr(`CollapseMapSymbol${t}`),e=Tr(`CollapseMapSymbol${t}LinkedList`);return{collapseMap:r,linkedList:e,id:t}}function N2(t,r,e){const{collapseMap:n,linkedList:i}=aue(t),o=J(()=>n.value[r]??!1),a=()=>{n.value[r]=!n.value[r]};return e?.length&&(i.value[r]=e??[]),{isExpanded:o,toggleCollapse:a}}function sue(t,r={}){const{enter:e=()=>{},leave:n=()=>{},initital:i=!1}=r,o=H(i);return on(t,"mouseenter",()=>{o.value=!0,e()}),on(t,"mouseleave",()=>{o.value=!1,n()}),{isHovering:o}}const M2=t=>(mm("data-v-c899a6c2"),t=t(),ym(),t),lue={key:0},gue={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},uue=M2(()=>w("span",{"mx-1":""},":",-1)),cue=["innerHTML"],due={key:1,"cursor-pointer":""},hue={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},Aue=M2(()=>w("span",{"mx-1":""},":",-1)),fue=["innerHTML"],Cue={key:0},Iue={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},vue=M2(()=>w("span",{"mx-1":""},":",-1)),HP=30,pue=we({__name:"InspectorStateField",props:{data:{},depth:{default:0},no:{},rootId:{}},setup(t){const r=t,e=D2(),n=yn(),i=J(()=>t8(r.data.value)),o=J(()=>xm(r.data.value)),a=J(()=>o.value==="custom"?`state-format-${r.data.value._custom?.type}`:""),{isExpanded:s,toggleCollapse:l}=N2("inspector-state",`${r.rootId}-${r.no}-${r.depth}-${r.data.key}`),g=J(()=>{const M=r.data._custom?.stateTypeName||r.data?.stateTypeName;if(M==="Reactive")return M;if(r.data.value?.fields?.abstract)return"";{const Q=`<span class="state-value-${o.value}">${i.value}</span>`;return M?`${Q} <span class="text-gray-500">(${M})</span>`:Q}}),u=J(()=>f2(r.data.value)),c=H(HP),d=J(()=>{const{value:M,inherit:Q}=u.value;let j;return Ok(M)?M.slice(0,c.value).map((q,oe)=>({key:`${r.data.key}.${oe}`,value:q,...Q,editable:r.data.editable,creating:!1})):(Tk(M)?(j=Object.keys(M).slice(0,c.value).map(W=>({key:`${r.data.key}.${W}`,value:M[W],...Q,editable:r.data.editable,creating:!1})),o.value!=="custom"&&(j=Iq(j))):j=[],j===r.data.value?{}:j)}),h=J(()=>{const{value:M}=u.value;return Ok(M)?M.length:Tk(M)?Object.keys(M).length:0}),A=J(()=>{const M=r.data.key,Q=M.lastIndexOf(".");return Q===-1?M:M.slice(Q+1)}),f=J(()=>Object.keys(d.value).length>0),{editingType:C,editing:I,editingText:v,toggleEditing:p,nodeId:y}=tue();et(()=>I.value,M=>{if(M){const{value:Q}=u.value;v.value=Cre(Q)}else v.value=""});function b(M){const Q=r.data;n.editInspectorState({path:Q.key.split("."),inspectorId:e.value.inspectorId,type:Q.stateType,nodeId:y,state:{newKey:null,type:M,value:r8(v.value)}}),p()}const{addNewProp:_,draftingNewProp:P,resetDrafting:k}=nue();function E(M){s.value||l(),_(M,u.value.value)}function O(){const M=r.data,Q=M.key.split(".");Q.push(P.value.key),n.editInspectorState({path:Q,inspectorId:e.value.inspectorId,type:M.stateType,nodeId:y,state:{newKey:P.value.key,type:typeof P.value.value,value:P.value.value}}),k()}const N=H(),{isHovering:D}=sue(()=>N.value);return(M,Q)=>{const j=Jge,W=R2,q=_i("InspectorStateField",!0);return T(),L("div",{ref_key:"containerRef",ref:N,class:"pl-6",style:Er({paddingLeft:`${M.depth*15+4}px`})},[m(f)?(T(),L("div",due,[w("div",{relative:"",flex:"","items-center":"",onClick:Q[2]||(Q[2]=(...oe)=>m(l)&&m(l)(...oe))},[z(W,{value:m(s),absolute:"","left--6":"","group-hover:text-white":""},null,8,["value"]),w("span",hue,_e(m(A)),1),Aue,m(I)?(T(),re(j,{key:0,modelValue:m(v),"onUpdate:modelValue":Q[1]||(Q[1]=oe=>ze(v)?v.value=oe:null),type:m(C),onCancel:m(p),onSubmit:b},null,8,["modelValue","type","onCancel"])):(T(),L(be,{key:1},[w("span",{class:Ee(m(a))},[w("span",{innerHTML:m(g)},null,8,fue)],2),z(WP,{"show-add-if-needed":!m(P).enable,hovering:m(D),data:M.data,"disable-edit":m(e).disableEdit,depth:M.depth,onEnableEditInput:m(p),onAddNewProp:E},null,8,["show-add-if-needed","hovering","data","disable-edit","depth","onEnableEditInput"])],64))]),m(s)?(T(),L("div",Cue,[(T(!0),L(be,null,pt(m(d),(oe,Pe)=>(T(),re(q,{key:Pe,data:oe,depth:M.depth+1,no:M.no,"root-id":M.rootId},null,8,["data","depth","no","root-id"]))),128)),m(h)>m(c)?Sr((T(),re(m(at),{key:0,flat:"",size:"mini",class:"ml-4",onClick:Q[3]||(Q[3]=oe=>c.value+=HP)},{icon:V(()=>[z(m(St),{icon:"i-material-symbols-more-horiz"})]),_:1})),[[m($i),"Show more"]]):$e("",!0),m(P).enable?(T(),L("div",{key:1,style:Er({paddingLeft:`${(M.depth+1)*15+4}px`})},[w("span",Iue,[z(j,{modelValue:m(P).key,"onUpdate:modelValue":Q[4]||(Q[4]=oe=>m(P).key=oe),type:"string","show-actions":!1},null,8,["modelValue"])]),vue,z(j,{modelValue:m(P).value,"onUpdate:modelValue":Q[5]||(Q[5]=oe=>m(P).value=oe),type:"string","auto-focus":!1,onCancel:m(k),onSubmit:O},null,8,["modelValue","onCancel"])],4)):$e("",!0)])):$e("",!0)])):(T(),L("div",lue,[w("span",gue,_e(m(A)),1),uue,m(I)?(T(),re(j,{key:0,modelValue:m(v),"onUpdate:modelValue":Q[0]||(Q[0]=oe=>ze(v)?v.value=oe:null),type:m(C),onCancel:m(p),onSubmit:b},null,8,["modelValue","type","onCancel"])):(T(),L(be,{key:1},[w("span",{class:Ee(m(a))},[w("span",{innerHTML:m(g)},null,8,cue)],2),z(WP,{hovering:m(D),"disable-edit":m(e).disableEdit,data:M.data,depth:M.depth,onEnableEditInput:m(p)},null,8,["hovering","disable-edit","data","depth","onEnableEditInput"])],64))]))],4)}}}),mue=rf(pue,[["__scopeId","data-v-c899a6c2"]]),yue=we({__name:"InspectorStateType",props:{data:{},depth:{default:0},rootId:{}},setup(t){return(r,e)=>{const n=mue;return T(!0),L(be,null,pt(r.data,(i,o)=>(T(),L("div",{key:o,class:"flex items-center pl-8 font-data-field"},[z(n,{data:i,no:o,"root-id":r.rootId},null,8,["data","no","root-id"])]))),128)}}}),bue={"text-primary-400":"","group-hover:text-white":"",class:"text-[#486887] dark:text-[#7595b5]"},of=we({__name:"InspectorState",props:{data:{},name:{},id:{},nodeId:{},inspectorId:{},disableEdit:{type:Boolean,default:!1}},setup(t){const r=t,{isExpanded:e,toggleCollapse:n}=N2("inspector-state",r.id);return!e.value&&n(),eue({nodeId:r.nodeId,inspectorId:r.inspectorId,disableEdit:r.disableEdit}),(i,o)=>{const a=R2,s=yue;return T(),L(be,null,[w("div",{class:"group w-full px-0 selectable-item",onClick:o[0]||(o[0]=(...l)=>m(n)&&m(n)(...l))},[z(a,{value:m(e),"group-hover:text-white":""},null,8,["value"]),w("span",bue,_e(i.name),1)]),m(e)?(T(),re(s,{key:0,data:i.data,"root-id":i.id},null,8,["data","root-id"])):$e("",!0)],64)}}});function y_(t){return t.toString(16).padStart(6,"0")}function $ue(t,r){const e=new Date(t);return`${e.toString().match(/\d\d:\d\d:\d\d/)[0]}${r==="ms"?`.${String(e.getMilliseconds()).padStart(3,"0")}`:""}`}const M6=we({__name:"InspectorNodeTag",props:{tag:{}},setup(t){return(r,e)=>{const n=bm("tooltip");return Sr((T(),L("span",{style:Er({color:`#${m(y_)(r.tag.textColor)}`,backgroundColor:`#${m(y_)(r.tag.backgroundColor)}`}),class:"ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"},[ke(_e(r.tag.label),1)],4)),[[n,{content:r.tag.tooltip,html:!0}]])}}});function wue(t){const r=H("");return pa(`SelectedSymbol${t}`,r),{selected:r,id:t}}function _ue(t){return{selected:Tr(`SelectedSymbol${t}`),id:t}}function Eue(t,r,e){const{selected:n}=_ue(t);return{isSelected:J(()=>n.value===r),toggleSelected:a=>{n.value=a,e?.(a)}}}const Sue={key:1,"inline-block":"","h-6":"","w-6":""},Tue={"text-primary-400":"","group-hover:text-white":"",class:"[.active_&]:text-white"},Oue=we({__name:"ComponentTreeNode",props:{data:{},depth:{default:0},linkedList:{default:()=>[]}},emits:["select","mouseenter","mouseleave"],setup(t,{emit:r}){const e=t,n=r,{isExpanded:i,toggleCollapse:o}=N2("component-tree",e.data.id,[...e.linkedList,e.data.id]),{isSelected:a,toggleSelected:s}=Eue("component-tree",e.data.id,l=>{n("select",l)});return(l,g)=>{const u=R2,c=M6,d=_i("ComponentTreeNode",!0);return T(),L(be,null,[w("div",{class:Ee(["group selectable-item",{active:m(a)}]),style:Er({paddingLeft:`${l.depth*15+4}px`}),onClick:g[0]||(g[0]=En(h=>m(s)(l.data.id),["stop"])),onMouseenter:g[1]||(g[1]=h=>n("mouseenter",l.data.id,!0)),onMouseleave:g[2]||(g[2]=h=>n("mouseleave",l.data.id,!1))},[l.data.children?.length?(T(),re(u,{key:0,value:m(i),"group-hover:text-white":"",class:"[.active_&]:text-white",onClick:En(m(o),["prevent","stop"])},null,8,["value","onClick"])):(T(),L("i",Sue)),w("span",Tue,_e(l.data.name),1),(T(!0),L(be,null,pt(l.data.tags,(h,A)=>(T(),re(c,{key:A,tag:h},null,8,["tag"]))),128))],38),l.data.children?.length&&m(i)?(T(!0),L(be,{key:0},pt(l.data.children,h=>(T(),re(d,{key:h.id,data:h,depth:l.depth+1,"linked-list":[...l.linkedList,l.data.id],onSelect:g[3]||(g[3]=A=>n("select",A)),onMouseenter:g[4]||(g[4]=A=>n("mouseenter",A,!0)),onMouseleave:g[5]||(g[5]=A=>n("mouseleave",A,!1))},null,8,["data","depth","linked-list"]))),128)):$e("",!0)],64)}}}),kue=yn();function Hm(t){return kue.openInEditor({file:t})}const xue={"w-full":"",flex:"",gap2:"",px2:"",py2:""},Pue=w("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[w("circle",{cx:"12",cy:"12",r:".5",fill:"currentColor"}),w("path",{d:"M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2"})],-1),Rue=[Pue],Due={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},Nue={flex:"","justify-between":"","overflow-auto":"",px2:"",py3:"",class:"no-scrollbar"},Mue={key:0},Bue={flex:"~ gap2"},Fue=w("p",{class:"x-divider"},null,-1),Lue=we({__name:"components",setup(t){const r=yn(),e=v2(),n=H([]),i=H(""),o=Hm,a=H(!1),[s,l]=O2(!0),{selected:g}=wue("component-tree"),{collapseMap:u,linkedList:c}=xc("component-tree");xc("inspector-state");const d=J(()=>{const j=[],W=q=>{q.forEach(oe=>{oe.id===g.value&&j.push(oe),oe.children?.length&&W(oe.children)})};return W(n.value),j[0]}),h=J(()=>{const j=[],W=(q,oe=[])=>{q.forEach(Pe=>{j.push([...oe,Pe.id]),Pe.children?.length&&W(Pe.children,[...oe,Pe.id])})};return W(n.value),j}),A=J(()=>d.value?.file??"");function f(j,W){return j.length?j.find(q=>q.id===W)?!0:j.some(q=>f(q.children||[],W)):!1}function C(j){j.length&&(g.value&&f(j,g.value)||(g.value=j?.[0].id,N(j?.[0].id)))}function I(j){return new Promise(W=>{r.getComponentBoundingRect({inspectorId:"components",instanceId:j}).then(({data:q})=>{W(q)})})}function v(j){return{[j[0].id]:!0,...j?.[0].children?.reduce((W,q)=>(W[q.id]=!0,W),{})}}function p(j){return new Promise(W=>{r.getInspectorTree({inspectorId:"components",filter:j}).then(({data:q})=>{const oe=!Object.keys(u.value).length;n.value=q,oe&&(u.value=v(q)),C(q),W()})})}const y=H(!1);async function b(j,W){y.value&&await Gse(y).toBe(!1),y.value=!0,I(j).then(q=>{r.toggleComponentInspector({id:j,visible:W,bounds:q}),y.value=!1})}function _(j){r.scrollToComponent({id:j})}function P(){e.value.emit("toggle-panel",!1),r.inspectComponentInspector().then(({data:j})=>{g.value=j.id,k(j.id);const W=c.value[j.id];W?W.forEach(q=>{u.value[q]=!0}):h.value.forEach(q=>{let oe=q.indexOf(j.id);if(oe>-1)for(;oe>=0;)u.value[q[oe]]=!0,oe--})}).finally(()=>{e.value.emit("toggle-panel",!0)})}function k(j){D(),N(j),i.value=j}et(g,j=>{r.updateInspectorTreeId(j)});const E=H({});function O(j){if(!j||!j?.state)return{};const W={};return j.state.forEach(q=>{W[q.type]||(W[q.type]=[]),W[q.type].push(q)}),W}function N(j){r.getInspectorState({inspectorId:"components",nodeId:j}).then(({data:W})=>{E.value=O(W)})}function D(){E.value={}}_o(()=>{p().then(()=>{a.value=!0}),r.on.inspectorTreeUpdated(j=>{j?.data?.length&&(n.value=j.data,u.value={...v(j.data),...u.value},C(j.data))},{inspectorId:"components"}),r.on.inspectorStateUpdated(j=>{E.value=O(j)},{inspectorId:"components"})});const M=H("");k2(M,j=>{const W=j.trim().toLowerCase();l(),p(W).then(()=>{l()})},{debounce:300});const Q=Xi();return(j,W)=>{const q=Oue,oe=of,Pe=Eo;return T(),re(Pe,{"h-screen":""},{default:V(()=>[z(m(cd),null,{default:V(()=>[z(m(wi),{flex:"","flex-col":"",border:"r base"},{default:V(()=>[w("div",xue,[m(a)?(T(),re(m(Da),{key:0,modelValue:m(M),"onUpdate:modelValue":W[0]||(W[0]=He=>ze(M)?M.value=He:null),"loading-debounce-time":250,loading:!m(s),placeholder:"Find components...","flex-1":""},null,8,["modelValue","loading"])):$e("",!0),m(Q).vitePluginDetected.value?(T(),L("button",{key:1,"px-1":"",onClick:P},[(T(),L("svg",{xmlns:"http://www.w3.org/2000/svg",style:Er([{height:"1.1em",width:"1.1em",opacity:"0.5"},"opacity:1;color:#00dc82"]),viewBox:"0 0 24 24"},Rue))])):$e("",!0)]),w("div",Due,[(T(!0),L(be,null,pt(m(n),He=>(T(),re(q,{key:He.id,data:He,onSelect:k,onMouseenter:b,onMouseleave:b},null,8,["data"]))),128))])]),_:1}),z(m(wi),{flex:"","flex-col":""},{default:V(()=>[w("div",Nue,[m(d)?.name?(T(),L("span",Mue,_e(m(d).name),1)):$e("",!0),w("div",Bue,[Sr(z(m(St),{title:"Scroll to Component",icon:"i-iconoir:mouse-scroll-wheel",action:"","flex-none":"",border:!1,onClick:W[1]||(W[1]=He=>_(m(g)))},null,512),[[m($i),"Scroll to Component"]]),m(A)&&m(Q).vitePluginDetected.value?Sr((T(),re(m(St),{key:0,title:"Open in Editor",icon:"i-carbon-launch",action:"","flex-none":"",border:!1,onClick:W[2]||(W[2]=He=>m(o)(m(A)))},null,512)),[[m($i),"Open in Editor"]]):$e("",!0)])]),Fue,(T(),L("div",{key:m(g),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(T(!0),L(be,null,pt(m(E),(He,Le)=>(T(),re(oe,{id:Le,key:Le,"node-id":m(i),data:He,name:`${Le}`,"inspector-id":"components"},null,8,["id","node-id","data","name"]))),128))]))]),_:1})]),_:1})]),_:1})}}}),zue="7.0.13",jue={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},Vue=w("div",{"flex-auto":""},null,-1),Gue={flex:"~ col","mt-20":"","items-center":""},Wue={flex:"~","mt--10":"","items-center":"","justify-center":""},Hue={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},Uue=w("span",{op40:""}," Vue DevTools ",-1),Zue={op40:""},Kue={flex:"~ gap2 wrap"},Yue={p4:"","theme-card-green":"",flex:"~ col auto"},Xue=w("div",{"i-logos-vue":"","text-3xl":""},null,-1),Que=w("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),que=w("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),Jue={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},ece=w("a",{href:"https://github.com/vuejs/devtools-next",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[w("div",{"i-carbon-star":""}),ke(" Star on GitHub ")],-1),tce=w("a",{href:"https://github.com/vuejs/devtools-next/discussions/111",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[w("div",{"i-carbon-data-enrichment":""}),ke(" Ideas & Suggestions ")],-1),rce=w("a",{href:"https://github.com/vuejs/devtools-next/discussions/112",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[w("div",{"i-carbon-plan":""}),ke(" Project Roadmap ")],-1),nce=w("a",{href:"https://github.com/vuejs/devtools-next/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[w("div",{"i-carbon-debug":""}),ke(" Bug Reports ")],-1),ice=w("div",{"i-carbon-settings":""},null,-1),oce=w("div",{"flex-auto":""},null,-1),ace={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},sce=w("span",null,"+",-1),lce=w("span",null,"+",-1),gce={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},uce=w("span",null,"+",-1),cce=w("span",null,"+",-1),dce=w("span",null,"+",-1),hce=w("span",null,"+",-1),Ace=we({__name:"overview",setup(t){const r=yn(),{vueVersion:e}=Xi(),n=H(1),i=H(0);function o(a){let s=0;for(const l of a)s++,l.children?.length&&(s+=o(l.children));return s}return _o(()=>{r.getRouterInfo().then(({data:a})=>{n.value=a?.routes?.length||1}),r.on.routerInfoUpdated(a=>{n.value=a?.routes?.length||1}),r.getInspectorTree({inspectorId:"components",filter:""}).then(({data:a})=>{i.value=o(a)}),r.on.inspectorTreeUpdated(a=>{a?.data?.length&&(i.value=o(a.data))},{inspectorId:"components"})}),(a,s)=>{const l=P2,g=_i("RouterLink"),u=Eo;return T(),re(u,{"h-screen":"","w-full":"",flex:"","of-auto":""},{default:V(()=>[w("div",jue,[Vue,w("div",Gue,[w("div",Wue,[z(l,{"h-18":""})]),w("div",Hue,[Uue,w("code",Zue,"v"+_e(m(zue)),1)])]),w("div",Kue,[w("div",Yue,[Xue,w("code",null,"v"+_e(m(e)),1)]),z(g,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:V(()=>[Que,w("div",null,_e(m(n))+" pages",1)]),_:1}),m(i)?(T(),re(g,{key:0,flex:"~ col auto",to:"/components",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:V(()=>[que,w("div",null,_e(m(i))+" components",1)]),_:1})):$e("",!0)]),w("div",Jue,[ece,tce,rce,nce,z(g,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:V(()=>[ice,ke(" Settings ")]),_:1})]),oce,w("div",ace,[ke(" Press "),m(Sk)()?(T(),L(be,{key:0},[z(m(at),null,{default:V(()=>[ke(" ⌘ Command ")]),_:1}),sce,z(m(at),null,{default:V(()=>[ke(" K ")]),_:1})],64)):(T(),L(be,{key:1},[z(m(at),null,{default:V(()=>[ke(" Alt ")]),_:1}),lce,z(m(at),null,{default:V(()=>[ke(" K ")]),_:1})],64)),ke(" to toggle Command Palette ")]),w("div",gce,[ke(" Press "),m(Sk)()?(T(),L(be,{key:0},[z(m(at),null,{default:V(()=>[ke(" ⇧ Shift ")]),_:1}),uce,z(m(at),null,{default:V(()=>[ke(" ⌥ Option ")]),_:1}),cce,z(m(at),null,{default:V(()=>[ke(" D ")]),_:1})],64)):(T(),L(be,{key:1},[z(m(at),null,{default:V(()=>[ke(" Shift ")]),_:1}),dce,z(m(at),null,{default:V(()=>[ke(" Alt ")]),_:1}),hce,z(m(at),null,{default:V(()=>[ke(" D ")]),_:1})],64)),ke(" to toggle DevTools ")])])]),_:1})}}});function fce(){var t=window.navigator.userAgent,r=t.indexOf("MSIE ");if(r>0)return parseInt(t.substring(r+5,t.indexOf(".",r)),10);var e=t.indexOf("Trident/");if(e>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let Av;function b_(){b_.init||(b_.init=!0,Av=fce()!==-1)}var Um={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){b_(),mn(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",Av&&this.$el.appendChild(t),t.data="about:blank",Av||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Av&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Cce=dj();mm("data-v-b329ee4c");const Ice={class:"resize-observer",tabindex:"-1"};ym();const vce=Cce((t,r,e,n,i,o)=>(T(),re("div",Ice)));Um.render=vce;Um.__scopeId="data-v-b329ee4c";Um.__file="src/components/ResizeObserver.vue";function fv(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fv=function(r){return typeof r}:fv=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},fv(t)}function pce(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function UP(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function mce(t,r,e){return r&&UP(t.prototype,r),e&&UP(t,e),t}function ZP(t){return yce(t)||bce(t)||$ce(t)||wce()}function yce(t){if(Array.isArray(t))return $_(t)}function bce(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function $ce(t,r){if(t){if(typeof t=="string")return $_(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return $_(t,r)}}function $_(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function wce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22
22
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _ce(t){var r;return typeof t=="function"?r={callback:t}:r=t,r}function Ece(t,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,o,a=function(l){for(var g=arguments.length,u=new Array(g>1?g-1:0),c=1;c<g;c++)u[c-1]=arguments[c];if(o=u,!(n&&l===i)){var d=e.leading;typeof d=="function"&&(d=d(l,i)),(!n||l!==i)&&d&&t.apply(void 0,[l].concat(ZP(o))),i=l,clearTimeout(n),n=setTimeout(function(){t.apply(void 0,[l].concat(ZP(o))),n=0},r)}};return a._clear=function(){clearTimeout(n),n=null},a}function B6(t,r){if(t===r)return!0;if(fv(t)==="object"){for(var e in t)if(!B6(t[e],r[e]))return!1;return!0}return!1}var Sce=function(){function t(r,e,n){pce(this,t),this.el=r,this.observer=null,this.frozen=!1,this.createObserver(e,n)}return mce(t,[{key:"createObserver",value:function(e,n){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=_ce(e),this.callback=function(s,l){i.options.callback(s,l),s&&i.options.once&&(i.frozen=!0,i.destroyObserver())},this.callback&&this.options.throttle){var o=this.options.throttleOptions||{},a=o.leading;this.callback=Ece(this.callback,this.options.throttle,{leading:function(l){return a==="both"||a==="visible"&&l||a==="hidden"&&!l}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(s){var l=s[0];if(s.length>1){var g=s.find(function(c){return c.isIntersecting});g&&(l=g)}if(i.callback){var u=l.isIntersecting&&l.intersectionRatio>=i.threshold;if(u===i.oldResult)return;i.oldResult=u,i.callback(u,l)}},this.options.intersection),mn(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),t}();function F6(t,r,e){var n=r.value;if(n)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new Sce(t,n,e);t._vue_visibilityState=i}}function Tce(t,r,e){var n=r.value,i=r.oldValue;if(!B6(n,i)){var o=t._vue_visibilityState;if(!n){L6(t);return}o?o.createObserver(n,e):F6(t,{value:n},e)}}function L6(t){var r=t._vue_visibilityState;r&&(r.destroyObserver(),delete t._vue_visibilityState)}var Oce={beforeMount:F6,updated:Tce,unmounted:L6},kce={itemsLimit:1e3},xce=/(auto|scroll)/;function z6(t,r){return t.parentNode===null?r:z6(t.parentNode,r.concat([t]))}var Xb=function(r,e){return getComputedStyle(r,null).getPropertyValue(e)},Pce=function(r){return Xb(r,"overflow")+Xb(r,"overflow-y")+Xb(r,"overflow-x")},Rce=function(r){return xce.test(Pce(r))};function KP(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var r=z6(t.parentNode,[]),e=0;e<r.length;e+=1)if(Rce(r[e]))return r[e];return document.scrollingElement||document.documentElement}}function w_(t){"@babel/helpers - typeof";return w_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},w_(t)}var Dce={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(r){return["vertical","horizontal"].includes(r)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function Nce(){return this.items.length&&w_(this.items[0])!=="object"}var __=!1;if(typeof window<"u"){__=!1;try{var Mce=Object.defineProperty({},"passive",{get:function(){__=!0}});window.addEventListener("test",null,Mce)}catch{}}let Bce=0;var Zm={name:"RecycleScroller",components:{ResizeObserver:Um},directives:{ObserveVisibility:Oce},props:{...Dce,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const t={"-1":{accumulator:0}},r=this.items,e=this.sizeField,n=this.minItemSize;let i=1e4,o=0,a;for(let s=0,l=r.length;s<l;s++)a=r[s][e]||n,a<i&&(i=a),o+=a,t[s]={accumulator:o,size:a};return this.$_computedMinItemSize=i,t}return[]},simpleArray:Nce,itemIndexByKey(){const{keyField:t,items:r}=this,e={};for(let n=0,i=r.length;n<i;n++)e[r[n][t]]=n;return e}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const t=this.$_lastUpdateScrollPosition;typeof t=="number"&&this.$nextTick(()=>{this.scrollToPosition(t)})},beforeUnmount(){this.removeListeners()},methods:{addView(t,r,e,n,i){const o=e2({id:Bce++,index:r,used:!0,key:n,type:i}),a=qS({item:e,position:0,nr:o});return t.push(a),a},unuseView(t,r=!1){const e=this.$_unusedViews,n=t.nr.type;let i=e.get(n);i||(i=[],e.set(n,i)),i.push(t),r||(t.nr.used=!1,t.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(t){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const r=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});r(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&r()},this.updateInterval))}},handleVisibilityChange(t,r){this.ready&&(t||r.boundingClientRect.width!==0||r.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(t,r=!1){const e=this.itemSize,n=this.gridItems||1,i=this.itemSecondarySize||e,o=this.$_computedMinItemSize,a=this.typeField,s=this.simpleArray?null:this.keyField,l=this.items,g=l.length,u=this.sizes,c=this.$_views,d=this.$_unusedViews,h=this.pool,A=this.itemIndexByKey;let f,C,I,v,p;if(!g)f=C=v=p=I=0;else if(this.$_prerender)f=v=0,C=p=Math.min(this.prerender,l.length),I=null;else{const O=this.getScroll();if(r){let M=O.start-this.$_lastUpdateScrollPosition;if(M<0&&(M=-M),e===null&&M<o||M<e)return{continuous:!0}}this.$_lastUpdateScrollPosition=O.start;const N=this.buffer;O.start-=N,O.end+=N;let D=0;if(this.$refs.before&&(D=this.$refs.before.scrollHeight,O.start-=D),this.$refs.after){const M=this.$refs.after.scrollHeight;O.end+=M}if(e===null){let M,Q=0,j=g-1,W=~~(g/2),q;do q=W,M=u[W].accumulator,M<O.start?Q=W:W<g-1&&u[W+1].accumulator>O.start&&(j=W),W=~~((Q+j)/2);while(W!==q);for(W<0&&(W=0),f=W,I=u[g-1].accumulator,C=W;C<g&&u[C].accumulator<O.end;C++);for(C===-1?C=l.length-1:(C++,C>g&&(C=g)),v=f;v<g&&D+u[v].accumulator<O.start;v++);for(p=v;p<g&&D+u[p].accumulator<O.end;p++);}else{f=~~(O.start/e*n);const M=f%n;f-=M,C=Math.ceil(O.end/e*n),v=Math.max(0,Math.floor((O.start-D)/e*n)),p=Math.floor((O.end-D)/e*n),f<0&&(f=0),C>g&&(C=g),v<0&&(v=0),p>g&&(p=g),I=Math.ceil(g/n)*e}}C-f>kce.itemsLimit&&this.itemsLimitError(),this.totalSize=I;let y;const b=f<=this.$_endIndex&&C>=this.$_startIndex;if(b)for(let O=0,N=h.length;O<N;O++)y=h[O],y.nr.used&&(t&&(y.nr.index=A[y.item[s]]),(y.nr.index==null||y.nr.index<f||y.nr.index>=C)&&this.unuseView(y));const _=b?null:new Map;let P,k,E;for(let O=f;O<C;O++){P=l[O];const N=s?P[s]:P;if(N==null)throw new Error(`Key is ${N} on item (keyField is '${s}')`);if(y=c.get(N),!e&&!u[O].size){y&&this.unuseView(y);continue}k=P[a];let D=d.get(k),M=!1;if(!y)b?D&&D.length?y=D.pop():y=this.addView(h,O,P,N,k):(E=_.get(k)||0,(!D||E>=D.length)&&(y=this.addView(h,O,P,N,k),this.unuseView(y,!0),D=d.get(k)),y=D[E],_.set(k,E+1)),c.delete(y.nr.key),y.nr.used=!0,y.nr.index=O,y.nr.key=N,y.nr.type=k,c.set(N,y),M=!0;else if(!y.nr.used&&(y.nr.used=!0,M=!0,D)){const Q=D.indexOf(y);Q!==-1&&D.splice(Q,1)}y.item=P,M&&(O===l.length-1&&this.$emit("scroll-end"),O===0&&this.$emit("scroll-start")),e===null?(y.position=u[O-1].accumulator,y.offset=0):(y.position=Math.floor(O/n)*e,y.offset=O%n*i)}return this.$_startIndex=f,this.$_endIndex=C,this.emitUpdate&&this.$emit("update",f,C,v,p),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:b}},getListenerTarget(){let t=KP(this.$el);return window.document&&(t===window.document.documentElement||t===window.document.body)&&(t=window),t},getScroll(){const{$el:t,direction:r}=this,e=r==="vertical";let n;if(this.pageMode){const i=t.getBoundingClientRect(),o=e?i.height:i.width;let a=-(e?i.top:i.left),s=e?window.innerHeight:window.innerWidth;a<0&&(s+=a,a=0),a+s>o&&(s=o-a),n={start:a,end:a+s}}else e?n={start:t.scrollTop,end:t.scrollTop+t.clientHeight}:n={start:t.scrollLeft,end:t.scrollLeft+t.clientWidth};return n},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,__?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(t){let r;const e=this.gridItems||1;this.itemSize===null?r=t>0?this.sizes[t-1].accumulator:0:r=Math.floor(t/e)*this.itemSize,this.scrollToPosition(r)},scrollToPosition(t){const r=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let e,n,i;if(this.pageMode){const o=KP(this.$el),a=o.tagName==="HTML"?0:o[r.scroll],s=o.getBoundingClientRect(),g=this.$el.getBoundingClientRect()[r.start]-s[r.start];e=o,n=r.scroll,i=t+a+g}else e=this.$el,n=r.scroll,i=t;e[n]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((t,r)=>t.nr.index-r.nr.index)}}};const Fce={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Lce={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function zce(t,r,e,n,i,o){const a=_i("ResizeObserver"),s=bm("observe-visibility");return Sr((T(),L("div",{class:Ee(["vue-recycle-scroller",{ready:i.ready,"page-mode":e.pageMode,[`direction-${t.direction}`]:!0}]),onScrollPassive:r[0]||(r[0]=(...l)=>o.handleScroll&&o.handleScroll(...l))},[t.$slots.before?(T(),L("div",Fce,[Qe(t.$slots,"before")],512)):$e("v-if",!0),(T(),re(qs(e.listTag),{ref:"wrapper",style:Er({[t.direction==="vertical"?"minHeight":"minWidth"]:i.totalSize+"px"}),class:Ee(["vue-recycle-scroller__item-wrapper",e.listClass])},{default:V(()=>[(T(!0),L(be,null,pt(i.pool,l=>(T(),re(qs(e.itemTag),wn({key:l.nr.id,style:i.ready?{transform:`translate${t.direction==="vertical"?"Y":"X"}(${l.position}px) translate${t.direction==="vertical"?"X":"Y"}(${l.offset}px)`,width:e.gridItems?`${t.direction==="vertical"&&e.itemSecondarySize||e.itemSize}px`:void 0,height:e.gridItems?`${t.direction==="horizontal"&&e.itemSecondarySize||e.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[e.itemClass,{hover:!e.skipHover&&i.hoverKey===l.nr.key}]]},HJ(e.skipHover?{}:{mouseenter:()=>{i.hoverKey=l.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:V(()=>[Qe(t.$slots,"default",{item:l.item,index:l.nr.index,active:l.nr.used})]),_:2},1040,["style","class"]))),128)),Qe(t.$slots,"empty")]),_:3},8,["style","class"])),t.$slots.after?(T(),L("div",Lce,[Qe(t.$slots,"after")],512)):$e("v-if",!0),z(a,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[s,o.handleVisibilityChange]])}Zm.render=zce;Zm.__file="src/components/RecycleScroller.vue";const jce=["onClick"],B2=we({__name:"InspectorTree",props:{modelValue:{},data:{}},emits:["update:modelValue"],setup(t,{emit:r}){const e=r;function n(i){e("update:modelValue",i)}return(i,o)=>{const a=M6;return T(),re(m(Zm),{items:i.data,"min-item-size":32,"key-field":"id","page-mode":""},{default:V(({item:s})=>[w("div",{class:Ee(["selectable-item",{active:i.modelValue===s.id}]),onClick:l=>n(s.id)},[w("span",null,_e(s.label),1),(T(!0),L(be,null,pt(s.tags,(l,g)=>(T(),re(a,{key:g,tag:l},null,8,["tag"]))),128))],10,jce)]),_:1},8,["items"])}}}),Vce={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},Gce=we({__name:"pinia",setup(t){const r=yn(),e=H(""),n=H([]),i=H({});function o(s){r.getInspectorState({inspectorId:"pinia",nodeId:s}).then(({data:l})=>{i.value=l})}function a(){i.value={}}return et(e,()=>{a(),o(e.value)}),xc("inspector-state"),_o(()=>{r.getInspectorTree({inspectorId:"pinia",filter:""}).then(({data:s})=>{n.value=s,!e.value&&s.length&&(e.value=s[0].id,o(s[0].id))}),r.on.inspectorTreeUpdated(s=>{s?.data.length&&(n.value=s.data,!e.value&&s.data.length&&(e.value=s.data[0].id,o(s.data[0].id)))},{inspectorId:"pinia"}),r.on.inspectorStateUpdated(s=>{!s||!s.state.length||(i.value=s)},{inspectorId:"pinia"})}),(s,l)=>{const g=B2,u=of,c=Eo;return T(),re(c,{"h-screen":""},{default:V(()=>[z(m(cd),null,{default:V(()=>[z(m(wi),{flex:"","flex-col":"",border:"r base"},{default:V(()=>[w("div",Vce,[z(g,{modelValue:m(e),"onUpdate:modelValue":l[0]||(l[0]=d=>ze(e)?e.value=d:null),data:m(n)},null,8,["modelValue","data"])])]),_:1}),z(m(wi),{flex:"","flex-col":""},{default:V(()=>[(T(),L("div",{key:m(e),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(T(!0),L(be,null,pt(m(i),(d,h)=>(T(),re(u,{id:h,key:h,"inspector-id":"pinia","node-id":m(e),data:d,name:`${h}`},null,8,["id","node-id","data","name"]))),128))]))]),_:1})]),_:1})]),_:1})}}}),Wce={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},Hce=we({__name:"router",setup(t){const r=yn(),e=H(""),n=H([]),i=H({}),o=Xi(),a=J(()=>`router-inspector:${o.appRecords.value.find(u=>u.id===o.activeAppRecordId.value)?.routerId??0}`);xc("inspector-state");function s(g){r.getInspectorState({inspectorId:a.value,nodeId:g}).then(({data:u})=>{i.value=u})}function l(){i.value={}}return et(e,()=>{l(),s(e.value)}),_o(()=>{r.getInspectorTree({inspectorId:a.value,filter:""}).then(({data:g})=>{n.value=g,!e.value&&g.length&&(e.value=g[0].id,s(g[0].id))}),r.on.inspectorTreeUpdated(g=>{g?.data?.length&&(n.value=g.data,!e.value&&g.data.length&&(e.value=g.data[0].id,s(g.data[0].id)))},{inspectorId:a.value}),r.on.inspectorStateUpdated(g=>{!g||!g.state||g.inspectorId!==a.value||(i.value=g)},{inspectorId:a.value})}),(g,u)=>{const c=B2,d=of,h=Eo;return T(),re(h,{"h-screen":""},{default:V(()=>[z(m(cd),null,{default:V(()=>[z(m(wi),{flex:"","flex-col":"",border:"r base"},{default:V(()=>[w("div",Wce,[z(c,{modelValue:m(e),"onUpdate:modelValue":u[0]||(u[0]=A=>ze(e)?e.value=A:null),data:m(n)},null,8,["modelValue","data"])])]),_:1}),z(m(wi),{flex:"","flex-col":""},{default:V(()=>[(T(),L("div",{key:m(e),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(T(!0),L(be,null,pt(m(i),(A,f)=>(T(),re(d,{id:f,key:f,data:A,name:`${f}`,"inspector-id":"router"},null,8,["id","data","name"]))),128))]))]),_:1})]),_:1})]),_:1})}}}),Uce={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},nh="vue-i18n-resource-inspector",Zce=we({__name:"i18n",setup(t){const r=yn(),e=H(""),n=H([]),i=H({});function o(s){r.getInspectorState({inspectorId:nh,nodeId:s}).then(({data:l})=>{i.value=l})}function a(){i.value={}}return et(e,()=>{a(),o(e.value)}),xc("inspector-state"),_o(()=>{r.getInspectorTree({inspectorId:nh,filter:""}).then(({data:s})=>{n.value=s,!e.value&&s.length&&(e.value=s[0].id,o(s[0].id))}),r.on.inspectorTreeUpdated(s=>{s?.data.length&&(n.value=s.data,!e.value&&s.data.length&&(e.value=s.data[0].id,o(s.data[0].id)))},{inspectorId:nh}),r.on.inspectorStateUpdated(s=>{!s||!s.state.length||(i.value=s)},{inspectorId:nh})}),ad(()=>{r.unhighlightElement()}),(s,l)=>{const g=B2,u=of,c=Eo;return T(),re(c,{"h-screen":""},{default:V(()=>[z(m(cd),null,{default:V(()=>[z(m(wi),{flex:"","flex-col":"",border:"r base"},{default:V(()=>[w("div",Uce,[z(g,{modelValue:m(e),"onUpdate:modelValue":l[0]||(l[0]=d=>ze(e)?e.value=d:null),data:m(n)},null,8,["modelValue","data"])])]),_:1}),z(m(wi),{flex:"","flex-col":""},{default:V(()=>[(T(),L("div",{key:m(e),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(T(!0),L(be,null,pt(m(i),(d,h)=>(T(),re(u,{id:h,key:h,"inspector-id":nh,"node-id":m(e),data:d,name:`${h}`},null,8,["id","node-id","data","name"]))),128))]))]),_:1})]),_:1})]),_:1})}}}),Kce={class:"h-full flex flex-col items-center justify-center p-12 text-center text-gray-400 space-y-6 dark:text-gray-600"},Yce=we({__name:"EmptyPane",props:{icon:{},inline:{type:Boolean}},setup(t){const r=t;return(e,n)=>(T(),L("div",Kce,[z(m(St),HA(sd(r)),null,16),w("div",null,[Qe(e.$slots,"default")])]))}}),Xce=["onClick"],Qce={class:"flex-1 truncate font-mono space-x-1"},qce=["innerHTML"],Jce={key:0,class:"flex-none text-xs font-mono op-50"},ede=we({__name:"TimelineEvent",props:{modelValue:{},data:{}},emits:["update:modelValue"],setup(t,{emit:r}){const e=r;function n(i){e("update:modelValue",i)}return(i,o)=>(T(),re(m(Zm),{items:i.data,"min-item-size":42,"key-field":"id","page-mode":""},{default:V(({item:a})=>[w("li",{class:Ee(["flex cursor-pointer items-center border-b px-2 py-2 text-gray-200 dark:border-bluegray-800",{"hover:bg-blue-100 dark:hover:bg-blue-900 text-bluegray-800 dark:text-bluegray-200":i.modelValue!==a.id,"bg-primary-500 text-white":i.modelValue===a.id}]),onClick:s=>n(a.id)},[w("span",Qce,[w("span",{class:Ee(["font-medium",{"text-purple-600 dark:text-purple-400":i.modelValue!==a.id}])},[w("span",null,_e(a.title||"Event"),1)],2),a.subtitle?(T(),L("span",{key:0,class:"op-75",innerHTML:a.subtitle},null,8,qce)):$e("",!0)]),a.time?(T(),L("span",Jce,_e(m($ue)(a.time)),1)):$e("",!0)],10,Xce)]),_:1},8,["items"]))}}),tde={"overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},rde=we({__name:"TimelineLayer",props:{modelValue:{},data:{}},emits:["update:modelValue"],setup(t,{emit:r}){const e=t,n=r;function i(){n("update:modelValue",e.data.id)}const o=J(()=>`#${y_(e.data.color)}`);return(a,s)=>(T(),L("div",{class:"selectable-item",style:Er(a.modelValue===a.data.id?{color:o.value}:{}),onClick:i},[w("span",tde,_e(a.data.label),1)],4))}}),nde={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},ide={"h-screen":"","select-none":"","overflow-scroll":"",class:"no-scrollbar"},ode={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},ade=we({__name:"timeline",setup(t){const r=yn(),e=H([]),n=H({}),i=H(""),o=H("");xc("inspector-state");const a=J(()=>n.value[i.value]?.map((d,h)=>({...d,id:`${h}`}))??[]),s=J(()=>a.value?.[+(o.value??0)]?.data??{}),l=J(()=>{const d=[];for(const h in s.value)d.push({key:h,type:h,editable:!1,value:s.value[h]});return d}),g=J(()=>{const d=e.value.find(f=>f.id===i.value)?.groups,h=a.value?.[+(o.value??0)]?.groupId,A=d?.[h];if(A)return[{key:"events",type:"events",editable:!1,value:A.events.length},A.duration&&{key:"duration",type:"duration",editable:!1,value:`${A.duration}ms`}].filter(Boolean)}),u=J(()=>({"event info":l.value,...g.value&&{"group info":g.value}}));function c(d,h){const A=e.value.find(f=>f.id===d);A&&(`${h.groupId}`!==QA||h.groupId!=null)&&(A.groups[h.groupId]??={events:[],duration:0},A.groups[h.groupId].events.push(h),A.groups[h.groupId].duration=h.time-A.groups[h.groupId].events?.[0]?.time)}return _o(()=>{r.getTimelineLayer().then(({data:d})=>{e.value=d,e.value.forEach(h=>{n.value[h.id]=[],h.groups={}}),i.value||(i.value=d.length?d[0].id:"")}),r.on.addTimelineEvent(d=>{if(!d)return;const{layerId:h,event:A}=d;n.value[h].push(A),c(h,A)})}),et(()=>a.value.length,d=>{d&&(o.value="0")}),(d,h)=>{const A=rde,f=ede,C=Yce,I=of,v=Eo;return m(e).length?(T(),re(v,{key:0},{default:V(()=>[z(m(cd),null,{default:V(()=>[z(m(wi),{border:"r base",size:"20"},{default:V(()=>[w("div",nde,[(T(!0),L(be,null,pt(m(e),p=>(T(),re(A,{key:p.id,modelValue:m(i),"onUpdate:modelValue":h[0]||(h[0]=y=>ze(i)?i.value=y:null),data:p},null,8,["modelValue","data"]))),128))])]),_:1}),z(m(wi),{border:"r base",size:"45"},{default:V(()=>[w("div",ide,[m(a).length?(T(),re(f,{key:0,modelValue:m(o),"onUpdate:modelValue":h[1]||(h[1]=p=>ze(o)?o.value=p:null),data:m(a)},null,8,["modelValue","data"])):(T(),re(C,{key:1,icon:"i-ic-baseline-inbox"},{default:V(()=>[ke(" No events ")]),_:1}))])]),_:1}),z(m(wi),{size:"35"},{default:V(()=>[w("div",ode,[m(o)?(T(!0),L(be,{key:0},pt(m(u),(p,y)=>(T(),re(I,{id:`${y}`,key:y+Date.now(),data:p,name:`${y}`,"disable-edit":!0,"node-id":"","inspector-id":""},null,8,["id","data","name"]))),128)):(T(),re(C,{key:1,icon:"i-carbon:menu"},{default:V(()=>[ke(" Select an event to display details ")]),_:1}))])]),_:1})]),_:1})]),_:1})):(T(),re(C,{key:1,icon:"i-ic-baseline-inbox"},{default:V(()=>[ke(" No layers ")]),_:1}))}}}),sde={flex:"~ gap-3","items-center":""},F2=we({__name:"IconTitle",props:{icon:{},text:{}},setup(t){return(r,e)=>(T(),L("div",sde,[r.icon?(T(),L("div",{key:0,class:Ee(r.icon)},null,2)):$e("",!0),Qe(r.$slots,"default",{},()=>[w("div",null,_e(r.text),1)])]))}}),j6=t=>(mm("data-v-d09fbc98"),t=t(),ym(),t),lde=["open"],gde={"text-base":""},ude={key:0,"text-sm":"",op50:""},cde=j6(()=>w("div",{class:"flex-auto"},null,-1)),dde=j6(()=>w("div",{class:"x-divider"},null,-1)),hde=we({__name:"SectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(t){const e=Gm(t,"open",void 0,{passive:!0});function n(i){e.value=i.target.open}return(i,o)=>{const a=F2,s=bm("lazy-show");return T(),L(be,null,[w("details",{open:m(e),onToggle:n},[w("summary",{class:Ee(["cursor-pointer select-none hover:bg-active p4",i.collapse?"":"pointer-events-none"])},[z(a,{icon:i.icon,text:i.text,"text-xl":"",transition:"",class:Ee(m(e)?"op100":"op60")},{default:V(()=>[w("div",null,[w("div",gde,[Qe(i.$slots,"text",{},()=>[ke(_e(i.text),1)],!0)]),i.description||i.$slots.description?(T(),L("div",ude,[Qe(i.$slots,"description",{},()=>[ke(_e(i.description),1)],!0)])):$e("",!0)]),cde,Qe(i.$slots,"actions",{},void 0,!0),i.collapse?(T(),re(m(St),{key:0,icon:"i-carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"",op75:"",transition:"","duration-500":"","text-base":""})):$e("",!0)]),_:3},8,["icon","text","class"])],2),Sr((T(),L("div",{class:Ee(["flex flex-col flex-gap2 pb6 pt2",typeof i.padding=="string"?i.padding:i.padding?"px4":""])},[Qe(i.$slots,"details",{},void 0,!0),w("div",{class:Ee([i.containerClass,"mt1"])},[Qe(i.$slots,"default",{},void 0,!0)],2),Qe(i.$slots,"footer",{},void 0,!0)],2)),[[s,m(e)]])],40,lde),dde],64)}}}),V6=rf(hde,[["__scopeId","data-v-d09fbc98"]]),Ade={block:"","cursor-pointer":""},fde={p2:""},Cde=["onSubmit"],Ide=w("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),vde={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},pde={key:1},mde=we({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(t,{emit:r}){const e=t,n=r;function i(u){return u.split(/(:\w+[\?\*]?)/).filter(Boolean)}const o=H([]),a=J(()=>{const u=i(e.route.path);return o.value=Array.from({length:u.length},()=>""),u}),s=J(()=>a.value.map((u,c)=>u[0]===":"?o.value[c]:u).join("").replace(/\/+/g,"/")),l=J(()=>e.route.path.includes(":"));function g(){n("navigate",s.value)}return(u,c)=>m(l)?(T(),re(m(kc),{key:1},{popper:V(({hide:d})=>[w("div",fde,[w("form",{flex:"~ col",onSubmit:En(()=>{g(),d()},["prevent"])},[m(l)?(T(),L(be,{key:0},[Ide,w("div",vde,[(T(!0),L(be,null,pt(m(a),(h,A)=>(T(),L(be,{key:A},[h[0]===":"?(T(),re(m(Da),{key:0,modelValue:m(o)[A],"onUpdate:modelValue":f=>m(o)[A]=f,"n-sm":"","w-20":"",placeholder:h.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(T(),L("span",pde,_e(h),1))],64))),128))])],64)):$e("",!0),z(m(at),{block:"",type:"primary"},{default:V(()=>[ke(" Navigate ")]),_:1})],40,Cde)])]),default:V(()=>[w("code",Ade,[(T(!0),L(be,null,pt(m(a),(d,h)=>(T(),L("span",{key:h,class:Ee(d[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},_e(d[0]===":"?d.slice(1):d),3))),128))])]),_:1})):(T(),L("button",{key:0,onClick:g},[w("code",null,_e(u.route.path),1)]))}}),yde={"w-full":""},bde=w("thead",{border:"b base","px-3":""},[w("tr",null,[w("th",{"text-left":""}),w("th",{"text-left":""}," Route Path "),w("th",{"text-left":""}," Name "),w("th",{"text-left":""})])],-1),$de={"w-20":"","pr-1":""},wde={flex:"","items-center":"","justify-end":""},_de={"text-sm":""},Ede={flex:"inline gap3","items-center":""},Sde={op0:"","group-hover:op100":"",flex:"~ gap1"},Tde=["onClick"],Ode=w("div",{"i-carbon-script-reference":""},null,-1),kde=[Ode],xde={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Pde=we({__name:"RoutesTable",props:{pages:{},matched:{},matchedPending:{}},emits:["navigate"],setup(t){const r=t,e=J(()=>[...r.pages].sort((o,a)=>o.path.localeCompare(a.path))),n=Hm,i=Xi();return(o,a)=>{const s=mde;return T(),L("div",null,[w("table",yde,[bde,w("tbody",null,[(T(!0),L(be,null,pt(m(e),l=>(T(),L("tr",{key:l.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[w("td",$de,[w("div",wde,[o.matched.find(g=>g.name===l.name)?(T(),re(m(_P),{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):o.matchedPending.find(g=>g.name===l.name)?(T(),re(m(_P),{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):$e("",!0)])]),w("td",_de,[w("div",Ede,[z(s,{route:l,class:Ee(o.matched.find(g=>g.name===l.name)?"text-primary-400":o.matchedPending.find(g=>g.name===l.name)?"text-teal":""),onNavigate:a[0]||(a[0]=g=>o.$emit("navigate",g))},null,8,["route","class"]),w("div",Sde,[(l.file||l.meta?.file)&&m(i).vitePluginDetected.value?(T(),L("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary-400",title:"Open in editor",onClick:g=>m(n)(l.file||l.meta?.file)},kde,8,Tde)):$e("",!0)])])]),w("td",xde,_e(l.name),1)]))),128))])])])}}}),Rde={"h-full":"","of-auto":""},Dde={border:"b base",flex:"~ col gap1",px4:"",py3:""};const Nde={key:1,op50:""},Mde=w("span",null,[ke("Press "),w("b",{"font-bold":""},"Enter"),ke(" to navigate")],-1),Bde={key:0,"text-orange":"",op75:""},Fde={key:1,op50:""},Lde=we({__name:"pages",setup(t){const r=yn(),e=H(""),n=H(null),i=H([]),o=J(()=>e.value===n.value?.path?[]:i.value),a=H([]);function s(u){a.value=u.routes,n.value=u.currentRoute,e.value=n.value?.path??"/"}function l(){o.value.length&&g(e.value)}function g(u){r.navigate({path:u})}return _o(()=>{r.getRouterInfo().then(({data:u})=>{s(u)}),r.on.routerInfoUpdated(u=>{s(u)})}),k2(e,()=>{e.value!==n.value?.path&&r.getMatchedRoutes(e.value).then(u=>{i.value=u.data})}),(u,c)=>{const d=Pde,h=V6,A=Eo;return T(),re(A,{block:"","h-screen":"","of-auto":""},{default:V(()=>[w("div",Rde,[w("div",Dde,[w("div",null,[(T(),L("span",Nde,"Current route"))]),z(m(Da),{modelValue:m(e),"onUpdate:modelValue":c[0]||(c[0]=f=>ze(e)?e.value=f:null),"left-icon":"i-carbon-direction-right-01 scale-y--100",class:Ee(m(n)?.path===m(e)?"":m(o).length?"text-green!":"text-orange!"),onKeydown:jj(l,["enter"])},null,8,["modelValue","class"]),w("div",null,[m(n)?.path!==m(e)?(T(),L(be,{key:0},[Mde,m(o).length?$e("",!0):(T(),L("span",Bde," (no match)"))],64)):(T(),L("span",Fde,"Edit path above to navigate"))])]),z(h,{icon:"i-carbon-tree-view-alt",text:"All Routes",description:`${m(a).length} routes registered in your application`,padding:!1},{default:V(()=>[m(a).length?(T(),re(d,{key:0,pages:m(a),matched:m(n)?.matched??[],"matched-pending":m(o),onNavigate:g},null,8,["pages","matched","matched-pending"])):$e("",!0)]),_:1},8,["description"])])]),_:1})}}});var fo;(function(t){t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline"})(fo||(fo={}));var Pc;(function(t){function r(u){return u.toString(2).padStart(32,"0")}t.toBinaryStr=r;function e(u){const c=t.getLanguageId(u),d=t.getTokenType(u),h=t.getFontStyle(u),A=t.getForeground(u),f=t.getBackground(u);console.log({languageId:c,tokenType:d,fontStyle:h,foreground:A,background:f})}t.print=e;function n(u){return(u&255)>>>0}t.getLanguageId=n;function i(u){return(u&768)>>>8}t.getTokenType=i;function o(u){return(u&1024)!==0}t.containsBalancedBrackets=o;function a(u){return(u&30720)>>>11}t.getFontStyle=a;function s(u){return(u&16744448)>>>15}t.getForeground=s;function l(u){return(u&4278190080)>>>24}t.getBackground=l;function g(u,c,d,h,A,f,C){let I=t.getLanguageId(u),v=t.getTokenType(u),p=t.containsBalancedBrackets(u)?1:0,y=t.getFontStyle(u),b=t.getForeground(u),_=t.getBackground(u);return c!==0&&(I=c),d!==8&&(v=d),h!==null&&(p=h?1:0),A!==-1&&(y=A),f!==0&&(b=f),C!==0&&(_=C),(I<<0|v<<8|p<<10|y<<11|b<<15|_<<24)>>>0}t.set=g})(Pc||(Pc={}));function Ip(t,r){const e=[],n=zde(t);let i=n.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let g=a();if(e.push({matcher:g,priority:l}),i!==",")break;i=n.next()}return e;function o(){if(i==="-"){i=n.next();const l=o();return g=>!!l&&!l(g)}if(i==="("){i=n.next();const l=s();return i===")"&&(i=n.next()),l}if(YP(i)){const l=[];do l.push(i),i=n.next();while(YP(i));return g=>r(l,g)}return null}function a(){const l=[];let g=o();for(;g;)l.push(g),g=o();return u=>l.every(c=>c(u))}function s(){const l=[];let g=a();for(;g&&(l.push(g),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");g=a()}return u=>l.some(c=>c(u))}}function YP(t){return!!t&&!!t.match(/[\w\.:]+/)}function zde(t){let r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,e=r.exec(t);return{next:()=>{if(!e)return null;const n=e[0];return e=r.exec(t),n}}}function G6(t){typeof t.dispose=="function"&&t.dispose()}function jde(t){return L2(t)}function L2(t){return Array.isArray(t)?Vde(t):typeof t=="object"?Gde(t):t}function Vde(t){let r=[];for(let e=0,n=t.length;e<n;e++)r[e]=L2(t[e]);return r}function Gde(t){let r={};for(let e in t)r[e]=L2(t[e]);return r}function W6(t,...r){return r.forEach(e=>{for(let n in e)t[n]=e[n]}),t}function H6(t){const r=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return r===0?t:~r===t.length-1?H6(t.substring(0,t.length-1)):t.substr(~r+1)}let Qb=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class HC{static hasCaptures(r){return r===null?!1:(Qb.lastIndex=0,Qb.test(r))}static replaceCaptures(r,e,n){return r.replace(Qb,(i,o,a,s)=>{let l=n[parseInt(o||a,10)];if(l){let g=e.substring(l.start,l.end);for(;g[0]===".";)g=g.substring(1);switch(s){case"downcase":return g.toLowerCase();case"upcase":return g.toUpperCase();default:return g}}else return i})}}function U6(t,r){return t<r?-1:t>r?1:0}function Z6(t,r){if(t===null&&r===null)return 0;if(!t)return-1;if(!r)return 1;let e=t.length,n=r.length;if(e===n){for(let i=0;i<e;i++){let o=U6(t[i],r[i]);if(o!==0)return o}return 0}return e-n}function XP(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function K6(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}class Y6{fn;cache=new Map;constructor(r){this.fn=r}get(r){if(this.cache.has(r))return this.cache.get(r);const e=this.fn(r);return this.cache.set(r,e),e}}class AA{scopeName;constructor(r){this.scopeName=r}toKey(){return this.scopeName}}class Wde{scopeName;ruleName;constructor(r,e){this.scopeName=r,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}}class Hde{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(r){const e=r.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(r))}}class Ude{repo;initialScopeName;seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;constructor(r,e){this.repo=r,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new AA(this.initialScopeName)]}processQueue(){const r=this.Q;this.Q=[];const e=new Hde;for(const n of r)Zde(n,this.initialScopeName,this.repo,e);for(const n of e.references)if(n instanceof AA){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}}function Zde(t,r,e,n){const i=e.lookup(t.scopeName);if(!i){if(t.scopeName===r)throw new Error(`No grammar provided for <${r}>`);return}const o=e.lookup(r);t instanceof AA?Cv({baseGrammar:o,selfGrammar:i},n):E_(t.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const a=e.injections(t.scopeName);if(a)for(const s of a)n.add(new AA(s))}function E_(t,r,e){if(r.repository&&r.repository[t]){const n=r.repository[t];vp([n],r,e)}}function Cv(t,r){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&vp(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},r),t.selfGrammar.injections&&vp(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},r)}function vp(t,r,e){for(const n of t){if(e.visitedRule.has(n))continue;e.visitedRule.add(n);const i=n.repository?W6({},r.repository,n.repository):r.repository;Array.isArray(n.patterns)&&vp(n.patterns,{...r,repository:i},e);const o=n.include;if(!o)continue;const a=X6(o);switch(a.kind){case 0:Cv({...r,selfGrammar:r.baseGrammar},e);break;case 1:Cv(r,e);break;case 2:E_(a.ruleName,{...r,repository:i},e);break;case 3:case 4:const s=a.scopeName===r.selfGrammar.scopeName?r.selfGrammar:a.scopeName===r.baseGrammar.scopeName?r.baseGrammar:void 0;if(s){const l={baseGrammar:r.baseGrammar,selfGrammar:s,repository:i};a.kind===4?E_(a.ruleName,l,e):Cv(l,e)}else a.kind===4?e.add(new Wde(a.scopeName,a.ruleName)):e.add(new AA(a.scopeName));break}}}class Kde{kind=0}class Yde{kind=1}class Xde{ruleName;kind=2;constructor(r){this.ruleName=r}}class Qde{scopeName;kind=3;constructor(r){this.scopeName=r}}class qde{scopeName;ruleName;kind=4;constructor(r,e){this.scopeName=r,this.ruleName=e}}function X6(t){if(t==="$base")return new Kde;if(t==="$self")return new Yde;const r=t.indexOf("#");if(r===-1)return new Qde(t);if(r===0)return new Xde(t.substring(1));{const e=t.substring(0,r),n=t.substring(r+1);return new qde(e,n)}}const Jde=/\\(\d+)/,QP=/\\(\d+)/g,ehe=-1,Q6=-2;class af{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(r,e,n,i){this.$location=r,this.id=e,this._name=n||null,this._nameIsCapturing=HC.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=HC.hasCaptures(this._contentName)}get debugName(){const r=this.$location?`${H6(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${r}`}getName(r,e){return!this._nameIsCapturing||this._name===null||r===null||e===null?this._name:HC.replaceCaptures(this._name,r,e)}getContentName(r,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:HC.replaceCaptures(this._contentName,r,e)}}class the extends af{retokenizeCapturedWithRuleId;constructor(r,e,n,i,o){super(r,e,n,i),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(r,e){throw new Error("Not supported!")}compile(r,e){throw new Error("Not supported!")}compileAG(r,e,n,i){throw new Error("Not supported!")}}class rhe extends af{_match;captures;_cachedCompiledPatterns;constructor(r,e,n,i,o){super(r,e,n,null),this._match=new _g(i,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(r,e){e.push(this._match)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,n,i){return this._getCachedCompiledPatterns(r).compileAG(r,n,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fA,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class qP extends af{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,n,i,o){super(r,e,n,i),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(r,e){for(const n of this.patterns)r.getRule(n).collectPatterns(r,e)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,n,i){return this._getCachedCompiledPatterns(r).compileAG(r,n,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fA,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class S_ extends af{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,n,i,o,a,s,l,g,u){super(r,e,n,i),this._begin=new _g(o,this.id),this.beginCaptures=a,this._end=new _g(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=g||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(r,e){return this._end.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r,e).compile(r)}compileAG(r,e,n,i){return this._getCachedCompiledPatterns(r,e).compileAG(r,n,i)}_getCachedCompiledPatterns(r,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fA;for(const n of this.patterns)r.getRule(n).collectPatterns(r,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}}class pp extends af{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(r,e,n,i,o,a,s,l,g){super(r,e,n,i),this._begin=new _g(o,this.id),this.beginCaptures=a,this.whileCaptures=l,this._while=new _g(s,Q6),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=g.patterns,this.hasMissingPatterns=g.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(r,e){return this._while.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,n,i){return this._getCachedCompiledPatterns(r).compileAG(r,n,i)}_getCachedCompiledPatterns(r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fA;for(const e of this.patterns)r.getRule(e).collectPatterns(r,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(r,e){return this._getCachedCompiledWhilePatterns(r,e).compile(r)}compileWhileAG(r,e,n,i){return this._getCachedCompiledWhilePatterns(r,e).compileAG(r,n,i)}_getCachedCompiledWhilePatterns(r,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new fA,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}}class qr{static createCaptureRule(r,e,n,i,o){return r.registerRule(a=>new the(e,a,n,i,o))}static getCompiledRuleId(r,e,n){return r.id||e.registerRule(i=>{if(r.id=i,r.match)return new rhe(r.$vscodeTextmateLocation,r.id,r.name,r.match,qr._compileCaptures(r.captures,e,n));if(typeof r.begin>"u"){r.repository&&(n=W6({},n,r.repository));let o=r.patterns;return typeof o>"u"&&r.include&&(o=[{include:r.include}]),new qP(r.$vscodeTextmateLocation,r.id,r.name,r.contentName,qr._compilePatterns(o,e,n))}return r.while?new pp(r.$vscodeTextmateLocation,r.id,r.name,r.contentName,r.begin,qr._compileCaptures(r.beginCaptures||r.captures,e,n),r.while,qr._compileCaptures(r.whileCaptures||r.captures,e,n),qr._compilePatterns(r.patterns,e,n)):new S_(r.$vscodeTextmateLocation,r.id,r.name,r.contentName,r.begin,qr._compileCaptures(r.beginCaptures||r.captures,e,n),r.end,qr._compileCaptures(r.endCaptures||r.captures,e,n),r.applyEndPatternLast,qr._compilePatterns(r.patterns,e,n))}),r.id}static _compileCaptures(r,e,n){let i=[];if(r){let o=0;for(const a in r){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);s>o&&(o=s)}for(let a=0;a<=o;a++)i[a]=null;for(const a in r){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);let l=0;r[a].patterns&&(l=qr.getCompiledRuleId(r[a],e,n)),i[s]=qr.createCaptureRule(e,r[a].$vscodeTextmateLocation,r[a].name,r[a].contentName,l)}}return i}static _compilePatterns(r,e,n){let i=[];if(r)for(let o=0,a=r.length;o<a;o++){const s=r[o];let l=-1;if(s.include){const g=X6(s.include);switch(g.kind){case 0:case 1:l=qr.getCompiledRuleId(n[s.include],e,n);break;case 2:let u=n[g.ruleName];u&&(l=qr.getCompiledRuleId(u,e,n));break;case 3:case 4:const c=g.scopeName,d=g.kind===4?g.ruleName:null,h=e.getExternalGrammar(c,n);if(h)if(d){let A=h.repository[d];A&&(l=qr.getCompiledRuleId(A,e,h.repository))}else l=qr.getCompiledRuleId(h.repository.$self,e,h.repository);break}}else l=qr.getCompiledRuleId(s,e,n);if(l!==-1){const g=e.getRule(l);let u=!1;if((g instanceof qP||g instanceof S_||g instanceof pp)&&g.hasMissingPatterns&&g.patterns.length===0&&(u=!0),u)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(r?r.length:0)!==i.length}}}class _g{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(r,e){if(r){const n=r.length;let i=0,o=[],a=!1;for(let s=0;s<n;s++)if(r.charAt(s)==="\\"&&s+1<n){const g=r.charAt(s+1);g==="z"?(o.push(r.substring(i,s)),o.push("$(?!\\n)(?<!\\n)"),i=s+2):(g==="A"||g==="G")&&(a=!0),s++}this.hasAnchor=a,i===0?this.source=r:(o.push(r.substring(i,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=r;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,this.hasBackReferences=Jde.test(this.source)}clone(){return new _g(this.source,this.ruleId)}setSource(r){this.source!==r&&(this.source=r,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(r,e){let n=e.map(i=>r.substring(i.start,i.end));return QP.lastIndex=0,this.source.replace(QP,(i,o)=>K6(n[parseInt(o,10)]||""))}_buildAnchorCache(){let r=[],e=[],n=[],i=[],o,a,s,l;for(o=0,a=this.source.length;o<a;o++)s=this.source.charAt(o),r[o]=s,e[o]=s,n[o]=s,i[o]=s,s==="\\"&&o+1<a&&(l=this.source.charAt(o+1),l==="A"?(r[o+1]="",e[o+1]="",n[o+1]="A",i[o+1]="A"):l==="G"?(r[o+1]="",e[o+1]="G",n[o+1]="",i[o+1]="G"):(r[o+1]=l,e[o+1]=l,n[o+1]=l,i[o+1]=l),o++);return{A0_G0:r.join(""),A0_G1:e.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(r,e){return!this.hasAnchor||!this._anchorCache?this.source:r?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0}}class fA{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(r){this._items.push(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}unshift(r){this._items.unshift(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}length(){return this._items.length}setSource(r,e){this._items[r].source!==e&&(this._disposeCaches(),this._items[r].setSource(e))}compile(r){if(!this._cached){let e=this._items.map(n=>n.source);this._cached=new JP(r,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(r,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(r,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(r,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(r,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(r,e,n)),this._anchorCache.A0_G0):this.compile(r)}_resolveAnchors(r,e,n){let i=this._items.map(o=>o.resolveAnchors(e,n));return new JP(r,i,this._items.map(o=>o.ruleId))}}class JP{regExps;rules;scanner;constructor(r,e,n){this.regExps=e,this.rules=n,this.scanner=r.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const r=[];for(let e=0,n=this.rules.length;e<n;e++)r.push(" - "+this.rules[e]+": "+this.regExps[e]);return r.join(`
|
|
23
23
|
`)}findNextMatchSync(r,e,n){const i=this.scanner.findNextMatchSync(r,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}}class T_{_colorMap;_defaults;_root;static createFromRawTheme(r,e){return this.createFromParsedTheme(ohe(r),e)}static createFromParsedTheme(r,e){return she(r,e)}_cachedMatchRoot=new Y6(r=>this._root.match(r));constructor(r,e,n){this._colorMap=r,this._defaults=e,this._root=n}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(r){if(r===null)return this._defaults;const e=r.scopeName,i=this._cachedMatchRoot.get(e).find(o=>nhe(r.parent,o.parentScopes));return i?new q6(i.fontStyle,i.foreground,i.background):null}}class ag{parent;scopeName;static push(r,e){for(const n of e)r=new ag(r,n);return r}static from(...r){let e=null;for(let n=0;n<r.length;n++)e=new ag(e,r[n]);return e}constructor(r,e){this.parent=r,this.scopeName=e}push(r){return new ag(this,r)}getSegments(){let r=this;const e=[];for(;r;)e.push(r.scopeName),r=r.parent;return e.reverse(),e}toString(){return this.getSegments().join(" ")}extends(r){return this===r?!0:this.parent===null?!1:this.parent.extends(r)}getExtensionIfDefined(r){const e=[];let n=this;for(;n&&n!==r;)e.push(n.scopeName),n=n.parent;return n===r?e.reverse():void 0}}function nhe(t,r){if(r===null)return!0;let e=0,n=r[e];for(;t;){if(ihe(t.scopeName,n)){if(e++,e===r.length)return!0;n=r[e]}t=t.parent}return!1}function ihe(t,r){return r===t||t.startsWith(r)&&t[r.length]==="."}class q6{fontStyle;foregroundId;backgroundId;constructor(r,e,n){this.fontStyle=r,this.foregroundId=e,this.backgroundId=n}}function ohe(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let r=t.settings,e=[],n=0;for(let i=0,o=r.length;i<o;i++){let a=r[i];if(!a.settings)continue;let s;if(typeof a.scope=="string"){let c=a.scope;c=c.replace(/^[,]+/,""),c=c.replace(/[,]+$/,""),s=c.split(",")}else Array.isArray(a.scope)?s=a.scope:s=[""];let l=-1;if(typeof a.settings.fontStyle=="string"){l=0;let c=a.settings.fontStyle.split(" ");for(let d=0,h=c.length;d<h;d++)switch(c[d]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let g=null;typeof a.settings.foreground=="string"&&XP(a.settings.foreground)&&(g=a.settings.foreground);let u=null;typeof a.settings.background=="string"&&XP(a.settings.background)&&(u=a.settings.background);for(let c=0,d=s.length;c<d;c++){let A=s[c].trim().split(" "),f=A[A.length-1],C=null;A.length>1&&(C=A.slice(0,A.length-1),C.reverse()),e[n++]=new ahe(f,C,i,l,g,u)}}return e}class ahe{scope;parentScopes;index;fontStyle;foreground;background;constructor(r,e,n,i,o,a){this.scope=r,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=o,this.background=a}}function she(t,r){t.sort((l,g)=>{let u=U6(l.scope,g.scope);return u!==0||(u=Z6(l.parentScopes,g.parentScopes),u!==0)?u:l.index-g.index});let e=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(e=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(i=l.background)}let o=new lhe(r),a=new q6(e,o.getId(n),o.getId(i)),s=new Mh(new CA(0,null,-1,0,0),[]);for(let l=0,g=t.length;l<g;l++){let u=t[l];s.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new T_(o,a,s)}class lhe{_isFrozen;_lastColorId;_id2color;_color2id;constructor(r){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(r)){this._isFrozen=!0;for(let e=0,n=r.length;e<n;e++)this._color2id[r[e]]=e,this._id2color[e]=r[e]}else this._isFrozen=!1}getId(r){if(r===null)return 0;r=r.toUpperCase();let e=this._color2id[r];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${r}`);return e=++this._lastColorId,this._color2id[r]=e,this._id2color[e]=r,e}getColorMap(){return this._id2color.slice(0)}}class CA{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(r,e,n,i,o){this.scopeDepth=r,this.parentScopes=e,this.fontStyle=n,this.foreground=i,this.background=o}clone(){return new CA(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(r){let e=[];for(let n=0,i=r.length;n<i;n++)e[n]=r[n].clone();return e}acceptOverwrite(r,e,n,i){this.scopeDepth>r?console.log("how did this happen?"):this.scopeDepth=r,e!==-1&&(this.fontStyle=e),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}}class Mh{_mainRule;_children;_rulesWithParentScopes;constructor(r,e=[],n={}){this._mainRule=r,this._children=n,this._rulesWithParentScopes=e}static _sortBySpecificity(r){return r.length===1||r.sort(this._cmpBySpecificity),r}static _cmpBySpecificity(r,e){if(r.scopeDepth===e.scopeDepth){const n=r.parentScopes,i=e.parentScopes;let o=n===null?0:n.length,a=i===null?0:i.length;if(o===a)for(let s=0;s<o;s++){const l=n[s].length,g=i[s].length;if(l!==g)return g-l}return a-o}return e.scopeDepth-r.scopeDepth}match(r){if(r==="")return Mh._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let e=r.indexOf("."),n,i;return e===-1?(n=r,i=""):(n=r.substring(0,e),i=r.substring(e+1)),this._children.hasOwnProperty(n)?this._children[n].match(i):Mh._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(r,e,n,i,o,a){if(e===""){this._doInsertHere(r,n,i,o,a);return}let s=e.indexOf("."),l,g;s===-1?(l=e,g=""):(l=e.substring(0,s),g=e.substring(s+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new Mh(this._mainRule.clone(),CA.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(r+1,g,n,i,o,a)}_doInsertHere(r,e,n,i,o){if(e===null){this._mainRule.acceptOverwrite(r,n,i,o);return}for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let l=this._rulesWithParentScopes[a];if(Z6(l.parentScopes,e)===0){l.acceptOverwrite(r,n,i,o);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new CA(r,e,n,i,o))}}class qb{languageId;tokenType;constructor(r,e){this.languageId=r,this.tokenType=e}}class mp{_defaultAttributes;_embeddedLanguagesMatcher;constructor(r,e){this._defaultAttributes=new qb(r,8),this._embeddedLanguagesMatcher=new ghe(Object.entries(e||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(r){return r===null?mp._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(r)}static _NULL_SCOPE_METADATA=new qb(0,0);_getBasicScopeAttributes=new Y6(r=>{const e=this._scopeToLanguage(r),n=this._toStandardTokenType(r);return new qb(e,n)});_scopeToLanguage(r){return this._embeddedLanguagesMatcher.match(r)||0}_toStandardTokenType(r){const e=r.match(mp.STANDARD_TOKEN_TYPE_REGEXP);if(!e)return 8;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/}class ghe{values;scopesRegExp;constructor(r){if(r.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(r);const e=r.map(([n,i])=>K6(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(r){if(!this.scopesRegExp)return;const e=r.match(this.scopesRegExp);if(e)return this.values.get(e[1])}}class eR{stack;stoppedEarly;constructor(r,e){this.stack=r,this.stoppedEarly=e}}function J6(t,r,e,n,i,o,a,s){const l=r.content.length;let g=!1,u=-1;if(a){const h=uhe(t,r,e,n,i,o);i=h.stack,n=h.linePos,e=h.isFirstLine,u=h.anchorPosition}const c=Date.now();for(;!g;){if(s!==0&&Date.now()-c>s)return new eR(i,!0);d()}return new eR(i,!1);function d(){const h=che(t,r,e,n,i,u);if(!h){o.produce(i,l),g=!0;return}const A=h.captureIndices,f=h.matchedRuleId,C=A&&A.length>0?A[0].end>n:!1;if(f===ehe){const I=i.getRule(t);o.produce(i,A[0].start),i=i.withContentNameScopesList(i.nameScopesList),vh(t,r,e,i,o,I.endCaptures,A),o.produce(i,A[0].end);const v=i;if(i=i.parent,u=v.getAnchorPos(),!C&&v.getEnterPos()===n){i=v,o.produce(i,l),g=!0;return}}else{const I=t.getRule(f);o.produce(i,A[0].start);const v=i,p=I.getName(r.content,A),y=i.contentNameScopesList.pushAttributed(p,t);if(i=i.push(f,n,u,A[0].end===l,null,y,y),I instanceof S_){const b=I;vh(t,r,e,i,o,b.beginCaptures,A),o.produce(i,A[0].end),u=A[0].end;const _=b.getContentName(r.content,A),P=y.pushAttributed(_,t);if(i=i.withContentNameScopesList(P),b.endHasBackReferences&&(i=i.withEndRule(b.getEndWithResolvedBackReferences(r.content,A))),!C&&v.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),g=!0;return}}else if(I instanceof pp){const b=I;vh(t,r,e,i,o,b.beginCaptures,A),o.produce(i,A[0].end),u=A[0].end;const _=b.getContentName(r.content,A),P=y.pushAttributed(_,t);if(i=i.withContentNameScopesList(P),b.whileHasBackReferences&&(i=i.withEndRule(b.getWhileWithResolvedBackReferences(r.content,A))),!C&&v.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),g=!0;return}}else if(vh(t,r,e,i,o,I.captures,A),o.produce(i,A[0].end),i=i.pop(),!C){i=i.safePop(),o.produce(i,l),g=!0;return}}A[0].end>n&&(n=A[0].end,e=!1)}}function uhe(t,r,e,n,i,o){let a=i.beginRuleCapturedEOL?0:-1;const s=[];for(let l=i;l;l=l.pop()){const g=l.getRule(t);g instanceof pp&&s.push({rule:g,stack:l})}for(let l=s.pop();l;l=s.pop()){const{ruleScanner:g,findOptions:u}=Ahe(l.rule,t,l.stack.endRule,e,n===a),c=g.findNextMatchSync(r,n,u);if(c){if(c.ruleId!==Q6){i=l.stack.pop();break}c.captureIndices&&c.captureIndices.length&&(o.produce(l.stack,c.captureIndices[0].start),vh(t,r,e,l.stack,o,l.rule.whileCaptures,c.captureIndices),o.produce(l.stack,c.captureIndices[0].end),a=c.captureIndices[0].end,c.captureIndices[0].end>n&&(n=c.captureIndices[0].end,e=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:a,isFirstLine:e}}function che(t,r,e,n,i,o){const a=dhe(t,r,e,n,i,o),s=t.getInjections();if(s.length===0)return a;const l=hhe(s,t,r,e,n,i,o);if(!l)return a;if(!a)return l;const g=a.captureIndices[0].start,u=l.captureIndices[0].start;return u<g||l.priorityMatch&&u===g?l:a}function dhe(t,r,e,n,i,o){const a=i.getRule(t),{ruleScanner:s,findOptions:l}=eV(a,t,i.endRule,e,n===o),g=s.findNextMatchSync(r,n,l);return g?{captureIndices:g.captureIndices,matchedRuleId:g.ruleId}:null}function hhe(t,r,e,n,i,o,a){let s=Number.MAX_VALUE,l=null,g,u=0;const c=o.contentNameScopesList.getScopeNames();for(let d=0,h=t.length;d<h;d++){const A=t[d];if(!A.matcher(c))continue;const f=r.getRule(A.ruleId),{ruleScanner:C,findOptions:I}=eV(f,r,null,n,i===a),v=C.findNextMatchSync(e,i,I);if(!v)continue;const p=v.captureIndices[0].start;if(!(p>=s)&&(s=p,l=v.captureIndices,g=v.ruleId,u=A.priority,s===i))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:g}:null}function eV(t,r,e,n,i){return{ruleScanner:t.compileAG(r,e,n,i),findOptions:0}}function Ahe(t,r,e,n,i){return{ruleScanner:t.compileWhileAG(r,e,n,i),findOptions:0}}function vh(t,r,e,n,i,o,a){if(o.length===0)return;const s=r.content,l=Math.min(o.length,a.length),g=[],u=a[0].end;for(let c=0;c<l;c++){const d=o[c];if(d===null)continue;const h=a[c];if(h.length===0)continue;if(h.start>u)break;for(;g.length>0&&g[g.length-1].endPos<=h.start;)i.produceFromScopes(g[g.length-1].scopes,g[g.length-1].endPos),g.pop();if(g.length>0?i.produceFromScopes(g[g.length-1].scopes,h.start):i.produce(n,h.start),d.retokenizeCapturedWithRuleId){const f=d.getName(s,a),C=n.contentNameScopesList.pushAttributed(f,t),I=d.getContentName(s,a),v=C.pushAttributed(I,t),p=n.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,C,v),y=t.createOnigString(s.substring(0,h.end));J6(t,y,e&&h.start===0,h.start,p,i,!1,0),G6(y);continue}const A=d.getName(s,a);if(A!==null){const C=(g.length>0?g[g.length-1].scopes:n.contentNameScopesList).pushAttributed(A,t);g.push(new fhe(C,h.end))}}for(;g.length>0;)i.produceFromScopes(g[g.length-1].scopes,g[g.length-1].endPos),g.pop()}class fhe{scopes;endPos;constructor(r,e){this.scopes=r,this.endPos=e}}function Che(t,r,e,n,i,o,a,s){return new vhe(t,r,e,n,i,o,a,s)}function tR(t,r,e,n,i){const o=Ip(r,yp),a=qr.getCompiledRuleId(e,n,i.repository);for(const s of o)t.push({debugSelector:r,matcher:s.matcher,ruleId:a,grammar:i,priority:s.priority})}function yp(t,r){if(r.length<t.length)return!1;let e=0;return t.every(n=>{for(let i=e;i<r.length;i++)if(Ihe(r[i],n))return e=i+1,!0;return!1})}function Ihe(t,r){if(!t)return!1;if(t===r)return!0;const e=r.length;return t.length>e&&t.substr(0,e)===r&&t[e]==="."}class vhe{_rootScopeName;balancedBracketSelectors;_onigLib;_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}constructor(r,e,n,i,o,a,s,l){if(this._rootScopeName=r,this.balancedBracketSelectors=a,this._onigLib=l,this._basicScopeAttributesProvider=new mp(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=rR(e,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const g of Object.keys(o)){const u=Ip(g,yp);for(const c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:o[g]})}}dispose(){for(const r of this._ruleId2desc)r&&r.dispose()}createOnigScanner(r){return this._onigLib.createOnigScanner(r)}createOnigString(r){return this._onigLib.createOnigString(r)}getMetadataForScope(r){return this._basicScopeAttributesProvider.getBasicScopeAttributes(r)}_collectInjections(){const r={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},e=[],n=this._rootScopeName,i=r.lookup(n);if(i){const o=i.injections;if(o)for(let s in o)tR(e,s,o[s],this,i);const a=this._grammarRepository.injections(n);a&&a.forEach(s=>{const l=this.getExternalGrammar(s);if(l){const g=l.injectionSelector;g&&tR(e,g,l,this,l)}})}return e.sort((o,a)=>o.priority-a.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(r){const e=++this._lastRuleId,n=r(e);return this._ruleId2desc[e]=n,n}getRule(r){return this._ruleId2desc[r]}getExternalGrammar(r,e){if(this._includedGrammars[r])return this._includedGrammars[r];if(this._grammarRepository){const n=this._grammarRepository.lookup(r);if(n)return this._includedGrammars[r]=rR(n,e&&e.$base),this._includedGrammars[r]}}tokenizeLine(r,e,n=0){const i=this._tokenize(r,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(r,e,n=0){const i=this._tokenize(r,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(r,e,n,i){this._rootId===-1&&(this._rootId=qr.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!e||e===Mo.NULL){o=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),d=Pc.set(0,u.languageId,u.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),h=this.getRule(this._rootId).getName(null,null);let A;h?A=On.createRootAndLookUpScopeName(h,d,this):A=On.createRoot("unknown",d),e=new Mo(null,this._rootId,-1,-1,!1,null,A,A)}else o=!1,e.reset();r=r+`
|
|
24
24
|
`;const a=this.createOnigString(r),s=a.content.length,l=new mhe(n,r,this._tokenTypeMatchers,this.balancedBracketSelectors),g=J6(this,a,o,0,e,l,!0,i);return G6(a),{lineLength:s,lineTokens:l,ruleStack:g.stack,stoppedEarly:g.stoppedEarly}}}function rR(t,r){return t=jde(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=r||t.repository.$self,t}class On{parent;scopePath;tokenAttributes;static fromExtension(r,e){let n=r,i=r?.scopePath??null;for(const o of e)i=ag.push(i,o.scopeNames),n=new On(n,i,o.encodedTokenAttributes);return n}static createRoot(r,e){return new On(null,new ag(null,r),e)}static createRootAndLookUpScopeName(r,e,n){const i=n.getMetadataForScope(r),o=new ag(null,r),a=n.themeProvider.themeMatch(o),s=On.mergeAttributes(e,i,a);return new On(null,o,s)}get scopeName(){return this.scopePath.scopeName}constructor(r,e,n){this.parent=r,this.scopePath=e,this.tokenAttributes=n}toString(){return this.getScopeNames().join(" ")}equals(r){return On.equals(this,r)}static equals(r,e){do{if(r===e||!r&&!e)return!0;if(!r||!e||r.scopeName!==e.scopeName||r.tokenAttributes!==e.tokenAttributes)return!1;r=r.parent,e=e.parent}while(!0)}static mergeAttributes(r,e,n){let i=-1,o=0,a=0;return n!==null&&(i=n.fontStyle,o=n.foregroundId,a=n.backgroundId),Pc.set(r,e.languageId,e.tokenType,null,i,o,a)}pushAttributed(r,e){if(r===null)return this;if(r.indexOf(" ")===-1)return On._pushAttributed(this,r,e);const n=r.split(/ /g);let i=this;for(const o of n)i=On._pushAttributed(i,o,e);return i}static _pushAttributed(r,e,n){const i=n.getMetadataForScope(e),o=r.scopePath.push(e),a=n.themeProvider.themeMatch(o),s=On.mergeAttributes(r.tokenAttributes,i,a);return new On(r,o,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(r){const e=[];let n=this;for(;n&&n!==r;)e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===r?e.reverse():void 0}}class Mo{parent;ruleId;beginRuleCapturedEOL;endRule;nameScopesList;contentNameScopesList;_stackElementBrand=void 0;static NULL=new Mo(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;constructor(r,e,n,i,o,a,s,l){this.parent=r,this.ruleId=e,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(r){return r===null?!1:Mo._equals(this,r)}static _equals(r,e){return r===e?!0:this._structuralEquals(r,e)?On.equals(r.contentNameScopesList,e.contentNameScopesList):!1}static _structuralEquals(r,e){do{if(r===e||!r&&!e)return!0;if(!r||!e||r.depth!==e.depth||r.ruleId!==e.ruleId||r.endRule!==e.endRule)return!1;r=r.parent,e=e.parent}while(!0)}clone(){return this}static _reset(r){for(;r;)r._enterPos=-1,r._anchorPos=-1,r=r.parent}reset(){Mo._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(r,e,n,i,o,a,s){return new Mo(this,r,e,n,i,o,a,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(r){return r.getRule(this.ruleId)}toString(){const r=[];return this._writeString(r,0),"["+r.join(",")+"]"}_writeString(r,e){return this.parent&&(e=this.parent._writeString(r,e)),r[e++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,e}withContentNameScopesList(r){return this.contentNameScopesList===r?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,r)}withEndRule(r){return this.endRule===r?this:new Mo(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,r,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(r){let e=this;for(;e&&e._enterPos===r._enterPos;){if(e.ruleId===r.ruleId)return!0;e=e.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(r,e){const n=On.fromExtension(r?.nameScopesList??null,e.nameScopesList);return new Mo(r,e.ruleId,e.enterPos??-1,e.anchorPos??-1,e.beginRuleCapturedEOL,e.endRule,n,On.fromExtension(n,e.contentNameScopesList))}}class phe{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(r,e){this.balancedBracketScopes=r.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Ip(n,yp).map(i=>i.matcher)),this.unbalancedBracketScopes=e.flatMap(n=>Ip(n,yp).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(r){for(const e of this.unbalancedBracketScopes)if(e(r))return!1;for(const e of this.balancedBracketScopes)if(e(r))return!0;return this.allowAny}}class mhe{balancedBracketSelectors;_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;constructor(r,e,n,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=r,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(r,e){this.produceFromScopes(r.contentNameScopesList,e)}produceFromScopes(r,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=r?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const a=r?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(a)&&(i=Pc.set(i,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(a))}if(o&&(i=Pc.set(i,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=e;return}const n=r?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(r,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(r,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let i=0,o=this._binaryTokens.length;i<o;i++)n[i]=this._binaryTokens[i];return n}}class yhe{_onigLibPromise;_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;constructor(r,e){this._onigLibPromise=e,this._theme=r}dispose(){for(const r of this._grammars.values())r.dispose()}setTheme(r){this._theme=r}getColorMap(){return this._theme.getColorMap()}addGrammar(r,e){this._rawGrammars.set(r.scopeName,r),e&&this._injectionGrammars.set(r.scopeName,e)}lookup(r){return this._rawGrammars.get(r)}injections(r){return this._injectionGrammars.get(r)}getDefaults(){return this._theme.getDefaults()}themeMatch(r){return this._theme.match(r)}async grammarForScopeName(r,e,n,i,o){if(!this._grammars.has(r)){let a=this._rawGrammars.get(r);if(!a)return null;this._grammars.set(r,Che(r,a,e,n,i,o,this,await this._onigLibPromise))}return this._grammars.get(r)}}let bhe=class{_options;_syncRegistry;_ensureGrammarCache;constructor(r){this._options=r,this._syncRegistry=new yhe(T_.createFromRawTheme(r.theme,r.colorMap),r.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(r,e){this._syncRegistry.setTheme(T_.createFromRawTheme(r,e))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(r,e,n){return this.loadGrammarWithConfiguration(r,e,{embeddedLanguages:n})}loadGrammarWithConfiguration(r,e,n){return this._loadGrammar(r,e,n.embeddedLanguages,n.tokenTypes,new phe(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(r){return this._loadGrammar(r,0,null,null,null)}async _loadGrammar(r,e,n,i,o){const a=new Ude(this._syncRegistry,r);for(;a.Q.length>0;)await Promise.all(a.Q.map(s=>this._loadSingleGrammar(s.scopeName))),a.processQueue();return this._grammarForScopeName(r,e,n,i,o)}async _loadSingleGrammar(r){return this._ensureGrammarCache.has(r)||this._ensureGrammarCache.set(r,this._doLoadSingleGrammar(r)),this._ensureGrammarCache.get(r)}async _doLoadSingleGrammar(r){const e=await this._options.loadGrammar(r);if(e){const n=typeof this._options.getInjections=="function"?this._options.getInjections(r):void 0;this._syncRegistry.addGrammar(e,n)}}async addGrammar(r,e=[],n=0,i=null){return this._syncRegistry.addGrammar(r,e),await this._grammarForScopeName(r.scopeName,n,i)}_grammarForScopeName(r,e=0,n=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(r,e,n,i,o)}};const $he=Mo.NULL,An={LANGUAGEID_MASK:255,TOKEN_TYPE_MASK:768,BALANCED_BRACKETS_MASK:1024,FONT_STYLE_MASK:14336,FOREGROUND_MASK:8372224,BACKGROUND_MASK:4286578688,LANGUAGEID_OFFSET:0,TOKEN_TYPE_OFFSET:8,BALANCED_BRACKETS_OFFSET:10,FONT_STYLE_OFFSET:11,FOREGROUND_OFFSET:15,BACKGROUND_OFFSET:24};class fa{static toBinaryStr(r){let e=r.toString(2);for(;e.length<32;)e=`0${e}`;return e}static getLanguageId(r){return(r&An.LANGUAGEID_MASK)>>>An.LANGUAGEID_OFFSET}static getTokenType(r){return(r&An.TOKEN_TYPE_MASK)>>>An.TOKEN_TYPE_OFFSET}static getFontStyle(r){return(r&An.FONT_STYLE_MASK)>>>An.FONT_STYLE_OFFSET}static getForeground(r){return(r&An.FOREGROUND_MASK)>>>An.FOREGROUND_OFFSET}static getBackground(r){return(r&An.BACKGROUND_MASK)>>>An.BACKGROUND_OFFSET}static containsBalancedBrackets(r){return(r&An.BALANCED_BRACKETS_MASK)!==0}static set(r,e,n,i,o,a){let s=fa.getLanguageId(r),l=fa.getTokenType(r),g=fa.getFontStyle(r),u=fa.getForeground(r),c=fa.getBackground(r);const d=fa.containsBalancedBrackets(r)?1:0;return e!==0&&(s=e),n!==0&&(l=n===8?0:n),i!==fo.NotSet&&(g=i),o!==0&&(u=o),a!==0&&(c=a),(s<<An.LANGUAGEID_OFFSET|l<<An.TOKEN_TYPE_OFFSET|g<<An.FONT_STYLE_OFFSET|d<<An.BALANCED_BRACKETS_OFFSET|u<<An.FOREGROUND_OFFSET|c<<An.BACKGROUND_OFFSET)>>>0}}const whe=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class sf{constructor(r,e,n){this.property=r,this.normal=e,n&&(this.space=n)}}sf.prototype.property={};sf.prototype.normal={};sf.prototype.space=null;function tV(t,r){const e={},n={};let i=-1;for(;++i<t.length;)Object.assign(e,t[i].property),Object.assign(n,t[i].normal);return new sf(e,n,r)}function O_(t){return t.toLowerCase()}class Qi{constructor(r,e){this.property=r,this.attribute=e}}Qi.prototype.space=null;Qi.prototype.boolean=!1;Qi.prototype.booleanish=!1;Qi.prototype.overloadedBoolean=!1;Qi.prototype.number=!1;Qi.prototype.commaSeparated=!1;Qi.prototype.spaceSeparated=!1;Qi.prototype.commaOrSpaceSeparated=!1;Qi.prototype.mustUseProperty=!1;Qi.prototype.defined=!1;let _he=0;const st=Ug(),Nr=Ug(),rV=Ug(),ce=Ug(),Jt=Ug(),uc=Ug(),hi=Ug();function Ug(){return 2**++_he}var k_=Object.freeze({__proto__:null,boolean:st,booleanish:Nr,commaOrSpaceSeparated:hi,commaSeparated:uc,number:ce,overloadedBoolean:rV,spaceSeparated:Jt});const Jb=Object.keys(k_);class z2 extends Qi{constructor(r,e,n,i){let o=-1;if(super(r,e),nR(this,"space",i),typeof n=="number")for(;++o<Jb.length;){const a=Jb[o];nR(this,Jb[o],(n&k_[a])===k_[a])}}}z2.prototype.defined=!0;function nR(t,r,e){e&&(t[r]=e)}const Ehe={}.hasOwnProperty;function dd(t){const r={},e={};let n;for(n in t.properties)if(Ehe.call(t.properties,n)){const i=t.properties[n],o=new z2(n,t.transform(t.attributes||{},n),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),r[n]=o,e[O_(n)]=n,e[O_(o.attribute)]=n}return new sf(r,e,t.space)}const nV=dd({space:"xlink",transform(t,r){return"xlink:"+r.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),iV=dd({space:"xml",transform(t,r){return"xml:"+r.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function oV(t,r){return r in t?t[r]:r}function aV(t,r){return oV(t,r.toLowerCase())}const sV=dd({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:aV,properties:{xmlns:null,xmlnsXLink:null}}),lV=dd({transform(t,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Nr,ariaAutoComplete:null,ariaBusy:Nr,ariaChecked:Nr,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:Jt,ariaCurrent:null,ariaDescribedBy:Jt,ariaDetails:null,ariaDisabled:Nr,ariaDropEffect:Jt,ariaErrorMessage:null,ariaExpanded:Nr,ariaFlowTo:Jt,ariaGrabbed:Nr,ariaHasPopup:null,ariaHidden:Nr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Jt,ariaLevel:ce,ariaLive:null,ariaModal:Nr,ariaMultiLine:Nr,ariaMultiSelectable:Nr,ariaOrientation:null,ariaOwns:Jt,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:Nr,ariaReadOnly:Nr,ariaRelevant:null,ariaRequired:Nr,ariaRoleDescription:Jt,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:Nr,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null}}),She=dd({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:aV,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:uc,acceptCharset:Jt,accessKey:Jt,action:null,allow:null,allowFullScreen:st,allowPaymentRequest:st,allowUserMedia:st,alt:null,as:null,async:st,autoCapitalize:null,autoComplete:Jt,autoFocus:st,autoPlay:st,capture:st,charSet:null,checked:st,cite:null,className:Jt,cols:ce,colSpan:null,content:null,contentEditable:Nr,controls:st,controlsList:Jt,coords:ce|uc,crossOrigin:null,data:null,dateTime:null,decoding:null,default:st,defer:st,dir:null,dirName:null,disabled:st,download:rV,draggable:Nr,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:st,formTarget:null,headers:Jt,height:ce,hidden:st,high:ce,href:null,hrefLang:null,htmlFor:Jt,httpEquiv:Jt,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:st,itemId:null,itemProp:Jt,itemRef:Jt,itemScope:st,itemType:Jt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:st,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:st,muted:st,name:null,nonce:null,noModule:st,noValidate:st,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:st,optimum:ce,pattern:null,ping:Jt,placeholder:null,playsInline:st,poster:null,preload:null,readOnly:st,referrerPolicy:null,rel:Jt,required:st,reversed:st,rows:ce,rowSpan:ce,sandbox:Jt,scope:null,scoped:st,seamless:st,selected:st,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:Nr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:st,useMap:null,value:Nr,width:ce,wrap:null,align:null,aLink:null,archive:Jt,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:st,declare:st,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:st,noHref:st,noShade:st,noWrap:st,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:Nr,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:st,disableRemotePlayback:st,prefix:null,property:null,results:ce,security:null,unselectable:null}}),The=dd({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:oV,properties:{about:hi,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:Jt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:st,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:uc,g2:uc,glyphName:uc,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:hi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ce,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Jt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hi,rev:hi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hi,requiredFeatures:hi,requiredFonts:hi,requiredFormats:hi,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:hi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hi,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hi,to:null,transform:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ohe=/^data[-\w.:]+$/i,iR=/-[a-z]/g,khe=/[A-Z]/g;function xhe(t,r){const e=O_(r);let n=r,i=Qi;if(e in t.normal)return t.property[t.normal[e]];if(e.length>4&&e.slice(0,4)==="data"&&Ohe.test(r)){if(r.charAt(4)==="-"){const o=r.slice(5).replace(iR,Rhe);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=r.slice(4);if(!iR.test(o)){let a=o.replace(khe,Phe);a.charAt(0)!=="-"&&(a="-"+a),r="data"+a}}i=z2}return new i(n,r)}function Phe(t){return"-"+t.toLowerCase()}function Rhe(t){return t.charAt(1).toUpperCase()}const Dhe=tV([iV,nV,sV,lV,She],"html"),gV=tV([iV,nV,sV,lV,The],"svg"),oR={}.hasOwnProperty;function Nhe(t,r){const e=r||{};function n(i,...o){let a=n.invalid;const s=n.handlers;if(i&&oR.call(i,t)){const l=String(i[t]);a=oR.call(s,l)?s[l]:n.unknown}if(a)return a.call(this,i,...o)}return n.handlers=e.handlers||{},n.invalid=e.invalid,n.unknown=e.unknown,n}function Mhe(t,r){if(t=t.replace(r.subset?Bhe(r.subset):/["&'<>`]/g,n),r.subset||r.escapeOnly)return t;return t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,e).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function e(i,o,a){return r.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),r)}function n(i,o,a){return r.format(i.charCodeAt(0),a.charCodeAt(o+1),r)}}function Bhe(t){const r=[];let e=-1;for(;++e<t.length;)r.push(t[e].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+r.join("|")+")","g")}function Fhe(t,r,e){const n="&#x"+t.toString(16).toUpperCase();return e&&r&&!/[\dA-Fa-f]/.test(String.fromCharCode(r))?n:n+";"}function Lhe(t,r,e){const n="&#"+String(t);return e&&r&&!/\d/.test(String.fromCharCode(r))?n:n+";"}const zhe=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],e0={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},jhe=["cent","copy","divide","gt","lt","not","para","times"],uV={}.hasOwnProperty,x_={};let UC;for(UC in e0)uV.call(e0,UC)&&(x_[e0[UC]]=UC);function Vhe(t,r,e,n){const i=String.fromCharCode(t);if(uV.call(x_,i)){const o=x_[i],a="&"+o;return e&&zhe.includes(o)&&!jhe.includes(o)&&(!n||r&&r!==61&&/[^\da-z]/i.test(String.fromCharCode(r)))?a:a+";"}return""}function Ghe(t,r,e){let n=Fhe(t,r,e.omitOptionalSemicolons),i;if((e.useNamedReferences||e.useShortestReferences)&&(i=Vhe(t,r,e.omitOptionalSemicolons,e.attribute)),(e.useShortestReferences||!i)&&e.useShortestReferences){const o=Lhe(t,r,e.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!e.useShortestReferences||i.length<n.length)?i:n}function cc(t,r){return Mhe(t,Object.assign({format:Ghe},r))}function Whe(t,r,e,n){return n.settings.bogusComments?"<?"+cc(t.value,Object.assign({},n.settings.characterReferences,{subset:[">"]}))+">":"<!--"+t.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,i)+"-->";function i(o){return cc(o,Object.assign({},n.settings.characterReferences,{subset:["<",">"]}))}}function Hhe(t,r,e,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function aR(t,r){const e=String(t);if(typeof r!="string")throw new TypeError("Expected character");let n=0,i=e.indexOf(r);for(;i!==-1;)n++,i=e.indexOf(r,i+r.length);return n}function Uhe(t,r){const e=r||{};return(t[t.length-1]===""?[...t,""]:t).join((e.padRight?" ":"")+","+(e.padLeft===!1?"":" ")).trim()}function Zhe(t){return t.join(" ").trim()}const Khe=/[ \t\n\f\r]/g;function j2(t){return typeof t=="object"?t.type==="text"?sR(t.value):!1:sR(t)}function sR(t){return t.replace(Khe,"")===""}const Zr=dV(1),cV=dV(-1),Yhe=[];function dV(t){return r;function r(e,n,i){const o=e?e.children:Yhe;let a=(n||0)+t,s=o[a];if(!i)for(;s&&j2(s);)a+=t,s=o[a];return s}}const Xhe={}.hasOwnProperty;function hV(t){return r;function r(e,n,i){return Xhe.call(t,e.tagName)&&t[e.tagName](e,n,i)}}const V2=hV({body:qhe,caption:t0,colgroup:t0,dd:rAe,dt:tAe,head:t0,html:Qhe,li:eAe,optgroup:nAe,option:iAe,p:Jhe,rp:lR,rt:lR,tbody:aAe,td:gR,tfoot:sAe,th:gR,thead:oAe,tr:lAe});function t0(t,r,e){const n=Zr(e,r,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&j2(n.value.charAt(0)))}function Qhe(t,r,e){const n=Zr(e,r);return!n||n.type!=="comment"}function qhe(t,r,e){const n=Zr(e,r);return!n||n.type!=="comment"}function Jhe(t,r,e){const n=Zr(e,r);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!e||!(e.type==="element"&&(e.tagName==="a"||e.tagName==="audio"||e.tagName==="del"||e.tagName==="ins"||e.tagName==="map"||e.tagName==="noscript"||e.tagName==="video"))}function eAe(t,r,e){const n=Zr(e,r);return!n||n.type==="element"&&n.tagName==="li"}function tAe(t,r,e){const n=Zr(e,r);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function rAe(t,r,e){const n=Zr(e,r);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function lR(t,r,e){const n=Zr(e,r);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function nAe(t,r,e){const n=Zr(e,r);return!n||n.type==="element"&&n.tagName==="optgroup"}function iAe(t,r,e){const n=Zr(e,r);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function oAe(t,r,e){const n=Zr(e,r);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function aAe(t,r,e){const n=Zr(e,r);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function sAe(t,r,e){return!Zr(e,r)}function lAe(t,r,e){const n=Zr(e,r);return!n||n.type==="element"&&n.tagName==="tr"}function gR(t,r,e){const n=Zr(e,r);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const gAe=hV({body:dAe,colgroup:hAe,head:cAe,html:uAe,tbody:AAe});function uAe(t){const r=Zr(t,-1);return!r||r.type!=="comment"}function cAe(t){const r=t.children,e=[];let n=-1;for(;++n<r.length;){const i=r[n];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(e.includes(i.tagName))return!1;e.push(i.tagName)}}return r.length>0}function dAe(t){const r=Zr(t,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&j2(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function hAe(t,r,e){const n=cV(e,r),i=Zr(t,-1,!0);return e&&n&&n.type==="element"&&n.tagName==="colgroup"&&V2(n,e.children.indexOf(n),e)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function AAe(t,r,e){const n=cV(e,r),i=Zr(t,-1);return e&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&V2(n,e.children.indexOf(n),e)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const ZC={name:[[`
|
|
@@ -68,7 +68,7 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
68
68
|
* http://opensource.org/licenses/MIT
|
|
69
69
|
*
|
|
70
70
|
* vis.js may be distributed under either license.
|
|
71
|
-
*/var i0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Te(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var XC=function(t){return t&&t.Math===Math&&t},Ut=XC(typeof globalThis=="object"&&globalThis)||XC(typeof window=="object"&&window)||XC(typeof self=="object"&&self)||XC(typeof i0=="object"&&i0)||function(){return this}()||i0||Function("return this")(),yt=function(t){try{return!!t()}catch{return!0}},FCe=yt,lf=!FCe(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),LCe=lf,$V=Function.prototype,pR=$V.apply,mR=$V.call,hd=typeof Reflect=="object"&&Reflect.apply||(LCe?mR.bind(pR):function(){return mR.apply(pR,arguments)}),wV=lf,_V=Function.prototype,P_=_V.call,zCe=wV&&_V.bind.bind(P_,P_),kt=wV?zCe:function(t){return function(){return P_.apply(t,arguments)}},EV=kt,jCe=EV({}.toString),VCe=EV("".slice),Wa=function(t){return VCe(jCe(t),8,-1)},GCe=Wa,WCe=kt,W2=function(t){if(GCe(t)==="Function")return WCe(t)},R_=typeof document=="object"&&document.all,HCe=typeof R_>"u"&&R_!==void 0,SV={all:R_,IS_HTMLDDA:HCe},TV=SV,UCe=TV.all,Ir=TV.IS_HTMLDDA?function(t){return typeof t=="function"||t===UCe}:function(t){return typeof t=="function"},Al={},ZCe=yt,an=!ZCe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),KCe=lf,QC=Function.prototype.call,Kr=KCe?QC.bind(QC):function(){return QC.apply(QC,arguments)},Ym={},OV={}.propertyIsEnumerable,kV=Object.getOwnPropertyDescriptor,YCe=kV&&!OV.call({1:2},1);Ym.f=YCe?function(r){var e=kV(this,r);return!!e&&e.enumerable}:OV;var Zg=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}},XCe=kt,QCe=yt,qCe=Wa,o0=Object,JCe=XCe("".split),Xm=QCe(function(){return!o0("z").propertyIsEnumerable(0)})?function(t){return qCe(t)==="String"?JCe(t,""):o0(t)}:o0,Kg=function(t){return t==null},eIe=Kg,tIe=TypeError,gf=function(t){if(eIe(t))throw new tIe("Can't call method on "+t);return t},rIe=Xm,nIe=gf,sa=function(t){return rIe(nIe(t))},yR=Ir,xV=SV,iIe=xV.all,Pr=xV.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:yR(t)||t===iIe}:function(t){return typeof t=="object"?t!==null:yR(t)},$t={},a0=$t,s0=Ut,oIe=Ir,bR=function(t){return oIe(t)?t:void 0},zn=function(t,r){return arguments.length<2?bR(a0[t])||bR(s0[t]):a0[t]&&a0[t][r]||s0[t]&&s0[t][r]},aIe=kt,gr=aIe({}.isPrototypeOf),fl=typeof navigator<"u"&&String(navigator.userAgent)||"",PV=Ut,l0=fl,$R=PV.process,wR=PV.Deno,_R=$R&&$R.versions||wR&&wR.version,ER=_R&&_R.v8,io,$p;ER&&(io=ER.split("."),$p=io[0]>0&&io[0]<4?1:+(io[0]+io[1]));!$p&&l0&&(io=l0.match(/Edge\/(\d+)/),(!io||io[1]>=74)&&(io=l0.match(/Chrome\/(\d+)/),io&&($p=+io[1])));var Ad=$p,SR=Ad,sIe=yt,lIe=Ut,gIe=lIe.String,fd=!!Object.getOwnPropertySymbols&&!sIe(function(){var t=Symbol("symbol detection");return!gIe(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&SR&&SR<41}),uIe=fd,RV=uIe&&!Symbol.sham&&typeof Symbol.iterator=="symbol",cIe=zn,dIe=Ir,hIe=gr,AIe=RV,fIe=Object,uf=AIe?function(t){return typeof t=="symbol"}:function(t){var r=cIe("Symbol");return dIe(r)&&hIe(r.prototype,fIe(t))},CIe=String,Cd=function(t){try{return CIe(t)}catch{return"Object"}},IIe=Ir,vIe=Cd,pIe=TypeError,oi=function(t){if(IIe(t))return t;throw new pIe(vIe(t)+" is not a function")},mIe=oi,yIe=Kg,H2=function(t,r){var e=t[r];return yIe(e)?void 0:mIe(e)},g0=Kr,u0=Ir,c0=Pr,bIe=TypeError,$Ie=function(t,r){var e,n;if(r==="string"&&u0(e=t.toString)&&!c0(n=g0(e,t))||u0(e=t.valueOf)&&!c0(n=g0(e,t))||r!=="string"&&u0(e=t.toString)&&!c0(n=g0(e,t)))return n;throw new bIe("Can't convert object to primitive value")},DV={exports:{}},wIe=!0,TR=Ut,_Ie=Object.defineProperty,EIe=function(t,r){try{_Ie(TR,t,{value:r,configurable:!0,writable:!0})}catch{TR[t]=r}return r},SIe=Ut,TIe=EIe,OR="__core-js_shared__",OIe=SIe[OR]||TIe(OR,{}),U2=OIe,kR=U2;(DV.exports=function(t,r){return kR[t]||(kR[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Id=DV.exports,kIe=gf,xIe=Object,jn=function(t){return xIe(kIe(t))},PIe=kt,RIe=jn,DIe=PIe({}.hasOwnProperty),vr=Object.hasOwn||function(r,e){return DIe(RIe(r),e)},NIe=kt,MIe=0,BIe=Math.random(),FIe=NIe(1 .toString),Qm=function(t){return"Symbol("+(t===void 0?"":t)+")_"+FIe(++MIe+BIe,36)},LIe=Ut,zIe=Id,xR=vr,jIe=Qm,VIe=fd,GIe=RV,ju=LIe.Symbol,d0=zIe("wks"),WIe=GIe?ju.for||ju:ju&&ju.withoutSetter||jIe,nr=function(t){return xR(d0,t)||(d0[t]=VIe&&xR(ju,t)?ju[t]:WIe("Symbol."+t)),d0[t]},HIe=Kr,PR=Pr,RR=uf,UIe=H2,ZIe=$Ie,KIe=nr,YIe=TypeError,XIe=KIe("toPrimitive"),QIe=function(t,r){if(!PR(t)||RR(t))return t;var e=UIe(t,XIe),n;if(e){if(r===void 0&&(r="default"),n=HIe(e,t,r),!PR(n)||RR(n))return n;throw new YIe("Can't convert object to primitive value")}return r===void 0&&(r="number"),ZIe(t,r)},qIe=QIe,JIe=uf,qm=function(t){var r=qIe(t,"string");return JIe(r)?r:r+""},eve=Ut,DR=Pr,D_=eve.document,tve=DR(D_)&&DR(D_.createElement),Z2=function(t){return tve?D_.createElement(t):{}},rve=an,nve=yt,ive=Z2,NV=!rve&&!nve(function(){return Object.defineProperty(ive("div"),"a",{get:function(){return 7}}).a!==7}),ove=an,ave=Kr,sve=Ym,lve=Zg,gve=sa,uve=qm,cve=vr,dve=NV,NR=Object.getOwnPropertyDescriptor;Al.f=ove?NR:function(r,e){if(r=gve(r),e=uve(e),dve)try{return NR(r,e)}catch{}if(cve(r,e))return lve(!ave(sve.f,r,e),r[e])};var hve=yt,Ave=Ir,fve=/#|\.prototype\./,cf=function(t,r){var e=Ive[Cve(t)];return e===pve?!0:e===vve?!1:Ave(r)?hve(r):!!r},Cve=cf.normalize=function(t){return String(t).replace(fve,".").toLowerCase()},Ive=cf.data={},vve=cf.NATIVE="N",pve=cf.POLYFILL="P",MV=cf,MR=W2,mve=oi,yve=lf,bve=MR(MR.bind),Cl=function(t,r){return mve(t),r===void 0?t:yve?bve(t,r):function(){return t.apply(r,arguments)}},ai={},$ve=an,wve=yt,BV=$ve&&wve(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),_ve=Pr,Eve=String,Sve=TypeError,Vn=function(t){if(_ve(t))return t;throw new Sve(Eve(t)+" is not an object")},Tve=an,Ove=NV,kve=BV,qC=Vn,BR=qm,xve=TypeError,h0=Object.defineProperty,Pve=Object.getOwnPropertyDescriptor,A0="enumerable",f0="configurable",C0="writable";ai.f=Tve?kve?function(r,e,n){if(qC(r),e=BR(e),qC(n),typeof r=="function"&&e==="prototype"&&"value"in n&&C0 in n&&!n[C0]){var i=Pve(r,e);i&&i[C0]&&(r[e]=n.value,n={configurable:f0 in n?n[f0]:i[f0],enumerable:A0 in n?n[A0]:i[A0],writable:!1})}return h0(r,e,n)}:h0:function(r,e,n){if(qC(r),e=BR(e),qC(n),Ove)try{return h0(r,e,n)}catch{}if("get"in n||"set"in n)throw new xve("Accessors not supported");return"value"in n&&(r[e]=n.value),r};var Rve=an,Dve=ai,Nve=Zg,Ha=Rve?function(t,r,e){return Dve.f(t,r,Nve(1,e))}:function(t,r,e){return t[r]=e,t},JC=Ut,Mve=hd,Bve=W2,Fve=Ir,Lve=Al.f,zve=MV,Iu=$t,jve=Cl,vu=Ha,FR=vr,Vve=function(t){var r=function(e,n,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return Mve(t,this,arguments)};return r.prototype=t.prototype,r},Oe=function(t,r){var e=t.target,n=t.global,i=t.stat,o=t.proto,a=n?JC:i?JC[e]:(JC[e]||{}).prototype,s=n?Iu:Iu[e]||vu(Iu,e,{})[e],l=s.prototype,g,u,c,d,h,A,f,C,I;for(d in r)g=zve(n?d:e+(i?".":"#")+d,t.forced),u=!g&&a&&FR(a,d),A=s[d],u&&(t.dontCallGetSet?(I=Lve(a,d),f=I&&I.value):f=a[d]),h=u&&f?f:r[d],!(u&&typeof A==typeof h)&&(t.bind&&u?C=jve(h,JC):t.wrap&&u?C=Vve(h):o&&Fve(h)?C=Bve(h):C=h,(t.sham||h&&h.sham||A&&A.sham)&&vu(C,"sham",!0),vu(s,d,C),o&&(c=e+"Prototype",FR(Iu,c)||vu(Iu,c,{}),vu(Iu[c],d,h),t.real&&l&&(g||!l[d])&&vu(l,d,h)))},Gve=Math.ceil,Wve=Math.floor,Hve=Math.trunc||function(r){var e=+r;return(e>0?Wve:Gve)(e)},Uve=Hve,Jm=function(t){var r=+t;return r!==r||r===0?0:Uve(r)},Zve=Jm,Kve=Math.max,Yve=Math.min,df=function(t,r){var e=Zve(t);return e<0?Kve(e+r,0):Yve(e,r)},Xve=Jm,Qve=Math.min,qve=function(t){return t>0?Qve(Xve(t),9007199254740991):0},Jve=qve,si=function(t){return Jve(t.length)},epe=sa,tpe=df,rpe=si,LR=function(t){return function(r,e,n){var i=epe(r),o=rpe(i),a=tpe(n,o),s;if(t&&e!==e){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},K2={includes:LR(!0),indexOf:LR(!1)},hf={},npe=kt,I0=vr,ipe=sa,ope=K2.indexOf,ape=hf,zR=npe([].push),FV=function(t,r){var e=ipe(t),n=0,i=[],o;for(o in e)!I0(ape,o)&&I0(e,o)&&zR(i,o);for(;r.length>n;)I0(e,o=r[n++])&&(~ope(i,o)||zR(i,o));return i},Y2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],spe=FV,lpe=Y2,ey=Object.keys||function(r){return spe(r,lpe)},Af={};Af.f=Object.getOwnPropertySymbols;var jR=an,gpe=kt,upe=Kr,cpe=yt,v0=ey,dpe=Af,hpe=Ym,Ape=jn,fpe=Xm,pu=Object.assign,VR=Object.defineProperty,Cpe=gpe([].concat),Ipe=!pu||cpe(function(){if(jR&&pu({b:1},pu(VR({},"a",{enumerable:!0,get:function(){VR(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},r={},e=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[e]=7,n.split("").forEach(function(i){r[i]=i}),pu({},t)[e]!==7||v0(pu({},r)).join("")!==n})?function(r,e){for(var n=Ape(r),i=arguments.length,o=1,a=dpe.f,s=hpe.f;i>o;)for(var l=fpe(arguments[o++]),g=a?Cpe(v0(l),a(l)):v0(l),u=g.length,c=0,d;u>c;)d=g[c++],(!jR||upe(s,l,d))&&(n[d]=l[d]);return n}:pu,vpe=Oe,GR=Ipe;vpe({target:"Object",stat:!0,arity:2,forced:Object.assign!==GR},{assign:GR});var ppe=$t,mpe=ppe.Object.assign,ype=mpe,bpe=ype,$pe=bpe,Or=Te($pe),wpe=kt,ff=wpe([].slice),LV=kt,_pe=oi,Epe=Pr,Spe=vr,WR=ff,Tpe=lf,zV=Function,Ope=LV([].concat),kpe=LV([].join),p0={},xpe=function(t,r,e){if(!Spe(p0,r)){for(var n=[],i=0;i<r;i++)n[i]="a["+i+"]";p0[r]=zV("C,a","return new C("+kpe(n,",")+")")}return p0[r](t,e)},jV=Tpe?zV.bind:function(r){var e=_pe(this),n=e.prototype,i=WR(arguments,1),o=function(){var s=Ope(i,WR(arguments));return this instanceof o?xpe(e,s.length,s):e.apply(r,s)};return Epe(n)&&(o.prototype=n),o},Ppe=Oe,HR=jV;Ppe({target:"Function",proto:!0,forced:Function.bind!==HR},{bind:HR});var Rpe=$t,Rr=function(t){return Rpe[t+"Prototype"]},Dpe=Rr,Npe=Dpe("Function").bind,Mpe=gr,Bpe=Npe,m0=Function.prototype,Fpe=function(t){var r=t.bind;return t===m0||Mpe(m0,t)&&r===m0.bind?Bpe:r},Lpe=Fpe,VV=Lpe,zpe=VV,ue=Te(zpe);function X2(t,r,e,n){t.beginPath(),t.arc(r,e,n,0,2*Math.PI,!1),t.closePath()}function jpe(t,r,e,n){t.beginPath(),t.rect(r-n,e-n,n*2,n*2),t.closePath()}function Vpe(t,r,e,n){t.beginPath(),n*=1.15,e+=.275*n;var i=n*2,o=i/2,a=Math.sqrt(3)/6*i,s=Math.sqrt(i*i-o*o);t.moveTo(r,e-(s-a)),t.lineTo(r+o,e+a),t.lineTo(r-o,e+a),t.lineTo(r,e-(s-a)),t.closePath()}function Gpe(t,r,e,n){t.beginPath(),n*=1.15,e-=.275*n;var i=n*2,o=i/2,a=Math.sqrt(3)/6*i,s=Math.sqrt(i*i-o*o);t.moveTo(r,e+(s-a)),t.lineTo(r+o,e-a),t.lineTo(r-o,e-a),t.lineTo(r,e+(s-a)),t.closePath()}function Wpe(t,r,e,n){t.beginPath(),n*=.82,e+=.1*n;for(var i=0;i<10;i++){var o=i%2===0?n*1.3:n*.5;t.lineTo(r+o*Math.sin(i*2*Math.PI/10),e-o*Math.cos(i*2*Math.PI/10))}t.closePath()}function Hpe(t,r,e,n){t.beginPath(),t.lineTo(r,e+n),t.lineTo(r+n,e),t.lineTo(r,e-n),t.lineTo(r-n,e),t.closePath()}function GV(t,r,e,n,i,o){var a=Math.PI/180;n-2*o<0&&(o=n/2),i-2*o<0&&(o=i/2),t.beginPath(),t.moveTo(r+o,e),t.lineTo(r+n-o,e),t.arc(r+n-o,e+o,o,a*270,a*360,!1),t.lineTo(r+n,e+i-o),t.arc(r+n-o,e+i-o,o,0,a*90,!1),t.lineTo(r+o,e+i),t.arc(r+o,e+i-o,o,a*90,a*180,!1),t.lineTo(r,e+o),t.arc(r+o,e+o,o,a*180,a*270,!1),t.closePath()}function N_(t,r,e,n,i){var o=.5522848,a=n/2*o,s=i/2*o,l=r+n,g=e+i,u=r+n/2,c=e+i/2;t.beginPath(),t.moveTo(r,c),t.bezierCurveTo(r,c-s,u-a,e,u,e),t.bezierCurveTo(u+a,e,l,c-s,l,c),t.bezierCurveTo(l,c+s,u+a,g,u,g),t.bezierCurveTo(u-a,g,r,c+s,r,c),t.closePath()}function WV(t,r,e,n,i){var o=.3333333333333333,a=n,s=i*o,l=.5522848,g=a/2*l,u=s/2*l,c=r+a,d=e+s,h=r+a/2,A=e+s/2,f=e+(i-s/2),C=e+i;t.beginPath(),t.moveTo(c,A),t.bezierCurveTo(c,A+u,h+g,d,h,d),t.bezierCurveTo(h-g,d,r,A+u,r,A),t.bezierCurveTo(r,A-u,h-g,e,h,e),t.bezierCurveTo(h+g,e,c,A-u,c,A),t.lineTo(c,f),t.bezierCurveTo(c,f+u,h+g,C,h,C),t.bezierCurveTo(h-g,C,r,f+u,r,f),t.lineTo(r,A)}function HV(t,r,e,n,i,o){t.beginPath(),t.moveTo(r,e);for(var a=o.length,s=n-r,l=i-e,g=l/s,u=Math.sqrt(s*s+l*l),c=0,d=!0,h=0,A=+o[0];u>=.1;)A=+o[c++%a],A>u&&(A=u),h=Math.sqrt(A*A/(1+g*g)),h=s<0?-h:h,r+=h,e+=g*h,d===!0?t.lineTo(r,e):t.moveTo(r,e),u-=A,d=!d}function Upe(t,r,e,n){t.beginPath();var i=6,o=Math.PI*2/i;t.moveTo(r+n,e);for(var a=1;a<i;a++)t.lineTo(r+n*Math.cos(o*a),e+n*Math.sin(o*a));t.closePath()}var UR={circle:X2,dashedLine:HV,database:WV,diamond:Hpe,ellipse:N_,ellipse_vis:N_,hexagon:Upe,roundRect:GV,square:jpe,star:Wpe,triangle:Vpe,triangleDown:Gpe};function Zpe(t){return Object.prototype.hasOwnProperty.call(UR,t)?UR[t]:function(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];CanvasRenderingContext2D.prototype[t].call(r,n)}}function Yg(t,r){r===void 0&&(r={});var e=r.insertAt;if(!(!t||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",e==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}var Kpe=`.vis-overlay {
|
|
71
|
+
*/var i0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Te(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var XC=function(t){return t&&t.Math===Math&&t},Ut=XC(typeof globalThis=="object"&&globalThis)||XC(typeof window=="object"&&window)||XC(typeof self=="object"&&self)||XC(typeof i0=="object"&&i0)||function(){return this}()||i0||Function("return this")(),bt=function(t){try{return!!t()}catch{return!0}},FCe=bt,lf=!FCe(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),LCe=lf,$V=Function.prototype,pR=$V.apply,mR=$V.call,hd=typeof Reflect=="object"&&Reflect.apply||(LCe?mR.bind(pR):function(){return mR.apply(pR,arguments)}),wV=lf,_V=Function.prototype,P_=_V.call,zCe=wV&&_V.bind.bind(P_,P_),kt=wV?zCe:function(t){return function(){return P_.apply(t,arguments)}},EV=kt,jCe=EV({}.toString),VCe=EV("".slice),Wa=function(t){return VCe(jCe(t),8,-1)},GCe=Wa,WCe=kt,W2=function(t){if(GCe(t)==="Function")return WCe(t)},R_=typeof document=="object"&&document.all,HCe=typeof R_>"u"&&R_!==void 0,SV={all:R_,IS_HTMLDDA:HCe},TV=SV,UCe=TV.all,Ir=TV.IS_HTMLDDA?function(t){return typeof t=="function"||t===UCe}:function(t){return typeof t=="function"},Al={},ZCe=bt,an=!ZCe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),KCe=lf,QC=Function.prototype.call,Kr=KCe?QC.bind(QC):function(){return QC.apply(QC,arguments)},Ym={},OV={}.propertyIsEnumerable,kV=Object.getOwnPropertyDescriptor,YCe=kV&&!OV.call({1:2},1);Ym.f=YCe?function(r){var e=kV(this,r);return!!e&&e.enumerable}:OV;var Zg=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}},XCe=kt,QCe=bt,qCe=Wa,o0=Object,JCe=XCe("".split),Xm=QCe(function(){return!o0("z").propertyIsEnumerable(0)})?function(t){return qCe(t)==="String"?JCe(t,""):o0(t)}:o0,Kg=function(t){return t==null},eIe=Kg,tIe=TypeError,gf=function(t){if(eIe(t))throw new tIe("Can't call method on "+t);return t},rIe=Xm,nIe=gf,sa=function(t){return rIe(nIe(t))},yR=Ir,xV=SV,iIe=xV.all,Pr=xV.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:yR(t)||t===iIe}:function(t){return typeof t=="object"?t!==null:yR(t)},wt={},a0=wt,s0=Ut,oIe=Ir,bR=function(t){return oIe(t)?t:void 0},zn=function(t,r){return arguments.length<2?bR(a0[t])||bR(s0[t]):a0[t]&&a0[t][r]||s0[t]&&s0[t][r]},aIe=kt,gr=aIe({}.isPrototypeOf),fl=typeof navigator<"u"&&String(navigator.userAgent)||"",PV=Ut,l0=fl,$R=PV.process,wR=PV.Deno,_R=$R&&$R.versions||wR&&wR.version,ER=_R&&_R.v8,io,$p;ER&&(io=ER.split("."),$p=io[0]>0&&io[0]<4?1:+(io[0]+io[1]));!$p&&l0&&(io=l0.match(/Edge\/(\d+)/),(!io||io[1]>=74)&&(io=l0.match(/Chrome\/(\d+)/),io&&($p=+io[1])));var Ad=$p,SR=Ad,sIe=bt,lIe=Ut,gIe=lIe.String,fd=!!Object.getOwnPropertySymbols&&!sIe(function(){var t=Symbol("symbol detection");return!gIe(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&SR&&SR<41}),uIe=fd,RV=uIe&&!Symbol.sham&&typeof Symbol.iterator=="symbol",cIe=zn,dIe=Ir,hIe=gr,AIe=RV,fIe=Object,uf=AIe?function(t){return typeof t=="symbol"}:function(t){var r=cIe("Symbol");return dIe(r)&&hIe(r.prototype,fIe(t))},CIe=String,Cd=function(t){try{return CIe(t)}catch{return"Object"}},IIe=Ir,vIe=Cd,pIe=TypeError,oi=function(t){if(IIe(t))return t;throw new pIe(vIe(t)+" is not a function")},mIe=oi,yIe=Kg,H2=function(t,r){var e=t[r];return yIe(e)?void 0:mIe(e)},g0=Kr,u0=Ir,c0=Pr,bIe=TypeError,$Ie=function(t,r){var e,n;if(r==="string"&&u0(e=t.toString)&&!c0(n=g0(e,t))||u0(e=t.valueOf)&&!c0(n=g0(e,t))||r!=="string"&&u0(e=t.toString)&&!c0(n=g0(e,t)))return n;throw new bIe("Can't convert object to primitive value")},DV={exports:{}},wIe=!0,TR=Ut,_Ie=Object.defineProperty,EIe=function(t,r){try{_Ie(TR,t,{value:r,configurable:!0,writable:!0})}catch{TR[t]=r}return r},SIe=Ut,TIe=EIe,OR="__core-js_shared__",OIe=SIe[OR]||TIe(OR,{}),U2=OIe,kR=U2;(DV.exports=function(t,r){return kR[t]||(kR[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Id=DV.exports,kIe=gf,xIe=Object,jn=function(t){return xIe(kIe(t))},PIe=kt,RIe=jn,DIe=PIe({}.hasOwnProperty),vr=Object.hasOwn||function(r,e){return DIe(RIe(r),e)},NIe=kt,MIe=0,BIe=Math.random(),FIe=NIe(1 .toString),Qm=function(t){return"Symbol("+(t===void 0?"":t)+")_"+FIe(++MIe+BIe,36)},LIe=Ut,zIe=Id,xR=vr,jIe=Qm,VIe=fd,GIe=RV,ju=LIe.Symbol,d0=zIe("wks"),WIe=GIe?ju.for||ju:ju&&ju.withoutSetter||jIe,nr=function(t){return xR(d0,t)||(d0[t]=VIe&&xR(ju,t)?ju[t]:WIe("Symbol."+t)),d0[t]},HIe=Kr,PR=Pr,RR=uf,UIe=H2,ZIe=$Ie,KIe=nr,YIe=TypeError,XIe=KIe("toPrimitive"),QIe=function(t,r){if(!PR(t)||RR(t))return t;var e=UIe(t,XIe),n;if(e){if(r===void 0&&(r="default"),n=HIe(e,t,r),!PR(n)||RR(n))return n;throw new YIe("Can't convert object to primitive value")}return r===void 0&&(r="number"),ZIe(t,r)},qIe=QIe,JIe=uf,qm=function(t){var r=qIe(t,"string");return JIe(r)?r:r+""},eve=Ut,DR=Pr,D_=eve.document,tve=DR(D_)&&DR(D_.createElement),Z2=function(t){return tve?D_.createElement(t):{}},rve=an,nve=bt,ive=Z2,NV=!rve&&!nve(function(){return Object.defineProperty(ive("div"),"a",{get:function(){return 7}}).a!==7}),ove=an,ave=Kr,sve=Ym,lve=Zg,gve=sa,uve=qm,cve=vr,dve=NV,NR=Object.getOwnPropertyDescriptor;Al.f=ove?NR:function(r,e){if(r=gve(r),e=uve(e),dve)try{return NR(r,e)}catch{}if(cve(r,e))return lve(!ave(sve.f,r,e),r[e])};var hve=bt,Ave=Ir,fve=/#|\.prototype\./,cf=function(t,r){var e=Ive[Cve(t)];return e===pve?!0:e===vve?!1:Ave(r)?hve(r):!!r},Cve=cf.normalize=function(t){return String(t).replace(fve,".").toLowerCase()},Ive=cf.data={},vve=cf.NATIVE="N",pve=cf.POLYFILL="P",MV=cf,MR=W2,mve=oi,yve=lf,bve=MR(MR.bind),Cl=function(t,r){return mve(t),r===void 0?t:yve?bve(t,r):function(){return t.apply(r,arguments)}},ai={},$ve=an,wve=bt,BV=$ve&&wve(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),_ve=Pr,Eve=String,Sve=TypeError,Vn=function(t){if(_ve(t))return t;throw new Sve(Eve(t)+" is not an object")},Tve=an,Ove=NV,kve=BV,qC=Vn,BR=qm,xve=TypeError,h0=Object.defineProperty,Pve=Object.getOwnPropertyDescriptor,A0="enumerable",f0="configurable",C0="writable";ai.f=Tve?kve?function(r,e,n){if(qC(r),e=BR(e),qC(n),typeof r=="function"&&e==="prototype"&&"value"in n&&C0 in n&&!n[C0]){var i=Pve(r,e);i&&i[C0]&&(r[e]=n.value,n={configurable:f0 in n?n[f0]:i[f0],enumerable:A0 in n?n[A0]:i[A0],writable:!1})}return h0(r,e,n)}:h0:function(r,e,n){if(qC(r),e=BR(e),qC(n),Ove)try{return h0(r,e,n)}catch{}if("get"in n||"set"in n)throw new xve("Accessors not supported");return"value"in n&&(r[e]=n.value),r};var Rve=an,Dve=ai,Nve=Zg,Ha=Rve?function(t,r,e){return Dve.f(t,r,Nve(1,e))}:function(t,r,e){return t[r]=e,t},JC=Ut,Mve=hd,Bve=W2,Fve=Ir,Lve=Al.f,zve=MV,Iu=wt,jve=Cl,vu=Ha,FR=vr,Vve=function(t){var r=function(e,n,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return Mve(t,this,arguments)};return r.prototype=t.prototype,r},Oe=function(t,r){var e=t.target,n=t.global,i=t.stat,o=t.proto,a=n?JC:i?JC[e]:(JC[e]||{}).prototype,s=n?Iu:Iu[e]||vu(Iu,e,{})[e],l=s.prototype,g,u,c,d,h,A,f,C,I;for(d in r)g=zve(n?d:e+(i?".":"#")+d,t.forced),u=!g&&a&&FR(a,d),A=s[d],u&&(t.dontCallGetSet?(I=Lve(a,d),f=I&&I.value):f=a[d]),h=u&&f?f:r[d],!(u&&typeof A==typeof h)&&(t.bind&&u?C=jve(h,JC):t.wrap&&u?C=Vve(h):o&&Fve(h)?C=Bve(h):C=h,(t.sham||h&&h.sham||A&&A.sham)&&vu(C,"sham",!0),vu(s,d,C),o&&(c=e+"Prototype",FR(Iu,c)||vu(Iu,c,{}),vu(Iu[c],d,h),t.real&&l&&(g||!l[d])&&vu(l,d,h)))},Gve=Math.ceil,Wve=Math.floor,Hve=Math.trunc||function(r){var e=+r;return(e>0?Wve:Gve)(e)},Uve=Hve,Jm=function(t){var r=+t;return r!==r||r===0?0:Uve(r)},Zve=Jm,Kve=Math.max,Yve=Math.min,df=function(t,r){var e=Zve(t);return e<0?Kve(e+r,0):Yve(e,r)},Xve=Jm,Qve=Math.min,qve=function(t){return t>0?Qve(Xve(t),9007199254740991):0},Jve=qve,si=function(t){return Jve(t.length)},epe=sa,tpe=df,rpe=si,LR=function(t){return function(r,e,n){var i=epe(r),o=rpe(i),a=tpe(n,o),s;if(t&&e!==e){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},K2={includes:LR(!0),indexOf:LR(!1)},hf={},npe=kt,I0=vr,ipe=sa,ope=K2.indexOf,ape=hf,zR=npe([].push),FV=function(t,r){var e=ipe(t),n=0,i=[],o;for(o in e)!I0(ape,o)&&I0(e,o)&&zR(i,o);for(;r.length>n;)I0(e,o=r[n++])&&(~ope(i,o)||zR(i,o));return i},Y2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],spe=FV,lpe=Y2,ey=Object.keys||function(r){return spe(r,lpe)},Af={};Af.f=Object.getOwnPropertySymbols;var jR=an,gpe=kt,upe=Kr,cpe=bt,v0=ey,dpe=Af,hpe=Ym,Ape=jn,fpe=Xm,pu=Object.assign,VR=Object.defineProperty,Cpe=gpe([].concat),Ipe=!pu||cpe(function(){if(jR&&pu({b:1},pu(VR({},"a",{enumerable:!0,get:function(){VR(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},r={},e=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[e]=7,n.split("").forEach(function(i){r[i]=i}),pu({},t)[e]!==7||v0(pu({},r)).join("")!==n})?function(r,e){for(var n=Ape(r),i=arguments.length,o=1,a=dpe.f,s=hpe.f;i>o;)for(var l=fpe(arguments[o++]),g=a?Cpe(v0(l),a(l)):v0(l),u=g.length,c=0,d;u>c;)d=g[c++],(!jR||upe(s,l,d))&&(n[d]=l[d]);return n}:pu,vpe=Oe,GR=Ipe;vpe({target:"Object",stat:!0,arity:2,forced:Object.assign!==GR},{assign:GR});var ppe=wt,mpe=ppe.Object.assign,ype=mpe,bpe=ype,$pe=bpe,Or=Te($pe),wpe=kt,ff=wpe([].slice),LV=kt,_pe=oi,Epe=Pr,Spe=vr,WR=ff,Tpe=lf,zV=Function,Ope=LV([].concat),kpe=LV([].join),p0={},xpe=function(t,r,e){if(!Spe(p0,r)){for(var n=[],i=0;i<r;i++)n[i]="a["+i+"]";p0[r]=zV("C,a","return new C("+kpe(n,",")+")")}return p0[r](t,e)},jV=Tpe?zV.bind:function(r){var e=_pe(this),n=e.prototype,i=WR(arguments,1),o=function(){var s=Ope(i,WR(arguments));return this instanceof o?xpe(e,s.length,s):e.apply(r,s)};return Epe(n)&&(o.prototype=n),o},Ppe=Oe,HR=jV;Ppe({target:"Function",proto:!0,forced:Function.bind!==HR},{bind:HR});var Rpe=wt,Rr=function(t){return Rpe[t+"Prototype"]},Dpe=Rr,Npe=Dpe("Function").bind,Mpe=gr,Bpe=Npe,m0=Function.prototype,Fpe=function(t){var r=t.bind;return t===m0||Mpe(m0,t)&&r===m0.bind?Bpe:r},Lpe=Fpe,VV=Lpe,zpe=VV,ue=Te(zpe);function X2(t,r,e,n){t.beginPath(),t.arc(r,e,n,0,2*Math.PI,!1),t.closePath()}function jpe(t,r,e,n){t.beginPath(),t.rect(r-n,e-n,n*2,n*2),t.closePath()}function Vpe(t,r,e,n){t.beginPath(),n*=1.15,e+=.275*n;var i=n*2,o=i/2,a=Math.sqrt(3)/6*i,s=Math.sqrt(i*i-o*o);t.moveTo(r,e-(s-a)),t.lineTo(r+o,e+a),t.lineTo(r-o,e+a),t.lineTo(r,e-(s-a)),t.closePath()}function Gpe(t,r,e,n){t.beginPath(),n*=1.15,e-=.275*n;var i=n*2,o=i/2,a=Math.sqrt(3)/6*i,s=Math.sqrt(i*i-o*o);t.moveTo(r,e+(s-a)),t.lineTo(r+o,e-a),t.lineTo(r-o,e-a),t.lineTo(r,e+(s-a)),t.closePath()}function Wpe(t,r,e,n){t.beginPath(),n*=.82,e+=.1*n;for(var i=0;i<10;i++){var o=i%2===0?n*1.3:n*.5;t.lineTo(r+o*Math.sin(i*2*Math.PI/10),e-o*Math.cos(i*2*Math.PI/10))}t.closePath()}function Hpe(t,r,e,n){t.beginPath(),t.lineTo(r,e+n),t.lineTo(r+n,e),t.lineTo(r,e-n),t.lineTo(r-n,e),t.closePath()}function GV(t,r,e,n,i,o){var a=Math.PI/180;n-2*o<0&&(o=n/2),i-2*o<0&&(o=i/2),t.beginPath(),t.moveTo(r+o,e),t.lineTo(r+n-o,e),t.arc(r+n-o,e+o,o,a*270,a*360,!1),t.lineTo(r+n,e+i-o),t.arc(r+n-o,e+i-o,o,0,a*90,!1),t.lineTo(r+o,e+i),t.arc(r+o,e+i-o,o,a*90,a*180,!1),t.lineTo(r,e+o),t.arc(r+o,e+o,o,a*180,a*270,!1),t.closePath()}function N_(t,r,e,n,i){var o=.5522848,a=n/2*o,s=i/2*o,l=r+n,g=e+i,u=r+n/2,c=e+i/2;t.beginPath(),t.moveTo(r,c),t.bezierCurveTo(r,c-s,u-a,e,u,e),t.bezierCurveTo(u+a,e,l,c-s,l,c),t.bezierCurveTo(l,c+s,u+a,g,u,g),t.bezierCurveTo(u-a,g,r,c+s,r,c),t.closePath()}function WV(t,r,e,n,i){var o=.3333333333333333,a=n,s=i*o,l=.5522848,g=a/2*l,u=s/2*l,c=r+a,d=e+s,h=r+a/2,A=e+s/2,f=e+(i-s/2),C=e+i;t.beginPath(),t.moveTo(c,A),t.bezierCurveTo(c,A+u,h+g,d,h,d),t.bezierCurveTo(h-g,d,r,A+u,r,A),t.bezierCurveTo(r,A-u,h-g,e,h,e),t.bezierCurveTo(h+g,e,c,A-u,c,A),t.lineTo(c,f),t.bezierCurveTo(c,f+u,h+g,C,h,C),t.bezierCurveTo(h-g,C,r,f+u,r,f),t.lineTo(r,A)}function HV(t,r,e,n,i,o){t.beginPath(),t.moveTo(r,e);for(var a=o.length,s=n-r,l=i-e,g=l/s,u=Math.sqrt(s*s+l*l),c=0,d=!0,h=0,A=+o[0];u>=.1;)A=+o[c++%a],A>u&&(A=u),h=Math.sqrt(A*A/(1+g*g)),h=s<0?-h:h,r+=h,e+=g*h,d===!0?t.lineTo(r,e):t.moveTo(r,e),u-=A,d=!d}function Upe(t,r,e,n){t.beginPath();var i=6,o=Math.PI*2/i;t.moveTo(r+n,e);for(var a=1;a<i;a++)t.lineTo(r+n*Math.cos(o*a),e+n*Math.sin(o*a));t.closePath()}var UR={circle:X2,dashedLine:HV,database:WV,diamond:Hpe,ellipse:N_,ellipse_vis:N_,hexagon:Upe,roundRect:GV,square:jpe,star:Wpe,triangle:Vpe,triangleDown:Gpe};function Zpe(t){return Object.prototype.hasOwnProperty.call(UR,t)?UR[t]:function(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];CanvasRenderingContext2D.prototype[t].call(r,n)}}function Yg(t,r){r===void 0&&(r={});var e=r.insertAt;if(!(!t||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",e==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}var Kpe=`.vis-overlay {
|
|
72
72
|
position: absolute;
|
|
73
73
|
top: 0px;
|
|
74
74
|
right: 0px;
|
|
@@ -697,10 +697,10 @@ input.vis-configuration.vis-config-range:focus::-ms-fill-upper {
|
|
|
697
697
|
|
|
698
698
|
z-index: 5;
|
|
699
699
|
}
|
|
700
|
-
`;Yg(qpe);var UV={exports:{}};(function(t){t.exports=r;function r(n){if(n)return e(n)}function e(n){for(var i in r.prototype)n[i]=r.prototype[i];return n}r.prototype.on=r.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this},r.prototype.once=function(n,i){function o(){this.off(n,o),i.apply(this,arguments)}return o.fn=i,this.on(n,o),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o=this._callbacks["$"+n];if(!o)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var a,s=0;s<o.length;s++)if(a=o[s],a===i||a.fn===i){o.splice(s,1);break}return o.length===0&&delete this._callbacks["$"+n],this},r.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),o=this._callbacks["$"+n],a=1;a<arguments.length;a++)i[a-1]=arguments[a];if(o){o=o.slice(0);for(var a=0,s=o.length;a<s;++a)o[a].apply(this,i)}return this},r.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},r.prototype.hasListeners=function(n){return!!this.listeners(n).length}})(UV);var Jpe=UV.exports,ZV=Te(Jpe),eme=nr,tme=eme("toStringTag"),KV={};KV[tme]="z";var Q2=String(KV)==="[object z]",rme=Q2,nme=Ir,Iv=Wa,ime=nr,ome=ime("toStringTag"),ame=Object,sme=Iv(function(){return arguments}())==="Arguments",lme=function(t,r){try{return t[r]}catch{}},Ua=rme?Iv:function(t){var r,e,n;return t===void 0?"Undefined":t===null?"Null":typeof(e=lme(r=ame(t),ome))=="string"?e:sme?Iv(r):(n=Iv(r))==="Object"&&nme(r.callee)?"Arguments":n},gme=Ua,ume=String,So=function(t){if(gme(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return ume(t)},q2=kt,cme=Jm,dme=So,hme=gf,Ame=q2("".charAt),ZR=q2("".charCodeAt),fme=q2("".slice),KR=function(t){return function(r,e){var n=dme(hme(r)),i=cme(e),o=n.length,a,s;return i<0||i>=o?t?"":void 0:(a=ZR(n,i),a<55296||a>56319||i+1===o||(s=ZR(n,i+1))<56320||s>57343?t?Ame(n,i):a:t?fme(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},Cme={codeAt:KR(!1),charAt:KR(!0)},Ime=Ut,vme=Ir,YR=Ime.WeakMap,YV=vme(YR)&&/native code/.test(String(YR)),pme=Id,mme=Qm,XR=pme("keys"),ty=function(t){return XR[t]||(XR[t]=mme(t))},yme=YV,XV=Ut,bme=Pr,$me=Ha,y0=vr,b0=U2,wme=ty,_me=hf,QR="Object already initialized",M_=XV.TypeError,Eme=XV.WeakMap,wp,IA,_p,Sme=function(t){return _p(t)?IA(t):wp(t,{})},Tme=function(t){return function(r){var e;if(!bme(r)||(e=IA(r)).type!==t)throw new M_("Incompatible receiver, "+t+" required");return e}};if(yme||b0.state){var ko=b0.state||(b0.state=new Eme);ko.get=ko.get,ko.has=ko.has,ko.set=ko.set,wp=function(t,r){if(ko.has(t))throw new M_(QR);return r.facade=t,ko.set(t,r),r},IA=function(t){return ko.get(t)||{}},_p=function(t){return ko.has(t)}}else{var mu=wme("state");_me[mu]=!0,wp=function(t,r){if(y0(t,mu))throw new M_(QR);return r.facade=t,$me(t,mu,r),r},IA=function(t){return y0(t,mu)?t[mu]:{}},_p=function(t){return y0(t,mu)}}var Il={set:wp,get:IA,has:_p,enforce:Sme,getterFor:Tme},B_=an,Ome=vr,QV=Function.prototype,kme=B_&&Object.getOwnPropertyDescriptor,J2=Ome(QV,"name"),xme=J2&&function(){}.name==="something",Pme=J2&&(!B_||B_&&kme(QV,"name").configurable),Rme={EXISTS:J2,PROPER:xme,CONFIGURABLE:Pme},ry={},Dme=an,Nme=BV,Mme=ai,Bme=Vn,Fme=sa,Lme=ey;ry.f=Dme&&!Nme?Object.defineProperties:function(r,e){Bme(r);for(var n=Fme(e),i=Lme(e),o=i.length,a=0,s;o>a;)Mme.f(r,s=i[a++],n[s]);return r};var zme=zn,qV=zme("document","documentElement"),jme=Vn,Vme=ry,qR=Y2,Gme=hf,Wme=qV,Hme=Z2,Ume=ty,JR=">",eD="<",F_="prototype",L_="script",JV=Ume("IE_PROTO"),$0=function(){},e9=function(t){return eD+L_+JR+t+eD+"/"+L_+JR},tD=function(t){t.write(e9("")),t.close();var r=t.parentWindow.Object;return t=null,r},Zme=function(){var t=Hme("iframe"),r="java"+L_+":",e;return t.style.display="none",Wme.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(e9("document.F=Object")),e.close(),e.F},eI,vv=function(){try{eI=new ActiveXObject("htmlfile")}catch{}vv=typeof document<"u"?document.domain&&eI?tD(eI):Zme():tD(eI);for(var t=qR.length;t--;)delete vv[F_][qR[t]];return vv()};Gme[JV]=!0;var Xg=Object.create||function(r,e){var n;return r!==null?($0[F_]=jme(r),n=new $0,$0[F_]=null,n[JV]=r):n=vv(),e===void 0?n:Vme.f(n,e)},Kme=yt,t9=!Kme(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Yme=vr,Xme=Ir,Qme=jn,qme=ty,Jme=t9,rD=qme("IE_PROTO"),z_=Object,eye=z_.prototype,Cf=Jme?z_.getPrototypeOf:function(t){var r=Qme(t);if(Yme(r,rD))return r[rD];var e=r.constructor;return Xme(e)&&r instanceof e?e.prototype:r instanceof z_?eye:null},tye=Ha,vd=function(t,r,e,n){return n&&n.enumerable?t[r]=e:tye(t,r,e),t},rye=yt,nye=Ir,iye=Pr,oye=Xg,nD=Cf,aye=vd,sye=nr,j_=sye("iterator"),r9=!1,ya,w0,_0;[].keys&&(_0=[].keys(),"next"in _0?(w0=nD(nD(_0)),w0!==Object.prototype&&(ya=w0)):r9=!0);var lye=!iye(ya)||rye(function(){var t={};return ya[j_].call(t)!==t});lye?ya={}:ya=oye(ya);nye(ya[j_])||aye(ya,j_,function(){return this});var n9={IteratorPrototype:ya,BUGGY_SAFARI_ITERATORS:r9},gye=Q2,uye=Ua,cye=gye?{}.toString:function(){return"[object "+uye(this)+"]"},dye=Q2,hye=ai.f,Aye=Ha,fye=vr,Cye=cye,Iye=nr,iD=Iye("toStringTag"),Qg=function(t,r,e,n){if(t){var i=e?t:t.prototype;fye(i,iD)||hye(i,iD,{configurable:!0,value:r}),n&&!dye&&Aye(i,"toString",Cye)}},pd={},vye=n9.IteratorPrototype,pye=Xg,mye=Zg,yye=Qg,bye=pd,$ye=function(){return this},wye=function(t,r,e,n){var i=r+" Iterator";return t.prototype=pye(vye,{next:mye(+!n,e)}),yye(t,i,!1,!0),bye[i]=$ye,t},_ye=kt,Eye=oi,Sye=function(t,r,e){try{return _ye(Eye(Object.getOwnPropertyDescriptor(t,r)[e]))}catch{}},Tye=Ir,Oye=String,kye=TypeError,xye=function(t){if(typeof t=="object"||Tye(t))return t;throw new kye("Can't set "+Oye(t)+" as a prototype")},Pye=Sye,Rye=Vn,Dye=xye,i9=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,r={},e;try{e=Pye(Object.prototype,"__proto__","set"),e(r,[]),t=r instanceof Array}catch{}return function(i,o){return Rye(i),Dye(o),t?e(i,o):i.__proto__=o,i}}():void 0),Nye=Oe,Mye=Kr,Bye=Rme,Fye=wye,Lye=Cf,zye=Qg,oD=vd,jye=nr,aD=pd,Vye=n9,Gye=Bye.PROPER,tI=Vye.BUGGY_SAFARI_ITERATORS,E0=jye("iterator"),sD="keys",rI="values",lD="entries",Wye=function(){return this},eT=function(t,r,e,n,i,o,a){Fye(e,r,n);var s=function(I){if(I===i&&d)return d;if(!tI&&I&&I in u)return u[I];switch(I){case sD:return function(){return new e(this,I)};case rI:return function(){return new e(this,I)};case lD:return function(){return new e(this,I)}}return function(){return new e(this)}},l=r+" Iterator",g=!1,u=t.prototype,c=u[E0]||u["@@iterator"]||i&&u[i],d=!tI&&c||s(i),h=r==="Array"&&u.entries||c,A,f,C;if(h&&(A=Lye(h.call(new t)),A!==Object.prototype&&A.next&&(zye(A,l,!0,!0),aD[l]=Wye)),Gye&&i===rI&&c&&c.name!==rI&&(g=!0,d=function(){return Mye(c,this)}),i)if(f={values:s(rI),keys:o?d:s(sD),entries:s(lD)},a)for(C in f)(tI||g||!(C in u))&&oD(u,C,f[C]);else Nye({target:r,proto:!0,forced:tI||g},f);return a&&u[E0]!==d&&oD(u,E0,d,{name:i}),aD[r]=d,f},tT=function(t,r){return{value:t,done:r}},Hye=Cme.charAt,Uye=So,o9=Il,Zye=eT,gD=tT,a9="String Iterator",Kye=o9.set,Yye=o9.getterFor(a9);Zye(String,"String",function(t){Kye(this,{type:a9,string:Uye(t),index:0})},function(){var r=Yye(this),e=r.string,n=r.index,i;return n>=e.length?gD(void 0,!0):(i=Hye(e,n),r.index+=i.length,gD(i,!1))});var Xye=Kr,uD=Vn,Qye=H2,s9=function(t,r,e){var n,i;uD(t);try{if(n=Qye(t,"return"),!n){if(r==="throw")throw e;return e}n=Xye(n,t)}catch(o){i=!0,n=o}if(r==="throw")throw e;if(i)throw n;return uD(n),e},qye=Vn,Jye=s9,ebe=function(t,r,e,n){try{return n?r(qye(e)[0],e[1]):r(e)}catch(i){Jye(t,"throw",i)}},tbe=nr,rbe=pd,nbe=tbe("iterator"),ibe=Array.prototype,l9=function(t){return t!==void 0&&(rbe.Array===t||ibe[nbe]===t)},obe=kt,abe=Ir,V_=U2,sbe=obe(Function.toString);abe(V_.inspectSource)||(V_.inspectSource=function(t){return sbe(t)});var g9=V_.inspectSource,lbe=kt,gbe=yt,u9=Ir,ube=Ua,cbe=zn,dbe=g9,c9=function(){},hbe=[],d9=cbe("Reflect","construct"),rT=/^\s*(?:class|function)\b/,Abe=lbe(rT.exec),fbe=!rT.test(c9),ih=function(r){if(!u9(r))return!1;try{return d9(c9,hbe,r),!0}catch{return!1}},h9=function(r){if(!u9(r))return!1;switch(ube(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return fbe||!!Abe(rT,dbe(r))}catch{return!0}};h9.sham=!0;var ny=!d9||gbe(function(){var t;return ih(ih.call)||!ih(Object)||!ih(function(){t=!0})||t})?h9:ih,Cbe=qm,Ibe=ai,vbe=Zg,md=function(t,r,e){var n=Cbe(r);n in t?Ibe.f(t,n,vbe(0,e)):t[n]=e},pbe=Ua,cD=H2,mbe=Kg,ybe=pd,bbe=nr,$be=bbe("iterator"),iy=function(t){if(!mbe(t))return cD(t,$be)||cD(t,"@@iterator")||ybe[pbe(t)]},wbe=Kr,_be=oi,Ebe=Vn,Sbe=Cd,Tbe=iy,Obe=TypeError,nT=function(t,r){var e=arguments.length<2?Tbe(t):r;if(_be(e))return Ebe(wbe(e,t));throw new Obe(Sbe(t)+" is not iterable")},kbe=Cl,xbe=Kr,Pbe=jn,Rbe=ebe,Dbe=l9,Nbe=ny,Mbe=si,dD=md,Bbe=nT,Fbe=iy,hD=Array,Lbe=function(r){var e=Pbe(r),n=Nbe(this),i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0;a&&(o=kbe(o,i>2?arguments[2]:void 0));var s=Fbe(e),l=0,g,u,c,d,h,A;if(s&&!(this===hD&&Dbe(s)))for(d=Bbe(e,s),h=d.next,u=n?new this:[];!(c=xbe(h,d)).done;l++)A=a?Rbe(d,o,[c.value,l],!0):c.value,dD(u,l,A);else for(g=Mbe(e),u=n?new this(g):hD(g);g>l;l++)A=a?o(e[l],l):e[l],dD(u,l,A);return u.length=l,u},zbe=nr,A9=zbe("iterator"),f9=!1;try{var jbe=0,AD={next:function(){return{done:!!jbe++}},return:function(){f9=!0}};AD[A9]=function(){return this},Array.from(AD,function(){throw 2})}catch{}var C9=function(t,r){try{if(!r&&!f9)return!1}catch{return!1}var e=!1;try{var n={};n[A9]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch{}return e},Vbe=Oe,Gbe=Lbe,Wbe=C9,Hbe=!Wbe(function(t){Array.from(t)});Vbe({target:"Array",stat:!0,forced:Hbe},{from:Gbe});var Ube=$t,Zbe=Ube.Array.from,Kbe=Zbe,I9=Kbe,Ybe=I9,vl=Te(Ybe),Xbe=sa,fD=pd,v9=Il;ai.f;var Qbe=eT,nI=tT,p9="Array Iterator",qbe=v9.set,Jbe=v9.getterFor(p9);Qbe(Array,"Array",function(t,r){qbe(this,{type:p9,target:Xbe(t),index:0,kind:r})},function(){var t=Jbe(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,nI(void 0,!0);switch(e){case"keys":return nI(n,!1);case"values":return nI(r[n],!1)}return nI([n,r[n]],!1)},"values");fD.Arguments=fD.Array;var e0e=iy,t0e=e0e,r0e={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},n0e=r0e,i0e=Ut,o0e=Ua,a0e=Ha,CD=pd,s0e=nr,ID=s0e("toStringTag");for(var S0 in n0e){var vD=i0e[S0],T0=vD&&vD.prototype;T0&&o0e(T0)!==ID&&a0e(T0,ID,S0),CD[S0]=CD.Array}var l0e=t0e,g0e=l0e,u0e=g0e,c0e=u0e,d0e=c0e,h0e=d0e,m9=h0e,y9=Te(m9),A0e=m9,pl=Te(A0e);function Ae(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var b9={exports:{}},f0e=Oe,C0e=an,pD=ai.f;f0e({target:"Object",stat:!0,forced:Object.defineProperty!==pD,sham:!C0e},{defineProperty:pD});var I0e=$t,$9=I0e.Object,v0e=b9.exports=function(r,e,n){return $9.defineProperty(r,e,n)};$9.defineProperty.sham&&(v0e.sham=!0);var p0e=b9.exports,m0e=p0e,w9=m0e,y0e=w9,b0e=y0e,$0e=b0e,w0e=$0e,_9=w0e,oy=Te(_9),_0e=Wa,ml=Array.isArray||function(r){return _0e(r)==="Array"},E0e=TypeError,S0e=9007199254740991,ay=function(t){if(t>S0e)throw E0e("Maximum allowed index exceeded");return t},mD=ml,T0e=ny,O0e=Pr,k0e=nr,x0e=k0e("species"),yD=Array,P0e=function(t){var r;return mD(t)&&(r=t.constructor,T0e(r)&&(r===yD||mD(r.prototype))?r=void 0:O0e(r)&&(r=r[x0e],r===null&&(r=void 0))),r===void 0?yD:r},R0e=P0e,sy=function(t,r){return new(R0e(t))(r===0?0:r)},D0e=yt,N0e=nr,M0e=Ad,B0e=N0e("species"),If=function(t){return M0e>=51||!D0e(function(){var r=[],e=r.constructor={};return e[B0e]=function(){return{foo:1}},r[t](Boolean).foo!==1})},F0e=Oe,L0e=yt,z0e=ml,j0e=Pr,V0e=jn,G0e=si,bD=ay,$D=md,W0e=sy,H0e=If,U0e=nr,Z0e=Ad,E9=U0e("isConcatSpreadable"),K0e=Z0e>=51||!L0e(function(){var t=[];return t[E9]=!1,t.concat()[0]!==t}),Y0e=function(t){if(!j0e(t))return!1;var r=t[E9];return r!==void 0?!!r:z0e(t)},X0e=!K0e||!H0e("concat");F0e({target:"Array",proto:!0,arity:1,forced:X0e},{concat:function(r){var e=V0e(this),n=W0e(e,0),i=0,o,a,s,l,g;for(o=-1,s=arguments.length;o<s;o++)if(g=o===-1?e:arguments[o],Y0e(g))for(l=G0e(g),bD(i+l),a=0;a<l;a++,i++)a in g&&$D(n,i,g[a]);else bD(i+1),$D(n,i++,g);return n.length=i,n}});var vf={},Q0e=FV,q0e=Y2,J0e=q0e.concat("length","prototype");vf.f=Object.getOwnPropertyNames||function(r){return Q0e(r,J0e)};var ly={},wD=df,e1e=si,t1e=md,r1e=Array,n1e=Math.max,S9=function(t,r,e){for(var n=e1e(t),i=wD(r,n),o=wD(e===void 0?n:e,n),a=r1e(n1e(o-i,0)),s=0;i<o;i++,s++)t1e(a,s,t[i]);return a.length=s,a},i1e=Wa,o1e=sa,T9=vf.f,a1e=S9,O9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s1e=function(t){try{return T9(t)}catch{return a1e(O9)}};ly.f=function(r){return O9&&i1e(r)==="Window"?s1e(r):T9(o1e(r))};var l1e=ai,iT=function(t,r,e){return l1e.f(t,r,e)},pf={},g1e=nr;pf.f=g1e;var _D=$t,u1e=vr,c1e=pf,d1e=ai.f,pr=function(t){var r=_D.Symbol||(_D.Symbol={});u1e(r,t)||d1e(r,t,{value:c1e.f(t)})},h1e=Kr,A1e=zn,f1e=nr,C1e=vd,k9=function(){var t=A1e("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=f1e("toPrimitive");r&&!r[n]&&C1e(r,n,function(i){return h1e(e,this)},{arity:1})},I1e=Cl,v1e=kt,p1e=Xm,m1e=jn,y1e=si,b1e=sy,ED=v1e([].push),rs=function(t){var r=t===1,e=t===2,n=t===3,i=t===4,o=t===6,a=t===7,s=t===5||o;return function(l,g,u,c){for(var d=m1e(l),h=p1e(d),A=I1e(g,u),f=y1e(h),C=0,I=c||b1e,v=r?I(l,f):e||a?I(l,0):void 0,p,y;f>C;C++)if((s||C in h)&&(p=h[C],y=A(p,C,d),t))if(r)v[C]=y;else if(y)switch(t){case 3:return!0;case 5:return p;case 6:return C;case 2:ED(v,p)}else switch(t){case 4:return!1;case 7:ED(v,p)}return o?-1:n||i?i:v}},yl={forEach:rs(0),map:rs(1),filter:rs(2),some:rs(3),every:rs(4),find:rs(5),findIndex:rs(6),filterReject:rs(7)},gy=Oe,uy=Ut,oT=Kr,$1e=kt,Rc=an,Dc=fd,w1e=yt,tn=vr,_1e=gr,G_=Vn,cy=sa,aT=qm,E1e=So,W_=Zg,vA=Xg,x9=ey,S1e=vf,P9=ly,T1e=Af,R9=Al,D9=ai,O1e=ry,N9=Ym,SD=vd,k1e=iT,sT=Id,x1e=ty,M9=hf,TD=Qm,P1e=nr,R1e=pf,D1e=pr,N1e=k9,M1e=Qg,B9=Il,dy=yl.forEach,Xn=x1e("hidden"),hy="Symbol",pA="prototype",B1e=B9.set,OD=B9.getterFor(hy),Co=Object[pA],sg=uy.Symbol,ph=sg&&sg[pA],F1e=uy.RangeError,L1e=uy.TypeError,O0=uy.QObject,F9=R9.f,lg=D9.f,L9=P9.f,z1e=N9.f,z9=$1e([].push),Ma=sT("symbols"),mf=sT("op-symbols"),j1e=sT("wks"),H_=!O0||!O0[pA]||!O0[pA].findChild,j9=function(t,r,e){var n=F9(Co,r);n&&delete Co[r],lg(t,r,e),n&&t!==Co&&lg(Co,r,n)},U_=Rc&&w1e(function(){return vA(lg({},"a",{get:function(){return lg(this,"a",{value:7}).a}})).a!==7})?j9:lg,k0=function(t,r){var e=Ma[t]=vA(ph);return B1e(e,{type:hy,tag:t,description:r}),Rc||(e.description=r),e},Ay=function(r,e,n){r===Co&&Ay(mf,e,n),G_(r);var i=aT(e);return G_(n),tn(Ma,i)?(n.enumerable?(tn(r,Xn)&&r[Xn][i]&&(r[Xn][i]=!1),n=vA(n,{enumerable:W_(0,!1)})):(tn(r,Xn)||lg(r,Xn,W_(1,{})),r[Xn][i]=!0),U_(r,i,n)):lg(r,i,n)},lT=function(r,e){G_(r);var n=cy(e),i=x9(n).concat(H9(n));return dy(i,function(o){(!Rc||oT(V9,n,o))&&Ay(r,o,n[o])}),r},V1e=function(r,e){return e===void 0?vA(r):lT(vA(r),e)},V9=function(r){var e=aT(r),n=oT(z1e,this,e);return this===Co&&tn(Ma,e)&&!tn(mf,e)?!1:n||!tn(this,e)||!tn(Ma,e)||tn(this,Xn)&&this[Xn][e]?n:!0},G9=function(r,e){var n=cy(r),i=aT(e);if(!(n===Co&&tn(Ma,i)&&!tn(mf,i))){var o=F9(n,i);return o&&tn(Ma,i)&&!(tn(n,Xn)&&n[Xn][i])&&(o.enumerable=!0),o}},W9=function(r){var e=L9(cy(r)),n=[];return dy(e,function(i){!tn(Ma,i)&&!tn(M9,i)&&z9(n,i)}),n},H9=function(t){var r=t===Co,e=L9(r?mf:cy(t)),n=[];return dy(e,function(i){tn(Ma,i)&&(!r||tn(Co,i))&&z9(n,Ma[i])}),n};Dc||(sg=function(){if(_1e(ph,this))throw new L1e("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:E1e(arguments[0]),e=TD(r),n=function(i){this===Co&&oT(n,mf,i),tn(this,Xn)&&tn(this[Xn],e)&&(this[Xn][e]=!1);var o=W_(1,i);try{U_(this,e,o)}catch(a){if(!(a instanceof F1e))throw a;j9(this,e,o)}};return Rc&&H_&&U_(Co,e,{configurable:!0,set:n}),k0(e,r)},ph=sg[pA],SD(ph,"toString",function(){return OD(this).tag}),SD(sg,"withoutSetter",function(t){return k0(TD(t),t)}),N9.f=V9,D9.f=Ay,O1e.f=lT,R9.f=G9,S1e.f=P9.f=W9,T1e.f=H9,R1e.f=function(t){return k0(P1e(t),t)},Rc&&k1e(ph,"description",{configurable:!0,get:function(){return OD(this).description}}));gy({global:!0,constructor:!0,wrap:!0,forced:!Dc,sham:!Dc},{Symbol:sg});dy(x9(j1e),function(t){D1e(t)});gy({target:hy,stat:!0,forced:!Dc},{useSetter:function(){H_=!0},useSimple:function(){H_=!1}});gy({target:"Object",stat:!0,forced:!Dc,sham:!Rc},{create:V1e,defineProperty:Ay,defineProperties:lT,getOwnPropertyDescriptor:G9});gy({target:"Object",stat:!0,forced:!Dc},{getOwnPropertyNames:W9});N1e();M1e(sg,hy);M9[Xn]=!0;var G1e=fd,U9=G1e&&!!Symbol.for&&!!Symbol.keyFor,W1e=Oe,H1e=zn,U1e=vr,Z1e=So,Z9=Id,K1e=U9,x0=Z9("string-to-symbol-registry"),Y1e=Z9("symbol-to-string-registry");W1e({target:"Symbol",stat:!0,forced:!K1e},{for:function(t){var r=Z1e(t);if(U1e(x0,r))return x0[r];var e=H1e("Symbol")(r);return x0[r]=e,Y1e[e]=r,e}});var X1e=Oe,Q1e=vr,q1e=uf,J1e=Cd,e$e=Id,t$e=U9,kD=e$e("symbol-to-string-registry");X1e({target:"Symbol",stat:!0,forced:!t$e},{keyFor:function(r){if(!q1e(r))throw new TypeError(J1e(r)+" is not a symbol");if(Q1e(kD,r))return kD[r]}});var r$e=kt,xD=ml,n$e=Ir,PD=Wa,i$e=So,RD=r$e([].push),o$e=function(t){if(n$e(t))return t;if(xD(t)){for(var r=t.length,e=[],n=0;n<r;n++){var i=t[n];typeof i=="string"?RD(e,i):(typeof i=="number"||PD(i)==="Number"||PD(i)==="String")&&RD(e,i$e(i))}var o=e.length,a=!0;return function(s,l){if(a)return a=!1,l;if(xD(this))return l;for(var g=0;g<o;g++)if(e[g]===s)return l}}},a$e=Oe,K9=zn,Y9=hd,s$e=Kr,yf=kt,X9=yt,DD=Ir,ND=uf,Q9=ff,l$e=o$e,g$e=fd,u$e=String,Ns=K9("JSON","stringify"),iI=yf(/./.exec),MD=yf("".charAt),c$e=yf("".charCodeAt),d$e=yf("".replace),h$e=yf(1 .toString),A$e=/[\uD800-\uDFFF]/g,BD=/^[\uD800-\uDBFF]$/,FD=/^[\uDC00-\uDFFF]$/,LD=!g$e||X9(function(){var t=K9("Symbol")("stringify detection");return Ns([t])!=="[null]"||Ns({a:t})!=="{}"||Ns(Object(t))!=="{}"}),zD=X9(function(){return Ns("\uDF06\uD834")!=='"\\udf06\\ud834"'||Ns("\uDEAD")!=='"\\udead"'}),f$e=function(t,r){var e=Q9(arguments),n=l$e(r);if(!(!DD(n)&&(t===void 0||ND(t))))return e[1]=function(i,o){if(DD(n)&&(o=s$e(n,this,u$e(i),o)),!ND(o))return o},Y9(Ns,null,e)},C$e=function(t,r,e){var n=MD(e,r-1),i=MD(e,r+1);return iI(BD,t)&&!iI(FD,i)||iI(FD,t)&&!iI(BD,n)?"\\u"+h$e(c$e(t,0),16):t};Ns&&a$e({target:"JSON",stat:!0,arity:3,forced:LD||zD},{stringify:function(r,e,n){var i=Q9(arguments),o=Y9(LD?f$e:Ns,null,i);return zD&&typeof o=="string"?d$e(o,A$e,C$e):o}});var I$e=Oe,v$e=fd,p$e=yt,q9=Af,m$e=jn,y$e=!v$e||p$e(function(){q9.f(1)});I$e({target:"Object",stat:!0,forced:y$e},{getOwnPropertySymbols:function(r){var e=q9.f;return e?e(m$e(r)):[]}});var b$e=pr;b$e("asyncIterator");var $$e=pr;$$e("hasInstance");var w$e=pr;w$e("isConcatSpreadable");var _$e=pr;_$e("iterator");var E$e=pr;E$e("match");var S$e=pr;S$e("matchAll");var T$e=pr;T$e("replace");var O$e=pr;O$e("search");var k$e=pr;k$e("species");var x$e=pr;x$e("split");var P$e=pr,R$e=k9;P$e("toPrimitive");R$e();var D$e=zn,N$e=pr,M$e=Qg;N$e("toStringTag");M$e(D$e("Symbol"),"Symbol");var B$e=pr;B$e("unscopables");var F$e=Ut,L$e=Qg;L$e(F$e.JSON,"JSON",!0);var z$e=$t,j$e=z$e.Symbol,V$e=j$e,J9=V$e,G$e=nr,W$e=ai.f,jD=G$e("metadata"),VD=Function.prototype;VD[jD]===void 0&&W$e(VD,jD,{value:null});var H$e=pr;H$e("asyncDispose");var U$e=pr;U$e("dispose");var Z$e=pr;Z$e("metadata");var K$e=J9,Y$e=K$e,X$e=zn,Q$e=kt,gT=X$e("Symbol"),q$e=gT.keyFor,J$e=Q$e(gT.prototype.valueOf),eG=gT.isRegisteredSymbol||function(r){try{return q$e(J$e(r))!==void 0}catch{return!1}},ewe=Oe,twe=eG;ewe({target:"Symbol",stat:!0},{isRegisteredSymbol:twe});var rwe=Id,tG=zn,nwe=kt,iwe=uf,owe=nr,Ep=tG("Symbol"),GD=Ep.isWellKnownSymbol,rG=tG("Object","getOwnPropertyNames"),awe=nwe(Ep.prototype.valueOf),WD=rwe("wks");for(var P0=0,HD=rG(Ep),swe=HD.length;P0<swe;P0++)try{var UD=HD[P0];iwe(Ep[UD])&&owe(UD)}catch{}var nG=function(r){if(GD&&GD(r))return!0;try{for(var e=awe(r),n=0,i=rG(WD),o=i.length;n<o;n++)if(WD[i[n]]==e)return!0}catch{}return!1},lwe=Oe,gwe=nG;lwe({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:gwe});var uwe=pr;uwe("matcher");var cwe=pr;cwe("observable");var dwe=Oe,hwe=eG;dwe({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:hwe});var Awe=Oe,fwe=nG;Awe({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:fwe});var Cwe=pr;Cwe("metadataKey");var Iwe=pr;Iwe("patternMatch");var vwe=pr;vwe("replaceAll");var pwe=Y$e,mwe=pwe,uT=mwe,Vu=Te(uT),ywe=pf,bwe=ywe.f("iterator"),$we=bwe,iG=$we,wwe=iG,_we=wwe,Ewe=_we,Swe=Ewe,oG=Swe,Twe=Te(oG);function ct(t){"@babel/helpers - typeof";return ct=typeof Vu=="function"&&typeof Twe=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Vu=="function"&&r.constructor===Vu&&r!==Vu.prototype?"symbol":typeof r},ct(t)}var Owe=pf,kwe=Owe.f("toPrimitive"),xwe=kwe,Pwe=xwe,Rwe=Pwe,Dwe=Rwe,Nwe=Dwe,Mwe=Nwe,Bwe=Mwe,Fwe=Te(Bwe);function Lwe(t,r){if(ct(t)!=="object"||t===null)return t;var e=t[Fwe];if(e!==void 0){var n=e.call(t,r||"default");if(ct(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function aG(t){var r=Lwe(t,"string");return ct(r)==="symbol"?r:String(r)}function ZD(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),oy(t,aG(n.key),n)}}function fe(t,r,e){return r&&ZD(t.prototype,r),e&&ZD(t,e),oy(t,"prototype",{writable:!1}),t}var zwe=Oe,jwe=ml;zwe({target:"Array",stat:!0},{isArray:jwe});var Vwe=$t,Gwe=Vwe.Array.isArray,Wwe=Gwe,sG=Wwe,Hwe=sG,Uwe=Hwe,Zwe=Uwe,Kwe=Zwe,Ywe=Kwe,lG=Te(Ywe);function Xwe(t){if(lG(t))return t}var Qwe=an,qwe=ml,Jwe=TypeError,e_e=Object.getOwnPropertyDescriptor,t_e=Qwe&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),gG=t_e?function(t,r){if(qwe(t)&&!e_e(t,"length").writable)throw new Jwe("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r},r_e=Oe,n_e=jn,i_e=si,o_e=gG,a_e=ay,s_e=yt,l_e=s_e(function(){return[].push.call({length:4294967296},1)!==4294967297}),g_e=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},u_e=l_e||!g_e();r_e({target:"Array",proto:!0,arity:1,forced:u_e},{push:function(r){var e=n_e(this),n=i_e(e),i=arguments.length;a_e(n+i);for(var o=0;o<i;o++)e[n]=arguments[o],n++;return o_e(e,n),n}});var c_e=Rr,d_e=c_e("Array").push,h_e=gr,A_e=d_e,R0=Array.prototype,f_e=function(t){var r=t.push;return t===R0||h_e(R0,t)&&r===R0.push?A_e:r},C_e=f_e,I_e=C_e,v_e=I_e,p_e=v_e,m_e=p_e,y_e=m_e,uG=y_e,b_e=Te(uG);function $_e(t,r){var e=t==null?null:typeof Vu<"u"&&y9(t)||t["@@iterator"];if(e!=null){var n,i,o,a,s=[],l=!0,g=!1;try{if(o=(e=e.call(t)).next,r===0){if(Object(e)!==e)return;l=!1}else for(;!(l=(n=o.call(e)).done)&&(b_e(s).call(s,n.value),s.length!==r);l=!0);}catch(u){g=!0,i=u}finally{try{if(!l&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(g)throw i}}return s}}var w_e=Oe,KD=ml,__e=ny,E_e=Pr,YD=df,S_e=si,T_e=sa,O_e=md,k_e=nr,x_e=If,P_e=ff,R_e=x_e("slice"),D_e=k_e("species"),D0=Array,N_e=Math.max;w_e({target:"Array",proto:!0,forced:!R_e},{slice:function(r,e){var n=T_e(this),i=S_e(n),o=YD(r,i),a=YD(e===void 0?i:e,i),s,l,g;if(KD(n)&&(s=n.constructor,__e(s)&&(s===D0||KD(s.prototype))?s=void 0:E_e(s)&&(s=s[D_e],s===null&&(s=void 0)),s===D0||s===void 0))return P_e(n,o,a);for(l=new(s===void 0?D0:s)(N_e(a-o,0)),g=0;o<a;o++,g++)o in n&&O_e(l,g,n[o]);return l.length=g,l}});var M_e=Rr,B_e=M_e("Array").slice,F_e=gr,L_e=B_e,N0=Array.prototype,z_e=function(t){var r=t.slice;return t===N0||F_e(N0,t)&&r===N0.slice?L_e:r},j_e=z_e,cG=j_e,V_e=cG,G_e=V_e,W_e=G_e,H_e=W_e,dG=H_e,U_e=Te(dG),Z_e=I9,K_e=Z_e,Y_e=K_e,X_e=Y_e,Q_e=X_e,hG=Te(Q_e);function Z_(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function AG(t,r){var e;if(t){if(typeof t=="string")return Z_(t,r);var n=U_e(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return hG(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z_(t,r)}}function q_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
700
|
+
`;Yg(qpe);var UV={exports:{}};(function(t){t.exports=r;function r(n){if(n)return e(n)}function e(n){for(var i in r.prototype)n[i]=r.prototype[i];return n}r.prototype.on=r.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this},r.prototype.once=function(n,i){function o(){this.off(n,o),i.apply(this,arguments)}return o.fn=i,this.on(n,o),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o=this._callbacks["$"+n];if(!o)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var a,s=0;s<o.length;s++)if(a=o[s],a===i||a.fn===i){o.splice(s,1);break}return o.length===0&&delete this._callbacks["$"+n],this},r.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),o=this._callbacks["$"+n],a=1;a<arguments.length;a++)i[a-1]=arguments[a];if(o){o=o.slice(0);for(var a=0,s=o.length;a<s;++a)o[a].apply(this,i)}return this},r.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},r.prototype.hasListeners=function(n){return!!this.listeners(n).length}})(UV);var Jpe=UV.exports,ZV=Te(Jpe),eme=nr,tme=eme("toStringTag"),KV={};KV[tme]="z";var Q2=String(KV)==="[object z]",rme=Q2,nme=Ir,Iv=Wa,ime=nr,ome=ime("toStringTag"),ame=Object,sme=Iv(function(){return arguments}())==="Arguments",lme=function(t,r){try{return t[r]}catch{}},Ua=rme?Iv:function(t){var r,e,n;return t===void 0?"Undefined":t===null?"Null":typeof(e=lme(r=ame(t),ome))=="string"?e:sme?Iv(r):(n=Iv(r))==="Object"&&nme(r.callee)?"Arguments":n},gme=Ua,ume=String,So=function(t){if(gme(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return ume(t)},q2=kt,cme=Jm,dme=So,hme=gf,Ame=q2("".charAt),ZR=q2("".charCodeAt),fme=q2("".slice),KR=function(t){return function(r,e){var n=dme(hme(r)),i=cme(e),o=n.length,a,s;return i<0||i>=o?t?"":void 0:(a=ZR(n,i),a<55296||a>56319||i+1===o||(s=ZR(n,i+1))<56320||s>57343?t?Ame(n,i):a:t?fme(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},Cme={codeAt:KR(!1),charAt:KR(!0)},Ime=Ut,vme=Ir,YR=Ime.WeakMap,YV=vme(YR)&&/native code/.test(String(YR)),pme=Id,mme=Qm,XR=pme("keys"),ty=function(t){return XR[t]||(XR[t]=mme(t))},yme=YV,XV=Ut,bme=Pr,$me=Ha,y0=vr,b0=U2,wme=ty,_me=hf,QR="Object already initialized",M_=XV.TypeError,Eme=XV.WeakMap,wp,IA,_p,Sme=function(t){return _p(t)?IA(t):wp(t,{})},Tme=function(t){return function(r){var e;if(!bme(r)||(e=IA(r)).type!==t)throw new M_("Incompatible receiver, "+t+" required");return e}};if(yme||b0.state){var ko=b0.state||(b0.state=new Eme);ko.get=ko.get,ko.has=ko.has,ko.set=ko.set,wp=function(t,r){if(ko.has(t))throw new M_(QR);return r.facade=t,ko.set(t,r),r},IA=function(t){return ko.get(t)||{}},_p=function(t){return ko.has(t)}}else{var mu=wme("state");_me[mu]=!0,wp=function(t,r){if(y0(t,mu))throw new M_(QR);return r.facade=t,$me(t,mu,r),r},IA=function(t){return y0(t,mu)?t[mu]:{}},_p=function(t){return y0(t,mu)}}var Il={set:wp,get:IA,has:_p,enforce:Sme,getterFor:Tme},B_=an,Ome=vr,QV=Function.prototype,kme=B_&&Object.getOwnPropertyDescriptor,J2=Ome(QV,"name"),xme=J2&&function(){}.name==="something",Pme=J2&&(!B_||B_&&kme(QV,"name").configurable),Rme={EXISTS:J2,PROPER:xme,CONFIGURABLE:Pme},ry={},Dme=an,Nme=BV,Mme=ai,Bme=Vn,Fme=sa,Lme=ey;ry.f=Dme&&!Nme?Object.defineProperties:function(r,e){Bme(r);for(var n=Fme(e),i=Lme(e),o=i.length,a=0,s;o>a;)Mme.f(r,s=i[a++],n[s]);return r};var zme=zn,qV=zme("document","documentElement"),jme=Vn,Vme=ry,qR=Y2,Gme=hf,Wme=qV,Hme=Z2,Ume=ty,JR=">",eD="<",F_="prototype",L_="script",JV=Ume("IE_PROTO"),$0=function(){},e9=function(t){return eD+L_+JR+t+eD+"/"+L_+JR},tD=function(t){t.write(e9("")),t.close();var r=t.parentWindow.Object;return t=null,r},Zme=function(){var t=Hme("iframe"),r="java"+L_+":",e;return t.style.display="none",Wme.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(e9("document.F=Object")),e.close(),e.F},eI,vv=function(){try{eI=new ActiveXObject("htmlfile")}catch{}vv=typeof document<"u"?document.domain&&eI?tD(eI):Zme():tD(eI);for(var t=qR.length;t--;)delete vv[F_][qR[t]];return vv()};Gme[JV]=!0;var Xg=Object.create||function(r,e){var n;return r!==null?($0[F_]=jme(r),n=new $0,$0[F_]=null,n[JV]=r):n=vv(),e===void 0?n:Vme.f(n,e)},Kme=bt,t9=!Kme(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Yme=vr,Xme=Ir,Qme=jn,qme=ty,Jme=t9,rD=qme("IE_PROTO"),z_=Object,eye=z_.prototype,Cf=Jme?z_.getPrototypeOf:function(t){var r=Qme(t);if(Yme(r,rD))return r[rD];var e=r.constructor;return Xme(e)&&r instanceof e?e.prototype:r instanceof z_?eye:null},tye=Ha,vd=function(t,r,e,n){return n&&n.enumerable?t[r]=e:tye(t,r,e),t},rye=bt,nye=Ir,iye=Pr,oye=Xg,nD=Cf,aye=vd,sye=nr,j_=sye("iterator"),r9=!1,ya,w0,_0;[].keys&&(_0=[].keys(),"next"in _0?(w0=nD(nD(_0)),w0!==Object.prototype&&(ya=w0)):r9=!0);var lye=!iye(ya)||rye(function(){var t={};return ya[j_].call(t)!==t});lye?ya={}:ya=oye(ya);nye(ya[j_])||aye(ya,j_,function(){return this});var n9={IteratorPrototype:ya,BUGGY_SAFARI_ITERATORS:r9},gye=Q2,uye=Ua,cye=gye?{}.toString:function(){return"[object "+uye(this)+"]"},dye=Q2,hye=ai.f,Aye=Ha,fye=vr,Cye=cye,Iye=nr,iD=Iye("toStringTag"),Qg=function(t,r,e,n){if(t){var i=e?t:t.prototype;fye(i,iD)||hye(i,iD,{configurable:!0,value:r}),n&&!dye&&Aye(i,"toString",Cye)}},pd={},vye=n9.IteratorPrototype,pye=Xg,mye=Zg,yye=Qg,bye=pd,$ye=function(){return this},wye=function(t,r,e,n){var i=r+" Iterator";return t.prototype=pye(vye,{next:mye(+!n,e)}),yye(t,i,!1,!0),bye[i]=$ye,t},_ye=kt,Eye=oi,Sye=function(t,r,e){try{return _ye(Eye(Object.getOwnPropertyDescriptor(t,r)[e]))}catch{}},Tye=Ir,Oye=String,kye=TypeError,xye=function(t){if(typeof t=="object"||Tye(t))return t;throw new kye("Can't set "+Oye(t)+" as a prototype")},Pye=Sye,Rye=Vn,Dye=xye,i9=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,r={},e;try{e=Pye(Object.prototype,"__proto__","set"),e(r,[]),t=r instanceof Array}catch{}return function(i,o){return Rye(i),Dye(o),t?e(i,o):i.__proto__=o,i}}():void 0),Nye=Oe,Mye=Kr,Bye=Rme,Fye=wye,Lye=Cf,zye=Qg,oD=vd,jye=nr,aD=pd,Vye=n9,Gye=Bye.PROPER,tI=Vye.BUGGY_SAFARI_ITERATORS,E0=jye("iterator"),sD="keys",rI="values",lD="entries",Wye=function(){return this},eT=function(t,r,e,n,i,o,a){Fye(e,r,n);var s=function(I){if(I===i&&d)return d;if(!tI&&I&&I in u)return u[I];switch(I){case sD:return function(){return new e(this,I)};case rI:return function(){return new e(this,I)};case lD:return function(){return new e(this,I)}}return function(){return new e(this)}},l=r+" Iterator",g=!1,u=t.prototype,c=u[E0]||u["@@iterator"]||i&&u[i],d=!tI&&c||s(i),h=r==="Array"&&u.entries||c,A,f,C;if(h&&(A=Lye(h.call(new t)),A!==Object.prototype&&A.next&&(zye(A,l,!0,!0),aD[l]=Wye)),Gye&&i===rI&&c&&c.name!==rI&&(g=!0,d=function(){return Mye(c,this)}),i)if(f={values:s(rI),keys:o?d:s(sD),entries:s(lD)},a)for(C in f)(tI||g||!(C in u))&&oD(u,C,f[C]);else Nye({target:r,proto:!0,forced:tI||g},f);return a&&u[E0]!==d&&oD(u,E0,d,{name:i}),aD[r]=d,f},tT=function(t,r){return{value:t,done:r}},Hye=Cme.charAt,Uye=So,o9=Il,Zye=eT,gD=tT,a9="String Iterator",Kye=o9.set,Yye=o9.getterFor(a9);Zye(String,"String",function(t){Kye(this,{type:a9,string:Uye(t),index:0})},function(){var r=Yye(this),e=r.string,n=r.index,i;return n>=e.length?gD(void 0,!0):(i=Hye(e,n),r.index+=i.length,gD(i,!1))});var Xye=Kr,uD=Vn,Qye=H2,s9=function(t,r,e){var n,i;uD(t);try{if(n=Qye(t,"return"),!n){if(r==="throw")throw e;return e}n=Xye(n,t)}catch(o){i=!0,n=o}if(r==="throw")throw e;if(i)throw n;return uD(n),e},qye=Vn,Jye=s9,ebe=function(t,r,e,n){try{return n?r(qye(e)[0],e[1]):r(e)}catch(i){Jye(t,"throw",i)}},tbe=nr,rbe=pd,nbe=tbe("iterator"),ibe=Array.prototype,l9=function(t){return t!==void 0&&(rbe.Array===t||ibe[nbe]===t)},obe=kt,abe=Ir,V_=U2,sbe=obe(Function.toString);abe(V_.inspectSource)||(V_.inspectSource=function(t){return sbe(t)});var g9=V_.inspectSource,lbe=kt,gbe=bt,u9=Ir,ube=Ua,cbe=zn,dbe=g9,c9=function(){},hbe=[],d9=cbe("Reflect","construct"),rT=/^\s*(?:class|function)\b/,Abe=lbe(rT.exec),fbe=!rT.test(c9),ih=function(r){if(!u9(r))return!1;try{return d9(c9,hbe,r),!0}catch{return!1}},h9=function(r){if(!u9(r))return!1;switch(ube(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return fbe||!!Abe(rT,dbe(r))}catch{return!0}};h9.sham=!0;var ny=!d9||gbe(function(){var t;return ih(ih.call)||!ih(Object)||!ih(function(){t=!0})||t})?h9:ih,Cbe=qm,Ibe=ai,vbe=Zg,md=function(t,r,e){var n=Cbe(r);n in t?Ibe.f(t,n,vbe(0,e)):t[n]=e},pbe=Ua,cD=H2,mbe=Kg,ybe=pd,bbe=nr,$be=bbe("iterator"),iy=function(t){if(!mbe(t))return cD(t,$be)||cD(t,"@@iterator")||ybe[pbe(t)]},wbe=Kr,_be=oi,Ebe=Vn,Sbe=Cd,Tbe=iy,Obe=TypeError,nT=function(t,r){var e=arguments.length<2?Tbe(t):r;if(_be(e))return Ebe(wbe(e,t));throw new Obe(Sbe(t)+" is not iterable")},kbe=Cl,xbe=Kr,Pbe=jn,Rbe=ebe,Dbe=l9,Nbe=ny,Mbe=si,dD=md,Bbe=nT,Fbe=iy,hD=Array,Lbe=function(r){var e=Pbe(r),n=Nbe(this),i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0;a&&(o=kbe(o,i>2?arguments[2]:void 0));var s=Fbe(e),l=0,g,u,c,d,h,A;if(s&&!(this===hD&&Dbe(s)))for(d=Bbe(e,s),h=d.next,u=n?new this:[];!(c=xbe(h,d)).done;l++)A=a?Rbe(d,o,[c.value,l],!0):c.value,dD(u,l,A);else for(g=Mbe(e),u=n?new this(g):hD(g);g>l;l++)A=a?o(e[l],l):e[l],dD(u,l,A);return u.length=l,u},zbe=nr,A9=zbe("iterator"),f9=!1;try{var jbe=0,AD={next:function(){return{done:!!jbe++}},return:function(){f9=!0}};AD[A9]=function(){return this},Array.from(AD,function(){throw 2})}catch{}var C9=function(t,r){try{if(!r&&!f9)return!1}catch{return!1}var e=!1;try{var n={};n[A9]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch{}return e},Vbe=Oe,Gbe=Lbe,Wbe=C9,Hbe=!Wbe(function(t){Array.from(t)});Vbe({target:"Array",stat:!0,forced:Hbe},{from:Gbe});var Ube=wt,Zbe=Ube.Array.from,Kbe=Zbe,I9=Kbe,Ybe=I9,vl=Te(Ybe),Xbe=sa,fD=pd,v9=Il;ai.f;var Qbe=eT,nI=tT,p9="Array Iterator",qbe=v9.set,Jbe=v9.getterFor(p9);Qbe(Array,"Array",function(t,r){qbe(this,{type:p9,target:Xbe(t),index:0,kind:r})},function(){var t=Jbe(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,nI(void 0,!0);switch(e){case"keys":return nI(n,!1);case"values":return nI(r[n],!1)}return nI([n,r[n]],!1)},"values");fD.Arguments=fD.Array;var e0e=iy,t0e=e0e,r0e={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},n0e=r0e,i0e=Ut,o0e=Ua,a0e=Ha,CD=pd,s0e=nr,ID=s0e("toStringTag");for(var S0 in n0e){var vD=i0e[S0],T0=vD&&vD.prototype;T0&&o0e(T0)!==ID&&a0e(T0,ID,S0),CD[S0]=CD.Array}var l0e=t0e,g0e=l0e,u0e=g0e,c0e=u0e,d0e=c0e,h0e=d0e,m9=h0e,y9=Te(m9),A0e=m9,pl=Te(A0e);function Ae(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var b9={exports:{}},f0e=Oe,C0e=an,pD=ai.f;f0e({target:"Object",stat:!0,forced:Object.defineProperty!==pD,sham:!C0e},{defineProperty:pD});var I0e=wt,$9=I0e.Object,v0e=b9.exports=function(r,e,n){return $9.defineProperty(r,e,n)};$9.defineProperty.sham&&(v0e.sham=!0);var p0e=b9.exports,m0e=p0e,w9=m0e,y0e=w9,b0e=y0e,$0e=b0e,w0e=$0e,_9=w0e,oy=Te(_9),_0e=Wa,ml=Array.isArray||function(r){return _0e(r)==="Array"},E0e=TypeError,S0e=9007199254740991,ay=function(t){if(t>S0e)throw E0e("Maximum allowed index exceeded");return t},mD=ml,T0e=ny,O0e=Pr,k0e=nr,x0e=k0e("species"),yD=Array,P0e=function(t){var r;return mD(t)&&(r=t.constructor,T0e(r)&&(r===yD||mD(r.prototype))?r=void 0:O0e(r)&&(r=r[x0e],r===null&&(r=void 0))),r===void 0?yD:r},R0e=P0e,sy=function(t,r){return new(R0e(t))(r===0?0:r)},D0e=bt,N0e=nr,M0e=Ad,B0e=N0e("species"),If=function(t){return M0e>=51||!D0e(function(){var r=[],e=r.constructor={};return e[B0e]=function(){return{foo:1}},r[t](Boolean).foo!==1})},F0e=Oe,L0e=bt,z0e=ml,j0e=Pr,V0e=jn,G0e=si,bD=ay,$D=md,W0e=sy,H0e=If,U0e=nr,Z0e=Ad,E9=U0e("isConcatSpreadable"),K0e=Z0e>=51||!L0e(function(){var t=[];return t[E9]=!1,t.concat()[0]!==t}),Y0e=function(t){if(!j0e(t))return!1;var r=t[E9];return r!==void 0?!!r:z0e(t)},X0e=!K0e||!H0e("concat");F0e({target:"Array",proto:!0,arity:1,forced:X0e},{concat:function(r){var e=V0e(this),n=W0e(e,0),i=0,o,a,s,l,g;for(o=-1,s=arguments.length;o<s;o++)if(g=o===-1?e:arguments[o],Y0e(g))for(l=G0e(g),bD(i+l),a=0;a<l;a++,i++)a in g&&$D(n,i,g[a]);else bD(i+1),$D(n,i++,g);return n.length=i,n}});var vf={},Q0e=FV,q0e=Y2,J0e=q0e.concat("length","prototype");vf.f=Object.getOwnPropertyNames||function(r){return Q0e(r,J0e)};var ly={},wD=df,e1e=si,t1e=md,r1e=Array,n1e=Math.max,S9=function(t,r,e){for(var n=e1e(t),i=wD(r,n),o=wD(e===void 0?n:e,n),a=r1e(n1e(o-i,0)),s=0;i<o;i++,s++)t1e(a,s,t[i]);return a.length=s,a},i1e=Wa,o1e=sa,T9=vf.f,a1e=S9,O9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s1e=function(t){try{return T9(t)}catch{return a1e(O9)}};ly.f=function(r){return O9&&i1e(r)==="Window"?s1e(r):T9(o1e(r))};var l1e=ai,iT=function(t,r,e){return l1e.f(t,r,e)},pf={},g1e=nr;pf.f=g1e;var _D=wt,u1e=vr,c1e=pf,d1e=ai.f,pr=function(t){var r=_D.Symbol||(_D.Symbol={});u1e(r,t)||d1e(r,t,{value:c1e.f(t)})},h1e=Kr,A1e=zn,f1e=nr,C1e=vd,k9=function(){var t=A1e("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=f1e("toPrimitive");r&&!r[n]&&C1e(r,n,function(i){return h1e(e,this)},{arity:1})},I1e=Cl,v1e=kt,p1e=Xm,m1e=jn,y1e=si,b1e=sy,ED=v1e([].push),rs=function(t){var r=t===1,e=t===2,n=t===3,i=t===4,o=t===6,a=t===7,s=t===5||o;return function(l,g,u,c){for(var d=m1e(l),h=p1e(d),A=I1e(g,u),f=y1e(h),C=0,I=c||b1e,v=r?I(l,f):e||a?I(l,0):void 0,p,y;f>C;C++)if((s||C in h)&&(p=h[C],y=A(p,C,d),t))if(r)v[C]=y;else if(y)switch(t){case 3:return!0;case 5:return p;case 6:return C;case 2:ED(v,p)}else switch(t){case 4:return!1;case 7:ED(v,p)}return o?-1:n||i?i:v}},yl={forEach:rs(0),map:rs(1),filter:rs(2),some:rs(3),every:rs(4),find:rs(5),findIndex:rs(6),filterReject:rs(7)},gy=Oe,uy=Ut,oT=Kr,$1e=kt,Rc=an,Dc=fd,w1e=bt,tn=vr,_1e=gr,G_=Vn,cy=sa,aT=qm,E1e=So,W_=Zg,vA=Xg,x9=ey,S1e=vf,P9=ly,T1e=Af,R9=Al,D9=ai,O1e=ry,N9=Ym,SD=vd,k1e=iT,sT=Id,x1e=ty,M9=hf,TD=Qm,P1e=nr,R1e=pf,D1e=pr,N1e=k9,M1e=Qg,B9=Il,dy=yl.forEach,Xn=x1e("hidden"),hy="Symbol",pA="prototype",B1e=B9.set,OD=B9.getterFor(hy),Co=Object[pA],sg=uy.Symbol,ph=sg&&sg[pA],F1e=uy.RangeError,L1e=uy.TypeError,O0=uy.QObject,F9=R9.f,lg=D9.f,L9=P9.f,z1e=N9.f,z9=$1e([].push),Ma=sT("symbols"),mf=sT("op-symbols"),j1e=sT("wks"),H_=!O0||!O0[pA]||!O0[pA].findChild,j9=function(t,r,e){var n=F9(Co,r);n&&delete Co[r],lg(t,r,e),n&&t!==Co&&lg(Co,r,n)},U_=Rc&&w1e(function(){return vA(lg({},"a",{get:function(){return lg(this,"a",{value:7}).a}})).a!==7})?j9:lg,k0=function(t,r){var e=Ma[t]=vA(ph);return B1e(e,{type:hy,tag:t,description:r}),Rc||(e.description=r),e},Ay=function(r,e,n){r===Co&&Ay(mf,e,n),G_(r);var i=aT(e);return G_(n),tn(Ma,i)?(n.enumerable?(tn(r,Xn)&&r[Xn][i]&&(r[Xn][i]=!1),n=vA(n,{enumerable:W_(0,!1)})):(tn(r,Xn)||lg(r,Xn,W_(1,{})),r[Xn][i]=!0),U_(r,i,n)):lg(r,i,n)},lT=function(r,e){G_(r);var n=cy(e),i=x9(n).concat(H9(n));return dy(i,function(o){(!Rc||oT(V9,n,o))&&Ay(r,o,n[o])}),r},V1e=function(r,e){return e===void 0?vA(r):lT(vA(r),e)},V9=function(r){var e=aT(r),n=oT(z1e,this,e);return this===Co&&tn(Ma,e)&&!tn(mf,e)?!1:n||!tn(this,e)||!tn(Ma,e)||tn(this,Xn)&&this[Xn][e]?n:!0},G9=function(r,e){var n=cy(r),i=aT(e);if(!(n===Co&&tn(Ma,i)&&!tn(mf,i))){var o=F9(n,i);return o&&tn(Ma,i)&&!(tn(n,Xn)&&n[Xn][i])&&(o.enumerable=!0),o}},W9=function(r){var e=L9(cy(r)),n=[];return dy(e,function(i){!tn(Ma,i)&&!tn(M9,i)&&z9(n,i)}),n},H9=function(t){var r=t===Co,e=L9(r?mf:cy(t)),n=[];return dy(e,function(i){tn(Ma,i)&&(!r||tn(Co,i))&&z9(n,Ma[i])}),n};Dc||(sg=function(){if(_1e(ph,this))throw new L1e("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:E1e(arguments[0]),e=TD(r),n=function(i){this===Co&&oT(n,mf,i),tn(this,Xn)&&tn(this[Xn],e)&&(this[Xn][e]=!1);var o=W_(1,i);try{U_(this,e,o)}catch(a){if(!(a instanceof F1e))throw a;j9(this,e,o)}};return Rc&&H_&&U_(Co,e,{configurable:!0,set:n}),k0(e,r)},ph=sg[pA],SD(ph,"toString",function(){return OD(this).tag}),SD(sg,"withoutSetter",function(t){return k0(TD(t),t)}),N9.f=V9,D9.f=Ay,O1e.f=lT,R9.f=G9,S1e.f=P9.f=W9,T1e.f=H9,R1e.f=function(t){return k0(P1e(t),t)},Rc&&k1e(ph,"description",{configurable:!0,get:function(){return OD(this).description}}));gy({global:!0,constructor:!0,wrap:!0,forced:!Dc,sham:!Dc},{Symbol:sg});dy(x9(j1e),function(t){D1e(t)});gy({target:hy,stat:!0,forced:!Dc},{useSetter:function(){H_=!0},useSimple:function(){H_=!1}});gy({target:"Object",stat:!0,forced:!Dc,sham:!Rc},{create:V1e,defineProperty:Ay,defineProperties:lT,getOwnPropertyDescriptor:G9});gy({target:"Object",stat:!0,forced:!Dc},{getOwnPropertyNames:W9});N1e();M1e(sg,hy);M9[Xn]=!0;var G1e=fd,U9=G1e&&!!Symbol.for&&!!Symbol.keyFor,W1e=Oe,H1e=zn,U1e=vr,Z1e=So,Z9=Id,K1e=U9,x0=Z9("string-to-symbol-registry"),Y1e=Z9("symbol-to-string-registry");W1e({target:"Symbol",stat:!0,forced:!K1e},{for:function(t){var r=Z1e(t);if(U1e(x0,r))return x0[r];var e=H1e("Symbol")(r);return x0[r]=e,Y1e[e]=r,e}});var X1e=Oe,Q1e=vr,q1e=uf,J1e=Cd,e$e=Id,t$e=U9,kD=e$e("symbol-to-string-registry");X1e({target:"Symbol",stat:!0,forced:!t$e},{keyFor:function(r){if(!q1e(r))throw new TypeError(J1e(r)+" is not a symbol");if(Q1e(kD,r))return kD[r]}});var r$e=kt,xD=ml,n$e=Ir,PD=Wa,i$e=So,RD=r$e([].push),o$e=function(t){if(n$e(t))return t;if(xD(t)){for(var r=t.length,e=[],n=0;n<r;n++){var i=t[n];typeof i=="string"?RD(e,i):(typeof i=="number"||PD(i)==="Number"||PD(i)==="String")&&RD(e,i$e(i))}var o=e.length,a=!0;return function(s,l){if(a)return a=!1,l;if(xD(this))return l;for(var g=0;g<o;g++)if(e[g]===s)return l}}},a$e=Oe,K9=zn,Y9=hd,s$e=Kr,yf=kt,X9=bt,DD=Ir,ND=uf,Q9=ff,l$e=o$e,g$e=fd,u$e=String,Ns=K9("JSON","stringify"),iI=yf(/./.exec),MD=yf("".charAt),c$e=yf("".charCodeAt),d$e=yf("".replace),h$e=yf(1 .toString),A$e=/[\uD800-\uDFFF]/g,BD=/^[\uD800-\uDBFF]$/,FD=/^[\uDC00-\uDFFF]$/,LD=!g$e||X9(function(){var t=K9("Symbol")("stringify detection");return Ns([t])!=="[null]"||Ns({a:t})!=="{}"||Ns(Object(t))!=="{}"}),zD=X9(function(){return Ns("\uDF06\uD834")!=='"\\udf06\\ud834"'||Ns("\uDEAD")!=='"\\udead"'}),f$e=function(t,r){var e=Q9(arguments),n=l$e(r);if(!(!DD(n)&&(t===void 0||ND(t))))return e[1]=function(i,o){if(DD(n)&&(o=s$e(n,this,u$e(i),o)),!ND(o))return o},Y9(Ns,null,e)},C$e=function(t,r,e){var n=MD(e,r-1),i=MD(e,r+1);return iI(BD,t)&&!iI(FD,i)||iI(FD,t)&&!iI(BD,n)?"\\u"+h$e(c$e(t,0),16):t};Ns&&a$e({target:"JSON",stat:!0,arity:3,forced:LD||zD},{stringify:function(r,e,n){var i=Q9(arguments),o=Y9(LD?f$e:Ns,null,i);return zD&&typeof o=="string"?d$e(o,A$e,C$e):o}});var I$e=Oe,v$e=fd,p$e=bt,q9=Af,m$e=jn,y$e=!v$e||p$e(function(){q9.f(1)});I$e({target:"Object",stat:!0,forced:y$e},{getOwnPropertySymbols:function(r){var e=q9.f;return e?e(m$e(r)):[]}});var b$e=pr;b$e("asyncIterator");var $$e=pr;$$e("hasInstance");var w$e=pr;w$e("isConcatSpreadable");var _$e=pr;_$e("iterator");var E$e=pr;E$e("match");var S$e=pr;S$e("matchAll");var T$e=pr;T$e("replace");var O$e=pr;O$e("search");var k$e=pr;k$e("species");var x$e=pr;x$e("split");var P$e=pr,R$e=k9;P$e("toPrimitive");R$e();var D$e=zn,N$e=pr,M$e=Qg;N$e("toStringTag");M$e(D$e("Symbol"),"Symbol");var B$e=pr;B$e("unscopables");var F$e=Ut,L$e=Qg;L$e(F$e.JSON,"JSON",!0);var z$e=wt,j$e=z$e.Symbol,V$e=j$e,J9=V$e,G$e=nr,W$e=ai.f,jD=G$e("metadata"),VD=Function.prototype;VD[jD]===void 0&&W$e(VD,jD,{value:null});var H$e=pr;H$e("asyncDispose");var U$e=pr;U$e("dispose");var Z$e=pr;Z$e("metadata");var K$e=J9,Y$e=K$e,X$e=zn,Q$e=kt,gT=X$e("Symbol"),q$e=gT.keyFor,J$e=Q$e(gT.prototype.valueOf),eG=gT.isRegisteredSymbol||function(r){try{return q$e(J$e(r))!==void 0}catch{return!1}},ewe=Oe,twe=eG;ewe({target:"Symbol",stat:!0},{isRegisteredSymbol:twe});var rwe=Id,tG=zn,nwe=kt,iwe=uf,owe=nr,Ep=tG("Symbol"),GD=Ep.isWellKnownSymbol,rG=tG("Object","getOwnPropertyNames"),awe=nwe(Ep.prototype.valueOf),WD=rwe("wks");for(var P0=0,HD=rG(Ep),swe=HD.length;P0<swe;P0++)try{var UD=HD[P0];iwe(Ep[UD])&&owe(UD)}catch{}var nG=function(r){if(GD&&GD(r))return!0;try{for(var e=awe(r),n=0,i=rG(WD),o=i.length;n<o;n++)if(WD[i[n]]==e)return!0}catch{}return!1},lwe=Oe,gwe=nG;lwe({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:gwe});var uwe=pr;uwe("matcher");var cwe=pr;cwe("observable");var dwe=Oe,hwe=eG;dwe({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:hwe});var Awe=Oe,fwe=nG;Awe({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:fwe});var Cwe=pr;Cwe("metadataKey");var Iwe=pr;Iwe("patternMatch");var vwe=pr;vwe("replaceAll");var pwe=Y$e,mwe=pwe,uT=mwe,Vu=Te(uT),ywe=pf,bwe=ywe.f("iterator"),$we=bwe,iG=$we,wwe=iG,_we=wwe,Ewe=_we,Swe=Ewe,oG=Swe,Twe=Te(oG);function ct(t){"@babel/helpers - typeof";return ct=typeof Vu=="function"&&typeof Twe=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Vu=="function"&&r.constructor===Vu&&r!==Vu.prototype?"symbol":typeof r},ct(t)}var Owe=pf,kwe=Owe.f("toPrimitive"),xwe=kwe,Pwe=xwe,Rwe=Pwe,Dwe=Rwe,Nwe=Dwe,Mwe=Nwe,Bwe=Mwe,Fwe=Te(Bwe);function Lwe(t,r){if(ct(t)!=="object"||t===null)return t;var e=t[Fwe];if(e!==void 0){var n=e.call(t,r||"default");if(ct(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function aG(t){var r=Lwe(t,"string");return ct(r)==="symbol"?r:String(r)}function ZD(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),oy(t,aG(n.key),n)}}function fe(t,r,e){return r&&ZD(t.prototype,r),e&&ZD(t,e),oy(t,"prototype",{writable:!1}),t}var zwe=Oe,jwe=ml;zwe({target:"Array",stat:!0},{isArray:jwe});var Vwe=wt,Gwe=Vwe.Array.isArray,Wwe=Gwe,sG=Wwe,Hwe=sG,Uwe=Hwe,Zwe=Uwe,Kwe=Zwe,Ywe=Kwe,lG=Te(Ywe);function Xwe(t){if(lG(t))return t}var Qwe=an,qwe=ml,Jwe=TypeError,e_e=Object.getOwnPropertyDescriptor,t_e=Qwe&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),gG=t_e?function(t,r){if(qwe(t)&&!e_e(t,"length").writable)throw new Jwe("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r},r_e=Oe,n_e=jn,i_e=si,o_e=gG,a_e=ay,s_e=bt,l_e=s_e(function(){return[].push.call({length:4294967296},1)!==4294967297}),g_e=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},u_e=l_e||!g_e();r_e({target:"Array",proto:!0,arity:1,forced:u_e},{push:function(r){var e=n_e(this),n=i_e(e),i=arguments.length;a_e(n+i);for(var o=0;o<i;o++)e[n]=arguments[o],n++;return o_e(e,n),n}});var c_e=Rr,d_e=c_e("Array").push,h_e=gr,A_e=d_e,R0=Array.prototype,f_e=function(t){var r=t.push;return t===R0||h_e(R0,t)&&r===R0.push?A_e:r},C_e=f_e,I_e=C_e,v_e=I_e,p_e=v_e,m_e=p_e,y_e=m_e,uG=y_e,b_e=Te(uG);function $_e(t,r){var e=t==null?null:typeof Vu<"u"&&y9(t)||t["@@iterator"];if(e!=null){var n,i,o,a,s=[],l=!0,g=!1;try{if(o=(e=e.call(t)).next,r===0){if(Object(e)!==e)return;l=!1}else for(;!(l=(n=o.call(e)).done)&&(b_e(s).call(s,n.value),s.length!==r);l=!0);}catch(u){g=!0,i=u}finally{try{if(!l&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(g)throw i}}return s}}var w_e=Oe,KD=ml,__e=ny,E_e=Pr,YD=df,S_e=si,T_e=sa,O_e=md,k_e=nr,x_e=If,P_e=ff,R_e=x_e("slice"),D_e=k_e("species"),D0=Array,N_e=Math.max;w_e({target:"Array",proto:!0,forced:!R_e},{slice:function(r,e){var n=T_e(this),i=S_e(n),o=YD(r,i),a=YD(e===void 0?i:e,i),s,l,g;if(KD(n)&&(s=n.constructor,__e(s)&&(s===D0||KD(s.prototype))?s=void 0:E_e(s)&&(s=s[D_e],s===null&&(s=void 0)),s===D0||s===void 0))return P_e(n,o,a);for(l=new(s===void 0?D0:s)(N_e(a-o,0)),g=0;o<a;o++,g++)o in n&&O_e(l,g,n[o]);return l.length=g,l}});var M_e=Rr,B_e=M_e("Array").slice,F_e=gr,L_e=B_e,N0=Array.prototype,z_e=function(t){var r=t.slice;return t===N0||F_e(N0,t)&&r===N0.slice?L_e:r},j_e=z_e,cG=j_e,V_e=cG,G_e=V_e,W_e=G_e,H_e=W_e,dG=H_e,U_e=Te(dG),Z_e=I9,K_e=Z_e,Y_e=K_e,X_e=Y_e,Q_e=X_e,hG=Te(Q_e);function Z_(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function AG(t,r){var e;if(t){if(typeof t=="string")return Z_(t,r);var n=U_e(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return hG(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z_(t,r)}}function q_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
701
701
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vt(t,r){return Xwe(t)||$_e(t,r)||AG(t,r)||q_e()}function J_e(t){if(lG(t))return Z_(t)}function eEe(t){if(typeof Vu<"u"&&y9(t)!=null||t["@@iterator"]!=null)return hG(t)}function tEe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
702
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sr(t){return J_e(t)||eEe(t)||AG(t)||tEe()}var rEe=J9,Za=Te(rEe),nEe=Rr,iEe=nEe("Array").concat,oEe=gr,aEe=iEe,M0=Array.prototype,sEe=function(t){var r=t.concat;return t===M0||oEe(M0,t)&&r===M0.concat?aEe:r},lEe=sEe,gEe=lEe,uEe=gEe,qg=Te(uEe),cEe=cG,Wr=Te(cEe),dEe=zn,hEe=kt,AEe=vf,fEe=Af,CEe=Vn,IEe=hEe([].concat),cT=dEe("Reflect","ownKeys")||function(r){var e=AEe.f(CEe(r)),n=fEe.f;return n?IEe(e,n(r)):e},vEe=Oe,pEe=cT;vEe({target:"Reflect",stat:!0},{ownKeys:pEe});var mEe
|
|
703
|
-
\v\f\r \u2028\u2029\uFEFF`,Y2e=kt,X2e=gf,Q2e=So,K_=dT,rN=Y2e("".replace),q2e=RegExp("^["+K_+"]+"),J2e=RegExp("(^|[^"+K_+"])["+K_+"]+$"),H0=function(t){return function(r){var e=Q2e(X2e(r));return t&1&&(e=rN(e,q2e,"")),t&2&&(e=rN(e,J2e,"$1")),e}},bG={start:H0(1),end:H0(2),trim:H0(3)},$G=Ut,eTe=
|
|
702
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sr(t){return J_e(t)||eEe(t)||AG(t)||tEe()}var rEe=J9,Za=Te(rEe),nEe=Rr,iEe=nEe("Array").concat,oEe=gr,aEe=iEe,M0=Array.prototype,sEe=function(t){var r=t.concat;return t===M0||oEe(M0,t)&&r===M0.concat?aEe:r},lEe=sEe,gEe=lEe,uEe=gEe,qg=Te(uEe),cEe=cG,Wr=Te(cEe),dEe=zn,hEe=kt,AEe=vf,fEe=Af,CEe=Vn,IEe=hEe([].concat),cT=dEe("Reflect","ownKeys")||function(r){var e=AEe.f(CEe(r)),n=fEe.f;return n?IEe(e,n(r)):e},vEe=Oe,pEe=cT;vEe({target:"Reflect",stat:!0},{ownKeys:pEe});var mEe=wt,yEe=mEe.Reflect.ownKeys,bEe=yEe,$Ee=bEe,wEe=$Ee,_Ee=Te(wEe),EEe=sG,lt=Te(EEe),SEe=Oe,TEe=yl.map,OEe=If,kEe=OEe("map");SEe({target:"Array",proto:!0,forced:!kEe},{map:function(r){return TEe(this,r,arguments.length>1?arguments[1]:void 0)}});var xEe=Rr,PEe=xEe("Array").map,REe=gr,DEe=PEe,B0=Array.prototype,NEe=function(t){var r=t.map;return t===B0||REe(B0,t)&&r===B0.map?DEe:r},MEe=NEe,BEe=MEe,FEe=BEe,vn=Te(FEe),LEe=Oe,zEe=jn,fG=ey,jEe=bt,VEe=jEe(function(){fG(1)});LEe({target:"Object",stat:!0,forced:VEe},{keys:function(r){return fG(zEe(r))}});var GEe=wt,WEe=GEe.Object.keys,HEe=WEe,UEe=HEe,ZEe=UEe,er=Te(ZEe),KEe=Oe,YEe=kt,CG=Date,XEe=YEe(CG.prototype.getTime);KEe({target:"Date",stat:!0},{now:function(){return XEe(new CG)}});var QEe=wt,qEe=QEe.Date.now,JEe=qEe,eSe=JEe,tSe=eSe,Sp=Te(tSe),rSe=bt,yd=function(t,r){var e=[][t];return!!e&&rSe(function(){e.call(null,r||function(){return 1},1)})},nSe=yl.forEach,iSe=yd,oSe=iSe("forEach"),aSe=oSe?[].forEach:function(r){return nSe(this,r,arguments.length>1?arguments[1]:void 0)},sSe=Oe,XD=aSe;sSe({target:"Array",proto:!0,forced:[].forEach!==XD},{forEach:XD});var lSe=Rr,gSe=lSe("Array").forEach,uSe=gSe,cSe=uSe,dSe=Ua,hSe=vr,ASe=gr,fSe=cSe,F0=Array.prototype,CSe={DOMTokenList:!0,NodeList:!0},IG=function(t){var r=t.forEach;return t===F0||ASe(F0,t)&&r===F0.forEach||hSe(CSe,dSe(t))?fSe:r},ISe=IG,Et=Te(ISe),vSe=Oe,pSe=kt,mSe=ml,ySe=pSe([].reverse),QD=[1,2];vSe({target:"Array",proto:!0,forced:String(QD)===String(QD.reverse())},{reverse:function(){return mSe(this)&&(this.length=this.length),ySe(this)}});var bSe=Rr,$Se=bSe("Array").reverse,wSe=gr,_Se=$Se,L0=Array.prototype,ESe=function(t){var r=t.reverse;return t===L0||wSe(L0,t)&&r===L0.reverse?_Se:r},SSe=ESe,vG=SSe,TSe=vG,gg=Te(TSe),qD=Cd,OSe=TypeError,pG=function(t,r){if(!delete t[r])throw new OSe("Cannot delete property "+qD(r)+" of "+qD(t))},kSe=Oe,xSe=jn,PSe=df,RSe=Jm,DSe=si,NSe=gG,MSe=ay,BSe=sy,FSe=md,z0=pG,LSe=If,zSe=LSe("splice"),jSe=Math.max,VSe=Math.min;kSe({target:"Array",proto:!0,forced:!zSe},{splice:function(r,e){var n=xSe(this),i=DSe(n),o=PSe(r,i),a=arguments.length,s,l,g,u,c,d;for(a===0?s=l=0:a===1?(s=0,l=i-o):(s=a-2,l=VSe(jSe(RSe(e),0),i-o)),MSe(i+s-l),g=BSe(n,l),u=0;u<l;u++)c=o+u,c in n&&FSe(g,u,n[c]);if(g.length=l,s<l){for(u=o;u<i-l;u++)c=u+l,d=u+s,c in n?n[d]=n[c]:z0(n,d);for(u=i;u>i-l+s;u--)z0(n,u-1)}else if(s>l)for(u=i-l;u>o;u--)c=u+l-1,d=u+s-1,c in n?n[d]=n[c]:z0(n,d);for(u=0;u<s;u++)n[u+o]=arguments[u+2];return NSe(n,i-l+s),g}});var GSe=Rr,WSe=GSe("Array").splice,HSe=gr,USe=WSe,j0=Array.prototype,ZSe=function(t){var r=t.splice;return t===j0||HSe(j0,t)&&r===j0.splice?USe:r},KSe=ZSe,YSe=KSe,XSe=YSe,Yo=Te(XSe),QSe=Oe,qSe=K2.includes,JSe=bt,e2e=JSe(function(){return!Array(1).includes()});QSe({target:"Array",proto:!0,forced:e2e},{includes:function(r){return qSe(this,r,arguments.length>1?arguments[1]:void 0)}});var t2e=Rr,r2e=t2e("Array").includes,n2e=Pr,i2e=Wa,o2e=nr,a2e=o2e("match"),s2e=function(t){var r;return n2e(t)&&((r=t[a2e])!==void 0?!!r:i2e(t)==="RegExp")},l2e=s2e,g2e=TypeError,u2e=function(t){if(l2e(t))throw new g2e("The method doesn't accept regular expressions");return t},c2e=nr,d2e=c2e("match"),h2e=function(t){var r=/./;try{"/./"[t](r)}catch{try{return r[d2e]=!1,"/./"[t](r)}catch{}}return!1},A2e=Oe,f2e=kt,C2e=u2e,I2e=gf,JD=So,v2e=h2e,p2e=f2e("".indexOf);A2e({target:"String",proto:!0,forced:!v2e("includes")},{includes:function(r){return!!~p2e(JD(I2e(this)),JD(C2e(r)),arguments.length>1?arguments[1]:void 0)}});var m2e=Rr,y2e=m2e("String").includes,eN=gr,b2e=r2e,$2e=y2e,V0=Array.prototype,G0=String.prototype,w2e=function(t){var r=t.includes;return t===V0||eN(V0,t)&&r===V0.includes?b2e:typeof t=="string"||t===G0||eN(G0,t)&&r===G0.includes?$2e:r},_2e=w2e,E2e=_2e,S2e=E2e,Ms=Te(S2e),T2e=Oe,O2e=bt,k2e=jn,mG=Cf,x2e=t9,P2e=O2e(function(){mG(1)});T2e({target:"Object",stat:!0,forced:P2e,sham:!x2e},{getPrototypeOf:function(r){return mG(k2e(r))}});var R2e=wt,D2e=R2e.Object.getPrototypeOf,N2e=D2e,yG=N2e,M2e=yG,tN=Te(M2e),B2e=Oe,F2e=yl.filter,L2e=If,z2e=L2e("filter");B2e({target:"Array",proto:!0,forced:!z2e},{filter:function(r){return F2e(this,r,arguments.length>1?arguments[1]:void 0)}});var j2e=Rr,V2e=j2e("Array").filter,G2e=gr,W2e=V2e,W0=Array.prototype,H2e=function(t){var r=t.filter;return t===W0||G2e(W0,t)&&r===W0.filter?W2e:r},U2e=H2e,Z2e=U2e,K2e=Z2e,Mr=Te(K2e),dT=`
|
|
703
|
+
\v\f\r \u2028\u2029\uFEFF`,Y2e=kt,X2e=gf,Q2e=So,K_=dT,rN=Y2e("".replace),q2e=RegExp("^["+K_+"]+"),J2e=RegExp("(^|[^"+K_+"])["+K_+"]+$"),H0=function(t){return function(r){var e=Q2e(X2e(r));return t&1&&(e=rN(e,q2e,"")),t&2&&(e=rN(e,J2e,"$1")),e}},bG={start:H0(1),end:H0(2),trim:H0(3)},$G=Ut,eTe=bt,tTe=kt,rTe=So,nTe=bG.trim,nN=dT,Bh=$G.parseInt,iN=$G.Symbol,oN=iN&&iN.iterator,wG=/^[+-]?0x/i,iTe=tTe(wG.exec),oTe=Bh(nN+"08")!==8||Bh(nN+"0x16")!==22||oN&&!eTe(function(){Bh(Object(oN))}),aTe=oTe?function(r,e){var n=nTe(rTe(r));return Bh(n,e>>>0||(iTe(wG,n)?16:10))}:Bh,sTe=Oe,aN=aTe;sTe({global:!0,forced:parseInt!==aN},{parseInt:aN});var lTe=wt,gTe=lTe.parseInt,uTe=gTe,cTe=uTe,dTe=cTe,oo=Te(dTe),hTe=Oe,ATe=W2,fTe=K2.indexOf,CTe=yd,Y_=ATe([].indexOf),_G=!!Y_&&1/Y_([1],1,-0)<0,ITe=_G||!CTe("indexOf");hTe({target:"Array",proto:!0,forced:ITe},{indexOf:function(r){var e=arguments.length>1?arguments[1]:void 0;return _G?Y_(this,r,e)||0:fTe(this,r,e)}});var vTe=Rr,pTe=vTe("Array").indexOf,mTe=gr,yTe=pTe,U0=Array.prototype,bTe=function(t){var r=t.indexOf;return t===U0||mTe(U0,t)&&r===U0.indexOf?yTe:r},$Te=bTe,wTe=$Te,_Te=wTe,Tt=Te(_Te),ETe=Oe,STe=an,TTe=Xg;ETe({target:"Object",stat:!0,sham:!STe},{create:TTe});var OTe=wt,kTe=OTe.Object,xTe=function(r,e){return kTe.create(r,e)},PTe=xTe,EG=PTe,RTe=EG,Bs=Te(RTe),X_=wt,DTe=hd;X_.JSON||(X_.JSON={stringify:JSON.stringify});var NTe=function(r,e,n){return DTe(X_.JSON.stringify,null,arguments)},MTe=NTe,BTe=MTe,FTe=BTe,bd=Te(FTe),LTe=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",zTe=TypeError,SG=function(t,r){if(t<r)throw new zTe("Not enough arguments");return t},TG=Ut,jTe=hd,VTe=Ir,GTe=LTe,WTe=fl,HTe=ff,UTe=SG,ZTe=TG.Function,KTe=/MSIE .\./.test(WTe)||GTe&&function(){var t=TG.Bun.version.split(".");return t.length<3||t[0]==="0"&&(t[1]<3||t[1]==="3"&&t[2]==="0")}(),OG=function(t,r){var e=r?2:1;return KTe?function(n,i){var o=UTe(arguments.length,1)>e,a=VTe(n)?n:ZTe(n),s=o?HTe(arguments,e):[],l=o?function(){jTe(a,this,s)}:a;return r?t(l,i):t(l)}:t},YTe=Oe,kG=Ut,XTe=OG,sN=XTe(kG.setInterval,!0);YTe({global:!0,bind:!0,forced:kG.setInterval!==sN},{setInterval:sN});var QTe=Oe,xG=Ut,qTe=OG,lN=qTe(xG.setTimeout,!0);QTe({global:!0,bind:!0,forced:xG.setTimeout!==lN},{setTimeout:lN});var JTe=wt,eOe=JTe.setTimeout,tOe=eOe,mo=Te(tOe),rOe=jn,gN=df,nOe=si,iOe=function(r){for(var e=rOe(this),n=nOe(e),i=arguments.length,o=gN(i>1?arguments[1]:void 0,n),a=i>2?arguments[2]:void 0,s=a===void 0?n:gN(a,n);s>o;)e[o++]=r;return e},oOe=Oe,aOe=iOe;oOe({target:"Array",proto:!0},{fill:aOe});var sOe=Rr,lOe=sOe("Array").fill,gOe=gr,uOe=lOe,Z0=Array.prototype,cOe=function(t){var r=t.fill;return t===Z0||gOe(Z0,t)&&r===Z0.fill?uOe:r},dOe=cOe,hOe=dOe,AOe=hOe,bf=Te(AOe);/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
|
704
704
|
* http://naver.github.io/egjs
|
|
705
705
|
*
|
|
706
706
|
* Forked By Naver egjs
|
|
@@ -725,12 +725,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
725
725
|
`;)Xr();t=!0}}if(gt==="/"&&yu()==="/"){for(;gt!=""&>!=`
|
|
726
726
|
`;)Xr();t=!0}if(gt==="/"&&yu()==="*"){for(;gt!="";)if(gt==="*"&&yu()==="/"){Xr(),Xr();break}else Xr();t=!0}for(;gt===" "||gt===" "||gt===`
|
|
727
727
|
`||gt==="\r";)Xr()}while(t);if(gt===""){Kn=kn.DELIMITER;return}var e=gt+yu();if(wN[e]){Kn=kn.DELIMITER,Ke=e,Xr(),Xr();return}if(wN[gt]){Kn=kn.DELIMITER,Ke=gt,Xr();return}if(_N(gt)||gt==="-"){for(Ke+=gt,Xr();_N(gt);)Ke+=gt,Xr();Ke==="false"?Ke=!1:Ke==="true"?Ke=!0:isNaN(Number(Ke))||(Ke=Number(Ke)),Kn=kn.IDENTIFIER;return}if(gt==='"'){for(Xr();gt!=""&&(gt!='"'||gt==='"'&&yu()==='"');)gt==='"'?(Ke+=gt,Xr()):gt==="\\"&&yu()==="n"?(Ke+=`
|
|
728
|
-
`,Xr()):Ke+=gt,Xr();if(gt!='"')throw xn('End of string " expected');Xr(),Kn=kn.IDENTIFIER;return}for(Kn=kn.UNKNOWN;gt!="";)Ke+=gt,Xr();throw new SyntaxError('Syntax error in part "'+IW(Ke,30)+'"')}function xke(){var t={};if(Tke(),Qt(),Ke==="strict"&&(t.strict=!0,Qt()),(Ke==="graph"||Ke==="digraph")&&(t.type=Ke,Qt()),Kn===kn.IDENTIFIER&&(t.id=Ke,Qt()),Ke!="{")throw xn("Angle bracket { expected");if(Qt(),AW(t),Ke!="}")throw xn("Angle bracket } expected");if(Qt(),Ke!=="")throw xn("End of file expected");return Qt(),delete t.node,delete t.edge,delete t.graph,t}function AW(t){for(;Ke!==""&&Ke!="}";)Pke(t),Ke===";"&&Qt()}function Pke(t){var r=fW(t);if(r){CW(t,r);return}var e=Rke(t);if(!e){if(Kn!=kn.IDENTIFIER)throw xn("Identifier expected");var n=Ke;if(Qt(),Ke==="="){if(Qt(),Kn!=kn.IDENTIFIER)throw xn("Identifier expected");t[n]=Ke,Qt()}else Dke(t,n)}}function fW(t){var r=null;if(Ke==="subgraph"&&(r={},r.type="subgraph",Qt(),Kn===kn.IDENTIFIER&&(r.id=Ke,Qt())),Ke==="{"){if(Qt(),r||(r={}),r.parent=t,r.node=t.node,r.edge=t.edge,r.graph=t.graph,AW(r),Ke!="}")throw xn("Angle bracket } expected");Qt(),delete r.node,delete r.edge,delete r.graph,delete r.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(r)}return r}function Rke(t){return Ke==="node"?(Qt(),t.node=zh(),"node"):Ke==="edge"?(Qt(),t.edge=zh(),"edge"):Ke==="graph"?(Qt(),t.graph=zh(),"graph"):null}function Dke(t,r){var e={id:r},n=zh();n&&(e.attr=n),dW(t,e),CW(t,r)}function CW(t,r){for(;Ke==="->"||Ke==="--";){var e,n=Ke;Qt();var i=fW(t);if(i)e=i;else{if(Kn!=kn.IDENTIFIER)throw xn("Identifier or subgraph expected");e=Ke,dW(t,{id:e}),Qt()}var o=zh(),a=hW(t,r,e,n,o);kke(t,a),r=e}}function zh(){for(var t,r=null,e={dashed:!0,solid:!1,dotted:[1,5]},n={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},i=new Array,o=new Array;Ke==="[";){for(Qt(),r={};Ke!==""&&Ke!="]";){if(Kn!=kn.IDENTIFIER)throw xn("Attribute name expected");var a=Ke;if(Qt(),Ke!="=")throw xn("Equal sign = expected");if(Qt(),Kn!=kn.IDENTIFIER)throw xn("Attribute value expected");var s=Ke;a==="style"&&(s=e[s]);var l;a==="arrowhead"&&(l=n[s],a="arrows",s={to:{enabled:!0,type:l}}),a==="arrowtail"&&(l=n[s],a="arrows",s={from:{enabled:!0,type:l}}),i.push({attr:r,name:a,value:s}),o.push(a),Qt(),Ke==","&&Qt()}if(Ke!="]")throw xn("Bracket ] expected");Qt()}if(Ms(o).call(o,"dir")){var g={};for(g.arrows={},t=0;t<i.length;t++)if(i[t].name==="arrows")if(i[t].value.to!=null)g.arrows.to=t;else if(i[t].value.from!=null)g.arrows.from=t;else throw xn("Invalid value of arrows");else i[t].name==="dir"&&(g.dir=t);var u=i[g.dir].value;if(!Ms(o).call(o,"arrows"))if(u==="both")i.push({attr:i[g.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),g.arrows.to=i.length-1,i.push({attr:i[g.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),g.arrows.from=i.length-1;else if(u==="forward")i.push({attr:i[g.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),g.arrows.to=i.length-1;else if(u==="back")i.push({attr:i[g.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),g.arrows.from=i.length-1;else if(u==="none")i.push({attr:i[g.dir].attr,name:"arrows",value:""}),g.arrows.to=i.length-1;else throw xn('Invalid dir type "'+u+'"');var c,d;if(u==="both")g.arrows.to&&g.arrows.from?(d=i[g.arrows.to].value.to.type,c=i[g.arrows.from].value.from.type,i[g.arrows.to]={attr:i[g.arrows.to].attr,name:i[g.arrows.to].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}},Yo(i).call(i,g.arrows.from,1)):g.arrows.to?(d=i[g.arrows.to].value.to.type,c="arrow",i[g.arrows.to]={attr:i[g.arrows.to].attr,name:i[g.arrows.to].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}):g.arrows.from&&(d="arrow",c=i[g.arrows.from].value.from.type,i[g.arrows.from]={attr:i[g.arrows.from].attr,name:i[g.arrows.from].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}});else if(u==="back")g.arrows.to&&g.arrows.from?(d="",c=i[g.arrows.from].value.from.type,i[g.arrows.from]={attr:i[g.arrows.from].attr,name:i[g.arrows.from].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}):g.arrows.to?(d="",c="arrow",g.arrows.from=g.arrows.to,i[g.arrows.from]={attr:i[g.arrows.from].attr,name:i[g.arrows.from].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}):g.arrows.from&&(d="",c=i[g.arrows.from].value.from.type,i[g.arrows.to]={attr:i[g.arrows.from].attr,name:i[g.arrows.from].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}),i[g.arrows.from]={attr:i[g.arrows.from].attr,name:i[g.arrows.from].name,value:{from:{enabled:!0,type:i[g.arrows.from].value.from.type}}};else if(u==="none"){var h;g.arrows.to?h=g.arrows.to:h=g.arrows.from,i[h]={attr:i[h].attr,name:i[h].name,value:""}}else if(u==="forward")g.arrows.to&&g.arrows.from?(d=i[g.arrows.to].value.to.type,c="",i[g.arrows.to]={attr:i[g.arrows.to].attr,name:i[g.arrows.to].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}):g.arrows.to?(d=i[g.arrows.to].value.to.type,c="",i[g.arrows.to]={attr:i[g.arrows.to].attr,name:i[g.arrows.to].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}):g.arrows.from&&(d="arrow",c="",g.arrows.to=g.arrows.from,i[g.arrows.to]={attr:i[g.arrows.to].attr,name:i[g.arrows.to].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}),i[g.arrows.to]={attr:i[g.arrows.to].attr,name:i[g.arrows.to].name,value:{to:{enabled:!0,type:i[g.arrows.to].value.to.type}}};else throw xn('Invalid dir type "'+u+'"');Yo(i).call(i,g.dir,1)}var A;if(Ms(o).call(o,"penwidth")){var f=[];for(A=i.length,t=0;t<A;t++)i[t].name!=="width"&&(i[t].name==="penwidth"&&(i[t].name="width"),f.push(i[t]));i=f}for(A=i.length,t=0;t<A;t++)Oke(i[t].attr,i[t].name,i[t].value);return r}function xn(t){return new SyntaxError(t+', got "'+IW(Ke,30)+'" (char '+Fc+")")}function IW(t,r){return t.length<=r?t:t.substr(0,27)+"..."}function Nke(t,r,e){lt(t)?Et(t).call(t,function(n){lt(r)?Et(r).call(r,function(i){e(n,i)}):e(n,r)}):lt(r)?Et(r).call(r,function(n){e(t,n)}):e(t,r)}function K0(t,r,e){for(var n=r.split("."),i=n.pop(),o=t,a=0;a<n.length;a++){var s=n[a];s in o||(o[s]={}),o=o[s]}return o[i]=e,t}function EN(t,r){var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=r[n];lt(i)?Et(i).call(i,function(o){K0(e,o,t[n])}):typeof i=="string"?K0(e,i,t[n]):K0(e,n,t[n])}return e}function Mke(t){var r=Ske(t),e={nodes:[],edges:[],options:{}};if(r.nodes){var n;Et(n=r.nodes).call(n,function(a){var s={id:a.id,label:String(a.label||a.id)};il(s,EN(a.attr,cW)),s.image&&(s.shape="image"),e.nodes.push(s)})}if(r.edges){var i,o=function(s){var l={from:s.from,to:s.to};return il(l,EN(s.attr,$T)),l.arrows==null&&s.type==="->"&&(l.arrows="to"),l};Et(i=r.edges).call(i,function(a){var s,l;if(a.from instanceof Object?s=a.from.nodes:s={id:a.from},a.to instanceof Object?l=a.to.nodes:l={id:a.to},a.from instanceof Object&&a.from.edges){var g;Et(g=a.from.edges).call(g,function(c){var d=o(c);e.edges.push(d)})}if(Nke(s,l,function(c,d){var h=hW(e,c.id,d.id,a.type,a.attr),A=o(h);e.edges.push(A)}),a.to instanceof Object&&a.to.edges){var u;Et(u=a.to.edges).call(u,function(c){var d=o(c);e.edges.push(d)})}})}return r.attr&&(e.options=r.attr),e}function Bke(t,r){var e,n={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};r!=null&&(r.fixed!=null&&(n.nodes.fixed=r.fixed),r.parseColor!=null&&(n.nodes.parseColor=r.parseColor),r.inheritColor!=null&&(n.edges.inheritColor=r.inheritColor));var i=t.edges,o=vn(i).call(i,function(s){var l={from:s.source,id:s.id,to:s.target};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.type==="Directed"&&(l.arrows="to"),s.color&&n.edges.inheritColor===!1&&(l.color=s.color),l}),a=vn(e=t.nodes).call(e,function(s){var l={id:s.id,fixed:n.nodes.fixed&&s.x!=null&&s.y!=null};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.size!=null&&(l.size=s.size),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.title!=null&&(l.title=s.title),s.x!=null&&(l.x=s.x),s.y!=null&&(l.y=s.y),s.color!=null&&(n.nodes.parseColor===!0?l.color=s.color:l.color={background:s.color,border:s.color,highlight:{background:s.color,border:s.color},hover:{background:s.color,border:s.color}}),l});return{nodes:a,edges:o}}var Fke={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},Lke={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},zke={addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},jke={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},Vke={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},Gke={addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},Wke={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},Hke={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},Uke={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},Zke={addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},Kke={addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},Yke=Object.freeze({__proto__:null,cn:Hke,cs:Kke,de:Lke,en:Fke,es:zke,fr:Zke,it:jke,nl:Vke,pt:Gke,ru:Wke,uk:Uke});function Xke(t,r){try{var e=r.split(/[-_ /]/,2),n=vt(e,2),i=n[0],o=n[1],a=i!=null?i.toLowerCase():null,s=o!=null?o.toUpperCase():null;if(a&&s){var l=a+"-"+s;if(Object.prototype.hasOwnProperty.call(t,l))return l;var g;console.warn(qg(g="Unknown variant ".concat(s," of language ")).call(g,a,"."))}if(a){var u=a;if(Object.prototype.hasOwnProperty.call(t,u))return u;console.warn("Unknown language ".concat(a))}return console.warn("Unknown locale ".concat(r,", falling back to English.")),"en"}catch(c){return console.error(c),console.warn("Unexpected error while normalizing locale ".concat(r,", falling back to English.")),"en"}}var Qke=function(){function t(){Ae(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return fe(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var e=this.image.width,n=this.image.height;this.width=e,this.height=n;var i=Math.floor(n/2),o=Math.floor(n/4),a=Math.floor(n/8),s=Math.floor(n/16),l=Math.floor(e/2),g=Math.floor(e/4),u=Math.floor(e/8),c=Math.floor(e/16);this.canvas.width=3*g,this.canvas.height=i,this.coordinates=[[0,0,l,i],[l,0,g,o],[l,o,u,a],[5*u,o,c,s]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var e=this.canvas.getContext("2d"),n=this.coordinates[0];e.drawImage(this.image,n[0],n[1],n[2],n[3]);for(var i=1;i<this.NUM_ITERATIONS;i++){var o=this.coordinates[i-1],a=this.coordinates[i];e.drawImage(this.canvas,o[0],o[1],o[2],o[3],a[0],a[1],a[2],a[3])}}},{key:"drawImageAtPosition",value:function(e,n,i,o,a,s){if(this.initialized())if(n>2){n*=.5;for(var l=0;n>2&&l<this.NUM_ITERATIONS;)n*=.5,l+=1;l>=this.NUM_ITERATIONS&&(l=this.NUM_ITERATIONS-1);var g=this.coordinates[l];e.drawImage(this.canvas,g[0],g[1],g[2],g[3],i,o,a,s)}else e.drawImage(this.image,i,o,a,s)}}]),t}(),qke=function(){function t(r){Ae(this,t),this.images={},this.imageBroken={},this.callback=r}return fe(t,[{key:"_tryloadBrokenUrl",value:function(e,n,i){if(!(e===void 0||i===void 0)){if(n===void 0){console.warn("No broken url image defined");return}i.image.onerror=function(){console.error("Could not load brokenImage:",n)},i.image.src=n}}},{key:"_redrawWithImage",value:function(e){this.callback&&this.callback(e)}},{key:"load",value:function(e,n){var i=this,o=this.images[e];if(o)return o;var a=new Qke;return this.images[e]=a,a.image.onload=function(){i._fixImageCoordinates(a.image),a.init(),i._redrawWithImage(a)},a.image.onerror=function(){console.error("Could not load image:",e),i._tryloadBrokenUrl(e,n,a)},a.image.src=e,a}},{key:"_fixImageCoordinates",value:function(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}]),t}(),vW={exports:{}},Jke=yt,exe=Jke(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),txe=yt,rxe=Pr,nxe=Wa,SN=exe,yv=Object.isExtensible,ixe=txe(function(){yv(1)}),oxe=ixe||SN?function(r){return!rxe(r)||SN&&nxe(r)==="ArrayBuffer"?!1:yv?yv(r):!0}:yv,axe=yt,pW=!axe(function(){return Object.isExtensible(Object.preventExtensions({}))}),sxe=Oe,lxe=kt,gxe=hf,uxe=Pr,wT=vr,cxe=ai.f,TN=vf,dxe=ly,_T=oxe,hxe=Qm,Axe=pW,mW=!1,Ba=hxe("meta"),fxe=0,ET=function(t){cxe(t,Ba,{value:{objectID:"O"+fxe++,weakData:{}}})},Cxe=function(t,r){if(!uxe(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!wT(t,Ba)){if(!_T(t))return"F";if(!r)return"E";ET(t)}return t[Ba].objectID},Ixe=function(t,r){if(!wT(t,Ba)){if(!_T(t))return!0;if(!r)return!1;ET(t)}return t[Ba].weakData},vxe=function(t){return Axe&&mW&&_T(t)&&!wT(t,Ba)&&ET(t),t},pxe=function(){mxe.enable=function(){},mW=!0;var t=TN.f,r=lxe([].splice),e={};e[Ba]=1,t(e).length&&(TN.f=function(n){for(var i=t(n),o=0,a=i.length;o<a;o++)if(i[o]===Ba){r(i,o,1);break}return i},sxe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dxe.f}))},mxe=vW.exports={enable:pxe,fastKey:Cxe,getWeakData:Ixe,onFreeze:vxe};gxe[Ba]=!0;var vy=vW.exports,yxe=Cl,bxe=Kr,$xe=Vn,wxe=Cd,_xe=l9,Exe=si,ON=gr,Sxe=nT,Txe=iy,kN=s9,Oxe=TypeError,bv=function(t,r){this.stopped=t,this.result=r},xN=bv.prototype,bl=function(t,r,e){var n=e&&e.that,i=!!(e&&e.AS_ENTRIES),o=!!(e&&e.IS_RECORD),a=!!(e&&e.IS_ITERATOR),s=!!(e&&e.INTERRUPTED),l=yxe(r,n),g,u,c,d,h,A,f,C=function(v){return g&&kN(g,"normal",v),new bv(!0,v)},I=function(v){return i?($xe(v),s?l(v[0],v[1],C):l(v[0],v[1])):s?l(v,C):l(v)};if(o)g=t.iterator;else if(a)g=t;else{if(u=Txe(t),!u)throw new Oxe(wxe(t)+" is not iterable");if(_xe(u)){for(c=0,d=Exe(t);d>c;c++)if(h=I(t[c]),h&&ON(xN,h))return h;return new bv(!1)}g=Sxe(t,u)}for(A=o?t.next:g.next;!(f=bxe(A,g)).done;){try{h=I(f.value)}catch(v){kN(g,"throw",v)}if(typeof h=="object"&&h&&ON(xN,h))return h}return new bv(!1)},kxe=gr,xxe=TypeError,py=function(t,r){if(kxe(r,t))return t;throw new xxe("Incorrect invocation")},Pxe=Oe,Rxe=Ut,Dxe=vy,Nxe=yt,Mxe=Ha,Bxe=bl,Fxe=py,Lxe=Ir,zxe=Pr,jxe=Kg,Vxe=Qg,Gxe=ai.f,Wxe=yl.forEach,Hxe=an,yW=Il,Uxe=yW.set,Zxe=yW.getterFor,ST=function(t,r,e){var n=t.indexOf("Map")!==-1,i=t.indexOf("Weak")!==-1,o=n?"set":"add",a=Rxe[t],s=a&&a.prototype,l={},g;if(!Hxe||!Lxe(a)||!(i||s.forEach&&!Nxe(function(){new a().entries().next()})))g=e.getConstructor(r,t,n,o),Dxe.enable();else{g=r(function(d,h){Uxe(Fxe(d,u),{type:t,collection:new a}),jxe(h)||Bxe(h,d[o],{that:d,AS_ENTRIES:n})});var u=g.prototype,c=Zxe(t);Wxe(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(d){var h=d==="add"||d==="set";d in s&&!(i&&d==="clear")&&Mxe(u,d,function(A,f){var C=c(this).collection;if(!h&&i&&!zxe(A))return d==="get"?void 0:!1;var I=C[d](A===0?0:A,f);return h?this:I})}),i||Gxe(u,"size",{configurable:!0,get:function(){return c(this).collection.size}})}return Vxe(g,t,!1,!0),l[t]=g,Pxe({global:!0,forced:!0},l),i||e.setStrong(g,t,n),g},Kxe=vd,TT=function(t,r,e){for(var n in r)e&&e.unsafe&&t[n]?t[n]=r[n]:Kxe(t,n,r[n],e);return t},Yxe=zn,Xxe=iT,Qxe=nr,qxe=an,PN=Qxe("species"),bW=function(t){var r=Yxe(t);qxe&&r&&!r[PN]&&Xxe(r,PN,{configurable:!0,get:function(){return this}})},Jxe=Xg,ePe=iT,RN=TT,tPe=Cl,rPe=py,nPe=Kg,iPe=bl,oPe=eT,lI=tT,aPe=bW,ah=an,DN=vy.fastKey,$W=Il,NN=$W.set,Y0=$W.getterFor,wW={getConstructor:function(t,r,e,n){var i=t(function(g,u){rPe(g,o),NN(g,{type:r,index:Jxe(null),first:void 0,last:void 0,size:0}),ah||(g.size=0),nPe(u)||iPe(u,g[n],{that:g,AS_ENTRIES:e})}),o=i.prototype,a=Y0(r),s=function(g,u,c){var d=a(g),h=l(g,u),A,f;return h?h.value=c:(d.last=h={index:f=DN(u,!0),key:u,value:c,previous:A=d.last,next:void 0,removed:!1},d.first||(d.first=h),A&&(A.next=h),ah?d.size++:g.size++,f!=="F"&&(d.index[f]=h)),g},l=function(g,u){var c=a(g),d=DN(u),h;if(d!=="F")return c.index[d];for(h=c.first;h;h=h.next)if(h.key===u)return h};return RN(o,{clear:function(){for(var u=this,c=a(u),d=c.index,h=c.first;h;)h.removed=!0,h.previous&&(h.previous=h.previous.next=void 0),delete d[h.index],h=h.next;c.first=c.last=void 0,ah?c.size=0:u.size=0},delete:function(g){var u=this,c=a(u),d=l(u,g);if(d){var h=d.next,A=d.previous;delete c.index[d.index],d.removed=!0,A&&(A.next=h),h&&(h.previous=A),c.first===d&&(c.first=h),c.last===d&&(c.last=A),ah?c.size--:u.size--}return!!d},forEach:function(u){for(var c=a(this),d=tPe(u,arguments.length>1?arguments[1]:void 0),h;h=h?h.next:c.first;)for(d(h.value,h.key,this);h&&h.removed;)h=h.previous},has:function(u){return!!l(this,u)}}),RN(o,e?{get:function(u){var c=l(this,u);return c&&c.value},set:function(u,c){return s(this,u===0?0:u,c)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),ah&&ePe(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,r,e){var n=r+" Iterator",i=Y0(r),o=Y0(n);oPe(t,r,function(a,s){NN(this,{type:n,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=void 0,lI(void 0,!0)):lI(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},e?"entries":"values",!e,!0),aPe(r)}},sPe=ST,lPe=wW;sPe("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},lPe);var gPe=$t,uPe=gPe.Map,cPe=uPe,dPe=cPe,hPe=dPe,my=Te(hPe),APe=function(){function t(){Ae(this,t),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Or(this.options,this.defaultOptions)}return fe(t,[{key:"setOptions",value:function(e){var n=["useDefaultGroups"];if(e!==void 0){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&Tt(n).call(n,i)===-1){var o=e[i];this.add(i,o)}}}},{key:"clear",value:function(){this._groups=new my,this._groupNames=[]}},{key:"get",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._groups.get(e);if(i===void 0&&n)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var o=this._groupIndex%this._groupNames.length;++this._groupIndex,i={},i.color=this._groups.get(this._groupNames[o]),this._groups.set(e,i)}else{var a=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,i={},i.color=this._defaultGroups[a],this._groups.set(e,i)}return i}},{key:"add",value:function(e,n){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,n),n}}]),t}(),fPe=Oe;fPe({target:"Number",stat:!0},{isNaN:function(r){return r!==r}});var CPe=$t,IPe=CPe.Number.isNaN,vPe=IPe,pPe=vPe,mPe=pPe,oE=Te(mPe),yPe=Ut,bPe=yPe.isFinite,$Pe=Number.isFinite||function(r){return typeof r=="number"&&bPe(r)},wPe=Oe,_Pe=$Pe;wPe({target:"Number",stat:!0},{isFinite:_Pe});var EPe=$t,SPe=EPe.Number.isFinite,TPe=SPe,OPe=TPe,kPe=OPe,Ql=Te(kPe),xPe=Oe,PPe=yl.some,RPe=yd,DPe=RPe("some");xPe({target:"Array",proto:!0,forced:!DPe},{some:function(r){return PPe(this,r,arguments.length>1?arguments[1]:void 0)}});var NPe=Rr,MPe=NPe("Array").some,BPe=gr,FPe=MPe,X0=Array.prototype,LPe=function(t){var r=t.some;return t===X0||BPe(X0,t)&&r===X0.some?FPe:r},zPe=LPe,jPe=zPe,VPe=jPe,_W=Te(VPe);function jl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var GPe=EG,WPe=GPe,HPe=WPe,UPe=HPe,EW=UPe,ZPe=Te(EW),KPe=Oe,YPe=i9;KPe({target:"Object",stat:!0},{setPrototypeOf:YPe});var XPe=$t,QPe=XPe.Object.setPrototypeOf,qPe=QPe,JPe=qPe,eRe=JPe,tRe=eRe,rRe=tRe,nRe=rRe,SW=nRe,aE=Te(SW),iRe=VV,oRe=iRe,aRe=oRe,sRe=aRe,lRe=sRe,OT=Te(lRe);function sE(t,r){var e;return sE=aE?OT(e=aE).call(e):function(i,o){return i.__proto__=o,i},sE(t,r)}function xt(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=ZPe(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),oy(t,"prototype",{writable:!1}),r&&sE(t,r)}function Mt(t,r){if(r&&(ct(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jl(t)}var gRe=yG,uRe=gRe,cRe=uRe,dRe=cRe,TW=dRe,MN=Te(TW);function xe(t){var r;return xe=aE?OT(r=MN).call(r):function(n){return n.__proto__||MN(n)},xe(t)}function rr(t,r,e){return r=aG(r),r in t?oy(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var OW={exports:{}},kW={exports:{}};(function(t){var r=uT,e=oG;function n(i){"@babel/helpers - typeof";return t.exports=n=typeof r=="function"&&typeof e=="symbol"?function(o){return typeof o}:function(o){return o&&typeof r=="function"&&o.constructor===r&&o!==r.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(kW);var hRe=kW.exports,ARe=IG,fRe=ARe,CRe=fRe,IRe=CRe,vRe=IRe,BN=vr,pRe=cT,mRe=Al,yRe=ai,bRe=function(t,r,e){for(var n=pRe(r),i=yRe.f,o=mRe.f,a=0;a<n.length;a++){var s=n[a];!BN(t,s)&&!(e&&BN(e,s))&&i(t,s,o(r,s))}},$Re=Pr,wRe=Ha,_Re=function(t,r){$Re(r)&&"cause"in r&&wRe(t,"cause",r.cause)},ERe=kt,xW=Error,SRe=ERe("".replace),TRe=function(t){return String(new xW(t).stack)}("zxcasd"),PW=/\n\s*at [^:]*:[^\n]*/,ORe=PW.test(TRe),kRe=function(t,r){if(ORe&&typeof t=="string"&&!xW.prepareStackTrace)for(;r--;)t=SRe(t,PW,"");return t},xRe=yt,PRe=Zg,RRe=!xRe(function(){var t=new Error("a");return"stack"in t?(Object.defineProperty(t,"stack",PRe(1,7)),t.stack!==7):!0}),DRe=Ha,NRe=kRe,MRe=RRe,FN=Error.captureStackTrace,BRe=function(t,r,e,n){MRe&&(FN?FN(t,r):DRe(t,"stack",NRe(e,n)))},FRe=So,LRe=function(t,r){return t===void 0?arguments.length<2?"":r:FRe(t)},zRe=Oe,jRe=gr,VRe=Cf,Dp=i9,GRe=bRe,RW=Xg,Q0=Ha,q0=Zg,WRe=_Re,HRe=BRe,URe=bl,ZRe=LRe,KRe=nr,YRe=KRe("toStringTag"),Np=Error,XRe=[].push,Lc=function(r,e){var n=jRe(J0,this),i;Dp?i=Dp(new Np,n?VRe(this):J0):(i=n?this:RW(J0),Q0(i,YRe,"Error")),e!==void 0&&Q0(i,"message",ZRe(e)),HRe(i,Lc,i.stack,1),arguments.length>2&&WRe(i,arguments[2]);var o=[];return URe(r,XRe,{that:o}),Q0(i,"errors",o),i};Dp?Dp(Lc,Np):GRe(Lc,Np,{name:!0});var J0=Lc.prototype=RW(Np.prototype,{constructor:q0(1,Lc),message:q0(1,""),name:q0(1,"AggregateError")});zRe({global:!0,constructor:!0,arity:2},{AggregateError:Lc});var QRe=Ut,qRe=Wa,Tf=qRe(QRe.process)==="process",JRe=ny,eDe=Cd,tDe=TypeError,DW=function(t){if(JRe(t))return t;throw new tDe(eDe(t)+" is not a constructor")},LN=Vn,rDe=DW,nDe=Kg,iDe=nr,oDe=iDe("species"),NW=function(t,r){var e=LN(t).constructor,n;return e===void 0||nDe(n=LN(e)[oDe])?r:rDe(n)},aDe=fl,MW=/(?:ipad|iphone|ipod).*applewebkit/i.test(aDe),yi=Ut,sDe=hd,lDe=Cl,zN=Ir,gDe=vr,BW=yt,jN=qV,uDe=ff,VN=Z2,cDe=SG,dDe=MW,hDe=Tf,lE=yi.setImmediate,gE=yi.clearImmediate,ADe=yi.process,e1=yi.Dispatch,fDe=yi.Function,GN=yi.MessageChannel,CDe=yi.String,t1=0,jh={},WN="onreadystatechange",_A,Fl,r1,n1;BW(function(){_A=yi.location});var kT=function(t){if(gDe(jh,t)){var r=jh[t];delete jh[t],r()}},i1=function(t){return function(){kT(t)}},HN=function(t){kT(t.data)},UN=function(t){yi.postMessage(CDe(t),_A.protocol+"//"+_A.host)};(!lE||!gE)&&(lE=function(r){cDe(arguments.length,1);var e=zN(r)?r:fDe(r),n=uDe(arguments,1);return jh[++t1]=function(){sDe(e,void 0,n)},Fl(t1),t1},gE=function(r){delete jh[r]},hDe?Fl=function(t){ADe.nextTick(i1(t))}:e1&&e1.now?Fl=function(t){e1.now(i1(t))}:GN&&!dDe?(r1=new GN,n1=r1.port2,r1.port1.onmessage=HN,Fl=lDe(n1.postMessage,n1)):yi.addEventListener&&zN(yi.postMessage)&&!yi.importScripts&&_A&&_A.protocol!=="file:"&&!BW(UN)?(Fl=UN,yi.addEventListener("message",HN,!1)):WN in VN("script")?Fl=function(t){jN.appendChild(VN("script"))[WN]=function(){jN.removeChild(this),kT(t)}}:Fl=function(t){setTimeout(i1(t),0)});var FW={set:lE,clear:gE},LW=function(){this.head=null,this.tail=null};LW.prototype={add:function(t){var r={item:t,next:null},e=this.tail;e?e.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t){var r=this.head=t.next;return r===null&&(this.tail=null),t.item}}};var zW=LW,IDe=fl,vDe=/ipad|iphone|ipod/i.test(IDe)&&typeof Pebble<"u",pDe=fl,mDe=/web0s(?!.*chrome)/i.test(pDe),kg=Ut,ZN=Cl,yDe=Al.f,o1=FW.set,bDe=zW,$De=MW,wDe=vDe,_De=mDe,a1=Tf,KN=kg.MutationObserver||kg.WebKitMutationObserver,YN=kg.document,XN=kg.process,gI=kg.Promise,QN=yDe(kg,"queueMicrotask"),uE=QN&&QN.value,bu,s1,l1,uI,qN;if(!uE){var cI=new bDe,dI=function(){var t,r;for(a1&&(t=XN.domain)&&t.exit();r=cI.get();)try{r()}catch(e){throw cI.head&&bu(),e}t&&t.enter()};!$De&&!a1&&!_De&&KN&&YN?(s1=!0,l1=YN.createTextNode(""),new KN(dI).observe(l1,{characterData:!0}),bu=function(){l1.data=s1=!s1}):!wDe&&gI&&gI.resolve?(uI=gI.resolve(void 0),uI.constructor=gI,qN=ZN(uI.then,uI),bu=function(){qN(dI)}):a1?bu=function(){XN.nextTick(dI)}:(o1=ZN(o1,kg),bu=function(){o1(dI)}),uE=function(t){cI.head||bu(),cI.add(t)}}var EDe=uE,SDe=function(t,r){try{arguments.length===1?console.error(t):console.error(t,r)}catch{}},_d=function(t){try{return{error:!1,value:t()}}catch(r){return{error:!0,value:r}}},TDe=Ut,Ed=TDe.Promise,jW=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",ODe=jW,kDe=Tf,xDe=!ODe&&!kDe&&typeof window=="object"&&typeof document=="object",PDe=Ut,Vh=Ed,RDe=Ir,DDe=MV,NDe=g9,MDe=nr,BDe=xDe,FDe=jW,g1=Ad,JN=Vh&&Vh.prototype,LDe=MDe("species"),cE=!1,VW=RDe(PDe.PromiseRejectionEvent),zDe=DDe("Promise",function(){var t=NDe(Vh),r=t!==String(Vh);if(!r&&g1===66||!(JN.catch&&JN.finally))return!0;if(!g1||g1<51||!/native code/.test(t)){var e=new Vh(function(o){o(1)}),n=function(o){o(function(){},function(){})},i=e.constructor={};if(i[LDe]=n,cE=e.then(function(){})instanceof n,!cE)return!0}return!r&&(BDe||FDe)&&!VW}),Of={CONSTRUCTOR:zDe,REJECTION_EVENT:VW,SUBCLASSING:cE},la={},eM=oi,jDe=TypeError,VDe=function(t){var r,e;this.promise=new t(function(n,i){if(r!==void 0||e!==void 0)throw new jDe("Bad Promise constructor");r=n,e=i}),this.resolve=eM(r),this.reject=eM(e)};la.f=function(t){return new VDe(t)};var GDe=Oe,Mp=Tf,ol=Ut,kf=Kr,WDe=vd,HDe=Qg,UDe=bW,ZDe=oi,dE=Ir,KDe=Pr,YDe=py,XDe=NW,GW=FW.set,xT=EDe,QDe=SDe,qDe=_d,JDe=zW,WW=Il,hE=Ed,HW=Of,UW=la,yy="Promise",ZW=HW.CONSTRUCTOR,eNe=HW.REJECTION_EVENT,u1=WW.getterFor(yy),tNe=WW.set,rNe=hE&&hE.prototype,Hu=hE,c1=rNe,KW=ol.TypeError,AE=ol.document,PT=ol.process,fE=UW.f,nNe=fE,iNe=!!(AE&&AE.createEvent&&ol.dispatchEvent),YW="unhandledrejection",oNe="rejectionhandled",tM=0,XW=1,aNe=2,RT=1,QW=2,hI,rM,sNe,qW=function(t){var r;return KDe(t)&&dE(r=t.then)?r:!1},JW=function(t,r){var e=r.value,n=r.state===XW,i=n?t.ok:t.fail,o=t.resolve,a=t.reject,s=t.domain,l,g,u;try{i?(n||(r.rejection===QW&&gNe(r),r.rejection=RT),i===!0?l=e:(s&&s.enter(),l=i(e),s&&(s.exit(),u=!0)),l===t.promise?a(new KW("Promise-chain cycle")):(g=qW(l))?kf(g,l,o,a):o(l)):a(e)}catch(c){s&&!u&&s.exit(),a(c)}},eH=function(t,r){t.notified||(t.notified=!0,xT(function(){for(var e=t.reactions,n;n=e.get();)JW(n,t);t.notified=!1,r&&!t.rejection&&lNe(t)}))},tH=function(t,r,e){var n,i;iNe?(n=AE.createEvent("Event"),n.promise=r,n.reason=e,n.initEvent(t,!1,!0),ol.dispatchEvent(n)):n={promise:r,reason:e},!eNe&&(i=ol["on"+t])?i(n):t===YW&&QDe("Unhandled promise rejection",e)},lNe=function(t){kf(GW,ol,function(){var r=t.facade,e=t.value,n=nM(t),i;if(n&&(i=qDe(function(){Mp?PT.emit("unhandledRejection",e,r):tH(YW,r,e)}),t.rejection=Mp||nM(t)?QW:RT,i.error))throw i.value})},nM=function(t){return t.rejection!==RT&&!t.parent},gNe=function(t){kf(GW,ol,function(){var r=t.facade;Mp?PT.emit("rejectionHandled",r):tH(oNe,r,t.value)})},Uu=function(t,r,e){return function(n){t(r,n,e)}},hc=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=aNe,eH(t,!0))},CE=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw new KW("Promise can't be resolved itself");var n=qW(r);n?xT(function(){var i={done:!1};try{kf(n,r,Uu(CE,i,t),Uu(hc,i,t))}catch(o){hc(i,o,t)}}):(t.value=r,t.state=XW,eH(t,!1))}catch(i){hc({done:!1},i,t)}}};ZW&&(Hu=function(r){YDe(this,c1),ZDe(r),kf(hI,this);var e=u1(this);try{r(Uu(CE,e),Uu(hc,e))}catch(n){hc(e,n)}},c1=Hu.prototype,hI=function(r){tNe(this,{type:yy,done:!1,notified:!1,parent:!1,reactions:new JDe,rejection:!1,state:tM,value:void 0})},hI.prototype=WDe(c1,"then",function(r,e){var n=u1(this),i=fE(XDe(this,Hu));return n.parent=!0,i.ok=dE(r)?r:!0,i.fail=dE(e)&&e,i.domain=Mp?PT.domain:void 0,n.state===tM?n.reactions.add(i):xT(function(){JW(i,n)}),i.promise}),rM=function(){var t=new hI,r=u1(t);this.promise=t,this.resolve=Uu(CE,r),this.reject=Uu(hc,r)},UW.f=fE=function(t){return t===Hu||t===sNe?new rM(t):nNe(t)});GDe({global:!0,constructor:!0,wrap:!0,forced:ZW},{Promise:Hu});HDe(Hu,yy,!1,!0);UDe(yy);var uNe=Ed,cNe=C9,dNe=Of.CONSTRUCTOR,by=dNe||!cNe(function(t){uNe.all(t).then(void 0,function(){})}),hNe=Oe,ANe=Kr,fNe=oi,CNe=la,INe=_d,vNe=bl,pNe=by;hNe({target:"Promise",stat:!0,forced:pNe},{all:function(r){var e=this,n=CNe.f(e),i=n.resolve,o=n.reject,a=INe(function(){var s=fNe(e.resolve),l=[],g=0,u=1;vNe(r,function(c){var d=g++,h=!1;u++,ANe(s,e,c).then(function(A){h||(h=!0,l[d]=A,--u||i(l))},o)}),--u||i(l)});return a.error&&o(a.value),n.promise}});var mNe=Oe,yNe=Of.CONSTRUCTOR,iM=Ed;iM&&iM.prototype;mNe({target:"Promise",proto:!0,forced:yNe,real:!0},{catch:function(t){return this.then(void 0,t)}});var bNe=Oe,$Ne=Kr,wNe=oi,_Ne=la,ENe=_d,SNe=bl,TNe=by;bNe({target:"Promise",stat:!0,forced:TNe},{race:function(r){var e=this,n=_Ne.f(e),i=n.reject,o=ENe(function(){var a=wNe(e.resolve);SNe(r,function(s){$Ne(a,e,s).then(n.resolve,i)})});return o.error&&i(o.value),n.promise}});var ONe=Oe,kNe=Kr,xNe=la,PNe=Of.CONSTRUCTOR;ONe({target:"Promise",stat:!0,forced:PNe},{reject:function(r){var e=xNe.f(this);return kNe(e.reject,void 0,r),e.promise}});var RNe=Vn,DNe=Pr,NNe=la,rH=function(t,r){if(RNe(t),DNe(r)&&r.constructor===t)return r;var e=NNe.f(t),n=e.resolve;return n(r),e.promise},MNe=Oe,BNe=zn,FNe=wIe,LNe=Ed,zNe=Of.CONSTRUCTOR,jNe=rH,VNe=BNe("Promise"),GNe=!zNe;MNe({target:"Promise",stat:!0,forced:FNe},{resolve:function(r){return jNe(GNe&&this===VNe?LNe:this,r)}});var WNe=Oe,HNe=Kr,UNe=oi,ZNe=la,KNe=_d,YNe=bl,XNe=by;WNe({target:"Promise",stat:!0,forced:XNe},{allSettled:function(r){var e=this,n=ZNe.f(e),i=n.resolve,o=n.reject,a=KNe(function(){var s=UNe(e.resolve),l=[],g=0,u=1;YNe(r,function(c){var d=g++,h=!1;u++,HNe(s,e,c).then(function(A){h||(h=!0,l[d]={status:"fulfilled",value:A},--u||i(l))},function(A){h||(h=!0,l[d]={status:"rejected",reason:A},--u||i(l))})}),--u||i(l)});return a.error&&o(a.value),n.promise}});var QNe=Oe,qNe=Kr,JNe=oi,eMe=zn,tMe=la,rMe=_d,nMe=bl,iMe=by,oM="No one promise resolved";QNe({target:"Promise",stat:!0,forced:iMe},{any:function(r){var e=this,n=eMe("AggregateError"),i=tMe.f(e),o=i.resolve,a=i.reject,s=rMe(function(){var l=JNe(e.resolve),g=[],u=0,c=1,d=!1;nMe(r,function(h){var A=u++,f=!1;c++,qNe(l,e,h).then(function(C){f||d||(d=!0,o(C))},function(C){f||d||(f=!0,g[A]=C,--c||a(new n(g,oM)))})}),--c||a(new n(g,oM))});return s.error&&a(s.value),i.promise}});var oMe=Oe,IE=Ed,aMe=yt,sMe=zn,lMe=Ir,gMe=NW,aM=rH,uMe=IE&&IE.prototype,cMe=!!IE&&aMe(function(){uMe.finally.call({then:function(){}},function(){})});oMe({target:"Promise",proto:!0,real:!0,forced:cMe},{finally:function(t){var r=gMe(this,sMe("Promise")),e=lMe(t);return this.then(e?function(n){return aM(r,t()).then(function(){return n})}:t,e?function(n){return aM(r,t()).then(function(){throw n})}:t)}});var dMe=$t,hMe=dMe.Promise,AMe=hMe,fMe=AMe,CMe=Oe,IMe=la;CMe({target:"Promise",stat:!0},{withResolvers:function(){var r=IMe.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}});var vMe=fMe,pMe=vMe,mMe=Oe,yMe=la,bMe=_d;mMe({target:"Promise",stat:!0,forced:!0},{try:function(t){var r=yMe.f(this),e=bMe(t);return(e.error?r.reject:r.resolve)(e.value),r.promise}});var $Me=pMe,wMe=$Me,_Me=wMe,EMe=vG,SMe=EMe,TMe=SMe,OMe=TMe,kMe=OMe;(function(t){var r=hRe.default,e=_9,n=uT,i=EW,o=TW,a=vRe,s=uG,l=SW,g=_Me,u=kMe,c=dG;function d(){t.exports=d=function(){return A},t.exports.__esModule=!0,t.exports.default=t.exports;var h,A={},f=Object.prototype,C=f.hasOwnProperty,I=e||function(R,x,B){R[x]=B.value},v=typeof n=="function"?n:{},p=v.iterator||"@@iterator",y=v.asyncIterator||"@@asyncIterator",b=v.toStringTag||"@@toStringTag";function _(R,x,B){return e(R,x,{value:B,enumerable:!0,configurable:!0,writable:!0}),R[x]}try{_({},"")}catch{_=function(B,K,$){return B[K]=$}}function P(R,x,B,K){var $=x&&x.prototype instanceof Q?x:Q,S=i($.prototype),F=new U(K||[]);return I(S,"_invoke",{value:Ve(R,B,F)}),S}function k(R,x,B){try{return{type:"normal",arg:R.call(x,B)}}catch(K){return{type:"throw",arg:K}}}A.wrap=P;var E="suspendedStart",O="suspendedYield",N="executing",D="completed",M={};function Q(){}function j(){}function W(){}var q={};_(q,p,function(){return this});var oe=o,Pe=oe&&oe(oe(ie([])));Pe&&Pe!==f&&C.call(Pe,p)&&(q=Pe);var He=W.prototype=Q.prototype=i(q);function Le(R){var x;a(x=["next","throw","return"]).call(x,function(B){_(R,B,function(K){return this._invoke(B,K)})})}function me(R,x){function B($,S,F,Z){var G=k(R[$],R,S);if(G.type!=="throw"){var ae=G.arg,he=ae.value;return he&&r(he)=="object"&&C.call(he,"__await")?x.resolve(he.__await).then(function(ne){B("next",ne,F,Z)},function(ne){B("throw",ne,F,Z)}):x.resolve(he).then(function(ne){ae.value=ne,F(ae)},function(ne){return B("throw",ne,F,Z)})}Z(G.arg)}var K;I(this,"_invoke",{value:function(S,F){function Z(){return new x(function(G,ae){B(S,F,G,ae)})}return K=K?K.then(Z,Z):Z()}})}function Ve(R,x,B){var K=E;return function($,S){if(K===N)throw new Error("Generator is already running");if(K===D){if($==="throw")throw S;return{value:h,done:!0}}for(B.method=$,B.arg=S;;){var F=B.delegate;if(F){var Z=We(F,B);if(Z){if(Z===M)continue;return Z}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(K===E)throw K=D,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);K=N;var G=k(R,x,B);if(G.type==="normal"){if(K=B.done?D:O,G.arg===M)continue;return{value:G.arg,done:B.done}}G.type==="throw"&&(K=D,B.method="throw",B.arg=G.arg)}}}function We(R,x){var B=x.method,K=R.iterator[B];if(K===h)return x.delegate=null,B==="throw"&&R.iterator.return&&(x.method="return",x.arg=h,We(R,x),x.method==="throw")||B!=="return"&&(x.method="throw",x.arg=new TypeError("The iterator does not provide a '"+B+"' method")),M;var $=k(K,R.iterator,x.arg);if($.type==="throw")return x.method="throw",x.arg=$.arg,x.delegate=null,M;var S=$.arg;return S?S.done?(x[R.resultName]=S.value,x.next=R.nextLoc,x.method!=="return"&&(x.method="next",x.arg=h),x.delegate=null,M):S:(x.method="throw",x.arg=new TypeError("iterator result is not an object"),x.delegate=null,M)}function ot(R){var x,B={tryLoc:R[0]};1 in R&&(B.catchLoc=R[1]),2 in R&&(B.finallyLoc=R[2],B.afterLoc=R[3]),s(x=this.tryEntries).call(x,B)}function At(R){var x=R.completion||{};x.type="normal",delete x.arg,R.completion=x}function U(R){this.tryEntries=[{tryLoc:"root"}],a(R).call(R,ot,this),this.reset(!0)}function ie(R){if(R||R===""){var x=R[p];if(x)return x.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var B=-1,K=function $(){for(;++B<R.length;)if(C.call(R,B))return $.value=R[B],$.done=!1,$;return $.value=h,$.done=!0,$};return K.next=K}}throw new TypeError(r(R)+" is not iterable")}return j.prototype=W,I(He,"constructor",{value:W,configurable:!0}),I(W,"constructor",{value:j,configurable:!0}),j.displayName=_(W,b,"GeneratorFunction"),A.isGeneratorFunction=function(R){var x=typeof R=="function"&&R.constructor;return!!x&&(x===j||(x.displayName||x.name)==="GeneratorFunction")},A.mark=function(R){return l?l(R,W):(R.__proto__=W,_(R,b,"GeneratorFunction")),R.prototype=i(He),R},A.awrap=function(R){return{__await:R}},Le(me.prototype),_(me.prototype,y,function(){return this}),A.AsyncIterator=me,A.async=function(R,x,B,K,$){$===void 0&&($=g);var S=new me(P(R,x,B,K),$);return A.isGeneratorFunction(x)?S:S.next().then(function(F){return F.done?F.value:S.next()})},Le(He),_(He,b,"Generator"),_(He,p,function(){return this}),_(He,"toString",function(){return"[object Generator]"}),A.keys=function(R){var x=Object(R),B=[];for(var K in x)s(B).call(B,K);return u(B).call(B),function $(){for(;B.length;){var S=B.pop();if(S in x)return $.value=S,$.done=!1,$}return $.done=!0,$}},A.values=ie,U.prototype={constructor:U,reset:function(x){var B;if(this.prev=0,this.next=0,this.sent=this._sent=h,this.done=!1,this.delegate=null,this.method="next",this.arg=h,a(B=this.tryEntries).call(B,At),!x)for(var K in this)K.charAt(0)==="t"&&C.call(this,K)&&!isNaN(+c(K).call(K,1))&&(this[K]=h)},stop:function(){this.done=!0;var x=this.tryEntries[0].completion;if(x.type==="throw")throw x.arg;return this.rval},dispatchException:function(x){if(this.done)throw x;var B=this;function K(ae,he){return F.type="throw",F.arg=x,B.next=ae,he&&(B.method="next",B.arg=h),!!he}for(var $=this.tryEntries.length-1;$>=0;--$){var S=this.tryEntries[$],F=S.completion;if(S.tryLoc==="root")return K("end");if(S.tryLoc<=this.prev){var Z=C.call(S,"catchLoc"),G=C.call(S,"finallyLoc");if(Z&&G){if(this.prev<S.catchLoc)return K(S.catchLoc,!0);if(this.prev<S.finallyLoc)return K(S.finallyLoc)}else if(Z){if(this.prev<S.catchLoc)return K(S.catchLoc,!0)}else{if(!G)throw new Error("try statement without catch or finally");if(this.prev<S.finallyLoc)return K(S.finallyLoc)}}}},abrupt:function(x,B){for(var K=this.tryEntries.length-1;K>=0;--K){var $=this.tryEntries[K];if($.tryLoc<=this.prev&&C.call($,"finallyLoc")&&this.prev<$.finallyLoc){var S=$;break}}S&&(x==="break"||x==="continue")&&S.tryLoc<=B&&B<=S.finallyLoc&&(S=null);var F=S?S.completion:{};return F.type=x,F.arg=B,S?(this.method="next",this.next=S.finallyLoc,M):this.complete(F)},complete:function(x,B){if(x.type==="throw")throw x.arg;return x.type==="break"||x.type==="continue"?this.next=x.arg:x.type==="return"?(this.rval=this.arg=x.arg,this.method="return",this.next="end"):x.type==="normal"&&B&&(this.next=B),M},finish:function(x){for(var B=this.tryEntries.length-1;B>=0;--B){var K=this.tryEntries[B];if(K.finallyLoc===x)return this.complete(K.completion,K.afterLoc),At(K),M}},catch:function(x){for(var B=this.tryEntries.length-1;B>=0;--B){var K=this.tryEntries[B];if(K.tryLoc===x){var $=K.completion;if($.type==="throw"){var S=$.arg;At(K)}return S}}throw new Error("illegal catch attempt")},delegateYield:function(x,B,K){return this.delegate={iterator:ie(x),resultName:B,nextLoc:K},this.method==="next"&&(this.arg=h),M}},A}t.exports=d,t.exports.__esModule=!0,t.exports.default=t.exports})(OW);var xMe=OW.exports,$v=xMe(),PMe=$v;try{regeneratorRuntime=$v}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=$v:Function("r","regeneratorRuntime = r")($v)}var Hn=Te(PMe),RMe=oi,DMe=jn,NMe=Xm,MMe=si,BMe=TypeError,sM=function(t){return function(r,e,n,i){RMe(e);var o=DMe(r),a=NMe(o),s=MMe(o),l=t?s-1:0,g=t?-1:1;if(n<2)for(;;){if(l in a){i=a[l],l+=g;break}if(l+=g,t?l<0:s<=l)throw new BMe("Reduce of empty array with no initial value")}for(;t?l>=0:s>l;l+=g)l in a&&(i=e(i,a[l],l,o));return i}},FMe={left:sM(!1),right:sM(!0)},LMe=Oe,zMe=FMe.left,jMe=yd,lM=Ad,VMe=Tf,GMe=!VMe&&lM>79&&lM<83,WMe=GMe||!jMe("reduce");LMe({target:"Array",proto:!0,forced:WMe},{reduce:function(r){var e=arguments.length;return zMe(this,r,e,e>1?arguments[1]:void 0)}});var HMe=Rr,UMe=HMe("Array").reduce,ZMe=gr,KMe=UMe,d1=Array.prototype,YMe=function(t){var r=t.reduce;return t===d1||ZMe(d1,t)&&r===d1.reduce?KMe:r},XMe=YMe,QMe=XMe,qMe=QMe,DT=Te(qMe),JMe=ml,eBe=si,tBe=ay,rBe=Cl,nH=function(t,r,e,n,i,o,a,s){for(var l=i,g=0,u=a?rBe(a,s):!1,c,d;g<n;)g in e&&(c=u?u(e[g],g,r):e[g],o>0&&JMe(c)?(d=eBe(c),l=nH(t,r,c,d,l,o-1)-1):(tBe(l+1),t[l]=c),l++),g++;return l},nBe=nH,iBe=Oe,oBe=nBe,aBe=oi,sBe=jn,lBe=si,gBe=sy;iBe({target:"Array",proto:!0},{flatMap:function(r){var e=sBe(this),n=lBe(e),i;return aBe(r),i=gBe(e,0),i.length=oBe(i,e,e,n,0,1,r,arguments.length>1?arguments[1]:void 0),i}});var uBe=Rr;uBe("Array").flatMap;var cBe=ST,dBe=wW;cBe("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},dBe);var hBe=$t,ABe=hBe.Set,fBe=ABe,CBe=fBe,IBe=CBe,Fo=Te(IBe),vBe=iG,Ac=Te(vBe),pBe=nT,mBe=pBe,yBe=mBe,bBe=yBe,$Be=bBe,wBe=$Be,_Be=wBe,EBe=_Be,SBe=EBe,TBe=SBe,h1=Te(TBe),gM=S9,OBe=Math.floor,vE=function(t,r){var e=t.length,n=OBe(e/2);return e<8?kBe(t,r):xBe(t,vE(gM(t,0,n),r),vE(gM(t,n),r),r)},kBe=function(t,r){for(var e=t.length,n=1,i,o;n<e;){for(o=n,i=t[n];o&&r(t[o-1],i)>0;)t[o]=t[--o];o!==n++&&(t[o]=i)}return t},xBe=function(t,r,e,n){for(var i=r.length,o=e.length,a=0,s=0;a<i||s<o;)t[a+s]=a<i&&s<o?n(r[a],e[s])<=0?r[a++]:e[s++]:a<i?r[a++]:e[s++];return t},PBe=vE,RBe=fl,uM=RBe.match(/firefox\/(\d+)/i),DBe=!!uM&&+uM[1],NBe=fl,MBe=/MSIE|Trident/.test(NBe),BBe=fl,cM=BBe.match(/AppleWebKit\/(\d+)\./),FBe=!!cM&&+cM[1],LBe=Oe,iH=kt,zBe=oi,jBe=jn,dM=si,VBe=pG,hM=So,NT=yt,GBe=PBe,WBe=yd,AM=DBe,HBe=MBe,fM=Ad,CM=FBe,Es=[],IM=iH(Es.sort),UBe=iH(Es.push),ZBe=NT(function(){Es.sort(void 0)}),KBe=NT(function(){Es.sort(null)}),YBe=WBe("sort"),oH=!NT(function(){if(fM)return fM<70;if(!(AM&&AM>3)){if(HBe)return!0;if(CM)return CM<603;var t="",r,e,n,i;for(r=65;r<76;r++){switch(e=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)Es.push({k:e+i,v:n})}for(Es.sort(function(o,a){return a.v-o.v}),i=0;i<Es.length;i++)e=Es[i].k.charAt(0),t.charAt(t.length-1)!==e&&(t+=e);return t!=="DGBEFHACIJK"}}),XBe=ZBe||!KBe||!YBe||!oH,QBe=function(t){return function(r,e){return e===void 0?-1:r===void 0?1:t!==void 0?+t(r,e)||0:hM(r)>hM(e)?1:-1}};LBe({target:"Array",proto:!0,forced:XBe},{sort:function(r){r!==void 0&&zBe(r);var e=jBe(this);if(oH)return r===void 0?IM(e):IM(e,r);var n=[],i=dM(e),o,a;for(a=0;a<i;a++)a in e&&UBe(n,e[a]);for(GBe(n,QBe(r)),o=dM(n),a=0;a<o;)e[a]=n[a++];for(;a<i;)VBe(e,a++);return e}});var qBe=Rr,JBe=qBe("Array").sort,e3e=gr,t3e=JBe,A1=Array.prototype,r3e=function(t){var r=t.sort;return t===A1||e3e(A1,t)&&r===A1.sort?t3e:r},n3e=r3e,i3e=n3e,o3e=i3e,zs=Te(o3e),a3e=Rr,s3e=a3e("Array").keys,l3e=s3e,g3e=l3e,u3e=Ua,c3e=vr,d3e=gr,h3e=g3e,f1=Array.prototype,A3e={DOMTokenList:!0,NodeList:!0},f3e=function(t){var r=t.keys;return t===f1||d3e(f1,t)&&r===f1.keys||c3e(A3e,u3e(t))?h3e:r},C3e=f3e,$u=Te(C3e),I3e=Rr,v3e=I3e("Array").values,p3e=v3e,m3e=p3e,y3e=Ua,b3e=vr,$3e=gr,w3e=m3e,C1=Array.prototype,_3e={DOMTokenList:!0,NodeList:!0},E3e=function(t){var r=t.values;return t===C1||$3e(C1,t)&&r===C1.values||b3e(_3e,y3e(t))?w3e:r},S3e=E3e,Bp=Te(S3e),T3e=Rr,O3e=T3e("Array").entries,k3e=O3e,x3e=k3e,P3e=Ua,R3e=vr,D3e=gr,N3e=x3e,I1=Array.prototype,M3e={DOMTokenList:!0,NodeList:!0},B3e=function(t){var r=t.entries;return t===I1||D3e(I1,t)&&r===I1.entries||R3e(M3e,P3e(t))?N3e:r},F3e=B3e,L3e=Te(F3e),z3e=w9,xf=Te(z3e),j3e=Oe,V3e=zn,v1=hd,G3e=jV,vM=DW,W3e=Vn,pM=Pr,H3e=Xg,aH=yt,MT=V3e("Reflect","construct"),U3e=Object.prototype,Z3e=[].push,sH=aH(function(){function t(){}return!(MT(function(){},[],t)instanceof t)}),lH=!aH(function(){MT(function(){})}),mM=sH||lH;j3e({target:"Reflect",stat:!0,forced:mM,sham:mM},{construct:function(r,e){vM(r),W3e(e);var n=arguments.length<3?r:vM(arguments[2]);if(lH&&!sH)return MT(r,e,n);if(r===n){switch(e.length){case 0:return new r;case 1:return new r(e[0]);case 2:return new r(e[0],e[1]);case 3:return new r(e[0],e[1],e[2]);case 4:return new r(e[0],e[1],e[2],e[3])}var i=[null];return v1(Z3e,i,e),new(v1(G3e,r,i))}var o=n.prototype,a=H3e(pM(o)?o:U3e),s=v1(r,a,e);return pM(s)?s:a}});var K3e=$t,Y3e=K3e.Reflect.construct,X3e=Y3e,Q3e=X3e,q3e=Q3e,ee=Te(q3e),J3e=$t,eFe=J3e.Object.getOwnPropertySymbols,tFe=eFe,rFe=tFe,nFe=rFe,ia=Te(nFe),gH={exports:{}},iFe=Oe,oFe=yt,aFe=sa,uH=Al.f,cH=an,sFe=!cH||oFe(function(){uH(1)});iFe({target:"Object",stat:!0,forced:sFe,sham:!cH},{getOwnPropertyDescriptor:function(r,e){return uH(aFe(r),e)}});var lFe=$t,dH=lFe.Object,gFe=gH.exports=function(r,e){return dH.getOwnPropertyDescriptor(r,e)};dH.getOwnPropertyDescriptor.sham&&(gFe.sham=!0);var uFe=gH.exports,cFe=uFe,hH=cFe,dFe=hH,ga=Te(dFe),hFe=Oe,AFe=an,fFe=cT,CFe=sa,IFe=Al,vFe=md;hFe({target:"Object",stat:!0,sham:!AFe},{getOwnPropertyDescriptors:function(r){for(var e=CFe(r),n=IFe.f,i=fFe(e),o={},a=0,s,l;i.length>a;)l=n(e,s=i[a++]),l!==void 0&&vFe(o,s,l);return o}});var pFe=$t,mFe=pFe.Object.getOwnPropertyDescriptors,yFe=mFe,bFe=yFe,$Fe=bFe,oa=Te($Fe),AH={exports:{}},wFe=Oe,_Fe=an,yM=ry.f;wFe({target:"Object",stat:!0,forced:Object.defineProperties!==yM,sham:!_Fe},{defineProperties:yM});var EFe=$t,fH=EFe.Object,SFe=AH.exports=function(r,e){return fH.defineProperties(r,e)};fH.defineProperties.sham&&(SFe.sham=!0);var TFe=AH.exports,OFe=TFe,kFe=OFe,xFe=kFe,Pf=Te(xFe);let AI;const PFe=new Uint8Array(16);function RFe(){if(!AI&&(AI=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!AI))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return AI(PFe)}const fn=[];for(let t=0;t<256;++t)fn.push((t+256).toString(16).slice(1));function DFe(t,r=0){return fn[t[r+0]]+fn[t[r+1]]+fn[t[r+2]]+fn[t[r+3]]+"-"+fn[t[r+4]]+fn[t[r+5]]+"-"+fn[t[r+6]]+fn[t[r+7]]+"-"+fn[t[r+8]]+fn[t[r+9]]+"-"+fn[t[r+10]]+fn[t[r+11]]+fn[t[r+12]]+fn[t[r+13]]+fn[t[r+14]]+fn[t[r+15]]}const NFe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var bM={randomUUID:NFe};function fc(t,r,e){if(bM.randomUUID&&!r&&!t)return bM.randomUUID();t=t||{};const n=t.random||(t.rng||RFe)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){e=e||0;for(let i=0;i<16;++i)r[e+i]=n[i];return r}return DFe(n)}var CH;function $M(t,r){var e=er(t);if(ia){var n=ia(t);r&&(n=Mr(n).call(n,function(i){return ga(t,i).enumerable})),e.push.apply(e,n)}return e}function wM(t){for(var r=1;r<arguments.length;r++){var e,n,i=arguments[r]!=null?arguments[r]:{};r%2?Et(e=$M(Object(i),!0)).call(e,function(o){rr(t,o,i[o])}):oa?Pf(t,oa(i)):Et(n=$M(Object(i))).call(n,function(o){xf(t,o,ga(i,o))})}return t}function MFe(t){var r=BFe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function BFe(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}function Ai(t,r){var e=typeof Za<"u"&&pl(t)||t["@@iterator"];if(!e){if(lt(t)||(e=FFe(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(g){throw g},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
729
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function FFe(t,r){var e;if(t){if(typeof t=="string")return _M(t,r);var n=Wr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return vl(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _M(t,r)}}function _M(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function EM(t){return typeof t=="string"||typeof t=="number"}var LFe=function(){function t(r){Ae(this,t),rr(this,"delay",void 0),rr(this,"max",void 0),rr(this,"_queue",[]),rr(this,"_timeout",null),rr(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(r)}return fe(t,[{key:"setOptions",value:function(e){e&&typeof e.delay<"u"&&(this.delay=e.delay),e&&typeof e.max<"u"&&(this.max=e.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var e=this._extended.object,n=this._extended.methods,i=0;i<n.length;i++){var o=n[i];o.original?e[o.name]=o.original:delete e[o.name]}this._extended=null}}},{key:"replace",value:function(e,n){var i=this,o=e[n];if(!o)throw new Error("Method "+n+" undefined");e[n]=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];i.queue({args:s,fn:o,context:this})}}},{key:"queue",value:function(e){typeof e=="function"?this._queue.push({fn:e}):this._queue.push(e),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var e=this;this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=mo(function(){e.flush()},this.delay))}},{key:"flush",value:function(){var e,n;Et(e=Yo(n=this._queue).call(n,0)).call(e,function(i){i.fn.apply(i.context||i.fn,i.args||[])})}}],[{key:"extend",value:function(e,n){var i=new t(n);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=function(){i.flush()};var o=[{name:"flush",original:void 0}];if(n&&n.replace)for(var a=0;a<n.replace.length;a++){var s=n.replace[a];o.push({name:s,original:e[s]}),i.replace(e,s)}return i._extended={object:e,methods:o},i}}]),t}(),zFe=function(){function t(){Ae(this,t),rr(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),rr(this,"subscribe",t.prototype.on),rr(this,"unsubscribe",t.prototype.off)}return fe(t,[{key:"_trigger",value:function(e,n,i){var o,a;if(e==="*")throw new Error("Cannot trigger event *");Et(o=qg(a=[]).call(a,sr(this._subscribers[e]),sr(this._subscribers["*"]))).call(o,function(s){s(e,n,i??null)})}},{key:"on",value:function(e,n){typeof n=="function"&&this._subscribers[e].push(n)}},{key:"off",value:function(e,n){var i;this._subscribers[e]=Mr(i=this._subscribers[e]).call(i,function(o){return o!==n})}}]),t}();CH=Ac;var SM=function(){function t(r){Ae(this,t),rr(this,"_pairs",void 0),this._pairs=r}return fe(t,[{key:CH,value:Hn.mark(function r(){var e,n,i,o,a;return Hn.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:e=Ai(this._pairs),l.prev=1,e.s();case 3:if((n=e.n()).done){l.next=9;break}return i=vt(n.value,2),o=i[0],a=i[1],l.next=7,[o,a];case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),e.e(l.t0);case 14:return l.prev=14,e.f(),l.finish(14);case 17:case"end":return l.stop()}},r,this,[[1,11,14,17]])})},{key:"entries",value:Hn.mark(function r(){var e,n,i,o,a;return Hn.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:e=Ai(this._pairs),l.prev=1,e.s();case 3:if((n=e.n()).done){l.next=9;break}return i=vt(n.value,2),o=i[0],a=i[1],l.next=7,[o,a];case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),e.e(l.t0);case 14:return l.prev=14,e.f(),l.finish(14);case 17:case"end":return l.stop()}},r,this,[[1,11,14,17]])})},{key:"keys",value:Hn.mark(function r(){var e,n,i,o;return Hn.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:e=Ai(this._pairs),s.prev=1,e.s();case 3:if((n=e.n()).done){s.next=9;break}return i=vt(n.value,1),o=i[0],s.next=7,o;case 7:s.next=3;break;case 9:s.next=14;break;case 11:s.prev=11,s.t0=s.catch(1),e.e(s.t0);case 14:return s.prev=14,e.f(),s.finish(14);case 17:case"end":return s.stop()}},r,this,[[1,11,14,17]])})},{key:"values",value:Hn.mark(function r(){var e,n,i,o;return Hn.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:e=Ai(this._pairs),s.prev=1,e.s();case 3:if((n=e.n()).done){s.next=9;break}return i=vt(n.value,2),o=i[1],s.next=7,o;case 7:s.next=3;break;case 9:s.next=14;break;case 11:s.prev=11,s.t0=s.catch(1),e.e(s.t0);case 14:return s.prev=14,e.f(),s.finish(14);case 17:case"end":return s.stop()}},r,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var e;return vn(e=sr(this._pairs)).call(e,function(n){return n[0]})}},{key:"toItemArray",value:function(){var e;return vn(e=sr(this._pairs)).call(e,function(n){return n[1]})}},{key:"toEntryArray",value:function(){return sr(this._pairs)}},{key:"toObjectMap",value:function(){var e=Bs(null),n=Ai(this._pairs),i;try{for(n.s();!(i=n.n()).done;){var o=vt(i.value,2),a=o[0],s=o[1];e[a]=s}}catch(l){n.e(l)}finally{n.f()}return e}},{key:"toMap",value:function(){return new my(this._pairs)}},{key:"toIdSet",value:function(){return new Fo(this.toIdArray())}},{key:"toItemSet",value:function(){return new Fo(this.toItemArray())}},{key:"cache",value:function(){return new t(sr(this._pairs))}},{key:"distinct",value:function(e){var n=new Fo,i=Ai(this._pairs),o;try{for(i.s();!(o=i.n()).done;){var a=vt(o.value,2),s=a[0],l=a[1];n.add(e(l,s))}}catch(g){i.e(g)}finally{i.f()}return n}},{key:"filter",value:function(e){var n=this._pairs;return new t(rr({},Ac,Hn.mark(function i(){var o,a,s,l,g;return Hn.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:o=Ai(n),c.prev=1,o.s();case 3:if((a=o.n()).done){c.next=10;break}if(s=vt(a.value,2),l=s[0],g=s[1],!e(g,l)){c.next=8;break}return c.next=8,[l,g];case 8:c.next=3;break;case 10:c.next=15;break;case 12:c.prev=12,c.t0=c.catch(1),o.e(c.t0);case 15:return c.prev=15,o.f(),c.finish(15);case 18:case"end":return c.stop()}},i,null,[[1,12,15,18]])})))}},{key:"forEach",value:function(e){var n=Ai(this._pairs),i;try{for(n.s();!(i=n.n()).done;){var o=vt(i.value,2),a=o[0],s=o[1];e(s,a)}}catch(l){n.e(l)}finally{n.f()}}},{key:"map",value:function(e){var n=this._pairs;return new t(rr({},Ac,Hn.mark(function i(){var o,a,s,l,g;return Hn.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:o=Ai(n),c.prev=1,o.s();case 3:if((a=o.n()).done){c.next=9;break}return s=vt(a.value,2),l=s[0],g=s[1],c.next=7,[l,e(g,l)];case 7:c.next=3;break;case 9:c.next=14;break;case 11:c.prev=11,c.t0=c.catch(1),o.e(c.t0);case 14:return c.prev=14,o.f(),c.finish(14);case 17:case"end":return c.stop()}},i,null,[[1,11,14,17]])})))}},{key:"max",value:function(e){var n=h1(this._pairs),i=n.next();if(i.done)return null;for(var o=i.value[1],a=e(i.value[1],i.value[0]);!(i=n.next()).done;){var s=vt(i.value,2),l=s[0],g=s[1],u=e(g,l);u>a&&(a=u,o=g)}return o}},{key:"min",value:function(e){var n=h1(this._pairs),i=n.next();if(i.done)return null;for(var o=i.value[1],a=e(i.value[1],i.value[0]);!(i=n.next()).done;){var s=vt(i.value,2),l=s[0],g=s[1],u=e(g,l);u<a&&(a=u,o=g)}return o}},{key:"reduce",value:function(e,n){var i=Ai(this._pairs),o;try{for(i.s();!(o=i.n()).done;){var a=vt(o.value,2),s=a[0],l=a[1];n=e(n,l,s)}}catch(g){i.e(g)}finally{i.f()}return n}},{key:"sort",value:function(e){var n=this;return new t(rr({},Ac,function(){var i;return h1(zs(i=sr(n._pairs)).call(i,function(o,a){var s=vt(o,2),l=s[0],g=s[1],u=vt(a,2),c=u[0],d=u[1];return e(g,d,l,c)}))}))}}]),t}();function jFe(t,r){return t[r]==null&&(t[r]=fc()),t}var zc=function(t){xt(e,t);var r=MFe(e);function e(n,i){var o;return Ae(this,e),o=r.call(this),rr(jl(o),"flush",void 0),rr(jl(o),"length",void 0),rr(jl(o),"_options",void 0),rr(jl(o),"_data",void 0),rr(jl(o),"_idProp",void 0),rr(jl(o),"_queue",null),n&&!lt(n)&&(i=n,n=[]),o._options=i||{},o._data=new my,o.length=0,o._idProp=o._options.fieldId||"id",n&&n.length&&o.add(n),o.setOptions(i),o}return fe(e,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(i){i&&i.queue!==void 0&&(i.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=LFe.extend(this,{replace:["add","update","remove"]})),i.queue&&ct(i.queue)==="object"&&this._queue.setOptions(i.queue)))}},{key:"add",value:function(i,o){var a=this,s=[],l;if(lt(i)){var g=vn(i).call(i,function(d){return d[a._idProp]});if(_W(g).call(g,function(d){return a._data.has(d)}))throw new Error("A duplicate id was found in the parameter array.");for(var u=0,c=i.length;u<c;u++)l=this._addItem(i[u]),s.push(l)}else if(i&&ct(i)==="object")l=this._addItem(i),s.push(l);else throw new Error("Unknown dataType");return s.length&&this._trigger("add",{items:s},o),s}},{key:"update",value:function(i,o){var a=this,s=[],l=[],g=[],u=[],c=this._idProp,d=function(I){var v=I[c];if(v!=null&&a._data.has(v)){var p=I,y=Or({},a._data.get(v)),b=a._updateItem(p);l.push(b),u.push(p),g.push(y)}else{var _=a._addItem(I);s.push(_)}};if(lt(i))for(var h=0,A=i.length;h<A;h++)i[h]&&ct(i[h])==="object"?d(i[h]):console.warn("Ignoring input item, which is not an object at index "+h);else if(i&&ct(i)==="object")d(i);else throw new Error("Unknown dataType");if(s.length&&this._trigger("add",{items:s},o),l.length){var f={items:l,oldData:g,data:u};this._trigger("update",f,o)}return qg(s).call(s,l)}},{key:"updateOnly",value:function(i,o){var a,s=this;lt(i)||(i=[i]);var l=vn(a=vn(i).call(i,function(u){var c=s._data.get(u[s._idProp]);if(c==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:c,update:u}})).call(a,function(u){var c=u.oldData,d=u.update,h=c[s._idProp],A=rke(c,d);return s._data.set(h,A),{id:h,oldData:c,updatedData:A}});if(l.length){var g={items:vn(l).call(l,function(u){return u.id}),oldData:vn(l).call(l,function(u){return u.oldData}),data:vn(l).call(l,function(u){return u.updatedData})};return this._trigger("update",g,o),g.items}else return[]}},{key:"get",value:function(i,o){var a=void 0,s=void 0,l=void 0;EM(i)?(a=i,l=o):lt(i)?(s=i,l=o):l=i;var g=l&&l.returnType==="Object"?"Object":"Array",u=l&&Mr(l),c=[],d=void 0,h=void 0,A=void 0;if(a!=null)d=this._data.get(a),d&&u&&!u(d)&&(d=void 0);else if(s!=null)for(var f=0,C=s.length;f<C;f++)d=this._data.get(s[f]),d!=null&&(!u||u(d))&&c.push(d);else{var I;h=sr($u(I=this._data).call(I));for(var v=0,p=h.length;v<p;v++)A=h[v],d=this._data.get(A),d!=null&&(!u||u(d))&&c.push(d)}if(l&&l.order&&a==null&&this._sort(c,l.order),l&&l.fields){var y=l.fields;if(a!=null&&d!=null)d=this._filterFields(d,y);else for(var b=0,_=c.length;b<_;b++)c[b]=this._filterFields(c[b],y)}if(g=="Object"){for(var P={},k=0,E=c.length;k<E;k++){var O=c[k],N=O[this._idProp];P[N]=O}return P}else if(a!=null){var D;return(D=d)!==null&&D!==void 0?D:null}else return c}},{key:"getIds",value:function(i){var o=this._data,a=i&&Mr(i),s=i&&i.order,l=sr($u(o).call(o)),g=[];if(a)if(s){for(var u=[],c=0,d=l.length;c<d;c++){var h=l[c],A=this._data.get(h);A!=null&&a(A)&&u.push(A)}this._sort(u,s);for(var f=0,C=u.length;f<C;f++)g.push(u[f][this._idProp])}else for(var I=0,v=l.length;I<v;I++){var p=l[I],y=this._data.get(p);y!=null&&a(y)&&g.push(y[this._idProp])}else if(s){for(var b=[],_=0,P=l.length;_<P;_++){var k=l[_];b.push(o.get(k))}this._sort(b,s);for(var E=0,O=b.length;E<O;E++)g.push(b[E][this._idProp])}else for(var N=0,D=l.length;N<D;N++){var M=l[N],Q=o.get(M);Q!=null&&g.push(Q[this._idProp])}return g}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(i,o){var a=o&&Mr(o),s=this._data,l=sr($u(s).call(s));if(o&&o.order)for(var g=this.get(o),u=0,c=g.length;u<c;u++){var d=g[u],h=d[this._idProp];i(d,h)}else for(var A=0,f=l.length;A<f;A++){var C=l[A],I=this._data.get(C);I!=null&&(!a||a(I))&&i(I,C)}}},{key:"map",value:function(i,o){for(var a=o&&Mr(o),s=[],l=this._data,g=sr($u(l).call(l)),u=0,c=g.length;u<c;u++){var d=g[u],h=this._data.get(d);h!=null&&(!a||a(h))&&s.push(i(h,d))}return o&&o.order&&this._sort(s,o.order),s}},{key:"_filterFields",value:function(i,o){var a;return i&&DT(a=lt(o)?o:er(o)).call(a,function(s,l){return s[l]=i[l],s},{})}},{key:"_sort",value:function(i,o){if(typeof o=="string"){var a=o;zs(i).call(i,function(s,l){var g=s[a],u=l[a];return g>u?1:g<u?-1:0})}else if(typeof o=="function")zs(i).call(i,o);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(i,o){for(var a=[],s=[],l=lt(i)?i:[i],g=0,u=l.length;g<u;g++){var c=this._remove(l[g]);if(c){var d=c[this._idProp];d!=null&&(a.push(d),s.push(c))}}return a.length&&this._trigger("remove",{items:a,oldData:s},o),a}},{key:"_remove",value:function(i){var o;if(EM(i)?o=i:i&&ct(i)==="object"&&(o=i[this._idProp]),o!=null&&this._data.has(o)){var a=this._data.get(o)||null;return this._data.delete(o),--this.length,a}return null}},{key:"clear",value:function(i){for(var o,a=sr($u(o=this._data).call(o)),s=[],l=0,g=a.length;l<g;l++)s.push(this._data.get(a[l]));return this._data.clear(),this.length=0,this._trigger("remove",{items:a,oldData:s},i),a}},{key:"max",value:function(i){var o,a=null,s=null,l=Ai(Bp(o=this._data).call(o)),g;try{for(l.s();!(g=l.n()).done;){var u=g.value,c=u[i];typeof c=="number"&&(s==null||c>s)&&(a=u,s=c)}}catch(d){l.e(d)}finally{l.f()}return a||null}},{key:"min",value:function(i){var o,a=null,s=null,l=Ai(Bp(o=this._data).call(o)),g;try{for(l.s();!(g=l.n()).done;){var u=g.value,c=u[i];typeof c=="number"&&(s==null||c<s)&&(a=u,s=c)}}catch(d){l.e(d)}finally{l.f()}return a||null}},{key:"distinct",value:function(i){for(var o=this._data,a=sr($u(o).call(o)),s=[],l=0,g=0,u=a.length;g<u;g++){for(var c=a[g],d=o.get(c),h=d[i],A=!1,f=0;f<l;f++)if(s[f]==h){A=!0;break}!A&&h!==void 0&&(s[l]=h,l++)}return s}},{key:"_addItem",value:function(i){var o=jFe(i,this._idProp),a=o[this._idProp];if(this._data.has(a))throw new Error("Cannot add item: item with id "+a+" already exists");return this._data.set(a,o),++this.length,a}},{key:"_updateItem",value:function(i){var o=i[this._idProp];if(o==null)throw new Error("Cannot update item: item has no id (item: "+bd(i)+")");var a=this._data.get(o);if(!a)throw new Error("Cannot update item: no item with id "+o+" found");return this._data.set(o,wM(wM({},a),i)),o}},{key:"stream",value:function(i){if(i){var o=this._data;return new SM(rr({},Ac,Hn.mark(function s(){var l,g,u,c;return Hn.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:l=Ai(i),h.prev=1,l.s();case 3:if((g=l.n()).done){h.next=11;break}if(u=g.value,c=o.get(u),c==null){h.next=9;break}return h.next=9,[u,c];case 9:h.next=3;break;case 11:h.next=16;break;case 13:h.prev=13,h.t0=h.catch(1),l.e(h.t0);case 16:return h.prev=16,l.f(),h.finish(16);case 19:case"end":return h.stop()}},s,null,[[1,13,16,19]])})))}else{var a;return new SM(rr({},Ac,ue(a=L3e(this._data)).call(a,this._data)))}}}]),e}(zFe);function VFe(t,r){return ct(r)==="object"&&r!==null&&t===r.idProp&&typeof r.add=="function"&&typeof r.clear=="function"&&typeof r.distinct=="function"&&typeof Et(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof vn(r)=="function"&&typeof r.max=="function"&&typeof r.min=="function"&&typeof r.off=="function"&&typeof r.on=="function"&&typeof r.remove=="function"&&typeof r.setOptions=="function"&&typeof r.stream=="function"&&typeof r.update=="function"&&typeof r.updateOnly=="function"}function IH(t,r){return ct(r)==="object"&&r!==null&&t===r.idProp&&typeof Et(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof vn(r)=="function"&&typeof r.off=="function"&&typeof r.on=="function"&&typeof r.stream=="function"&&VFe(t,r.getDataSet())}var vH=Ut,GFe=yt,WFe=kt,HFe=So,UFe=bG.trim,ZFe=dT,KFe=WFe("".charAt),Fp=vH.parseFloat,TM=vH.Symbol,OM=TM&&TM.iterator,YFe=1/Fp(ZFe+"-0")!==-1/0||OM&&!GFe(function(){Fp(Object(OM))}),XFe=YFe?function(r){var e=UFe(HFe(r)),n=Fp(e);return n===0&&KFe(e,0)==="-"?-0:n}:Fp,QFe=Oe,kM=XFe;QFe({global:!0,forced:parseFloat!==kM},{parseFloat:kM});var qFe=$t,JFe=qFe.parseFloat,e5e=JFe,t5e=e5e,r5e=t5e,pH=Te(r5e),n5e=Oe,i5e=yt,o5e=ly.f,a5e=i5e(function(){return!Object.getOwnPropertyNames(1)});n5e({target:"Object",stat:!0,forced:a5e},{getOwnPropertyNames:o5e});var s5e=$t,l5e=s5e.Object,g5e=function(r){return l5e.getOwnPropertyNames(r)},u5e=g5e,c5e=u5e,d5e=c5e,h5e=Te(d5e);function BT(t,r){var e=["node","edge","label"],n=!0,i=ps(r,"chosen");if(typeof i=="boolean")n=i;else if(ct(i)==="object"){if(Tt(e).call(e,t)===-1)throw new Error("choosify: subOption '"+t+"' should be one of '"+e.join("', '")+"'");var o=ps(r,["chosen",t]);(typeof o=="boolean"||typeof o=="function")&&(n=o)}return n}function pE(t,r,e){if(t.width<=0||t.height<=0)return!1;if(e!==void 0){var n={x:r.x-e.x,y:r.y-e.y};if(e.angle!==0){var i=-e.angle,o={x:Math.cos(i)*n.x-Math.sin(i)*n.y,y:Math.sin(i)*n.x+Math.cos(i)*n.y};r=o}else r=n}var a=t.x+t.width,s=t.y+t.width;return t.left<r.x&&a>r.x&&t.top<r.y&&s>r.y}function Lp(t){return typeof t=="string"&&t!==""}function mH(t,r,e,n){var i=n.x,o=n.y;if(typeof n.distanceToBorder=="function"){var a=n.distanceToBorder(t,r),s=Math.sin(r)*a,l=Math.cos(r)*a;l===a?(i+=a,o=n.y):s===a?(i=n.x,o-=a):(i+=l,o-=s)}else n.shape.width>n.shape.height?(i=n.x+n.shape.width*.5,o=n.y-e):(i=n.x+e,o=n.y-n.shape.height*.5);return{x:i,y:o}}var A5e=function(){function t(r){Ae(this,t),this.measureText=r,this.current=0,this.width=0,this.height=0,this.lines=[]}return fe(t,[{key:"_add",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});var o=n;(n===void 0||n==="")&&(o=" ");var a=this.measureText(o,i),s=Or({},Bp(a));s.text=n,s.width=a.width,s.mod=i,(n===void 0||n==="")&&(s.width=0),this.lines[e].blocks.push(s),this.lines[e].width+=s.width}},{key:"curWidth",value:function(){var e=this.lines[this.current];return e===void 0?0:e.width}},{key:"append",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n)}},{key:"newLine",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n),this.current++}},{key:"determineLineHeights",value:function(){for(var e=0;e<this.lines.length;e++){var n=this.lines[e],i=0;if(n.blocks!==void 0)for(var o=0;o<n.blocks.length;o++){var a=n.blocks[o];i<a.height&&(i=a.height)}n.height=i}}},{key:"determineLabelSize",value:function(){for(var e=0,n=0,i=0;i<this.lines.length;i++){var o=this.lines[i];o.width>e&&(e=o.width),n+=o.height}this.width=e,this.height=n}},{key:"removeEmptyBlocks",value:function(){for(var e=[],n=0;n<this.lines.length;n++){var i=this.lines[n];if(i.blocks.length!==0&&!(n===this.lines.length-1&&i.width===0)){var o={};Or(o,i),o.blocks=[];for(var a=void 0,s=[],l=0;l<i.blocks.length;l++){var g=i.blocks[l];g.width!==0?s.push(g):a===void 0&&(a=g)}s.length===0&&a!==void 0&&s.push(a),o.blocks=s,e.push(o)}}return e}},{key:"finalize",value:function(){this.determineLineHeights(),this.determineLabelSize();var e=this.removeEmptyBlocks();return{width:this.width,height:this.height,lines:e}}}]),t}(),f5e={"<b>":/<b>/,"<i>":/<i>/,"<code>":/<code>/,"</b>":/<\/b>/,"</i>":/<\/i>/,"</code>":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},xM=function(){function t(r){Ae(this,t),this.text=r,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return fe(t,[{key:"mod",value:function(){return this.modStack.length===0?"normal":this.modStack[0]}},{key:"modName",value:function(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}},{key:"parseWS",value:function(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}},{key:"setTag",value:function(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}},{key:"unsetTag",value:function(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(e,n){return!this.mono&&!this[e]&&this.match(n)?(this.setTag(e),!0):!1}},{key:"match",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.prepareRegExp(e),o=vt(i,2),a=o[0],s=o[1],l=a.test(this.text.substr(this.position,s));return l&&n&&(this.position+=s-1),l}},{key:"parseEndTag",value:function(e,n,i){var o=this.mod()===e;return e==="mono"?o=o&&this.mono:o=o&&!this.mono,o&&this.match(n)?(i!==void 0?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}},{key:"replace",value:function(e,n){return this.match(e)?(this.add(n),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(e){var n,i;if(e instanceof RegExp)i=e,n=1;else{var o=f5e[e];o!==void 0?i=o:i=new RegExp(e),n=e.length}return[i,n]}}]),t}(),C5e=function(){function t(r,e,n,i){var o=this;Ae(this,t),this.ctx=r,this.parent=e,this.selected=n,this.hover=i;var a=function(l,g){if(l===void 0)return 0;var u=o.parent.getFormattingValues(r,n,i,g),c=0;if(l!==""){var d=o.ctx.measureText(l);c=d.width}return{width:c,values:u}};this.lines=new A5e(a)}return fe(t,[{key:"process",value:function(e){if(!Lp(e))return this.lines.finalize();var n=this.parent.fontOptions;e=e.replace(/\r\n/g,`
|
|
728
|
+
`,Xr()):Ke+=gt,Xr();if(gt!='"')throw xn('End of string " expected');Xr(),Kn=kn.IDENTIFIER;return}for(Kn=kn.UNKNOWN;gt!="";)Ke+=gt,Xr();throw new SyntaxError('Syntax error in part "'+IW(Ke,30)+'"')}function xke(){var t={};if(Tke(),Qt(),Ke==="strict"&&(t.strict=!0,Qt()),(Ke==="graph"||Ke==="digraph")&&(t.type=Ke,Qt()),Kn===kn.IDENTIFIER&&(t.id=Ke,Qt()),Ke!="{")throw xn("Angle bracket { expected");if(Qt(),AW(t),Ke!="}")throw xn("Angle bracket } expected");if(Qt(),Ke!=="")throw xn("End of file expected");return Qt(),delete t.node,delete t.edge,delete t.graph,t}function AW(t){for(;Ke!==""&&Ke!="}";)Pke(t),Ke===";"&&Qt()}function Pke(t){var r=fW(t);if(r){CW(t,r);return}var e=Rke(t);if(!e){if(Kn!=kn.IDENTIFIER)throw xn("Identifier expected");var n=Ke;if(Qt(),Ke==="="){if(Qt(),Kn!=kn.IDENTIFIER)throw xn("Identifier expected");t[n]=Ke,Qt()}else Dke(t,n)}}function fW(t){var r=null;if(Ke==="subgraph"&&(r={},r.type="subgraph",Qt(),Kn===kn.IDENTIFIER&&(r.id=Ke,Qt())),Ke==="{"){if(Qt(),r||(r={}),r.parent=t,r.node=t.node,r.edge=t.edge,r.graph=t.graph,AW(r),Ke!="}")throw xn("Angle bracket } expected");Qt(),delete r.node,delete r.edge,delete r.graph,delete r.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(r)}return r}function Rke(t){return Ke==="node"?(Qt(),t.node=zh(),"node"):Ke==="edge"?(Qt(),t.edge=zh(),"edge"):Ke==="graph"?(Qt(),t.graph=zh(),"graph"):null}function Dke(t,r){var e={id:r},n=zh();n&&(e.attr=n),dW(t,e),CW(t,r)}function CW(t,r){for(;Ke==="->"||Ke==="--";){var e,n=Ke;Qt();var i=fW(t);if(i)e=i;else{if(Kn!=kn.IDENTIFIER)throw xn("Identifier or subgraph expected");e=Ke,dW(t,{id:e}),Qt()}var o=zh(),a=hW(t,r,e,n,o);kke(t,a),r=e}}function zh(){for(var t,r=null,e={dashed:!0,solid:!1,dotted:[1,5]},n={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},i=new Array,o=new Array;Ke==="[";){for(Qt(),r={};Ke!==""&&Ke!="]";){if(Kn!=kn.IDENTIFIER)throw xn("Attribute name expected");var a=Ke;if(Qt(),Ke!="=")throw xn("Equal sign = expected");if(Qt(),Kn!=kn.IDENTIFIER)throw xn("Attribute value expected");var s=Ke;a==="style"&&(s=e[s]);var l;a==="arrowhead"&&(l=n[s],a="arrows",s={to:{enabled:!0,type:l}}),a==="arrowtail"&&(l=n[s],a="arrows",s={from:{enabled:!0,type:l}}),i.push({attr:r,name:a,value:s}),o.push(a),Qt(),Ke==","&&Qt()}if(Ke!="]")throw xn("Bracket ] expected");Qt()}if(Ms(o).call(o,"dir")){var g={};for(g.arrows={},t=0;t<i.length;t++)if(i[t].name==="arrows")if(i[t].value.to!=null)g.arrows.to=t;else if(i[t].value.from!=null)g.arrows.from=t;else throw xn("Invalid value of arrows");else i[t].name==="dir"&&(g.dir=t);var u=i[g.dir].value;if(!Ms(o).call(o,"arrows"))if(u==="both")i.push({attr:i[g.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),g.arrows.to=i.length-1,i.push({attr:i[g.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),g.arrows.from=i.length-1;else if(u==="forward")i.push({attr:i[g.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),g.arrows.to=i.length-1;else if(u==="back")i.push({attr:i[g.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),g.arrows.from=i.length-1;else if(u==="none")i.push({attr:i[g.dir].attr,name:"arrows",value:""}),g.arrows.to=i.length-1;else throw xn('Invalid dir type "'+u+'"');var c,d;if(u==="both")g.arrows.to&&g.arrows.from?(d=i[g.arrows.to].value.to.type,c=i[g.arrows.from].value.from.type,i[g.arrows.to]={attr:i[g.arrows.to].attr,name:i[g.arrows.to].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}},Yo(i).call(i,g.arrows.from,1)):g.arrows.to?(d=i[g.arrows.to].value.to.type,c="arrow",i[g.arrows.to]={attr:i[g.arrows.to].attr,name:i[g.arrows.to].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}):g.arrows.from&&(d="arrow",c=i[g.arrows.from].value.from.type,i[g.arrows.from]={attr:i[g.arrows.from].attr,name:i[g.arrows.from].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}});else if(u==="back")g.arrows.to&&g.arrows.from?(d="",c=i[g.arrows.from].value.from.type,i[g.arrows.from]={attr:i[g.arrows.from].attr,name:i[g.arrows.from].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}):g.arrows.to?(d="",c="arrow",g.arrows.from=g.arrows.to,i[g.arrows.from]={attr:i[g.arrows.from].attr,name:i[g.arrows.from].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}):g.arrows.from&&(d="",c=i[g.arrows.from].value.from.type,i[g.arrows.to]={attr:i[g.arrows.from].attr,name:i[g.arrows.from].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}),i[g.arrows.from]={attr:i[g.arrows.from].attr,name:i[g.arrows.from].name,value:{from:{enabled:!0,type:i[g.arrows.from].value.from.type}}};else if(u==="none"){var h;g.arrows.to?h=g.arrows.to:h=g.arrows.from,i[h]={attr:i[h].attr,name:i[h].name,value:""}}else if(u==="forward")g.arrows.to&&g.arrows.from?(d=i[g.arrows.to].value.to.type,c="",i[g.arrows.to]={attr:i[g.arrows.to].attr,name:i[g.arrows.to].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}):g.arrows.to?(d=i[g.arrows.to].value.to.type,c="",i[g.arrows.to]={attr:i[g.arrows.to].attr,name:i[g.arrows.to].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}):g.arrows.from&&(d="arrow",c="",g.arrows.to=g.arrows.from,i[g.arrows.to]={attr:i[g.arrows.to].attr,name:i[g.arrows.to].name,value:{to:{enabled:!0,type:d},from:{enabled:!0,type:c}}}),i[g.arrows.to]={attr:i[g.arrows.to].attr,name:i[g.arrows.to].name,value:{to:{enabled:!0,type:i[g.arrows.to].value.to.type}}};else throw xn('Invalid dir type "'+u+'"');Yo(i).call(i,g.dir,1)}var A;if(Ms(o).call(o,"penwidth")){var f=[];for(A=i.length,t=0;t<A;t++)i[t].name!=="width"&&(i[t].name==="penwidth"&&(i[t].name="width"),f.push(i[t]));i=f}for(A=i.length,t=0;t<A;t++)Oke(i[t].attr,i[t].name,i[t].value);return r}function xn(t){return new SyntaxError(t+', got "'+IW(Ke,30)+'" (char '+Fc+")")}function IW(t,r){return t.length<=r?t:t.substr(0,27)+"..."}function Nke(t,r,e){lt(t)?Et(t).call(t,function(n){lt(r)?Et(r).call(r,function(i){e(n,i)}):e(n,r)}):lt(r)?Et(r).call(r,function(n){e(t,n)}):e(t,r)}function K0(t,r,e){for(var n=r.split("."),i=n.pop(),o=t,a=0;a<n.length;a++){var s=n[a];s in o||(o[s]={}),o=o[s]}return o[i]=e,t}function EN(t,r){var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=r[n];lt(i)?Et(i).call(i,function(o){K0(e,o,t[n])}):typeof i=="string"?K0(e,i,t[n]):K0(e,n,t[n])}return e}function Mke(t){var r=Ske(t),e={nodes:[],edges:[],options:{}};if(r.nodes){var n;Et(n=r.nodes).call(n,function(a){var s={id:a.id,label:String(a.label||a.id)};il(s,EN(a.attr,cW)),s.image&&(s.shape="image"),e.nodes.push(s)})}if(r.edges){var i,o=function(s){var l={from:s.from,to:s.to};return il(l,EN(s.attr,$T)),l.arrows==null&&s.type==="->"&&(l.arrows="to"),l};Et(i=r.edges).call(i,function(a){var s,l;if(a.from instanceof Object?s=a.from.nodes:s={id:a.from},a.to instanceof Object?l=a.to.nodes:l={id:a.to},a.from instanceof Object&&a.from.edges){var g;Et(g=a.from.edges).call(g,function(c){var d=o(c);e.edges.push(d)})}if(Nke(s,l,function(c,d){var h=hW(e,c.id,d.id,a.type,a.attr),A=o(h);e.edges.push(A)}),a.to instanceof Object&&a.to.edges){var u;Et(u=a.to.edges).call(u,function(c){var d=o(c);e.edges.push(d)})}})}return r.attr&&(e.options=r.attr),e}function Bke(t,r){var e,n={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};r!=null&&(r.fixed!=null&&(n.nodes.fixed=r.fixed),r.parseColor!=null&&(n.nodes.parseColor=r.parseColor),r.inheritColor!=null&&(n.edges.inheritColor=r.inheritColor));var i=t.edges,o=vn(i).call(i,function(s){var l={from:s.source,id:s.id,to:s.target};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.type==="Directed"&&(l.arrows="to"),s.color&&n.edges.inheritColor===!1&&(l.color=s.color),l}),a=vn(e=t.nodes).call(e,function(s){var l={id:s.id,fixed:n.nodes.fixed&&s.x!=null&&s.y!=null};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.size!=null&&(l.size=s.size),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.title!=null&&(l.title=s.title),s.x!=null&&(l.x=s.x),s.y!=null&&(l.y=s.y),s.color!=null&&(n.nodes.parseColor===!0?l.color=s.color:l.color={background:s.color,border:s.color,highlight:{background:s.color,border:s.color},hover:{background:s.color,border:s.color}}),l});return{nodes:a,edges:o}}var Fke={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},Lke={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},zke={addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},jke={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},Vke={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},Gke={addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},Wke={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},Hke={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},Uke={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},Zke={addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},Kke={addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},Yke=Object.freeze({__proto__:null,cn:Hke,cs:Kke,de:Lke,en:Fke,es:zke,fr:Zke,it:jke,nl:Vke,pt:Gke,ru:Wke,uk:Uke});function Xke(t,r){try{var e=r.split(/[-_ /]/,2),n=vt(e,2),i=n[0],o=n[1],a=i!=null?i.toLowerCase():null,s=o!=null?o.toUpperCase():null;if(a&&s){var l=a+"-"+s;if(Object.prototype.hasOwnProperty.call(t,l))return l;var g;console.warn(qg(g="Unknown variant ".concat(s," of language ")).call(g,a,"."))}if(a){var u=a;if(Object.prototype.hasOwnProperty.call(t,u))return u;console.warn("Unknown language ".concat(a))}return console.warn("Unknown locale ".concat(r,", falling back to English.")),"en"}catch(c){return console.error(c),console.warn("Unexpected error while normalizing locale ".concat(r,", falling back to English.")),"en"}}var Qke=function(){function t(){Ae(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return fe(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var e=this.image.width,n=this.image.height;this.width=e,this.height=n;var i=Math.floor(n/2),o=Math.floor(n/4),a=Math.floor(n/8),s=Math.floor(n/16),l=Math.floor(e/2),g=Math.floor(e/4),u=Math.floor(e/8),c=Math.floor(e/16);this.canvas.width=3*g,this.canvas.height=i,this.coordinates=[[0,0,l,i],[l,0,g,o],[l,o,u,a],[5*u,o,c,s]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var e=this.canvas.getContext("2d"),n=this.coordinates[0];e.drawImage(this.image,n[0],n[1],n[2],n[3]);for(var i=1;i<this.NUM_ITERATIONS;i++){var o=this.coordinates[i-1],a=this.coordinates[i];e.drawImage(this.canvas,o[0],o[1],o[2],o[3],a[0],a[1],a[2],a[3])}}},{key:"drawImageAtPosition",value:function(e,n,i,o,a,s){if(this.initialized())if(n>2){n*=.5;for(var l=0;n>2&&l<this.NUM_ITERATIONS;)n*=.5,l+=1;l>=this.NUM_ITERATIONS&&(l=this.NUM_ITERATIONS-1);var g=this.coordinates[l];e.drawImage(this.canvas,g[0],g[1],g[2],g[3],i,o,a,s)}else e.drawImage(this.image,i,o,a,s)}}]),t}(),qke=function(){function t(r){Ae(this,t),this.images={},this.imageBroken={},this.callback=r}return fe(t,[{key:"_tryloadBrokenUrl",value:function(e,n,i){if(!(e===void 0||i===void 0)){if(n===void 0){console.warn("No broken url image defined");return}i.image.onerror=function(){console.error("Could not load brokenImage:",n)},i.image.src=n}}},{key:"_redrawWithImage",value:function(e){this.callback&&this.callback(e)}},{key:"load",value:function(e,n){var i=this,o=this.images[e];if(o)return o;var a=new Qke;return this.images[e]=a,a.image.onload=function(){i._fixImageCoordinates(a.image),a.init(),i._redrawWithImage(a)},a.image.onerror=function(){console.error("Could not load image:",e),i._tryloadBrokenUrl(e,n,a)},a.image.src=e,a}},{key:"_fixImageCoordinates",value:function(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}]),t}(),vW={exports:{}},Jke=bt,exe=Jke(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),txe=bt,rxe=Pr,nxe=Wa,SN=exe,yv=Object.isExtensible,ixe=txe(function(){yv(1)}),oxe=ixe||SN?function(r){return!rxe(r)||SN&&nxe(r)==="ArrayBuffer"?!1:yv?yv(r):!0}:yv,axe=bt,pW=!axe(function(){return Object.isExtensible(Object.preventExtensions({}))}),sxe=Oe,lxe=kt,gxe=hf,uxe=Pr,wT=vr,cxe=ai.f,TN=vf,dxe=ly,_T=oxe,hxe=Qm,Axe=pW,mW=!1,Ba=hxe("meta"),fxe=0,ET=function(t){cxe(t,Ba,{value:{objectID:"O"+fxe++,weakData:{}}})},Cxe=function(t,r){if(!uxe(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!wT(t,Ba)){if(!_T(t))return"F";if(!r)return"E";ET(t)}return t[Ba].objectID},Ixe=function(t,r){if(!wT(t,Ba)){if(!_T(t))return!0;if(!r)return!1;ET(t)}return t[Ba].weakData},vxe=function(t){return Axe&&mW&&_T(t)&&!wT(t,Ba)&&ET(t),t},pxe=function(){mxe.enable=function(){},mW=!0;var t=TN.f,r=lxe([].splice),e={};e[Ba]=1,t(e).length&&(TN.f=function(n){for(var i=t(n),o=0,a=i.length;o<a;o++)if(i[o]===Ba){r(i,o,1);break}return i},sxe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dxe.f}))},mxe=vW.exports={enable:pxe,fastKey:Cxe,getWeakData:Ixe,onFreeze:vxe};gxe[Ba]=!0;var vy=vW.exports,yxe=Cl,bxe=Kr,$xe=Vn,wxe=Cd,_xe=l9,Exe=si,ON=gr,Sxe=nT,Txe=iy,kN=s9,Oxe=TypeError,bv=function(t,r){this.stopped=t,this.result=r},xN=bv.prototype,bl=function(t,r,e){var n=e&&e.that,i=!!(e&&e.AS_ENTRIES),o=!!(e&&e.IS_RECORD),a=!!(e&&e.IS_ITERATOR),s=!!(e&&e.INTERRUPTED),l=yxe(r,n),g,u,c,d,h,A,f,C=function(v){return g&&kN(g,"normal",v),new bv(!0,v)},I=function(v){return i?($xe(v),s?l(v[0],v[1],C):l(v[0],v[1])):s?l(v,C):l(v)};if(o)g=t.iterator;else if(a)g=t;else{if(u=Txe(t),!u)throw new Oxe(wxe(t)+" is not iterable");if(_xe(u)){for(c=0,d=Exe(t);d>c;c++)if(h=I(t[c]),h&&ON(xN,h))return h;return new bv(!1)}g=Sxe(t,u)}for(A=o?t.next:g.next;!(f=bxe(A,g)).done;){try{h=I(f.value)}catch(v){kN(g,"throw",v)}if(typeof h=="object"&&h&&ON(xN,h))return h}return new bv(!1)},kxe=gr,xxe=TypeError,py=function(t,r){if(kxe(r,t))return t;throw new xxe("Incorrect invocation")},Pxe=Oe,Rxe=Ut,Dxe=vy,Nxe=bt,Mxe=Ha,Bxe=bl,Fxe=py,Lxe=Ir,zxe=Pr,jxe=Kg,Vxe=Qg,Gxe=ai.f,Wxe=yl.forEach,Hxe=an,yW=Il,Uxe=yW.set,Zxe=yW.getterFor,ST=function(t,r,e){var n=t.indexOf("Map")!==-1,i=t.indexOf("Weak")!==-1,o=n?"set":"add",a=Rxe[t],s=a&&a.prototype,l={},g;if(!Hxe||!Lxe(a)||!(i||s.forEach&&!Nxe(function(){new a().entries().next()})))g=e.getConstructor(r,t,n,o),Dxe.enable();else{g=r(function(d,h){Uxe(Fxe(d,u),{type:t,collection:new a}),jxe(h)||Bxe(h,d[o],{that:d,AS_ENTRIES:n})});var u=g.prototype,c=Zxe(t);Wxe(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(d){var h=d==="add"||d==="set";d in s&&!(i&&d==="clear")&&Mxe(u,d,function(A,f){var C=c(this).collection;if(!h&&i&&!zxe(A))return d==="get"?void 0:!1;var I=C[d](A===0?0:A,f);return h?this:I})}),i||Gxe(u,"size",{configurable:!0,get:function(){return c(this).collection.size}})}return Vxe(g,t,!1,!0),l[t]=g,Pxe({global:!0,forced:!0},l),i||e.setStrong(g,t,n),g},Kxe=vd,TT=function(t,r,e){for(var n in r)e&&e.unsafe&&t[n]?t[n]=r[n]:Kxe(t,n,r[n],e);return t},Yxe=zn,Xxe=iT,Qxe=nr,qxe=an,PN=Qxe("species"),bW=function(t){var r=Yxe(t);qxe&&r&&!r[PN]&&Xxe(r,PN,{configurable:!0,get:function(){return this}})},Jxe=Xg,ePe=iT,RN=TT,tPe=Cl,rPe=py,nPe=Kg,iPe=bl,oPe=eT,lI=tT,aPe=bW,ah=an,DN=vy.fastKey,$W=Il,NN=$W.set,Y0=$W.getterFor,wW={getConstructor:function(t,r,e,n){var i=t(function(g,u){rPe(g,o),NN(g,{type:r,index:Jxe(null),first:void 0,last:void 0,size:0}),ah||(g.size=0),nPe(u)||iPe(u,g[n],{that:g,AS_ENTRIES:e})}),o=i.prototype,a=Y0(r),s=function(g,u,c){var d=a(g),h=l(g,u),A,f;return h?h.value=c:(d.last=h={index:f=DN(u,!0),key:u,value:c,previous:A=d.last,next:void 0,removed:!1},d.first||(d.first=h),A&&(A.next=h),ah?d.size++:g.size++,f!=="F"&&(d.index[f]=h)),g},l=function(g,u){var c=a(g),d=DN(u),h;if(d!=="F")return c.index[d];for(h=c.first;h;h=h.next)if(h.key===u)return h};return RN(o,{clear:function(){for(var u=this,c=a(u),d=c.index,h=c.first;h;)h.removed=!0,h.previous&&(h.previous=h.previous.next=void 0),delete d[h.index],h=h.next;c.first=c.last=void 0,ah?c.size=0:u.size=0},delete:function(g){var u=this,c=a(u),d=l(u,g);if(d){var h=d.next,A=d.previous;delete c.index[d.index],d.removed=!0,A&&(A.next=h),h&&(h.previous=A),c.first===d&&(c.first=h),c.last===d&&(c.last=A),ah?c.size--:u.size--}return!!d},forEach:function(u){for(var c=a(this),d=tPe(u,arguments.length>1?arguments[1]:void 0),h;h=h?h.next:c.first;)for(d(h.value,h.key,this);h&&h.removed;)h=h.previous},has:function(u){return!!l(this,u)}}),RN(o,e?{get:function(u){var c=l(this,u);return c&&c.value},set:function(u,c){return s(this,u===0?0:u,c)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),ah&&ePe(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,r,e){var n=r+" Iterator",i=Y0(r),o=Y0(n);oPe(t,r,function(a,s){NN(this,{type:n,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=void 0,lI(void 0,!0)):lI(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},e?"entries":"values",!e,!0),aPe(r)}},sPe=ST,lPe=wW;sPe("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},lPe);var gPe=wt,uPe=gPe.Map,cPe=uPe,dPe=cPe,hPe=dPe,my=Te(hPe),APe=function(){function t(){Ae(this,t),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Or(this.options,this.defaultOptions)}return fe(t,[{key:"setOptions",value:function(e){var n=["useDefaultGroups"];if(e!==void 0){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&Tt(n).call(n,i)===-1){var o=e[i];this.add(i,o)}}}},{key:"clear",value:function(){this._groups=new my,this._groupNames=[]}},{key:"get",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._groups.get(e);if(i===void 0&&n)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var o=this._groupIndex%this._groupNames.length;++this._groupIndex,i={},i.color=this._groups.get(this._groupNames[o]),this._groups.set(e,i)}else{var a=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,i={},i.color=this._defaultGroups[a],this._groups.set(e,i)}return i}},{key:"add",value:function(e,n){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,n),n}}]),t}(),fPe=Oe;fPe({target:"Number",stat:!0},{isNaN:function(r){return r!==r}});var CPe=wt,IPe=CPe.Number.isNaN,vPe=IPe,pPe=vPe,mPe=pPe,oE=Te(mPe),yPe=Ut,bPe=yPe.isFinite,$Pe=Number.isFinite||function(r){return typeof r=="number"&&bPe(r)},wPe=Oe,_Pe=$Pe;wPe({target:"Number",stat:!0},{isFinite:_Pe});var EPe=wt,SPe=EPe.Number.isFinite,TPe=SPe,OPe=TPe,kPe=OPe,Ql=Te(kPe),xPe=Oe,PPe=yl.some,RPe=yd,DPe=RPe("some");xPe({target:"Array",proto:!0,forced:!DPe},{some:function(r){return PPe(this,r,arguments.length>1?arguments[1]:void 0)}});var NPe=Rr,MPe=NPe("Array").some,BPe=gr,FPe=MPe,X0=Array.prototype,LPe=function(t){var r=t.some;return t===X0||BPe(X0,t)&&r===X0.some?FPe:r},zPe=LPe,jPe=zPe,VPe=jPe,_W=Te(VPe);function jl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var GPe=EG,WPe=GPe,HPe=WPe,UPe=HPe,EW=UPe,ZPe=Te(EW),KPe=Oe,YPe=i9;KPe({target:"Object",stat:!0},{setPrototypeOf:YPe});var XPe=wt,QPe=XPe.Object.setPrototypeOf,qPe=QPe,JPe=qPe,eRe=JPe,tRe=eRe,rRe=tRe,nRe=rRe,SW=nRe,aE=Te(SW),iRe=VV,oRe=iRe,aRe=oRe,sRe=aRe,lRe=sRe,OT=Te(lRe);function sE(t,r){var e;return sE=aE?OT(e=aE).call(e):function(i,o){return i.__proto__=o,i},sE(t,r)}function xt(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=ZPe(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),oy(t,"prototype",{writable:!1}),r&&sE(t,r)}function Mt(t,r){if(r&&(ct(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jl(t)}var gRe=yG,uRe=gRe,cRe=uRe,dRe=cRe,TW=dRe,MN=Te(TW);function xe(t){var r;return xe=aE?OT(r=MN).call(r):function(n){return n.__proto__||MN(n)},xe(t)}function rr(t,r,e){return r=aG(r),r in t?oy(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var OW={exports:{}},kW={exports:{}};(function(t){var r=uT,e=oG;function n(i){"@babel/helpers - typeof";return t.exports=n=typeof r=="function"&&typeof e=="symbol"?function(o){return typeof o}:function(o){return o&&typeof r=="function"&&o.constructor===r&&o!==r.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(kW);var hRe=kW.exports,ARe=IG,fRe=ARe,CRe=fRe,IRe=CRe,vRe=IRe,BN=vr,pRe=cT,mRe=Al,yRe=ai,bRe=function(t,r,e){for(var n=pRe(r),i=yRe.f,o=mRe.f,a=0;a<n.length;a++){var s=n[a];!BN(t,s)&&!(e&&BN(e,s))&&i(t,s,o(r,s))}},$Re=Pr,wRe=Ha,_Re=function(t,r){$Re(r)&&"cause"in r&&wRe(t,"cause",r.cause)},ERe=kt,xW=Error,SRe=ERe("".replace),TRe=function(t){return String(new xW(t).stack)}("zxcasd"),PW=/\n\s*at [^:]*:[^\n]*/,ORe=PW.test(TRe),kRe=function(t,r){if(ORe&&typeof t=="string"&&!xW.prepareStackTrace)for(;r--;)t=SRe(t,PW,"");return t},xRe=bt,PRe=Zg,RRe=!xRe(function(){var t=new Error("a");return"stack"in t?(Object.defineProperty(t,"stack",PRe(1,7)),t.stack!==7):!0}),DRe=Ha,NRe=kRe,MRe=RRe,FN=Error.captureStackTrace,BRe=function(t,r,e,n){MRe&&(FN?FN(t,r):DRe(t,"stack",NRe(e,n)))},FRe=So,LRe=function(t,r){return t===void 0?arguments.length<2?"":r:FRe(t)},zRe=Oe,jRe=gr,VRe=Cf,Dp=i9,GRe=bRe,RW=Xg,Q0=Ha,q0=Zg,WRe=_Re,HRe=BRe,URe=bl,ZRe=LRe,KRe=nr,YRe=KRe("toStringTag"),Np=Error,XRe=[].push,Lc=function(r,e){var n=jRe(J0,this),i;Dp?i=Dp(new Np,n?VRe(this):J0):(i=n?this:RW(J0),Q0(i,YRe,"Error")),e!==void 0&&Q0(i,"message",ZRe(e)),HRe(i,Lc,i.stack,1),arguments.length>2&&WRe(i,arguments[2]);var o=[];return URe(r,XRe,{that:o}),Q0(i,"errors",o),i};Dp?Dp(Lc,Np):GRe(Lc,Np,{name:!0});var J0=Lc.prototype=RW(Np.prototype,{constructor:q0(1,Lc),message:q0(1,""),name:q0(1,"AggregateError")});zRe({global:!0,constructor:!0,arity:2},{AggregateError:Lc});var QRe=Ut,qRe=Wa,Tf=qRe(QRe.process)==="process",JRe=ny,eDe=Cd,tDe=TypeError,DW=function(t){if(JRe(t))return t;throw new tDe(eDe(t)+" is not a constructor")},LN=Vn,rDe=DW,nDe=Kg,iDe=nr,oDe=iDe("species"),NW=function(t,r){var e=LN(t).constructor,n;return e===void 0||nDe(n=LN(e)[oDe])?r:rDe(n)},aDe=fl,MW=/(?:ipad|iphone|ipod).*applewebkit/i.test(aDe),yi=Ut,sDe=hd,lDe=Cl,zN=Ir,gDe=vr,BW=bt,jN=qV,uDe=ff,VN=Z2,cDe=SG,dDe=MW,hDe=Tf,lE=yi.setImmediate,gE=yi.clearImmediate,ADe=yi.process,e1=yi.Dispatch,fDe=yi.Function,GN=yi.MessageChannel,CDe=yi.String,t1=0,jh={},WN="onreadystatechange",_A,Fl,r1,n1;BW(function(){_A=yi.location});var kT=function(t){if(gDe(jh,t)){var r=jh[t];delete jh[t],r()}},i1=function(t){return function(){kT(t)}},HN=function(t){kT(t.data)},UN=function(t){yi.postMessage(CDe(t),_A.protocol+"//"+_A.host)};(!lE||!gE)&&(lE=function(r){cDe(arguments.length,1);var e=zN(r)?r:fDe(r),n=uDe(arguments,1);return jh[++t1]=function(){sDe(e,void 0,n)},Fl(t1),t1},gE=function(r){delete jh[r]},hDe?Fl=function(t){ADe.nextTick(i1(t))}:e1&&e1.now?Fl=function(t){e1.now(i1(t))}:GN&&!dDe?(r1=new GN,n1=r1.port2,r1.port1.onmessage=HN,Fl=lDe(n1.postMessage,n1)):yi.addEventListener&&zN(yi.postMessage)&&!yi.importScripts&&_A&&_A.protocol!=="file:"&&!BW(UN)?(Fl=UN,yi.addEventListener("message",HN,!1)):WN in VN("script")?Fl=function(t){jN.appendChild(VN("script"))[WN]=function(){jN.removeChild(this),kT(t)}}:Fl=function(t){setTimeout(i1(t),0)});var FW={set:lE,clear:gE},LW=function(){this.head=null,this.tail=null};LW.prototype={add:function(t){var r={item:t,next:null},e=this.tail;e?e.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t){var r=this.head=t.next;return r===null&&(this.tail=null),t.item}}};var zW=LW,IDe=fl,vDe=/ipad|iphone|ipod/i.test(IDe)&&typeof Pebble<"u",pDe=fl,mDe=/web0s(?!.*chrome)/i.test(pDe),kg=Ut,ZN=Cl,yDe=Al.f,o1=FW.set,bDe=zW,$De=MW,wDe=vDe,_De=mDe,a1=Tf,KN=kg.MutationObserver||kg.WebKitMutationObserver,YN=kg.document,XN=kg.process,gI=kg.Promise,QN=yDe(kg,"queueMicrotask"),uE=QN&&QN.value,bu,s1,l1,uI,qN;if(!uE){var cI=new bDe,dI=function(){var t,r;for(a1&&(t=XN.domain)&&t.exit();r=cI.get();)try{r()}catch(e){throw cI.head&&bu(),e}t&&t.enter()};!$De&&!a1&&!_De&&KN&&YN?(s1=!0,l1=YN.createTextNode(""),new KN(dI).observe(l1,{characterData:!0}),bu=function(){l1.data=s1=!s1}):!wDe&&gI&&gI.resolve?(uI=gI.resolve(void 0),uI.constructor=gI,qN=ZN(uI.then,uI),bu=function(){qN(dI)}):a1?bu=function(){XN.nextTick(dI)}:(o1=ZN(o1,kg),bu=function(){o1(dI)}),uE=function(t){cI.head||bu(),cI.add(t)}}var EDe=uE,SDe=function(t,r){try{arguments.length===1?console.error(t):console.error(t,r)}catch{}},_d=function(t){try{return{error:!1,value:t()}}catch(r){return{error:!0,value:r}}},TDe=Ut,Ed=TDe.Promise,jW=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",ODe=jW,kDe=Tf,xDe=!ODe&&!kDe&&typeof window=="object"&&typeof document=="object",PDe=Ut,Vh=Ed,RDe=Ir,DDe=MV,NDe=g9,MDe=nr,BDe=xDe,FDe=jW,g1=Ad,JN=Vh&&Vh.prototype,LDe=MDe("species"),cE=!1,VW=RDe(PDe.PromiseRejectionEvent),zDe=DDe("Promise",function(){var t=NDe(Vh),r=t!==String(Vh);if(!r&&g1===66||!(JN.catch&&JN.finally))return!0;if(!g1||g1<51||!/native code/.test(t)){var e=new Vh(function(o){o(1)}),n=function(o){o(function(){},function(){})},i=e.constructor={};if(i[LDe]=n,cE=e.then(function(){})instanceof n,!cE)return!0}return!r&&(BDe||FDe)&&!VW}),Of={CONSTRUCTOR:zDe,REJECTION_EVENT:VW,SUBCLASSING:cE},la={},eM=oi,jDe=TypeError,VDe=function(t){var r,e;this.promise=new t(function(n,i){if(r!==void 0||e!==void 0)throw new jDe("Bad Promise constructor");r=n,e=i}),this.resolve=eM(r),this.reject=eM(e)};la.f=function(t){return new VDe(t)};var GDe=Oe,Mp=Tf,ol=Ut,kf=Kr,WDe=vd,HDe=Qg,UDe=bW,ZDe=oi,dE=Ir,KDe=Pr,YDe=py,XDe=NW,GW=FW.set,xT=EDe,QDe=SDe,qDe=_d,JDe=zW,WW=Il,hE=Ed,HW=Of,UW=la,yy="Promise",ZW=HW.CONSTRUCTOR,eNe=HW.REJECTION_EVENT,u1=WW.getterFor(yy),tNe=WW.set,rNe=hE&&hE.prototype,Hu=hE,c1=rNe,KW=ol.TypeError,AE=ol.document,PT=ol.process,fE=UW.f,nNe=fE,iNe=!!(AE&&AE.createEvent&&ol.dispatchEvent),YW="unhandledrejection",oNe="rejectionhandled",tM=0,XW=1,aNe=2,RT=1,QW=2,hI,rM,sNe,qW=function(t){var r;return KDe(t)&&dE(r=t.then)?r:!1},JW=function(t,r){var e=r.value,n=r.state===XW,i=n?t.ok:t.fail,o=t.resolve,a=t.reject,s=t.domain,l,g,u;try{i?(n||(r.rejection===QW&&gNe(r),r.rejection=RT),i===!0?l=e:(s&&s.enter(),l=i(e),s&&(s.exit(),u=!0)),l===t.promise?a(new KW("Promise-chain cycle")):(g=qW(l))?kf(g,l,o,a):o(l)):a(e)}catch(c){s&&!u&&s.exit(),a(c)}},eH=function(t,r){t.notified||(t.notified=!0,xT(function(){for(var e=t.reactions,n;n=e.get();)JW(n,t);t.notified=!1,r&&!t.rejection&&lNe(t)}))},tH=function(t,r,e){var n,i;iNe?(n=AE.createEvent("Event"),n.promise=r,n.reason=e,n.initEvent(t,!1,!0),ol.dispatchEvent(n)):n={promise:r,reason:e},!eNe&&(i=ol["on"+t])?i(n):t===YW&&QDe("Unhandled promise rejection",e)},lNe=function(t){kf(GW,ol,function(){var r=t.facade,e=t.value,n=nM(t),i;if(n&&(i=qDe(function(){Mp?PT.emit("unhandledRejection",e,r):tH(YW,r,e)}),t.rejection=Mp||nM(t)?QW:RT,i.error))throw i.value})},nM=function(t){return t.rejection!==RT&&!t.parent},gNe=function(t){kf(GW,ol,function(){var r=t.facade;Mp?PT.emit("rejectionHandled",r):tH(oNe,r,t.value)})},Uu=function(t,r,e){return function(n){t(r,n,e)}},hc=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=aNe,eH(t,!0))},CE=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw new KW("Promise can't be resolved itself");var n=qW(r);n?xT(function(){var i={done:!1};try{kf(n,r,Uu(CE,i,t),Uu(hc,i,t))}catch(o){hc(i,o,t)}}):(t.value=r,t.state=XW,eH(t,!1))}catch(i){hc({done:!1},i,t)}}};ZW&&(Hu=function(r){YDe(this,c1),ZDe(r),kf(hI,this);var e=u1(this);try{r(Uu(CE,e),Uu(hc,e))}catch(n){hc(e,n)}},c1=Hu.prototype,hI=function(r){tNe(this,{type:yy,done:!1,notified:!1,parent:!1,reactions:new JDe,rejection:!1,state:tM,value:void 0})},hI.prototype=WDe(c1,"then",function(r,e){var n=u1(this),i=fE(XDe(this,Hu));return n.parent=!0,i.ok=dE(r)?r:!0,i.fail=dE(e)&&e,i.domain=Mp?PT.domain:void 0,n.state===tM?n.reactions.add(i):xT(function(){JW(i,n)}),i.promise}),rM=function(){var t=new hI,r=u1(t);this.promise=t,this.resolve=Uu(CE,r),this.reject=Uu(hc,r)},UW.f=fE=function(t){return t===Hu||t===sNe?new rM(t):nNe(t)});GDe({global:!0,constructor:!0,wrap:!0,forced:ZW},{Promise:Hu});HDe(Hu,yy,!1,!0);UDe(yy);var uNe=Ed,cNe=C9,dNe=Of.CONSTRUCTOR,by=dNe||!cNe(function(t){uNe.all(t).then(void 0,function(){})}),hNe=Oe,ANe=Kr,fNe=oi,CNe=la,INe=_d,vNe=bl,pNe=by;hNe({target:"Promise",stat:!0,forced:pNe},{all:function(r){var e=this,n=CNe.f(e),i=n.resolve,o=n.reject,a=INe(function(){var s=fNe(e.resolve),l=[],g=0,u=1;vNe(r,function(c){var d=g++,h=!1;u++,ANe(s,e,c).then(function(A){h||(h=!0,l[d]=A,--u||i(l))},o)}),--u||i(l)});return a.error&&o(a.value),n.promise}});var mNe=Oe,yNe=Of.CONSTRUCTOR,iM=Ed;iM&&iM.prototype;mNe({target:"Promise",proto:!0,forced:yNe,real:!0},{catch:function(t){return this.then(void 0,t)}});var bNe=Oe,$Ne=Kr,wNe=oi,_Ne=la,ENe=_d,SNe=bl,TNe=by;bNe({target:"Promise",stat:!0,forced:TNe},{race:function(r){var e=this,n=_Ne.f(e),i=n.reject,o=ENe(function(){var a=wNe(e.resolve);SNe(r,function(s){$Ne(a,e,s).then(n.resolve,i)})});return o.error&&i(o.value),n.promise}});var ONe=Oe,kNe=Kr,xNe=la,PNe=Of.CONSTRUCTOR;ONe({target:"Promise",stat:!0,forced:PNe},{reject:function(r){var e=xNe.f(this);return kNe(e.reject,void 0,r),e.promise}});var RNe=Vn,DNe=Pr,NNe=la,rH=function(t,r){if(RNe(t),DNe(r)&&r.constructor===t)return r;var e=NNe.f(t),n=e.resolve;return n(r),e.promise},MNe=Oe,BNe=zn,FNe=wIe,LNe=Ed,zNe=Of.CONSTRUCTOR,jNe=rH,VNe=BNe("Promise"),GNe=!zNe;MNe({target:"Promise",stat:!0,forced:FNe},{resolve:function(r){return jNe(GNe&&this===VNe?LNe:this,r)}});var WNe=Oe,HNe=Kr,UNe=oi,ZNe=la,KNe=_d,YNe=bl,XNe=by;WNe({target:"Promise",stat:!0,forced:XNe},{allSettled:function(r){var e=this,n=ZNe.f(e),i=n.resolve,o=n.reject,a=KNe(function(){var s=UNe(e.resolve),l=[],g=0,u=1;YNe(r,function(c){var d=g++,h=!1;u++,HNe(s,e,c).then(function(A){h||(h=!0,l[d]={status:"fulfilled",value:A},--u||i(l))},function(A){h||(h=!0,l[d]={status:"rejected",reason:A},--u||i(l))})}),--u||i(l)});return a.error&&o(a.value),n.promise}});var QNe=Oe,qNe=Kr,JNe=oi,eMe=zn,tMe=la,rMe=_d,nMe=bl,iMe=by,oM="No one promise resolved";QNe({target:"Promise",stat:!0,forced:iMe},{any:function(r){var e=this,n=eMe("AggregateError"),i=tMe.f(e),o=i.resolve,a=i.reject,s=rMe(function(){var l=JNe(e.resolve),g=[],u=0,c=1,d=!1;nMe(r,function(h){var A=u++,f=!1;c++,qNe(l,e,h).then(function(C){f||d||(d=!0,o(C))},function(C){f||d||(f=!0,g[A]=C,--c||a(new n(g,oM)))})}),--c||a(new n(g,oM))});return s.error&&a(s.value),i.promise}});var oMe=Oe,IE=Ed,aMe=bt,sMe=zn,lMe=Ir,gMe=NW,aM=rH,uMe=IE&&IE.prototype,cMe=!!IE&&aMe(function(){uMe.finally.call({then:function(){}},function(){})});oMe({target:"Promise",proto:!0,real:!0,forced:cMe},{finally:function(t){var r=gMe(this,sMe("Promise")),e=lMe(t);return this.then(e?function(n){return aM(r,t()).then(function(){return n})}:t,e?function(n){return aM(r,t()).then(function(){throw n})}:t)}});var dMe=wt,hMe=dMe.Promise,AMe=hMe,fMe=AMe,CMe=Oe,IMe=la;CMe({target:"Promise",stat:!0},{withResolvers:function(){var r=IMe.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}});var vMe=fMe,pMe=vMe,mMe=Oe,yMe=la,bMe=_d;mMe({target:"Promise",stat:!0,forced:!0},{try:function(t){var r=yMe.f(this),e=bMe(t);return(e.error?r.reject:r.resolve)(e.value),r.promise}});var $Me=pMe,wMe=$Me,_Me=wMe,EMe=vG,SMe=EMe,TMe=SMe,OMe=TMe,kMe=OMe;(function(t){var r=hRe.default,e=_9,n=uT,i=EW,o=TW,a=vRe,s=uG,l=SW,g=_Me,u=kMe,c=dG;function d(){t.exports=d=function(){return A},t.exports.__esModule=!0,t.exports.default=t.exports;var h,A={},f=Object.prototype,C=f.hasOwnProperty,I=e||function(R,x,B){R[x]=B.value},v=typeof n=="function"?n:{},p=v.iterator||"@@iterator",y=v.asyncIterator||"@@asyncIterator",b=v.toStringTag||"@@toStringTag";function _(R,x,B){return e(R,x,{value:B,enumerable:!0,configurable:!0,writable:!0}),R[x]}try{_({},"")}catch{_=function(B,K,$){return B[K]=$}}function P(R,x,B,K){var $=x&&x.prototype instanceof Q?x:Q,S=i($.prototype),F=new U(K||[]);return I(S,"_invoke",{value:Ve(R,B,F)}),S}function k(R,x,B){try{return{type:"normal",arg:R.call(x,B)}}catch(K){return{type:"throw",arg:K}}}A.wrap=P;var E="suspendedStart",O="suspendedYield",N="executing",D="completed",M={};function Q(){}function j(){}function W(){}var q={};_(q,p,function(){return this});var oe=o,Pe=oe&&oe(oe(ie([])));Pe&&Pe!==f&&C.call(Pe,p)&&(q=Pe);var He=W.prototype=Q.prototype=i(q);function Le(R){var x;a(x=["next","throw","return"]).call(x,function(B){_(R,B,function(K){return this._invoke(B,K)})})}function me(R,x){function B($,S,F,Z){var G=k(R[$],R,S);if(G.type!=="throw"){var ae=G.arg,he=ae.value;return he&&r(he)=="object"&&C.call(he,"__await")?x.resolve(he.__await).then(function(ne){B("next",ne,F,Z)},function(ne){B("throw",ne,F,Z)}):x.resolve(he).then(function(ne){ae.value=ne,F(ae)},function(ne){return B("throw",ne,F,Z)})}Z(G.arg)}var K;I(this,"_invoke",{value:function(S,F){function Z(){return new x(function(G,ae){B(S,F,G,ae)})}return K=K?K.then(Z,Z):Z()}})}function Ve(R,x,B){var K=E;return function($,S){if(K===N)throw new Error("Generator is already running");if(K===D){if($==="throw")throw S;return{value:h,done:!0}}for(B.method=$,B.arg=S;;){var F=B.delegate;if(F){var Z=We(F,B);if(Z){if(Z===M)continue;return Z}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(K===E)throw K=D,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);K=N;var G=k(R,x,B);if(G.type==="normal"){if(K=B.done?D:O,G.arg===M)continue;return{value:G.arg,done:B.done}}G.type==="throw"&&(K=D,B.method="throw",B.arg=G.arg)}}}function We(R,x){var B=x.method,K=R.iterator[B];if(K===h)return x.delegate=null,B==="throw"&&R.iterator.return&&(x.method="return",x.arg=h,We(R,x),x.method==="throw")||B!=="return"&&(x.method="throw",x.arg=new TypeError("The iterator does not provide a '"+B+"' method")),M;var $=k(K,R.iterator,x.arg);if($.type==="throw")return x.method="throw",x.arg=$.arg,x.delegate=null,M;var S=$.arg;return S?S.done?(x[R.resultName]=S.value,x.next=R.nextLoc,x.method!=="return"&&(x.method="next",x.arg=h),x.delegate=null,M):S:(x.method="throw",x.arg=new TypeError("iterator result is not an object"),x.delegate=null,M)}function ot(R){var x,B={tryLoc:R[0]};1 in R&&(B.catchLoc=R[1]),2 in R&&(B.finallyLoc=R[2],B.afterLoc=R[3]),s(x=this.tryEntries).call(x,B)}function At(R){var x=R.completion||{};x.type="normal",delete x.arg,R.completion=x}function U(R){this.tryEntries=[{tryLoc:"root"}],a(R).call(R,ot,this),this.reset(!0)}function ie(R){if(R||R===""){var x=R[p];if(x)return x.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var B=-1,K=function $(){for(;++B<R.length;)if(C.call(R,B))return $.value=R[B],$.done=!1,$;return $.value=h,$.done=!0,$};return K.next=K}}throw new TypeError(r(R)+" is not iterable")}return j.prototype=W,I(He,"constructor",{value:W,configurable:!0}),I(W,"constructor",{value:j,configurable:!0}),j.displayName=_(W,b,"GeneratorFunction"),A.isGeneratorFunction=function(R){var x=typeof R=="function"&&R.constructor;return!!x&&(x===j||(x.displayName||x.name)==="GeneratorFunction")},A.mark=function(R){return l?l(R,W):(R.__proto__=W,_(R,b,"GeneratorFunction")),R.prototype=i(He),R},A.awrap=function(R){return{__await:R}},Le(me.prototype),_(me.prototype,y,function(){return this}),A.AsyncIterator=me,A.async=function(R,x,B,K,$){$===void 0&&($=g);var S=new me(P(R,x,B,K),$);return A.isGeneratorFunction(x)?S:S.next().then(function(F){return F.done?F.value:S.next()})},Le(He),_(He,b,"Generator"),_(He,p,function(){return this}),_(He,"toString",function(){return"[object Generator]"}),A.keys=function(R){var x=Object(R),B=[];for(var K in x)s(B).call(B,K);return u(B).call(B),function $(){for(;B.length;){var S=B.pop();if(S in x)return $.value=S,$.done=!1,$}return $.done=!0,$}},A.values=ie,U.prototype={constructor:U,reset:function(x){var B;if(this.prev=0,this.next=0,this.sent=this._sent=h,this.done=!1,this.delegate=null,this.method="next",this.arg=h,a(B=this.tryEntries).call(B,At),!x)for(var K in this)K.charAt(0)==="t"&&C.call(this,K)&&!isNaN(+c(K).call(K,1))&&(this[K]=h)},stop:function(){this.done=!0;var x=this.tryEntries[0].completion;if(x.type==="throw")throw x.arg;return this.rval},dispatchException:function(x){if(this.done)throw x;var B=this;function K(ae,he){return F.type="throw",F.arg=x,B.next=ae,he&&(B.method="next",B.arg=h),!!he}for(var $=this.tryEntries.length-1;$>=0;--$){var S=this.tryEntries[$],F=S.completion;if(S.tryLoc==="root")return K("end");if(S.tryLoc<=this.prev){var Z=C.call(S,"catchLoc"),G=C.call(S,"finallyLoc");if(Z&&G){if(this.prev<S.catchLoc)return K(S.catchLoc,!0);if(this.prev<S.finallyLoc)return K(S.finallyLoc)}else if(Z){if(this.prev<S.catchLoc)return K(S.catchLoc,!0)}else{if(!G)throw new Error("try statement without catch or finally");if(this.prev<S.finallyLoc)return K(S.finallyLoc)}}}},abrupt:function(x,B){for(var K=this.tryEntries.length-1;K>=0;--K){var $=this.tryEntries[K];if($.tryLoc<=this.prev&&C.call($,"finallyLoc")&&this.prev<$.finallyLoc){var S=$;break}}S&&(x==="break"||x==="continue")&&S.tryLoc<=B&&B<=S.finallyLoc&&(S=null);var F=S?S.completion:{};return F.type=x,F.arg=B,S?(this.method="next",this.next=S.finallyLoc,M):this.complete(F)},complete:function(x,B){if(x.type==="throw")throw x.arg;return x.type==="break"||x.type==="continue"?this.next=x.arg:x.type==="return"?(this.rval=this.arg=x.arg,this.method="return",this.next="end"):x.type==="normal"&&B&&(this.next=B),M},finish:function(x){for(var B=this.tryEntries.length-1;B>=0;--B){var K=this.tryEntries[B];if(K.finallyLoc===x)return this.complete(K.completion,K.afterLoc),At(K),M}},catch:function(x){for(var B=this.tryEntries.length-1;B>=0;--B){var K=this.tryEntries[B];if(K.tryLoc===x){var $=K.completion;if($.type==="throw"){var S=$.arg;At(K)}return S}}throw new Error("illegal catch attempt")},delegateYield:function(x,B,K){return this.delegate={iterator:ie(x),resultName:B,nextLoc:K},this.method==="next"&&(this.arg=h),M}},A}t.exports=d,t.exports.__esModule=!0,t.exports.default=t.exports})(OW);var xMe=OW.exports,$v=xMe(),PMe=$v;try{regeneratorRuntime=$v}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=$v:Function("r","regeneratorRuntime = r")($v)}var Hn=Te(PMe),RMe=oi,DMe=jn,NMe=Xm,MMe=si,BMe=TypeError,sM=function(t){return function(r,e,n,i){RMe(e);var o=DMe(r),a=NMe(o),s=MMe(o),l=t?s-1:0,g=t?-1:1;if(n<2)for(;;){if(l in a){i=a[l],l+=g;break}if(l+=g,t?l<0:s<=l)throw new BMe("Reduce of empty array with no initial value")}for(;t?l>=0:s>l;l+=g)l in a&&(i=e(i,a[l],l,o));return i}},FMe={left:sM(!1),right:sM(!0)},LMe=Oe,zMe=FMe.left,jMe=yd,lM=Ad,VMe=Tf,GMe=!VMe&&lM>79&&lM<83,WMe=GMe||!jMe("reduce");LMe({target:"Array",proto:!0,forced:WMe},{reduce:function(r){var e=arguments.length;return zMe(this,r,e,e>1?arguments[1]:void 0)}});var HMe=Rr,UMe=HMe("Array").reduce,ZMe=gr,KMe=UMe,d1=Array.prototype,YMe=function(t){var r=t.reduce;return t===d1||ZMe(d1,t)&&r===d1.reduce?KMe:r},XMe=YMe,QMe=XMe,qMe=QMe,DT=Te(qMe),JMe=ml,eBe=si,tBe=ay,rBe=Cl,nH=function(t,r,e,n,i,o,a,s){for(var l=i,g=0,u=a?rBe(a,s):!1,c,d;g<n;)g in e&&(c=u?u(e[g],g,r):e[g],o>0&&JMe(c)?(d=eBe(c),l=nH(t,r,c,d,l,o-1)-1):(tBe(l+1),t[l]=c),l++),g++;return l},nBe=nH,iBe=Oe,oBe=nBe,aBe=oi,sBe=jn,lBe=si,gBe=sy;iBe({target:"Array",proto:!0},{flatMap:function(r){var e=sBe(this),n=lBe(e),i;return aBe(r),i=gBe(e,0),i.length=oBe(i,e,e,n,0,1,r,arguments.length>1?arguments[1]:void 0),i}});var uBe=Rr;uBe("Array").flatMap;var cBe=ST,dBe=wW;cBe("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},dBe);var hBe=wt,ABe=hBe.Set,fBe=ABe,CBe=fBe,IBe=CBe,Fo=Te(IBe),vBe=iG,Ac=Te(vBe),pBe=nT,mBe=pBe,yBe=mBe,bBe=yBe,$Be=bBe,wBe=$Be,_Be=wBe,EBe=_Be,SBe=EBe,TBe=SBe,h1=Te(TBe),gM=S9,OBe=Math.floor,vE=function(t,r){var e=t.length,n=OBe(e/2);return e<8?kBe(t,r):xBe(t,vE(gM(t,0,n),r),vE(gM(t,n),r),r)},kBe=function(t,r){for(var e=t.length,n=1,i,o;n<e;){for(o=n,i=t[n];o&&r(t[o-1],i)>0;)t[o]=t[--o];o!==n++&&(t[o]=i)}return t},xBe=function(t,r,e,n){for(var i=r.length,o=e.length,a=0,s=0;a<i||s<o;)t[a+s]=a<i&&s<o?n(r[a],e[s])<=0?r[a++]:e[s++]:a<i?r[a++]:e[s++];return t},PBe=vE,RBe=fl,uM=RBe.match(/firefox\/(\d+)/i),DBe=!!uM&&+uM[1],NBe=fl,MBe=/MSIE|Trident/.test(NBe),BBe=fl,cM=BBe.match(/AppleWebKit\/(\d+)\./),FBe=!!cM&&+cM[1],LBe=Oe,iH=kt,zBe=oi,jBe=jn,dM=si,VBe=pG,hM=So,NT=bt,GBe=PBe,WBe=yd,AM=DBe,HBe=MBe,fM=Ad,CM=FBe,Es=[],IM=iH(Es.sort),UBe=iH(Es.push),ZBe=NT(function(){Es.sort(void 0)}),KBe=NT(function(){Es.sort(null)}),YBe=WBe("sort"),oH=!NT(function(){if(fM)return fM<70;if(!(AM&&AM>3)){if(HBe)return!0;if(CM)return CM<603;var t="",r,e,n,i;for(r=65;r<76;r++){switch(e=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)Es.push({k:e+i,v:n})}for(Es.sort(function(o,a){return a.v-o.v}),i=0;i<Es.length;i++)e=Es[i].k.charAt(0),t.charAt(t.length-1)!==e&&(t+=e);return t!=="DGBEFHACIJK"}}),XBe=ZBe||!KBe||!YBe||!oH,QBe=function(t){return function(r,e){return e===void 0?-1:r===void 0?1:t!==void 0?+t(r,e)||0:hM(r)>hM(e)?1:-1}};LBe({target:"Array",proto:!0,forced:XBe},{sort:function(r){r!==void 0&&zBe(r);var e=jBe(this);if(oH)return r===void 0?IM(e):IM(e,r);var n=[],i=dM(e),o,a;for(a=0;a<i;a++)a in e&&UBe(n,e[a]);for(GBe(n,QBe(r)),o=dM(n),a=0;a<o;)e[a]=n[a++];for(;a<i;)VBe(e,a++);return e}});var qBe=Rr,JBe=qBe("Array").sort,e3e=gr,t3e=JBe,A1=Array.prototype,r3e=function(t){var r=t.sort;return t===A1||e3e(A1,t)&&r===A1.sort?t3e:r},n3e=r3e,i3e=n3e,o3e=i3e,zs=Te(o3e),a3e=Rr,s3e=a3e("Array").keys,l3e=s3e,g3e=l3e,u3e=Ua,c3e=vr,d3e=gr,h3e=g3e,f1=Array.prototype,A3e={DOMTokenList:!0,NodeList:!0},f3e=function(t){var r=t.keys;return t===f1||d3e(f1,t)&&r===f1.keys||c3e(A3e,u3e(t))?h3e:r},C3e=f3e,$u=Te(C3e),I3e=Rr,v3e=I3e("Array").values,p3e=v3e,m3e=p3e,y3e=Ua,b3e=vr,$3e=gr,w3e=m3e,C1=Array.prototype,_3e={DOMTokenList:!0,NodeList:!0},E3e=function(t){var r=t.values;return t===C1||$3e(C1,t)&&r===C1.values||b3e(_3e,y3e(t))?w3e:r},S3e=E3e,Bp=Te(S3e),T3e=Rr,O3e=T3e("Array").entries,k3e=O3e,x3e=k3e,P3e=Ua,R3e=vr,D3e=gr,N3e=x3e,I1=Array.prototype,M3e={DOMTokenList:!0,NodeList:!0},B3e=function(t){var r=t.entries;return t===I1||D3e(I1,t)&&r===I1.entries||R3e(M3e,P3e(t))?N3e:r},F3e=B3e,L3e=Te(F3e),z3e=w9,xf=Te(z3e),j3e=Oe,V3e=zn,v1=hd,G3e=jV,vM=DW,W3e=Vn,pM=Pr,H3e=Xg,aH=bt,MT=V3e("Reflect","construct"),U3e=Object.prototype,Z3e=[].push,sH=aH(function(){function t(){}return!(MT(function(){},[],t)instanceof t)}),lH=!aH(function(){MT(function(){})}),mM=sH||lH;j3e({target:"Reflect",stat:!0,forced:mM,sham:mM},{construct:function(r,e){vM(r),W3e(e);var n=arguments.length<3?r:vM(arguments[2]);if(lH&&!sH)return MT(r,e,n);if(r===n){switch(e.length){case 0:return new r;case 1:return new r(e[0]);case 2:return new r(e[0],e[1]);case 3:return new r(e[0],e[1],e[2]);case 4:return new r(e[0],e[1],e[2],e[3])}var i=[null];return v1(Z3e,i,e),new(v1(G3e,r,i))}var o=n.prototype,a=H3e(pM(o)?o:U3e),s=v1(r,a,e);return pM(s)?s:a}});var K3e=wt,Y3e=K3e.Reflect.construct,X3e=Y3e,Q3e=X3e,q3e=Q3e,ee=Te(q3e),J3e=wt,eFe=J3e.Object.getOwnPropertySymbols,tFe=eFe,rFe=tFe,nFe=rFe,ia=Te(nFe),gH={exports:{}},iFe=Oe,oFe=bt,aFe=sa,uH=Al.f,cH=an,sFe=!cH||oFe(function(){uH(1)});iFe({target:"Object",stat:!0,forced:sFe,sham:!cH},{getOwnPropertyDescriptor:function(r,e){return uH(aFe(r),e)}});var lFe=wt,dH=lFe.Object,gFe=gH.exports=function(r,e){return dH.getOwnPropertyDescriptor(r,e)};dH.getOwnPropertyDescriptor.sham&&(gFe.sham=!0);var uFe=gH.exports,cFe=uFe,hH=cFe,dFe=hH,ga=Te(dFe),hFe=Oe,AFe=an,fFe=cT,CFe=sa,IFe=Al,vFe=md;hFe({target:"Object",stat:!0,sham:!AFe},{getOwnPropertyDescriptors:function(r){for(var e=CFe(r),n=IFe.f,i=fFe(e),o={},a=0,s,l;i.length>a;)l=n(e,s=i[a++]),l!==void 0&&vFe(o,s,l);return o}});var pFe=wt,mFe=pFe.Object.getOwnPropertyDescriptors,yFe=mFe,bFe=yFe,$Fe=bFe,oa=Te($Fe),AH={exports:{}},wFe=Oe,_Fe=an,yM=ry.f;wFe({target:"Object",stat:!0,forced:Object.defineProperties!==yM,sham:!_Fe},{defineProperties:yM});var EFe=wt,fH=EFe.Object,SFe=AH.exports=function(r,e){return fH.defineProperties(r,e)};fH.defineProperties.sham&&(SFe.sham=!0);var TFe=AH.exports,OFe=TFe,kFe=OFe,xFe=kFe,Pf=Te(xFe);let AI;const PFe=new Uint8Array(16);function RFe(){if(!AI&&(AI=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!AI))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return AI(PFe)}const fn=[];for(let t=0;t<256;++t)fn.push((t+256).toString(16).slice(1));function DFe(t,r=0){return fn[t[r+0]]+fn[t[r+1]]+fn[t[r+2]]+fn[t[r+3]]+"-"+fn[t[r+4]]+fn[t[r+5]]+"-"+fn[t[r+6]]+fn[t[r+7]]+"-"+fn[t[r+8]]+fn[t[r+9]]+"-"+fn[t[r+10]]+fn[t[r+11]]+fn[t[r+12]]+fn[t[r+13]]+fn[t[r+14]]+fn[t[r+15]]}const NFe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var bM={randomUUID:NFe};function fc(t,r,e){if(bM.randomUUID&&!r&&!t)return bM.randomUUID();t=t||{};const n=t.random||(t.rng||RFe)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){e=e||0;for(let i=0;i<16;++i)r[e+i]=n[i];return r}return DFe(n)}var CH;function $M(t,r){var e=er(t);if(ia){var n=ia(t);r&&(n=Mr(n).call(n,function(i){return ga(t,i).enumerable})),e.push.apply(e,n)}return e}function wM(t){for(var r=1;r<arguments.length;r++){var e,n,i=arguments[r]!=null?arguments[r]:{};r%2?Et(e=$M(Object(i),!0)).call(e,function(o){rr(t,o,i[o])}):oa?Pf(t,oa(i)):Et(n=$M(Object(i))).call(n,function(o){xf(t,o,ga(i,o))})}return t}function MFe(t){var r=BFe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function BFe(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}function Ai(t,r){var e=typeof Za<"u"&&pl(t)||t["@@iterator"];if(!e){if(lt(t)||(e=FFe(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(g){throw g},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
729
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function FFe(t,r){var e;if(t){if(typeof t=="string")return _M(t,r);var n=Wr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return vl(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _M(t,r)}}function _M(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function EM(t){return typeof t=="string"||typeof t=="number"}var LFe=function(){function t(r){Ae(this,t),rr(this,"delay",void 0),rr(this,"max",void 0),rr(this,"_queue",[]),rr(this,"_timeout",null),rr(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(r)}return fe(t,[{key:"setOptions",value:function(e){e&&typeof e.delay<"u"&&(this.delay=e.delay),e&&typeof e.max<"u"&&(this.max=e.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var e=this._extended.object,n=this._extended.methods,i=0;i<n.length;i++){var o=n[i];o.original?e[o.name]=o.original:delete e[o.name]}this._extended=null}}},{key:"replace",value:function(e,n){var i=this,o=e[n];if(!o)throw new Error("Method "+n+" undefined");e[n]=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];i.queue({args:s,fn:o,context:this})}}},{key:"queue",value:function(e){typeof e=="function"?this._queue.push({fn:e}):this._queue.push(e),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var e=this;this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=mo(function(){e.flush()},this.delay))}},{key:"flush",value:function(){var e,n;Et(e=Yo(n=this._queue).call(n,0)).call(e,function(i){i.fn.apply(i.context||i.fn,i.args||[])})}}],[{key:"extend",value:function(e,n){var i=new t(n);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=function(){i.flush()};var o=[{name:"flush",original:void 0}];if(n&&n.replace)for(var a=0;a<n.replace.length;a++){var s=n.replace[a];o.push({name:s,original:e[s]}),i.replace(e,s)}return i._extended={object:e,methods:o},i}}]),t}(),zFe=function(){function t(){Ae(this,t),rr(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),rr(this,"subscribe",t.prototype.on),rr(this,"unsubscribe",t.prototype.off)}return fe(t,[{key:"_trigger",value:function(e,n,i){var o,a;if(e==="*")throw new Error("Cannot trigger event *");Et(o=qg(a=[]).call(a,sr(this._subscribers[e]),sr(this._subscribers["*"]))).call(o,function(s){s(e,n,i??null)})}},{key:"on",value:function(e,n){typeof n=="function"&&this._subscribers[e].push(n)}},{key:"off",value:function(e,n){var i;this._subscribers[e]=Mr(i=this._subscribers[e]).call(i,function(o){return o!==n})}}]),t}();CH=Ac;var SM=function(){function t(r){Ae(this,t),rr(this,"_pairs",void 0),this._pairs=r}return fe(t,[{key:CH,value:Hn.mark(function r(){var e,n,i,o,a;return Hn.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:e=Ai(this._pairs),l.prev=1,e.s();case 3:if((n=e.n()).done){l.next=9;break}return i=vt(n.value,2),o=i[0],a=i[1],l.next=7,[o,a];case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),e.e(l.t0);case 14:return l.prev=14,e.f(),l.finish(14);case 17:case"end":return l.stop()}},r,this,[[1,11,14,17]])})},{key:"entries",value:Hn.mark(function r(){var e,n,i,o,a;return Hn.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:e=Ai(this._pairs),l.prev=1,e.s();case 3:if((n=e.n()).done){l.next=9;break}return i=vt(n.value,2),o=i[0],a=i[1],l.next=7,[o,a];case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),e.e(l.t0);case 14:return l.prev=14,e.f(),l.finish(14);case 17:case"end":return l.stop()}},r,this,[[1,11,14,17]])})},{key:"keys",value:Hn.mark(function r(){var e,n,i,o;return Hn.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:e=Ai(this._pairs),s.prev=1,e.s();case 3:if((n=e.n()).done){s.next=9;break}return i=vt(n.value,1),o=i[0],s.next=7,o;case 7:s.next=3;break;case 9:s.next=14;break;case 11:s.prev=11,s.t0=s.catch(1),e.e(s.t0);case 14:return s.prev=14,e.f(),s.finish(14);case 17:case"end":return s.stop()}},r,this,[[1,11,14,17]])})},{key:"values",value:Hn.mark(function r(){var e,n,i,o;return Hn.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:e=Ai(this._pairs),s.prev=1,e.s();case 3:if((n=e.n()).done){s.next=9;break}return i=vt(n.value,2),o=i[1],s.next=7,o;case 7:s.next=3;break;case 9:s.next=14;break;case 11:s.prev=11,s.t0=s.catch(1),e.e(s.t0);case 14:return s.prev=14,e.f(),s.finish(14);case 17:case"end":return s.stop()}},r,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var e;return vn(e=sr(this._pairs)).call(e,function(n){return n[0]})}},{key:"toItemArray",value:function(){var e;return vn(e=sr(this._pairs)).call(e,function(n){return n[1]})}},{key:"toEntryArray",value:function(){return sr(this._pairs)}},{key:"toObjectMap",value:function(){var e=Bs(null),n=Ai(this._pairs),i;try{for(n.s();!(i=n.n()).done;){var o=vt(i.value,2),a=o[0],s=o[1];e[a]=s}}catch(l){n.e(l)}finally{n.f()}return e}},{key:"toMap",value:function(){return new my(this._pairs)}},{key:"toIdSet",value:function(){return new Fo(this.toIdArray())}},{key:"toItemSet",value:function(){return new Fo(this.toItemArray())}},{key:"cache",value:function(){return new t(sr(this._pairs))}},{key:"distinct",value:function(e){var n=new Fo,i=Ai(this._pairs),o;try{for(i.s();!(o=i.n()).done;){var a=vt(o.value,2),s=a[0],l=a[1];n.add(e(l,s))}}catch(g){i.e(g)}finally{i.f()}return n}},{key:"filter",value:function(e){var n=this._pairs;return new t(rr({},Ac,Hn.mark(function i(){var o,a,s,l,g;return Hn.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:o=Ai(n),c.prev=1,o.s();case 3:if((a=o.n()).done){c.next=10;break}if(s=vt(a.value,2),l=s[0],g=s[1],!e(g,l)){c.next=8;break}return c.next=8,[l,g];case 8:c.next=3;break;case 10:c.next=15;break;case 12:c.prev=12,c.t0=c.catch(1),o.e(c.t0);case 15:return c.prev=15,o.f(),c.finish(15);case 18:case"end":return c.stop()}},i,null,[[1,12,15,18]])})))}},{key:"forEach",value:function(e){var n=Ai(this._pairs),i;try{for(n.s();!(i=n.n()).done;){var o=vt(i.value,2),a=o[0],s=o[1];e(s,a)}}catch(l){n.e(l)}finally{n.f()}}},{key:"map",value:function(e){var n=this._pairs;return new t(rr({},Ac,Hn.mark(function i(){var o,a,s,l,g;return Hn.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:o=Ai(n),c.prev=1,o.s();case 3:if((a=o.n()).done){c.next=9;break}return s=vt(a.value,2),l=s[0],g=s[1],c.next=7,[l,e(g,l)];case 7:c.next=3;break;case 9:c.next=14;break;case 11:c.prev=11,c.t0=c.catch(1),o.e(c.t0);case 14:return c.prev=14,o.f(),c.finish(14);case 17:case"end":return c.stop()}},i,null,[[1,11,14,17]])})))}},{key:"max",value:function(e){var n=h1(this._pairs),i=n.next();if(i.done)return null;for(var o=i.value[1],a=e(i.value[1],i.value[0]);!(i=n.next()).done;){var s=vt(i.value,2),l=s[0],g=s[1],u=e(g,l);u>a&&(a=u,o=g)}return o}},{key:"min",value:function(e){var n=h1(this._pairs),i=n.next();if(i.done)return null;for(var o=i.value[1],a=e(i.value[1],i.value[0]);!(i=n.next()).done;){var s=vt(i.value,2),l=s[0],g=s[1],u=e(g,l);u<a&&(a=u,o=g)}return o}},{key:"reduce",value:function(e,n){var i=Ai(this._pairs),o;try{for(i.s();!(o=i.n()).done;){var a=vt(o.value,2),s=a[0],l=a[1];n=e(n,l,s)}}catch(g){i.e(g)}finally{i.f()}return n}},{key:"sort",value:function(e){var n=this;return new t(rr({},Ac,function(){var i;return h1(zs(i=sr(n._pairs)).call(i,function(o,a){var s=vt(o,2),l=s[0],g=s[1],u=vt(a,2),c=u[0],d=u[1];return e(g,d,l,c)}))}))}}]),t}();function jFe(t,r){return t[r]==null&&(t[r]=fc()),t}var zc=function(t){xt(e,t);var r=MFe(e);function e(n,i){var o;return Ae(this,e),o=r.call(this),rr(jl(o),"flush",void 0),rr(jl(o),"length",void 0),rr(jl(o),"_options",void 0),rr(jl(o),"_data",void 0),rr(jl(o),"_idProp",void 0),rr(jl(o),"_queue",null),n&&!lt(n)&&(i=n,n=[]),o._options=i||{},o._data=new my,o.length=0,o._idProp=o._options.fieldId||"id",n&&n.length&&o.add(n),o.setOptions(i),o}return fe(e,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(i){i&&i.queue!==void 0&&(i.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=LFe.extend(this,{replace:["add","update","remove"]})),i.queue&&ct(i.queue)==="object"&&this._queue.setOptions(i.queue)))}},{key:"add",value:function(i,o){var a=this,s=[],l;if(lt(i)){var g=vn(i).call(i,function(d){return d[a._idProp]});if(_W(g).call(g,function(d){return a._data.has(d)}))throw new Error("A duplicate id was found in the parameter array.");for(var u=0,c=i.length;u<c;u++)l=this._addItem(i[u]),s.push(l)}else if(i&&ct(i)==="object")l=this._addItem(i),s.push(l);else throw new Error("Unknown dataType");return s.length&&this._trigger("add",{items:s},o),s}},{key:"update",value:function(i,o){var a=this,s=[],l=[],g=[],u=[],c=this._idProp,d=function(I){var v=I[c];if(v!=null&&a._data.has(v)){var p=I,y=Or({},a._data.get(v)),b=a._updateItem(p);l.push(b),u.push(p),g.push(y)}else{var _=a._addItem(I);s.push(_)}};if(lt(i))for(var h=0,A=i.length;h<A;h++)i[h]&&ct(i[h])==="object"?d(i[h]):console.warn("Ignoring input item, which is not an object at index "+h);else if(i&&ct(i)==="object")d(i);else throw new Error("Unknown dataType");if(s.length&&this._trigger("add",{items:s},o),l.length){var f={items:l,oldData:g,data:u};this._trigger("update",f,o)}return qg(s).call(s,l)}},{key:"updateOnly",value:function(i,o){var a,s=this;lt(i)||(i=[i]);var l=vn(a=vn(i).call(i,function(u){var c=s._data.get(u[s._idProp]);if(c==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:c,update:u}})).call(a,function(u){var c=u.oldData,d=u.update,h=c[s._idProp],A=rke(c,d);return s._data.set(h,A),{id:h,oldData:c,updatedData:A}});if(l.length){var g={items:vn(l).call(l,function(u){return u.id}),oldData:vn(l).call(l,function(u){return u.oldData}),data:vn(l).call(l,function(u){return u.updatedData})};return this._trigger("update",g,o),g.items}else return[]}},{key:"get",value:function(i,o){var a=void 0,s=void 0,l=void 0;EM(i)?(a=i,l=o):lt(i)?(s=i,l=o):l=i;var g=l&&l.returnType==="Object"?"Object":"Array",u=l&&Mr(l),c=[],d=void 0,h=void 0,A=void 0;if(a!=null)d=this._data.get(a),d&&u&&!u(d)&&(d=void 0);else if(s!=null)for(var f=0,C=s.length;f<C;f++)d=this._data.get(s[f]),d!=null&&(!u||u(d))&&c.push(d);else{var I;h=sr($u(I=this._data).call(I));for(var v=0,p=h.length;v<p;v++)A=h[v],d=this._data.get(A),d!=null&&(!u||u(d))&&c.push(d)}if(l&&l.order&&a==null&&this._sort(c,l.order),l&&l.fields){var y=l.fields;if(a!=null&&d!=null)d=this._filterFields(d,y);else for(var b=0,_=c.length;b<_;b++)c[b]=this._filterFields(c[b],y)}if(g=="Object"){for(var P={},k=0,E=c.length;k<E;k++){var O=c[k],N=O[this._idProp];P[N]=O}return P}else if(a!=null){var D;return(D=d)!==null&&D!==void 0?D:null}else return c}},{key:"getIds",value:function(i){var o=this._data,a=i&&Mr(i),s=i&&i.order,l=sr($u(o).call(o)),g=[];if(a)if(s){for(var u=[],c=0,d=l.length;c<d;c++){var h=l[c],A=this._data.get(h);A!=null&&a(A)&&u.push(A)}this._sort(u,s);for(var f=0,C=u.length;f<C;f++)g.push(u[f][this._idProp])}else for(var I=0,v=l.length;I<v;I++){var p=l[I],y=this._data.get(p);y!=null&&a(y)&&g.push(y[this._idProp])}else if(s){for(var b=[],_=0,P=l.length;_<P;_++){var k=l[_];b.push(o.get(k))}this._sort(b,s);for(var E=0,O=b.length;E<O;E++)g.push(b[E][this._idProp])}else for(var N=0,D=l.length;N<D;N++){var M=l[N],Q=o.get(M);Q!=null&&g.push(Q[this._idProp])}return g}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(i,o){var a=o&&Mr(o),s=this._data,l=sr($u(s).call(s));if(o&&o.order)for(var g=this.get(o),u=0,c=g.length;u<c;u++){var d=g[u],h=d[this._idProp];i(d,h)}else for(var A=0,f=l.length;A<f;A++){var C=l[A],I=this._data.get(C);I!=null&&(!a||a(I))&&i(I,C)}}},{key:"map",value:function(i,o){for(var a=o&&Mr(o),s=[],l=this._data,g=sr($u(l).call(l)),u=0,c=g.length;u<c;u++){var d=g[u],h=this._data.get(d);h!=null&&(!a||a(h))&&s.push(i(h,d))}return o&&o.order&&this._sort(s,o.order),s}},{key:"_filterFields",value:function(i,o){var a;return i&&DT(a=lt(o)?o:er(o)).call(a,function(s,l){return s[l]=i[l],s},{})}},{key:"_sort",value:function(i,o){if(typeof o=="string"){var a=o;zs(i).call(i,function(s,l){var g=s[a],u=l[a];return g>u?1:g<u?-1:0})}else if(typeof o=="function")zs(i).call(i,o);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(i,o){for(var a=[],s=[],l=lt(i)?i:[i],g=0,u=l.length;g<u;g++){var c=this._remove(l[g]);if(c){var d=c[this._idProp];d!=null&&(a.push(d),s.push(c))}}return a.length&&this._trigger("remove",{items:a,oldData:s},o),a}},{key:"_remove",value:function(i){var o;if(EM(i)?o=i:i&&ct(i)==="object"&&(o=i[this._idProp]),o!=null&&this._data.has(o)){var a=this._data.get(o)||null;return this._data.delete(o),--this.length,a}return null}},{key:"clear",value:function(i){for(var o,a=sr($u(o=this._data).call(o)),s=[],l=0,g=a.length;l<g;l++)s.push(this._data.get(a[l]));return this._data.clear(),this.length=0,this._trigger("remove",{items:a,oldData:s},i),a}},{key:"max",value:function(i){var o,a=null,s=null,l=Ai(Bp(o=this._data).call(o)),g;try{for(l.s();!(g=l.n()).done;){var u=g.value,c=u[i];typeof c=="number"&&(s==null||c>s)&&(a=u,s=c)}}catch(d){l.e(d)}finally{l.f()}return a||null}},{key:"min",value:function(i){var o,a=null,s=null,l=Ai(Bp(o=this._data).call(o)),g;try{for(l.s();!(g=l.n()).done;){var u=g.value,c=u[i];typeof c=="number"&&(s==null||c<s)&&(a=u,s=c)}}catch(d){l.e(d)}finally{l.f()}return a||null}},{key:"distinct",value:function(i){for(var o=this._data,a=sr($u(o).call(o)),s=[],l=0,g=0,u=a.length;g<u;g++){for(var c=a[g],d=o.get(c),h=d[i],A=!1,f=0;f<l;f++)if(s[f]==h){A=!0;break}!A&&h!==void 0&&(s[l]=h,l++)}return s}},{key:"_addItem",value:function(i){var o=jFe(i,this._idProp),a=o[this._idProp];if(this._data.has(a))throw new Error("Cannot add item: item with id "+a+" already exists");return this._data.set(a,o),++this.length,a}},{key:"_updateItem",value:function(i){var o=i[this._idProp];if(o==null)throw new Error("Cannot update item: item has no id (item: "+bd(i)+")");var a=this._data.get(o);if(!a)throw new Error("Cannot update item: no item with id "+o+" found");return this._data.set(o,wM(wM({},a),i)),o}},{key:"stream",value:function(i){if(i){var o=this._data;return new SM(rr({},Ac,Hn.mark(function s(){var l,g,u,c;return Hn.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:l=Ai(i),h.prev=1,l.s();case 3:if((g=l.n()).done){h.next=11;break}if(u=g.value,c=o.get(u),c==null){h.next=9;break}return h.next=9,[u,c];case 9:h.next=3;break;case 11:h.next=16;break;case 13:h.prev=13,h.t0=h.catch(1),l.e(h.t0);case 16:return h.prev=16,l.f(),h.finish(16);case 19:case"end":return h.stop()}},s,null,[[1,13,16,19]])})))}else{var a;return new SM(rr({},Ac,ue(a=L3e(this._data)).call(a,this._data)))}}}]),e}(zFe);function VFe(t,r){return ct(r)==="object"&&r!==null&&t===r.idProp&&typeof r.add=="function"&&typeof r.clear=="function"&&typeof r.distinct=="function"&&typeof Et(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof vn(r)=="function"&&typeof r.max=="function"&&typeof r.min=="function"&&typeof r.off=="function"&&typeof r.on=="function"&&typeof r.remove=="function"&&typeof r.setOptions=="function"&&typeof r.stream=="function"&&typeof r.update=="function"&&typeof r.updateOnly=="function"}function IH(t,r){return ct(r)==="object"&&r!==null&&t===r.idProp&&typeof Et(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof vn(r)=="function"&&typeof r.off=="function"&&typeof r.on=="function"&&typeof r.stream=="function"&&VFe(t,r.getDataSet())}var vH=Ut,GFe=bt,WFe=kt,HFe=So,UFe=bG.trim,ZFe=dT,KFe=WFe("".charAt),Fp=vH.parseFloat,TM=vH.Symbol,OM=TM&&TM.iterator,YFe=1/Fp(ZFe+"-0")!==-1/0||OM&&!GFe(function(){Fp(Object(OM))}),XFe=YFe?function(r){var e=UFe(HFe(r)),n=Fp(e);return n===0&&KFe(e,0)==="-"?-0:n}:Fp,QFe=Oe,kM=XFe;QFe({global:!0,forced:parseFloat!==kM},{parseFloat:kM});var qFe=wt,JFe=qFe.parseFloat,e5e=JFe,t5e=e5e,r5e=t5e,pH=Te(r5e),n5e=Oe,i5e=bt,o5e=ly.f,a5e=i5e(function(){return!Object.getOwnPropertyNames(1)});n5e({target:"Object",stat:!0,forced:a5e},{getOwnPropertyNames:o5e});var s5e=wt,l5e=s5e.Object,g5e=function(r){return l5e.getOwnPropertyNames(r)},u5e=g5e,c5e=u5e,d5e=c5e,h5e=Te(d5e);function BT(t,r){var e=["node","edge","label"],n=!0,i=ps(r,"chosen");if(typeof i=="boolean")n=i;else if(ct(i)==="object"){if(Tt(e).call(e,t)===-1)throw new Error("choosify: subOption '"+t+"' should be one of '"+e.join("', '")+"'");var o=ps(r,["chosen",t]);(typeof o=="boolean"||typeof o=="function")&&(n=o)}return n}function pE(t,r,e){if(t.width<=0||t.height<=0)return!1;if(e!==void 0){var n={x:r.x-e.x,y:r.y-e.y};if(e.angle!==0){var i=-e.angle,o={x:Math.cos(i)*n.x-Math.sin(i)*n.y,y:Math.sin(i)*n.x+Math.cos(i)*n.y};r=o}else r=n}var a=t.x+t.width,s=t.y+t.width;return t.left<r.x&&a>r.x&&t.top<r.y&&s>r.y}function Lp(t){return typeof t=="string"&&t!==""}function mH(t,r,e,n){var i=n.x,o=n.y;if(typeof n.distanceToBorder=="function"){var a=n.distanceToBorder(t,r),s=Math.sin(r)*a,l=Math.cos(r)*a;l===a?(i+=a,o=n.y):s===a?(i=n.x,o-=a):(i+=l,o-=s)}else n.shape.width>n.shape.height?(i=n.x+n.shape.width*.5,o=n.y-e):(i=n.x+e,o=n.y-n.shape.height*.5);return{x:i,y:o}}var A5e=function(){function t(r){Ae(this,t),this.measureText=r,this.current=0,this.width=0,this.height=0,this.lines=[]}return fe(t,[{key:"_add",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});var o=n;(n===void 0||n==="")&&(o=" ");var a=this.measureText(o,i),s=Or({},Bp(a));s.text=n,s.width=a.width,s.mod=i,(n===void 0||n==="")&&(s.width=0),this.lines[e].blocks.push(s),this.lines[e].width+=s.width}},{key:"curWidth",value:function(){var e=this.lines[this.current];return e===void 0?0:e.width}},{key:"append",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n)}},{key:"newLine",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n),this.current++}},{key:"determineLineHeights",value:function(){for(var e=0;e<this.lines.length;e++){var n=this.lines[e],i=0;if(n.blocks!==void 0)for(var o=0;o<n.blocks.length;o++){var a=n.blocks[o];i<a.height&&(i=a.height)}n.height=i}}},{key:"determineLabelSize",value:function(){for(var e=0,n=0,i=0;i<this.lines.length;i++){var o=this.lines[i];o.width>e&&(e=o.width),n+=o.height}this.width=e,this.height=n}},{key:"removeEmptyBlocks",value:function(){for(var e=[],n=0;n<this.lines.length;n++){var i=this.lines[n];if(i.blocks.length!==0&&!(n===this.lines.length-1&&i.width===0)){var o={};Or(o,i),o.blocks=[];for(var a=void 0,s=[],l=0;l<i.blocks.length;l++){var g=i.blocks[l];g.width!==0?s.push(g):a===void 0&&(a=g)}s.length===0&&a!==void 0&&s.push(a),o.blocks=s,e.push(o)}}return e}},{key:"finalize",value:function(){this.determineLineHeights(),this.determineLabelSize();var e=this.removeEmptyBlocks();return{width:this.width,height:this.height,lines:e}}}]),t}(),f5e={"<b>":/<b>/,"<i>":/<i>/,"<code>":/<code>/,"</b>":/<\/b>/,"</i>":/<\/i>/,"</code>":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},xM=function(){function t(r){Ae(this,t),this.text=r,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return fe(t,[{key:"mod",value:function(){return this.modStack.length===0?"normal":this.modStack[0]}},{key:"modName",value:function(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}},{key:"parseWS",value:function(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}},{key:"setTag",value:function(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}},{key:"unsetTag",value:function(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(e,n){return!this.mono&&!this[e]&&this.match(n)?(this.setTag(e),!0):!1}},{key:"match",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.prepareRegExp(e),o=vt(i,2),a=o[0],s=o[1],l=a.test(this.text.substr(this.position,s));return l&&n&&(this.position+=s-1),l}},{key:"parseEndTag",value:function(e,n,i){var o=this.mod()===e;return e==="mono"?o=o&&this.mono:o=o&&!this.mono,o&&this.match(n)?(i!==void 0?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}},{key:"replace",value:function(e,n){return this.match(e)?(this.add(n),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(e){var n,i;if(e instanceof RegExp)i=e,n=1;else{var o=f5e[e];o!==void 0?i=o:i=new RegExp(e),n=e.length}return[i,n]}}]),t}(),C5e=function(){function t(r,e,n,i){var o=this;Ae(this,t),this.ctx=r,this.parent=e,this.selected=n,this.hover=i;var a=function(l,g){if(l===void 0)return 0;var u=o.parent.getFormattingValues(r,n,i,g),c=0;if(l!==""){var d=o.ctx.measureText(l);c=d.width}return{width:c,values:u}};this.lines=new A5e(a)}return fe(t,[{key:"process",value:function(e){if(!Lp(e))return this.lines.finalize();var n=this.parent.fontOptions;e=e.replace(/\r\n/g,`
|
|
730
730
|
`),e=e.replace(/\r/g,`
|
|
731
731
|
`);var i=String(e).split(`
|
|
732
732
|
`),o=i.length;if(n.multi)for(var a=0;a<o;a++){var s=this.splitBlocks(i[a],n.multi);if(s!==void 0){if(s.length===0){this.lines.newLine("");continue}if(n.maxWdt>0)for(var l=0;l<s.length;l++){var g=s[l].mod,u=s[l].text;this.splitStringIntoLines(u,g,!0)}else for(var c=0;c<s.length;c++){var d=s[c].mod,h=s[c].text;this.lines.append(h,d)}this.lines.newLine()}}else if(n.maxWdt>0)for(var A=0;A<o;A++)this.splitStringIntoLines(i[A]);else for(var f=0;f<o;f++)this.lines.newLine(i[f]);return this.lines.finalize()}},{key:"decodeMarkupSystem",value:function(e){var n="none";return e==="markdown"||e==="md"?n="markdown":(e===!0||e==="html")&&(n="html"),n}},{key:"splitHtmlBlocks",value:function(e){for(var n=new xM(e),i=function(l){if(/&/.test(l)){var g=n.replace(n.text,"<","<")||n.replace(n.text,"&","&");return g||n.add("&"),!0}return!1};n.position<n.text.length;){var o=n.text.charAt(n.position),a=n.parseWS(o)||/</.test(o)&&(n.parseStartTag("bold","<b>")||n.parseStartTag("ital","<i>")||n.parseStartTag("mono","<code>")||n.parseEndTag("bold","</b>")||n.parseEndTag("ital","</i>")||n.parseEndTag("mono","</code>"))||i(o);a||n.add(o),n.position++}return n.emitBlock(),n.blocks}},{key:"splitMarkdownBlocks",value:function(e){for(var n=this,i=new xM(e),o=!0,a=function(u){return/\\/.test(u)?(i.position<n.text.length+1&&(i.position++,u=n.text.charAt(i.position),/ \t/.test(u)?i.spacing=!0:(i.add(u),o=!1)),!0):!1};i.position<i.text.length;){var s=i.text.charAt(i.position),l=i.parseWS(s)||a(s)||(o||i.spacing)&&(i.parseStartTag("bold","*")||i.parseStartTag("ital","_")||i.parseStartTag("mono","`"))||i.parseEndTag("bold","*","afterBold")||i.parseEndTag("ital","_","afterItal")||i.parseEndTag("mono","`","afterMono");l||(i.add(s),o=!1),i.position++}return i.emitBlock(),i.blocks}},{key:"splitBlocks",value:function(e,n){var i=this.decodeMarkupSystem(n);if(i==="none")return[{text:e,mod:"normal"}];if(i==="markdown")return this.splitMarkdownBlocks(e);if(i==="html")return this.splitHtmlBlocks(e)}},{key:"overMaxWidth",value:function(e){var n=this.ctx.measureText(e).width;return this.lines.curWidth()+n>this.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(e){for(var n="",i=0;i<e.length;){var o=n===""?"":" ",a=n+o+e[i];if(this.overMaxWidth(a))break;n=a,i++}return i}},{key:"getLongestFitWord",value:function(e){for(var n=0;n<e.length&&!this.overMaxWidth(Wr(e).call(e,0,n));)n++;return n}},{key:"splitStringIntoLines",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parent.getFormattingValues(this.ctx,this.selected,this.hover,n),e=e.replace(/^( +)/g,"$1\r"),e=e.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");for(var o=e.split("\r");o.length>0;){var a=this.getLongestFit(o);if(a===0){var s=o[0],l=this.getLongestFitWord(s);this.lines.newLine(Wr(s).call(s,0,l),n),o[0]=Wr(s).call(s,l)}else{var g=a;o[a-1]===" "?a--:o[g]===" "&&g++;var u=Wr(o).call(o,0,a).join("");a==o.length&&i?this.lines.append(u,n):this.lines.newLine(u,n),o=Wr(o).call(o,g)}}}}]),t}(),sh=["bold","ital","boldital","mono"],yH=function(){function t(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Ae(this,t),this.body=r,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(e),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=n}return fe(t,[{key:"setOptions",value:function(e){if(this.elementOptions=e,this.initFontOptions(e.font),Lp(e.label)?this.labelDirty=!0:e.label=void 0,e.font!==void 0&&e.font!==null){if(typeof e.font=="string")this.baseSize=this.fontOptions.size;else if(ct(e.font)==="object"){var n=e.font.size;n!==void 0&&(this.baseSize=n)}}}},{key:"initFontOptions",value:function(e){var n=this;if(dt(sh,function(i){n.fontOptions[i]={}}),t.parseFontString(this.fontOptions,e)){this.fontOptions.vadjust=0;return}dt(e,function(i,o){i!=null&&ct(i)!=="object"&&(n.fontOptions[o]=i)})}},{key:"constrain",value:function(e){var n={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=ps(e,"widthConstraint");if(typeof i=="number")n.maxWdt=Number(i),n.minWdt=Number(i);else if(ct(i)==="object"){var o=ps(e,["widthConstraint","maximum"]);typeof o=="number"&&(n.maxWdt=Number(o));var a=ps(e,["widthConstraint","minimum"]);typeof a=="number"&&(n.minWdt=Number(a))}var s=ps(e,"heightConstraint");if(typeof s=="number")n.minHgt=Number(s);else if(ct(s)==="object"){var l=ps(e,["heightConstraint","minimum"]);typeof l=="number"&&(n.minHgt=Number(l));var g=ps(e,["heightConstraint","valign"]);typeof g=="string"&&(g==="top"||g==="bottom")&&(n.valign=g)}return n}},{key:"update",value:function(e,n){this.setOptions(e,!0),this.propagateFonts(n),Yt(this.fontOptions,this.constrain(n)),this.fontOptions.chooser=BT("label",n)}},{key:"adjustSizes",value:function(e){var n=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=n,this.fontOptions.minWdt-=n);var i=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}},{key:"addFontOptionsToPile",value:function(e,n){for(var i=0;i<n.length;++i)this.addFontToPile(e,n[i])}},{key:"addFontToPile",value:function(e,n){if(n!==void 0&&!(n.font===void 0||n.font===null)){var i=n.font;e.push(i)}}},{key:"getBasicOptions",value:function(e){for(var n={},i=0;i<e.length;++i){var o=e[i],a={};t.parseFontString(a,o)&&(o=a),dt(o,function(s,l){s!==void 0&&(Object.prototype.hasOwnProperty.call(n,l)||(Tt(sh).call(sh,l)!==-1?n[l]={}:n[l]=s))})}return n}},{key:"getFontOption",value:function(e,n,i){for(var o,a=0;a<e.length;++a){var s=e[a];if(Object.prototype.hasOwnProperty.call(s,n)){if(o=s[n],o==null)continue;var l={};if(t.parseFontString(l,o)&&(o=l),Object.prototype.hasOwnProperty.call(o,i))return o[i]}}if(Object.prototype.hasOwnProperty.call(this.fontOptions,i))return this.fontOptions[i];throw new Error("Did not find value for multi-font for property: '"+i+"'")}},{key:"getFontOptions",value:function(e,n){for(var i={},o=["color","size","face","mod","vadjust"],a=0;a<o.length;++a){var s=o[a];i[s]=this.getFontOption(e,n,s)}return i}},{key:"propagateFonts",value:function(e){var n=this,i=[];this.addFontOptionsToPile(i,e),this.fontOptions=this.getBasicOptions(i);for(var o=function(){var l=sh[a],g=n.fontOptions[l],u=n.getFontOptions(i,l);dt(u,function(c,d){g[d]=c}),g.size=Number(g.size),g.vadjust=Number(g.vadjust)},a=0;a<sh.length;++a)o()}},{key:"draw",value:function(e,n,i,o,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label!==void 0){var l=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&l<this.elementOptions.scaling.label.drawThreshold-1||(l>=this.elementOptions.scaling.label.maxVisible&&(l=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,o,a,n,i,s),this._drawBackground(e),this._drawText(e,n,this.size.yLine,s,l))}}},{key:"_drawBackground",value:function(e){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){e.fillStyle=this.fontOptions.background;var n=this.getSize();e.fillRect(n.left,n.top,n.width,n.height)}}},{key:"_drawText",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",a=arguments.length>4?arguments[4]:void 0,s=this._setAlignment(e,n,i,o),l=vt(s,2);n=l[0],i=l[1],e.textAlign="left",n=n-this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(this.fontOptions.valign==="top"&&(i-=(this.size.height-this.size.labelHeight)/2),this.fontOptions.valign==="bottom"&&(i+=(this.size.height-this.size.labelHeight)/2));for(var g=0;g<this.lineCount;g++){var u=this.lines[g];if(u&&u.blocks){var c=0;this.isEdgeLabel||this.fontOptions.align==="center"?c+=(this.size.width-u.width)/2:this.fontOptions.align==="right"&&(c+=this.size.width-u.width);for(var d=0;d<u.blocks.length;d++){var h=u.blocks[d];e.font=h.font;var A=this._getColor(h.color,a,h.strokeColor),f=vt(A,2),C=f[0],I=f[1];h.strokeWidth>0&&(e.lineWidth=h.strokeWidth,e.strokeStyle=I,e.lineJoin="round"),e.fillStyle=C,h.strokeWidth>0&&e.strokeText(h.text,n+c,i+h.vadjust),e.fillText(h.text,n+c,i+h.vadjust),c+=h.width}i+=u.height}}}},{key:"_setAlignment",value:function(e,n,i,o){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){n=0,i=0;var a=2;this.fontOptions.align==="top"?(e.textBaseline="alphabetic",i-=2*a):this.fontOptions.align==="bottom"?(e.textBaseline="hanging",i+=2*a):e.textBaseline="middle"}else e.textBaseline=o;return[n,i]}},{key:"_getColor",value:function(e,n,i){var o=e||"#000000",a=i||"#ffffff";if(n<=this.elementOptions.scaling.label.drawThreshold){var s=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-n)));o=Li(o,s),a=Li(a,s)}return[o,a]}},{key:"getTextSize",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this._processLabel(e,n,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var e=2,n=this.size.left,i=this.size.top-.5*e;if(this.isEdgeLabel){var o=-this.size.width*.5;switch(this.fontOptions.align){case"middle":n=o,i=-this.size.height*.5;break;case"top":n=o,i=-(this.size.height+e);break;case"bottom":n=o,i=e;break}}var a={left:n,top:i,width:this.size.width,height:this.size.height};return a}},{key:"calculateLabelSize",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(e,n,i),this.size.left=o-this.size.width*.5,this.size.top=a-this.size.height*.5,this.size.yLine=a+(1-this.lineCount)*.5*this.fontOptions.size,s==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(e,n,i,o){var a=function(u,c,d){return c==="normal"?d==="mod"?"":u[d]:u[c][d]!==void 0?u[c][d]:u[d]},s={color:a(this.fontOptions,o,"color"),size:a(this.fontOptions,o,"size"),face:a(this.fontOptions,o,"face"),mod:a(this.fontOptions,o,"mod"),vadjust:a(this.fontOptions,o,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(n||i)&&(o==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?s.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(s,this.elementOptions.id,n,i));var l="";return s.mod!==void 0&&s.mod!==""&&(l+=s.mod+" "),l+=s.size+"px "+s.face,e.font=l.replace(/"/g,""),s.font=e.font,s.height=s.size,s}},{key:"differentState",value:function(e,n){return e!==this.selectedState||n!==this.hoverState}},{key:"_processLabelText",value:function(e,n,i,o){var a=new C5e(e,this,n,i);return a.process(o)}},{key:"_processLabel",value:function(e,n,i){if(!(this.labelDirty===!1&&!this.differentState(n,i))){var o=this._processLabelText(e,n,i,this.elementOptions.label);this.fontOptions.minWdt>0&&o.width<this.fontOptions.minWdt&&(o.width=this.fontOptions.minWdt),this.size.labelHeight=o.height,this.fontOptions.minHgt>0&&o.height<this.fontOptions.minHgt&&(o.height=this.fontOptions.minHgt),this.lines=o.lines,this.lineCount=o.lines.length,this.size.width=o.width,this.size.height=o.height,this.selectedState=n,this.hoverState=i,this.labelDirty=!1}}},{key:"visible",value:function(){if(this.size.width===0||this.size.height===0||this.elementOptions.label===void 0)return!1;var e=this.fontOptions.size*this.body.view.scale;return!(e<this.elementOptions.scaling.label.drawThreshold-1)}}],[{key:"parseFontString",value:function(e,n){if(!n||typeof n!="string")return!1;var i=n.split(" ");return e.size=+i[0].replace("px",""),e.face=i[1],e.color=i[2],!0}}]),t}(),eu=function(){function t(r,e,n){Ae(this,t),this.body=e,this.labelModule=n,this.setOptions(r),this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.radius=void 0,this.margin=void 0,this.refreshNeeded=!0,this.boundingBox={top:0,left:0,right:0,bottom:0}}return fe(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"_setMargins",value:function(e){this.margin={},this.options.margin&&(ct(this.options.margin)=="object"?(this.margin.top=this.options.margin.top,this.margin.right=this.options.margin.right,this.margin.bottom=this.options.margin.bottom,this.margin.left=this.options.margin.left):(this.margin.top=this.options.margin,this.margin.right=this.options.margin,this.margin.bottom=this.options.margin,this.margin.left=this.options.margin)),e.adjustSizes(this.margin)}},{key:"_distanceToBorder",value:function(e,n){var i=this.options.borderWidth;return e&&this.resize(e),Math.min(Math.abs(this.width/2/Math.cos(n)),Math.abs(this.height/2/Math.sin(n)))+i}},{key:"enableShadow",value:function(e,n){n.shadow&&(e.shadowColor=n.shadowColor,e.shadowBlur=n.shadowSize,e.shadowOffsetX=n.shadowX,e.shadowOffsetY=n.shadowY)}},{key:"disableShadow",value:function(e,n){n.shadow&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"enableBorderDashes",value:function(e,n){if(n.borderDashes!==!1)if(e.setLineDash!==void 0){var i=n.borderDashes;i===!0&&(i=[5,15]),e.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,n.borderDashes=!1}},{key:"disableBorderDashes",value:function(e,n){n.borderDashes!==!1&&(e.setLineDash!==void 0?e.setLineDash([0]):(console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,n.borderDashes=!1))}},{key:"needsRefresh",value:function(e,n){return this.refreshNeeded===!0?(this.refreshNeeded=!1,!0):this.width===void 0||this.labelModule.differentState(e,n)}},{key:"initContextForDraw",value:function(e,n){var i=n.borderWidth/this.body.view.scale;e.lineWidth=Math.min(this.width,i),e.strokeStyle=n.borderColor,e.fillStyle=n.color}},{key:"performStroke",value:function(e,n){var i=n.borderWidth/this.body.view.scale;e.save(),i>0&&(this.enableBorderDashes(e,n),e.stroke(),this.disableBorderDashes(e,n)),e.restore()}},{key:"performFill",value:function(e,n){e.save(),e.fillStyle=n.color,this.enableShadow(e,n),bf(e).call(e),this.disableShadow(e,n),e.restore(),this.performStroke(e,n)}},{key:"_addBoundingBoxMargin",value:function(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}},{key:"_updateBoundingBox",value:function(e,n,i,o,a){i!==void 0&&this.resize(i,o,a),this.left=e-this.width/2,this.top=n-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(e,n,i,o,a){this._updateBoundingBox(e,n,i,o,a)}},{key:"getDimensionsFromLabel",value:function(e,n,i){this.textSize=this.labelModule.getTextSize(e,n,i);var o=this.textSize.width,a=this.textSize.height,s=14;return o===0&&(o=s,a=s),{width:o,height:a}}}]),t}();function I5e(t){var r=v5e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function v5e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var p5e=function(t){xt(e,t);var r=I5e(e);function e(n,i,o){var a;return Ae(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return fe(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a);this.width=s.width+this.margin.right+this.margin.left,this.height=s.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,g){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.initContextForDraw(i,g),GV(i,this.left,this.top,this.width,this.height,g.borderRadius),this.performFill(i,g),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"updateBoundingBox",value:function(i,o,a,s,l){this._updateBoundingBox(i,o,a,s,l);var g=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(g)}},{key:"distanceToBorder",value:function(i,o){i&&this.resize(i);var a=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(o)),Math.abs(this.height/2/Math.sin(o)))+a}}]),e}(eu);function m5e(t){var r=y5e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function y5e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var FT=function(t){xt(e,t);var r=m5e(e);function e(n,i,o){var a;return Ae(this,e),a=r.call(this,n,i,o),a.labelOffset=0,a.selected=!1,a}return fe(e,[{key:"setOptions",value:function(i,o,a){this.options=i,o===void 0&&a===void 0||this.setImages(o,a)}},{key:"setImages",value:function(i,o){o&&this.selected?(this.imageObj=o,this.imageObjAlt=i):(this.imageObj=i,this.imageObjAlt=o)}},{key:"switchImages",value:function(i){var o=i&&!this.selected||!i&&this.selected;if(this.selected=i,this.imageObjAlt!==void 0&&o){var a=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=a}}},{key:"_getImagePadding",value:function(){var i={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var o=this.options.imagePadding;ct(o)=="object"?(i.top=o.top,i.right=o.right,i.bottom=o.bottom,i.left=o.left):(i.top=o,i.right=o,i.bottom=o,i.left=o)}return i}},{key:"_resizeImage",value:function(){var i,o;if(this.options.shapeProperties.useImageSize===!1){var a=1,s=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?a=this.imageObj.width/this.imageObj.height:s=this.imageObj.height/this.imageObj.width),i=this.options.size*2*a,o=this.options.size*2*s}else{var l=this._getImagePadding();i=this.imageObj.width+l.left+l.right,o=this.imageObj.height+l.top+l.bottom}this.width=i,this.height=o,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(i,o,a,s){this.initContextForDraw(i,s),X2(i,o,a,s.size),this.performFill(i,s)}},{key:"_drawImageAtPosition",value:function(i,o){if(this.imageObj.width!=0){i.globalAlpha=o.opacity!==void 0?o.opacity:1,this.enableShadow(i,o);var a=1;this.options.shapeProperties.interpolation===!0&&(a=this.imageObj.width/this.width/this.body.view.scale);var s=this._getImagePadding(),l=this.left+s.left,g=this.top+s.top,u=this.width-s.left-s.right,c=this.height-s.top-s.bottom;this.imageObj.drawImageAtPosition(i,a,l,g,u,c),this.disableShadow(i,o)}}},{key:"_drawImageLabel",value:function(i,o,a,s,l){var g=0;if(this.height!==void 0){g=this.height*.5;var u=this.labelModule.getTextSize(i,s,l);u.lineCount>=1&&(g+=u.height/2)}var c=a+g;this.options.label&&(this.labelOffset=g),this.labelModule.draw(i,o,c,s,l,"hanging")}}]),e}(eu);function b5e(t){var r=$5e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function $5e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var w5e=function(t){xt(e,t);var r=b5e(e);function e(n,i,o){var a;return Ae(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return fe(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a),l=Math.max(s.width+this.margin.right+this.margin.left,s.height+this.margin.top+this.margin.bottom);this.options.size=l/2,this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,g){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this._drawRawCircle(i,o,a,g),this.updateBoundingBox(o,a),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,a,s,l)}},{key:"updateBoundingBox",value:function(i,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+this.options.size}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.width*.5}}]),e}(FT);function _5e(t){var r=E5e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function E5e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var S5e=function(t){xt(e,t);var r=_5e(e);function e(n,i,o,a,s){var l;return Ae(this,e),l=r.call(this,n,i,o),l.setImages(a,s),l}return fe(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l,this.radius=.5*this.width;return}this.needsRefresh(o,a)&&this._resizeImage()}},{key:"draw",value:function(i,o,a,s,l,g){this.switchImages(s),this.resize();var u=o,c=a;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=a,u+=this.width/2,c+=this.height/2):(this.left=o-this.width/2,this.top=a-this.height/2),this._drawRawCircle(i,u,c,g),i.save(),i.clip(),this._drawImageAtPosition(i,g),i.restore(),this._drawImageLabel(i,u,c,s,l),this.updateBoundingBox(o,a)}},{key:"updateBoundingBox",value:function(i,o){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=o,this.boundingBox.left=i,this.boundingBox.right=i+this.options.size*2,this.boundingBox.bottom=o+this.options.size*2):(this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.width*.5}}]),e}(FT);function T5e(t){var r=O5e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function O5e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var $l=function(t){xt(e,t);var r=T5e(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(o,a)){var l,g;this.labelModule.getTextSize(i,o,a);var u=2*s.size;this.width=(l=this.customSizeWidth)!==null&&l!==void 0?l:u,this.height=(g=this.customSizeHeight)!==null&&g!==void 0?g:u,this.radius=.5*this.width}}},{key:"_drawShape",value:function(i,o,a,s,l,g,u,c){var d=this;return this.resize(i,g,u,c),this.left=s-this.width/2,this.top=l-this.height/2,this.initContextForDraw(i,c),Zpe(o)(i,s,l,c.size),this.performFill(i,c),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(i.font=(g?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",i.fillText(this.options.icon.code,s,l)),{drawExternalLabel:function(){if(d.options.label!==void 0){d.labelModule.calculateLabelSize(i,g,u,s,l,"hanging");var A=l+.5*d.height+.5*d.labelModule.size.height;d.labelModule.draw(i,s,A,g,u,"hanging")}d.updateBoundingBox(s,l)}}}},{key:"updateBoundingBox",value:function(i,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+this.options.size,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),e}(eu);function PM(t,r){var e=er(t);if(ia){var n=ia(t);r&&(n=Mr(n).call(n,function(i){return ga(t,i).enumerable})),e.push.apply(e,n)}return e}function k5e(t){for(var r=1;r<arguments.length;r++){var e,n,i=arguments[r]!=null?arguments[r]:{};r%2?Et(e=PM(Object(i),!0)).call(e,function(o){rr(t,o,i[o])}):oa?Pf(t,oa(i)):Et(n=PM(Object(i))).call(n,function(o){xf(t,o,ga(i,o))})}return t}function x5e(t){var r=P5e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function P5e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var R5e=function(t){xt(e,t);var r=x5e(e);function e(n,i,o,a){var s;return Ae(this,e),s=r.call(this,n,i,o,a),s.ctxRenderer=a,s}return fe(e,[{key:"draw",value:function(i,o,a,s,l,g){this.resize(i,s,l,g),this.left=o-this.width/2,this.top=a-this.height/2,i.save();var u=this.ctxRenderer({ctx:i,id:this.options.id,x:o,y:a,state:{selected:s,hover:l},style:k5e({},g),label:this.options.label});if(u.drawNode!=null&&u.drawNode(),i.restore(),u.drawExternalLabel){var c=u.drawExternalLabel;u.drawExternalLabel=function(){i.save(),c(),i.restore()}}return u.nodeDimensions&&(this.customSizeWidth=u.nodeDimensions.width,this.customSizeHeight=u.nodeDimensions.height),u}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}($l);function D5e(t){var r=N5e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function N5e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var M5e=function(t){xt(e,t);var r=D5e(e);function e(n,i,o){var a;return Ae(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return fe(e,[{key:"resize",value:function(i,o,a){if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a),l=s.width+this.margin.right+this.margin.left;this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,g){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.initContextForDraw(i,g),WV(i,o-this.width/2,a-this.height/2,this.width,this.height),this.performFill(i,g),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(eu);function B5e(t){var r=F5e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function F5e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var L5e=function(t){xt(e,t);var r=B5e(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"draw",value:function(i,o,a,s,l,g){return this._drawShape(i,"diamond",4,o,a,s,l,g)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}($l);function z5e(t){var r=j5e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function j5e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var V5e=function(t){xt(e,t);var r=z5e(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"draw",value:function(i,o,a,s,l,g){return this._drawShape(i,"circle",2,o,a,s,l,g)}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.options.size}}]),e}($l);function G5e(t){var r=W5e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function W5e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var RM=function(t){xt(e,t);var r=G5e(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a);this.height=s.height*2,this.width=s.width+s.height,this.radius=.5*this.width}}},{key:"draw",value:function(i,o,a,s,l,g){this.resize(i,s,l),this.left=o-this.width*.5,this.top=a-this.height*.5,this.initContextForDraw(i,g),N_(i,this.left,this.top,this.width,this.height),this.performFill(i,g),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,o,a,s,l)}},{key:"distanceToBorder",value:function(i,o){i&&this.resize(i);var a=this.width*.5,s=this.height*.5,l=Math.sin(o)*a,g=Math.cos(o)*s;return a*s/Math.sqrt(l*l+g*g)}}]),e}(eu);function H5e(t){var r=U5e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function U5e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var Z5e=function(t){xt(e,t);var r=H5e(e);function e(n,i,o){var a;return Ae(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return fe(e,[{key:"resize",value:function(i,o,a){this.needsRefresh(o,a)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(i,o,a,s,l,g){var u=this;return this.resize(i,s,l),this.options.icon.size=this.options.icon.size||50,this.left=o-this.width/2,this.top=a-this.height/2,this._icon(i,o,a,s,l,g),{drawExternalLabel:function(){if(u.options.label!==void 0){var d=5;u.labelModule.draw(i,u.left+u.iconSize.width/2+u.margin.left,a+u.height/2+d,s)}u.updateBoundingBox(o,a)}}}},{key:"updateBoundingBox",value:function(i,o){if(this.boundingBox.top=o-this.options.icon.size*.5,this.boundingBox.left=i-this.options.icon.size*.5,this.boundingBox.right=i+this.options.icon.size*.5,this.boundingBox.bottom=o+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0){var a=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+a)}}},{key:"_icon",value:function(i,o,a,s,l,g){var u=Number(this.options.icon.size);this.options.icon.code!==void 0?(i.font=[this.options.icon.weight!=null?this.options.icon.weight:s?"bold":"",(this.options.icon.weight!=null&&s?5:0)+u+"px",this.options.icon.face].join(" "),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",this.enableShadow(i,g),i.fillText(this.options.icon.code,o,a),this.disableShadow(i,g)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(eu);function K5e(t){var r=Y5e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function Y5e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var X5e=function(t){xt(e,t);var r=K5e(e);function e(n,i,o,a,s){var l;return Ae(this,e),l=r.call(this,n,i,o),l.setImages(a,s),l}return fe(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l;return}this.needsRefresh(o,a)&&this._resizeImage()}},{key:"draw",value:function(i,o,a,s,l,g){i.save(),this.switchImages(s),this.resize();var u=o,c=a;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=a,u+=this.width/2,c+=this.height/2):(this.left=o-this.width/2,this.top=a-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){var d=this.options.borderWidth,h=this.options.borderWidthSelected||2*this.options.borderWidth,A=(s?h:d)/this.body.view.scale;i.lineWidth=Math.min(this.width,A),i.beginPath();var f=s?this.options.color.highlight.border:l?this.options.color.hover.border:this.options.color.border,C=s?this.options.color.highlight.background:l?this.options.color.hover.background:this.options.color.background;g.opacity!==void 0&&(f=Li(f,g.opacity),C=Li(C,g.opacity)),i.strokeStyle=f,i.fillStyle=C,i.rect(this.left-.5*i.lineWidth,this.top-.5*i.lineWidth,this.width+i.lineWidth,this.height+i.lineWidth),bf(i).call(i),this.performStroke(i,g),i.closePath()}this._drawImageAtPosition(i,g),this._drawImageLabel(i,u,c,s,l),this.updateBoundingBox(o,a),i.restore()}},{key:"updateBoundingBox",value:function(i,o){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=i,this.top=o):(this.left=i-this.width/2,this.top=o-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(FT);function Q5e(t){var r=q5e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function q5e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var J5e=function(t){xt(e,t);var r=Q5e(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"draw",value:function(i,o,a,s,l,g){return this._drawShape(i,"square",2,o,a,s,l,g)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}($l);function eLe(t){var r=tLe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function tLe(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var rLe=function(t){xt(e,t);var r=eLe(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"draw",value:function(i,o,a,s,l,g){return this._drawShape(i,"hexagon",4,o,a,s,l,g)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}($l);function nLe(t){var r=iLe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function iLe(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var oLe=function(t){xt(e,t);var r=nLe(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"draw",value:function(i,o,a,s,l,g){return this._drawShape(i,"star",4,o,a,s,l,g)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}($l);function aLe(t){var r=sLe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function sLe(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var lLe=function(t){xt(e,t);var r=aLe(e);function e(n,i,o){var a;return Ae(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return fe(e,[{key:"resize",value:function(i,o,a){this.needsRefresh(o,a)&&(this.textSize=this.labelModule.getTextSize(i,o,a),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(i,o,a,s,l,g){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.enableShadow(i,g),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l),this.disableShadow(i,g),this.updateBoundingBox(o,a,i,s,l)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(eu);function gLe(t){var r=uLe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function uLe(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var cLe=function(t){xt(e,t);var r=gLe(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"draw",value:function(i,o,a,s,l,g){return this._drawShape(i,"triangle",3,o,a,s,l,g)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}($l);function dLe(t){var r=hLe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function hLe(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var ALe=function(t){xt(e,t);var r=dLe(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"draw",value:function(i,o,a,s,l,g){return this._drawShape(i,"triangleDown",3,o,a,s,l,g)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}($l);function DM(t,r){var e=er(t);if(ia){var n=ia(t);r&&(n=Mr(n).call(n,function(i){return ga(t,i).enumerable})),e.push.apply(e,n)}return e}function NM(t){for(var r=1;r<arguments.length;r++){var e,n,i=arguments[r]!=null?arguments[r]:{};r%2?Et(e=DM(Object(i),!0)).call(e,function(o){rr(t,o,i[o])}):oa?Pf(t,oa(i)):Et(n=DM(Object(i))).call(n,function(o){xf(t,o,ga(i,o))})}return t}var Ci=function(){function t(r,e,n,i,o,a){Ae(this,t),this.options=Ls(o),this.globalOptions=o,this.defaultOptions=a,this.body=e,this.edges=[],this.id=void 0,this.imagelist=n,this.grouplist=i,this.x=void 0,this.y=void 0,this.baseSize=this.options.size,this.baseFontSize=this.options.font.size,this.predefinedPosition=!1,this.selected=!1,this.hover=!1,this.labelModule=new yH(this.body,this.options,!1),this.setOptions(r)}return fe(t,[{key:"attachEdge",value:function(e){var n;Tt(n=this.edges).call(n,e)===-1&&this.edges.push(e)}},{key:"detachEdge",value:function(e){var n,i=Tt(n=this.edges).call(n,e);if(i!=-1){var o;Yo(o=this.edges).call(o,i,1)}}},{key:"setOptions",value:function(e){var n=this.options.shape;if(e){if(typeof e.color<"u"&&(this._localColor=e.color),e.id!==void 0&&(this.id=e.id),this.id===void 0)throw new Error("Node must have an id");t.checkMass(e,this.id),e.x!==void 0&&(e.x===null?(this.x=void 0,this.predefinedPosition=!1):(this.x=oo(e.x),this.predefinedPosition=!0)),e.y!==void 0&&(e.y===null?(this.y=void 0,this.predefinedPosition=!1):(this.y=oo(e.y),this.predefinedPosition=!0)),e.size!==void 0&&(this.baseSize=e.size),e.value!==void 0&&(e.value=pH(e.value)),t.parseOptions(this.options,e,!0,this.globalOptions,this.grouplist);var i=[e,this.options,this.defaultOptions];return this.chooser=BT("node",i),this._load_images(),this.updateLabelModule(e),e.opacity!==void 0&&t.checkOpacity(e.opacity)&&(this.options.opacity=e.opacity),this.updateShape(n),e.hidden!==void 0||e.physics!==void 0}}},{key:"_load_images",value:function(){if((this.options.shape==="circularImage"||this.options.shape==="image")&&this.options.image===void 0)throw new Error("Option image must be defined for node type '"+this.options.shape+"'");if(this.options.image!==void 0){if(this.imagelist===void 0)throw new Error("Internal Error: No images provided");if(typeof this.options.image=="string")this.imageObj=this.imagelist.load(this.options.image,this.options.brokenImage,this.id);else{if(this.options.image.unselected===void 0)throw new Error("No unselected image provided");this.imageObj=this.imagelist.load(this.options.image.unselected,this.options.brokenImage,this.id),this.options.image.selected!==void 0?this.imageObjAlt=this.imagelist.load(this.options.image.selected,this.options.brokenImage,this.id):this.imageObjAlt=void 0}}}},{key:"getFormattingValues",value:function(){var e={color:this.options.color.background,opacity:this.options.opacity,borderWidth:this.options.borderWidth,borderColor:this.options.color.border,size:this.options.size,borderDashes:this.options.shapeProperties.borderDashes,borderRadius:this.options.shapeProperties.borderRadius,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y};if(this.selected||this.hover?this.chooser===!0?this.selected?(this.options.borderWidthSelected!=null?e.borderWidth=this.options.borderWidthSelected:e.borderWidth*=2,e.color=this.options.color.highlight.background,e.borderColor=this.options.color.highlight.border,e.shadow=this.options.shadow.enabled):this.hover&&(e.color=this.options.color.hover.background,e.borderColor=this.options.color.hover.border,e.shadow=this.options.shadow.enabled):typeof this.chooser=="function"&&(this.chooser(e,this.options.id,this.selected,this.hover),e.shadow===!1&&(e.shadowColor!==this.options.shadow.color||e.shadowSize!==this.options.shadow.size||e.shadowX!==this.options.shadow.x||e.shadowY!==this.options.shadow.y)&&(e.shadow=!0)):e.shadow=this.options.shadow.enabled,this.options.opacity!==void 0){var n=this.options.opacity;e.borderColor=Li(e.borderColor,n),e.color=Li(e.color,n),e.shadowColor=Li(e.shadowColor,n)}return e}},{key:"updateLabelModule",value:function(e){(this.options.label===void 0||this.options.label===null)&&(this.options.label=""),t.updateGroupOptions(this.options,NM(NM({},e),{},{color:e&&e.color||this._localColor||void 0}),this.grouplist);var n=this.grouplist.get(this.options.group,!1),i=[e,this.options,n,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,i),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateShape",value:function(e){if(e===this.options.shape&&this.shape)this.shape.setOptions(this.options,this.imageObj,this.imageObjAlt);else switch(this.options.shape){case"box":this.shape=new p5e(this.options,this.body,this.labelModule);break;case"circle":this.shape=new w5e(this.options,this.body,this.labelModule);break;case"circularImage":this.shape=new S5e(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"custom":this.shape=new R5e(this.options,this.body,this.labelModule,this.options.ctxRenderer);break;case"database":this.shape=new M5e(this.options,this.body,this.labelModule);break;case"diamond":this.shape=new L5e(this.options,this.body,this.labelModule);break;case"dot":this.shape=new V5e(this.options,this.body,this.labelModule);break;case"ellipse":this.shape=new RM(this.options,this.body,this.labelModule);break;case"icon":this.shape=new Z5e(this.options,this.body,this.labelModule);break;case"image":this.shape=new X5e(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"square":this.shape=new J5e(this.options,this.body,this.labelModule);break;case"hexagon":this.shape=new rLe(this.options,this.body,this.labelModule);break;case"star":this.shape=new oLe(this.options,this.body,this.labelModule);break;case"text":this.shape=new lLe(this.options,this.body,this.labelModule);break;case"triangle":this.shape=new cLe(this.options,this.body,this.labelModule);break;case"triangleDown":this.shape=new ALe(this.options,this.body,this.labelModule);break;default:this.shape=new RM(this.options,this.body,this.labelModule);break}this.needsRefresh()}},{key:"select",value:function(){this.selected=!0,this.needsRefresh()}},{key:"unselect",value:function(){this.selected=!1,this.needsRefresh()}},{key:"needsRefresh",value:function(){this.shape.refreshNeeded=!0}},{key:"getTitle",value:function(){return this.options.title}},{key:"distanceToBorder",value:function(e,n){return this.shape.distanceToBorder(e,n)}},{key:"isFixed",value:function(){return this.options.fixed.x&&this.options.fixed.y}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"getLabelSize",value:function(){return this.labelModule.size()}},{key:"setValueRange",value:function(e,n,i){if(this.options.value!==void 0){var o=this.options.scaling.customScalingFunction(e,n,i,this.options.value),a=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var s=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+o*s}this.options.size=this.options.scaling.min+o*a}else this.options.size=this.baseSize,this.options.font.size=this.baseFontSize;this.updateLabelModule()}},{key:"draw",value:function(e){var n=this.getFormattingValues();return this.shape.draw(e,this.x,this.y,this.selected,this.hover,n)||{}}},{key:"updateBoundingBox",value:function(e){this.shape.updateBoundingBox(this.x,this.y,e)}},{key:"resize",value:function(e){var n=this.getFormattingValues();this.shape.resize(e,this.selected,this.hover,n)}},{key:"getItemsOnPoint",value:function(e){var n=[];return this.labelModule.visible()&&pE(this.labelModule.getSize(),e)&&n.push({nodeId:this.id,labelId:0}),pE(this.shape.boundingBox,e)&&n.push({nodeId:this.id}),n}},{key:"isOverlappingWith",value:function(e){return this.shape.left<e.right&&this.shape.left+this.shape.width>e.left&&this.shape.top<e.bottom&&this.shape.top+this.shape.height>e.top}},{key:"isBoundingBoxOverlappingWith",value:function(e){return this.shape.boundingBox.left<e.right&&this.shape.boundingBox.right>e.left&&this.shape.boundingBox.top<e.bottom&&this.shape.boundingBox.bottom>e.top}}],[{key:"checkOpacity",value:function(e){return 0<=e&&e<=1}},{key:"checkCoordinateOrigin",value:function(e){return e===void 0||e==="center"||e==="top-left"}},{key:"updateGroupOptions",value:function(e,n,i){var o;if(i!==void 0){var a=e.group;if(n!==void 0&&n.group!==void 0&&a!==n.group)throw new Error("updateGroupOptions: group values in options don't match.");var s=typeof a=="number"||typeof a=="string"&&a!="";if(s){var l=i.get(a);l.opacity!==void 0&&n.opacity===void 0&&(t.checkOpacity(l.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+l.opacity),l.opacity=void 0));var g=Mr(o=h5e(n)).call(o,function(u){return n[u]!=null});g.push("font"),Pp(g,e,l),e.color=tE(e.color)}}}},{key:"parseOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0,s=["color","fixed","shadow"];if(Pp(s,e,n,i),t.checkMass(n),e.opacity!==void 0&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),n.opacity!==void 0&&(t.checkOpacity(n.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+n.opacity),n.opacity=void 0)),n.shapeProperties&&!t.checkCoordinateOrigin(n.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+n.shapeProperties.coordinateOrigin),Bi(e,n,"shadow",o),n.color!==void 0&&n.color!==null){var l=tE(n.color);aW(e.color,l)}else i===!0&&n.color===null&&(e.color=Ls(o.color));n.fixed!==void 0&&n.fixed!==null&&(typeof n.fixed=="boolean"?(e.fixed.x=n.fixed,e.fixed.y=n.fixed):(n.fixed.x!==void 0&&typeof n.fixed.x=="boolean"&&(e.fixed.x=n.fixed.x),n.fixed.y!==void 0&&typeof n.fixed.y=="boolean"&&(e.fixed.y=n.fixed.y))),i===!0&&n.font===null&&(e.font=Ls(o.font)),t.updateGroupOptions(e,n,a),n.scaling!==void 0&&Bi(e.scaling,n.scaling,"label",o.scaling)}},{key:"checkMass",value:function(e,n){if(e.mass!==void 0&&e.mass<=0){var i="";n!==void 0&&(i=" in node id: "+n),console.error("%cNegative or zero mass disallowed"+i+", setting mass to 1.",uW),e.mass=1}}}]),t}();function fLe(t,r){var e=typeof Za<"u"&&pl(t)||t["@@iterator"];if(!e){if(lt(t)||(e=CLe(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(g){throw g},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
733
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function CLe(t,r){var e;if(t){if(typeof t=="string")return MM(t,r);var n=Wr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return vl(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MM(t,r)}}function MM(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var ILe=function(){function t(r,e,n,i){var o,a=this;if(Ae(this,t),this.body=r,this.images=e,this.groups=n,this.layoutEngine=i,this.body.functions.createNode=ue(o=this.create).call(o,this),this.nodesListeners={add:function(l,g){a.add(g.items)},update:function(l,g){a.update(g.items,g.data,g.oldData)},remove:function(l,g){a.remove(g.items)}},this.defaultOptions={borderWidth:1,borderWidthSelected:void 0,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},opacity:void 0,fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"monospace",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,imagePadding:{top:0,right:0,bottom:0,left:0},label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(l,g,u,c){if(g===l)return .5;var d=1/(g-l);return Math.max(0,(c-l)*d)}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1,coordinateOrigin:"center"},size:25,title:void 0,value:void 0,x:void 0,y:void 0},this.defaultOptions.mass<=0)throw"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative";this.options=Ls(this.defaultOptions),this.bindEventListeners()}return fe(t,[{key:"bindEventListeners",value:function(){var e,n,i=this;this.body.emitter.on("refreshNodes",ue(e=this.refresh).call(e,this)),this.body.emitter.on("refresh",ue(n=this.refresh).call(n,this)),this.body.emitter.on("destroy",function(){dt(i.nodesListeners,function(o,a){i.body.data.nodes&&i.body.data.nodes.off(a,o)}),delete i.body.functions.createNode,delete i.nodesListeners.add,delete i.nodesListeners.update,delete i.nodesListeners.remove,delete i.nodesListeners})}},{key:"setOptions",value:function(e){if(e!==void 0){if(Ci.parseOptions(this.options,e),e.opacity!==void 0&&(oE(e.opacity)||!Ql(e.opacity)||e.opacity<0||e.opacity>1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity):this.options.opacity=e.opacity),e.shape!==void 0)for(var n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&this.body.nodes[n].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(var i=0,o=er(this.body.nodes);i<o.length;i++){var a=o[i];this.body.nodes[a].updateLabelModule(),this.body.nodes[a].needsRefresh()}if(e.size!==void 0)for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.body.nodes[s].needsRefresh();(e.hidden!==void 0||e.physics!==void 0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.data.nodes;if(IH("id",e))this.body.data.nodes=e;else if(lt(e))this.body.data.nodes=new zc,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new zc;else throw new TypeError("Array or DataSet expected");if(i&&dt(this.nodesListeners,function(s,l){i.off(l,s)}),this.body.nodes={},this.body.data.nodes){var o=this;dt(this.nodesListeners,function(s,l){o.body.data.nodes.on(l,s)});var a=this.body.data.nodes.getIds();this.add(a,!0)}n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i,o=[],a=0;a<e.length;a++){i=e[a];var s=this.body.data.nodes.get(i),l=this.create(s);o.push(l),this.body.nodes[i]=l}this.layoutEngine.positionInitially(o),n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(e,n,i){for(var o=this.body.nodes,a=!1,s=0;s<e.length;s++){var l=e[s],g=o[l],u=n[s];g!==void 0?g.setOptions(u)&&(a=!0):(a=!0,g=this.create(u),o[l]=g)}!a&&i!==void 0&&(a=_W(n).call(n,function(c,d){var h=i[d];return h&&h.level!==c.level})),a===!0?this.body.emitter.emit("_dataChanged"):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(e){for(var n=this.body.nodes,i=0;i<e.length;i++){var o=e[i];delete n[o]}this.body.emitter.emit("_dataChanged")}},{key:"create",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ci;return new n(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;dt(this.body.nodes,function(i,o){var a=e.body.data.nodes.get(o);a!==void 0&&(n===!0&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(a))})}},{key:"getPositions",value:function(e){var n={};if(e!==void 0){if(lt(e)===!0){for(var i=0;i<e.length;i++)if(this.body.nodes[e[i]]!==void 0){var o=this.body.nodes[e[i]];n[e[i]]={x:Math.round(o.x),y:Math.round(o.y)}}}else if(this.body.nodes[e]!==void 0){var a=this.body.nodes[e];n[e]={x:Math.round(a.x),y:Math.round(a.y)}}}else for(var s=0;s<this.body.nodeIndices.length;s++){var l=this.body.nodes[this.body.nodeIndices[s]];n[this.body.nodeIndices[s]]={x:Math.round(l.x),y:Math.round(l.y)}}return n}},{key:"getPosition",value:function(e){if(e==null)throw new TypeError("No id was specified for getPosition method.");if(this.body.nodes[e]==null)throw new ReferenceError("NodeId provided for getPosition does not exist. Provided: ".concat(e));return{x:Math.round(this.body.nodes[e].x),y:Math.round(this.body.nodes[e].y)}}},{key:"storePositions",value:function(){var e=[],n=this.body.data.nodes.getDataSet(),i=fLe(n.get()),o;try{for(i.s();!(o=i.n()).done;){var a=o.value,s=a.id,l=this.body.nodes[s],g=Math.round(l.x),u=Math.round(l.y);(a.x!==g||a.y!==u)&&e.push({id:s,x:g,y:u})}}catch(c){i.e(c)}finally{i.f()}n.update(e)}},{key:"getBoundingBox",value:function(e){if(this.body.nodes[e]!==void 0)return this.body.nodes[e].shape.boundingBox}},{key:"getConnectedNodes",value:function(e,n){var i=[];if(this.body.nodes[e]!==void 0)for(var o=this.body.nodes[e],a={},s=0;s<o.edges.length;s++){var l=o.edges[s];n!=="to"&&l.toId==o.id?a[l.fromId]===void 0&&(i.push(l.fromId),a[l.fromId]=!0):n!=="from"&&l.fromId==o.id&&a[l.toId]===void 0&&(i.push(l.toId),a[l.toId]=!0)}return i}},{key:"getConnectedEdges",value:function(e){var n=[];if(this.body.nodes[e]!==void 0)for(var i=this.body.nodes[e],o=0;o<i.edges.length;o++)n.push(i.edges[o].id);else console.error("NodeId provided for getConnectedEdges does not exist. Provided: ",e);return n}},{key:"moveNode",value:function(e,n,i){var o=this;this.body.nodes[e]!==void 0?(this.body.nodes[e].x=Number(n),this.body.nodes[e].y=Number(i),mo(function(){o.body.emitter.emit("startSimulation")},0)):console.error("Node id supplied to moveNode does not exist. Provided: ",e)}}]),t}(),BM=vr,vLe=function(t){return t!==void 0&&(BM(t,"value")||BM(t,"writable"))},pLe=Oe,mLe=Kr,yLe=Pr,bLe=Vn,$Le=vLe,wLe=Al,_Le=Cf;function bH(t,r){var e=arguments.length<3?t:arguments[2],n,i;if(bLe(t)===e)return t[r];if(n=wLe.f(t,r),n)return $Le(n)?n.value:n.get===void 0?void 0:mLe(n.get,e);if(yLe(i=_Le(t)))return bH(i,r,e)}pLe({target:"Reflect",stat:!0},{get:bH});var ELe=$t,SLe=ELe.Reflect.get,TLe=SLe,OLe=TLe,kLe=OLe,xLe=kLe,PLe=xLe,RLe=PLe,DLe=RLe,FM=Te(DLe),NLe=hH,MLe=NLe,BLe=MLe,FLe=BLe,LLe=FLe,zLe=Te(LLe);function jLe(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=xe(t),t!==null););return t}function wv(){if(typeof Reflect<"u"&&FM){var t;wv=OT(t=FM).call(t)}else wv=function(e,n,i){var o=jLe(e,n);if(o){var a=zLe(o,n);return a.get?a.get.call(arguments.length<3?e:i):a.value}};return wv.apply(this,arguments)}var VLe=Oe,LM=Math.hypot,GLe=Math.abs,WLe=Math.sqrt,HLe=!!LM&&LM(1/0,NaN)!==1/0;VLe({target:"Math",stat:!0,arity:2,forced:HLe},{hypot:function(r,e){for(var n=0,i=0,o=arguments.length,a=0,s,l;i<o;)s=GLe(arguments[i++]),a<s?(l=a/s,n=n*l*l+1,a=s):s>0?(l=s/a,n+=l*l):n+=s;return a===1/0?1/0:a*WLe(n)}});var ULe=$t,ZLe=ULe.Math.hypot,KLe=ZLe,YLe=KLe,XLe=YLe,QLe=Te(XLe);function $H(t){var r=qLe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function qLe(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var kr=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"transform",value:function(e,n){lt(e)||(e=[e]);for(var i=n.point.x,o=n.point.y,a=n.angle,s=n.length,l=0;l<e.length;++l){var g=e[l],u=g.x*Math.cos(a)-g.y*Math.sin(a),c=g.x*Math.sin(a)+g.y*Math.cos(a);g.x=i+s*u,g.y=o+s*c}}},{key:"drawPath",value:function(e,n){e.beginPath(),e.moveTo(n[0].x,n[0].y);for(var i=1;i<n.length;++i)e.lineTo(n[i].x,n[i].y);e.closePath()}}]),t}(),JLe=function(t){xt(e,t);var r=$H(e);function e(){return Ae(this,e),r.apply(this,arguments)}return fe(e,null,[{key:"draw",value:function(i,o){if(o.image){i.save(),i.translate(o.point.x,o.point.y),i.rotate(Math.PI/2+o.angle);var a=o.imageWidth!=null?o.imageWidth:o.image.width,s=o.imageHeight!=null?o.imageHeight:o.image.height;o.image.drawImageAtPosition(i,1,-a/2,0,a,s),i.restore()}return!1}}]),e}(kr),eze=function(t){xt(e,t);var r=$H(e);function e(){return Ae(this,e),r.apply(this,arguments)}return fe(e,null,[{key:"draw",value:function(i,o){var a=[{x:0,y:0},{x:-1,y:.3},{x:-.9,y:0},{x:-1,y:-.3}];return kr.transform(a,o),kr.drawPath(i,a),!0}}]),e}(kr),tze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:-1,y:0},{x:0,y:.3},{x:-.4,y:0},{x:0,y:-.3}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),rze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i={x:-.4,y:0};kr.transform(i,n),e.strokeStyle=e.fillStyle,e.fillStyle="rgba(0, 0, 0, 0)";var o=Math.PI,a=n.angle-o/2,s=n.angle+o/2;return e.beginPath(),e.arc(i.x,i.y,n.length*.4,a,s,!1),e.stroke(),!0}}]),t}(),nze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i={x:-.3,y:0};kr.transform(i,n),e.strokeStyle=e.fillStyle,e.fillStyle="rgba(0, 0, 0, 0)";var o=Math.PI,a=n.angle+o/2,s=n.angle+3*o/2;return e.beginPath(),e.arc(i.x,i.y,n.length*.4,a,s,!1),e.stroke(),!0}}]),t}(),ize=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:.02,y:0},{x:-1,y:.3},{x:-1,y:-.3}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),oze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:0,y:.3},{x:0,y:-.3},{x:-1,y:0}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),aze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i={x:-.4,y:0};return kr.transform(i,n),X2(e,i.x,i.y,n.length*.4),!0}}]),t}(),sze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:0,y:.5},{x:0,y:-.5},{x:-.15,y:-.5},{x:-.15,y:.5}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),lze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:0,y:.3},{x:0,y:-.3},{x:-.6,y:-.3},{x:-.6,y:.3}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),gze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:0,y:0},{x:-.5,y:-.3},{x:-1,y:0},{x:-.5,y:.3}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),uze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:-1,y:.3},{x:-.5,y:0},{x:-1,y:-.3},{x:0,y:0}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),wH=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i;switch(n.type&&(i=n.type.toLowerCase()),i){case"image":return JLe.draw(e,n);case"circle":return aze.draw(e,n);case"box":return lze.draw(e,n);case"crow":return tze.draw(e,n);case"curve":return rze.draw(e,n);case"diamond":return gze.draw(e,n);case"inv_curve":return nze.draw(e,n);case"triangle":return ize.draw(e,n);case"inv_triangle":return oze.draw(e,n);case"bar":return sze.draw(e,n);case"vee":return uze.draw(e,n);case"arrow":default:return eze.draw(e,n)}}}]),t}();function zM(t,r){var e=er(t);if(ia){var n=ia(t);r&&(n=Mr(n).call(n,function(i){return ga(t,i).enumerable})),e.push.apply(e,n)}return e}function jM(t){for(var r=1;r<arguments.length;r++){var e,n,i=arguments[r]!=null?arguments[r]:{};r%2?Et(e=zM(Object(i),!0)).call(e,function(o){rr(t,o,i[o])}):oa?Pf(t,oa(i)):Et(n=zM(Object(i))).call(n,function(o){xf(t,o,ga(i,o))})}return t}var _H=function(){function t(r,e,n){Ae(this,t),this._body=e,this._labelModule=n,this.color={},this.colorDirty=!0,this.hoverWidth=1.5,this.selectionWidth=2,this.setOptions(r),this.fromPoint=this.from,this.toPoint=this.to}return fe(t,[{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to]}},{key:"cleanup",value:function(){return!1}},{key:"setOptions",value:function(e){this.options=e,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.id=this.options.id}},{key:"drawLine",value:function(e,n,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,n),e.lineWidth=n.width,n.dashes!==!1?this._drawDashedLine(e,n,a):this._drawLine(e,n,a)}},{key:"_drawLine",value:function(e,n,i,o,a){if(this.from!=this.to)this._line(e,n,i,o,a);else{var s=this._getCircleData(e),l=vt(s,3),g=l[0],u=l[1],c=l[2];this._circle(e,n,g,u,c)}}},{key:"_drawDashedLine",value:function(e,n,i,o,a){e.lineCap="round";var s=lt(n.dashes)?n.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(s),e.lineDashOffset=0,this.from!=this.to)this._line(e,n,i);else{var l=this._getCircleData(e),g=vt(l,3),u=g[0],c=g[1],d=g[2];this._circle(e,n,u,c,d)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)HV(e,this.from.x,this.from.y,this.to.x,this.to.y,s);else{var h=this._getCircleData(e),A=vt(h,3),f=A[0],C=A[1],I=A[2];this._circle(e,n,f,C,I)}this.enableShadow(e,n),e.stroke(),this.disableShadow(e,n)}}},{key:"findBorderPosition",value:function(e,n,i){return this.from!=this.to?this._findBorderPosition(e,n,i):this._findBorderPositionCircle(e,n,i)}},{key:"findBorderPositions",value:function(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};var n,i=Wr(n=this._getCircleData(e)).call(n,0,2),o=vt(i,2),a=o[0],s=o[1];return{from:this._findBorderPositionCircle(this.from,e,{x:a,y:s,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:a,y:s,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(e){var n=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);var i=mH(e,this.options.selfReference.angle,n,this.from);return[i.x,i.y,n]}},{key:"_pointOnCircle",value:function(e,n,i,o){var a=o*2*Math.PI;return{x:e+i*Math.cos(a),y:n-i*Math.sin(a)}}},{key:"_findBorderPositionCircle",value:function(e,n,i){var o=i.x,a=i.y,s=i.low,l=i.high,g=i.direction,u=10,c=this.options.selfReference.size,d=.05,h,A=(s+l)*.5,f=0;this.options.arrowStrikethrough===!0&&(g===-1?f=this.options.endPointOffset.from:g===1&&(f=this.options.endPointOffset.to));var C=0;do{A=(s+l)*.5,h=this._pointOnCircle(o,a,c,A);var I=Math.atan2(e.y-h.y,e.x-h.x),v=e.distanceToBorder(n,I)+f,p=Math.sqrt(Math.pow(h.x-e.x,2)+Math.pow(h.y-e.y,2)),y=v-p;if(Math.abs(y)<d)break;y>0?g>0?s=A:l=A:g>0?l=A:s=A,++C}while(s<=l&&C<u);return jM(jM({},h),{},{t:A})}},{key:"getLineWidth",value:function(e,n){return e===!0?Math.max(this.selectionWidth,.3/this._body.view.scale):n===!0?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}},{key:"getColor",value:function(e,n){if(n.inheritsColor!==!1){if(n.inheritsColor==="both"&&this.from.id!==this.to.id){var i=e.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),o=this.from.options.color.highlight.border,a=this.to.options.color.highlight.border;return this.from.selected===!1&&this.to.selected===!1?(o=Li(this.from.options.color.border,n.opacity),a=Li(this.to.options.color.border,n.opacity)):this.from.selected===!0&&this.to.selected===!1?a=this.to.options.color.border:this.from.selected===!1&&this.to.selected===!0&&(o=this.from.options.color.border),i.addColorStop(0,o),i.addColorStop(1,a),i}return n.inheritsColor==="to"?Li(this.to.options.color.border,n.opacity):Li(this.from.options.color.border,n.opacity)}else return Li(n.color,n.opacity)}},{key:"_circle",value:function(e,n,i,o,a){this.enableShadow(e,n);var s=0,l=Math.PI*2;if(!this.options.selfReference.renderBehindTheNode){var g=this.options.selfReference.angle,u=this.options.selfReference.angle+Math.PI,c=this._findBorderPositionCircle(this.from,e,{x:i,y:o,low:g,high:u,direction:-1}),d=this._findBorderPositionCircle(this.from,e,{x:i,y:o,low:g,high:u,direction:1});s=Math.atan2(c.y-o,c.x-i),l=Math.atan2(d.y-o,d.x-i)}e.beginPath(),e.arc(i,o,a,s,l,!1),e.stroke(),this.disableShadow(e,n)}},{key:"getDistanceToEdge",value:function(e,n,i,o,a,s){if(this.from!=this.to)return this._getDistanceToEdge(e,n,i,o,a,s);var l=this._getCircleData(void 0),g=vt(l,3),u=g[0],c=g[1],d=g[2],h=u-a,A=c-s;return Math.abs(Math.sqrt(h*h+A*A)-d)}},{key:"_getDistanceToLine",value:function(e,n,i,o,a,s){var l=i-e,g=o-n,u=l*l+g*g,c=((a-e)*l+(s-n)*g)/u;c>1?c=1:c<0&&(c=0);var d=e+c*l,h=n+c*g,A=d-a,f=h-s;return Math.sqrt(A*A+f*f)}},{key:"getArrowData",value:function(e,n,i,o,a,s){var l,g,u,c,d,h,A,f=s.width;n==="from"?(u=this.from,c=this.to,d=s.fromArrowScale<0,h=Math.abs(s.fromArrowScale),A=s.fromArrowType):n==="to"?(u=this.to,c=this.from,d=s.toArrowScale<0,h=Math.abs(s.toArrowScale),A=s.toArrowType):(u=this.to,c=this.from,d=s.middleArrowScale<0,h=Math.abs(s.middleArrowScale),A=s.middleArrowType);var C=15*h+3*f;if(u!=c){var I=QLe(u.x-c.x,u.y-c.y),v=C/I;if(n!=="middle")if(this.options.smooth.enabled===!0){var p=this._findBorderPosition(u,e,{via:i}),y=this.getPoint(p.t+v*(n==="from"?1:-1),i);l=Math.atan2(p.y-y.y,p.x-y.x),g=p}else l=Math.atan2(u.y-c.y,u.x-c.x),g=this._findBorderPosition(u,e);else{var b=(d?-v:v)/2,_=this.getPoint(.5+b,i),P=this.getPoint(.5-b,i);l=Math.atan2(_.y-P.y,_.x-P.x),g=this.getPoint(.5,i)}}else{var k=this._getCircleData(e),E=vt(k,3),O=E[0],N=E[1],D=E[2];if(n==="from"){var M=this.options.selfReference.angle,Q=this.options.selfReference.angle+Math.PI,j=this._findBorderPositionCircle(this.from,e,{x:O,y:N,low:M,high:Q,direction:-1});l=j.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,g=j}else if(n==="to"){var W=this.options.selfReference.angle,q=this.options.selfReference.angle+Math.PI,oe=this._findBorderPositionCircle(this.from,e,{x:O,y:N,low:W,high:q,direction:1});l=oe.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,g=oe}else{var Pe=this.options.selfReference.angle/(2*Math.PI);g=this._pointOnCircle(O,N,D,Pe),l=Pe*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}var He=g.x-C*.9*Math.cos(l),Le=g.y-C*.9*Math.sin(l),me={x:He,y:Le};return{point:g,core:me,angle:l,length:C,type:A}}},{key:"drawArrowHead",value:function(e,n,i,o,a){e.strokeStyle=this.getColor(e,n),e.fillStyle=e.strokeStyle,e.lineWidth=n.width;var s=wH.draw(e,a);s&&(this.enableShadow(e,n),bf(e).call(e),this.disableShadow(e,n))}},{key:"enableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor=n.shadowColor,e.shadowBlur=n.shadowSize,e.shadowOffsetX=n.shadowX,e.shadowOffsetY=n.shadowY)}},{key:"disableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"drawBackground",value:function(e,n){if(n.background!==!1){var i={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=n.backgroundColor,e.lineWidth=n.backgroundSize,this.setStrokeDashed(e,n.backgroundDashes),e.stroke(),e.strokeStyle=i.strokeStyle,e.lineWidth=i.lineWidth,e.dashes=i.dashes,this.setStrokeDashed(e,n.dashes)}}},{key:"setStrokeDashed",value:function(e,n){if(n!==!1)if(e.setLineDash!==void 0){var i=lt(n)?n:[5,5];e.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else e.setLineDash!==void 0?e.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function VM(t,r){var e=er(t);if(ia){var n=ia(t);r&&(n=Mr(n).call(n,function(i){return ga(t,i).enumerable})),e.push.apply(e,n)}return e}function GM(t){for(var r=1;r<arguments.length;r++){var e,n,i=arguments[r]!=null?arguments[r]:{};r%2?Et(e=VM(Object(i),!0)).call(e,function(o){rr(t,o,i[o])}):oa?Pf(t,oa(i)):Et(n=VM(Object(i))).call(n,function(o){xf(t,o,ga(i,o))})}return t}function cze(t){var r=dze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function dze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var LT=function(t){xt(e,t);var r=cze(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"_findBorderPositionBezier",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates(),s=10,l=.2,g=!1,u=1,c=0,d=this.to,h,A,f=this.options.endPointOffset?this.options.endPointOffset.to:0;i.id===this.from.id&&(d=this.from,g=!0,f=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(f=0);var C=0;do{A=(c+u)*.5,h=this.getPoint(A,a);var I=Math.atan2(d.y-h.y,d.x-h.x),v=d.distanceToBorder(o,I)+f,p=Math.sqrt(Math.pow(h.x-d.x,2)+Math.pow(h.y-d.y,2)),y=v-p;if(Math.abs(y)<l)break;y<0?g===!1?c=A:u=A:g===!1?u=A:c=A,++C}while(c<=u&&C<s);return GM(GM({},h),{},{t:A})}},{key:"_getDistanceToBezierEdge",value:function(i,o,a,s,l,g,u){var c=1e9,d,h,A,f,C,I=i,v=o;for(h=1;h<10;h++)A=.1*h,f=Math.pow(1-A,2)*i+2*A*(1-A)*u.x+Math.pow(A,2)*a,C=Math.pow(1-A,2)*o+2*A*(1-A)*u.y+Math.pow(A,2)*s,h>0&&(d=this._getDistanceToLine(I,v,f,C,l,g),c=d<c?d:c),I=f,v=C;return c}},{key:"_bezierCurve",value:function(i,o,a,s){i.beginPath(),i.moveTo(this.fromPoint.x,this.fromPoint.y),a!=null&&a.x!=null?s!=null&&s.x!=null?i.bezierCurveTo(a.x,a.y,s.x,s.y,this.toPoint.x,this.toPoint.y):i.quadraticCurveTo(a.x,a.y,this.toPoint.x,this.toPoint.y):i.lineTo(this.toPoint.x,this.toPoint.y),this.drawBackground(i,o),this.enableShadow(i,o),i.stroke(),this.disableShadow(i,o)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}}]),e}(_H);function hze(t){var r=Aze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function Aze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var WM=function(t){xt(e,t);var r=hze(e);function e(n,i,o){var a;return Ae(this,e),a=r.call(this,n,i,o),a.via=a.via,a._boundFunction=function(){a.positionBezierNode()},a._body.emitter.on("_repositionBezierNodes",a._boundFunction),a}return fe(e,[{key:"setOptions",value:function(i){wv(xe(e.prototype),"setOptions",this).call(this,i);var o=!1;this.options.physics!==i.physics&&(o=!0),this.options=i,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),o===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.from===void 0||this.to===void 0||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),this.via!==void 0?(delete this._body.nodes[this.via.id],this.via=void 0,!0):!1}},{key:"setupSupportNode",value:function(){if(this.via===void 0){var i="edgeId:"+this.id,o=this._body.functions.createNode({id:i,shape:"circle",physics:!0,hidden:!0});this._body.nodes[i]=o,this.via=o,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){this.via!==void 0&&this.from!==void 0&&this.to!==void 0?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):this.via!==void 0&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(i,o,a){this._bezierCurve(i,o,a)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){var a=this._getCircleData(),s=vt(a,3),l=s[0],g=s[1],u=s[2],c=2*Math.PI*(1-i);return{x:l+u*Math.sin(c),y:g+u-u*(1-Math.cos(c))}}else return{x:Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*o.x+Math.pow(i,2)*this.toPoint.x,y:Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*o.y+Math.pow(i,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o,this.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,g){return this._getDistanceToBezierEdge(i,o,a,s,l,g,this.via)}}]),e}(LT);function fze(t){var r=Cze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function Cze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var HM=function(t){xt(e,t);var r=fze(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"_line",value:function(i,o,a){this._bezierCurve(i,o,a)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var i=this.options.smooth.roundness,o=this.options.smooth.type,a=Math.abs(this.from.x-this.to.x),s=Math.abs(this.from.y-this.to.y);if(o==="discrete"||o==="diagonalCross"){var l,g;a<=s?l=g=i*s:l=g=i*a,this.from.x>this.to.x&&(l=-l),this.from.y>=this.to.y&&(g=-g);var u=this.from.x+l,c=this.from.y+g;return o==="discrete"&&(a<=s?u=a<i*s?this.from.x:u:c=s<i*a?this.from.y:c),{x:u,y:c}}else if(o==="straightCross"){var d=(1-i)*a,h=(1-i)*s;return a<=s?(d=0,this.from.y<this.to.y&&(h=-h)):(this.from.x<this.to.x&&(d=-d),h=0),{x:this.to.x+d,y:this.to.y+h}}else if(o==="horizontal"){var A=(1-i)*a;return this.from.x<this.to.x&&(A=-A),{x:this.to.x+A,y:this.from.y}}else if(o==="vertical"){var f=(1-i)*s;return this.from.y<this.to.y&&(f=-f),{x:this.from.x,y:this.to.y+f}}else if(o==="curvedCW"){a=this.to.x-this.from.x,s=this.from.y-this.to.y;var C=Math.sqrt(a*a+s*s),I=Math.PI,v=Math.atan2(s,a),p=(v+(i*.5+.5)*I)%(2*I);return{x:this.from.x+(i*.5+.5)*C*Math.sin(p),y:this.from.y+(i*.5+.5)*C*Math.cos(p)}}else if(o==="curvedCCW"){a=this.to.x-this.from.x,s=this.from.y-this.to.y;var y=Math.sqrt(a*a+s*s),b=Math.PI,_=Math.atan2(s,a),P=(_+(-i*.5+.5)*b)%(2*b);return{x:this.from.x+(i*.5+.5)*y*Math.sin(P),y:this.from.y+(i*.5+.5)*y*Math.cos(P)}}else{var k,E;a<=s?k=E=i*s:k=E=i*a,this.from.x>this.to.x&&(k=-k),this.from.y>=this.to.y&&(E=-E);var O=this.from.x+k,N=this.from.y+E;return a<=s?this.from.x<=this.to.x?O=this.to.x<O?this.to.x:O:O=this.to.x>O?this.to.x:O:this.from.y>=this.to.y?N=this.to.y>N?this.to.y:N:N=this.to.y<N?this.to.y:N,{x:O,y:N}}}},{key:"_findBorderPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(i,o,a.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,g){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(i,o,a,s,l,g,u)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=i,s=Math.pow(1-a,2)*this.fromPoint.x+2*a*(1-a)*o.x+Math.pow(a,2)*this.toPoint.x,l=Math.pow(1-a,2)*this.fromPoint.y+2*a*(1-a)*o.y+Math.pow(a,2)*this.toPoint.y;return{x:s,y:l}}}]),e}(LT);function Ize(t){var r=vze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function vze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var pze=function(t){xt(e,t);var r=Ize(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"_getDistanceToBezierEdge2",value:function(i,o,a,s,l,g,u,c){for(var d=1e9,h=i,A=o,f=[0,0,0,0],C=1;C<10;C++){var I=.1*C;f[0]=Math.pow(1-I,3),f[1]=3*I*Math.pow(1-I,2),f[2]=3*Math.pow(I,2)*(1-I),f[3]=Math.pow(I,3);var v=f[0]*i+f[1]*u.x+f[2]*c.x+f[3]*a,p=f[0]*o+f[1]*u.y+f[2]*c.y+f[3]*s;if(C>0){var y=this._getDistanceToLine(h,A,v,p,l,g);d=y<d?y:d}h=v,A=p}return d}}]),e}(LT);function mze(t){var r=yze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function yze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var UM=function(t){xt(e,t);var r=mze(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"_line",value:function(i,o,a){var s=a[0],l=a[1];this._bezierCurve(i,o,s,l)}},{key:"_getViaCoordinates",value:function(){var i=this.from.x-this.to.x,o=this.from.y-this.to.y,a,s,l,g,u=this.options.smooth.roundness;return(Math.abs(i)>Math.abs(o)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(s=this.from.y,g=this.to.y,a=this.from.x-u*i,l=this.to.x+u*i):(s=this.from.y-u*o,g=this.to.y+u*o,a=this.from.x,l=this.to.x),[{x:a,y:s},{x:l,y:g}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,g){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates(),c=vt(u,2),d=c[0],h=c[1];return this._getDistanceToBezierEdge2(i,o,a,s,l,g,d,h)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=vt(o,2),s=a[0],l=a[1],g=i,u=[Math.pow(1-g,3),3*g*Math.pow(1-g,2),3*Math.pow(g,2)*(1-g),Math.pow(g,3)],c=u[0]*this.fromPoint.x+u[1]*s.x+u[2]*l.x+u[3]*this.toPoint.x,d=u[0]*this.fromPoint.y+u[1]*s.y+u[2]*l.y+u[3]*this.toPoint.y;return{x:c,y:d}}}]),e}(pze);function bze(t){var r=$ze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function $ze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var ZM=function(t){xt(e,t);var r=bze(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"_line",value:function(i,o){i.beginPath(),i.moveTo(this.fromPoint.x,this.fromPoint.y),i.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(i,o),i.stroke(),this.disableShadow(i,o)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(i){return{x:(1-i)*this.fromPoint.x+i*this.toPoint.x,y:(1-i)*this.fromPoint.y+i*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){var a=this.to,s=this.from;i.id===this.from.id&&(a=this.from,s=this.to);var l=Math.atan2(a.y-s.y,a.x-s.x),g=a.x-s.x,u=a.y-s.y,c=Math.sqrt(g*g+u*u),d=i.distanceToBorder(o,l),h=(c-d)/c;return{x:(1-h)*s.x+h*a.x,y:(1-h)*s.y+h*a.y,t:0}}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,g){return this._getDistanceToLine(i,o,a,s,l,g)}}]),e}(_H),Cc=function(){function t(r,e,n,i,o){if(Ae(this,t),e===void 0)throw new Error("No body provided");this.options=Ls(i),this.globalOptions=i,this.defaultOptions=o,this.body=e,this.imagelist=n,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new yH(this.body,this.options,!0),this.setOptions(r)}return fe(t,[{key:"setOptions",value:function(e){if(e){var n=typeof e.physics<"u"&&this.options.physics!==e.physics||typeof e.hidden<"u"&&(this.options.hidden||!1)!==(e.hidden||!1)||typeof e.from<"u"&&this.options.from!==e.from||typeof e.to<"u"&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),e.id!==void 0&&(this.id=e.id),e.from!==void 0&&(this.fromId=e.from),e.to!==void 0&&(this.toId=e.to),e.title!==void 0&&(this.title=e.title),e.value!==void 0&&(e.value=pH(e.value));var i=[e,this.options,this.defaultOptions];return this.chooser=BT("edge",i),this.updateLabelModule(e),n=this.updateEdgeType()||n,this._setInteractionWidths(),this.connect(),n}}},{key:"getFormattingValues",value:function(){var e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,n=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,i=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,o=this.options.color.inherit,a={toArrow:e,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:n,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:o?void 0:this.options.color.color,inheritsColor:o,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(this.chooser===!0){if(this.selected){var s=this.options.selectionWidth;typeof s=="function"?a.width=s(a.width):typeof s=="number"&&(a.width+=s),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.highlight,a.shadow=this.options.shadow.enabled}else if(this.hover){var l=this.options.hoverWidth;typeof l=="function"?a.width=l(a.width):typeof l=="number"&&(a.width+=l),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.hover,a.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(a,this.options.id,this.selected,this.hover),a.color!==void 0&&(a.inheritsColor=!1),a.shadow===!1&&(a.shadowColor!==this.options.shadow.color||a.shadowSize!==this.options.shadow.size||a.shadowX!==this.options.shadow.x||a.shadowY!==this.options.shadow.y)&&(a.shadow=!0));else a.shadow=this.options.shadow.enabled,a.width=Math.max(a.width,.3/this.body.view.scale);return a}},{key:"updateLabelModule",value:function(e){var n=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,n),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var e=this.options.smooth,n=!1,i=!0;return this.edgeType!==void 0&&((this.edgeType instanceof WM&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof UM&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof HM&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof ZM&&e.type.enabled===!1)&&(i=!1),i===!0&&(n=this.cleanup())),i===!0?e.enabled===!0?e.type==="dynamic"?(n=!0,this.edgeType=new WM(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new UM(this.options,this.body,this.labelModule):this.edgeType=new HM(this.options,this.body,this.labelModule):this.edgeType=new ZM(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),n}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=this.from!==void 0&&this.to!==void 0,this.connected===!0?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(e,n,i){if(this.options.value!==void 0){var o=this.options.scaling.customScalingFunction(e,n,i,this.options.value),a=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var s=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+o*s}this.options.width=this.options.scaling.min+o*a}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){typeof this.options.hoverWidth=="function"?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,typeof this.options.selectionWidth=="function"?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode();this.edgeType.drawLine(e,n,this.selected,this.hover,i),this.drawLabel(e,i)}}},{key:"drawArrows",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode(),o={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,n.fromArrow&&(o.from=this.edgeType.getArrowData(e,"from",i,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.fromPoint=o.from.core),n.fromArrowSrc&&(o.from.image=this.imagelist.load(n.fromArrowSrc)),n.fromArrowImageWidth&&(o.from.imageWidth=n.fromArrowImageWidth),n.fromArrowImageHeight&&(o.from.imageHeight=n.fromArrowImageHeight)),n.toArrow&&(o.to=this.edgeType.getArrowData(e,"to",i,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.toPoint=o.to.core),n.toArrowSrc&&(o.to.image=this.imagelist.load(n.toArrowSrc)),n.toArrowImageWidth&&(o.to.imageWidth=n.toArrowImageWidth),n.toArrowImageHeight&&(o.to.imageHeight=n.toArrowImageHeight)),n.middleArrow&&(o.middle=this.edgeType.getArrowData(e,"middle",i,this.selected,this.hover,n),n.middleArrowSrc&&(o.middle.image=this.imagelist.load(n.middleArrowSrc)),n.middleArrowImageWidth&&(o.middle.imageWidth=n.middleArrowImageWidth),n.middleArrowImageHeight&&(o.middle.imageHeight=n.middleArrowImageHeight)),n.fromArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.from),n.middleArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.middle),n.toArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.to)}}},{key:"drawLabel",value:function(e,n){if(this.options.label!==void 0){var i=this.from,o=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);var a;if(i.id!=o.id){this.labelModule.pointToSelf=!1,a=this.edgeType.getPoint(.5,n),e.save();var s=this._getRotation(e);s.angle!=0&&(e.translate(s.x,s.y),e.rotate(s.angle)),this.labelModule.draw(e,a.x,a.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;var l=mH(e,this.options.selfReference.angle,this.options.selfReference.size,i);a=this._pointOnCircle(l.x,l.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,a.x,a.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(e){var n=[];if(this.labelModule.visible()){var i=this._getRotation();pE(this.labelModule.getSize(),e,i)&&n.push({edgeId:this.id,labelId:0})}var o={left:e.x,top:e.y};return this.isOverlappingWith(o)&&n.push({edgeId:this.id}),n}},{key:"isOverlappingWith",value:function(e){if(this.connected){var n=10,i=this.from.x,o=this.from.y,a=this.to.x,s=this.to.y,l=e.left,g=e.top,u=this.edgeType.getDistanceToEdge(i,o,a,s,l,g);return u<n}else return!1}},{key:"_getRotation",value:function(e){var n=this.edgeType.getViaNode(),i=this.edgeType.getPoint(.5,n);e!==void 0&&this.labelModule.calculateLabelSize(e,this.selected,this.hover,i.x,i.y);var o={x:i.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible()||this.options.font.align==="horizontal")return o;var a=this.from.y-this.to.y,s=this.from.x-this.to.x,l=Math.atan2(a,s);return(l<-1&&s<0||l>0&&s<0)&&(l+=Math.PI),o.angle=l,o}},{key:"_pointOnCircle",value:function(e,n,i,o){return{x:e+i*Math.cos(o),y:n-i*Math.sin(o)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}}],[{key:"parseOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(wd(s,e,n,i),n.endPointOffset!==void 0&&n.endPointOffset.from!==void 0&&(Ql(n.endPointOffset.from)?e.endPointOffset.from=n.endPointOffset.from:(e.endPointOffset.from=o.endPointOffset.from!==void 0?o.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),n.endPointOffset!==void 0&&n.endPointOffset.to!==void 0&&(Ql(n.endPointOffset.to)?e.endPointOffset.to=n.endPointOffset.to:(e.endPointOffset.to=o.endPointOffset.to!==void 0?o.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),Lp(n.label)?e.label=n.label:Lp(e.label)||(e.label=void 0),Bi(e,n,"smooth",o),Bi(e,n,"shadow",o),Bi(e,n,"background",o),n.dashes!==void 0&&n.dashes!==null?e.dashes=n.dashes:i===!0&&n.dashes===null&&(e.dashes=Bs(o.dashes)),n.scaling!==void 0&&n.scaling!==null?(n.scaling.min!==void 0&&(e.scaling.min=n.scaling.min),n.scaling.max!==void 0&&(e.scaling.max=n.scaling.max),Bi(e.scaling,n.scaling,"label",o.scaling)):i===!0&&n.scaling===null&&(e.scaling=Bs(o.scaling)),n.arrows!==void 0&&n.arrows!==null)if(typeof n.arrows=="string"){var l=n.arrows.toLowerCase();e.arrows.to.enabled=Tt(l).call(l,"to")!=-1,e.arrows.middle.enabled=Tt(l).call(l,"middle")!=-1,e.arrows.from.enabled=Tt(l).call(l,"from")!=-1}else if(ct(n.arrows)==="object")Bi(e.arrows,n.arrows,"to",o.arrows),Bi(e.arrows,n.arrows,"middle",o.arrows),Bi(e.arrows,n.arrows,"from",o.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+bd(n.arrows));else i===!0&&n.arrows===null&&(e.arrows=Bs(o.arrows));if(n.color!==void 0&&n.color!==null){var g=bs(n.color)?{color:n.color,highlight:n.color,hover:n.color,inherit:!1,opacity:1}:n.color,u=e.color;if(a)Yt(u,o.color,!1,i);else for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&delete u[c];if(bs(u))u.color=u,u.highlight=u,u.hover=u,u.inherit=!1,g.opacity===void 0&&(u.opacity=1);else{var d=!1;g.color!==void 0&&(u.color=g.color,d=!0),g.highlight!==void 0&&(u.highlight=g.highlight,d=!0),g.hover!==void 0&&(u.hover=g.hover,d=!0),g.inherit!==void 0&&(u.inherit=g.inherit),g.opacity!==void 0&&(u.opacity=Math.min(1,Math.max(0,g.opacity))),d===!0?u.inherit=!1:u.inherit===void 0&&(u.inherit="from")}}else i===!0&&n.color===null&&(e.color=Ls(o.color));i===!0&&n.font===null&&(e.font=Ls(o.font)),Object.prototype.hasOwnProperty.call(n,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),e.selfReference.size=n.selfReferenceSize)}}]),t}(),wze=function(){function t(r,e,n){var i,o=this;Ae(this,t),this.body=r,this.images=e,this.groups=n,this.body.functions.createEdge=ue(i=this.create).call(i,this),this.edgesListeners={add:function(s,l){o.add(l.items)},update:function(s,l){o.update(l.items)},remove:function(s,l){o.remove(l.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(s,l,g,u){if(l===s)return .5;var c=1/(l-s);return Math.max(0,(u-s)*c)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},Yt(this.options,this.defaultOptions),this.bindEventListeners()}return fe(t,[{key:"bindEventListeners",value:function(){var e=this,n,i;this.body.emitter.on("_forceDisableDynamicCurves",function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;o==="dynamic"&&(o="continuous");var s=!1;for(var l in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,l)){var g=e.body.edges[l],u=e.body.data.edges.get(l);if(u!=null){var c=u.smooth;c!==void 0&&c.enabled===!0&&c.type==="dynamic"&&(o===void 0?g.setOptions({smooth:!1}):g.setOptions({smooth:{type:o}}),s=!0)}}a===!0&&s===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){e.reconnectEdges()}),this.body.emitter.on("refreshEdges",ue(n=this.refresh).call(n,this)),this.body.emitter.on("refresh",ue(i=this.refresh).call(i,this)),this.body.emitter.on("destroy",function(){dt(e.edgesListeners,function(o,a){e.body.data.edges&&e.body.data.edges.off(a,o)}),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners})}},{key:"setOptions",value:function(e){if(e!==void 0){Cc.parseOptions(this.options,e,!0,this.defaultOptions,!0);var n=!1;if(e.smooth!==void 0)for(var i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&(n=this.body.edges[i].updateEdgeType()||n);if(e.font!==void 0)for(var o in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,o)&&this.body.edges[o].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||n===!0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.body.data.edges;if(IH("id",e))this.body.data.edges=e;else if(lt(e))this.body.data.edges=new zc,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new zc;else throw new TypeError("Array or DataSet expected");if(o&&dt(this.edgesListeners,function(s,l){o.off(l,s)}),this.body.edges={},this.body.data.edges){dt(this.edgesListeners,function(s,l){n.body.data.edges.on(l,s)});var a=this.body.data.edges.getIds();this.add(a,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),i===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.edges,o=this.body.data.edges,a=0;a<e.length;a++){var s=e[a],l=i[s];l&&l.disconnect();var g=o.get(s,{showInternalIds:!0});i[s]=this.create(g)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(e){for(var n=this.body.edges,i=this.body.data.edges,o=!1,a=0;a<e.length;a++){var s=e[a],l=i.get(s),g=n[s];g!==void 0?(g.disconnect(),o=g.setOptions(l)||o,g.connect()):(this.body.edges[s]=this.create(l),o=!0)}o===!0?(this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),this.body.emitter.emit("_dataChanged")):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length!==0){var i=this.body.edges;dt(e,function(o){var a=i[o];a!==void 0&&a.remove()}),n&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var e=this;dt(this.body.edges,function(n,i){var o=e.body.data.edges.get(i);o!==void 0&&n.setOptions(o)})}},{key:"create",value:function(e){return new Cc(e,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var e,n=this.body.nodes,i=this.body.edges;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e].edges=[]);for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)){var o=i[e];o.from=null,o.to=null,o.connect()}}},{key:"getConnectedNodes",value:function(e){var n=[];if(this.body.edges[e]!==void 0){var i=this.body.edges[e];i.fromId!==void 0&&n.push(i.fromId),i.toId!==void 0&&n.push(i.toId)}return n}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var e=this,n=[];dt(this.body.edges,function(i,o){var a=e.body.nodes[i.toId],s=e.body.nodes[i.fromId];a!==void 0&&a.isCluster===!0||s!==void 0&&s.isCluster===!0||(a===void 0||s===void 0)&&n.push(o)}),this.remove(n,!1)}},{key:"_addMissingEdges",value:function(){var e=this.body.data.edges;if(e!=null){var n=this.body.edges,i=[];Et(e).call(e,function(o,a){var s=n[a];s===void 0&&i.push(a)}),this.add(i,!0)}}}]),t}(),EH=function(){function t(r,e,n){Ae(this,t),this.body=r,this.physicsBody=e,this.barnesHutTree,this.setOptions(n),this._rng=Iy("BARNES HUT SOLVER")}return fe(t,[{key:"setOptions",value:function(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){var e,n=this.body.nodes,i=this.physicsBody.physicsNodeIndices,o=i.length,a=this._formBarnesHutTree(n,i);this.barnesHutTree=a;for(var s=0;s<o;s++)e=n[i[s]],e.options.mass>0&&this._getForceContributions(a.root,e)}}},{key:"_getForceContributions",value:function(e,n){this._getForceContribution(e.children.NW,n),this._getForceContribution(e.children.NE,n),this._getForceContribution(e.children.SW,n),this._getForceContribution(e.children.SE,n)}},{key:"_getForceContribution",value:function(e,n){if(e.childrenCount>0){var i=e.centerOfMass.x-n.x,o=e.centerOfMass.y-n.y,a=Math.sqrt(i*i+o*o);a*e.calcSize>this.thetaInversed?this._calculateForces(a,i,o,n,e):e.childrenCount===4?this._getForceContributions(e,n):e.children.data.id!=n.id&&this._calculateForces(a,i,o,n,e)}}},{key:"_calculateForces",value:function(e,n,i,o,a){e===0&&(e=.1,n=e),this.overlapAvoidanceFactor<1&&o.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*o.shape.radius,e-o.shape.radius));var s=this.options.gravitationalConstant*a.mass*o.options.mass/Math.pow(e,3),l=n*s,g=i*s;this.physicsBody.forces[o.id].x+=l,this.physicsBody.forces[o.id].y+=g}},{key:"_formBarnesHutTree",value:function(e,n){for(var i,o=n.length,a=e[n[0]].x,s=e[n[0]].y,l=e[n[0]].x,g=e[n[0]].y,u=1;u<o;u++){var c=e[n[u]],d=c.x,h=c.y;c.options.mass>0&&(d<a&&(a=d),d>l&&(l=d),h<s&&(s=h),h>g&&(g=h))}var A=Math.abs(l-a)-Math.abs(g-s);A>0?(s-=.5*A,g+=.5*A):(a+=.5*A,l-=.5*A);var f=1e-5,C=Math.max(f,Math.abs(l-a)),I=.5*C,v=.5*(a+l),p=.5*(s+g),y={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:v-I,maxX:v+I,minY:p-I,maxY:p+I},size:C,calcSize:1/C,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(y.root);for(var b=0;b<o;b++)i=e[n[b]],i.options.mass>0&&this._placeInTree(y.root,i);return y}},{key:"_updateBranchMass",value:function(e,n){var i=e.centerOfMass,o=e.mass+n.options.mass,a=1/o;i.x=i.x*e.mass+n.x*n.options.mass,i.x*=a,i.y=i.y*e.mass+n.y*n.options.mass,i.y*=a,e.mass=o;var s=Math.max(Math.max(n.height,n.radius),n.width);e.maxWidth=e.maxWidth<s?s:e.maxWidth}},{key:"_placeInTree",value:function(e,n,i){(i!=!0||i===void 0)&&this._updateBranchMass(e,n);var o=e.children.NW.range,a;o.maxX>n.x?o.maxY>n.y?a="NW":a="SW":o.maxY>n.y?a="NE":a="SE",this._placeInRegion(e,n,a)}},{key:"_placeInRegion",value:function(e,n,i){var o=e.children[i];switch(o.childrenCount){case 0:o.children.data=n,o.childrenCount=1,this._updateBranchMass(o,n);break;case 1:o.children.data.x===n.x&&o.children.data.y===n.y?(n.x+=this._rng(),n.y+=this._rng()):(this._splitBranch(o),this._placeInTree(o,n));break;case 4:this._placeInTree(o,n);break}}},{key:"_splitBranch",value:function(e){var n=null;e.childrenCount===1&&(n=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),n!=null&&this._placeInTree(e,n)}},{key:"_insertRegion",value:function(e,n){var i,o,a,s,l=.5*e.size;switch(n){case"NW":i=e.range.minX,o=e.range.minX+l,a=e.range.minY,s=e.range.minY+l;break;case"NE":i=e.range.minX+l,o=e.range.maxX,a=e.range.minY,s=e.range.minY+l;break;case"SW":i=e.range.minX,o=e.range.minX+l,a=e.range.minY+l,s=e.range.maxY;break;case"SE":i=e.range.minX+l,o=e.range.maxX,a=e.range.minY+l,s=e.range.maxY;break}e.children[n]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:o,minY:a,maxY:s},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}},{key:"_debug",value:function(e,n){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,n))}},{key:"_drawBranch",value:function(e,n,i){i===void 0&&(i="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,n),this._drawBranch(e.children.NE,n),this._drawBranch(e.children.SE,n),this._drawBranch(e.children.SW,n)),n.strokeStyle=i,n.beginPath(),n.moveTo(e.range.minX,e.range.minY),n.lineTo(e.range.maxX,e.range.minY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.minY),n.lineTo(e.range.maxX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.maxY),n.lineTo(e.range.minX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.minX,e.range.maxY),n.lineTo(e.range.minX,e.range.minY),n.stroke()}}]),t}(),_ze=function(){function t(r,e,n){Ae(this,t),this._rng=Iy("REPULSION SOLVER"),this.body=r,this.physicsBody=e,this.setOptions(n)}return fe(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,i,o,a,s,l,g,u=this.body.nodes,c=this.physicsBody.physicsNodeIndices,d=this.physicsBody.forces,h=this.options.nodeDistance,A=-2/3/h,f=4/3,C=0;C<c.length-1;C++){l=u[c[C]];for(var I=C+1;I<c.length;I++)g=u[c[I]],e=g.x-l.x,n=g.y-l.y,i=Math.sqrt(e*e+n*n),i===0&&(i=.1*this._rng(),e=i),i<2*h&&(i<.5*h?s=1:s=A*i+f,s=s/i,o=e*s,a=n*s,d[l.id].x-=o,d[l.id].y-=a,d[g.id].x+=o,d[g.id].y+=a)}}}]),t}(),Eze=function(){function t(r,e,n){Ae(this,t),this.body=r,this.physicsBody=e,this.setOptions(n)}return fe(t,[{key:"setOptions",value:function(e){this.options=e,this.overlapAvoidanceFactor=Math.max(0,Math.min(1,this.options.avoidOverlap||0))}},{key:"solve",value:function(){for(var e=this.body.nodes,n=this.physicsBody.physicsNodeIndices,i=this.physicsBody.forces,o=this.options.nodeDistance,a=0;a<n.length-1;a++)for(var s=e[n[a]],l=a+1;l<n.length;l++){var g=e[n[l]];if(s.level===g.level){var u=o+this.overlapAvoidanceFactor*((s.shape.radius||0)/2+(g.shape.radius||0)/2),c=g.x-s.x,d=g.y-s.y,h=Math.sqrt(c*c+d*d),A=.05,f=void 0;h<u?f=-Math.pow(A*h,2)+Math.pow(A*u,2):f=0,h!==0&&(f=f/h);var C=c*f,I=d*f;i[s.id].x-=C,i[s.id].y-=I,i[g.id].x+=C,i[g.id].y+=I}}}}]),t}(),p1=function(){function t(r,e,n){Ae(this,t),this.body=r,this.physicsBody=e,this.setOptions(n)}return fe(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,i=this.physicsBody.physicsEdgeIndices,o=this.body.edges,a,s,l,g=0;g<i.length;g++)n=o[i[g]],n.connected===!0&&n.toId!==n.fromId&&this.body.nodes[n.toId]!==void 0&&this.body.nodes[n.fromId]!==void 0&&(n.edgeType.via!==void 0?(e=n.options.length===void 0?this.options.springLength:n.options.length,a=n.to,s=n.edgeType.via,l=n.from,this._calculateSpringForce(a,s,.5*e),this._calculateSpringForce(s,l,.5*e)):(e=n.options.length===void 0?this.options.springLength*1.5:n.options.length,this._calculateSpringForce(n.from,n.to,e)))}},{key:"_calculateSpringForce",value:function(e,n,i){var o=e.x-n.x,a=e.y-n.y,s=Math.max(Math.sqrt(o*o+a*a),.01),l=this.options.springConstant*(i-s)/s,g=o*l,u=a*l;this.physicsBody.forces[e.id]!==void 0&&(this.physicsBody.forces[e.id].x+=g,this.physicsBody.forces[e.id].y+=u),this.physicsBody.forces[n.id]!==void 0&&(this.physicsBody.forces[n.id].x-=g,this.physicsBody.forces[n.id].y-=u)}}]),t}(),Sze=function(){function t(r,e,n){Ae(this,t),this.body=r,this.physicsBody=e,this.setOptions(n)}return fe(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,i,o,a,s,l,g,u=this.body.edges,c=.5,d=this.physicsBody.physicsEdgeIndices,h=this.physicsBody.physicsNodeIndices,A=this.physicsBody.forces,f=0;f<h.length;f++){var C=h[f];A[C].springFx=0,A[C].springFy=0}for(var I=0;I<d.length;I++)n=u[d[I]],n.connected===!0&&(e=n.options.length===void 0?this.options.springLength:n.options.length,i=n.from.x-n.to.x,o=n.from.y-n.to.y,g=Math.sqrt(i*i+o*o),g=g===0?.01:g,l=this.options.springConstant*(e-g)/g,a=i*l,s=o*l,n.to.level!=n.from.level?(A[n.toId]!==void 0&&(A[n.toId].springFx-=a,A[n.toId].springFy-=s),A[n.fromId]!==void 0&&(A[n.fromId].springFx+=a,A[n.fromId].springFy+=s)):(A[n.toId]!==void 0&&(A[n.toId].x-=c*a,A[n.toId].y-=c*s),A[n.fromId]!==void 0&&(A[n.fromId].x+=c*a,A[n.fromId].y+=c*s)));l=1;for(var v,p,y=0;y<h.length;y++){var b=h[y];v=Math.min(l,Math.max(-l,A[b].springFx)),p=Math.min(l,Math.max(-l,A[b].springFy)),A[b].x+=v,A[b].y+=p}for(var _=0,P=0,k=0;k<h.length;k++){var E=h[k];_+=A[E].x,P+=A[E].y}for(var O=_/h.length,N=P/h.length,D=0;D<h.length;D++){var M=h[D];A[M].x-=O,A[M].y-=N}}}]),t}(),_v=function(){function t(r,e,n){Ae(this,t),this.body=r,this.physicsBody=e,this.setOptions(n)}return fe(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,i,o,a=this.body.nodes,s=this.physicsBody.physicsNodeIndices,l=this.physicsBody.forces,g=0;g<s.length;g++){var u=s[g];o=a[u],e=-o.x,n=-o.y,i=Math.sqrt(e*e+n*n),this._calculateForces(i,e,n,l,o)}}},{key:"_calculateForces",value:function(e,n,i,o,a){var s=e===0?0:this.options.centralGravity/e;o[a.id].x=n*s,o[a.id].y=i*s}}]),t}();function Tze(t){var r=Oze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function Oze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var kze=function(t){xt(e,t);var r=Tze(e);function e(n,i,o){var a;return Ae(this,e),a=r.call(this,n,i,o),a._rng=Iy("FORCE ATLAS 2 BASED REPULSION SOLVER"),a}return fe(e,[{key:"_calculateForces",value:function(i,o,a,s,l){i===0&&(i=.1*this._rng(),o=i),this.overlapAvoidanceFactor<1&&s.shape.radius&&(i=Math.max(.1+this.overlapAvoidanceFactor*s.shape.radius,i-s.shape.radius));var g=s.edges.length+1,u=this.options.gravitationalConstant*l.mass*s.options.mass*g/Math.pow(i,2),c=o*u,d=a*u;this.physicsBody.forces[s.id].x+=c,this.physicsBody.forces[s.id].y+=d}}]),e}(EH);function xze(t){var r=Pze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function Pze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var Rze=function(t){xt(e,t);var r=xze(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"_calculateForces",value:function(i,o,a,s,l){if(i>0){var g=l.edges.length+1,u=this.options.centralGravity*g*l.options.mass;s[l.id].x=o*u,s[l.id].y=a*u}}}]),e}(_v),Dze=function(){function t(r){Ae(this,t),this.body=r,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Or(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return fe(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("initPhysics",function(){e.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){e.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){e.stopSimulation(),e.ready=!1}),this.body.emitter.on("disablePhysics",function(){e.physicsEnabled=!1,e.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){e.setOptions(e.options),e.ready===!0&&e.startSimulation()}),this.body.emitter.on("startSimulation",function(){e.ready===!0&&e.startSimulation()}),this.body.emitter.on("stopSimulation",function(){e.stopSimulation()}),this.body.emitter.on("destroy",function(){e.stopSimulation(!1),e.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){e.updatePhysicsData()})}},{key:"setOptions",value:function(e){if(e!==void 0)if(e===!1)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(e===!0)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,Pp(["stabilization"],this.options,e),Bi(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());var n=this.options.wind;n&&((typeof n.x!="number"||oE(n.x))&&(n.x=0),(typeof n.y!="number"||oE(n.y))&&(n.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new kze(this.body,this.physicsBody,e),this.edgesSolver=new p1(this.body,this.physicsBody,e),this.gravitySolver=new Rze(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new _ze(this.body,this.physicsBody,e),this.edgesSolver=new p1(this.body,this.physicsBody,e),this.gravitySolver=new _v(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new Eze(this.body,this.physicsBody,e),this.edgesSolver=new Sze(this.body,this.physicsBody,e),this.gravitySolver=new _v(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new EH(this.body,this.physicsBody,e),this.edgesSolver=new p1(this.body,this.physicsBody,e),this.gravitySolver=new _v(this.body,this.physicsBody,e)),this.modelOptions=e}},{key:"initPhysics",value:function(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){if(this.physicsEnabled===!0&&this.options.enabled===!0){if(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),this.viewFunction===void 0){var e;this.viewFunction=ue(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.stabilized=!0,e===!0&&this._emitStabilized(),this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var e=Sp();this.physicsTick();var n=Sp()-e;(n<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&mo(function(){e.body.emitter.emit("stabilized",{iterations:n}),e.startedStabilization=!1,e.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){var e=1.2;this._evaluateStepQuality()===!0?this.timestep=e*this.timestep:this.timestep/e<this.options.timestep?this.timestep=this.options.timestep:(this.adaptiveCounter=-1,this.timestep=Math.max(this.options.timestep,this.timestep/e))}},{key:"physicsTick",value:function(){if(this._startStabilizing(),this.stabilized!==!0){if(this.adaptiveTimestep===!0&&this.adaptiveTimestepEnabled===!0){var e=this.adaptiveCounter%this.adaptiveInterval===0;e?(this.timestep=2*this.timestep,this.physicsStep(),this.revert(),this.timestep=.5*this.timestep,this.physicsStep(),this.physicsStep(),this.adjustTimeStep()):this.physicsStep(),this.adaptiveCounter+=1}else this.timestep=this.options.timestep,this.physicsStep();this.stabilized===!0&&this.revert(),this.stabilizationIterations++}}},{key:"updatePhysicsData",value:function(){this.physicsBody.forces={},this.physicsBody.physicsNodeIndices=[],this.physicsBody.physicsEdgeIndices=[];var e=this.body.nodes,n=this.body.edges;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&e[i].options.physics===!0&&this.physicsBody.physicsNodeIndices.push(e[i].id);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&n[o].options.physics===!0&&this.physicsBody.physicsEdgeIndices.push(n[o].id);for(var a=0;a<this.physicsBody.physicsNodeIndices.length;a++){var s=this.physicsBody.physicsNodeIndices[a];this.physicsBody.forces[s]={x:0,y:0},this.physicsBody.velocities[s]===void 0&&(this.physicsBody.velocities[s]={x:0,y:0})}for(var l in this.physicsBody.velocities)e[l]===void 0&&delete this.physicsBody.velocities[l]}},{key:"revert",value:function(){var e=er(this.previousStates),n=this.body.nodes,i=this.physicsBody.velocities;this.referenceState={};for(var o=0;o<e.length;o++){var a=e[o];n[a]!==void 0?n[a].options.physics===!0&&(this.referenceState[a]={positions:{x:n[a].x,y:n[a].y}},i[a].x=this.previousStates[a].vx,i[a].y=this.previousStates[a].vy,n[a].x=this.previousStates[a].x,n[a].y=this.previousStates[a].y):delete this.previousStates[a]}}},{key:"_evaluateStepQuality",value:function(){var e,n,i,o=this.body.nodes,a=this.referenceState,s=.3;for(var l in this.referenceState)if(Object.prototype.hasOwnProperty.call(this.referenceState,l)&&o[l]!==void 0&&(e=o[l].x-a[l].positions.x,n=o[l].y-a[l].positions.y,i=Math.sqrt(Math.pow(e,2)+Math.pow(n,2)),i>s))return!1;return!0}},{key:"moveNodes",value:function(){for(var e=this.physicsBody.physicsNodeIndices,n=0,i=0,o=5,a=0;a<e.length;a++){var s=e[a],l=this._performStep(s);n=Math.max(n,l),i+=l}this.adaptiveTimestepEnabled=i/e.length<o,this.stabilized=n<this.options.minVelocity}},{key:"calculateComponentVelocity",value:function(e,n,i){var o=this.modelOptions.damping*e,a=(n-o)/i;e+=a*this.timestep;var s=this.options.maxVelocity||1e9;return Math.abs(e)>s&&(e=e>0?s:-s),e}},{key:"_performStep",value:function(e){var n=this.body.nodes[e],i=this.physicsBody.forces[e];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);var o=this.physicsBody.velocities[e];this.previousStates[e]={x:n.x,y:n.y,vx:o.x,vy:o.y},n.options.fixed.x===!1?(o.x=this.calculateComponentVelocity(o.x,i.x,n.options.mass),n.x+=o.x*this.timestep):(i.x=0,o.x=0),n.options.fixed.y===!1?(o.y=this.calculateComponentVelocity(o.y,i.y,n.options.mass),n.y+=o.y*this.timestep):(i.y=0,o.y=0);var a=Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2));return a}},{key:"_freezeNodes",value:function(){var e=this.body.nodes;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n].x&&e[n].y){var i=e[n].options.fixed;this.freezeCache[n]={x:i.x,y:i.y},i.x=!0,i.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var e=this.body.nodes;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.freezeCache[n]!==void 0&&(e[n].options.fixed.x=this.freezeCache[n].x,e[n].options.fixed.y=this.freezeCache[n].y);this.freezeCache={}}},{key:"stabilize",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof n!="number"&&(n=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",n)),this.physicsBody.physicsNodeIndices.length===0){this.ready=!0;return}this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=n,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,mo(function(){return e._stabilizationBatch()},0)}},{key:"_startStabilizing",value:function(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var e=this,n=function(){return e.stabilized===!1&&e.stabilizationIterations<e.targetIterations},i=function(){e.body.emitter.emit("stabilizationProgress",{iterations:e.stabilizationIterations,total:e.targetIterations})};this._startStabilizing()&&i();for(var o=0;n()&&o<this.options.stabilization.updateInterval;)this.physicsTick(),o++;if(i(),n()){var a;mo(ue(a=this._stabilizationBatch).call(a,this),0)}else this._finalizeStabilization()}},{key:"_finalizeStabilization",value:function(){this.body.emitter.emit("_allowRedraw"),this.options.stabilization.fit===!0&&this.body.emitter.emit("fit"),this.options.stabilization.onlyDynamicEdges===!0&&this._restoreFrozenNodes(),this.body.emitter.emit("stabilizationIterationsDone"),this.body.emitter.emit("_requestRedraw"),this.stabilized===!0?this._emitStabilized():this.startSimulation(),this.ready=!0}},{key:"_drawForces",value:function(e){for(var n=0;n<this.physicsBody.physicsNodeIndices.length;n++){var i=this.physicsBody.physicsNodeIndices[n],o=this.body.nodes[i],a=this.physicsBody.forces[i],s=20,l=.03,g=Math.sqrt(Math.pow(a.x,2)+Math.pow(a.x,2)),u=Math.min(Math.max(5,g),15),c=3*u,d=rE((180-Math.min(1,Math.max(0,l*g))*180)/360,1,1),h={x:o.x+s*a.x,y:o.y+s*a.y};e.lineWidth=u,e.strokeStyle=d,e.beginPath(),e.moveTo(o.x,o.y),e.lineTo(h.x,h.y),e.stroke();var A=Math.atan2(a.y,a.x);e.fillStyle=d,wH.draw(e,{type:"arrow",point:h,angle:A,length:c}),bf(e).call(e)}}}]),t}(),Dn=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"getRange",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var g=0;g<n.length;g++)l=e[n[g]],a>l.shape.boundingBox.left&&(a=l.shape.boundingBox.left),s<l.shape.boundingBox.right&&(s=l.shape.boundingBox.right),i>l.shape.boundingBox.top&&(i=l.shape.boundingBox.top),o<l.shape.boundingBox.bottom&&(o=l.shape.boundingBox.bottom);return a===1e9&&s===-1e9&&i===1e9&&o===-1e9&&(i=0,o=0,a=0,s=0),{minX:a,maxX:s,minY:i,maxY:o}}},{key:"getRangeCore",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var g=0;g<n.length;g++)l=e[n[g]],a>l.x&&(a=l.x),s<l.x&&(s=l.x),i>l.y&&(i=l.y),o<l.y&&(o=l.y);return a===1e9&&s===-1e9&&i===1e9&&o===-1e9&&(i=0,o=0,a=0,s=0),{minX:a,maxX:s,minY:i,maxY:o}}},{key:"findCenter",value:function(e){return{x:.5*(e.maxX+e.minX),y:.5*(e.maxY+e.minY)}}},{key:"cloneOptions",value:function(e,n){var i={};return n===void 0||n==="node"?(Yt(i,e.options,!0),i.x=e.x,i.y=e.y,i.amountOfConnections=e.edges.length):Yt(i,e.options,!0),i}}]),t}();function Nze(t){var r=Mze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function Mze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var Bze=function(t){xt(e,t);var r=Nze(e);function e(n,i,o,a,s,l){var g;return Ae(this,e),g=r.call(this,n,i,o,a,s,l),g.isCluster=!0,g.containedNodes={},g.containedEdges={},g}return fe(e,[{key:"_openChildCluster",value:function(i){var o=this,a=this.body.nodes[i];if(this.containedNodes[i]===void 0)throw new Error("node with id: "+i+" not in current cluster");if(!a.isCluster)throw new Error("node with id: "+i+" is not a cluster");delete this.containedNodes[i],dt(a.edges,function(s){delete o.containedEdges[s.id]}),dt(a.containedNodes,function(s,l){o.containedNodes[l]=s}),a.containedNodes={},dt(a.containedEdges,function(s,l){o.containedEdges[l]=s}),a.containedEdges={},dt(a.edges,function(s){dt(o.edges,function(l){var g,u,c=Tt(g=l.clusteringEdgeReplacingIds).call(g,s.id);c!==-1&&(dt(s.clusteringEdgeReplacingIds,function(d){l.clusteringEdgeReplacingIds.push(d),o.body.edges[d].edgeReplacedById=l.id}),Yo(u=l.clusteringEdgeReplacingIds).call(u,c,1))})}),a.edges=[]}}]),e}(Ci),Fze=function(){function t(r){var e=this;Ae(this,t),this.body=r,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Or(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){e.clusteredNodes={},e.clusteredEdges={}})}return fe(t,[{key:"clusterByHubsize",value:function(e,n){e===void 0?e=this._getHubSize():ct(e)==="object"&&(n=this._checkOptions(e),e=this._getHubSize());for(var i=[],o=0;o<this.body.nodeIndices.length;o++){var a=this.body.nodes[this.body.nodeIndices[o]];a.edges.length>=e&&i.push(a.id)}for(var s=0;s<i.length;s++)this.clusterByConnection(i[s],n,!0);this.body.emitter.emit("_dataChanged")}},{key:"cluster",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(n.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");n=this._checkOptions(n);var o={},a={};dt(this.body.nodes,function(s,l){s.options&&n.joinCondition(s.options)===!0&&(o[l]=s,dt(s.edges,function(g){e.clusteredEdges[g.id]===void 0&&(a[g.id]=g)}))}),this._cluster(o,a,n,i)}},{key:"clusterByEdgeCount",value:function(e,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;n=this._checkOptions(n);for(var a=[],s={},l,g,u,c=function(){var f={},C={},I=i.body.nodeIndices[d],v=i.body.nodes[I];if(s[I]===void 0){u=0,g=[];for(var p=0;p<v.edges.length;p++)l=v.edges[p],i.clusteredEdges[l.id]===void 0&&(l.toId!==l.fromId&&u++,g.push(l));if(u===e){for(var y=function(M){if(n.joinCondition===void 0||n.joinCondition===null)return!0;var Q=Dn.cloneOptions(M);return n.joinCondition(Q)},b=!0,_=0;_<g.length;_++){l=g[_];var P=i._getConnectedId(l,I);if(y(v))C[l.id]=l,f[I]=v,f[P]=i.body.nodes[P],s[I]=!0;else{b=!1;break}}if(er(f).length>0&&er(C).length>0&&b===!0){var k=function(){for(var M=0;M<a.length;++M)for(var Q in f)if(a[M].nodes[Q]!==void 0)return a[M]},E=k();if(E!==void 0){for(var O in f)E.nodes[O]===void 0&&(E.nodes[O]=f[O]);for(var N in C)E.edges[N]===void 0&&(E.edges[N]=C[N])}else a.push({nodes:f,edges:C})}}}},d=0;d<this.body.nodeIndices.length;d++)c();for(var h=0;h<a.length;h++)this._cluster(a[h].nodes,a[h].edges,n,!1);o===!0&&this.body.emitter.emit("_dataChanged")}},{key:"clusterOutliers",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,n)}},{key:"clusterBridges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,n)}},{key:"clusterByConnection",value:function(e,n){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No nodeId supplied to clusterByConnection!");if(this.body.nodes[e]===void 0)throw new Error("The nodeId given to clusterByConnection does not exist!");var a=this.body.nodes[e];n=this._checkOptions(n,a),n.clusterNodeProperties.x===void 0&&(n.clusterNodeProperties.x=a.x),n.clusterNodeProperties.y===void 0&&(n.clusterNodeProperties.y=a.y),n.clusterNodeProperties.fixed===void 0&&(n.clusterNodeProperties.fixed={},n.clusterNodeProperties.fixed.x=a.options.fixed.x,n.clusterNodeProperties.fixed.y=a.options.fixed.y);var s={},l={},g=a.id,u=Dn.cloneOptions(a);s[g]=a;for(var c=0;c<a.edges.length;c++){var d=a.edges[c];if(this.clusteredEdges[d.id]===void 0){var h=this._getConnectedId(d,g);if(this.clusteredNodes[h]===void 0)if(h!==g)if(n.joinCondition===void 0)l[d.id]=d,s[h]=this.body.nodes[h];else{var A=Dn.cloneOptions(this.body.nodes[h]);n.joinCondition(u,A)===!0&&(l[d.id]=d,s[h]=this.body.nodes[h])}else l[d.id]=d}}var f=vn(i=er(s)).call(i,function(y){return s[y].id});for(var C in s)if(Object.prototype.hasOwnProperty.call(s,C))for(var I=s[C],v=0;v<I.edges.length;v++){var p=I.edges[v];Tt(f).call(f,this._getConnectedId(p,I.id))>-1&&(l[p.id]=p)}this._cluster(s,l,n,o)}},{key:"_createClusterEdges",value:function(e,n,i,o){for(var a,s,l,g,u,c,d=er(e),h=[],A=0;A<d.length;A++){s=d[A],l=e[s];for(var f=0;f<l.edges.length;f++)a=l.edges[f],this.clusteredEdges[a.id]===void 0&&(a.toId==a.fromId?n[a.id]=a:a.toId==s?(g=i.id,u=a.fromId,c=u):(g=a.toId,u=i.id,c=g),e[c]===void 0&&h.push({edge:a,fromId:u,toId:g}))}for(var C=[],I=function(P){for(var k=0;k<C.length;k++){var E=C[k],O=P.fromId===E.fromId&&P.toId===E.toId,N=P.fromId===E.toId&&P.toId===E.fromId;if(O||N)return E}return null},v=0;v<h.length;v++){var p=h[v],y=p.edge,b=I(p);b===null?(b=this._createClusteredEdge(p.fromId,p.toId,y,o),C.push(b)):b.clusteringEdgeReplacingIds.push(y.id),this.body.edges[y.id].edgeReplacedById=b.id,this._backupEdgeOptions(y),y.setOptions({physics:!1})}}},{key:"_checkOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}},{key:"_cluster",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&this.clusteredNodes[s]!==void 0&&a.push(s);for(var l=0;l<a.length;++l)delete e[a[l]];if(er(e).length!=0&&!(er(e).length==1&&i.clusterNodeProperties.allowSingleNodeCluster!=!0)){var g=Yt({},i.clusterNodeProperties);if(i.processProperties!==void 0){var u=[];for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var d=Dn.cloneOptions(e[c]);u.push(d)}var h=[];for(var A in n)if(Object.prototype.hasOwnProperty.call(n,A)&&A.substr(0,12)!=="clusterEdge:"){var f=Dn.cloneOptions(n[A],"edge");h.push(f)}if(g=i.processProperties(g,u,h),!g)throw new Error("The processProperties function does not return properties!")}g.id===void 0&&(g.id="cluster:"+fc());var C=g.id;g.label===void 0&&(g.label="cluster");var I=void 0;g.x===void 0&&(I=this._getClusterPosition(e),g.x=I.x),g.y===void 0&&(I===void 0&&(I=this._getClusterPosition(e)),g.y=I.y),g.id=C;var v=this.body.functions.createNode(g,Bze);v.containedNodes=e,v.containedEdges=n,v.clusterEdgeProperties=i.clusterEdgeProperties,this.body.nodes[g.id]=v,this._clusterEdges(e,n,g,i.clusterEdgeProperties),g.id=void 0,o===!0&&this.body.emitter.emit("_dataChanged")}}},{key:"_backupEdgeOptions",value:function(e){this.clusteredEdges[e.id]===void 0&&(this.clusteredEdges[e.id]={physics:e.options.physics})}},{key:"_restoreEdge",value:function(e){var n=this.clusteredEdges[e.id];n!==void 0&&(e.setOptions({physics:n.physics}),delete this.clusteredEdges[e.id])}},{key:"isCluster",value:function(e){return this.body.nodes[e]!==void 0?this.body.nodes[e].isCluster===!0:(console.error("Node does not exist."),!1)}},{key:"_getClusterPosition",value:function(e){for(var n=er(e),i=e[n[0]].x,o=e[n[0]].x,a=e[n[0]].y,s=e[n[0]].y,l,g=1;g<n.length;g++)l=e[n[g]],i=l.x<i?l.x:i,o=l.x>o?l.x:o,a=l.y<a?l.y:a,s=l.y>s?l.y:s;return{x:.5*(i+o),y:.5*(a+s)}}},{key:"openCluster",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");var o=this.body.nodes[e];if(o===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(o.isCluster!==!0||o.containedNodes===void 0||o.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");var a=this.findNode(e),s=Tt(a).call(a,e)-1;if(s>=0){var l=a[s],g=this.body.nodes[l];g._openChildCluster(e),delete this.body.nodes[e],i===!0&&this.body.emitter.emit("_dataChanged");return}var u=o.containedNodes,c=o.containedEdges;if(n!==void 0&&n.releaseFunction!==void 0&&typeof n.releaseFunction=="function"){var d={},h={x:o.x,y:o.y};for(var A in u)if(Object.prototype.hasOwnProperty.call(u,A)){var f=this.body.nodes[A];d[A]={x:f.x,y:f.y}}var C=n.releaseFunction(h,d);for(var I in u)if(Object.prototype.hasOwnProperty.call(u,I)){var v=this.body.nodes[I];C[I]!==void 0&&(v.x=C[I].x===void 0?o.x:C[I].x,v.y=C[I].y===void 0?o.y:C[I].y)}}else dt(u,function(oe){oe.options.fixed.x===!1&&(oe.x=o.x),oe.options.fixed.y===!1&&(oe.y=o.y)});for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)){var y=this.body.nodes[p];y.vx=o.vx,y.vy=o.vy,y.setOptions({physics:!0}),delete this.clusteredNodes[p]}for(var b=[],_=0;_<o.edges.length;_++)b.push(o.edges[_]);for(var P=0;P<b.length;P++){for(var k=b[P],E=this._getConnectedId(k,e),O=this.clusteredNodes[E],N=0;N<k.clusteringEdgeReplacingIds.length;N++){var D=k.clusteringEdgeReplacingIds[N],M=this.body.edges[D];if(M!==void 0)if(O!==void 0){var Q=this.body.nodes[O.clusterId];Q.containedEdges[M.id]=M,delete c[M.id];var j=M.fromId,W=M.toId;M.toId==E?W=O.clusterId:j=O.clusterId,this._createClusteredEdge(j,W,M,Q.clusterEdgeProperties,{hidden:!1,physics:!0})}else this._restoreEdge(M)}k.remove()}for(var q in c)Object.prototype.hasOwnProperty.call(c,q)&&this._restoreEdge(c[q]);delete this.body.nodes[e],i===!0&&this.body.emitter.emit("_dataChanged")}},{key:"getNodesInCluster",value:function(e){var n=[];if(this.isCluster(e)===!0){var i=this.body.nodes[e].containedNodes;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&n.push(this.body.nodes[o].id)}return n}},{key:"findNode",value:function(e){for(var n=[],i=100,o=0,a;this.clusteredNodes[e]!==void 0&&o<i;){if(a=this.body.nodes[e],a===void 0)return[];n.push(a.id),e=this.clusteredNodes[e].clusterId,o++}return a=this.body.nodes[e],a===void 0?[]:(n.push(a.id),gg(n).call(n),n)}},{key:"updateClusteredNode",value:function(e,n){if(e===void 0)throw new Error("No clusteredNodeId supplied to updateClusteredNode.");if(n===void 0)throw new Error("No newOptions supplied to updateClusteredNode.");if(this.body.nodes[e]===void 0)throw new Error("The clusteredNodeId supplied to updateClusteredNode does not exist.");this.body.nodes[e].setOptions(n),this.body.emitter.emit("_dataChanged")}},{key:"updateEdge",value:function(e,n){if(e===void 0)throw new Error("No startEdgeId supplied to updateEdge.");if(n===void 0)throw new Error("No newOptions supplied to updateEdge.");if(this.body.edges[e]===void 0)throw new Error("The startEdgeId supplied to updateEdge does not exist.");for(var i=this.getClusteredEdges(e),o=0;o<i.length;o++){var a=this.body.edges[i[o]];a.setOptions(n)}this.body.emitter.emit("_dataChanged")}},{key:"getClusteredEdges",value:function(e){for(var n=[],i=100,o=0;e!==void 0&&this.body.edges[e]!==void 0&&o<i;)n.push(this.body.edges[e].id),e=this.body.edges[e].edgeReplacedById,o++;return gg(n).call(n),n}},{key:"getBaseEdge",value:function(e){return this.getBaseEdges(e)[0]}},{key:"getBaseEdges",value:function(e){for(var n=[e],i=[],o=[],a=100,s=0;n.length>0&&s<a;){var l=n.pop();if(l!==void 0){var g=this.body.edges[l];if(g!==void 0){s++;var u=g.clusteringEdgeReplacingIds;if(u===void 0)o.push(l);else for(var c=0;c<u.length;++c){var d=u[c];Tt(n).call(n,u)!==-1||Tt(i).call(i,u)!==-1||n.push(d)}i.push(l)}}}return o}},{key:"_getConnectedId",value:function(e,n){return e.toId!=n?e.toId:(e.fromId!=n,e.fromId)}},{key:"_getHubSize",value:function(){for(var e=0,n=0,i=0,o=0,a=0;a<this.body.nodeIndices.length;a++){var s=this.body.nodes[this.body.nodeIndices[a]];s.edges.length>o&&(o=s.edges.length),e+=s.edges.length,n+=Math.pow(s.edges.length,2),i+=1}e=e/i,n=n/i;var l=n-Math.pow(e,2),g=Math.sqrt(l),u=Math.floor(e+2*g);return u>o&&(u=o),u}},{key:"_createClusteredEdge",value:function(e,n,i,o,a){var s=Dn.cloneOptions(i,"edge");Yt(s,o),s.from=e,s.to=n,s.id="clusterEdge:"+fc(),a!==void 0&&Yt(s,a);var l=this.body.functions.createEdge(s);return l.clusteringEdgeReplacingIds=[i.id],l.connect(),this.body.edges[l.id]=l,l}},{key:"_clusterEdges",value:function(e,n,i,o){if(n instanceof Cc){var a=n,s={};s[a.id]=a,n=s}if(e instanceof Ci){var l=e,g={};g[l.id]=l,e=g}if(i==null)throw new Error("_clusterEdges: parameter clusterNode required");o===void 0&&(o=i.clusterEdgeProperties),this._createClusterEdges(e,n,i,o);for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)&&this.body.edges[u]!==void 0){var c=this.body.edges[u];this._backupEdgeOptions(c),c.setOptions({physics:!1})}for(var d in e)Object.prototype.hasOwnProperty.call(e,d)&&(this.clusteredNodes[d]={clusterId:i.id,node:this.body.nodes[d]},this.body.nodes[d].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(e){if(e!==void 0){var n=this.clusteredNodes[e];if(n!==void 0){var i=n.clusterId;if(i!==void 0)return this.body.nodes[i]}}}},{key:"_filter",value:function(e,n){var i=[];return dt(e,function(o){n(o)&&i.push(o)}),i}},{key:"_updateState",value:function(){var e=this,n,i=[],o={},a=function(A){dt(e.body.nodes,function(f){f.isCluster===!0&&A(f)})};for(n in this.clusteredNodes)if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,n)){var s=this.body.nodes[n];s===void 0&&i.push(n)}a(function(h){for(var A=0;A<i.length;A++)delete h.containedNodes[i[A]]});for(var l=0;l<i.length;l++)delete this.clusteredNodes[i[l]];dt(this.clusteredEdges,function(h){var A=e.body.edges[h];(A===void 0||!A.endPointsValid())&&(o[h]=h)}),a(function(h){dt(h.containedEdges,function(A,f){!A.endPointsValid()&&!o[f]&&(o[f]=f)})}),dt(this.body.edges,function(h,A){var f=!0,C=h.clusteringEdgeReplacingIds;if(C!==void 0){var I=0;dt(C,function(v){var p=e.body.edges[v];p!==void 0&&p.endPointsValid()&&(I+=1)}),f=I>0}(!h.endPointsValid()||!f)&&(o[A]=A)}),a(function(h){dt(o,function(A){delete h.containedEdges[A],dt(h.edges,function(f,C){if(f.id===A){h.edges[C]=null;return}f.clusteringEdgeReplacingIds=e._filter(f.clusteringEdgeReplacingIds,function(I){return!o[I]})}),h.edges=e._filter(h.edges,function(f){return f!==null})})}),dt(o,function(h){delete e.clusteredEdges[h]}),dt(o,function(h){delete e.body.edges[h]});var g=er(this.body.edges);dt(g,function(h){var A=e.body.edges[h],f=e._isClusteredNode(A.fromId)||e._isClusteredNode(A.toId);if(f!==e._isClusteredEdge(A.id))if(f){var C=e._getClusterNodeForNode(A.fromId);C!==void 0&&e._clusterEdges(e.body.nodes[A.fromId],A,C);var I=e._getClusterNodeForNode(A.toId);I!==void 0&&e._clusterEdges(e.body.nodes[A.toId],A,I)}else delete e._clusterEdges[h],e._restoreEdge(A)});for(var u=!1,c=!0,d=function(){var A=[];a(function(C){var I=er(C.containedNodes).length,v=C.options.allowSingleNodeCluster===!0;(v&&I<1||!v&&I<2)&&A.push(C.id)});for(var f=0;f<A.length;++f)e.openCluster(A[f],{},!1);c=A.length>0,u=u||c};c;)d();u&&this._updateState()}},{key:"_isClusteredNode",value:function(e){return this.clusteredNodes[e]!==void 0}},{key:"_isClusteredEdge",value:function(e){return this.clusteredEdges[e]!==void 0}}]),t}();function Lze(){var t;window!==void 0&&(t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),t===void 0?window.requestAnimationFrame=function(r){r()}:window.requestAnimationFrame=t}var zze=function(){function t(r,e){Ae(this,t),Lze(),this.body=r,this.canvas=e,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Or(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return fe(t,[{key:"bindEventListeners",value:function(){var e=this,n;this.body.emitter.on("dragStart",function(){e.dragging=!0}),this.body.emitter.on("dragEnd",function(){e.dragging=!1}),this.body.emitter.on("zoom",function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=mo(function(){var i;e.zooming=!1,ue(i=e._requestRedraw).call(i,e)()},250)}),this.body.emitter.on("_resizeNodes",function(){e._resizeNodes()}),this.body.emitter.on("_redraw",function(){e.renderingActive===!1&&e._redraw()}),this.body.emitter.on("_blockRedraw",function(){e.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){e.allowRedraw=!0,e.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",ue(n=this._requestRedraw).call(n,this)),this.body.emitter.on("_startRendering",function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()}),this.body.emitter.on("_stopRendering",function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0}),this.body.emitter.on("destroy",function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,e.requiresTimeout===!0?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()})}},{key:"setOptions",value:function(e){if(e!==void 0){var n=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"];wd(n,this.options,e)}}},{key:"_requestNextFrame",value:function(e,n){if(!(typeof window>"u")){var i,o=window;return this.requiresTimeout===!0?i=mo(e,n):o.requestAnimationFrame&&(i=o.requestAnimationFrame(e)),i}}},{key:"_startRendering",value:function(){if(this.renderingActive===!0&&this.renderTimer===void 0){var e;this.renderTimer=this._requestNextFrame(ue(e=this._renderStep).call(e,this),this.simulationInterval)}}},{key:"_renderStep",value:function(){this.renderingActive===!0&&(this.renderTimer=void 0,this.requiresTimeout===!0&&this._startRendering(),this._redraw(),this.requiresTimeout===!1&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var e=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this._requestNextFrame(function(){e._redraw(!1)},0))}},{key:"_redraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var n={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();var i=this.canvas.getContext(),o=this.canvas.frame.canvas.clientWidth,a=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,o,a),this.canvas.frame.clientWidth===0)return;if(i.save(),i.translate(this.body.view.translation.x,this.body.view.translation.y),i.scale(this.body.view.scale,this.body.view.scale),i.beginPath(),this.body.emitter.emit("beforeDrawing",i),i.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawEdges(i),this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1){var s=this._drawNodes(i,e),l=s.drawExternalLabels;n.drawExternalLabels=l}e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawArrows(i),n.drawExternalLabels!=null&&n.drawExternalLabels(),e===!1&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit("afterDrawing",i),i.closePath(),i.restore(),e===!0&&i.clearRect(0,0,o,a)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var e=this.canvas.getContext();e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);var n=this.body.nodes,i;for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i=n[o],i.resize(e),i.updateBoundingBox(e,i.selected));e.restore()}},{key:"_drawNodes",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.nodes,o=this.body.nodeIndices,a,s=[],l=[],g=20,u=this.canvas.DOMtoCanvas({x:-g,y:-g}),c=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+g,y:this.canvas.frame.canvas.clientHeight+g}),d={top:u.y,left:u.x,bottom:c.y,right:c.x},h=[],A=0;A<o.length;A++)if(a=i[o[A]],a.hover)l.push(o[A]);else if(a.isSelected())s.push(o[A]);else if(n===!0){var f=a.draw(e);f.drawExternalLabel!=null&&h.push(f.drawExternalLabel)}else if(a.isBoundingBoxOverlappingWith(d)===!0){var C=a.draw(e);C.drawExternalLabel!=null&&h.push(C.drawExternalLabel)}else a.updateBoundingBox(e,a.selected);var I,v=s.length,p=l.length;for(I=0;I<v;I++){a=i[s[I]];var y=a.draw(e);y.drawExternalLabel!=null&&h.push(y.drawExternalLabel)}for(I=0;I<p;I++){a=i[l[I]];var b=a.draw(e);b.drawExternalLabel!=null&&h.push(b.drawExternalLabel)}return{drawExternalLabels:function(){for(var P=0,k=h;P<k.length;P++){var E=k[P];E()}}}}},{key:"_drawEdges",value:function(e){for(var n=this.body.edges,i=this.body.edgeIndices,o=0;o<i.length;o++){var a=n[i[o]];a.connected===!0&&a.draw(e)}}},{key:"_drawArrows",value:function(e){for(var n=this.body.edges,i=this.body.edgeIndices,o=0;o<i.length;o++){var a=n[i[o]];a.connected===!0&&a.drawArrows(e)}}},{key:"_determineBrowserMethod",value:function(){if(typeof window<"u"){var e=navigator.userAgent.toLowerCase();this.requiresTimeout=!1,Tt(e).call(e,"msie 9.0")!=-1?this.requiresTimeout=!0:Tt(e).call(e,"safari")!=-1&&Tt(e).call(e,"chrome")<=-1&&(this.requiresTimeout=!0)}else this.requiresTimeout=!0}},{key:"_drawSelectionBox",value:function(e){if(this.body.selectionBox.show){e.beginPath();var n=this.body.selectionBox.position.end.x-this.body.selectionBox.position.start.x,i=this.body.selectionBox.position.end.y-this.body.selectionBox.position.start.y;e.rect(this.body.selectionBox.position.start.x,this.body.selectionBox.position.start.y,n,i),e.fillStyle="rgba(151, 194, 252, 0.2)",e.fillRect(this.body.selectionBox.position.start.x,this.body.selectionBox.position.start.y,n,i),e.strokeStyle="rgba(151, 194, 252, 1)",e.stroke()}else e.closePath()}}]),t}(),jze=$t,Vze=jze.setInterval,Gze=Vze,Wze=Te(Gze);function zp(t,r){r.inputHandler=function(e){e.isFirst&&r(e)},t.on("hammer.input",r.inputHandler)}function SH(t,r){return r.inputHandler=function(e){e.isFinal&&r(e)},t.on("hammer.input",r.inputHandler)}var Hze=function(){function t(r){Ae(this,t),this.body=r,this.pixelRatio=1,this.cameraState={},this.initialized=!1,this.canvasViewCenter={},this._cleanupCallbacks=[],this.options={},this.defaultOptions={autoResize:!0,height:"100%",width:"100%"},Or(this.options,this.defaultOptions),this.bindEventListeners()}return fe(t,[{key:"bindEventListeners",value:function(){var e=this,n;this.body.emitter.once("resize",function(i){i.width!==0&&(e.body.view.translation.x=i.width*.5),i.height!==0&&(e.body.view.translation.y=i.height*.5)}),this.body.emitter.on("setSize",ue(n=this.setSize).call(n,this)),this.body.emitter.on("destroy",function(){e.hammerFrame.destroy(),e.hammer.destroy(),e._cleanUp()})}},{key:"setOptions",value:function(e){var n=this;if(e!==void 0){var i=["width","height","autoResize"];wd(i,this.options,e)}if(this._cleanUp(),this.options.autoResize===!0){var o;if(window.ResizeObserver){var a=new ResizeObserver(function(){var u=n.setSize();u===!0&&n.body.emitter.emit("_requestRedraw")}),s=this.frame;a.observe(s),this._cleanupCallbacks.push(function(){a.unobserve(s)})}else{var l=Wze(function(){var u=n.setSize();u===!0&&n.body.emitter.emit("_requestRedraw")},1e3);this._cleanupCallbacks.push(function(){clearInterval(l)})}var g=ue(o=this._onResize).call(o,this);window.addEventListener("resize",g),this._cleanupCallbacks.push(function(){window.removeEventListener("resize",g)})}}},{key:"_cleanUp",value:function(){var e,n,i;Et(e=gg(n=Yo(i=this._cleanupCallbacks).call(i,0)).call(n)).call(e,function(o){try{o()}catch(a){console.error(a)}})}},{key:"_onResize",value:function(){this.setSize(),this.body.emitter.emit("_redraw")}},{key:"_getCameraState",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}},{key:"_setCameraState",value:function(){if(this.cameraState.scale!==void 0&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,n=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;e!=1&&n!=1?i=this.cameraState.scale*.5*(e+n):e!=1?i=this.cameraState.scale*e:n!=1&&(i=this.cameraState.scale*n),this.body.view.scale=i;var o=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),a={x:o.x-this.cameraState.position.x,y:o.y-this.cameraState.position.y};this.body.view.translation.x+=a.x*this.body.view.scale,this.body.view.translation.y+=a.y*this.body.view.scale}}},{key:"_prepareValue",value:function(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if(Tt(e).call(e,"%")!==-1||Tt(e).call(e,"px")!==-1)return e;if(Tt(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var e=this;this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new dc(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:dc.DIRECTION_ALL}),zp(this.hammer,function(n){e.body.eventListeners.onTouch(n)}),this.hammer.on("tap",function(n){e.body.eventListeners.onTap(n)}),this.hammer.on("doubletap",function(n){e.body.eventListeners.onDoubleTap(n)}),this.hammer.on("press",function(n){e.body.eventListeners.onHold(n)}),this.hammer.on("panstart",function(n){e.body.eventListeners.onDragStart(n)}),this.hammer.on("panmove",function(n){e.body.eventListeners.onDrag(n)}),this.hammer.on("panend",function(n){e.body.eventListeners.onDragEnd(n)}),this.hammer.on("pinch",function(n){e.body.eventListeners.onPinch(n)}),this.frame.canvas.addEventListener("wheel",function(n){e.body.eventListeners.onMouseWheel(n)}),this.frame.canvas.addEventListener("mousemove",function(n){e.body.eventListeners.onMouseMove(n)}),this.frame.canvas.addEventListener("contextmenu",function(n){e.body.eventListeners.onContext(n)}),this.hammerFrame=new dc(this.frame),SH(this.hammerFrame,function(n){e.body.eventListeners.onRelease(n)})}},{key:"setSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),n=this._prepareValue(n);var i=!1,o=this.frame.canvas.width,a=this.frame.canvas.height,s=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||n!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=n)this._getCameraState(s),this.frame.style.width=e,this.frame.style.height=n,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=n,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{var l=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),g=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==l||this.frame.canvas.height!==g)&&this._getCameraState(s),this.frame.canvas.width!==l&&(this.frame.canvas.width=l,i=!0),this.frame.canvas.height!==g&&(this.frame.canvas.height=g,i=!0)}return i===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(o/this.pixelRatio),oldHeight:Math.round(a/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");var n=1;typeof window<"u"&&(n=window.devicePixelRatio||1);var i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/i}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}},{key:"DOMtoCanvas",value:function(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}]),t}();function Uze(t,r){var e=Or({nodes:r,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},t??{});if(!lt(e.nodes))throw new TypeError("Nodes has to be an array of ids.");if(e.nodes.length===0&&(e.nodes=r),!(typeof e.minZoomLevel=="number"&&e.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof e.maxZoomLevel=="number"&&e.minZoomLevel<=e.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return e}var Zze=function(){function t(r,e){var n,i=this,o;Ae(this,t),this.body=r,this.canvas=e,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",ue(n=this.fit).call(n,this)),this.body.emitter.on("animationFinished",function(){i.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",ue(o=this.releaseNode).call(o,this))}return fe(t,[{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}},{key:"fit",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=Uze(e,this.body.nodeIndices);var i=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight,a,s;if(i===0||o===0)s=1,a=Dn.getRange(this.body.nodes,e.nodes);else if(n===!0){var l=0;for(var g in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,g)){var u=this.body.nodes[g];u.predefinedPosition===!0&&(l+=1)}if(l>.5*this.body.nodeIndices.length){this.fit(e,!1);return}a=Dn.getRange(this.body.nodes,e.nodes);var c=this.body.nodeIndices.length;s=12.662/(c+7.4147)+.0964822;var d=Math.min(i/600,o/600);s*=d}else{this.body.emitter.emit("_resizeNodes"),a=Dn.getRange(this.body.nodes,e.nodes);var h=Math.abs(a.maxX-a.minX)*1.1,A=Math.abs(a.maxY-a.minY)*1.1,f=i/h,C=o/A;s=f<=C?f:C}s>e.maxZoomLevel?s=e.maxZoomLevel:s<e.minZoomLevel&&(s=e.minZoomLevel);var I=Dn.findCenter(a),v={position:I,scale:s,animation:e.animation};this.moveTo(v)}},{key:"focus",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){var i={x:this.body.nodes[e].x,y:this.body.nodes[e].y};n.position=i,n.lockedOnNode=e,this.moveTo(n)}else console.error("Node: "+e+" cannot be found.")}},{key:"moveTo",value:function(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!Ql(e.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else e.offset.x=0;if(e.offset.y!=null){if(e.offset.y=+e.offset.y,!Ql(e.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else e.offset.x=0}else e.offset={x:0,y:0};if(e.position!=null){if(e.position.x!=null){if(e.position.x=+e.position.x,!Ql(e.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else e.position.x=0;if(e.position.y!=null){if(e.position.y=+e.position.y,!Ql(e.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else e.position.x=0}else e.position=this.getViewPosition();if(e.scale!=null){if(e.scale=+e.scale,!(e.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else e.scale=this.body.view.scale;e.animation===void 0&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),e.animation.duration===void 0&&(e.animation.duration=1e3),e.animation.easingFunction===void 0&&(e.animation.easingFunction="easeInOutQuad"),this.animateView(e)}},{key:"animateView",value:function(e){if(e!==void 0){this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),this.easingTime!=0&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;var n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:n.x-e.position.x,y:n.y-e.position.y};if(this.targetTranslation={x:this.sourceTranslation.x+i.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+i.y*this.targetScale+e.offset.y},e.animation.duration===0)if(this.lockedOnNodeId!=null){var o;this.viewFunction=ue(o=this._lockedRedraw).call(o,this),this.body.emitter.on("initRedraw",this.viewFunction)}else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else{var a;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=ue(a=this._transitionRedraw).call(a,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}}},{key:"_lockedRedraw",value:function(){var e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:n.x-e.x,y:n.y-e.y},o=this.body.view.translation,a={x:o.x+i.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+i.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=a}},{key:"releaseNode",value:function(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;var n=Ike[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*n,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*n,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*n},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var i;this.viewFunction=ue(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}(),Kze=`div.vis-network div.vis-navigation div.vis-button {
|
|
733
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function CLe(t,r){var e;if(t){if(typeof t=="string")return MM(t,r);var n=Wr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return vl(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MM(t,r)}}function MM(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var ILe=function(){function t(r,e,n,i){var o,a=this;if(Ae(this,t),this.body=r,this.images=e,this.groups=n,this.layoutEngine=i,this.body.functions.createNode=ue(o=this.create).call(o,this),this.nodesListeners={add:function(l,g){a.add(g.items)},update:function(l,g){a.update(g.items,g.data,g.oldData)},remove:function(l,g){a.remove(g.items)}},this.defaultOptions={borderWidth:1,borderWidthSelected:void 0,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},opacity:void 0,fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"monospace",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,imagePadding:{top:0,right:0,bottom:0,left:0},label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(l,g,u,c){if(g===l)return .5;var d=1/(g-l);return Math.max(0,(c-l)*d)}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1,coordinateOrigin:"center"},size:25,title:void 0,value:void 0,x:void 0,y:void 0},this.defaultOptions.mass<=0)throw"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative";this.options=Ls(this.defaultOptions),this.bindEventListeners()}return fe(t,[{key:"bindEventListeners",value:function(){var e,n,i=this;this.body.emitter.on("refreshNodes",ue(e=this.refresh).call(e,this)),this.body.emitter.on("refresh",ue(n=this.refresh).call(n,this)),this.body.emitter.on("destroy",function(){dt(i.nodesListeners,function(o,a){i.body.data.nodes&&i.body.data.nodes.off(a,o)}),delete i.body.functions.createNode,delete i.nodesListeners.add,delete i.nodesListeners.update,delete i.nodesListeners.remove,delete i.nodesListeners})}},{key:"setOptions",value:function(e){if(e!==void 0){if(Ci.parseOptions(this.options,e),e.opacity!==void 0&&(oE(e.opacity)||!Ql(e.opacity)||e.opacity<0||e.opacity>1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity):this.options.opacity=e.opacity),e.shape!==void 0)for(var n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&this.body.nodes[n].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(var i=0,o=er(this.body.nodes);i<o.length;i++){var a=o[i];this.body.nodes[a].updateLabelModule(),this.body.nodes[a].needsRefresh()}if(e.size!==void 0)for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.body.nodes[s].needsRefresh();(e.hidden!==void 0||e.physics!==void 0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.data.nodes;if(IH("id",e))this.body.data.nodes=e;else if(lt(e))this.body.data.nodes=new zc,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new zc;else throw new TypeError("Array or DataSet expected");if(i&&dt(this.nodesListeners,function(s,l){i.off(l,s)}),this.body.nodes={},this.body.data.nodes){var o=this;dt(this.nodesListeners,function(s,l){o.body.data.nodes.on(l,s)});var a=this.body.data.nodes.getIds();this.add(a,!0)}n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i,o=[],a=0;a<e.length;a++){i=e[a];var s=this.body.data.nodes.get(i),l=this.create(s);o.push(l),this.body.nodes[i]=l}this.layoutEngine.positionInitially(o),n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(e,n,i){for(var o=this.body.nodes,a=!1,s=0;s<e.length;s++){var l=e[s],g=o[l],u=n[s];g!==void 0?g.setOptions(u)&&(a=!0):(a=!0,g=this.create(u),o[l]=g)}!a&&i!==void 0&&(a=_W(n).call(n,function(c,d){var h=i[d];return h&&h.level!==c.level})),a===!0?this.body.emitter.emit("_dataChanged"):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(e){for(var n=this.body.nodes,i=0;i<e.length;i++){var o=e[i];delete n[o]}this.body.emitter.emit("_dataChanged")}},{key:"create",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ci;return new n(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;dt(this.body.nodes,function(i,o){var a=e.body.data.nodes.get(o);a!==void 0&&(n===!0&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(a))})}},{key:"getPositions",value:function(e){var n={};if(e!==void 0){if(lt(e)===!0){for(var i=0;i<e.length;i++)if(this.body.nodes[e[i]]!==void 0){var o=this.body.nodes[e[i]];n[e[i]]={x:Math.round(o.x),y:Math.round(o.y)}}}else if(this.body.nodes[e]!==void 0){var a=this.body.nodes[e];n[e]={x:Math.round(a.x),y:Math.round(a.y)}}}else for(var s=0;s<this.body.nodeIndices.length;s++){var l=this.body.nodes[this.body.nodeIndices[s]];n[this.body.nodeIndices[s]]={x:Math.round(l.x),y:Math.round(l.y)}}return n}},{key:"getPosition",value:function(e){if(e==null)throw new TypeError("No id was specified for getPosition method.");if(this.body.nodes[e]==null)throw new ReferenceError("NodeId provided for getPosition does not exist. Provided: ".concat(e));return{x:Math.round(this.body.nodes[e].x),y:Math.round(this.body.nodes[e].y)}}},{key:"storePositions",value:function(){var e=[],n=this.body.data.nodes.getDataSet(),i=fLe(n.get()),o;try{for(i.s();!(o=i.n()).done;){var a=o.value,s=a.id,l=this.body.nodes[s],g=Math.round(l.x),u=Math.round(l.y);(a.x!==g||a.y!==u)&&e.push({id:s,x:g,y:u})}}catch(c){i.e(c)}finally{i.f()}n.update(e)}},{key:"getBoundingBox",value:function(e){if(this.body.nodes[e]!==void 0)return this.body.nodes[e].shape.boundingBox}},{key:"getConnectedNodes",value:function(e,n){var i=[];if(this.body.nodes[e]!==void 0)for(var o=this.body.nodes[e],a={},s=0;s<o.edges.length;s++){var l=o.edges[s];n!=="to"&&l.toId==o.id?a[l.fromId]===void 0&&(i.push(l.fromId),a[l.fromId]=!0):n!=="from"&&l.fromId==o.id&&a[l.toId]===void 0&&(i.push(l.toId),a[l.toId]=!0)}return i}},{key:"getConnectedEdges",value:function(e){var n=[];if(this.body.nodes[e]!==void 0)for(var i=this.body.nodes[e],o=0;o<i.edges.length;o++)n.push(i.edges[o].id);else console.error("NodeId provided for getConnectedEdges does not exist. Provided: ",e);return n}},{key:"moveNode",value:function(e,n,i){var o=this;this.body.nodes[e]!==void 0?(this.body.nodes[e].x=Number(n),this.body.nodes[e].y=Number(i),mo(function(){o.body.emitter.emit("startSimulation")},0)):console.error("Node id supplied to moveNode does not exist. Provided: ",e)}}]),t}(),BM=vr,vLe=function(t){return t!==void 0&&(BM(t,"value")||BM(t,"writable"))},pLe=Oe,mLe=Kr,yLe=Pr,bLe=Vn,$Le=vLe,wLe=Al,_Le=Cf;function bH(t,r){var e=arguments.length<3?t:arguments[2],n,i;if(bLe(t)===e)return t[r];if(n=wLe.f(t,r),n)return $Le(n)?n.value:n.get===void 0?void 0:mLe(n.get,e);if(yLe(i=_Le(t)))return bH(i,r,e)}pLe({target:"Reflect",stat:!0},{get:bH});var ELe=wt,SLe=ELe.Reflect.get,TLe=SLe,OLe=TLe,kLe=OLe,xLe=kLe,PLe=xLe,RLe=PLe,DLe=RLe,FM=Te(DLe),NLe=hH,MLe=NLe,BLe=MLe,FLe=BLe,LLe=FLe,zLe=Te(LLe);function jLe(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=xe(t),t!==null););return t}function wv(){if(typeof Reflect<"u"&&FM){var t;wv=OT(t=FM).call(t)}else wv=function(e,n,i){var o=jLe(e,n);if(o){var a=zLe(o,n);return a.get?a.get.call(arguments.length<3?e:i):a.value}};return wv.apply(this,arguments)}var VLe=Oe,LM=Math.hypot,GLe=Math.abs,WLe=Math.sqrt,HLe=!!LM&&LM(1/0,NaN)!==1/0;VLe({target:"Math",stat:!0,arity:2,forced:HLe},{hypot:function(r,e){for(var n=0,i=0,o=arguments.length,a=0,s,l;i<o;)s=GLe(arguments[i++]),a<s?(l=a/s,n=n*l*l+1,a=s):s>0?(l=s/a,n+=l*l):n+=s;return a===1/0?1/0:a*WLe(n)}});var ULe=wt,ZLe=ULe.Math.hypot,KLe=ZLe,YLe=KLe,XLe=YLe,QLe=Te(XLe);function $H(t){var r=qLe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function qLe(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var kr=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"transform",value:function(e,n){lt(e)||(e=[e]);for(var i=n.point.x,o=n.point.y,a=n.angle,s=n.length,l=0;l<e.length;++l){var g=e[l],u=g.x*Math.cos(a)-g.y*Math.sin(a),c=g.x*Math.sin(a)+g.y*Math.cos(a);g.x=i+s*u,g.y=o+s*c}}},{key:"drawPath",value:function(e,n){e.beginPath(),e.moveTo(n[0].x,n[0].y);for(var i=1;i<n.length;++i)e.lineTo(n[i].x,n[i].y);e.closePath()}}]),t}(),JLe=function(t){xt(e,t);var r=$H(e);function e(){return Ae(this,e),r.apply(this,arguments)}return fe(e,null,[{key:"draw",value:function(i,o){if(o.image){i.save(),i.translate(o.point.x,o.point.y),i.rotate(Math.PI/2+o.angle);var a=o.imageWidth!=null?o.imageWidth:o.image.width,s=o.imageHeight!=null?o.imageHeight:o.image.height;o.image.drawImageAtPosition(i,1,-a/2,0,a,s),i.restore()}return!1}}]),e}(kr),eze=function(t){xt(e,t);var r=$H(e);function e(){return Ae(this,e),r.apply(this,arguments)}return fe(e,null,[{key:"draw",value:function(i,o){var a=[{x:0,y:0},{x:-1,y:.3},{x:-.9,y:0},{x:-1,y:-.3}];return kr.transform(a,o),kr.drawPath(i,a),!0}}]),e}(kr),tze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:-1,y:0},{x:0,y:.3},{x:-.4,y:0},{x:0,y:-.3}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),rze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i={x:-.4,y:0};kr.transform(i,n),e.strokeStyle=e.fillStyle,e.fillStyle="rgba(0, 0, 0, 0)";var o=Math.PI,a=n.angle-o/2,s=n.angle+o/2;return e.beginPath(),e.arc(i.x,i.y,n.length*.4,a,s,!1),e.stroke(),!0}}]),t}(),nze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i={x:-.3,y:0};kr.transform(i,n),e.strokeStyle=e.fillStyle,e.fillStyle="rgba(0, 0, 0, 0)";var o=Math.PI,a=n.angle+o/2,s=n.angle+3*o/2;return e.beginPath(),e.arc(i.x,i.y,n.length*.4,a,s,!1),e.stroke(),!0}}]),t}(),ize=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:.02,y:0},{x:-1,y:.3},{x:-1,y:-.3}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),oze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:0,y:.3},{x:0,y:-.3},{x:-1,y:0}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),aze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i={x:-.4,y:0};return kr.transform(i,n),X2(e,i.x,i.y,n.length*.4),!0}}]),t}(),sze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:0,y:.5},{x:0,y:-.5},{x:-.15,y:-.5},{x:-.15,y:.5}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),lze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:0,y:.3},{x:0,y:-.3},{x:-.6,y:-.3},{x:-.6,y:.3}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),gze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:0,y:0},{x:-.5,y:-.3},{x:-1,y:0},{x:-.5,y:.3}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),uze=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i=[{x:-1,y:.3},{x:-.5,y:0},{x:-1,y:-.3},{x:0,y:0}];return kr.transform(i,n),kr.drawPath(e,i),!0}}]),t}(),wH=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"draw",value:function(e,n){var i;switch(n.type&&(i=n.type.toLowerCase()),i){case"image":return JLe.draw(e,n);case"circle":return aze.draw(e,n);case"box":return lze.draw(e,n);case"crow":return tze.draw(e,n);case"curve":return rze.draw(e,n);case"diamond":return gze.draw(e,n);case"inv_curve":return nze.draw(e,n);case"triangle":return ize.draw(e,n);case"inv_triangle":return oze.draw(e,n);case"bar":return sze.draw(e,n);case"vee":return uze.draw(e,n);case"arrow":default:return eze.draw(e,n)}}}]),t}();function zM(t,r){var e=er(t);if(ia){var n=ia(t);r&&(n=Mr(n).call(n,function(i){return ga(t,i).enumerable})),e.push.apply(e,n)}return e}function jM(t){for(var r=1;r<arguments.length;r++){var e,n,i=arguments[r]!=null?arguments[r]:{};r%2?Et(e=zM(Object(i),!0)).call(e,function(o){rr(t,o,i[o])}):oa?Pf(t,oa(i)):Et(n=zM(Object(i))).call(n,function(o){xf(t,o,ga(i,o))})}return t}var _H=function(){function t(r,e,n){Ae(this,t),this._body=e,this._labelModule=n,this.color={},this.colorDirty=!0,this.hoverWidth=1.5,this.selectionWidth=2,this.setOptions(r),this.fromPoint=this.from,this.toPoint=this.to}return fe(t,[{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to]}},{key:"cleanup",value:function(){return!1}},{key:"setOptions",value:function(e){this.options=e,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.id=this.options.id}},{key:"drawLine",value:function(e,n,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,n),e.lineWidth=n.width,n.dashes!==!1?this._drawDashedLine(e,n,a):this._drawLine(e,n,a)}},{key:"_drawLine",value:function(e,n,i,o,a){if(this.from!=this.to)this._line(e,n,i,o,a);else{var s=this._getCircleData(e),l=vt(s,3),g=l[0],u=l[1],c=l[2];this._circle(e,n,g,u,c)}}},{key:"_drawDashedLine",value:function(e,n,i,o,a){e.lineCap="round";var s=lt(n.dashes)?n.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(s),e.lineDashOffset=0,this.from!=this.to)this._line(e,n,i);else{var l=this._getCircleData(e),g=vt(l,3),u=g[0],c=g[1],d=g[2];this._circle(e,n,u,c,d)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)HV(e,this.from.x,this.from.y,this.to.x,this.to.y,s);else{var h=this._getCircleData(e),A=vt(h,3),f=A[0],C=A[1],I=A[2];this._circle(e,n,f,C,I)}this.enableShadow(e,n),e.stroke(),this.disableShadow(e,n)}}},{key:"findBorderPosition",value:function(e,n,i){return this.from!=this.to?this._findBorderPosition(e,n,i):this._findBorderPositionCircle(e,n,i)}},{key:"findBorderPositions",value:function(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};var n,i=Wr(n=this._getCircleData(e)).call(n,0,2),o=vt(i,2),a=o[0],s=o[1];return{from:this._findBorderPositionCircle(this.from,e,{x:a,y:s,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:a,y:s,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(e){var n=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);var i=mH(e,this.options.selfReference.angle,n,this.from);return[i.x,i.y,n]}},{key:"_pointOnCircle",value:function(e,n,i,o){var a=o*2*Math.PI;return{x:e+i*Math.cos(a),y:n-i*Math.sin(a)}}},{key:"_findBorderPositionCircle",value:function(e,n,i){var o=i.x,a=i.y,s=i.low,l=i.high,g=i.direction,u=10,c=this.options.selfReference.size,d=.05,h,A=(s+l)*.5,f=0;this.options.arrowStrikethrough===!0&&(g===-1?f=this.options.endPointOffset.from:g===1&&(f=this.options.endPointOffset.to));var C=0;do{A=(s+l)*.5,h=this._pointOnCircle(o,a,c,A);var I=Math.atan2(e.y-h.y,e.x-h.x),v=e.distanceToBorder(n,I)+f,p=Math.sqrt(Math.pow(h.x-e.x,2)+Math.pow(h.y-e.y,2)),y=v-p;if(Math.abs(y)<d)break;y>0?g>0?s=A:l=A:g>0?l=A:s=A,++C}while(s<=l&&C<u);return jM(jM({},h),{},{t:A})}},{key:"getLineWidth",value:function(e,n){return e===!0?Math.max(this.selectionWidth,.3/this._body.view.scale):n===!0?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}},{key:"getColor",value:function(e,n){if(n.inheritsColor!==!1){if(n.inheritsColor==="both"&&this.from.id!==this.to.id){var i=e.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),o=this.from.options.color.highlight.border,a=this.to.options.color.highlight.border;return this.from.selected===!1&&this.to.selected===!1?(o=Li(this.from.options.color.border,n.opacity),a=Li(this.to.options.color.border,n.opacity)):this.from.selected===!0&&this.to.selected===!1?a=this.to.options.color.border:this.from.selected===!1&&this.to.selected===!0&&(o=this.from.options.color.border),i.addColorStop(0,o),i.addColorStop(1,a),i}return n.inheritsColor==="to"?Li(this.to.options.color.border,n.opacity):Li(this.from.options.color.border,n.opacity)}else return Li(n.color,n.opacity)}},{key:"_circle",value:function(e,n,i,o,a){this.enableShadow(e,n);var s=0,l=Math.PI*2;if(!this.options.selfReference.renderBehindTheNode){var g=this.options.selfReference.angle,u=this.options.selfReference.angle+Math.PI,c=this._findBorderPositionCircle(this.from,e,{x:i,y:o,low:g,high:u,direction:-1}),d=this._findBorderPositionCircle(this.from,e,{x:i,y:o,low:g,high:u,direction:1});s=Math.atan2(c.y-o,c.x-i),l=Math.atan2(d.y-o,d.x-i)}e.beginPath(),e.arc(i,o,a,s,l,!1),e.stroke(),this.disableShadow(e,n)}},{key:"getDistanceToEdge",value:function(e,n,i,o,a,s){if(this.from!=this.to)return this._getDistanceToEdge(e,n,i,o,a,s);var l=this._getCircleData(void 0),g=vt(l,3),u=g[0],c=g[1],d=g[2],h=u-a,A=c-s;return Math.abs(Math.sqrt(h*h+A*A)-d)}},{key:"_getDistanceToLine",value:function(e,n,i,o,a,s){var l=i-e,g=o-n,u=l*l+g*g,c=((a-e)*l+(s-n)*g)/u;c>1?c=1:c<0&&(c=0);var d=e+c*l,h=n+c*g,A=d-a,f=h-s;return Math.sqrt(A*A+f*f)}},{key:"getArrowData",value:function(e,n,i,o,a,s){var l,g,u,c,d,h,A,f=s.width;n==="from"?(u=this.from,c=this.to,d=s.fromArrowScale<0,h=Math.abs(s.fromArrowScale),A=s.fromArrowType):n==="to"?(u=this.to,c=this.from,d=s.toArrowScale<0,h=Math.abs(s.toArrowScale),A=s.toArrowType):(u=this.to,c=this.from,d=s.middleArrowScale<0,h=Math.abs(s.middleArrowScale),A=s.middleArrowType);var C=15*h+3*f;if(u!=c){var I=QLe(u.x-c.x,u.y-c.y),v=C/I;if(n!=="middle")if(this.options.smooth.enabled===!0){var p=this._findBorderPosition(u,e,{via:i}),y=this.getPoint(p.t+v*(n==="from"?1:-1),i);l=Math.atan2(p.y-y.y,p.x-y.x),g=p}else l=Math.atan2(u.y-c.y,u.x-c.x),g=this._findBorderPosition(u,e);else{var b=(d?-v:v)/2,_=this.getPoint(.5+b,i),P=this.getPoint(.5-b,i);l=Math.atan2(_.y-P.y,_.x-P.x),g=this.getPoint(.5,i)}}else{var k=this._getCircleData(e),E=vt(k,3),O=E[0],N=E[1],D=E[2];if(n==="from"){var M=this.options.selfReference.angle,Q=this.options.selfReference.angle+Math.PI,j=this._findBorderPositionCircle(this.from,e,{x:O,y:N,low:M,high:Q,direction:-1});l=j.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,g=j}else if(n==="to"){var W=this.options.selfReference.angle,q=this.options.selfReference.angle+Math.PI,oe=this._findBorderPositionCircle(this.from,e,{x:O,y:N,low:W,high:q,direction:1});l=oe.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,g=oe}else{var Pe=this.options.selfReference.angle/(2*Math.PI);g=this._pointOnCircle(O,N,D,Pe),l=Pe*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}var He=g.x-C*.9*Math.cos(l),Le=g.y-C*.9*Math.sin(l),me={x:He,y:Le};return{point:g,core:me,angle:l,length:C,type:A}}},{key:"drawArrowHead",value:function(e,n,i,o,a){e.strokeStyle=this.getColor(e,n),e.fillStyle=e.strokeStyle,e.lineWidth=n.width;var s=wH.draw(e,a);s&&(this.enableShadow(e,n),bf(e).call(e),this.disableShadow(e,n))}},{key:"enableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor=n.shadowColor,e.shadowBlur=n.shadowSize,e.shadowOffsetX=n.shadowX,e.shadowOffsetY=n.shadowY)}},{key:"disableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"drawBackground",value:function(e,n){if(n.background!==!1){var i={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=n.backgroundColor,e.lineWidth=n.backgroundSize,this.setStrokeDashed(e,n.backgroundDashes),e.stroke(),e.strokeStyle=i.strokeStyle,e.lineWidth=i.lineWidth,e.dashes=i.dashes,this.setStrokeDashed(e,n.dashes)}}},{key:"setStrokeDashed",value:function(e,n){if(n!==!1)if(e.setLineDash!==void 0){var i=lt(n)?n:[5,5];e.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else e.setLineDash!==void 0?e.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function VM(t,r){var e=er(t);if(ia){var n=ia(t);r&&(n=Mr(n).call(n,function(i){return ga(t,i).enumerable})),e.push.apply(e,n)}return e}function GM(t){for(var r=1;r<arguments.length;r++){var e,n,i=arguments[r]!=null?arguments[r]:{};r%2?Et(e=VM(Object(i),!0)).call(e,function(o){rr(t,o,i[o])}):oa?Pf(t,oa(i)):Et(n=VM(Object(i))).call(n,function(o){xf(t,o,ga(i,o))})}return t}function cze(t){var r=dze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function dze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var LT=function(t){xt(e,t);var r=cze(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"_findBorderPositionBezier",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates(),s=10,l=.2,g=!1,u=1,c=0,d=this.to,h,A,f=this.options.endPointOffset?this.options.endPointOffset.to:0;i.id===this.from.id&&(d=this.from,g=!0,f=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(f=0);var C=0;do{A=(c+u)*.5,h=this.getPoint(A,a);var I=Math.atan2(d.y-h.y,d.x-h.x),v=d.distanceToBorder(o,I)+f,p=Math.sqrt(Math.pow(h.x-d.x,2)+Math.pow(h.y-d.y,2)),y=v-p;if(Math.abs(y)<l)break;y<0?g===!1?c=A:u=A:g===!1?u=A:c=A,++C}while(c<=u&&C<s);return GM(GM({},h),{},{t:A})}},{key:"_getDistanceToBezierEdge",value:function(i,o,a,s,l,g,u){var c=1e9,d,h,A,f,C,I=i,v=o;for(h=1;h<10;h++)A=.1*h,f=Math.pow(1-A,2)*i+2*A*(1-A)*u.x+Math.pow(A,2)*a,C=Math.pow(1-A,2)*o+2*A*(1-A)*u.y+Math.pow(A,2)*s,h>0&&(d=this._getDistanceToLine(I,v,f,C,l,g),c=d<c?d:c),I=f,v=C;return c}},{key:"_bezierCurve",value:function(i,o,a,s){i.beginPath(),i.moveTo(this.fromPoint.x,this.fromPoint.y),a!=null&&a.x!=null?s!=null&&s.x!=null?i.bezierCurveTo(a.x,a.y,s.x,s.y,this.toPoint.x,this.toPoint.y):i.quadraticCurveTo(a.x,a.y,this.toPoint.x,this.toPoint.y):i.lineTo(this.toPoint.x,this.toPoint.y),this.drawBackground(i,o),this.enableShadow(i,o),i.stroke(),this.disableShadow(i,o)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}}]),e}(_H);function hze(t){var r=Aze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function Aze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var WM=function(t){xt(e,t);var r=hze(e);function e(n,i,o){var a;return Ae(this,e),a=r.call(this,n,i,o),a.via=a.via,a._boundFunction=function(){a.positionBezierNode()},a._body.emitter.on("_repositionBezierNodes",a._boundFunction),a}return fe(e,[{key:"setOptions",value:function(i){wv(xe(e.prototype),"setOptions",this).call(this,i);var o=!1;this.options.physics!==i.physics&&(o=!0),this.options=i,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),o===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.from===void 0||this.to===void 0||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),this.via!==void 0?(delete this._body.nodes[this.via.id],this.via=void 0,!0):!1}},{key:"setupSupportNode",value:function(){if(this.via===void 0){var i="edgeId:"+this.id,o=this._body.functions.createNode({id:i,shape:"circle",physics:!0,hidden:!0});this._body.nodes[i]=o,this.via=o,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){this.via!==void 0&&this.from!==void 0&&this.to!==void 0?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):this.via!==void 0&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(i,o,a){this._bezierCurve(i,o,a)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){var a=this._getCircleData(),s=vt(a,3),l=s[0],g=s[1],u=s[2],c=2*Math.PI*(1-i);return{x:l+u*Math.sin(c),y:g+u-u*(1-Math.cos(c))}}else return{x:Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*o.x+Math.pow(i,2)*this.toPoint.x,y:Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*o.y+Math.pow(i,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o,this.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,g){return this._getDistanceToBezierEdge(i,o,a,s,l,g,this.via)}}]),e}(LT);function fze(t){var r=Cze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function Cze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var HM=function(t){xt(e,t);var r=fze(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"_line",value:function(i,o,a){this._bezierCurve(i,o,a)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var i=this.options.smooth.roundness,o=this.options.smooth.type,a=Math.abs(this.from.x-this.to.x),s=Math.abs(this.from.y-this.to.y);if(o==="discrete"||o==="diagonalCross"){var l,g;a<=s?l=g=i*s:l=g=i*a,this.from.x>this.to.x&&(l=-l),this.from.y>=this.to.y&&(g=-g);var u=this.from.x+l,c=this.from.y+g;return o==="discrete"&&(a<=s?u=a<i*s?this.from.x:u:c=s<i*a?this.from.y:c),{x:u,y:c}}else if(o==="straightCross"){var d=(1-i)*a,h=(1-i)*s;return a<=s?(d=0,this.from.y<this.to.y&&(h=-h)):(this.from.x<this.to.x&&(d=-d),h=0),{x:this.to.x+d,y:this.to.y+h}}else if(o==="horizontal"){var A=(1-i)*a;return this.from.x<this.to.x&&(A=-A),{x:this.to.x+A,y:this.from.y}}else if(o==="vertical"){var f=(1-i)*s;return this.from.y<this.to.y&&(f=-f),{x:this.from.x,y:this.to.y+f}}else if(o==="curvedCW"){a=this.to.x-this.from.x,s=this.from.y-this.to.y;var C=Math.sqrt(a*a+s*s),I=Math.PI,v=Math.atan2(s,a),p=(v+(i*.5+.5)*I)%(2*I);return{x:this.from.x+(i*.5+.5)*C*Math.sin(p),y:this.from.y+(i*.5+.5)*C*Math.cos(p)}}else if(o==="curvedCCW"){a=this.to.x-this.from.x,s=this.from.y-this.to.y;var y=Math.sqrt(a*a+s*s),b=Math.PI,_=Math.atan2(s,a),P=(_+(-i*.5+.5)*b)%(2*b);return{x:this.from.x+(i*.5+.5)*y*Math.sin(P),y:this.from.y+(i*.5+.5)*y*Math.cos(P)}}else{var k,E;a<=s?k=E=i*s:k=E=i*a,this.from.x>this.to.x&&(k=-k),this.from.y>=this.to.y&&(E=-E);var O=this.from.x+k,N=this.from.y+E;return a<=s?this.from.x<=this.to.x?O=this.to.x<O?this.to.x:O:O=this.to.x>O?this.to.x:O:this.from.y>=this.to.y?N=this.to.y>N?this.to.y:N:N=this.to.y<N?this.to.y:N,{x:O,y:N}}}},{key:"_findBorderPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(i,o,a.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,g){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(i,o,a,s,l,g,u)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=i,s=Math.pow(1-a,2)*this.fromPoint.x+2*a*(1-a)*o.x+Math.pow(a,2)*this.toPoint.x,l=Math.pow(1-a,2)*this.fromPoint.y+2*a*(1-a)*o.y+Math.pow(a,2)*this.toPoint.y;return{x:s,y:l}}}]),e}(LT);function Ize(t){var r=vze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function vze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var pze=function(t){xt(e,t);var r=Ize(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"_getDistanceToBezierEdge2",value:function(i,o,a,s,l,g,u,c){for(var d=1e9,h=i,A=o,f=[0,0,0,0],C=1;C<10;C++){var I=.1*C;f[0]=Math.pow(1-I,3),f[1]=3*I*Math.pow(1-I,2),f[2]=3*Math.pow(I,2)*(1-I),f[3]=Math.pow(I,3);var v=f[0]*i+f[1]*u.x+f[2]*c.x+f[3]*a,p=f[0]*o+f[1]*u.y+f[2]*c.y+f[3]*s;if(C>0){var y=this._getDistanceToLine(h,A,v,p,l,g);d=y<d?y:d}h=v,A=p}return d}}]),e}(LT);function mze(t){var r=yze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function yze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var UM=function(t){xt(e,t);var r=mze(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"_line",value:function(i,o,a){var s=a[0],l=a[1];this._bezierCurve(i,o,s,l)}},{key:"_getViaCoordinates",value:function(){var i=this.from.x-this.to.x,o=this.from.y-this.to.y,a,s,l,g,u=this.options.smooth.roundness;return(Math.abs(i)>Math.abs(o)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(s=this.from.y,g=this.to.y,a=this.from.x-u*i,l=this.to.x+u*i):(s=this.from.y-u*o,g=this.to.y+u*o,a=this.from.x,l=this.to.x),[{x:a,y:s},{x:l,y:g}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,g){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates(),c=vt(u,2),d=c[0],h=c[1];return this._getDistanceToBezierEdge2(i,o,a,s,l,g,d,h)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=vt(o,2),s=a[0],l=a[1],g=i,u=[Math.pow(1-g,3),3*g*Math.pow(1-g,2),3*Math.pow(g,2)*(1-g),Math.pow(g,3)],c=u[0]*this.fromPoint.x+u[1]*s.x+u[2]*l.x+u[3]*this.toPoint.x,d=u[0]*this.fromPoint.y+u[1]*s.y+u[2]*l.y+u[3]*this.toPoint.y;return{x:c,y:d}}}]),e}(pze);function bze(t){var r=$ze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function $ze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var ZM=function(t){xt(e,t);var r=bze(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"_line",value:function(i,o){i.beginPath(),i.moveTo(this.fromPoint.x,this.fromPoint.y),i.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(i,o),i.stroke(),this.disableShadow(i,o)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(i){return{x:(1-i)*this.fromPoint.x+i*this.toPoint.x,y:(1-i)*this.fromPoint.y+i*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){var a=this.to,s=this.from;i.id===this.from.id&&(a=this.from,s=this.to);var l=Math.atan2(a.y-s.y,a.x-s.x),g=a.x-s.x,u=a.y-s.y,c=Math.sqrt(g*g+u*u),d=i.distanceToBorder(o,l),h=(c-d)/c;return{x:(1-h)*s.x+h*a.x,y:(1-h)*s.y+h*a.y,t:0}}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,g){return this._getDistanceToLine(i,o,a,s,l,g)}}]),e}(_H),Cc=function(){function t(r,e,n,i,o){if(Ae(this,t),e===void 0)throw new Error("No body provided");this.options=Ls(i),this.globalOptions=i,this.defaultOptions=o,this.body=e,this.imagelist=n,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new yH(this.body,this.options,!0),this.setOptions(r)}return fe(t,[{key:"setOptions",value:function(e){if(e){var n=typeof e.physics<"u"&&this.options.physics!==e.physics||typeof e.hidden<"u"&&(this.options.hidden||!1)!==(e.hidden||!1)||typeof e.from<"u"&&this.options.from!==e.from||typeof e.to<"u"&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),e.id!==void 0&&(this.id=e.id),e.from!==void 0&&(this.fromId=e.from),e.to!==void 0&&(this.toId=e.to),e.title!==void 0&&(this.title=e.title),e.value!==void 0&&(e.value=pH(e.value));var i=[e,this.options,this.defaultOptions];return this.chooser=BT("edge",i),this.updateLabelModule(e),n=this.updateEdgeType()||n,this._setInteractionWidths(),this.connect(),n}}},{key:"getFormattingValues",value:function(){var e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,n=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,i=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,o=this.options.color.inherit,a={toArrow:e,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:n,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:o?void 0:this.options.color.color,inheritsColor:o,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(this.chooser===!0){if(this.selected){var s=this.options.selectionWidth;typeof s=="function"?a.width=s(a.width):typeof s=="number"&&(a.width+=s),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.highlight,a.shadow=this.options.shadow.enabled}else if(this.hover){var l=this.options.hoverWidth;typeof l=="function"?a.width=l(a.width):typeof l=="number"&&(a.width+=l),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.hover,a.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(a,this.options.id,this.selected,this.hover),a.color!==void 0&&(a.inheritsColor=!1),a.shadow===!1&&(a.shadowColor!==this.options.shadow.color||a.shadowSize!==this.options.shadow.size||a.shadowX!==this.options.shadow.x||a.shadowY!==this.options.shadow.y)&&(a.shadow=!0));else a.shadow=this.options.shadow.enabled,a.width=Math.max(a.width,.3/this.body.view.scale);return a}},{key:"updateLabelModule",value:function(e){var n=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,n),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var e=this.options.smooth,n=!1,i=!0;return this.edgeType!==void 0&&((this.edgeType instanceof WM&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof UM&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof HM&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof ZM&&e.type.enabled===!1)&&(i=!1),i===!0&&(n=this.cleanup())),i===!0?e.enabled===!0?e.type==="dynamic"?(n=!0,this.edgeType=new WM(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new UM(this.options,this.body,this.labelModule):this.edgeType=new HM(this.options,this.body,this.labelModule):this.edgeType=new ZM(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),n}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=this.from!==void 0&&this.to!==void 0,this.connected===!0?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(e,n,i){if(this.options.value!==void 0){var o=this.options.scaling.customScalingFunction(e,n,i,this.options.value),a=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var s=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+o*s}this.options.width=this.options.scaling.min+o*a}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){typeof this.options.hoverWidth=="function"?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,typeof this.options.selectionWidth=="function"?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode();this.edgeType.drawLine(e,n,this.selected,this.hover,i),this.drawLabel(e,i)}}},{key:"drawArrows",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode(),o={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,n.fromArrow&&(o.from=this.edgeType.getArrowData(e,"from",i,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.fromPoint=o.from.core),n.fromArrowSrc&&(o.from.image=this.imagelist.load(n.fromArrowSrc)),n.fromArrowImageWidth&&(o.from.imageWidth=n.fromArrowImageWidth),n.fromArrowImageHeight&&(o.from.imageHeight=n.fromArrowImageHeight)),n.toArrow&&(o.to=this.edgeType.getArrowData(e,"to",i,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.toPoint=o.to.core),n.toArrowSrc&&(o.to.image=this.imagelist.load(n.toArrowSrc)),n.toArrowImageWidth&&(o.to.imageWidth=n.toArrowImageWidth),n.toArrowImageHeight&&(o.to.imageHeight=n.toArrowImageHeight)),n.middleArrow&&(o.middle=this.edgeType.getArrowData(e,"middle",i,this.selected,this.hover,n),n.middleArrowSrc&&(o.middle.image=this.imagelist.load(n.middleArrowSrc)),n.middleArrowImageWidth&&(o.middle.imageWidth=n.middleArrowImageWidth),n.middleArrowImageHeight&&(o.middle.imageHeight=n.middleArrowImageHeight)),n.fromArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.from),n.middleArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.middle),n.toArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.to)}}},{key:"drawLabel",value:function(e,n){if(this.options.label!==void 0){var i=this.from,o=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);var a;if(i.id!=o.id){this.labelModule.pointToSelf=!1,a=this.edgeType.getPoint(.5,n),e.save();var s=this._getRotation(e);s.angle!=0&&(e.translate(s.x,s.y),e.rotate(s.angle)),this.labelModule.draw(e,a.x,a.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;var l=mH(e,this.options.selfReference.angle,this.options.selfReference.size,i);a=this._pointOnCircle(l.x,l.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,a.x,a.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(e){var n=[];if(this.labelModule.visible()){var i=this._getRotation();pE(this.labelModule.getSize(),e,i)&&n.push({edgeId:this.id,labelId:0})}var o={left:e.x,top:e.y};return this.isOverlappingWith(o)&&n.push({edgeId:this.id}),n}},{key:"isOverlappingWith",value:function(e){if(this.connected){var n=10,i=this.from.x,o=this.from.y,a=this.to.x,s=this.to.y,l=e.left,g=e.top,u=this.edgeType.getDistanceToEdge(i,o,a,s,l,g);return u<n}else return!1}},{key:"_getRotation",value:function(e){var n=this.edgeType.getViaNode(),i=this.edgeType.getPoint(.5,n);e!==void 0&&this.labelModule.calculateLabelSize(e,this.selected,this.hover,i.x,i.y);var o={x:i.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible()||this.options.font.align==="horizontal")return o;var a=this.from.y-this.to.y,s=this.from.x-this.to.x,l=Math.atan2(a,s);return(l<-1&&s<0||l>0&&s<0)&&(l+=Math.PI),o.angle=l,o}},{key:"_pointOnCircle",value:function(e,n,i,o){return{x:e+i*Math.cos(o),y:n-i*Math.sin(o)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}}],[{key:"parseOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(wd(s,e,n,i),n.endPointOffset!==void 0&&n.endPointOffset.from!==void 0&&(Ql(n.endPointOffset.from)?e.endPointOffset.from=n.endPointOffset.from:(e.endPointOffset.from=o.endPointOffset.from!==void 0?o.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),n.endPointOffset!==void 0&&n.endPointOffset.to!==void 0&&(Ql(n.endPointOffset.to)?e.endPointOffset.to=n.endPointOffset.to:(e.endPointOffset.to=o.endPointOffset.to!==void 0?o.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),Lp(n.label)?e.label=n.label:Lp(e.label)||(e.label=void 0),Bi(e,n,"smooth",o),Bi(e,n,"shadow",o),Bi(e,n,"background",o),n.dashes!==void 0&&n.dashes!==null?e.dashes=n.dashes:i===!0&&n.dashes===null&&(e.dashes=Bs(o.dashes)),n.scaling!==void 0&&n.scaling!==null?(n.scaling.min!==void 0&&(e.scaling.min=n.scaling.min),n.scaling.max!==void 0&&(e.scaling.max=n.scaling.max),Bi(e.scaling,n.scaling,"label",o.scaling)):i===!0&&n.scaling===null&&(e.scaling=Bs(o.scaling)),n.arrows!==void 0&&n.arrows!==null)if(typeof n.arrows=="string"){var l=n.arrows.toLowerCase();e.arrows.to.enabled=Tt(l).call(l,"to")!=-1,e.arrows.middle.enabled=Tt(l).call(l,"middle")!=-1,e.arrows.from.enabled=Tt(l).call(l,"from")!=-1}else if(ct(n.arrows)==="object")Bi(e.arrows,n.arrows,"to",o.arrows),Bi(e.arrows,n.arrows,"middle",o.arrows),Bi(e.arrows,n.arrows,"from",o.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+bd(n.arrows));else i===!0&&n.arrows===null&&(e.arrows=Bs(o.arrows));if(n.color!==void 0&&n.color!==null){var g=bs(n.color)?{color:n.color,highlight:n.color,hover:n.color,inherit:!1,opacity:1}:n.color,u=e.color;if(a)Yt(u,o.color,!1,i);else for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&delete u[c];if(bs(u))u.color=u,u.highlight=u,u.hover=u,u.inherit=!1,g.opacity===void 0&&(u.opacity=1);else{var d=!1;g.color!==void 0&&(u.color=g.color,d=!0),g.highlight!==void 0&&(u.highlight=g.highlight,d=!0),g.hover!==void 0&&(u.hover=g.hover,d=!0),g.inherit!==void 0&&(u.inherit=g.inherit),g.opacity!==void 0&&(u.opacity=Math.min(1,Math.max(0,g.opacity))),d===!0?u.inherit=!1:u.inherit===void 0&&(u.inherit="from")}}else i===!0&&n.color===null&&(e.color=Ls(o.color));i===!0&&n.font===null&&(e.font=Ls(o.font)),Object.prototype.hasOwnProperty.call(n,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),e.selfReference.size=n.selfReferenceSize)}}]),t}(),wze=function(){function t(r,e,n){var i,o=this;Ae(this,t),this.body=r,this.images=e,this.groups=n,this.body.functions.createEdge=ue(i=this.create).call(i,this),this.edgesListeners={add:function(s,l){o.add(l.items)},update:function(s,l){o.update(l.items)},remove:function(s,l){o.remove(l.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(s,l,g,u){if(l===s)return .5;var c=1/(l-s);return Math.max(0,(u-s)*c)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},Yt(this.options,this.defaultOptions),this.bindEventListeners()}return fe(t,[{key:"bindEventListeners",value:function(){var e=this,n,i;this.body.emitter.on("_forceDisableDynamicCurves",function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;o==="dynamic"&&(o="continuous");var s=!1;for(var l in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,l)){var g=e.body.edges[l],u=e.body.data.edges.get(l);if(u!=null){var c=u.smooth;c!==void 0&&c.enabled===!0&&c.type==="dynamic"&&(o===void 0?g.setOptions({smooth:!1}):g.setOptions({smooth:{type:o}}),s=!0)}}a===!0&&s===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){e.reconnectEdges()}),this.body.emitter.on("refreshEdges",ue(n=this.refresh).call(n,this)),this.body.emitter.on("refresh",ue(i=this.refresh).call(i,this)),this.body.emitter.on("destroy",function(){dt(e.edgesListeners,function(o,a){e.body.data.edges&&e.body.data.edges.off(a,o)}),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners})}},{key:"setOptions",value:function(e){if(e!==void 0){Cc.parseOptions(this.options,e,!0,this.defaultOptions,!0);var n=!1;if(e.smooth!==void 0)for(var i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&(n=this.body.edges[i].updateEdgeType()||n);if(e.font!==void 0)for(var o in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,o)&&this.body.edges[o].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||n===!0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.body.data.edges;if(IH("id",e))this.body.data.edges=e;else if(lt(e))this.body.data.edges=new zc,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new zc;else throw new TypeError("Array or DataSet expected");if(o&&dt(this.edgesListeners,function(s,l){o.off(l,s)}),this.body.edges={},this.body.data.edges){dt(this.edgesListeners,function(s,l){n.body.data.edges.on(l,s)});var a=this.body.data.edges.getIds();this.add(a,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),i===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.edges,o=this.body.data.edges,a=0;a<e.length;a++){var s=e[a],l=i[s];l&&l.disconnect();var g=o.get(s,{showInternalIds:!0});i[s]=this.create(g)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(e){for(var n=this.body.edges,i=this.body.data.edges,o=!1,a=0;a<e.length;a++){var s=e[a],l=i.get(s),g=n[s];g!==void 0?(g.disconnect(),o=g.setOptions(l)||o,g.connect()):(this.body.edges[s]=this.create(l),o=!0)}o===!0?(this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),this.body.emitter.emit("_dataChanged")):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length!==0){var i=this.body.edges;dt(e,function(o){var a=i[o];a!==void 0&&a.remove()}),n&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var e=this;dt(this.body.edges,function(n,i){var o=e.body.data.edges.get(i);o!==void 0&&n.setOptions(o)})}},{key:"create",value:function(e){return new Cc(e,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var e,n=this.body.nodes,i=this.body.edges;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e].edges=[]);for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)){var o=i[e];o.from=null,o.to=null,o.connect()}}},{key:"getConnectedNodes",value:function(e){var n=[];if(this.body.edges[e]!==void 0){var i=this.body.edges[e];i.fromId!==void 0&&n.push(i.fromId),i.toId!==void 0&&n.push(i.toId)}return n}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var e=this,n=[];dt(this.body.edges,function(i,o){var a=e.body.nodes[i.toId],s=e.body.nodes[i.fromId];a!==void 0&&a.isCluster===!0||s!==void 0&&s.isCluster===!0||(a===void 0||s===void 0)&&n.push(o)}),this.remove(n,!1)}},{key:"_addMissingEdges",value:function(){var e=this.body.data.edges;if(e!=null){var n=this.body.edges,i=[];Et(e).call(e,function(o,a){var s=n[a];s===void 0&&i.push(a)}),this.add(i,!0)}}}]),t}(),EH=function(){function t(r,e,n){Ae(this,t),this.body=r,this.physicsBody=e,this.barnesHutTree,this.setOptions(n),this._rng=Iy("BARNES HUT SOLVER")}return fe(t,[{key:"setOptions",value:function(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){var e,n=this.body.nodes,i=this.physicsBody.physicsNodeIndices,o=i.length,a=this._formBarnesHutTree(n,i);this.barnesHutTree=a;for(var s=0;s<o;s++)e=n[i[s]],e.options.mass>0&&this._getForceContributions(a.root,e)}}},{key:"_getForceContributions",value:function(e,n){this._getForceContribution(e.children.NW,n),this._getForceContribution(e.children.NE,n),this._getForceContribution(e.children.SW,n),this._getForceContribution(e.children.SE,n)}},{key:"_getForceContribution",value:function(e,n){if(e.childrenCount>0){var i=e.centerOfMass.x-n.x,o=e.centerOfMass.y-n.y,a=Math.sqrt(i*i+o*o);a*e.calcSize>this.thetaInversed?this._calculateForces(a,i,o,n,e):e.childrenCount===4?this._getForceContributions(e,n):e.children.data.id!=n.id&&this._calculateForces(a,i,o,n,e)}}},{key:"_calculateForces",value:function(e,n,i,o,a){e===0&&(e=.1,n=e),this.overlapAvoidanceFactor<1&&o.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*o.shape.radius,e-o.shape.radius));var s=this.options.gravitationalConstant*a.mass*o.options.mass/Math.pow(e,3),l=n*s,g=i*s;this.physicsBody.forces[o.id].x+=l,this.physicsBody.forces[o.id].y+=g}},{key:"_formBarnesHutTree",value:function(e,n){for(var i,o=n.length,a=e[n[0]].x,s=e[n[0]].y,l=e[n[0]].x,g=e[n[0]].y,u=1;u<o;u++){var c=e[n[u]],d=c.x,h=c.y;c.options.mass>0&&(d<a&&(a=d),d>l&&(l=d),h<s&&(s=h),h>g&&(g=h))}var A=Math.abs(l-a)-Math.abs(g-s);A>0?(s-=.5*A,g+=.5*A):(a+=.5*A,l-=.5*A);var f=1e-5,C=Math.max(f,Math.abs(l-a)),I=.5*C,v=.5*(a+l),p=.5*(s+g),y={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:v-I,maxX:v+I,minY:p-I,maxY:p+I},size:C,calcSize:1/C,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(y.root);for(var b=0;b<o;b++)i=e[n[b]],i.options.mass>0&&this._placeInTree(y.root,i);return y}},{key:"_updateBranchMass",value:function(e,n){var i=e.centerOfMass,o=e.mass+n.options.mass,a=1/o;i.x=i.x*e.mass+n.x*n.options.mass,i.x*=a,i.y=i.y*e.mass+n.y*n.options.mass,i.y*=a,e.mass=o;var s=Math.max(Math.max(n.height,n.radius),n.width);e.maxWidth=e.maxWidth<s?s:e.maxWidth}},{key:"_placeInTree",value:function(e,n,i){(i!=!0||i===void 0)&&this._updateBranchMass(e,n);var o=e.children.NW.range,a;o.maxX>n.x?o.maxY>n.y?a="NW":a="SW":o.maxY>n.y?a="NE":a="SE",this._placeInRegion(e,n,a)}},{key:"_placeInRegion",value:function(e,n,i){var o=e.children[i];switch(o.childrenCount){case 0:o.children.data=n,o.childrenCount=1,this._updateBranchMass(o,n);break;case 1:o.children.data.x===n.x&&o.children.data.y===n.y?(n.x+=this._rng(),n.y+=this._rng()):(this._splitBranch(o),this._placeInTree(o,n));break;case 4:this._placeInTree(o,n);break}}},{key:"_splitBranch",value:function(e){var n=null;e.childrenCount===1&&(n=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),n!=null&&this._placeInTree(e,n)}},{key:"_insertRegion",value:function(e,n){var i,o,a,s,l=.5*e.size;switch(n){case"NW":i=e.range.minX,o=e.range.minX+l,a=e.range.minY,s=e.range.minY+l;break;case"NE":i=e.range.minX+l,o=e.range.maxX,a=e.range.minY,s=e.range.minY+l;break;case"SW":i=e.range.minX,o=e.range.minX+l,a=e.range.minY+l,s=e.range.maxY;break;case"SE":i=e.range.minX+l,o=e.range.maxX,a=e.range.minY+l,s=e.range.maxY;break}e.children[n]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:o,minY:a,maxY:s},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}},{key:"_debug",value:function(e,n){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,n))}},{key:"_drawBranch",value:function(e,n,i){i===void 0&&(i="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,n),this._drawBranch(e.children.NE,n),this._drawBranch(e.children.SE,n),this._drawBranch(e.children.SW,n)),n.strokeStyle=i,n.beginPath(),n.moveTo(e.range.minX,e.range.minY),n.lineTo(e.range.maxX,e.range.minY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.minY),n.lineTo(e.range.maxX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.maxY),n.lineTo(e.range.minX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.minX,e.range.maxY),n.lineTo(e.range.minX,e.range.minY),n.stroke()}}]),t}(),_ze=function(){function t(r,e,n){Ae(this,t),this._rng=Iy("REPULSION SOLVER"),this.body=r,this.physicsBody=e,this.setOptions(n)}return fe(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,i,o,a,s,l,g,u=this.body.nodes,c=this.physicsBody.physicsNodeIndices,d=this.physicsBody.forces,h=this.options.nodeDistance,A=-2/3/h,f=4/3,C=0;C<c.length-1;C++){l=u[c[C]];for(var I=C+1;I<c.length;I++)g=u[c[I]],e=g.x-l.x,n=g.y-l.y,i=Math.sqrt(e*e+n*n),i===0&&(i=.1*this._rng(),e=i),i<2*h&&(i<.5*h?s=1:s=A*i+f,s=s/i,o=e*s,a=n*s,d[l.id].x-=o,d[l.id].y-=a,d[g.id].x+=o,d[g.id].y+=a)}}}]),t}(),Eze=function(){function t(r,e,n){Ae(this,t),this.body=r,this.physicsBody=e,this.setOptions(n)}return fe(t,[{key:"setOptions",value:function(e){this.options=e,this.overlapAvoidanceFactor=Math.max(0,Math.min(1,this.options.avoidOverlap||0))}},{key:"solve",value:function(){for(var e=this.body.nodes,n=this.physicsBody.physicsNodeIndices,i=this.physicsBody.forces,o=this.options.nodeDistance,a=0;a<n.length-1;a++)for(var s=e[n[a]],l=a+1;l<n.length;l++){var g=e[n[l]];if(s.level===g.level){var u=o+this.overlapAvoidanceFactor*((s.shape.radius||0)/2+(g.shape.radius||0)/2),c=g.x-s.x,d=g.y-s.y,h=Math.sqrt(c*c+d*d),A=.05,f=void 0;h<u?f=-Math.pow(A*h,2)+Math.pow(A*u,2):f=0,h!==0&&(f=f/h);var C=c*f,I=d*f;i[s.id].x-=C,i[s.id].y-=I,i[g.id].x+=C,i[g.id].y+=I}}}}]),t}(),p1=function(){function t(r,e,n){Ae(this,t),this.body=r,this.physicsBody=e,this.setOptions(n)}return fe(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,i=this.physicsBody.physicsEdgeIndices,o=this.body.edges,a,s,l,g=0;g<i.length;g++)n=o[i[g]],n.connected===!0&&n.toId!==n.fromId&&this.body.nodes[n.toId]!==void 0&&this.body.nodes[n.fromId]!==void 0&&(n.edgeType.via!==void 0?(e=n.options.length===void 0?this.options.springLength:n.options.length,a=n.to,s=n.edgeType.via,l=n.from,this._calculateSpringForce(a,s,.5*e),this._calculateSpringForce(s,l,.5*e)):(e=n.options.length===void 0?this.options.springLength*1.5:n.options.length,this._calculateSpringForce(n.from,n.to,e)))}},{key:"_calculateSpringForce",value:function(e,n,i){var o=e.x-n.x,a=e.y-n.y,s=Math.max(Math.sqrt(o*o+a*a),.01),l=this.options.springConstant*(i-s)/s,g=o*l,u=a*l;this.physicsBody.forces[e.id]!==void 0&&(this.physicsBody.forces[e.id].x+=g,this.physicsBody.forces[e.id].y+=u),this.physicsBody.forces[n.id]!==void 0&&(this.physicsBody.forces[n.id].x-=g,this.physicsBody.forces[n.id].y-=u)}}]),t}(),Sze=function(){function t(r,e,n){Ae(this,t),this.body=r,this.physicsBody=e,this.setOptions(n)}return fe(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,i,o,a,s,l,g,u=this.body.edges,c=.5,d=this.physicsBody.physicsEdgeIndices,h=this.physicsBody.physicsNodeIndices,A=this.physicsBody.forces,f=0;f<h.length;f++){var C=h[f];A[C].springFx=0,A[C].springFy=0}for(var I=0;I<d.length;I++)n=u[d[I]],n.connected===!0&&(e=n.options.length===void 0?this.options.springLength:n.options.length,i=n.from.x-n.to.x,o=n.from.y-n.to.y,g=Math.sqrt(i*i+o*o),g=g===0?.01:g,l=this.options.springConstant*(e-g)/g,a=i*l,s=o*l,n.to.level!=n.from.level?(A[n.toId]!==void 0&&(A[n.toId].springFx-=a,A[n.toId].springFy-=s),A[n.fromId]!==void 0&&(A[n.fromId].springFx+=a,A[n.fromId].springFy+=s)):(A[n.toId]!==void 0&&(A[n.toId].x-=c*a,A[n.toId].y-=c*s),A[n.fromId]!==void 0&&(A[n.fromId].x+=c*a,A[n.fromId].y+=c*s)));l=1;for(var v,p,y=0;y<h.length;y++){var b=h[y];v=Math.min(l,Math.max(-l,A[b].springFx)),p=Math.min(l,Math.max(-l,A[b].springFy)),A[b].x+=v,A[b].y+=p}for(var _=0,P=0,k=0;k<h.length;k++){var E=h[k];_+=A[E].x,P+=A[E].y}for(var O=_/h.length,N=P/h.length,D=0;D<h.length;D++){var M=h[D];A[M].x-=O,A[M].y-=N}}}]),t}(),_v=function(){function t(r,e,n){Ae(this,t),this.body=r,this.physicsBody=e,this.setOptions(n)}return fe(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,i,o,a=this.body.nodes,s=this.physicsBody.physicsNodeIndices,l=this.physicsBody.forces,g=0;g<s.length;g++){var u=s[g];o=a[u],e=-o.x,n=-o.y,i=Math.sqrt(e*e+n*n),this._calculateForces(i,e,n,l,o)}}},{key:"_calculateForces",value:function(e,n,i,o,a){var s=e===0?0:this.options.centralGravity/e;o[a.id].x=n*s,o[a.id].y=i*s}}]),t}();function Tze(t){var r=Oze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function Oze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var kze=function(t){xt(e,t);var r=Tze(e);function e(n,i,o){var a;return Ae(this,e),a=r.call(this,n,i,o),a._rng=Iy("FORCE ATLAS 2 BASED REPULSION SOLVER"),a}return fe(e,[{key:"_calculateForces",value:function(i,o,a,s,l){i===0&&(i=.1*this._rng(),o=i),this.overlapAvoidanceFactor<1&&s.shape.radius&&(i=Math.max(.1+this.overlapAvoidanceFactor*s.shape.radius,i-s.shape.radius));var g=s.edges.length+1,u=this.options.gravitationalConstant*l.mass*s.options.mass*g/Math.pow(i,2),c=o*u,d=a*u;this.physicsBody.forces[s.id].x+=c,this.physicsBody.forces[s.id].y+=d}}]),e}(EH);function xze(t){var r=Pze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function Pze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var Rze=function(t){xt(e,t);var r=xze(e);function e(n,i,o){return Ae(this,e),r.call(this,n,i,o)}return fe(e,[{key:"_calculateForces",value:function(i,o,a,s,l){if(i>0){var g=l.edges.length+1,u=this.options.centralGravity*g*l.options.mass;s[l.id].x=o*u,s[l.id].y=a*u}}}]),e}(_v),Dze=function(){function t(r){Ae(this,t),this.body=r,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Or(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return fe(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("initPhysics",function(){e.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){e.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){e.stopSimulation(),e.ready=!1}),this.body.emitter.on("disablePhysics",function(){e.physicsEnabled=!1,e.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){e.setOptions(e.options),e.ready===!0&&e.startSimulation()}),this.body.emitter.on("startSimulation",function(){e.ready===!0&&e.startSimulation()}),this.body.emitter.on("stopSimulation",function(){e.stopSimulation()}),this.body.emitter.on("destroy",function(){e.stopSimulation(!1),e.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){e.updatePhysicsData()})}},{key:"setOptions",value:function(e){if(e!==void 0)if(e===!1)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(e===!0)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,Pp(["stabilization"],this.options,e),Bi(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());var n=this.options.wind;n&&((typeof n.x!="number"||oE(n.x))&&(n.x=0),(typeof n.y!="number"||oE(n.y))&&(n.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new kze(this.body,this.physicsBody,e),this.edgesSolver=new p1(this.body,this.physicsBody,e),this.gravitySolver=new Rze(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new _ze(this.body,this.physicsBody,e),this.edgesSolver=new p1(this.body,this.physicsBody,e),this.gravitySolver=new _v(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new Eze(this.body,this.physicsBody,e),this.edgesSolver=new Sze(this.body,this.physicsBody,e),this.gravitySolver=new _v(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new EH(this.body,this.physicsBody,e),this.edgesSolver=new p1(this.body,this.physicsBody,e),this.gravitySolver=new _v(this.body,this.physicsBody,e)),this.modelOptions=e}},{key:"initPhysics",value:function(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){if(this.physicsEnabled===!0&&this.options.enabled===!0){if(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),this.viewFunction===void 0){var e;this.viewFunction=ue(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.stabilized=!0,e===!0&&this._emitStabilized(),this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var e=Sp();this.physicsTick();var n=Sp()-e;(n<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&mo(function(){e.body.emitter.emit("stabilized",{iterations:n}),e.startedStabilization=!1,e.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){var e=1.2;this._evaluateStepQuality()===!0?this.timestep=e*this.timestep:this.timestep/e<this.options.timestep?this.timestep=this.options.timestep:(this.adaptiveCounter=-1,this.timestep=Math.max(this.options.timestep,this.timestep/e))}},{key:"physicsTick",value:function(){if(this._startStabilizing(),this.stabilized!==!0){if(this.adaptiveTimestep===!0&&this.adaptiveTimestepEnabled===!0){var e=this.adaptiveCounter%this.adaptiveInterval===0;e?(this.timestep=2*this.timestep,this.physicsStep(),this.revert(),this.timestep=.5*this.timestep,this.physicsStep(),this.physicsStep(),this.adjustTimeStep()):this.physicsStep(),this.adaptiveCounter+=1}else this.timestep=this.options.timestep,this.physicsStep();this.stabilized===!0&&this.revert(),this.stabilizationIterations++}}},{key:"updatePhysicsData",value:function(){this.physicsBody.forces={},this.physicsBody.physicsNodeIndices=[],this.physicsBody.physicsEdgeIndices=[];var e=this.body.nodes,n=this.body.edges;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&e[i].options.physics===!0&&this.physicsBody.physicsNodeIndices.push(e[i].id);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&n[o].options.physics===!0&&this.physicsBody.physicsEdgeIndices.push(n[o].id);for(var a=0;a<this.physicsBody.physicsNodeIndices.length;a++){var s=this.physicsBody.physicsNodeIndices[a];this.physicsBody.forces[s]={x:0,y:0},this.physicsBody.velocities[s]===void 0&&(this.physicsBody.velocities[s]={x:0,y:0})}for(var l in this.physicsBody.velocities)e[l]===void 0&&delete this.physicsBody.velocities[l]}},{key:"revert",value:function(){var e=er(this.previousStates),n=this.body.nodes,i=this.physicsBody.velocities;this.referenceState={};for(var o=0;o<e.length;o++){var a=e[o];n[a]!==void 0?n[a].options.physics===!0&&(this.referenceState[a]={positions:{x:n[a].x,y:n[a].y}},i[a].x=this.previousStates[a].vx,i[a].y=this.previousStates[a].vy,n[a].x=this.previousStates[a].x,n[a].y=this.previousStates[a].y):delete this.previousStates[a]}}},{key:"_evaluateStepQuality",value:function(){var e,n,i,o=this.body.nodes,a=this.referenceState,s=.3;for(var l in this.referenceState)if(Object.prototype.hasOwnProperty.call(this.referenceState,l)&&o[l]!==void 0&&(e=o[l].x-a[l].positions.x,n=o[l].y-a[l].positions.y,i=Math.sqrt(Math.pow(e,2)+Math.pow(n,2)),i>s))return!1;return!0}},{key:"moveNodes",value:function(){for(var e=this.physicsBody.physicsNodeIndices,n=0,i=0,o=5,a=0;a<e.length;a++){var s=e[a],l=this._performStep(s);n=Math.max(n,l),i+=l}this.adaptiveTimestepEnabled=i/e.length<o,this.stabilized=n<this.options.minVelocity}},{key:"calculateComponentVelocity",value:function(e,n,i){var o=this.modelOptions.damping*e,a=(n-o)/i;e+=a*this.timestep;var s=this.options.maxVelocity||1e9;return Math.abs(e)>s&&(e=e>0?s:-s),e}},{key:"_performStep",value:function(e){var n=this.body.nodes[e],i=this.physicsBody.forces[e];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);var o=this.physicsBody.velocities[e];this.previousStates[e]={x:n.x,y:n.y,vx:o.x,vy:o.y},n.options.fixed.x===!1?(o.x=this.calculateComponentVelocity(o.x,i.x,n.options.mass),n.x+=o.x*this.timestep):(i.x=0,o.x=0),n.options.fixed.y===!1?(o.y=this.calculateComponentVelocity(o.y,i.y,n.options.mass),n.y+=o.y*this.timestep):(i.y=0,o.y=0);var a=Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2));return a}},{key:"_freezeNodes",value:function(){var e=this.body.nodes;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n].x&&e[n].y){var i=e[n].options.fixed;this.freezeCache[n]={x:i.x,y:i.y},i.x=!0,i.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var e=this.body.nodes;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.freezeCache[n]!==void 0&&(e[n].options.fixed.x=this.freezeCache[n].x,e[n].options.fixed.y=this.freezeCache[n].y);this.freezeCache={}}},{key:"stabilize",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof n!="number"&&(n=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",n)),this.physicsBody.physicsNodeIndices.length===0){this.ready=!0;return}this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=n,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,mo(function(){return e._stabilizationBatch()},0)}},{key:"_startStabilizing",value:function(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var e=this,n=function(){return e.stabilized===!1&&e.stabilizationIterations<e.targetIterations},i=function(){e.body.emitter.emit("stabilizationProgress",{iterations:e.stabilizationIterations,total:e.targetIterations})};this._startStabilizing()&&i();for(var o=0;n()&&o<this.options.stabilization.updateInterval;)this.physicsTick(),o++;if(i(),n()){var a;mo(ue(a=this._stabilizationBatch).call(a,this),0)}else this._finalizeStabilization()}},{key:"_finalizeStabilization",value:function(){this.body.emitter.emit("_allowRedraw"),this.options.stabilization.fit===!0&&this.body.emitter.emit("fit"),this.options.stabilization.onlyDynamicEdges===!0&&this._restoreFrozenNodes(),this.body.emitter.emit("stabilizationIterationsDone"),this.body.emitter.emit("_requestRedraw"),this.stabilized===!0?this._emitStabilized():this.startSimulation(),this.ready=!0}},{key:"_drawForces",value:function(e){for(var n=0;n<this.physicsBody.physicsNodeIndices.length;n++){var i=this.physicsBody.physicsNodeIndices[n],o=this.body.nodes[i],a=this.physicsBody.forces[i],s=20,l=.03,g=Math.sqrt(Math.pow(a.x,2)+Math.pow(a.x,2)),u=Math.min(Math.max(5,g),15),c=3*u,d=rE((180-Math.min(1,Math.max(0,l*g))*180)/360,1,1),h={x:o.x+s*a.x,y:o.y+s*a.y};e.lineWidth=u,e.strokeStyle=d,e.beginPath(),e.moveTo(o.x,o.y),e.lineTo(h.x,h.y),e.stroke();var A=Math.atan2(a.y,a.x);e.fillStyle=d,wH.draw(e,{type:"arrow",point:h,angle:A,length:c}),bf(e).call(e)}}}]),t}(),Dn=function(){function t(){Ae(this,t)}return fe(t,null,[{key:"getRange",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var g=0;g<n.length;g++)l=e[n[g]],a>l.shape.boundingBox.left&&(a=l.shape.boundingBox.left),s<l.shape.boundingBox.right&&(s=l.shape.boundingBox.right),i>l.shape.boundingBox.top&&(i=l.shape.boundingBox.top),o<l.shape.boundingBox.bottom&&(o=l.shape.boundingBox.bottom);return a===1e9&&s===-1e9&&i===1e9&&o===-1e9&&(i=0,o=0,a=0,s=0),{minX:a,maxX:s,minY:i,maxY:o}}},{key:"getRangeCore",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var g=0;g<n.length;g++)l=e[n[g]],a>l.x&&(a=l.x),s<l.x&&(s=l.x),i>l.y&&(i=l.y),o<l.y&&(o=l.y);return a===1e9&&s===-1e9&&i===1e9&&o===-1e9&&(i=0,o=0,a=0,s=0),{minX:a,maxX:s,minY:i,maxY:o}}},{key:"findCenter",value:function(e){return{x:.5*(e.maxX+e.minX),y:.5*(e.maxY+e.minY)}}},{key:"cloneOptions",value:function(e,n){var i={};return n===void 0||n==="node"?(Yt(i,e.options,!0),i.x=e.x,i.y=e.y,i.amountOfConnections=e.edges.length):Yt(i,e.options,!0),i}}]),t}();function Nze(t){var r=Mze();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function Mze(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var Bze=function(t){xt(e,t);var r=Nze(e);function e(n,i,o,a,s,l){var g;return Ae(this,e),g=r.call(this,n,i,o,a,s,l),g.isCluster=!0,g.containedNodes={},g.containedEdges={},g}return fe(e,[{key:"_openChildCluster",value:function(i){var o=this,a=this.body.nodes[i];if(this.containedNodes[i]===void 0)throw new Error("node with id: "+i+" not in current cluster");if(!a.isCluster)throw new Error("node with id: "+i+" is not a cluster");delete this.containedNodes[i],dt(a.edges,function(s){delete o.containedEdges[s.id]}),dt(a.containedNodes,function(s,l){o.containedNodes[l]=s}),a.containedNodes={},dt(a.containedEdges,function(s,l){o.containedEdges[l]=s}),a.containedEdges={},dt(a.edges,function(s){dt(o.edges,function(l){var g,u,c=Tt(g=l.clusteringEdgeReplacingIds).call(g,s.id);c!==-1&&(dt(s.clusteringEdgeReplacingIds,function(d){l.clusteringEdgeReplacingIds.push(d),o.body.edges[d].edgeReplacedById=l.id}),Yo(u=l.clusteringEdgeReplacingIds).call(u,c,1))})}),a.edges=[]}}]),e}(Ci),Fze=function(){function t(r){var e=this;Ae(this,t),this.body=r,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Or(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){e.clusteredNodes={},e.clusteredEdges={}})}return fe(t,[{key:"clusterByHubsize",value:function(e,n){e===void 0?e=this._getHubSize():ct(e)==="object"&&(n=this._checkOptions(e),e=this._getHubSize());for(var i=[],o=0;o<this.body.nodeIndices.length;o++){var a=this.body.nodes[this.body.nodeIndices[o]];a.edges.length>=e&&i.push(a.id)}for(var s=0;s<i.length;s++)this.clusterByConnection(i[s],n,!0);this.body.emitter.emit("_dataChanged")}},{key:"cluster",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(n.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");n=this._checkOptions(n);var o={},a={};dt(this.body.nodes,function(s,l){s.options&&n.joinCondition(s.options)===!0&&(o[l]=s,dt(s.edges,function(g){e.clusteredEdges[g.id]===void 0&&(a[g.id]=g)}))}),this._cluster(o,a,n,i)}},{key:"clusterByEdgeCount",value:function(e,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;n=this._checkOptions(n);for(var a=[],s={},l,g,u,c=function(){var f={},C={},I=i.body.nodeIndices[d],v=i.body.nodes[I];if(s[I]===void 0){u=0,g=[];for(var p=0;p<v.edges.length;p++)l=v.edges[p],i.clusteredEdges[l.id]===void 0&&(l.toId!==l.fromId&&u++,g.push(l));if(u===e){for(var y=function(M){if(n.joinCondition===void 0||n.joinCondition===null)return!0;var Q=Dn.cloneOptions(M);return n.joinCondition(Q)},b=!0,_=0;_<g.length;_++){l=g[_];var P=i._getConnectedId(l,I);if(y(v))C[l.id]=l,f[I]=v,f[P]=i.body.nodes[P],s[I]=!0;else{b=!1;break}}if(er(f).length>0&&er(C).length>0&&b===!0){var k=function(){for(var M=0;M<a.length;++M)for(var Q in f)if(a[M].nodes[Q]!==void 0)return a[M]},E=k();if(E!==void 0){for(var O in f)E.nodes[O]===void 0&&(E.nodes[O]=f[O]);for(var N in C)E.edges[N]===void 0&&(E.edges[N]=C[N])}else a.push({nodes:f,edges:C})}}}},d=0;d<this.body.nodeIndices.length;d++)c();for(var h=0;h<a.length;h++)this._cluster(a[h].nodes,a[h].edges,n,!1);o===!0&&this.body.emitter.emit("_dataChanged")}},{key:"clusterOutliers",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,n)}},{key:"clusterBridges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,n)}},{key:"clusterByConnection",value:function(e,n){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No nodeId supplied to clusterByConnection!");if(this.body.nodes[e]===void 0)throw new Error("The nodeId given to clusterByConnection does not exist!");var a=this.body.nodes[e];n=this._checkOptions(n,a),n.clusterNodeProperties.x===void 0&&(n.clusterNodeProperties.x=a.x),n.clusterNodeProperties.y===void 0&&(n.clusterNodeProperties.y=a.y),n.clusterNodeProperties.fixed===void 0&&(n.clusterNodeProperties.fixed={},n.clusterNodeProperties.fixed.x=a.options.fixed.x,n.clusterNodeProperties.fixed.y=a.options.fixed.y);var s={},l={},g=a.id,u=Dn.cloneOptions(a);s[g]=a;for(var c=0;c<a.edges.length;c++){var d=a.edges[c];if(this.clusteredEdges[d.id]===void 0){var h=this._getConnectedId(d,g);if(this.clusteredNodes[h]===void 0)if(h!==g)if(n.joinCondition===void 0)l[d.id]=d,s[h]=this.body.nodes[h];else{var A=Dn.cloneOptions(this.body.nodes[h]);n.joinCondition(u,A)===!0&&(l[d.id]=d,s[h]=this.body.nodes[h])}else l[d.id]=d}}var f=vn(i=er(s)).call(i,function(y){return s[y].id});for(var C in s)if(Object.prototype.hasOwnProperty.call(s,C))for(var I=s[C],v=0;v<I.edges.length;v++){var p=I.edges[v];Tt(f).call(f,this._getConnectedId(p,I.id))>-1&&(l[p.id]=p)}this._cluster(s,l,n,o)}},{key:"_createClusterEdges",value:function(e,n,i,o){for(var a,s,l,g,u,c,d=er(e),h=[],A=0;A<d.length;A++){s=d[A],l=e[s];for(var f=0;f<l.edges.length;f++)a=l.edges[f],this.clusteredEdges[a.id]===void 0&&(a.toId==a.fromId?n[a.id]=a:a.toId==s?(g=i.id,u=a.fromId,c=u):(g=a.toId,u=i.id,c=g),e[c]===void 0&&h.push({edge:a,fromId:u,toId:g}))}for(var C=[],I=function(P){for(var k=0;k<C.length;k++){var E=C[k],O=P.fromId===E.fromId&&P.toId===E.toId,N=P.fromId===E.toId&&P.toId===E.fromId;if(O||N)return E}return null},v=0;v<h.length;v++){var p=h[v],y=p.edge,b=I(p);b===null?(b=this._createClusteredEdge(p.fromId,p.toId,y,o),C.push(b)):b.clusteringEdgeReplacingIds.push(y.id),this.body.edges[y.id].edgeReplacedById=b.id,this._backupEdgeOptions(y),y.setOptions({physics:!1})}}},{key:"_checkOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}},{key:"_cluster",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&this.clusteredNodes[s]!==void 0&&a.push(s);for(var l=0;l<a.length;++l)delete e[a[l]];if(er(e).length!=0&&!(er(e).length==1&&i.clusterNodeProperties.allowSingleNodeCluster!=!0)){var g=Yt({},i.clusterNodeProperties);if(i.processProperties!==void 0){var u=[];for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var d=Dn.cloneOptions(e[c]);u.push(d)}var h=[];for(var A in n)if(Object.prototype.hasOwnProperty.call(n,A)&&A.substr(0,12)!=="clusterEdge:"){var f=Dn.cloneOptions(n[A],"edge");h.push(f)}if(g=i.processProperties(g,u,h),!g)throw new Error("The processProperties function does not return properties!")}g.id===void 0&&(g.id="cluster:"+fc());var C=g.id;g.label===void 0&&(g.label="cluster");var I=void 0;g.x===void 0&&(I=this._getClusterPosition(e),g.x=I.x),g.y===void 0&&(I===void 0&&(I=this._getClusterPosition(e)),g.y=I.y),g.id=C;var v=this.body.functions.createNode(g,Bze);v.containedNodes=e,v.containedEdges=n,v.clusterEdgeProperties=i.clusterEdgeProperties,this.body.nodes[g.id]=v,this._clusterEdges(e,n,g,i.clusterEdgeProperties),g.id=void 0,o===!0&&this.body.emitter.emit("_dataChanged")}}},{key:"_backupEdgeOptions",value:function(e){this.clusteredEdges[e.id]===void 0&&(this.clusteredEdges[e.id]={physics:e.options.physics})}},{key:"_restoreEdge",value:function(e){var n=this.clusteredEdges[e.id];n!==void 0&&(e.setOptions({physics:n.physics}),delete this.clusteredEdges[e.id])}},{key:"isCluster",value:function(e){return this.body.nodes[e]!==void 0?this.body.nodes[e].isCluster===!0:(console.error("Node does not exist."),!1)}},{key:"_getClusterPosition",value:function(e){for(var n=er(e),i=e[n[0]].x,o=e[n[0]].x,a=e[n[0]].y,s=e[n[0]].y,l,g=1;g<n.length;g++)l=e[n[g]],i=l.x<i?l.x:i,o=l.x>o?l.x:o,a=l.y<a?l.y:a,s=l.y>s?l.y:s;return{x:.5*(i+o),y:.5*(a+s)}}},{key:"openCluster",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");var o=this.body.nodes[e];if(o===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(o.isCluster!==!0||o.containedNodes===void 0||o.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");var a=this.findNode(e),s=Tt(a).call(a,e)-1;if(s>=0){var l=a[s],g=this.body.nodes[l];g._openChildCluster(e),delete this.body.nodes[e],i===!0&&this.body.emitter.emit("_dataChanged");return}var u=o.containedNodes,c=o.containedEdges;if(n!==void 0&&n.releaseFunction!==void 0&&typeof n.releaseFunction=="function"){var d={},h={x:o.x,y:o.y};for(var A in u)if(Object.prototype.hasOwnProperty.call(u,A)){var f=this.body.nodes[A];d[A]={x:f.x,y:f.y}}var C=n.releaseFunction(h,d);for(var I in u)if(Object.prototype.hasOwnProperty.call(u,I)){var v=this.body.nodes[I];C[I]!==void 0&&(v.x=C[I].x===void 0?o.x:C[I].x,v.y=C[I].y===void 0?o.y:C[I].y)}}else dt(u,function(oe){oe.options.fixed.x===!1&&(oe.x=o.x),oe.options.fixed.y===!1&&(oe.y=o.y)});for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)){var y=this.body.nodes[p];y.vx=o.vx,y.vy=o.vy,y.setOptions({physics:!0}),delete this.clusteredNodes[p]}for(var b=[],_=0;_<o.edges.length;_++)b.push(o.edges[_]);for(var P=0;P<b.length;P++){for(var k=b[P],E=this._getConnectedId(k,e),O=this.clusteredNodes[E],N=0;N<k.clusteringEdgeReplacingIds.length;N++){var D=k.clusteringEdgeReplacingIds[N],M=this.body.edges[D];if(M!==void 0)if(O!==void 0){var Q=this.body.nodes[O.clusterId];Q.containedEdges[M.id]=M,delete c[M.id];var j=M.fromId,W=M.toId;M.toId==E?W=O.clusterId:j=O.clusterId,this._createClusteredEdge(j,W,M,Q.clusterEdgeProperties,{hidden:!1,physics:!0})}else this._restoreEdge(M)}k.remove()}for(var q in c)Object.prototype.hasOwnProperty.call(c,q)&&this._restoreEdge(c[q]);delete this.body.nodes[e],i===!0&&this.body.emitter.emit("_dataChanged")}},{key:"getNodesInCluster",value:function(e){var n=[];if(this.isCluster(e)===!0){var i=this.body.nodes[e].containedNodes;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&n.push(this.body.nodes[o].id)}return n}},{key:"findNode",value:function(e){for(var n=[],i=100,o=0,a;this.clusteredNodes[e]!==void 0&&o<i;){if(a=this.body.nodes[e],a===void 0)return[];n.push(a.id),e=this.clusteredNodes[e].clusterId,o++}return a=this.body.nodes[e],a===void 0?[]:(n.push(a.id),gg(n).call(n),n)}},{key:"updateClusteredNode",value:function(e,n){if(e===void 0)throw new Error("No clusteredNodeId supplied to updateClusteredNode.");if(n===void 0)throw new Error("No newOptions supplied to updateClusteredNode.");if(this.body.nodes[e]===void 0)throw new Error("The clusteredNodeId supplied to updateClusteredNode does not exist.");this.body.nodes[e].setOptions(n),this.body.emitter.emit("_dataChanged")}},{key:"updateEdge",value:function(e,n){if(e===void 0)throw new Error("No startEdgeId supplied to updateEdge.");if(n===void 0)throw new Error("No newOptions supplied to updateEdge.");if(this.body.edges[e]===void 0)throw new Error("The startEdgeId supplied to updateEdge does not exist.");for(var i=this.getClusteredEdges(e),o=0;o<i.length;o++){var a=this.body.edges[i[o]];a.setOptions(n)}this.body.emitter.emit("_dataChanged")}},{key:"getClusteredEdges",value:function(e){for(var n=[],i=100,o=0;e!==void 0&&this.body.edges[e]!==void 0&&o<i;)n.push(this.body.edges[e].id),e=this.body.edges[e].edgeReplacedById,o++;return gg(n).call(n),n}},{key:"getBaseEdge",value:function(e){return this.getBaseEdges(e)[0]}},{key:"getBaseEdges",value:function(e){for(var n=[e],i=[],o=[],a=100,s=0;n.length>0&&s<a;){var l=n.pop();if(l!==void 0){var g=this.body.edges[l];if(g!==void 0){s++;var u=g.clusteringEdgeReplacingIds;if(u===void 0)o.push(l);else for(var c=0;c<u.length;++c){var d=u[c];Tt(n).call(n,u)!==-1||Tt(i).call(i,u)!==-1||n.push(d)}i.push(l)}}}return o}},{key:"_getConnectedId",value:function(e,n){return e.toId!=n?e.toId:(e.fromId!=n,e.fromId)}},{key:"_getHubSize",value:function(){for(var e=0,n=0,i=0,o=0,a=0;a<this.body.nodeIndices.length;a++){var s=this.body.nodes[this.body.nodeIndices[a]];s.edges.length>o&&(o=s.edges.length),e+=s.edges.length,n+=Math.pow(s.edges.length,2),i+=1}e=e/i,n=n/i;var l=n-Math.pow(e,2),g=Math.sqrt(l),u=Math.floor(e+2*g);return u>o&&(u=o),u}},{key:"_createClusteredEdge",value:function(e,n,i,o,a){var s=Dn.cloneOptions(i,"edge");Yt(s,o),s.from=e,s.to=n,s.id="clusterEdge:"+fc(),a!==void 0&&Yt(s,a);var l=this.body.functions.createEdge(s);return l.clusteringEdgeReplacingIds=[i.id],l.connect(),this.body.edges[l.id]=l,l}},{key:"_clusterEdges",value:function(e,n,i,o){if(n instanceof Cc){var a=n,s={};s[a.id]=a,n=s}if(e instanceof Ci){var l=e,g={};g[l.id]=l,e=g}if(i==null)throw new Error("_clusterEdges: parameter clusterNode required");o===void 0&&(o=i.clusterEdgeProperties),this._createClusterEdges(e,n,i,o);for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)&&this.body.edges[u]!==void 0){var c=this.body.edges[u];this._backupEdgeOptions(c),c.setOptions({physics:!1})}for(var d in e)Object.prototype.hasOwnProperty.call(e,d)&&(this.clusteredNodes[d]={clusterId:i.id,node:this.body.nodes[d]},this.body.nodes[d].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(e){if(e!==void 0){var n=this.clusteredNodes[e];if(n!==void 0){var i=n.clusterId;if(i!==void 0)return this.body.nodes[i]}}}},{key:"_filter",value:function(e,n){var i=[];return dt(e,function(o){n(o)&&i.push(o)}),i}},{key:"_updateState",value:function(){var e=this,n,i=[],o={},a=function(A){dt(e.body.nodes,function(f){f.isCluster===!0&&A(f)})};for(n in this.clusteredNodes)if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,n)){var s=this.body.nodes[n];s===void 0&&i.push(n)}a(function(h){for(var A=0;A<i.length;A++)delete h.containedNodes[i[A]]});for(var l=0;l<i.length;l++)delete this.clusteredNodes[i[l]];dt(this.clusteredEdges,function(h){var A=e.body.edges[h];(A===void 0||!A.endPointsValid())&&(o[h]=h)}),a(function(h){dt(h.containedEdges,function(A,f){!A.endPointsValid()&&!o[f]&&(o[f]=f)})}),dt(this.body.edges,function(h,A){var f=!0,C=h.clusteringEdgeReplacingIds;if(C!==void 0){var I=0;dt(C,function(v){var p=e.body.edges[v];p!==void 0&&p.endPointsValid()&&(I+=1)}),f=I>0}(!h.endPointsValid()||!f)&&(o[A]=A)}),a(function(h){dt(o,function(A){delete h.containedEdges[A],dt(h.edges,function(f,C){if(f.id===A){h.edges[C]=null;return}f.clusteringEdgeReplacingIds=e._filter(f.clusteringEdgeReplacingIds,function(I){return!o[I]})}),h.edges=e._filter(h.edges,function(f){return f!==null})})}),dt(o,function(h){delete e.clusteredEdges[h]}),dt(o,function(h){delete e.body.edges[h]});var g=er(this.body.edges);dt(g,function(h){var A=e.body.edges[h],f=e._isClusteredNode(A.fromId)||e._isClusteredNode(A.toId);if(f!==e._isClusteredEdge(A.id))if(f){var C=e._getClusterNodeForNode(A.fromId);C!==void 0&&e._clusterEdges(e.body.nodes[A.fromId],A,C);var I=e._getClusterNodeForNode(A.toId);I!==void 0&&e._clusterEdges(e.body.nodes[A.toId],A,I)}else delete e._clusterEdges[h],e._restoreEdge(A)});for(var u=!1,c=!0,d=function(){var A=[];a(function(C){var I=er(C.containedNodes).length,v=C.options.allowSingleNodeCluster===!0;(v&&I<1||!v&&I<2)&&A.push(C.id)});for(var f=0;f<A.length;++f)e.openCluster(A[f],{},!1);c=A.length>0,u=u||c};c;)d();u&&this._updateState()}},{key:"_isClusteredNode",value:function(e){return this.clusteredNodes[e]!==void 0}},{key:"_isClusteredEdge",value:function(e){return this.clusteredEdges[e]!==void 0}}]),t}();function Lze(){var t;window!==void 0&&(t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),t===void 0?window.requestAnimationFrame=function(r){r()}:window.requestAnimationFrame=t}var zze=function(){function t(r,e){Ae(this,t),Lze(),this.body=r,this.canvas=e,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Or(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return fe(t,[{key:"bindEventListeners",value:function(){var e=this,n;this.body.emitter.on("dragStart",function(){e.dragging=!0}),this.body.emitter.on("dragEnd",function(){e.dragging=!1}),this.body.emitter.on("zoom",function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=mo(function(){var i;e.zooming=!1,ue(i=e._requestRedraw).call(i,e)()},250)}),this.body.emitter.on("_resizeNodes",function(){e._resizeNodes()}),this.body.emitter.on("_redraw",function(){e.renderingActive===!1&&e._redraw()}),this.body.emitter.on("_blockRedraw",function(){e.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){e.allowRedraw=!0,e.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",ue(n=this._requestRedraw).call(n,this)),this.body.emitter.on("_startRendering",function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()}),this.body.emitter.on("_stopRendering",function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0}),this.body.emitter.on("destroy",function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,e.requiresTimeout===!0?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()})}},{key:"setOptions",value:function(e){if(e!==void 0){var n=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"];wd(n,this.options,e)}}},{key:"_requestNextFrame",value:function(e,n){if(!(typeof window>"u")){var i,o=window;return this.requiresTimeout===!0?i=mo(e,n):o.requestAnimationFrame&&(i=o.requestAnimationFrame(e)),i}}},{key:"_startRendering",value:function(){if(this.renderingActive===!0&&this.renderTimer===void 0){var e;this.renderTimer=this._requestNextFrame(ue(e=this._renderStep).call(e,this),this.simulationInterval)}}},{key:"_renderStep",value:function(){this.renderingActive===!0&&(this.renderTimer=void 0,this.requiresTimeout===!0&&this._startRendering(),this._redraw(),this.requiresTimeout===!1&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var e=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this._requestNextFrame(function(){e._redraw(!1)},0))}},{key:"_redraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var n={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();var i=this.canvas.getContext(),o=this.canvas.frame.canvas.clientWidth,a=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,o,a),this.canvas.frame.clientWidth===0)return;if(i.save(),i.translate(this.body.view.translation.x,this.body.view.translation.y),i.scale(this.body.view.scale,this.body.view.scale),i.beginPath(),this.body.emitter.emit("beforeDrawing",i),i.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawEdges(i),this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1){var s=this._drawNodes(i,e),l=s.drawExternalLabels;n.drawExternalLabels=l}e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawArrows(i),n.drawExternalLabels!=null&&n.drawExternalLabels(),e===!1&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit("afterDrawing",i),i.closePath(),i.restore(),e===!0&&i.clearRect(0,0,o,a)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var e=this.canvas.getContext();e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);var n=this.body.nodes,i;for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i=n[o],i.resize(e),i.updateBoundingBox(e,i.selected));e.restore()}},{key:"_drawNodes",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.nodes,o=this.body.nodeIndices,a,s=[],l=[],g=20,u=this.canvas.DOMtoCanvas({x:-g,y:-g}),c=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+g,y:this.canvas.frame.canvas.clientHeight+g}),d={top:u.y,left:u.x,bottom:c.y,right:c.x},h=[],A=0;A<o.length;A++)if(a=i[o[A]],a.hover)l.push(o[A]);else if(a.isSelected())s.push(o[A]);else if(n===!0){var f=a.draw(e);f.drawExternalLabel!=null&&h.push(f.drawExternalLabel)}else if(a.isBoundingBoxOverlappingWith(d)===!0){var C=a.draw(e);C.drawExternalLabel!=null&&h.push(C.drawExternalLabel)}else a.updateBoundingBox(e,a.selected);var I,v=s.length,p=l.length;for(I=0;I<v;I++){a=i[s[I]];var y=a.draw(e);y.drawExternalLabel!=null&&h.push(y.drawExternalLabel)}for(I=0;I<p;I++){a=i[l[I]];var b=a.draw(e);b.drawExternalLabel!=null&&h.push(b.drawExternalLabel)}return{drawExternalLabels:function(){for(var P=0,k=h;P<k.length;P++){var E=k[P];E()}}}}},{key:"_drawEdges",value:function(e){for(var n=this.body.edges,i=this.body.edgeIndices,o=0;o<i.length;o++){var a=n[i[o]];a.connected===!0&&a.draw(e)}}},{key:"_drawArrows",value:function(e){for(var n=this.body.edges,i=this.body.edgeIndices,o=0;o<i.length;o++){var a=n[i[o]];a.connected===!0&&a.drawArrows(e)}}},{key:"_determineBrowserMethod",value:function(){if(typeof window<"u"){var e=navigator.userAgent.toLowerCase();this.requiresTimeout=!1,Tt(e).call(e,"msie 9.0")!=-1?this.requiresTimeout=!0:Tt(e).call(e,"safari")!=-1&&Tt(e).call(e,"chrome")<=-1&&(this.requiresTimeout=!0)}else this.requiresTimeout=!0}},{key:"_drawSelectionBox",value:function(e){if(this.body.selectionBox.show){e.beginPath();var n=this.body.selectionBox.position.end.x-this.body.selectionBox.position.start.x,i=this.body.selectionBox.position.end.y-this.body.selectionBox.position.start.y;e.rect(this.body.selectionBox.position.start.x,this.body.selectionBox.position.start.y,n,i),e.fillStyle="rgba(151, 194, 252, 0.2)",e.fillRect(this.body.selectionBox.position.start.x,this.body.selectionBox.position.start.y,n,i),e.strokeStyle="rgba(151, 194, 252, 1)",e.stroke()}else e.closePath()}}]),t}(),jze=wt,Vze=jze.setInterval,Gze=Vze,Wze=Te(Gze);function zp(t,r){r.inputHandler=function(e){e.isFirst&&r(e)},t.on("hammer.input",r.inputHandler)}function SH(t,r){return r.inputHandler=function(e){e.isFinal&&r(e)},t.on("hammer.input",r.inputHandler)}var Hze=function(){function t(r){Ae(this,t),this.body=r,this.pixelRatio=1,this.cameraState={},this.initialized=!1,this.canvasViewCenter={},this._cleanupCallbacks=[],this.options={},this.defaultOptions={autoResize:!0,height:"100%",width:"100%"},Or(this.options,this.defaultOptions),this.bindEventListeners()}return fe(t,[{key:"bindEventListeners",value:function(){var e=this,n;this.body.emitter.once("resize",function(i){i.width!==0&&(e.body.view.translation.x=i.width*.5),i.height!==0&&(e.body.view.translation.y=i.height*.5)}),this.body.emitter.on("setSize",ue(n=this.setSize).call(n,this)),this.body.emitter.on("destroy",function(){e.hammerFrame.destroy(),e.hammer.destroy(),e._cleanUp()})}},{key:"setOptions",value:function(e){var n=this;if(e!==void 0){var i=["width","height","autoResize"];wd(i,this.options,e)}if(this._cleanUp(),this.options.autoResize===!0){var o;if(window.ResizeObserver){var a=new ResizeObserver(function(){var u=n.setSize();u===!0&&n.body.emitter.emit("_requestRedraw")}),s=this.frame;a.observe(s),this._cleanupCallbacks.push(function(){a.unobserve(s)})}else{var l=Wze(function(){var u=n.setSize();u===!0&&n.body.emitter.emit("_requestRedraw")},1e3);this._cleanupCallbacks.push(function(){clearInterval(l)})}var g=ue(o=this._onResize).call(o,this);window.addEventListener("resize",g),this._cleanupCallbacks.push(function(){window.removeEventListener("resize",g)})}}},{key:"_cleanUp",value:function(){var e,n,i;Et(e=gg(n=Yo(i=this._cleanupCallbacks).call(i,0)).call(n)).call(e,function(o){try{o()}catch(a){console.error(a)}})}},{key:"_onResize",value:function(){this.setSize(),this.body.emitter.emit("_redraw")}},{key:"_getCameraState",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}},{key:"_setCameraState",value:function(){if(this.cameraState.scale!==void 0&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,n=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;e!=1&&n!=1?i=this.cameraState.scale*.5*(e+n):e!=1?i=this.cameraState.scale*e:n!=1&&(i=this.cameraState.scale*n),this.body.view.scale=i;var o=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),a={x:o.x-this.cameraState.position.x,y:o.y-this.cameraState.position.y};this.body.view.translation.x+=a.x*this.body.view.scale,this.body.view.translation.y+=a.y*this.body.view.scale}}},{key:"_prepareValue",value:function(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if(Tt(e).call(e,"%")!==-1||Tt(e).call(e,"px")!==-1)return e;if(Tt(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var e=this;this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new dc(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:dc.DIRECTION_ALL}),zp(this.hammer,function(n){e.body.eventListeners.onTouch(n)}),this.hammer.on("tap",function(n){e.body.eventListeners.onTap(n)}),this.hammer.on("doubletap",function(n){e.body.eventListeners.onDoubleTap(n)}),this.hammer.on("press",function(n){e.body.eventListeners.onHold(n)}),this.hammer.on("panstart",function(n){e.body.eventListeners.onDragStart(n)}),this.hammer.on("panmove",function(n){e.body.eventListeners.onDrag(n)}),this.hammer.on("panend",function(n){e.body.eventListeners.onDragEnd(n)}),this.hammer.on("pinch",function(n){e.body.eventListeners.onPinch(n)}),this.frame.canvas.addEventListener("wheel",function(n){e.body.eventListeners.onMouseWheel(n)}),this.frame.canvas.addEventListener("mousemove",function(n){e.body.eventListeners.onMouseMove(n)}),this.frame.canvas.addEventListener("contextmenu",function(n){e.body.eventListeners.onContext(n)}),this.hammerFrame=new dc(this.frame),SH(this.hammerFrame,function(n){e.body.eventListeners.onRelease(n)})}},{key:"setSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),n=this._prepareValue(n);var i=!1,o=this.frame.canvas.width,a=this.frame.canvas.height,s=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||n!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=n)this._getCameraState(s),this.frame.style.width=e,this.frame.style.height=n,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=n,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{var l=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),g=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==l||this.frame.canvas.height!==g)&&this._getCameraState(s),this.frame.canvas.width!==l&&(this.frame.canvas.width=l,i=!0),this.frame.canvas.height!==g&&(this.frame.canvas.height=g,i=!0)}return i===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(o/this.pixelRatio),oldHeight:Math.round(a/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");var n=1;typeof window<"u"&&(n=window.devicePixelRatio||1);var i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/i}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}},{key:"DOMtoCanvas",value:function(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}]),t}();function Uze(t,r){var e=Or({nodes:r,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},t??{});if(!lt(e.nodes))throw new TypeError("Nodes has to be an array of ids.");if(e.nodes.length===0&&(e.nodes=r),!(typeof e.minZoomLevel=="number"&&e.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof e.maxZoomLevel=="number"&&e.minZoomLevel<=e.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return e}var Zze=function(){function t(r,e){var n,i=this,o;Ae(this,t),this.body=r,this.canvas=e,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",ue(n=this.fit).call(n,this)),this.body.emitter.on("animationFinished",function(){i.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",ue(o=this.releaseNode).call(o,this))}return fe(t,[{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}},{key:"fit",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=Uze(e,this.body.nodeIndices);var i=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight,a,s;if(i===0||o===0)s=1,a=Dn.getRange(this.body.nodes,e.nodes);else if(n===!0){var l=0;for(var g in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,g)){var u=this.body.nodes[g];u.predefinedPosition===!0&&(l+=1)}if(l>.5*this.body.nodeIndices.length){this.fit(e,!1);return}a=Dn.getRange(this.body.nodes,e.nodes);var c=this.body.nodeIndices.length;s=12.662/(c+7.4147)+.0964822;var d=Math.min(i/600,o/600);s*=d}else{this.body.emitter.emit("_resizeNodes"),a=Dn.getRange(this.body.nodes,e.nodes);var h=Math.abs(a.maxX-a.minX)*1.1,A=Math.abs(a.maxY-a.minY)*1.1,f=i/h,C=o/A;s=f<=C?f:C}s>e.maxZoomLevel?s=e.maxZoomLevel:s<e.minZoomLevel&&(s=e.minZoomLevel);var I=Dn.findCenter(a),v={position:I,scale:s,animation:e.animation};this.moveTo(v)}},{key:"focus",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){var i={x:this.body.nodes[e].x,y:this.body.nodes[e].y};n.position=i,n.lockedOnNode=e,this.moveTo(n)}else console.error("Node: "+e+" cannot be found.")}},{key:"moveTo",value:function(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!Ql(e.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else e.offset.x=0;if(e.offset.y!=null){if(e.offset.y=+e.offset.y,!Ql(e.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else e.offset.x=0}else e.offset={x:0,y:0};if(e.position!=null){if(e.position.x!=null){if(e.position.x=+e.position.x,!Ql(e.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else e.position.x=0;if(e.position.y!=null){if(e.position.y=+e.position.y,!Ql(e.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else e.position.x=0}else e.position=this.getViewPosition();if(e.scale!=null){if(e.scale=+e.scale,!(e.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else e.scale=this.body.view.scale;e.animation===void 0&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),e.animation.duration===void 0&&(e.animation.duration=1e3),e.animation.easingFunction===void 0&&(e.animation.easingFunction="easeInOutQuad"),this.animateView(e)}},{key:"animateView",value:function(e){if(e!==void 0){this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),this.easingTime!=0&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;var n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:n.x-e.position.x,y:n.y-e.position.y};if(this.targetTranslation={x:this.sourceTranslation.x+i.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+i.y*this.targetScale+e.offset.y},e.animation.duration===0)if(this.lockedOnNodeId!=null){var o;this.viewFunction=ue(o=this._lockedRedraw).call(o,this),this.body.emitter.on("initRedraw",this.viewFunction)}else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else{var a;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=ue(a=this._transitionRedraw).call(a,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}}},{key:"_lockedRedraw",value:function(){var e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:n.x-e.x,y:n.y-e.y},o=this.body.view.translation,a={x:o.x+i.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+i.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=a}},{key:"releaseNode",value:function(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;var n=Ike[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*n,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*n,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*n},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var i;this.viewFunction=ue(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}(),Kze=`div.vis-network div.vis-navigation div.vis-button {
|
|
734
734
|
width: 34px;
|
|
735
735
|
height: 34px;
|
|
736
736
|
-moz-border-radius: 17px;
|
|
@@ -792,7 +792,7 @@ div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends {
|
|
|
792
792
|
right: 15px;
|
|
793
793
|
}
|
|
794
794
|
`;Yg(Kze);function KM(t){var r=t&&t.preventDefault||!1,e=t&&t.container||window,n={},i={keydown:{},keyup:{}},o={},a;for(a=97;a<=122;a++)o[String.fromCharCode(a)]={code:65+(a-97),shift:!1};for(a=65;a<=90;a++)o[String.fromCharCode(a)]={code:a,shift:!0};for(a=0;a<=9;a++)o[""+a]={code:48+a,shift:!1};for(a=1;a<=12;a++)o["F"+a]={code:111+a,shift:!1};for(a=0;a<=9;a++)o["num"+a]={code:96+a,shift:!1};o["num*"]={code:106,shift:!1},o["num+"]={code:107,shift:!1},o["num-"]={code:109,shift:!1},o["num/"]={code:111,shift:!1},o["num."]={code:110,shift:!1},o.left={code:37,shift:!1},o.up={code:38,shift:!1},o.right={code:39,shift:!1},o.down={code:40,shift:!1},o.space={code:32,shift:!1},o.enter={code:13,shift:!1},o.shift={code:16,shift:void 0},o.esc={code:27,shift:!1},o.backspace={code:8,shift:!1},o.tab={code:9,shift:!1},o.ctrl={code:17,shift:!1},o.alt={code:18,shift:!1},o.delete={code:46,shift:!1},o.pageup={code:33,shift:!1},o.pagedown={code:34,shift:!1},o["="]={code:187,shift:!1},o["-"]={code:189,shift:!1},o["]"]={code:221,shift:!1},o["["]={code:219,shift:!1};var s=function(u){g(u,"keydown")},l=function(u){g(u,"keyup")},g=function(u,c){if(i[c][u.keyCode]!==void 0){for(var d=i[c][u.keyCode],h=0;h<d.length;h++)(d[h].shift===void 0||d[h].shift==!0&&u.shiftKey==!0||d[h].shift==!1&&u.shiftKey==!1)&&d[h].fn(u);r==!0&&u.preventDefault()}};return n.bind=function(u,c,d){if(d===void 0&&(d="keydown"),o[u]===void 0)throw new Error("unsupported key: "+u);i[d][o[u].code]===void 0&&(i[d][o[u].code]=[]),i[d][o[u].code].push({fn:c,shift:o[u].shift})},n.bindAll=function(u,c){c===void 0&&(c="keydown");for(var d in o)o.hasOwnProperty(d)&&n.bind(d,u,c)},n.getKey=function(u){for(var c in o)if(o.hasOwnProperty(c)){if(u.shiftKey==!0&&o[c].shift==!0&&u.keyCode==o[c].code)return c;if(u.shiftKey==!1&&o[c].shift==!1&&u.keyCode==o[c].code)return c;if(u.keyCode==o[c].code&&c=="shift")return c}return"unknown key, currently not supported"},n.unbind=function(u,c,d){if(d===void 0&&(d="keydown"),o[u]===void 0)throw new Error("unsupported key: "+u);if(c!==void 0){var h=[],A=i[d][o[u].code];if(A!==void 0)for(var f=0;f<A.length;f++)A[f].fn==c&&A[f].shift==o[u].shift||h.push(i[d][o[u].code][f]);i[d][o[u].code]=h}else i[d][o[u].code]=[]},n.reset=function(){i={keydown:{},keyup:{}}},n.destroy=function(){i={keydown:{},keyup:{}},e.removeEventListener("keydown",s,!0),e.removeEventListener("keyup",l,!0)},e.addEventListener("keydown",s,!0),e.addEventListener("keyup",l,!0),n}var Yze=function(){function t(r,e){var n=this;Ae(this,t),this.body=r,this.canvas=e,this.iconsCreated=!1,this.navigationHammers=[],this.boundFunctions={},this.touchTime=0,this.activated=!1,this.body.emitter.on("activate",function(){n.activated=!0,n.configureKeyboardBindings()}),this.body.emitter.on("deactivate",function(){n.activated=!1,n.configureKeyboardBindings()}),this.body.emitter.on("destroy",function(){n.keycharm!==void 0&&n.keycharm.destroy()}),this.options={}}return fe(t,[{key:"setOptions",value:function(e){e!==void 0&&(this.options=e,this.create())}},{key:"create",value:function(){this.options.navigationButtons===!0?this.iconsCreated===!1&&this.loadNavigationElements():this.iconsCreated===!0&&this.cleanNavigation(),this.configureKeyboardBindings()}},{key:"cleanNavigation",value:function(){if(this.navigationHammers.length!=0){for(var e=0;e<this.navigationHammers.length;e++)this.navigationHammers[e].destroy();this.navigationHammers=[]}this.navigationDOM&&this.navigationDOM.wrapper&&this.navigationDOM.wrapper.parentNode&&this.navigationDOM.wrapper.parentNode.removeChild(this.navigationDOM.wrapper),this.iconsCreated=!1}},{key:"loadNavigationElements",value:function(){var e=this;this.cleanNavigation(),this.navigationDOM={};var n=["up","down","left","right","zoomIn","zoomOut","zoomExtends"],i=["_moveUp","_moveDown","_moveLeft","_moveRight","_zoomIn","_zoomOut","_fit"];this.navigationDOM.wrapper=document.createElement("div"),this.navigationDOM.wrapper.className="vis-navigation",this.canvas.frame.appendChild(this.navigationDOM.wrapper);for(var o=0;o<n.length;o++){this.navigationDOM[n[o]]=document.createElement("div"),this.navigationDOM[n[o]].className="vis-button vis-"+n[o],this.navigationDOM.wrapper.appendChild(this.navigationDOM[n[o]]);var a=new dc(this.navigationDOM[n[o]]);if(i[o]==="_fit"){var s;zp(a,ue(s=this._fit).call(s,this))}else{var l;zp(a,ue(l=this.bindToRedraw).call(l,this,i[o]))}this.navigationHammers.push(a)}var g=new dc(this.canvas.frame);SH(g,function(){e._stopMovement()}),this.navigationHammers.push(g),this.iconsCreated=!0}},{key:"bindToRedraw",value:function(e){if(this.boundFunctions[e]===void 0){var n;this.boundFunctions[e]=ue(n=this[e]).call(n,this),this.body.emitter.on("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_startRendering")}}},{key:"unbindFromRedraw",value:function(e){this.boundFunctions[e]!==void 0&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"),delete this.boundFunctions[e])}},{key:"_fit",value:function(){new Date().valueOf()-this.touchTime>700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}},{key:"_stopMovement",value:function(){for(var e in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var e=this.body.view.scale,n=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=n/e,a=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=n,this.body.view.translation={x:a,y:s},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var e=this.body.view.scale,n=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=n/e,a=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=n,this.body.view.translation={x:a,y:s},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var e=this;if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=KM({container:window,preventDefault:!0}):this.keycharm=KM({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var n,i,o,a,s,l,g,u,c,d,h,A,f,C,I,v,p,y,b,_,P,k,E,O;ue(n=this.keycharm).call(n,"up",function(){e.bindToRedraw("_moveUp")},"keydown"),ue(i=this.keycharm).call(i,"down",function(){e.bindToRedraw("_moveDown")},"keydown"),ue(o=this.keycharm).call(o,"left",function(){e.bindToRedraw("_moveLeft")},"keydown"),ue(a=this.keycharm).call(a,"right",function(){e.bindToRedraw("_moveRight")},"keydown"),ue(s=this.keycharm).call(s,"=",function(){e.bindToRedraw("_zoomIn")},"keydown"),ue(l=this.keycharm).call(l,"num+",function(){e.bindToRedraw("_zoomIn")},"keydown"),ue(g=this.keycharm).call(g,"num-",function(){e.bindToRedraw("_zoomOut")},"keydown"),ue(u=this.keycharm).call(u,"-",function(){e.bindToRedraw("_zoomOut")},"keydown"),ue(c=this.keycharm).call(c,"[",function(){e.bindToRedraw("_zoomOut")},"keydown"),ue(d=this.keycharm).call(d,"]",function(){e.bindToRedraw("_zoomIn")},"keydown"),ue(h=this.keycharm).call(h,"pageup",function(){e.bindToRedraw("_zoomIn")},"keydown"),ue(A=this.keycharm).call(A,"pagedown",function(){e.bindToRedraw("_zoomOut")},"keydown"),ue(f=this.keycharm).call(f,"up",function(){e.unbindFromRedraw("_moveUp")},"keyup"),ue(C=this.keycharm).call(C,"down",function(){e.unbindFromRedraw("_moveDown")},"keyup"),ue(I=this.keycharm).call(I,"left",function(){e.unbindFromRedraw("_moveLeft")},"keyup"),ue(v=this.keycharm).call(v,"right",function(){e.unbindFromRedraw("_moveRight")},"keyup"),ue(p=this.keycharm).call(p,"=",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),ue(y=this.keycharm).call(y,"num+",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),ue(b=this.keycharm).call(b,"num-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),ue(_=this.keycharm).call(_,"-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),ue(P=this.keycharm).call(P,"[",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),ue(k=this.keycharm).call(k,"]",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),ue(E=this.keycharm).call(E,"pageup",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),ue(O=this.keycharm).call(O,"pagedown",function(){e.unbindFromRedraw("_zoomOut")},"keyup")}}}]),t}();function Xze(t,r){var e=typeof Za<"u"&&pl(t)||t["@@iterator"];if(!e){if(lt(t)||(e=Qze(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(g){throw g},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
795
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function Qze(t,r){var e;if(t){if(typeof t=="string")return YM(t,r);var n=Wr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return vl(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YM(t,r)}}function YM(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var qze=function(){function t(r,e,n){var i,o,a,s,l,g,u,c,d,h,A,f,C;Ae(this,t),this.body=r,this.canvas=e,this.selectionHandler=n,this.navigationHandler=new Yze(r,e),this.body.eventListeners.onTap=ue(i=this.onTap).call(i,this),this.body.eventListeners.onTouch=ue(o=this.onTouch).call(o,this),this.body.eventListeners.onDoubleTap=ue(a=this.onDoubleTap).call(a,this),this.body.eventListeners.onHold=ue(s=this.onHold).call(s,this),this.body.eventListeners.onDragStart=ue(l=this.onDragStart).call(l,this),this.body.eventListeners.onDrag=ue(g=this.onDrag).call(g,this),this.body.eventListeners.onDragEnd=ue(u=this.onDragEnd).call(u,this),this.body.eventListeners.onMouseWheel=ue(c=this.onMouseWheel).call(c,this),this.body.eventListeners.onPinch=ue(d=this.onPinch).call(d,this),this.body.eventListeners.onMouseMove=ue(h=this.onMouseMove).call(h,this),this.body.eventListeners.onRelease=ue(A=this.onRelease).call(A,this),this.body.eventListeners.onContext=ue(f=this.onContext).call(f,this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=ue(C=this.getPointer).call(C,this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0,autoFocus:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0,zoomSpeed:1},Or(this.options,this.defaultOptions),this.bindEventListeners()}return fe(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("destroy",function(){clearTimeout(e.popupTimer),delete e.body.functions.getPointer})}},{key:"setOptions",value:function(e){if(e!==void 0){var n=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"];Pp(n,this.options,e),Bi(this.options,e,"keyboard"),e.tooltip&&(Or(this.options.tooltip,e.tooltip),e.tooltip.color&&(this.options.tooltip.color=tE(e.tooltip.color)))}this.navigationHandler.setOptions(this.options)}},{key:"getPointer",value:function(e){return{x:e.x-hke(this.canvas.frame.canvas),y:e.y-Ake(this.canvas.frame.canvas)}}},{key:"onTouch",value:function(e){new Date().valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}},{key:"onTap",value:function(e){var n=this.getPointer(e.center),i=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n)}},{key:"onDoubleTap",value:function(e){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,n)}},{key:"onHold",value:function(e){var n=this.getPointer(e.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n),this.selectionHandler.generateClickEvent("hold",e,n)}},{key:"onRelease",value:function(e){if(new Date().valueOf()-this.touchTime>10){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,n),this.touchTime=new Date().valueOf()}}},{key:"onContext",value:function(e){var n=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,n)}},{key:"checkSelectionChanges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}},{key:"_determineDifference",value:function(e,n){var i=function(a,s){for(var l=[],g=0;g<a.length;g++){var u=a[g];Tt(s).call(s,u)===-1&&l.push(u)}return l};return{nodes:i(e.nodes,n.nodes),edges:i(e.edges,n.edges)}}},{key:"onDragStart",value:function(e){if(!this.drag.dragging){this.drag.pointer===void 0&&this.onTouch(e);var n=this.selectionHandler.getNodeAt(this.drag.pointer);if(this.drag.dragging=!0,this.drag.selection=[],this.drag.translation=Or({},this.body.view.translation),this.drag.nodeId=void 0,e.srcEvent.shiftKey){this.body.selectionBox.show=!0;var i=this.getPointer(e.center);this.body.selectionBox.position.start={x:this.canvas._XconvertDOMtoCanvas(i.x),y:this.canvas._YconvertDOMtoCanvas(i.y)},this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(i.x),y:this.canvas._YconvertDOMtoCanvas(i.y)}}else if(n!==void 0&&this.options.dragNodes===!0){this.drag.nodeId=n.id,n.isSelected()===!1&&this.selectionHandler.setSelection({nodes:[n.id]}),this.selectionHandler.generateClickEvent("dragStart",e,this.drag.pointer);var o=Xze(this.selectionHandler.getSelectedNodes()),a;try{for(o.s();!(a=o.n()).done;){var s=a.value,l={id:s.id,node:s,x:s.x,y:s.y,xFixed:s.options.fixed.x,yFixed:s.options.fixed.y};s.options.fixed.x=!0,s.options.fixed.y=!0,this.drag.selection.push(l)}}catch(g){o.e(g)}finally{o.f()}}else this.selectionHandler.generateClickEvent("dragStart",e,this.drag.pointer,void 0,!0)}}},{key:"onDrag",value:function(e){var n=this;if(this.drag.pinched!==!0){this.body.emitter.emit("unlockNode");var i=this.getPointer(e.center),o=this.drag.selection;if(o&&o.length&&this.options.dragNodes===!0){this.selectionHandler.generateClickEvent("dragging",e,i);var a=i.x-this.drag.pointer.x,s=i.y-this.drag.pointer.y;Et(o).call(o,function(u){var c=u.node;u.xFixed===!1&&(c.x=n.canvas._XconvertDOMtoCanvas(n.canvas._XconvertCanvasToDOM(u.x)+a)),u.yFixed===!1&&(c.y=n.canvas._YconvertDOMtoCanvas(n.canvas._YconvertCanvasToDOM(u.y)+s))}),this.body.emitter.emit("startSimulation")}else{if(e.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",e,i,void 0,!0),this.drag.pointer===void 0){this.onDragStart(e);return}this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(i.x),y:this.canvas._YconvertDOMtoCanvas(i.y)},this.body.emitter.emit("_requestRedraw")}if(this.options.dragView===!0&&!e.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",e,i,void 0,!0),this.drag.pointer===void 0){this.onDragStart(e);return}var l=i.x-this.drag.pointer.x,g=i.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+l,y:this.drag.translation.y+g},this.body.emitter.emit("_requestRedraw")}}}}},{key:"onDragEnd",value:function(e){var n=this;if(this.drag.dragging=!1,this.body.selectionBox.show){var i;this.body.selectionBox.show=!1;var o=this.body.selectionBox.position,a={minX:Math.min(o.start.x,o.end.x),minY:Math.min(o.start.y,o.end.y),maxX:Math.max(o.start.x,o.end.x),maxY:Math.max(o.start.y,o.end.y)},s=Mr(i=this.body.nodeIndices).call(i,function(u){var c=n.body.nodes[u];return c.x>=a.minX&&c.x<=a.maxX&&c.y>=a.minY&&c.y<=a.maxY});Et(s).call(s,function(u){return n.selectionHandler.selectObject(n.body.nodes[u])});var l=this.getPointer(e.center);this.selectionHandler.commitAndEmit(l,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var g=this.drag.selection;g&&g.length?(Et(g).call(g,function(u){u.node.options.fixed.x=u.xFixed,u.node.options.fixed.y=u.yFixed}),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(e){var n=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);var i=this.pinch.scale*e.scale;this.zoom(i,n)}},{key:"zoom",value:function(e,n){if(this.options.zoomView===!0){var i=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);var o=void 0;this.drag!==void 0&&this.drag.dragging===!0&&(o=this.canvas.DOMtoCanvas(this.drag.pointer));var a=this.body.view.translation,s=e/i,l=(1-s)*n.x+a.x*s,g=(1-s)*n.y+a.y*s;if(this.body.view.scale=e,this.body.view.translation={x:l,y:g},o!=null){var u=this.canvas.canvasToDOM(o);this.drag.pointer.x=u.x,this.drag.pointer.y=u.y}this.body.emitter.emit("_requestRedraw"),i<e?this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:n}):this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:n})}}},{key:"onMouseWheel",value:function(e){if(this.options.zoomView===!0){if(e.deltaY!==0){var n=this.body.view.scale;n*=1+(e.deltaY<0?1:-1)*(this.options.zoomSpeed*.1);var i=this.getPointer({x:e.clientX,y:e.clientY});this.zoom(n,i)}e.preventDefault()}}},{key:"onMouseMove",value:function(e){var n=this,i=this.getPointer({x:e.clientX,y:e.clientY}),o=!1;this.popup!==void 0&&(this.popup.hidden===!1&&this._checkHidePopup(i),this.popup.hidden===!1&&(o=!0,this.popup.setPosition(i.x+3,i.y-5),this.popup.show())),this.options.keyboard.autoFocus&&this.options.keyboard.bindToWindow===!1&&this.options.keyboard.enabled===!0&&this.canvas.frame.focus(),o===!1&&(this.popupTimer!==void 0&&(clearInterval(this.popupTimer),this.popupTimer=void 0),this.drag.dragging||(this.popupTimer=mo(function(){return n._checkShowPopup(i)},this.options.tooltipDelay))),this.options.hover===!0&&this.selectionHandler.hoverObject(e,i)}},{key:"_checkShowPopup",value:function(e){var n=this.canvas._XconvertDOMtoCanvas(e.x),i=this.canvas._YconvertDOMtoCanvas(e.y),o={left:n,top:i,right:n,bottom:i},a=this.popupObj===void 0?void 0:this.popupObj.id,s=!1,l="node";if(this.popupObj===void 0){for(var g=this.body.nodeIndices,u=this.body.nodes,c,d=[],h=0;h<g.length;h++)c=u[g[h]],c.isOverlappingWith(o)===!0&&(s=!0,c.getTitle()!==void 0&&d.push(g[h]));d.length>0&&(this.popupObj=u[d[d.length-1]],s=!0)}if(this.popupObj===void 0&&s===!1){for(var A=this.body.edgeIndices,f=this.body.edges,C,I=[],v=0;v<A.length;v++)C=f[A[v]],C.isOverlappingWith(o)===!0&&C.connected===!0&&C.getTitle()!==void 0&&I.push(A[v]);I.length>0&&(this.popupObj=f[I[I.length-1]],l="edge")}this.popupObj!==void 0?this.popupObj.id!==a&&(this.popup===void 0&&(this.popup=new _ke(this.canvas.frame)),this.popup.popupTargetType=l,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):this.popup!==void 0&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(e){var n=this.selectionHandler._pointerToPositionObject(e),i=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(n),i===!0)){var o=this.selectionHandler.getNodeAt(e);i=o===void 0?!1:o.id===this.popup.popupTargetId}}else this.selectionHandler.getNodeAt(e)===void 0&&this.body.edges[this.popup.popupTargetId]!==void 0&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(n));i===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),Jze=kt,XM=TT,fI=vy.getWeakData,e4e=py,t4e=Vn,r4e=Kg,m1=Pr,n4e=bl,TH=yl,QM=vr,OH=Il,i4e=OH.set,o4e=OH.getterFor,a4e=TH.find,s4e=TH.findIndex,l4e=Jze([].splice),g4e=0,CI=function(t){return t.frozen||(t.frozen=new kH)},kH=function(){this.entries=[]},y1=function(t,r){return a4e(t.entries,function(e){return e[0]===r})};kH.prototype={get:function(t){var r=y1(this,t);if(r)return r[1]},has:function(t){return!!y1(this,t)},set:function(t,r){var e=y1(this,t);e?e[1]=r:this.entries.push([t,r])},delete:function(t){var r=s4e(this.entries,function(e){return e[0]===t});return~r&&l4e(this.entries,r,1),!!~r}};var u4e={getConstructor:function(t,r,e,n){var i=t(function(l,g){e4e(l,o),i4e(l,{type:r,id:g4e++,frozen:void 0}),r4e(g)||n4e(g,l[n],{that:l,AS_ENTRIES:e})}),o=i.prototype,a=o4e(r),s=function(l,g,u){var c=a(l),d=fI(t4e(g),!0);return d===!0?CI(c).set(g,u):d[c.id]=u,l};return XM(o,{delete:function(l){var g=a(this);if(!m1(l))return!1;var u=fI(l);return u===!0?CI(g).delete(l):u&&QM(u,g.id)&&delete u[g.id]},has:function(g){var u=a(this);if(!m1(g))return!1;var c=fI(g);return c===!0?CI(u).has(g):c&&QM(c,u.id)}}),XM(o,e?{get:function(g){var u=a(this);if(m1(g)){var c=fI(g);return c===!0?CI(u).get(g):c?c[u.id]:void 0}},set:function(g,u){return s(this,g,u)}}:{add:function(g){return s(this,g,!0)}}),i}},c4e=pW,qM=Ut,Ev=kt,JM=TT,d4e=vy,h4e=ST,xH=u4e,II=Pr,vI=Il.enforce,A4e=yt,f4e=YV,Rf=Object,C4e=Array.isArray,pI=Rf.isExtensible,PH=Rf.isFrozen,I4e=Rf.isSealed,RH=Rf.freeze,v4e=Rf.seal,eB={},tB={},p4e=!qM.ActiveXObject&&"ActiveXObject"in qM,lh,DH=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},NH=h4e("WeakMap",DH,xH),Bu=NH.prototype,Sv=Ev(Bu.set),m4e=function(){return c4e&&A4e(function(){var t=RH([]);return Sv(new NH,t,1),!PH(t)})};if(f4e)if(p4e){lh=xH.getConstructor(DH,"WeakMap",!0),d4e.enable();var rB=Ev(Bu.delete),mI=Ev(Bu.has),nB=Ev(Bu.get);JM(Bu,{delete:function(t){if(II(t)&&!pI(t)){var r=vI(this);return r.frozen||(r.frozen=new lh),rB(this,t)||r.frozen.delete(t)}return rB(this,t)},has:function(r){if(II(r)&&!pI(r)){var e=vI(this);return e.frozen||(e.frozen=new lh),mI(this,r)||e.frozen.has(r)}return mI(this,r)},get:function(r){if(II(r)&&!pI(r)){var e=vI(this);return e.frozen||(e.frozen=new lh),mI(this,r)?nB(this,r):e.frozen.get(r)}return nB(this,r)},set:function(r,e){if(II(r)&&!pI(r)){var n=vI(this);n.frozen||(n.frozen=new lh),mI(this,r)?Sv(this,r,e):n.frozen.set(r,e)}else Sv(this,r,e);return this}})}else m4e()&&JM(Bu,{set:function(r,e){var n;return C4e(r)&&(PH(r)?n=eB:I4e(r)&&(n=tB)),Sv(this,r,e),n===eB&&RH(r),n===tB&&v4e(r),this}});var y4e=$t,b4e=y4e.WeakMap,$4e=b4e,w4e=$4e,_4e=w4e,Gh=Te(_4e);function Zt(t,r,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof r=="function"?t!==r||!n:!r.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(t):n?n.value:r.get(t)}function mE(t,r,e,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof r=="function"?t!==r||!i:!r.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,e):i?i.value=e:r.set(t,e),e}function yE(t,r){var e=typeof Za<"u"&&pl(t)||t["@@iterator"];if(!e){if(lt(t)||(e=E4e(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(g){throw g},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
795
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function Qze(t,r){var e;if(t){if(typeof t=="string")return YM(t,r);var n=Wr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return vl(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YM(t,r)}}function YM(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var qze=function(){function t(r,e,n){var i,o,a,s,l,g,u,c,d,h,A,f,C;Ae(this,t),this.body=r,this.canvas=e,this.selectionHandler=n,this.navigationHandler=new Yze(r,e),this.body.eventListeners.onTap=ue(i=this.onTap).call(i,this),this.body.eventListeners.onTouch=ue(o=this.onTouch).call(o,this),this.body.eventListeners.onDoubleTap=ue(a=this.onDoubleTap).call(a,this),this.body.eventListeners.onHold=ue(s=this.onHold).call(s,this),this.body.eventListeners.onDragStart=ue(l=this.onDragStart).call(l,this),this.body.eventListeners.onDrag=ue(g=this.onDrag).call(g,this),this.body.eventListeners.onDragEnd=ue(u=this.onDragEnd).call(u,this),this.body.eventListeners.onMouseWheel=ue(c=this.onMouseWheel).call(c,this),this.body.eventListeners.onPinch=ue(d=this.onPinch).call(d,this),this.body.eventListeners.onMouseMove=ue(h=this.onMouseMove).call(h,this),this.body.eventListeners.onRelease=ue(A=this.onRelease).call(A,this),this.body.eventListeners.onContext=ue(f=this.onContext).call(f,this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=ue(C=this.getPointer).call(C,this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0,autoFocus:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0,zoomSpeed:1},Or(this.options,this.defaultOptions),this.bindEventListeners()}return fe(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("destroy",function(){clearTimeout(e.popupTimer),delete e.body.functions.getPointer})}},{key:"setOptions",value:function(e){if(e!==void 0){var n=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"];Pp(n,this.options,e),Bi(this.options,e,"keyboard"),e.tooltip&&(Or(this.options.tooltip,e.tooltip),e.tooltip.color&&(this.options.tooltip.color=tE(e.tooltip.color)))}this.navigationHandler.setOptions(this.options)}},{key:"getPointer",value:function(e){return{x:e.x-hke(this.canvas.frame.canvas),y:e.y-Ake(this.canvas.frame.canvas)}}},{key:"onTouch",value:function(e){new Date().valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}},{key:"onTap",value:function(e){var n=this.getPointer(e.center),i=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n)}},{key:"onDoubleTap",value:function(e){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,n)}},{key:"onHold",value:function(e){var n=this.getPointer(e.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n),this.selectionHandler.generateClickEvent("hold",e,n)}},{key:"onRelease",value:function(e){if(new Date().valueOf()-this.touchTime>10){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,n),this.touchTime=new Date().valueOf()}}},{key:"onContext",value:function(e){var n=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,n)}},{key:"checkSelectionChanges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}},{key:"_determineDifference",value:function(e,n){var i=function(a,s){for(var l=[],g=0;g<a.length;g++){var u=a[g];Tt(s).call(s,u)===-1&&l.push(u)}return l};return{nodes:i(e.nodes,n.nodes),edges:i(e.edges,n.edges)}}},{key:"onDragStart",value:function(e){if(!this.drag.dragging){this.drag.pointer===void 0&&this.onTouch(e);var n=this.selectionHandler.getNodeAt(this.drag.pointer);if(this.drag.dragging=!0,this.drag.selection=[],this.drag.translation=Or({},this.body.view.translation),this.drag.nodeId=void 0,e.srcEvent.shiftKey){this.body.selectionBox.show=!0;var i=this.getPointer(e.center);this.body.selectionBox.position.start={x:this.canvas._XconvertDOMtoCanvas(i.x),y:this.canvas._YconvertDOMtoCanvas(i.y)},this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(i.x),y:this.canvas._YconvertDOMtoCanvas(i.y)}}else if(n!==void 0&&this.options.dragNodes===!0){this.drag.nodeId=n.id,n.isSelected()===!1&&this.selectionHandler.setSelection({nodes:[n.id]}),this.selectionHandler.generateClickEvent("dragStart",e,this.drag.pointer);var o=Xze(this.selectionHandler.getSelectedNodes()),a;try{for(o.s();!(a=o.n()).done;){var s=a.value,l={id:s.id,node:s,x:s.x,y:s.y,xFixed:s.options.fixed.x,yFixed:s.options.fixed.y};s.options.fixed.x=!0,s.options.fixed.y=!0,this.drag.selection.push(l)}}catch(g){o.e(g)}finally{o.f()}}else this.selectionHandler.generateClickEvent("dragStart",e,this.drag.pointer,void 0,!0)}}},{key:"onDrag",value:function(e){var n=this;if(this.drag.pinched!==!0){this.body.emitter.emit("unlockNode");var i=this.getPointer(e.center),o=this.drag.selection;if(o&&o.length&&this.options.dragNodes===!0){this.selectionHandler.generateClickEvent("dragging",e,i);var a=i.x-this.drag.pointer.x,s=i.y-this.drag.pointer.y;Et(o).call(o,function(u){var c=u.node;u.xFixed===!1&&(c.x=n.canvas._XconvertDOMtoCanvas(n.canvas._XconvertCanvasToDOM(u.x)+a)),u.yFixed===!1&&(c.y=n.canvas._YconvertDOMtoCanvas(n.canvas._YconvertCanvasToDOM(u.y)+s))}),this.body.emitter.emit("startSimulation")}else{if(e.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",e,i,void 0,!0),this.drag.pointer===void 0){this.onDragStart(e);return}this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(i.x),y:this.canvas._YconvertDOMtoCanvas(i.y)},this.body.emitter.emit("_requestRedraw")}if(this.options.dragView===!0&&!e.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",e,i,void 0,!0),this.drag.pointer===void 0){this.onDragStart(e);return}var l=i.x-this.drag.pointer.x,g=i.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+l,y:this.drag.translation.y+g},this.body.emitter.emit("_requestRedraw")}}}}},{key:"onDragEnd",value:function(e){var n=this;if(this.drag.dragging=!1,this.body.selectionBox.show){var i;this.body.selectionBox.show=!1;var o=this.body.selectionBox.position,a={minX:Math.min(o.start.x,o.end.x),minY:Math.min(o.start.y,o.end.y),maxX:Math.max(o.start.x,o.end.x),maxY:Math.max(o.start.y,o.end.y)},s=Mr(i=this.body.nodeIndices).call(i,function(u){var c=n.body.nodes[u];return c.x>=a.minX&&c.x<=a.maxX&&c.y>=a.minY&&c.y<=a.maxY});Et(s).call(s,function(u){return n.selectionHandler.selectObject(n.body.nodes[u])});var l=this.getPointer(e.center);this.selectionHandler.commitAndEmit(l,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var g=this.drag.selection;g&&g.length?(Et(g).call(g,function(u){u.node.options.fixed.x=u.xFixed,u.node.options.fixed.y=u.yFixed}),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(e){var n=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);var i=this.pinch.scale*e.scale;this.zoom(i,n)}},{key:"zoom",value:function(e,n){if(this.options.zoomView===!0){var i=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);var o=void 0;this.drag!==void 0&&this.drag.dragging===!0&&(o=this.canvas.DOMtoCanvas(this.drag.pointer));var a=this.body.view.translation,s=e/i,l=(1-s)*n.x+a.x*s,g=(1-s)*n.y+a.y*s;if(this.body.view.scale=e,this.body.view.translation={x:l,y:g},o!=null){var u=this.canvas.canvasToDOM(o);this.drag.pointer.x=u.x,this.drag.pointer.y=u.y}this.body.emitter.emit("_requestRedraw"),i<e?this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:n}):this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:n})}}},{key:"onMouseWheel",value:function(e){if(this.options.zoomView===!0){if(e.deltaY!==0){var n=this.body.view.scale;n*=1+(e.deltaY<0?1:-1)*(this.options.zoomSpeed*.1);var i=this.getPointer({x:e.clientX,y:e.clientY});this.zoom(n,i)}e.preventDefault()}}},{key:"onMouseMove",value:function(e){var n=this,i=this.getPointer({x:e.clientX,y:e.clientY}),o=!1;this.popup!==void 0&&(this.popup.hidden===!1&&this._checkHidePopup(i),this.popup.hidden===!1&&(o=!0,this.popup.setPosition(i.x+3,i.y-5),this.popup.show())),this.options.keyboard.autoFocus&&this.options.keyboard.bindToWindow===!1&&this.options.keyboard.enabled===!0&&this.canvas.frame.focus(),o===!1&&(this.popupTimer!==void 0&&(clearInterval(this.popupTimer),this.popupTimer=void 0),this.drag.dragging||(this.popupTimer=mo(function(){return n._checkShowPopup(i)},this.options.tooltipDelay))),this.options.hover===!0&&this.selectionHandler.hoverObject(e,i)}},{key:"_checkShowPopup",value:function(e){var n=this.canvas._XconvertDOMtoCanvas(e.x),i=this.canvas._YconvertDOMtoCanvas(e.y),o={left:n,top:i,right:n,bottom:i},a=this.popupObj===void 0?void 0:this.popupObj.id,s=!1,l="node";if(this.popupObj===void 0){for(var g=this.body.nodeIndices,u=this.body.nodes,c,d=[],h=0;h<g.length;h++)c=u[g[h]],c.isOverlappingWith(o)===!0&&(s=!0,c.getTitle()!==void 0&&d.push(g[h]));d.length>0&&(this.popupObj=u[d[d.length-1]],s=!0)}if(this.popupObj===void 0&&s===!1){for(var A=this.body.edgeIndices,f=this.body.edges,C,I=[],v=0;v<A.length;v++)C=f[A[v]],C.isOverlappingWith(o)===!0&&C.connected===!0&&C.getTitle()!==void 0&&I.push(A[v]);I.length>0&&(this.popupObj=f[I[I.length-1]],l="edge")}this.popupObj!==void 0?this.popupObj.id!==a&&(this.popup===void 0&&(this.popup=new _ke(this.canvas.frame)),this.popup.popupTargetType=l,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):this.popup!==void 0&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(e){var n=this.selectionHandler._pointerToPositionObject(e),i=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(n),i===!0)){var o=this.selectionHandler.getNodeAt(e);i=o===void 0?!1:o.id===this.popup.popupTargetId}}else this.selectionHandler.getNodeAt(e)===void 0&&this.body.edges[this.popup.popupTargetId]!==void 0&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(n));i===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),Jze=kt,XM=TT,fI=vy.getWeakData,e4e=py,t4e=Vn,r4e=Kg,m1=Pr,n4e=bl,TH=yl,QM=vr,OH=Il,i4e=OH.set,o4e=OH.getterFor,a4e=TH.find,s4e=TH.findIndex,l4e=Jze([].splice),g4e=0,CI=function(t){return t.frozen||(t.frozen=new kH)},kH=function(){this.entries=[]},y1=function(t,r){return a4e(t.entries,function(e){return e[0]===r})};kH.prototype={get:function(t){var r=y1(this,t);if(r)return r[1]},has:function(t){return!!y1(this,t)},set:function(t,r){var e=y1(this,t);e?e[1]=r:this.entries.push([t,r])},delete:function(t){var r=s4e(this.entries,function(e){return e[0]===t});return~r&&l4e(this.entries,r,1),!!~r}};var u4e={getConstructor:function(t,r,e,n){var i=t(function(l,g){e4e(l,o),i4e(l,{type:r,id:g4e++,frozen:void 0}),r4e(g)||n4e(g,l[n],{that:l,AS_ENTRIES:e})}),o=i.prototype,a=o4e(r),s=function(l,g,u){var c=a(l),d=fI(t4e(g),!0);return d===!0?CI(c).set(g,u):d[c.id]=u,l};return XM(o,{delete:function(l){var g=a(this);if(!m1(l))return!1;var u=fI(l);return u===!0?CI(g).delete(l):u&&QM(u,g.id)&&delete u[g.id]},has:function(g){var u=a(this);if(!m1(g))return!1;var c=fI(g);return c===!0?CI(u).has(g):c&&QM(c,u.id)}}),XM(o,e?{get:function(g){var u=a(this);if(m1(g)){var c=fI(g);return c===!0?CI(u).get(g):c?c[u.id]:void 0}},set:function(g,u){return s(this,g,u)}}:{add:function(g){return s(this,g,!0)}}),i}},c4e=pW,qM=Ut,Ev=kt,JM=TT,d4e=vy,h4e=ST,xH=u4e,II=Pr,vI=Il.enforce,A4e=bt,f4e=YV,Rf=Object,C4e=Array.isArray,pI=Rf.isExtensible,PH=Rf.isFrozen,I4e=Rf.isSealed,RH=Rf.freeze,v4e=Rf.seal,eB={},tB={},p4e=!qM.ActiveXObject&&"ActiveXObject"in qM,lh,DH=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},NH=h4e("WeakMap",DH,xH),Bu=NH.prototype,Sv=Ev(Bu.set),m4e=function(){return c4e&&A4e(function(){var t=RH([]);return Sv(new NH,t,1),!PH(t)})};if(f4e)if(p4e){lh=xH.getConstructor(DH,"WeakMap",!0),d4e.enable();var rB=Ev(Bu.delete),mI=Ev(Bu.has),nB=Ev(Bu.get);JM(Bu,{delete:function(t){if(II(t)&&!pI(t)){var r=vI(this);return r.frozen||(r.frozen=new lh),rB(this,t)||r.frozen.delete(t)}return rB(this,t)},has:function(r){if(II(r)&&!pI(r)){var e=vI(this);return e.frozen||(e.frozen=new lh),mI(this,r)||e.frozen.has(r)}return mI(this,r)},get:function(r){if(II(r)&&!pI(r)){var e=vI(this);return e.frozen||(e.frozen=new lh),mI(this,r)?nB(this,r):e.frozen.get(r)}return nB(this,r)},set:function(r,e){if(II(r)&&!pI(r)){var n=vI(this);n.frozen||(n.frozen=new lh),mI(this,r)?Sv(this,r,e):n.frozen.set(r,e)}else Sv(this,r,e);return this}})}else m4e()&&JM(Bu,{set:function(r,e){var n;return C4e(r)&&(PH(r)?n=eB:I4e(r)&&(n=tB)),Sv(this,r,e),n===eB&&RH(r),n===tB&&v4e(r),this}});var y4e=wt,b4e=y4e.WeakMap,$4e=b4e,w4e=$4e,_4e=w4e,Gh=Te(_4e);function Zt(t,r,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof r=="function"?t!==r||!n:!r.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(t):n?n.value:r.get(t)}function mE(t,r,e,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof r=="function"?t!==r||!i:!r.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,e):i?i.value=e:r.set(t,e),e}function yE(t,r){var e=typeof Za<"u"&&pl(t)||t["@@iterator"];if(!e){if(lt(t)||(e=E4e(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(g){throw g},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
796
796
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function E4e(t,r){var e;if(t){if(typeof t=="string")return iB(t,r);var n=Wr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return vl(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iB(t,r)}}function iB(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var Vl,Di,ls,gs,Tv;function oB(t,r){var e=new Fo,n=yE(r),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;t.has(o)||e.add(o)}}catch(a){n.e(a)}finally{n.f()}return e}var aB=function(){function t(){Ae(this,t),Vl.set(this,new Fo),Di.set(this,new Fo)}return fe(t,[{key:"size",get:function(){return Zt(this,Di,"f").size}},{key:"add",value:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var o=0,a=n;o<a.length;o++){var s=a[o];Zt(this,Di,"f").add(s)}}},{key:"delete",value:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var o=0,a=n;o<a.length;o++){var s=a[o];Zt(this,Di,"f").delete(s)}}},{key:"clear",value:function(){Zt(this,Di,"f").clear()}},{key:"getSelection",value:function(){return sr(Zt(this,Di,"f"))}},{key:"getChanges",value:function(){return{added:sr(oB(Zt(this,Vl,"f"),Zt(this,Di,"f"))),deleted:sr(oB(Zt(this,Di,"f"),Zt(this,Vl,"f"))),previous:sr(new Fo(Zt(this,Vl,"f"))),current:sr(new Fo(Zt(this,Di,"f")))}}},{key:"commit",value:function(){var e=this.getChanges();mE(this,Vl,Zt(this,Di,"f"),"f"),mE(this,Di,new Fo(Zt(this,Vl,"f")),"f");var n=yE(e.added),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;o.select()}}catch(g){n.e(g)}finally{n.f()}var a=yE(e.deleted),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;l.unselect()}}catch(g){a.e(g)}finally{a.f()}return e}}]),t}();Vl=new Gh,Di=new Gh;var S4e=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};Ae(this,t),ls.set(this,new aB),gs.set(this,new aB),Tv.set(this,void 0),mE(this,Tv,r,"f")}return fe(t,[{key:"sizeNodes",get:function(){return Zt(this,ls,"f").size}},{key:"sizeEdges",get:function(){return Zt(this,gs,"f").size}},{key:"getNodes",value:function(){return Zt(this,ls,"f").getSelection()}},{key:"getEdges",value:function(){return Zt(this,gs,"f").getSelection()}},{key:"addNodes",value:function(){var e;(e=Zt(this,ls,"f")).add.apply(e,arguments)}},{key:"addEdges",value:function(){var e;(e=Zt(this,gs,"f")).add.apply(e,arguments)}},{key:"deleteNodes",value:function(e){Zt(this,ls,"f").delete(e)}},{key:"deleteEdges",value:function(e){Zt(this,gs,"f").delete(e)}},{key:"clear",value:function(){Zt(this,ls,"f").clear(),Zt(this,gs,"f").clear()}},{key:"commit",value:function(){for(var e,n,i={nodes:Zt(this,ls,"f").commit(),edges:Zt(this,gs,"f").commit()},o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(e=Zt(this,Tv,"f")).call.apply(e,qg(n=[this,i]).call(n,a)),i}}]),t}();ls=new Gh,gs=new Gh,Tv=new Gh;function sB(t,r){var e=typeof Za<"u"&&pl(t)||t["@@iterator"];if(!e){if(lt(t)||(e=T4e(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(g){throw g},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
797
797
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function T4e(t,r){var e;if(t){if(typeof t=="string")return lB(t,r);var n=Wr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return vl(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lB(t,r)}}function lB(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var O4e=function(){function t(r,e){var n=this;Ae(this,t),this.body=r,this.canvas=e,this._selectionAccumulator=new S4e,this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},Or(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",function(){n.updateSelection()})}return fe(t,[{key:"setOptions",value:function(e){if(e!==void 0){var n=["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"];wd(n,this.options,e)}}},{key:"selectOnPoint",value:function(e){var n=!1;if(this.options.selectable===!0){var i=this.getNodeAt(e)||this.getEdgeAt(e);this.unselectAll(),i!==void 0&&(n=this.selectObject(i)),this.body.emitter.emit("_requestRedraw")}return n}},{key:"selectAdditionalOnPoint",value:function(e){var n=!1;if(this.options.selectable===!0){var i=this.getNodeAt(e)||this.getEdgeAt(e);i!==void 0&&(n=!0,i.isSelected()===!0?this.deselectObject(i):this.selectObject(i),this.body.emitter.emit("_requestRedraw"))}return n}},{key:"_initBaseEvent",value:function(e,n){var i={};return i.pointer={DOM:{x:n.x,y:n.y},canvas:this.canvas.DOMtoCanvas(n)},i.event=e,i}},{key:"generateClickEvent",value:function(e,n,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=this._initBaseEvent(n,i);if(a===!0)s.nodes=[],s.edges=[];else{var l=this.getSelection();s.nodes=l.nodes,s.edges=l.edges}o!==void 0&&(s.previousSelection=o),e=="click"&&(s.items=this.getClickedItems(i)),n.controlEdge!==void 0&&(s.controlEdge=n.controlEdge),this.body.emitter.emit(e,s)}},{key:"selectObject",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;if(e!==void 0){if(e instanceof Ci){if(n===!0){var i;(i=this._selectionAccumulator).addEdges.apply(i,sr(e.edges))}this._selectionAccumulator.addNodes(e)}else this._selectionAccumulator.addEdges(e);return!0}return!1}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var n=[],i=this.body.nodes,o=0;o<this.body.nodeIndices.length;o++){var a=this.body.nodeIndices[o];i[a].isOverlappingWith(e)&&n.push(a)}return n}},{key:"_pointerToPositionObject",value:function(e){var n=this.canvas.DOMtoCanvas(e);return{left:n.x-1,top:n.y+1,right:n.x+1,bottom:n.y-1}}},{key:"getNodeAt",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._pointerToPositionObject(e),o=this._getAllNodesOverlappingWith(i);if(o.length>0)return n===!0?this.body.nodes[o[o.length-1]]:o[o.length-1]}},{key:"_getEdgesOverlappingWith",value:function(e,n){for(var i=this.body.edges,o=0;o<this.body.edgeIndices.length;o++){var a=this.body.edgeIndices[o];i[a].isOverlappingWith(e)&&n.push(a)}}},{key:"_getAllEdgesOverlappingWith",value:function(e){var n=[];return this._getEdgesOverlappingWith(e,n),n}},{key:"getEdgeAt",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.canvas.DOMtoCanvas(e),o=10,a=null,s=this.body.edges,l=0;l<this.body.edgeIndices.length;l++){var g=this.body.edgeIndices[l],u=s[g];if(u.connected){var c=u.from.x,d=u.from.y,h=u.to.x,A=u.to.y,f=u.edgeType.getDistanceToEdge(c,d,h,A,i.x,i.y);f<o&&(a=g,o=f)}}if(a!==null)return n===!0?this.body.edges[a]:a}},{key:"_addToHover",value:function(e){e instanceof Ci?this.hoverObj.nodes[e.id]=e:this.hoverObj.edges[e.id]=e}},{key:"_removeFromSelection",value:function(e){if(e instanceof Ci){var n;this._selectionAccumulator.deleteNodes(e),(n=this._selectionAccumulator).deleteEdges.apply(n,sr(e.edges))}else this._selectionAccumulator.deleteEdges(e)}},{key:"unselectAll",value:function(){this._selectionAccumulator.clear()}},{key:"getSelectedNodeCount",value:function(){return this._selectionAccumulator.sizeNodes}},{key:"getSelectedEdgeCount",value:function(){return this._selectionAccumulator.sizeEdges}},{key:"_hoverConnectedEdges",value:function(e){for(var n=0;n<e.edges.length;n++){var i=e.edges[n];i.hover=!0,this._addToHover(i)}}},{key:"emitBlurEvent",value:function(e,n,i){var o=this._initBaseEvent(e,n);i.hover===!0&&(i.hover=!1,i instanceof Ci?(o.node=i.id,this.body.emitter.emit("blurNode",o)):(o.edge=i.id,this.body.emitter.emit("blurEdge",o)))}},{key:"emitHoverEvent",value:function(e,n,i){var o=this._initBaseEvent(e,n),a=!1;return i.hover===!1&&(i.hover=!0,this._addToHover(i),a=!0,i instanceof Ci?(o.node=i.id,this.body.emitter.emit("hoverNode",o)):(o.edge=i.id,this.body.emitter.emit("hoverEdge",o))),a}},{key:"hoverObject",value:function(e,n){var i=this.getNodeAt(n);i===void 0&&(i=this.getEdgeAt(n));var o=!1;for(var a in this.hoverObj.nodes)Object.prototype.hasOwnProperty.call(this.hoverObj.nodes,a)&&(i===void 0||i instanceof Ci&&i.id!=a||i instanceof Cc)&&(this.emitBlurEvent(e,n,this.hoverObj.nodes[a]),delete this.hoverObj.nodes[a],o=!0);for(var s in this.hoverObj.edges)Object.prototype.hasOwnProperty.call(this.hoverObj.edges,s)&&(o===!0?(this.hoverObj.edges[s].hover=!1,delete this.hoverObj.edges[s]):(i===void 0||i instanceof Cc&&i.id!=s||i instanceof Ci&&!i.hover)&&(this.emitBlurEvent(e,n,this.hoverObj.edges[s]),delete this.hoverObj.edges[s],o=!0));if(i!==void 0){var l=er(this.hoverObj.edges).length,g=er(this.hoverObj.nodes).length,u=i instanceof Cc&&l===0&&g===0,c=i instanceof Ci&&l===0&&g===0;(o||u||c)&&(o=this.emitHoverEvent(e,n,i)),i instanceof Ci&&this.options.hoverConnectedEdges===!0&&this._hoverConnectedEdges(i)}o===!0&&this.body.emitter.emit("_requestRedraw")}},{key:"commitWithoutEmitting",value:function(){this._selectionAccumulator.commit()}},{key:"commitAndEmit",value:function(e,n){var i=!1,o=this._selectionAccumulator.commit(),a={nodes:o.nodes.previous,edges:o.edges.previous};o.edges.deleted.length>0&&(this.generateClickEvent("deselectEdge",n,e,a),i=!0),o.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",n,e,a),i=!0),o.nodes.added.length>0&&(this.generateClickEvent("selectNode",n,e),i=!0),o.edges.added.length>0&&(this.generateClickEvent("selectEdge",n,e),i=!0),i===!0&&this.generateClickEvent("select",n,e)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var e;return vn(e=this._selectionAccumulator.getNodes()).call(e,function(n){return n.id})}},{key:"getSelectedEdgeIds",value:function(){var e;return vn(e=this._selectionAccumulator.getEdges()).call(e,function(n){return n.id})}},{key:"setSelection",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((n.unselectAll||n.unselectAll===void 0)&&this.unselectAll(),e.nodes){var i=sB(e.nodes),o;try{for(i.s();!(o=i.n()).done;){var a=o.value,s=this.body.nodes[a];if(!s)throw new RangeError('Node with id "'+a+'" not found');this.selectObject(s,n.highlightEdges)}}catch(d){i.e(d)}finally{i.f()}}if(e.edges){var l=sB(e.edges),g;try{for(l.s();!(g=l.n()).done;){var u=g.value,c=this.body.edges[u];if(!c)throw new RangeError('Edge with id "'+u+'" not found');this.selectObject(c)}}catch(d){l.e(d)}finally{l.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:n})}},{key:"selectEdges",value:function(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(var n in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,n.id)||this._selectionAccumulator.deleteEdges(n)}},{key:"getClickedItems",value:function(e){for(var n=this.canvas.DOMtoCanvas(e),i=[],o=this.body.nodeIndices,a=this.body.nodes,s=o.length-1;s>=0;s--){var l=a[o[s]],g=l.getItemsOnPoint(n);i.push.apply(i,g)}for(var u=this.body.edgeIndices,c=this.body.edges,d=u.length-1;d>=0;d--){var h=c[u[d]],A=h.getItemsOnPoint(n);i.push.apply(i,A)}return i}}]),t}();function MH(t){var r=k4e();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=ee(n,arguments,o)}else i=n.apply(this,arguments);return Mt(this,i)}}function k4e(){if(typeof Reflect>"u"||!ee||ee.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ee(Boolean,[],function(){})),!0}catch{return!1}}var BH=function(){function t(){Ae(this,t)}return fe(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(e){return this.fake_use(e),this.abstract()}},{key:"setPosition",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,n,i),this.abstract()}},{key:"getTreeSize",value:function(e){return this.fake_use(e),this.abstract()}},{key:"sort",value:function(e){this.fake_use(e),this.abstract()}},{key:"fix",value:function(e,n){this.fake_use(e,n),this.abstract()}},{key:"shift",value:function(e,n){this.fake_use(e,n),this.abstract()}}]),t}(),x4e=function(t){xt(e,t);var r=MH(e);function e(n){var i;return Ae(this,e),i=r.call(this),i.layout=n,i}return fe(e,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(i){return i.x}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.x=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_x,max:o.max_x}}},{key:"sort",value:function(i){zs(i).call(i,function(o,a){return o.x-a.x})}},{key:"fix",value:function(i,o){i.y=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.y=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].x+=o}}]),e}(BH),P4e=function(t){xt(e,t);var r=MH(e);function e(n){var i;return Ae(this,e),i=r.call(this),i.layout=n,i}return fe(e,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(i){return i.y}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.y=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_y,max:o.max_y}}},{key:"sort",value:function(i){zs(i).call(i,function(o,a){return o.y-a.y})}},{key:"fix",value:function(i,o){i.x=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.x=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].y+=o}}]),e}(BH),R4e=Oe,D4e=yl.every,N4e=yd,M4e=N4e("every");R4e({target:"Array",proto:!0,forced:!M4e},{every:function(r){return D4e(this,r,arguments.length>1?arguments[1]:void 0)}});var B4e=Rr,F4e=B4e("Array").every,L4e=gr,z4e=F4e,b1=Array.prototype,j4e=function(t){var r=t.every;return t===b1||L4e(b1,t)&&r===b1.every?z4e:r},V4e=j4e,G4e=V4e,W4e=G4e,FH=Te(W4e);function H4e(t,r){var e=typeof Za<"u"&&pl(t)||t["@@iterator"];if(!e){if(lt(t)||(e=U4e(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(g){throw g},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
798
798
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function U4e(t,r){var e;if(t){if(typeof t=="string")return gB(t,r);var n=Wr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return vl(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gB(t,r)}}function gB(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function Z4e(t,r){var e=new Fo;return Et(t).call(t,function(n){var i;Et(i=n.edges).call(i,function(o){o.connected&&e.add(o)})}),Et(e).call(e,function(n){var i=n.from.id,o=n.to.id;r[i]==null&&(r[i]=0),(r[o]==null||r[i]>=r[o])&&(r[o]=r[i]+1)}),r}function K4e(t){return LH(function(r){var e,n;return FH(e=Mr(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.to===r})},function(r,e){return e>r},"from",t)}function Y4e(t){return LH(function(r){var e,n;return FH(e=Mr(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.from===r})},function(r,e){return e<r},"to",t)}function LH(t,r,e,n){var i,o=Bs(null),a=DT(i=sr(Bp(n).call(n))).call(i,function(h,A){return h+1+A.edges.length},0),s=e+"Id",l=e==="to"?1:-1,g=H4e(n),u;try{var c=function(){var A=vt(u.value,2),f=A[0],C=A[1];if(!n.has(f)||!t(C))return 0;o[f]=0;for(var I=[C],v=0,p,y=function(){var P,k;if(!n.has(f))return 0;var E=o[p.id]+l;if(Et(P=Mr(k=p.edges).call(k,function(O){return O.connected&&O.to!==O.from&&O[e]!==p&&n.has(O.toId)&&n.has(O.fromId)})).call(P,function(O){var N=O[s],D=o[N];(D==null||r(E,D))&&(o[N]=E,I.push(O[e]))}),v>a)return{v:{v:Z4e(n,o)}};++v},b;p=I.pop();)if(b=y(),b!==0&&b)return b.v},d;for(g.s();!(u=g.n()).done;)if(d=c(),d!==0&&d)return d.v}catch(h){g.e(h)}finally{g.f()}return o}var X4e=function(){function t(){Ae(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return fe(t,[{key:"addRelation",value:function(e,n){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(n),this.parentReference[n]===void 0&&(this.parentReference[n]=[]),this.parentReference[n].push(e)}},{key:"checkIfTree",value:function(){for(var e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(e,n){n!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=n,this.treeIndex=Math.max(n,this.treeIndex))}},{key:"ensureLevel",value:function(e){this.levels[e]===void 0&&(this.levels[e]=0)}},{key:"getMaxLevel",value:function(e){var n=this,i={},o=function a(s){if(i[s]!==void 0)return i[s];var l=n.levels[s];if(n.childrenReference[s]){var g=n.childrenReference[s];if(g.length>0)for(var u=0;u<g.length;u++)l=Math.max(l,a(g[u]))}return i[s]=l,l};return o(e)}},{key:"levelDownstream",value:function(e,n){this.levels[n.id]===void 0&&(this.levels[e.id]===void 0&&(this.levels[e.id]=0),this.levels[n.id]=this.levels[e.id]+1)}},{key:"setMinLevelToZero",value:function(e){var n=1e9;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.levels[i]!==void 0&&(n=Math.min(this.levels[i],n));for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&this.levels[o]!==void 0&&(this.levels[o]-=n)}},{key:"getTreeSize",value:function(e,n){var i=1e9,o=-1e9,a=1e9,s=-1e9;for(var l in this.trees)if(Object.prototype.hasOwnProperty.call(this.trees,l)&&this.trees[l]===n){var g=e[l];i=Math.min(g.x,i),o=Math.max(g.x,o),a=Math.min(g.y,a),s=Math.max(g.y,s)}return{min_x:i,max_x:o,min_y:a,max_y:s}}},{key:"hasSameParent",value:function(e,n){var i=this.parentReference[e.id],o=this.parentReference[n.id];if(i===void 0||o===void 0)return!1;for(var a=0;a<i.length;a++)for(var s=0;s<o.length;s++)if(i[a]==o[s])return!0;return!1}},{key:"inSameSubNetwork",value:function(e,n){return this.trees[e.id]===this.trees[n.id]}},{key:"getLevels",value:function(){return er(this.distributionOrdering)}},{key:"addToOrdering",value:function(e,n){this.distributionOrdering[n]===void 0&&(this.distributionOrdering[n]=[]);var i=!1,o=this.distributionOrdering[n];for(var a in o)if(o[a]===e){i=!0;break}i||(this.distributionOrdering[n].push(e),this.distributionIndex[e.id]=this.distributionOrdering[n].length-1)}}]),t}(),Q4e=function(){function t(r){Ae(this,t),this.body=r,this._resetRNG(Math.random()+":"+Sp()),this.setPhysics=!1,this.options={},this.optionsBackup={physics:{}},this.defaultOptions={randomSeed:void 0,improvedLayout:!0,clusterThreshold:150,hierarchical:{enabled:!1,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:"UD",sortMethod:"hubsize"}},Or(this.options,this.defaultOptions),this.bindEventListeners()}return fe(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("_dataChanged",function(){e.setupHierarchicalLayout()}),this.body.emitter.on("_dataLoaded",function(){e.layoutNetwork()}),this.body.emitter.on("_resetHierarchicalLayout",function(){e.setupHierarchicalLayout()}),this.body.emitter.on("_adjustEdgesForHierarchicalLayout",function(){if(e.options.hierarchical.enabled===!0){var n=e.direction.curveType();e.body.emitter.emit("_forceDisableDynamicCurves",n,!1)}})}},{key:"setOptions",value:function(e,n){if(e!==void 0){var i=this.options.hierarchical,o=i.enabled;if(wd(["randomSeed","improvedLayout","clusterThreshold"],this.options,e),Bi(this.options,e,"hierarchical"),e.randomSeed!==void 0&&this._resetRNG(e.randomSeed),i.enabled===!0)return o===!0&&this.body.emitter.emit("refresh",!0),i.direction==="RL"||i.direction==="DU"?i.levelSeparation>0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(n);if(o===!0)return this.body.emitter.emit("refresh"),Yt(n,this.optionsBackup)}return n}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=Iy(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){var n=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:n.enabled===void 0?!0:n.enabled,solver:"hierarchicalRepulsion"},n.enabled=n.enabled===void 0?!0:n.enabled,n.solver=n.solver||"barnesHut"):ct(e.physics)==="object"?(n.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,n.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(n.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var i=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:i};else{var o=e.edges.smooth;o.type!==void 0&&o.type!=="dynamic"&&(i=o.type),this.optionsBackup.edges={smooth:{enabled:o.enabled===void 0?!0:o.enabled,type:o.type===void 0?"dynamic":o.type,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}},e.edges.smooth={enabled:o.enabled===void 0?!0:o.enabled,type:i,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return e}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var n=e.length+50,i=0;i<e.length;i++){var o=e[i],a=2*Math.PI*this._rng();o.x===void 0&&(o.x=n*Math.cos(a)),o.y===void 0&&(o.y=n*Math.sin(a))}}}},{key:"layoutNetwork",value:function(){if(this.options.hierarchical.enabled!==!0&&this.options.improvedLayout===!0){for(var e=this.body.nodeIndices,n=0,i=0;i<e.length;i++){var o=this.body.nodes[e[i]];o.predefinedPosition===!0&&(n+=1)}if(n<.5*e.length){var a=10,s=0,l=this.options.clusterThreshold,g={clusterNodeProperties:{shape:"ellipse",label:"",group:"",font:{multi:!1}},clusterEdgeProperties:{label:"",font:{multi:!1},smooth:{enabled:!1}}};if(e.length>l){for(var u=e.length;e.length>l&&s<=a;){s+=1;var c=e.length;s%3===0?this.body.modules.clustering.clusterBridges(g):this.body.modules.clustering.clusterOutliers(g);var d=e.length;if(c==d&&s%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*u)})}s>a&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();for(var h=70,A=0;A<e.length;A++){var f=this.body.nodes[e[A]];f.predefinedPosition===!1&&(f.x+=(.5-this._rng())*h,f.y+=(.5-this._rng())*h)}this._declusterAll(),this.body.emitter.emit("_repositionBezierNodes")}}}},{key:"_shiftToCenter",value:function(){for(var e=Dn.getRangeCore(this.body.nodes,this.body.nodeIndices),n=Dn.findCenter(e),i=0;i<this.body.nodeIndices.length;i++){var o=this.body.nodes[this.body.nodeIndices[i]];o.x-=n.x,o.y-=n.y}}},{key:"_declusterAll",value:function(){for(var e=!0;e===!0;){e=!1;for(var n=0;n<this.body.nodeIndices.length;n++)this.body.nodes[this.body.nodeIndices[n]].isCluster===!0&&(e=!0,this.body.modules.clustering.openCluster(this.body.nodeIndices[n],{},!1));e===!0&&this.body.emitter.emit("_dataChanged")}}},{key:"getSeed",value:function(){return this.initialRandomSeed}},{key:"setupHierarchicalLayout",value:function(){if(this.options.hierarchical.enabled===!0&&this.body.nodeIndices.length>0){var e,n,i=!1,o=!1;this.lastNodeOnLevel={},this.hierarchical=new X4e;for(n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&(e=this.body.nodes[n],e.options.level!==void 0?(i=!0,this.hierarchical.levels[n]=e.options.level):o=!0);if(o===!0&&i===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(o===!0){var a=this.options.hierarchical.sortMethod;a==="hubsize"?this._determineLevelsByHubsize():a==="directed"?this._determineLevelsDirected():a==="custom"&&this._determineLevelsCustomCallback()}for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.hierarchical.ensureLevel(s);var l=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(l),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,n=!1,i={},o=function(){for(var p=s(),y=0,b=0;b<p.length-1;b++){var _=p[b].max-p[b+1].min;y+=_+e.options.hierarchical.treeSpacing,a(b+1,y)}},a=function(p,y){var b=e.hierarchical.trees;for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&b[_]===p&&e.direction.shift(_,y)},s=function(){for(var p=[],y=0;y<e.hierarchical.numTrees();y++)p.push(e.direction.getTreeSize(y));return p},l=function v(p,y){if(!y[p.id]&&(y[p.id]=!0,e.hierarchical.childrenReference[p.id])){var b=e.hierarchical.childrenReference[p.id];if(b.length>0)for(var _=0;_<b.length;_++)v(e.body.nodes[b[_]],y)}},g=function(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e9,b=1e9,_=1e9,P=1e9,k=-1e9;for(var E in p)if(Object.prototype.hasOwnProperty.call(p,E)){var O=e.body.nodes[E],N=e.hierarchical.levels[O.id],D=e.direction.getPosition(O),M=e._getSpaceAroundNode(O,p),Q=vt(M,2),j=Q[0],W=Q[1];b=Math.min(j,b),_=Math.min(W,_),N<=y&&(P=Math.min(D,P),k=Math.max(D,k))}return[P,k,b,_]},u=function(p,y){var b=e.hierarchical.getMaxLevel(p.id),_=e.hierarchical.getMaxLevel(y.id);return Math.min(b,_)},c=function(p,y,b){for(var _=e.hierarchical,P=0;P<y.length;P++){var k=y[P],E=_.distributionOrdering[k];if(E.length>1)for(var O=0;O<E.length-1;O++){var N=E[O],D=E[O+1];_.hasSameParent(N,D)&&_.inSameSubNetwork(N,D)&&p(N,D,b)}}},d=function(p,y){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_=e.direction.getPosition(p),P=e.direction.getPosition(y),k=Math.abs(P-_),E=e.options.hierarchical.nodeSpacing;if(k>E){var O={},N={};l(p,O),l(y,N);var D=u(p,y),M=g(O,D),Q=g(N,D),j=M[1],W=Q[0],q=Q[2],oe=Math.abs(j-W);if(oe>E){var Pe=j-W+E;Pe<-q+E&&(Pe=-q+E),Pe<0&&(e._shiftBlock(y.id,Pe),n=!0,b===!0&&e._centerParent(y))}}},h=function(p,y){for(var b=y.id,_=y.edges,P=e.hierarchical.levels[y.id],k=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,E={},O=[],N=0;N<_.length;N++){var D=_[N];if(D.toId!=D.fromId){var M=D.toId==b?D.from:D.to;E[_[N].id]=M,e.hierarchical.levels[M.id]<P&&O.push(D)}}var Q=function(Le,me){for(var Ve=0,We=0;We<me.length;We++)if(E[me[We].id]!==void 0){var ot=e.direction.getPosition(E[me[We].id])-Le;Ve+=ot/Math.sqrt(ot*ot+k)}return Ve},j=function(Le,me){for(var Ve=0,We=0;We<me.length;We++)if(E[me[We].id]!==void 0){var ot=e.direction.getPosition(E[me[We].id])-Le;Ve-=k*Math.pow(ot*ot+k,-1.5)}return Ve},W=function(Le,me){for(var Ve=e.direction.getPosition(y),We={},ot=0;ot<Le;ot++){var At=Q(Ve,me),U=j(Ve,me),ie=40,R=Math.max(-ie,Math.min(ie,Math.round(At/U)));if(Ve=Ve-R,We[Ve]!==void 0)break;We[Ve]=ot}return Ve},q=function(Le){var me=e.direction.getPosition(y);if(i[y.id]===void 0){var Ve={};l(y,Ve),i[y.id]=Ve}var We=g(i[y.id]),ot=We[2],At=We[3],U=Le-me,ie=0;U>0?ie=Math.min(U,At-e.options.hierarchical.nodeSpacing):U<0&&(ie=-Math.min(-U,ot-e.options.hierarchical.nodeSpacing)),ie!=0&&(e._shiftBlock(y.id,ie),n=!0)},oe=function(Le){var me=e.direction.getPosition(y),Ve=e._getSpaceAroundNode(y),We=vt(Ve,2),ot=We[0],At=We[1],U=Le-me,ie=me;U>0?ie=Math.min(me+(At-e.options.hierarchical.nodeSpacing),Le):U<0&&(ie=Math.max(me-(ot-e.options.hierarchical.nodeSpacing),Le)),ie!==me&&(e.direction.setPosition(y,ie),n=!0)},Pe=W(p,O);q(Pe),Pe=W(p,_),oe(Pe)},A=function(p){var y=e.hierarchical.getLevels();y=gg(y).call(y);for(var b=0;b<p;b++){n=!1;for(var _=0;_<y.length;_++)for(var P=y[_],k=e.hierarchical.distributionOrdering[P],E=0;E<k.length;E++)h(1e3,k[E]);if(n!==!0)break}},f=function(p){var y=e.hierarchical.getLevels();y=gg(y).call(y);for(var b=0;b<p&&(n=!1,c(d,y,!0),n===!0);b++);},C=function(){for(var p in e.body.nodes)Object.prototype.hasOwnProperty.call(e.body.nodes,p)&&e._centerParent(e.body.nodes[p])},I=function(){var p=e.hierarchical.getLevels();p=gg(p).call(p);for(var y=0;y<p.length;y++)for(var b=p[y],_=e.hierarchical.distributionOrdering[b],P=0;P<_.length;P++)e._centerParent(_[P])};this.options.hierarchical.blockShifting===!0&&(f(5),C()),this.options.hierarchical.edgeMinimization===!0&&A(20),this.options.hierarchical.parentCentralization===!0&&I(),o()}},{key:"_getSpaceAroundNode",value:function(e,n){var i=!0;n===void 0&&(i=!1);var o=this.hierarchical.levels[e.id];if(o!==void 0){var a=this.hierarchical.distributionIndex[e.id],s=this.direction.getPosition(e),l=this.hierarchical.distributionOrdering[o],g=1e9,u=1e9;if(a!==0){var c=l[a-1];if(i===!0&&n[c.id]===void 0||i===!1){var d=this.direction.getPosition(c);g=s-d}}if(a!=l.length-1){var h=l[a+1];if(i===!0&&n[h.id]===void 0||i===!1){var A=this.direction.getPosition(h);u=Math.min(u,A-s)}}return[g,u]}else return[0,0]}},{key:"_centerParent",value:function(e){if(this.hierarchical.parentReference[e.id])for(var n=this.hierarchical.parentReference[e.id],i=0;i<n.length;i++){var o=n[i],a=this.body.nodes[o],s=this.hierarchical.childrenReference[o];if(s!==void 0){var l=this._getCenterPosition(s),g=this.direction.getPosition(a),u=this._getSpaceAroundNode(a),c=vt(u,2),d=c[0],h=c[1],A=g-l;(A<0&&Math.abs(A)<h-this.options.hierarchical.nodeSpacing||A>0&&Math.abs(A)<d-this.options.hierarchical.nodeSpacing)&&this.direction.setPosition(a,l)}}}},{key:"_placeNodesByHierarchy",value:function(e){this.positionedNodes={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i,o=er(e[n]);o=this._indexArrayToNodes(o),zs(i=this.direction).call(i,o);for(var a=0,s=0;s<o.length;s++){var l=o[s];if(this.positionedNodes[l.id]===void 0){var g=this.options.hierarchical.nodeSpacing,u=g*a;a>0&&(u=this.direction.getPosition(o[s-1])+g),this.direction.setPosition(l,u,n),this._validatePositionAndContinue(l,n,u),a++}}}}},{key:"_placeBranchNodes",value:function(e,n){var i,o=this.hierarchical.childrenReference[e];if(o!==void 0){for(var a=[],s=0;s<o.length;s++)a.push(this.body.nodes[o[s]]);zs(i=this.direction).call(i,a);for(var l=0;l<a.length;l++){var g=a[l],u=this.hierarchical.levels[g.id];if(u>n&&this.positionedNodes[g.id]===void 0){var c=this.options.hierarchical.nodeSpacing,d=void 0;l===0?d=this.direction.getPosition(this.body.nodes[e]):d=this.direction.getPosition(a[l-1])+c,this.direction.setPosition(g,d,u),this._validatePositionAndContinue(g,u,d)}else return}var h=this._getCenterPosition(a);this.direction.setPosition(this.body.nodes[e],h,n)}}},{key:"_validatePositionAndContinue",value:function(e,n,i){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[n]!==void 0){var o=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[n]]);if(i-o<this.options.hierarchical.nodeSpacing){var a=o+this.options.hierarchical.nodeSpacing-i,s=this._findCommonParent(this.lastNodeOnLevel[n],e.id);this._shiftBlock(s.withChild,a)}}this.lastNodeOnLevel[n]=e.id,this.positionedNodes[e.id]=!0,this._placeBranchNodes(e.id,n)}}},{key:"_indexArrayToNodes",value:function(e){for(var n=[],i=0;i<e.length;i++)n.push(this.body.nodes[e[i]]);return n}},{key:"_getDistribution",value:function(){var e={},n,i;for(n in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,n)){i=this.body.nodes[n];var o=this.hierarchical.levels[n]===void 0?0:this.hierarchical.levels[n];this.direction.fix(i,o),e[o]===void 0&&(e[o]={}),e[o][n]=i}return e}},{key:"_getActiveEdges",value:function(e){var n=this,i=[];return dt(e.edges,function(o){var a;Tt(a=n.body.edgeIndices).call(a,o.id)!==-1&&i.push(o)}),i}},{key:"_getHubSizes",value:function(){var e=this,n={},i=this.body.nodeIndices;dt(i,function(a){var s=e.body.nodes[a],l=e._getActiveEdges(s).length;n[l]=!0});var o=[];return dt(n,function(a){o.push(Number(a))}),zs(o).call(o,function(a,s){return s-a}),o}},{key:"_determineLevelsByHubsize",value:function(){for(var e=this,n=function(l,g){e.hierarchical.levelDownstream(l,g)},i=this._getHubSizes(),o=function(){var l=i[a];if(l===0)return 1;dt(e.body.nodeIndices,function(g){var u=e.body.nodes[g];l===e._getActiveEdges(u).length&&e._crawlNetwork(n,g)})},a=0;a<i.length&&!o();++a);}},{key:"_determineLevelsCustomCallback",value:function(){var e=this,n=1e5,i=function(s,l,g){},o=function(s,l,g){var u=e.hierarchical.levels[s.id];u===void 0&&(u=e.hierarchical.levels[s.id]=n);var c=i(Dn.cloneOptions(s,"node"),Dn.cloneOptions(l,"node"),Dn.cloneOptions(g,"edge"));e.hierarchical.levels[l.id]=u+c};this._crawlNetwork(o),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_determineLevelsDirected",value:function(){var e,n=this,i=DT(e=this.body.nodeIndices).call(e,function(o,a){return o.set(a,n.body.nodes[a]),o},new my);this.options.hierarchical.shakeTowards==="roots"?this.hierarchical.levels=Y4e(i):this.hierarchical.levels=K4e(i),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_generateMap",value:function(){var e=this,n=function(o,a){e.hierarchical.levels[a.id]>e.hierarchical.levels[o.id]&&e.hierarchical.addRelation(o.id,a.id)};this._crawlNetwork(n),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},i=arguments.length>1?arguments[1]:void 0,o={},a=function d(h,A){if(o[h.id]===void 0){e.hierarchical.setTreeIndex(h,A),o[h.id]=!0;for(var f,C=e._getActiveEdges(h),I=0;I<C.length;I++){var v=C[I];v.connected===!0&&(v.toId==h.id?f=v.from:f=v.to,h.id!=f.id&&(n(h,f,v),d(f,A)))}}};if(i===void 0)for(var s=0,l=0;l<this.body.nodeIndices.length;l++){var g=this.body.nodeIndices[l];if(o[g]===void 0){var u=this.body.nodes[g];a(u,s),s+=1}}else{var c=this.body.nodes[i];if(c===void 0){console.error("Node not found:",i);return}a(c)}}},{key:"_shiftBlock",value:function(e,n){var i=this,o={},a=function s(l){if(!o[l]){o[l]=!0,i.direction.shift(l,n);var g=i.hierarchical.childrenReference[l];if(g!==void 0)for(var u=0;u<g.length;u++)s(g[u])}};a(e)}},{key:"_findCommonParent",value:function(e,n){var i=this,o={},a=function l(g,u){var c=i.hierarchical.parentReference[u];if(c!==void 0)for(var d=0;d<c.length;d++){var h=c[d];g[h]=!0,l(g,h)}},s=function l(g,u){var c=i.hierarchical.parentReference[u];if(c!==void 0)for(var d=0;d<c.length;d++){var h=c[d];if(g[h]!==void 0)return{foundParent:h,withChild:u};var A=l(g,h);if(A.foundParent!==null)return A}return{foundParent:null,withChild:u}};return a(o,e),s(o,n)}},{key:"setDirectionStrategy",value:function(){var e=this.options.hierarchical.direction==="UD"||this.options.hierarchical.direction==="DU";e?this.direction=new x4e(this):this.direction=new P4e(this)}},{key:"_getCenterPosition",value:function(e){for(var n=1e9,i=-1e9,o=0;o<e.length;o++){var a=void 0;if(e[o].id!==void 0)a=e[o];else{var s=e[o];a=this.body.nodes[s]}var l=this.direction.getPosition(a);n=Math.min(n,l),i=Math.max(i,l)}return .5*(n+i)}}]),t}(),q4e=`div.vis-network div.vis-manipulation {
|
|
@@ -1087,7 +1087,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1087
1087
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function UTt(t,r){var e;if(t){if(typeof t=="string")return d4(t,r);var n=pn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return cu(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d4(t,r)}}function d4(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var Gl,Ni,us,cs,Uv;function h4(t,r){var e=new Zl,n=BS(r),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;t.has(o)||e.add(o)}}catch(a){n.e(a)}finally{n.f()}return e}var A4=function(){function t(){ve(this,t),Gl.set(this,new Zl),Ni.set(this,new Zl)}return pe(t,[{key:"size",get:function(){return Kt(this,Ni,"f").size}},{key:"add",value:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var o=0,a=n;o<a.length;o++){var s=a[o];Kt(this,Ni,"f").add(s)}}},{key:"delete",value:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var o=0,a=n;o<a.length;o++){var s=a[o];Kt(this,Ni,"f").delete(s)}}},{key:"clear",value:function(){Kt(this,Ni,"f").clear()}},{key:"getSelection",value:function(){return Lo(Kt(this,Ni,"f"))}},{key:"getChanges",value:function(){return{added:Lo(h4(Kt(this,Gl,"f"),Kt(this,Ni,"f"))),deleted:Lo(h4(Kt(this,Ni,"f"),Kt(this,Gl,"f"))),previous:Lo(new Zl(Kt(this,Gl,"f"))),current:Lo(new Zl(Kt(this,Ni,"f")))}}},{key:"commit",value:function(){var e=this.getChanges();MS(this,Gl,Kt(this,Ni,"f"),"f"),MS(this,Ni,new Zl(Kt(this,Gl,"f")),"f");var n=BS(e.added),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;o.select()}}catch(g){n.e(g)}finally{n.f()}var a=BS(e.deleted),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;l.unselect()}}catch(g){a.e(g)}finally{a.f()}return e}}]),t}();Gl=new eA,Ni=new eA;var ZTt=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};ve(this,t),us.set(this,new A4),cs.set(this,new A4),Uv.set(this,void 0),MS(this,Uv,r,"f")}return pe(t,[{key:"sizeNodes",get:function(){return Kt(this,us,"f").size}},{key:"sizeEdges",get:function(){return Kt(this,cs,"f").size}},{key:"getNodes",value:function(){return Kt(this,us,"f").getSelection()}},{key:"getEdges",value:function(){return Kt(this,cs,"f").getSelection()}},{key:"addNodes",value:function(){var e;(e=Kt(this,us,"f")).add.apply(e,arguments)}},{key:"addEdges",value:function(){var e;(e=Kt(this,cs,"f")).add.apply(e,arguments)}},{key:"deleteNodes",value:function(e){Kt(this,us,"f").delete(e)}},{key:"deleteEdges",value:function(e){Kt(this,cs,"f").delete(e)}},{key:"clear",value:function(){Kt(this,us,"f").clear(),Kt(this,cs,"f").clear()}},{key:"commit",value:function(){for(var e,n,i={nodes:Kt(this,us,"f").commit(),edges:Kt(this,cs,"f").commit()},o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(e=Kt(this,Uv,"f")).call.apply(e,qO(n=[this,i]).call(n,a)),i}}]),t}();us=new eA,cs=new eA,Uv=new eA;function f4(t,r){var e=typeof Ol<"u"&&du(t)||t["@@iterator"];if(!e){if(Ft(t)||(e=KTt(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(g){throw g},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1088
1088
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function KTt(t,r){var e;if(t){if(typeof t=="string")return C4(t,r);var n=pn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return cu(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C4(t,r)}}function C4(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var YTt=function(){function t(r,e){var n=this;ve(this,t),this.body=r,this.canvas=e,this._selectionAccumulator=new ZTt,this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},Lr(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",function(){n.updateSelection()})}return pe(t,[{key:"setOptions",value:function(e){if(e!==void 0){var n=["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"];Jd(n,this.options,e)}}},{key:"selectOnPoint",value:function(e){var n=!1;if(this.options.selectable===!0){var i=this.getNodeAt(e)||this.getEdgeAt(e);this.unselectAll(),i!==void 0&&(n=this.selectObject(i)),this.body.emitter.emit("_requestRedraw")}return n}},{key:"selectAdditionalOnPoint",value:function(e){var n=!1;if(this.options.selectable===!0){var i=this.getNodeAt(e)||this.getEdgeAt(e);i!==void 0&&(n=!0,i.isSelected()===!0?this.deselectObject(i):this.selectObject(i),this.body.emitter.emit("_requestRedraw"))}return n}},{key:"_initBaseEvent",value:function(e,n){var i={};return i.pointer={DOM:{x:n.x,y:n.y},canvas:this.canvas.DOMtoCanvas(n)},i.event=e,i}},{key:"generateClickEvent",value:function(e,n,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=this._initBaseEvent(n,i);if(a===!0)s.nodes=[],s.edges=[];else{var l=this.getSelection();s.nodes=l.nodes,s.edges=l.edges}o!==void 0&&(s.previousSelection=o),e=="click"&&(s.items=this.getClickedItems(i)),n.controlEdge!==void 0&&(s.controlEdge=n.controlEdge),this.body.emitter.emit(e,s)}},{key:"selectObject",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;if(e!==void 0){if(e instanceof Ii){if(n===!0){var i;(i=this._selectionAccumulator).addEdges.apply(i,Lo(e.edges))}this._selectionAccumulator.addNodes(e)}else this._selectionAccumulator.addEdges(e);return!0}return!1}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var n=[],i=this.body.nodes,o=0;o<this.body.nodeIndices.length;o++){var a=this.body.nodeIndices[o];i[a].isOverlappingWith(e)&&n.push(a)}return n}},{key:"_pointerToPositionObject",value:function(e){var n=this.canvas.DOMtoCanvas(e);return{left:n.x-1,top:n.y+1,right:n.x+1,bottom:n.y-1}}},{key:"getNodeAt",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._pointerToPositionObject(e),o=this._getAllNodesOverlappingWith(i);if(o.length>0)return n===!0?this.body.nodes[o[o.length-1]]:o[o.length-1]}},{key:"_getEdgesOverlappingWith",value:function(e,n){for(var i=this.body.edges,o=0;o<this.body.edgeIndices.length;o++){var a=this.body.edgeIndices[o];i[a].isOverlappingWith(e)&&n.push(a)}}},{key:"_getAllEdgesOverlappingWith",value:function(e){var n=[];return this._getEdgesOverlappingWith(e,n),n}},{key:"getEdgeAt",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.canvas.DOMtoCanvas(e),o=10,a=null,s=this.body.edges,l=0;l<this.body.edgeIndices.length;l++){var g=this.body.edgeIndices[l],u=s[g];if(u.connected){var c=u.from.x,d=u.from.y,h=u.to.x,A=u.to.y,f=u.edgeType.getDistanceToEdge(c,d,h,A,i.x,i.y);f<o&&(a=g,o=f)}}if(a!==null)return n===!0?this.body.edges[a]:a}},{key:"_addToHover",value:function(e){e instanceof Ii?this.hoverObj.nodes[e.id]=e:this.hoverObj.edges[e.id]=e}},{key:"_removeFromSelection",value:function(e){if(e instanceof Ii){var n;this._selectionAccumulator.deleteNodes(e),(n=this._selectionAccumulator).deleteEdges.apply(n,Lo(e.edges))}else this._selectionAccumulator.deleteEdges(e)}},{key:"unselectAll",value:function(){this._selectionAccumulator.clear()}},{key:"getSelectedNodeCount",value:function(){return this._selectionAccumulator.sizeNodes}},{key:"getSelectedEdgeCount",value:function(){return this._selectionAccumulator.sizeEdges}},{key:"_hoverConnectedEdges",value:function(e){for(var n=0;n<e.edges.length;n++){var i=e.edges[n];i.hover=!0,this._addToHover(i)}}},{key:"emitBlurEvent",value:function(e,n,i){var o=this._initBaseEvent(e,n);i.hover===!0&&(i.hover=!1,i instanceof Ii?(o.node=i.id,this.body.emitter.emit("blurNode",o)):(o.edge=i.id,this.body.emitter.emit("blurEdge",o)))}},{key:"emitHoverEvent",value:function(e,n,i){var o=this._initBaseEvent(e,n),a=!1;return i.hover===!1&&(i.hover=!0,this._addToHover(i),a=!0,i instanceof Ii?(o.node=i.id,this.body.emitter.emit("hoverNode",o)):(o.edge=i.id,this.body.emitter.emit("hoverEdge",o))),a}},{key:"hoverObject",value:function(e,n){var i=this.getNodeAt(n);i===void 0&&(i=this.getEdgeAt(n));var o=!1;for(var a in this.hoverObj.nodes)Object.prototype.hasOwnProperty.call(this.hoverObj.nodes,a)&&(i===void 0||i instanceof Ii&&i.id!=a||i instanceof mc)&&(this.emitBlurEvent(e,n,this.hoverObj.nodes[a]),delete this.hoverObj.nodes[a],o=!0);for(var s in this.hoverObj.edges)Object.prototype.hasOwnProperty.call(this.hoverObj.edges,s)&&(o===!0?(this.hoverObj.edges[s].hover=!1,delete this.hoverObj.edges[s]):(i===void 0||i instanceof mc&&i.id!=s||i instanceof Ii&&!i.hover)&&(this.emitBlurEvent(e,n,this.hoverObj.edges[s]),delete this.hoverObj.edges[s],o=!0));if(i!==void 0){var l=Ar(this.hoverObj.edges).length,g=Ar(this.hoverObj.nodes).length,u=i instanceof mc&&l===0&&g===0,c=i instanceof Ii&&l===0&&g===0;(o||u||c)&&(o=this.emitHoverEvent(e,n,i)),i instanceof Ii&&this.options.hoverConnectedEdges===!0&&this._hoverConnectedEdges(i)}o===!0&&this.body.emitter.emit("_requestRedraw")}},{key:"commitWithoutEmitting",value:function(){this._selectionAccumulator.commit()}},{key:"commitAndEmit",value:function(e,n){var i=!1,o=this._selectionAccumulator.commit(),a={nodes:o.nodes.previous,edges:o.edges.previous};o.edges.deleted.length>0&&(this.generateClickEvent("deselectEdge",n,e,a),i=!0),o.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",n,e,a),i=!0),o.nodes.added.length>0&&(this.generateClickEvent("selectNode",n,e),i=!0),o.edges.added.length>0&&(this.generateClickEvent("selectEdge",n,e),i=!0),i===!0&&this.generateClickEvent("select",n,e)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var e;return ed(e=this._selectionAccumulator.getNodes()).call(e,function(n){return n.id})}},{key:"getSelectedEdgeIds",value:function(){var e;return ed(e=this._selectionAccumulator.getEdges()).call(e,function(n){return n.id})}},{key:"setSelection",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((n.unselectAll||n.unselectAll===void 0)&&this.unselectAll(),e.nodes){var i=f4(e.nodes),o;try{for(i.s();!(o=i.n()).done;){var a=o.value,s=this.body.nodes[a];if(!s)throw new RangeError('Node with id "'+a+'" not found');this.selectObject(s,n.highlightEdges)}}catch(d){i.e(d)}finally{i.f()}}if(e.edges){var l=f4(e.edges),g;try{for(l.s();!(g=l.n()).done;){var u=g.value,c=this.body.edges[u];if(!c)throw new RangeError('Edge with id "'+u+'" not found');this.selectObject(c)}}catch(d){l.e(d)}finally{l.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:n})}},{key:"selectEdges",value:function(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(var n in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,n.id)||this._selectionAccumulator.deleteEdges(n)}},{key:"getClickedItems",value:function(e){for(var n=this.canvas.DOMtoCanvas(e),i=[],o=this.body.nodeIndices,a=this.body.nodes,s=o.length-1;s>=0;s--){var l=a[o[s]],g=l.getItemsOnPoint(n);i.push.apply(i,g)}for(var u=this.body.edgeIndices,c=this.body.edges,d=u.length-1;d>=0;d--){var h=c[u[d]],A=h.getItemsOnPoint(n);i.push.apply(i,A)}return i}}]),t}(),I4=EY,XTt=Math.floor,FS=function(t,r){var e=t.length,n=XTt(e/2);return e<8?QTt(t,r):qTt(t,FS(I4(t,0,n),r),FS(I4(t,n),r),r)},QTt=function(t,r){for(var e=t.length,n=1,i,o;n<e;){for(o=n,i=t[n];o&&r(t[o-1],i)>0;)t[o]=t[--o];o!==n++&&(t[o]=i)}return t},qTt=function(t,r,e,n){for(var i=r.length,o=e.length,a=0,s=0;a<i||s<o;)t[a+s]=a<i&&s<o?n(r[a],e[s])<=0?r[a++]:e[s++]:a<i?r[a++]:e[s++];return t},JTt=FS,eOt=iC,v4=eOt.match(/firefox\/(\d+)/i),tOt=!!v4&&+v4[1],rOt=iC,nOt=/MSIE|Trident/.test(rOt),iOt=iC,p4=iOt.match(/AppleWebKit\/(\d+)\./),oOt=!!p4&&+p4[1],aOt=Xe,GQ=Dt,sOt=lu,lOt=ci,m4=to,gOt=dX,y4=ha,bk=Pt,uOt=JTt,cOt=Qd,b4=tOt,dOt=nOt,$4=oC,w4=oOt,Os=[],_4=GQ(Os.sort),hOt=GQ(Os.push),AOt=bk(function(){Os.sort(void 0)}),fOt=bk(function(){Os.sort(null)}),COt=cOt("sort"),WQ=!bk(function(){if($4)return $4<70;if(!(b4&&b4>3)){if(dOt)return!0;if(w4)return w4<603;var t="",r,e,n,i;for(r=65;r<76;r++){switch(e=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)Os.push({k:e+i,v:n})}for(Os.sort(function(o,a){return a.v-o.v}),i=0;i<Os.length;i++)e=Os[i].k.charAt(0),t.charAt(t.length-1)!==e&&(t+=e);return t!=="DGBEFHACIJK"}}),IOt=AOt||!fOt||!COt||!WQ,vOt=function(t){return function(r,e){return e===void 0?-1:r===void 0?1:t!==void 0?+t(r,e)||0:y4(r)>y4(e)?1:-1}};aOt({target:"Array",proto:!0,forced:IOt},{sort:function(r){r!==void 0&&sOt(r);var e=lOt(this);if(WQ)return r===void 0?_4(e):_4(e,r);var n=[],i=m4(e),o,a;for(a=0;a<i;a++)a in e&&hOt(n,e[a]);for(uOt(n,vOt(r)),o=m4(n),a=0;a<o;)e[a]=n[a++];for(;a<i;)gOt(e,a++);return e}});var pOt=hn,mOt=pOt("Array").sort,yOt=Dr,bOt=mOt,Dw=Array.prototype,$Ot=function(t){var r=t.sort;return t===Dw||yOt(Dw,t)&&r===Dw.sort?bOt:r},wOt=$Ot,_Ot=wOt,EOt=_Ot,tA=Fe(EOt),SOt=lu,TOt=ci,OOt=eb,kOt=to,xOt=TypeError,E4=function(t){return function(r,e,n,i){SOt(e);var o=TOt(r),a=OOt(o),s=kOt(o),l=t?s-1:0,g=t?-1:1;if(n<2)for(;;){if(l in a){i=a[l],l+=g;break}if(l+=g,t?l<0:s<=l)throw new xOt("Reduce of empty array with no initial value")}for(;t?l>=0:s>l;l+=g)l in a&&(i=e(i,a[l],l,o));return i}},POt={left:E4(!1),right:E4(!0)},ROt=br,DOt=Xa,NOt=DOt(ROt.process)==="process",MOt=Xe,BOt=POt.left,FOt=Qd,S4=oC,LOt=NOt,zOt=!LOt&&S4>79&&S4<83,jOt=zOt||!FOt("reduce");MOt({target:"Array",proto:!0,forced:jOt},{reduce:function(r){var e=arguments.length;return BOt(this,r,e,e>1?arguments[1]:void 0)}});var VOt=hn,GOt=VOt("Array").reduce,WOt=Dr,HOt=GOt,Nw=Array.prototype,UOt=function(t){var r=t.reduce;return t===Nw||WOt(Nw,t)&&r===Nw.reduce?HOt:r},ZOt=UOt,KOt=ZOt,YOt=KOt,HQ=Fe(YOt);function UQ(t){var r=XOt();return function(){var n=Re(t),i;if(r){var o=Re(this).constructor;i=te(n,arguments,o)}else i=n.apply(this,arguments);return Lt(this,i)}}function XOt(){if(typeof Reflect>"u"||!te||te.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(te(Boolean,[],function(){})),!0}catch{return!1}}var ZQ=function(){function t(){ve(this,t)}return pe(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(e){return this.fake_use(e),this.abstract()}},{key:"setPosition",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,n,i),this.abstract()}},{key:"getTreeSize",value:function(e){return this.fake_use(e),this.abstract()}},{key:"sort",value:function(e){this.fake_use(e),this.abstract()}},{key:"fix",value:function(e,n){this.fake_use(e,n),this.abstract()}},{key:"shift",value:function(e,n){this.fake_use(e,n),this.abstract()}}]),t}(),QOt=function(t){Nt(e,t);var r=UQ(e);function e(n){var i;return ve(this,e),i=r.call(this),i.layout=n,i}return pe(e,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(i){return i.x}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.x=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_x,max:o.max_x}}},{key:"sort",value:function(i){tA(i).call(i,function(o,a){return o.x-a.x})}},{key:"fix",value:function(i,o){i.y=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.y=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].x+=o}}]),e}(ZQ),qOt=function(t){Nt(e,t);var r=UQ(e);function e(n){var i;return ve(this,e),i=r.call(this),i.layout=n,i}return pe(e,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(i){return i.y}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.y=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_y,max:o.max_y}}},{key:"sort",value:function(i){tA(i).call(i,function(o,a){return o.y-a.y})}},{key:"fix",value:function(i,o){i.x=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.x=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].y+=o}}]),e}(ZQ),JOt=Xe,ekt=Tl.every,tkt=Qd,rkt=tkt("every");JOt({target:"Array",proto:!0,forced:!rkt},{every:function(r){return ekt(this,r,arguments.length>1?arguments[1]:void 0)}});var nkt=hn,ikt=nkt("Array").every,okt=Dr,akt=ikt,Mw=Array.prototype,skt=function(t){var r=t.every;return t===Mw||okt(Mw,t)&&r===Mw.every?akt:r},lkt=skt,gkt=lkt,ukt=gkt,KQ=Fe(ukt);function ckt(t,r){var e=typeof Ol<"u"&&du(t)||t["@@iterator"];if(!e){if(Ft(t)||(e=dkt(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(g){throw g},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1089
1089
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function dkt(t,r){var e;if(t){if(typeof t=="string")return T4(t,r);var n=pn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return cu(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T4(t,r)}}function T4(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function hkt(t,r){var e=new Zl;return Ht(t).call(t,function(n){var i;Ht(i=n.edges).call(i,function(o){o.connected&&e.add(o)})}),Ht(e).call(e,function(n){var i=n.from.id,o=n.to.id;r[i]==null&&(r[i]=0),(r[o]==null||r[i]>=r[o])&&(r[o]=r[i]+1)}),r}function Akt(t){return YQ(function(r){var e,n;return KQ(e=ei(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.to===r})},function(r,e){return e>r},"from",t)}function fkt(t){return YQ(function(r){var e,n;return KQ(e=ei(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.from===r})},function(r,e){return e<r},"to",t)}function YQ(t,r,e,n){var i,o=pg(null),a=HQ(i=Lo(wQ(n).call(n))).call(i,function(h,A){return h+1+A.edges.length},0),s=e+"Id",l=e==="to"?1:-1,g=ckt(n),u;try{var c=function(){var A=fr(u.value,2),f=A[0],C=A[1];if(!n.has(f)||!t(C))return 0;o[f]=0;for(var I=[C],v=0,p,y=function(){var P,k;if(!n.has(f))return 0;var E=o[p.id]+l;if(Ht(P=ei(k=p.edges).call(k,function(O){return O.connected&&O.to!==O.from&&O[e]!==p&&n.has(O.toId)&&n.has(O.fromId)})).call(P,function(O){var N=O[s],D=o[N];(D==null||r(E,D))&&(o[N]=E,I.push(O[e]))}),v>a)return{v:{v:hkt(n,o)}};++v},b;p=I.pop();)if(b=y(),b!==0&&b)return b.v},d;for(g.s();!(u=g.n()).done;)if(d=c(),d!==0&&d)return d.v}catch(h){g.e(h)}finally{g.f()}return o}var Ckt=function(){function t(){ve(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return pe(t,[{key:"addRelation",value:function(e,n){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(n),this.parentReference[n]===void 0&&(this.parentReference[n]=[]),this.parentReference[n].push(e)}},{key:"checkIfTree",value:function(){for(var e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(e,n){n!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=n,this.treeIndex=Math.max(n,this.treeIndex))}},{key:"ensureLevel",value:function(e){this.levels[e]===void 0&&(this.levels[e]=0)}},{key:"getMaxLevel",value:function(e){var n=this,i={},o=function a(s){if(i[s]!==void 0)return i[s];var l=n.levels[s];if(n.childrenReference[s]){var g=n.childrenReference[s];if(g.length>0)for(var u=0;u<g.length;u++)l=Math.max(l,a(g[u]))}return i[s]=l,l};return o(e)}},{key:"levelDownstream",value:function(e,n){this.levels[n.id]===void 0&&(this.levels[e.id]===void 0&&(this.levels[e.id]=0),this.levels[n.id]=this.levels[e.id]+1)}},{key:"setMinLevelToZero",value:function(e){var n=1e9;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.levels[i]!==void 0&&(n=Math.min(this.levels[i],n));for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&this.levels[o]!==void 0&&(this.levels[o]-=n)}},{key:"getTreeSize",value:function(e,n){var i=1e9,o=-1e9,a=1e9,s=-1e9;for(var l in this.trees)if(Object.prototype.hasOwnProperty.call(this.trees,l)&&this.trees[l]===n){var g=e[l];i=Math.min(g.x,i),o=Math.max(g.x,o),a=Math.min(g.y,a),s=Math.max(g.y,s)}return{min_x:i,max_x:o,min_y:a,max_y:s}}},{key:"hasSameParent",value:function(e,n){var i=this.parentReference[e.id],o=this.parentReference[n.id];if(i===void 0||o===void 0)return!1;for(var a=0;a<i.length;a++)for(var s=0;s<o.length;s++)if(i[a]==o[s])return!0;return!1}},{key:"inSameSubNetwork",value:function(e,n){return this.trees[e.id]===this.trees[n.id]}},{key:"getLevels",value:function(){return Ar(this.distributionOrdering)}},{key:"addToOrdering",value:function(e,n){this.distributionOrdering[n]===void 0&&(this.distributionOrdering[n]=[]);var i=!1,o=this.distributionOrdering[n];for(var a in o)if(o[a]===e){i=!0;break}i||(this.distributionOrdering[n].push(e),this.distributionIndex[e.id]=this.distributionOrdering[n].length-1)}}]),t}(),Ikt=function(){function t(r){ve(this,t),this.body=r,this._resetRNG(Math.random()+":"+im()),this.setPhysics=!1,this.options={},this.optionsBackup={physics:{}},this.defaultOptions={randomSeed:void 0,improvedLayout:!0,clusterThreshold:150,hierarchical:{enabled:!1,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:"UD",sortMethod:"hubsize"}},Lr(this.options,this.defaultOptions),this.bindEventListeners()}return pe(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("_dataChanged",function(){e.setupHierarchicalLayout()}),this.body.emitter.on("_dataLoaded",function(){e.layoutNetwork()}),this.body.emitter.on("_resetHierarchicalLayout",function(){e.setupHierarchicalLayout()}),this.body.emitter.on("_adjustEdgesForHierarchicalLayout",function(){if(e.options.hierarchical.enabled===!0){var n=e.direction.curveType();e.body.emitter.emit("_forceDisableDynamicCurves",n,!1)}})}},{key:"setOptions",value:function(e,n){if(e!==void 0){var i=this.options.hierarchical,o=i.enabled;if(Jd(["randomSeed","improvedLayout","clusterThreshold"],this.options,e),Fi(this.options,e,"hierarchical"),e.randomSeed!==void 0&&this._resetRNG(e.randomSeed),i.enabled===!0)return o===!0&&this.body.emitter.emit("refresh",!0),i.direction==="RL"||i.direction==="DU"?i.levelSeparation>0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(n);if(o===!0)return this.body.emitter.emit("refresh"),Xt(n,this.optionsBackup)}return n}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=yb(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){var n=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:n.enabled===void 0?!0:n.enabled,solver:"hierarchicalRepulsion"},n.enabled=n.enabled===void 0?!0:n.enabled,n.solver=n.solver||"barnesHut"):Gt(e.physics)==="object"?(n.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,n.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(n.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var i=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:i};else{var o=e.edges.smooth;o.type!==void 0&&o.type!=="dynamic"&&(i=o.type),this.optionsBackup.edges={smooth:{enabled:o.enabled===void 0?!0:o.enabled,type:o.type===void 0?"dynamic":o.type,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}},e.edges.smooth={enabled:o.enabled===void 0?!0:o.enabled,type:i,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return e}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var n=e.length+50,i=0;i<e.length;i++){var o=e[i],a=2*Math.PI*this._rng();o.x===void 0&&(o.x=n*Math.cos(a)),o.y===void 0&&(o.y=n*Math.sin(a))}}}},{key:"layoutNetwork",value:function(){if(this.options.hierarchical.enabled!==!0&&this.options.improvedLayout===!0){for(var e=this.body.nodeIndices,n=0,i=0;i<e.length;i++){var o=this.body.nodes[e[i]];o.predefinedPosition===!0&&(n+=1)}if(n<.5*e.length){var a=10,s=0,l=this.options.clusterThreshold,g={clusterNodeProperties:{shape:"ellipse",label:"",group:"",font:{multi:!1}},clusterEdgeProperties:{label:"",font:{multi:!1},smooth:{enabled:!1}}};if(e.length>l){for(var u=e.length;e.length>l&&s<=a;){s+=1;var c=e.length;s%3===0?this.body.modules.clustering.clusterBridges(g):this.body.modules.clustering.clusterOutliers(g);var d=e.length;if(c==d&&s%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*u)})}s>a&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();for(var h=70,A=0;A<e.length;A++){var f=this.body.nodes[e[A]];f.predefinedPosition===!1&&(f.x+=(.5-this._rng())*h,f.y+=(.5-this._rng())*h)}this._declusterAll(),this.body.emitter.emit("_repositionBezierNodes")}}}},{key:"_shiftToCenter",value:function(){for(var e=Nn.getRangeCore(this.body.nodes,this.body.nodeIndices),n=Nn.findCenter(e),i=0;i<this.body.nodeIndices.length;i++){var o=this.body.nodes[this.body.nodeIndices[i]];o.x-=n.x,o.y-=n.y}}},{key:"_declusterAll",value:function(){for(var e=!0;e===!0;){e=!1;for(var n=0;n<this.body.nodeIndices.length;n++)this.body.nodes[this.body.nodeIndices[n]].isCluster===!0&&(e=!0,this.body.modules.clustering.openCluster(this.body.nodeIndices[n],{},!1));e===!0&&this.body.emitter.emit("_dataChanged")}}},{key:"getSeed",value:function(){return this.initialRandomSeed}},{key:"setupHierarchicalLayout",value:function(){if(this.options.hierarchical.enabled===!0&&this.body.nodeIndices.length>0){var e,n,i=!1,o=!1;this.lastNodeOnLevel={},this.hierarchical=new Ckt;for(n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&(e=this.body.nodes[n],e.options.level!==void 0?(i=!0,this.hierarchical.levels[n]=e.options.level):o=!0);if(o===!0&&i===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(o===!0){var a=this.options.hierarchical.sortMethod;a==="hubsize"?this._determineLevelsByHubsize():a==="directed"?this._determineLevelsDirected():a==="custom"&&this._determineLevelsCustomCallback()}for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.hierarchical.ensureLevel(s);var l=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(l),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,n=!1,i={},o=function(){for(var p=s(),y=0,b=0;b<p.length-1;b++){var _=p[b].max-p[b+1].min;y+=_+e.options.hierarchical.treeSpacing,a(b+1,y)}},a=function(p,y){var b=e.hierarchical.trees;for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&b[_]===p&&e.direction.shift(_,y)},s=function(){for(var p=[],y=0;y<e.hierarchical.numTrees();y++)p.push(e.direction.getTreeSize(y));return p},l=function v(p,y){if(!y[p.id]&&(y[p.id]=!0,e.hierarchical.childrenReference[p.id])){var b=e.hierarchical.childrenReference[p.id];if(b.length>0)for(var _=0;_<b.length;_++)v(e.body.nodes[b[_]],y)}},g=function(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e9,b=1e9,_=1e9,P=1e9,k=-1e9;for(var E in p)if(Object.prototype.hasOwnProperty.call(p,E)){var O=e.body.nodes[E],N=e.hierarchical.levels[O.id],D=e.direction.getPosition(O),M=e._getSpaceAroundNode(O,p),Q=fr(M,2),j=Q[0],W=Q[1];b=Math.min(j,b),_=Math.min(W,_),N<=y&&(P=Math.min(D,P),k=Math.max(D,k))}return[P,k,b,_]},u=function(p,y){var b=e.hierarchical.getMaxLevel(p.id),_=e.hierarchical.getMaxLevel(y.id);return Math.min(b,_)},c=function(p,y,b){for(var _=e.hierarchical,P=0;P<y.length;P++){var k=y[P],E=_.distributionOrdering[k];if(E.length>1)for(var O=0;O<E.length-1;O++){var N=E[O],D=E[O+1];_.hasSameParent(N,D)&&_.inSameSubNetwork(N,D)&&p(N,D,b)}}},d=function(p,y){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_=e.direction.getPosition(p),P=e.direction.getPosition(y),k=Math.abs(P-_),E=e.options.hierarchical.nodeSpacing;if(k>E){var O={},N={};l(p,O),l(y,N);var D=u(p,y),M=g(O,D),Q=g(N,D),j=M[1],W=Q[0],q=Q[2],oe=Math.abs(j-W);if(oe>E){var Pe=j-W+E;Pe<-q+E&&(Pe=-q+E),Pe<0&&(e._shiftBlock(y.id,Pe),n=!0,b===!0&&e._centerParent(y))}}},h=function(p,y){for(var b=y.id,_=y.edges,P=e.hierarchical.levels[y.id],k=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,E={},O=[],N=0;N<_.length;N++){var D=_[N];if(D.toId!=D.fromId){var M=D.toId==b?D.from:D.to;E[_[N].id]=M,e.hierarchical.levels[M.id]<P&&O.push(D)}}var Q=function(Le,me){for(var Ve=0,We=0;We<me.length;We++)if(E[me[We].id]!==void 0){var ot=e.direction.getPosition(E[me[We].id])-Le;Ve+=ot/Math.sqrt(ot*ot+k)}return Ve},j=function(Le,me){for(var Ve=0,We=0;We<me.length;We++)if(E[me[We].id]!==void 0){var ot=e.direction.getPosition(E[me[We].id])-Le;Ve-=k*Math.pow(ot*ot+k,-1.5)}return Ve},W=function(Le,me){for(var Ve=e.direction.getPosition(y),We={},ot=0;ot<Le;ot++){var At=Q(Ve,me),U=j(Ve,me),ie=40,R=Math.max(-ie,Math.min(ie,Math.round(At/U)));if(Ve=Ve-R,We[Ve]!==void 0)break;We[Ve]=ot}return Ve},q=function(Le){var me=e.direction.getPosition(y);if(i[y.id]===void 0){var Ve={};l(y,Ve),i[y.id]=Ve}var We=g(i[y.id]),ot=We[2],At=We[3],U=Le-me,ie=0;U>0?ie=Math.min(U,At-e.options.hierarchical.nodeSpacing):U<0&&(ie=-Math.min(-U,ot-e.options.hierarchical.nodeSpacing)),ie!=0&&(e._shiftBlock(y.id,ie),n=!0)},oe=function(Le){var me=e.direction.getPosition(y),Ve=e._getSpaceAroundNode(y),We=fr(Ve,2),ot=We[0],At=We[1],U=Le-me,ie=me;U>0?ie=Math.min(me+(At-e.options.hierarchical.nodeSpacing),Le):U<0&&(ie=Math.max(me-(ot-e.options.hierarchical.nodeSpacing),Le)),ie!==me&&(e.direction.setPosition(y,ie),n=!0)},Pe=W(p,O);q(Pe),Pe=W(p,_),oe(Pe)},A=function(p){var y=e.hierarchical.getLevels();y=vg(y).call(y);for(var b=0;b<p;b++){n=!1;for(var _=0;_<y.length;_++)for(var P=y[_],k=e.hierarchical.distributionOrdering[P],E=0;E<k.length;E++)h(1e3,k[E]);if(n!==!0)break}},f=function(p){var y=e.hierarchical.getLevels();y=vg(y).call(y);for(var b=0;b<p&&(n=!1,c(d,y,!0),n===!0);b++);},C=function(){for(var p in e.body.nodes)Object.prototype.hasOwnProperty.call(e.body.nodes,p)&&e._centerParent(e.body.nodes[p])},I=function(){var p=e.hierarchical.getLevels();p=vg(p).call(p);for(var y=0;y<p.length;y++)for(var b=p[y],_=e.hierarchical.distributionOrdering[b],P=0;P<_.length;P++)e._centerParent(_[P])};this.options.hierarchical.blockShifting===!0&&(f(5),C()),this.options.hierarchical.edgeMinimization===!0&&A(20),this.options.hierarchical.parentCentralization===!0&&I(),o()}},{key:"_getSpaceAroundNode",value:function(e,n){var i=!0;n===void 0&&(i=!1);var o=this.hierarchical.levels[e.id];if(o!==void 0){var a=this.hierarchical.distributionIndex[e.id],s=this.direction.getPosition(e),l=this.hierarchical.distributionOrdering[o],g=1e9,u=1e9;if(a!==0){var c=l[a-1];if(i===!0&&n[c.id]===void 0||i===!1){var d=this.direction.getPosition(c);g=s-d}}if(a!=l.length-1){var h=l[a+1];if(i===!0&&n[h.id]===void 0||i===!1){var A=this.direction.getPosition(h);u=Math.min(u,A-s)}}return[g,u]}else return[0,0]}},{key:"_centerParent",value:function(e){if(this.hierarchical.parentReference[e.id])for(var n=this.hierarchical.parentReference[e.id],i=0;i<n.length;i++){var o=n[i],a=this.body.nodes[o],s=this.hierarchical.childrenReference[o];if(s!==void 0){var l=this._getCenterPosition(s),g=this.direction.getPosition(a),u=this._getSpaceAroundNode(a),c=fr(u,2),d=c[0],h=c[1],A=g-l;(A<0&&Math.abs(A)<h-this.options.hierarchical.nodeSpacing||A>0&&Math.abs(A)<d-this.options.hierarchical.nodeSpacing)&&this.direction.setPosition(a,l)}}}},{key:"_placeNodesByHierarchy",value:function(e){this.positionedNodes={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i,o=Ar(e[n]);o=this._indexArrayToNodes(o),tA(i=this.direction).call(i,o);for(var a=0,s=0;s<o.length;s++){var l=o[s];if(this.positionedNodes[l.id]===void 0){var g=this.options.hierarchical.nodeSpacing,u=g*a;a>0&&(u=this.direction.getPosition(o[s-1])+g),this.direction.setPosition(l,u,n),this._validatePositionAndContinue(l,n,u),a++}}}}},{key:"_placeBranchNodes",value:function(e,n){var i,o=this.hierarchical.childrenReference[e];if(o!==void 0){for(var a=[],s=0;s<o.length;s++)a.push(this.body.nodes[o[s]]);tA(i=this.direction).call(i,a);for(var l=0;l<a.length;l++){var g=a[l],u=this.hierarchical.levels[g.id];if(u>n&&this.positionedNodes[g.id]===void 0){var c=this.options.hierarchical.nodeSpacing,d=void 0;l===0?d=this.direction.getPosition(this.body.nodes[e]):d=this.direction.getPosition(a[l-1])+c,this.direction.setPosition(g,d,u),this._validatePositionAndContinue(g,u,d)}else return}var h=this._getCenterPosition(a);this.direction.setPosition(this.body.nodes[e],h,n)}}},{key:"_validatePositionAndContinue",value:function(e,n,i){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[n]!==void 0){var o=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[n]]);if(i-o<this.options.hierarchical.nodeSpacing){var a=o+this.options.hierarchical.nodeSpacing-i,s=this._findCommonParent(this.lastNodeOnLevel[n],e.id);this._shiftBlock(s.withChild,a)}}this.lastNodeOnLevel[n]=e.id,this.positionedNodes[e.id]=!0,this._placeBranchNodes(e.id,n)}}},{key:"_indexArrayToNodes",value:function(e){for(var n=[],i=0;i<e.length;i++)n.push(this.body.nodes[e[i]]);return n}},{key:"_getDistribution",value:function(){var e={},n,i;for(n in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,n)){i=this.body.nodes[n];var o=this.hierarchical.levels[n]===void 0?0:this.hierarchical.levels[n];this.direction.fix(i,o),e[o]===void 0&&(e[o]={}),e[o][n]=i}return e}},{key:"_getActiveEdges",value:function(e){var n=this,i=[];return ht(e.edges,function(o){var a;Ot(a=n.body.edgeIndices).call(a,o.id)!==-1&&i.push(o)}),i}},{key:"_getHubSizes",value:function(){var e=this,n={},i=this.body.nodeIndices;ht(i,function(a){var s=e.body.nodes[a],l=e._getActiveEdges(s).length;n[l]=!0});var o=[];return ht(n,function(a){o.push(Number(a))}),tA(o).call(o,function(a,s){return s-a}),o}},{key:"_determineLevelsByHubsize",value:function(){for(var e=this,n=function(l,g){e.hierarchical.levelDownstream(l,g)},i=this._getHubSizes(),o=function(){var l=i[a];if(l===0)return 1;ht(e.body.nodeIndices,function(g){var u=e.body.nodes[g];l===e._getActiveEdges(u).length&&e._crawlNetwork(n,g)})},a=0;a<i.length&&!o();++a);}},{key:"_determineLevelsCustomCallback",value:function(){var e=this,n=1e5,i=function(s,l,g){},o=function(s,l,g){var u=e.hierarchical.levels[s.id];u===void 0&&(u=e.hierarchical.levels[s.id]=n);var c=i(Nn.cloneOptions(s,"node"),Nn.cloneOptions(l,"node"),Nn.cloneOptions(g,"edge"));e.hierarchical.levels[l.id]=u+c};this._crawlNetwork(o),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_determineLevelsDirected",value:function(){var e,n=this,i=HQ(e=this.body.nodeIndices).call(e,function(o,a){return o.set(a,n.body.nodes[a]),o},new hQ);this.options.hierarchical.shakeTowards==="roots"?this.hierarchical.levels=fkt(i):this.hierarchical.levels=Akt(i),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_generateMap",value:function(){var e=this,n=function(o,a){e.hierarchical.levels[a.id]>e.hierarchical.levels[o.id]&&e.hierarchical.addRelation(o.id,a.id)};this._crawlNetwork(n),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},i=arguments.length>1?arguments[1]:void 0,o={},a=function d(h,A){if(o[h.id]===void 0){e.hierarchical.setTreeIndex(h,A),o[h.id]=!0;for(var f,C=e._getActiveEdges(h),I=0;I<C.length;I++){var v=C[I];v.connected===!0&&(v.toId==h.id?f=v.from:f=v.to,h.id!=f.id&&(n(h,f,v),d(f,A)))}}};if(i===void 0)for(var s=0,l=0;l<this.body.nodeIndices.length;l++){var g=this.body.nodeIndices[l];if(o[g]===void 0){var u=this.body.nodes[g];a(u,s),s+=1}}else{var c=this.body.nodes[i];if(c===void 0){console.error("Node not found:",i);return}a(c)}}},{key:"_shiftBlock",value:function(e,n){var i=this,o={},a=function s(l){if(!o[l]){o[l]=!0,i.direction.shift(l,n);var g=i.hierarchical.childrenReference[l];if(g!==void 0)for(var u=0;u<g.length;u++)s(g[u])}};a(e)}},{key:"_findCommonParent",value:function(e,n){var i=this,o={},a=function l(g,u){var c=i.hierarchical.parentReference[u];if(c!==void 0)for(var d=0;d<c.length;d++){var h=c[d];g[h]=!0,l(g,h)}},s=function l(g,u){var c=i.hierarchical.parentReference[u];if(c!==void 0)for(var d=0;d<c.length;d++){var h=c[d];if(g[h]!==void 0)return{foundParent:h,withChild:u};var A=l(g,h);if(A.foundParent!==null)return A}return{foundParent:null,withChild:u}};return a(o,e),s(o,n)}},{key:"setDirectionStrategy",value:function(){var e=this.options.hierarchical.direction==="UD"||this.options.hierarchical.direction==="DU";e?this.direction=new QOt(this):this.direction=new qOt(this)}},{key:"_getCenterPosition",value:function(e){for(var n=1e9,i=-1e9,o=0;o<e.length;o++){var a=void 0;if(e[o].id!==void 0)a=e[o];else{var s=e[o];a=this.body.nodes[s]}var l=this.direction.getPosition(a);n=Math.min(n,l),i=Math.max(i,l)}return .5*(n+i)}}]),t}();function vkt(t,r){var e=typeof Ol<"u"&&du(t)||t["@@iterator"];if(!e){if(Ft(t)||(e=pkt(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(g){throw g},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1090
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function pkt(t,r){var e;if(t){if(typeof t=="string")return O4(t,r);var n=pn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return cu(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O4(t,r)}}function O4(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var mkt=function(){function t(r,e,n,i){var o=this,a,s;ve(this,t),this.body=r,this.canvas=e,this.selectionHandler=n,this.interactionHandler=i,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this._domEventListenerCleanupQueue=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},Lr(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){o._clean()}),this.body.emitter.on("_dataChanged",de(a=this._restore).call(a,this)),this.body.emitter.on("_resetData",de(s=this._restore).call(s,this))}return pe(t,[{key:"_restore",value:function(){this.inMode!==!1&&(this.options.initiallyActive===!0?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(e,n,i){n!==void 0&&(n.locale!==void 0?this.options.locale=n.locale:this.options.locale=i.locale,n.locales!==void 0?this.options.locales=n.locales:this.options.locales=i.locales),e!==void 0&&(typeof e=="boolean"?this.options.enabled=e:(this.options.enabled=!0,Xt(this.options,e)),this.options.initiallyActive===!0&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){this.editMode===!0?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},this.guiEnabled===!0){var e,n;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var i=this.selectionHandler.getSelectedNodeCount(),o=this.selectionHandler.getSelectedEdgeCount(),a=i+o,s=this.options.locales[this.options.locale],l=!1;this.options.addNode!==!1&&(this._createAddNodeButton(s),l=!0),this.options.addEdge!==!1&&(l===!0?this._createSeperator(1):l=!0,this._createAddEdgeButton(s)),i===1&&typeof this.options.editNode=="function"?(l===!0?this._createSeperator(2):l=!0,this._createEditNodeButton(s)):o===1&&i===0&&this.options.editEdge!==!1&&(l===!0?this._createSeperator(3):l=!0,this._createEditEdgeButton(s)),a!==0&&(i>0&&this.options.deleteNode!==!1?(l===!0&&this._createSeperator(4),this._createDeleteButton(s)):i===0&&this.options.deleteEdge!==!1&&(l===!0&&this._createSeperator(4),this._createDeleteButton(s))),this._bindElementEvents(this.closeDiv,de(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",de(n=this.showManipulatorToolbar).call(n,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var n,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,de(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",de(e=this._performAddNode).call(e,this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var n=this.selectionHandler.getSelectedNodes()[0];if(n!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(n.isCluster!==!0){var i=Xt({},n.options,!1);if(i.x=n.x,i.y=n.y,this.options.editNode.length===2)this.options.editNode(i,function(o){o!=null&&e.inMode==="editNode"&&e.body.data.nodes.getDataSet().update(o),e.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var e,n,i,o,a;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var s,l=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(l),this._createSeperator(),this._createDescription(l.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,de(s=this.toggleEditMode).call(s,this))}this._temporaryBindUI("onTouch",de(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",de(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",de(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",de(o=this._finishConnect).call(o,this)),this._temporaryBindUI("onDragStart",de(a=this._dragStartEdge).call(a,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",Gt(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id);return}if(this.guiEnabled===!0){var n,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,de(n=this.toggleEditMode).call(n,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var o,a,s,l,g=this.body.edges[this.edgeBeingEditedId],u=this._getNewTargetNode(g.from.x,g.from.y),c=this._getNewTargetNode(g.to.x,g.to.y);this.temporaryIds.nodes.push(u.id),this.temporaryIds.nodes.push(c.id),this.body.nodes[u.id]=u,this.body.nodeIndices.push(u.id),this.body.nodes[c.id]=c,this.body.nodeIndices.push(c.id),this._temporaryBindUI("onTouch",de(o=this._controlNodeTouch).call(o,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",de(a=this._controlNodeDragStart).call(a,this)),this._temporaryBindUI("onDrag",de(s=this._controlNodeDrag).call(s,this)),this._temporaryBindUI("onDragEnd",de(l=this._controlNodeDragEnd).call(l,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(d){var h=g.edgeType.findBorderPositions(d);u.selected===!1&&(u.x=h.from.x,u.y=h.from.y),c.selected===!1&&(c.x=h.to.x,c.y=h.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var n=this.selectionHandler.getSelectedNodeIds(),i=this.selectionHandler.getSelectedEdgeIds(),o=void 0;if(n.length>0){for(var a=0;a<n.length;a++)if(this.body.nodes[n[a]].isCluster===!0){alert(this.options.locales[this.options.locale].deleteClusterError||this.options.locales.en.deleteClusterError);return}typeof this.options.deleteNode=="function"&&(o=this.options.deleteNode)}else i.length>0&&typeof this.options.deleteEdge=="function"&&(o=this.options.deleteEdge);if(typeof o=="function"){var s={nodes:n,edges:i};if(o.length===2)o(s,function(l){l!=null&&e.inMode==="delete"?(e.body.data.edges.getDataSet().remove(l.edges),e.body.data.nodes.getDataSet().remove(l.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(i),this.body.data.nodes.getDataSet().remove(n),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,n;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(n=this.options.locales[this.options.locale])===null||n===void 0?void 0:n.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}},{key:"_getNewTargetNode",value:function(e,n){var i=Xt({},this.options.controlNodeStyle);i.id="targetNode"+Jh(),i.hidden=!1,i.physics=!1,i.x=e,i.y=n;var o=this.body.functions.createNode(i);return o.shape.boundingBox={left:e,right:e,top:n,bottom:n},o}},{key:"_createEditButton",value:function(){var e;this._clean(),this.manipulationDOM={},ms(this.editModeDiv);var n=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-edit vis-edit-mode",n.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,de(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(ms(this.editModeDiv),ms(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,n=vkt(ka(e=this._domEventListenerCleanupQueue).call(e,0)),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;o()}}catch(a){n.e(a)}finally{n.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),ms(this.manipulationDiv),ms(this.editModeDiv),ms(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var n,i=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,de(n=this.addNodeMode).call(n,this))}},{key:"_createAddEdgeButton",value:function(e){var n,i=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,de(n=this.addEdgeMode).call(n,this))}},{key:"_createEditNodeButton",value:function(e){var n,i=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,de(n=this.editNode).call(n,this))}},{key:"_createEditEdgeButton",value:function(e){var n,i=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,de(n=this.editEdgeMode).call(n,this))}},{key:"_createDeleteButton",value:function(e){var n,i;this.options.rtl?i="vis-delete-rtl":i="vis-delete";var o=this._createButton("delete",i,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(o),this._bindElementEvents(o,de(n=this.deleteSelected).call(n,this))}},{key:"_createBackButton",value:function(e){var n,i=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,de(n=this.showManipulatorToolbar).call(n,this))}},{key:"_createButton",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+n,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=o,this.manipulationDOM[e+"Label"].innerText=i,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(e,n){this.temporaryEventFunctions.push({event:e,boundFunction:n}),this.body.emitter.on(e,n)}},{key:"_temporaryBindUI",value:function(e,n){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=n;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+vC(Ar(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e<this.temporaryEventFunctions.length;e++){var n=this.temporaryEventFunctions[e].event,i=this.temporaryEventFunctions[e].boundFunction;this.body.emitter.off(n,i)}this.temporaryEventFunctions=[]}},{key:"_bindElementEvents",value:function(e,n){var i=new pc(e,{});dm(i,n),this._domEventListenerCleanupQueue.push(function(){i.destroy()});var o=function(s){var l=s.keyCode,g=s.key;(g==="Enter"||g===" "||l===13||l===32)&&n()};e.addEventListener("keyup",o,!1),this._domEventListenerCleanupQueue.push(function(){e.removeEventListener("keyup",o,!1)})}},{key:"_cleanupTemporaryNodesAndEdges",value:function(){for(var e=0;e<this.temporaryIds.edges.length;e++){var n;this.body.edges[this.temporaryIds.edges[e]].disconnect(),delete this.body.edges[this.temporaryIds.edges[e]];var i=Ot(n=this.body.edgeIndices).call(n,this.temporaryIds.edges[e]);if(i!==-1){var o;ka(o=this.body.edgeIndices).call(o,i,1)}}for(var a=0;a<this.temporaryIds.nodes.length;a++){var s;delete this.body.nodes[this.temporaryIds.nodes[a]];var l=Ot(s=this.body.nodeIndices).call(s,this.temporaryIds.nodes[a]);if(l!==-1){var g;ka(g=this.body.nodeIndices).call(g,l,1)}}this.temporaryIds={nodes:[],edges:[]}}},{key:"_controlNodeTouch",value:function(e){this.selectionHandler.unselectAll(),this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Lr({},this.body.view.translation)}},{key:"_controlNodeDragStart",value:function(){var e=this.lastTouch,n=this.selectionHandler._pointerToPositionObject(e),i=this.body.nodes[this.temporaryIds.nodes[0]],o=this.body.nodes[this.temporaryIds.nodes[1]],a=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=void 0;var s=i.isOverlappingWith(n),l=o.isOverlappingWith(n);s===!0?(this.selectedControlNode=i,a.edgeType.from=i):l===!0&&(this.selectedControlNode=o,a.edgeType.to=o),this.selectedControlNode!==void 0&&this.selectionHandler.selectObject(this.selectedControlNode),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDrag",value:function(e){this.body.emitter.emit("disablePhysics");var n=this.body.functions.getPointer(e.center),i=this.canvas.DOMtoCanvas(n);this.selectedControlNode!==void 0?(this.selectedControlNode.x=i.x,this.selectedControlNode.y=i.y):this.interactionHandler.onDrag(e),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDragEnd",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=this.body.edges[this.edgeBeingEditedId];if(this.selectedControlNode!==void 0){this.selectionHandler.unselectAll();for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--)if(a[l]!==this.selectedControlNode.id){s=this.body.nodes[a[l]];break}if(s!==void 0&&this.selectedControlNode!==void 0)if(s.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var g=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===g.id?this._performEditEdge(s.id,o.to.id):this._performEditEdge(o.from.id,s.id)}else o.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Lr({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var n=this.lastTouch,i=this.selectionHandler.getNodeAt(n);if(i!==void 0)if(i.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var o=this._getNewTargetNode(i.x,i.y);this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id);var a=this.body.functions.createEdge({id:"connectionEdge"+Jh(),from:i.id,to:o.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[a.id]=a,this.body.edgeIndices.push(a.id),this.temporaryIds.nodes.push(o.id),this.temporaryIds.edges.push(a.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var g;if(Ot(g=this.temporaryIds.nodes).call(g,a[l])===-1){s=this.body.nodes[a[l]];break}}if(e.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,n),this.temporaryIds.nodes[0]!==void 0){var u=this.body.nodes[this.temporaryIds.nodes[0]];u.x=this.canvas._XconvertDOMtoCanvas(n.x),u.y=this.canvas._YconvertDOMtoCanvas(n.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}},{key:"_finishConnect",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var g;if(Ot(g=this.temporaryIds.nodes).call(g,a[l])===-1){s=this.body.nodes[a[l]];break}}this._cleanupTemporaryNodesAndEdges(),s!==void 0&&(s.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[o]!==void 0&&this.body.nodes[s.id]!==void 0&&this._performAddEdge(o,s.id)),e.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,n),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(e){var n=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,n,void 0,!0)}},{key:"_performAddNode",value:function(e){var n=this,i={id:Jh(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(i,function(o){o!=null&&n.inMode==="addNode"&&n.body.data.nodes.getDataSet().add(o),n.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,n){var i=this,o={from:e,to:n};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(o,function(a){a!=null&&i.inMode==="addEdge"&&(i.body.data.edges.getDataSet().add(a),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,n){var i=this,o={id:this.edgeBeingEditedId,from:e,to:n,label:this.body.data.edges.get(this.edgeBeingEditedId).label},a=this.options.editEdge;if(Gt(a)==="object"&&(a=a.editWithoutDrag),typeof a=="function")if(a.length===2)a(o,function(s){s==null||i.inMode!=="editEdge"?(i.body.edges[o.id].updateEdgeType(),i.body.emitter.emit("_redraw"),i.showManipulatorToolbar()):(i.body.data.edges.getDataSet().update(s),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),Ie="string",ge="boolean",X="number",_h="array",Be="object",XQ="dom",ykt="any",Bw=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],Fw={borderWidth:{number:X},borderWidthSelected:{number:X,undefined:"undefined"},brokenImage:{string:Ie,undefined:"undefined"},chosen:{label:{boolean:ge,function:"function"},node:{boolean:ge,function:"function"},__type__:{object:Be,boolean:ge}},color:{border:{string:Ie},background:{string:Ie},highlight:{border:{string:Ie},background:{string:Ie},__type__:{object:Be,string:Ie}},hover:{border:{string:Ie},background:{string:Ie},__type__:{object:Be,string:Ie}},__type__:{object:Be,string:Ie}},opacity:{number:X,undefined:"undefined"},fixed:{x:{boolean:ge},y:{boolean:ge},__type__:{object:Be,boolean:ge}},font:{align:{string:Ie},color:{string:Ie},size:{number:X},face:{string:Ie},background:{string:Ie},strokeWidth:{number:X},strokeColor:{string:Ie},vadjust:{number:X},multi:{boolean:ge,string:Ie},bold:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},boldital:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},ital:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},mono:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},__type__:{object:Be,string:Ie}},group:{string:Ie,number:X,undefined:"undefined"},heightConstraint:{minimum:{number:X},valign:{string:Ie},__type__:{object:Be,boolean:ge,number:X}},hidden:{boolean:ge},icon:{face:{string:Ie},code:{string:Ie},size:{number:X},color:{string:Ie},weight:{string:Ie,number:X},__type__:{object:Be}},id:{string:Ie,number:X},image:{selected:{string:Ie,undefined:"undefined"},unselected:{string:Ie,undefined:"undefined"},__type__:{object:Be,string:Ie}},imagePadding:{top:{number:X},right:{number:X},bottom:{number:X},left:{number:X},__type__:{object:Be,number:X}},label:{string:Ie,undefined:"undefined"},labelHighlightBold:{boolean:ge},level:{number:X,undefined:"undefined"},margin:{top:{number:X},right:{number:X},bottom:{number:X},left:{number:X},__type__:{object:Be,number:X}},mass:{number:X},physics:{boolean:ge},scaling:{min:{number:X},max:{number:X},label:{enabled:{boolean:ge},min:{number:X},max:{number:X},maxVisible:{number:X},drawThreshold:{number:X},__type__:{object:Be,boolean:ge}},customScalingFunction:{function:"function"},__type__:{object:Be}},shadow:{enabled:{boolean:ge},color:{string:Ie},size:{number:X},x:{number:X},y:{number:X},__type__:{object:Be,boolean:ge}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:ge,array:_h},borderRadius:{number:X},interpolation:{boolean:ge},useImageSize:{boolean:ge},useBorderWithImage:{boolean:ge},coordinateOrigin:{string:["center","top-left"]},__type__:{object:Be}},size:{number:X},title:{string:Ie,dom:XQ,undefined:"undefined"},value:{number:X,undefined:"undefined"},widthConstraint:{minimum:{number:X},maximum:{number:X},__type__:{object:Be,boolean:ge,number:X}},x:{number:X},y:{number:X},__type__:{object:Be}},bkt={configure:{enabled:{boolean:ge},filter:{boolean:ge,string:Ie,array:_h,function:"function"},container:{dom:XQ},showButton:{boolean:ge},__type__:{object:Be,boolean:ge,string:Ie,array:_h,function:"function"}},edges:{arrows:{to:{enabled:{boolean:ge},scaleFactor:{number:X},type:{string:Bw},imageHeight:{number:X},imageWidth:{number:X},src:{string:Ie},__type__:{object:Be,boolean:ge}},middle:{enabled:{boolean:ge},scaleFactor:{number:X},type:{string:Bw},imageWidth:{number:X},imageHeight:{number:X},src:{string:Ie},__type__:{object:Be,boolean:ge}},from:{enabled:{boolean:ge},scaleFactor:{number:X},type:{string:Bw},imageWidth:{number:X},imageHeight:{number:X},src:{string:Ie},__type__:{object:Be,boolean:ge}},__type__:{string:["from","to","middle"],object:Be}},endPointOffset:{from:{number:X},to:{number:X},__type__:{object:Be,number:X}},arrowStrikethrough:{boolean:ge},background:{enabled:{boolean:ge},color:{string:Ie},size:{number:X},dashes:{boolean:ge,array:_h},__type__:{object:Be,boolean:ge}},chosen:{label:{boolean:ge,function:"function"},edge:{boolean:ge,function:"function"},__type__:{object:Be,boolean:ge}},color:{color:{string:Ie},highlight:{string:Ie},hover:{string:Ie},inherit:{string:["from","to","both"],boolean:ge},opacity:{number:X},__type__:{object:Be,string:Ie}},dashes:{boolean:ge,array:_h},font:{color:{string:Ie},size:{number:X},face:{string:Ie},background:{string:Ie},strokeWidth:{number:X},strokeColor:{string:Ie},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:X},multi:{boolean:ge,string:Ie},bold:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},boldital:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},ital:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},mono:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},__type__:{object:Be,string:Ie}},hidden:{boolean:ge},hoverWidth:{function:"function",number:X},label:{string:Ie,undefined:"undefined"},labelHighlightBold:{boolean:ge},length:{number:X,undefined:"undefined"},physics:{boolean:ge},scaling:{min:{number:X},max:{number:X},label:{enabled:{boolean:ge},min:{number:X},max:{number:X},maxVisible:{number:X},drawThreshold:{number:X},__type__:{object:Be,boolean:ge}},customScalingFunction:{function:"function"},__type__:{object:Be}},selectionWidth:{function:"function",number:X},selfReferenceSize:{number:X},selfReference:{size:{number:X},angle:{number:X},renderBehindTheNode:{boolean:ge},__type__:{object:Be}},shadow:{enabled:{boolean:ge},color:{string:Ie},size:{number:X},x:{number:X},y:{number:X},__type__:{object:Be,boolean:ge}},smooth:{enabled:{boolean:ge},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:X},forceDirection:{string:["horizontal","vertical","none"],boolean:ge},__type__:{object:Be,boolean:ge}},title:{string:Ie,undefined:"undefined"},width:{number:X},widthConstraint:{maximum:{number:X},__type__:{object:Be,boolean:ge,number:X}},value:{number:X,undefined:"undefined"},__type__:{object:Be}},groups:{useDefaultGroups:{boolean:ge},__any__:Fw,__type__:{object:Be}},interaction:{dragNodes:{boolean:ge},dragView:{boolean:ge},hideEdgesOnDrag:{boolean:ge},hideEdgesOnZoom:{boolean:ge},hideNodesOnDrag:{boolean:ge},hover:{boolean:ge},keyboard:{enabled:{boolean:ge},speed:{x:{number:X},y:{number:X},zoom:{number:X},__type__:{object:Be}},bindToWindow:{boolean:ge},autoFocus:{boolean:ge},__type__:{object:Be,boolean:ge}},multiselect:{boolean:ge},navigationButtons:{boolean:ge},selectable:{boolean:ge},selectConnectedEdges:{boolean:ge},hoverConnectedEdges:{boolean:ge},tooltipDelay:{number:X},zoomView:{boolean:ge},zoomSpeed:{number:X},__type__:{object:Be}},layout:{randomSeed:{undefined:"undefined",number:X,string:Ie},improvedLayout:{boolean:ge},clusterThreshold:{number:X},hierarchical:{enabled:{boolean:ge},levelSeparation:{number:X},nodeSpacing:{number:X},treeSpacing:{number:X},blockShifting:{boolean:ge},edgeMinimization:{boolean:ge},parentCentralization:{boolean:ge},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:Be,boolean:ge}},__type__:{object:Be}},manipulation:{enabled:{boolean:ge},initiallyActive:{boolean:ge},addNode:{boolean:ge,function:"function"},addEdge:{boolean:ge,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:Be,boolean:ge,function:"function"}},deleteNode:{boolean:ge,function:"function"},deleteEdge:{boolean:ge,function:"function"},controlNodeStyle:Fw,__type__:{object:Be,boolean:ge}},nodes:Fw,physics:{enabled:{boolean:ge},barnesHut:{theta:{number:X},gravitationalConstant:{number:X},centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Be}},forceAtlas2Based:{theta:{number:X},gravitationalConstant:{number:X},centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Be}},repulsion:{centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},nodeDistance:{number:X},damping:{number:X},__type__:{object:Be}},hierarchicalRepulsion:{centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},nodeDistance:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Be}},maxVelocity:{number:X},minVelocity:{number:X},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:ge},iterations:{number:X},updateInterval:{number:X},onlyDynamicEdges:{boolean:ge},fit:{boolean:ge},__type__:{object:Be,boolean:ge}},timestep:{number:X},adaptiveTimestep:{boolean:ge},wind:{x:{number:X},y:{number:X},__type__:{object:Be}},__type__:{object:Be,boolean:ge}},autoResize:{boolean:ge},clickToUse:{boolean:ge},locale:{string:Ie},locales:{__any__:{any:ykt},__type__:{object:Be}},height:{string:Ie},width:{string:Ie},__type__:{object:Be}},QQ={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},$kt=function(r,e,n){var i;return!!(Hs(r).call(r,"physics")&&Hs(i=QQ.physics.solver).call(i,e)&&n.physics.solver!==e&&e!=="wind")},wkt=function(){function t(){ve(this,t)}return pe(t,[{key:"getDistances",value:function(e,n,i){for(var o={},a=e.edges,s=0;s<n.length;s++){var l=n[s],g={};o[l]=g;for(var u=0;u<n.length;u++)g[n[u]]=s==u?0:1e9}for(var c=0;c<i.length;c++){var d=a[i[c]];d.connected===!0&&o[d.fromId]!==void 0&&o[d.toId]!==void 0&&(o[d.fromId][d.toId]=1,o[d.toId][d.fromId]=1)}for(var h=n.length,A=0;A<h;A++)for(var f=n[A],C=o[f],I=0;I<h-1;I++)for(var v=n[I],p=o[v],y=I+1;y<h;y++){var b=n[y],_=o[b],P=Math.min(p[b],p[f]+C[b]);p[b]=P,_[v]=P}return o}}]),t}(),_kt=function(){function t(r,e,n){ve(this,t),this.body=r,this.springLength=e,this.springConstant=n,this.distanceSolver=new wkt}return pe(t,[{key:"setOptions",value:function(e){e&&(e.springLength&&(this.springLength=e.springLength),e.springConstant&&(this.springConstant=e.springConstant))}},{key:"solve",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.distanceSolver.getDistances(this.body,e,n);this._createL_matrix(o),this._createK_matrix(o),this._createE_matrix();for(var a=.01,s=1,l=0,g=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),u=5,c=1e9,d=0,h=0,A=0,f=0,C=0;c>a&&l<g;){l+=1;var I=this._getHighestEnergyNode(i),v=fr(I,4);for(d=v[0],c=v[1],h=v[2],A=v[3],f=c,C=0;f>s&&C<u;){C+=1,this._moveNode(d,h,A);var p=this._getEnergy(d),y=fr(p,3);f=y[0],h=y[1],A=y[2]}}}},{key:"_getHighestEnergyNode",value:function(e){for(var n=this.body.nodeIndices,i=this.body.nodes,o=0,a=n[0],s=0,l=0,g=0;g<n.length;g++){var u=n[g];if(i[u].predefinedPosition!==!0||i[u].isCluster===!0&&e===!0||i[u].options.fixed.x!==!0||i[u].options.fixed.y!==!0){var c=this._getEnergy(u),d=fr(c,3),h=d[0],A=d[1],f=d[2];o<h&&(o=h,a=u,s=A,l=f)}}return[a,o,s,l]}},{key:"_getEnergy",value:function(e){var n=fr(this.E_sums[e],2),i=n[0],o=n[1],a=Math.sqrt(Math.pow(i,2)+Math.pow(o,2));return[a,i,o]}},{key:"_moveNode",value:function(e,n,i){for(var o=this.body.nodeIndices,a=this.body.nodes,s=0,l=0,g=0,u=a[e].x,c=a[e].y,d=this.K_matrix[e],h=this.L_matrix[e],A=0;A<o.length;A++){var f=o[A];if(f!==e){var C=a[f].x,I=a[f].y,v=d[f],p=h[f],y=1/Math.pow(Math.pow(u-C,2)+Math.pow(c-I,2),1.5);s+=v*(1-p*Math.pow(c-I,2)*y),l+=v*(p*(u-C)*(c-I)*y),g+=v*(1-p*Math.pow(u-C,2)*y)}}var b=s,_=l,P=n,k=g,E=i,O=(P/b+E/_)/(_/b-k/_),N=-(_*O+P)/b;a[e].x+=N,a[e].y+=O,this._updateE_matrix(e)}},{key:"_createL_matrix",value:function(e){var n=this.body.nodeIndices,i=this.springLength;this.L_matrix=[];for(var o=0;o<n.length;o++){this.L_matrix[n[o]]={};for(var a=0;a<n.length;a++)this.L_matrix[n[o]][n[a]]=i*e[n[o]][n[a]]}}},{key:"_createK_matrix",value:function(e){var n=this.body.nodeIndices,i=this.springConstant;this.K_matrix=[];for(var o=0;o<n.length;o++){this.K_matrix[n[o]]={};for(var a=0;a<n.length;a++)this.K_matrix[n[o]][n[a]]=i*Math.pow(e[n[o]][n[a]],-2)}}},{key:"_createE_matrix",value:function(){var e=this.body.nodeIndices,n=this.body.nodes;this.E_matrix={},this.E_sums={};for(var i=0;i<e.length;i++)this.E_matrix[e[i]]=[];for(var o=0;o<e.length;o++){for(var a=e[o],s=n[a].x,l=n[a].y,g=0,u=0,c=o;c<e.length;c++){var d=e[c];if(d!==a){var h=n[d].x,A=n[d].y,f=1/Math.sqrt(Math.pow(s-h,2)+Math.pow(l-A,2));this.E_matrix[a][c]=[this.K_matrix[a][d]*(s-h-this.L_matrix[a][d]*(s-h)*f),this.K_matrix[a][d]*(l-A-this.L_matrix[a][d]*(l-A)*f)],this.E_matrix[d][o]=this.E_matrix[a][c],g+=this.E_matrix[a][c][0],u+=this.E_matrix[a][c][1]}}this.E_sums[a]=[g,u]}}},{key:"_updateE_matrix",value:function(e){for(var n=this.body.nodeIndices,i=this.body.nodes,o=this.E_matrix[e],a=this.K_matrix[e],s=this.L_matrix[e],l=i[e].x,g=i[e].y,u=0,c=0,d=0;d<n.length;d++){var h=n[d];if(h!==e){var A=o[d],f=A[0],C=A[1],I=i[h].x,v=i[h].y,p=1/Math.sqrt(Math.pow(l-I,2)+Math.pow(g-v,2)),y=a[h]*(l-I-s[h]*(l-I)*p),b=a[h]*(g-v-s[h]*(g-v)*p);o[d]=[y,b],u+=y,c+=b;var _=this.E_sums[h];_[0]+=y-f,_[1]+=b-C}}this.E_sums[e]=[u,c]}}]),t}();function De(t,r,e){var n,i,o,a,s=this;if(!(this instanceof De))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:b1t,clickToUse:!1},Lr(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:de(n=this.on).call(n,this),off:de(i=this.off).call(i,this),emit:de(o=this.emit).call(o,this),once:de(a=this.once).call(a,this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}},selectionBox:{show:!1,position:{start:{x:0,y:0},end:{x:0,y:0}}}},this.bindEventListeners(),this.images=new _1t(function(){return s.body.emitter.emit("_requestRedraw")}),this.groups=new V$t,this.canvas=new oTt(this.body),this.selectionHandler=new YTt(this.body,this.canvas),this.interactionHandler=new cTt(this.body,this.canvas,this.selectionHandler),this.view=new sTt(this.body,this.canvas),this.renderer=new eTt(this.body,this.canvas),this.physics=new W2t(this.body),this.layoutEngine=new Ikt(this.body),this.clustering=new q2t(this.body),this.manipulation=new mkt(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new SSt(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new D2t(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new _kt(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(e),this.setData(r)}XK(De.prototype);De.prototype.setOptions=function(t){var r=this;if(t===null&&(t=void 0),t!==void 0){var e=J0t.validate(t,bkt);e===!0&&console.error("%cErrors have been found in the supplied options object.",JX);var n=["locale","locales","clickToUse"];if(Jd(n,this.options,t),t.locale!==void 0&&(t.locale=$1t(t.locales||this.options.locales,t.locale)),t=this.layoutEngine.setOptions(t.layout,t),this.canvas.setOptions(t),this.groups.setOptions(t.groups),this.nodesHandler.setOptions(t.nodes),this.edgesHandler.setOptions(t.edges),this.physics.setOptions(t.physics),this.manipulation.setOptions(t.manipulation,t,this.options),this.interactionHandler.setOptions(t.interaction),this.renderer.setOptions(t.interaction),this.selectionHandler.setOptions(t.interaction),t.groups!==void 0&&this.body.emitter.emit("refreshNodes"),"configure"in t&&(this.configurator||(this.configurator=new Q0t(this,this.body.container,QQ,this.canvas.pixelRatio,$kt)),this.configurator.setOptions(t.configure)),this.configurator&&this.configurator.options.enabled===!0){var i={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};Xt(i.nodes,this.nodesHandler.options),Xt(i.edges,this.edgesHandler.options),Xt(i.layout,this.layoutEngine.options),Xt(i.interaction,this.selectionHandler.options),Xt(i.interaction,this.renderer.options),Xt(i.interaction,this.interactionHandler.options),Xt(i.manipulation,this.manipulation.options),Xt(i.physics,this.physics.options),Xt(i.global,this.canvas.options),Xt(i.global,this.options),this.configurator.setModuleOptions(i)}t.clickToUse!==void 0?t.clickToUse===!0?this.activator===void 0&&(this.activator=new X0t(this.canvas.frame),this.activator.on("change",function(){r.body.emitter.emit("activate")})):(this.activator!==void 0&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}};De.prototype._updateVisibleIndices=function(){var t=this.body.nodes,r=this.body.edges;this.body.nodeIndices=[],this.body.edgeIndices=[];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&!this.clustering._isClusteredNode(e)&&t[e].options.hidden===!1&&this.body.nodeIndices.push(t[e].id);for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var i=r[n],o=t[i.fromId],a=t[i.toId],s=o!==void 0&&a!==void 0,l=!this.clustering._isClusteredEdge(n)&&i.options.hidden===!1&&s&&o.options.hidden===!1&&a.options.hidden===!1;l&&this.body.edgeIndices.push(i.id)}};De.prototype.bindEventListeners=function(){var t=this;this.body.emitter.on("_dataChanged",function(){t.edgesHandler._updateState(),t.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",function(){t.clustering._updateState(),t._updateVisibleIndices(),t._updateValueRange(t.body.nodes),t._updateValueRange(t.body.edges),t.body.emitter.emit("startSimulation"),t.body.emitter.emit("_requestRedraw")})};De.prototype.setData=function(t){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),t&&t.dot&&(t.nodes||t.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(t&&t.options),t&&t.dot){console.warn("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var r=g1t(t.dot);this.setData(r);return}else if(t&&t.gephi){console.warn("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var e=u1t(t.gephi);this.setData(e);return}else this.nodesHandler.setData(t&&t.nodes,!0),this.edgesHandler.setData(t&&t.edges,!0);this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")};De.prototype.destroy=function(){this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images;for(var t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&delete this.body.nodes[t];for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&delete this.body.edges[r];ms(this.body.container)};De.prototype._updateValueRange=function(t){var r,e=void 0,n=void 0,i=0;for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r].getValue();o!==void 0&&(e=e===void 0?o:Math.min(o,e),n=n===void 0?o:Math.max(o,n),i+=o)}if(e!==void 0&&n!==void 0)for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&t[r].setValueRange(e,n,i)};De.prototype.isActive=function(){return!this.activator||this.activator.active};De.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};De.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};De.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};De.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};De.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};De.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};De.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};De.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};De.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};De.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};De.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};De.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};De.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};De.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};De.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};De.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};De.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};De.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};De.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};De.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};De.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};De.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};De.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};De.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};De.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};De.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};De.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};De.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};De.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};De.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};De.prototype.getConnectedNodes=function(t){return this.body.nodes[t]!==void 0?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)};De.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};De.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};De.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};De.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};De.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};De.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};De.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};De.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};De.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};De.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};De.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};De.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};De.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};De.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};De.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};De.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};De.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};De.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};De.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};De.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};De.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t};const Ekt={flex:"~ col",relative:"","h-screen":"","of-hidden":"","panel-grids":"",class:"graph-body"},Skt=we({__name:"graph",setup(t){const r=yn();_o(async()=>{const a=await r.root();r.getGraph().then(s=>{Aje(s,a)})});const e=H(),n=aa();function i(){const a=e.value,s=n.value=new De(a,{nodes:jc,edges:Vc},cB.value);et(cB,l=>{s.setOptions(l)},{immediate:!0}),s.on("selectNode",l=>{Ije(l.nodes[0]),wE(!0)}),s.on("deselectNode",()=>{wE(!1)}),et(()=>Wc.value,l=>{l&&s.moveTo({position:{x:0,y:0}})})}Si(()=>{i()}),ad(()=>{cje(),n.value?.destroy()});const o=H();return(a,s)=>{const l=Rje,g=Oje,u=Tje;return T(),L("div",Ekt,[z(l,{ref_key:"navbarRef",ref:o},null,512),w("div",{ref_key:"container",ref:e,flex:"1"},null,512),z(g),z(u,{top:m(o)},null,8,["top"])])}}}),Tkt=w("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Vue DevTools! ",-1),Okt={"max-w-190":"","text-lg":""},kkt=w("br",null,null,-1),xkt=w("span",null,"Get Started",-1),Pkt=we({__name:"index",setup(t){const r=gd(),e=lr;function n(){e.value.isFirstVisit=!1,r.replace("/overview")}return(i,o)=>{const a=P2,s=Eo;return T(),re(s,{flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},{default:V(()=>[Tkt,w("p",Okt,[z(a,{"mr-0.5":"","inline-block":"","h-8":"","translate-y--1.1":"","align-mid":""}),ke(" is a set of visual tools that help you to know your Vue app better, and enhance your development experience with Vue. Enjoy!"),kkt]),z(m(at),{type:"primary",onClick:n},{default:V(()=>[xkt]),_:1})]),_:1})}}}),Rkt={"h-full":"","w-full":"","of-auto":"",px8:"",py6:""},Dkt={grid:"~ md:cols-2 gap-x-10 gap-y-3","max-w-300":""},Nkt={flex:"~ col gap-2"},Mkt=w("h3",{"text-lg":""}," Tabs ",-1),Bkt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},Fkt={capitalize:"",op75:""},Lkt=w("div",{"mx--1":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),zkt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"","text-sm":""},jkt=w("div",{"flex-auto":""},null,-1),Vkt=["onClick"],Gkt=w("div",{class:"i-carbon-caret-up"},null,-1),Wkt=[Gkt],Hkt=["onClick"],Ukt=w("div",{class:"i-carbon-caret-down"},null,-1),Zkt=[Ukt],Kkt=["onClick"],Ykt={flex:"~ col gap-2"},Xkt=w("h3",{"text-lg":""}," Appearance ",-1),Qkt={flex:"~ gap2"},qkt=w("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1),Jkt=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),ext=w("p",null,"UI Scale",-1),txt=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),rxt={class:"flex items-center gap2 text-sm"},nxt=w("span",{op75:""},"Expand Sidebar",-1),ixt={class:"flex items-center gap2 text-sm"},oxt=w("span",{op75:""},"Scrollable Sidebar",-1),axt=w("h3",{mt2:"","text-lg":""}," Features ",-1),sxt={class:"flex items-center gap2 text-sm"},lxt=w("span",{op75:""},"Close DevTools when clicking outside",-1),gxt={class:"flex items-center gap2 text-sm"},uxt=w("span",{op75:""},"Always show the floating panel",-1),cxt=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),dxt=w("p",null,"Minimize floating panel on inactive",-1),hxt=w("h3",{mt2:"","text-lg":""}," Debug ",-1),Axt={flex:"~ gap-2"},fxt=w("div",{"i-carbon-breaking-change":""},null,-1),Cxt=we({__name:"settings",setup(t){const r=Tr("viewMode",H("overlay")),e=J(()=>r.value==="panel"&&yc),{toggle:n}=Wm(),{categorizedTabs:i}=tf(),{scale:o,interactionCloseOnOutsideClick:a,showPanel:s,minimizePanelInteractive:l,expandSidebar:g,scrollableSidebar:u}=Lk(lr.value),c=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],d=[["Always",0],["1s",1e3],["2s",2e3],["5s",5e3],["10s",1e4],["Never",-1]],{hiddenTabCategories:h,hiddenTabs:A,pinnedTabs:f}=Lk(lr.value.tabSettings);function C(k,E){E?A.value=A.value.filter(O=>O!==k):A.value.push(k)}function I(k,E){E?h.value=h.value.filter(O=>O!==k):h.value.push(k)}function v(k){f.value.includes(k)?f.value=f.value.filter(E=>E!==k):f.value.push(k)}function p(k,E){const O=f.value.indexOf(k);if(O===-1)return;const N=O+E;if(N<0||N>=f.value.length)return;const D=[...f.value];D.splice(O,1),D.splice(N,0,k),f.value=D}const y=H(!1);async function b(){vle(),window.location.reload()}const _=d.map(([k,E])=>({label:k,value:E})),P=J(()=>`${_.find(E=>E.value===l.value)?.label??"Select..."}`);return(k,E)=>{const O=F2,N=qA;return T(),L("div",Rkt,[z(O,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),w("div",Dkt,[w("div",Nkt,[Mkt,(T(!0),L(be,null,pt(m(i),([{name:D,hidden:M},Q])=>(T(),L(be,{key:D},[Q.length?(T(),re(m(hv),{key:0,p3:"",flex:"~ col gap-1",class:Ee(M?"op50 grayscale":"")},{default:V(()=>[z(m(OP),{"model-value":!m(h).includes(D),class:"row-reverse flex hover:bg-active py1 pl2 pr1","onUpdate:modelValue":j=>I(D,j)},{default:V(()=>[w("div",Bkt,[w("span",Fkt,_e(D),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),Lkt,(T(!0),L(be,null,pt(Q,j=>(T(),re(m(OP),{key:j.name,class:Ee(["row-reverse n-primary flex hover:bg-active py1 pl2 pr1",j.hidden?"op35":""]),"model-value":!m(A).includes(j.name),"onUpdate:modelValue":W=>C(j.name,W)},{default:V(()=>[w("div",zkt,[z(N,{"text-xl":"",icon:j.icon,title:j.title},null,8,["icon","title"]),w("span",null,_e(j.title),1),jkt,m(f).includes(j.name)?(T(),L(be,{key:0},[w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:En(()=>{m(f).indexOf(j.name)!==0&&p(j.name,-1)},["stop"])},Wkt,8,Vkt),w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:En(()=>{m(f).indexOf(j.name)!==m(f).length-1&&p(j.name,1)},["stop"])},Zkt,8,Hkt)],64)):$e("",!0),w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:En(W=>v(j.name),["stop"])},[w("div",{class:Ee(m(f).includes(j.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op45")},null,2)],8,Kkt)])]),_:2},1032,["model-value","class","onUpdate:modelValue"]))),128))]),_:2},1032,["class"])):$e("",!0)],64))),128))]),w("div",Ykt,[Xkt,z(m(hv),{p4:"",flex:"~ col gap-2"},{default:V(()=>[w("div",Qkt,[z(m(g6),null,{default:V(({isDark:D,toggle:M})=>[z(m(at),{outlined:"",type:"primary",onClick:M},{default:V(()=>[qkt,ke(" "+_e(D?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),m(e)?(T(),re(m(at),{key:0,outlined:"",type:"primary",onClick:E[0]||(E[0]=D=>m(n)("overlay"))},{default:V(()=>[ke(" Switch to Overlay Mode ")]),_:1})):$e("",!0)]),Jkt,ext,w("div",null,[z(m(fp),{modelValue:m(o),"onUpdate:modelValue":E[1]||(E[1]=D=>ze(o)?o.value=D:null),options:c.map(([D,M])=>({label:D,value:M})),"button-props":{outlined:!0}},null,8,["modelValue","options"])]),txt,w("div",rxt,[z(m(zu),{modelValue:m(g),"onUpdate:modelValue":E[2]||(E[2]=D=>ze(g)?g.value=D:null)},null,8,["modelValue"]),nxt]),w("div",ixt,[z(m(zu),{modelValue:m(u),"onUpdate:modelValue":E[3]||(E[3]=D=>ze(u)?u.value=D:null)},null,8,["modelValue"]),oxt])]),_:1}),axt,z(m(hv),{p4:"",flex:"~ col gap-2"},{default:V(()=>[w("div",sxt,[z(m(zu),{modelValue:m(a),"onUpdate:modelValue":E[4]||(E[4]=D=>ze(a)?a.value=D:null)},null,8,["modelValue"]),lxt]),w("div",gxt,[z(m(zu),{modelValue:m(s),"onUpdate:modelValue":E[5]||(E[5]=D=>ze(s)?s.value=D:null)},null,8,["modelValue"]),uxt]),cxt,dxt,w("div",null,[z(m(fp),{modelValue:m(l),"onUpdate:modelValue":E[6]||(E[6]=D=>ze(l)?l.value=D:null),"button-props":{outlined:!0},options:m(_),placeholder:m(P)},null,8,["modelValue","options","placeholder"])])]),_:1}),hxt,w("div",Axt,[z(m(at),{outlined:"",type:"warning",onClick:E[7]||(E[7]=D=>y.value=!0)},{default:V(()=>[fxt,ke(" Reset Local Settings & State ")]),_:1}),z(m(Nae),{modelValue:m(y),"onUpdate:modelValue":E[8]||(E[8]=D=>ze(y)?y.value=D:null),title:"Clear Local Settings & State",width:"40%",height:"200px",content:"Are you sure you to reset all local settings & state? Devtools will reload.",onConfirm:b},null,8,["modelValue"])])])])])}}}),Ixt={key:0,absolute:"","inset-0":"",flex:"","items-center":"","justify-center":""},vxt=w("i",{class:"mdi:loading animate-spin text-3xl"},null,-1),pxt=[vxt],Lw=new Map,mxt=we({__name:"IframeView",props:{src:{}},setup(t){const r=t,e=Vm(),n=H(),i=J(()=>r.src),o=H(),a=Qs(ile(n)),s=H(!1);Si(()=>{if(Lw.get(i.value))o.value=Lw.get(i.value),o.value.style.visibility="visible",s.value=!0;else{o.value=document.createElement("iframe"),Lw.set(i.value,o.value),o.value.src=r.src;try{o.value.style.opacity="0.01",o.value.onload=()=>{l(),o.value.style.opacity="1",s.value=!0}}catch{o.value.style.opacity="1"}document.body.appendChild(o.value),mn(g)}setTimeout(l,100)}),Mn(g),Mn(l),ad(()=>{o.value&&(o.value.style.visibility="hidden")});function l(){if(!(!o.value||!o.value.contentWindow))try{const u=o.value.contentWindow.document.querySelector("html");u?.classList.toggle("dark",e.value==="dark"),u?.classList.toggle("light",e.value==="dark")}catch{}}function g(){o.value&&Object.assign(o.value.style,{position:"fixed",left:`${a.left}px`,top:`${a.top}px`,width:`${a.width}px`,height:`${a.height}px`,outline:"none"})}return(u,c)=>(T(),L("div",{ref_key:"anchor",ref:n,"h-full":"","w-full":""},[m(s)?$e("",!0):(T(),L("div",Ixt,pxt))],512))}}),yxt={flex:"~ col gap2",mxa:"","items-center":""},bxt=w("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1),$xt={"text-xl":""},wxt={"text-rose":""},_xt=w("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1),Ext=we({__name:"custom-tab-view",setup(t){const r=Nm(),e=gd(),{flattenedTabs:n}=tf(),i=J(()=>r.params.name),o=J(()=>n.value.find(s=>i.value===s.name)||null);Si(()=>{o.value||setTimeout(()=>{e.replace("/overview")},2e3)});const a=H(!0);return et(()=>r.params.name,()=>{a.value=!1,setTimeout(()=>{a.value=!0},100)}),(s,l)=>{const g=Eo,u=mxt,c=_i("NCard");return m(o)?m(o)?.view?.type==="iframe"?(T(),L(be,{key:1},[m(a)?(T(),re(u,{key:0,src:m(o).view.src},null,8,["src"])):$e("",!0)],64)):m(o)?.view?.type==="vnode"?(T(),re(qs(m(o).view.vnode),{key:2})):(T(),re(g,{key:3},{default:V(()=>[z(c,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:V(()=>[ke(" Unknown tab type "+_e(m(o)?.view),1)]),_:1})]),_:1})):(T(),re(g,{key:0,flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:V(()=>[w("div",yxt,[bxt,w("p",$xt,[ke(" Tab "),w("code",wxt,_e(m(i)),1),ke(" not found ")]),_xt])]),_:1}))}}}),Sxt={class:"h-screen w-screen $ui-fcc"},Txt=w("p",{class:"pt-5 font-bold text-base"}," Waiting for connection... ",-1),Oxt={key:0,class:"mt-5"},kxt=w("p",{class:"text-center text-sm op80 text-base"}," Add one of the following to the top of your page 👇: ",-1),xxt={class:"mt-3 $ui-fcc flex-row gap3"},Pxt={class:"mt-3 $ui-fcc flex-row gap3"},Rxt=we({__name:"WaitForConnection",props:{local:{},network:{}},setup(t){const r=t;function e(l){return`<script src="${l}"><\/script>`}const n=e(r.local),i=e(r.network),o=H(n),a=H(i),{copy:s}=nf();return(l,g)=>(T(),L("div",Sxt,[z(D6,null,{default:V(()=>[Txt,r.local&&r.network?(T(),L("div",Oxt,[kxt,w("div",xxt,[z(m(Da),{modelValue:m(o),"onUpdate:modelValue":g[0]||(g[0]=u=>ze(o)?o.value=u:null),class:"w-380px!"},null,8,["modelValue"]),z(m(St),{icon:"i-carbon-copy",class:"cursor-pointer text-primary-300 hover:text-primary-500",onClick:g[1]||(g[1]=u=>m(s)(m(o)))})]),w("div",Pxt,[z(m(Da),{modelValue:m(a),"onUpdate:modelValue":g[2]||(g[2]=u=>ze(a)?a.value=u:null),class:"w-380px!"},null,8,["modelValue"]),z(m(St),{icon:"i-carbon-copy",class:"cursor-pointer text-primary-300 hover:text-primary-500",onClick:g[3]||(g[3]=u=>m(s)(m(a)))})])])):$e("",!0)]),_:1})]))}});async function qQ(){return import.meta.url?.includes("chrome-extension://")?void 0:(await Tie(`${location.pathname.split("/__devtools__")[0]||""}/`.replace(/\/\//g,"/"),!1))?.createHotContext("/____")}const Dxt=[{path:"/",component:Pkt},{path:"/overview",component:Ace},{path:"/components",component:Lue},{path:"/pinia",component:Gce},{path:"/router",component:Hce},{path:"/i18n",component:Zce},{path:"/timeline",component:ade},{path:"/pages",component:Lde},{path:"/assets",component:BCe},{path:"/graph",component:Skt},{path:"/settings",component:Cxt},{path:"/custom-tab-view/:name",component:Ext}],uo={value:null};async function Nxt(t,r){uo.value.removeAllListeners(),r.connect(async e=>{uo.value=e,A8("devtools",{viteRPCContext:await qQ(),bridge:uo.value}),new I8(uo.value).onnConnect().then(()=>{t.config.globalProperties.__VUE_DEVTOOLS_UPDATE__(uo.value),uo.value.emit(I2.CLIENT_READY)})})}async function Mxt(t,r){return new Promise(e=>{r.connect(n=>{uo.value=n,e()}),r.reload(()=>{Nxt(t,r)})})}async function JQ(t,r={viewMode:"overlay"}){const e=d2(Qge);await Mxt(e,t),A8("devtools",{viteRPCContext:await qQ(),bridge:uo.value}),new I8(uo.value).onnConnect().then(()=>{const n=wie({history:jne(),routes:Dxt});e.use(n),e.use(wne({bridge:uo.value,viewMode:r.viewMode})),e.mount("#app"),uo.value.emit(I2.CLIENT_READY)})}function Bxt(t="#app",r){const e=d2(Rxt,{...r});return e.mount(t),e}window.addEventListener("message",t=>{t.data==="__VUE_DEVTOOLS_CREATE_CLIENT__"&&(JQ({connect:r=>{const e=new d8({tracker(n){window.addEventListener("message",i=>{i.data.source==="__VUE_DEVTOOLS_USER_APP__"&&n(i.data.data)})},trigger(n){t?.source?.postMessage({source:"__VUE_DEVTOOLS_CLIENT__",data:n},{targetOrigin:"*"})}});r(e)}}),t.source?.postMessage("__VUE_DEVTOOLS_CLIENT_READY__"))});if(!gq&&!yc&&!zS){let t=function(){const r={connected:!1,timer:null,app:null},e=new BroadcastChannel(pq);function n(){r.timer=setInterval(()=>{e.postMessage({source:"__VUE_DEVTOOLS_CLIENT__",data:{event:"ready"}})},2e3)}r.app=Bxt(),e.onmessage=i=>{i.data?.data?.event==="__VUE_DEVTOOLS_CREATE_CLIENT__"&&(r.app?.unmount(),r.connected=!0,clearInterval(r.timer),JQ({connect:o=>{const a=new d8({tracker(s){e.onmessage=l=>{l.data.source==="__VUE_DEVTOOLS_USER_APP__"&&s(l.data.data)}},trigger(s){e.postMessage({source:"__VUE_DEVTOOLS_CLIENT__",data:s})}});a.on("disconnect",()=>{e.close(),t()}),o(a)}}))},n()};t()}
|
|
1090
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var g=e.next();return o=g.done,g},e:function(g){a=!0,s=g},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function pkt(t,r){var e;if(t){if(typeof t=="string")return O4(t,r);var n=pn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return cu(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O4(t,r)}}function O4(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var mkt=function(){function t(r,e,n,i){var o=this,a,s;ve(this,t),this.body=r,this.canvas=e,this.selectionHandler=n,this.interactionHandler=i,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this._domEventListenerCleanupQueue=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},Lr(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){o._clean()}),this.body.emitter.on("_dataChanged",de(a=this._restore).call(a,this)),this.body.emitter.on("_resetData",de(s=this._restore).call(s,this))}return pe(t,[{key:"_restore",value:function(){this.inMode!==!1&&(this.options.initiallyActive===!0?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(e,n,i){n!==void 0&&(n.locale!==void 0?this.options.locale=n.locale:this.options.locale=i.locale,n.locales!==void 0?this.options.locales=n.locales:this.options.locales=i.locales),e!==void 0&&(typeof e=="boolean"?this.options.enabled=e:(this.options.enabled=!0,Xt(this.options,e)),this.options.initiallyActive===!0&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){this.editMode===!0?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},this.guiEnabled===!0){var e,n;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var i=this.selectionHandler.getSelectedNodeCount(),o=this.selectionHandler.getSelectedEdgeCount(),a=i+o,s=this.options.locales[this.options.locale],l=!1;this.options.addNode!==!1&&(this._createAddNodeButton(s),l=!0),this.options.addEdge!==!1&&(l===!0?this._createSeperator(1):l=!0,this._createAddEdgeButton(s)),i===1&&typeof this.options.editNode=="function"?(l===!0?this._createSeperator(2):l=!0,this._createEditNodeButton(s)):o===1&&i===0&&this.options.editEdge!==!1&&(l===!0?this._createSeperator(3):l=!0,this._createEditEdgeButton(s)),a!==0&&(i>0&&this.options.deleteNode!==!1?(l===!0&&this._createSeperator(4),this._createDeleteButton(s)):i===0&&this.options.deleteEdge!==!1&&(l===!0&&this._createSeperator(4),this._createDeleteButton(s))),this._bindElementEvents(this.closeDiv,de(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",de(n=this.showManipulatorToolbar).call(n,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var n,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,de(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",de(e=this._performAddNode).call(e,this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var n=this.selectionHandler.getSelectedNodes()[0];if(n!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(n.isCluster!==!0){var i=Xt({},n.options,!1);if(i.x=n.x,i.y=n.y,this.options.editNode.length===2)this.options.editNode(i,function(o){o!=null&&e.inMode==="editNode"&&e.body.data.nodes.getDataSet().update(o),e.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var e,n,i,o,a;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var s,l=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(l),this._createSeperator(),this._createDescription(l.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,de(s=this.toggleEditMode).call(s,this))}this._temporaryBindUI("onTouch",de(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",de(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",de(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",de(o=this._finishConnect).call(o,this)),this._temporaryBindUI("onDragStart",de(a=this._dragStartEdge).call(a,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",Gt(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id);return}if(this.guiEnabled===!0){var n,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,de(n=this.toggleEditMode).call(n,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var o,a,s,l,g=this.body.edges[this.edgeBeingEditedId],u=this._getNewTargetNode(g.from.x,g.from.y),c=this._getNewTargetNode(g.to.x,g.to.y);this.temporaryIds.nodes.push(u.id),this.temporaryIds.nodes.push(c.id),this.body.nodes[u.id]=u,this.body.nodeIndices.push(u.id),this.body.nodes[c.id]=c,this.body.nodeIndices.push(c.id),this._temporaryBindUI("onTouch",de(o=this._controlNodeTouch).call(o,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",de(a=this._controlNodeDragStart).call(a,this)),this._temporaryBindUI("onDrag",de(s=this._controlNodeDrag).call(s,this)),this._temporaryBindUI("onDragEnd",de(l=this._controlNodeDragEnd).call(l,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(d){var h=g.edgeType.findBorderPositions(d);u.selected===!1&&(u.x=h.from.x,u.y=h.from.y),c.selected===!1&&(c.x=h.to.x,c.y=h.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var n=this.selectionHandler.getSelectedNodeIds(),i=this.selectionHandler.getSelectedEdgeIds(),o=void 0;if(n.length>0){for(var a=0;a<n.length;a++)if(this.body.nodes[n[a]].isCluster===!0){alert(this.options.locales[this.options.locale].deleteClusterError||this.options.locales.en.deleteClusterError);return}typeof this.options.deleteNode=="function"&&(o=this.options.deleteNode)}else i.length>0&&typeof this.options.deleteEdge=="function"&&(o=this.options.deleteEdge);if(typeof o=="function"){var s={nodes:n,edges:i};if(o.length===2)o(s,function(l){l!=null&&e.inMode==="delete"?(e.body.data.edges.getDataSet().remove(l.edges),e.body.data.nodes.getDataSet().remove(l.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(i),this.body.data.nodes.getDataSet().remove(n),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,n;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(n=this.options.locales[this.options.locale])===null||n===void 0?void 0:n.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}},{key:"_getNewTargetNode",value:function(e,n){var i=Xt({},this.options.controlNodeStyle);i.id="targetNode"+Jh(),i.hidden=!1,i.physics=!1,i.x=e,i.y=n;var o=this.body.functions.createNode(i);return o.shape.boundingBox={left:e,right:e,top:n,bottom:n},o}},{key:"_createEditButton",value:function(){var e;this._clean(),this.manipulationDOM={},ms(this.editModeDiv);var n=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-edit vis-edit-mode",n.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,de(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(ms(this.editModeDiv),ms(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,n=vkt(ka(e=this._domEventListenerCleanupQueue).call(e,0)),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;o()}}catch(a){n.e(a)}finally{n.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),ms(this.manipulationDiv),ms(this.editModeDiv),ms(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var n,i=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,de(n=this.addNodeMode).call(n,this))}},{key:"_createAddEdgeButton",value:function(e){var n,i=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,de(n=this.addEdgeMode).call(n,this))}},{key:"_createEditNodeButton",value:function(e){var n,i=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,de(n=this.editNode).call(n,this))}},{key:"_createEditEdgeButton",value:function(e){var n,i=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,de(n=this.editEdgeMode).call(n,this))}},{key:"_createDeleteButton",value:function(e){var n,i;this.options.rtl?i="vis-delete-rtl":i="vis-delete";var o=this._createButton("delete",i,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(o),this._bindElementEvents(o,de(n=this.deleteSelected).call(n,this))}},{key:"_createBackButton",value:function(e){var n,i=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,de(n=this.showManipulatorToolbar).call(n,this))}},{key:"_createButton",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+n,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=o,this.manipulationDOM[e+"Label"].innerText=i,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(e,n){this.temporaryEventFunctions.push({event:e,boundFunction:n}),this.body.emitter.on(e,n)}},{key:"_temporaryBindUI",value:function(e,n){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=n;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+vC(Ar(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e<this.temporaryEventFunctions.length;e++){var n=this.temporaryEventFunctions[e].event,i=this.temporaryEventFunctions[e].boundFunction;this.body.emitter.off(n,i)}this.temporaryEventFunctions=[]}},{key:"_bindElementEvents",value:function(e,n){var i=new pc(e,{});dm(i,n),this._domEventListenerCleanupQueue.push(function(){i.destroy()});var o=function(s){var l=s.keyCode,g=s.key;(g==="Enter"||g===" "||l===13||l===32)&&n()};e.addEventListener("keyup",o,!1),this._domEventListenerCleanupQueue.push(function(){e.removeEventListener("keyup",o,!1)})}},{key:"_cleanupTemporaryNodesAndEdges",value:function(){for(var e=0;e<this.temporaryIds.edges.length;e++){var n;this.body.edges[this.temporaryIds.edges[e]].disconnect(),delete this.body.edges[this.temporaryIds.edges[e]];var i=Ot(n=this.body.edgeIndices).call(n,this.temporaryIds.edges[e]);if(i!==-1){var o;ka(o=this.body.edgeIndices).call(o,i,1)}}for(var a=0;a<this.temporaryIds.nodes.length;a++){var s;delete this.body.nodes[this.temporaryIds.nodes[a]];var l=Ot(s=this.body.nodeIndices).call(s,this.temporaryIds.nodes[a]);if(l!==-1){var g;ka(g=this.body.nodeIndices).call(g,l,1)}}this.temporaryIds={nodes:[],edges:[]}}},{key:"_controlNodeTouch",value:function(e){this.selectionHandler.unselectAll(),this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Lr({},this.body.view.translation)}},{key:"_controlNodeDragStart",value:function(){var e=this.lastTouch,n=this.selectionHandler._pointerToPositionObject(e),i=this.body.nodes[this.temporaryIds.nodes[0]],o=this.body.nodes[this.temporaryIds.nodes[1]],a=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=void 0;var s=i.isOverlappingWith(n),l=o.isOverlappingWith(n);s===!0?(this.selectedControlNode=i,a.edgeType.from=i):l===!0&&(this.selectedControlNode=o,a.edgeType.to=o),this.selectedControlNode!==void 0&&this.selectionHandler.selectObject(this.selectedControlNode),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDrag",value:function(e){this.body.emitter.emit("disablePhysics");var n=this.body.functions.getPointer(e.center),i=this.canvas.DOMtoCanvas(n);this.selectedControlNode!==void 0?(this.selectedControlNode.x=i.x,this.selectedControlNode.y=i.y):this.interactionHandler.onDrag(e),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDragEnd",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=this.body.edges[this.edgeBeingEditedId];if(this.selectedControlNode!==void 0){this.selectionHandler.unselectAll();for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--)if(a[l]!==this.selectedControlNode.id){s=this.body.nodes[a[l]];break}if(s!==void 0&&this.selectedControlNode!==void 0)if(s.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var g=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===g.id?this._performEditEdge(s.id,o.to.id):this._performEditEdge(o.from.id,s.id)}else o.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Lr({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var n=this.lastTouch,i=this.selectionHandler.getNodeAt(n);if(i!==void 0)if(i.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var o=this._getNewTargetNode(i.x,i.y);this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id);var a=this.body.functions.createEdge({id:"connectionEdge"+Jh(),from:i.id,to:o.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[a.id]=a,this.body.edgeIndices.push(a.id),this.temporaryIds.nodes.push(o.id),this.temporaryIds.edges.push(a.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var g;if(Ot(g=this.temporaryIds.nodes).call(g,a[l])===-1){s=this.body.nodes[a[l]];break}}if(e.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,n),this.temporaryIds.nodes[0]!==void 0){var u=this.body.nodes[this.temporaryIds.nodes[0]];u.x=this.canvas._XconvertDOMtoCanvas(n.x),u.y=this.canvas._YconvertDOMtoCanvas(n.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}},{key:"_finishConnect",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var g;if(Ot(g=this.temporaryIds.nodes).call(g,a[l])===-1){s=this.body.nodes[a[l]];break}}this._cleanupTemporaryNodesAndEdges(),s!==void 0&&(s.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[o]!==void 0&&this.body.nodes[s.id]!==void 0&&this._performAddEdge(o,s.id)),e.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,n),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(e){var n=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,n,void 0,!0)}},{key:"_performAddNode",value:function(e){var n=this,i={id:Jh(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(i,function(o){o!=null&&n.inMode==="addNode"&&n.body.data.nodes.getDataSet().add(o),n.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,n){var i=this,o={from:e,to:n};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(o,function(a){a!=null&&i.inMode==="addEdge"&&(i.body.data.edges.getDataSet().add(a),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,n){var i=this,o={id:this.edgeBeingEditedId,from:e,to:n,label:this.body.data.edges.get(this.edgeBeingEditedId).label},a=this.options.editEdge;if(Gt(a)==="object"&&(a=a.editWithoutDrag),typeof a=="function")if(a.length===2)a(o,function(s){s==null||i.inMode!=="editEdge"?(i.body.edges[o.id].updateEdgeType(),i.body.emitter.emit("_redraw"),i.showManipulatorToolbar()):(i.body.data.edges.getDataSet().update(s),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),Ie="string",ge="boolean",X="number",_h="array",Be="object",XQ="dom",ykt="any",Bw=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],Fw={borderWidth:{number:X},borderWidthSelected:{number:X,undefined:"undefined"},brokenImage:{string:Ie,undefined:"undefined"},chosen:{label:{boolean:ge,function:"function"},node:{boolean:ge,function:"function"},__type__:{object:Be,boolean:ge}},color:{border:{string:Ie},background:{string:Ie},highlight:{border:{string:Ie},background:{string:Ie},__type__:{object:Be,string:Ie}},hover:{border:{string:Ie},background:{string:Ie},__type__:{object:Be,string:Ie}},__type__:{object:Be,string:Ie}},opacity:{number:X,undefined:"undefined"},fixed:{x:{boolean:ge},y:{boolean:ge},__type__:{object:Be,boolean:ge}},font:{align:{string:Ie},color:{string:Ie},size:{number:X},face:{string:Ie},background:{string:Ie},strokeWidth:{number:X},strokeColor:{string:Ie},vadjust:{number:X},multi:{boolean:ge,string:Ie},bold:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},boldital:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},ital:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},mono:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},__type__:{object:Be,string:Ie}},group:{string:Ie,number:X,undefined:"undefined"},heightConstraint:{minimum:{number:X},valign:{string:Ie},__type__:{object:Be,boolean:ge,number:X}},hidden:{boolean:ge},icon:{face:{string:Ie},code:{string:Ie},size:{number:X},color:{string:Ie},weight:{string:Ie,number:X},__type__:{object:Be}},id:{string:Ie,number:X},image:{selected:{string:Ie,undefined:"undefined"},unselected:{string:Ie,undefined:"undefined"},__type__:{object:Be,string:Ie}},imagePadding:{top:{number:X},right:{number:X},bottom:{number:X},left:{number:X},__type__:{object:Be,number:X}},label:{string:Ie,undefined:"undefined"},labelHighlightBold:{boolean:ge},level:{number:X,undefined:"undefined"},margin:{top:{number:X},right:{number:X},bottom:{number:X},left:{number:X},__type__:{object:Be,number:X}},mass:{number:X},physics:{boolean:ge},scaling:{min:{number:X},max:{number:X},label:{enabled:{boolean:ge},min:{number:X},max:{number:X},maxVisible:{number:X},drawThreshold:{number:X},__type__:{object:Be,boolean:ge}},customScalingFunction:{function:"function"},__type__:{object:Be}},shadow:{enabled:{boolean:ge},color:{string:Ie},size:{number:X},x:{number:X},y:{number:X},__type__:{object:Be,boolean:ge}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:ge,array:_h},borderRadius:{number:X},interpolation:{boolean:ge},useImageSize:{boolean:ge},useBorderWithImage:{boolean:ge},coordinateOrigin:{string:["center","top-left"]},__type__:{object:Be}},size:{number:X},title:{string:Ie,dom:XQ,undefined:"undefined"},value:{number:X,undefined:"undefined"},widthConstraint:{minimum:{number:X},maximum:{number:X},__type__:{object:Be,boolean:ge,number:X}},x:{number:X},y:{number:X},__type__:{object:Be}},bkt={configure:{enabled:{boolean:ge},filter:{boolean:ge,string:Ie,array:_h,function:"function"},container:{dom:XQ},showButton:{boolean:ge},__type__:{object:Be,boolean:ge,string:Ie,array:_h,function:"function"}},edges:{arrows:{to:{enabled:{boolean:ge},scaleFactor:{number:X},type:{string:Bw},imageHeight:{number:X},imageWidth:{number:X},src:{string:Ie},__type__:{object:Be,boolean:ge}},middle:{enabled:{boolean:ge},scaleFactor:{number:X},type:{string:Bw},imageWidth:{number:X},imageHeight:{number:X},src:{string:Ie},__type__:{object:Be,boolean:ge}},from:{enabled:{boolean:ge},scaleFactor:{number:X},type:{string:Bw},imageWidth:{number:X},imageHeight:{number:X},src:{string:Ie},__type__:{object:Be,boolean:ge}},__type__:{string:["from","to","middle"],object:Be}},endPointOffset:{from:{number:X},to:{number:X},__type__:{object:Be,number:X}},arrowStrikethrough:{boolean:ge},background:{enabled:{boolean:ge},color:{string:Ie},size:{number:X},dashes:{boolean:ge,array:_h},__type__:{object:Be,boolean:ge}},chosen:{label:{boolean:ge,function:"function"},edge:{boolean:ge,function:"function"},__type__:{object:Be,boolean:ge}},color:{color:{string:Ie},highlight:{string:Ie},hover:{string:Ie},inherit:{string:["from","to","both"],boolean:ge},opacity:{number:X},__type__:{object:Be,string:Ie}},dashes:{boolean:ge,array:_h},font:{color:{string:Ie},size:{number:X},face:{string:Ie},background:{string:Ie},strokeWidth:{number:X},strokeColor:{string:Ie},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:X},multi:{boolean:ge,string:Ie},bold:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},boldital:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},ital:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},mono:{color:{string:Ie},size:{number:X},face:{string:Ie},mod:{string:Ie},vadjust:{number:X},__type__:{object:Be,string:Ie}},__type__:{object:Be,string:Ie}},hidden:{boolean:ge},hoverWidth:{function:"function",number:X},label:{string:Ie,undefined:"undefined"},labelHighlightBold:{boolean:ge},length:{number:X,undefined:"undefined"},physics:{boolean:ge},scaling:{min:{number:X},max:{number:X},label:{enabled:{boolean:ge},min:{number:X},max:{number:X},maxVisible:{number:X},drawThreshold:{number:X},__type__:{object:Be,boolean:ge}},customScalingFunction:{function:"function"},__type__:{object:Be}},selectionWidth:{function:"function",number:X},selfReferenceSize:{number:X},selfReference:{size:{number:X},angle:{number:X},renderBehindTheNode:{boolean:ge},__type__:{object:Be}},shadow:{enabled:{boolean:ge},color:{string:Ie},size:{number:X},x:{number:X},y:{number:X},__type__:{object:Be,boolean:ge}},smooth:{enabled:{boolean:ge},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:X},forceDirection:{string:["horizontal","vertical","none"],boolean:ge},__type__:{object:Be,boolean:ge}},title:{string:Ie,undefined:"undefined"},width:{number:X},widthConstraint:{maximum:{number:X},__type__:{object:Be,boolean:ge,number:X}},value:{number:X,undefined:"undefined"},__type__:{object:Be}},groups:{useDefaultGroups:{boolean:ge},__any__:Fw,__type__:{object:Be}},interaction:{dragNodes:{boolean:ge},dragView:{boolean:ge},hideEdgesOnDrag:{boolean:ge},hideEdgesOnZoom:{boolean:ge},hideNodesOnDrag:{boolean:ge},hover:{boolean:ge},keyboard:{enabled:{boolean:ge},speed:{x:{number:X},y:{number:X},zoom:{number:X},__type__:{object:Be}},bindToWindow:{boolean:ge},autoFocus:{boolean:ge},__type__:{object:Be,boolean:ge}},multiselect:{boolean:ge},navigationButtons:{boolean:ge},selectable:{boolean:ge},selectConnectedEdges:{boolean:ge},hoverConnectedEdges:{boolean:ge},tooltipDelay:{number:X},zoomView:{boolean:ge},zoomSpeed:{number:X},__type__:{object:Be}},layout:{randomSeed:{undefined:"undefined",number:X,string:Ie},improvedLayout:{boolean:ge},clusterThreshold:{number:X},hierarchical:{enabled:{boolean:ge},levelSeparation:{number:X},nodeSpacing:{number:X},treeSpacing:{number:X},blockShifting:{boolean:ge},edgeMinimization:{boolean:ge},parentCentralization:{boolean:ge},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:Be,boolean:ge}},__type__:{object:Be}},manipulation:{enabled:{boolean:ge},initiallyActive:{boolean:ge},addNode:{boolean:ge,function:"function"},addEdge:{boolean:ge,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:Be,boolean:ge,function:"function"}},deleteNode:{boolean:ge,function:"function"},deleteEdge:{boolean:ge,function:"function"},controlNodeStyle:Fw,__type__:{object:Be,boolean:ge}},nodes:Fw,physics:{enabled:{boolean:ge},barnesHut:{theta:{number:X},gravitationalConstant:{number:X},centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Be}},forceAtlas2Based:{theta:{number:X},gravitationalConstant:{number:X},centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Be}},repulsion:{centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},nodeDistance:{number:X},damping:{number:X},__type__:{object:Be}},hierarchicalRepulsion:{centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},nodeDistance:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Be}},maxVelocity:{number:X},minVelocity:{number:X},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:ge},iterations:{number:X},updateInterval:{number:X},onlyDynamicEdges:{boolean:ge},fit:{boolean:ge},__type__:{object:Be,boolean:ge}},timestep:{number:X},adaptiveTimestep:{boolean:ge},wind:{x:{number:X},y:{number:X},__type__:{object:Be}},__type__:{object:Be,boolean:ge}},autoResize:{boolean:ge},clickToUse:{boolean:ge},locale:{string:Ie},locales:{__any__:{any:ykt},__type__:{object:Be}},height:{string:Ie},width:{string:Ie},__type__:{object:Be}},QQ={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},$kt=function(r,e,n){var i;return!!(Hs(r).call(r,"physics")&&Hs(i=QQ.physics.solver).call(i,e)&&n.physics.solver!==e&&e!=="wind")},wkt=function(){function t(){ve(this,t)}return pe(t,[{key:"getDistances",value:function(e,n,i){for(var o={},a=e.edges,s=0;s<n.length;s++){var l=n[s],g={};o[l]=g;for(var u=0;u<n.length;u++)g[n[u]]=s==u?0:1e9}for(var c=0;c<i.length;c++){var d=a[i[c]];d.connected===!0&&o[d.fromId]!==void 0&&o[d.toId]!==void 0&&(o[d.fromId][d.toId]=1,o[d.toId][d.fromId]=1)}for(var h=n.length,A=0;A<h;A++)for(var f=n[A],C=o[f],I=0;I<h-1;I++)for(var v=n[I],p=o[v],y=I+1;y<h;y++){var b=n[y],_=o[b],P=Math.min(p[b],p[f]+C[b]);p[b]=P,_[v]=P}return o}}]),t}(),_kt=function(){function t(r,e,n){ve(this,t),this.body=r,this.springLength=e,this.springConstant=n,this.distanceSolver=new wkt}return pe(t,[{key:"setOptions",value:function(e){e&&(e.springLength&&(this.springLength=e.springLength),e.springConstant&&(this.springConstant=e.springConstant))}},{key:"solve",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.distanceSolver.getDistances(this.body,e,n);this._createL_matrix(o),this._createK_matrix(o),this._createE_matrix();for(var a=.01,s=1,l=0,g=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),u=5,c=1e9,d=0,h=0,A=0,f=0,C=0;c>a&&l<g;){l+=1;var I=this._getHighestEnergyNode(i),v=fr(I,4);for(d=v[0],c=v[1],h=v[2],A=v[3],f=c,C=0;f>s&&C<u;){C+=1,this._moveNode(d,h,A);var p=this._getEnergy(d),y=fr(p,3);f=y[0],h=y[1],A=y[2]}}}},{key:"_getHighestEnergyNode",value:function(e){for(var n=this.body.nodeIndices,i=this.body.nodes,o=0,a=n[0],s=0,l=0,g=0;g<n.length;g++){var u=n[g];if(i[u].predefinedPosition!==!0||i[u].isCluster===!0&&e===!0||i[u].options.fixed.x!==!0||i[u].options.fixed.y!==!0){var c=this._getEnergy(u),d=fr(c,3),h=d[0],A=d[1],f=d[2];o<h&&(o=h,a=u,s=A,l=f)}}return[a,o,s,l]}},{key:"_getEnergy",value:function(e){var n=fr(this.E_sums[e],2),i=n[0],o=n[1],a=Math.sqrt(Math.pow(i,2)+Math.pow(o,2));return[a,i,o]}},{key:"_moveNode",value:function(e,n,i){for(var o=this.body.nodeIndices,a=this.body.nodes,s=0,l=0,g=0,u=a[e].x,c=a[e].y,d=this.K_matrix[e],h=this.L_matrix[e],A=0;A<o.length;A++){var f=o[A];if(f!==e){var C=a[f].x,I=a[f].y,v=d[f],p=h[f],y=1/Math.pow(Math.pow(u-C,2)+Math.pow(c-I,2),1.5);s+=v*(1-p*Math.pow(c-I,2)*y),l+=v*(p*(u-C)*(c-I)*y),g+=v*(1-p*Math.pow(u-C,2)*y)}}var b=s,_=l,P=n,k=g,E=i,O=(P/b+E/_)/(_/b-k/_),N=-(_*O+P)/b;a[e].x+=N,a[e].y+=O,this._updateE_matrix(e)}},{key:"_createL_matrix",value:function(e){var n=this.body.nodeIndices,i=this.springLength;this.L_matrix=[];for(var o=0;o<n.length;o++){this.L_matrix[n[o]]={};for(var a=0;a<n.length;a++)this.L_matrix[n[o]][n[a]]=i*e[n[o]][n[a]]}}},{key:"_createK_matrix",value:function(e){var n=this.body.nodeIndices,i=this.springConstant;this.K_matrix=[];for(var o=0;o<n.length;o++){this.K_matrix[n[o]]={};for(var a=0;a<n.length;a++)this.K_matrix[n[o]][n[a]]=i*Math.pow(e[n[o]][n[a]],-2)}}},{key:"_createE_matrix",value:function(){var e=this.body.nodeIndices,n=this.body.nodes;this.E_matrix={},this.E_sums={};for(var i=0;i<e.length;i++)this.E_matrix[e[i]]=[];for(var o=0;o<e.length;o++){for(var a=e[o],s=n[a].x,l=n[a].y,g=0,u=0,c=o;c<e.length;c++){var d=e[c];if(d!==a){var h=n[d].x,A=n[d].y,f=1/Math.sqrt(Math.pow(s-h,2)+Math.pow(l-A,2));this.E_matrix[a][c]=[this.K_matrix[a][d]*(s-h-this.L_matrix[a][d]*(s-h)*f),this.K_matrix[a][d]*(l-A-this.L_matrix[a][d]*(l-A)*f)],this.E_matrix[d][o]=this.E_matrix[a][c],g+=this.E_matrix[a][c][0],u+=this.E_matrix[a][c][1]}}this.E_sums[a]=[g,u]}}},{key:"_updateE_matrix",value:function(e){for(var n=this.body.nodeIndices,i=this.body.nodes,o=this.E_matrix[e],a=this.K_matrix[e],s=this.L_matrix[e],l=i[e].x,g=i[e].y,u=0,c=0,d=0;d<n.length;d++){var h=n[d];if(h!==e){var A=o[d],f=A[0],C=A[1],I=i[h].x,v=i[h].y,p=1/Math.sqrt(Math.pow(l-I,2)+Math.pow(g-v,2)),y=a[h]*(l-I-s[h]*(l-I)*p),b=a[h]*(g-v-s[h]*(g-v)*p);o[d]=[y,b],u+=y,c+=b;var _=this.E_sums[h];_[0]+=y-f,_[1]+=b-C}}this.E_sums[e]=[u,c]}}]),t}();function De(t,r,e){var n,i,o,a,s=this;if(!(this instanceof De))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:b1t,clickToUse:!1},Lr(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:de(n=this.on).call(n,this),off:de(i=this.off).call(i,this),emit:de(o=this.emit).call(o,this),once:de(a=this.once).call(a,this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}},selectionBox:{show:!1,position:{start:{x:0,y:0},end:{x:0,y:0}}}},this.bindEventListeners(),this.images=new _1t(function(){return s.body.emitter.emit("_requestRedraw")}),this.groups=new V$t,this.canvas=new oTt(this.body),this.selectionHandler=new YTt(this.body,this.canvas),this.interactionHandler=new cTt(this.body,this.canvas,this.selectionHandler),this.view=new sTt(this.body,this.canvas),this.renderer=new eTt(this.body,this.canvas),this.physics=new W2t(this.body),this.layoutEngine=new Ikt(this.body),this.clustering=new q2t(this.body),this.manipulation=new mkt(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new SSt(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new D2t(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new _kt(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(e),this.setData(r)}XK(De.prototype);De.prototype.setOptions=function(t){var r=this;if(t===null&&(t=void 0),t!==void 0){var e=J0t.validate(t,bkt);e===!0&&console.error("%cErrors have been found in the supplied options object.",JX);var n=["locale","locales","clickToUse"];if(Jd(n,this.options,t),t.locale!==void 0&&(t.locale=$1t(t.locales||this.options.locales,t.locale)),t=this.layoutEngine.setOptions(t.layout,t),this.canvas.setOptions(t),this.groups.setOptions(t.groups),this.nodesHandler.setOptions(t.nodes),this.edgesHandler.setOptions(t.edges),this.physics.setOptions(t.physics),this.manipulation.setOptions(t.manipulation,t,this.options),this.interactionHandler.setOptions(t.interaction),this.renderer.setOptions(t.interaction),this.selectionHandler.setOptions(t.interaction),t.groups!==void 0&&this.body.emitter.emit("refreshNodes"),"configure"in t&&(this.configurator||(this.configurator=new Q0t(this,this.body.container,QQ,this.canvas.pixelRatio,$kt)),this.configurator.setOptions(t.configure)),this.configurator&&this.configurator.options.enabled===!0){var i={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};Xt(i.nodes,this.nodesHandler.options),Xt(i.edges,this.edgesHandler.options),Xt(i.layout,this.layoutEngine.options),Xt(i.interaction,this.selectionHandler.options),Xt(i.interaction,this.renderer.options),Xt(i.interaction,this.interactionHandler.options),Xt(i.manipulation,this.manipulation.options),Xt(i.physics,this.physics.options),Xt(i.global,this.canvas.options),Xt(i.global,this.options),this.configurator.setModuleOptions(i)}t.clickToUse!==void 0?t.clickToUse===!0?this.activator===void 0&&(this.activator=new X0t(this.canvas.frame),this.activator.on("change",function(){r.body.emitter.emit("activate")})):(this.activator!==void 0&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}};De.prototype._updateVisibleIndices=function(){var t=this.body.nodes,r=this.body.edges;this.body.nodeIndices=[],this.body.edgeIndices=[];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&!this.clustering._isClusteredNode(e)&&t[e].options.hidden===!1&&this.body.nodeIndices.push(t[e].id);for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var i=r[n],o=t[i.fromId],a=t[i.toId],s=o!==void 0&&a!==void 0,l=!this.clustering._isClusteredEdge(n)&&i.options.hidden===!1&&s&&o.options.hidden===!1&&a.options.hidden===!1;l&&this.body.edgeIndices.push(i.id)}};De.prototype.bindEventListeners=function(){var t=this;this.body.emitter.on("_dataChanged",function(){t.edgesHandler._updateState(),t.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",function(){t.clustering._updateState(),t._updateVisibleIndices(),t._updateValueRange(t.body.nodes),t._updateValueRange(t.body.edges),t.body.emitter.emit("startSimulation"),t.body.emitter.emit("_requestRedraw")})};De.prototype.setData=function(t){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),t&&t.dot&&(t.nodes||t.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(t&&t.options),t&&t.dot){console.warn("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var r=g1t(t.dot);this.setData(r);return}else if(t&&t.gephi){console.warn("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var e=u1t(t.gephi);this.setData(e);return}else this.nodesHandler.setData(t&&t.nodes,!0),this.edgesHandler.setData(t&&t.edges,!0);this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")};De.prototype.destroy=function(){this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images;for(var t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&delete this.body.nodes[t];for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&delete this.body.edges[r];ms(this.body.container)};De.prototype._updateValueRange=function(t){var r,e=void 0,n=void 0,i=0;for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r].getValue();o!==void 0&&(e=e===void 0?o:Math.min(o,e),n=n===void 0?o:Math.max(o,n),i+=o)}if(e!==void 0&&n!==void 0)for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&t[r].setValueRange(e,n,i)};De.prototype.isActive=function(){return!this.activator||this.activator.active};De.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};De.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};De.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};De.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};De.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};De.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};De.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};De.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};De.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};De.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};De.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};De.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};De.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};De.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};De.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};De.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};De.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};De.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};De.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};De.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};De.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};De.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};De.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};De.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};De.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};De.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};De.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};De.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};De.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};De.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};De.prototype.getConnectedNodes=function(t){return this.body.nodes[t]!==void 0?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)};De.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};De.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};De.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};De.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};De.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};De.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};De.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};De.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};De.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};De.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};De.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};De.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};De.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};De.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};De.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};De.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};De.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};De.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};De.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};De.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};De.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t};const Ekt={flex:"~ col",relative:"","h-screen":"","of-hidden":"","panel-grids":"",class:"graph-body"},Skt=we({__name:"graph",setup(t){const r=yn();async function e(){const l=await r.root();r.getGraph().then(g=>{Aje(g,l)})}let n;_o(()=>{e(),n=r.graphModuleUpdated(()=>{e()})});const i=H(),o=aa();function a(){const l=i.value,g=o.value=new De(l,{nodes:jc,edges:Vc},cB.value);et(cB,u=>{g.setOptions(u)},{immediate:!0}),g.on("selectNode",u=>{Ije(u.nodes[0]),wE(!0)}),g.on("deselectNode",()=>{wE(!1)}),et(()=>Wc.value,u=>{u&&g.moveTo({position:{x:0,y:0}})})}Si(()=>{a()}),ad(()=>{cje(),o.value?.destroy(),n?.()});const s=H();return(l,g)=>{const u=Rje,c=Oje,d=Tje;return T(),L("div",Ekt,[z(u,{ref_key:"navbarRef",ref:s},null,512),w("div",{ref_key:"container",ref:i,flex:"1"},null,512),z(c),z(d,{top:m(s)},null,8,["top"])])}}}),Tkt=w("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Vue DevTools! ",-1),Okt={"max-w-190":"","text-lg":""},kkt=w("br",null,null,-1),xkt=w("span",null,"Get Started",-1),Pkt=we({__name:"index",setup(t){const r=gd(),e=lr;function n(){e.value.isFirstVisit=!1,r.replace("/overview")}return(i,o)=>{const a=P2,s=Eo;return T(),re(s,{flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},{default:V(()=>[Tkt,w("p",Okt,[z(a,{"mr-0.5":"","inline-block":"","h-8":"","translate-y--1.1":"","align-mid":""}),ke(" is a set of visual tools that help you to know your Vue app better, and enhance your development experience with Vue. Enjoy!"),kkt]),z(m(at),{type:"primary",onClick:n},{default:V(()=>[xkt]),_:1})]),_:1})}}}),Rkt={"h-full":"","w-full":"","of-auto":"",px8:"",py6:""},Dkt={grid:"~ md:cols-2 gap-x-10 gap-y-3","max-w-300":""},Nkt={flex:"~ col gap-2"},Mkt=w("h3",{"text-lg":""}," Tabs ",-1),Bkt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},Fkt={capitalize:"",op75:""},Lkt=w("div",{"mx--1":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),zkt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"","text-sm":""},jkt=w("div",{"flex-auto":""},null,-1),Vkt=["onClick"],Gkt=w("div",{class:"i-carbon-caret-up"},null,-1),Wkt=[Gkt],Hkt=["onClick"],Ukt=w("div",{class:"i-carbon-caret-down"},null,-1),Zkt=[Ukt],Kkt=["onClick"],Ykt={flex:"~ col gap-2"},Xkt=w("h3",{"text-lg":""}," Appearance ",-1),Qkt={flex:"~ gap2"},qkt=w("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1),Jkt=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),ext=w("p",null,"UI Scale",-1),txt=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),rxt={class:"flex items-center gap2 text-sm"},nxt=w("span",{op75:""},"Expand Sidebar",-1),ixt={class:"flex items-center gap2 text-sm"},oxt=w("span",{op75:""},"Scrollable Sidebar",-1),axt=w("h3",{mt2:"","text-lg":""}," Features ",-1),sxt={class:"flex items-center gap2 text-sm"},lxt=w("span",{op75:""},"Close DevTools when clicking outside",-1),gxt={class:"flex items-center gap2 text-sm"},uxt=w("span",{op75:""},"Always show the floating panel",-1),cxt=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),dxt=w("p",null,"Minimize floating panel on inactive",-1),hxt=w("h3",{mt2:"","text-lg":""}," Debug ",-1),Axt={flex:"~ gap-2"},fxt=w("div",{"i-carbon-breaking-change":""},null,-1),Cxt=we({__name:"settings",setup(t){const r=Tr("viewMode",H("overlay")),e=J(()=>r.value==="panel"&&yc),{toggle:n}=Wm(),{categorizedTabs:i}=tf(),{scale:o,interactionCloseOnOutsideClick:a,showPanel:s,minimizePanelInteractive:l,expandSidebar:g,scrollableSidebar:u}=Lk(lr.value),c=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],d=[["Always",0],["1s",1e3],["2s",2e3],["5s",5e3],["10s",1e4],["Never",-1]],{hiddenTabCategories:h,hiddenTabs:A,pinnedTabs:f}=Lk(lr.value.tabSettings);function C(k,E){E?A.value=A.value.filter(O=>O!==k):A.value.push(k)}function I(k,E){E?h.value=h.value.filter(O=>O!==k):h.value.push(k)}function v(k){f.value.includes(k)?f.value=f.value.filter(E=>E!==k):f.value.push(k)}function p(k,E){const O=f.value.indexOf(k);if(O===-1)return;const N=O+E;if(N<0||N>=f.value.length)return;const D=[...f.value];D.splice(O,1),D.splice(N,0,k),f.value=D}const y=H(!1);async function b(){vle(),window.location.reload()}const _=d.map(([k,E])=>({label:k,value:E})),P=J(()=>`${_.find(E=>E.value===l.value)?.label??"Select..."}`);return(k,E)=>{const O=F2,N=qA;return T(),L("div",Rkt,[z(O,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),w("div",Dkt,[w("div",Nkt,[Mkt,(T(!0),L(be,null,pt(m(i),([{name:D,hidden:M},Q])=>(T(),L(be,{key:D},[Q.length?(T(),re(m(hv),{key:0,p3:"",flex:"~ col gap-1",class:Ee(M?"op50 grayscale":"")},{default:V(()=>[z(m(OP),{"model-value":!m(h).includes(D),class:"row-reverse flex hover:bg-active py1 pl2 pr1","onUpdate:modelValue":j=>I(D,j)},{default:V(()=>[w("div",Bkt,[w("span",Fkt,_e(D),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),Lkt,(T(!0),L(be,null,pt(Q,j=>(T(),re(m(OP),{key:j.name,class:Ee(["row-reverse n-primary flex hover:bg-active py1 pl2 pr1",j.hidden?"op35":""]),"model-value":!m(A).includes(j.name),"onUpdate:modelValue":W=>C(j.name,W)},{default:V(()=>[w("div",zkt,[z(N,{"text-xl":"",icon:j.icon,title:j.title},null,8,["icon","title"]),w("span",null,_e(j.title),1),jkt,m(f).includes(j.name)?(T(),L(be,{key:0},[w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:En(()=>{m(f).indexOf(j.name)!==0&&p(j.name,-1)},["stop"])},Wkt,8,Vkt),w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:En(()=>{m(f).indexOf(j.name)!==m(f).length-1&&p(j.name,1)},["stop"])},Zkt,8,Hkt)],64)):$e("",!0),w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:En(W=>v(j.name),["stop"])},[w("div",{class:Ee(m(f).includes(j.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op45")},null,2)],8,Kkt)])]),_:2},1032,["model-value","class","onUpdate:modelValue"]))),128))]),_:2},1032,["class"])):$e("",!0)],64))),128))]),w("div",Ykt,[Xkt,z(m(hv),{p4:"",flex:"~ col gap-2"},{default:V(()=>[w("div",Qkt,[z(m(g6),null,{default:V(({isDark:D,toggle:M})=>[z(m(at),{outlined:"",type:"primary",onClick:M},{default:V(()=>[qkt,ke(" "+_e(D?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),m(e)?(T(),re(m(at),{key:0,outlined:"",type:"primary",onClick:E[0]||(E[0]=D=>m(n)("overlay"))},{default:V(()=>[ke(" Switch to Overlay Mode ")]),_:1})):$e("",!0)]),Jkt,ext,w("div",null,[z(m(fp),{modelValue:m(o),"onUpdate:modelValue":E[1]||(E[1]=D=>ze(o)?o.value=D:null),options:c.map(([D,M])=>({label:D,value:M})),"button-props":{outlined:!0}},null,8,["modelValue","options"])]),txt,w("div",rxt,[z(m(zu),{modelValue:m(g),"onUpdate:modelValue":E[2]||(E[2]=D=>ze(g)?g.value=D:null)},null,8,["modelValue"]),nxt]),w("div",ixt,[z(m(zu),{modelValue:m(u),"onUpdate:modelValue":E[3]||(E[3]=D=>ze(u)?u.value=D:null)},null,8,["modelValue"]),oxt])]),_:1}),axt,z(m(hv),{p4:"",flex:"~ col gap-2"},{default:V(()=>[w("div",sxt,[z(m(zu),{modelValue:m(a),"onUpdate:modelValue":E[4]||(E[4]=D=>ze(a)?a.value=D:null)},null,8,["modelValue"]),lxt]),w("div",gxt,[z(m(zu),{modelValue:m(s),"onUpdate:modelValue":E[5]||(E[5]=D=>ze(s)?s.value=D:null)},null,8,["modelValue"]),uxt]),cxt,dxt,w("div",null,[z(m(fp),{modelValue:m(l),"onUpdate:modelValue":E[6]||(E[6]=D=>ze(l)?l.value=D:null),"button-props":{outlined:!0},options:m(_),placeholder:m(P)},null,8,["modelValue","options","placeholder"])])]),_:1}),hxt,w("div",Axt,[z(m(at),{outlined:"",type:"warning",onClick:E[7]||(E[7]=D=>y.value=!0)},{default:V(()=>[fxt,ke(" Reset Local Settings & State ")]),_:1}),z(m(Nae),{modelValue:m(y),"onUpdate:modelValue":E[8]||(E[8]=D=>ze(y)?y.value=D:null),title:"Clear Local Settings & State",width:"40%",height:"200px",content:"Are you sure you to reset all local settings & state? Devtools will reload.",onConfirm:b},null,8,["modelValue"])])])])])}}}),Ixt={key:0,absolute:"","inset-0":"",flex:"","items-center":"","justify-center":""},vxt=w("i",{class:"mdi:loading animate-spin text-3xl"},null,-1),pxt=[vxt],Lw=new Map,mxt=we({__name:"IframeView",props:{src:{}},setup(t){const r=t,e=Vm(),n=H(),i=J(()=>r.src),o=H(),a=Qs(ile(n)),s=H(!1);Si(()=>{if(Lw.get(i.value))o.value=Lw.get(i.value),o.value.style.visibility="visible",s.value=!0;else{o.value=document.createElement("iframe"),Lw.set(i.value,o.value),o.value.src=r.src;try{o.value.style.opacity="0.01",o.value.onload=()=>{l(),o.value.style.opacity="1",s.value=!0}}catch{o.value.style.opacity="1"}document.body.appendChild(o.value),mn(g)}setTimeout(l,100)}),Mn(g),Mn(l),ad(()=>{o.value&&(o.value.style.visibility="hidden")});function l(){if(!(!o.value||!o.value.contentWindow))try{const u=o.value.contentWindow.document.querySelector("html");u?.classList.toggle("dark",e.value==="dark"),u?.classList.toggle("light",e.value==="dark")}catch{}}function g(){o.value&&Object.assign(o.value.style,{position:"fixed",left:`${a.left}px`,top:`${a.top}px`,width:`${a.width}px`,height:`${a.height}px`,outline:"none"})}return(u,c)=>(T(),L("div",{ref_key:"anchor",ref:n,"h-full":"","w-full":""},[m(s)?$e("",!0):(T(),L("div",Ixt,pxt))],512))}}),yxt={flex:"~ col gap2",mxa:"","items-center":""},bxt=w("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1),$xt={"text-xl":""},wxt={"text-rose":""},_xt=w("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1),Ext=we({__name:"custom-tab-view",setup(t){const r=Nm(),e=gd(),{flattenedTabs:n}=tf(),i=J(()=>r.params.name),o=J(()=>n.value.find(s=>i.value===s.name)||null);Si(()=>{o.value||setTimeout(()=>{e.replace("/overview")},2e3)});const a=H(!0);return et(()=>r.params.name,()=>{a.value=!1,setTimeout(()=>{a.value=!0},100)}),(s,l)=>{const g=Eo,u=mxt,c=_i("NCard");return m(o)?m(o)?.view?.type==="iframe"?(T(),L(be,{key:1},[m(a)?(T(),re(u,{key:0,src:m(o).view.src},null,8,["src"])):$e("",!0)],64)):m(o)?.view?.type==="vnode"?(T(),re(qs(m(o).view.vnode),{key:2})):(T(),re(g,{key:3},{default:V(()=>[z(c,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:V(()=>[ke(" Unknown tab type "+_e(m(o)?.view),1)]),_:1})]),_:1})):(T(),re(g,{key:0,flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:V(()=>[w("div",yxt,[bxt,w("p",$xt,[ke(" Tab "),w("code",wxt,_e(m(i)),1),ke(" not found ")]),_xt])]),_:1}))}}}),Sxt={class:"h-screen w-screen $ui-fcc"},Txt=w("p",{class:"pt-5 font-bold text-base"}," Waiting for connection... ",-1),Oxt={key:0,class:"mt-5"},kxt=w("p",{class:"text-center text-sm op80 text-base"}," Add one of the following to the top of your page 👇: ",-1),xxt={class:"mt-3 $ui-fcc flex-row gap3"},Pxt={class:"mt-3 $ui-fcc flex-row gap3"},Rxt=we({__name:"WaitForConnection",props:{local:{},network:{}},setup(t){const r=t;function e(l){return`<script src="${l}"><\/script>`}const n=e(r.local),i=e(r.network),o=H(n),a=H(i),{copy:s}=nf();return(l,g)=>(T(),L("div",Sxt,[z(D6,null,{default:V(()=>[Txt,r.local&&r.network?(T(),L("div",Oxt,[kxt,w("div",xxt,[z(m(Da),{modelValue:m(o),"onUpdate:modelValue":g[0]||(g[0]=u=>ze(o)?o.value=u:null),class:"w-380px!"},null,8,["modelValue"]),z(m(St),{icon:"i-carbon-copy",class:"cursor-pointer text-primary-300 hover:text-primary-500",onClick:g[1]||(g[1]=u=>m(s)(m(o)))})]),w("div",Pxt,[z(m(Da),{modelValue:m(a),"onUpdate:modelValue":g[2]||(g[2]=u=>ze(a)?a.value=u:null),class:"w-380px!"},null,8,["modelValue"]),z(m(St),{icon:"i-carbon-copy",class:"cursor-pointer text-primary-300 hover:text-primary-500",onClick:g[3]||(g[3]=u=>m(s)(m(a)))})])])):$e("",!0)]),_:1})]))}});async function qQ(){return import.meta.url?.includes("chrome-extension://")?void 0:(await Tie(`${location.pathname.split("/__devtools__")[0]||""}/`.replace(/\/\//g,"/"),!1))?.createHotContext("/____")}const Dxt=[{path:"/",component:Pkt},{path:"/overview",component:Ace},{path:"/components",component:Lue},{path:"/pinia",component:Gce},{path:"/router",component:Hce},{path:"/i18n",component:Zce},{path:"/timeline",component:ade},{path:"/pages",component:Lde},{path:"/assets",component:BCe},{path:"/graph",component:Skt},{path:"/settings",component:Cxt},{path:"/custom-tab-view/:name",component:Ext}],uo={value:null};async function Nxt(t,r){uo.value.removeAllListeners(),r.connect(async e=>{uo.value=e,A8("devtools",{viteRPCContext:await qQ(),bridge:uo.value}),new I8(uo.value).onnConnect().then(()=>{t.config.globalProperties.__VUE_DEVTOOLS_UPDATE__(uo.value),uo.value.emit(I2.CLIENT_READY)})})}async function Mxt(t,r){return new Promise(e=>{r.connect(n=>{uo.value=n,e()}),r.reload(()=>{Nxt(t,r)})})}async function JQ(t,r={viewMode:"overlay"}){const e=d2(Qge);await Mxt(e,t),A8("devtools",{viteRPCContext:await qQ(),bridge:uo.value}),new I8(uo.value).onnConnect().then(()=>{const n=wie({history:jne(),routes:Dxt});e.use(n),e.use(wne({bridge:uo.value,viewMode:r.viewMode})),e.mount("#app"),uo.value.emit(I2.CLIENT_READY)})}function Bxt(t="#app",r){const e=d2(Rxt,{...r});return e.mount(t),e}window.addEventListener("message",t=>{t.data==="__VUE_DEVTOOLS_CREATE_CLIENT__"&&(JQ({connect:r=>{const e=new d8({tracker(n){window.addEventListener("message",i=>{i.data.source==="__VUE_DEVTOOLS_USER_APP__"&&n(i.data.data)})},trigger(n){t?.source?.postMessage({source:"__VUE_DEVTOOLS_CLIENT__",data:n},{targetOrigin:"*"})}});r(e)}}),t.source?.postMessage("__VUE_DEVTOOLS_CLIENT_READY__"))});if(!gq&&!yc&&!zS){let t=function(){const r={connected:!1,timer:null,app:null},e=new BroadcastChannel(pq);function n(){r.timer=setInterval(()=>{e.postMessage({source:"__VUE_DEVTOOLS_CLIENT__",data:{event:"ready"}})},2e3)}r.app=Bxt(),e.onmessage=i=>{i.data?.data?.event==="__VUE_DEVTOOLS_CREATE_CLIENT__"&&(r.app?.unmount(),r.connected=!0,clearInterval(r.timer),JQ({connect:o=>{const a=new d8({tracker(s){e.onmessage=l=>{l.data.source==="__VUE_DEVTOOLS_USER_APP__"&&s(l.data.data)}},trigger(s){e.postMessage({source:"__VUE_DEVTOOLS_CLIENT__",data:s})}});a.on("disconnect",()=>{e.close(),t()}),o(a)}}))},n()};t()}
|
|
1091
1091
|
function __vite__mapDeps(indexes) {
|
|
1092
1092
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
1093
1093
|
__vite__mapDeps.viteFileDeps = ["./vue-nOwTje1i.js","./html-5-AIf93y.js","./javascript-Of8SnKfU.js","./css-a-KJtBLB.js","./typescript-b1Nw_bQe.js","./json-t1qiHl76.js","./yaml-FtfhlYqU.js","./vue-html-eJ6eRCYJ.js"]
|