Files
lightrag/lightrag/api/webui/assets/index-BPSbheeW.js
2025-04-22 12:11:24 +08:00

1595 lines
2.4 MiB
Generated
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-OKDRZEBW-CGLGKqWw.js","assets/graph-DKtR3wWN.js","assets/_baseUniq-H_3ttW9l.js","assets/layout-DIXrjJ43.js","assets/_basePickBy-Bon5_Mj8.js","assets/clone-CVOwREku.js","assets/c4Diagram-VJAJSXHY-BN5_uwIb.js","assets/chunk-D6G4REZN-CcTl-Tlh.js","assets/flowDiagram-4HSFHLVR-CPQBP0rf.js","assets/chunk-RZ5BOZE2-CrQI9BKy.js","assets/channel-DqqOZ4_O.js","assets/erDiagram-Q7BY3M3F-wlsG6Z10.js","assets/gitGraphDiagram-7IBYFJ6S-Cz1LC2mu.js","assets/chunk-4BMEZGHF-wD2S0dkO.js","assets/chunk-XZIHB7SX-Ct4jOtpv.js","assets/radar-MK3ICKWK-HDH5gD2b.js","assets/ganttDiagram-APWFNJXF-D5n-1VFv.js","assets/linear-B2O1aDN5.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-PH2N3AL5-BjhqsDcK.js","assets/pieDiagram-IB7DONF6-CD5aoKMy.js","assets/arc-AWdn7jeT.js","assets/ordinal-BENe2yWM.js","assets/quadrantDiagram-7GDLP6J5-C83eLFL3.js","assets/xychartDiagram-VJFVF3MP-Dfdu6LZP.js","assets/requirementDiagram-KVF5MWMF-BJVJ5LRo.js","assets/sequenceDiagram-X6HHIX6F-gz9G4_2U.js","assets/classDiagram-GIVACNV2-acOnbCpO.js","assets/chunk-A2AXSNBT-yDVppOXb.js","assets/classDiagram-v2-COTLJTTW-acOnbCpO.js","assets/stateDiagram-DGXRK772-Dqjs1uNr.js","assets/chunk-AEK57VVT-CZe9kJIp.js","assets/stateDiagram-v2-YXO3MK2T-IumEckhu.js","assets/journeyDiagram-U35MCT3I-CRuT1sZr.js","assets/timeline-definition-BDJGKUSR-DSYi8csu.js","assets/mindmap-definition-ALO5MXBD-DyPb8ezw.js","assets/cytoscape.esm-CfBqOv7Q.js","assets/sankeyDiagram-QLVOVGJD-CeOiKBYU.js","assets/diagram-VNBRO52H-BxSEPkct.js","assets/diagram-SSKATNLV-DAf1IW2R.js","assets/blockDiagram-JOT3LUYC-CMvDpqP1.js","assets/architectureDiagram-IEHRJDOE-BPwMqCMS.js"])))=>i.map(i=>d[i]);
var Dre=Object.defineProperty;var Ire=(e,t,n)=>t in e?Dre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var jt=(e,t,n)=>Ire(e,typeof t!="symbol"?t+"":t,n);function Mre(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var Dm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fre(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var yS={exports:{}},Yd={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var BM;function Pre(){if(BM)return Yd;BM=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var o=null;if(i!==void 0&&(o=""+i),a.key!==void 0&&(o=""+a.key),"key"in a){i={};for(var s in a)s!=="key"&&(i[s]=a[s])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:o,ref:a!==void 0?a:null,props:i}}return Yd.Fragment=t,Yd.jsx=n,Yd.jsxs=n,Yd}var zM;function Bre(){return zM||(zM=1,yS.exports=Pre()),yS.exports}var k=Bre(),vS={exports:{}},Rt={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $M;function zre(){if($M)return Rt;$M=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;function h(F){return F===null||typeof F!="object"?null:(F=p&&F[p]||F["@@iterator"],typeof F=="function"?F:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,y={};function x(F,Y,H){this.props=F,this.context=Y,this.refs=y,this.updater=H||g}x.prototype.isReactComponent={},x.prototype.setState=function(F,Y){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,Y,"setState")},x.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function w(){}w.prototype=x.prototype;function S(F,Y,H){this.props=F,this.context=Y,this.refs=y,this.updater=H||g}var _=S.prototype=new w;_.constructor=S,b(_,x.prototype),_.isPureReactComponent=!0;var N=Array.isArray,R={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function A(F,Y,H,$,Z,Q){return H=Q.ref,{$$typeof:e,type:F,key:Y,ref:H!==void 0?H:null,props:Q}}function I(F,Y){return A(F.type,Y,void 0,void 0,void 0,F.props)}function D(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function O(F){var Y={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(H){return Y[H]})}var P=/\/+/g;function G(F,Y){return typeof F=="object"&&F!==null&&F.key!=null?O(""+F.key):Y.toString(36)}function j(){}function W(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(j,j):(F.status="pending",F.then(function(Y){F.status==="pending"&&(F.status="fulfilled",F.value=Y)},function(Y){F.status==="pending"&&(F.status="rejected",F.reason=Y)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function V(F,Y,H,$,Z){var Q=typeof F;(Q==="undefined"||Q==="boolean")&&(F=null);var ie=!1;if(F===null)ie=!0;else switch(Q){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(F.$$typeof){case e:case t:ie=!0;break;case d:return ie=F._init,V(ie(F._payload),Y,H,$,Z)}}if(ie)return Z=Z(F),ie=$===""?"."+G(F,0):$,N(Z)?(H="",ie!=null&&(H=ie.replace(P,"$&/")+"/"),V(Z,Y,H,"",function(Te){return Te})):Z!=null&&(D(Z)&&(Z=I(Z,H+(Z.key==null||F&&F.key===Z.key?"":(""+Z.key).replace(P,"$&/")+"/")+ie)),Y.push(Z)),1;ie=0;var te=$===""?".":$+":";if(N(F))for(var ce=0;ce<F.length;ce++)$=F[ce],Q=te+G($,ce),ie+=V($,Y,H,Q,Z);else if(ce=h(F),typeof ce=="function")for(F=ce.call(F),ce=0;!($=F.next()).done;)$=$.value,Q=te+G($,ce++),ie+=V($,Y,H,Q,Z);else if(Q==="object"){if(typeof F.then=="function")return V(W(F),Y,H,$,Z);throw Y=String(F),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ie}function B(F,Y,H){if(F==null)return F;var $=[],Z=0;return V(F,$,"","",function(Q){return Y.call(H,Q,Z++)}),$}function U(F){if(F._status===-1){var Y=F._result;Y=Y(),Y.then(function(H){(F._status===0||F._status===-1)&&(F._status=1,F._result=H)},function(H){(F._status===0||F._status===-1)&&(F._status=2,F._result=H)}),F._status===-1&&(F._status=0,F._result=Y)}if(F._status===1)return F._result.default;throw F._result}var M=typeof reportError=="function"?reportError:function(F){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof F=="object"&&F!==null&&typeof F.message=="string"?String(F.message):String(F),error:F});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",F);return}console.error(F)};function K(){}return Rt.Children={map:B,forEach:function(F,Y,H){B(F,function(){Y.apply(this,arguments)},H)},count:function(F){var Y=0;return B(F,function(){Y++}),Y},toArray:function(F){return B(F,function(Y){return Y})||[]},only:function(F){if(!D(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},Rt.Component=x,Rt.Fragment=n,Rt.Profiler=a,Rt.PureComponent=S,Rt.StrictMode=r,Rt.Suspense=l,Rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Rt.act=function(){throw Error("act(...) is not supported in production builds of React.")},Rt.cache=function(F){return function(){return F.apply(null,arguments)}},Rt.cloneElement=function(F,Y,H){if(F==null)throw Error("The argument must be a React element, but you passed "+F+".");var $=b({},F.props),Z=F.key,Q=void 0;if(Y!=null)for(ie in Y.ref!==void 0&&(Q=void 0),Y.key!==void 0&&(Z=""+Y.key),Y)!C.call(Y,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&Y.ref===void 0||($[ie]=Y[ie]);var ie=arguments.length-2;if(ie===1)$.children=H;else if(1<ie){for(var te=Array(ie),ce=0;ce<ie;ce++)te[ce]=arguments[ce+2];$.children=te}return A(F.type,Z,void 0,void 0,Q,$)},Rt.createContext=function(F){return F={$$typeof:o,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null},F.Provider=F,F.Consumer={$$typeof:i,_context:F},F},Rt.createElement=function(F,Y,H){var $,Z={},Q=null;if(Y!=null)for($ in Y.key!==void 0&&(Q=""+Y.key),Y)C.call(Y,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(Z[$]=Y[$]);var ie=arguments.length-2;if(ie===1)Z.children=H;else if(1<ie){for(var te=Array(ie),ce=0;ce<ie;ce++)te[ce]=arguments[ce+2];Z.children=te}if(F&&F.defaultProps)for($ in ie=F.defaultProps,ie)Z[$]===void 0&&(Z[$]=ie[$]);return A(F,Q,void 0,void 0,null,Z)},Rt.createRef=function(){return{current:null}},Rt.forwardRef=function(F){return{$$typeof:s,render:F}},Rt.isValidElement=D,Rt.lazy=function(F){return{$$typeof:d,_payload:{_status:-1,_result:F},_init:U}},Rt.memo=function(F,Y){return{$$typeof:c,type:F,compare:Y===void 0?null:Y}},Rt.startTransition=function(F){var Y=R.T,H={};R.T=H;try{var $=F(),Z=R.S;Z!==null&&Z(H,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(K,M)}catch(Q){M(Q)}finally{R.T=Y}},Rt.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Rt.use=function(F){return R.H.use(F)},Rt.useActionState=function(F,Y,H){return R.H.useActionState(F,Y,H)},Rt.useCallback=function(F,Y){return R.H.useCallback(F,Y)},Rt.useContext=function(F){return R.H.useContext(F)},Rt.useDebugValue=function(){},Rt.useDeferredValue=function(F,Y){return R.H.useDeferredValue(F,Y)},Rt.useEffect=function(F,Y){return R.H.useEffect(F,Y)},Rt.useId=function(){return R.H.useId()},Rt.useImperativeHandle=function(F,Y,H){return R.H.useImperativeHandle(F,Y,H)},Rt.useInsertionEffect=function(F,Y){return R.H.useInsertionEffect(F,Y)},Rt.useLayoutEffect=function(F,Y){return R.H.useLayoutEffect(F,Y)},Rt.useMemo=function(F,Y){return R.H.useMemo(F,Y)},Rt.useOptimistic=function(F,Y){return R.H.useOptimistic(F,Y)},Rt.useReducer=function(F,Y,H){return R.H.useReducer(F,Y,H)},Rt.useRef=function(F){return R.H.useRef(F)},Rt.useState=function(F){return R.H.useState(F)},Rt.useSyncExternalStore=function(F,Y,H){return R.H.useSyncExternalStore(F,Y,H)},Rt.useTransition=function(){return R.H.useTransition()},Rt.version="19.0.0",Rt}var jM;function qb(){return jM||(jM=1,vS.exports=zre()),vS.exports}var T=qb();const Re=Kn(T),$re=Mre({__proto__:null,default:Re},[T]);var xS={exports:{}},Kd={},SS={exports:{}},wS={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var UM;function jre(){return UM||(UM=1,function(e){function t(B,U){var M=B.length;B.push(U);e:for(;0<M;){var K=M-1>>>1,F=B[K];if(0<a(F,U))B[K]=U,B[M]=F,M=K;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var U=B[0],M=B.pop();if(M!==U){B[0]=M;e:for(var K=0,F=B.length,Y=F>>>1;K<Y;){var H=2*(K+1)-1,$=B[H],Z=H+1,Q=B[Z];if(0>a($,M))Z<F&&0>a(Q,$)?(B[K]=Q,B[Z]=M,K=Z):(B[K]=$,B[H]=M,K=H);else if(Z<F&&0>a(Q,M))B[K]=Q,B[Z]=M,K=Z;else break e}}return U}function a(B,U){var M=B.sortIndex-U.sortIndex;return M!==0?M:B.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],d=1,p=null,h=3,g=!1,b=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function _(B){for(var U=n(c);U!==null;){if(U.callback===null)r(c);else if(U.startTime<=B)r(c),U.sortIndex=U.expirationTime,t(l,U);else break;U=n(c)}}function N(B){if(y=!1,_(B),!b)if(n(l)!==null)b=!0,W();else{var U=n(c);U!==null&&V(N,U.startTime-B)}}var R=!1,C=-1,A=5,I=-1;function D(){return!(e.unstable_now()-I<A)}function O(){if(R){var B=e.unstable_now();I=B;var U=!0;try{e:{b=!1,y&&(y=!1,w(C),C=-1),g=!0;var M=h;try{t:{for(_(B),p=n(l);p!==null&&!(p.expirationTime>B&&D());){var K=p.callback;if(typeof K=="function"){p.callback=null,h=p.priorityLevel;var F=K(p.expirationTime<=B);if(B=e.unstable_now(),typeof F=="function"){p.callback=F,_(B),U=!0;break t}p===n(l)&&r(l),_(B)}else r(l);p=n(l)}if(p!==null)U=!0;else{var Y=n(c);Y!==null&&V(N,Y.startTime-B),U=!1}}break e}finally{p=null,h=M,g=!1}U=void 0}}finally{U?P():R=!1}}}var P;if(typeof S=="function")P=function(){S(O)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,j=G.port2;G.port1.onmessage=O,P=function(){j.postMessage(null)}}else P=function(){x(O,0)};function W(){R||(R=!0,P())}function V(B,U){C=x(function(){B(e.unstable_now())},U)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_continueExecution=function(){b||g||(b=!0,W())},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(B){switch(h){case 1:case 2:case 3:var U=3;break;default:U=h}var M=h;h=U;try{return B()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,U){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var M=h;h=B;try{return U()}finally{h=M}},e.unstable_scheduleCallback=function(B,U,M){var K=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?K+M:K):M=K,B){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=M+F,B={id:d++,callback:U,priorityLevel:B,startTime:M,expirationTime:F,sortIndex:-1},M>K?(B.sortIndex=M,t(c,B),n(l)===null&&B===n(c)&&(y?(w(C),C=-1):y=!0,V(N,M-K))):(B.sortIndex=F,t(l,B),b||g||(b=!0,W())),B},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(B){var U=h;return function(){var M=h;h=U;try{return B.apply(this,arguments)}finally{h=M}}}}(wS)),wS}var HM;function Ure(){return HM||(HM=1,SS.exports=jre()),SS.exports}var ES={exports:{}},vr={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var GM;function Hre(){if(GM)return vr;GM=1;var e=qb();function t(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)c+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(l,c,d){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:l,containerInfo:c,implementation:d}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return vr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,vr.createPortal=function(l,c){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return i(l,c,null,d)},vr.flushSync=function(l){var c=o.T,d=r.p;try{if(o.T=null,r.p=2,l)return l()}finally{o.T=c,r.p=d,r.d.f()}},vr.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(l,c))},vr.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},vr.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var d=c.as,p=s(d,c.crossOrigin),h=typeof c.integrity=="string"?c.integrity:void 0,g=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;d==="style"?r.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:p,integrity:h,fetchPriority:g}):d==="script"&&r.d.X(l,{crossOrigin:p,integrity:h,fetchPriority:g,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},vr.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var d=s(c.as,c.crossOrigin);r.d.M(l,{crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(l)},vr.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var d=c.as,p=s(d,c.crossOrigin);r.d.L(l,d,{crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},vr.preloadModule=function(l,c){if(typeof l=="string")if(c){var d=s(c.as,c.crossOrigin);r.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(l)},vr.requestFormReset=function(l){r.d.r(l)},vr.unstable_batchedUpdates=function(l,c){return l(c)},vr.useFormState=function(l,c,d){return o.H.useFormState(l,c,d)},vr.useFormStatus=function(){return o.H.useHostTransitionStatus()},vr.version="19.0.0",vr}var qM;function fG(){if(qM)return ES.exports;qM=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ES.exports=Hre(),ES.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var WM;function Gre(){if(WM)return Kd;WM=1;var e=Ure(),t=qb(),n=fG();function r(u){var f="https://react.dev/errors/"+u;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+u+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}var i=Symbol.for("react.element"),o=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.consumer"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),N=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function C(u){return u===null||typeof u!="object"?null:(u=R&&u[R]||u["@@iterator"],typeof u=="function"?u:null)}var A=Symbol.for("react.client.reference");function I(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===A?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case l:return"Fragment";case s:return"Portal";case d:return"Profiler";case c:return"StrictMode";case y:return"Suspense";case x:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case g:return(u.displayName||"Context")+".Provider";case h:return(u._context.displayName||"Context")+".Consumer";case b:var f=u.render;return u=u.displayName,u||(u=f.displayName||f.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case w:return f=u.displayName||null,f!==null?f:I(u.type)||"Memo";case S:f=u._payload,u=u._init;try{return I(u(f))}catch{}}return null}var D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=Object.assign,P,G;function j(u){if(P===void 0)try{throw Error()}catch(m){var f=m.stack.trim().match(/\n( *(at )?)/);P=f&&f[1]||"",G=-1<m.stack.indexOf(`
at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
`+P+u+G}var W=!1;function V(u,f){if(!u||W)return"";W=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(f){var Oe=function(){throw Error()};if(Object.defineProperty(Oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Oe,[])}catch(ke){var me=ke}Reflect.construct(u,[],Oe)}else{try{Oe.call()}catch(ke){me=ke}u.call(Oe.prototype)}}else{try{throw Error()}catch(ke){me=ke}(Oe=u())&&typeof Oe.catch=="function"&&Oe.catch(function(){})}}catch(ke){if(ke&&me&&typeof ke.stack=="string")return[ke.stack,me.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var L=v.DetermineComponentFrameRoot(),q=L[0],X=L[1];if(q&&X){var J=q.split(`
`),le=X.split(`
`);for(E=v=0;v<J.length&&!J[v].includes("DetermineComponentFrameRoot");)v++;for(;E<le.length&&!le[E].includes("DetermineComponentFrameRoot");)E++;if(v===J.length||E===le.length)for(v=J.length-1,E=le.length-1;1<=v&&0<=E&&J[v]!==le[E];)E--;for(;1<=v&&0<=E;v--,E--)if(J[v]!==le[E]){if(v!==1||E!==1)do if(v--,E--,0>E||J[v]!==le[E]){var _e=`
`+J[v].replace(" at new "," at ");return u.displayName&&_e.includes("<anonymous>")&&(_e=_e.replace("<anonymous>",u.displayName)),_e}while(1<=v&&0<=E);break}}}finally{W=!1,Error.prepareStackTrace=m}return(m=u?u.displayName||u.name:"")?j(m):""}function B(u){switch(u.tag){case 26:case 27:case 5:return j(u.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 15:return u=V(u.type,!1),u;case 11:return u=V(u.type.render,!1),u;case 1:return u=V(u.type,!0),u;default:return""}}function U(u){try{var f="";do f+=B(u),u=u.return;while(u);return f}catch(m){return`
Error generating stack: `+m.message+`
`+m.stack}}function M(u){var f=u,m=u;if(u.alternate)for(;f.return;)f=f.return;else{u=f;do f=u,f.flags&4098&&(m=f.return),u=f.return;while(u)}return f.tag===3?m:null}function K(u){if(u.tag===13){var f=u.memoizedState;if(f===null&&(u=u.alternate,u!==null&&(f=u.memoizedState)),f!==null)return f.dehydrated}return null}function F(u){if(M(u)!==u)throw Error(r(188))}function Y(u){var f=u.alternate;if(!f){if(f=M(u),f===null)throw Error(r(188));return f!==u?null:u}for(var m=u,v=f;;){var E=m.return;if(E===null)break;var L=E.alternate;if(L===null){if(v=E.return,v!==null){m=v;continue}break}if(E.child===L.child){for(L=E.child;L;){if(L===m)return F(E),u;if(L===v)return F(E),f;L=L.sibling}throw Error(r(188))}if(m.return!==v.return)m=E,v=L;else{for(var q=!1,X=E.child;X;){if(X===m){q=!0,m=E,v=L;break}if(X===v){q=!0,v=E,m=L;break}X=X.sibling}if(!q){for(X=L.child;X;){if(X===m){q=!0,m=L,v=E;break}if(X===v){q=!0,v=L,m=E;break}X=X.sibling}if(!q)throw Error(r(189))}}if(m.alternate!==v)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?u:f}function H(u){var f=u.tag;if(f===5||f===26||f===27||f===6)return u;for(u=u.child;u!==null;){if(f=H(u),f!==null)return f;u=u.sibling}return null}var $=Array.isArray,Z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ie=[],te=-1;function ce(u){return{current:u}}function Te(u){0>te||(u.current=ie[te],ie[te]=null,te--)}function ne(u,f){te++,ie[te]=u.current,u.current=f}var Ee=ce(null),re=ce(null),we=ce(null),xe=ce(null);function Se(u,f){switch(ne(we,f),ne(re,u),ne(Ee,null),u=f.nodeType,u){case 9:case 11:f=(f=f.documentElement)&&(f=f.namespaceURI)?pM(f):0;break;default:if(u=u===8?f.parentNode:f,f=u.tagName,u=u.namespaceURI)u=pM(u),f=hM(u,f);else switch(f){case"svg":f=1;break;case"math":f=2;break;default:f=0}}Te(Ee),ne(Ee,f)}function ee(){Te(Ee),Te(re),Te(we)}function he(u){u.memoizedState!==null&&ne(xe,u);var f=Ee.current,m=hM(f,u.type);f!==m&&(ne(re,u),ne(Ee,m))}function Ae(u){re.current===u&&(Te(Ee),Te(re)),xe.current===u&&(Te(xe),Hd._currentValue=Q)}var be=Object.prototype.hasOwnProperty,Ce=e.unstable_scheduleCallback,ue=e.unstable_cancelCallback,Ve=e.unstable_shouldYield,We=e.unstable_requestPaint,ve=e.unstable_now,Ie=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,ge=e.unstable_UserBlockingPriority,Me=e.unstable_NormalPriority,He=e.unstable_LowPriority,tt=e.unstable_IdlePriority,Pt=e.log,Gt=e.unstable_setDisableYieldValue,Nt=null,ct=null;function Bt(u){if(ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Nt,u,void 0,(u.current.flags&128)===128)}catch{}}function wt(u){if(typeof Pt=="function"&&Gt(u),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(Nt,u)}catch{}}var zt=Math.clz32?Math.clz32:on,bn=Math.log,_n=Math.LN2;function on(u){return u>>>=0,u===0?32:31-(bn(u)/_n|0)|0}var Br=128,mr=4194304;function Ln(u){var f=u&42;if(f!==0)return f;switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function Ya(u,f){var m=u.pendingLanes;if(m===0)return 0;var v=0,E=u.suspendedLanes,L=u.pingedLanes,q=u.warmLanes;u=u.finishedLanes!==0;var X=m&134217727;return X!==0?(m=X&~E,m!==0?v=Ln(m):(L&=X,L!==0?v=Ln(L):u||(q=X&~q,q!==0&&(v=Ln(q))))):(X=m&~E,X!==0?v=Ln(X):L!==0?v=Ln(L):u||(q=m&~q,q!==0&&(v=Ln(q)))),v===0?0:f!==0&&f!==v&&!(f&E)&&(E=v&-v,q=f&-f,E>=q||E===32&&(q&4194176)!==0)?f:v}function Ge(u,f){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&f)===0}function At(u,f){switch(u){case 1:case 2:case 4:case 8:return f+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rn(){var u=Br;return Br<<=1,!(Br&4194176)&&(Br=128),u}function rr(){var u=mr;return mr<<=1,!(mr&62914560)&&(mr=4194304),u}function $n(u){for(var f=[],m=0;31>m;m++)f.push(u);return f}function ar(u,f){u.pendingLanes|=f,f!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function ya(u,f,m,v,E,L){var q=u.pendingLanes;u.pendingLanes=m,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=m,u.entangledLanes&=m,u.errorRecoveryDisabledLanes&=m,u.shellSuspendCounter=0;var X=u.entanglements,J=u.expirationTimes,le=u.hiddenUpdates;for(m=q&~m;0<m;){var _e=31-zt(m),Oe=1<<_e;X[_e]=0,J[_e]=-1;var me=le[_e];if(me!==null)for(le[_e]=null,_e=0;_e<me.length;_e++){var ke=me[_e];ke!==null&&(ke.lane&=-536870913)}m&=~Oe}v!==0&&br(u,v,0),L!==0&&E===0&&u.tag!==0&&(u.suspendedLanes|=L&~(q&~f))}function br(u,f,m){u.pendingLanes|=f,u.suspendedLanes&=~f;var v=31-zt(f);u.entangledLanes|=f,u.entanglements[v]=u.entanglements[v]|1073741824|m&4194218}function Cn(u,f){var m=u.entangledLanes|=f;for(u=u.entanglements;m;){var v=31-zt(m),E=1<<v;E&f|u[v]&f&&(u[v]|=f),m&=~E}}function Ds(u){return u&=-u,2<u?8<u?u&134217727?32:268435456:8:2}function nd(){var u=Z.p;return u!==0?u:(u=window.event,u===void 0?32:OM(u.type))}function Jp(u,f){var m=Z.p;try{return Z.p=u,f()}finally{Z.p=m}}var va=Math.random().toString(36).slice(2),jn="__reactFiber$"+va,yn="__reactProps$"+va,Gi="__reactContainer$"+va,Vl="__reactEvents$"+va,eh="__reactListeners$"+va,th="__reactHandles$"+va,nh="__reactResources$"+va,nt="__reactMarker$"+va;function oe(u){delete u[jn],delete u[yn],delete u[Vl],delete u[eh],delete u[th]}function Fe(u){var f=u[jn];if(f)return f;for(var m=u.parentNode;m;){if(f=m[Gi]||m[jn]){if(m=f.alternate,f.child!==null||m!==null&&m.child!==null)for(u=bM(u);u!==null;){if(m=u[jn])return m;u=bM(u)}return f}u=m,m=u.parentNode}return null}function Ye(u){if(u=u[jn]||u[Gi]){var f=u.tag;if(f===5||f===6||f===13||f===26||f===27||f===3)return u}return null}function Jt(u){var f=u.tag;if(f===5||f===26||f===27||f===6)return u.stateNode;throw Error(r(33))}function xn(u){var f=u[nh];return f||(f=u[nh]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function $t(u){u[nt]=!0}var ir=new Set,ea={};function ta(u,f){Tn(u,f),Tn(u+"Capture",f)}function Tn(u,f){for(ea[u]=f,u=0;u<f.length;u++)ir.add(f[u])}var xa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rh=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),hO={},gO={};function Tte(u){return be.call(gO,u)?!0:be.call(hO,u)?!1:rh.test(u)?gO[u]=!0:(hO[u]=!0,!1)}function ah(u,f,m){if(Tte(f))if(m===null)u.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":u.removeAttribute(f);return;case"boolean":var v=f.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){u.removeAttribute(f);return}}u.setAttribute(f,""+m)}}function ih(u,f,m){if(m===null)u.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(f);return}u.setAttribute(f,""+m)}}function qi(u,f,m,v){if(v===null)u.removeAttribute(m);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(m);return}u.setAttributeNS(f,m,""+v)}}function Sa(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function mO(u){var f=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function Ate(u){var f=mO(u)?"checked":"value",m=Object.getOwnPropertyDescriptor(u.constructor.prototype,f),v=""+u[f];if(!u.hasOwnProperty(f)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var E=m.get,L=m.set;return Object.defineProperty(u,f,{configurable:!0,get:function(){return E.call(this)},set:function(q){v=""+q,L.call(this,q)}}),Object.defineProperty(u,f,{enumerable:m.enumerable}),{getValue:function(){return v},setValue:function(q){v=""+q},stopTracking:function(){u._valueTracker=null,delete u[f]}}}}function oh(u){u._valueTracker||(u._valueTracker=Ate(u))}function bO(u){if(!u)return!1;var f=u._valueTracker;if(!f)return!0;var m=f.getValue(),v="";return u&&(v=mO(u)?u.checked?"true":"false":u.value),u=v,u!==m?(f.setValue(u),!0):!1}function sh(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var Rte=/[\n"\\]/g;function wa(u){return u.replace(Rte,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function mv(u,f,m,v,E,L,q,X){u.name="",q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?u.type=q:u.removeAttribute("type"),f!=null?q==="number"?(f===0&&u.value===""||u.value!=f)&&(u.value=""+Sa(f)):u.value!==""+Sa(f)&&(u.value=""+Sa(f)):q!=="submit"&&q!=="reset"||u.removeAttribute("value"),f!=null?bv(u,q,Sa(f)):m!=null?bv(u,q,Sa(m)):v!=null&&u.removeAttribute("value"),E==null&&L!=null&&(u.defaultChecked=!!L),E!=null&&(u.checked=E&&typeof E!="function"&&typeof E!="symbol"),X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?u.name=""+Sa(X):u.removeAttribute("name")}function yO(u,f,m,v,E,L,q,X){if(L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(u.type=L),f!=null||m!=null){if(!(L!=="submit"&&L!=="reset"||f!=null))return;m=m!=null?""+Sa(m):"",f=f!=null?""+Sa(f):m,X||f===u.value||(u.value=f),u.defaultValue=f}v=v??E,v=typeof v!="function"&&typeof v!="symbol"&&!!v,u.checked=X?u.checked:!!v,u.defaultChecked=!!v,q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"&&(u.name=q)}function bv(u,f,m){f==="number"&&sh(u.ownerDocument)===u||u.defaultValue===""+m||(u.defaultValue=""+m)}function Yl(u,f,m,v){if(u=u.options,f){f={};for(var E=0;E<m.length;E++)f["$"+m[E]]=!0;for(m=0;m<u.length;m++)E=f.hasOwnProperty("$"+u[m].value),u[m].selected!==E&&(u[m].selected=E),E&&v&&(u[m].defaultSelected=!0)}else{for(m=""+Sa(m),f=null,E=0;E<u.length;E++){if(u[E].value===m){u[E].selected=!0,v&&(u[E].defaultSelected=!0);return}f!==null||u[E].disabled||(f=u[E])}f!==null&&(f.selected=!0)}}function vO(u,f,m){if(f!=null&&(f=""+Sa(f),f!==u.value&&(u.value=f),m==null)){u.defaultValue!==f&&(u.defaultValue=f);return}u.defaultValue=m!=null?""+Sa(m):""}function xO(u,f,m,v){if(f==null){if(v!=null){if(m!=null)throw Error(r(92));if($(v)){if(1<v.length)throw Error(r(93));v=v[0]}m=v}m==null&&(m=""),f=m}m=Sa(f),u.defaultValue=m,v=u.textContent,v===m&&v!==""&&v!==null&&(u.value=v)}function Kl(u,f){if(f){var m=u.firstChild;if(m&&m===u.lastChild&&m.nodeType===3){m.nodeValue=f;return}}u.textContent=f}var Nte=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function SO(u,f,m){var v=f.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?v?u.setProperty(f,""):f==="float"?u.cssFloat="":u[f]="":v?u.setProperty(f,m):typeof m!="number"||m===0||Nte.has(f)?f==="float"?u.cssFloat=m:u[f]=(""+m).trim():u[f]=m+"px"}function wO(u,f,m){if(f!=null&&typeof f!="object")throw Error(r(62));if(u=u.style,m!=null){for(var v in m)!m.hasOwnProperty(v)||f!=null&&f.hasOwnProperty(v)||(v.indexOf("--")===0?u.setProperty(v,""):v==="float"?u.cssFloat="":u[v]="");for(var E in f)v=f[E],f.hasOwnProperty(E)&&m[E]!==v&&SO(u,E,v)}else for(var L in f)f.hasOwnProperty(L)&&SO(u,L,f[L])}function yv(u){if(u.indexOf("-")===-1)return!1;switch(u){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lte=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ote=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function lh(u){return Ote.test(""+u)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":u}var vv=null;function xv(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var Xl=null,Zl=null;function EO(u){var f=Ye(u);if(f&&(u=f.stateNode)){var m=u[yn]||null;e:switch(u=f.stateNode,f.type){case"input":if(mv(u,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),f=m.name,m.type==="radio"&&f!=null){for(m=u;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+wa(""+f)+'"][type="radio"]'),f=0;f<m.length;f++){var v=m[f];if(v!==u&&v.form===u.form){var E=v[yn]||null;if(!E)throw Error(r(90));mv(v,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(f=0;f<m.length;f++)v=m[f],v.form===u.form&&bO(v)}break e;case"textarea":vO(u,m.value,m.defaultValue);break e;case"select":f=m.value,f!=null&&Yl(u,!!m.multiple,f,!1)}}}var Sv=!1;function kO(u,f,m){if(Sv)return u(f,m);Sv=!0;try{var v=u(f);return v}finally{if(Sv=!1,(Xl!==null||Zl!==null)&&(qh(),Xl&&(f=Xl,u=Zl,Zl=Xl=null,EO(f),u)))for(f=0;f<u.length;f++)EO(u[f])}}function rd(u,f){var m=u.stateNode;if(m===null)return null;var v=m[yn]||null;if(v===null)return null;m=v[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(u=u.type,v=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!v;break e;default:u=!1}if(u)return null;if(m&&typeof m!="function")throw Error(r(231,f,typeof m));return m}var wv=!1;if(xa)try{var ad={};Object.defineProperty(ad,"passive",{get:function(){wv=!0}}),window.addEventListener("test",ad,ad),window.removeEventListener("test",ad,ad)}catch{wv=!1}var Mo=null,Ev=null,ch=null;function _O(){if(ch)return ch;var u,f=Ev,m=f.length,v,E="value"in Mo?Mo.value:Mo.textContent,L=E.length;for(u=0;u<m&&f[u]===E[u];u++);var q=m-u;for(v=1;v<=q&&f[m-v]===E[L-v];v++);return ch=E.slice(u,1<v?1-v:void 0)}function uh(u){var f=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&f===13&&(u=13)):u=f,u===10&&(u=13),32<=u||u===13?u:0}function dh(){return!0}function CO(){return!1}function zr(u){function f(m,v,E,L,q){this._reactName=m,this._targetInst=E,this.type=v,this.nativeEvent=L,this.target=q,this.currentTarget=null;for(var X in u)u.hasOwnProperty(X)&&(m=u[X],this[X]=m?m(L):L[X]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?dh:CO,this.isPropagationStopped=CO,this}return O(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=dh)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=dh)},persist:function(){},isPersistent:dh}),f}var Is={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fh=zr(Is),id=O({},Is,{view:0,detail:0}),Dte=zr(id),kv,_v,od,ph=O({},id,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tv,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==od&&(od&&u.type==="mousemove"?(kv=u.screenX-od.screenX,_v=u.screenY-od.screenY):_v=kv=0,od=u),kv)},movementY:function(u){return"movementY"in u?u.movementY:_v}}),TO=zr(ph),Ite=O({},ph,{dataTransfer:0}),Mte=zr(Ite),Fte=O({},id,{relatedTarget:0}),Cv=zr(Fte),Pte=O({},Is,{animationName:0,elapsedTime:0,pseudoElement:0}),Bte=zr(Pte),zte=O({},Is,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),$te=zr(zte),jte=O({},Is,{data:0}),AO=zr(jte),Ute={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hte={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Gte={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qte(u){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(u):(u=Gte[u])?!!f[u]:!1}function Tv(){return qte}var Wte=O({},id,{key:function(u){if(u.key){var f=Ute[u.key]||u.key;if(f!=="Unidentified")return f}return u.type==="keypress"?(u=uh(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?Hte[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tv,charCode:function(u){return u.type==="keypress"?uh(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?uh(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),Vte=zr(Wte),Yte=O({},ph,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),RO=zr(Yte),Kte=O({},id,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tv}),Xte=zr(Kte),Zte=O({},Is,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qte=zr(Zte),Jte=O({},ph,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),ene=zr(Jte),tne=O({},Is,{newState:0,oldState:0}),nne=zr(tne),rne=[9,13,27,32],Av=xa&&"CompositionEvent"in window,sd=null;xa&&"documentMode"in document&&(sd=document.documentMode);var ane=xa&&"TextEvent"in window&&!sd,NO=xa&&(!Av||sd&&8<sd&&11>=sd),LO=" ",OO=!1;function DO(u,f){switch(u){case"keyup":return rne.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function IO(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Ql=!1;function ine(u,f){switch(u){case"compositionend":return IO(f);case"keypress":return f.which!==32?null:(OO=!0,LO);case"textInput":return u=f.data,u===LO&&OO?null:u;default:return null}}function one(u,f){if(Ql)return u==="compositionend"||!Av&&DO(u,f)?(u=_O(),ch=Ev=Mo=null,Ql=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return NO&&f.locale!=="ko"?null:f.data;default:return null}}var sne={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function MO(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f==="input"?!!sne[u.type]:f==="textarea"}function FO(u,f,m,v){Xl?Zl?Zl.push(v):Zl=[v]:Xl=v,f=Xh(f,"onChange"),0<f.length&&(m=new fh("onChange","change",null,m,v),u.push({event:m,listeners:f}))}var ld=null,cd=null;function lne(u){lM(u,0)}function hh(u){var f=Jt(u);if(bO(f))return u}function PO(u,f){if(u==="change")return f}var BO=!1;if(xa){var Rv;if(xa){var Nv="oninput"in document;if(!Nv){var zO=document.createElement("div");zO.setAttribute("oninput","return;"),Nv=typeof zO.oninput=="function"}Rv=Nv}else Rv=!1;BO=Rv&&(!document.documentMode||9<document.documentMode)}function $O(){ld&&(ld.detachEvent("onpropertychange",jO),cd=ld=null)}function jO(u){if(u.propertyName==="value"&&hh(cd)){var f=[];FO(f,cd,u,xv(u)),kO(lne,f)}}function cne(u,f,m){u==="focusin"?($O(),ld=f,cd=m,ld.attachEvent("onpropertychange",jO)):u==="focusout"&&$O()}function une(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return hh(cd)}function dne(u,f){if(u==="click")return hh(f)}function fne(u,f){if(u==="input"||u==="change")return hh(f)}function pne(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var na=typeof Object.is=="function"?Object.is:pne;function ud(u,f){if(na(u,f))return!0;if(typeof u!="object"||u===null||typeof f!="object"||f===null)return!1;var m=Object.keys(u),v=Object.keys(f);if(m.length!==v.length)return!1;for(v=0;v<m.length;v++){var E=m[v];if(!be.call(f,E)||!na(u[E],f[E]))return!1}return!0}function UO(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function HO(u,f){var m=UO(u);u=0;for(var v;m;){if(m.nodeType===3){if(v=u+m.textContent.length,u<=f&&v>=f)return{node:m,offset:f-u};u=v}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=UO(m)}}function GO(u,f){return u&&f?u===f?!0:u&&u.nodeType===3?!1:f&&f.nodeType===3?GO(u,f.parentNode):"contains"in u?u.contains(f):u.compareDocumentPosition?!!(u.compareDocumentPosition(f)&16):!1:!1}function qO(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var f=sh(u.document);f instanceof u.HTMLIFrameElement;){try{var m=typeof f.contentWindow.location.href=="string"}catch{m=!1}if(m)u=f.contentWindow;else break;f=sh(u.document)}return f}function Lv(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f&&(f==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||f==="textarea"||u.contentEditable==="true")}function hne(u,f){var m=qO(f);f=u.focusedElem;var v=u.selectionRange;if(m!==f&&f&&f.ownerDocument&&GO(f.ownerDocument.documentElement,f)){if(v!==null&&Lv(f)){if(u=v.start,m=v.end,m===void 0&&(m=u),"selectionStart"in f)f.selectionStart=u,f.selectionEnd=Math.min(m,f.value.length);else if(m=(u=f.ownerDocument||document)&&u.defaultView||window,m.getSelection){m=m.getSelection();var E=f.textContent.length,L=Math.min(v.start,E);v=v.end===void 0?L:Math.min(v.end,E),!m.extend&&L>v&&(E=v,v=L,L=E),E=HO(f,L);var q=HO(f,v);E&&q&&(m.rangeCount!==1||m.anchorNode!==E.node||m.anchorOffset!==E.offset||m.focusNode!==q.node||m.focusOffset!==q.offset)&&(u=u.createRange(),u.setStart(E.node,E.offset),m.removeAllRanges(),L>v?(m.addRange(u),m.extend(q.node,q.offset)):(u.setEnd(q.node,q.offset),m.addRange(u)))}}for(u=[],m=f;m=m.parentNode;)m.nodeType===1&&u.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<u.length;f++)m=u[f],m.element.scrollLeft=m.left,m.element.scrollTop=m.top}}var gne=xa&&"documentMode"in document&&11>=document.documentMode,Jl=null,Ov=null,dd=null,Dv=!1;function WO(u,f,m){var v=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Dv||Jl==null||Jl!==sh(v)||(v=Jl,"selectionStart"in v&&Lv(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),dd&&ud(dd,v)||(dd=v,v=Xh(Ov,"onSelect"),0<v.length&&(f=new fh("onSelect","select",null,f,m),u.push({event:f,listeners:v}),f.target=Jl)))}function Ms(u,f){var m={};return m[u.toLowerCase()]=f.toLowerCase(),m["Webkit"+u]="webkit"+f,m["Moz"+u]="moz"+f,m}var ec={animationend:Ms("Animation","AnimationEnd"),animationiteration:Ms("Animation","AnimationIteration"),animationstart:Ms("Animation","AnimationStart"),transitionrun:Ms("Transition","TransitionRun"),transitionstart:Ms("Transition","TransitionStart"),transitioncancel:Ms("Transition","TransitionCancel"),transitionend:Ms("Transition","TransitionEnd")},Iv={},VO={};xa&&(VO=document.createElement("div").style,"AnimationEvent"in window||(delete ec.animationend.animation,delete ec.animationiteration.animation,delete ec.animationstart.animation),"TransitionEvent"in window||delete ec.transitionend.transition);function Fs(u){if(Iv[u])return Iv[u];if(!ec[u])return u;var f=ec[u],m;for(m in f)if(f.hasOwnProperty(m)&&m in VO)return Iv[u]=f[m];return u}var YO=Fs("animationend"),KO=Fs("animationiteration"),XO=Fs("animationstart"),mne=Fs("transitionrun"),bne=Fs("transitionstart"),yne=Fs("transitioncancel"),ZO=Fs("transitionend"),QO=new Map,JO="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function Ka(u,f){QO.set(u,f),ta(f,[u])}var Ea=[],tc=0,Mv=0;function gh(){for(var u=tc,f=Mv=tc=0;f<u;){var m=Ea[f];Ea[f++]=null;var v=Ea[f];Ea[f++]=null;var E=Ea[f];Ea[f++]=null;var L=Ea[f];if(Ea[f++]=null,v!==null&&E!==null){var q=v.pending;q===null?E.next=E:(E.next=q.next,q.next=E),v.pending=E}L!==0&&eD(m,E,L)}}function mh(u,f,m,v){Ea[tc++]=u,Ea[tc++]=f,Ea[tc++]=m,Ea[tc++]=v,Mv|=v,u.lanes|=v,u=u.alternate,u!==null&&(u.lanes|=v)}function Fv(u,f,m,v){return mh(u,f,m,v),bh(u)}function Fo(u,f){return mh(u,null,null,f),bh(u)}function eD(u,f,m){u.lanes|=m;var v=u.alternate;v!==null&&(v.lanes|=m);for(var E=!1,L=u.return;L!==null;)L.childLanes|=m,v=L.alternate,v!==null&&(v.childLanes|=m),L.tag===22&&(u=L.stateNode,u===null||u._visibility&1||(E=!0)),u=L,L=L.return;E&&f!==null&&u.tag===3&&(L=u.stateNode,E=31-zt(m),L=L.hiddenUpdates,u=L[E],u===null?L[E]=[f]:u.push(f),f.lane=m|536870912)}function bh(u){if(50<Fd)throw Fd=0,Ux=null,Error(r(185));for(var f=u.return;f!==null;)u=f,f=u.return;return u.tag===3?u.stateNode:null}var nc={},tD=new WeakMap;function ka(u,f){if(typeof u=="object"&&u!==null){var m=tD.get(u);return m!==void 0?m:(f={value:u,source:f,stack:U(f)},tD.set(u,f),f)}return{value:u,source:f,stack:U(f)}}var rc=[],ac=0,yh=null,vh=0,_a=[],Ca=0,Ps=null,Wi=1,Vi="";function Bs(u,f){rc[ac++]=vh,rc[ac++]=yh,yh=u,vh=f}function nD(u,f,m){_a[Ca++]=Wi,_a[Ca++]=Vi,_a[Ca++]=Ps,Ps=u;var v=Wi;u=Vi;var E=32-zt(v)-1;v&=~(1<<E),m+=1;var L=32-zt(f)+E;if(30<L){var q=E-E%5;L=(v&(1<<q)-1).toString(32),v>>=q,E-=q,Wi=1<<32-zt(f)+E|m<<E|v,Vi=L+u}else Wi=1<<L|m<<E|v,Vi=u}function Pv(u){u.return!==null&&(Bs(u,1),nD(u,1,0))}function Bv(u){for(;u===yh;)yh=rc[--ac],rc[ac]=null,vh=rc[--ac],rc[ac]=null;for(;u===Ps;)Ps=_a[--Ca],_a[Ca]=null,Vi=_a[--Ca],_a[Ca]=null,Wi=_a[--Ca],_a[Ca]=null}var Ar=null,or=null,Xt=!1,Xa=null,mi=!1,zv=Error(r(519));function zs(u){var f=Error(r(418,""));throw hd(ka(f,u)),zv}function rD(u){var f=u.stateNode,m=u.type,v=u.memoizedProps;switch(f[jn]=u,f[yn]=v,m){case"dialog":qt("cancel",f),qt("close",f);break;case"iframe":case"object":case"embed":qt("load",f);break;case"video":case"audio":for(m=0;m<Bd.length;m++)qt(Bd[m],f);break;case"source":qt("error",f);break;case"img":case"image":case"link":qt("error",f),qt("load",f);break;case"details":qt("toggle",f);break;case"input":qt("invalid",f),yO(f,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0),oh(f);break;case"select":qt("invalid",f);break;case"textarea":qt("invalid",f),xO(f,v.value,v.defaultValue,v.children),oh(f)}m=v.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||f.textContent===""+m||v.suppressHydrationWarning===!0||fM(f.textContent,m)?(v.popover!=null&&(qt("beforetoggle",f),qt("toggle",f)),v.onScroll!=null&&qt("scroll",f),v.onScrollEnd!=null&&qt("scrollend",f),v.onClick!=null&&(f.onclick=Zh),f=!0):f=!1,f||zs(u)}function aD(u){for(Ar=u.return;Ar;)switch(Ar.tag){case 3:case 27:mi=!0;return;case 5:case 13:mi=!1;return;default:Ar=Ar.return}}function fd(u){if(u!==Ar)return!1;if(!Xt)return aD(u),Xt=!0,!1;var f=!1,m;if((m=u.tag!==3&&u.tag!==27)&&((m=u.tag===5)&&(m=u.type,m=!(m!=="form"&&m!=="button")||iS(u.type,u.memoizedProps)),m=!m),m&&(f=!0),f&&or&&zs(u),aD(u),u.tag===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));e:{for(u=u.nextSibling,f=0;u;){if(u.nodeType===8)if(m=u.data,m==="/$"){if(f===0){or=Qa(u.nextSibling);break e}f--}else m!=="$"&&m!=="$!"&&m!=="$?"||f++;u=u.nextSibling}or=null}}else or=Ar?Qa(u.stateNode.nextSibling):null;return!0}function pd(){or=Ar=null,Xt=!1}function hd(u){Xa===null?Xa=[u]:Xa.push(u)}var gd=Error(r(460)),iD=Error(r(474)),$v={then:function(){}};function oD(u){return u=u.status,u==="fulfilled"||u==="rejected"}function xh(){}function sD(u,f,m){switch(m=u[m],m===void 0?u.push(f):m!==f&&(f.then(xh,xh),f=m),f.status){case"fulfilled":return f.value;case"rejected":throw u=f.reason,u===gd?Error(r(483)):u;default:if(typeof f.status=="string")f.then(xh,xh);else{if(u=pn,u!==null&&100<u.shellSuspendCounter)throw Error(r(482));u=f,u.status="pending",u.then(function(v){if(f.status==="pending"){var E=f;E.status="fulfilled",E.value=v}},function(v){if(f.status==="pending"){var E=f;E.status="rejected",E.reason=v}})}switch(f.status){case"fulfilled":return f.value;case"rejected":throw u=f.reason,u===gd?Error(r(483)):u}throw md=f,gd}}var md=null;function lD(){if(md===null)throw Error(r(459));var u=md;return md=null,u}var ic=null,bd=0;function Sh(u){var f=bd;return bd+=1,ic===null&&(ic=[]),sD(ic,u,f)}function yd(u,f){f=f.props.ref,u.ref=f!==void 0?f:null}function wh(u,f){throw f.$$typeof===i?Error(r(525)):(u=Object.prototype.toString.call(f),Error(r(31,u==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":u)))}function cD(u){var f=u._init;return f(u._payload)}function uD(u){function f(de,se){if(u){var pe=de.deletions;pe===null?(de.deletions=[se],de.flags|=16):pe.push(se)}}function m(de,se){if(!u)return null;for(;se!==null;)f(de,se),se=se.sibling;return null}function v(de){for(var se=new Map;de!==null;)de.key!==null?se.set(de.key,de):se.set(de.index,de),de=de.sibling;return se}function E(de,se){return de=Yo(de,se),de.index=0,de.sibling=null,de}function L(de,se,pe){return de.index=pe,u?(pe=de.alternate,pe!==null?(pe=pe.index,pe<se?(de.flags|=33554434,se):pe):(de.flags|=33554434,se)):(de.flags|=1048576,se)}function q(de){return u&&de.alternate===null&&(de.flags|=33554434),de}function X(de,se,pe,Ne){return se===null||se.tag!==6?(se=Ix(pe,de.mode,Ne),se.return=de,se):(se=E(se,pe),se.return=de,se)}function J(de,se,pe,Ne){var Xe=pe.type;return Xe===l?_e(de,se,pe.props.children,Ne,pe.key):se!==null&&(se.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===S&&cD(Xe)===se.type)?(se=E(se,pe.props),yd(se,pe),se.return=de,se):(se=$h(pe.type,pe.key,pe.props,null,de.mode,Ne),yd(se,pe),se.return=de,se)}function le(de,se,pe,Ne){return se===null||se.tag!==4||se.stateNode.containerInfo!==pe.containerInfo||se.stateNode.implementation!==pe.implementation?(se=Mx(pe,de.mode,Ne),se.return=de,se):(se=E(se,pe.children||[]),se.return=de,se)}function _e(de,se,pe,Ne,Xe){return se===null||se.tag!==7?(se=Ks(pe,de.mode,Ne,Xe),se.return=de,se):(se=E(se,pe),se.return=de,se)}function Oe(de,se,pe){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return se=Ix(""+se,de.mode,pe),se.return=de,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case o:return pe=$h(se.type,se.key,se.props,null,de.mode,pe),yd(pe,se),pe.return=de,pe;case s:return se=Mx(se,de.mode,pe),se.return=de,se;case S:var Ne=se._init;return se=Ne(se._payload),Oe(de,se,pe)}if($(se)||C(se))return se=Ks(se,de.mode,pe,null),se.return=de,se;if(typeof se.then=="function")return Oe(de,Sh(se),pe);if(se.$$typeof===g)return Oe(de,Ph(de,se),pe);wh(de,se)}return null}function me(de,se,pe,Ne){var Xe=se!==null?se.key:null;if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return Xe!==null?null:X(de,se,""+pe,Ne);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case o:return pe.key===Xe?J(de,se,pe,Ne):null;case s:return pe.key===Xe?le(de,se,pe,Ne):null;case S:return Xe=pe._init,pe=Xe(pe._payload),me(de,se,pe,Ne)}if($(pe)||C(pe))return Xe!==null?null:_e(de,se,pe,Ne,null);if(typeof pe.then=="function")return me(de,se,Sh(pe),Ne);if(pe.$$typeof===g)return me(de,se,Ph(de,pe),Ne);wh(de,pe)}return null}function ke(de,se,pe,Ne,Xe){if(typeof Ne=="string"&&Ne!==""||typeof Ne=="number"||typeof Ne=="bigint")return de=de.get(pe)||null,X(se,de,""+Ne,Xe);if(typeof Ne=="object"&&Ne!==null){switch(Ne.$$typeof){case o:return de=de.get(Ne.key===null?pe:Ne.key)||null,J(se,de,Ne,Xe);case s:return de=de.get(Ne.key===null?pe:Ne.key)||null,le(se,de,Ne,Xe);case S:var Ot=Ne._init;return Ne=Ot(Ne._payload),ke(de,se,pe,Ne,Xe)}if($(Ne)||C(Ne))return de=de.get(pe)||null,_e(se,de,Ne,Xe,null);if(typeof Ne.then=="function")return ke(de,se,pe,Sh(Ne),Xe);if(Ne.$$typeof===g)return ke(de,se,pe,Ph(se,Ne),Xe);wh(se,Ne)}return null}function it(de,se,pe,Ne){for(var Xe=null,Ot=null,dt=se,gt=se=0,Qn=null;dt!==null&&gt<pe.length;gt++){dt.index>gt?(Qn=dt,dt=null):Qn=dt.sibling;var Zt=me(de,dt,pe[gt],Ne);if(Zt===null){dt===null&&(dt=Qn);break}u&&dt&&Zt.alternate===null&&f(de,dt),se=L(Zt,se,gt),Ot===null?Xe=Zt:Ot.sibling=Zt,Ot=Zt,dt=Qn}if(gt===pe.length)return m(de,dt),Xt&&Bs(de,gt),Xe;if(dt===null){for(;gt<pe.length;gt++)dt=Oe(de,pe[gt],Ne),dt!==null&&(se=L(dt,se,gt),Ot===null?Xe=dt:Ot.sibling=dt,Ot=dt);return Xt&&Bs(de,gt),Xe}for(dt=v(dt);gt<pe.length;gt++)Qn=ke(dt,de,gt,pe[gt],Ne),Qn!==null&&(u&&Qn.alternate!==null&&dt.delete(Qn.key===null?gt:Qn.key),se=L(Qn,se,gt),Ot===null?Xe=Qn:Ot.sibling=Qn,Ot=Qn);return u&&dt.forEach(function(ts){return f(de,ts)}),Xt&&Bs(de,gt),Xe}function kt(de,se,pe,Ne){if(pe==null)throw Error(r(151));for(var Xe=null,Ot=null,dt=se,gt=se=0,Qn=null,Zt=pe.next();dt!==null&&!Zt.done;gt++,Zt=pe.next()){dt.index>gt?(Qn=dt,dt=null):Qn=dt.sibling;var ts=me(de,dt,Zt.value,Ne);if(ts===null){dt===null&&(dt=Qn);break}u&&dt&&ts.alternate===null&&f(de,dt),se=L(ts,se,gt),Ot===null?Xe=ts:Ot.sibling=ts,Ot=ts,dt=Qn}if(Zt.done)return m(de,dt),Xt&&Bs(de,gt),Xe;if(dt===null){for(;!Zt.done;gt++,Zt=pe.next())Zt=Oe(de,Zt.value,Ne),Zt!==null&&(se=L(Zt,se,gt),Ot===null?Xe=Zt:Ot.sibling=Zt,Ot=Zt);return Xt&&Bs(de,gt),Xe}for(dt=v(dt);!Zt.done;gt++,Zt=pe.next())Zt=ke(dt,de,gt,Zt.value,Ne),Zt!==null&&(u&&Zt.alternate!==null&&dt.delete(Zt.key===null?gt:Zt.key),se=L(Zt,se,gt),Ot===null?Xe=Zt:Ot.sibling=Zt,Ot=Zt);return u&&dt.forEach(function(Ore){return f(de,Ore)}),Xt&&Bs(de,gt),Xe}function Nn(de,se,pe,Ne){if(typeof pe=="object"&&pe!==null&&pe.type===l&&pe.key===null&&(pe=pe.props.children),typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case o:e:{for(var Xe=pe.key;se!==null;){if(se.key===Xe){if(Xe=pe.type,Xe===l){if(se.tag===7){m(de,se.sibling),Ne=E(se,pe.props.children),Ne.return=de,de=Ne;break e}}else if(se.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===S&&cD(Xe)===se.type){m(de,se.sibling),Ne=E(se,pe.props),yd(Ne,pe),Ne.return=de,de=Ne;break e}m(de,se);break}else f(de,se);se=se.sibling}pe.type===l?(Ne=Ks(pe.props.children,de.mode,Ne,pe.key),Ne.return=de,de=Ne):(Ne=$h(pe.type,pe.key,pe.props,null,de.mode,Ne),yd(Ne,pe),Ne.return=de,de=Ne)}return q(de);case s:e:{for(Xe=pe.key;se!==null;){if(se.key===Xe)if(se.tag===4&&se.stateNode.containerInfo===pe.containerInfo&&se.stateNode.implementation===pe.implementation){m(de,se.sibling),Ne=E(se,pe.children||[]),Ne.return=de,de=Ne;break e}else{m(de,se);break}else f(de,se);se=se.sibling}Ne=Mx(pe,de.mode,Ne),Ne.return=de,de=Ne}return q(de);case S:return Xe=pe._init,pe=Xe(pe._payload),Nn(de,se,pe,Ne)}if($(pe))return it(de,se,pe,Ne);if(C(pe)){if(Xe=C(pe),typeof Xe!="function")throw Error(r(150));return pe=Xe.call(pe),kt(de,se,pe,Ne)}if(typeof pe.then=="function")return Nn(de,se,Sh(pe),Ne);if(pe.$$typeof===g)return Nn(de,se,Ph(de,pe),Ne);wh(de,pe)}return typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint"?(pe=""+pe,se!==null&&se.tag===6?(m(de,se.sibling),Ne=E(se,pe),Ne.return=de,de=Ne):(m(de,se),Ne=Ix(pe,de.mode,Ne),Ne.return=de,de=Ne),q(de)):m(de,se)}return function(de,se,pe,Ne){try{bd=0;var Xe=Nn(de,se,pe,Ne);return ic=null,Xe}catch(dt){if(dt===gd)throw dt;var Ot=Na(29,dt,null,de.mode);return Ot.lanes=Ne,Ot.return=de,Ot}finally{}}}var $s=uD(!0),dD=uD(!1),oc=ce(null),Eh=ce(0);function fD(u,f){u=ao,ne(Eh,u),ne(oc,f),ao=u|f.baseLanes}function jv(){ne(Eh,ao),ne(oc,oc.current)}function Uv(){ao=Eh.current,Te(oc),Te(Eh)}var Ta=ce(null),bi=null;function Po(u){var f=u.alternate;ne(Un,Un.current&1),ne(Ta,u),bi===null&&(f===null||oc.current!==null||f.memoizedState!==null)&&(bi=u)}function pD(u){if(u.tag===22){if(ne(Un,Un.current),ne(Ta,u),bi===null){var f=u.alternate;f!==null&&f.memoizedState!==null&&(bi=u)}}else Bo()}function Bo(){ne(Un,Un.current),ne(Ta,Ta.current)}function Yi(u){Te(Ta),bi===u&&(bi=null),Te(Un)}var Un=ce(0);function kh(u){for(var f=u;f!==null;){if(f.tag===13){var m=f.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||m.data==="$!"))return f}else if(f.tag===19&&f.memoizedProps.revealOrder!==void 0){if(f.flags&128)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var vne=typeof AbortController<"u"?AbortController:function(){var u=[],f=this.signal={aborted:!1,addEventListener:function(m,v){u.push(v)}};this.abort=function(){f.aborted=!0,u.forEach(function(m){return m()})}},xne=e.unstable_scheduleCallback,Sne=e.unstable_NormalPriority,Hn={$$typeof:g,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hv(){return{controller:new vne,data:new Map,refCount:0}}function vd(u){u.refCount--,u.refCount===0&&xne(Sne,function(){u.controller.abort()})}var xd=null,Gv=0,sc=0,lc=null;function wne(u,f){if(xd===null){var m=xd=[];Gv=0,sc=Xx(),lc={status:"pending",value:void 0,then:function(v){m.push(v)}}}return Gv++,f.then(hD,hD),f}function hD(){if(--Gv===0&&xd!==null){lc!==null&&(lc.status="fulfilled");var u=xd;xd=null,sc=0,lc=null;for(var f=0;f<u.length;f++)(0,u[f])()}}function Ene(u,f){var m=[],v={status:"pending",value:null,reason:null,then:function(E){m.push(E)}};return u.then(function(){v.status="fulfilled",v.value=f;for(var E=0;E<m.length;E++)(0,m[E])(f)},function(E){for(v.status="rejected",v.reason=E,E=0;E<m.length;E++)(0,m[E])(void 0)}),v}var gD=D.S;D.S=function(u,f){typeof f=="object"&&f!==null&&typeof f.then=="function"&&wne(u,f),gD!==null&&gD(u,f)};var js=ce(null);function qv(){var u=js.current;return u!==null?u:pn.pooledCache}function _h(u,f){f===null?ne(js,js.current):ne(js,f.pool)}function mD(){var u=qv();return u===null?null:{parent:Hn._currentValue,pool:u}}var zo=0,Lt=null,sn=null,Mn=null,Ch=!1,cc=!1,Us=!1,Th=0,Sd=0,uc=null,kne=0;function On(){throw Error(r(321))}function Wv(u,f){if(f===null)return!1;for(var m=0;m<f.length&&m<u.length;m++)if(!na(u[m],f[m]))return!1;return!0}function Vv(u,f,m,v,E,L){return zo=L,Lt=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,D.H=u===null||u.memoizedState===null?Hs:$o,Us=!1,L=m(v,E),Us=!1,cc&&(L=yD(f,m,v,E)),bD(u),L}function bD(u){D.H=yi;var f=sn!==null&&sn.next!==null;if(zo=0,Mn=sn=Lt=null,Ch=!1,Sd=0,uc=null,f)throw Error(r(300));u===null||Xn||(u=u.dependencies,u!==null&&Fh(u)&&(Xn=!0))}function yD(u,f,m,v){Lt=u;var E=0;do{if(cc&&(uc=null),Sd=0,cc=!1,25<=E)throw Error(r(301));if(E+=1,Mn=sn=null,u.updateQueue!=null){var L=u.updateQueue;L.lastEffect=null,L.events=null,L.stores=null,L.memoCache!=null&&(L.memoCache.index=0)}D.H=Gs,L=f(m,v)}while(cc);return L}function _ne(){var u=D.H,f=u.useState()[0];return f=typeof f.then=="function"?wd(f):f,u=u.useState()[0],(sn!==null?sn.memoizedState:null)!==u&&(Lt.flags|=1024),f}function Yv(){var u=Th!==0;return Th=0,u}function Kv(u,f,m){f.updateQueue=u.updateQueue,f.flags&=-2053,u.lanes&=~m}function Xv(u){if(Ch){for(u=u.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}Ch=!1}zo=0,Mn=sn=Lt=null,cc=!1,Sd=Th=0,uc=null}function $r(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mn===null?Lt.memoizedState=Mn=u:Mn=Mn.next=u,Mn}function Fn(){if(sn===null){var u=Lt.alternate;u=u!==null?u.memoizedState:null}else u=sn.next;var f=Mn===null?Lt.memoizedState:Mn.next;if(f!==null)Mn=f,sn=u;else{if(u===null)throw Lt.alternate===null?Error(r(467)):Error(r(310));sn=u,u={memoizedState:sn.memoizedState,baseState:sn.baseState,baseQueue:sn.baseQueue,queue:sn.queue,next:null},Mn===null?Lt.memoizedState=Mn=u:Mn=Mn.next=u}return Mn}var Ah;Ah=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function wd(u){var f=Sd;return Sd+=1,uc===null&&(uc=[]),u=sD(uc,u,f),f=Lt,(Mn===null?f.memoizedState:Mn.next)===null&&(f=f.alternate,D.H=f===null||f.memoizedState===null?Hs:$o),u}function Rh(u){if(u!==null&&typeof u=="object"){if(typeof u.then=="function")return wd(u);if(u.$$typeof===g)return yr(u)}throw Error(r(438,String(u)))}function Zv(u){var f=null,m=Lt.updateQueue;if(m!==null&&(f=m.memoCache),f==null){var v=Lt.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(f={data:v.data.map(function(E){return E.slice()}),index:0})))}if(f==null&&(f={data:[],index:0}),m===null&&(m=Ah(),Lt.updateQueue=m),m.memoCache=f,m=f.data[f.index],m===void 0)for(m=f.data[f.index]=Array(u),v=0;v<u;v++)m[v]=N;return f.index++,m}function Ki(u,f){return typeof f=="function"?f(u):f}function Nh(u){var f=Fn();return Qv(f,sn,u)}function Qv(u,f,m){var v=u.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=m;var E=u.baseQueue,L=v.pending;if(L!==null){if(E!==null){var q=E.next;E.next=L.next,L.next=q}f.baseQueue=E=L,v.pending=null}if(L=u.baseState,E===null)u.memoizedState=L;else{f=E.next;var X=q=null,J=null,le=f,_e=!1;do{var Oe=le.lane&-536870913;if(Oe!==le.lane?(Vt&Oe)===Oe:(zo&Oe)===Oe){var me=le.revertLane;if(me===0)J!==null&&(J=J.next={lane:0,revertLane:0,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),Oe===sc&&(_e=!0);else if((zo&me)===me){le=le.next,me===sc&&(_e=!0);continue}else Oe={lane:0,revertLane:le.revertLane,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},J===null?(X=J=Oe,q=L):J=J.next=Oe,Lt.lanes|=me,Ko|=me;Oe=le.action,Us&&m(L,Oe),L=le.hasEagerState?le.eagerState:m(L,Oe)}else me={lane:Oe,revertLane:le.revertLane,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},J===null?(X=J=me,q=L):J=J.next=me,Lt.lanes|=Oe,Ko|=Oe;le=le.next}while(le!==null&&le!==f);if(J===null?q=L:J.next=X,!na(L,u.memoizedState)&&(Xn=!0,_e&&(m=lc,m!==null)))throw m;u.memoizedState=L,u.baseState=q,u.baseQueue=J,v.lastRenderedState=L}return E===null&&(v.lanes=0),[u.memoizedState,v.dispatch]}function Jv(u){var f=Fn(),m=f.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=u;var v=m.dispatch,E=m.pending,L=f.memoizedState;if(E!==null){m.pending=null;var q=E=E.next;do L=u(L,q.action),q=q.next;while(q!==E);na(L,f.memoizedState)||(Xn=!0),f.memoizedState=L,f.baseQueue===null&&(f.baseState=L),m.lastRenderedState=L}return[L,v]}function vD(u,f,m){var v=Lt,E=Fn(),L=Xt;if(L){if(m===void 0)throw Error(r(407));m=m()}else m=f();var q=!na((sn||E).memoizedState,m);if(q&&(E.memoizedState=m,Xn=!0),E=E.queue,nx(wD.bind(null,v,E,u),[u]),E.getSnapshot!==f||q||Mn!==null&&Mn.memoizedState.tag&1){if(v.flags|=2048,dc(9,SD.bind(null,v,E,m,f),{destroy:void 0},null),pn===null)throw Error(r(349));L||zo&60||xD(v,f,m)}return m}function xD(u,f,m){u.flags|=16384,u={getSnapshot:f,value:m},f=Lt.updateQueue,f===null?(f=Ah(),Lt.updateQueue=f,f.stores=[u]):(m=f.stores,m===null?f.stores=[u]:m.push(u))}function SD(u,f,m,v){f.value=m,f.getSnapshot=v,ED(f)&&kD(u)}function wD(u,f,m){return m(function(){ED(f)&&kD(u)})}function ED(u){var f=u.getSnapshot;u=u.value;try{var m=f();return!na(u,m)}catch{return!0}}function kD(u){var f=Fo(u,2);f!==null&&Rr(f,u,2)}function ex(u){var f=$r();if(typeof u=="function"){var m=u;if(u=m(),Us){wt(!0);try{m()}finally{wt(!1)}}}return f.memoizedState=f.baseState=u,f.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ki,lastRenderedState:u},f}function _D(u,f,m,v){return u.baseState=m,Qv(u,sn,typeof v=="function"?v:Ki)}function Cne(u,f,m,v,E){if(Dh(u))throw Error(r(485));if(u=f.action,u!==null){var L={payload:E,action:u,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(q){L.listeners.push(q)}};D.T!==null?m(!0):L.isTransition=!1,v(L),m=f.pending,m===null?(L.next=f.pending=L,CD(f,L)):(L.next=m.next,f.pending=m.next=L)}}function CD(u,f){var m=f.action,v=f.payload,E=u.state;if(f.isTransition){var L=D.T,q={};D.T=q;try{var X=m(E,v),J=D.S;J!==null&&J(q,X),TD(u,f,X)}catch(le){tx(u,f,le)}finally{D.T=L}}else try{L=m(E,v),TD(u,f,L)}catch(le){tx(u,f,le)}}function TD(u,f,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(v){AD(u,f,v)},function(v){return tx(u,f,v)}):AD(u,f,m)}function AD(u,f,m){f.status="fulfilled",f.value=m,RD(f),u.state=m,f=u.pending,f!==null&&(m=f.next,m===f?u.pending=null:(m=m.next,f.next=m,CD(u,m)))}function tx(u,f,m){var v=u.pending;if(u.pending=null,v!==null){v=v.next;do f.status="rejected",f.reason=m,RD(f),f=f.next;while(f!==v)}u.action=null}function RD(u){u=u.listeners;for(var f=0;f<u.length;f++)(0,u[f])()}function ND(u,f){return f}function LD(u,f){if(Xt){var m=pn.formState;if(m!==null){e:{var v=Lt;if(Xt){if(or){t:{for(var E=or,L=mi;E.nodeType!==8;){if(!L){E=null;break t}if(E=Qa(E.nextSibling),E===null){E=null;break t}}L=E.data,E=L==="F!"||L==="F"?E:null}if(E){or=Qa(E.nextSibling),v=E.data==="F!";break e}}zs(v)}v=!1}v&&(f=m[0])}}return m=$r(),m.memoizedState=m.baseState=f,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ND,lastRenderedState:f},m.queue=v,m=KD.bind(null,Lt,v),v.dispatch=m,v=ex(!1),L=sx.bind(null,Lt,!1,v.queue),v=$r(),E={state:f,dispatch:null,action:u,pending:null},v.queue=E,m=Cne.bind(null,Lt,E,L,m),E.dispatch=m,v.memoizedState=u,[f,m,!1]}function OD(u){var f=Fn();return DD(f,sn,u)}function DD(u,f,m){f=Qv(u,f,ND)[0],u=Nh(Ki)[0],f=typeof f=="object"&&f!==null&&typeof f.then=="function"?wd(f):f;var v=Fn(),E=v.queue,L=E.dispatch;return m!==v.memoizedState&&(Lt.flags|=2048,dc(9,Tne.bind(null,E,m),{destroy:void 0},null)),[f,L,u]}function Tne(u,f){u.action=f}function ID(u){var f=Fn(),m=sn;if(m!==null)return DD(f,m,u);Fn(),f=f.memoizedState,m=Fn();var v=m.queue.dispatch;return m.memoizedState=u,[f,v,!1]}function dc(u,f,m,v){return u={tag:u,create:f,inst:m,deps:v,next:null},f=Lt.updateQueue,f===null&&(f=Ah(),Lt.updateQueue=f),m=f.lastEffect,m===null?f.lastEffect=u.next=u:(v=m.next,m.next=u,u.next=v,f.lastEffect=u),u}function MD(){return Fn().memoizedState}function Lh(u,f,m,v){var E=$r();Lt.flags|=u,E.memoizedState=dc(1|f,m,{destroy:void 0},v===void 0?null:v)}function Oh(u,f,m,v){var E=Fn();v=v===void 0?null:v;var L=E.memoizedState.inst;sn!==null&&v!==null&&Wv(v,sn.memoizedState.deps)?E.memoizedState=dc(f,m,L,v):(Lt.flags|=u,E.memoizedState=dc(1|f,m,L,v))}function FD(u,f){Lh(8390656,8,u,f)}function nx(u,f){Oh(2048,8,u,f)}function PD(u,f){return Oh(4,2,u,f)}function BD(u,f){return Oh(4,4,u,f)}function zD(u,f){if(typeof f=="function"){u=u();var m=f(u);return function(){typeof m=="function"?m():f(null)}}if(f!=null)return u=u(),f.current=u,function(){f.current=null}}function $D(u,f,m){m=m!=null?m.concat([u]):null,Oh(4,4,zD.bind(null,f,u),m)}function rx(){}function jD(u,f){var m=Fn();f=f===void 0?null:f;var v=m.memoizedState;return f!==null&&Wv(f,v[1])?v[0]:(m.memoizedState=[u,f],u)}function UD(u,f){var m=Fn();f=f===void 0?null:f;var v=m.memoizedState;if(f!==null&&Wv(f,v[1]))return v[0];if(v=u(),Us){wt(!0);try{u()}finally{wt(!1)}}return m.memoizedState=[v,f],v}function ax(u,f,m){return m===void 0||zo&1073741824?u.memoizedState=f:(u.memoizedState=m,u=GI(),Lt.lanes|=u,Ko|=u,m)}function HD(u,f,m,v){return na(m,f)?m:oc.current!==null?(u=ax(u,m,v),na(u,f)||(Xn=!0),u):zo&42?(u=GI(),Lt.lanes|=u,Ko|=u,f):(Xn=!0,u.memoizedState=m)}function GD(u,f,m,v,E){var L=Z.p;Z.p=L!==0&&8>L?L:8;var q=D.T,X={};D.T=X,sx(u,!1,f,m);try{var J=E(),le=D.S;if(le!==null&&le(X,J),J!==null&&typeof J=="object"&&typeof J.then=="function"){var _e=Ene(J,v);Ed(u,f,_e,oa(u))}else Ed(u,f,v,oa(u))}catch(Oe){Ed(u,f,{then:function(){},status:"rejected",reason:Oe},oa())}finally{Z.p=L,D.T=q}}function Ane(){}function ix(u,f,m,v){if(u.tag!==5)throw Error(r(476));var E=qD(u).queue;GD(u,E,f,Q,m===null?Ane:function(){return WD(u),m(v)})}function qD(u){var f=u.memoizedState;if(f!==null)return f;f={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ki,lastRenderedState:Q},next:null};var m={};return f.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ki,lastRenderedState:m},next:null},u.memoizedState=f,u=u.alternate,u!==null&&(u.memoizedState=f),f}function WD(u){var f=qD(u).next.queue;Ed(u,f,{},oa())}function ox(){return yr(Hd)}function VD(){return Fn().memoizedState}function YD(){return Fn().memoizedState}function Rne(u){for(var f=u.return;f!==null;){switch(f.tag){case 24:case 3:var m=oa();u=Ho(m);var v=Go(f,u,m);v!==null&&(Rr(v,f,m),Cd(v,f,m)),f={cache:Hv()},u.payload=f;return}f=f.return}}function Nne(u,f,m){var v=oa();m={lane:v,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null},Dh(u)?XD(f,m):(m=Fv(u,f,m,v),m!==null&&(Rr(m,u,v),ZD(m,f,v)))}function KD(u,f,m){var v=oa();Ed(u,f,m,v)}function Ed(u,f,m,v){var E={lane:v,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null};if(Dh(u))XD(f,E);else{var L=u.alternate;if(u.lanes===0&&(L===null||L.lanes===0)&&(L=f.lastRenderedReducer,L!==null))try{var q=f.lastRenderedState,X=L(q,m);if(E.hasEagerState=!0,E.eagerState=X,na(X,q))return mh(u,f,E,0),pn===null&&gh(),!1}catch{}finally{}if(m=Fv(u,f,E,v),m!==null)return Rr(m,u,v),ZD(m,f,v),!0}return!1}function sx(u,f,m,v){if(v={lane:2,revertLane:Xx(),action:v,hasEagerState:!1,eagerState:null,next:null},Dh(u)){if(f)throw Error(r(479))}else f=Fv(u,m,v,2),f!==null&&Rr(f,u,2)}function Dh(u){var f=u.alternate;return u===Lt||f!==null&&f===Lt}function XD(u,f){cc=Ch=!0;var m=u.pending;m===null?f.next=f:(f.next=m.next,m.next=f),u.pending=f}function ZD(u,f,m){if(m&4194176){var v=f.lanes;v&=u.pendingLanes,m|=v,f.lanes=m,Cn(u,m)}}var yi={readContext:yr,use:Rh,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useLayoutEffect:On,useInsertionEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useSyncExternalStore:On,useId:On};yi.useCacheRefresh=On,yi.useMemoCache=On,yi.useHostTransitionStatus=On,yi.useFormState=On,yi.useActionState=On,yi.useOptimistic=On;var Hs={readContext:yr,use:Rh,useCallback:function(u,f){return $r().memoizedState=[u,f===void 0?null:f],u},useContext:yr,useEffect:FD,useImperativeHandle:function(u,f,m){m=m!=null?m.concat([u]):null,Lh(4194308,4,zD.bind(null,f,u),m)},useLayoutEffect:function(u,f){return Lh(4194308,4,u,f)},useInsertionEffect:function(u,f){Lh(4,2,u,f)},useMemo:function(u,f){var m=$r();f=f===void 0?null:f;var v=u();if(Us){wt(!0);try{u()}finally{wt(!1)}}return m.memoizedState=[v,f],v},useReducer:function(u,f,m){var v=$r();if(m!==void 0){var E=m(f);if(Us){wt(!0);try{m(f)}finally{wt(!1)}}}else E=f;return v.memoizedState=v.baseState=E,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:E},v.queue=u,u=u.dispatch=Nne.bind(null,Lt,u),[v.memoizedState,u]},useRef:function(u){var f=$r();return u={current:u},f.memoizedState=u},useState:function(u){u=ex(u);var f=u.queue,m=KD.bind(null,Lt,f);return f.dispatch=m,[u.memoizedState,m]},useDebugValue:rx,useDeferredValue:function(u,f){var m=$r();return ax(m,u,f)},useTransition:function(){var u=ex(!1);return u=GD.bind(null,Lt,u.queue,!0,!1),$r().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,f,m){var v=Lt,E=$r();if(Xt){if(m===void 0)throw Error(r(407));m=m()}else{if(m=f(),pn===null)throw Error(r(349));Vt&60||xD(v,f,m)}E.memoizedState=m;var L={value:m,getSnapshot:f};return E.queue=L,FD(wD.bind(null,v,L,u),[u]),v.flags|=2048,dc(9,SD.bind(null,v,L,m,f),{destroy:void 0},null),m},useId:function(){var u=$r(),f=pn.identifierPrefix;if(Xt){var m=Vi,v=Wi;m=(v&~(1<<32-zt(v)-1)).toString(32)+m,f=":"+f+"R"+m,m=Th++,0<m&&(f+="H"+m.toString(32)),f+=":"}else m=kne++,f=":"+f+"r"+m.toString(32)+":";return u.memoizedState=f},useCacheRefresh:function(){return $r().memoizedState=Rne.bind(null,Lt)}};Hs.useMemoCache=Zv,Hs.useHostTransitionStatus=ox,Hs.useFormState=LD,Hs.useActionState=LD,Hs.useOptimistic=function(u){var f=$r();f.memoizedState=f.baseState=u;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return f.queue=m,f=sx.bind(null,Lt,!0,m),m.dispatch=f,[u,f]};var $o={readContext:yr,use:Rh,useCallback:jD,useContext:yr,useEffect:nx,useImperativeHandle:$D,useInsertionEffect:PD,useLayoutEffect:BD,useMemo:UD,useReducer:Nh,useRef:MD,useState:function(){return Nh(Ki)},useDebugValue:rx,useDeferredValue:function(u,f){var m=Fn();return HD(m,sn.memoizedState,u,f)},useTransition:function(){var u=Nh(Ki)[0],f=Fn().memoizedState;return[typeof u=="boolean"?u:wd(u),f]},useSyncExternalStore:vD,useId:VD};$o.useCacheRefresh=YD,$o.useMemoCache=Zv,$o.useHostTransitionStatus=ox,$o.useFormState=OD,$o.useActionState=OD,$o.useOptimistic=function(u,f){var m=Fn();return _D(m,sn,u,f)};var Gs={readContext:yr,use:Rh,useCallback:jD,useContext:yr,useEffect:nx,useImperativeHandle:$D,useInsertionEffect:PD,useLayoutEffect:BD,useMemo:UD,useReducer:Jv,useRef:MD,useState:function(){return Jv(Ki)},useDebugValue:rx,useDeferredValue:function(u,f){var m=Fn();return sn===null?ax(m,u,f):HD(m,sn.memoizedState,u,f)},useTransition:function(){var u=Jv(Ki)[0],f=Fn().memoizedState;return[typeof u=="boolean"?u:wd(u),f]},useSyncExternalStore:vD,useId:VD};Gs.useCacheRefresh=YD,Gs.useMemoCache=Zv,Gs.useHostTransitionStatus=ox,Gs.useFormState=ID,Gs.useActionState=ID,Gs.useOptimistic=function(u,f){var m=Fn();return sn!==null?_D(m,sn,u,f):(m.baseState=u,[u,m.queue.dispatch])};function lx(u,f,m,v){f=u.memoizedState,m=m(v,f),m=m==null?f:O({},f,m),u.memoizedState=m,u.lanes===0&&(u.updateQueue.baseState=m)}var cx={isMounted:function(u){return(u=u._reactInternals)?M(u)===u:!1},enqueueSetState:function(u,f,m){u=u._reactInternals;var v=oa(),E=Ho(v);E.payload=f,m!=null&&(E.callback=m),f=Go(u,E,v),f!==null&&(Rr(f,u,v),Cd(f,u,v))},enqueueReplaceState:function(u,f,m){u=u._reactInternals;var v=oa(),E=Ho(v);E.tag=1,E.payload=f,m!=null&&(E.callback=m),f=Go(u,E,v),f!==null&&(Rr(f,u,v),Cd(f,u,v))},enqueueForceUpdate:function(u,f){u=u._reactInternals;var m=oa(),v=Ho(m);v.tag=2,f!=null&&(v.callback=f),f=Go(u,v,m),f!==null&&(Rr(f,u,m),Cd(f,u,m))}};function QD(u,f,m,v,E,L,q){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(v,L,q):f.prototype&&f.prototype.isPureReactComponent?!ud(m,v)||!ud(E,L):!0}function JD(u,f,m,v){u=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(m,v),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(m,v),f.state!==u&&cx.enqueueReplaceState(f,f.state,null)}function qs(u,f){var m=f;if("ref"in f){m={};for(var v in f)v!=="ref"&&(m[v]=f[v])}if(u=u.defaultProps){m===f&&(m=O({},m));for(var E in u)m[E]===void 0&&(m[E]=u[E])}return m}var Ih=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function eI(u){Ih(u)}function tI(u){console.error(u)}function nI(u){Ih(u)}function Mh(u,f){try{var m=u.onUncaughtError;m(f.value,{componentStack:f.stack})}catch(v){setTimeout(function(){throw v})}}function rI(u,f,m){try{var v=u.onCaughtError;v(m.value,{componentStack:m.stack,errorBoundary:f.tag===1?f.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function ux(u,f,m){return m=Ho(m),m.tag=3,m.payload={element:null},m.callback=function(){Mh(u,f)},m}function aI(u){return u=Ho(u),u.tag=3,u}function iI(u,f,m,v){var E=m.type.getDerivedStateFromError;if(typeof E=="function"){var L=v.value;u.payload=function(){return E(L)},u.callback=function(){rI(f,m,v)}}var q=m.stateNode;q!==null&&typeof q.componentDidCatch=="function"&&(u.callback=function(){rI(f,m,v),typeof E!="function"&&(Xo===null?Xo=new Set([this]):Xo.add(this));var X=v.stack;this.componentDidCatch(v.value,{componentStack:X!==null?X:""})})}function Lne(u,f,m,v,E){if(m.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(f=m.alternate,f!==null&&_d(f,m,E,!0),m=Ta.current,m!==null){switch(m.tag){case 13:return bi===null?qx():m.alternate===null&&Rn===0&&(Rn=3),m.flags&=-257,m.flags|=65536,m.lanes=E,v===$v?m.flags|=16384:(f=m.updateQueue,f===null?m.updateQueue=new Set([v]):f.add(v),Vx(u,v,E)),!1;case 22:return m.flags|=65536,v===$v?m.flags|=16384:(f=m.updateQueue,f===null?(f={transitions:null,markerInstances:null,retryQueue:new Set([v])},m.updateQueue=f):(m=f.retryQueue,m===null?f.retryQueue=new Set([v]):m.add(v)),Vx(u,v,E)),!1}throw Error(r(435,m.tag))}return Vx(u,v,E),qx(),!1}if(Xt)return f=Ta.current,f!==null?(!(f.flags&65536)&&(f.flags|=256),f.flags|=65536,f.lanes=E,v!==zv&&(u=Error(r(422),{cause:v}),hd(ka(u,m)))):(v!==zv&&(f=Error(r(423),{cause:v}),hd(ka(f,m))),u=u.current.alternate,u.flags|=65536,E&=-E,u.lanes|=E,v=ka(v,m),E=ux(u.stateNode,v,E),_x(u,E),Rn!==4&&(Rn=2)),!1;var L=Error(r(520),{cause:v});if(L=ka(L,m),Id===null?Id=[L]:Id.push(L),Rn!==4&&(Rn=2),f===null)return!0;v=ka(v,m),m=f;do{switch(m.tag){case 3:return m.flags|=65536,u=E&-E,m.lanes|=u,u=ux(m.stateNode,v,u),_x(m,u),!1;case 1:if(f=m.type,L=m.stateNode,(m.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(Xo===null||!Xo.has(L))))return m.flags|=65536,E&=-E,m.lanes|=E,E=aI(E),iI(E,u,m,v),_x(m,E),!1}m=m.return}while(m!==null);return!1}var oI=Error(r(461)),Xn=!1;function sr(u,f,m,v){f.child=u===null?dD(f,null,m,v):$s(f,u.child,m,v)}function sI(u,f,m,v,E){m=m.render;var L=f.ref;if("ref"in v){var q={};for(var X in v)X!=="ref"&&(q[X]=v[X])}else q=v;return Vs(f),v=Vv(u,f,m,q,L,E),X=Yv(),u!==null&&!Xn?(Kv(u,f,E),Xi(u,f,E)):(Xt&&X&&Pv(f),f.flags|=1,sr(u,f,v,E),f.child)}function lI(u,f,m,v,E){if(u===null){var L=m.type;return typeof L=="function"&&!Dx(L)&&L.defaultProps===void 0&&m.compare===null?(f.tag=15,f.type=L,cI(u,f,L,v,E)):(u=$h(m.type,null,v,f,f.mode,E),u.ref=f.ref,u.return=f,f.child=u)}if(L=u.child,!vx(u,E)){var q=L.memoizedProps;if(m=m.compare,m=m!==null?m:ud,m(q,v)&&u.ref===f.ref)return Xi(u,f,E)}return f.flags|=1,u=Yo(L,v),u.ref=f.ref,u.return=f,f.child=u}function cI(u,f,m,v,E){if(u!==null){var L=u.memoizedProps;if(ud(L,v)&&u.ref===f.ref)if(Xn=!1,f.pendingProps=v=L,vx(u,E))u.flags&131072&&(Xn=!0);else return f.lanes=u.lanes,Xi(u,f,E)}return dx(u,f,m,v,E)}function uI(u,f,m){var v=f.pendingProps,E=v.children,L=(f.stateNode._pendingVisibility&2)!==0,q=u!==null?u.memoizedState:null;if(kd(u,f),v.mode==="hidden"||L){if(f.flags&128){if(v=q!==null?q.baseLanes|m:m,u!==null){for(E=f.child=u.child,L=0;E!==null;)L=L|E.lanes|E.childLanes,E=E.sibling;f.childLanes=L&~v}else f.childLanes=0,f.child=null;return dI(u,f,v,m)}if(m&536870912)f.memoizedState={baseLanes:0,cachePool:null},u!==null&&_h(f,q!==null?q.cachePool:null),q!==null?fD(f,q):jv(),pD(f);else return f.lanes=f.childLanes=536870912,dI(u,f,q!==null?q.baseLanes|m:m,m)}else q!==null?(_h(f,q.cachePool),fD(f,q),Bo(),f.memoizedState=null):(u!==null&&_h(f,null),jv(),Bo());return sr(u,f,E,m),f.child}function dI(u,f,m,v){var E=qv();return E=E===null?null:{parent:Hn._currentValue,pool:E},f.memoizedState={baseLanes:m,cachePool:E},u!==null&&_h(f,null),jv(),pD(f),u!==null&&_d(u,f,v,!0),null}function kd(u,f){var m=f.ref;if(m===null)u!==null&&u.ref!==null&&(f.flags|=2097664);else{if(typeof m!="function"&&typeof m!="object")throw Error(r(284));(u===null||u.ref!==m)&&(f.flags|=2097664)}}function dx(u,f,m,v,E){return Vs(f),m=Vv(u,f,m,v,void 0,E),v=Yv(),u!==null&&!Xn?(Kv(u,f,E),Xi(u,f,E)):(Xt&&v&&Pv(f),f.flags|=1,sr(u,f,m,E),f.child)}function fI(u,f,m,v,E,L){return Vs(f),f.updateQueue=null,m=yD(f,v,m,E),bD(u),v=Yv(),u!==null&&!Xn?(Kv(u,f,L),Xi(u,f,L)):(Xt&&v&&Pv(f),f.flags|=1,sr(u,f,m,L),f.child)}function pI(u,f,m,v,E){if(Vs(f),f.stateNode===null){var L=nc,q=m.contextType;typeof q=="object"&&q!==null&&(L=yr(q)),L=new m(v,L),f.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,L.updater=cx,f.stateNode=L,L._reactInternals=f,L=f.stateNode,L.props=v,L.state=f.memoizedState,L.refs={},Ex(f),q=m.contextType,L.context=typeof q=="object"&&q!==null?yr(q):nc,L.state=f.memoizedState,q=m.getDerivedStateFromProps,typeof q=="function"&&(lx(f,m,q,v),L.state=f.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof L.getSnapshotBeforeUpdate=="function"||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(q=L.state,typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount(),q!==L.state&&cx.enqueueReplaceState(L,L.state,null),Ad(f,v,L,E),Td(),L.state=f.memoizedState),typeof L.componentDidMount=="function"&&(f.flags|=4194308),v=!0}else if(u===null){L=f.stateNode;var X=f.memoizedProps,J=qs(m,X);L.props=J;var le=L.context,_e=m.contextType;q=nc,typeof _e=="object"&&_e!==null&&(q=yr(_e));var Oe=m.getDerivedStateFromProps;_e=typeof Oe=="function"||typeof L.getSnapshotBeforeUpdate=="function",X=f.pendingProps!==X,_e||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(X||le!==q)&&JD(f,L,v,q),Uo=!1;var me=f.memoizedState;L.state=me,Ad(f,v,L,E),Td(),le=f.memoizedState,X||me!==le||Uo?(typeof Oe=="function"&&(lx(f,m,Oe,v),le=f.memoizedState),(J=Uo||QD(f,m,J,v,me,le,q))?(_e||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount()),typeof L.componentDidMount=="function"&&(f.flags|=4194308)):(typeof L.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=v,f.memoizedState=le),L.props=v,L.state=le,L.context=q,v=J):(typeof L.componentDidMount=="function"&&(f.flags|=4194308),v=!1)}else{L=f.stateNode,kx(u,f),q=f.memoizedProps,_e=qs(m,q),L.props=_e,Oe=f.pendingProps,me=L.context,le=m.contextType,J=nc,typeof le=="object"&&le!==null&&(J=yr(le)),X=m.getDerivedStateFromProps,(le=typeof X=="function"||typeof L.getSnapshotBeforeUpdate=="function")||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(q!==Oe||me!==J)&&JD(f,L,v,J),Uo=!1,me=f.memoizedState,L.state=me,Ad(f,v,L,E),Td();var ke=f.memoizedState;q!==Oe||me!==ke||Uo||u!==null&&u.dependencies!==null&&Fh(u.dependencies)?(typeof X=="function"&&(lx(f,m,X,v),ke=f.memoizedState),(_e=Uo||QD(f,m,_e,v,me,ke,J)||u!==null&&u.dependencies!==null&&Fh(u.dependencies))?(le||typeof L.UNSAFE_componentWillUpdate!="function"&&typeof L.componentWillUpdate!="function"||(typeof L.componentWillUpdate=="function"&&L.componentWillUpdate(v,ke,J),typeof L.UNSAFE_componentWillUpdate=="function"&&L.UNSAFE_componentWillUpdate(v,ke,J)),typeof L.componentDidUpdate=="function"&&(f.flags|=4),typeof L.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof L.componentDidUpdate!="function"||q===u.memoizedProps&&me===u.memoizedState||(f.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||q===u.memoizedProps&&me===u.memoizedState||(f.flags|=1024),f.memoizedProps=v,f.memoizedState=ke),L.props=v,L.state=ke,L.context=J,v=_e):(typeof L.componentDidUpdate!="function"||q===u.memoizedProps&&me===u.memoizedState||(f.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||q===u.memoizedProps&&me===u.memoizedState||(f.flags|=1024),v=!1)}return L=v,kd(u,f),v=(f.flags&128)!==0,L||v?(L=f.stateNode,m=v&&typeof m.getDerivedStateFromError!="function"?null:L.render(),f.flags|=1,u!==null&&v?(f.child=$s(f,u.child,null,E),f.child=$s(f,null,m,E)):sr(u,f,m,E),f.memoizedState=L.state,u=f.child):u=Xi(u,f,E),u}function hI(u,f,m,v){return pd(),f.flags|=256,sr(u,f,m,v),f.child}var fx={dehydrated:null,treeContext:null,retryLane:0};function px(u){return{baseLanes:u,cachePool:mD()}}function hx(u,f,m){return u=u!==null?u.childLanes&~m:0,f&&(u|=La),u}function gI(u,f,m){var v=f.pendingProps,E=!1,L=(f.flags&128)!==0,q;if((q=L)||(q=u!==null&&u.memoizedState===null?!1:(Un.current&2)!==0),q&&(E=!0,f.flags&=-129),q=(f.flags&32)!==0,f.flags&=-33,u===null){if(Xt){if(E?Po(f):Bo(),Xt){var X=or,J;if(J=X){e:{for(J=X,X=mi;J.nodeType!==8;){if(!X){X=null;break e}if(J=Qa(J.nextSibling),J===null){X=null;break e}}X=J}X!==null?(f.memoizedState={dehydrated:X,treeContext:Ps!==null?{id:Wi,overflow:Vi}:null,retryLane:536870912},J=Na(18,null,null,0),J.stateNode=X,J.return=f,f.child=J,Ar=f,or=null,J=!0):J=!1}J||zs(f)}if(X=f.memoizedState,X!==null&&(X=X.dehydrated,X!==null))return X.data==="$!"?f.lanes=16:f.lanes=536870912,null;Yi(f)}return X=v.children,v=v.fallback,E?(Bo(),E=f.mode,X=mx({mode:"hidden",children:X},E),v=Ks(v,E,m,null),X.return=f,v.return=f,X.sibling=v,f.child=X,E=f.child,E.memoizedState=px(m),E.childLanes=hx(u,q,m),f.memoizedState=fx,v):(Po(f),gx(f,X))}if(J=u.memoizedState,J!==null&&(X=J.dehydrated,X!==null)){if(L)f.flags&256?(Po(f),f.flags&=-257,f=bx(u,f,m)):f.memoizedState!==null?(Bo(),f.child=u.child,f.flags|=128,f=null):(Bo(),E=v.fallback,X=f.mode,v=mx({mode:"visible",children:v.children},X),E=Ks(E,X,m,null),E.flags|=2,v.return=f,E.return=f,v.sibling=E,f.child=v,$s(f,u.child,null,m),v=f.child,v.memoizedState=px(m),v.childLanes=hx(u,q,m),f.memoizedState=fx,f=E);else if(Po(f),X.data==="$!"){if(q=X.nextSibling&&X.nextSibling.dataset,q)var le=q.dgst;q=le,v=Error(r(419)),v.stack="",v.digest=q,hd({value:v,source:null,stack:null}),f=bx(u,f,m)}else if(Xn||_d(u,f,m,!1),q=(m&u.childLanes)!==0,Xn||q){if(q=pn,q!==null){if(v=m&-m,v&42)v=1;else switch(v){case 2:v=1;break;case 8:v=4;break;case 32:v=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:v=64;break;case 268435456:v=134217728;break;default:v=0}if(v=v&(q.suspendedLanes|m)?0:v,v!==0&&v!==J.retryLane)throw J.retryLane=v,Fo(u,v),Rr(q,u,v),oI}X.data==="$?"||qx(),f=bx(u,f,m)}else X.data==="$?"?(f.flags|=128,f.child=u.child,f=Wne.bind(null,u),X._reactRetry=f,f=null):(u=J.treeContext,or=Qa(X.nextSibling),Ar=f,Xt=!0,Xa=null,mi=!1,u!==null&&(_a[Ca++]=Wi,_a[Ca++]=Vi,_a[Ca++]=Ps,Wi=u.id,Vi=u.overflow,Ps=f),f=gx(f,v.children),f.flags|=4096);return f}return E?(Bo(),E=v.fallback,X=f.mode,J=u.child,le=J.sibling,v=Yo(J,{mode:"hidden",children:v.children}),v.subtreeFlags=J.subtreeFlags&31457280,le!==null?E=Yo(le,E):(E=Ks(E,X,m,null),E.flags|=2),E.return=f,v.return=f,v.sibling=E,f.child=v,v=E,E=f.child,X=u.child.memoizedState,X===null?X=px(m):(J=X.cachePool,J!==null?(le=Hn._currentValue,J=J.parent!==le?{parent:le,pool:le}:J):J=mD(),X={baseLanes:X.baseLanes|m,cachePool:J}),E.memoizedState=X,E.childLanes=hx(u,q,m),f.memoizedState=fx,v):(Po(f),m=u.child,u=m.sibling,m=Yo(m,{mode:"visible",children:v.children}),m.return=f,m.sibling=null,u!==null&&(q=f.deletions,q===null?(f.deletions=[u],f.flags|=16):q.push(u)),f.child=m,f.memoizedState=null,m)}function gx(u,f){return f=mx({mode:"visible",children:f},u.mode),f.return=u,u.child=f}function mx(u,f){return jI(u,f,0,null)}function bx(u,f,m){return $s(f,u.child,null,m),u=gx(f,f.pendingProps.children),u.flags|=2,f.memoizedState=null,u}function mI(u,f,m){u.lanes|=f;var v=u.alternate;v!==null&&(v.lanes|=f),Sx(u.return,f,m)}function yx(u,f,m,v,E){var L=u.memoizedState;L===null?u.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:v,tail:m,tailMode:E}:(L.isBackwards=f,L.rendering=null,L.renderingStartTime=0,L.last=v,L.tail=m,L.tailMode=E)}function bI(u,f,m){var v=f.pendingProps,E=v.revealOrder,L=v.tail;if(sr(u,f,v.children,m),v=Un.current,v&2)v=v&1|2,f.flags|=128;else{if(u!==null&&u.flags&128)e:for(u=f.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&mI(u,m,f);else if(u.tag===19)mI(u,m,f);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===f)break e;for(;u.sibling===null;){if(u.return===null||u.return===f)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}v&=1}switch(ne(Un,v),E){case"forwards":for(m=f.child,E=null;m!==null;)u=m.alternate,u!==null&&kh(u)===null&&(E=m),m=m.sibling;m=E,m===null?(E=f.child,f.child=null):(E=m.sibling,m.sibling=null),yx(f,!1,E,m,L);break;case"backwards":for(m=null,E=f.child,f.child=null;E!==null;){if(u=E.alternate,u!==null&&kh(u)===null){f.child=E;break}u=E.sibling,E.sibling=m,m=E,E=u}yx(f,!0,m,null,L);break;case"together":yx(f,!1,null,null,void 0);break;default:f.memoizedState=null}return f.child}function Xi(u,f,m){if(u!==null&&(f.dependencies=u.dependencies),Ko|=f.lanes,!(m&f.childLanes))if(u!==null){if(_d(u,f,m,!1),(m&f.childLanes)===0)return null}else return null;if(u!==null&&f.child!==u.child)throw Error(r(153));if(f.child!==null){for(u=f.child,m=Yo(u,u.pendingProps),f.child=m,m.return=f;u.sibling!==null;)u=u.sibling,m=m.sibling=Yo(u,u.pendingProps),m.return=f;m.sibling=null}return f.child}function vx(u,f){return u.lanes&f?!0:(u=u.dependencies,!!(u!==null&&Fh(u)))}function One(u,f,m){switch(f.tag){case 3:Se(f,f.stateNode.containerInfo),jo(f,Hn,u.memoizedState.cache),pd();break;case 27:case 5:he(f);break;case 4:Se(f,f.stateNode.containerInfo);break;case 10:jo(f,f.type,f.memoizedProps.value);break;case 13:var v=f.memoizedState;if(v!==null)return v.dehydrated!==null?(Po(f),f.flags|=128,null):m&f.child.childLanes?gI(u,f,m):(Po(f),u=Xi(u,f,m),u!==null?u.sibling:null);Po(f);break;case 19:var E=(u.flags&128)!==0;if(v=(m&f.childLanes)!==0,v||(_d(u,f,m,!1),v=(m&f.childLanes)!==0),E){if(v)return bI(u,f,m);f.flags|=128}if(E=f.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),ne(Un,Un.current),v)break;return null;case 22:case 23:return f.lanes=0,uI(u,f,m);case 24:jo(f,Hn,u.memoizedState.cache)}return Xi(u,f,m)}function yI(u,f,m){if(u!==null)if(u.memoizedProps!==f.pendingProps)Xn=!0;else{if(!vx(u,m)&&!(f.flags&128))return Xn=!1,One(u,f,m);Xn=!!(u.flags&131072)}else Xn=!1,Xt&&f.flags&1048576&&nD(f,vh,f.index);switch(f.lanes=0,f.tag){case 16:e:{u=f.pendingProps;var v=f.elementType,E=v._init;if(v=E(v._payload),f.type=v,typeof v=="function")Dx(v)?(u=qs(v,u),f.tag=1,f=pI(null,f,v,u,m)):(f.tag=0,f=dx(null,f,v,u,m));else{if(v!=null){if(E=v.$$typeof,E===b){f.tag=11,f=sI(null,f,v,u,m);break e}else if(E===w){f.tag=14,f=lI(null,f,v,u,m);break e}}throw f=I(v)||v,Error(r(306,f,""))}}return f;case 0:return dx(u,f,f.type,f.pendingProps,m);case 1:return v=f.type,E=qs(v,f.pendingProps),pI(u,f,v,E,m);case 3:e:{if(Se(f,f.stateNode.containerInfo),u===null)throw Error(r(387));var L=f.pendingProps;E=f.memoizedState,v=E.element,kx(u,f),Ad(f,L,null,m);var q=f.memoizedState;if(L=q.cache,jo(f,Hn,L),L!==E.cache&&wx(f,[Hn],m,!0),Td(),L=q.element,E.isDehydrated)if(E={element:L,isDehydrated:!1,cache:q.cache},f.updateQueue.baseState=E,f.memoizedState=E,f.flags&256){f=hI(u,f,L,m);break e}else if(L!==v){v=ka(Error(r(424)),f),hd(v),f=hI(u,f,L,m);break e}else for(or=Qa(f.stateNode.containerInfo.firstChild),Ar=f,Xt=!0,Xa=null,mi=!0,m=dD(f,null,L,m),f.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(pd(),L===v){f=Xi(u,f,m);break e}sr(u,f,L,m)}f=f.child}return f;case 26:return kd(u,f),u===null?(m=SM(f.type,null,f.pendingProps,null))?f.memoizedState=m:Xt||(m=f.type,u=f.pendingProps,v=Qh(we.current).createElement(m),v[jn]=f,v[yn]=u,lr(v,m,u),$t(v),f.stateNode=v):f.memoizedState=SM(f.type,u.memoizedProps,f.pendingProps,u.memoizedState),null;case 27:return he(f),u===null&&Xt&&(v=f.stateNode=yM(f.type,f.pendingProps,we.current),Ar=f,mi=!0,or=Qa(v.firstChild)),v=f.pendingProps.children,u!==null||Xt?sr(u,f,v,m):f.child=$s(f,null,v,m),kd(u,f),f.child;case 5:return u===null&&Xt&&((E=v=or)&&(v=lre(v,f.type,f.pendingProps,mi),v!==null?(f.stateNode=v,Ar=f,or=Qa(v.firstChild),mi=!1,E=!0):E=!1),E||zs(f)),he(f),E=f.type,L=f.pendingProps,q=u!==null?u.memoizedProps:null,v=L.children,iS(E,L)?v=null:q!==null&&iS(E,q)&&(f.flags|=32),f.memoizedState!==null&&(E=Vv(u,f,_ne,null,null,m),Hd._currentValue=E),kd(u,f),sr(u,f,v,m),f.child;case 6:return u===null&&Xt&&((u=m=or)&&(m=cre(m,f.pendingProps,mi),m!==null?(f.stateNode=m,Ar=f,or=null,u=!0):u=!1),u||zs(f)),null;case 13:return gI(u,f,m);case 4:return Se(f,f.stateNode.containerInfo),v=f.pendingProps,u===null?f.child=$s(f,null,v,m):sr(u,f,v,m),f.child;case 11:return sI(u,f,f.type,f.pendingProps,m);case 7:return sr(u,f,f.pendingProps,m),f.child;case 8:return sr(u,f,f.pendingProps.children,m),f.child;case 12:return sr(u,f,f.pendingProps.children,m),f.child;case 10:return v=f.pendingProps,jo(f,f.type,v.value),sr(u,f,v.children,m),f.child;case 9:return E=f.type._context,v=f.pendingProps.children,Vs(f),E=yr(E),v=v(E),f.flags|=1,sr(u,f,v,m),f.child;case 14:return lI(u,f,f.type,f.pendingProps,m);case 15:return cI(u,f,f.type,f.pendingProps,m);case 19:return bI(u,f,m);case 22:return uI(u,f,m);case 24:return Vs(f),v=yr(Hn),u===null?(E=qv(),E===null&&(E=pn,L=Hv(),E.pooledCache=L,L.refCount++,L!==null&&(E.pooledCacheLanes|=m),E=L),f.memoizedState={parent:v,cache:E},Ex(f),jo(f,Hn,E)):(u.lanes&m&&(kx(u,f),Ad(f,null,null,m),Td()),E=u.memoizedState,L=f.memoizedState,E.parent!==v?(E={parent:v,cache:v},f.memoizedState=E,f.lanes===0&&(f.memoizedState=f.updateQueue.baseState=E),jo(f,Hn,v)):(v=L.cache,jo(f,Hn,v),v!==E.cache&&wx(f,[Hn],m,!0))),sr(u,f,f.pendingProps.children,m),f.child;case 29:throw f.pendingProps}throw Error(r(156,f.tag))}var xx=ce(null),Ws=null,Zi=null;function jo(u,f,m){ne(xx,f._currentValue),f._currentValue=m}function Qi(u){u._currentValue=xx.current,Te(xx)}function Sx(u,f,m){for(;u!==null;){var v=u.alternate;if((u.childLanes&f)!==f?(u.childLanes|=f,v!==null&&(v.childLanes|=f)):v!==null&&(v.childLanes&f)!==f&&(v.childLanes|=f),u===m)break;u=u.return}}function wx(u,f,m,v){var E=u.child;for(E!==null&&(E.return=u);E!==null;){var L=E.dependencies;if(L!==null){var q=E.child;L=L.firstContext;e:for(;L!==null;){var X=L;L=E;for(var J=0;J<f.length;J++)if(X.context===f[J]){L.lanes|=m,X=L.alternate,X!==null&&(X.lanes|=m),Sx(L.return,m,u),v||(q=null);break e}L=X.next}}else if(E.tag===18){if(q=E.return,q===null)throw Error(r(341));q.lanes|=m,L=q.alternate,L!==null&&(L.lanes|=m),Sx(q,m,u),q=null}else q=E.child;if(q!==null)q.return=E;else for(q=E;q!==null;){if(q===u){q=null;break}if(E=q.sibling,E!==null){E.return=q.return,q=E;break}q=q.return}E=q}}function _d(u,f,m,v){u=null;for(var E=f,L=!1;E!==null;){if(!L){if(E.flags&524288)L=!0;else if(E.flags&262144)break}if(E.tag===10){var q=E.alternate;if(q===null)throw Error(r(387));if(q=q.memoizedProps,q!==null){var X=E.type;na(E.pendingProps.value,q.value)||(u!==null?u.push(X):u=[X])}}else if(E===xe.current){if(q=E.alternate,q===null)throw Error(r(387));q.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(u!==null?u.push(Hd):u=[Hd])}E=E.return}u!==null&&wx(f,u,m,v),f.flags|=262144}function Fh(u){for(u=u.firstContext;u!==null;){if(!na(u.context._currentValue,u.memoizedValue))return!0;u=u.next}return!1}function Vs(u){Ws=u,Zi=null,u=u.dependencies,u!==null&&(u.firstContext=null)}function yr(u){return vI(Ws,u)}function Ph(u,f){return Ws===null&&Vs(u),vI(u,f)}function vI(u,f){var m=f._currentValue;if(f={context:f,memoizedValue:m,next:null},Zi===null){if(u===null)throw Error(r(308));Zi=f,u.dependencies={lanes:0,firstContext:f},u.flags|=524288}else Zi=Zi.next=f;return m}var Uo=!1;function Ex(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kx(u,f){u=u.updateQueue,f.updateQueue===u&&(f.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function Ho(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function Go(u,f,m){var v=u.updateQueue;if(v===null)return null;if(v=v.shared,wn&2){var E=v.pending;return E===null?f.next=f:(f.next=E.next,E.next=f),v.pending=f,f=bh(u),eD(u,null,m),f}return mh(u,v,f,m),bh(u)}function Cd(u,f,m){if(f=f.updateQueue,f!==null&&(f=f.shared,(m&4194176)!==0)){var v=f.lanes;v&=u.pendingLanes,m|=v,f.lanes=m,Cn(u,m)}}function _x(u,f){var m=u.updateQueue,v=u.alternate;if(v!==null&&(v=v.updateQueue,m===v)){var E=null,L=null;if(m=m.firstBaseUpdate,m!==null){do{var q={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};L===null?E=L=q:L=L.next=q,m=m.next}while(m!==null);L===null?E=L=f:L=L.next=f}else E=L=f;m={baseState:v.baseState,firstBaseUpdate:E,lastBaseUpdate:L,shared:v.shared,callbacks:v.callbacks},u.updateQueue=m;return}u=m.lastBaseUpdate,u===null?m.firstBaseUpdate=f:u.next=f,m.lastBaseUpdate=f}var Cx=!1;function Td(){if(Cx){var u=lc;if(u!==null)throw u}}function Ad(u,f,m,v){Cx=!1;var E=u.updateQueue;Uo=!1;var L=E.firstBaseUpdate,q=E.lastBaseUpdate,X=E.shared.pending;if(X!==null){E.shared.pending=null;var J=X,le=J.next;J.next=null,q===null?L=le:q.next=le,q=J;var _e=u.alternate;_e!==null&&(_e=_e.updateQueue,X=_e.lastBaseUpdate,X!==q&&(X===null?_e.firstBaseUpdate=le:X.next=le,_e.lastBaseUpdate=J))}if(L!==null){var Oe=E.baseState;q=0,_e=le=J=null,X=L;do{var me=X.lane&-536870913,ke=me!==X.lane;if(ke?(Vt&me)===me:(v&me)===me){me!==0&&me===sc&&(Cx=!0),_e!==null&&(_e=_e.next={lane:0,tag:X.tag,payload:X.payload,callback:null,next:null});e:{var it=u,kt=X;me=f;var Nn=m;switch(kt.tag){case 1:if(it=kt.payload,typeof it=="function"){Oe=it.call(Nn,Oe,me);break e}Oe=it;break e;case 3:it.flags=it.flags&-65537|128;case 0:if(it=kt.payload,me=typeof it=="function"?it.call(Nn,Oe,me):it,me==null)break e;Oe=O({},Oe,me);break e;case 2:Uo=!0}}me=X.callback,me!==null&&(u.flags|=64,ke&&(u.flags|=8192),ke=E.callbacks,ke===null?E.callbacks=[me]:ke.push(me))}else ke={lane:me,tag:X.tag,payload:X.payload,callback:X.callback,next:null},_e===null?(le=_e=ke,J=Oe):_e=_e.next=ke,q|=me;if(X=X.next,X===null){if(X=E.shared.pending,X===null)break;ke=X,X=ke.next,ke.next=null,E.lastBaseUpdate=ke,E.shared.pending=null}}while(!0);_e===null&&(J=Oe),E.baseState=J,E.firstBaseUpdate=le,E.lastBaseUpdate=_e,L===null&&(E.shared.lanes=0),Ko|=q,u.lanes=q,u.memoizedState=Oe}}function xI(u,f){if(typeof u!="function")throw Error(r(191,u));u.call(f)}function SI(u,f){var m=u.callbacks;if(m!==null)for(u.callbacks=null,u=0;u<m.length;u++)xI(m[u],f)}function Rd(u,f){try{var m=f.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var E=v.next;m=E;do{if((m.tag&u)===u){v=void 0;var L=m.create,q=m.inst;v=L(),q.destroy=v}m=m.next}while(m!==E)}}catch(X){un(f,f.return,X)}}function qo(u,f,m){try{var v=f.updateQueue,E=v!==null?v.lastEffect:null;if(E!==null){var L=E.next;v=L;do{if((v.tag&u)===u){var q=v.inst,X=q.destroy;if(X!==void 0){q.destroy=void 0,E=f;var J=m;try{X()}catch(le){un(E,J,le)}}}v=v.next}while(v!==L)}}catch(le){un(f,f.return,le)}}function wI(u){var f=u.updateQueue;if(f!==null){var m=u.stateNode;try{SI(f,m)}catch(v){un(u,u.return,v)}}}function EI(u,f,m){m.props=qs(u.type,u.memoizedProps),m.state=u.memoizedState;try{m.componentWillUnmount()}catch(v){un(u,f,v)}}function Ys(u,f){try{var m=u.ref;if(m!==null){var v=u.stateNode;switch(u.tag){case 26:case 27:case 5:var E=v;break;default:E=v}typeof m=="function"?u.refCleanup=m(E):m.current=E}}catch(L){un(u,f,L)}}function ra(u,f){var m=u.ref,v=u.refCleanup;if(m!==null)if(typeof v=="function")try{v()}catch(E){un(u,f,E)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(E){un(u,f,E)}else m.current=null}function kI(u){var f=u.type,m=u.memoizedProps,v=u.stateNode;try{e:switch(f){case"button":case"input":case"select":case"textarea":m.autoFocus&&v.focus();break e;case"img":m.src?v.src=m.src:m.srcSet&&(v.srcset=m.srcSet)}}catch(E){un(u,u.return,E)}}function _I(u,f,m){try{var v=u.stateNode;rre(v,u.type,m,f),v[yn]=f}catch(E){un(u,u.return,E)}}function CI(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27||u.tag===4}function Tx(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||CI(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==27&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function Ax(u,f,m){var v=u.tag;if(v===5||v===6)u=u.stateNode,f?m.nodeType===8?m.parentNode.insertBefore(u,f):m.insertBefore(u,f):(m.nodeType===8?(f=m.parentNode,f.insertBefore(u,m)):(f=m,f.appendChild(u)),m=m._reactRootContainer,m!=null||f.onclick!==null||(f.onclick=Zh));else if(v!==4&&v!==27&&(u=u.child,u!==null))for(Ax(u,f,m),u=u.sibling;u!==null;)Ax(u,f,m),u=u.sibling}function Bh(u,f,m){var v=u.tag;if(v===5||v===6)u=u.stateNode,f?m.insertBefore(u,f):m.appendChild(u);else if(v!==4&&v!==27&&(u=u.child,u!==null))for(Bh(u,f,m),u=u.sibling;u!==null;)Bh(u,f,m),u=u.sibling}var Ji=!1,An=!1,Rx=!1,TI=typeof WeakSet=="function"?WeakSet:Set,Zn=null,AI=!1;function Dne(u,f){if(u=u.containerInfo,rS=ag,u=qO(u),Lv(u)){if("selectionStart"in u)var m={start:u.selectionStart,end:u.selectionEnd};else e:{m=(m=u.ownerDocument)&&m.defaultView||window;var v=m.getSelection&&m.getSelection();if(v&&v.rangeCount!==0){m=v.anchorNode;var E=v.anchorOffset,L=v.focusNode;v=v.focusOffset;try{m.nodeType,L.nodeType}catch{m=null;break e}var q=0,X=-1,J=-1,le=0,_e=0,Oe=u,me=null;t:for(;;){for(var ke;Oe!==m||E!==0&&Oe.nodeType!==3||(X=q+E),Oe!==L||v!==0&&Oe.nodeType!==3||(J=q+v),Oe.nodeType===3&&(q+=Oe.nodeValue.length),(ke=Oe.firstChild)!==null;)me=Oe,Oe=ke;for(;;){if(Oe===u)break t;if(me===m&&++le===E&&(X=q),me===L&&++_e===v&&(J=q),(ke=Oe.nextSibling)!==null)break;Oe=me,me=Oe.parentNode}Oe=ke}m=X===-1||J===-1?null:{start:X,end:J}}else m=null}m=m||{start:0,end:0}}else m=null;for(aS={focusedElem:u,selectionRange:m},ag=!1,Zn=f;Zn!==null;)if(f=Zn,u=f.child,(f.subtreeFlags&1028)!==0&&u!==null)u.return=f,Zn=u;else for(;Zn!==null;){switch(f=Zn,L=f.alternate,u=f.flags,f.tag){case 0:break;case 11:case 15:break;case 1:if(u&1024&&L!==null){u=void 0,m=f,E=L.memoizedProps,L=L.memoizedState,v=m.stateNode;try{var it=qs(m.type,E,m.elementType===m.type);u=v.getSnapshotBeforeUpdate(it,L),v.__reactInternalSnapshotBeforeUpdate=u}catch(kt){un(m,m.return,kt)}}break;case 3:if(u&1024){if(u=f.stateNode.containerInfo,m=u.nodeType,m===9)lS(u);else if(m===1)switch(u.nodeName){case"HEAD":case"HTML":case"BODY":lS(u);break;default:u.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(u&1024)throw Error(r(163))}if(u=f.sibling,u!==null){u.return=f.return,Zn=u;break}Zn=f.return}return it=AI,AI=!1,it}function RI(u,f,m){var v=m.flags;switch(m.tag){case 0:case 11:case 15:to(u,m),v&4&&Rd(5,m);break;case 1:if(to(u,m),v&4)if(u=m.stateNode,f===null)try{u.componentDidMount()}catch(X){un(m,m.return,X)}else{var E=qs(m.type,f.memoizedProps);f=f.memoizedState;try{u.componentDidUpdate(E,f,u.__reactInternalSnapshotBeforeUpdate)}catch(X){un(m,m.return,X)}}v&64&&wI(m),v&512&&Ys(m,m.return);break;case 3:if(to(u,m),v&64&&(v=m.updateQueue,v!==null)){if(u=null,m.child!==null)switch(m.child.tag){case 27:case 5:u=m.child.stateNode;break;case 1:u=m.child.stateNode}try{SI(v,u)}catch(X){un(m,m.return,X)}}break;case 26:to(u,m),v&512&&Ys(m,m.return);break;case 27:case 5:to(u,m),f===null&&v&4&&kI(m),v&512&&Ys(m,m.return);break;case 12:to(u,m);break;case 13:to(u,m),v&4&&OI(u,m);break;case 22:if(E=m.memoizedState!==null||Ji,!E){f=f!==null&&f.memoizedState!==null||An;var L=Ji,q=An;Ji=E,(An=f)&&!q?Wo(u,m,(m.subtreeFlags&8772)!==0):to(u,m),Ji=L,An=q}v&512&&(m.memoizedProps.mode==="manual"?Ys(m,m.return):ra(m,m.return));break;default:to(u,m)}}function NI(u){var f=u.alternate;f!==null&&(u.alternate=null,NI(f)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(f=u.stateNode,f!==null&&oe(f)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}var Pn=null,aa=!1;function eo(u,f,m){for(m=m.child;m!==null;)LI(u,f,m),m=m.sibling}function LI(u,f,m){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Nt,m)}catch{}switch(m.tag){case 26:An||ra(m,f),eo(u,f,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:An||ra(m,f);var v=Pn,E=aa;for(Pn=m.stateNode,eo(u,f,m),m=m.stateNode,f=m.attributes;f.length;)m.removeAttributeNode(f[0]);oe(m),Pn=v,aa=E;break;case 5:An||ra(m,f);case 6:E=Pn;var L=aa;if(Pn=null,eo(u,f,m),Pn=E,aa=L,Pn!==null)if(aa)try{u=Pn,v=m.stateNode,u.nodeType===8?u.parentNode.removeChild(v):u.removeChild(v)}catch(q){un(m,f,q)}else try{Pn.removeChild(m.stateNode)}catch(q){un(m,f,q)}break;case 18:Pn!==null&&(aa?(f=Pn,m=m.stateNode,f.nodeType===8?sS(f.parentNode,m):f.nodeType===1&&sS(f,m),Vd(f)):sS(Pn,m.stateNode));break;case 4:v=Pn,E=aa,Pn=m.stateNode.containerInfo,aa=!0,eo(u,f,m),Pn=v,aa=E;break;case 0:case 11:case 14:case 15:An||qo(2,m,f),An||qo(4,m,f),eo(u,f,m);break;case 1:An||(ra(m,f),v=m.stateNode,typeof v.componentWillUnmount=="function"&&EI(m,f,v)),eo(u,f,m);break;case 21:eo(u,f,m);break;case 22:An||ra(m,f),An=(v=An)||m.memoizedState!==null,eo(u,f,m),An=v;break;default:eo(u,f,m)}}function OI(u,f){if(f.memoizedState===null&&(u=f.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null))))try{Vd(u)}catch(m){un(f,f.return,m)}}function Ine(u){switch(u.tag){case 13:case 19:var f=u.stateNode;return f===null&&(f=u.stateNode=new TI),f;case 22:return u=u.stateNode,f=u._retryCache,f===null&&(f=u._retryCache=new TI),f;default:throw Error(r(435,u.tag))}}function Nx(u,f){var m=Ine(u);f.forEach(function(v){var E=Vne.bind(null,u,v);m.has(v)||(m.add(v),v.then(E,E))})}function Aa(u,f){var m=f.deletions;if(m!==null)for(var v=0;v<m.length;v++){var E=m[v],L=u,q=f,X=q;e:for(;X!==null;){switch(X.tag){case 27:case 5:Pn=X.stateNode,aa=!1;break e;case 3:Pn=X.stateNode.containerInfo,aa=!0;break e;case 4:Pn=X.stateNode.containerInfo,aa=!0;break e}X=X.return}if(Pn===null)throw Error(r(160));LI(L,q,E),Pn=null,aa=!1,L=E.alternate,L!==null&&(L.return=null),E.return=null}if(f.subtreeFlags&13878)for(f=f.child;f!==null;)DI(f,u),f=f.sibling}var Za=null;function DI(u,f){var m=u.alternate,v=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:Aa(f,u),Ra(u),v&4&&(qo(3,u,u.return),Rd(3,u),qo(5,u,u.return));break;case 1:Aa(f,u),Ra(u),v&512&&(An||m===null||ra(m,m.return)),v&64&&Ji&&(u=u.updateQueue,u!==null&&(v=u.callbacks,v!==null&&(m=u.shared.hiddenCallbacks,u.shared.hiddenCallbacks=m===null?v:m.concat(v))));break;case 26:var E=Za;if(Aa(f,u),Ra(u),v&512&&(An||m===null||ra(m,m.return)),v&4){var L=m!==null?m.memoizedState:null;if(v=u.memoizedState,m===null)if(v===null)if(u.stateNode===null){e:{v=u.type,m=u.memoizedProps,E=E.ownerDocument||E;t:switch(v){case"title":L=E.getElementsByTagName("title")[0],(!L||L[nt]||L[jn]||L.namespaceURI==="http://www.w3.org/2000/svg"||L.hasAttribute("itemprop"))&&(L=E.createElement(v),E.head.insertBefore(L,E.querySelector("head > title"))),lr(L,v,m),L[jn]=u,$t(L),v=L;break e;case"link":var q=kM("link","href",E).get(v+(m.href||""));if(q){for(var X=0;X<q.length;X++)if(L=q[X],L.getAttribute("href")===(m.href==null?null:m.href)&&L.getAttribute("rel")===(m.rel==null?null:m.rel)&&L.getAttribute("title")===(m.title==null?null:m.title)&&L.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){q.splice(X,1);break t}}L=E.createElement(v),lr(L,v,m),E.head.appendChild(L);break;case"meta":if(q=kM("meta","content",E).get(v+(m.content||""))){for(X=0;X<q.length;X++)if(L=q[X],L.getAttribute("content")===(m.content==null?null:""+m.content)&&L.getAttribute("name")===(m.name==null?null:m.name)&&L.getAttribute("property")===(m.property==null?null:m.property)&&L.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&L.getAttribute("charset")===(m.charSet==null?null:m.charSet)){q.splice(X,1);break t}}L=E.createElement(v),lr(L,v,m),E.head.appendChild(L);break;default:throw Error(r(468,v))}L[jn]=u,$t(L),v=L}u.stateNode=v}else _M(E,u.type,u.stateNode);else u.stateNode=EM(E,v,u.memoizedProps);else L!==v?(L===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):L.count--,v===null?_M(E,u.type,u.stateNode):EM(E,v,u.memoizedProps)):v===null&&u.stateNode!==null&&_I(u,u.memoizedProps,m.memoizedProps)}break;case 27:if(v&4&&u.alternate===null){E=u.stateNode,L=u.memoizedProps;try{for(var J=E.firstChild;J;){var le=J.nextSibling,_e=J.nodeName;J[nt]||_e==="HEAD"||_e==="BODY"||_e==="SCRIPT"||_e==="STYLE"||_e==="LINK"&&J.rel.toLowerCase()==="stylesheet"||E.removeChild(J),J=le}for(var Oe=u.type,me=E.attributes;me.length;)E.removeAttributeNode(me[0]);lr(E,Oe,L),E[jn]=u,E[yn]=L}catch(it){un(u,u.return,it)}}case 5:if(Aa(f,u),Ra(u),v&512&&(An||m===null||ra(m,m.return)),u.flags&32){E=u.stateNode;try{Kl(E,"")}catch(it){un(u,u.return,it)}}v&4&&u.stateNode!=null&&(E=u.memoizedProps,_I(u,E,m!==null?m.memoizedProps:E)),v&1024&&(Rx=!0);break;case 6:if(Aa(f,u),Ra(u),v&4){if(u.stateNode===null)throw Error(r(162));v=u.memoizedProps,m=u.stateNode;try{m.nodeValue=v}catch(it){un(u,u.return,it)}}break;case 3:if(tg=null,E=Za,Za=Jh(f.containerInfo),Aa(f,u),Za=E,Ra(u),v&4&&m!==null&&m.memoizedState.isDehydrated)try{Vd(f.containerInfo)}catch(it){un(u,u.return,it)}Rx&&(Rx=!1,II(u));break;case 4:v=Za,Za=Jh(u.stateNode.containerInfo),Aa(f,u),Ra(u),Za=v;break;case 12:Aa(f,u),Ra(u);break;case 13:Aa(f,u),Ra(u),u.child.flags&8192&&u.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(zx=ve()),v&4&&(v=u.updateQueue,v!==null&&(u.updateQueue=null,Nx(u,v)));break;case 22:if(v&512&&(An||m===null||ra(m,m.return)),J=u.memoizedState!==null,le=m!==null&&m.memoizedState!==null,_e=Ji,Oe=An,Ji=_e||J,An=Oe||le,Aa(f,u),An=Oe,Ji=_e,Ra(u),f=u.stateNode,f._current=u,f._visibility&=-3,f._visibility|=f._pendingVisibility&2,v&8192&&(f._visibility=J?f._visibility&-2:f._visibility|1,J&&(f=Ji||An,m===null||le||f||fc(u)),u.memoizedProps===null||u.memoizedProps.mode!=="manual"))e:for(m=null,f=u;;){if(f.tag===5||f.tag===26||f.tag===27){if(m===null){le=m=f;try{if(E=le.stateNode,J)L=E.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none";else{q=le.stateNode,X=le.memoizedProps.style;var ke=X!=null&&X.hasOwnProperty("display")?X.display:null;q.style.display=ke==null||typeof ke=="boolean"?"":(""+ke).trim()}}catch(it){un(le,le.return,it)}}}else if(f.tag===6){if(m===null){le=f;try{le.stateNode.nodeValue=J?"":le.memoizedProps}catch(it){un(le,le.return,it)}}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===u)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===u)break e;for(;f.sibling===null;){if(f.return===null||f.return===u)break e;m===f&&(m=null),f=f.return}m===f&&(m=null),f.sibling.return=f.return,f=f.sibling}v&4&&(v=u.updateQueue,v!==null&&(m=v.retryQueue,m!==null&&(v.retryQueue=null,Nx(u,m))));break;case 19:Aa(f,u),Ra(u),v&4&&(v=u.updateQueue,v!==null&&(u.updateQueue=null,Nx(u,v)));break;case 21:break;default:Aa(f,u),Ra(u)}}function Ra(u){var f=u.flags;if(f&2){try{if(u.tag!==27){e:{for(var m=u.return;m!==null;){if(CI(m)){var v=m;break e}m=m.return}throw Error(r(160))}switch(v.tag){case 27:var E=v.stateNode,L=Tx(u);Bh(u,L,E);break;case 5:var q=v.stateNode;v.flags&32&&(Kl(q,""),v.flags&=-33);var X=Tx(u);Bh(u,X,q);break;case 3:case 4:var J=v.stateNode.containerInfo,le=Tx(u);Ax(u,le,J);break;default:throw Error(r(161))}}}catch(_e){un(u,u.return,_e)}u.flags&=-3}f&4096&&(u.flags&=-4097)}function II(u){if(u.subtreeFlags&1024)for(u=u.child;u!==null;){var f=u;II(f),f.tag===5&&f.flags&1024&&f.stateNode.reset(),u=u.sibling}}function to(u,f){if(f.subtreeFlags&8772)for(f=f.child;f!==null;)RI(u,f.alternate,f),f=f.sibling}function fc(u){for(u=u.child;u!==null;){var f=u;switch(f.tag){case 0:case 11:case 14:case 15:qo(4,f,f.return),fc(f);break;case 1:ra(f,f.return);var m=f.stateNode;typeof m.componentWillUnmount=="function"&&EI(f,f.return,m),fc(f);break;case 26:case 27:case 5:ra(f,f.return),fc(f);break;case 22:ra(f,f.return),f.memoizedState===null&&fc(f);break;default:fc(f)}u=u.sibling}}function Wo(u,f,m){for(m=m&&(f.subtreeFlags&8772)!==0,f=f.child;f!==null;){var v=f.alternate,E=u,L=f,q=L.flags;switch(L.tag){case 0:case 11:case 15:Wo(E,L,m),Rd(4,L);break;case 1:if(Wo(E,L,m),v=L,E=v.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(le){un(v,v.return,le)}if(v=L,E=v.updateQueue,E!==null){var X=v.stateNode;try{var J=E.shared.hiddenCallbacks;if(J!==null)for(E.shared.hiddenCallbacks=null,E=0;E<J.length;E++)xI(J[E],X)}catch(le){un(v,v.return,le)}}m&&q&64&&wI(L),Ys(L,L.return);break;case 26:case 27:case 5:Wo(E,L,m),m&&v===null&&q&4&&kI(L),Ys(L,L.return);break;case 12:Wo(E,L,m);break;case 13:Wo(E,L,m),m&&q&4&&OI(E,L);break;case 22:L.memoizedState===null&&Wo(E,L,m),Ys(L,L.return);break;default:Wo(E,L,m)}f=f.sibling}}function Lx(u,f){var m=null;u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),u=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(u=f.memoizedState.cachePool.pool),u!==m&&(u!=null&&u.refCount++,m!=null&&vd(m))}function Ox(u,f){u=null,f.alternate!==null&&(u=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==u&&(f.refCount++,u!=null&&vd(u))}function Vo(u,f,m,v){if(f.subtreeFlags&10256)for(f=f.child;f!==null;)MI(u,f,m,v),f=f.sibling}function MI(u,f,m,v){var E=f.flags;switch(f.tag){case 0:case 11:case 15:Vo(u,f,m,v),E&2048&&Rd(9,f);break;case 3:Vo(u,f,m,v),E&2048&&(u=null,f.alternate!==null&&(u=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==u&&(f.refCount++,u!=null&&vd(u)));break;case 12:if(E&2048){Vo(u,f,m,v),u=f.stateNode;try{var L=f.memoizedProps,q=L.id,X=L.onPostCommit;typeof X=="function"&&X(q,f.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(J){un(f,f.return,J)}}else Vo(u,f,m,v);break;case 23:break;case 22:L=f.stateNode,f.memoizedState!==null?L._visibility&4?Vo(u,f,m,v):Nd(u,f):L._visibility&4?Vo(u,f,m,v):(L._visibility|=4,pc(u,f,m,v,(f.subtreeFlags&10256)!==0)),E&2048&&Lx(f.alternate,f);break;case 24:Vo(u,f,m,v),E&2048&&Ox(f.alternate,f);break;default:Vo(u,f,m,v)}}function pc(u,f,m,v,E){for(E=E&&(f.subtreeFlags&10256)!==0,f=f.child;f!==null;){var L=u,q=f,X=m,J=v,le=q.flags;switch(q.tag){case 0:case 11:case 15:pc(L,q,X,J,E),Rd(8,q);break;case 23:break;case 22:var _e=q.stateNode;q.memoizedState!==null?_e._visibility&4?pc(L,q,X,J,E):Nd(L,q):(_e._visibility|=4,pc(L,q,X,J,E)),E&&le&2048&&Lx(q.alternate,q);break;case 24:pc(L,q,X,J,E),E&&le&2048&&Ox(q.alternate,q);break;default:pc(L,q,X,J,E)}f=f.sibling}}function Nd(u,f){if(f.subtreeFlags&10256)for(f=f.child;f!==null;){var m=u,v=f,E=v.flags;switch(v.tag){case 22:Nd(m,v),E&2048&&Lx(v.alternate,v);break;case 24:Nd(m,v),E&2048&&Ox(v.alternate,v);break;default:Nd(m,v)}f=f.sibling}}var Ld=8192;function hc(u){if(u.subtreeFlags&Ld)for(u=u.child;u!==null;)FI(u),u=u.sibling}function FI(u){switch(u.tag){case 26:hc(u),u.flags&Ld&&u.memoizedState!==null&&wre(Za,u.memoizedState,u.memoizedProps);break;case 5:hc(u);break;case 3:case 4:var f=Za;Za=Jh(u.stateNode.containerInfo),hc(u),Za=f;break;case 22:u.memoizedState===null&&(f=u.alternate,f!==null&&f.memoizedState!==null?(f=Ld,Ld=16777216,hc(u),Ld=f):hc(u));break;default:hc(u)}}function PI(u){var f=u.alternate;if(f!==null&&(u=f.child,u!==null)){f.child=null;do f=u.sibling,u.sibling=null,u=f;while(u!==null)}}function Od(u){var f=u.deletions;if(u.flags&16){if(f!==null)for(var m=0;m<f.length;m++){var v=f[m];Zn=v,zI(v,u)}PI(u)}if(u.subtreeFlags&10256)for(u=u.child;u!==null;)BI(u),u=u.sibling}function BI(u){switch(u.tag){case 0:case 11:case 15:Od(u),u.flags&2048&&qo(9,u,u.return);break;case 3:Od(u);break;case 12:Od(u);break;case 22:var f=u.stateNode;u.memoizedState!==null&&f._visibility&4&&(u.return===null||u.return.tag!==13)?(f._visibility&=-5,zh(u)):Od(u);break;default:Od(u)}}function zh(u){var f=u.deletions;if(u.flags&16){if(f!==null)for(var m=0;m<f.length;m++){var v=f[m];Zn=v,zI(v,u)}PI(u)}for(u=u.child;u!==null;){switch(f=u,f.tag){case 0:case 11:case 15:qo(8,f,f.return),zh(f);break;case 22:m=f.stateNode,m._visibility&4&&(m._visibility&=-5,zh(f));break;default:zh(f)}u=u.sibling}}function zI(u,f){for(;Zn!==null;){var m=Zn;switch(m.tag){case 0:case 11:case 15:qo(8,m,f);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var v=m.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:vd(m.memoizedState.cache)}if(v=m.child,v!==null)v.return=m,Zn=v;else e:for(m=u;Zn!==null;){v=Zn;var E=v.sibling,L=v.return;if(NI(v),v===m){Zn=null;break e}if(E!==null){E.return=L,Zn=E;break e}Zn=L}}}function Mne(u,f,m,v){this.tag=u,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Na(u,f,m,v){return new Mne(u,f,m,v)}function Dx(u){return u=u.prototype,!(!u||!u.isReactComponent)}function Yo(u,f){var m=u.alternate;return m===null?(m=Na(u.tag,f,u.key,u.mode),m.elementType=u.elementType,m.type=u.type,m.stateNode=u.stateNode,m.alternate=u,u.alternate=m):(m.pendingProps=f,m.type=u.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=u.flags&31457280,m.childLanes=u.childLanes,m.lanes=u.lanes,m.child=u.child,m.memoizedProps=u.memoizedProps,m.memoizedState=u.memoizedState,m.updateQueue=u.updateQueue,f=u.dependencies,m.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},m.sibling=u.sibling,m.index=u.index,m.ref=u.ref,m.refCleanup=u.refCleanup,m}function $I(u,f){u.flags&=31457282;var m=u.alternate;return m===null?(u.childLanes=0,u.lanes=f,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=m.childLanes,u.lanes=m.lanes,u.child=m.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=m.memoizedProps,u.memoizedState=m.memoizedState,u.updateQueue=m.updateQueue,u.type=m.type,f=m.dependencies,u.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),u}function $h(u,f,m,v,E,L){var q=0;if(v=u,typeof u=="function")Dx(u)&&(q=1);else if(typeof u=="string")q=xre(u,m,Ee.current)?26:u==="html"||u==="head"||u==="body"?27:5;else e:switch(u){case l:return Ks(m.children,E,L,f);case c:q=8,E|=24;break;case d:return u=Na(12,m,f,E|2),u.elementType=d,u.lanes=L,u;case y:return u=Na(13,m,f,E),u.elementType=y,u.lanes=L,u;case x:return u=Na(19,m,f,E),u.elementType=x,u.lanes=L,u;case _:return jI(m,E,L,f);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case p:case g:q=10;break e;case h:q=9;break e;case b:q=11;break e;case w:q=14;break e;case S:q=16,v=null;break e}q=29,m=Error(r(130,u===null?"null":typeof u,"")),v=null}return f=Na(q,m,f,E),f.elementType=u,f.type=v,f.lanes=L,f}function Ks(u,f,m,v){return u=Na(7,u,v,f),u.lanes=m,u}function jI(u,f,m,v){u=Na(22,u,v,f),u.elementType=_,u.lanes=m;var E={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var L=E._current;if(L===null)throw Error(r(456));if(!(E._pendingVisibility&2)){var q=Fo(L,2);q!==null&&(E._pendingVisibility|=2,Rr(q,L,2))}},attach:function(){var L=E._current;if(L===null)throw Error(r(456));if(E._pendingVisibility&2){var q=Fo(L,2);q!==null&&(E._pendingVisibility&=-3,Rr(q,L,2))}}};return u.stateNode=E,u}function Ix(u,f,m){return u=Na(6,u,null,f),u.lanes=m,u}function Mx(u,f,m){return f=Na(4,u.children!==null?u.children:[],u.key,f),f.lanes=m,f.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},f}function no(u){u.flags|=4}function UI(u,f){if(f.type!=="stylesheet"||f.state.loading&4)u.flags&=-16777217;else if(u.flags|=16777216,!CM(f)){if(f=Ta.current,f!==null&&((Vt&4194176)===Vt?bi!==null:(Vt&62914560)!==Vt&&!(Vt&536870912)||f!==bi))throw md=$v,iD;u.flags|=8192}}function jh(u,f){f!==null&&(u.flags|=4),u.flags&16384&&(f=u.tag!==22?rr():536870912,u.lanes|=f,mc|=f)}function Dd(u,f){if(!Xt)switch(u.tailMode){case"hidden":f=u.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?u.tail=null:m.sibling=null;break;case"collapsed":m=u.tail;for(var v=null;m!==null;)m.alternate!==null&&(v=m),m=m.sibling;v===null?f||u.tail===null?u.tail=null:u.tail.sibling=null:v.sibling=null}}function Sn(u){var f=u.alternate!==null&&u.alternate.child===u.child,m=0,v=0;if(f)for(var E=u.child;E!==null;)m|=E.lanes|E.childLanes,v|=E.subtreeFlags&31457280,v|=E.flags&31457280,E.return=u,E=E.sibling;else for(E=u.child;E!==null;)m|=E.lanes|E.childLanes,v|=E.subtreeFlags,v|=E.flags,E.return=u,E=E.sibling;return u.subtreeFlags|=v,u.childLanes=m,f}function Fne(u,f,m){var v=f.pendingProps;switch(Bv(f),f.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sn(f),null;case 1:return Sn(f),null;case 3:return m=f.stateNode,v=null,u!==null&&(v=u.memoizedState.cache),f.memoizedState.cache!==v&&(f.flags|=2048),Qi(Hn),ee(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(u===null||u.child===null)&&(fd(f)?no(f):u===null||u.memoizedState.isDehydrated&&!(f.flags&256)||(f.flags|=1024,Xa!==null&&(Hx(Xa),Xa=null))),Sn(f),null;case 26:return m=f.memoizedState,u===null?(no(f),m!==null?(Sn(f),UI(f,m)):(Sn(f),f.flags&=-16777217)):m?m!==u.memoizedState?(no(f),Sn(f),UI(f,m)):(Sn(f),f.flags&=-16777217):(u.memoizedProps!==v&&no(f),Sn(f),f.flags&=-16777217),null;case 27:Ae(f),m=we.current;var E=f.type;if(u!==null&&f.stateNode!=null)u.memoizedProps!==v&&no(f);else{if(!v){if(f.stateNode===null)throw Error(r(166));return Sn(f),null}u=Ee.current,fd(f)?rD(f):(u=yM(E,v,m),f.stateNode=u,no(f))}return Sn(f),null;case 5:if(Ae(f),m=f.type,u!==null&&f.stateNode!=null)u.memoizedProps!==v&&no(f);else{if(!v){if(f.stateNode===null)throw Error(r(166));return Sn(f),null}if(u=Ee.current,fd(f))rD(f);else{switch(E=Qh(we.current),u){case 1:u=E.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:u=E.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":u=E.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":u=E.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":u=E.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof v.is=="string"?E.createElement("select",{is:v.is}):E.createElement("select"),v.multiple?u.multiple=!0:v.size&&(u.size=v.size);break;default:u=typeof v.is=="string"?E.createElement(m,{is:v.is}):E.createElement(m)}}u[jn]=f,u[yn]=v;e:for(E=f.child;E!==null;){if(E.tag===5||E.tag===6)u.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===f)break e;for(;E.sibling===null;){if(E.return===null||E.return===f)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}f.stateNode=u;e:switch(lr(u,m,v),m){case"button":case"input":case"select":case"textarea":u=!!v.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&no(f)}}return Sn(f),f.flags&=-16777217,null;case 6:if(u&&f.stateNode!=null)u.memoizedProps!==v&&no(f);else{if(typeof v!="string"&&f.stateNode===null)throw Error(r(166));if(u=we.current,fd(f)){if(u=f.stateNode,m=f.memoizedProps,v=null,E=Ar,E!==null)switch(E.tag){case 27:case 5:v=E.memoizedProps}u[jn]=f,u=!!(u.nodeValue===m||v!==null&&v.suppressHydrationWarning===!0||fM(u.nodeValue,m)),u||zs(f)}else u=Qh(u).createTextNode(v),u[jn]=f,f.stateNode=u}return Sn(f),null;case 13:if(v=f.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(E=fd(f),v!==null&&v.dehydrated!==null){if(u===null){if(!E)throw Error(r(318));if(E=f.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[jn]=f}else pd(),!(f.flags&128)&&(f.memoizedState=null),f.flags|=4;Sn(f),E=!1}else Xa!==null&&(Hx(Xa),Xa=null),E=!0;if(!E)return f.flags&256?(Yi(f),f):(Yi(f),null)}if(Yi(f),f.flags&128)return f.lanes=m,f;if(m=v!==null,u=u!==null&&u.memoizedState!==null,m){v=f.child,E=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(E=v.alternate.memoizedState.cachePool.pool);var L=null;v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(L=v.memoizedState.cachePool.pool),L!==E&&(v.flags|=2048)}return m!==u&&m&&(f.child.flags|=8192),jh(f,f.updateQueue),Sn(f),null;case 4:return ee(),u===null&&eS(f.stateNode.containerInfo),Sn(f),null;case 10:return Qi(f.type),Sn(f),null;case 19:if(Te(Un),E=f.memoizedState,E===null)return Sn(f),null;if(v=(f.flags&128)!==0,L=E.rendering,L===null)if(v)Dd(E,!1);else{if(Rn!==0||u!==null&&u.flags&128)for(u=f.child;u!==null;){if(L=kh(u),L!==null){for(f.flags|=128,Dd(E,!1),u=L.updateQueue,f.updateQueue=u,jh(f,u),f.subtreeFlags=0,u=m,m=f.child;m!==null;)$I(m,u),m=m.sibling;return ne(Un,Un.current&1|2),f.child}u=u.sibling}E.tail!==null&&ve()>Uh&&(f.flags|=128,v=!0,Dd(E,!1),f.lanes=4194304)}else{if(!v)if(u=kh(L),u!==null){if(f.flags|=128,v=!0,u=u.updateQueue,f.updateQueue=u,jh(f,u),Dd(E,!0),E.tail===null&&E.tailMode==="hidden"&&!L.alternate&&!Xt)return Sn(f),null}else 2*ve()-E.renderingStartTime>Uh&&m!==536870912&&(f.flags|=128,v=!0,Dd(E,!1),f.lanes=4194304);E.isBackwards?(L.sibling=f.child,f.child=L):(u=E.last,u!==null?u.sibling=L:f.child=L,E.last=L)}return E.tail!==null?(f=E.tail,E.rendering=f,E.tail=f.sibling,E.renderingStartTime=ve(),f.sibling=null,u=Un.current,ne(Un,v?u&1|2:u&1),f):(Sn(f),null);case 22:case 23:return Yi(f),Uv(),v=f.memoizedState!==null,u!==null?u.memoizedState!==null!==v&&(f.flags|=8192):v&&(f.flags|=8192),v?m&536870912&&!(f.flags&128)&&(Sn(f),f.subtreeFlags&6&&(f.flags|=8192)):Sn(f),m=f.updateQueue,m!==null&&jh(f,m.retryQueue),m=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),v=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(v=f.memoizedState.cachePool.pool),v!==m&&(f.flags|=2048),u!==null&&Te(js),null;case 24:return m=null,u!==null&&(m=u.memoizedState.cache),f.memoizedState.cache!==m&&(f.flags|=2048),Qi(Hn),Sn(f),null;case 25:return null}throw Error(r(156,f.tag))}function Pne(u,f){switch(Bv(f),f.tag){case 1:return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 3:return Qi(Hn),ee(),u=f.flags,u&65536&&!(u&128)?(f.flags=u&-65537|128,f):null;case 26:case 27:case 5:return Ae(f),null;case 13:if(Yi(f),u=f.memoizedState,u!==null&&u.dehydrated!==null){if(f.alternate===null)throw Error(r(340));pd()}return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 19:return Te(Un),null;case 4:return ee(),null;case 10:return Qi(f.type),null;case 22:case 23:return Yi(f),Uv(),u!==null&&Te(js),u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 24:return Qi(Hn),null;case 25:return null;default:return null}}function HI(u,f){switch(Bv(f),f.tag){case 3:Qi(Hn),ee();break;case 26:case 27:case 5:Ae(f);break;case 4:ee();break;case 13:Yi(f);break;case 19:Te(Un);break;case 10:Qi(f.type);break;case 22:case 23:Yi(f),Uv(),u!==null&&Te(js);break;case 24:Qi(Hn)}}var Bne={getCacheForType:function(u){var f=yr(Hn),m=f.data.get(u);return m===void 0&&(m=u(),f.data.set(u,m)),m}},zne=typeof WeakMap=="function"?WeakMap:Map,wn=0,pn=null,It=null,Vt=0,hn=0,ia=null,ro=!1,gc=!1,Fx=!1,ao=0,Rn=0,Ko=0,Xs=0,Px=0,La=0,mc=0,Id=null,vi=null,Bx=!1,zx=0,Uh=1/0,Hh=null,Xo=null,Gh=!1,Zs=null,Md=0,$x=0,jx=null,Fd=0,Ux=null;function oa(){if(wn&2&&Vt!==0)return Vt&-Vt;if(D.T!==null){var u=sc;return u!==0?u:Xx()}return nd()}function GI(){La===0&&(La=!(Vt&536870912)||Xt?rn():536870912);var u=Ta.current;return u!==null&&(u.flags|=32),La}function Rr(u,f,m){(u===pn&&hn===2||u.cancelPendingCommit!==null)&&(bc(u,0),io(u,Vt,La,!1)),ar(u,m),(!(wn&2)||u!==pn)&&(u===pn&&(!(wn&2)&&(Xs|=m),Rn===4&&io(u,Vt,La,!1)),xi(u))}function qI(u,f,m){if(wn&6)throw Error(r(327));var v=!m&&(f&60)===0&&(f&u.expiredLanes)===0||Ge(u,f),E=v?Une(u,f):Wx(u,f,!0),L=v;do{if(E===0){gc&&!v&&io(u,f,0,!1);break}else if(E===6)io(u,f,0,!ro);else{if(m=u.current.alternate,L&&!$ne(m)){E=Wx(u,f,!1),L=!1;continue}if(E===2){if(L=f,u.errorRecoveryDisabledLanes&L)var q=0;else q=u.pendingLanes&-536870913,q=q!==0?q:q&536870912?536870912:0;if(q!==0){f=q;e:{var X=u;E=Id;var J=X.current.memoizedState.isDehydrated;if(J&&(bc(X,q).flags|=256),q=Wx(X,q,!1),q!==2){if(Fx&&!J){X.errorRecoveryDisabledLanes|=L,Xs|=L,E=4;break e}L=vi,vi=E,L!==null&&Hx(L)}E=q}if(L=!1,E!==2)continue}}if(E===1){bc(u,0),io(u,f,0,!0);break}e:{switch(v=u,E){case 0:case 1:throw Error(r(345));case 4:if((f&4194176)===f){io(v,f,La,!ro);break e}break;case 2:vi=null;break;case 3:case 5:break;default:throw Error(r(329))}if(v.finishedWork=m,v.finishedLanes=f,(f&62914560)===f&&(L=zx+300-ve(),10<L)){if(io(v,f,La,!ro),Ya(v,0)!==0)break e;v.timeoutHandle=gM(WI.bind(null,v,m,vi,Hh,Bx,f,La,Xs,mc,ro,2,-0,0),L);break e}WI(v,m,vi,Hh,Bx,f,La,Xs,mc,ro,0,-0,0)}}break}while(!0);xi(u)}function Hx(u){vi===null?vi=u:vi.push.apply(vi,u)}function WI(u,f,m,v,E,L,q,X,J,le,_e,Oe,me){var ke=f.subtreeFlags;if((ke&8192||(ke&16785408)===16785408)&&(Ud={stylesheets:null,count:0,unsuspend:Sre},FI(f),f=Ere(),f!==null)){u.cancelPendingCommit=f(JI.bind(null,u,m,v,E,q,X,J,1,Oe,me)),io(u,L,q,!le);return}JI(u,m,v,E,q,X,J,_e,Oe,me)}function $ne(u){for(var f=u;;){var m=f.tag;if((m===0||m===11||m===15)&&f.flags&16384&&(m=f.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var v=0;v<m.length;v++){var E=m[v],L=E.getSnapshot;E=E.value;try{if(!na(L(),E))return!1}catch{return!1}}if(m=f.child,f.subtreeFlags&16384&&m!==null)m.return=f,f=m;else{if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function io(u,f,m,v){f&=~Px,f&=~Xs,u.suspendedLanes|=f,u.pingedLanes&=~f,v&&(u.warmLanes|=f),v=u.expirationTimes;for(var E=f;0<E;){var L=31-zt(E),q=1<<L;v[L]=-1,E&=~q}m!==0&&br(u,m,f)}function qh(){return wn&6?!0:(Pd(0),!1)}function Gx(){if(It!==null){if(hn===0)var u=It.return;else u=It,Zi=Ws=null,Xv(u),ic=null,bd=0,u=It;for(;u!==null;)HI(u.alternate,u),u=u.return;It=null}}function bc(u,f){u.finishedWork=null,u.finishedLanes=0;var m=u.timeoutHandle;m!==-1&&(u.timeoutHandle=-1,ire(m)),m=u.cancelPendingCommit,m!==null&&(u.cancelPendingCommit=null,m()),Gx(),pn=u,It=m=Yo(u.current,null),Vt=f,hn=0,ia=null,ro=!1,gc=Ge(u,f),Fx=!1,mc=La=Px=Xs=Ko=Rn=0,vi=Id=null,Bx=!1,f&8&&(f|=f&32);var v=u.entangledLanes;if(v!==0)for(u=u.entanglements,v&=f;0<v;){var E=31-zt(v),L=1<<E;f|=u[E],v&=~L}return ao=f,gh(),m}function VI(u,f){Lt=null,D.H=yi,f===gd?(f=lD(),hn=3):f===iD?(f=lD(),hn=4):hn=f===oI?8:f!==null&&typeof f=="object"&&typeof f.then=="function"?6:1,ia=f,It===null&&(Rn=1,Mh(u,ka(f,u.current)))}function YI(){var u=D.H;return D.H=yi,u===null?yi:u}function KI(){var u=D.A;return D.A=Bne,u}function qx(){Rn=4,ro||(Vt&4194176)!==Vt&&Ta.current!==null||(gc=!0),!(Ko&134217727)&&!(Xs&134217727)||pn===null||io(pn,Vt,La,!1)}function Wx(u,f,m){var v=wn;wn|=2;var E=YI(),L=KI();(pn!==u||Vt!==f)&&(Hh=null,bc(u,f)),f=!1;var q=Rn;e:do try{if(hn!==0&&It!==null){var X=It,J=ia;switch(hn){case 8:Gx(),q=6;break e;case 3:case 2:case 6:Ta.current===null&&(f=!0);var le=hn;if(hn=0,ia=null,yc(u,X,J,le),m&&gc){q=0;break e}break;default:le=hn,hn=0,ia=null,yc(u,X,J,le)}}jne(),q=Rn;break}catch(_e){VI(u,_e)}while(!0);return f&&u.shellSuspendCounter++,Zi=Ws=null,wn=v,D.H=E,D.A=L,It===null&&(pn=null,Vt=0,gh()),q}function jne(){for(;It!==null;)XI(It)}function Une(u,f){var m=wn;wn|=2;var v=YI(),E=KI();pn!==u||Vt!==f?(Hh=null,Uh=ve()+500,bc(u,f)):gc=Ge(u,f);e:do try{if(hn!==0&&It!==null){f=It;var L=ia;t:switch(hn){case 1:hn=0,ia=null,yc(u,f,L,1);break;case 2:if(oD(L)){hn=0,ia=null,ZI(f);break}f=function(){hn===2&&pn===u&&(hn=7),xi(u)},L.then(f,f);break e;case 3:hn=7;break e;case 4:hn=5;break e;case 7:oD(L)?(hn=0,ia=null,ZI(f)):(hn=0,ia=null,yc(u,f,L,7));break;case 5:var q=null;switch(It.tag){case 26:q=It.memoizedState;case 5:case 27:var X=It;if(!q||CM(q)){hn=0,ia=null;var J=X.sibling;if(J!==null)It=J;else{var le=X.return;le!==null?(It=le,Wh(le)):It=null}break t}}hn=0,ia=null,yc(u,f,L,5);break;case 6:hn=0,ia=null,yc(u,f,L,6);break;case 8:Gx(),Rn=6;break e;default:throw Error(r(462))}}Hne();break}catch(_e){VI(u,_e)}while(!0);return Zi=Ws=null,D.H=v,D.A=E,wn=m,It!==null?0:(pn=null,Vt=0,gh(),Rn)}function Hne(){for(;It!==null&&!Ve();)XI(It)}function XI(u){var f=yI(u.alternate,u,ao);u.memoizedProps=u.pendingProps,f===null?Wh(u):It=f}function ZI(u){var f=u,m=f.alternate;switch(f.tag){case 15:case 0:f=fI(m,f,f.pendingProps,f.type,void 0,Vt);break;case 11:f=fI(m,f,f.pendingProps,f.type.render,f.ref,Vt);break;case 5:Xv(f);default:HI(m,f),f=It=$I(f,ao),f=yI(m,f,ao)}u.memoizedProps=u.pendingProps,f===null?Wh(u):It=f}function yc(u,f,m,v){Zi=Ws=null,Xv(f),ic=null,bd=0;var E=f.return;try{if(Lne(u,E,f,m,Vt)){Rn=1,Mh(u,ka(m,u.current)),It=null;return}}catch(L){if(E!==null)throw It=E,L;Rn=1,Mh(u,ka(m,u.current)),It=null;return}f.flags&32768?(Xt||v===1?u=!0:gc||Vt&536870912?u=!1:(ro=u=!0,(v===2||v===3||v===6)&&(v=Ta.current,v!==null&&v.tag===13&&(v.flags|=16384))),QI(f,u)):Wh(f)}function Wh(u){var f=u;do{if(f.flags&32768){QI(f,ro);return}u=f.return;var m=Fne(f.alternate,f,ao);if(m!==null){It=m;return}if(f=f.sibling,f!==null){It=f;return}It=f=u}while(f!==null);Rn===0&&(Rn=5)}function QI(u,f){do{var m=Pne(u.alternate,u);if(m!==null){m.flags&=32767,It=m;return}if(m=u.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!f&&(u=u.sibling,u!==null)){It=u;return}It=u=m}while(u!==null);Rn=6,It=null}function JI(u,f,m,v,E,L,q,X,J,le){var _e=D.T,Oe=Z.p;try{Z.p=2,D.T=null,Gne(u,f,m,v,Oe,E,L,q,X,J,le)}finally{D.T=_e,Z.p=Oe}}function Gne(u,f,m,v,E,L,q,X){do vc();while(Zs!==null);if(wn&6)throw Error(r(327));var J=u.finishedWork;if(v=u.finishedLanes,J===null)return null;if(u.finishedWork=null,u.finishedLanes=0,J===u.current)throw Error(r(177));u.callbackNode=null,u.callbackPriority=0,u.cancelPendingCommit=null;var le=J.lanes|J.childLanes;if(le|=Mv,ya(u,v,le,L,q,X),u===pn&&(It=pn=null,Vt=0),!(J.subtreeFlags&10256)&&!(J.flags&10256)||Gh||(Gh=!0,$x=le,jx=m,Yne(Me,function(){return vc(),null})),m=(J.flags&15990)!==0,J.subtreeFlags&15990||m?(m=D.T,D.T=null,L=Z.p,Z.p=2,q=wn,wn|=4,Dne(u,J),DI(J,u),hne(aS,u.containerInfo),ag=!!rS,aS=rS=null,u.current=J,RI(u,J.alternate,J),We(),wn=q,Z.p=L,D.T=m):u.current=J,Gh?(Gh=!1,Zs=u,Md=v):eM(u,le),le=u.pendingLanes,le===0&&(Xo=null),Bt(J.stateNode),xi(u),f!==null)for(E=u.onRecoverableError,J=0;J<f.length;J++)le=f[J],E(le.value,{componentStack:le.stack});return Md&3&&vc(),le=u.pendingLanes,v&4194218&&le&42?u===Ux?Fd++:(Fd=0,Ux=u):Fd=0,Pd(0),null}function eM(u,f){(u.pooledCacheLanes&=f)===0&&(f=u.pooledCache,f!=null&&(u.pooledCache=null,vd(f)))}function vc(){if(Zs!==null){var u=Zs,f=$x;$x=0;var m=Ds(Md),v=D.T,E=Z.p;try{if(Z.p=32>m?32:m,D.T=null,Zs===null)var L=!1;else{m=jx,jx=null;var q=Zs,X=Md;if(Zs=null,Md=0,wn&6)throw Error(r(331));var J=wn;if(wn|=4,BI(q.current),MI(q,q.current,X,m),wn=J,Pd(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Nt,q)}catch{}L=!0}return L}finally{Z.p=E,D.T=v,eM(u,f)}}return!1}function tM(u,f,m){f=ka(m,f),f=ux(u.stateNode,f,2),u=Go(u,f,2),u!==null&&(ar(u,2),xi(u))}function un(u,f,m){if(u.tag===3)tM(u,u,m);else for(;f!==null;){if(f.tag===3){tM(f,u,m);break}else if(f.tag===1){var v=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Xo===null||!Xo.has(v))){u=ka(m,u),m=aI(2),v=Go(f,m,2),v!==null&&(iI(m,v,f,u),ar(v,2),xi(v));break}}f=f.return}}function Vx(u,f,m){var v=u.pingCache;if(v===null){v=u.pingCache=new zne;var E=new Set;v.set(f,E)}else E=v.get(f),E===void 0&&(E=new Set,v.set(f,E));E.has(m)||(Fx=!0,E.add(m),u=qne.bind(null,u,f,m),f.then(u,u))}function qne(u,f,m){var v=u.pingCache;v!==null&&v.delete(f),u.pingedLanes|=u.suspendedLanes&m,u.warmLanes&=~m,pn===u&&(Vt&m)===m&&(Rn===4||Rn===3&&(Vt&62914560)===Vt&&300>ve()-zx?!(wn&2)&&bc(u,0):Px|=m,mc===Vt&&(mc=0)),xi(u)}function nM(u,f){f===0&&(f=rr()),u=Fo(u,f),u!==null&&(ar(u,f),xi(u))}function Wne(u){var f=u.memoizedState,m=0;f!==null&&(m=f.retryLane),nM(u,m)}function Vne(u,f){var m=0;switch(u.tag){case 13:var v=u.stateNode,E=u.memoizedState;E!==null&&(m=E.retryLane);break;case 19:v=u.stateNode;break;case 22:v=u.stateNode._retryCache;break;default:throw Error(r(314))}v!==null&&v.delete(f),nM(u,m)}function Yne(u,f){return Ce(u,f)}var Vh=null,xc=null,Yx=!1,Yh=!1,Kx=!1,Qs=0;function xi(u){u!==xc&&u.next===null&&(xc===null?Vh=xc=u:xc=xc.next=u),Yh=!0,Yx||(Yx=!0,Xne(Kne))}function Pd(u,f){if(!Kx&&Yh){Kx=!0;do for(var m=!1,v=Vh;v!==null;){if(u!==0){var E=v.pendingLanes;if(E===0)var L=0;else{var q=v.suspendedLanes,X=v.pingedLanes;L=(1<<31-zt(42|u)+1)-1,L&=E&~(q&~X),L=L&201326677?L&201326677|1:L?L|2:0}L!==0&&(m=!0,iM(v,L))}else L=Vt,L=Ya(v,v===pn?L:0),!(L&3)||Ge(v,L)||(m=!0,iM(v,L));v=v.next}while(m);Kx=!1}}function Kne(){Yh=Yx=!1;var u=0;Qs!==0&&(are()&&(u=Qs),Qs=0);for(var f=ve(),m=null,v=Vh;v!==null;){var E=v.next,L=rM(v,f);L===0?(v.next=null,m===null?Vh=E:m.next=E,E===null&&(xc=m)):(m=v,(u!==0||L&3)&&(Yh=!0)),v=E}Pd(u)}function rM(u,f){for(var m=u.suspendedLanes,v=u.pingedLanes,E=u.expirationTimes,L=u.pendingLanes&-62914561;0<L;){var q=31-zt(L),X=1<<q,J=E[q];J===-1?(!(X&m)||X&v)&&(E[q]=At(X,f)):J<=f&&(u.expiredLanes|=X),L&=~X}if(f=pn,m=Vt,m=Ya(u,u===f?m:0),v=u.callbackNode,m===0||u===f&&hn===2||u.cancelPendingCommit!==null)return v!==null&&v!==null&&ue(v),u.callbackNode=null,u.callbackPriority=0;if(!(m&3)||Ge(u,m)){if(f=m&-m,f===u.callbackPriority)return f;switch(v!==null&&ue(v),Ds(m)){case 2:case 8:m=ge;break;case 32:m=Me;break;case 268435456:m=tt;break;default:m=Me}return v=aM.bind(null,u),m=Ce(m,v),u.callbackPriority=f,u.callbackNode=m,f}return v!==null&&v!==null&&ue(v),u.callbackPriority=2,u.callbackNode=null,2}function aM(u,f){var m=u.callbackNode;if(vc()&&u.callbackNode!==m)return null;var v=Vt;return v=Ya(u,u===pn?v:0),v===0?null:(qI(u,v,f),rM(u,ve()),u.callbackNode!=null&&u.callbackNode===m?aM.bind(null,u):null)}function iM(u,f){if(vc())return null;qI(u,f,!0)}function Xne(u){ore(function(){wn&6?Ce(ae,u):u()})}function Xx(){return Qs===0&&(Qs=rn()),Qs}function oM(u){return u==null||typeof u=="symbol"||typeof u=="boolean"?null:typeof u=="function"?u:lh(""+u)}function sM(u,f){var m=f.ownerDocument.createElement("input");return m.name=f.name,m.value=f.value,u.id&&m.setAttribute("form",u.id),f.parentNode.insertBefore(m,f),u=new FormData(u),m.parentNode.removeChild(m),u}function Zne(u,f,m,v,E){if(f==="submit"&&m&&m.stateNode===E){var L=oM((E[yn]||null).action),q=v.submitter;q&&(f=(f=q[yn]||null)?oM(f.formAction):q.getAttribute("formAction"),f!==null&&(L=f,q=null));var X=new fh("action","action",null,v,E);u.push({event:X,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Qs!==0){var J=q?sM(E,q):new FormData(E);ix(m,{pending:!0,data:J,method:E.method,action:L},null,J)}}else typeof L=="function"&&(X.preventDefault(),J=q?sM(E,q):new FormData(E),ix(m,{pending:!0,data:J,method:E.method,action:L},L,J))},currentTarget:E}]})}}for(var Zx=0;Zx<JO.length;Zx++){var Qx=JO[Zx],Qne=Qx.toLowerCase(),Jne=Qx[0].toUpperCase()+Qx.slice(1);Ka(Qne,"on"+Jne)}Ka(YO,"onAnimationEnd"),Ka(KO,"onAnimationIteration"),Ka(XO,"onAnimationStart"),Ka("dblclick","onDoubleClick"),Ka("focusin","onFocus"),Ka("focusout","onBlur"),Ka(mne,"onTransitionRun"),Ka(bne,"onTransitionStart"),Ka(yne,"onTransitionCancel"),Ka(ZO,"onTransitionEnd"),Tn("onMouseEnter",["mouseout","mouseover"]),Tn("onMouseLeave",["mouseout","mouseover"]),Tn("onPointerEnter",["pointerout","pointerover"]),Tn("onPointerLeave",["pointerout","pointerover"]),ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ta("onBeforeInput",["compositionend","keypress","textInput","paste"]),ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ere=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bd));function lM(u,f){f=(f&4)!==0;for(var m=0;m<u.length;m++){var v=u[m],E=v.event;v=v.listeners;e:{var L=void 0;if(f)for(var q=v.length-1;0<=q;q--){var X=v[q],J=X.instance,le=X.currentTarget;if(X=X.listener,J!==L&&E.isPropagationStopped())break e;L=X,E.currentTarget=le;try{L(E)}catch(_e){Ih(_e)}E.currentTarget=null,L=J}else for(q=0;q<v.length;q++){if(X=v[q],J=X.instance,le=X.currentTarget,X=X.listener,J!==L&&E.isPropagationStopped())break e;L=X,E.currentTarget=le;try{L(E)}catch(_e){Ih(_e)}E.currentTarget=null,L=J}}}}function qt(u,f){var m=f[Vl];m===void 0&&(m=f[Vl]=new Set);var v=u+"__bubble";m.has(v)||(cM(f,u,2,!1),m.add(v))}function Jx(u,f,m){var v=0;f&&(v|=4),cM(m,u,v,f)}var Kh="_reactListening"+Math.random().toString(36).slice(2);function eS(u){if(!u[Kh]){u[Kh]=!0,ir.forEach(function(m){m!=="selectionchange"&&(ere.has(m)||Jx(m,!1,u),Jx(m,!0,u))});var f=u.nodeType===9?u:u.ownerDocument;f===null||f[Kh]||(f[Kh]=!0,Jx("selectionchange",!1,f))}}function cM(u,f,m,v){switch(OM(f)){case 2:var E=Cre;break;case 8:E=Tre;break;default:E=pS}m=E.bind(null,f,m,u),E=void 0,!wv||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(E=!0),v?E!==void 0?u.addEventListener(f,m,{capture:!0,passive:E}):u.addEventListener(f,m,!0):E!==void 0?u.addEventListener(f,m,{passive:E}):u.addEventListener(f,m,!1)}function tS(u,f,m,v,E){var L=v;if(!(f&1)&&!(f&2)&&v!==null)e:for(;;){if(v===null)return;var q=v.tag;if(q===3||q===4){var X=v.stateNode.containerInfo;if(X===E||X.nodeType===8&&X.parentNode===E)break;if(q===4)for(q=v.return;q!==null;){var J=q.tag;if((J===3||J===4)&&(J=q.stateNode.containerInfo,J===E||J.nodeType===8&&J.parentNode===E))return;q=q.return}for(;X!==null;){if(q=Fe(X),q===null)return;if(J=q.tag,J===5||J===6||J===26||J===27){v=L=q;continue e}X=X.parentNode}}v=v.return}kO(function(){var le=L,_e=xv(m),Oe=[];e:{var me=QO.get(u);if(me!==void 0){var ke=fh,it=u;switch(u){case"keypress":if(uh(m)===0)break e;case"keydown":case"keyup":ke=Vte;break;case"focusin":it="focus",ke=Cv;break;case"focusout":it="blur",ke=Cv;break;case"beforeblur":case"afterblur":ke=Cv;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ke=TO;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ke=Mte;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ke=Xte;break;case YO:case KO:case XO:ke=Bte;break;case ZO:ke=Qte;break;case"scroll":case"scrollend":ke=Dte;break;case"wheel":ke=ene;break;case"copy":case"cut":case"paste":ke=$te;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ke=RO;break;case"toggle":case"beforetoggle":ke=nne}var kt=(f&4)!==0,Nn=!kt&&(u==="scroll"||u==="scrollend"),de=kt?me!==null?me+"Capture":null:me;kt=[];for(var se=le,pe;se!==null;){var Ne=se;if(pe=Ne.stateNode,Ne=Ne.tag,Ne!==5&&Ne!==26&&Ne!==27||pe===null||de===null||(Ne=rd(se,de),Ne!=null&&kt.push(zd(se,Ne,pe))),Nn)break;se=se.return}0<kt.length&&(me=new ke(me,it,null,m,_e),Oe.push({event:me,listeners:kt}))}}if(!(f&7)){e:{if(me=u==="mouseover"||u==="pointerover",ke=u==="mouseout"||u==="pointerout",me&&m!==vv&&(it=m.relatedTarget||m.fromElement)&&(Fe(it)||it[Gi]))break e;if((ke||me)&&(me=_e.window===_e?_e:(me=_e.ownerDocument)?me.defaultView||me.parentWindow:window,ke?(it=m.relatedTarget||m.toElement,ke=le,it=it?Fe(it):null,it!==null&&(Nn=M(it),kt=it.tag,it!==Nn||kt!==5&&kt!==27&&kt!==6)&&(it=null)):(ke=null,it=le),ke!==it)){if(kt=TO,Ne="onMouseLeave",de="onMouseEnter",se="mouse",(u==="pointerout"||u==="pointerover")&&(kt=RO,Ne="onPointerLeave",de="onPointerEnter",se="pointer"),Nn=ke==null?me:Jt(ke),pe=it==null?me:Jt(it),me=new kt(Ne,se+"leave",ke,m,_e),me.target=Nn,me.relatedTarget=pe,Ne=null,Fe(_e)===le&&(kt=new kt(de,se+"enter",it,m,_e),kt.target=pe,kt.relatedTarget=Nn,Ne=kt),Nn=Ne,ke&&it)t:{for(kt=ke,de=it,se=0,pe=kt;pe;pe=Sc(pe))se++;for(pe=0,Ne=de;Ne;Ne=Sc(Ne))pe++;for(;0<se-pe;)kt=Sc(kt),se--;for(;0<pe-se;)de=Sc(de),pe--;for(;se--;){if(kt===de||de!==null&&kt===de.alternate)break t;kt=Sc(kt),de=Sc(de)}kt=null}else kt=null;ke!==null&&uM(Oe,me,ke,kt,!1),it!==null&&Nn!==null&&uM(Oe,Nn,it,kt,!0)}}e:{if(me=le?Jt(le):window,ke=me.nodeName&&me.nodeName.toLowerCase(),ke==="select"||ke==="input"&&me.type==="file")var Xe=PO;else if(MO(me))if(BO)Xe=fne;else{Xe=une;var Ot=cne}else ke=me.nodeName,!ke||ke.toLowerCase()!=="input"||me.type!=="checkbox"&&me.type!=="radio"?le&&yv(le.elementType)&&(Xe=PO):Xe=dne;if(Xe&&(Xe=Xe(u,le))){FO(Oe,Xe,m,_e);break e}Ot&&Ot(u,me,le),u==="focusout"&&le&&me.type==="number"&&le.memoizedProps.value!=null&&bv(me,"number",me.value)}switch(Ot=le?Jt(le):window,u){case"focusin":(MO(Ot)||Ot.contentEditable==="true")&&(Jl=Ot,Ov=le,dd=null);break;case"focusout":dd=Ov=Jl=null;break;case"mousedown":Dv=!0;break;case"contextmenu":case"mouseup":case"dragend":Dv=!1,WO(Oe,m,_e);break;case"selectionchange":if(gne)break;case"keydown":case"keyup":WO(Oe,m,_e)}var dt;if(Av)e:{switch(u){case"compositionstart":var gt="onCompositionStart";break e;case"compositionend":gt="onCompositionEnd";break e;case"compositionupdate":gt="onCompositionUpdate";break e}gt=void 0}else Ql?DO(u,m)&&(gt="onCompositionEnd"):u==="keydown"&&m.keyCode===229&&(gt="onCompositionStart");gt&&(NO&&m.locale!=="ko"&&(Ql||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Ql&&(dt=_O()):(Mo=_e,Ev="value"in Mo?Mo.value:Mo.textContent,Ql=!0)),Ot=Xh(le,gt),0<Ot.length&&(gt=new AO(gt,u,null,m,_e),Oe.push({event:gt,listeners:Ot}),dt?gt.data=dt:(dt=IO(m),dt!==null&&(gt.data=dt)))),(dt=ane?ine(u,m):one(u,m))&&(gt=Xh(le,"onBeforeInput"),0<gt.length&&(Ot=new AO("onBeforeInput","beforeinput",null,m,_e),Oe.push({event:Ot,listeners:gt}),Ot.data=dt)),Zne(Oe,u,le,m,_e)}lM(Oe,f)})}function zd(u,f,m){return{instance:u,listener:f,currentTarget:m}}function Xh(u,f){for(var m=f+"Capture",v=[];u!==null;){var E=u,L=E.stateNode;E=E.tag,E!==5&&E!==26&&E!==27||L===null||(E=rd(u,m),E!=null&&v.unshift(zd(u,E,L)),E=rd(u,f),E!=null&&v.push(zd(u,E,L))),u=u.return}return v}function Sc(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5&&u.tag!==27);return u||null}function uM(u,f,m,v,E){for(var L=f._reactName,q=[];m!==null&&m!==v;){var X=m,J=X.alternate,le=X.stateNode;if(X=X.tag,J!==null&&J===v)break;X!==5&&X!==26&&X!==27||le===null||(J=le,E?(le=rd(m,L),le!=null&&q.unshift(zd(m,le,J))):E||(le=rd(m,L),le!=null&&q.push(zd(m,le,J)))),m=m.return}q.length!==0&&u.push({event:f,listeners:q})}var tre=/\r\n?/g,nre=/\u0000|\uFFFD/g;function dM(u){return(typeof u=="string"?u:""+u).replace(tre,`
`).replace(nre,"")}function fM(u,f){return f=dM(f),dM(u)===f}function Zh(){}function ln(u,f,m,v,E,L){switch(m){case"children":typeof v=="string"?f==="body"||f==="textarea"&&v===""||Kl(u,v):(typeof v=="number"||typeof v=="bigint")&&f!=="body"&&Kl(u,""+v);break;case"className":ih(u,"class",v);break;case"tabIndex":ih(u,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":ih(u,m,v);break;case"style":wO(u,v,L);break;case"data":if(f!=="object"){ih(u,"data",v);break}case"src":case"href":if(v===""&&(f!=="a"||m!=="href")){u.removeAttribute(m);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){u.removeAttribute(m);break}v=lh(""+v),u.setAttribute(m,v);break;case"action":case"formAction":if(typeof v=="function"){u.setAttribute(m,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof L=="function"&&(m==="formAction"?(f!=="input"&&ln(u,f,"name",E.name,E,null),ln(u,f,"formEncType",E.formEncType,E,null),ln(u,f,"formMethod",E.formMethod,E,null),ln(u,f,"formTarget",E.formTarget,E,null)):(ln(u,f,"encType",E.encType,E,null),ln(u,f,"method",E.method,E,null),ln(u,f,"target",E.target,E,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){u.removeAttribute(m);break}v=lh(""+v),u.setAttribute(m,v);break;case"onClick":v!=null&&(u.onclick=Zh);break;case"onScroll":v!=null&&qt("scroll",u);break;case"onScrollEnd":v!=null&&qt("scrollend",u);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(m=v.__html,m!=null){if(E.children!=null)throw Error(r(60));u.innerHTML=m}}break;case"multiple":u.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":u.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){u.removeAttribute("xlink:href");break}m=lh(""+v),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?u.setAttribute(m,""+v):u.removeAttribute(m);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?u.setAttribute(m,""):u.removeAttribute(m);break;case"capture":case"download":v===!0?u.setAttribute(m,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?u.setAttribute(m,v):u.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?u.setAttribute(m,v):u.removeAttribute(m);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?u.removeAttribute(m):u.setAttribute(m,v);break;case"popover":qt("beforetoggle",u),qt("toggle",u),ah(u,"popover",v);break;case"xlinkActuate":qi(u,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":qi(u,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":qi(u,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":qi(u,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":qi(u,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":qi(u,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":qi(u,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":qi(u,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":qi(u,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":ah(u,"is",v);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=Lte.get(m)||m,ah(u,m,v))}}function nS(u,f,m,v,E,L){switch(m){case"style":wO(u,v,L);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(m=v.__html,m!=null){if(E.children!=null)throw Error(r(60));u.innerHTML=m}}break;case"children":typeof v=="string"?Kl(u,v):(typeof v=="number"||typeof v=="bigint")&&Kl(u,""+v);break;case"onScroll":v!=null&&qt("scroll",u);break;case"onScrollEnd":v!=null&&qt("scrollend",u);break;case"onClick":v!=null&&(u.onclick=Zh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ea.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(E=m.endsWith("Capture"),f=m.slice(2,E?m.length-7:void 0),L=u[yn]||null,L=L!=null?L[m]:null,typeof L=="function"&&u.removeEventListener(f,L,E),typeof v=="function")){typeof L!="function"&&L!==null&&(m in u?u[m]=null:u.hasAttribute(m)&&u.removeAttribute(m)),u.addEventListener(f,v,E);break e}m in u?u[m]=v:v===!0?u.setAttribute(m,""):ah(u,m,v)}}}function lr(u,f,m){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qt("error",u),qt("load",u);var v=!1,E=!1,L;for(L in m)if(m.hasOwnProperty(L)){var q=m[L];if(q!=null)switch(L){case"src":v=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:ln(u,f,L,q,m,null)}}E&&ln(u,f,"srcSet",m.srcSet,m,null),v&&ln(u,f,"src",m.src,m,null);return;case"input":qt("invalid",u);var X=L=q=E=null,J=null,le=null;for(v in m)if(m.hasOwnProperty(v)){var _e=m[v];if(_e!=null)switch(v){case"name":E=_e;break;case"type":q=_e;break;case"checked":J=_e;break;case"defaultChecked":le=_e;break;case"value":L=_e;break;case"defaultValue":X=_e;break;case"children":case"dangerouslySetInnerHTML":if(_e!=null)throw Error(r(137,f));break;default:ln(u,f,v,_e,m,null)}}yO(u,L,X,J,le,q,E,!1),oh(u);return;case"select":qt("invalid",u),v=q=L=null;for(E in m)if(m.hasOwnProperty(E)&&(X=m[E],X!=null))switch(E){case"value":L=X;break;case"defaultValue":q=X;break;case"multiple":v=X;default:ln(u,f,E,X,m,null)}f=L,m=q,u.multiple=!!v,f!=null?Yl(u,!!v,f,!1):m!=null&&Yl(u,!!v,m,!0);return;case"textarea":qt("invalid",u),L=E=v=null;for(q in m)if(m.hasOwnProperty(q)&&(X=m[q],X!=null))switch(q){case"value":v=X;break;case"defaultValue":E=X;break;case"children":L=X;break;case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(91));break;default:ln(u,f,q,X,m,null)}xO(u,v,E,L),oh(u);return;case"option":for(J in m)if(m.hasOwnProperty(J)&&(v=m[J],v!=null))switch(J){case"selected":u.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:ln(u,f,J,v,m,null)}return;case"dialog":qt("cancel",u),qt("close",u);break;case"iframe":case"object":qt("load",u);break;case"video":case"audio":for(v=0;v<Bd.length;v++)qt(Bd[v],u);break;case"image":qt("error",u),qt("load",u);break;case"details":qt("toggle",u);break;case"embed":case"source":case"link":qt("error",u),qt("load",u);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in m)if(m.hasOwnProperty(le)&&(v=m[le],v!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:ln(u,f,le,v,m,null)}return;default:if(yv(f)){for(_e in m)m.hasOwnProperty(_e)&&(v=m[_e],v!==void 0&&nS(u,f,_e,v,m,void 0));return}}for(X in m)m.hasOwnProperty(X)&&(v=m[X],v!=null&&ln(u,f,X,v,m,null))}function rre(u,f,m,v){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,L=null,q=null,X=null,J=null,le=null,_e=null;for(ke in m){var Oe=m[ke];if(m.hasOwnProperty(ke)&&Oe!=null)switch(ke){case"checked":break;case"value":break;case"defaultValue":J=Oe;default:v.hasOwnProperty(ke)||ln(u,f,ke,null,v,Oe)}}for(var me in v){var ke=v[me];if(Oe=m[me],v.hasOwnProperty(me)&&(ke!=null||Oe!=null))switch(me){case"type":L=ke;break;case"name":E=ke;break;case"checked":le=ke;break;case"defaultChecked":_e=ke;break;case"value":q=ke;break;case"defaultValue":X=ke;break;case"children":case"dangerouslySetInnerHTML":if(ke!=null)throw Error(r(137,f));break;default:ke!==Oe&&ln(u,f,me,ke,v,Oe)}}mv(u,q,X,J,le,_e,L,E);return;case"select":ke=q=X=me=null;for(L in m)if(J=m[L],m.hasOwnProperty(L)&&J!=null)switch(L){case"value":break;case"multiple":ke=J;default:v.hasOwnProperty(L)||ln(u,f,L,null,v,J)}for(E in v)if(L=v[E],J=m[E],v.hasOwnProperty(E)&&(L!=null||J!=null))switch(E){case"value":me=L;break;case"defaultValue":X=L;break;case"multiple":q=L;default:L!==J&&ln(u,f,E,L,v,J)}f=X,m=q,v=ke,me!=null?Yl(u,!!m,me,!1):!!v!=!!m&&(f!=null?Yl(u,!!m,f,!0):Yl(u,!!m,m?[]:"",!1));return;case"textarea":ke=me=null;for(X in m)if(E=m[X],m.hasOwnProperty(X)&&E!=null&&!v.hasOwnProperty(X))switch(X){case"value":break;case"children":break;default:ln(u,f,X,null,v,E)}for(q in v)if(E=v[q],L=m[q],v.hasOwnProperty(q)&&(E!=null||L!=null))switch(q){case"value":me=E;break;case"defaultValue":ke=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==L&&ln(u,f,q,E,v,L)}vO(u,me,ke);return;case"option":for(var it in m)if(me=m[it],m.hasOwnProperty(it)&&me!=null&&!v.hasOwnProperty(it))switch(it){case"selected":u.selected=!1;break;default:ln(u,f,it,null,v,me)}for(J in v)if(me=v[J],ke=m[J],v.hasOwnProperty(J)&&me!==ke&&(me!=null||ke!=null))switch(J){case"selected":u.selected=me&&typeof me!="function"&&typeof me!="symbol";break;default:ln(u,f,J,me,v,ke)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var kt in m)me=m[kt],m.hasOwnProperty(kt)&&me!=null&&!v.hasOwnProperty(kt)&&ln(u,f,kt,null,v,me);for(le in v)if(me=v[le],ke=m[le],v.hasOwnProperty(le)&&me!==ke&&(me!=null||ke!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(137,f));break;default:ln(u,f,le,me,v,ke)}return;default:if(yv(f)){for(var Nn in m)me=m[Nn],m.hasOwnProperty(Nn)&&me!==void 0&&!v.hasOwnProperty(Nn)&&nS(u,f,Nn,void 0,v,me);for(_e in v)me=v[_e],ke=m[_e],!v.hasOwnProperty(_e)||me===ke||me===void 0&&ke===void 0||nS(u,f,_e,me,v,ke);return}}for(var de in m)me=m[de],m.hasOwnProperty(de)&&me!=null&&!v.hasOwnProperty(de)&&ln(u,f,de,null,v,me);for(Oe in v)me=v[Oe],ke=m[Oe],!v.hasOwnProperty(Oe)||me===ke||me==null&&ke==null||ln(u,f,Oe,me,v,ke)}var rS=null,aS=null;function Qh(u){return u.nodeType===9?u:u.ownerDocument}function pM(u){switch(u){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function hM(u,f){if(u===0)switch(f){case"svg":return 1;case"math":return 2;default:return 0}return u===1&&f==="foreignObject"?0:u}function iS(u,f){return u==="textarea"||u==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.children=="bigint"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var oS=null;function are(){var u=window.event;return u&&u.type==="popstate"?u===oS?!1:(oS=u,!0):(oS=null,!1)}var gM=typeof setTimeout=="function"?setTimeout:void 0,ire=typeof clearTimeout=="function"?clearTimeout:void 0,mM=typeof Promise=="function"?Promise:void 0,ore=typeof queueMicrotask=="function"?queueMicrotask:typeof mM<"u"?function(u){return mM.resolve(null).then(u).catch(sre)}:gM;function sre(u){setTimeout(function(){throw u})}function sS(u,f){var m=f,v=0;do{var E=m.nextSibling;if(u.removeChild(m),E&&E.nodeType===8)if(m=E.data,m==="/$"){if(v===0){u.removeChild(E),Vd(f);return}v--}else m!=="$"&&m!=="$?"&&m!=="$!"||v++;m=E}while(m);Vd(f)}function lS(u){var f=u.firstChild;for(f&&f.nodeType===10&&(f=f.nextSibling);f;){var m=f;switch(f=f.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":lS(m),oe(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}u.removeChild(m)}}function lre(u,f,m,v){for(;u.nodeType===1;){var E=m;if(u.nodeName.toLowerCase()!==f.toLowerCase()){if(!v&&(u.nodeName!=="INPUT"||u.type!=="hidden"))break}else if(v){if(!u[nt])switch(f){case"meta":if(!u.hasAttribute("itemprop"))break;return u;case"link":if(L=u.getAttribute("rel"),L==="stylesheet"&&u.hasAttribute("data-precedence"))break;if(L!==E.rel||u.getAttribute("href")!==(E.href==null?null:E.href)||u.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||u.getAttribute("title")!==(E.title==null?null:E.title))break;return u;case"style":if(u.hasAttribute("data-precedence"))break;return u;case"script":if(L=u.getAttribute("src"),(L!==(E.src==null?null:E.src)||u.getAttribute("type")!==(E.type==null?null:E.type)||u.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&L&&u.hasAttribute("async")&&!u.hasAttribute("itemprop"))break;return u;default:return u}}else if(f==="input"&&u.type==="hidden"){var L=E.name==null?null:""+E.name;if(E.type==="hidden"&&u.getAttribute("name")===L)return u}else return u;if(u=Qa(u.nextSibling),u===null)break}return null}function cre(u,f,m){if(f==="")return null;for(;u.nodeType!==3;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!m||(u=Qa(u.nextSibling),u===null))return null;return u}function Qa(u){for(;u!=null;u=u.nextSibling){var f=u.nodeType;if(f===1||f===3)break;if(f===8){if(f=u.data,f==="$"||f==="$!"||f==="$?"||f==="F!"||f==="F")break;if(f==="/$")return null}}return u}function bM(u){u=u.previousSibling;for(var f=0;u;){if(u.nodeType===8){var m=u.data;if(m==="$"||m==="$!"||m==="$?"){if(f===0)return u;f--}else m==="/$"&&f++}u=u.previousSibling}return null}function yM(u,f,m){switch(f=Qh(m),u){case"html":if(u=f.documentElement,!u)throw Error(r(452));return u;case"head":if(u=f.head,!u)throw Error(r(453));return u;case"body":if(u=f.body,!u)throw Error(r(454));return u;default:throw Error(r(451))}}var Oa=new Map,vM=new Set;function Jh(u){return typeof u.getRootNode=="function"?u.getRootNode():u.ownerDocument}var oo=Z.d;Z.d={f:ure,r:dre,D:fre,C:pre,L:hre,m:gre,X:bre,S:mre,M:yre};function ure(){var u=oo.f(),f=qh();return u||f}function dre(u){var f=Ye(u);f!==null&&f.tag===5&&f.type==="form"?WD(f):oo.r(u)}var wc=typeof document>"u"?null:document;function xM(u,f,m){var v=wc;if(v&&typeof f=="string"&&f){var E=wa(f);E='link[rel="'+u+'"][href="'+E+'"]',typeof m=="string"&&(E+='[crossorigin="'+m+'"]'),vM.has(E)||(vM.add(E),u={rel:u,crossOrigin:m,href:f},v.querySelector(E)===null&&(f=v.createElement("link"),lr(f,"link",u),$t(f),v.head.appendChild(f)))}}function fre(u){oo.D(u),xM("dns-prefetch",u,null)}function pre(u,f){oo.C(u,f),xM("preconnect",u,f)}function hre(u,f,m){oo.L(u,f,m);var v=wc;if(v&&u&&f){var E='link[rel="preload"][as="'+wa(f)+'"]';f==="image"&&m&&m.imageSrcSet?(E+='[imagesrcset="'+wa(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(E+='[imagesizes="'+wa(m.imageSizes)+'"]')):E+='[href="'+wa(u)+'"]';var L=E;switch(f){case"style":L=Ec(u);break;case"script":L=kc(u)}Oa.has(L)||(u=O({rel:"preload",href:f==="image"&&m&&m.imageSrcSet?void 0:u,as:f},m),Oa.set(L,u),v.querySelector(E)!==null||f==="style"&&v.querySelector($d(L))||f==="script"&&v.querySelector(jd(L))||(f=v.createElement("link"),lr(f,"link",u),$t(f),v.head.appendChild(f)))}}function gre(u,f){oo.m(u,f);var m=wc;if(m&&u){var v=f&&typeof f.as=="string"?f.as:"script",E='link[rel="modulepreload"][as="'+wa(v)+'"][href="'+wa(u)+'"]',L=E;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":L=kc(u)}if(!Oa.has(L)&&(u=O({rel:"modulepreload",href:u},f),Oa.set(L,u),m.querySelector(E)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(jd(L)))return}v=m.createElement("link"),lr(v,"link",u),$t(v),m.head.appendChild(v)}}}function mre(u,f,m){oo.S(u,f,m);var v=wc;if(v&&u){var E=xn(v).hoistableStyles,L=Ec(u);f=f||"default";var q=E.get(L);if(!q){var X={loading:0,preload:null};if(q=v.querySelector($d(L)))X.loading=5;else{u=O({rel:"stylesheet",href:u,"data-precedence":f},m),(m=Oa.get(L))&&cS(u,m);var J=q=v.createElement("link");$t(J),lr(J,"link",u),J._p=new Promise(function(le,_e){J.onload=le,J.onerror=_e}),J.addEventListener("load",function(){X.loading|=1}),J.addEventListener("error",function(){X.loading|=2}),X.loading|=4,eg(q,f,v)}q={type:"stylesheet",instance:q,count:1,state:X},E.set(L,q)}}}function bre(u,f){oo.X(u,f);var m=wc;if(m&&u){var v=xn(m).hoistableScripts,E=kc(u),L=v.get(E);L||(L=m.querySelector(jd(E)),L||(u=O({src:u,async:!0},f),(f=Oa.get(E))&&uS(u,f),L=m.createElement("script"),$t(L),lr(L,"link",u),m.head.appendChild(L)),L={type:"script",instance:L,count:1,state:null},v.set(E,L))}}function yre(u,f){oo.M(u,f);var m=wc;if(m&&u){var v=xn(m).hoistableScripts,E=kc(u),L=v.get(E);L||(L=m.querySelector(jd(E)),L||(u=O({src:u,async:!0,type:"module"},f),(f=Oa.get(E))&&uS(u,f),L=m.createElement("script"),$t(L),lr(L,"link",u),m.head.appendChild(L)),L={type:"script",instance:L,count:1,state:null},v.set(E,L))}}function SM(u,f,m,v){var E=(E=we.current)?Jh(E):null;if(!E)throw Error(r(446));switch(u){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(f=Ec(m.href),m=xn(E).hoistableStyles,v=m.get(f),v||(v={type:"style",instance:null,count:0,state:null},m.set(f,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){u=Ec(m.href);var L=xn(E).hoistableStyles,q=L.get(u);if(q||(E=E.ownerDocument||E,q={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},L.set(u,q),(L=E.querySelector($d(u)))&&!L._p&&(q.instance=L,q.state.loading=5),Oa.has(u)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},Oa.set(u,m),L||vre(E,u,m,q.state))),f&&v===null)throw Error(r(528,""));return q}if(f&&v!==null)throw Error(r(529,""));return null;case"script":return f=m.async,m=m.src,typeof m=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=kc(m),m=xn(E).hoistableScripts,v=m.get(f),v||(v={type:"script",instance:null,count:0,state:null},m.set(f,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,u))}}function Ec(u){return'href="'+wa(u)+'"'}function $d(u){return'link[rel="stylesheet"]['+u+"]"}function wM(u){return O({},u,{"data-precedence":u.precedence,precedence:null})}function vre(u,f,m,v){u.querySelector('link[rel="preload"][as="style"]['+f+"]")?v.loading=1:(f=u.createElement("link"),v.preload=f,f.addEventListener("load",function(){return v.loading|=1}),f.addEventListener("error",function(){return v.loading|=2}),lr(f,"link",m),$t(f),u.head.appendChild(f))}function kc(u){return'[src="'+wa(u)+'"]'}function jd(u){return"script[async]"+u}function EM(u,f,m){if(f.count++,f.instance===null)switch(f.type){case"style":var v=u.querySelector('style[data-href~="'+wa(m.href)+'"]');if(v)return f.instance=v,$t(v),v;var E=O({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return v=(u.ownerDocument||u).createElement("style"),$t(v),lr(v,"style",E),eg(v,m.precedence,u),f.instance=v;case"stylesheet":E=Ec(m.href);var L=u.querySelector($d(E));if(L)return f.state.loading|=4,f.instance=L,$t(L),L;v=wM(m),(E=Oa.get(E))&&cS(v,E),L=(u.ownerDocument||u).createElement("link"),$t(L);var q=L;return q._p=new Promise(function(X,J){q.onload=X,q.onerror=J}),lr(L,"link",v),f.state.loading|=4,eg(L,m.precedence,u),f.instance=L;case"script":return L=kc(m.src),(E=u.querySelector(jd(L)))?(f.instance=E,$t(E),E):(v=m,(E=Oa.get(L))&&(v=O({},m),uS(v,E)),u=u.ownerDocument||u,E=u.createElement("script"),$t(E),lr(E,"link",v),u.head.appendChild(E),f.instance=E);case"void":return null;default:throw Error(r(443,f.type))}else f.type==="stylesheet"&&!(f.state.loading&4)&&(v=f.instance,f.state.loading|=4,eg(v,m.precedence,u));return f.instance}function eg(u,f,m){for(var v=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=v.length?v[v.length-1]:null,L=E,q=0;q<v.length;q++){var X=v[q];if(X.dataset.precedence===f)L=X;else if(L!==E)break}L?L.parentNode.insertBefore(u,L.nextSibling):(f=m.nodeType===9?m.head:m,f.insertBefore(u,f.firstChild))}function cS(u,f){u.crossOrigin==null&&(u.crossOrigin=f.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=f.referrerPolicy),u.title==null&&(u.title=f.title)}function uS(u,f){u.crossOrigin==null&&(u.crossOrigin=f.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=f.referrerPolicy),u.integrity==null&&(u.integrity=f.integrity)}var tg=null;function kM(u,f,m){if(tg===null){var v=new Map,E=tg=new Map;E.set(m,v)}else E=tg,v=E.get(m),v||(v=new Map,E.set(m,v));if(v.has(u))return v;for(v.set(u,null),m=m.getElementsByTagName(u),E=0;E<m.length;E++){var L=m[E];if(!(L[nt]||L[jn]||u==="link"&&L.getAttribute("rel")==="stylesheet")&&L.namespaceURI!=="http://www.w3.org/2000/svg"){var q=L.getAttribute(f)||"";q=u+q;var X=v.get(q);X?X.push(L):v.set(q,[L])}}return v}function _M(u,f,m){u=u.ownerDocument||u,u.head.insertBefore(m,f==="title"?u.querySelector("head > title"):null)}function xre(u,f,m){if(m===1||f.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof f.precedence!="string"||typeof f.href!="string"||f.href==="")break;return!0;case"link":if(typeof f.rel!="string"||typeof f.href!="string"||f.href===""||f.onLoad||f.onError)break;switch(f.rel){case"stylesheet":return u=f.disabled,typeof f.precedence=="string"&&u==null;default:return!0}case"script":if(f.async&&typeof f.async!="function"&&typeof f.async!="symbol"&&!f.onLoad&&!f.onError&&f.src&&typeof f.src=="string")return!0}return!1}function CM(u){return!(u.type==="stylesheet"&&!(u.state.loading&3))}var Ud=null;function Sre(){}function wre(u,f,m){if(Ud===null)throw Error(r(475));var v=Ud;if(f.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&!(f.state.loading&4)){if(f.instance===null){var E=Ec(m.href),L=u.querySelector($d(E));if(L){u=L._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(v.count++,v=ng.bind(v),u.then(v,v)),f.state.loading|=4,f.instance=L,$t(L);return}L=u.ownerDocument||u,m=wM(m),(E=Oa.get(E))&&cS(m,E),L=L.createElement("link"),$t(L);var q=L;q._p=new Promise(function(X,J){q.onload=X,q.onerror=J}),lr(L,"link",m),f.instance=L}v.stylesheets===null&&(v.stylesheets=new Map),v.stylesheets.set(f,u),(u=f.state.preload)&&!(f.state.loading&3)&&(v.count++,f=ng.bind(v),u.addEventListener("load",f),u.addEventListener("error",f))}}function Ere(){if(Ud===null)throw Error(r(475));var u=Ud;return u.stylesheets&&u.count===0&&dS(u,u.stylesheets),0<u.count?function(f){var m=setTimeout(function(){if(u.stylesheets&&dS(u,u.stylesheets),u.unsuspend){var v=u.unsuspend;u.unsuspend=null,v()}},6e4);return u.unsuspend=f,function(){u.unsuspend=null,clearTimeout(m)}}:null}function ng(){if(this.count--,this.count===0){if(this.stylesheets)dS(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var rg=null;function dS(u,f){u.stylesheets=null,u.unsuspend!==null&&(u.count++,rg=new Map,f.forEach(kre,u),rg=null,ng.call(u))}function kre(u,f){if(!(f.state.loading&4)){var m=rg.get(u);if(m)var v=m.get(null);else{m=new Map,rg.set(u,m);for(var E=u.querySelectorAll("link[data-precedence],style[data-precedence]"),L=0;L<E.length;L++){var q=E[L];(q.nodeName==="LINK"||q.getAttribute("media")!=="not all")&&(m.set(q.dataset.precedence,q),v=q)}v&&m.set(null,v)}E=f.instance,q=E.getAttribute("data-precedence"),L=m.get(q)||v,L===v&&m.set(null,E),m.set(q,E),this.count++,v=ng.bind(this),E.addEventListener("load",v),E.addEventListener("error",v),L?L.parentNode.insertBefore(E,L.nextSibling):(u=u.nodeType===9?u.head:u,u.insertBefore(E,u.firstChild)),f.state.loading|=4}}var Hd={$$typeof:g,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function _re(u,f,m,v,E,L,q,X){this.tag=1,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$n(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$n(0),this.hiddenUpdates=$n(null),this.identifierPrefix=v,this.onUncaughtError=E,this.onCaughtError=L,this.onRecoverableError=q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function TM(u,f,m,v,E,L,q,X,J,le,_e,Oe){return u=new _re(u,f,m,q,X,J,le,Oe),f=1,L===!0&&(f|=24),L=Na(3,null,null,f),u.current=L,L.stateNode=u,f=Hv(),f.refCount++,u.pooledCache=f,f.refCount++,L.memoizedState={element:v,isDehydrated:m,cache:f},Ex(L),u}function AM(u){return u?(u=nc,u):nc}function RM(u,f,m,v,E,L){E=AM(E),v.context===null?v.context=E:v.pendingContext=E,v=Ho(f),v.payload={element:m},L=L===void 0?null:L,L!==null&&(v.callback=L),m=Go(u,v,f),m!==null&&(Rr(m,u,f),Cd(m,u,f))}function NM(u,f){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var m=u.retryLane;u.retryLane=m!==0&&m<f?m:f}}function fS(u,f){NM(u,f),(u=u.alternate)&&NM(u,f)}function LM(u){if(u.tag===13){var f=Fo(u,67108864);f!==null&&Rr(f,u,67108864),fS(u,67108864)}}var ag=!0;function Cre(u,f,m,v){var E=D.T;D.T=null;var L=Z.p;try{Z.p=2,pS(u,f,m,v)}finally{Z.p=L,D.T=E}}function Tre(u,f,m,v){var E=D.T;D.T=null;var L=Z.p;try{Z.p=8,pS(u,f,m,v)}finally{Z.p=L,D.T=E}}function pS(u,f,m,v){if(ag){var E=hS(v);if(E===null)tS(u,f,v,ig,m),DM(u,v);else if(Rre(E,u,f,m,v))v.stopPropagation();else if(DM(u,v),f&4&&-1<Are.indexOf(u)){for(;E!==null;){var L=Ye(E);if(L!==null)switch(L.tag){case 3:if(L=L.stateNode,L.current.memoizedState.isDehydrated){var q=Ln(L.pendingLanes);if(q!==0){var X=L;for(X.pendingLanes|=2,X.entangledLanes|=2;q;){var J=1<<31-zt(q);X.entanglements[1]|=J,q&=~J}xi(L),!(wn&6)&&(Uh=ve()+500,Pd(0))}}break;case 13:X=Fo(L,2),X!==null&&Rr(X,L,2),qh(),fS(L,2)}if(L=hS(v),L===null&&tS(u,f,v,ig,m),L===E)break;E=L}E!==null&&v.stopPropagation()}else tS(u,f,v,null,m)}}function hS(u){return u=xv(u),gS(u)}var ig=null;function gS(u){if(ig=null,u=Fe(u),u!==null){var f=M(u);if(f===null)u=null;else{var m=f.tag;if(m===13){if(u=K(f),u!==null)return u;u=null}else if(m===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;u=null}else f!==u&&(u=null)}}return ig=u,null}function OM(u){switch(u){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ie()){case ae:return 2;case ge:return 8;case Me:case He:return 32;case tt:return 268435456;default:return 32}default:return 32}}var mS=!1,Zo=null,Qo=null,Jo=null,Gd=new Map,qd=new Map,es=[],Are="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function DM(u,f){switch(u){case"focusin":case"focusout":Zo=null;break;case"dragenter":case"dragleave":Qo=null;break;case"mouseover":case"mouseout":Jo=null;break;case"pointerover":case"pointerout":Gd.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":qd.delete(f.pointerId)}}function Wd(u,f,m,v,E,L){return u===null||u.nativeEvent!==L?(u={blockedOn:f,domEventName:m,eventSystemFlags:v,nativeEvent:L,targetContainers:[E]},f!==null&&(f=Ye(f),f!==null&&LM(f)),u):(u.eventSystemFlags|=v,f=u.targetContainers,E!==null&&f.indexOf(E)===-1&&f.push(E),u)}function Rre(u,f,m,v,E){switch(f){case"focusin":return Zo=Wd(Zo,u,f,m,v,E),!0;case"dragenter":return Qo=Wd(Qo,u,f,m,v,E),!0;case"mouseover":return Jo=Wd(Jo,u,f,m,v,E),!0;case"pointerover":var L=E.pointerId;return Gd.set(L,Wd(Gd.get(L)||null,u,f,m,v,E)),!0;case"gotpointercapture":return L=E.pointerId,qd.set(L,Wd(qd.get(L)||null,u,f,m,v,E)),!0}return!1}function IM(u){var f=Fe(u.target);if(f!==null){var m=M(f);if(m!==null){if(f=m.tag,f===13){if(f=K(m),f!==null){u.blockedOn=f,Jp(u.priority,function(){if(m.tag===13){var v=oa(),E=Fo(m,v);E!==null&&Rr(E,m,v),fS(m,v)}});return}}else if(f===3&&m.stateNode.current.memoizedState.isDehydrated){u.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}u.blockedOn=null}function og(u){if(u.blockedOn!==null)return!1;for(var f=u.targetContainers;0<f.length;){var m=hS(u.nativeEvent);if(m===null){m=u.nativeEvent;var v=new m.constructor(m.type,m);vv=v,m.target.dispatchEvent(v),vv=null}else return f=Ye(m),f!==null&&LM(f),u.blockedOn=m,!1;f.shift()}return!0}function MM(u,f,m){og(u)&&m.delete(f)}function Nre(){mS=!1,Zo!==null&&og(Zo)&&(Zo=null),Qo!==null&&og(Qo)&&(Qo=null),Jo!==null&&og(Jo)&&(Jo=null),Gd.forEach(MM),qd.forEach(MM)}function sg(u,f){u.blockedOn===f&&(u.blockedOn=null,mS||(mS=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Nre)))}var lg=null;function FM(u){lg!==u&&(lg=u,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){lg===u&&(lg=null);for(var f=0;f<u.length;f+=3){var m=u[f],v=u[f+1],E=u[f+2];if(typeof v!="function"){if(gS(v||m)===null)continue;break}var L=Ye(m);L!==null&&(u.splice(f,3),f-=3,ix(L,{pending:!0,data:E,method:m.method,action:v},v,E))}}))}function Vd(u){function f(J){return sg(J,u)}Zo!==null&&sg(Zo,u),Qo!==null&&sg(Qo,u),Jo!==null&&sg(Jo,u),Gd.forEach(f),qd.forEach(f);for(var m=0;m<es.length;m++){var v=es[m];v.blockedOn===u&&(v.blockedOn=null)}for(;0<es.length&&(m=es[0],m.blockedOn===null);)IM(m),m.blockedOn===null&&es.shift();if(m=(u.ownerDocument||u).$$reactFormReplay,m!=null)for(v=0;v<m.length;v+=3){var E=m[v],L=m[v+1],q=E[yn]||null;if(typeof L=="function")q||FM(m);else if(q){var X=null;if(L&&L.hasAttribute("formAction")){if(E=L,q=L[yn]||null)X=q.formAction;else if(gS(E)!==null)continue}else X=q.action;typeof X=="function"?m[v+1]=X:(m.splice(v,3),v-=3),FM(m)}}}function bS(u){this._internalRoot=u}cg.prototype.render=bS.prototype.render=function(u){var f=this._internalRoot;if(f===null)throw Error(r(409));var m=f.current,v=oa();RM(m,v,u,f,null,null)},cg.prototype.unmount=bS.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var f=u.containerInfo;u.tag===0&&vc(),RM(u.current,2,null,u,null,null),qh(),f[Gi]=null}};function cg(u){this._internalRoot=u}cg.prototype.unstable_scheduleHydration=function(u){if(u){var f=nd();u={blockedOn:null,target:u,priority:f};for(var m=0;m<es.length&&f!==0&&f<es[m].priority;m++);es.splice(m,0,u),m===0&&IM(u)}};var PM=t.version;if(PM!=="19.0.0")throw Error(r(527,PM,"19.0.0"));Z.findDOMNode=function(u){var f=u._reactInternals;if(f===void 0)throw typeof u.render=="function"?Error(r(188)):(u=Object.keys(u).join(","),Error(r(268,u)));return u=Y(f),u=u!==null?H(u):null,u=u===null?null:u.stateNode,u};var Lre={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:D,findFiberByHostInstance:Fe,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ug=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ug.isDisabled&&ug.supportsFiber)try{Nt=ug.inject(Lre),ct=ug}catch{}}return Kd.createRoot=function(u,f){if(!a(u))throw Error(r(299));var m=!1,v="",E=eI,L=tI,q=nI,X=null;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(v=f.identifierPrefix),f.onUncaughtError!==void 0&&(E=f.onUncaughtError),f.onCaughtError!==void 0&&(L=f.onCaughtError),f.onRecoverableError!==void 0&&(q=f.onRecoverableError),f.unstable_transitionCallbacks!==void 0&&(X=f.unstable_transitionCallbacks)),f=TM(u,1,!1,null,null,m,v,E,L,q,X,null),u[Gi]=f.current,eS(u.nodeType===8?u.parentNode:u),new bS(f)},Kd.hydrateRoot=function(u,f,m){if(!a(u))throw Error(r(299));var v=!1,E="",L=eI,q=tI,X=nI,J=null,le=null;return m!=null&&(m.unstable_strictMode===!0&&(v=!0),m.identifierPrefix!==void 0&&(E=m.identifierPrefix),m.onUncaughtError!==void 0&&(L=m.onUncaughtError),m.onCaughtError!==void 0&&(q=m.onCaughtError),m.onRecoverableError!==void 0&&(X=m.onRecoverableError),m.unstable_transitionCallbacks!==void 0&&(J=m.unstable_transitionCallbacks),m.formState!==void 0&&(le=m.formState)),f=TM(u,1,!0,f,m??null,v,E,L,q,X,J,le),f.context=AM(null),m=f.current,v=oa(),E=Ho(v),E.callback=null,Go(m,E,v),f.current.lanes=v,ar(f,v),xi(f),u[Gi]=f.current,eS(u),new cg(f)},Kd.version="19.0.0",Kd}var VM;function qre(){if(VM)return xS.exports;VM=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),xS.exports=Gre(),xS.exports}var Wre=qre(),Xd={},YM;function Vre(){if(YM)return Xd;YM=1,Object.defineProperty(Xd,"__esModule",{value:!0}),Xd.parse=o,Xd.serialize=c;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,i=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function o(h,g){const b=new i,y=h.length;if(y<2)return b;const x=(g==null?void 0:g.decode)||d;let w=0;do{const S=h.indexOf("=",w);if(S===-1)break;const _=h.indexOf(";",w),N=_===-1?y:_;if(S>N){w=h.lastIndexOf(";",S-1)+1;continue}const R=s(h,w,S),C=l(h,S,R),A=h.slice(R,C);if(b[A]===void 0){let I=s(h,S+1,N),D=l(h,N,I);const O=x(h.slice(I,D));b[A]=O}w=N+1}while(w<y);return b}function s(h,g,b){do{const y=h.charCodeAt(g);if(y!==32&&y!==9)return g}while(++g<b);return b}function l(h,g,b){for(;g>b;){const y=h.charCodeAt(--g);if(y!==32&&y!==9)return g+1}return b}function c(h,g,b){const y=(b==null?void 0:b.encode)||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const x=y(g);if(!t.test(x))throw new TypeError(`argument val is invalid: ${g}`);let w=h+"="+x;if(!b)return w;if(b.maxAge!==void 0){if(!Number.isInteger(b.maxAge))throw new TypeError(`option maxAge is invalid: ${b.maxAge}`);w+="; Max-Age="+b.maxAge}if(b.domain){if(!n.test(b.domain))throw new TypeError(`option domain is invalid: ${b.domain}`);w+="; Domain="+b.domain}if(b.path){if(!r.test(b.path))throw new TypeError(`option path is invalid: ${b.path}`);w+="; Path="+b.path}if(b.expires){if(!p(b.expires)||!Number.isFinite(b.expires.valueOf()))throw new TypeError(`option expires is invalid: ${b.expires}`);w+="; Expires="+b.expires.toUTCString()}if(b.httpOnly&&(w+="; HttpOnly"),b.secure&&(w+="; Secure"),b.partitioned&&(w+="; Partitioned"),b.priority)switch(typeof b.priority=="string"?b.priority.toLowerCase():void 0){case"low":w+="; Priority=Low";break;case"medium":w+="; Priority=Medium";break;case"high":w+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${b.priority}`)}if(b.sameSite)switch(typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite){case!0:case"strict":w+="; SameSite=Strict";break;case"lax":w+="; SameSite=Lax";break;case"none":w+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${b.sameSite}`)}return w}function d(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function p(h){return a.call(h)==="[object Date]"}return Xd}Vre();/**
* react-router v7.3.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var KM="popstate";function Yre(e={}){function t(a,i){let{pathname:o="/",search:s="",hash:l=""}=Pl(a.location.hash.substring(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),eA("",{pathname:o,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(a,i){let o=a.document.querySelector("base"),s="";if(o&&o.getAttribute("href")){let l=a.location.href,c=l.indexOf("#");s=c===-1?l:l.slice(0,c)}return s+"#"+(typeof i=="string"?i:qf(i))}function r(a,i){ci(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(i)})`)}return Xre(t,n,r,e)}function kn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ci(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Kre(){return Math.random().toString(36).substring(2,10)}function XM(e,t){return{usr:e.state,key:e.key,idx:t}}function eA(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Pl(t):t,state:n,key:t&&t.key||r||Kre()}}function qf({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Pl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Xre(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s="POP",l=null,c=d();c==null&&(c=0,o.replaceState({...o.state,idx:c},""));function d(){return(o.state||{idx:null}).idx}function p(){s="POP";let x=d(),w=x==null?null:x-c;c=x,l&&l({action:s,location:y.location,delta:w})}function h(x,w){s="PUSH";let S=eA(y.location,x,w);n&&n(S,x),c=d()+1;let _=XM(S,c),N=y.createHref(S);try{o.pushState(_,"",N)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;a.location.assign(N)}i&&l&&l({action:s,location:y.location,delta:1})}function g(x,w){s="REPLACE";let S=eA(y.location,x,w);n&&n(S,x),c=d();let _=XM(S,c),N=y.createHref(S);o.replaceState(_,"",N),i&&l&&l({action:s,location:y.location,delta:0})}function b(x){let w=a.location.origin!=="null"?a.location.origin:a.location.href,S=typeof x=="string"?x:qf(x);return S=S.replace(/ $/,"%20"),kn(w,`No window.location.(origin|href) available to create URL for href: ${S}`),new URL(S,w)}let y={get action(){return s},get location(){return e(a,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(KM,p),l=x,()=>{a.removeEventListener(KM,p),l=null}},createHref(x){return t(a,x)},createURL:b,encodeLocation(x){let w=b(x);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:g,go(x){return o.go(x)}};return y}function pG(e,t,n="/"){return Zre(e,t,n,!1)}function Zre(e,t,n,r){let a=typeof t=="string"?Pl(t):t,i=wo(a.pathname||"/",n);if(i==null)return null;let o=hG(e);Qre(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let c=cae(i);s=sae(o[l],c,r)}return s}function hG(e,t=[],n=[],r=""){let a=(i,o,s)=>{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(kn(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length));let c=yo([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(kn(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),hG(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:iae(c,i.index),routesMeta:d})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of gG(i.path))a(i,o,l)}),t}function gG(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=gG(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Qre(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:oae(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Jre=/^:[\w-]+$/,eae=3,tae=2,nae=1,rae=10,aae=-2,ZM=e=>e==="*";function iae(e,t){let n=e.split("/"),r=n.length;return n.some(ZM)&&(r+=aae),t&&(r+=tae),n.filter(a=>!ZM(a)).reduce((a,i)=>a+(Jre.test(i)?eae:i===""?nae:rae),r)}function oae(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function sae(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",o=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",p=Im({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),h=l.route;if(!p&&c&&n&&!r[r.length-1].route.index&&(p=Im({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!p)return null;Object.assign(a,p.params),o.push({params:a,pathname:yo([i,p.pathname]),pathnameBase:pae(yo([i,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(i=yo([i,p.pathnameBase]))}return o}function Im(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=lae(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:r.reduce((c,{paramName:d,isOptional:p},h)=>{if(d==="*"){let b=s[h]||"";o=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const g=s[h];return p&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function lae(e,t=!1,n=!0){ci(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function cae(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ci(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function wo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function uae(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Pl(e):e;return{pathname:n?n.startsWith("/")?n:dae(n,t):t,search:hae(r),hash:gae(a)}}function dae(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function kS(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function fae(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function mG(e){let t=fae(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function bG(e,t,n,r=!1){let a;typeof e=="string"?a=Pl(e):(a={...e},kn(!a.pathname||!a.pathname.includes("?"),kS("?","pathname","search",a)),kn(!a.pathname||!a.pathname.includes("#"),kS("#","pathname","hash",a)),kn(!a.search||!a.search.includes("#"),kS("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=n;else{let p=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),p-=1;a.pathname=h.join("/")}s=p>=0?t[p]:"/"}let l=uae(a,s),c=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}var yo=e=>e.join("/").replace(/\/\/+/g,"/"),pae=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hae=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gae=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mae(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var yG=["POST","PUT","PATCH","DELETE"];new Set(yG);var bae=["GET",...yG];new Set(bae);var Ru=T.createContext(null);Ru.displayName="DataRouter";var Wb=T.createContext(null);Wb.displayName="DataRouterState";var vG=T.createContext({isTransitioning:!1});vG.displayName="ViewTransition";var yae=T.createContext(new Map);yae.displayName="Fetchers";var vae=T.createContext(null);vae.displayName="Await";var Fi=T.createContext(null);Fi.displayName="Navigation";var Sp=T.createContext(null);Sp.displayName="Location";var Ao=T.createContext({outlet:null,matches:[],isDataRoute:!1});Ao.displayName="Route";var h2=T.createContext(null);h2.displayName="RouteError";function xae(e,{relative:t}={}){kn(wp(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=T.useContext(Fi),{hash:a,pathname:i,search:o}=Ep(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:yo([n,i])),r.createHref({pathname:s,search:o,hash:a})}function wp(){return T.useContext(Sp)!=null}function Bl(){return kn(wp(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(Sp).location}var xG="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function SG(e){T.useContext(Fi).static||T.useLayoutEffect(e)}function g2(){let{isDataRoute:e}=T.useContext(Ao);return e?Dae():Sae()}function Sae(){kn(wp(),"useNavigate() may be used only in the context of a <Router> component.");let e=T.useContext(Ru),{basename:t,navigator:n}=T.useContext(Fi),{matches:r}=T.useContext(Ao),{pathname:a}=Bl(),i=JSON.stringify(mG(r)),o=T.useRef(!1);return SG(()=>{o.current=!0}),T.useCallback((l,c={})=>{if(ci(o.current,xG),!o.current)return;if(typeof l=="number"){n.go(l);return}let d=bG(l,JSON.parse(i),a,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:yo([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,i,a,e])}T.createContext(null);function Ep(e,{relative:t}={}){let{matches:n}=T.useContext(Ao),{pathname:r}=Bl(),a=JSON.stringify(mG(n));return T.useMemo(()=>bG(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function wae(e,t){return wG(e,t)}function wG(e,t,n,r){var S;kn(wp(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:i}=T.useContext(Fi),{matches:o}=T.useContext(Ao),s=o[o.length-1],l=s?s.params:{},c=s?s.pathname:"/",d=s?s.pathnameBase:"/",p=s&&s.route;{let _=p&&p.path||"";EG(c,!p||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${_}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let h=Bl(),g;if(t){let _=typeof t=="string"?Pl(t):t;kn(d==="/"||((S=_.pathname)==null?void 0:S.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${_.pathname}" was given in the \`location\` prop.`),g=_}else g=h;let b=g.pathname||"/",y=b;if(d!=="/"){let _=d.replace(/^\//,"").split("/");y="/"+b.replace(/^\//,"").split("/").slice(_.length).join("/")}let x=!i&&n&&n.matches&&n.matches.length>0?n.matches:pG(e,{pathname:y});ci(p||x!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),ci(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=Tae(x&&x.map(_=>Object.assign({},_,{params:Object.assign({},l,_.params),pathname:yo([d,a.encodeLocation?a.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?d:yo([d,a.encodeLocation?a.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),o,n,r);return t&&w?T.createElement(Sp.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},w):w}function Eae(){let e=Oae(),t=mae(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:i},"ErrorBoundary")," or"," ",T.createElement("code",{style:i},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:a},n):null,o)}var kae=T.createElement(Eae,null),_ae=class extends T.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?T.createElement(Ao.Provider,{value:this.props.routeContext},T.createElement(h2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Cae({routeContext:e,match:t,children:n}){let r=T.useContext(Ru);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),T.createElement(Ao.Provider,{value:e},n)}function Tae(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,i=n==null?void 0:n.errors;if(i!=null){let l=a.findIndex(c=>c.route.id&&(i==null?void 0:i[c.route.id])!==void 0);kn(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,l+1))}let o=!1,s=-1;if(n)for(let l=0;l<a.length;l++){let c=a[l];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(s=l),c.route.id){let{loaderData:d,errors:p}=n,h=c.route.loader&&!d.hasOwnProperty(c.route.id)&&(!p||p[c.route.id]===void 0);if(c.route.lazy||h){o=!0,s>=0?a=a.slice(0,s+1):a=[a[0]];break}}}return a.reduceRight((l,c,d)=>{let p,h=!1,g=null,b=null;n&&(p=i&&c.route.id?i[c.route.id]:void 0,g=c.route.errorElement||kae,o&&(s<0&&d===0?(EG("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,b=null):s===d&&(h=!0,b=c.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,d+1)),x=()=>{let w;return p?w=g:h?w=b:c.route.Component?w=T.createElement(c.route.Component,null):c.route.element?w=c.route.element:w=l,T.createElement(Cae,{match:c,routeContext:{outlet:l,matches:y,isDataRoute:n!=null},children:w})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?T.createElement(_ae,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):x()},null)}function m2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Aae(e){let t=T.useContext(Ru);return kn(t,m2(e)),t}function Rae(e){let t=T.useContext(Wb);return kn(t,m2(e)),t}function Nae(e){let t=T.useContext(Ao);return kn(t,m2(e)),t}function b2(e){let t=Nae(e),n=t.matches[t.matches.length-1];return kn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Lae(){return b2("useRouteId")}function Oae(){var r;let e=T.useContext(h2),t=Rae("useRouteError"),n=b2("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Dae(){let{router:e}=Aae("useNavigate"),t=b2("useNavigate"),n=T.useRef(!1);return SG(()=>{n.current=!0}),T.useCallback(async(a,i={})=>{ci(n.current,xG),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var QM={};function EG(e,t,n){!t&&!QM[e]&&(QM[e]=!0,ci(!1,n))}T.memo(Iae);function Iae({routes:e,future:t,state:n}){return wG(e,void 0,n,t)}function tA(e){kn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Mae({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1}){kn(!wp(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),s=T.useMemo(()=>({basename:o,navigator:a,static:i,future:{}}),[o,a,i]);typeof n=="string"&&(n=Pl(n));let{pathname:l="/",search:c="",hash:d="",state:p=null,key:h="default"}=n,g=T.useMemo(()=>{let b=wo(l,o);return b==null?null:{location:{pathname:b,search:c,hash:d,state:p,key:h},navigationType:r}},[o,l,c,d,p,h,r]);return ci(g!=null,`<Router basename="${o}"> is not able to match the URL "${l}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:T.createElement(Fi.Provider,{value:s},T.createElement(Sp.Provider,{children:t,value:g}))}function Fae({children:e,location:t}){return wae(nA(e),t)}function nA(e,t=[]){let n=[];return T.Children.forEach(e,(r,a)=>{if(!T.isValidElement(r))return;let i=[...t,a];if(r.type===T.Fragment){n.push.apply(n,nA(r.props.children,i));return}kn(r.type===tA,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),kn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=nA(r.props.children,i)),n.push(o)}),n}var Jg="get",em="application/x-www-form-urlencoded";function Vb(e){return e!=null&&typeof e.tagName=="string"}function Pae(e){return Vb(e)&&e.tagName.toLowerCase()==="button"}function Bae(e){return Vb(e)&&e.tagName.toLowerCase()==="form"}function zae(e){return Vb(e)&&e.tagName.toLowerCase()==="input"}function $ae(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jae(e,t){return e.button===0&&(!t||t==="_self")&&!$ae(e)}var dg=null;function Uae(){if(dg===null)try{new FormData(document.createElement("form"),0),dg=!1}catch{dg=!0}return dg}var Hae=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _S(e){return e!=null&&!Hae.has(e)?(ci(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${em}"`),null):e}function Gae(e,t){let n,r,a,i,o;if(Bae(e)){let s=e.getAttribute("action");r=s?wo(s,t):null,n=e.getAttribute("method")||Jg,a=_S(e.getAttribute("enctype"))||em,i=new FormData(e)}else if(Pae(e)||zae(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?wo(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Jg,a=_S(e.getAttribute("formenctype"))||_S(s.getAttribute("enctype"))||em,i=new FormData(s,e),!Uae()){let{name:c,type:d,value:p}=e;if(d==="image"){let h=c?`${c}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else c&&i.append(c,p)}}else{if(Vb(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Jg,r=null,a=em,o=e}return i&&a==="text/plain"&&(o=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:o}}function y2(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function qae(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Wae(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Vae(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let o=await qae(i,n);return o.links?o.links():[]}return[]}));return Zae(r.flat(1).filter(Wae).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function JM(e,t,n,r,a,i){let o=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,s=(l,c)=>{var d;return n[c].pathname!==l.pathname||((d=n[c].route.path)==null?void 0:d.endsWith("*"))&&n[c].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,c)=>o(l,c)||s(l,c)):i==="data"?t.filter((l,c)=>{var p;let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(o(l,c)||s(l,c))return!0;if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Yae(e,t,{includeHydrateFallback:n}={}){return Kae(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function Kae(e){return[...new Set(e)]}function Xae(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Zae(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(Xae(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function Qae(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&wo(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function kG(){let e=T.useContext(Ru);return y2(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Jae(){let e=T.useContext(Wb);return y2(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var v2=T.createContext(void 0);v2.displayName="FrameworkContext";function _G(){let e=T.useContext(v2);return y2(e,"You must render this element inside a <HydratedRouter> element"),e}function eie(e,t){let n=T.useContext(v2),[r,a]=T.useState(!1),[i,o]=T.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:d,onTouchStart:p}=t,h=T.useRef(null);T.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let y=w=>{w.forEach(S=>{o(S.isIntersecting)})},x=new IntersectionObserver(y,{threshold:.5});return h.current&&x.observe(h.current),()=>{x.disconnect()}}},[e]),T.useEffect(()=>{if(r){let y=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(y)}}},[r]);let g=()=>{a(!0)},b=()=>{a(!1),o(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:Zd(s,g),onBlur:Zd(l,b),onMouseEnter:Zd(c,g),onMouseLeave:Zd(d,b),onTouchStart:Zd(p,g)}]:[!1,h,{}]}function Zd(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function tie({page:e,...t}){let{router:n}=kG(),r=T.useMemo(()=>pG(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?T.createElement(rie,{page:e,matches:r,...t}):null}function nie(e){let{manifest:t,routeModules:n}=_G(),[r,a]=T.useState([]);return T.useEffect(()=>{let i=!1;return Vae(e,t,n).then(o=>{i||a(o)}),()=>{i=!0}},[e,t,n]),r}function rie({page:e,matches:t,...n}){let r=Bl(),{manifest:a,routeModules:i}=_G(),{basename:o}=kG(),{loaderData:s,matches:l}=Jae(),c=T.useMemo(()=>JM(e,t,l,a,r,"data"),[e,t,l,a,r]),d=T.useMemo(()=>JM(e,t,l,a,r,"assets"),[e,t,l,a,r]),p=T.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,y=!1;if(t.forEach(w=>{var _;let S=a.routes[w.route.id];!S||!S.hasLoader||(!c.some(N=>N.route.id===w.route.id)&&w.route.id in s&&((_=i[w.route.id])!=null&&_.shouldRevalidate)||S.hasClientLoader?y=!0:b.add(w.route.id))}),b.size===0)return[];let x=Qae(e,o);return y&&b.size>0&&x.searchParams.set("_routes",t.filter(w=>b.has(w.route.id)).map(w=>w.route.id).join(",")),[x.pathname+x.search]},[o,s,r,a,c,t,e,i]),h=T.useMemo(()=>Yae(d,a),[d,a]),g=nie(d);return T.createElement(T.Fragment,null,p.map(b=>T.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),h.map(b=>T.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),g.map(({key:b,link:y})=>T.createElement("link",{key:b,...y})))}function aie(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var CG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{CG&&(window.__reactRouterVersion="7.3.0")}catch{}function iie({basename:e,children:t,window:n}){let r=T.useRef();r.current==null&&(r.current=Yre({window:n,v5Compat:!0}));let a=r.current,[i,o]=T.useState({action:a.action,location:a.location}),s=T.useCallback(l=>{T.startTransition(()=>o(l))},[o]);return T.useLayoutEffect(()=>a.listen(s),[a,s]),T.createElement(Mae,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:a})}var TG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AG=T.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:o,state:s,target:l,to:c,preventScrollReset:d,viewTransition:p,...h},g){let{basename:b}=T.useContext(Fi),y=typeof c=="string"&&TG.test(c),x,w=!1;if(typeof c=="string"&&y&&(x=c,CG))try{let D=new URL(window.location.href),O=c.startsWith("//")?new URL(D.protocol+c):new URL(c),P=wo(O.pathname,b);O.origin===D.origin&&P!=null?c=P+O.search+O.hash:w=!0}catch{ci(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let S=xae(c,{relative:a}),[_,N,R]=eie(r,h),C=cie(c,{replace:o,state:s,target:l,preventScrollReset:d,relative:a,viewTransition:p});function A(D){t&&t(D),D.defaultPrevented||C(D)}let I=T.createElement("a",{...h,...R,href:x||S,onClick:w||i?t:A,ref:aie(g,N),target:l,"data-discover":!y&&n==="render"?"true":void 0});return _&&!y?T.createElement(T.Fragment,null,I,T.createElement(tie,{page:S})):I});AG.displayName="Link";var oie=T.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:o,viewTransition:s,children:l,...c},d){let p=Ep(o,{relative:c.relative}),h=Bl(),g=T.useContext(Wb),{navigator:b,basename:y}=T.useContext(Fi),x=g!=null&&hie(p)&&s===!0,w=b.encodeLocation?b.encodeLocation(p).pathname:p.pathname,S=h.pathname,_=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(S=S.toLowerCase(),_=_?_.toLowerCase():null,w=w.toLowerCase()),_&&y&&(_=wo(_,y)||_);const N=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let R=S===w||!a&&S.startsWith(w)&&S.charAt(N)==="/",C=_!=null&&(_===w||!a&&_.startsWith(w)&&_.charAt(w.length)==="/"),A={isActive:R,isPending:C,isTransitioning:x},I=R?t:void 0,D;typeof r=="function"?D=r(A):D=[r,R?"active":null,C?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let O=typeof i=="function"?i(A):i;return T.createElement(AG,{...c,"aria-current":I,className:D,ref:d,style:O,to:o,viewTransition:s},typeof l=="function"?l(A):l)});oie.displayName="NavLink";var sie=T.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:o=Jg,action:s,onSubmit:l,relative:c,preventScrollReset:d,viewTransition:p,...h},g)=>{let b=fie(),y=pie(s,{relative:c}),x=o.toLowerCase()==="get"?"get":"post",w=typeof s=="string"&&TG.test(s),S=_=>{if(l&&l(_),_.defaultPrevented)return;_.preventDefault();let N=_.nativeEvent.submitter,R=(N==null?void 0:N.getAttribute("formmethod"))||o;b(N||_.currentTarget,{fetcherKey:t,method:R,navigate:n,replace:a,state:i,relative:c,preventScrollReset:d,viewTransition:p})};return T.createElement("form",{ref:g,method:x,action:y,onSubmit:r?l:S,...h,"data-discover":!w&&e==="render"?"true":void 0})});sie.displayName="Form";function lie(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function RG(e){let t=T.useContext(Ru);return kn(t,lie(e)),t}function cie(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:o}={}){let s=g2(),l=Bl(),c=Ep(e,{relative:i});return T.useCallback(d=>{if(jae(d,t)){d.preventDefault();let p=n!==void 0?n:qf(l)===qf(c);s(e,{replace:p,state:r,preventScrollReset:a,relative:i,viewTransition:o})}},[l,s,c,n,r,t,e,a,i,o])}var uie=0,die=()=>`__${String(++uie)}__`;function fie(){let{router:e}=RG("useSubmit"),{basename:t}=T.useContext(Fi),n=Lae();return T.useCallback(async(r,a={})=>{let{action:i,method:o,encType:s,formData:l,body:c}=Gae(r,t);if(a.navigate===!1){let d=a.fetcherKey||die();await e.fetch(d,n,a.action||i,{preventScrollReset:a.preventScrollReset,formData:l,body:c,formMethod:a.method||o,formEncType:a.encType||s,flushSync:a.flushSync})}else await e.navigate(a.action||i,{preventScrollReset:a.preventScrollReset,formData:l,body:c,formMethod:a.method||o,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function pie(e,{relative:t}={}){let{basename:n}=T.useContext(Fi),r=T.useContext(Ao);kn(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Ep(e||".",{relative:t})},o=Bl();if(e==null){i.search=o.search;let s=new URLSearchParams(i.search),l=s.getAll("index");if(l.some(d=>d==="")){s.delete("index"),l.filter(p=>p).forEach(p=>s.append("index",p));let d=s.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:yo([n,i.pathname])),qf(i)}function hie(e,t={}){let n=T.useContext(vG);kn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=RG("useViewTransitionState"),a=Ep(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=wo(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=wo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Im(a.pathname,o)!=null||Im(a.pathname,i)!=null}new TextEncoder;var kp=fG();const NG=Kn(kp),eF=e=>{let t;const n=new Set,r=(c,d)=>{const p=typeof c=="function"?c(t):c;if(!Object.is(p,t)){const h=t;t=d??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(g=>g(t,h))}},a=()=>t,s={setState:r,getState:a,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(r,a,s);return s},gie=e=>e?eF(e):eF,mie=e=>e;function bie(e,t=mie){const n=Re.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return Re.useDebugValue(n),n}const tF=e=>{const t=gie(e),n=r=>bie(t,r);return Object.assign(n,t),n},Yb=e=>e?tF(e):tF;function LG(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=LG(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function OG(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=LG(e))&&(r&&(r+=" "),r+=t);return r}const x2="-",yie=e=>{const t=xie(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const s=o.split(x2);return s[0]===""&&s.length!==1&&s.shift(),DG(s,t)||vie(o)},getConflictingClassGroupIds:(o,s)=>{const l=n[o]||[];return s&&r[o]?[...l,...r[o]]:l}}},DG=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?DG(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(x2);return(o=t.validators.find(({validator:s})=>s(i)))==null?void 0:o.classGroupId},nF=/^\[(.+)\]$/,vie=e=>{if(nF.test(e)){const t=nF.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},xie=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)rA(n[a],r,a,t);return r},rA=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:rF(t,a);i.classGroupId=n;return}if(typeof a=="function"){if(Sie(a)){rA(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([i,o])=>{rA(o,rF(t,i),n,r)})})},rF=(e,t)=>{let n=e;return t.split(x2).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Sie=e=>e.isThemeGetter,wie=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return a(i,o),o},set(i,o){n.has(i)?n.set(i,o):a(i,o)}}},aA="!",iA=":",Eie=iA.length,kie=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let o=0,s=0,l=0,c;for(let b=0;b<a.length;b++){let y=a[b];if(o===0&&s===0){if(y===iA){i.push(a.slice(l,b)),l=b+Eie;continue}if(y==="/"){c=b;continue}}y==="["?o++:y==="]"?o--:y==="("?s++:y===")"&&s--}const d=i.length===0?a:a.substring(l),p=_ie(d),h=p!==d,g=c&&c>l?c-l:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:g}};if(t){const a=t+iA,i=r;r=o=>o.startsWith(a)?i(o.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},_ie=e=>e.endsWith(aA)?e.substring(0,e.length-1):e.startsWith(aA)?e.substring(1):e,Cie=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let i=[];return r.forEach(o=>{o[0]==="["||t[o]?(a.push(...i.sort(),o),i=[]):i.push(o)}),a.push(...i.sort()),a}},Tie=e=>({cache:wie(e.cacheSize),parseClassName:kie(e),sortModifiers:Cie(e),...yie(e)}),Aie=/\s+/,Rie=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i}=t,o=[],s=e.trim().split(Aie);let l="";for(let c=s.length-1;c>=0;c-=1){const d=s[c],{isExternal:p,modifiers:h,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:y}=n(d);if(p){l=d+(l.length>0?" "+l:l);continue}let x=!!y,w=r(x?b.substring(0,y):b);if(!w){if(!x){l=d+(l.length>0?" "+l:l);continue}if(w=r(b),!w){l=d+(l.length>0?" "+l:l);continue}x=!1}const S=i(h).join(":"),_=g?S+aA:S,N=_+w;if(o.includes(N))continue;o.push(N);const R=a(w,x);for(let C=0;C<R.length;++C){const A=R[C];o.push(_+A)}l=d+(l.length>0?" "+l:l)}return l};function Nie(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=IG(t))&&(r&&(r+=" "),r+=n);return r}const IG=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=IG(e[r]))&&(n&&(n+=" "),n+=t);return n};function Lie(e,...t){let n,r,a,i=o;function o(l){const c=t.reduce((d,p)=>p(d),e());return n=Tie(c),r=n.cache.get,a=n.cache.set,i=s,s(l)}function s(l){const c=r(l);if(c)return c;const d=Rie(l,n);return a(l,d),d}return function(){return i(Nie.apply(null,arguments))}}const Jn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},MG=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,FG=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Oie=/^\d+\/\d+$/,Die=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Iie=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mie=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Fie=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pie=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_c=e=>Oie.test(e),Ut=e=>!!e&&!Number.isNaN(Number(e)),Js=e=>!!e&&Number.isInteger(Number(e)),aF=e=>e.endsWith("%")&&Ut(e.slice(0,-1)),ns=e=>Die.test(e),Bie=()=>!0,zie=e=>Iie.test(e)&&!Mie.test(e),S2=()=>!1,$ie=e=>Fie.test(e),jie=e=>Pie.test(e),Uie=e=>!Qe(e)&&!Je(e),Hie=e=>Nu(e,zG,S2),Qe=e=>MG.test(e),el=e=>Nu(e,$G,zie),CS=e=>Nu(e,eoe,Ut),Gie=e=>Nu(e,PG,S2),qie=e=>Nu(e,BG,jie),Wie=e=>Nu(e,S2,$ie),Je=e=>FG.test(e),fg=e=>Lu(e,$G),Vie=e=>Lu(e,toe),Yie=e=>Lu(e,PG),Kie=e=>Lu(e,zG),Xie=e=>Lu(e,BG),Zie=e=>Lu(e,noe,!0),Nu=(e,t,n)=>{const r=MG.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Lu=(e,t,n=!1)=>{const r=FG.exec(e);return r?r[1]?t(r[1]):n:!1},PG=e=>e==="position",Qie=new Set(["image","url"]),BG=e=>Qie.has(e),Jie=new Set(["length","size","percentage"]),zG=e=>Jie.has(e),$G=e=>e==="length",eoe=e=>e==="number",toe=e=>e==="family-name",noe=e=>e==="shadow",roe=()=>{const e=Jn("color"),t=Jn("font"),n=Jn("text"),r=Jn("font-weight"),a=Jn("tracking"),i=Jn("leading"),o=Jn("breakpoint"),s=Jn("container"),l=Jn("spacing"),c=Jn("radius"),d=Jn("shadow"),p=Jn("inset-shadow"),h=Jn("drop-shadow"),g=Jn("blur"),b=Jn("perspective"),y=Jn("aspect"),x=Jn("ease"),w=Jn("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],C=()=>[Je,Qe,l],A=()=>[_c,"full","auto",...C()],I=()=>[Js,"none","subgrid",Je,Qe],D=()=>["auto",{span:["full",Js,Je,Qe]},Je,Qe],O=()=>[Js,"auto",Je,Qe],P=()=>["auto","min","max","fr",Je,Qe],G=()=>["start","end","center","between","around","evenly","stretch","baseline"],j=()=>["start","end","center","stretch"],W=()=>["auto",...C()],V=()=>[_c,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],B=()=>[e,Je,Qe],U=()=>[aF,el],M=()=>["","none","full",c,Je,Qe],K=()=>["",Ut,fg,el],F=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["","none",g,Je,Qe],$=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Je,Qe],Z=()=>["none",Ut,Je,Qe],Q=()=>["none",Ut,Je,Qe],ie=()=>[Ut,Je,Qe],te=()=>[_c,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ns],breakpoint:[ns],color:[Bie],container:[ns],"drop-shadow":[ns],ease:["in","out","in-out"],font:[Uie],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ns],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ns],shadow:[ns],spacing:["px",Ut],text:[ns],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_c,Qe,Je,y]}],container:["container"],columns:[{columns:[Ut,Qe,Je,s]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[..._(),Qe,Je]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[Js,"auto",Je,Qe]}],basis:[{basis:[_c,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ut,_c,"auto","initial","none",Qe]}],grow:[{grow:["",Ut,Je,Qe]}],shrink:[{shrink:["",Ut,Je,Qe]}],order:[{order:[Js,"first","last","none",Je,Qe]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...j(),"baseline"]}],"align-self":[{self:["auto",...j(),"baseline"]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[s,"screen",...V()]}],"min-w":[{"min-w":[s,"screen","none",...V()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...V()]}],h:[{h:["screen",...V()]}],"min-h":[{"min-h":["screen","none",...V()]}],"max-h":[{"max-h":["screen",...V()]}],"font-size":[{text:["base",n,fg,el]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Je,CS]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",aF,Qe]}],"font-family":[{font:[Vie,Qe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Je,Qe]}],"line-clamp":[{"line-clamp":[Ut,"none",Je,CS]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",Je,Qe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Je,Qe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ut,"from-font","auto",Je,el]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Ut,"auto",Je,Qe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Je,Qe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Je,Qe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[..._(),Yie,Gie]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Kie,Hie]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Js,Je,Qe],radial:["",Je,Qe],conic:[Js,Je,Qe]},Xie,qie]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...F(),"hidden","none"]}],"divide-style":[{divide:[...F(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...F(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ut,Je,Qe]}],"outline-w":[{outline:["",Ut,fg,el]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",d,Zie,Wie]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",Je,Qe,p]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Ut,el]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":B()}],opacity:[{opacity:[Ut,Je,Qe]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none",Je,Qe]}],blur:[{blur:H()}],brightness:[{brightness:[Ut,Je,Qe]}],contrast:[{contrast:[Ut,Je,Qe]}],"drop-shadow":[{"drop-shadow":["","none",h,Je,Qe]}],grayscale:[{grayscale:["",Ut,Je,Qe]}],"hue-rotate":[{"hue-rotate":[Ut,Je,Qe]}],invert:[{invert:["",Ut,Je,Qe]}],saturate:[{saturate:[Ut,Je,Qe]}],sepia:[{sepia:["",Ut,Je,Qe]}],"backdrop-filter":[{"backdrop-filter":["","none",Je,Qe]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[Ut,Je,Qe]}],"backdrop-contrast":[{"backdrop-contrast":[Ut,Je,Qe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ut,Je,Qe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ut,Je,Qe]}],"backdrop-invert":[{"backdrop-invert":["",Ut,Je,Qe]}],"backdrop-opacity":[{"backdrop-opacity":[Ut,Je,Qe]}],"backdrop-saturate":[{"backdrop-saturate":[Ut,Je,Qe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ut,Je,Qe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Je,Qe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ut,"initial",Je,Qe]}],ease:[{ease:["linear","initial",x,Je,Qe]}],delay:[{delay:[Ut,Je,Qe]}],animate:[{animate:["none",w,Je,Qe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,Je,Qe]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[Je,Qe,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Je,Qe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Je,Qe]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Ut,fg,el,CS]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},aoe=Lie(roe);function je(...e){return aoe(OG(e))}function ua(e){return e instanceof Error?e.message:`${e}`}const w2=e=>{const t=e;t.use={};for(const n of Object.keys(t.getState()))t.use[n]=()=>t(r=>r[n]);return t};function jG(e,t){return function(){return e.apply(t,arguments)}}const{toString:ioe}=Object.prototype,{getPrototypeOf:E2}=Object,Kb=(e=>t=>{const n=ioe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fi=e=>(e=e.toLowerCase(),t=>Kb(t)===e),Xb=e=>t=>typeof t===e,{isArray:Ou}=Array,Wf=Xb("undefined");function ooe(e){return e!==null&&!Wf(e)&&e.constructor!==null&&!Wf(e.constructor)&&da(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const UG=fi("ArrayBuffer");function soe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&UG(e.buffer),t}const loe=Xb("string"),da=Xb("function"),HG=Xb("number"),Zb=e=>e!==null&&typeof e=="object",coe=e=>e===!0||e===!1,tm=e=>{if(Kb(e)!=="object")return!1;const t=E2(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},uoe=fi("Date"),doe=fi("File"),foe=fi("Blob"),poe=fi("FileList"),hoe=e=>Zb(e)&&da(e.pipe),goe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||da(e.append)&&((t=Kb(e))==="formdata"||t==="object"&&da(e.toString)&&e.toString()==="[object FormData]"))},moe=fi("URLSearchParams"),[boe,yoe,voe,xoe]=["ReadableStream","Request","Response","Headers"].map(fi),Soe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _p(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Ou(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(r=0;r<o;r++)s=i[r],t.call(null,e[s],s,e)}}function GG(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const pl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,qG=e=>!Wf(e)&&e!==pl;function oA(){const{caseless:e}=qG(this)&&this||{},t={},n=(r,a)=>{const i=e&&GG(t,a)||a;tm(t[i])&&tm(r)?t[i]=oA(t[i],r):tm(r)?t[i]=oA({},r):Ou(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&_p(arguments[r],n);return t}const woe=(e,t,n,{allOwnKeys:r}={})=>(_p(t,(a,i)=>{n&&da(a)?e[i]=jG(a,n):e[i]=a},{allOwnKeys:r}),e),Eoe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),koe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},_oe=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&E2(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Coe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Toe=e=>{if(!e)return null;if(Ou(e))return e;let t=e.length;if(!HG(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Aoe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&E2(Uint8Array)),Roe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},Noe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Loe=fi("HTMLFormElement"),Ooe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),iF=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Doe=fi("RegExp"),WG=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_p(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},Ioe=e=>{WG(e,(t,n)=>{if(da(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(da(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Moe=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return Ou(e)?r(e):r(String(e).split(t)),n},Foe=()=>{},Poe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,TS="abcdefghijklmnopqrstuvwxyz",oF="0123456789",VG={DIGIT:oF,ALPHA:TS,ALPHA_DIGIT:TS+TS.toUpperCase()+oF},Boe=(e=16,t=VG.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function zoe(e){return!!(e&&da(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $oe=e=>{const t=new Array(10),n=(r,a)=>{if(Zb(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=Ou(r)?[]:{};return _p(r,(o,s)=>{const l=n(o,a+1);!Wf(l)&&(i[s]=l)}),t[a]=void 0,i}}return r};return n(e,0)},joe=fi("AsyncFunction"),Uoe=e=>e&&(Zb(e)||da(e))&&da(e.then)&&da(e.catch),YG=((e,t)=>e?setImmediate:t?((n,r)=>(pl.addEventListener("message",({source:a,data:i})=>{a===pl&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),pl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",da(pl.postMessage)),Hoe=typeof queueMicrotask<"u"?queueMicrotask.bind(pl):typeof process<"u"&&process.nextTick||YG,ye={isArray:Ou,isArrayBuffer:UG,isBuffer:ooe,isFormData:goe,isArrayBufferView:soe,isString:loe,isNumber:HG,isBoolean:coe,isObject:Zb,isPlainObject:tm,isReadableStream:boe,isRequest:yoe,isResponse:voe,isHeaders:xoe,isUndefined:Wf,isDate:uoe,isFile:doe,isBlob:foe,isRegExp:Doe,isFunction:da,isStream:hoe,isURLSearchParams:moe,isTypedArray:Aoe,isFileList:poe,forEach:_p,merge:oA,extend:woe,trim:Soe,stripBOM:Eoe,inherits:koe,toFlatObject:_oe,kindOf:Kb,kindOfTest:fi,endsWith:Coe,toArray:Toe,forEachEntry:Roe,matchAll:Noe,isHTMLForm:Loe,hasOwnProperty:iF,hasOwnProp:iF,reduceDescriptors:WG,freezeMethods:Ioe,toObjectSet:Moe,toCamelCase:Ooe,noop:Foe,toFiniteNumber:Poe,findKey:GG,global:pl,isContextDefined:qG,ALPHABET:VG,generateString:Boe,isSpecCompliantForm:zoe,toJSONObject:$oe,isAsyncFn:joe,isThenable:Uoe,setImmediate:YG,asap:Hoe};function Tt(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}ye.inherits(Tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ye.toJSONObject(this.config),code:this.code,status:this.status}}});const KG=Tt.prototype,XG={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{XG[e]={value:e}});Object.defineProperties(Tt,XG);Object.defineProperty(KG,"isAxiosError",{value:!0});Tt.from=(e,t,n,r,a,i)=>{const o=Object.create(KG);return ye.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Tt.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const Goe=null;function sA(e){return ye.isPlainObject(e)||ye.isArray(e)}function ZG(e){return ye.endsWith(e,"[]")?e.slice(0,-2):e}function sF(e,t,n){return e?e.concat(t).map(function(a,i){return a=ZG(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function qoe(e){return ye.isArray(e)&&!e.some(sA)}const Woe=ye.toFlatObject(ye,{},null,function(t){return/^is[A-Z]/.test(t)});function Qb(e,t,n){if(!ye.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ye.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,x){return!ye.isUndefined(x[y])});const r=n.metaTokens,a=n.visitor||d,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ye.isSpecCompliantForm(t);if(!ye.isFunction(a))throw new TypeError("visitor must be a function");function c(b){if(b===null)return"";if(ye.isDate(b))return b.toISOString();if(!l&&ye.isBlob(b))throw new Tt("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(b)||ye.isTypedArray(b)?l&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function d(b,y,x){let w=b;if(b&&!x&&typeof b=="object"){if(ye.endsWith(y,"{}"))y=r?y:y.slice(0,-2),b=JSON.stringify(b);else if(ye.isArray(b)&&qoe(b)||(ye.isFileList(b)||ye.endsWith(y,"[]"))&&(w=ye.toArray(b)))return y=ZG(y),w.forEach(function(_,N){!(ye.isUndefined(_)||_===null)&&t.append(o===!0?sF([y],N,i):o===null?y:y+"[]",c(_))}),!1}return sA(b)?!0:(t.append(sF(x,y,i),c(b)),!1)}const p=[],h=Object.assign(Woe,{defaultVisitor:d,convertValue:c,isVisitable:sA});function g(b,y){if(!ye.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(b),ye.forEach(b,function(w,S){(!(ye.isUndefined(w)||w===null)&&a.call(t,w,ye.isString(S)?S.trim():S,y,h))===!0&&g(w,y?y.concat(S):[S])}),p.pop()}}if(!ye.isObject(e))throw new TypeError("data must be an object");return g(e),t}function lF(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function k2(e,t){this._pairs=[],e&&Qb(e,this,t)}const QG=k2.prototype;QG.append=function(t,n){this._pairs.push([t,n])};QG.toString=function(t){const n=t?function(r){return t.call(this,r,lF)}:lF;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function Voe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function JG(e,t,n){if(!t)return e;const r=n&&n.encode||Voe;ye.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let i;if(a?i=a(t,n):i=ye.isURLSearchParams(t)?t.toString():new k2(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class cF{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ye.forEach(this.handlers,function(r){r!==null&&t(r)})}}const e9={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yoe=typeof URLSearchParams<"u"?URLSearchParams:k2,Koe=typeof FormData<"u"?FormData:null,Xoe=typeof Blob<"u"?Blob:null,Zoe={isBrowser:!0,classes:{URLSearchParams:Yoe,FormData:Koe,Blob:Xoe},protocols:["http","https","file","blob","url","data"]},_2=typeof window<"u"&&typeof document<"u",lA=typeof navigator=="object"&&navigator||void 0,Qoe=_2&&(!lA||["ReactNative","NativeScript","NS"].indexOf(lA.product)<0),Joe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ese=_2&&window.location.href||"http://localhost",tse=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_2,hasStandardBrowserEnv:Qoe,hasStandardBrowserWebWorkerEnv:Joe,navigator:lA,origin:ese},Symbol.toStringTag,{value:"Module"})),Sr={...tse,...Zoe};function nse(e,t){return Qb(e,new Sr.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Sr.isNode&&ye.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function rse(e){return ye.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ase(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function t9(e){function t(n,r,a,i){let o=n[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=i>=n.length;return o=!o&&ye.isArray(a)?a.length:o,l?(ye.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!ye.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&ye.isArray(a[o])&&(a[o]=ase(a[o])),!s)}if(ye.isFormData(e)&&ye.isFunction(e.entries)){const n={};return ye.forEachEntry(e,(r,a)=>{t(rse(r),a,n,0)}),n}return null}function ise(e,t,n){if(ye.isString(e))try{return(t||JSON.parse)(e),ye.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Cp={transitional:e9,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=ye.isObject(t);if(i&&ye.isHTMLForm(t)&&(t=new FormData(t)),ye.isFormData(t))return a?JSON.stringify(t9(t)):t;if(ye.isArrayBuffer(t)||ye.isBuffer(t)||ye.isStream(t)||ye.isFile(t)||ye.isBlob(t)||ye.isReadableStream(t))return t;if(ye.isArrayBufferView(t))return t.buffer;if(ye.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return nse(t,this.formSerializer).toString();if((s=ye.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Qb(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),ise(t)):t}],transformResponse:[function(t){const n=this.transitional||Cp.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(ye.isResponse(t)||ye.isReadableStream(t))return t;if(t&&ye.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Tt.from(s,Tt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Sr.classes.FormData,Blob:Sr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ye.forEach(["delete","get","head","post","put","patch"],e=>{Cp.headers[e]={}});const ose=ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sse=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&ose[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},uF=Symbol("internals");function Qd(e){return e&&String(e).trim().toLowerCase()}function nm(e){return e===!1||e==null?e:ye.isArray(e)?e.map(nm):String(e)}function lse(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const cse=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function AS(e,t,n,r,a){if(ye.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!ye.isString(t)){if(ye.isString(r))return t.indexOf(r)!==-1;if(ye.isRegExp(r))return r.test(t)}}function use(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function dse(e,t){const n=ye.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}let Yr=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,l,c){const d=Qd(l);if(!d)throw new Error("header name must be a non-empty string");const p=ye.findKey(a,d);(!p||a[p]===void 0||c===!0||c===void 0&&a[p]!==!1)&&(a[p||l]=nm(s))}const o=(s,l)=>ye.forEach(s,(c,d)=>i(c,d,l));if(ye.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(ye.isString(t)&&(t=t.trim())&&!cse(t))o(sse(t),n);else if(ye.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Qd(t),t){const r=ye.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return lse(a);if(ye.isFunction(n))return n.call(this,a,r);if(ye.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Qd(t),t){const r=ye.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||AS(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=Qd(o),o){const s=ye.findKey(r,o);s&&(!n||AS(r,r[s],s,n))&&(delete r[s],a=!0)}}return ye.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||AS(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return ye.forEach(this,(a,i)=>{const o=ye.findKey(r,i);if(o){n[o]=nm(a),delete n[i];return}const s=t?use(i):String(i).trim();s!==i&&delete n[i],n[s]=nm(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ye.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&ye.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[uF]=this[uF]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Qd(o);r[s]||(dse(a,o),r[s]=!0)}return ye.isArray(t)?t.forEach(i):i(t),this}};Yr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ye.reduceDescriptors(Yr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ye.freezeMethods(Yr);function RS(e,t){const n=this||Cp,r=t||n,a=Yr.from(r.headers);let i=r.data;return ye.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function n9(e){return!!(e&&e.__CANCEL__)}function Du(e,t,n){Tt.call(this,e??"canceled",Tt.ERR_CANCELED,t,n),this.name="CanceledError"}ye.inherits(Du,Tt,{__CANCEL__:!0});function r9(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Tt("Request failed with status code "+n.status,[Tt.ERR_BAD_REQUEST,Tt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function fse(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pse(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[i];o||(o=c),n[a]=l,r[a]=c;let p=i,h=0;for(;p!==a;)h+=n[p++],p=p%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const g=d&&c-d;return g?Math.round(h*1e3/g):void 0}}function hse(e,t){let n=0,r=1e3/t,a,i;const o=(c,d=Date.now())=>{n=d,a=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),p=d-n;p>=r?o(c,d):(a=c,i||(i=setTimeout(()=>{i=null,o(a)},r-p)))},()=>a&&o(a)]}const Mm=(e,t,n=3)=>{let r=0;const a=pse(50,250);return hse(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-r,c=a(l),d=o<=s;r=o;const p={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-o)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(p)},n)},dF=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},fF=e=>(...t)=>ye.asap(()=>e(...t)),gse=Sr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Sr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Sr.origin),Sr.navigator&&/(msie|trident)/i.test(Sr.navigator.userAgent)):()=>!0,mse=Sr.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];ye.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),ye.isString(r)&&o.push("path="+r),ye.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bse(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yse(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function a9(e,t){return e&&!bse(t)?yse(e,t):t}const pF=e=>e instanceof Yr?{...e}:e;function El(e,t){t=t||{};const n={};function r(c,d,p,h){return ye.isPlainObject(c)&&ye.isPlainObject(d)?ye.merge.call({caseless:h},c,d):ye.isPlainObject(d)?ye.merge({},d):ye.isArray(d)?d.slice():d}function a(c,d,p,h){if(ye.isUndefined(d)){if(!ye.isUndefined(c))return r(void 0,c,p,h)}else return r(c,d,p,h)}function i(c,d){if(!ye.isUndefined(d))return r(void 0,d)}function o(c,d){if(ye.isUndefined(d)){if(!ye.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function s(c,d,p){if(p in t)return r(c,d);if(p in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,d,p)=>a(pF(c),pF(d),p,!0)};return ye.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=l[d]||a,h=p(e[d],t[d],d);ye.isUndefined(h)&&p!==s||(n[d]=h)}),n}const i9=e=>{const t=El({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=t;t.headers=o=Yr.from(o),t.url=JG(a9(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(ye.isFormData(n)){if(Sr.hasStandardBrowserEnv||Sr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...d]=l?l.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Sr.hasStandardBrowserEnv&&(r&&ye.isFunction(r)&&(r=r(t)),r||r!==!1&&gse(t.url))){const c=a&&i&&mse.read(i);c&&o.set(a,c)}return t},vse=typeof XMLHttpRequest<"u",xse=vse&&function(e){return new Promise(function(n,r){const a=i9(e);let i=a.data;const o=Yr.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=a,d,p,h,g,b;function y(){g&&g(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(a.method.toUpperCase(),a.url,!0),x.timeout=a.timeout;function w(){if(!x)return;const _=Yr.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),R={data:!s||s==="text"||s==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:_,config:e,request:x};r9(function(A){n(A),y()},function(A){r(A),y()},R),x=null}"onloadend"in x?x.onloadend=w:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(w)},x.onabort=function(){x&&(r(new Tt("Request aborted",Tt.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(new Tt("Network Error",Tt.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let N=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const R=a.transitional||e9;a.timeoutErrorMessage&&(N=a.timeoutErrorMessage),r(new Tt(N,R.clarifyTimeoutError?Tt.ETIMEDOUT:Tt.ECONNABORTED,e,x)),x=null},i===void 0&&o.setContentType(null),"setRequestHeader"in x&&ye.forEach(o.toJSON(),function(N,R){x.setRequestHeader(R,N)}),ye.isUndefined(a.withCredentials)||(x.withCredentials=!!a.withCredentials),s&&s!=="json"&&(x.responseType=a.responseType),c&&([h,b]=Mm(c,!0),x.addEventListener("progress",h)),l&&x.upload&&([p,g]=Mm(l),x.upload.addEventListener("progress",p),x.upload.addEventListener("loadend",g)),(a.cancelToken||a.signal)&&(d=_=>{x&&(r(!_||_.type?new Du(null,e,x):_),x.abort(),x=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const S=fse(a.url);if(S&&Sr.protocols.indexOf(S)===-1){r(new Tt("Unsupported protocol "+S+":",Tt.ERR_BAD_REQUEST,e));return}x.send(i||null)})},Sse=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const i=function(c){if(!a){a=!0,s();const d=c instanceof Error?c:this.reason;r.abort(d instanceof Tt?d:new Du(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,i(new Tt(`timeout ${t} of ms exceeded`,Tt.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>ye.asap(s),l}},wse=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},Ese=async function*(e,t){for await(const n of kse(e))yield*wse(n,t)},kse=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},hF=(e,t,n,r)=>{const a=Ese(e,t);let i=0,o,s=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await a.next();if(c){s(),l.close();return}let p=d.byteLength;if(n){let h=i+=p;n(h)}l.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},Jb=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",o9=Jb&&typeof ReadableStream=="function",_se=Jb&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),s9=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Cse=o9&&s9(()=>{let e=!1;const t=new Request(Sr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),gF=64*1024,cA=o9&&s9(()=>ye.isReadableStream(new Response("").body)),Fm={stream:cA&&(e=>e.body)};Jb&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Fm[t]&&(Fm[t]=ye.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Tt(`Response type '${t}' is not supported`,Tt.ERR_NOT_SUPPORT,r)})})})(new Response);const Tse=async e=>{if(e==null)return 0;if(ye.isBlob(e))return e.size;if(ye.isSpecCompliantForm(e))return(await new Request(Sr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ye.isArrayBufferView(e)||ye.isArrayBuffer(e))return e.byteLength;if(ye.isURLSearchParams(e)&&(e=e+""),ye.isString(e))return(await _se(e)).byteLength},Ase=async(e,t)=>{const n=ye.toFiniteNumber(e.getContentLength());return n??Tse(t)},Rse=Jb&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:d,withCredentials:p="same-origin",fetchOptions:h}=i9(e);c=c?(c+"").toLowerCase():"text";let g=Sse([a,i&&i.toAbortSignal()],o),b;const y=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let x;try{if(l&&Cse&&n!=="get"&&n!=="head"&&(x=await Ase(d,r))!==0){let R=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(ye.isFormData(r)&&(C=R.headers.get("content-type"))&&d.setContentType(C),R.body){const[A,I]=dF(x,Mm(fF(l)));r=hF(R.body,gF,A,I)}}ye.isString(p)||(p=p?"include":"omit");const w="credentials"in Request.prototype;b=new Request(t,{...h,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:w?p:void 0});let S=await fetch(b);const _=cA&&(c==="stream"||c==="response");if(cA&&(s||_&&y)){const R={};["status","statusText","headers"].forEach(D=>{R[D]=S[D]});const C=ye.toFiniteNumber(S.headers.get("content-length")),[A,I]=s&&dF(C,Mm(fF(s),!0))||[];S=new Response(hF(S.body,gF,A,()=>{I&&I(),y&&y()}),R)}c=c||"text";let N=await Fm[ye.findKey(Fm,c)||"text"](S,e);return!_&&y&&y(),await new Promise((R,C)=>{r9(R,C,{data:N,headers:Yr.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:b})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new Tt("Network Error",Tt.ERR_NETWORK,e,b),{cause:w.cause||w}):Tt.from(w,w&&w.code,e,b)}}),uA={http:Goe,xhr:xse,fetch:Rse};ye.forEach(uA,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mF=e=>`- ${e}`,Nse=e=>ye.isFunction(e)||e===null||e===!1,l9={getAdapter:e=>{e=ye.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i<t;i++){n=e[i];let o;if(r=n,!Nse(n)&&(r=uA[(o=String(n)).toLowerCase()],r===void 0))throw new Tt(`Unknown adapter '${o}'`);if(r)break;a[o||"#"+i]=r}if(!r){const i=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
`+i.map(mF).join(`
`):" "+mF(i[0]):"as no adapter specified";throw new Tt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:uA};function NS(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Du(null,e)}function bF(e){return NS(e),e.headers=Yr.from(e.headers),e.data=RS.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),l9.getAdapter(e.adapter||Cp.adapter)(e).then(function(r){return NS(e),r.data=RS.call(e,e.transformResponse,r),r.headers=Yr.from(r.headers),r},function(r){return n9(r)||(NS(e),r&&r.response&&(r.response.data=RS.call(e,e.transformResponse,r.response),r.response.headers=Yr.from(r.response.headers))),Promise.reject(r)})}const c9="1.7.9",ey={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ey[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const yF={};ey.transitional=function(t,n,r){function a(i,o){return"[Axios v"+c9+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new Tt(a(o," has been removed"+(n?" in "+n:"")),Tt.ERR_DEPRECATED);return n&&!yF[o]&&(yF[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};ey.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Lse(e,t,n){if(typeof e!="object")throw new Tt("options must be an object",Tt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new Tt("option "+i+" must be "+l,Tt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Tt("Unknown option "+i,Tt.ERR_BAD_OPTION)}}const rm={assertOptions:Lse,validators:ey},Si=rm.validators;let vl=class{constructor(t){this.defaults=t,this.interceptors={request:new cF,response:new cF}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=El(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&rm.assertOptions(r,{silentJSONParsing:Si.transitional(Si.boolean),forcedJSONParsing:Si.transitional(Si.boolean),clarifyTimeoutError:Si.transitional(Si.boolean)},!1),a!=null&&(ye.isFunction(a)?n.paramsSerializer={serialize:a}:rm.assertOptions(a,{encode:Si.function,serialize:Si.function},!0)),rm.assertOptions(n,{baseUrl:Si.spelling("baseURL"),withXsrfToken:Si.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&ye.merge(i.common,i[n.method]);i&&ye.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),n.headers=Yr.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let d,p=0,h;if(!l){const b=[bF.bind(this),void 0];for(b.unshift.apply(b,s),b.push.apply(b,c),h=b.length,d=Promise.resolve(n);p<h;)d=d.then(b[p++],b[p++]);return d}h=s.length;let g=n;for(p=0;p<h;){const b=s[p++],y=s[p++];try{g=b(g)}catch(x){y.call(this,x);break}}try{d=bF.call(this,g)}catch(b){return Promise.reject(b)}for(p=0,h=c.length;p<h;)d=d.then(c[p++],c[p++]);return d}getUri(t){t=El(this.defaults,t);const n=a9(t.baseURL,t.url);return JG(n,t.params,t.paramsSerializer)}};ye.forEach(["delete","get","head","options"],function(t){vl.prototype[t]=function(n,r){return this.request(El(r||{},{method:t,url:n,data:(r||{}).data}))}});ye.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,s){return this.request(El(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}vl.prototype[t]=n(),vl.prototype[t+"Form"]=n(!0)});let Ose=class u9{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new Du(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new u9(function(a){t=a}),cancel:t}}};function Dse(e){return function(n){return e.apply(null,n)}}function Ise(e){return ye.isObject(e)&&e.isAxiosError===!0}const dA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dA).forEach(([e,t])=>{dA[t]=e});function d9(e){const t=new vl(e),n=jG(vl.prototype.request,t);return ye.extend(n,vl.prototype,t,{allOwnKeys:!0}),ye.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return d9(El(e,a))},n}const In=d9(Cp);In.Axios=vl;In.CanceledError=Du;In.CancelToken=Ose;In.isCancel=n9;In.VERSION=c9;In.toFormData=Qb;In.AxiosError=Tt;In.Cancel=In.CanceledError;In.all=function(t){return Promise.all(t)};In.spread=Dse;In.isAxiosError=Ise;In.mergeConfig=El;In.AxiosHeaders=Yr;In.formToJSON=e=>t9(ye.isHTMLForm(e)?new FormData(e):e);In.getAdapter=l9.getAdapter;In.HttpStatusCode=dA;In.default=In;const{Axios:T8e,AxiosError:A8e,CanceledError:R8e,isCancel:N8e,CancelToken:L8e,VERSION:O8e,all:D8e,Cancel:I8e,isAxiosError:M8e,spread:F8e,toFormData:P8e,AxiosHeaders:B8e,HttpStatusCode:z8e,formToJSON:$8e,getAdapter:j8e,mergeConfig:U8e}=In,C2="",f9="/webui/",Pa="ghost",Mse="#B2EBF2",Fse="#000",Pse="#E2E2E2",fA="#EEEEEE",Bse="#F57F17",zse="#969696",$se="#F57F17",vF="#B2EBF2",pg=50,xF=100,cl=4,pA=20,jse=15,SF="*",Use={"text/plain":[".txt",".md",".html",".htm",".tex",".json",".xml",".yaml",".yml",".rtf",".odt",".epub",".csv",".log",".conf",".ini",".properties",".sql",".bat",".sh",".c",".cpp",".py",".java",".js",".ts",".swift",".go",".rb",".php",".css",".scss",".less"],"application/pdf":[".pdf"],"application/msword":[".doc"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":[".pptx"]},hA={name:"LightRAG",github:"https://github.com/HKUDS/LightRAG"},Hse="modulepreload",Gse=function(e){return"/webui/"+e},wF={},an=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.allSettled(n.map(l=>{if(l=Gse(l),l in wF)return;wF[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Hse,c||(p.as="script"),p.crossOrigin="",p.href=l,s&&p.setAttribute("nonce",s),document.head.appendChild(p),c)return new Promise((h,g)=>{p.addEventListener("load",h),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return a.then(o=>{for(const s of o||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};function p9(e,t){let n;try{n=e()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,void 0),s=(i=n.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>n.setItem(a,JSON.stringify(i,void 0)),removeItem:a=>n.removeItem(a)}}const gA=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return gA(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return gA(r)(n)}}}},qse=(e,t)=>(n,r,a)=>{let i={storage:p9(()=>localStorage),partialize:y=>y,version:0,merge:(y,x)=>({...x,...y}),...t},o=!1;const s=new Set,l=new Set;let c=i.storage;if(!c)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...y)},r,a);const d=()=>{const y=i.partialize({...r()});return c.setItem(i.name,{state:y,version:i.version})},p=a.setState;a.setState=(y,x)=>{p(y,x),d()};const h=e((...y)=>{n(...y),d()},r,a);a.getInitialState=()=>h;let g;const b=()=>{var y,x;if(!c)return;o=!1,s.forEach(S=>{var _;return S((_=r())!=null?_:h)});const w=((x=i.onRehydrateStorage)==null?void 0:x.call(i,(y=r())!=null?y:h))||void 0;return gA(c.getItem.bind(c))(i.name).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==i.version){if(i.migrate){const _=i.migrate(S.state,S.version);return _ instanceof Promise?_.then(N=>[!0,N]):[!0,_]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,S.state];return[!1,void 0]}).then(S=>{var _;const[N,R]=S;if(g=i.merge(R,(_=r())!=null?_:h),n(g,!0),N)return d()}).then(()=>{w==null||w(g,void 0),g=r(),o=!0,l.forEach(S=>S(g))}).catch(S=>{w==null||w(void 0,S)})};return a.persist={setOptions:y=>{i={...i,...y},y.storage&&(c=y.storage)},clearStorage:()=>{c==null||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>b(),hasHydrated:()=>o,onHydrate:y=>(s.add(y),()=>{s.delete(y)}),onFinishHydration:y=>(l.add(y),()=>{l.delete(y)})},i.skipHydration||b(),g||h},Wse=qse,Vse=Yb()(Wse(e=>({theme:"system",language:"en",showPropertyPanel:!0,showNodeSearchBar:!0,showLegend:!1,showNodeLabel:!0,enableNodeDrag:!0,showEdgeLabel:!1,enableHideUnselectedEdges:!0,enableEdgeEvents:!1,minEdgeSize:1,maxEdgeSize:1,graphQueryMaxDepth:3,graphMaxNodes:1e3,graphLayoutMaxIterations:15,queryLabel:SF,enableHealthCheck:!0,apiKey:null,currentTab:"documents",showFileName:!1,retrievalHistory:[],querySettings:{mode:"global",response_type:"Multiple Paragraphs",top_k:10,max_token_for_text_unit:4e3,max_token_for_global_context:4e3,max_token_for_local_context:4e3,only_need_context:!1,only_need_prompt:!1,stream:!0,history_turns:3,hl_keywords:[],ll_keywords:[]},setTheme:t=>e({theme:t}),setLanguage:t=>{e({language:t}),an(async()=>{const{default:n}=await Promise.resolve().then(()=>Cqe);return{default:n}},[]).then(({default:n})=>{n.language!==t&&n.changeLanguage(t)})},setGraphLayoutMaxIterations:t=>e({graphLayoutMaxIterations:t}),setQueryLabel:t=>e({queryLabel:t}),setGraphQueryMaxDepth:t=>e({graphQueryMaxDepth:t}),setGraphMaxNodes:t=>e({graphMaxNodes:t}),setMinEdgeSize:t=>e({minEdgeSize:t}),setMaxEdgeSize:t=>e({maxEdgeSize:t}),setEnableHealthCheck:t=>e({enableHealthCheck:t}),setApiKey:t=>e({apiKey:t}),setCurrentTab:t=>e({currentTab:t}),setRetrievalHistory:t=>e({retrievalHistory:t}),updateQuerySettings:t=>e(n=>({querySettings:{...n.querySettings,...t}})),setShowFileName:t=>e({showFileName:t}),setShowLegend:t=>e({showLegend:t})}),{name:"settings-storage",storage:p9(()=>localStorage),version:11,migrate:(e,t)=>(t<2&&(e.showEdgeLabel=!1),t<3&&(e.queryLabel=SF),t<4&&(e.showPropertyPanel=!0,e.showNodeSearchBar=!0,e.showNodeLabel=!0,e.enableHealthCheck=!0,e.apiKey=null),t<5&&(e.currentTab="documents"),t<6&&(e.querySettings={mode:"global",response_type:"Multiple Paragraphs",top_k:10,max_token_for_text_unit:4e3,max_token_for_global_context:4e3,max_token_for_local_context:4e3,only_need_context:!1,only_need_prompt:!1,stream:!0,history_turns:3,hl_keywords:[],ll_keywords:[]},e.retrievalHistory=[]),t<7&&(e.graphQueryMaxDepth=3,e.graphLayoutMaxIterations=15),t<8&&(e.graphMinDegree=0,e.language="en"),t<9&&(e.showFileName=!1),t<10&&(delete e.graphMinDegree,e.graphMaxNodes=1e3),t<11&&(e.minEdgeSize=1,e.maxEdgeSize=1),e)})),Pe=w2(Vse);class Yse{constructor(){jt(this,"nodes",[]);jt(this,"edges",[]);jt(this,"nodeIdMap",{});jt(this,"edgeIdMap",{});jt(this,"edgeDynamicIdMap",{});jt(this,"getNode",t=>{const n=this.nodeIdMap[t];if(n!==void 0)return this.nodes[n]});jt(this,"getEdge",(t,n=!0)=>{const r=n?this.edgeDynamicIdMap[t]:this.edgeIdMap[t];if(r!==void 0)return this.edges[r]});jt(this,"buildDynamicMap",()=>{this.edgeDynamicIdMap={};for(let t=0;t<this.edges.length;t++){const n=this.edges[t];this.edgeDynamicIdMap[n.dynamicId]=t}})}}const Kse=Yb()((e,t)=>({selectedNode:null,focusedNode:null,selectedEdge:null,focusedEdge:null,moveToSelectedNode:!1,isFetching:!1,graphIsEmpty:!1,lastSuccessfulQueryLabel:"",graphDataFetchAttempted:!1,labelsFetchAttempted:!1,rawGraph:null,sigmaGraph:null,sigmaInstance:null,allDatabaseLabels:["*"],typeColorMap:new Map,searchEngine:null,setGraphIsEmpty:n=>e({graphIsEmpty:n}),setLastSuccessfulQueryLabel:n=>e({lastSuccessfulQueryLabel:n}),setIsFetching:n=>e({isFetching:n}),setSelectedNode:(n,r)=>e({selectedNode:n,moveToSelectedNode:r}),setFocusedNode:n=>e({focusedNode:n}),setSelectedEdge:n=>e({selectedEdge:n}),setFocusedEdge:n=>e({focusedEdge:n}),clearSelection:()=>e({selectedNode:null,focusedNode:null,selectedEdge:null,focusedEdge:null}),reset:()=>{e({selectedNode:null,focusedNode:null,selectedEdge:null,focusedEdge:null,rawGraph:null,sigmaGraph:null,searchEngine:null,moveToSelectedNode:!1,graphIsEmpty:!1})},setRawGraph:n=>e({rawGraph:n}),setSigmaGraph:n=>{e({sigmaGraph:n})},setAllDatabaseLabels:n=>e({allDatabaseLabels:n}),fetchAllDatabaseLabels:async()=>{try{console.log("Fetching all database labels...");const n=await Zse();e({allDatabaseLabels:["*",...n]});return}catch(n){throw console.error("Failed to fetch all database labels:",n),e({allDatabaseLabels:["*"]}),n}},setMoveToSelectedNode:n=>e({moveToSelectedNode:n}),setSigmaInstance:n=>e({sigmaInstance:n}),setTypeColorMap:n=>e({typeColorMap:n}),setSearchEngine:n=>e({searchEngine:n}),resetSearchEngine:()=>e({searchEngine:null}),setGraphDataFetchAttempted:n=>e({graphDataFetchAttempted:n}),setLabelsFetchAttempted:n=>e({labelsFetchAttempted:n}),nodeToExpand:null,nodeToPrune:null,triggerNodeExpand:n=>e({nodeToExpand:n}),triggerNodePrune:n=>e({nodeToPrune:n}),graphDataVersion:0,incrementGraphDataVersion:()=>e(n=>({graphDataVersion:n.graphDataVersion+1})),updateNodeAndSelect:async(n,r,a,i)=>{const o=t(),{sigmaGraph:s,rawGraph:l}=o;if(!(!s||!l||!s.hasNode(n)))try{const c=s.getNodeAttributes(n);if(console.log("updateNodeAndSelect",n,r,a,i),n===r&&a==="entity_id"){s.addNode(i,{...c,label:i});const d=[];s.forEachEdge(n,(h,g,b,y)=>{const x=b===n?y:b,w=b===n,S=h,_=l.edgeDynamicIdMap[S],N=s.addEdge(w?i:x,w?x:i,g);_!==void 0&&d.push({originalDynamicId:S,newEdgeId:N,edgeIndex:_}),s.dropEdge(h)}),s.dropNode(n);const p=l.nodeIdMap[n];p!==void 0&&(l.nodes[p].id=i,l.nodes[p].labels=[i],l.nodes[p].properties.entity_id=i,delete l.nodeIdMap[n],l.nodeIdMap[i]=p),d.forEach(({originalDynamicId:h,newEdgeId:g,edgeIndex:b})=>{l.edges[b]&&(l.edges[b].source===n&&(l.edges[b].source=i),l.edges[b].target===n&&(l.edges[b].target=i),l.edges[b].dynamicId=g,delete l.edgeDynamicIdMap[h],l.edgeDynamicIdMap[g]=b)}),e({selectedNode:i,moveToSelectedNode:!0})}else{const d=l.nodeIdMap[String(n)];d!==void 0&&(l.nodes[d].properties[a]=i,a==="entity_id"&&(l.nodes[d].labels=[i],s.setNodeAttribute(String(n),"label",i))),e(p=>({graphDataVersion:p.graphDataVersion+1}))}}catch(c){throw console.error("Error updating node in graph:",c),new Error("Failed to update node in graph")}},updateEdgeAndSelect:async(n,r,a,i,o,s)=>{const l=t(),{sigmaGraph:c,rawGraph:d}=l;if(!(!c||!d))try{const p=d.edgeIdMap[String(n)];p!==void 0&&d.edges[p]&&(d.edges[p].properties[o]=s,r!==void 0&&o==="keywords"&&c.setEdgeAttribute(r,"label",s)),e(h=>({graphDataVersion:h.graphDataVersion+1})),e({selectedEdge:r})}catch(p){throw console.error(`Error updating edge ${a}->${i} in graph:`,p),new Error("Failed to update edge in graph")}}})),Ue=w2(Kse);class Xse{constructor(){jt(this,"navigate",null)}setNavigate(t){this.navigate=t}resetAllApplicationState(){console.log("Resetting all application state...");const t=Ue.getState(),n=t.sigmaInstance;t.reset(),t.setGraphDataFetchAttempted(!1),t.setLabelsFetchAttempted(!1),t.setSigmaInstance(null),t.setIsFetching(!1),fa.getState().clear(),Pe.getState().setRetrievalHistory([]),sessionStorage.clear(),n&&(n.getGraph().clear(),n.kill(),Ue.getState().setSigmaInstance(null))}handleDirectLoginAccess(){const t=!document.referrer;return t&&this.resetAllApplicationState(),t}navigateToLogin(){if(!this.navigate){console.error("Navigation function not set");return}this.resetAllApplicationState(),$a.getState().logout(),this.navigate("/login")}navigateToHome(){if(!this.navigate){console.error("Navigation function not set");return}this.navigate("/")}}const T2=new Xse,h9="Invalid API Key",g9="API Key required",gr=In.create({baseURL:C2,headers:{"Content-Type":"application/json"}});gr.interceptors.request.use(e=>{const t=Pe.getState().apiKey,n=localStorage.getItem("LIGHTRAG-API-TOKEN");return n&&(e.headers.Authorization=`Bearer ${n}`),t&&(e.headers["X-API-Key"]=t),e});gr.interceptors.response.use(e=>e,e=>{var t,n,r,a;if(e.response){if(((t=e.response)==null?void 0:t.status)===401){if((r=(n=e.config)==null?void 0:n.url)!=null&&r.includes("/login"))throw e;return T2.navigateToLogin(),Promise.reject(new Error("Authentication required"))}throw new Error(`${e.response.status} ${e.response.statusText}
${JSON.stringify(e.response.data)}
${(a=e.config)==null?void 0:a.url}`)}throw e});const m9=async(e,t,n)=>(await gr.get(`/graphs?label=${encodeURIComponent(e)}&max_depth=${t}&max_nodes=${n}`)).data,Zse=async()=>(await gr.get("/graph/label/list")).data,Qse=async()=>{try{return(await gr.get("/health")).data}catch(e){return{status:"error",message:ua(e)}}},Jse=async()=>(await gr.get("/documents")).data,ele=async()=>(await gr.post("/documents/scan")).data,tle=async e=>(await gr.post("/query",e)).data,nle=async(e,t,n)=>{const r=Pe.getState().apiKey,a=localStorage.getItem("LIGHTRAG-API-TOKEN"),i={"Content-Type":"application/json",Accept:"application/x-ndjson"};a&&(i.Authorization=`Bearer ${a}`),r&&(i["X-API-Key"]=r);try{const o=await fetch(`${C2}/query/stream`,{method:"POST",headers:i,body:JSON.stringify(e)});if(!o.ok){let d="Unknown error";try{d=await o.text()}catch{}throw new Error(`HTTP error ${o.status}: ${o.statusText}
${d}`)}if(!o.body)throw new Error("Response body is null");const s=o.body.getReader(),l=new TextDecoder;let c="";for(;;){const{done:d,value:p}=await s.read();if(d)break;c+=l.decode(p,{stream:!0});const h=c.split(`
`);c=h.pop()||"";for(const g of h)if(g.trim())try{const b=JSON.parse(g);b.response?t(b.response):b.error&&n&&n(b.error)}catch(b){console.error("Error parsing stream chunk:",g,b),n&&n(`Error parsing server response: ${g}`)}}if(c.trim())try{const d=JSON.parse(c);d.response?t(d.response):d.error&&n&&n(d.error)}catch(d){console.error("Error parsing final chunk:",c,d),n&&n(`Error parsing final server response: ${c}`)}}catch(o){const s=ua(o);console.error("Stream request failed:",s),n?n(s):console.error("Unhandled stream error:",s)}},rle=async(e,t)=>{const n=new FormData;return n.append("file",e),(await gr.post("/documents/upload",n,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:t!==void 0?a=>{const i=Math.round(a.loaded*100/a.total);t(i)}:void 0})).data},ale=async()=>(await gr.delete("/documents")).data,ile=async e=>(await gr.post("/documents/clear_cache",{modes:e})).data,b9=async()=>{try{const e=await gr.get("/auth-status",{timeout:5e3,headers:{Accept:"application/json"}});if((e.headers["content-type"]||"").includes("text/html"))return console.warn("Received HTML response instead of JSON for auth-status endpoint"),{auth_configured:!0,auth_mode:"enabled"};if(e.data&&typeof e.data=="object"&&"auth_configured"in e.data&&typeof e.data.auth_configured=="boolean"){if(e.data.auth_configured)return e.data;if(e.data.access_token&&typeof e.data.access_token=="string")return e.data;console.warn("Auth not configured but no valid access token provided")}return console.warn("Received invalid auth status response:",e.data),{auth_configured:!0,auth_mode:"enabled"}}catch(e){return console.error("Failed to get auth status:",ua(e)),{auth_configured:!0,auth_mode:"enabled"}}},ole=async()=>(await gr.get("/documents/pipeline_status")).data,sle=async(e,t)=>{const n=new FormData;return n.append("username",e),n.append("password",t),(await gr.post("/login",n,{headers:{"Content-Type":"multipart/form-data"}})).data},lle=async(e,t,n=!1)=>(await gr.post("/graph/entity/edit",{entity_name:e,updated_data:t,allow_rename:n})).data,cle=async(e,t,n)=>(await gr.post("/graph/relation/edit",{source_id:e,target_id:t,updated_data:n})).data,ule=async e=>{try{return(await gr.get(`/graph/entity/exists?name=${encodeURIComponent(e)}`)).data.exists}catch(t){return console.error("Error checking entity name:",t),!1}},dle=Yb()(e=>({health:!0,message:null,messageTitle:null,lastCheckTime:Date.now(),status:null,pipelineBusy:!1,check:async()=>{const t=await Qse();return t.status==="healthy"?((t.core_version||t.api_version)&&$a.getState().setVersion(t.core_version||null,t.api_version||null),("webui_title"in t||"webui_description"in t)&&$a.getState().setCustomTitle("webui_title"in t?t.webui_title??null:null,"webui_description"in t?t.webui_description??null:null),e({health:!0,message:null,messageTitle:null,lastCheckTime:Date.now(),status:t,pipelineBusy:t.pipeline_busy}),!0):(e({health:!1,message:t.message,messageTitle:"Backend Health Check Error!",lastCheckTime:Date.now(),status:null}),!1)},clear:()=>{e({health:!0,message:null,messageTitle:null})},setErrorMessage:(t,n)=>{e({health:!1,message:t,messageTitle:n})},setPipelineBusy:t=>{e({pipelineBusy:t})}})),fa=w2(dle),y9=e=>{try{const t=e.split(".");return t.length!==3?{}:JSON.parse(atob(t[1]))}catch(t){return console.error("Error parsing token payload:",t),{}}},v9=e=>y9(e).sub||null,fle=e=>y9(e).role==="guest",ple=()=>{const e=localStorage.getItem("LIGHTRAG-API-TOKEN"),t=localStorage.getItem("LIGHTRAG-CORE-VERSION"),n=localStorage.getItem("LIGHTRAG-API-VERSION"),r=localStorage.getItem("LIGHTRAG-WEBUI-TITLE"),a=localStorage.getItem("LIGHTRAG-WEBUI-DESCRIPTION"),i=e?v9(e):null;return e?{isAuthenticated:!0,isGuestMode:fle(e),coreVersion:t,apiVersion:n,username:i,webuiTitle:r,webuiDescription:a}:{isAuthenticated:!1,isGuestMode:!1,coreVersion:t,apiVersion:n,username:null,webuiTitle:r,webuiDescription:a}},$a=Yb(e=>{const t=ple();return{isAuthenticated:t.isAuthenticated,isGuestMode:t.isGuestMode,coreVersion:t.coreVersion,apiVersion:t.apiVersion,username:t.username,webuiTitle:t.webuiTitle,webuiDescription:t.webuiDescription,login:(n,r=!1,a=null,i=null,o=null,s=null)=>{localStorage.setItem("LIGHTRAG-API-TOKEN",n),a&&localStorage.setItem("LIGHTRAG-CORE-VERSION",a),i&&localStorage.setItem("LIGHTRAG-API-VERSION",i),o?localStorage.setItem("LIGHTRAG-WEBUI-TITLE",o):localStorage.removeItem("LIGHTRAG-WEBUI-TITLE"),s?localStorage.setItem("LIGHTRAG-WEBUI-DESCRIPTION",s):localStorage.removeItem("LIGHTRAG-WEBUI-DESCRIPTION");const l=v9(n);e({isAuthenticated:!0,isGuestMode:r,username:l,coreVersion:a,apiVersion:i,webuiTitle:o,webuiDescription:s})},logout:()=>{localStorage.removeItem("LIGHTRAG-API-TOKEN");const n=localStorage.getItem("LIGHTRAG-CORE-VERSION"),r=localStorage.getItem("LIGHTRAG-API-VERSION"),a=localStorage.getItem("LIGHTRAG-WEBUI-TITLE"),i=localStorage.getItem("LIGHTRAG-WEBUI-DESCRIPTION");e({isAuthenticated:!1,isGuestMode:!1,username:null,coreVersion:n,apiVersion:r,webuiTitle:a,webuiDescription:i})},setVersion:(n,r)=>{n&&localStorage.setItem("LIGHTRAG-CORE-VERSION",n),r&&localStorage.setItem("LIGHTRAG-API-VERSION",r),e({coreVersion:n,apiVersion:r})},setCustomTitle:(n,r)=>{n?localStorage.setItem("LIGHTRAG-WEBUI-TITLE",n):localStorage.removeItem("LIGHTRAG-WEBUI-TITLE"),r?localStorage.setItem("LIGHTRAG-WEBUI-DESCRIPTION",r):localStorage.removeItem("LIGHTRAG-WEBUI-DESCRIPTION"),e({webuiTitle:n,webuiDescription:r})}}});var hle=e=>{switch(e){case"success":return ble;case"info":return vle;case"warning":return yle;case"error":return xle;default:return null}},gle=Array(12).fill(0),mle=({visible:e,className:t})=>Re.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Re.createElement("div",{className:"sonner-spinner"},gle.map((n,r)=>Re.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),ble=Re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Re.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),yle=Re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Re.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),vle=Re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Re.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),xle=Re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Re.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Sle=Re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Re.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Re.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),wle=()=>{let[e,t]=Re.useState(document.hidden);return Re.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},mA=1,Ele=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,a=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:mA++,i=this.toasts.find(s=>s.id===a),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(s=>s.id===a?(this.publish({...s,...e,id:a,title:n}),{...s,...e,id:a,dismissible:o,title:n}):s):this.addToast({title:n,...r,dismissible:o,id:a}),a},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),a=n!==void 0,i,o=r.then(async l=>{if(i=["resolve",l],Re.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(_le(l)&&!l.ok){a=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:c,description:d})}else if(t.success!==void 0){a=!1;let c=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:c,description:d})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){a=!1;let c=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:c,description:d})}}).finally(()=>{var l;a&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),s=()=>new Promise((l,c)=>o.then(()=>i[0]==="reject"?c(i[1]):l(i[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||mA++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Gr=new Ele,kle=(e,t)=>{let n=(t==null?void 0:t.id)||mA++;return Gr.addToast({title:e,...t,id:n}),n},_le=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Cle=kle,Tle=()=>Gr.toasts,Ale=()=>Gr.getActiveToasts(),en=Object.assign(Cle,{success:Gr.success,info:Gr.info,warning:Gr.warning,error:Gr.error,custom:Gr.custom,message:Gr.message,promise:Gr.promise,dismiss:Gr.dismiss,loading:Gr.loading},{getHistory:Tle,getToasts:Ale});function Rle(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Rle(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);function hg(e){return e.label!==void 0}var Nle=3,Lle="32px",Ole="16px",EF=4e3,Dle=356,Ile=14,Mle=20,Fle=200;function Ja(...e){return e.filter(Boolean).join(" ")}function Ple(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Ble=e=>{var t,n,r,a,i,o,s,l,c,d,p;let{invert:h,toast:g,unstyled:b,interacting:y,setHeights:x,visibleToasts:w,heights:S,index:_,toasts:N,expanded:R,removeToast:C,defaultRichColors:A,closeButton:I,style:D,cancelButtonStyle:O,actionButtonStyle:P,className:G="",descriptionClassName:j="",duration:W,position:V,gap:B,loadingIcon:U,expandByDefault:M,classNames:K,icons:F,closeButtonAriaLabel:Y="Close toast",pauseWhenPageIsHidden:H}=e,[$,Z]=Re.useState(null),[Q,ie]=Re.useState(null),[te,ce]=Re.useState(!1),[Te,ne]=Re.useState(!1),[Ee,re]=Re.useState(!1),[we,xe]=Re.useState(!1),[Se,ee]=Re.useState(!1),[he,Ae]=Re.useState(0),[be,Ce]=Re.useState(0),ue=Re.useRef(g.duration||W||EF),Ve=Re.useRef(null),We=Re.useRef(null),ve=_===0,Ie=_+1<=w,ae=g.type,ge=g.dismissible!==!1,Me=g.className||"",He=g.descriptionClassName||"",tt=Re.useMemo(()=>S.findIndex(Ge=>Ge.toastId===g.id)||0,[S,g.id]),Pt=Re.useMemo(()=>{var Ge;return(Ge=g.closeButton)!=null?Ge:I},[g.closeButton,I]),Gt=Re.useMemo(()=>g.duration||W||EF,[g.duration,W]),Nt=Re.useRef(0),ct=Re.useRef(0),Bt=Re.useRef(0),wt=Re.useRef(null),[zt,bn]=V.split("-"),_n=Re.useMemo(()=>S.reduce((Ge,At,rn)=>rn>=tt?Ge:Ge+At.height,0),[S,tt]),on=wle(),Br=g.invert||h,mr=ae==="loading";ct.current=Re.useMemo(()=>tt*B+_n,[tt,_n]),Re.useEffect(()=>{ue.current=Gt},[Gt]),Re.useEffect(()=>{ce(!0)},[]),Re.useEffect(()=>{let Ge=We.current;if(Ge){let At=Ge.getBoundingClientRect().height;return Ce(At),x(rn=>[{toastId:g.id,height:At,position:g.position},...rn]),()=>x(rn=>rn.filter(rr=>rr.toastId!==g.id))}},[x,g.id]),Re.useLayoutEffect(()=>{if(!te)return;let Ge=We.current,At=Ge.style.height;Ge.style.height="auto";let rn=Ge.getBoundingClientRect().height;Ge.style.height=At,Ce(rn),x(rr=>rr.find($n=>$n.toastId===g.id)?rr.map($n=>$n.toastId===g.id?{...$n,height:rn}:$n):[{toastId:g.id,height:rn,position:g.position},...rr])},[te,g.title,g.description,x,g.id]);let Ln=Re.useCallback(()=>{ne(!0),Ae(ct.current),x(Ge=>Ge.filter(At=>At.toastId!==g.id)),setTimeout(()=>{C(g)},Fle)},[g,C,x,ct]);Re.useEffect(()=>{if(g.promise&&ae==="loading"||g.duration===1/0||g.type==="loading")return;let Ge;return R||y||H&&on?(()=>{if(Bt.current<Nt.current){let At=new Date().getTime()-Nt.current;ue.current=ue.current-At}Bt.current=new Date().getTime()})():ue.current!==1/0&&(Nt.current=new Date().getTime(),Ge=setTimeout(()=>{var At;(At=g.onAutoClose)==null||At.call(g,g),Ln()},ue.current)),()=>clearTimeout(Ge)},[R,y,g,ae,H,on,Ln]),Re.useEffect(()=>{g.delete&&Ln()},[Ln,g.delete]);function Ya(){var Ge,At,rn;return F!=null&&F.loading?Re.createElement("div",{className:Ja(K==null?void 0:K.loader,(Ge=g==null?void 0:g.classNames)==null?void 0:Ge.loader,"sonner-loader"),"data-visible":ae==="loading"},F.loading):U?Re.createElement("div",{className:Ja(K==null?void 0:K.loader,(At=g==null?void 0:g.classNames)==null?void 0:At.loader,"sonner-loader"),"data-visible":ae==="loading"},U):Re.createElement(mle,{className:Ja(K==null?void 0:K.loader,(rn=g==null?void 0:g.classNames)==null?void 0:rn.loader),visible:ae==="loading"})}return Re.createElement("li",{tabIndex:0,ref:We,className:Ja(G,Me,K==null?void 0:K.toast,(t=g==null?void 0:g.classNames)==null?void 0:t.toast,K==null?void 0:K.default,K==null?void 0:K[ae],(n=g==null?void 0:g.classNames)==null?void 0:n[ae]),"data-sonner-toast":"","data-rich-colors":(r=g.richColors)!=null?r:A,"data-styled":!(g.jsx||g.unstyled||b),"data-mounted":te,"data-promise":!!g.promise,"data-swiped":Se,"data-removed":Te,"data-visible":Ie,"data-y-position":zt,"data-x-position":bn,"data-index":_,"data-front":ve,"data-swiping":Ee,"data-dismissible":ge,"data-type":ae,"data-invert":Br,"data-swipe-out":we,"data-swipe-direction":Q,"data-expanded":!!(R||M&&te),style:{"--index":_,"--toasts-before":_,"--z-index":N.length-_,"--offset":`${Te?he:ct.current}px`,"--initial-height":M?"auto":`${be}px`,...D,...g.style},onDragEnd:()=>{re(!1),Z(null),wt.current=null},onPointerDown:Ge=>{mr||!ge||(Ve.current=new Date,Ae(ct.current),Ge.target.setPointerCapture(Ge.pointerId),Ge.target.tagName!=="BUTTON"&&(re(!0),wt.current={x:Ge.clientX,y:Ge.clientY}))},onPointerUp:()=>{var Ge,At,rn,rr;if(we||!ge)return;wt.current=null;let $n=Number(((Ge=We.current)==null?void 0:Ge.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ar=Number(((At=We.current)==null?void 0:At.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ya=new Date().getTime()-((rn=Ve.current)==null?void 0:rn.getTime()),br=$==="x"?$n:ar,Cn=Math.abs(br)/ya;if(Math.abs(br)>=Mle||Cn>.11){Ae(ct.current),(rr=g.onDismiss)==null||rr.call(g,g),ie($==="x"?$n>0?"right":"left":ar>0?"down":"up"),Ln(),xe(!0),ee(!1);return}re(!1),Z(null)},onPointerMove:Ge=>{var At,rn,rr,$n;if(!wt.current||!ge||((At=window.getSelection())==null?void 0:At.toString().length)>0)return;let ar=Ge.clientY-wt.current.y,ya=Ge.clientX-wt.current.x,br=(rn=e.swipeDirections)!=null?rn:Ple(V);!$&&(Math.abs(ya)>1||Math.abs(ar)>1)&&Z(Math.abs(ya)>Math.abs(ar)?"x":"y");let Cn={x:0,y:0};$==="y"?(br.includes("top")||br.includes("bottom"))&&(br.includes("top")&&ar<0||br.includes("bottom")&&ar>0)&&(Cn.y=ar):$==="x"&&(br.includes("left")||br.includes("right"))&&(br.includes("left")&&ya<0||br.includes("right")&&ya>0)&&(Cn.x=ya),(Math.abs(Cn.x)>0||Math.abs(Cn.y)>0)&&ee(!0),(rr=We.current)==null||rr.style.setProperty("--swipe-amount-x",`${Cn.x}px`),($n=We.current)==null||$n.style.setProperty("--swipe-amount-y",`${Cn.y}px`)}},Pt&&!g.jsx?Re.createElement("button",{"aria-label":Y,"data-disabled":mr,"data-close-button":!0,onClick:mr||!ge?()=>{}:()=>{var Ge;Ln(),(Ge=g.onDismiss)==null||Ge.call(g,g)},className:Ja(K==null?void 0:K.closeButton,(a=g==null?void 0:g.classNames)==null?void 0:a.closeButton)},(i=F==null?void 0:F.close)!=null?i:Sle):null,g.jsx||T.isValidElement(g.title)?g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title:Re.createElement(Re.Fragment,null,ae||g.icon||g.promise?Re.createElement("div",{"data-icon":"",className:Ja(K==null?void 0:K.icon,(o=g==null?void 0:g.classNames)==null?void 0:o.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||Ya():null,g.type!=="loading"?g.icon||(F==null?void 0:F[ae])||hle(ae):null):null,Re.createElement("div",{"data-content":"",className:Ja(K==null?void 0:K.content,(s=g==null?void 0:g.classNames)==null?void 0:s.content)},Re.createElement("div",{"data-title":"",className:Ja(K==null?void 0:K.title,(l=g==null?void 0:g.classNames)==null?void 0:l.title)},typeof g.title=="function"?g.title():g.title),g.description?Re.createElement("div",{"data-description":"",className:Ja(j,He,K==null?void 0:K.description,(c=g==null?void 0:g.classNames)==null?void 0:c.description)},typeof g.description=="function"?g.description():g.description):null),T.isValidElement(g.cancel)?g.cancel:g.cancel&&hg(g.cancel)?Re.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||O,onClick:Ge=>{var At,rn;hg(g.cancel)&&ge&&((rn=(At=g.cancel).onClick)==null||rn.call(At,Ge),Ln())},className:Ja(K==null?void 0:K.cancelButton,(d=g==null?void 0:g.classNames)==null?void 0:d.cancelButton)},g.cancel.label):null,T.isValidElement(g.action)?g.action:g.action&&hg(g.action)?Re.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||P,onClick:Ge=>{var At,rn;hg(g.action)&&((rn=(At=g.action).onClick)==null||rn.call(At,Ge),!Ge.defaultPrevented&&Ln())},className:Ja(K==null?void 0:K.actionButton,(p=g==null?void 0:g.classNames)==null?void 0:p.actionButton)},g.action.label):null))};function kF(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function zle(e,t){let n={};return[e,t].forEach((r,a)=>{let i=a===1,o=i?"--mobile-offset":"--offset",s=i?Ole:Lle;function l(c){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=s:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(s)}),n}var $le=T.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:o,className:s,offset:l,mobileOffset:c,theme:d="light",richColors:p,duration:h,style:g,visibleToasts:b=Nle,toastOptions:y,dir:x=kF(),gap:w=Ile,loadingIcon:S,icons:_,containerAriaLabel:N="Notifications",pauseWhenPageIsHidden:R}=e,[C,A]=Re.useState([]),I=Re.useMemo(()=>Array.from(new Set([r].concat(C.filter(H=>H.position).map(H=>H.position)))),[C,r]),[D,O]=Re.useState([]),[P,G]=Re.useState(!1),[j,W]=Re.useState(!1),[V,B]=Re.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=Re.useRef(null),M=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),K=Re.useRef(null),F=Re.useRef(!1),Y=Re.useCallback(H=>{A($=>{var Z;return(Z=$.find(Q=>Q.id===H.id))!=null&&Z.delete||Gr.dismiss(H.id),$.filter(({id:Q})=>Q!==H.id)})},[]);return Re.useEffect(()=>Gr.subscribe(H=>{if(H.dismiss){A($=>$.map(Z=>Z.id===H.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{NG.flushSync(()=>{A($=>{let Z=$.findIndex(Q=>Q.id===H.id);return Z!==-1?[...$.slice(0,Z),{...$[Z],...H},...$.slice(Z+1)]:[H,...$]})})})}),[]),Re.useEffect(()=>{if(d!=="system"){B(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:$})=>{B($?"dark":"light")})}catch{H.addListener(({matches:Z})=>{try{B(Z?"dark":"light")}catch(Q){console.error(Q)}})}},[d]),Re.useEffect(()=>{C.length<=1&&G(!1)},[C]),Re.useEffect(()=>{let H=$=>{var Z,Q;a.every(ie=>$[ie]||$.code===ie)&&(G(!0),(Z=U.current)==null||Z.focus()),$.code==="Escape"&&(document.activeElement===U.current||(Q=U.current)!=null&&Q.contains(document.activeElement))&&G(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[a]),Re.useEffect(()=>{if(U.current)return()=>{K.current&&(K.current.focus({preventScroll:!0}),K.current=null,F.current=!1)}},[U.current]),Re.createElement("section",{ref:t,"aria-label":`${N} ${M}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((H,$)=>{var Z;let[Q,ie]=H.split("-");return C.length?Re.createElement("ol",{key:H,dir:x==="auto"?kF():x,tabIndex:-1,ref:U,className:s,"data-sonner-toaster":!0,"data-theme":V,"data-y-position":Q,"data-lifted":P&&C.length>1&&!i,"data-x-position":ie,style:{"--front-toast-height":`${((Z=D[0])==null?void 0:Z.height)||0}px`,"--width":`${Dle}px`,"--gap":`${w}px`,...g,...zle(l,c)},onBlur:te=>{F.current&&!te.currentTarget.contains(te.relatedTarget)&&(F.current=!1,K.current&&(K.current.focus({preventScroll:!0}),K.current=null))},onFocus:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||F.current||(F.current=!0,K.current=te.relatedTarget)},onMouseEnter:()=>G(!0),onMouseMove:()=>G(!0),onMouseLeave:()=>{j||G(!1)},onDragEnd:()=>G(!1),onPointerDown:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},C.filter(te=>!te.position&&$===0||te.position===H).map((te,ce)=>{var Te,ne;return Re.createElement(Ble,{key:te.id,icons:_,index:ce,toast:te,defaultRichColors:p,duration:(Te=y==null?void 0:y.duration)!=null?Te:h,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:b,closeButton:(ne=y==null?void 0:y.closeButton)!=null?ne:o,interacting:j,position:H,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:Y,toasts:C.filter(Ee=>Ee.position==te.position),heights:D.filter(Ee=>Ee.position==te.position),setHeights:O,expandByDefault:i,gap:w,loadingIcon:S,expanded:P,pauseWhenPageIsHidden:R,swipeDirections:e.swipeDirections})})):null}))});const jle={theme:"system",setTheme:()=>null},x9=T.createContext(jle);function S9({children:e,...t}){const n=Pe.use.theme(),r=Pe.use.setTheme();T.useEffect(()=>{const i=window.document.documentElement;if(i.classList.remove("light","dark"),n==="system"){const o=window.matchMedia("(prefers-color-scheme: dark)"),s=l=>{i.classList.remove("light","dark"),i.classList.add(l.matches?"dark":"light")};return i.classList.add(o.matches?"dark":"light"),o.addEventListener("change",s),()=>o.removeEventListener("change",s)}else i.classList.add(n)},[n]);const a={theme:n,setTheme:r};return k.jsx(x9.Provider,{...t,value:a,children:e})}const Ule={visibleTabs:{},setTabVisibility:()=>{},isTabVisible:()=>!1},w9=T.createContext(Ule),Hle=({children:e})=>{const t=Pe.use.currentTab(),[n,r]=T.useState(()=>({documents:!0,"knowledge-graph":!0,retrieval:!0,api:!0}));T.useEffect(()=>{r(i=>({...i,documents:!0,"knowledge-graph":!0,retrieval:!0,api:!0}))},[t]);const a=T.useMemo(()=>({visibleTabs:n,setTabVisibility:(i,o)=>{r(s=>({...s,[i]:o}))},isTabVisible:i=>!!n[i]}),[n]);return k.jsx(w9.Provider,{value:a,children:e})},Gle=(e,t,n,r)=>{var i,o,s,l;const a=[n,{code:t,...r||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);xl(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),(l=(s=e==null?void 0:e.services)==null?void 0:s.logger)!=null&&l.warn?e.services.logger.warn(...a):console!=null&&console.warn&&console.warn(...a)},_F={},bA=(e,t,n,r)=>{xl(n)&&_F[n]||(xl(n)&&(_F[n]=new Date),Gle(e,t,n,r))},E9=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},yA=(e,t,n)=>{e.loadNamespaces(t,E9(e,n))},CF=(e,t,n,r)=>{if(xl(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return yA(e,n,r);n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,E9(e,r))},qle=(e,t,n={})=>!t.languages||!t.languages.length?(bA(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),xl=e=>typeof e=="string",Wle=e=>typeof e=="object"&&e!==null,Vle=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Yle={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Kle=e=>Yle[e],Xle=e=>e.replace(Vle,Kle);let vA={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Xle};const Zle=(e={})=>{vA={...vA,...e}},Qle=()=>vA;let k9;const Jle=e=>{k9=e},ece=()=>k9,tce={type:"3rdParty",init(e){Zle(e.options.react),Jle(e)}},nce=T.createContext();class rce{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const ace=(e,t)=>{const n=T.useRef();return T.useEffect(()=>{n.current=e},[e,t]),n.current},_9=(e,t,n,r)=>e.getFixedT(t,n,r),ice=(e,t,n,r)=>T.useCallback(_9(e,t,n,r),[e,t,n,r]),Ht=(e,t={})=>{var N,R,C,A;const{i18n:n}=t,{i18n:r,defaultNS:a}=T.useContext(nce)||{},i=n||r||ece();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new rce),!i){bA(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const I=(O,P)=>xl(P)?P:Wle(P)&&xl(P.defaultValue)?P.defaultValue:Array.isArray(O)?O[O.length-1]:O,D=[I,{},!1];return D.t=I,D.i18n={},D.ready=!1,D}(N=i.options.react)!=null&&N.wait&&bA(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...Qle(),...i.options.react,...t},{useSuspense:s,keyPrefix:l}=o;let c=a||((R=i.options)==null?void 0:R.defaultNS);c=xl(c)?[c]:c||["translation"],(A=(C=i.reportNamespaces).addUsedNamespaces)==null||A.call(C,c);const d=(i.isInitialized||i.initializedStoreOnce)&&c.every(I=>qle(I,i,o)),p=ice(i,t.lng||null,o.nsMode==="fallback"?c:c[0],l),h=()=>p,g=()=>_9(i,t.lng||null,o.nsMode==="fallback"?c:c[0],l),[b,y]=T.useState(h);let x=c.join();t.lng&&(x=`${t.lng}${x}`);const w=ace(x),S=T.useRef(!0);T.useEffect(()=>{const{bindI18n:I,bindI18nStore:D}=o;S.current=!0,!d&&!s&&(t.lng?CF(i,t.lng,c,()=>{S.current&&y(g)}):yA(i,c,()=>{S.current&&y(g)})),d&&w&&w!==x&&S.current&&y(g);const O=()=>{S.current&&y(g)};return I&&(i==null||i.on(I,O)),D&&(i==null||i.store.on(D,O)),()=>{S.current=!1,i&&(I==null||I.split(" ").forEach(P=>i.off(P,O))),D&&i&&D.split(" ").forEach(P=>i.store.off(P,O))}},[i,x]),T.useEffect(()=>{S.current&&d&&y(h)},[i,l,d]);const _=[b,i,d];if(_.t=b,_.i18n=i,_.ready=d,d||!d&&!s)return _;throw new Promise(I=>{t.lng?CF(i,t.lng,c,()=>I()):yA(i,c,()=>I())})};function oce(e,t){const n=T.createContext(t),r=i=>{const{children:o,...s}=i,l=T.useMemo(()=>s,Object.values(s));return k.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function a(i){const o=T.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,a]}function pi(e,t=[]){let n=[];function r(i,o){const s=T.createContext(o),l=n.length;n=[...n,o];const c=p=>{var w;const{scope:h,children:g,...b}=p,y=((w=h==null?void 0:h[e])==null?void 0:w[l])||s,x=T.useMemo(()=>b,Object.values(b));return k.jsx(y.Provider,{value:x,children:g})};c.displayName=i+"Provider";function d(p,h){var y;const g=((y=h==null?void 0:h[e])==null?void 0:y[l])||s,b=T.useContext(g);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[c,d]}const a=()=>{const i=n.map(o=>T.createContext(o));return function(s){const l=(s==null?void 0:s[e])||i;return T.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[r,sce(a,...t)]}function sce(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((s,{useScope:l,scopeName:c})=>{const p=l(i)[`__scope${c}`];return{...s,...p}},{});return T.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function TF(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function C9(...e){return t=>{let n=!1;const r=e.map(a=>{const i=TF(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():TF(e[a],null)}}}}function Wt(...e){return T.useCallback(C9(...e),e)}function pt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}var _r=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{},lce=$re.useId||(()=>{}),cce=0;function Er(e){const[t,n]=T.useState(lce());return _r(()=>{n(r=>r??String(cce++))},[e]),t?`radix-${t}`:""}function fr(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Eo({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=uce({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,s=fr(n),l=T.useCallback(c=>{if(i){const p=typeof c=="function"?c(e):c;p!==e&&s(p)}else a(c)},[i,e,a,s]);return[o,l]}function uce({defaultProp:e,onChange:t}){const n=T.useState(e),[r]=n,a=T.useRef(r),i=fr(t);return T.useEffect(()=>{a.current!==r&&(i(r),a.current=r)},[r,a,i]),n}var vs=T.forwardRef((e,t)=>{const{children:n,...r}=e,a=T.Children.toArray(n),i=a.find(dce);if(i){const o=i.props.children,s=a.map(l=>l===i?T.Children.count(o)>1?T.Children.only(null):T.isValidElement(o)?o.props.children:null:l);return k.jsx(xA,{...r,ref:t,children:T.isValidElement(o)?T.cloneElement(o,void 0,s):null})}return k.jsx(xA,{...r,ref:t,children:n})});vs.displayName="Slot";var xA=T.forwardRef((e,t)=>{const{children:n,...r}=e;if(T.isValidElement(n)){const a=pce(n),i=fce(r,n.props);return n.type!==T.Fragment&&(i.ref=t?C9(t,a):a),T.cloneElement(n,i)}return T.Children.count(n)>1?T.Children.only(null):null});xA.displayName="SlotClone";var A2=({children:e})=>k.jsx(k.Fragment,{children:e});function dce(e){return T.isValidElement(e)&&e.type===A2}function fce(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...s)=>{i(...s),a(...s)}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function pce(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hce=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],mt=hce.reduce((e,t)=>{const n=T.forwardRef((r,a)=>{const{asChild:i,...o}=r,s=i?vs:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(s,{...o,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gce(e,t){e&&kp.flushSync(()=>e.dispatchEvent(t))}function mce(e,t=globalThis==null?void 0:globalThis.document){const n=fr(e);T.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var bce="DismissableLayer",SA="dismissableLayer.update",yce="dismissableLayer.pointerDownOutside",vce="dismissableLayer.focusOutside",AF,T9=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tp=T.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:s,...l}=e,c=T.useContext(T9),[d,p]=T.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=T.useState({}),b=Wt(t,A=>p(A)),y=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=y.indexOf(x),S=d?y.indexOf(d):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,N=S>=w,R=wce(A=>{const I=A.target,D=[...c.branches].some(O=>O.contains(I));!N||D||(a==null||a(A),o==null||o(A),A.defaultPrevented||s==null||s())},h),C=Ece(A=>{const I=A.target;[...c.branches].some(O=>O.contains(I))||(i==null||i(A),o==null||o(A),A.defaultPrevented||s==null||s())},h);return mce(A=>{S===c.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},h),T.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(AF=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),RF(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=AF)}},[d,h,n,c]),T.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),RF())},[d,c]),T.useEffect(()=>{const A=()=>g({});return document.addEventListener(SA,A),()=>document.removeEventListener(SA,A)},[]),k.jsx(mt.div,{...l,ref:b,style:{pointerEvents:_?N?"auto":"none":void 0,...e.style},onFocusCapture:pt(e.onFocusCapture,C.onFocusCapture),onBlurCapture:pt(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:pt(e.onPointerDownCapture,R.onPointerDownCapture)})});Tp.displayName=bce;var xce="DismissableLayerBranch",Sce=T.forwardRef((e,t)=>{const n=T.useContext(T9),r=T.useRef(null),a=Wt(t,r);return T.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),k.jsx(mt.div,{...e,ref:a})});Sce.displayName=xce;function wce(e,t=globalThis==null?void 0:globalThis.document){const n=fr(e),r=T.useRef(!1),a=T.useRef(()=>{});return T.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){A9(yce,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ece(e,t=globalThis==null?void 0:globalThis.document){const n=fr(e),r=T.useRef(!1);return T.useEffect(()=>{const a=i=>{i.target&&!r.current&&A9(vce,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function RF(){const e=new CustomEvent(SA);document.dispatchEvent(e)}function A9(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?gce(a,i):a.dispatchEvent(i)}var LS="focusScope.autoFocusOnMount",OS="focusScope.autoFocusOnUnmount",NF={bubbles:!1,cancelable:!0},kce="FocusScope",ty=T.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[s,l]=T.useState(null),c=fr(a),d=fr(i),p=T.useRef(null),h=Wt(t,y=>l(y)),g=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(r){let y=function(_){if(g.paused||!s)return;const N=_.target;s.contains(N)?p.current=N:ss(p.current,{select:!0})},x=function(_){if(g.paused||!s)return;const N=_.relatedTarget;N!==null&&(s.contains(N)||ss(p.current,{select:!0}))},w=function(_){if(document.activeElement===document.body)for(const R of _)R.removedNodes.length>0&&ss(s)};document.addEventListener("focusin",y),document.addEventListener("focusout",x);const S=new MutationObserver(w);return s&&S.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),S.disconnect()}}},[r,s,g.paused]),T.useEffect(()=>{if(s){OF.add(g);const y=document.activeElement;if(!s.contains(y)){const w=new CustomEvent(LS,NF);s.addEventListener(LS,c),s.dispatchEvent(w),w.defaultPrevented||(_ce(Nce(R9(s)),{select:!0}),document.activeElement===y&&ss(s))}return()=>{s.removeEventListener(LS,c),setTimeout(()=>{const w=new CustomEvent(OS,NF);s.addEventListener(OS,d),s.dispatchEvent(w),w.defaultPrevented||ss(y??document.body,{select:!0}),s.removeEventListener(OS,d),OF.remove(g)},0)}}},[s,c,d,g]);const b=T.useCallback(y=>{if(!n&&!r||g.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,w=document.activeElement;if(x&&w){const S=y.currentTarget,[_,N]=Cce(S);_&&N?!y.shiftKey&&w===N?(y.preventDefault(),n&&ss(_,{select:!0})):y.shiftKey&&w===_&&(y.preventDefault(),n&&ss(N,{select:!0})):w===S&&y.preventDefault()}},[n,r,g.paused]);return k.jsx(mt.div,{tabIndex:-1,...o,ref:h,onKeyDown:b})});ty.displayName=kce;function _ce(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ss(r,{select:t}),document.activeElement!==n)return}function Cce(e){const t=R9(e),n=LF(t,e),r=LF(t.reverse(),e);return[n,r]}function R9(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function LF(e,t){for(const n of e)if(!Tce(n,{upTo:t}))return n}function Tce(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ace(e){return e instanceof HTMLInputElement&&"select"in e}function ss(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ace(e)&&t&&e.select()}}var OF=Rce();function Rce(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=DF(e,t),e.unshift(t)},remove(t){var n;e=DF(e,t),(n=e[0])==null||n.resume()}}}function DF(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Nce(e){return e.filter(t=>t.tagName!=="A")}var Lce="Portal",ny=T.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[a,i]=T.useState(!1);_r(()=>i(!0),[]);const o=n||a&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?NG.createPortal(k.jsx(mt.div,{...r,ref:t}),o):null});ny.displayName=Lce;function Oce(e,t){return T.useReducer((n,r)=>t[n][r]??n,e)}var ba=e=>{const{present:t,children:n}=e,r=Dce(t),a=typeof n=="function"?n({present:r.isPresent}):T.Children.only(n),i=Wt(r.ref,Ice(a));return typeof n=="function"||r.isPresent?T.cloneElement(a,{ref:i}):null};ba.displayName="Presence";function Dce(e){const[t,n]=T.useState(),r=T.useRef({}),a=T.useRef(e),i=T.useRef("none"),o=e?"mounted":"unmounted",[s,l]=Oce(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const c=gg(r.current);i.current=s==="mounted"?c:"none"},[s]),_r(()=>{const c=r.current,d=a.current;if(d!==e){const h=i.current,g=gg(c);e?l("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),_r(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=g=>{const y=gg(r.current).includes(g.animationName);if(g.target===t&&y&&(l("ANIMATION_END"),!a.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},h=g=>{g.target===t&&(i.current=gg(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:T.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function gg(e){return(e==null?void 0:e.animationName)||"none"}function Ice(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var DS=0;function R2(){T.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??IF()),document.body.insertAdjacentElement("beforeend",e[1]??IF()),DS++,()=>{DS===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),DS--}},[])}function IF(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ti=function(){return Ti=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ti.apply(this,arguments)};function N9(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function zl(e,t,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(d){try{c(r.next(d))}catch(p){o(p)}}function l(d){try{c(r.throw(d))}catch(p){o(p)}}function c(d){d.done?i(d.value):a(d.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function Mce(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var am="right-scroll-bar-position",im="width-before-scroll-bar",Fce="with-scroll-bars-hidden",Pce="--removed-body-scroll-bar-size";function IS(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Bce(e,t){var n=T.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var zce=typeof window<"u"?T.useLayoutEffect:T.useEffect,MF=new WeakMap;function $ce(e,t){var n=Bce(null,function(r){return e.forEach(function(a){return IS(a,r)})});return zce(function(){var r=MF.get(n);if(r){var a=new Set(r),i=new Set(e),o=n.current;a.forEach(function(s){i.has(s)||IS(s,null)}),i.forEach(function(s){a.has(s)||IS(s,o)})}MF.set(n,e)},[e]),n}function jce(e){return e}function Uce(e,t){t===void 0&&(t=jce);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(s){return s!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var s=n;n=[],s.forEach(i),o=n}var l=function(){var d=o;o=[],d.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(d){o.push(d),c()},filter:function(d){return o=o.filter(d),n}}}};return a}function Hce(e){e===void 0&&(e={});var t=Uce(null);return t.options=Ti({async:!0,ssr:!1},e),t}var L9=function(e){var t=e.sideCar,n=N9(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return T.createElement(r,Ti({},n))};L9.isSideCarExport=!0;function Gce(e,t){return e.useMedium(t),L9}var O9=Hce(),MS=function(){},ry=T.forwardRef(function(e,t){var n=T.useRef(null),r=T.useState({onScrollCapture:MS,onWheelCapture:MS,onTouchMoveCapture:MS}),a=r[0],i=r[1],o=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,g=e.noIsolation,b=e.inert,y=e.allowPinchZoom,x=e.as,w=x===void 0?"div":x,S=e.gapMode,_=N9(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=h,R=$ce([n,t]),C=Ti(Ti({},_),a);return T.createElement(T.Fragment,null,d&&T.createElement(N,{sideCar:O9,removeScrollBar:c,shards:p,noIsolation:g,inert:b,setCallbacks:i,allowPinchZoom:!!y,lockRef:n,gapMode:S}),o?T.cloneElement(T.Children.only(s),Ti(Ti({},C),{ref:R})):T.createElement(w,Ti({},C,{className:l,ref:R}),s))});ry.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ry.classNames={fullWidth:im,zeroRight:am};var qce=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Wce(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qce();return t&&e.setAttribute("nonce",t),e}function Vce(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yce(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Kce=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Wce())&&(Vce(t,n),Yce(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xce=function(){var e=Kce();return function(t,n){T.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},D9=function(){var e=Xce(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},Zce={left:0,top:0,right:0,gap:0},FS=function(e){return parseInt(e||"",10)||0},Qce=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[FS(n),FS(r),FS(a)]},Jce=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Zce;var t=Qce(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eue=D9(),Wc="data-scroll-locked",tue=function(e,t,n,r){var a=e.left,i=e.top,o=e.right,s=e.gap;return n===void 0&&(n="margin"),`
.`.concat(Fce,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(s,"px ").concat(r,`;
}
body[`).concat(Wc,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(a,`px;
padding-top: `).concat(i,`px;
padding-right: `).concat(o,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(s,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(am,` {
right: `).concat(s,"px ").concat(r,`;
}
.`).concat(im,` {
margin-right: `).concat(s,"px ").concat(r,`;
}
.`).concat(am," .").concat(am,` {
right: 0 `).concat(r,`;
}
.`).concat(im," .").concat(im,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(Wc,`] {
`).concat(Pce,": ").concat(s,`px;
}
`)},FF=function(){var e=parseInt(document.body.getAttribute(Wc)||"0",10);return isFinite(e)?e:0},nue=function(){T.useEffect(function(){return document.body.setAttribute(Wc,(FF()+1).toString()),function(){var e=FF()-1;e<=0?document.body.removeAttribute(Wc):document.body.setAttribute(Wc,e.toString())}},[])},rue=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;nue();var i=T.useMemo(function(){return Jce(a)},[a]);return T.createElement(eue,{styles:tue(i,!t,a,n?"":"!important")})},wA=!1;if(typeof window<"u")try{var mg=Object.defineProperty({},"passive",{get:function(){return wA=!0,!0}});window.addEventListener("test",mg,mg),window.removeEventListener("test",mg,mg)}catch{wA=!1}var Cc=wA?{passive:!1}:!1,aue=function(e){return e.tagName==="TEXTAREA"},I9=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!aue(e)&&n[t]==="visible")},iue=function(e){return I9(e,"overflowY")},oue=function(e){return I9(e,"overflowX")},PF=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=M9(e,r);if(a){var i=F9(e,r),o=i[1],s=i[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},sue=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},lue=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},M9=function(e,t){return e==="v"?iue(t):oue(t)},F9=function(e,t){return e==="v"?sue(t):lue(t)},cue=function(e,t){return e==="h"&&t==="rtl"?-1:1},uue=function(e,t,n,r,a){var i=cue(e,window.getComputedStyle(t).direction),o=i*r,s=n.target,l=t.contains(s),c=!1,d=o>0,p=0,h=0;do{var g=F9(e,s),b=g[0],y=g[1],x=g[2],w=y-x-i*b;(b||w)&&M9(e,s)&&(p+=w,h+=b),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&Math.abs(p)<1||!d&&Math.abs(h)<1)&&(c=!0),c},bg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},BF=function(e){return[e.deltaX,e.deltaY]},zF=function(e){return e&&"current"in e?e.current:e},due=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fue=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},pue=0,Tc=[];function hue(e){var t=T.useRef([]),n=T.useRef([0,0]),r=T.useRef(),a=T.useState(pue++)[0],i=T.useState(D9)[0],o=T.useRef(e);T.useEffect(function(){o.current=e},[e]),T.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=Mce([e.lockRef.current],(e.shards||[]).map(zF),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=T.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!o.current.allowPinchZoom;var w=bg(y),S=n.current,_="deltaX"in y?y.deltaX:S[0]-w[0],N="deltaY"in y?y.deltaY:S[1]-w[1],R,C=y.target,A=Math.abs(_)>Math.abs(N)?"h":"v";if("touches"in y&&A==="h"&&C.type==="range")return!1;var I=PF(A,C);if(!I)return!0;if(I?R=A:(R=A==="v"?"h":"v",I=PF(A,C)),!I)return!1;if(!r.current&&"changedTouches"in y&&(_||N)&&(r.current=R),!R)return!0;var D=r.current||R;return uue(D,x,y,D==="h"?_:N)},[]),l=T.useCallback(function(y){var x=y;if(!(!Tc.length||Tc[Tc.length-1]!==i)){var w="deltaY"in x?BF(x):bg(x),S=t.current.filter(function(R){return R.name===x.type&&(R.target===x.target||x.target===R.shadowParent)&&due(R.delta,w)})[0];if(S&&S.should){x.cancelable&&x.preventDefault();return}if(!S){var _=(o.current.shards||[]).map(zF).filter(Boolean).filter(function(R){return R.contains(x.target)}),N=_.length>0?s(x,_[0]):!o.current.noIsolation;N&&x.cancelable&&x.preventDefault()}}},[]),c=T.useCallback(function(y,x,w,S){var _={name:y,delta:x,target:w,should:S,shadowParent:gue(w)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(N){return N!==_})},1)},[]),d=T.useCallback(function(y){n.current=bg(y),r.current=void 0},[]),p=T.useCallback(function(y){c(y.type,BF(y),y.target,s(y,e.lockRef.current))},[]),h=T.useCallback(function(y){c(y.type,bg(y),y.target,s(y,e.lockRef.current))},[]);T.useEffect(function(){return Tc.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Cc),document.addEventListener("touchmove",l,Cc),document.addEventListener("touchstart",d,Cc),function(){Tc=Tc.filter(function(y){return y!==i}),document.removeEventListener("wheel",l,Cc),document.removeEventListener("touchmove",l,Cc),document.removeEventListener("touchstart",d,Cc)}},[]);var g=e.removeScrollBar,b=e.inert;return T.createElement(T.Fragment,null,b?T.createElement(i,{styles:fue(a)}):null,g?T.createElement(rue,{gapMode:e.gapMode}):null)}function gue(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const mue=Gce(O9,hue);var ay=T.forwardRef(function(e,t){return T.createElement(ry,Ti({},e,{ref:t,sideCar:mue}))});ay.classNames=ry.classNames;var bue=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ac=new WeakMap,yg=new WeakMap,vg={},PS=0,P9=function(e){return e&&(e.host||P9(e.parentNode))},yue=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=P9(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},vue=function(e,t,n,r){var a=yue(t,Array.isArray(e)?e:[e]);vg[n]||(vg[n]=new WeakMap);var i=vg[n],o=[],s=new Set,l=new Set(a),c=function(p){!p||s.has(p)||(s.add(p),c(p.parentNode))};a.forEach(c);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(h){if(s.has(h))d(h);else try{var g=h.getAttribute(r),b=g!==null&&g!=="false",y=(Ac.get(h)||0)+1,x=(i.get(h)||0)+1;Ac.set(h,y),i.set(h,x),o.push(h),y===1&&b&&yg.set(h,!0),x===1&&h.setAttribute(n,"true"),b||h.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",h,w)}})};return d(t),s.clear(),PS++,function(){o.forEach(function(p){var h=Ac.get(p)-1,g=i.get(p)-1;Ac.set(p,h),i.set(p,g),h||(yg.has(p)||p.removeAttribute(r),yg.delete(p)),g||p.removeAttribute(n)}),PS--,PS||(Ac=new WeakMap,Ac=new WeakMap,yg=new WeakMap,vg={})}},N2=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=bue(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),vue(r,a,n,"aria-hidden")):function(){return null}},L2="Dialog",[B9,z9]=pi(L2),[xue,hi]=B9(L2),$9=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:o=!0}=e,s=T.useRef(null),l=T.useRef(null),[c=!1,d]=Eo({prop:r,defaultProp:a,onChange:i});return k.jsx(xue,{scope:t,triggerRef:s,contentRef:l,contentId:Er(),titleId:Er(),descriptionId:Er(),open:c,onOpenChange:d,onOpenToggle:T.useCallback(()=>d(p=>!p),[d]),modal:o,children:n})};$9.displayName=L2;var j9="DialogTrigger",U9=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=hi(j9,n),i=Wt(t,a.triggerRef);return k.jsx(mt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":I2(a.open),...r,ref:i,onClick:pt(e.onClick,a.onOpenToggle)})});U9.displayName=j9;var O2="DialogPortal",[Sue,H9]=B9(O2,{forceMount:void 0}),G9=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,i=hi(O2,t);return k.jsx(Sue,{scope:t,forceMount:n,children:T.Children.map(r,o=>k.jsx(ba,{present:n||i.open,children:k.jsx(ny,{asChild:!0,container:a,children:o})}))})};G9.displayName=O2;var Pm="DialogOverlay",q9=T.forwardRef((e,t)=>{const n=H9(Pm,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=hi(Pm,e.__scopeDialog);return i.modal?k.jsx(ba,{present:r||i.open,children:k.jsx(wue,{...a,ref:t})}):null});q9.displayName=Pm;var wue=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=hi(Pm,n);return k.jsx(ay,{as:vs,allowPinchZoom:!0,shards:[a.contentRef],children:k.jsx(mt.div,{"data-state":I2(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),kl="DialogContent",W9=T.forwardRef((e,t)=>{const n=H9(kl,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=hi(kl,e.__scopeDialog);return k.jsx(ba,{present:r||i.open,children:i.modal?k.jsx(Eue,{...a,ref:t}):k.jsx(kue,{...a,ref:t})})});W9.displayName=kl;var Eue=T.forwardRef((e,t)=>{const n=hi(kl,e.__scopeDialog),r=T.useRef(null),a=Wt(t,n.contentRef,r);return T.useEffect(()=>{const i=r.current;if(i)return N2(i)},[]),k.jsx(V9,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:pt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,s=o.button===0&&o.ctrlKey===!0;(o.button===2||s)&&i.preventDefault()}),onFocusOutside:pt(e.onFocusOutside,i=>i.preventDefault())})}),kue=T.forwardRef((e,t)=>{const n=hi(kl,e.__scopeDialog),r=T.useRef(!1),a=T.useRef(!1);return k.jsx(V9,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,s;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),V9=T.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=e,s=hi(kl,n),l=T.useRef(null),c=Wt(t,l);return R2(),k.jsxs(k.Fragment,{children:[k.jsx(ty,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:k.jsx(Tp,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":I2(s.open),...o,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),k.jsxs(k.Fragment,{children:[k.jsx(Cue,{titleId:s.titleId}),k.jsx(Aue,{contentRef:l,descriptionId:s.descriptionId})]})]})}),D2="DialogTitle",Y9=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=hi(D2,n);return k.jsx(mt.h2,{id:a.titleId,...r,ref:t})});Y9.displayName=D2;var K9="DialogDescription",X9=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=hi(K9,n);return k.jsx(mt.p,{id:a.descriptionId,...r,ref:t})});X9.displayName=K9;var Z9="DialogClose",Q9=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=hi(Z9,n);return k.jsx(mt.button,{type:"button",...r,ref:t,onClick:pt(e.onClick,()=>a.onOpenChange(!1))})});Q9.displayName=Z9;function I2(e){return e?"open":"closed"}var J9="DialogTitleWarning",[_ue,eq]=oce(J9,{contentName:kl,titleName:D2,docsSlug:"dialog"}),Cue=({titleId:e})=>{const t=eq(J9),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return T.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Tue="DialogDescriptionWarning",Aue=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${eq(Tue).contentName}}.`;return T.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},M2=$9,tq=U9,F2=G9,iy=q9,oy=W9,P2=Y9,B2=X9,z2=Q9,nq="AlertDialog",[Rue,H8e]=pi(nq,[z9]),Ro=z9(),rq=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ro(t);return k.jsx(M2,{...r,...n,modal:!0})};rq.displayName=nq;var Nue="AlertDialogTrigger",Lue=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Ro(n);return k.jsx(tq,{...a,...r,ref:t})});Lue.displayName=Nue;var Oue="AlertDialogPortal",aq=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ro(t);return k.jsx(F2,{...r,...n})};aq.displayName=Oue;var Due="AlertDialogOverlay",iq=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Ro(n);return k.jsx(iy,{...a,...r,ref:t})});iq.displayName=Due;var Vc="AlertDialogContent",[Iue,Mue]=Rue(Vc),oq=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...a}=e,i=Ro(n),o=T.useRef(null),s=Wt(t,o),l=T.useRef(null);return k.jsx(_ue,{contentName:Vc,titleName:sq,docsSlug:"alert-dialog",children:k.jsx(Iue,{scope:n,cancelRef:l,children:k.jsxs(oy,{role:"alertdialog",...i,...a,ref:s,onOpenAutoFocus:pt(a.onOpenAutoFocus,c=>{var d;c.preventDefault(),(d=l.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[k.jsx(A2,{children:r}),k.jsx(Pue,{contentRef:o})]})})})});oq.displayName=Vc;var sq="AlertDialogTitle",lq=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Ro(n);return k.jsx(P2,{...a,...r,ref:t})});lq.displayName=sq;var cq="AlertDialogDescription",uq=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Ro(n);return k.jsx(B2,{...a,...r,ref:t})});uq.displayName=cq;var Fue="AlertDialogAction",dq=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Ro(n);return k.jsx(z2,{...a,...r,ref:t})});dq.displayName=Fue;var fq="AlertDialogCancel",pq=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:a}=Mue(fq,n),i=Ro(n),o=Wt(t,a);return k.jsx(z2,{...i,...r,ref:o})});pq.displayName=fq;var Pue=({contentRef:e})=>{const t=`\`${Vc}\` requires a description for the component to be accessible for screen reader users.
You can add a description to the \`${Vc}\` by passing a \`${cq}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Vc}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return T.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Bue=rq,zue=aq,hq=iq,gq=oq,mq=dq,bq=pq,yq=lq,vq=uq;const $F=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,jF=OG,$ue=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return jF(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(c=>{const d=n==null?void 0:n[c],p=i==null?void 0:i[c];if(d===null)return null;const h=$F(d)||$F(p);return a[c][h]}),s=n&&Object.entries(n).reduce((c,d)=>{let[p,h]=d;return h===void 0||(c[p]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:p,className:h,...g}=d;return Object.entries(g).every(b=>{let[y,x]=b;return Array.isArray(x)?x.includes({...i,...s}[y]):{...i,...s}[y]===x})?[...c,p,h]:c},[]);return jF(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},jue=["top","right","bottom","left"],xs=Math.min,ca=Math.max,Bm=Math.round,xg=Math.floor,Li=e=>({x:e,y:e}),Uue={left:"right",right:"left",bottom:"top",top:"bottom"},Hue={start:"end",end:"start"};function EA(e,t,n){return ca(e,xs(t,n))}function ko(e,t){return typeof e=="function"?e(t):e}function _o(e){return e.split("-")[0]}function Iu(e){return e.split("-")[1]}function $2(e){return e==="x"?"y":"x"}function j2(e){return e==="y"?"height":"width"}function Ss(e){return["top","bottom"].includes(_o(e))?"y":"x"}function U2(e){return $2(Ss(e))}function Gue(e,t,n){n===void 0&&(n=!1);const r=Iu(e),a=U2(e),i=j2(a);let o=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=zm(o)),[o,zm(o)]}function que(e){const t=zm(e);return[kA(e),t,kA(t)]}function kA(e){return e.replace(/start|end/g,t=>Hue[t])}function Wue(e,t,n){const r=["left","right"],a=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?i:o;default:return[]}}function Vue(e,t,n,r){const a=Iu(e);let i=Wue(_o(e),n==="start",r);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(kA)))),i}function zm(e){return e.replace(/left|right|bottom|top/g,t=>Uue[t])}function Yue(e){return{top:0,right:0,bottom:0,left:0,...e}}function xq(e){return typeof e!="number"?Yue(e):{top:e,right:e,bottom:e,left:e}}function $m(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function UF(e,t,n){let{reference:r,floating:a}=e;const i=Ss(t),o=U2(t),s=j2(o),l=_o(t),c=i==="y",d=r.x+r.width/2-a.width/2,p=r.y+r.height/2-a.height/2,h=r[s]/2-a[s]/2;let g;switch(l){case"top":g={x:d,y:r.y-a.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-a.width,y:p};break;default:g={x:r.x,y:r.y}}switch(Iu(t)){case"start":g[o]-=h*(n&&c?-1:1);break;case"end":g[o]+=h*(n&&c?-1:1);break}return g}const Kue=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:p}=UF(c,r,l),h=r,g={},b=0;for(let y=0;y<s.length;y++){const{name:x,fn:w}=s[y],{x:S,y:_,data:N,reset:R}=await w({x:d,y:p,initialPlacement:r,placement:h,strategy:a,middlewareData:g,rects:c,platform:o,elements:{reference:e,floating:t}});d=S??d,p=_??p,g={...g,[x]:{...g[x],...N}},R&&b<=50&&(b++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(c=R.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):R.rects),{x:d,y:p}=UF(c,h,l)),y=-1)}return{x:d,y:p,placement:h,strategy:a,middlewareData:g}};async function Vf(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=ko(t,e),b=xq(g),x=s[h?p==="floating"?"reference":"floating":p],w=$m(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),S=p==="floating"?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),N=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},R=$m(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:S,offsetParent:_,strategy:l}):S);return{top:(w.top-R.top+b.top)/N.y,bottom:(R.bottom-w.bottom+b.bottom)/N.y,left:(w.left-R.left+b.left)/N.x,right:(R.right-w.right+b.right)/N.x}}const Xue=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=ko(e,t)||{};if(c==null)return{};const p=xq(d),h={x:n,y:r},g=U2(a),b=j2(g),y=await o.getDimensions(c),x=g==="y",w=x?"top":"left",S=x?"bottom":"right",_=x?"clientHeight":"clientWidth",N=i.reference[b]+i.reference[g]-h[g]-i.floating[b],R=h[g]-i.reference[g],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let A=C?C[_]:0;(!A||!await(o.isElement==null?void 0:o.isElement(C)))&&(A=s.floating[_]||i.floating[b]);const I=N/2-R/2,D=A/2-y[b]/2-1,O=xs(p[w],D),P=xs(p[S],D),G=O,j=A-y[b]-P,W=A/2-y[b]/2+I,V=EA(G,W,j),B=!l.arrow&&Iu(a)!=null&&W!==V&&i.reference[b]/2-(W<G?O:P)-y[b]/2<0,U=B?W<G?W-G:W-j:0;return{[g]:h[g]+U,data:{[g]:V,centerOffset:W-V-U,...B&&{alignmentOffset:U}},reset:B}}}),Zue=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...x}=ko(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=_o(a),S=Ss(s),_=_o(s)===s,N=await(l.isRTL==null?void 0:l.isRTL(c.floating)),R=h||(_||!y?[zm(s)]:que(s)),C=b!=="none";!h&&C&&R.push(...Vue(s,y,b,N));const A=[s,...R],I=await Vf(t,x),D=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&D.push(I[w]),p){const W=Gue(a,o,N);D.push(I[W[0]],I[W[1]])}if(O=[...O,{placement:a,overflows:D}],!D.every(W=>W<=0)){var P,G;const W=(((P=i.flip)==null?void 0:P.index)||0)+1,V=A[W];if(V)return{data:{index:W,overflows:O},reset:{placement:V}};let B=(G=O.filter(U=>U.overflows[0]<=0).sort((U,M)=>U.overflows[1]-M.overflows[1])[0])==null?void 0:G.placement;if(!B)switch(g){case"bestFit":{var j;const U=(j=O.filter(M=>{if(C){const K=Ss(M.placement);return K===S||K==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(K=>K>0).reduce((K,F)=>K+F,0)]).sort((M,K)=>M[1]-K[1])[0])==null?void 0:j[0];U&&(B=U);break}case"initialPlacement":B=s;break}if(a!==B)return{reset:{placement:B}}}return{}}}};function HF(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function GF(e){return jue.some(t=>e[t]>=0)}const Que=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=ko(e,t);switch(r){case"referenceHidden":{const i=await Vf(t,{...a,elementContext:"reference"}),o=HF(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:GF(o)}}}case"escaped":{const i=await Vf(t,{...a,altBoundary:!0}),o=HF(i,n.floating);return{data:{escapedOffsets:o,escaped:GF(o)}}}default:return{}}}}};async function Jue(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=_o(n),s=Iu(n),l=Ss(n)==="y",c=["left","top"].includes(o)?-1:1,d=i&&l?-1:1,p=ko(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const ede=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await Jue(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},tde=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:x=>{let{x:w,y:S}=x;return{x:w,y:S}}},...l}=ko(e,t),c={x:n,y:r},d=await Vf(t,l),p=Ss(_o(a)),h=$2(p);let g=c[h],b=c[p];if(i){const x=h==="y"?"top":"left",w=h==="y"?"bottom":"right",S=g+d[x],_=g-d[w];g=EA(S,g,_)}if(o){const x=p==="y"?"top":"left",w=p==="y"?"bottom":"right",S=b+d[x],_=b-d[w];b=EA(S,b,_)}const y=s.fn({...t,[h]:g,[p]:b});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[h]:i,[p]:o}}}}}},nde=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:i,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=ko(e,t),d={x:n,y:r},p=Ss(a),h=$2(p);let g=d[h],b=d[p];const y=ko(s,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const _=h==="y"?"height":"width",N=i.reference[h]-i.floating[_]+x.mainAxis,R=i.reference[h]+i.reference[_]-x.mainAxis;g<N?g=N:g>R&&(g=R)}if(c){var w,S;const _=h==="y"?"width":"height",N=["top","left"].includes(_o(a)),R=i.reference[p]-i.floating[_]+(N&&((w=o.offset)==null?void 0:w[p])||0)+(N?0:x.crossAxis),C=i.reference[p]+i.reference[_]+(N?0:((S=o.offset)==null?void 0:S[p])||0)-(N?x.crossAxis:0);b<R?b=R:b>C&&(b=C)}return{[h]:g,[p]:b}}}},rde=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:i,platform:o,elements:s}=t,{apply:l=()=>{},...c}=ko(e,t),d=await Vf(t,c),p=_o(a),h=Iu(a),g=Ss(a)==="y",{width:b,height:y}=i.floating;let x,w;p==="top"||p==="bottom"?(x=p,w=h===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(w=p,x=h==="end"?"top":"bottom");const S=y-d.top-d.bottom,_=b-d.left-d.right,N=xs(y-d[x],S),R=xs(b-d[w],_),C=!t.middlewareData.shift;let A=N,I=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=S),C&&!h){const O=ca(d.left,0),P=ca(d.right,0),G=ca(d.top,0),j=ca(d.bottom,0);g?I=b-2*(O!==0||P!==0?O+P:ca(d.left,d.right)):A=y-2*(G!==0||j!==0?G+j:ca(d.top,d.bottom))}await l({...t,availableWidth:I,availableHeight:A});const D=await o.getDimensions(s.floating);return b!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}};function sy(){return typeof window<"u"}function Mu(e){return Sq(e)?(e.nodeName||"").toLowerCase():"#document"}function pa(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pi(e){var t;return(t=(Sq(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Sq(e){return sy()?e instanceof Node||e instanceof pa(e).Node:!1}function ui(e){return sy()?e instanceof Element||e instanceof pa(e).Element:!1}function Di(e){return sy()?e instanceof HTMLElement||e instanceof pa(e).HTMLElement:!1}function qF(e){return!sy()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pa(e).ShadowRoot}function Ap(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=di(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function ade(e){return["table","td","th"].includes(Mu(e))}function ly(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function H2(e){const t=G2(),n=ui(e)?di(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ide(e){let t=ws(e);for(;Di(t)&&!uu(t);){if(H2(t))return t;if(ly(t))return null;t=ws(t)}return null}function G2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function uu(e){return["html","body","#document"].includes(Mu(e))}function di(e){return pa(e).getComputedStyle(e)}function cy(e){return ui(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ws(e){if(Mu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qF(e)&&e.host||Pi(e);return qF(t)?t.host:t}function wq(e){const t=ws(e);return uu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Di(t)&&Ap(t)?t:wq(t)}function Yf(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=wq(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=pa(a);if(i){const s=_A(o);return t.concat(o,o.visualViewport||[],Ap(a)?a:[],s&&n?Yf(s):[])}return t.concat(a,Yf(a,[],n))}function _A(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Eq(e){const t=di(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Di(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=Bm(n)!==i||Bm(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function q2(e){return ui(e)?e:e.contextElement}function Yc(e){const t=q2(e);if(!Di(t))return Li(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=Eq(t);let o=(i?Bm(n.width):n.width)/r,s=(i?Bm(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const ode=Li(0);function kq(e){const t=pa(e);return!G2()||!t.visualViewport?ode:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sde(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==pa(e)?!1:t}function _l(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=q2(e);let o=Li(1);t&&(r?ui(r)&&(o=Yc(r)):o=Yc(e));const s=sde(i,n,r)?kq(i):Li(0);let l=(a.left+s.x)/o.x,c=(a.top+s.y)/o.y,d=a.width/o.x,p=a.height/o.y;if(i){const h=pa(i),g=r&&ui(r)?pa(r):r;let b=h,y=_A(b);for(;y&&r&&g!==b;){const x=Yc(y),w=y.getBoundingClientRect(),S=di(y),_=w.left+(y.clientLeft+parseFloat(S.paddingLeft))*x.x,N=w.top+(y.clientTop+parseFloat(S.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,p*=x.y,l+=_,c+=N,b=pa(y),y=_A(b)}}return $m({width:d,height:p,x:l,y:c})}function W2(e,t){const n=cy(e).scrollLeft;return t?t.left+n:_l(Pi(e)).left+n}function _q(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:W2(e,r)),i=r.top+t.scrollTop;return{x:a,y:i}}function lde(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",o=Pi(r),s=t?ly(t.floating):!1;if(r===o||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Li(1);const d=Li(0),p=Di(r);if((p||!p&&!i)&&((Mu(r)!=="body"||Ap(o))&&(l=cy(r)),Di(r))){const g=_l(r);c=Yc(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const h=o&&!p&&!i?_q(o,l,!0):Li(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}}function cde(e){return Array.from(e.getClientRects())}function ude(e){const t=Pi(e),n=cy(e),r=e.ownerDocument.body,a=ca(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ca(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+W2(e);const s=-n.scrollTop;return di(r).direction==="rtl"&&(o+=ca(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function dde(e,t){const n=pa(e),r=Pi(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const c=G2();(!c||c&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function fde(e,t){const n=_l(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=Di(e)?Yc(e):Li(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,c=r*i.y;return{width:o,height:s,x:l,y:c}}function WF(e,t,n){let r;if(t==="viewport")r=dde(e,n);else if(t==="document")r=ude(Pi(e));else if(ui(t))r=fde(t,n);else{const a=kq(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return $m(r)}function Cq(e,t){const n=ws(e);return n===t||!ui(n)||uu(n)?!1:di(n).position==="fixed"||Cq(n,t)}function pde(e,t){const n=t.get(e);if(n)return n;let r=Yf(e,[],!1).filter(s=>ui(s)&&Mu(s)!=="body"),a=null;const i=di(e).position==="fixed";let o=i?ws(e):e;for(;ui(o)&&!uu(o);){const s=di(o),l=H2(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Ap(o)&&!l&&Cq(e,o))?r=r.filter(d=>d!==o):a=s,o=ws(o)}return t.set(e,r),r}function hde(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?ly(t)?[]:pde(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((c,d)=>{const p=WF(t,d,a);return c.top=ca(p.top,c.top),c.right=xs(p.right,c.right),c.bottom=xs(p.bottom,c.bottom),c.left=ca(p.left,c.left),c},WF(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function gde(e){const{width:t,height:n}=Eq(e);return{width:t,height:n}}function mde(e,t,n){const r=Di(t),a=Pi(t),i=n==="fixed",o=_l(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Li(0);if(r||!r&&!i)if((Mu(t)!=="body"||Ap(a))&&(s=cy(t)),r){const h=_l(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else a&&(l.x=W2(a));const c=a&&!r&&!i?_q(a,s):Li(0),d=o.left+s.scrollLeft-l.x-c.x,p=o.top+s.scrollTop-l.y-c.y;return{x:d,y:p,width:o.width,height:o.height}}function BS(e){return di(e).position==="static"}function VF(e,t){if(!Di(e)||di(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Pi(e)===n&&(n=n.ownerDocument.body),n}function Tq(e,t){const n=pa(e);if(ly(e))return n;if(!Di(e)){let a=ws(e);for(;a&&!uu(a);){if(ui(a)&&!BS(a))return a;a=ws(a)}return n}let r=VF(e,t);for(;r&&ade(r)&&BS(r);)r=VF(r,t);return r&&uu(r)&&BS(r)&&!H2(r)?n:r||ide(e)||n}const bde=async function(e){const t=this.getOffsetParent||Tq,n=this.getDimensions,r=await n(e.floating);return{reference:mde(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function yde(e){return di(e).direction==="rtl"}const vde={convertOffsetParentRelativeRectToViewportRelativeRect:lde,getDocumentElement:Pi,getClippingRect:hde,getOffsetParent:Tq,getElementRects:bde,getClientRects:cde,getDimensions:gde,getScale:Yc,isElement:ui,isRTL:yde};function Aq(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xde(e,t){let n=null,r;const a=Pi(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:p,width:h,height:g}=c;if(s||t(),!h||!g)return;const b=xg(p),y=xg(a.clientWidth-(d+h)),x=xg(a.clientHeight-(p+g)),w=xg(d),_={rootMargin:-b+"px "+-y+"px "+-x+"px "+-w+"px",threshold:ca(0,xs(1,l))||1};let N=!0;function R(C){const A=C[0].intersectionRatio;if(A!==l){if(!N)return o();A?o(!1,A):r=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!Aq(c,e.getBoundingClientRect())&&o(),N=!1}try{n=new IntersectionObserver(R,{..._,root:a.ownerDocument})}catch{n=new IntersectionObserver(R,_)}n.observe(e)}return o(!0),i}function Sde(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=q2(e),d=a||i?[...c?Yf(c):[],...Yf(t)]:[];d.forEach(w=>{a&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const p=c&&s?xde(c,n):null;let h=-1,g=null;o&&(g=new ResizeObserver(w=>{let[S]=w;S&&S.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let b,y=l?_l(e):null;l&&x();function x(){const w=_l(e);y&&!Aq(y,w)&&n(),y=w,b=requestAnimationFrame(x)}return n(),()=>{var w;d.forEach(S=>{a&&S.removeEventListener("scroll",n),i&&S.removeEventListener("resize",n)}),p==null||p(),(w=g)==null||w.disconnect(),g=null,l&&cancelAnimationFrame(b)}}const wde=ede,Ede=tde,kde=Zue,_de=rde,Cde=Que,YF=Xue,Tde=nde,Ade=(e,t,n)=>{const r=new Map,a={platform:vde,...n},i={...a.platform,_c:r};return Kue(e,t,{...a,platform:i})};var om=typeof document<"u"?T.useLayoutEffect:T.useEffect;function jm(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!jm(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const i=a[r];if(!(i==="_owner"&&e.$$typeof)&&!jm(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Rq(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function KF(e,t){const n=Rq(e);return Math.round(t*n)/n}function zS(e){const t=T.useRef(e);return om(()=>{t.current=e}),t}function Rde(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[d,p]=T.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=T.useState(r);jm(h,r)||g(r);const[b,y]=T.useState(null),[x,w]=T.useState(null),S=T.useCallback(M=>{M!==C.current&&(C.current=M,y(M))},[]),_=T.useCallback(M=>{M!==A.current&&(A.current=M,w(M))},[]),N=i||b,R=o||x,C=T.useRef(null),A=T.useRef(null),I=T.useRef(d),D=l!=null,O=zS(l),P=zS(a),G=zS(c),j=T.useCallback(()=>{if(!C.current||!A.current)return;const M={placement:t,strategy:n,middleware:h};P.current&&(M.platform=P.current),Ade(C.current,A.current,M).then(K=>{const F={...K,isPositioned:G.current!==!1};W.current&&!jm(I.current,F)&&(I.current=F,kp.flushSync(()=>{p(F)}))})},[h,t,n,P,G]);om(()=>{c===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,p(M=>({...M,isPositioned:!1})))},[c]);const W=T.useRef(!1);om(()=>(W.current=!0,()=>{W.current=!1}),[]),om(()=>{if(N&&(C.current=N),R&&(A.current=R),N&&R){if(O.current)return O.current(N,R,j);j()}},[N,R,j,O,D]);const V=T.useMemo(()=>({reference:C,floating:A,setReference:S,setFloating:_}),[S,_]),B=T.useMemo(()=>({reference:N,floating:R}),[N,R]),U=T.useMemo(()=>{const M={position:n,left:0,top:0};if(!B.floating)return M;const K=KF(B.floating,d.x),F=KF(B.floating,d.y);return s?{...M,transform:"translate("+K+"px, "+F+"px)",...Rq(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:F}},[n,s,B.floating,d.x,d.y]);return T.useMemo(()=>({...d,update:j,refs:V,elements:B,floatingStyles:U}),[d,j,V,B,U])}const Nde=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?YF({element:r.current,padding:a}).fn(n):{}:r?YF({element:r,padding:a}).fn(n):{}}}},Lde=(e,t)=>({...wde(e),options:[e,t]}),Ode=(e,t)=>({...Ede(e),options:[e,t]}),Dde=(e,t)=>({...Tde(e),options:[e,t]}),Ide=(e,t)=>({...kde(e),options:[e,t]}),Mde=(e,t)=>({..._de(e),options:[e,t]}),Fde=(e,t)=>({...Cde(e),options:[e,t]}),Pde=(e,t)=>({...Nde(e),options:[e,t]});var Bde="Arrow",Nq=T.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return k.jsx(mt.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:k.jsx("polygon",{points:"0,0 30,0 15,10"})})});Nq.displayName=Bde;var zde=Nq;function Lq(e){const[t,n]=T.useState(void 0);return _r(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var V2="Popper",[Oq,Fu]=pi(V2),[$de,Dq]=Oq(V2),Iq=e=>{const{__scopePopper:t,children:n}=e,[r,a]=T.useState(null);return k.jsx($de,{scope:t,anchor:r,onAnchorChange:a,children:n})};Iq.displayName=V2;var Mq="PopperAnchor",Fq=T.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=Dq(Mq,n),o=T.useRef(null),s=Wt(t,o);return T.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:k.jsx(mt.div,{...a,ref:s})});Fq.displayName=Mq;var Y2="PopperContent",[jde,Ude]=Oq(Y2),Pq=T.forwardRef((e,t)=>{var te,ce,Te,ne,Ee,re;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:b,...y}=e,x=Dq(Y2,n),[w,S]=T.useState(null),_=Wt(t,we=>S(we)),[N,R]=T.useState(null),C=Lq(N),A=(C==null?void 0:C.width)??0,I=(C==null?void 0:C.height)??0,D=r+(i!=="center"?"-"+i:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},P=Array.isArray(c)?c:[c],G=P.length>0,j={padding:O,boundary:P.filter(Gde),altBoundary:G},{refs:W,floatingStyles:V,placement:B,isPositioned:U,middlewareData:M}=Rde({strategy:"fixed",placement:D,whileElementsMounted:(...we)=>Sde(...we,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[Lde({mainAxis:a+I,alignmentAxis:o}),l&&Ode({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Dde():void 0,...j}),l&&Ide({...j}),Mde({...j,apply:({elements:we,rects:xe,availableWidth:Se,availableHeight:ee})=>{const{width:he,height:Ae}=xe.reference,be=we.floating.style;be.setProperty("--radix-popper-available-width",`${Se}px`),be.setProperty("--radix-popper-available-height",`${ee}px`),be.setProperty("--radix-popper-anchor-width",`${he}px`),be.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),N&&Pde({element:N,padding:s}),qde({arrowWidth:A,arrowHeight:I}),h&&Fde({strategy:"referenceHidden",...j})]}),[K,F]=$q(B),Y=fr(b);_r(()=>{U&&(Y==null||Y())},[U,Y]);const H=(te=M.arrow)==null?void 0:te.x,$=(ce=M.arrow)==null?void 0:ce.y,Z=((Te=M.arrow)==null?void 0:Te.centerOffset)!==0,[Q,ie]=T.useState();return _r(()=>{w&&ie(window.getComputedStyle(w).zIndex)},[w]),k.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:U?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[(ne=M.transformOrigin)==null?void 0:ne.x,(Ee=M.transformOrigin)==null?void 0:Ee.y].join(" "),...((re=M.hide)==null?void 0:re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:k.jsx(jde,{scope:n,placedSide:K,onArrowChange:R,arrowX:H,arrowY:$,shouldHideArrow:Z,children:k.jsx(mt.div,{"data-side":K,"data-align":F,...y,ref:_,style:{...y.style,animation:U?void 0:"none"}})})})});Pq.displayName=Y2;var Bq="PopperArrow",Hde={top:"bottom",right:"left",bottom:"top",left:"right"},zq=T.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=Ude(Bq,r),o=Hde[i.placedSide];return k.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:k.jsx(zde,{...a,ref:n,style:{...a.style,display:"block"}})})});zq.displayName=Bq;function Gde(e){return e!==null}var qde=e=>({name:"transformOrigin",options:e,fn(t){var x,w,S;const{placement:n,rects:r,middlewareData:a}=t,o=((x=a.arrow)==null?void 0:x.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,d]=$q(n),p={start:"0%",center:"50%",end:"100%"}[d],h=(((w=a.arrow)==null?void 0:w.x)??0)+s/2,g=(((S=a.arrow)==null?void 0:S.y)??0)+l/2;let b="",y="";return c==="bottom"?(b=o?p:`${h}px`,y=`${-l}px`):c==="top"?(b=o?p:`${h}px`,y=`${r.floating.height+l}px`):c==="right"?(b=`${-l}px`,y=o?p:`${g}px`):c==="left"&&(b=`${r.floating.width+l}px`,y=o?p:`${g}px`),{data:{x:b,y}}}});function $q(e){const[t,n="center"]=e.split("-");return[t,n]}var K2=Iq,uy=Fq,X2=Pq,Z2=zq,Wde="VisuallyHidden",Q2=T.forwardRef((e,t)=>k.jsx(mt.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Q2.displayName=Wde;var Vde=Q2,[dy,G8e]=pi("Tooltip",[Fu]),fy=Fu(),jq="TooltipProvider",Yde=700,CA="tooltip.open",[Kde,J2]=dy(jq),Uq=e=>{const{__scopeTooltip:t,delayDuration:n=Yde,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:i}=e,[o,s]=T.useState(!0),l=T.useRef(!1),c=T.useRef(0);return T.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),k.jsx(Kde,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:T.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:T.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:T.useCallback(d=>{l.current=d},[]),disableHoverableContent:a,children:i})};Uq.displayName=jq;var py="Tooltip",[Xde,hy]=dy(py),Hq=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:s}=e,l=J2(py,e.__scopeTooltip),c=fy(t),[d,p]=T.useState(null),h=Er(),g=T.useRef(0),b=o??l.disableHoverableContent,y=s??l.delayDuration,x=T.useRef(!1),[w=!1,S]=Eo({prop:r,defaultProp:a,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(CA))):l.onClose(),i==null||i(A)}}),_=T.useMemo(()=>w?x.current?"delayed-open":"instant-open":"closed",[w]),N=T.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x.current=!1,S(!0)},[S]),R=T.useCallback(()=>{window.clearTimeout(g.current),g.current=0,S(!1)},[S]),C=T.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,S(!0),g.current=0},y)},[y,S]);return T.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),k.jsx(K2,{...c,children:k.jsx(Xde,{scope:t,contentId:h,open:w,stateAttribute:_,trigger:d,onTriggerChange:p,onTriggerEnter:T.useCallback(()=>{l.isOpenDelayed?C():N()},[l.isOpenDelayed,C,N]),onTriggerLeave:T.useCallback(()=>{b?R():(window.clearTimeout(g.current),g.current=0)},[R,b]),onOpen:N,onClose:R,disableHoverableContent:b,children:n})})};Hq.displayName=py;var TA="TooltipTrigger",Gq=T.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=hy(TA,n),i=J2(TA,n),o=fy(n),s=T.useRef(null),l=Wt(t,s,a.onTriggerChange),c=T.useRef(!1),d=T.useRef(!1),p=T.useCallback(()=>c.current=!1,[]);return T.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),k.jsx(uy,{asChild:!0,...o,children:k.jsx(mt.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:l,onPointerMove:pt(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:pt(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:pt(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:pt(e.onFocus,()=>{c.current||a.onOpen()}),onBlur:pt(e.onBlur,a.onClose),onClick:pt(e.onClick,a.onClose)})})});Gq.displayName=TA;var Zde="TooltipPortal",[q8e,Qde]=dy(Zde,{forceMount:void 0}),du="TooltipContent",qq=T.forwardRef((e,t)=>{const n=Qde(du,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...i}=e,o=hy(du,e.__scopeTooltip);return k.jsx(ba,{present:r||o.open,children:o.disableHoverableContent?k.jsx(Wq,{side:a,...i,ref:t}):k.jsx(Jde,{side:a,...i,ref:t})})}),Jde=T.forwardRef((e,t)=>{const n=hy(du,e.__scopeTooltip),r=J2(du,e.__scopeTooltip),a=T.useRef(null),i=Wt(t,a),[o,s]=T.useState(null),{trigger:l,onClose:c}=n,d=a.current,{onPointerInTransitChange:p}=r,h=T.useCallback(()=>{s(null),p(!1)},[p]),g=T.useCallback((b,y)=>{const x=b.currentTarget,w={x:b.clientX,y:b.clientY},S=rfe(w,x.getBoundingClientRect()),_=afe(w,S),N=ife(y.getBoundingClientRect()),R=sfe([..._,...N]);s(R),p(!0)},[p]);return T.useEffect(()=>()=>h(),[h]),T.useEffect(()=>{if(l&&d){const b=x=>g(x,d),y=x=>g(x,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",y)}}},[l,d,g,h]),T.useEffect(()=>{if(o){const b=y=>{const x=y.target,w={x:y.clientX,y:y.clientY},S=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),_=!ofe(w,o);S?h():_&&(h(),c())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,o,c,h]),k.jsx(Wq,{...e,ref:i})}),[efe,tfe]=dy(py,{isInside:!1}),Wq=T.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...s}=e,l=hy(du,n),c=fy(n),{onClose:d}=l;return T.useEffect(()=>(document.addEventListener(CA,d),()=>document.removeEventListener(CA,d)),[d]),T.useEffect(()=>{if(l.trigger){const p=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),k.jsx(Tp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:k.jsxs(X2,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[k.jsx(A2,{children:r}),k.jsx(efe,{scope:n,isInside:!0,children:k.jsx(Vde,{id:l.contentId,role:"tooltip",children:a||r})})]})})});qq.displayName=du;var Vq="TooltipArrow",nfe=T.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=fy(n);return tfe(Vq,n).isInside?null:k.jsx(Z2,{...a,...r,ref:t})});nfe.displayName=Vq;function rfe(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,a,i)){case i:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function afe(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ife(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function ofe(e,t){const{x:n,y:r}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const s=t[i].x,l=t[i].y,c=t[o].x,d=t[o].y;l>r!=d>r&&n<(c-s)*(r-l)/(d-l)+s&&(a=!a)}return a}function sfe(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),lfe(t)}function lfe(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var cfe=Uq,ufe=Hq,dfe=Gq,Yq=qq;const eN=cfe,tN=ufe,nN=dfe,ffe=e=>typeof e!="string"?e:k.jsx("div",{className:"relative top-0 pt-1 whitespace-pre-wrap break-words",children:e}),gy=T.forwardRef(({className:e,side:t="left",align:n="start",children:r,...a},i)=>{const o=T.useRef(null);return T.useEffect(()=>{o.current&&(o.current.scrollTop=0)},[r]),k.jsx(Yq,{ref:i,side:t,align:n,className:je("bg-popover text-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 max-h-[60vh] overflow-y-auto whitespace-pre-wrap break-words rounded-md border px-3 py-2 text-sm shadow-md z-60",e),...a,children:typeof r=="string"?ffe(r):r})});gy.displayName=Yq.displayName;const Um=$ue("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"size-8"}},defaultVariants:{variant:"default",size:"default"}}),xt=T.forwardRef(({className:e,variant:t,tooltip:n,size:r,side:a="right",asChild:i=!1,...o},s)=>{const l=i?vs:"button";return n?k.jsx(eN,{children:k.jsxs(tN,{children:[k.jsx(nN,{asChild:!0,children:k.jsx(l,{className:je(Um({variant:t,size:r,className:e}),"cursor-pointer"),ref:s,...o})}),k.jsx(gy,{side:a,children:n})]})}):k.jsx(l,{className:je(Um({variant:t,size:r,className:e}),"cursor-pointer"),ref:s,...o})});xt.displayName="Button";const pfe=Bue,hfe=zue,Kq=T.forwardRef(({className:e,...t},n)=>k.jsx(hq,{className:je("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t,ref:n}));Kq.displayName=hq.displayName;const Xq=T.forwardRef(({className:e,...t},n)=>k.jsxs(hfe,{children:[k.jsx(Kq,{}),k.jsx(gq,{ref:n,className:je("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",e),...t})]}));Xq.displayName=gq.displayName;const Zq=({className:e,...t})=>k.jsx("div",{className:je("flex flex-col space-y-2 text-center sm:text-left",e),...t});Zq.displayName="AlertDialogHeader";const Qq=T.forwardRef(({className:e,...t},n)=>k.jsx(yq,{ref:n,className:je("text-lg font-semibold",e),...t}));Qq.displayName=yq.displayName;const Jq=T.forwardRef(({className:e,...t},n)=>k.jsx(vq,{ref:n,className:je("text-muted-foreground text-sm",e),...t}));Jq.displayName=vq.displayName;const gfe=T.forwardRef(({className:e,...t},n)=>k.jsx(mq,{ref:n,className:je(Um(),e),...t}));gfe.displayName=mq.displayName;const mfe=T.forwardRef(({className:e,...t},n)=>k.jsx(bq,{ref:n,className:je(Um({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));mfe.displayName=bq.displayName;const Ua=T.forwardRef(({className:e,type:t,...n},r)=>k.jsx("input",{type:t,className:je("border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 rounded-md border bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm [&::-webkit-inner-spin-button]:opacity-50 [&::-webkit-outer-spin-button]:opacity-50",e),ref:r,...n}));Ua.displayName="Input";const bfe=({open:e,onOpenChange:t})=>{const{t:n}=Ht(),r=Pe.use.apiKey(),[a,i]=T.useState(""),o=fa.use.message();T.useEffect(()=>{i(r||"")},[r,e]),T.useEffect(()=>{o&&(o.includes(h9)||o.includes(g9))&&t(!0)},[o,t]);const s=T.useCallback(()=>{Pe.setState({apiKey:a||null}),t(!1)},[a,t]),l=T.useCallback(c=>{i(c.target.value)},[i]);return k.jsx(pfe,{open:e,onOpenChange:t,children:k.jsxs(Xq,{children:[k.jsxs(Zq,{children:[k.jsx(Qq,{children:n("apiKeyAlert.title")}),k.jsx(Jq,{children:n("apiKeyAlert.description")})]}),k.jsxs("div",{className:"flex flex-col gap-4",children:[k.jsxs("form",{className:"flex gap-2",onSubmit:c=>c.preventDefault(),children:[k.jsx(Ua,{type:"password",value:a,onChange:l,placeholder:n("apiKeyAlert.placeholder"),className:"max-h-full w-full min-w-0",autoComplete:"off"}),k.jsx(xt,{onClick:s,variant:"outline",size:"sm",children:n("apiKeyAlert.save")})]}),o&&k.jsx("div",{className:"text-sm text-red-500",children:o})]})]})})};/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yfe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),e8=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var vfe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xfe=T.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...s},l)=>T.createElement("svg",{ref:l,...vfe,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:e8("lucide",a),...s},[...o.map(([c,d])=>T.createElement(c,d)),...Array.isArray(i)?i:[i]]));/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _t=(e,t)=>{const n=T.forwardRef(({className:r,...a},i)=>T.createElement(xfe,{ref:i,iconNode:t,className:e8(`lucide-${yfe(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sfe=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],wfe=_t("Activity",Sfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Efe=[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],kfe=_t("AlignCenter",Efe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _fe=[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Cfe=_t("AlignLeft",_fe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tfe=[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Afe=_t("AlignRight",Tfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rfe=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],$S=_t("ArrowDown",Rfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Nfe=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],jS=_t("ArrowUp",Nfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Lfe=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Ofe=_t("BookOpen",Lfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Dfe=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],rN=_t("Check",Dfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ife=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],aN=_t("ChevronDown",Ife);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Mfe=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],t8=_t("ChevronUp",Mfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ffe=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Pfe=_t("ChevronsUpDown",Ffe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bfe=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],zfe=_t("Copy",Bfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $fe=[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]],n8=_t("Eraser",$fe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jfe=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],r8=_t("FileText",jfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ufe=[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]],Hfe=_t("Files",Ufe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gfe=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],qfe=_t("Filter",Gfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wfe=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["rect",{width:"10",height:"8",x:"7",y:"8",rx:"1",key:"vys8me"}]],Vfe=_t("Fullscreen",Wfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yfe=[["path",{d:"M6 3v12",key:"qpgusn"}],["path",{d:"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"1d02ji"}],["path",{d:"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"chk6ph"}],["path",{d:"M15 6a9 9 0 0 0-9 9",key:"or332x"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],Kfe=_t("GitBranchPlus",Yfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xfe=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],Zfe=_t("Github",Xfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qfe=[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"19",cy:"5",r:"1",key:"w8mnmm"}],["circle",{cx:"5",cy:"5",r:"1",key:"lttvr7"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}],["circle",{cx:"19",cy:"19",r:"1",key:"shf9b7"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]],Jfe=_t("Grip",Qfe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const epe=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],a8=_t("LoaderCircle",epe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tpe=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],npe=_t("Loader",tpe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rpe=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],ape=_t("LogOut",rpe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ipe=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],ope=_t("Maximize",ipe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const spe=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]],lpe=_t("Minimize",spe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cpe=[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]],upe=_t("Palette",cpe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dpe=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],fpe=_t("Pause",dpe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ppe=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],hpe=_t("Pencil",ppe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gpe=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],mpe=_t("Play",gpe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bpe=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],i8=_t("RefreshCw",bpe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ype=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],vpe=_t("RotateCcw",ype);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xpe=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Spe=_t("RotateCw",xpe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wpe=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],Epe=_t("Scissors",wpe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kpe=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],_pe=_t("Search",kpe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Cpe=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Tpe=_t("Send",Cpe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ape=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Rpe=_t("Settings",Ape);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Npe=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Lpe=_t("TriangleAlert",Npe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ope=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],o8=_t("Undo2",Ope);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Dpe=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],AA=_t("Upload",Dpe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ipe=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],s8=_t("X",Ipe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Mpe=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],iN=_t("Zap",Mpe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fpe=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Ppe=_t("ZoomIn",Fpe);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bpe=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],zpe=_t("ZoomOut",Bpe),Rp=M2,l8=tq,$pe=F2,c8=T.forwardRef(({className:e,...t},n)=>k.jsx(iy,{ref:n,className:je("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/30",e),...t}));c8.displayName=iy.displayName;const Pu=T.forwardRef(({className:e,children:t,...n},r)=>k.jsxs($pe,{children:[k.jsx(c8,{}),k.jsxs(oy,{ref:r,className:je("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",e),...n,children:[t,k.jsxs(z2,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[k.jsx(s8,{className:"h-4 w-4"}),k.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Pu.displayName=oy.displayName;const Bu=({className:e,...t})=>k.jsx("div",{className:je("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Bu.displayName="DialogHeader";const oN=({className:e,...t})=>k.jsx("div",{className:je("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});oN.displayName="DialogFooter";const zu=T.forwardRef(({className:e,...t},n)=>k.jsx(P2,{ref:n,className:je("text-lg leading-none font-semibold tracking-tight",e),...t}));zu.displayName=P2.displayName;const $u=T.forwardRef(({className:e,...t},n)=>k.jsx(B2,{ref:n,className:je("text-muted-foreground text-sm",e),...t}));$u.displayName=B2.displayName;const jpe=({status:e})=>{const{t}=Ht();return e?k.jsxs("div",{className:"min-w-[300px] space-y-2 text-xs",children:[k.jsxs("div",{className:"space-y-1",children:[k.jsx("h4",{className:"font-medium",children:t("graphPanel.statusCard.storageInfo")}),k.jsxs("div",{className:"text-foreground grid grid-cols-[120px_1fr] gap-1",children:[k.jsxs("span",{children:[t("graphPanel.statusCard.workingDirectory"),":"]}),k.jsx("span",{className:"truncate",children:e.working_directory}),k.jsxs("span",{children:[t("graphPanel.statusCard.inputDirectory"),":"]}),k.jsx("span",{className:"truncate",children:e.input_directory})]})]}),k.jsxs("div",{className:"space-y-1",children:[k.jsx("h4",{className:"font-medium",children:t("graphPanel.statusCard.llmConfig")}),k.jsxs("div",{className:"text-foreground grid grid-cols-[120px_1fr] gap-1",children:[k.jsxs("span",{children:[t("graphPanel.statusCard.llmBinding"),":"]}),k.jsx("span",{children:e.configuration.llm_binding}),k.jsxs("span",{children:[t("graphPanel.statusCard.llmBindingHost"),":"]}),k.jsx("span",{children:e.configuration.llm_binding_host}),k.jsxs("span",{children:[t("graphPanel.statusCard.llmModel"),":"]}),k.jsx("span",{children:e.configuration.llm_model}),k.jsxs("span",{children:[t("graphPanel.statusCard.maxTokens"),":"]}),k.jsx("span",{children:e.configuration.max_tokens})]})]}),k.jsxs("div",{className:"space-y-1",children:[k.jsx("h4",{className:"font-medium",children:t("graphPanel.statusCard.embeddingConfig")}),k.jsxs("div",{className:"text-foreground grid grid-cols-[120px_1fr] gap-1",children:[k.jsxs("span",{children:[t("graphPanel.statusCard.embeddingBinding"),":"]}),k.jsx("span",{children:e.configuration.embedding_binding}),k.jsxs("span",{children:[t("graphPanel.statusCard.embeddingBindingHost"),":"]}),k.jsx("span",{children:e.configuration.embedding_binding_host}),k.jsxs("span",{children:[t("graphPanel.statusCard.embeddingModel"),":"]}),k.jsx("span",{children:e.configuration.embedding_model})]})]}),k.jsxs("div",{className:"space-y-1",children:[k.jsx("h4",{className:"font-medium",children:t("graphPanel.statusCard.storageConfig")}),k.jsxs("div",{className:"text-foreground grid grid-cols-[120px_1fr] gap-1",children:[k.jsxs("span",{children:[t("graphPanel.statusCard.kvStorage"),":"]}),k.jsx("span",{children:e.configuration.kv_storage}),k.jsxs("span",{children:[t("graphPanel.statusCard.docStatusStorage"),":"]}),k.jsx("span",{children:e.configuration.doc_status_storage}),k.jsxs("span",{children:[t("graphPanel.statusCard.graphStorage"),":"]}),k.jsx("span",{children:e.configuration.graph_storage}),k.jsxs("span",{children:[t("graphPanel.statusCard.vectorStorage"),":"]}),k.jsx("span",{children:e.configuration.vector_storage})]})]})]}):k.jsx("div",{className:"text-foreground text-xs",children:t("graphPanel.statusCard.unavailable")})},Upe=({open:e,onOpenChange:t,status:n})=>{const{t:r}=Ht();return k.jsx(Rp,{open:e,onOpenChange:t,children:k.jsxs(Pu,{className:"sm:max-w-[500px]",children:[k.jsxs(Bu,{children:[k.jsx(zu,{children:r("graphPanel.statusDialog.title")}),k.jsx($u,{children:r("graphPanel.statusDialog.description")})]}),k.jsx(jpe,{status:n})]})})},Hpe=()=>{const{t:e}=Ht(),t=fa.use.health(),n=fa.use.lastCheckTime(),r=fa.use.status(),[a,i]=T.useState(!1),[o,s]=T.useState(!1);return T.useEffect(()=>{i(!0);const l=setTimeout(()=>i(!1),300);return()=>clearTimeout(l)},[n]),k.jsxs("div",{className:"fixed right-4 bottom-4 flex items-center gap-2 opacity-80 select-none",children:[k.jsxs("div",{className:"flex cursor-pointer items-center gap-2",onClick:()=>s(!0),children:[k.jsx("div",{className:je("h-3 w-3 rounded-full transition-all duration-300","shadow-[0_0_8px_rgba(0,0,0,0.2)]",t?"bg-green-500":"bg-red-500",a&&"scale-125",a&&t&&"shadow-[0_0_12px_rgba(34,197,94,0.4)]",a&&!t&&"shadow-[0_0_12px_rgba(239,68,68,0.4)]")}),k.jsx("span",{className:"text-muted-foreground text-xs",children:e(t?"graphPanel.statusIndicator.connected":"graphPanel.statusIndicator.disconnected")})]}),k.jsx(Upe,{open:o,onOpenChange:s,status:r})]})};var sN="Popover",[u8,W8e]=pi(sN,[Fu]),Np=Fu(),[Gpe,Ts]=u8(sN),d8=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:o=!1}=e,s=Np(t),l=T.useRef(null),[c,d]=T.useState(!1),[p=!1,h]=Eo({prop:r,defaultProp:a,onChange:i});return k.jsx(K2,{...s,children:k.jsx(Gpe,{scope:t,contentId:Er(),triggerRef:l,open:p,onOpenChange:h,onOpenToggle:T.useCallback(()=>h(g=>!g),[h]),hasCustomAnchor:c,onCustomAnchorAdd:T.useCallback(()=>d(!0),[]),onCustomAnchorRemove:T.useCallback(()=>d(!1),[]),modal:o,children:n})})};d8.displayName=sN;var f8="PopoverAnchor",qpe=T.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Ts(f8,n),i=Np(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=a;return T.useEffect(()=>(o(),()=>s()),[o,s]),k.jsx(uy,{...i,...r,ref:t})});qpe.displayName=f8;var p8="PopoverTrigger",h8=T.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Ts(p8,n),i=Np(n),o=Wt(t,a.triggerRef),s=k.jsx(mt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":v8(a.open),...r,ref:o,onClick:pt(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?s:k.jsx(uy,{asChild:!0,...i,children:s})});h8.displayName=p8;var lN="PopoverPortal",[Wpe,Vpe]=u8(lN,{forceMount:void 0}),g8=e=>{const{__scopePopover:t,forceMount:n,children:r,container:a}=e,i=Ts(lN,t);return k.jsx(Wpe,{scope:t,forceMount:n,children:k.jsx(ba,{present:n||i.open,children:k.jsx(ny,{asChild:!0,container:a,children:r})})})};g8.displayName=lN;var fu="PopoverContent",m8=T.forwardRef((e,t)=>{const n=Vpe(fu,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,i=Ts(fu,e.__scopePopover);return k.jsx(ba,{present:r||i.open,children:i.modal?k.jsx(Ype,{...a,ref:t}):k.jsx(Kpe,{...a,ref:t})})});m8.displayName=fu;var Ype=T.forwardRef((e,t)=>{const n=Ts(fu,e.__scopePopover),r=T.useRef(null),a=Wt(t,r),i=T.useRef(!1);return T.useEffect(()=>{const o=r.current;if(o)return N2(o)},[]),k.jsx(ay,{as:vs,allowPinchZoom:!0,children:k.jsx(b8,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pt(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),i.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:pt(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:pt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),Kpe=T.forwardRef((e,t)=>{const n=Ts(fu,e.__scopePopover),r=T.useRef(!1),a=T.useRef(!1);return k.jsx(b8,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,s;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),b8=T.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:d,...p}=e,h=Ts(fu,n),g=Np(n);return R2(),k.jsx(ty,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:k.jsx(Tp,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:k.jsx(X2,{"data-state":v8(h.open),role:"dialog",id:h.contentId,...g,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),y8="PopoverClose",Xpe=T.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Ts(y8,n);return k.jsx(mt.button,{type:"button",...r,ref:t,onClick:pt(e.onClick,()=>a.onOpenChange(!1))})});Xpe.displayName=y8;var Zpe="PopoverArrow",Qpe=T.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Np(n);return k.jsx(Z2,{...a,...r,ref:t})});Qpe.displayName=Zpe;function v8(e){return e?"open":"closed"}var Jpe=d8,ehe=h8,the=g8,x8=m8;const my=Jpe,by=ehe,Lp=T.forwardRef(({className:e,align:t="center",sideOffset:n=4,collisionPadding:r,sticky:a,avoidCollisions:i=!1,...o},s)=>k.jsx(the,{children:k.jsx(x8,{ref:s,align:t,sideOffset:n,collisionPadding:r,sticky:a,avoidCollisions:i,className:je("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 rounded-md border p-4 shadow-md outline-none",e),...o})}));Lp.displayName=x8.displayName;function RA(e,[t,n]){return Math.min(n,Math.max(t,e))}function S8(e){const t=e+"CollectionProvider",[n,r]=pi(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:b,children:y}=g,x=Re.useRef(null),w=Re.useRef(new Map).current;return k.jsx(a,{scope:b,itemMap:w,collectionRef:x,children:y})};o.displayName=t;const s=e+"CollectionSlot",l=Re.forwardRef((g,b)=>{const{scope:y,children:x}=g,w=i(s,y),S=Wt(b,w.collectionRef);return k.jsx(vs,{ref:S,children:x})});l.displayName=s;const c=e+"CollectionItemSlot",d="data-radix-collection-item",p=Re.forwardRef((g,b)=>{const{scope:y,children:x,...w}=g,S=Re.useRef(null),_=Wt(b,S),N=i(c,y);return Re.useEffect(()=>(N.itemMap.set(S,{ref:S,...w}),()=>void N.itemMap.delete(S))),k.jsx(vs,{[d]:"",ref:_,children:x})});p.displayName=c;function h(g){const b=i(e+"CollectionConsumer",g);return Re.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((N,R)=>w.indexOf(N.ref.current)-w.indexOf(R.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},h,r]}var nhe=T.createContext(void 0);function yy(e){const t=T.useContext(nhe);return e||t||"ltr"}function w8(e){const t=T.useRef({value:e,previous:e});return T.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var rhe=[" ","Enter","ArrowUp","ArrowDown"],ahe=[" ","Enter"],Op="Select",[vy,xy,ihe]=S8(Op),[ju,V8e]=pi(Op,[ihe,Fu]),Sy=Fu(),[ohe,As]=ju(Op),[she,lhe]=ju(Op),E8=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:i,value:o,defaultValue:s,onValueChange:l,dir:c,name:d,autoComplete:p,disabled:h,required:g,form:b}=e,y=Sy(t),[x,w]=T.useState(null),[S,_]=T.useState(null),[N,R]=T.useState(!1),C=yy(c),[A=!1,I]=Eo({prop:r,defaultProp:a,onChange:i}),[D,O]=Eo({prop:o,defaultProp:s,onChange:l}),P=T.useRef(null),G=x?b||!!x.closest("form"):!0,[j,W]=T.useState(new Set),V=Array.from(j).map(B=>B.props.value).join(";");return k.jsx(K2,{...y,children:k.jsxs(ohe,{required:g,scope:t,trigger:x,onTriggerChange:w,valueNode:S,onValueNodeChange:_,valueNodeHasChildren:N,onValueNodeHasChildrenChange:R,contentId:Er(),value:D,onValueChange:O,open:A,onOpenChange:I,dir:C,triggerPointerDownPosRef:P,disabled:h,children:[k.jsx(vy.Provider,{scope:t,children:k.jsx(she,{scope:e.__scopeSelect,onNativeOptionAdd:T.useCallback(B=>{W(U=>new Set(U).add(B))},[]),onNativeOptionRemove:T.useCallback(B=>{W(U=>{const M=new Set(U);return M.delete(B),M})},[]),children:n})}),G?k.jsxs(K8,{"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:p,value:D,onChange:B=>O(B.target.value),disabled:h,form:b,children:[D===void 0?k.jsx("option",{value:""}):null,Array.from(j)]},V):null]})})};E8.displayName=Op;var k8="SelectTrigger",_8=T.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,i=Sy(n),o=As(k8,n),s=o.disabled||r,l=Wt(t,o.onTriggerChange),c=xy(n),d=T.useRef("touch"),[p,h,g]=X8(y=>{const x=c().filter(_=>!_.disabled),w=x.find(_=>_.value===o.value),S=Z8(x,y,w);S!==void 0&&o.onValueChange(S.value)}),b=y=>{s||(o.onOpenChange(!0),g()),y&&(o.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return k.jsx(uy,{asChild:!0,...i,children:k.jsx(mt.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Y8(o.value)?"":void 0,...a,ref:l,onClick:pt(a.onClick,y=>{y.currentTarget.focus(),d.current!=="mouse"&&b(y)}),onPointerDown:pt(a.onPointerDown,y=>{d.current=y.pointerType;const x=y.target;x.hasPointerCapture(y.pointerId)&&x.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(b(y),y.preventDefault())}),onKeyDown:pt(a.onKeyDown,y=>{const x=p.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&h(y.key),!(x&&y.key===" ")&&rhe.includes(y.key)&&(b(),y.preventDefault())})})})});_8.displayName=k8;var C8="SelectValue",T8=T.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:i,placeholder:o="",...s}=e,l=As(C8,n),{onValueNodeHasChildrenChange:c}=l,d=i!==void 0,p=Wt(t,l.onValueNodeChange);return _r(()=>{c(d)},[c,d]),k.jsx(mt.span,{...s,ref:p,style:{pointerEvents:"none"},children:Y8(l.value)?k.jsx(k.Fragment,{children:o}):i})});T8.displayName=C8;var che="SelectIcon",A8=T.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return k.jsx(mt.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});A8.displayName=che;var uhe="SelectPortal",R8=e=>k.jsx(ny,{asChild:!0,...e});R8.displayName=uhe;var Cl="SelectContent",N8=T.forwardRef((e,t)=>{const n=As(Cl,e.__scopeSelect),[r,a]=T.useState();if(_r(()=>{a(new DocumentFragment)},[]),!n.open){const i=r;return i?kp.createPortal(k.jsx(L8,{scope:e.__scopeSelect,children:k.jsx(vy.Slot,{scope:e.__scopeSelect,children:k.jsx("div",{children:e.children})})}),i):null}return k.jsx(O8,{...e,ref:t})});N8.displayName=Cl;var ti=10,[L8,Rs]=ju(Cl),dhe="SelectContentImpl",O8=T.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:o,side:s,sideOffset:l,align:c,alignOffset:d,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:b,hideWhenDetached:y,avoidCollisions:x,...w}=e,S=As(Cl,n),[_,N]=T.useState(null),[R,C]=T.useState(null),A=Wt(t,te=>N(te)),[I,D]=T.useState(null),[O,P]=T.useState(null),G=xy(n),[j,W]=T.useState(!1),V=T.useRef(!1);T.useEffect(()=>{if(_)return N2(_)},[_]),R2();const B=T.useCallback(te=>{const[ce,...Te]=G().map(re=>re.ref.current),[ne]=Te.slice(-1),Ee=document.activeElement;for(const re of te)if(re===Ee||(re==null||re.scrollIntoView({block:"nearest"}),re===ce&&R&&(R.scrollTop=0),re===ne&&R&&(R.scrollTop=R.scrollHeight),re==null||re.focus(),document.activeElement!==Ee))return},[G,R]),U=T.useCallback(()=>B([I,_]),[B,I,_]);T.useEffect(()=>{j&&U()},[j,U]);const{onOpenChange:M,triggerPointerDownPosRef:K}=S;T.useEffect(()=>{if(_){let te={x:0,y:0};const ce=ne=>{var Ee,re;te={x:Math.abs(Math.round(ne.pageX)-(((Ee=K.current)==null?void 0:Ee.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((re=K.current)==null?void 0:re.y)??0))}},Te=ne=>{te.x<=10&&te.y<=10?ne.preventDefault():_.contains(ne.target)||M(!1),document.removeEventListener("pointermove",ce),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",Te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",Te,{capture:!0})}}},[_,M,K]),T.useEffect(()=>{const te=()=>M(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[M]);const[F,Y]=X8(te=>{const ce=G().filter(Ee=>!Ee.disabled),Te=ce.find(Ee=>Ee.ref.current===document.activeElement),ne=Z8(ce,te,Te);ne&&setTimeout(()=>ne.ref.current.focus())}),H=T.useCallback((te,ce,Te)=>{const ne=!V.current&&!Te;(S.value!==void 0&&S.value===ce||ne)&&(D(te),ne&&(V.current=!0))},[S.value]),$=T.useCallback(()=>_==null?void 0:_.focus(),[_]),Z=T.useCallback((te,ce,Te)=>{const ne=!V.current&&!Te;(S.value!==void 0&&S.value===ce||ne)&&P(te)},[S.value]),Q=r==="popper"?NA:D8,ie=Q===NA?{side:s,sideOffset:l,align:c,alignOffset:d,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:b,hideWhenDetached:y,avoidCollisions:x}:{};return k.jsx(L8,{scope:n,content:_,viewport:R,onViewportChange:C,itemRefCallback:H,selectedItem:I,onItemLeave:$,itemTextRefCallback:Z,focusSelectedItem:U,selectedItemText:O,position:r,isPositioned:j,searchRef:F,children:k.jsx(ay,{as:vs,allowPinchZoom:!0,children:k.jsx(ty,{asChild:!0,trapped:S.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:pt(a,te=>{var ce;(ce=S.trigger)==null||ce.focus({preventScroll:!0}),te.preventDefault()}),children:k.jsx(Tp,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>S.onOpenChange(!1),children:k.jsx(Q,{role:"listbox",id:S.contentId,"data-state":S.open?"open":"closed",dir:S.dir,onContextMenu:te=>te.preventDefault(),...w,...ie,onPlaced:()=>W(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:pt(w.onKeyDown,te=>{const ce=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!ce&&te.key.length===1&&Y(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let ne=G().filter(Ee=>!Ee.disabled).map(Ee=>Ee.ref.current);if(["ArrowUp","End"].includes(te.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const Ee=te.target,re=ne.indexOf(Ee);ne=ne.slice(re+1)}setTimeout(()=>B(ne)),te.preventDefault()}})})})})})})});O8.displayName=dhe;var fhe="SelectItemAlignedPosition",D8=T.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,i=As(Cl,n),o=Rs(Cl,n),[s,l]=T.useState(null),[c,d]=T.useState(null),p=Wt(t,A=>d(A)),h=xy(n),g=T.useRef(!1),b=T.useRef(!0),{viewport:y,selectedItem:x,selectedItemText:w,focusSelectedItem:S}=o,_=T.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&c&&y&&x&&w){const A=i.trigger.getBoundingClientRect(),I=c.getBoundingClientRect(),D=i.valueNode.getBoundingClientRect(),O=w.getBoundingClientRect();if(i.dir!=="rtl"){const Ee=O.left-I.left,re=D.left-Ee,we=A.left-re,xe=A.width+we,Se=Math.max(xe,I.width),ee=window.innerWidth-ti,he=RA(re,[ti,Math.max(ti,ee-Se)]);s.style.minWidth=xe+"px",s.style.left=he+"px"}else{const Ee=I.right-O.right,re=window.innerWidth-D.right-Ee,we=window.innerWidth-A.right-re,xe=A.width+we,Se=Math.max(xe,I.width),ee=window.innerWidth-ti,he=RA(re,[ti,Math.max(ti,ee-Se)]);s.style.minWidth=xe+"px",s.style.right=he+"px"}const P=h(),G=window.innerHeight-ti*2,j=y.scrollHeight,W=window.getComputedStyle(c),V=parseInt(W.borderTopWidth,10),B=parseInt(W.paddingTop,10),U=parseInt(W.borderBottomWidth,10),M=parseInt(W.paddingBottom,10),K=V+B+j+M+U,F=Math.min(x.offsetHeight*5,K),Y=window.getComputedStyle(y),H=parseInt(Y.paddingTop,10),$=parseInt(Y.paddingBottom,10),Z=A.top+A.height/2-ti,Q=G-Z,ie=x.offsetHeight/2,te=x.offsetTop+ie,ce=V+B+te,Te=K-ce;if(ce<=Z){const Ee=P.length>0&&x===P[P.length-1].ref.current;s.style.bottom="0px";const re=c.clientHeight-y.offsetTop-y.offsetHeight,we=Math.max(Q,ie+(Ee?$:0)+re+U),xe=ce+we;s.style.height=xe+"px"}else{const Ee=P.length>0&&x===P[0].ref.current;s.style.top="0px";const we=Math.max(Z,V+y.offsetTop+(Ee?H:0)+ie)+Te;s.style.height=we+"px",y.scrollTop=ce-Z+y.offsetTop}s.style.margin=`${ti}px 0`,s.style.minHeight=F+"px",s.style.maxHeight=G+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[h,i.trigger,i.valueNode,s,c,y,x,w,i.dir,r]);_r(()=>_(),[_]);const[N,R]=T.useState();_r(()=>{c&&R(window.getComputedStyle(c).zIndex)},[c]);const C=T.useCallback(A=>{A&&b.current===!0&&(_(),S==null||S(),b.current=!1)},[_,S]);return k.jsx(hhe,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:C,children:k.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:k.jsx(mt.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});D8.displayName=fhe;var phe="SelectPopperPosition",NA=T.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=ti,...i}=e,o=Sy(n);return k.jsx(X2,{...o,...i,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});NA.displayName=phe;var[hhe,cN]=ju(Cl,{}),LA="SelectViewport",I8=T.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,i=Rs(LA,n),o=cN(LA,n),s=Wt(t,i.onViewportChange),l=T.useRef(0);return k.jsxs(k.Fragment,{children:[k.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),k.jsx(vy.Slot,{scope:n,children:k.jsx(mt.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:pt(a.onScroll,c=>{const d=c.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:h}=o;if(h!=null&&h.current&&p){const g=Math.abs(l.current-d.scrollTop);if(g>0){const b=window.innerHeight-ti*2,y=parseFloat(p.style.minHeight),x=parseFloat(p.style.height),w=Math.max(y,x);if(w<b){const S=w+g,_=Math.min(b,S),N=S-_;p.style.height=_+"px",p.style.bottom==="0px"&&(d.scrollTop=N>0?N:0,p.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});I8.displayName=LA;var M8="SelectGroup",[ghe,mhe]=ju(M8),F8=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Er();return k.jsx(ghe,{scope:n,id:a,children:k.jsx(mt.div,{role:"group","aria-labelledby":a,...r,ref:t})})});F8.displayName=M8;var P8="SelectLabel",B8=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=mhe(P8,n);return k.jsx(mt.div,{id:a.id,...r,ref:t})});B8.displayName=P8;var Hm="SelectItem",[bhe,z8]=ju(Hm),$8=T.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:i,...o}=e,s=As(Hm,n),l=Rs(Hm,n),c=s.value===r,[d,p]=T.useState(i??""),[h,g]=T.useState(!1),b=Wt(t,S=>{var _;return(_=l.itemRefCallback)==null?void 0:_.call(l,S,r,a)}),y=Er(),x=T.useRef("touch"),w=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return k.jsx(bhe,{scope:n,value:r,disabled:a,textId:y,isSelected:c,onItemTextChange:T.useCallback(S=>{p(_=>_||((S==null?void 0:S.textContent)??"").trim())},[]),children:k.jsx(vy.ItemSlot,{scope:n,value:r,disabled:a,textValue:d,children:k.jsx(mt.div,{role:"option","aria-labelledby":y,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...o,ref:b,onFocus:pt(o.onFocus,()=>g(!0)),onBlur:pt(o.onBlur,()=>g(!1)),onClick:pt(o.onClick,()=>{x.current!=="mouse"&&w()}),onPointerUp:pt(o.onPointerUp,()=>{x.current==="mouse"&&w()}),onPointerDown:pt(o.onPointerDown,S=>{x.current=S.pointerType}),onPointerMove:pt(o.onPointerMove,S=>{var _;x.current=S.pointerType,a?(_=l.onItemLeave)==null||_.call(l):x.current==="mouse"&&S.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pt(o.onPointerLeave,S=>{var _;S.currentTarget===document.activeElement&&((_=l.onItemLeave)==null||_.call(l))}),onKeyDown:pt(o.onKeyDown,S=>{var N;((N=l.searchRef)==null?void 0:N.current)!==""&&S.key===" "||(ahe.includes(S.key)&&w(),S.key===" "&&S.preventDefault())})})})})});$8.displayName=Hm;var kf="SelectItemText",j8=T.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...i}=e,o=As(kf,n),s=Rs(kf,n),l=z8(kf,n),c=lhe(kf,n),[d,p]=T.useState(null),h=Wt(t,w=>p(w),l.onItemTextChange,w=>{var S;return(S=s.itemTextRefCallback)==null?void 0:S.call(s,w,l.value,l.disabled)}),g=d==null?void 0:d.textContent,b=T.useMemo(()=>k.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:y,onNativeOptionRemove:x}=c;return _r(()=>(y(b),()=>x(b)),[y,x,b]),k.jsxs(k.Fragment,{children:[k.jsx(mt.span,{id:l.textId,...i,ref:h}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?kp.createPortal(i.children,o.valueNode):null]})});j8.displayName=kf;var U8="SelectItemIndicator",H8=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return z8(U8,n).isSelected?k.jsx(mt.span,{"aria-hidden":!0,...r,ref:t}):null});H8.displayName=U8;var OA="SelectScrollUpButton",G8=T.forwardRef((e,t)=>{const n=Rs(OA,e.__scopeSelect),r=cN(OA,e.__scopeSelect),[a,i]=T.useState(!1),o=Wt(t,r.onScrollButtonChange);return _r(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollTop>0;i(c)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),a?k.jsx(W8,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});G8.displayName=OA;var DA="SelectScrollDownButton",q8=T.forwardRef((e,t)=>{const n=Rs(DA,e.__scopeSelect),r=cN(DA,e.__scopeSelect),[a,i]=T.useState(!1),o=Wt(t,r.onScrollButtonChange);return _r(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<c;i(d)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),a?k.jsx(W8,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});q8.displayName=DA;var W8=T.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,i=Rs("SelectScrollButton",n),o=T.useRef(null),s=xy(n),l=T.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return T.useEffect(()=>()=>l(),[l]),_r(()=>{var d;const c=s().find(p=>p.ref.current===document.activeElement);(d=c==null?void 0:c.ref.current)==null||d.scrollIntoView({block:"nearest"})},[s]),k.jsx(mt.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:pt(a.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:pt(a.onPointerMove,()=>{var c;(c=i.onItemLeave)==null||c.call(i),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:pt(a.onPointerLeave,()=>{l()})})}),yhe="SelectSeparator",V8=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return k.jsx(mt.div,{"aria-hidden":!0,...r,ref:t})});V8.displayName=yhe;var IA="SelectArrow",vhe=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Sy(n),i=As(IA,n),o=Rs(IA,n);return i.open&&o.position==="popper"?k.jsx(Z2,{...a,...r,ref:t}):null});vhe.displayName=IA;function Y8(e){return e===""||e===void 0}var K8=T.forwardRef((e,t)=>{const{value:n,...r}=e,a=T.useRef(null),i=Wt(t,a),o=w8(n);return T.useEffect(()=>{const s=a.current,l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==n&&d){const p=new Event("change",{bubbles:!0});d.call(s,n),s.dispatchEvent(p)}},[o,n]),k.jsx(Q2,{asChild:!0,children:k.jsx("select",{...r,ref:i,defaultValue:n})})});K8.displayName="BubbleSelect";function X8(e){const t=fr(e),n=T.useRef(""),r=T.useRef(0),a=T.useCallback(o=>{const s=n.current+o;t(s),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),i=T.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return T.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,i]}function Z8(e,t,n){const a=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=xhe(e,Math.max(i,0));a.length===1&&(o=o.filter(c=>c!==n));const l=o.find(c=>c.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==n?l:void 0}function xhe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var She=E8,Q8=_8,whe=T8,Ehe=A8,khe=R8,J8=N8,_he=I8,Che=F8,e7=B8,t7=$8,The=j8,Ahe=H8,n7=G8,r7=q8,a7=V8;const Gm=She,XF=Che,qm=whe,Kf=T.forwardRef(({className:e,children:t,...n},r)=>k.jsxs(Q8,{ref:r,className:je("border-input bg-background ring-offset-background placeholder:text-muted-foreground focus:ring-ring flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,k.jsx(Ehe,{asChild:!0,children:k.jsx(aN,{className:"h-4 w-4 opacity-50"})})]}));Kf.displayName=Q8.displayName;const i7=T.forwardRef(({className:e,...t},n)=>k.jsx(n7,{ref:n,className:je("flex cursor-default items-center justify-center py-1",e),...t,children:k.jsx(t8,{className:"h-4 w-4"})}));i7.displayName=n7.displayName;const o7=T.forwardRef(({className:e,...t},n)=>k.jsx(r7,{ref:n,className:je("flex cursor-default items-center justify-center py-1",e),...t,children:k.jsx(aN,{className:"h-4 w-4"})}));o7.displayName=r7.displayName;const Xf=T.forwardRef(({className:e,children:t,position:n="popper",...r},a)=>k.jsx(khe,{children:k.jsxs(J8,{ref:a,className:je("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[k.jsx(i7,{}),k.jsx(_he,{className:je("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),k.jsx(o7,{})]})}));Xf.displayName=J8.displayName;const Rhe=T.forwardRef(({className:e,...t},n)=>k.jsx(e7,{ref:n,className:je("py-1.5 pr-2 pl-8 text-sm font-semibold",e),...t}));Rhe.displayName=e7.displayName;const er=T.forwardRef(({className:e,children:t,...n},r)=>k.jsxs(t7,{ref:r,className:je("focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[k.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:k.jsx(Ahe,{children:k.jsx(rN,{className:"h-4 w-4"})})}),k.jsx(The,{children:t})]}));er.displayName=t7.displayName;const Nhe=T.forwardRef(({className:e,...t},n)=>k.jsx(a7,{ref:n,className:je("bg-muted -mx-1 my-1 h-px",e),...t}));Nhe.displayName=a7.displayName;function s7({className:e}){const[t,n]=T.useState(!1),{t:r}=Ht(),a=Pe.use.language(),i=Pe.use.setLanguage(),o=Pe.use.theme(),s=Pe.use.setTheme(),l=T.useCallback(d=>{i(d)},[i]),c=T.useCallback(d=>{s(d)},[s]);return k.jsxs(my,{open:t,onOpenChange:n,children:[k.jsx(by,{asChild:!0,children:k.jsx(xt,{variant:"ghost",size:"icon",className:je("h-9 w-9",e),children:k.jsx(upe,{className:"h-5 w-5"})})}),k.jsx(Lp,{side:"bottom",align:"end",className:"w-56",children:k.jsxs("div",{className:"flex flex-col gap-4",children:[k.jsxs("div",{className:"flex flex-col gap-2",children:[k.jsx("label",{className:"text-sm font-medium",children:r("settings.language")}),k.jsxs(Gm,{value:a,onValueChange:l,children:[k.jsx(Kf,{children:k.jsx(qm,{})}),k.jsxs(Xf,{children:[k.jsx(er,{value:"en",children:"English"}),k.jsx(er,{value:"zh",children:"中文"}),k.jsx(er,{value:"fr",children:"Français"}),k.jsx(er,{value:"ar",children:"العربية"}),k.jsx(er,{value:"zh_TW",children:"繁體中文"})]})]})]}),k.jsxs("div",{className:"flex flex-col gap-2",children:[k.jsx("label",{className:"text-sm font-medium",children:r("settings.theme")}),k.jsxs(Gm,{value:o,onValueChange:c,children:[k.jsx(Kf,{children:k.jsx(qm,{})}),k.jsxs(Xf,{children:[k.jsx(er,{value:"light",children:r("settings.light")}),k.jsx(er,{value:"dark",children:r("settings.dark")}),k.jsx(er,{value:"system",children:r("settings.system")})]})]})]})]})})]})}var US="rovingFocusGroup.onEntryFocus",Lhe={bubbles:!1,cancelable:!0},wy="RovingFocusGroup",[MA,l7,Ohe]=S8(wy),[Dhe,c7]=pi(wy,[Ohe]),[Ihe,Mhe]=Dhe(wy),u7=T.forwardRef((e,t)=>k.jsx(MA.Provider,{scope:e.__scopeRovingFocusGroup,children:k.jsx(MA.Slot,{scope:e.__scopeRovingFocusGroup,children:k.jsx(Fhe,{...e,ref:t})})}));u7.displayName=wy;var Fhe=T.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...p}=e,h=T.useRef(null),g=Wt(t,h),b=yy(i),[y=null,x]=Eo({prop:o,defaultProp:s,onChange:l}),[w,S]=T.useState(!1),_=fr(c),N=l7(n),R=T.useRef(!1),[C,A]=T.useState(0);return T.useEffect(()=>{const I=h.current;if(I)return I.addEventListener(US,_),()=>I.removeEventListener(US,_)},[_]),k.jsx(Ihe,{scope:n,orientation:r,dir:b,loop:a,currentTabStopId:y,onItemFocus:T.useCallback(I=>x(I),[x]),onItemShiftTab:T.useCallback(()=>S(!0),[]),onFocusableItemAdd:T.useCallback(()=>A(I=>I+1),[]),onFocusableItemRemove:T.useCallback(()=>A(I=>I-1),[]),children:k.jsx(mt.div,{tabIndex:w||C===0?-1:0,"data-orientation":r,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:pt(e.onMouseDown,()=>{R.current=!0}),onFocus:pt(e.onFocus,I=>{const D=!R.current;if(I.target===I.currentTarget&&D&&!w){const O=new CustomEvent(US,Lhe);if(I.currentTarget.dispatchEvent(O),!O.defaultPrevented){const P=N().filter(B=>B.focusable),G=P.find(B=>B.active),j=P.find(B=>B.id===y),V=[G,j,...P].filter(Boolean).map(B=>B.ref.current);p7(V,d)}}R.current=!1}),onBlur:pt(e.onBlur,()=>S(!1))})})}),d7="RovingFocusGroupItem",f7=T.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:i,...o}=e,s=Er(),l=i||s,c=Mhe(d7,n),d=c.currentTabStopId===l,p=l7(n),{onFocusableItemAdd:h,onFocusableItemRemove:g}=c;return T.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),k.jsx(MA.ItemSlot,{scope:n,id:l,focusable:r,active:a,children:k.jsx(mt.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...o,ref:t,onMouseDown:pt(e.onMouseDown,b=>{r?c.onItemFocus(l):b.preventDefault()}),onFocus:pt(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:pt(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=zhe(b,c.orientation,c.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let w=p().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")w.reverse();else if(y==="prev"||y==="next"){y==="prev"&&w.reverse();const S=w.indexOf(b.currentTarget);w=c.loop?$he(w,S+1):w.slice(S+1)}setTimeout(()=>p7(w))}})})})});f7.displayName=d7;var Phe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Bhe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function zhe(e,t,n){const r=Bhe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Phe[r]}function p7(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function $he(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var jhe=u7,Uhe=f7,uN="Tabs",[Hhe,Y8e]=pi(uN,[c7]),h7=c7(),[Ghe,dN]=Hhe(uN),g7=T.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:i,orientation:o="horizontal",dir:s,activationMode:l="automatic",...c}=e,d=yy(s),[p,h]=Eo({prop:r,onChange:a,defaultProp:i});return k.jsx(Ghe,{scope:n,baseId:Er(),value:p,onValueChange:h,orientation:o,dir:d,activationMode:l,children:k.jsx(mt.div,{dir:d,"data-orientation":o,...c,ref:t})})});g7.displayName=uN;var m7="TabsList",b7=T.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,i=dN(m7,n),o=h7(n);return k.jsx(jhe,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:r,children:k.jsx(mt.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});b7.displayName=m7;var y7="TabsTrigger",v7=T.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...i}=e,o=dN(y7,n),s=h7(n),l=w7(o.baseId,r),c=E7(o.baseId,r),d=r===o.value;return k.jsx(Uhe,{asChild:!0,...s,focusable:!a,active:d,children:k.jsx(mt.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:l,...i,ref:t,onMouseDown:pt(e.onMouseDown,p=>{!a&&p.button===0&&p.ctrlKey===!1?o.onValueChange(r):p.preventDefault()}),onKeyDown:pt(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&o.onValueChange(r)}),onFocus:pt(e.onFocus,()=>{const p=o.activationMode!=="manual";!d&&!a&&p&&o.onValueChange(r)})})})});v7.displayName=y7;var x7="TabsContent",S7=T.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:i,...o}=e,s=dN(x7,n),l=w7(s.baseId,r),c=E7(s.baseId,r),d=r===s.value,p=T.useRef(d);return T.useEffect(()=>{const h=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(h)},[]),k.jsx(ba,{present:a||d,children:({present:h})=>k.jsx(mt.div,{"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:h&&i})})});S7.displayName=x7;function w7(e,t){return`${e}-trigger-${t}`}function E7(e,t){return`${e}-content-${t}`}var qhe=g7,k7=b7,_7=v7,C7=S7;const Whe=qhe,T7=T.forwardRef(({className:e,...t},n)=>k.jsx(k7,{ref:n,className:je("bg-muted text-muted-foreground inline-flex h-10 items-center justify-center rounded-md p-1",e),...t}));T7.displayName=k7.displayName;const A7=T.forwardRef(({className:e,...t},n)=>k.jsx(_7,{ref:n,className:je("ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm",e),...t}));A7.displayName=_7.displayName;const _f=T.forwardRef(({className:e,...t},n)=>k.jsx(C7,{ref:n,className:je("ring-offset-background focus-visible:ring-ring focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","data-[state=inactive]:invisible data-[state=active]:visible","h-full w-full",e),forceMount:!0,...t}));_f.displayName=C7.displayName;function Sg({value:e,currentTab:t,children:n}){return k.jsx(A7,{value:e,className:je("cursor-pointer px-2 py-1 transition-all",t===e?"!bg-emerald-400 !text-zinc-50":"hover:bg-background/60"),children:n})}function Vhe(){const e=Pe.use.currentTab(),{t}=Ht();return k.jsx("div",{className:"flex h-8 self-center",children:k.jsxs(T7,{className:"h-full gap-2",children:[k.jsx(Sg,{value:"documents",currentTab:e,children:t("header.documents")}),k.jsx(Sg,{value:"knowledge-graph",currentTab:e,children:t("header.knowledgeGraph")}),k.jsx(Sg,{value:"retrieval",currentTab:e,children:t("header.retrieval")}),k.jsx(Sg,{value:"api",currentTab:e,children:t("header.api")})]})})}function Yhe(){const{t:e}=Ht(),{isGuestMode:t,coreVersion:n,apiVersion:r,username:a,webuiTitle:i,webuiDescription:o}=$a(),s=n&&r?`${n}/${r}`:null,l=()=>{T2.navigateToLogin()};return k.jsxs("header",{className:"border-border/40 bg-background/95 supports-[backdrop-filter]:bg-background/60 sticky top-0 z-50 flex h-10 w-full border-b px-4 backdrop-blur",children:[k.jsxs("div",{className:"min-w-[200px] w-auto flex items-center",children:[k.jsxs("a",{href:f9,className:"flex items-center gap-2",children:[k.jsx(iN,{className:"size-4 text-emerald-400","aria-hidden":"true"}),k.jsx("span",{className:"font-bold md:inline-block",children:hA.name})]}),i&&k.jsxs("div",{className:"flex items-center",children:[k.jsx("span",{className:"mx-1 text-xs text-gray-500 dark:text-gray-400",children:"|"}),k.jsx(eN,{children:k.jsxs(tN,{children:[k.jsx(nN,{asChild:!0,children:k.jsx("span",{className:"font-medium text-sm cursor-default",children:i})}),o&&k.jsx(gy,{side:"bottom",children:o})]})})]})]}),k.jsxs("div",{className:"flex h-10 flex-1 items-center justify-center",children:[k.jsx(Vhe,{}),t&&k.jsx("div",{className:"ml-2 self-center px-2 py-1 text-xs bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-200 rounded-md",children:e("login.guestMode","Guest Mode")})]}),k.jsx("nav",{className:"w-[200px] flex items-center justify-end",children:k.jsxs("div",{className:"flex items-center gap-2",children:[s&&k.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-400 mr-1",children:["v",s]}),k.jsx(xt,{variant:"ghost",size:"icon",side:"bottom",tooltip:e("header.projectRepository"),children:k.jsx("a",{href:hA.github,target:"_blank",rel:"noopener noreferrer",children:k.jsx(Zfe,{className:"size-4","aria-hidden":"true"})})}),k.jsx(s7,{}),!t&&k.jsx(xt,{variant:"ghost",size:"icon",side:"bottom",tooltip:`${e("header.logout")} (${a})`,onClick:l,children:k.jsx(ape,{className:"size-4","aria-hidden":"true"})})]})})]})}var wg={exports:{}},ZF;function Khe(){if(ZF)return wg.exports;ZF=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(R,C,A){return Function.prototype.apply.call(R,C,A)},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function(R){return Object.getOwnPropertyNames(R).concat(Object.getOwnPropertySymbols(R))}:n=function(R){return Object.getOwnPropertyNames(R)};function r(N){console&&console.warn&&console.warn(N)}var a=Number.isNaN||function(R){return R!==R};function i(){i.init.call(this)}wg.exports=i,wg.exports.once=w,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(N){if(typeof N!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof N)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(N){if(typeof N!="number"||N<0||a(N))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+N+".");o=N}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(R){if(typeof R!="number"||R<0||a(R))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+R+".");return this._maxListeners=R,this};function l(N){return N._maxListeners===void 0?i.defaultMaxListeners:N._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(R){for(var C=[],A=1;A<arguments.length;A++)C.push(arguments[A]);var I=R==="error",D=this._events;if(D!==void 0)I=I&&D.error===void 0;else if(!I)return!1;if(I){var O;if(C.length>0&&(O=C[0]),O instanceof Error)throw O;var P=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw P.context=O,P}var G=D[R];if(G===void 0)return!1;if(typeof G=="function")t(G,this,C);else for(var j=G.length,W=b(G,j),A=0;A<j;++A)t(W[A],this,C);return!0};function c(N,R,C,A){var I,D,O;if(s(C),D=N._events,D===void 0?(D=N._events=Object.create(null),N._eventsCount=0):(D.newListener!==void 0&&(N.emit("newListener",R,C.listener?C.listener:C),D=N._events),O=D[R]),O===void 0)O=D[R]=C,++N._eventsCount;else if(typeof O=="function"?O=D[R]=A?[C,O]:[O,C]:A?O.unshift(C):O.push(C),I=l(N),I>0&&O.length>I&&!O.warned){O.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+O.length+" "+String(R)+" listeners added. Use emitter.setMaxListeners() to increase limit");P.name="MaxListenersExceededWarning",P.emitter=N,P.type=R,P.count=O.length,r(P)}return N}i.prototype.addListener=function(R,C){return c(this,R,C,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(R,C){return c(this,R,C,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(N,R,C){var A={fired:!1,wrapFn:void 0,target:N,type:R,listener:C},I=d.bind(A);return I.listener=C,A.wrapFn=I,I}i.prototype.once=function(R,C){return s(C),this.on(R,p(this,R,C)),this},i.prototype.prependOnceListener=function(R,C){return s(C),this.prependListener(R,p(this,R,C)),this},i.prototype.removeListener=function(R,C){var A,I,D,O,P;if(s(C),I=this._events,I===void 0)return this;if(A=I[R],A===void 0)return this;if(A===C||A.listener===C)--this._eventsCount===0?this._events=Object.create(null):(delete I[R],I.removeListener&&this.emit("removeListener",R,A.listener||C));else if(typeof A!="function"){for(D=-1,O=A.length-1;O>=0;O--)if(A[O]===C||A[O].listener===C){P=A[O].listener,D=O;break}if(D<0)return this;D===0?A.shift():y(A,D),A.length===1&&(I[R]=A[0]),I.removeListener!==void 0&&this.emit("removeListener",R,P||C)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(R){var C,A,I;if(A=this._events,A===void 0)return this;if(A.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):A[R]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete A[R]),this;if(arguments.length===0){var D=Object.keys(A),O;for(I=0;I<D.length;++I)O=D[I],O!=="removeListener"&&this.removeAllListeners(O);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(C=A[R],typeof C=="function")this.removeListener(R,C);else if(C!==void 0)for(I=C.length-1;I>=0;I--)this.removeListener(R,C[I]);return this};function h(N,R,C){var A=N._events;if(A===void 0)return[];var I=A[R];return I===void 0?[]:typeof I=="function"?C?[I.listener||I]:[I]:C?x(I):b(I,I.length)}i.prototype.listeners=function(R){return h(this,R,!0)},i.prototype.rawListeners=function(R){return h(this,R,!1)},i.listenerCount=function(N,R){return typeof N.listenerCount=="function"?N.listenerCount(R):g.call(N,R)},i.prototype.listenerCount=g;function g(N){var R=this._events;if(R!==void 0){var C=R[N];if(typeof C=="function")return 1;if(C!==void 0)return C.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function b(N,R){for(var C=new Array(R),A=0;A<R;++A)C[A]=N[A];return C}function y(N,R){for(;R+1<N.length;R++)N[R]=N[R+1];N.pop()}function x(N){for(var R=new Array(N.length),C=0;C<R.length;++C)R[C]=N[C].listener||N[C];return R}function w(N,R){return new Promise(function(C,A){function I(O){N.removeListener(R,D),A(O)}function D(){typeof N.removeListener=="function"&&N.removeListener("error",I),C([].slice.call(arguments))}_(N,R,D,{once:!0}),R!=="error"&&S(N,I,{once:!0})})}function S(N,R,C){typeof N.on=="function"&&_(N,"error",R,C)}function _(N,R,C,A){if(typeof N.on=="function")A.once?N.once(R,C):N.on(R,C);else if(typeof N.addEventListener=="function")N.addEventListener(R,function I(D){A.once&&N.removeEventListener(R,I),C(D)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof N)}return wg.exports}var R7=Khe();function Xhe(){const e=arguments[0];for(let t=1,n=arguments.length;t<n;t++)if(arguments[t])for(const r in arguments[t])e[r]=arguments[t][r];return e}let qn=Xhe;typeof Object.assign=="function"&&(qn=Object.assign);function ja(e,t,n,r){const a=e._nodes.get(t);let i=null;return a&&(r==="mixed"?i=a.out&&a.out[n]||a.undirected&&a.undirected[n]:r==="directed"?i=a.out&&a.out[n]:i=a.undirected&&a.undirected[n]),i}function pr(e){return typeof e=="object"&&e!==null}function N7(e){let t;for(t in e)return!1;return!0}function Da(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function ei(e,t,n){const r={enumerable:!0,configurable:!0};typeof n=="function"?r.get=n:(r.value=n,r.writable=!1),Object.defineProperty(e,t,r)}function QF(e){return!(!pr(e)||e.attributes&&!Array.isArray(e.attributes))}function Zhe(){let e=Math.floor(Math.random()*256)&255;return()=>e++}function vo(){const e=arguments;let t=null,n=-1;return{[Symbol.iterator](){return this},next(){let r=null;do{if(t===null){if(n++,n>=e.length)return{done:!0};t=e[n][Symbol.iterator]()}if(r=t.next(),r.done){t=null;continue}break}while(!0);return r}}}function Uu(){return{[Symbol.iterator](){return this},next(){return{done:!0}}}}class fN extends Error{constructor(t){super(),this.name="GraphError",this.message=t}}class qe extends fN{constructor(t){super(t),this.name="InvalidArgumentsGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,qe.prototype.constructor)}}class ze extends fN{constructor(t){super(t),this.name="NotFoundGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ze.prototype.constructor)}}class ht extends fN{constructor(t){super(t),this.name="UsageGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ht.prototype.constructor)}}function L7(e,t){this.key=e,this.attributes=t,this.clear()}L7.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.undirectedLoops=0,this.directedLoops=0,this.in={},this.out={},this.undirected={}};function O7(e,t){this.key=e,this.attributes=t,this.clear()}O7.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedLoops=0,this.in={},this.out={}};function D7(e,t){this.key=e,this.attributes=t,this.clear()}D7.prototype.clear=function(){this.undirectedDegree=0,this.undirectedLoops=0,this.undirected={}};function Hu(e,t,n,r,a){this.key=t,this.attributes=a,this.undirected=e,this.source=n,this.target=r}Hu.prototype.attach=function(){let e="out",t="in";this.undirected&&(e=t="undirected");const n=this.source.key,r=this.target.key;this.source[e][r]=this,!(this.undirected&&n===r)&&(this.target[t][n]=this)};Hu.prototype.attachMulti=function(){let e="out",t="in";const n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");const a=this.source[e],i=a[r];if(typeof i>"u"){a[r]=this,this.undirected&&n===r||(this.target[t][n]=this);return}i.previous=this,this.next=i,a[r]=this,this.target[t][n]=this};Hu.prototype.detach=function(){const e=this.source.key,t=this.target.key;let n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]};Hu.prototype.detachMulti=function(){const e=this.source.key,t=this.target.key;let n="out",r="in";this.undirected&&(n=r="undirected"),this.previous===void 0?this.next===void 0?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,this.next!==void 0&&(this.next.previous=this.previous))};const I7=0,M7=1,Qhe=2,F7=3;function No(e,t,n,r,a,i,o){let s,l,c,d;if(r=""+r,n===I7){if(s=e._nodes.get(r),!s)throw new ze(`Graph.${t}: could not find the "${r}" node in the graph.`);c=a,d=i}else if(n===F7){if(a=""+a,l=e._edges.get(a),!l)throw new ze(`Graph.${t}: could not find the "${a}" edge in the graph.`);const p=l.source.key,h=l.target.key;if(r===p)s=l.target;else if(r===h)s=l.source;else throw new ze(`Graph.${t}: the "${r}" node is not attached to the "${a}" edge (${p}, ${h}).`);c=i,d=o}else{if(l=e._edges.get(r),!l)throw new ze(`Graph.${t}: could not find the "${r}" edge in the graph.`);n===M7?s=l.source:s=l.target,c=a,d=i}return[s,c,d]}function Jhe(e,t,n){e.prototype[t]=function(r,a,i){const[o,s]=No(this,t,n,r,a,i);return o.attributes[s]}}function ege(e,t,n){e.prototype[t]=function(r,a){const[i]=No(this,t,n,r,a);return i.attributes}}function tge(e,t,n){e.prototype[t]=function(r,a,i){const[o,s]=No(this,t,n,r,a,i);return o.attributes.hasOwnProperty(s)}}function nge(e,t,n){e.prototype[t]=function(r,a,i,o){const[s,l,c]=No(this,t,n,r,a,i,o);return s.attributes[l]=c,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:l}),this}}function rge(e,t,n){e.prototype[t]=function(r,a,i,o){const[s,l,c]=No(this,t,n,r,a,i,o);if(typeof c!="function")throw new qe(`Graph.${t}: updater should be a function.`);const d=s.attributes,p=c(d[l]);return d[l]=p,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:l}),this}}function age(e,t,n){e.prototype[t]=function(r,a,i){const[o,s]=No(this,t,n,r,a,i);return delete o.attributes[s],this.emit("nodeAttributesUpdated",{key:o.key,type:"remove",attributes:o.attributes,name:s}),this}}function ige(e,t,n){e.prototype[t]=function(r,a,i){const[o,s]=No(this,t,n,r,a,i);if(!pr(s))throw new qe(`Graph.${t}: provided attributes are not a plain object.`);return o.attributes=s,this.emit("nodeAttributesUpdated",{key:o.key,type:"replace",attributes:o.attributes}),this}}function oge(e,t,n){e.prototype[t]=function(r,a,i){const[o,s]=No(this,t,n,r,a,i);if(!pr(s))throw new qe(`Graph.${t}: provided attributes are not a plain object.`);return qn(o.attributes,s),this.emit("nodeAttributesUpdated",{key:o.key,type:"merge",attributes:o.attributes,data:s}),this}}function sge(e,t,n){e.prototype[t]=function(r,a,i){const[o,s]=No(this,t,n,r,a,i);if(typeof s!="function")throw new qe(`Graph.${t}: provided updater is not a function.`);return o.attributes=s(o.attributes),this.emit("nodeAttributesUpdated",{key:o.key,type:"update",attributes:o.attributes}),this}}const lge=[{name:e=>`get${e}Attribute`,attacher:Jhe},{name:e=>`get${e}Attributes`,attacher:ege},{name:e=>`has${e}Attribute`,attacher:tge},{name:e=>`set${e}Attribute`,attacher:nge},{name:e=>`update${e}Attribute`,attacher:rge},{name:e=>`remove${e}Attribute`,attacher:age},{name:e=>`replace${e}Attributes`,attacher:ige},{name:e=>`merge${e}Attributes`,attacher:oge},{name:e=>`update${e}Attributes`,attacher:sge}];function cge(e){lge.forEach(function({name:t,attacher:n}){n(e,t("Node"),I7),n(e,t("Source"),M7),n(e,t("Target"),Qhe),n(e,t("Opposite"),F7)})}function uge(e,t,n){e.prototype[t]=function(r,a){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new ht(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new ht(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const o=""+r,s=""+a;if(a=arguments[2],i=ja(this,o,s,n),!i)throw new ze(`Graph.${t}: could not find an edge for the given path ("${o}" - "${s}").`)}else{if(n!=="mixed")throw new ht(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new ze(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return i.attributes[a]}}function dge(e,t,n){e.prototype[t]=function(r){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new ht(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>1){if(this.multi)throw new ht(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const i=""+r,o=""+arguments[1];if(a=ja(this,i,o,n),!a)throw new ze(`Graph.${t}: could not find an edge for the given path ("${i}" - "${o}").`)}else{if(n!=="mixed")throw new ht(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new ze(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return a.attributes}}function fge(e,t,n){e.prototype[t]=function(r,a){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new ht(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new ht(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const o=""+r,s=""+a;if(a=arguments[2],i=ja(this,o,s,n),!i)throw new ze(`Graph.${t}: could not find an edge for the given path ("${o}" - "${s}").`)}else{if(n!=="mixed")throw new ht(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new ze(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return i.attributes.hasOwnProperty(a)}}function pge(e,t,n){e.prototype[t]=function(r,a,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new ht(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new ht(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,l=""+a;if(a=arguments[2],i=arguments[3],o=ja(this,s,l,n),!o)throw new ze(`Graph.${t}: could not find an edge for the given path ("${s}" - "${l}").`)}else{if(n!=="mixed")throw new ht(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ze(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return o.attributes[a]=i,this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:a}),this}}function hge(e,t,n){e.prototype[t]=function(r,a,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new ht(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new ht(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,l=""+a;if(a=arguments[2],i=arguments[3],o=ja(this,s,l,n),!o)throw new ze(`Graph.${t}: could not find an edge for the given path ("${s}" - "${l}").`)}else{if(n!=="mixed")throw new ht(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ze(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof i!="function")throw new qe(`Graph.${t}: updater should be a function.`);return o.attributes[a]=i(o.attributes[a]),this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:a}),this}}function gge(e,t,n){e.prototype[t]=function(r,a){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new ht(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new ht(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const o=""+r,s=""+a;if(a=arguments[2],i=ja(this,o,s,n),!i)throw new ze(`Graph.${t}: could not find an edge for the given path ("${o}" - "${s}").`)}else{if(n!=="mixed")throw new ht(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new ze(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return delete i.attributes[a],this.emit("edgeAttributesUpdated",{key:i.key,type:"remove",attributes:i.attributes,name:a}),this}}function mge(e,t,n){e.prototype[t]=function(r,a){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new ht(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new ht(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const o=""+r,s=""+a;if(a=arguments[2],i=ja(this,o,s,n),!i)throw new ze(`Graph.${t}: could not find an edge for the given path ("${o}" - "${s}").`)}else{if(n!=="mixed")throw new ht(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new ze(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!pr(a))throw new qe(`Graph.${t}: provided attributes are not a plain object.`);return i.attributes=a,this.emit("edgeAttributesUpdated",{key:i.key,type:"replace",attributes:i.attributes}),this}}function bge(e,t,n){e.prototype[t]=function(r,a){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new ht(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new ht(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const o=""+r,s=""+a;if(a=arguments[2],i=ja(this,o,s,n),!i)throw new ze(`Graph.${t}: could not find an edge for the given path ("${o}" - "${s}").`)}else{if(n!=="mixed")throw new ht(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new ze(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!pr(a))throw new qe(`Graph.${t}: provided attributes are not a plain object.`);return qn(i.attributes,a),this.emit("edgeAttributesUpdated",{key:i.key,type:"merge",attributes:i.attributes,data:a}),this}}function yge(e,t,n){e.prototype[t]=function(r,a){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new ht(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new ht(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const o=""+r,s=""+a;if(a=arguments[2],i=ja(this,o,s,n),!i)throw new ze(`Graph.${t}: could not find an edge for the given path ("${o}" - "${s}").`)}else{if(n!=="mixed")throw new ht(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new ze(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof a!="function")throw new qe(`Graph.${t}: provided updater is not a function.`);return i.attributes=a(i.attributes),this.emit("edgeAttributesUpdated",{key:i.key,type:"update",attributes:i.attributes}),this}}const vge=[{name:e=>`get${e}Attribute`,attacher:uge},{name:e=>`get${e}Attributes`,attacher:dge},{name:e=>`has${e}Attribute`,attacher:fge},{name:e=>`set${e}Attribute`,attacher:pge},{name:e=>`update${e}Attribute`,attacher:hge},{name:e=>`remove${e}Attribute`,attacher:gge},{name:e=>`replace${e}Attributes`,attacher:mge},{name:e=>`merge${e}Attributes`,attacher:bge},{name:e=>`update${e}Attributes`,attacher:yge}];function xge(e){vge.forEach(function({name:t,attacher:n}){n(e,t("Edge"),"mixed"),n(e,t("DirectedEdge"),"directed"),n(e,t("UndirectedEdge"),"undirected")})}const Sge=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];function wge(e,t,n,r){let a=!1;for(const i in t){if(i===r)continue;const o=t[i];if(a=n(o.key,o.attributes,o.source.key,o.target.key,o.source.attributes,o.target.attributes,o.undirected),e&&a)return o.key}}function Ege(e,t,n,r){let a,i,o,s=!1;for(const l in t)if(l!==r){a=t[l];do{if(i=a.source,o=a.target,s=n(a.key,a.attributes,i.key,o.key,i.attributes,o.attributes,a.undirected),e&&s)return a.key;a=a.next}while(a!==void 0)}}function HS(e,t){const n=Object.keys(e),r=n.length;let a,i=0;return{[Symbol.iterator](){return this},next(){do if(a)a=a.next;else{if(i>=r)return{done:!0};const o=n[i++];if(o===t){a=void 0;continue}a=e[o]}while(!a);return{done:!1,value:{edge:a.key,attributes:a.attributes,source:a.source.key,target:a.target.key,sourceAttributes:a.source.attributes,targetAttributes:a.target.attributes,undirected:a.undirected}}}}}function kge(e,t,n,r){const a=t[n];if(!a)return;const i=a.source,o=a.target;if(r(a.key,a.attributes,i.key,o.key,i.attributes,o.attributes,a.undirected)&&e)return a.key}function _ge(e,t,n,r){let a=t[n];if(!a)return;let i=!1;do{if(i=r(a.key,a.attributes,a.source.key,a.target.key,a.source.attributes,a.target.attributes,a.undirected),e&&i)return a.key;a=a.next}while(a!==void 0)}function GS(e,t){let n=e[t];if(n.next!==void 0)return{[Symbol.iterator](){return this},next(){if(!n)return{done:!0};const a={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:a}}};let r=!1;return{[Symbol.iterator](){return this},next(){return r===!0?{done:!0}:(r=!0,{done:!1,value:{edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected}})}}}function Cge(e,t){if(e.size===0)return[];if(t==="mixed"||t===e.type)return Array.from(e._edges.keys());const n=t==="undirected"?e.undirectedSize:e.directedSize,r=new Array(n),a=t==="undirected",i=e._edges.values();let o=0,s,l;for(;s=i.next(),s.done!==!0;)l=s.value,l.undirected===a&&(r[o++]=l.key);return r}function P7(e,t,n,r){if(t.size===0)return;const a=n!=="mixed"&&n!==t.type,i=n==="undirected";let o,s,l=!1;const c=t._edges.values();for(;o=c.next(),o.done!==!0;){if(s=o.value,a&&s.undirected!==i)continue;const{key:d,attributes:p,source:h,target:g}=s;if(l=r(d,p,h.key,g.key,h.attributes,g.attributes,s.undirected),e&&l)return d}}function Tge(e,t){if(e.size===0)return Uu();const n=t!=="mixed"&&t!==e.type,r=t==="undirected",a=e._edges.values();return{[Symbol.iterator](){return this},next(){let i,o;for(;;){if(i=a.next(),i.done)return i;if(o=i.value,!(n&&o.undirected!==r))break}return{value:{edge:o.key,attributes:o.attributes,source:o.source.key,target:o.target.key,sourceAttributes:o.source.attributes,targetAttributes:o.target.attributes,undirected:o.undirected},done:!1}}}}function pN(e,t,n,r,a,i){const o=t?Ege:wge;let s;if(n!=="undirected"&&(r!=="out"&&(s=o(e,a.in,i),e&&s)||r!=="in"&&(s=o(e,a.out,i,r?void 0:a.key),e&&s))||n!=="directed"&&(s=o(e,a.undirected,i),e&&s))return s}function Age(e,t,n,r){const a=[];return pN(!1,e,t,n,r,function(i){a.push(i)}),a}function Rge(e,t,n){let r=Uu();return e!=="undirected"&&(t!=="out"&&typeof n.in<"u"&&(r=vo(r,HS(n.in))),t!=="in"&&typeof n.out<"u"&&(r=vo(r,HS(n.out,t?void 0:n.key)))),e!=="directed"&&typeof n.undirected<"u"&&(r=vo(r,HS(n.undirected))),r}function hN(e,t,n,r,a,i,o){const s=n?_ge:kge;let l;if(t!=="undirected"&&(typeof a.in<"u"&&r!=="out"&&(l=s(e,a.in,i,o),e&&l)||typeof a.out<"u"&&r!=="in"&&(r||a.key!==i)&&(l=s(e,a.out,i,o),e&&l))||t!=="directed"&&typeof a.undirected<"u"&&(l=s(e,a.undirected,i,o),e&&l))return l}function Nge(e,t,n,r,a){const i=[];return hN(!1,e,t,n,r,a,function(o){i.push(o)}),i}function Lge(e,t,n,r){let a=Uu();return e!=="undirected"&&(typeof n.in<"u"&&t!=="out"&&r in n.in&&(a=vo(a,GS(n.in,r))),typeof n.out<"u"&&t!=="in"&&r in n.out&&(t||n.key!==r)&&(a=vo(a,GS(n.out,r)))),e!=="directed"&&typeof n.undirected<"u"&&r in n.undirected&&(a=vo(a,GS(n.undirected,r))),a}function Oge(e,t){const{name:n,type:r,direction:a}=t;e.prototype[n]=function(i,o){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];if(!arguments.length)return Cge(this,r);if(arguments.length===1){i=""+i;const s=this._nodes.get(i);if(typeof s>"u")throw new ze(`Graph.${n}: could not find the "${i}" node in the graph.`);return Age(this.multi,r==="mixed"?this.type:r,a,s)}if(arguments.length===2){i=""+i,o=""+o;const s=this._nodes.get(i);if(!s)throw new ze(`Graph.${n}: could not find the "${i}" source node in the graph.`);if(!this._nodes.has(o))throw new ze(`Graph.${n}: could not find the "${o}" target node in the graph.`);return Nge(r,this.multi,a,s,o)}throw new qe(`Graph.${n}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function Dge(e,t){const{name:n,type:r,direction:a}=t,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(c,d,p){if(!(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)){if(arguments.length===1)return p=c,P7(!1,this,r,p);if(arguments.length===2){c=""+c,p=d;const h=this._nodes.get(c);if(typeof h>"u")throw new ze(`Graph.${i}: could not find the "${c}" node in the graph.`);return pN(!1,this.multi,r==="mixed"?this.type:r,a,h,p)}if(arguments.length===3){c=""+c,d=""+d;const h=this._nodes.get(c);if(!h)throw new ze(`Graph.${i}: could not find the "${c}" source node in the graph.`);if(!this._nodes.has(d))throw new ze(`Graph.${i}: could not find the "${d}" target node in the graph.`);return hN(!1,r,this.multi,a,h,d,p)}throw new qe(`Graph.${i}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)}};const o="map"+n[0].toUpperCase()+n.slice(1);e.prototype[o]=function(){const c=Array.prototype.slice.call(arguments),d=c.pop();let p;if(c.length===0){let h=0;r!=="directed"&&(h+=this.undirectedSize),r!=="undirected"&&(h+=this.directedSize),p=new Array(h);let g=0;c.push((b,y,x,w,S,_,N)=>{p[g++]=d(b,y,x,w,S,_,N)})}else p=[],c.push((h,g,b,y,x,w,S)=>{p.push(d(h,g,b,y,x,w,S))});return this[i].apply(this,c),p};const s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){const c=Array.prototype.slice.call(arguments),d=c.pop(),p=[];return c.push((h,g,b,y,x,w,S)=>{d(h,g,b,y,x,w,S)&&p.push(h)}),this[i].apply(this,c),p};const l="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(){let c=Array.prototype.slice.call(arguments);if(c.length<2||c.length>4)throw new qe(`Graph.${l}: invalid number of arguments (expecting 2, 3 or 4 and got ${c.length}).`);if(typeof c[c.length-1]=="function"&&typeof c[c.length-2]!="function")throw new qe(`Graph.${l}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let d,p;c.length===2?(d=c[0],p=c[1],c=[]):c.length===3?(d=c[1],p=c[2],c=[c[0]]):c.length===4&&(d=c[2],p=c[3],c=[c[0],c[1]]);let h=p;return c.push((g,b,y,x,w,S,_)=>{h=d(h,g,b,y,x,w,S,_)}),this[i].apply(this,c),h}}function Ige(e,t){const{name:n,type:r,direction:a}=t,i="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(l,c,d){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return!1;if(arguments.length===1)return d=l,P7(!0,this,r,d);if(arguments.length===2){l=""+l,d=c;const p=this._nodes.get(l);if(typeof p>"u")throw new ze(`Graph.${i}: could not find the "${l}" node in the graph.`);return pN(!0,this.multi,r==="mixed"?this.type:r,a,p,d)}if(arguments.length===3){l=""+l,c=""+c;const p=this._nodes.get(l);if(!p)throw new ze(`Graph.${i}: could not find the "${l}" source node in the graph.`);if(!this._nodes.has(c))throw new ze(`Graph.${i}: could not find the "${c}" target node in the graph.`);return hN(!0,r,this.multi,a,p,c,d)}throw new qe(`Graph.${i}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)};const o="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(){const l=Array.prototype.slice.call(arguments),c=l.pop();return l.push((p,h,g,b,y,x,w)=>c(p,h,g,b,y,x,w)),!!this[i].apply(this,l)};const s="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[s]=function(){const l=Array.prototype.slice.call(arguments),c=l.pop();return l.push((p,h,g,b,y,x,w)=>!c(p,h,g,b,y,x,w)),!this[i].apply(this,l)}}function Mge(e,t){const{name:n,type:r,direction:a}=t,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(o,s){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return Uu();if(!arguments.length)return Tge(this,r);if(arguments.length===1){o=""+o;const l=this._nodes.get(o);if(!l)throw new ze(`Graph.${i}: could not find the "${o}" node in the graph.`);return Rge(r,a,l)}if(arguments.length===2){o=""+o,s=""+s;const l=this._nodes.get(o);if(!l)throw new ze(`Graph.${i}: could not find the "${o}" source node in the graph.`);if(!this._nodes.has(s))throw new ze(`Graph.${i}: could not find the "${s}" target node in the graph.`);return Lge(r,a,l,s)}throw new qe(`Graph.${i}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function Fge(e){Sge.forEach(t=>{Oge(e,t),Dge(e,t),Ige(e,t),Mge(e,t)})}const Pge=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];function Ey(){this.A=null,this.B=null}Ey.prototype.wrap=function(e){this.A===null?this.A=e:this.B===null&&(this.B=e)};Ey.prototype.has=function(e){return this.A!==null&&e in this.A||this.B!==null&&e in this.B};function Jd(e,t,n,r,a){for(const i in r){const o=r[i],s=o.source,l=o.target,c=s===n?l:s;if(t&&t.has(c.key))continue;const d=a(c.key,c.attributes);if(e&&d)return c.key}}function gN(e,t,n,r,a){if(t!=="mixed"){if(t==="undirected")return Jd(e,null,r,r.undirected,a);if(typeof n=="string")return Jd(e,null,r,r[n],a)}const i=new Ey;let o;if(t!=="undirected"){if(n!=="out"){if(o=Jd(e,null,r,r.in,a),e&&o)return o;i.wrap(r.in)}if(n!=="in"){if(o=Jd(e,i,r,r.out,a),e&&o)return o;i.wrap(r.out)}}if(t!=="directed"&&(o=Jd(e,i,r,r.undirected,a),e&&o))return o}function Bge(e,t,n){if(e!=="mixed"){if(e==="undirected")return Object.keys(n.undirected);if(typeof t=="string")return Object.keys(n[t])}const r=[];return gN(!1,e,t,n,function(a){r.push(a)}),r}function ef(e,t,n){const r=Object.keys(n),a=r.length;let i=0;return{[Symbol.iterator](){return this},next(){let o=null;do{if(i>=a)return e&&e.wrap(n),{done:!0};const s=n[r[i++]],l=s.source,c=s.target;if(o=l===t?c:l,e&&e.has(o.key)){o=null;continue}}while(o===null);return{done:!1,value:{neighbor:o.key,attributes:o.attributes}}}}}function zge(e,t,n){if(e!=="mixed"){if(e==="undirected")return ef(null,n,n.undirected);if(typeof t=="string")return ef(null,n,n[t])}let r=Uu();const a=new Ey;return e!=="undirected"&&(t!=="out"&&(r=vo(r,ef(a,n,n.in))),t!=="in"&&(r=vo(r,ef(a,n,n.out)))),e!=="directed"&&(r=vo(r,ef(a,n,n.undirected))),r}function $ge(e,t){const{name:n,type:r,direction:a}=t;e.prototype[n]=function(i){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];i=""+i;const o=this._nodes.get(i);if(typeof o>"u")throw new ze(`Graph.${n}: could not find the "${i}" node in the graph.`);return Bge(r==="mixed"?this.type:r,a,o)}}function jge(e,t){const{name:n,type:r,direction:a}=t,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(c,d){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;c=""+c;const p=this._nodes.get(c);if(typeof p>"u")throw new ze(`Graph.${i}: could not find the "${c}" node in the graph.`);gN(!1,r==="mixed"?this.type:r,a,p,d)};const o="map"+n[0].toUpperCase()+n.slice(1);e.prototype[o]=function(c,d){const p=[];return this[i](c,(h,g)=>{p.push(d(h,g))}),p};const s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(c,d){const p=[];return this[i](c,(h,g)=>{d(h,g)&&p.push(h)}),p};const l="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(c,d,p){if(arguments.length<3)throw new qe(`Graph.${l}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let h=p;return this[i](c,(g,b)=>{h=d(h,g,b)}),h}}function Uge(e,t){const{name:n,type:r,direction:a}=t,i=n[0].toUpperCase()+n.slice(1,-1),o="find"+i;e.prototype[o]=function(c,d){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;c=""+c;const p=this._nodes.get(c);if(typeof p>"u")throw new ze(`Graph.${o}: could not find the "${c}" node in the graph.`);return gN(!0,r==="mixed"?this.type:r,a,p,d)};const s="some"+i;e.prototype[s]=function(c,d){return!!this[o](c,d)};const l="every"+i;e.prototype[l]=function(c,d){return!this[o](c,(h,g)=>!d(h,g))}}function Hge(e,t){const{name:n,type:r,direction:a}=t,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(o){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return Uu();o=""+o;const s=this._nodes.get(o);if(typeof s>"u")throw new ze(`Graph.${i}: could not find the "${o}" node in the graph.`);return zge(r==="mixed"?this.type:r,a,s)}}function Gge(e){Pge.forEach(t=>{$ge(e,t),jge(e,t),Uge(e,t),Hge(e,t)})}function Eg(e,t,n,r,a){const i=r._nodes.values(),o=r.type;let s,l,c,d,p,h;for(;s=i.next(),s.done!==!0;){let g=!1;if(l=s.value,o!=="undirected"){d=l.out;for(c in d){p=d[c];do h=p.target,g=!0,a(l.key,h.key,l.attributes,h.attributes,p.key,p.attributes,p.undirected),p=p.next;while(p)}}if(o!=="directed"){d=l.undirected;for(c in d)if(!(t&&l.key>c)){p=d[c];do h=p.target,h.key!==c&&(h=p.source),g=!0,a(l.key,h.key,l.attributes,h.attributes,p.key,p.attributes,p.undirected),p=p.next;while(p)}}n&&!g&&a(l.key,null,l.attributes,null,null,null,null)}}function qge(e,t){const n={key:e};return N7(t.attributes)||(n.attributes=qn({},t.attributes)),n}function Wge(e,t,n){const r={key:t,source:n.source.key,target:n.target.key};return N7(n.attributes)||(r.attributes=qn({},n.attributes)),e==="mixed"&&n.undirected&&(r.undirected=!0),r}function Vge(e){if(!pr(e))throw new qe('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new qe("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!pr(e.attributes)||e.attributes===null))throw new qe("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function Yge(e){if(!pr(e))throw new qe('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new qe("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new qe("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!pr(e.attributes)||e.attributes===null))throw new qe("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&typeof e.undirected!="boolean")throw new qe("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}const Kge=Zhe(),Xge=new Set(["directed","undirected","mixed"]),JF=new Set(["domain","_events","_eventsCount","_maxListeners"]),Zge=[{name:e=>`${e}Edge`,generateKey:!0},{name:e=>`${e}DirectedEdge`,generateKey:!0,type:"directed"},{name:e=>`${e}UndirectedEdge`,generateKey:!0,type:"undirected"},{name:e=>`${e}EdgeWithKey`},{name:e=>`${e}DirectedEdgeWithKey`,type:"directed"},{name:e=>`${e}UndirectedEdgeWithKey`,type:"undirected"}],Qge={allowSelfLoops:!0,multi:!1,type:"mixed"};function Jge(e,t,n){if(n&&!pr(n))throw new qe(`Graph.addNode: invalid attributes. Expecting an object but got "${n}"`);if(t=""+t,n=n||{},e._nodes.has(t))throw new ht(`Graph.addNode: the "${t}" node already exist in the graph.`);const r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function eP(e,t,n){const r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function B7(e,t,n,r,a,i,o,s){if(!r&&e.type==="undirected")throw new ht(`Graph.${t}: you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new ht(`Graph.${t}: you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead.`);if(s&&!pr(s))throw new qe(`Graph.${t}: invalid attributes. Expecting an object but got "${s}"`);if(i=""+i,o=""+o,s=s||{},!e.allowSelfLoops&&i===o)throw new ht(`Graph.${t}: source & target are the same ("${i}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);const l=e._nodes.get(i),c=e._nodes.get(o);if(!l)throw new ze(`Graph.${t}: source node "${i}" not found.`);if(!c)throw new ze(`Graph.${t}: target node "${o}" not found.`);const d={key:null,undirected:r,source:i,target:o,attributes:s};if(n)a=e._edgeKeyGenerator();else if(a=""+a,e._edges.has(a))throw new ht(`Graph.${t}: the "${a}" edge already exists in the graph.`);if(!e.multi&&(r?typeof l.undirected[o]<"u":typeof l.out[o]<"u"))throw new ht(`Graph.${t}: an edge linking "${i}" to "${o}" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option.`);const p=new Hu(r,a,l,c,s);e._edges.set(a,p);const h=i===o;return r?(l.undirectedDegree++,c.undirectedDegree++,h&&(l.undirectedLoops++,e._undirectedSelfLoopCount++)):(l.outDegree++,c.inDegree++,h&&(l.directedLoops++,e._directedSelfLoopCount++)),e.multi?p.attachMulti():p.attach(),r?e._undirectedSize++:e._directedSize++,d.key=a,e.emit("edgeAdded",d),a}function eme(e,t,n,r,a,i,o,s,l){if(!r&&e.type==="undirected")throw new ht(`Graph.${t}: you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new ht(`Graph.${t}: you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead.`);if(s){if(l){if(typeof s!="function")throw new qe(`Graph.${t}: invalid updater function. Expecting a function but got "${s}"`)}else if(!pr(s))throw new qe(`Graph.${t}: invalid attributes. Expecting an object but got "${s}"`)}i=""+i,o=""+o;let c;if(l&&(c=s,s=void 0),!e.allowSelfLoops&&i===o)throw new ht(`Graph.${t}: source & target are the same ("${i}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);let d=e._nodes.get(i),p=e._nodes.get(o),h,g;if(!n&&(h=e._edges.get(a),h)){if((h.source.key!==i||h.target.key!==o)&&(!r||h.source.key!==o||h.target.key!==i))throw new ht(`Graph.${t}: inconsistency detected when attempting to merge the "${a}" edge with "${i}" source & "${o}" target vs. ("${h.source.key}", "${h.target.key}").`);g=h}if(!g&&!e.multi&&d&&(g=r?d.undirected[o]:d.out[o]),g){const S=[g.key,!1,!1,!1];if(l?!c:!s)return S;if(l){const _=g.attributes;g.attributes=c(_),e.emit("edgeAttributesUpdated",{type:"replace",key:g.key,attributes:g.attributes})}else qn(g.attributes,s),e.emit("edgeAttributesUpdated",{type:"merge",key:g.key,attributes:g.attributes,data:s});return S}s=s||{},l&&c&&(s=c(s));const b={key:null,undirected:r,source:i,target:o,attributes:s};if(n)a=e._edgeKeyGenerator();else if(a=""+a,e._edges.has(a))throw new ht(`Graph.${t}: the "${a}" edge already exists in the graph.`);let y=!1,x=!1;d||(d=eP(e,i,{}),y=!0,i===o&&(p=d,x=!0)),p||(p=eP(e,o,{}),x=!0),h=new Hu(r,a,d,p,s),e._edges.set(a,h);const w=i===o;return r?(d.undirectedDegree++,p.undirectedDegree++,w&&(d.undirectedLoops++,e._undirectedSelfLoopCount++)):(d.outDegree++,p.inDegree++,w&&(d.directedLoops++,e._directedSelfLoopCount++)),e.multi?h.attachMulti():h.attach(),r?e._undirectedSize++:e._directedSize++,b.key=a,e.emit("edgeAdded",b),[a,!0,y,x]}function Rc(e,t){e._edges.delete(t.key);const{source:n,target:r,attributes:a}=t,i=t.undirected,o=n===r;i?(n.undirectedDegree--,r.undirectedDegree--,o&&(n.undirectedLoops--,e._undirectedSelfLoopCount--)):(n.outDegree--,r.inDegree--,o&&(n.directedLoops--,e._directedSelfLoopCount--)),e.multi?t.detachMulti():t.detach(),i?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:a,source:n.key,target:r.key,undirected:i})}class cn extends R7.EventEmitter{constructor(t){if(super(),t=qn({},Qge,t),typeof t.multi!="boolean")throw new qe(`Graph.constructor: invalid 'multi' option. Expecting a boolean but got "${t.multi}".`);if(!Xge.has(t.type))throw new qe(`Graph.constructor: invalid 'type' option. Should be one of "mixed", "directed" or "undirected" but got "${t.type}".`);if(typeof t.allowSelfLoops!="boolean")throw new qe(`Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got "${t.allowSelfLoops}".`);const n=t.type==="mixed"?L7:t.type==="directed"?O7:D7;Da(this,"NodeDataClass",n);const r="geid_"+Kge()+"_";let a=0;const i=()=>{let o;do o=r+a++;while(this._edges.has(o));return o};Da(this,"_attributes",{}),Da(this,"_nodes",new Map),Da(this,"_edges",new Map),Da(this,"_directedSize",0),Da(this,"_undirectedSize",0),Da(this,"_directedSelfLoopCount",0),Da(this,"_undirectedSelfLoopCount",0),Da(this,"_edgeKeyGenerator",i),Da(this,"_options",t),JF.forEach(o=>Da(this,o,this[o])),ei(this,"order",()=>this._nodes.size),ei(this,"size",()=>this._edges.size),ei(this,"directedSize",()=>this._directedSize),ei(this,"undirectedSize",()=>this._undirectedSize),ei(this,"selfLoopCount",()=>this._directedSelfLoopCount+this._undirectedSelfLoopCount),ei(this,"directedSelfLoopCount",()=>this._directedSelfLoopCount),ei(this,"undirectedSelfLoopCount",()=>this._undirectedSelfLoopCount),ei(this,"multi",this._options.multi),ei(this,"type",this._options.type),ei(this,"allowSelfLoops",this._options.allowSelfLoops),ei(this,"implementation",()=>"graphology")}_resetInstanceCounters(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0}hasNode(t){return this._nodes.has(""+t)}hasDirectedEdge(t,n){if(this.type==="undirected")return!1;if(arguments.length===1){const r=""+t,a=this._edges.get(r);return!!a&&!a.undirected}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?r.out.hasOwnProperty(n):!1}throw new qe(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasUndirectedEdge(t,n){if(this.type==="directed")return!1;if(arguments.length===1){const r=""+t,a=this._edges.get(r);return!!a&&a.undirected}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?r.undirected.hasOwnProperty(n):!1}throw new qe(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasEdge(t,n){if(arguments.length===1){const r=""+t;return this._edges.has(r)}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?typeof r.out<"u"&&r.out.hasOwnProperty(n)||typeof r.undirected<"u"&&r.undirected.hasOwnProperty(n):!1}throw new qe(`Graph.hasEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}directedEdge(t,n){if(this.type==="undirected")return;if(t=""+t,n=""+n,this.multi)throw new ht("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");const r=this._nodes.get(t);if(!r)throw new ze(`Graph.directedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ze(`Graph.directedEdge: could not find the "${n}" target node in the graph.`);const a=r.out&&r.out[n]||void 0;if(a)return a.key}undirectedEdge(t,n){if(this.type==="directed")return;if(t=""+t,n=""+n,this.multi)throw new ht("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");const r=this._nodes.get(t);if(!r)throw new ze(`Graph.undirectedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ze(`Graph.undirectedEdge: could not find the "${n}" target node in the graph.`);const a=r.undirected&&r.undirected[n]||void 0;if(a)return a.key}edge(t,n){if(this.multi)throw new ht("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ze(`Graph.edge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ze(`Graph.edge: could not find the "${n}" target node in the graph.`);const a=r.out&&r.out[n]||r.undirected&&r.undirected[n]||void 0;if(a)return a.key}areDirectedNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ze(`Graph.areDirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in||n in r.out}areOutNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ze(`Graph.areOutNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.out}areInNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ze(`Graph.areInNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in}areUndirectedNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ze(`Graph.areUndirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="directed"?!1:n in r.undirected}areNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ze(`Graph.areNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&(n in r.in||n in r.out)||this.type!=="directed"&&n in r.undirected}areInboundNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ze(`Graph.areInboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.in||this.type!=="directed"&&n in r.undirected}areOutboundNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ze(`Graph.areOutboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.out||this.type!=="directed"&&n in r.undirected}inDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.inDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree}outDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.outDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree}directedDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.directedDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree}undirectedDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.undirectedDegree: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree}inboundDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.inboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree),r}outboundDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.outboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.outDegree),r}degree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.degree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree),r}inDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.inDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree-n.directedLoops}outDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.outDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree-n.directedLoops}directedDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.directedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree-n.directedLoops*2}undirectedDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.undirectedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree-n.undirectedLoops*2}inboundDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.inboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,a=0;return this.type!=="directed"&&(r+=n.undirectedDegree,a+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree,a+=n.directedLoops),r-a}outboundDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.outboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,a=0;return this.type!=="directed"&&(r+=n.undirectedDegree,a+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.outDegree,a+=n.directedLoops),r-a}degreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.degreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,a=0;return this.type!=="directed"&&(r+=n.undirectedDegree,a+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree,a+=n.directedLoops*2),r-a}source(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ze(`Graph.source: could not find the "${t}" edge in the graph.`);return n.source.key}target(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ze(`Graph.target: could not find the "${t}" edge in the graph.`);return n.target.key}extremities(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ze(`Graph.extremities: could not find the "${t}" edge in the graph.`);return[n.source.key,n.target.key]}opposite(t,n){t=""+t,n=""+n;const r=this._edges.get(n);if(!r)throw new ze(`Graph.opposite: could not find the "${n}" edge in the graph.`);const a=r.source.key,i=r.target.key;if(t===a)return i;if(t===i)return a;throw new ze(`Graph.opposite: the "${t}" node is not attached to the "${n}" edge (${a}, ${i}).`)}hasExtremity(t,n){t=""+t,n=""+n;const r=this._edges.get(t);if(!r)throw new ze(`Graph.hasExtremity: could not find the "${t}" edge in the graph.`);return r.source.key===n||r.target.key===n}isUndirected(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ze(`Graph.isUndirected: could not find the "${t}" edge in the graph.`);return n.undirected}isDirected(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ze(`Graph.isDirected: could not find the "${t}" edge in the graph.`);return!n.undirected}isSelfLoop(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ze(`Graph.isSelfLoop: could not find the "${t}" edge in the graph.`);return n.source===n.target}addNode(t,n){return Jge(this,t,n).key}mergeNode(t,n){if(n&&!pr(n))throw new qe(`Graph.mergeNode: invalid attributes. Expecting an object but got "${n}"`);t=""+t,n=n||{};let r=this._nodes.get(t);return r?(n&&(qn(r.attributes,n),this.emit("nodeAttributesUpdated",{type:"merge",key:t,attributes:r.attributes,data:n})),[t,!1]):(r=new this.NodeDataClass(t,n),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:n}),[t,!0])}updateNode(t,n){if(n&&typeof n!="function")throw new qe(`Graph.updateNode: invalid updater function. Expecting a function but got "${n}"`);t=""+t;let r=this._nodes.get(t);if(r){if(n){const i=r.attributes;r.attributes=n(i),this.emit("nodeAttributesUpdated",{type:"replace",key:t,attributes:r.attributes})}return[t,!1]}const a=n?n({}):{};return r=new this.NodeDataClass(t,a),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:a}),[t,!0]}dropNode(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ze(`Graph.dropNode: could not find the "${t}" node in the graph.`);let r;if(this.type!=="undirected"){for(const a in n.out){r=n.out[a];do Rc(this,r),r=r.next;while(r)}for(const a in n.in){r=n.in[a];do Rc(this,r),r=r.next;while(r)}}if(this.type!=="directed")for(const a in n.undirected){r=n.undirected[a];do Rc(this,r),r=r.next;while(r)}this._nodes.delete(t),this.emit("nodeDropped",{key:t,attributes:n.attributes})}dropEdge(t){let n;if(arguments.length>1){const r=""+arguments[0],a=""+arguments[1];if(n=ja(this,r,a,this.type),!n)throw new ze(`Graph.dropEdge: could not find the "${r}" -> "${a}" edge in the graph.`)}else if(t=""+t,n=this._edges.get(t),!n)throw new ze(`Graph.dropEdge: could not find the "${t}" edge in the graph.`);return Rc(this,n),this}dropDirectedEdge(t,n){if(arguments.length<2)throw new ht("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new ht("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");t=""+t,n=""+n;const r=ja(this,t,n,"directed");if(!r)throw new ze(`Graph.dropDirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return Rc(this,r),this}dropUndirectedEdge(t,n){if(arguments.length<2)throw new ht("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new ht("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");const r=ja(this,t,n,"undirected");if(!r)throw new ze(`Graph.dropUndirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return Rc(this,r),this}clear(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")}clearEdges(){const t=this._nodes.values();let n;for(;n=t.next(),n.done!==!0;)n.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")}getAttribute(t){return this._attributes[t]}getAttributes(){return this._attributes}hasAttribute(t){return this._attributes.hasOwnProperty(t)}setAttribute(t,n){return this._attributes[t]=n,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}updateAttribute(t,n){if(typeof n!="function")throw new qe("Graph.updateAttribute: updater should be a function.");const r=this._attributes[t];return this._attributes[t]=n(r),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}removeAttribute(t){return delete this._attributes[t],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:t}),this}replaceAttributes(t){if(!pr(t))throw new qe("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=t,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this}mergeAttributes(t){if(!pr(t))throw new qe("Graph.mergeAttributes: provided attributes are not a plain object.");return qn(this._attributes,t),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:t}),this}updateAttributes(t){if(typeof t!="function")throw new qe("Graph.updateAttributes: provided updater is not a function.");return this._attributes=t(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this}updateEachNodeAttributes(t,n){if(typeof t!="function")throw new qe("Graph.updateEachNodeAttributes: expecting an updater function.");if(n&&!QF(n))throw new qe("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");const r=this._nodes.values();let a,i;for(;a=r.next(),a.done!==!0;)i=a.value,i.attributes=t(i.key,i.attributes);this.emit("eachNodeAttributesUpdated",{hints:n||null})}updateEachEdgeAttributes(t,n){if(typeof t!="function")throw new qe("Graph.updateEachEdgeAttributes: expecting an updater function.");if(n&&!QF(n))throw new qe("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");const r=this._edges.values();let a,i,o,s;for(;a=r.next(),a.done!==!0;)i=a.value,o=i.source,s=i.target,i.attributes=t(i.key,i.attributes,o.key,s.key,o.attributes,s.attributes,i.undirected);this.emit("eachEdgeAttributesUpdated",{hints:n||null})}forEachAdjacencyEntry(t){if(typeof t!="function")throw new qe("Graph.forEachAdjacencyEntry: expecting a callback.");Eg(!1,!1,!1,this,t)}forEachAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new qe("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");Eg(!1,!1,!0,this,t)}forEachAssymetricAdjacencyEntry(t){if(typeof t!="function")throw new qe("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");Eg(!1,!0,!1,this,t)}forEachAssymetricAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new qe("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");Eg(!1,!0,!0,this,t)}nodes(){return Array.from(this._nodes.keys())}forEachNode(t){if(typeof t!="function")throw new qe("Graph.forEachNode: expecting a callback.");const n=this._nodes.values();let r,a;for(;r=n.next(),r.done!==!0;)a=r.value,t(a.key,a.attributes)}findNode(t){if(typeof t!="function")throw new qe("Graph.findNode: expecting a callback.");const n=this._nodes.values();let r,a;for(;r=n.next(),r.done!==!0;)if(a=r.value,t(a.key,a.attributes))return a.key}mapNodes(t){if(typeof t!="function")throw new qe("Graph.mapNode: expecting a callback.");const n=this._nodes.values();let r,a;const i=new Array(this.order);let o=0;for(;r=n.next(),r.done!==!0;)a=r.value,i[o++]=t(a.key,a.attributes);return i}someNode(t){if(typeof t!="function")throw new qe("Graph.someNode: expecting a callback.");const n=this._nodes.values();let r,a;for(;r=n.next(),r.done!==!0;)if(a=r.value,t(a.key,a.attributes))return!0;return!1}everyNode(t){if(typeof t!="function")throw new qe("Graph.everyNode: expecting a callback.");const n=this._nodes.values();let r,a;for(;r=n.next(),r.done!==!0;)if(a=r.value,!t(a.key,a.attributes))return!1;return!0}filterNodes(t){if(typeof t!="function")throw new qe("Graph.filterNodes: expecting a callback.");const n=this._nodes.values();let r,a;const i=[];for(;r=n.next(),r.done!==!0;)a=r.value,t(a.key,a.attributes)&&i.push(a.key);return i}reduceNodes(t,n){if(typeof t!="function")throw new qe("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new qe("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");let r=n;const a=this._nodes.values();let i,o;for(;i=a.next(),i.done!==!0;)o=i.value,r=t(r,o.key,o.attributes);return r}nodeEntries(){const t=this._nodes.values();return{[Symbol.iterator](){return this},next(){const n=t.next();if(n.done)return n;const r=n.value;return{value:{node:r.key,attributes:r.attributes},done:!1}}}}export(){const t=new Array(this._nodes.size);let n=0;this._nodes.forEach((a,i)=>{t[n++]=qge(i,a)});const r=new Array(this._edges.size);return n=0,this._edges.forEach((a,i)=>{r[n++]=Wge(this.type,i,a)}),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:t,edges:r}}import(t,n=!1){if(t instanceof cn)return t.forEachNode((l,c)=>{n?this.mergeNode(l,c):this.addNode(l,c)}),t.forEachEdge((l,c,d,p,h,g,b)=>{n?b?this.mergeUndirectedEdgeWithKey(l,d,p,c):this.mergeDirectedEdgeWithKey(l,d,p,c):b?this.addUndirectedEdgeWithKey(l,d,p,c):this.addDirectedEdgeWithKey(l,d,p,c)}),this;if(!pr(t))throw new qe("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(t.attributes){if(!pr(t.attributes))throw new qe("Graph.import: invalid attributes. Expecting a plain object.");n?this.mergeAttributes(t.attributes):this.replaceAttributes(t.attributes)}let r,a,i,o,s;if(t.nodes){if(i=t.nodes,!Array.isArray(i))throw new qe("Graph.import: invalid nodes. Expecting an array.");for(r=0,a=i.length;r<a;r++){o=i[r],Vge(o);const{key:l,attributes:c}=o;n?this.mergeNode(l,c):this.addNode(l,c)}}if(t.edges){let l=!1;if(this.type==="undirected"&&(l=!0),i=t.edges,!Array.isArray(i))throw new qe("Graph.import: invalid edges. Expecting an array.");for(r=0,a=i.length;r<a;r++){s=i[r],Yge(s);const{source:c,target:d,attributes:p,undirected:h=l}=s;let g;"key"in s?(g=n?h?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:h?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey,g.call(this,s.key,c,d,p)):(g=n?h?this.mergeUndirectedEdge:this.mergeDirectedEdge:h?this.addUndirectedEdge:this.addDirectedEdge,g.call(this,c,d,p))}}return this}nullCopy(t){const n=new cn(qn({},this._options,t));return n.replaceAttributes(qn({},this.getAttributes())),n}emptyCopy(t){const n=this.nullCopy(t);return this._nodes.forEach((r,a)=>{const i=qn({},r.attributes);r=new n.NodeDataClass(a,i),n._nodes.set(a,r)}),n}copy(t){if(t=t||{},typeof t.type=="string"&&t.type!==this.type&&t.type!=="mixed")throw new ht(`Graph.copy: cannot create an incompatible copy from "${this.type}" type to "${t.type}" because this would mean losing information about the current graph.`);if(typeof t.multi=="boolean"&&t.multi!==this.multi&&t.multi!==!0)throw new ht("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if(typeof t.allowSelfLoops=="boolean"&&t.allowSelfLoops!==this.allowSelfLoops&&t.allowSelfLoops!==!0)throw new ht("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");const n=this.emptyCopy(t),r=this._edges.values();let a,i;for(;a=r.next(),a.done!==!0;)i=a.value,B7(n,"copy",!1,i.undirected,i.key,i.source.key,i.target.key,qn({},i.attributes));return n}toJSON(){return this.export()}toString(){return"[object Graph]"}inspect(){const t={};this._nodes.forEach((i,o)=>{t[o]=i.attributes});const n={},r={};this._edges.forEach((i,o)=>{const s=i.undirected?"--":"->";let l="",c=i.source.key,d=i.target.key,p;i.undirected&&c>d&&(p=c,c=d,d=p);const h=`(${c})${s}(${d})`;o.startsWith("geid_")?this.multi&&(typeof r[h]>"u"?r[h]=0:r[h]++,l+=`${r[h]}. `):l+=`[${o}]: `,l+=h,n[l]=i.attributes});const a={};for(const i in this)this.hasOwnProperty(i)&&!JF.has(i)&&typeof this[i]!="function"&&typeof i!="symbol"&&(a[i]=this[i]);return a.attributes=this._attributes,a.nodes=t,a.edges=n,Da(a,"constructor",this.constructor),a}}typeof Symbol<"u"&&(cn.prototype[Symbol.for("nodejs.util.inspect.custom")]=cn.prototype.inspect);Zge.forEach(e=>{["add","merge","update"].forEach(t=>{const n=e.name(t),r=t==="add"?B7:eme;e.generateKey?cn.prototype[n]=function(a,i,o){return r(this,n,!0,(e.type||this.type)==="undirected",null,a,i,o,t==="update")}:cn.prototype[n]=function(a,i,o,s){return r(this,n,!1,(e.type||this.type)==="undirected",a,i,o,s,t==="update")}})});cge(cn);xge(cn);Fge(cn);Gge(cn);class z7 extends cn{constructor(t){const n=qn({type:"directed"},t);if("multi"in n&&n.multi!==!1)throw new qe("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="directed")throw new qe('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class Zf extends cn{constructor(t){const n=qn({type:"undirected"},t);if("multi"in n&&n.multi!==!1)throw new qe("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="undirected")throw new qe('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class $7 extends cn{constructor(t){const n=qn({multi:!0},t);if("multi"in n&&n.multi!==!0)throw new qe("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");super(n)}}class j7 extends cn{constructor(t){const n=qn({type:"directed",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new qe("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="directed")throw new qe('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class U7 extends cn{constructor(t){const n=qn({type:"undirected",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new qe("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="undirected")throw new qe('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}function Gu(e){e.from=function(t,n){const r=qn({},t.options,n),a=new e(r);return a.import(t),a}}Gu(cn);Gu(z7);Gu(Zf);Gu($7);Gu(j7);Gu(U7);cn.Graph=cn;cn.DirectedGraph=z7;cn.UndirectedGraph=Zf;cn.MultiGraph=$7;cn.MultiDirectedGraph=j7;cn.MultiUndirectedGraph=U7;cn.InvalidArgumentsGraphError=qe;cn.NotFoundGraphError=ze;cn.UsageGraphError=ht;function tme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Df(e){var t=tme(e,"string");return typeof t=="symbol"?t:t+""}function tr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Df(r.key),r)}}function nr(e,t,n){return t&&tP(e.prototype,t),n&&tP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pu(e){return pu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pu(e)}function H7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H7=function(){return!!e})()}function nme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rme(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nme(e)}function Xr(e,t,n){return t=pu(t),rme(e,H7()?Reflect.construct(t,n||[],pu(e).constructor):t.apply(e,n))}function FA(e,t){return FA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},FA(e,t)}function Zr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&FA(e,t)}function ame(e){if(Array.isArray(e))return e}function ime(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function PA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function G7(e,t){if(e){if(typeof e=="string")return PA(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PA(e,t):void 0}}function ome(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hu(e,t){return ame(e)||ime(e,t)||G7(e,t)||ome()}var qS={black:"#000000",silver:"#C0C0C0",gray:"#808080",grey:"#808080",white:"#FFFFFF",maroon:"#800000",red:"#FF0000",purple:"#800080",fuchsia:"#FF00FF",green:"#008000",lime:"#00FF00",olive:"#808000",yellow:"#FFFF00",navy:"#000080",blue:"#0000FF",teal:"#008080",aqua:"#00FFFF",darkblue:"#00008B",mediumblue:"#0000CD",darkgreen:"#006400",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",rebeccapurple:"#663399",mediumaquamarine:"#66CDAA",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370DB",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",palevioletred:"#DB7093",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",lightyellow:"#FFFFE0",ivory:"#FFFFF0"},q7=new Int8Array(4),sm=new Int32Array(q7.buffer,0,1),W7=new Float32Array(q7.buffer,0,1),sme=/^\s*rgba?\s*\(/,lme=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;function cme(e){var t=0,n=0,r=0,a=1;if(e[0]==="#")e.length===4?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16)),e.length===9&&(a=parseInt(e.charAt(7)+e.charAt(8),16)/255);else if(sme.test(e)){var i=e.match(lme);i&&(t=+i[1],n=+i[2],r=+i[3],i[4]&&(a=+i[4]))}return{r:t,g:n,b:r,a}}var Kc={};for(var kg in qS)Kc[kg]=Bi(qS[kg]),Kc[qS[kg]]=Kc[kg];function V7(e,t,n,r,a){return sm[0]=r<<24|n<<16|t<<8|e,sm[0]=sm[0]&4278190079,W7[0]}function Bi(e){if(e=e.toLowerCase(),typeof Kc[e]<"u")return Kc[e];var t=cme(e),n=t.r,r=t.g,a=t.b,i=t.a;i=i*255|0;var o=V7(n,r,a,i);return Kc[e]=o,o}function ume(e,t){W7[0]=Bi(e);var n=sm[0],r=n&255,a=n>>8&255,i=n>>16&255,o=n>>24&255;return[r,a,i,o]}var WS={};function Y7(e){if(typeof WS[e]<"u")return WS[e];var t=(e&16711680)>>>16,n=(e&65280)>>>8,r=e&255,a=255,i=V7(t,n,r,a);return WS[e]=i,i}function nP(e,t,n,r){return n+(t<<8)+(e<<16)}function rP(e,t,n,r,a,i){var o=Math.floor(n/i*a),s=Math.floor(e.drawingBufferHeight/i-r/i*a),l=new Uint8Array(4);e.bindFramebuffer(e.FRAMEBUFFER,t),e.readPixels(o,s,1,1,e.RGBA,e.UNSIGNED_BYTE,l);var c=hu(l,4),d=c[0],p=c[1],h=c[2],g=c[3];return[d,p,h,g]}function De(e,t,n){return(t=Df(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aP(Object(n),!0).forEach(function(r){De(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dme(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=pu(e))!==null;);return e}function BA(){return BA=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=dme(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(arguments.length<3?e:n):a.value}},BA.apply(null,arguments)}function K7(e,t,n,r){var a=BA(pu(e.prototype),t,n);return typeof a=="function"?function(i){return a.apply(n,i)}:a}function fme(e){return e.normalized?1:e.size}function VS(e){var t=0;return e.forEach(function(n){return t+=fme(n)}),t}function X7(e,t,n){var r=e==="VERTEX"?t.VERTEX_SHADER:t.FRAGMENT_SHADER,a=t.createShader(r);if(a===null)throw new Error("loadShader: error while creating the shader");t.shaderSource(a,n),t.compileShader(a);var i=t.getShaderParameter(a,t.COMPILE_STATUS);if(!i){var o=t.getShaderInfoLog(a);throw t.deleteShader(a),new Error(`loadShader: error while compiling the shader:
`.concat(o,`
`).concat(n))}return a}function pme(e,t){return X7("VERTEX",e,t)}function hme(e,t){return X7("FRAGMENT",e,t)}function gme(e,t){var n=e.createProgram();if(n===null)throw new Error("loadProgram: error while creating the program.");var r,a;for(r=0,a=t.length;r<a;r++)e.attachShader(n,t[r]);e.linkProgram(n);var i=e.getProgramParameter(n,e.LINK_STATUS);if(!i)throw e.deleteProgram(n),new Error("loadProgram: error while linking the program.");return n}function iP(e){var t=e.gl,n=e.buffer,r=e.program,a=e.vertexShader,i=e.fragmentShader;t.deleteShader(a),t.deleteShader(i),t.deleteProgram(r),t.deleteBuffer(n)}function oP(e){return e%1===0?e.toFixed(1):e.toString()}var sP=`#define PICKING_MODE
`,mme=De(De(De(De(De(De(De(De({},WebGL2RenderingContext.BOOL,1),WebGL2RenderingContext.BYTE,1),WebGL2RenderingContext.UNSIGNED_BYTE,1),WebGL2RenderingContext.SHORT,2),WebGL2RenderingContext.UNSIGNED_SHORT,2),WebGL2RenderingContext.INT,4),WebGL2RenderingContext.UNSIGNED_INT,4),WebGL2RenderingContext.FLOAT,4),Z7=function(){function e(t,n,r){tr(this,e),De(this,"array",new Float32Array),De(this,"constantArray",new Float32Array),De(this,"capacity",0),De(this,"verticesCount",0);var a=this.getDefinition();if(this.VERTICES=a.VERTICES,this.VERTEX_SHADER_SOURCE=a.VERTEX_SHADER_SOURCE,this.FRAGMENT_SHADER_SOURCE=a.FRAGMENT_SHADER_SOURCE,this.UNIFORMS=a.UNIFORMS,this.ATTRIBUTES=a.ATTRIBUTES,this.METHOD=a.METHOD,this.CONSTANT_ATTRIBUTES="CONSTANT_ATTRIBUTES"in a?a.CONSTANT_ATTRIBUTES:[],this.CONSTANT_DATA="CONSTANT_DATA"in a?a.CONSTANT_DATA:[],this.isInstanced="CONSTANT_ATTRIBUTES"in a,this.ATTRIBUTES_ITEMS_COUNT=VS(this.ATTRIBUTES),this.STRIDE=this.VERTICES*this.ATTRIBUTES_ITEMS_COUNT,this.renderer=r,this.normalProgram=this.getProgramInfo("normal",t,a.VERTEX_SHADER_SOURCE,a.FRAGMENT_SHADER_SOURCE,null),this.pickProgram=n?this.getProgramInfo("pick",t,sP+a.VERTEX_SHADER_SOURCE,sP+a.FRAGMENT_SHADER_SOURCE,n):null,this.isInstanced){var i=VS(this.CONSTANT_ATTRIBUTES);if(this.CONSTANT_DATA.length!==this.VERTICES)throw new Error("Program: error while getting constant data (expected ".concat(this.VERTICES," items, received ").concat(this.CONSTANT_DATA.length," instead)"));this.constantArray=new Float32Array(this.CONSTANT_DATA.length*i);for(var o=0;o<this.CONSTANT_DATA.length;o++){var s=this.CONSTANT_DATA[o];if(s.length!==i)throw new Error("Program: error while getting constant data (one vector has ".concat(s.length," items instead of ").concat(i,")"));for(var l=0;l<s.length;l++)this.constantArray[o*i+l]=s[l]}this.STRIDE=this.ATTRIBUTES_ITEMS_COUNT}}return nr(e,[{key:"kill",value:function(){iP(this.normalProgram),this.pickProgram&&(iP(this.pickProgram),this.pickProgram=null)}},{key:"getProgramInfo",value:function(n,r,a,i,o){var s=this.getDefinition(),l=r.createBuffer();if(l===null)throw new Error("Program: error while creating the WebGL buffer.");var c=pme(r,a),d=hme(r,i),p=gme(r,[c,d]),h={};s.UNIFORMS.forEach(function(y){var x=r.getUniformLocation(p,y);x&&(h[y]=x)});var g={};s.ATTRIBUTES.forEach(function(y){g[y.name]=r.getAttribLocation(p,y.name)});var b;if("CONSTANT_ATTRIBUTES"in s&&(s.CONSTANT_ATTRIBUTES.forEach(function(y){g[y.name]=r.getAttribLocation(p,y.name)}),b=r.createBuffer(),b===null))throw new Error("Program: error while creating the WebGL constant buffer.");return{name:n,program:p,gl:r,frameBuffer:o,buffer:l,constantBuffer:b||{},uniformLocations:h,attributeLocations:g,isPicking:n==="pick",vertexShader:c,fragmentShader:d}}},{key:"bindProgram",value:function(n){var r=this,a=0,i=n.gl,o=n.buffer;this.isInstanced?(i.bindBuffer(i.ARRAY_BUFFER,n.constantBuffer),a=0,this.CONSTANT_ATTRIBUTES.forEach(function(s){return a+=r.bindAttribute(s,n,a,!1)}),i.bufferData(i.ARRAY_BUFFER,this.constantArray,i.STATIC_DRAW),i.bindBuffer(i.ARRAY_BUFFER,n.buffer),a=0,this.ATTRIBUTES.forEach(function(s){return a+=r.bindAttribute(s,n,a,!0)}),i.bufferData(i.ARRAY_BUFFER,this.array,i.DYNAMIC_DRAW)):(i.bindBuffer(i.ARRAY_BUFFER,o),a=0,this.ATTRIBUTES.forEach(function(s){return a+=r.bindAttribute(s,n,a)}),i.bufferData(i.ARRAY_BUFFER,this.array,i.DYNAMIC_DRAW)),i.bindBuffer(i.ARRAY_BUFFER,null)}},{key:"unbindProgram",value:function(n){var r=this;this.isInstanced?(this.CONSTANT_ATTRIBUTES.forEach(function(a){return r.unbindAttribute(a,n,!1)}),this.ATTRIBUTES.forEach(function(a){return r.unbindAttribute(a,n,!0)})):this.ATTRIBUTES.forEach(function(a){return r.unbindAttribute(a,n)})}},{key:"bindAttribute",value:function(n,r,a,i){var o=mme[n.type];if(typeof o!="number")throw new Error('Program.bind: yet unsupported attribute type "'.concat(n.type,'"'));var s=r.attributeLocations[n.name],l=r.gl;if(s!==-1){l.enableVertexAttribArray(s);var c=this.isInstanced?(i?this.ATTRIBUTES_ITEMS_COUNT:VS(this.CONSTANT_ATTRIBUTES))*Float32Array.BYTES_PER_ELEMENT:this.ATTRIBUTES_ITEMS_COUNT*Float32Array.BYTES_PER_ELEMENT;if(l.vertexAttribPointer(s,n.size,n.type,n.normalized||!1,c,a),this.isInstanced&&i)if(l instanceof WebGL2RenderingContext)l.vertexAttribDivisor(s,1);else{var d=l.getExtension("ANGLE_instanced_arrays");d&&d.vertexAttribDivisorANGLE(s,1)}}return n.size*o}},{key:"unbindAttribute",value:function(n,r,a){var i=r.attributeLocations[n.name],o=r.gl;if(i!==-1&&(o.disableVertexAttribArray(i),this.isInstanced&&a))if(o instanceof WebGL2RenderingContext)o.vertexAttribDivisor(i,0);else{var s=o.getExtension("ANGLE_instanced_arrays");s&&s.vertexAttribDivisorANGLE(i,0)}}},{key:"reallocate",value:function(n){n!==this.capacity&&(this.capacity=n,this.verticesCount=this.VERTICES*n,this.array=new Float32Array(this.isInstanced?this.capacity*this.ATTRIBUTES_ITEMS_COUNT:this.verticesCount*this.ATTRIBUTES_ITEMS_COUNT))}},{key:"hasNothingToRender",value:function(){return this.verticesCount===0}},{key:"renderProgram",value:function(n,r){var a=r.gl,i=r.program;a.enable(a.BLEND),a.useProgram(i),this.setUniforms(n,r),this.drawWebGL(this.METHOD,r)}},{key:"render",value:function(n){this.hasNothingToRender()||(this.pickProgram&&(this.pickProgram.gl.viewport(0,0,n.width*n.pixelRatio/n.downSizingRatio,n.height*n.pixelRatio/n.downSizingRatio),this.bindProgram(this.pickProgram),this.renderProgram(Ke(Ke({},n),{},{pixelRatio:n.pixelRatio/n.downSizingRatio}),this.pickProgram),this.unbindProgram(this.pickProgram)),this.normalProgram.gl.viewport(0,0,n.width*n.pixelRatio,n.height*n.pixelRatio),this.bindProgram(this.normalProgram),this.renderProgram(n,this.normalProgram),this.unbindProgram(this.normalProgram))}},{key:"drawWebGL",value:function(n,r){var a=r.gl,i=r.frameBuffer;if(a.bindFramebuffer(a.FRAMEBUFFER,i),!this.isInstanced)a.drawArrays(n,0,this.verticesCount);else if(a instanceof WebGL2RenderingContext)a.drawArraysInstanced(n,0,this.VERTICES,this.capacity);else{var o=a.getExtension("ANGLE_instanced_arrays");o&&o.drawArraysInstancedANGLE(n,0,this.VERTICES,this.capacity)}}}])}(),mN=function(e){function t(){return tr(this,t),Xr(this,t,arguments)}return Zr(t,e),nr(t,[{key:"kill",value:function(){K7(t,"kill",this)([])}},{key:"process",value:function(r,a,i){var o=a*this.STRIDE;if(i.hidden){for(var s=o+this.STRIDE;o<s;o++)this.array[o]=0;return}return this.processVisibleItem(Y7(r),o,i)}}])}(Z7),Dp=function(e){function t(){var n;tr(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Xr(this,t,[].concat(a)),De(n,"drawLabel",void 0),n}return Zr(t,e),nr(t,[{key:"kill",value:function(){K7(t,"kill",this)([])}},{key:"process",value:function(r,a,i,o,s){var l=a*this.STRIDE;if(s.hidden||i.hidden||o.hidden){for(var c=l+this.STRIDE;l<c;l++)this.array[l]=0;return}return this.processVisibleItem(Y7(r),l,i,o,s)}}])}(Z7);function Q7(e,t){return function(){function n(r,a,i){tr(this,n),De(this,"drawLabel",t),this.programs=e.map(function(o){return new o(r,a,i)})}return nr(n,[{key:"reallocate",value:function(a){this.programs.forEach(function(i){return i.reallocate(a)})}},{key:"process",value:function(a,i,o,s,l){this.programs.forEach(function(c){return c.process(a,i,o,s,l)})}},{key:"render",value:function(a){this.programs.forEach(function(i){return i.render(a)})}},{key:"kill",value:function(){this.programs.forEach(function(a){return a.kill()})}}])}()}function bme(e,t,n,r,a){var i=a.edgeLabelSize,o=a.edgeLabelFont,s=a.edgeLabelWeight,l=a.edgeLabelColor.attribute?t[a.edgeLabelColor.attribute]||a.edgeLabelColor.color||"#000":a.edgeLabelColor.color,c=t.label;if(c){e.fillStyle=l,e.font="".concat(s," ").concat(i,"px ").concat(o);var d=n.size,p=r.size,h=n.x,g=n.y,b=r.x,y=r.y,x=(h+b)/2,w=(g+y)/2,S=b-h,_=y-g,N=Math.sqrt(S*S+_*_);if(!(N<d+p)){h+=S*d/N,g+=_*d/N,b-=S*p/N,y-=_*p/N,x=(h+b)/2,w=(g+y)/2,S=b-h,_=y-g,N=Math.sqrt(S*S+_*_);var R=e.measureText(c).width;if(R>N){var C="…";for(c=c+C,R=e.measureText(c).width;R>N&&c.length>1;)c=c.slice(0,-2)+C,R=e.measureText(c).width;if(c.length<4)return}var A;S>0?_>0?A=Math.acos(S/N):A=Math.asin(_/N):_>0?A=Math.acos(S/N)+Math.PI:A=Math.asin(S/N)+Math.PI/2,e.save(),e.translate(x,w),e.rotate(A),e.fillText(c,-R/2,t.size/2+i),e.restore()}}}function J7(e,t,n){if(t.label){var r=n.labelSize,a=n.labelFont,i=n.labelWeight,o=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=o,e.font="".concat(i," ").concat(r,"px ").concat(a),e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}function yme(e,t,n){var r=n.labelSize,a=n.labelFont,i=n.labelWeight;e.font="".concat(i," ").concat(r,"px ").concat(a),e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=8,e.shadowColor="#000";var o=2;if(typeof t.label=="string"){var s=e.measureText(t.label).width,l=Math.round(s+5),c=Math.round(r+2*o),d=Math.max(t.size,r/2)+o,p=Math.asin(c/2/d),h=Math.sqrt(Math.abs(Math.pow(d,2)-Math.pow(c/2,2)));e.beginPath(),e.moveTo(t.x+h,t.y+c/2),e.lineTo(t.x+d+l,t.y+c/2),e.lineTo(t.x+d+l,t.y-c/2),e.lineTo(t.x+h,t.y-c/2),e.arc(t.x,t.y,d,p,-p),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+o,0,Math.PI*2),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,J7(e,t,n)}var vme=`
precision highp float;
varying vec4 v_color;
varying vec2 v_diffVector;
varying float v_radius;
uniform float u_correctionRatio;
const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
void main(void) {
float border = u_correctionRatio * 2.0;
float dist = length(v_diffVector) - v_radius + border;
// No antialiasing for picking mode:
#ifdef PICKING_MODE
if (dist > border)
gl_FragColor = transparent;
else
gl_FragColor = v_color;
#else
float t = 0.0;
if (dist > border)
t = 1.0;
else if (dist > 0.0)
t = dist / border;
gl_FragColor = mix(v_color, transparent, t);
#endif
}
`,xme=vme,Sme=`
attribute vec4 a_id;
attribute vec4 a_color;
attribute vec2 a_position;
attribute float a_size;
attribute float a_angle;
uniform mat3 u_matrix;
uniform float u_sizeRatio;
uniform float u_correctionRatio;
varying vec4 v_color;
varying vec2 v_diffVector;
varying float v_radius;
varying float v_border;
const float bias = 255.0 / 254.0;
void main() {
float size = a_size * u_correctionRatio / u_sizeRatio * 4.0;
vec2 diffVector = size * vec2(cos(a_angle), sin(a_angle));
vec2 position = a_position + diffVector;
gl_Position = vec4(
(u_matrix * vec3(position, 1)).xy,
0,
1
);
v_diffVector = diffVector;
v_radius = size / 2.0;
#ifdef PICKING_MODE
// For picking mode, we use the ID as the color:
v_color = a_id;
#else
// For normal mode, we use the color:
v_color = a_color;
#endif
v_color.a *= bias;
}
`,wme=Sme,eW=WebGLRenderingContext,lP=eW.UNSIGNED_BYTE,YS=eW.FLOAT,Eme=["u_sizeRatio","u_correctionRatio","u_matrix"],Ip=function(e){function t(){return tr(this,t),Xr(this,t,arguments)}return Zr(t,e),nr(t,[{key:"getDefinition",value:function(){return{VERTICES:3,VERTEX_SHADER_SOURCE:wme,FRAGMENT_SHADER_SOURCE:xme,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:Eme,ATTRIBUTES:[{name:"a_position",size:2,type:YS},{name:"a_size",size:1,type:YS},{name:"a_color",size:4,type:lP,normalized:!0},{name:"a_id",size:4,type:lP,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_angle",size:1,type:YS}],CONSTANT_DATA:[[t.ANGLE_1],[t.ANGLE_2],[t.ANGLE_3]]}}},{key:"processVisibleItem",value:function(r,a,i){var o=this.array,s=Bi(i.color);o[a++]=i.x,o[a++]=i.y,o[a++]=i.size,o[a++]=s,o[a++]=r}},{key:"setUniforms",value:function(r,a){var i=a.gl,o=a.uniformLocations,s=o.u_sizeRatio,l=o.u_correctionRatio,c=o.u_matrix;i.uniform1f(l,r.correctionRatio),i.uniform1f(s,r.sizeRatio),i.uniformMatrix3fv(c,!1,r.matrix)}}])}(mN);De(Ip,"ANGLE_1",0);De(Ip,"ANGLE_2",2*Math.PI/3);De(Ip,"ANGLE_3",4*Math.PI/3);var kme=`
precision mediump float;
varying vec4 v_color;
void main(void) {
gl_FragColor = v_color;
}
`,_me=kme,Cme=`
attribute vec2 a_position;
attribute vec2 a_normal;
attribute float a_radius;
attribute vec3 a_barycentric;
#ifdef PICKING_MODE
attribute vec4 a_id;
#else
attribute vec4 a_color;
#endif
uniform mat3 u_matrix;
uniform float u_sizeRatio;
uniform float u_correctionRatio;
uniform float u_minEdgeThickness;
uniform float u_lengthToThicknessRatio;
uniform float u_widenessToThicknessRatio;
varying vec4 v_color;
const float bias = 255.0 / 254.0;
void main() {
float minThickness = u_minEdgeThickness;
float normalLength = length(a_normal);
vec2 unitNormal = a_normal / normalLength;
// These first computations are taken from edge.vert.glsl and
// edge.clamped.vert.glsl. Please read it to get better comments on what's
// happening:
float pixelsThickness = max(normalLength / u_sizeRatio, minThickness);
float webGLThickness = pixelsThickness * u_correctionRatio;
float webGLNodeRadius = a_radius * 2.0 * u_correctionRatio / u_sizeRatio;
float webGLArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;
float webGLArrowHeadThickness = webGLThickness * u_widenessToThicknessRatio;
float da = a_barycentric.x;
float db = a_barycentric.y;
float dc = a_barycentric.z;
vec2 delta = vec2(
da * (webGLNodeRadius * unitNormal.y)
+ db * ((webGLNodeRadius + webGLArrowHeadLength) * unitNormal.y + webGLArrowHeadThickness * unitNormal.x)
+ dc * ((webGLNodeRadius + webGLArrowHeadLength) * unitNormal.y - webGLArrowHeadThickness * unitNormal.x),
da * (-webGLNodeRadius * unitNormal.x)
+ db * (-(webGLNodeRadius + webGLArrowHeadLength) * unitNormal.x + webGLArrowHeadThickness * unitNormal.y)
+ dc * (-(webGLNodeRadius + webGLArrowHeadLength) * unitNormal.x - webGLArrowHeadThickness * unitNormal.y)
);
vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy;
gl_Position = vec4(position, 0, 1);
#ifdef PICKING_MODE
// For picking mode, we use the ID as the color:
v_color = a_id;
#else
// For normal mode, we use the color:
v_color = a_color;
#endif
v_color.a *= bias;
}
`,Tme=Cme,tW=WebGLRenderingContext,cP=tW.UNSIGNED_BYTE,_g=tW.FLOAT,Ame=["u_matrix","u_sizeRatio","u_correctionRatio","u_minEdgeThickness","u_lengthToThicknessRatio","u_widenessToThicknessRatio"],Mp={extremity:"target",lengthToThicknessRatio:2.5,widenessToThicknessRatio:2};function Wm(e){var t=Ke(Ke({},Mp),e||{});return function(n){function r(){return tr(this,r),Xr(this,r,arguments)}return Zr(r,n),nr(r,[{key:"getDefinition",value:function(){return{VERTICES:3,VERTEX_SHADER_SOURCE:Tme,FRAGMENT_SHADER_SOURCE:_me,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:Ame,ATTRIBUTES:[{name:"a_position",size:2,type:_g},{name:"a_normal",size:2,type:_g},{name:"a_radius",size:1,type:_g},{name:"a_color",size:4,type:cP,normalized:!0},{name:"a_id",size:4,type:cP,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_barycentric",size:3,type:_g}],CONSTANT_DATA:[[1,0,0],[0,1,0],[0,0,1]]}}},{key:"processVisibleItem",value:function(i,o,s,l,c){if(t.extremity==="source"){var d=[l,s];s=d[0],l=d[1]}var p=c.size||1,h=l.size||1,g=s.x,b=s.y,y=l.x,x=l.y,w=Bi(c.color),S=y-g,_=x-b,N=S*S+_*_,R=0,C=0;N&&(N=1/Math.sqrt(N),R=-_*N*p,C=S*N*p);var A=this.array;A[o++]=y,A[o++]=x,A[o++]=-R,A[o++]=-C,A[o++]=h,A[o++]=w,A[o++]=i}},{key:"setUniforms",value:function(i,o){var s=o.gl,l=o.uniformLocations,c=l.u_matrix,d=l.u_sizeRatio,p=l.u_correctionRatio,h=l.u_minEdgeThickness,g=l.u_lengthToThicknessRatio,b=l.u_widenessToThicknessRatio;s.uniformMatrix3fv(c,!1,i.matrix),s.uniform1f(d,i.sizeRatio),s.uniform1f(p,i.correctionRatio),s.uniform1f(h,i.minEdgeThickness),s.uniform1f(g,t.lengthToThicknessRatio),s.uniform1f(b,t.widenessToThicknessRatio)}}])}(Dp)}Wm();var Rme=`
precision mediump float;
varying vec4 v_color;
varying vec2 v_normal;
varying float v_thickness;
varying float v_feather;
const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
void main(void) {
// We only handle antialiasing for normal mode:
#ifdef PICKING_MODE
gl_FragColor = v_color;
#else
float dist = length(v_normal) * v_thickness;
float t = smoothstep(
v_thickness - v_feather,
v_thickness,
dist
);
gl_FragColor = mix(v_color, transparent, t);
#endif
}
`,bN=Rme,Nme=`
attribute vec4 a_id;
attribute vec4 a_color;
attribute vec2 a_normal;
attribute float a_normalCoef;
attribute vec2 a_positionStart;
attribute vec2 a_positionEnd;
attribute float a_positionCoef;
attribute float a_radius;
attribute float a_radiusCoef;
uniform mat3 u_matrix;
uniform float u_zoomRatio;
uniform float u_sizeRatio;
uniform float u_pixelRatio;
uniform float u_correctionRatio;
uniform float u_minEdgeThickness;
uniform float u_lengthToThicknessRatio;
uniform float u_feather;
varying vec4 v_color;
varying vec2 v_normal;
varying float v_thickness;
varying float v_feather;
const float bias = 255.0 / 254.0;
void main() {
float minThickness = u_minEdgeThickness;
float radius = a_radius * a_radiusCoef;
vec2 normal = a_normal * a_normalCoef;
vec2 position = a_positionStart * (1.0 - a_positionCoef) + a_positionEnd * a_positionCoef;
float normalLength = length(normal);
vec2 unitNormal = normal / normalLength;
// These first computations are taken from edge.vert.glsl. Please read it to
// get better comments on what's happening:
float pixelsThickness = max(normalLength, minThickness * u_sizeRatio);
float webGLThickness = pixelsThickness * u_correctionRatio / u_sizeRatio;
// Here, we move the point to leave space for the arrow head:
float direction = sign(radius);
float webGLNodeRadius = direction * radius * 2.0 * u_correctionRatio / u_sizeRatio;
float webGLArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;
vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (webGLNodeRadius + webGLArrowHeadLength);
// Here is the proper position of the vertex
gl_Position = vec4((u_matrix * vec3(position + unitNormal * webGLThickness + compensationVector, 1)).xy, 0, 1);
v_thickness = webGLThickness / u_zoomRatio;
v_normal = unitNormal;
v_feather = u_feather * u_correctionRatio / u_zoomRatio / u_pixelRatio * 2.0;
#ifdef PICKING_MODE
// For picking mode, we use the ID as the color:
v_color = a_id;
#else
// For normal mode, we use the color:
v_color = a_color;
#endif
v_color.a *= bias;
}
`,Lme=Nme,nW=WebGLRenderingContext,uP=nW.UNSIGNED_BYTE,tl=nW.FLOAT,Ome=["u_matrix","u_zoomRatio","u_sizeRatio","u_correctionRatio","u_pixelRatio","u_feather","u_minEdgeThickness","u_lengthToThicknessRatio"],Dme={lengthToThicknessRatio:Mp.lengthToThicknessRatio};function rW(e){var t=Ke(Ke({},Dme),{});return function(n){function r(){return tr(this,r),Xr(this,r,arguments)}return Zr(r,n),nr(r,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:Lme,FRAGMENT_SHADER_SOURCE:bN,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:Ome,ATTRIBUTES:[{name:"a_positionStart",size:2,type:tl},{name:"a_positionEnd",size:2,type:tl},{name:"a_normal",size:2,type:tl},{name:"a_color",size:4,type:uP,normalized:!0},{name:"a_id",size:4,type:uP,normalized:!0},{name:"a_radius",size:1,type:tl}],CONSTANT_ATTRIBUTES:[{name:"a_positionCoef",size:1,type:tl},{name:"a_normalCoef",size:1,type:tl},{name:"a_radiusCoef",size:1,type:tl}],CONSTANT_DATA:[[0,1,0],[0,-1,0],[1,1,1],[1,1,1],[0,-1,0],[1,-1,-1]]}}},{key:"processVisibleItem",value:function(i,o,s,l,c){var d=c.size||1,p=s.x,h=s.y,g=l.x,b=l.y,y=Bi(c.color),x=g-p,w=b-h,S=l.size||1,_=x*x+w*w,N=0,R=0;_&&(_=1/Math.sqrt(_),N=-w*_*d,R=x*_*d);var C=this.array;C[o++]=p,C[o++]=h,C[o++]=g,C[o++]=b,C[o++]=N,C[o++]=R,C[o++]=y,C[o++]=i,C[o++]=S}},{key:"setUniforms",value:function(i,o){var s=o.gl,l=o.uniformLocations,c=l.u_matrix,d=l.u_zoomRatio,p=l.u_feather,h=l.u_pixelRatio,g=l.u_correctionRatio,b=l.u_sizeRatio,y=l.u_minEdgeThickness,x=l.u_lengthToThicknessRatio;s.uniformMatrix3fv(c,!1,i.matrix),s.uniform1f(d,i.zoomRatio),s.uniform1f(b,i.sizeRatio),s.uniform1f(g,i.correctionRatio),s.uniform1f(h,i.pixelRatio),s.uniform1f(p,i.antiAliasingFeather),s.uniform1f(y,i.minEdgeThickness),s.uniform1f(x,t.lengthToThicknessRatio)}}])}(Dp)}rW();function Ime(e){return Q7([rW(),Wm(e)])}var Mme=Ime(),aW=Mme,Fme=`
attribute vec4 a_id;
attribute vec4 a_color;
attribute vec2 a_normal;
attribute float a_normalCoef;
attribute vec2 a_positionStart;
attribute vec2 a_positionEnd;
attribute float a_positionCoef;
uniform mat3 u_matrix;
uniform float u_sizeRatio;
uniform float u_zoomRatio;
uniform float u_pixelRatio;
uniform float u_correctionRatio;
uniform float u_minEdgeThickness;
uniform float u_feather;
varying vec4 v_color;
varying vec2 v_normal;
varying float v_thickness;
varying float v_feather;
const float bias = 255.0 / 254.0;
void main() {
float minThickness = u_minEdgeThickness;
vec2 normal = a_normal * a_normalCoef;
vec2 position = a_positionStart * (1.0 - a_positionCoef) + a_positionEnd * a_positionCoef;
float normalLength = length(normal);
vec2 unitNormal = normal / normalLength;
// We require edges to be at least "minThickness" pixels thick *on screen*
// (so we need to compensate the size ratio):
float pixelsThickness = max(normalLength, minThickness * u_sizeRatio);
// Then, we need to retrieve the normalized thickness of the edge in the WebGL
// referential (in a ([0, 1], [0, 1]) space), using our "magic" correction
// ratio:
float webGLThickness = pixelsThickness * u_correctionRatio / u_sizeRatio;
// Here is the proper position of the vertex
gl_Position = vec4((u_matrix * vec3(position + unitNormal * webGLThickness, 1)).xy, 0, 1);
// For the fragment shader though, we need a thickness that takes the "magic"
// correction ratio into account (as in webGLThickness), but so that the
// antialiasing effect does not depend on the zoom level. So here's yet
// another thickness version:
v_thickness = webGLThickness / u_zoomRatio;
v_normal = unitNormal;
v_feather = u_feather * u_correctionRatio / u_zoomRatio / u_pixelRatio * 2.0;
#ifdef PICKING_MODE
// For picking mode, we use the ID as the color:
v_color = a_id;
#else
// For normal mode, we use the color:
v_color = a_color;
#endif
v_color.a *= bias;
}
`,Pme=Fme,iW=WebGLRenderingContext,dP=iW.UNSIGNED_BYTE,tf=iW.FLOAT,Bme=["u_matrix","u_zoomRatio","u_sizeRatio","u_correctionRatio","u_pixelRatio","u_feather","u_minEdgeThickness"],zme=function(e){function t(){return tr(this,t),Xr(this,t,arguments)}return Zr(t,e),nr(t,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:Pme,FRAGMENT_SHADER_SOURCE:bN,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:Bme,ATTRIBUTES:[{name:"a_positionStart",size:2,type:tf},{name:"a_positionEnd",size:2,type:tf},{name:"a_normal",size:2,type:tf},{name:"a_color",size:4,type:dP,normalized:!0},{name:"a_id",size:4,type:dP,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_positionCoef",size:1,type:tf},{name:"a_normalCoef",size:1,type:tf}],CONSTANT_DATA:[[0,1],[0,-1],[1,1],[1,1],[0,-1],[1,-1]]}}},{key:"processVisibleItem",value:function(r,a,i,o,s){var l=s.size||1,c=i.x,d=i.y,p=o.x,h=o.y,g=Bi(s.color),b=p-c,y=h-d,x=b*b+y*y,w=0,S=0;x&&(x=1/Math.sqrt(x),w=-y*x*l,S=b*x*l);var _=this.array;_[a++]=c,_[a++]=d,_[a++]=p,_[a++]=h,_[a++]=w,_[a++]=S,_[a++]=g,_[a++]=r}},{key:"setUniforms",value:function(r,a){var i=a.gl,o=a.uniformLocations,s=o.u_matrix,l=o.u_zoomRatio,c=o.u_feather,d=o.u_pixelRatio,p=o.u_correctionRatio,h=o.u_sizeRatio,g=o.u_minEdgeThickness;i.uniformMatrix3fv(s,!1,r.matrix),i.uniform1f(l,r.zoomRatio),i.uniform1f(h,r.sizeRatio),i.uniform1f(p,r.correctionRatio),i.uniform1f(d,r.pixelRatio),i.uniform1f(c,r.antiAliasingFeather),i.uniform1f(g,r.minEdgeThickness)}}])}(Dp),yN=function(e){function t(){var n;return tr(this,t),n=Xr(this,t),n.rawEmitter=n,n}return Zr(t,e),nr(t)}(R7.EventEmitter),KS,fP;function zi(){return fP||(fP=1,KS=function(t){return t!==null&&typeof t=="object"&&typeof t.addUndirectedEdgeWithKey=="function"&&typeof t.dropNode=="function"&&typeof t.multi=="boolean"}),KS}var $me=zi();const jme=Kn($me);var Ume=function(t){return t},Hme=function(t){return t*t},Gme=function(t){return t*(2-t)},qme=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},Wme=function(t){return t*t*t},Vme=function(t){return--t*t*t+1},Yme=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},oW={linear:Ume,quadraticIn:Hme,quadraticOut:Gme,quadraticInOut:qme,cubicIn:Wme,cubicOut:Vme,cubicInOut:Yme},sW={easing:"quadraticInOut",duration:150};function lW(e,t,n,r){var a=Object.assign({},sW,n),i=typeof a.easing=="function"?a.easing:oW[a.easing],o=Date.now(),s={};for(var l in t){var c=t[l];s[l]={};for(var d in c)s[l][d]=e.getNodeAttribute(l,d)}var p=null,h=function(){p=null;var b=(Date.now()-o)/a.duration;if(b>=1){for(var y in t){var x=t[y];for(var w in x)e.setNodeAttribute(y,w,x[w])}return}b=i(b);for(var S in t){var _=t[S],N=s[S];for(var R in _)e.setNodeAttribute(S,R,_[R]*b+N[R]*(1-b))}p=requestAnimationFrame(h)};return h(),function(){p&&cancelAnimationFrame(p)}}function ni(){return Float32Array.of(1,0,0,0,1,0,0,0,1)}function Cg(e,t,n){return e[0]=t,e[4]=typeof n=="number"?n:t,e}function pP(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e}function hP(e,t,n){return e[6]=t,e[7]=n,e}function rs(e,t){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],c=e[7],d=e[8],p=t[0],h=t[1],g=t[2],b=t[3],y=t[4],x=t[5],w=t[6],S=t[7],_=t[8];return e[0]=p*n+h*i+g*l,e[1]=p*r+h*o+g*c,e[2]=p*a+h*s+g*d,e[3]=b*n+y*i+x*l,e[4]=b*r+y*o+x*c,e[5]=b*a+y*s+x*d,e[6]=w*n+S*i+_*l,e[7]=w*r+S*o+_*c,e[8]=w*a+S*s+_*d,e}function zA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=e[0],a=e[1],i=e[3],o=e[4],s=e[6],l=e[7],c=t.x,d=t.y;return{x:c*r+d*i+s*n,y:c*a+d*o+l*n}}function Kme(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}function nf(e,t,n,r,a){var i=e.angle,o=e.ratio,s=e.x,l=e.y,c=t.width,d=t.height,p=ni(),h=Math.min(c,d)-2*r,g=Kme(t,n);return a?(rs(p,hP(ni(),s,l)),rs(p,Cg(ni(),o)),rs(p,pP(ni(),i)),rs(p,Cg(ni(),c/h/2/g,d/h/2/g))):(rs(p,Cg(ni(),2*(h/c)*g,2*(h/d)*g)),rs(p,pP(ni(),-i)),rs(p,Cg(ni(),1/o)),rs(p,hP(ni(),-s,-l))),p}function Xme(e,t,n){var r=zA(e,{x:Math.cos(t.angle),y:Math.sin(t.angle)},0),a=r.x,i=r.y;return 1/Math.sqrt(Math.pow(a,2)+Math.pow(i,2))/n.width}function Zme(e){if(!e.order)return{x:[0,1],y:[0,1]};var t=1/0,n=-1/0,r=1/0,a=-1/0;return e.forEachNode(function(i,o){var s=o.x,l=o.y;s<t&&(t=s),s>n&&(n=s),l<r&&(r=l),l>a&&(a=l)}),{x:[t,n],y:[r,a]}}function Qme(e){if(!jme(e))throw new Error("Sigma: invalid graph instance.");e.forEachNode(function(t,n){if(!Number.isFinite(n.x)||!Number.isFinite(n.y))throw new Error("Sigma: Coordinates of node ".concat(t," are invalid. A node must have a numeric 'x' and 'y' attribute."))})}function Jme(e,t,n){var r=document.createElement(e);if(t)for(var a in t)r.style[a]=t[a];if(n)for(var i in n)r.setAttribute(i,n[i]);return r}function gP(){return typeof window.devicePixelRatio<"u"?window.devicePixelRatio:1}function mP(e,t,n){return n.sort(function(r,a){var i=t(r)||0,o=t(a)||0;return i<o?-1:i>o?1:0})}function bP(e){var t=hu(e.x,2),n=t[0],r=t[1],a=hu(e.y,2),i=a[0],o=a[1],s=Math.max(r-n,o-i),l=(r+n)/2,c=(o+i)/2;(s===0||Math.abs(s)===1/0||isNaN(s))&&(s=1),isNaN(l)&&(l=0),isNaN(c)&&(c=0);var d=function(h){return{x:.5+(h.x-l)/s,y:.5+(h.y-c)/s}};return d.applyTo=function(p){p.x=.5+(p.x-l)/s,p.y=.5+(p.y-c)/s},d.inverse=function(p){return{x:l+s*(p.x-.5),y:c+s*(p.y-.5)}},d.ratio=s,d}function $A(e){"@babel/helpers - typeof";return $A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$A(e)}function yP(e,t){var n=t.size;if(n!==0){var r=e.length;e.length+=n;var a=0;t.forEach(function(i){e[r+a]=i,a++})}}function XS(e){e=e||{};for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;t++){var r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];r&&Object.assign(e,r)}return e}var vN={hideEdgesOnMove:!1,hideLabelsOnMove:!1,renderLabels:!0,renderEdgeLabels:!1,enableEdgeEvents:!1,defaultNodeColor:"#999",defaultNodeType:"circle",defaultEdgeColor:"#ccc",defaultEdgeType:"line",labelFont:"Arial",labelSize:14,labelWeight:"normal",labelColor:{color:"#000"},edgeLabelFont:"Arial",edgeLabelSize:14,edgeLabelWeight:"normal",edgeLabelColor:{attribute:"color"},stagePadding:30,defaultDrawEdgeLabel:bme,defaultDrawNodeLabel:J7,defaultDrawNodeHover:yme,minEdgeThickness:1.7,antiAliasingFeather:1,dragTimeout:100,draggedEventsTolerance:3,inertiaDuration:200,inertiaRatio:3,zoomDuration:250,zoomingRatio:1.7,doubleClickTimeout:300,doubleClickZoomingRatio:2.2,doubleClickZoomingDuration:200,tapMoveTolerance:10,zoomToSizeRatioFunction:Math.sqrt,itemSizesReference:"screen",autoRescale:!0,autoCenter:!0,labelDensity:1,labelGridCellSize:100,labelRenderedSizeThreshold:6,nodeReducer:null,edgeReducer:null,zIndex:!1,minCameraRatio:null,maxCameraRatio:null,enableCameraZooming:!0,enableCameraPanning:!0,enableCameraRotation:!0,cameraPanBoundaries:null,allowInvalidContainer:!1,nodeProgramClasses:{},nodeHoverProgramClasses:{},edgeProgramClasses:{}},ebe={circle:Ip},tbe={arrow:aW,line:zme};function ZS(e){if(typeof e.labelDensity!="number"||e.labelDensity<0)throw new Error("Settings: invalid `labelDensity`. Expecting a positive number.");var t=e.minCameraRatio,n=e.maxCameraRatio;if(typeof t=="number"&&typeof n=="number"&&n<t)throw new Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.")}function nbe(e){var t=XS({},vN,e);return t.nodeProgramClasses=XS({},ebe,t.nodeProgramClasses),t.edgeProgramClasses=XS({},tbe,t.edgeProgramClasses),t}var Tg=1.5,vP=function(e){function t(){var n;return tr(this,t),n=Xr(this,t),De(n,"x",.5),De(n,"y",.5),De(n,"angle",0),De(n,"ratio",1),De(n,"minRatio",null),De(n,"maxRatio",null),De(n,"enabledZooming",!0),De(n,"enabledPanning",!0),De(n,"enabledRotation",!0),De(n,"clean",null),De(n,"nextFrame",null),De(n,"previousState",null),De(n,"enabled",!0),n.previousState=n.getState(),n}return Zr(t,e),nr(t,[{key:"enable",value:function(){return this.enabled=!0,this}},{key:"disable",value:function(){return this.enabled=!1,this}},{key:"getState",value:function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}}},{key:"hasState",value:function(r){return this.x===r.x&&this.y===r.y&&this.ratio===r.ratio&&this.angle===r.angle}},{key:"getPreviousState",value:function(){var r=this.previousState;return r?{x:r.x,y:r.y,angle:r.angle,ratio:r.ratio}:null}},{key:"getBoundedRatio",value:function(r){var a=r;return typeof this.minRatio=="number"&&(a=Math.max(a,this.minRatio)),typeof this.maxRatio=="number"&&(a=Math.min(a,this.maxRatio)),a}},{key:"validateState",value:function(r){var a={};return this.enabledPanning&&typeof r.x=="number"&&(a.x=r.x),this.enabledPanning&&typeof r.y=="number"&&(a.y=r.y),this.enabledZooming&&typeof r.ratio=="number"&&(a.ratio=this.getBoundedRatio(r.ratio)),this.enabledRotation&&typeof r.angle=="number"&&(a.angle=r.angle),this.clean?this.clean(Ke(Ke({},this.getState()),a)):a}},{key:"isAnimated",value:function(){return!!this.nextFrame}},{key:"setState",value:function(r){if(!this.enabled)return this;this.previousState=this.getState();var a=this.validateState(r);return typeof a.x=="number"&&(this.x=a.x),typeof a.y=="number"&&(this.y=a.y),typeof a.ratio=="number"&&(this.ratio=a.ratio),typeof a.angle=="number"&&(this.angle=a.angle),this.hasState(this.previousState)||this.emit("updated",this.getState()),this}},{key:"updateState",value:function(r){return this.setState(r(this.getState())),this}},{key:"animate",value:function(r){var a=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;if(!o)return new Promise(function(g){return a.animate(r,i,g)});if(this.enabled){var s=Ke(Ke({},sW),i),l=this.validateState(r),c=typeof s.easing=="function"?s.easing:oW[s.easing],d=Date.now(),p=this.getState(),h=function(){var b=(Date.now()-d)/s.duration;if(b>=1){a.nextFrame=null,a.setState(l),a.animationCallback&&(a.animationCallback.call(null),a.animationCallback=void 0);return}var y=c(b),x={};typeof l.x=="number"&&(x.x=p.x+(l.x-p.x)*y),typeof l.y=="number"&&(x.y=p.y+(l.y-p.y)*y),a.enabledRotation&&typeof l.angle=="number"&&(x.angle=p.angle+(l.angle-p.angle)*y),typeof l.ratio=="number"&&(x.ratio=p.ratio+(l.ratio-p.ratio)*y),a.setState(x),a.nextFrame=requestAnimationFrame(h)};this.nextFrame?(cancelAnimationFrame(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=requestAnimationFrame(h)):h(),this.animationCallback=o}}},{key:"animatedZoom",value:function(r){return r?typeof r=="number"?this.animate({ratio:this.ratio/r}):this.animate({ratio:this.ratio/(r.factor||Tg)},r):this.animate({ratio:this.ratio/Tg})}},{key:"animatedUnzoom",value:function(r){return r?typeof r=="number"?this.animate({ratio:this.ratio*r}):this.animate({ratio:this.ratio*(r.factor||Tg)},r):this.animate({ratio:this.ratio*Tg})}},{key:"animatedReset",value:function(r){return this.animate({x:.5,y:.5,ratio:1,angle:0},r)}},{key:"copy",value:function(){return t.from(this.getState())}}],[{key:"from",value:function(r){var a=new t;return a.setState(r)}}])}(yN);function ai(e,t){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}function ho(e,t){var n=Ke(Ke({},ai(e,t)),{},{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){n.sigmaDefaultPrevented=!0},original:e});return n}function rf(e){var t="x"in e?e:Ke(Ke({},e.touches[0]||e.previousTouches[0]),{},{original:e.original,sigmaDefaultPrevented:e.sigmaDefaultPrevented,preventSigmaDefault:function(){e.sigmaDefaultPrevented=!0,t.sigmaDefaultPrevented=!0}});return t}function rbe(e,t){return Ke(Ke({},ho(e,t)),{},{delta:cW(e)})}var abe=2;function lm(e){for(var t=[],n=0,r=Math.min(e.length,abe);n<r;n++)t.push(e[n]);return t}function af(e,t,n){var r={touches:lm(e.touches).map(function(a){return ai(a,n)}),previousTouches:t.map(function(a){return ai(a,n)}),sigmaDefaultPrevented:!1,preventSigmaDefault:function(){r.sigmaDefaultPrevented=!0},original:e};return r}function cW(e){if(typeof e.deltaY<"u")return e.deltaY*-3/360;if(typeof e.detail<"u")return e.detail/-9;throw new Error("Captor: could not extract delta from event.")}var uW=function(e){function t(n,r){var a;return tr(this,t),a=Xr(this,t),a.container=n,a.renderer=r,a}return Zr(t,e),nr(t)}(yN),ibe=["doubleClickTimeout","doubleClickZoomingDuration","doubleClickZoomingRatio","dragTimeout","draggedEventsTolerance","inertiaDuration","inertiaRatio","zoomDuration","zoomingRatio"],obe=ibe.reduce(function(e,t){return Ke(Ke({},e),{},De({},t,vN[t]))},{}),sbe=function(e){function t(n,r){var a;return tr(this,t),a=Xr(this,t,[n,r]),De(a,"enabled",!0),De(a,"draggedEvents",0),De(a,"downStartTime",null),De(a,"lastMouseX",null),De(a,"lastMouseY",null),De(a,"isMouseDown",!1),De(a,"isMoving",!1),De(a,"movingTimeout",null),De(a,"startCameraState",null),De(a,"clicks",0),De(a,"doubleClickTimeout",null),De(a,"currentWheelDirection",0),De(a,"settings",obe),a.handleClick=a.handleClick.bind(a),a.handleRightClick=a.handleRightClick.bind(a),a.handleDown=a.handleDown.bind(a),a.handleUp=a.handleUp.bind(a),a.handleMove=a.handleMove.bind(a),a.handleWheel=a.handleWheel.bind(a),a.handleLeave=a.handleLeave.bind(a),a.handleEnter=a.handleEnter.bind(a),n.addEventListener("click",a.handleClick,{capture:!1}),n.addEventListener("contextmenu",a.handleRightClick,{capture:!1}),n.addEventListener("mousedown",a.handleDown,{capture:!1}),n.addEventListener("wheel",a.handleWheel,{capture:!1}),n.addEventListener("mouseleave",a.handleLeave,{capture:!1}),n.addEventListener("mouseenter",a.handleEnter,{capture:!1}),document.addEventListener("mousemove",a.handleMove,{capture:!1}),document.addEventListener("mouseup",a.handleUp,{capture:!1}),a}return Zr(t,e),nr(t,[{key:"kill",value:function(){var r=this.container;r.removeEventListener("click",this.handleClick),r.removeEventListener("contextmenu",this.handleRightClick),r.removeEventListener("mousedown",this.handleDown),r.removeEventListener("wheel",this.handleWheel),r.removeEventListener("mouseleave",this.handleLeave),r.removeEventListener("mouseenter",this.handleEnter),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleUp)}},{key:"handleClick",value:function(r){var a=this;if(this.enabled){if(this.clicks++,this.clicks===2)return this.clicks=0,typeof this.doubleClickTimeout=="number"&&(clearTimeout(this.doubleClickTimeout),this.doubleClickTimeout=null),this.handleDoubleClick(r);setTimeout(function(){a.clicks=0,a.doubleClickTimeout=null},this.settings.doubleClickTimeout),this.draggedEvents<this.settings.draggedEventsTolerance&&this.emit("click",ho(r,this.container))}}},{key:"handleRightClick",value:function(r){this.enabled&&this.emit("rightClick",ho(r,this.container))}},{key:"handleDoubleClick",value:function(r){if(this.enabled){r.preventDefault(),r.stopPropagation();var a=ho(r,this.container);if(this.emit("doubleClick",a),!a.sigmaDefaultPrevented){var i=this.renderer.getCamera(),o=i.getBoundedRatio(i.getState().ratio/this.settings.doubleClickZoomingRatio);i.animate(this.renderer.getViewportZoomedState(ai(r,this.container),o),{easing:"quadraticInOut",duration:this.settings.doubleClickZoomingDuration})}}}},{key:"handleDown",value:function(r){if(this.enabled){if(r.button===0){this.startCameraState=this.renderer.getCamera().getState();var a=ai(r,this.container),i=a.x,o=a.y;this.lastMouseX=i,this.lastMouseY=o,this.draggedEvents=0,this.downStartTime=Date.now(),this.isMouseDown=!0}this.emit("mousedown",ho(r,this.container))}}},{key:"handleUp",value:function(r){var a=this;if(!(!this.enabled||!this.isMouseDown)){var i=this.renderer.getCamera();this.isMouseDown=!1,typeof this.movingTimeout=="number"&&(clearTimeout(this.movingTimeout),this.movingTimeout=null);var o=ai(r,this.container),s=o.x,l=o.y,c=i.getState(),d=i.getPreviousState()||{x:0,y:0};this.isMoving?i.animate({x:c.x+this.settings.inertiaRatio*(c.x-d.x),y:c.y+this.settings.inertiaRatio*(c.y-d.y)},{duration:this.settings.inertiaDuration,easing:"quadraticOut"}):(this.lastMouseX!==s||this.lastMouseY!==l)&&i.setState({x:c.x,y:c.y}),this.isMoving=!1,setTimeout(function(){var p=a.draggedEvents>0;a.draggedEvents=0,p&&a.renderer.getSetting("hideEdgesOnMove")&&a.renderer.refresh()},0),this.emit("mouseup",ho(r,this.container))}}},{key:"handleMove",value:function(r){var a=this;if(this.enabled){var i=ho(r,this.container);if(this.emit("mousemovebody",i),(r.target===this.container||r.composedPath()[0]===this.container)&&this.emit("mousemove",i),!i.sigmaDefaultPrevented&&this.isMouseDown){this.isMoving=!0,this.draggedEvents++,typeof this.movingTimeout=="number"&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout(function(){a.movingTimeout=null,a.isMoving=!1},this.settings.dragTimeout);var o=this.renderer.getCamera(),s=ai(r,this.container),l=s.x,c=s.y,d=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),p=this.renderer.viewportToFramedGraph({x:l,y:c}),h=d.x-p.x,g=d.y-p.y,b=o.getState(),y=b.x+h,x=b.y+g;o.setState({x:y,y:x}),this.lastMouseX=l,this.lastMouseY=c,r.preventDefault(),r.stopPropagation()}}}},{key:"handleLeave",value:function(r){this.emit("mouseleave",ho(r,this.container))}},{key:"handleEnter",value:function(r){this.emit("mouseenter",ho(r,this.container))}},{key:"handleWheel",value:function(r){var a=this,i=this.renderer.getCamera();if(!(!this.enabled||!i.enabledZooming)){var o=cW(r);if(o){var s=rbe(r,this.container);if(this.emit("wheel",s),s.sigmaDefaultPrevented){r.preventDefault(),r.stopPropagation();return}var l=i.getState().ratio,c=o>0?1/this.settings.zoomingRatio:this.settings.zoomingRatio,d=i.getBoundedRatio(l*c),p=o>0?1:-1,h=Date.now();l!==d&&(r.preventDefault(),r.stopPropagation(),!(this.currentWheelDirection===p&&this.lastWheelTriggerTime&&h-this.lastWheelTriggerTime<this.settings.zoomDuration/5)&&(i.animate(this.renderer.getViewportZoomedState(ai(r,this.container),d),{easing:"quadraticOut",duration:this.settings.zoomDuration},function(){a.currentWheelDirection=0}),this.currentWheelDirection=p,this.lastWheelTriggerTime=h))}}}},{key:"setSettings",value:function(r){this.settings=r}}])}(uW),lbe=["dragTimeout","inertiaDuration","inertiaRatio","doubleClickTimeout","doubleClickZoomingRatio","doubleClickZoomingDuration","tapMoveTolerance"],cbe=lbe.reduce(function(e,t){return Ke(Ke({},e),{},De({},t,vN[t]))},{}),ube=function(e){function t(n,r){var a;return tr(this,t),a=Xr(this,t,[n,r]),De(a,"enabled",!0),De(a,"isMoving",!1),De(a,"hasMoved",!1),De(a,"touchMode",0),De(a,"startTouchesPositions",[]),De(a,"lastTouches",[]),De(a,"lastTap",null),De(a,"settings",cbe),a.handleStart=a.handleStart.bind(a),a.handleLeave=a.handleLeave.bind(a),a.handleMove=a.handleMove.bind(a),n.addEventListener("touchstart",a.handleStart,{capture:!1}),n.addEventListener("touchcancel",a.handleLeave,{capture:!1}),document.addEventListener("touchend",a.handleLeave,{capture:!1,passive:!1}),document.addEventListener("touchmove",a.handleMove,{capture:!1,passive:!1}),a}return Zr(t,e),nr(t,[{key:"kill",value:function(){var r=this.container;r.removeEventListener("touchstart",this.handleStart),r.removeEventListener("touchcancel",this.handleLeave),document.removeEventListener("touchend",this.handleLeave),document.removeEventListener("touchmove",this.handleMove)}},{key:"getDimensions",value:function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}}},{key:"handleStart",value:function(r){var a=this;if(this.enabled){r.preventDefault();var i=lm(r.touches);if(this.touchMode=i.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=i.map(function(g){return ai(g,a.container)}),this.touchMode===2){var o=hu(this.startTouchesPositions,2),s=o[0],l=s.x,c=s.y,d=o[1],p=d.x,h=d.y;this.startTouchesAngle=Math.atan2(h-c,p-l),this.startTouchesDistance=Math.sqrt(Math.pow(p-l,2)+Math.pow(h-c,2))}this.emit("touchdown",af(r,this.lastTouches,this.container)),this.lastTouches=i,this.lastTouchesPositions=this.startTouchesPositions}}},{key:"handleLeave",value:function(r){if(!(!this.enabled||!this.startTouchesPositions.length)){switch(r.cancelable&&r.preventDefault(),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(r.touches.length===1){this.handleStart(r),r.preventDefault();break}case 1:if(this.isMoving){var a=this.renderer.getCamera(),i=a.getState(),o=a.getPreviousState()||{x:0,y:0};a.animate({x:i.x+this.settings.inertiaRatio*(i.x-o.x),y:i.y+this.settings.inertiaRatio*(i.y-o.y)},{duration:this.settings.inertiaDuration,easing:"quadraticOut"})}this.hasMoved=!1,this.isMoving=!1,this.touchMode=0;break}if(this.emit("touchup",af(r,this.lastTouches,this.container)),!r.touches.length){var s=ai(this.lastTouches[0],this.container),l=this.startTouchesPositions[0],c=Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2);if(!r.touches.length&&c<Math.pow(this.settings.tapMoveTolerance,2))if(this.lastTap&&Date.now()-this.lastTap.time<this.settings.doubleClickTimeout){var d=af(r,this.lastTouches,this.container);if(this.emit("doubletap",d),this.lastTap=null,!d.sigmaDefaultPrevented){var p=this.renderer.getCamera(),h=p.getBoundedRatio(p.getState().ratio/this.settings.doubleClickZoomingRatio);p.animate(this.renderer.getViewportZoomedState(s,h),{easing:"quadraticInOut",duration:this.settings.doubleClickZoomingDuration})}}else{var g=af(r,this.lastTouches,this.container);this.emit("tap",g),this.lastTap={time:Date.now(),position:g.touches[0]||g.previousTouches[0]}}}this.lastTouches=lm(r.touches),this.startTouchesPositions=[]}}},{key:"handleMove",value:function(r){var a=this;if(!(!this.enabled||!this.startTouchesPositions.length)){r.preventDefault();var i=lm(r.touches),o=i.map(function(Y){return ai(Y,a.container)}),s=this.lastTouches;this.lastTouches=i,this.lastTouchesPositions=o;var l=af(r,s,this.container);if(this.emit("touchmove",l),!l.sigmaDefaultPrevented&&(this.hasMoved||(this.hasMoved=o.some(function(Y,H){var $=a.startTouchesPositions[H];return $&&(Y.x!==$.x||Y.y!==$.y)})),!!this.hasMoved)){this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout(function(){a.isMoving=!1},this.settings.dragTimeout);var c=this.renderer.getCamera(),d=this.startCameraState,p=this.renderer.getSetting("stagePadding");switch(this.touchMode){case 1:{var h=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),g=h.x,b=h.y,y=this.renderer.viewportToFramedGraph(o[0]),x=y.x,w=y.y;c.setState({x:d.x+g-x,y:d.y+b-w});break}case 2:{var S={x:.5,y:.5,angle:0,ratio:1},_=o[0],N=_.x,R=_.y,C=o[1],A=C.x,I=C.y,D=Math.atan2(I-R,A-N)-this.startTouchesAngle,O=Math.hypot(I-R,A-N)/this.startTouchesDistance,P=c.getBoundedRatio(d.ratio/O);S.ratio=P,S.angle=d.angle+D;var G=this.getDimensions(),j=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:d}),W=Math.min(G.width,G.height)-2*p,V=W/G.width,B=W/G.height,U=P/W,M=N-W/2/V,K=R-W/2/B,F=[M*Math.cos(-S.angle)-K*Math.sin(-S.angle),K*Math.cos(-S.angle)+M*Math.sin(-S.angle)];M=F[0],K=F[1],S.x=j.x-M*U,S.y=j.y+K*U,c.setState(S);break}}}}}},{key:"setSettings",value:function(r){this.settings=r}}])}(uW);function dbe(e){if(Array.isArray(e))return PA(e)}function fbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xP(e){return dbe(e)||fbe(e)||G7(e)||pbe()}function hbe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function QS(e,t){if(e==null)return{};var n,r,a=hbe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var SP=function(){function e(t,n){tr(this,e),this.key=t,this.size=n}return nr(e,null,[{key:"compare",value:function(n,r){return n.size>r.size?-1:n.size<r.size||n.key>r.key?1:-1}}])}(),wP=function(){function e(){tr(this,e),De(this,"width",0),De(this,"height",0),De(this,"cellSize",0),De(this,"columns",0),De(this,"rows",0),De(this,"cells",{})}return nr(e,[{key:"resizeAndClear",value:function(n,r){this.width=n.width,this.height=n.height,this.cellSize=r,this.columns=Math.ceil(n.width/r),this.rows=Math.ceil(n.height/r),this.cells={}}},{key:"getIndex",value:function(n){var r=Math.floor(n.x/this.cellSize),a=Math.floor(n.y/this.cellSize);return a*this.columns+r}},{key:"add",value:function(n,r,a){var i=new SP(n,r),o=this.getIndex(a),s=this.cells[o];s||(s=[],this.cells[o]=s),s.push(i)}},{key:"organize",value:function(){for(var n in this.cells){var r=this.cells[n];r.sort(SP.compare)}}},{key:"getLabelsToDisplay",value:function(n,r){var a=this.cellSize*this.cellSize,i=a/n/n,o=i*r/a,s=Math.ceil(o),l=[];for(var c in this.cells)for(var d=this.cells[c],p=0;p<Math.min(s,d.length);p++)l.push(d[p].key);return l}}])}();function gbe(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,a=e.displayedNodeLabels,i=[];return t.forEachEdge(function(o,s,l,c){(l===n||c===n||r.has(l)||r.has(c)||a.has(l)&&a.has(c))&&i.push(o)}),i}var mbe=150,bbe=50,bo=Object.prototype.hasOwnProperty;function ybe(e,t,n){if(!bo.call(n,"x")||!bo.call(n,"y"))throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(t,'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));return n.color||(n.color=e.defaultNodeColor),!n.label&&n.label!==""&&(n.label=null),n.label!==void 0&&n.label!==null?n.label=""+n.label:n.label=null,n.size||(n.size=2),bo.call(n,"hidden")||(n.hidden=!1),bo.call(n,"highlighted")||(n.highlighted=!1),bo.call(n,"forceLabel")||(n.forceLabel=!1),(!n.type||n.type==="")&&(n.type=e.defaultNodeType),n.zIndex||(n.zIndex=0),n}function vbe(e,t,n){return n.color||(n.color=e.defaultEdgeColor),n.label||(n.label=""),n.size||(n.size=.5),bo.call(n,"hidden")||(n.hidden=!1),bo.call(n,"forceLabel")||(n.forceLabel=!1),(!n.type||n.type==="")&&(n.type=e.defaultEdgeType),n.zIndex||(n.zIndex=0),n}var xbe=function(e){function t(n,r){var a,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(tr(this,t),a=Xr(this,t),De(a,"elements",{}),De(a,"canvasContexts",{}),De(a,"webGLContexts",{}),De(a,"pickingLayers",new Set),De(a,"textures",{}),De(a,"frameBuffers",{}),De(a,"activeListeners",{}),De(a,"labelGrid",new wP),De(a,"nodeDataCache",{}),De(a,"edgeDataCache",{}),De(a,"nodeProgramIndex",{}),De(a,"edgeProgramIndex",{}),De(a,"nodesWithForcedLabels",new Set),De(a,"edgesWithForcedLabels",new Set),De(a,"nodeExtent",{x:[0,1],y:[0,1]}),De(a,"nodeZExtent",[1/0,-1/0]),De(a,"edgeZExtent",[1/0,-1/0]),De(a,"matrix",ni()),De(a,"invMatrix",ni()),De(a,"correctionRatio",1),De(a,"customBBox",null),De(a,"normalizationFunction",bP({x:[0,1],y:[0,1]})),De(a,"graphToViewportRatio",1),De(a,"itemIDsIndex",{}),De(a,"nodeIndices",{}),De(a,"edgeIndices",{}),De(a,"width",0),De(a,"height",0),De(a,"pixelRatio",gP()),De(a,"pickingDownSizingRatio",2*a.pixelRatio),De(a,"displayedNodeLabels",new Set),De(a,"displayedEdgeLabels",new Set),De(a,"highlightedNodes",new Set),De(a,"hoveredNode",null),De(a,"hoveredEdge",null),De(a,"renderFrame",null),De(a,"renderHighlightedNodesFrame",null),De(a,"needToProcess",!1),De(a,"checkEdgesEventsFrame",null),De(a,"nodePrograms",{}),De(a,"nodeHoverPrograms",{}),De(a,"edgePrograms",{}),a.settings=nbe(i),ZS(a.settings),Qme(n),!(r instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");a.graph=n,a.container=r,a.createWebGLContext("edges",{picking:i.enableEdgeEvents}),a.createCanvasContext("edgeLabels"),a.createWebGLContext("nodes",{picking:!0}),a.createCanvasContext("labels"),a.createCanvasContext("hovers"),a.createWebGLContext("hoverNodes"),a.createCanvasContext("mouse",{style:{touchAction:"none",userSelect:"none"}}),a.resize();for(var o in a.settings.nodeProgramClasses)a.registerNodeProgram(o,a.settings.nodeProgramClasses[o],a.settings.nodeHoverProgramClasses[o]);for(var s in a.settings.edgeProgramClasses)a.registerEdgeProgram(s,a.settings.edgeProgramClasses[s]);return a.camera=new vP,a.bindCameraHandlers(),a.mouseCaptor=new sbe(a.elements.mouse,a),a.mouseCaptor.setSettings(a.settings),a.touchCaptor=new ube(a.elements.mouse,a),a.touchCaptor.setSettings(a.settings),a.bindEventHandlers(),a.bindGraphHandlers(),a.handleSettingsUpdate(),a.refresh(),a}return Zr(t,e),nr(t,[{key:"registerNodeProgram",value:function(r,a,i){return this.nodePrograms[r]&&this.nodePrograms[r].kill(),this.nodeHoverPrograms[r]&&this.nodeHoverPrograms[r].kill(),this.nodePrograms[r]=new a(this.webGLContexts.nodes,this.frameBuffers.nodes,this),this.nodeHoverPrograms[r]=new(i||a)(this.webGLContexts.hoverNodes,null,this),this}},{key:"registerEdgeProgram",value:function(r,a){return this.edgePrograms[r]&&this.edgePrograms[r].kill(),this.edgePrograms[r]=new a(this.webGLContexts.edges,this.frameBuffers.edges,this),this}},{key:"unregisterNodeProgram",value:function(r){if(this.nodePrograms[r]){var a=this.nodePrograms,i=a[r],o=QS(a,[r].map(Df));i.kill(),this.nodePrograms=o}if(this.nodeHoverPrograms[r]){var s=this.nodeHoverPrograms,l=s[r],c=QS(s,[r].map(Df));l.kill(),this.nodePrograms=c}return this}},{key:"unregisterEdgeProgram",value:function(r){if(this.edgePrograms[r]){var a=this.edgePrograms,i=a[r],o=QS(a,[r].map(Df));i.kill(),this.edgePrograms=o}return this}},{key:"resetWebGLTexture",value:function(r){var a=this.webGLContexts[r],i=this.frameBuffers[r],o=this.textures[r];o&&a.deleteTexture(o);var s=a.createTexture();return a.bindFramebuffer(a.FRAMEBUFFER,i),a.bindTexture(a.TEXTURE_2D,s),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,this.width,this.height,0,a.RGBA,a.UNSIGNED_BYTE,null),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,s,0),this.textures[r]=s,this}},{key:"bindCameraHandlers",value:function(){var r=this;return this.activeListeners.camera=function(){r.scheduleRender()},this.camera.on("updated",this.activeListeners.camera),this}},{key:"unbindCameraHandlers",value:function(){return this.camera.removeListener("updated",this.activeListeners.camera),this}},{key:"getNodeAtPosition",value:function(r){var a=r.x,i=r.y,o=rP(this.webGLContexts.nodes,this.frameBuffers.nodes,a,i,this.pixelRatio,this.pickingDownSizingRatio),s=nP.apply(void 0,xP(o)),l=this.itemIDsIndex[s];return l&&l.type==="node"?l.id:null}},{key:"bindEventHandlers",value:function(){var r=this;this.activeListeners.handleResize=function(){r.scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize),this.activeListeners.handleMove=function(i){var o=rf(i),s={event:o,preventSigmaDefault:function(){o.preventSigmaDefault()}},l=r.getNodeAtPosition(o);if(l&&r.hoveredNode!==l&&!r.nodeDataCache[l].hidden){r.hoveredNode&&r.emit("leaveNode",Ke(Ke({},s),{},{node:r.hoveredNode})),r.hoveredNode=l,r.emit("enterNode",Ke(Ke({},s),{},{node:l})),r.scheduleHighlightedNodesRender();return}if(r.hoveredNode&&r.getNodeAtPosition(o)!==r.hoveredNode){var c=r.hoveredNode;r.hoveredNode=null,r.emit("leaveNode",Ke(Ke({},s),{},{node:c})),r.scheduleHighlightedNodesRender();return}if(r.settings.enableEdgeEvents){var d=r.hoveredNode?null:r.getEdgeAtPoint(s.event.x,s.event.y);d!==r.hoveredEdge&&(r.hoveredEdge&&r.emit("leaveEdge",Ke(Ke({},s),{},{edge:r.hoveredEdge})),d&&r.emit("enterEdge",Ke(Ke({},s),{},{edge:d})),r.hoveredEdge=d)}},this.activeListeners.handleMoveBody=function(i){var o=rf(i);r.emit("moveBody",{event:o,preventSigmaDefault:function(){o.preventSigmaDefault()}})},this.activeListeners.handleLeave=function(i){var o=rf(i),s={event:o,preventSigmaDefault:function(){o.preventSigmaDefault()}};r.hoveredNode&&(r.emit("leaveNode",Ke(Ke({},s),{},{node:r.hoveredNode})),r.scheduleHighlightedNodesRender()),r.settings.enableEdgeEvents&&r.hoveredEdge&&(r.emit("leaveEdge",Ke(Ke({},s),{},{edge:r.hoveredEdge})),r.scheduleHighlightedNodesRender()),r.emit("leaveStage",Ke({},s))},this.activeListeners.handleEnter=function(i){var o=rf(i),s={event:o,preventSigmaDefault:function(){o.preventSigmaDefault()}};r.emit("enterStage",Ke({},s))};var a=function(o){return function(s){var l=rf(s),c={event:l,preventSigmaDefault:function(){l.preventSigmaDefault()}},d=r.getNodeAtPosition(l);if(d)return r.emit("".concat(o,"Node"),Ke(Ke({},c),{},{node:d}));if(r.settings.enableEdgeEvents){var p=r.getEdgeAtPoint(l.x,l.y);if(p)return r.emit("".concat(o,"Edge"),Ke(Ke({},c),{},{edge:p}))}return r.emit("".concat(o,"Stage"),c)}};return this.activeListeners.handleClick=a("click"),this.activeListeners.handleRightClick=a("rightClick"),this.activeListeners.handleDoubleClick=a("doubleClick"),this.activeListeners.handleWheel=a("wheel"),this.activeListeners.handleDown=a("down"),this.activeListeners.handleUp=a("up"),this.mouseCaptor.on("mousemove",this.activeListeners.handleMove),this.mouseCaptor.on("mousemovebody",this.activeListeners.handleMoveBody),this.mouseCaptor.on("click",this.activeListeners.handleClick),this.mouseCaptor.on("rightClick",this.activeListeners.handleRightClick),this.mouseCaptor.on("doubleClick",this.activeListeners.handleDoubleClick),this.mouseCaptor.on("wheel",this.activeListeners.handleWheel),this.mouseCaptor.on("mousedown",this.activeListeners.handleDown),this.mouseCaptor.on("mouseup",this.activeListeners.handleUp),this.mouseCaptor.on("mouseleave",this.activeListeners.handleLeave),this.mouseCaptor.on("mouseenter",this.activeListeners.handleEnter),this.touchCaptor.on("touchdown",this.activeListeners.handleDown),this.touchCaptor.on("touchdown",this.activeListeners.handleMove),this.touchCaptor.on("touchup",this.activeListeners.handleUp),this.touchCaptor.on("touchmove",this.activeListeners.handleMove),this.touchCaptor.on("tap",this.activeListeners.handleClick),this.touchCaptor.on("doubletap",this.activeListeners.handleDoubleClick),this.touchCaptor.on("touchmove",this.activeListeners.handleMoveBody),this}},{key:"bindGraphHandlers",value:function(){var r=this,a=this.graph,i=new Set(["x","y","zIndex","type"]);return this.activeListeners.eachNodeAttributesUpdatedGraphUpdate=function(o){var s,l=(s=o.hints)===null||s===void 0?void 0:s.attributes;r.graph.forEachNode(function(d){return r.updateNode(d)});var c=!l||l.some(function(d){return i.has(d)});r.refresh({partialGraph:{nodes:a.nodes()},skipIndexation:!c,schedule:!0})},this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate=function(o){var s,l=(s=o.hints)===null||s===void 0?void 0:s.attributes;r.graph.forEachEdge(function(d){return r.updateEdge(d)});var c=l&&["zIndex","type"].some(function(d){return l==null?void 0:l.includes(d)});r.refresh({partialGraph:{edges:a.edges()},skipIndexation:!c,schedule:!0})},this.activeListeners.addNodeGraphUpdate=function(o){var s=o.key;r.addNode(s),r.refresh({partialGraph:{nodes:[s]},skipIndexation:!1,schedule:!0})},this.activeListeners.updateNodeGraphUpdate=function(o){var s=o.key;r.refresh({partialGraph:{nodes:[s]},skipIndexation:!1,schedule:!0})},this.activeListeners.dropNodeGraphUpdate=function(o){var s=o.key;r.removeNode(s),r.refresh({schedule:!0})},this.activeListeners.addEdgeGraphUpdate=function(o){var s=o.key;r.addEdge(s),r.refresh({partialGraph:{edges:[s]},schedule:!0})},this.activeListeners.updateEdgeGraphUpdate=function(o){var s=o.key;r.refresh({partialGraph:{edges:[s]},skipIndexation:!1,schedule:!0})},this.activeListeners.dropEdgeGraphUpdate=function(o){var s=o.key;r.removeEdge(s),r.refresh({schedule:!0})},this.activeListeners.clearEdgesGraphUpdate=function(){r.clearEdgeState(),r.clearEdgeIndices(),r.refresh({schedule:!0})},this.activeListeners.clearGraphUpdate=function(){r.clearEdgeState(),r.clearNodeState(),r.clearEdgeIndices(),r.clearNodeIndices(),r.refresh({schedule:!0})},a.on("nodeAdded",this.activeListeners.addNodeGraphUpdate),a.on("nodeDropped",this.activeListeners.dropNodeGraphUpdate),a.on("nodeAttributesUpdated",this.activeListeners.updateNodeGraphUpdate),a.on("eachNodeAttributesUpdated",this.activeListeners.eachNodeAttributesUpdatedGraphUpdate),a.on("edgeAdded",this.activeListeners.addEdgeGraphUpdate),a.on("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),a.on("edgeAttributesUpdated",this.activeListeners.updateEdgeGraphUpdate),a.on("eachEdgeAttributesUpdated",this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate),a.on("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),a.on("cleared",this.activeListeners.clearGraphUpdate),this}},{key:"unbindGraphHandlers",value:function(){var r=this.graph;r.removeListener("nodeAdded",this.activeListeners.addNodeGraphUpdate),r.removeListener("nodeDropped",this.activeListeners.dropNodeGraphUpdate),r.removeListener("nodeAttributesUpdated",this.activeListeners.updateNodeGraphUpdate),r.removeListener("eachNodeAttributesUpdated",this.activeListeners.eachNodeAttributesUpdatedGraphUpdate),r.removeListener("edgeAdded",this.activeListeners.addEdgeGraphUpdate),r.removeListener("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),r.removeListener("edgeAttributesUpdated",this.activeListeners.updateEdgeGraphUpdate),r.removeListener("eachEdgeAttributesUpdated",this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate),r.removeListener("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),r.removeListener("cleared",this.activeListeners.clearGraphUpdate)}},{key:"getEdgeAtPoint",value:function(r,a){var i=rP(this.webGLContexts.edges,this.frameBuffers.edges,r,a,this.pixelRatio,this.pickingDownSizingRatio),o=nP.apply(void 0,xP(i)),s=this.itemIDsIndex[o];return s&&s.type==="edge"?s.id:null}},{key:"process",value:function(){var r=this;this.emit("beforeProcess");var a=this.graph,i=this.settings,o=this.getDimensions();if(this.nodeExtent=Zme(this.graph),!this.settings.autoRescale){var s=o.width,l=o.height,c=this.nodeExtent,d=c.x,p=c.y;this.nodeExtent={x:[(d[0]+d[1])/2-s/2,(d[0]+d[1])/2+s/2],y:[(p[0]+p[1])/2-l/2,(p[0]+p[1])/2+l/2]}}this.normalizationFunction=bP(this.customBBox||this.nodeExtent);var h=new vP,g=nf(h.getState(),o,this.getGraphDimensions(),this.getStagePadding());this.labelGrid.resizeAndClear(o,i.labelGridCellSize);for(var b={},y={},x={},w={},S=1,_=a.nodes(),N=0,R=_.length;N<R;N++){var C=_[N],A=this.nodeDataCache[C],I=a.getNodeAttributes(C);A.x=I.x,A.y=I.y,this.normalizationFunction.applyTo(A),typeof A.label=="string"&&!A.hidden&&this.labelGrid.add(C,A.size,this.framedGraphToViewport(A,{matrix:g})),b[A.type]=(b[A.type]||0)+1}this.labelGrid.organize();for(var D in this.nodePrograms){if(!bo.call(this.nodePrograms,D))throw new Error('Sigma: could not find a suitable program for node type "'.concat(D,'"!'));this.nodePrograms[D].reallocate(b[D]||0),b[D]=0}this.settings.zIndex&&this.nodeZExtent[0]!==this.nodeZExtent[1]&&(_=mP(this.nodeZExtent,function(Q){return r.nodeDataCache[Q].zIndex},_));for(var O=0,P=_.length;O<P;O++){var G=_[O];y[G]=S,w[y[G]]={type:"node",id:G},S++;var j=this.nodeDataCache[G];this.addNodeToProgram(G,y[G],b[j.type]++)}for(var W={},V=a.edges(),B=0,U=V.length;B<U;B++){var M=V[B],K=this.edgeDataCache[M];W[K.type]=(W[K.type]||0)+1}this.settings.zIndex&&this.edgeZExtent[0]!==this.edgeZExtent[1]&&(V=mP(this.edgeZExtent,function(Q){return r.edgeDataCache[Q].zIndex},V));for(var F in this.edgePrograms){if(!bo.call(this.edgePrograms,F))throw new Error('Sigma: could not find a suitable program for edge type "'.concat(F,'"!'));this.edgePrograms[F].reallocate(W[F]||0),W[F]=0}for(var Y=0,H=V.length;Y<H;Y++){var $=V[Y];x[$]=S,w[x[$]]={type:"edge",id:$},S++;var Z=this.edgeDataCache[$];this.addEdgeToProgram($,x[$],W[Z.type]++)}return this.itemIDsIndex=w,this.nodeIndices=y,this.edgeIndices=x,this.emit("afterProcess"),this}},{key:"handleSettingsUpdate",value:function(r){var a=this,i=this.settings;if(this.camera.minRatio=i.minCameraRatio,this.camera.maxRatio=i.maxCameraRatio,this.camera.enabledZooming=i.enableCameraZooming,this.camera.enabledPanning=i.enableCameraPanning,this.camera.enabledRotation=i.enableCameraRotation,i.cameraPanBoundaries?this.camera.clean=function(d){return a.cleanCameraState(d,i.cameraPanBoundaries&&$A(i.cameraPanBoundaries)==="object"?i.cameraPanBoundaries:{})}:this.camera.clean=null,this.camera.setState(this.camera.validateState(this.camera.getState())),r){if(r.edgeProgramClasses!==i.edgeProgramClasses){for(var o in i.edgeProgramClasses)i.edgeProgramClasses[o]!==r.edgeProgramClasses[o]&&this.registerEdgeProgram(o,i.edgeProgramClasses[o]);for(var s in r.edgeProgramClasses)i.edgeProgramClasses[s]||this.unregisterEdgeProgram(s)}if(r.nodeProgramClasses!==i.nodeProgramClasses||r.nodeHoverProgramClasses!==i.nodeHoverProgramClasses){for(var l in i.nodeProgramClasses)(i.nodeProgramClasses[l]!==r.nodeProgramClasses[l]||i.nodeHoverProgramClasses[l]!==r.nodeHoverProgramClasses[l])&&this.registerNodeProgram(l,i.nodeProgramClasses[l],i.nodeHoverProgramClasses[l]);for(var c in r.nodeProgramClasses)i.nodeProgramClasses[c]||this.unregisterNodeProgram(c)}}return this.mouseCaptor.setSettings(this.settings),this.touchCaptor.setSettings(this.settings),this}},{key:"cleanCameraState",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=a.tolerance,o=i===void 0?0:i,s=a.boundaries,l=Ke({},r),c=s||this.nodeExtent,d=hu(c.x,2),p=d[0],h=d[1],g=hu(c.y,2),b=g[0],y=g[1],x=[this.graphToViewport({x:p,y:b},{cameraState:r}),this.graphToViewport({x:h,y:b},{cameraState:r}),this.graphToViewport({x:p,y},{cameraState:r}),this.graphToViewport({x:h,y},{cameraState:r})],w=1/0,S=-1/0,_=1/0,N=-1/0;x.forEach(function(W){var V=W.x,B=W.y;w=Math.min(w,V),S=Math.max(S,V),_=Math.min(_,B),N=Math.max(N,B)});var R=S-w,C=N-_,A=this.getDimensions(),I=A.width,D=A.height,O=0,P=0;if(R>=I?S<I-o?O=S-(I-o):w>o&&(O=w-o):S>I+o?O=S-(I+o):w<-o&&(O=w+o),C>=D?N<D-o?P=N-(D-o):_>o&&(P=_-o):N>D+o?P=N-(D+o):_<-o&&(P=_+o),O||P){var G=this.viewportToFramedGraph({x:0,y:0},{cameraState:r}),j=this.viewportToFramedGraph({x:O,y:P},{cameraState:r});O=j.x-G.x,P=j.y-G.y,l.x+=O,l.y+=P}return l}},{key:"renderLabels",value:function(){if(!this.settings.renderLabels)return this;var r=this.camera.getState(),a=this.labelGrid.getLabelsToDisplay(r.ratio,this.settings.labelDensity);yP(a,this.nodesWithForcedLabels),this.displayedNodeLabels=new Set;for(var i=this.canvasContexts.labels,o=0,s=a.length;o<s;o++){var l=a[o],c=this.nodeDataCache[l];if(!this.displayedNodeLabels.has(l)&&!c.hidden){var d=this.framedGraphToViewport(c),p=d.x,h=d.y,g=this.scaleSize(c.size);if(!(!c.forceLabel&&g<this.settings.labelRenderedSizeThreshold)&&!(p<-150||p>this.width+mbe||h<-50||h>this.height+bbe)){this.displayedNodeLabels.add(l);var b=this.settings.defaultDrawNodeLabel,y=this.nodePrograms[c.type],x=(y==null?void 0:y.drawLabel)||b;x(i,Ke(Ke({key:l},c),{},{size:g,x:p,y:h}),this.settings)}}}return this}},{key:"renderEdgeLabels",value:function(){if(!this.settings.renderEdgeLabels)return this;var r=this.canvasContexts.edgeLabels;r.clearRect(0,0,this.width,this.height);var a=gbe({graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedNodeLabels,highlightedNodes:this.highlightedNodes});yP(a,this.edgesWithForcedLabels);for(var i=new Set,o=0,s=a.length;o<s;o++){var l=a[o],c=this.graph.extremities(l),d=this.nodeDataCache[c[0]],p=this.nodeDataCache[c[1]],h=this.edgeDataCache[l];if(!i.has(l)&&!(h.hidden||d.hidden||p.hidden)){var g=this.settings.defaultDrawEdgeLabel,b=this.edgePrograms[h.type],y=(b==null?void 0:b.drawLabel)||g;y(r,Ke(Ke({key:l},h),{},{size:this.scaleSize(h.size)}),Ke(Ke(Ke({key:c[0]},d),this.framedGraphToViewport(d)),{},{size:this.scaleSize(d.size)}),Ke(Ke(Ke({key:c[1]},p),this.framedGraphToViewport(p)),{},{size:this.scaleSize(p.size)}),this.settings),i.add(l)}}return this.displayedEdgeLabels=i,this}},{key:"renderHighlightedNodes",value:function(){var r=this,a=this.canvasContexts.hovers;a.clearRect(0,0,this.width,this.height);var i=function(g){var b=r.nodeDataCache[g],y=r.framedGraphToViewport(b),x=y.x,w=y.y,S=r.scaleSize(b.size),_=r.settings.defaultDrawNodeHover,N=r.nodePrograms[b.type],R=(N==null?void 0:N.drawHover)||_;R(a,Ke(Ke({key:g},b),{},{size:S,x,y:w}),r.settings)},o=[];this.hoveredNode&&!this.nodeDataCache[this.hoveredNode].hidden&&o.push(this.hoveredNode),this.highlightedNodes.forEach(function(h){h!==r.hoveredNode&&o.push(h)}),o.forEach(function(h){return i(h)});var s={};o.forEach(function(h){var g=r.nodeDataCache[h].type;s[g]=(s[g]||0)+1});for(var l in this.nodeHoverPrograms)this.nodeHoverPrograms[l].reallocate(s[l]||0),s[l]=0;o.forEach(function(h){var g=r.nodeDataCache[h];r.nodeHoverPrograms[g.type].process(0,s[g.type]++,g)}),this.webGLContexts.hoverNodes.clear(this.webGLContexts.hoverNodes.COLOR_BUFFER_BIT);var c=this.getRenderParams();for(var d in this.nodeHoverPrograms){var p=this.nodeHoverPrograms[d];p.render(c)}}},{key:"scheduleHighlightedNodesRender",value:function(){var r=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=requestAnimationFrame(function(){r.renderHighlightedNodesFrame=null,r.renderHighlightedNodes(),r.renderEdgeLabels()}))}},{key:"render",value:function(){var r=this;this.emit("beforeRender");var a=function(){return r.emit("afterRender"),r};if(this.renderFrame&&(cancelAnimationFrame(this.renderFrame),this.renderFrame=null),this.resize(),this.needToProcess&&this.process(),this.needToProcess=!1,this.clear(),this.pickingLayers.forEach(function(x){return r.resetWebGLTexture(x)}),!this.graph.order)return a();var i=this.mouseCaptor,o=this.camera.isAnimated()||i.isMoving||i.draggedEvents||i.currentWheelDirection,s=this.camera.getState(),l=this.getDimensions(),c=this.getGraphDimensions(),d=this.getStagePadding();this.matrix=nf(s,l,c,d),this.invMatrix=nf(s,l,c,d,!0),this.correctionRatio=Xme(this.matrix,s,l),this.graphToViewportRatio=this.getGraphToViewportRatio();var p=this.getRenderParams();for(var h in this.nodePrograms){var g=this.nodePrograms[h];g.render(p)}if(!this.settings.hideEdgesOnMove||!o)for(var b in this.edgePrograms){var y=this.edgePrograms[b];y.render(p)}return this.settings.hideLabelsOnMove&&o||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes()),a()}},{key:"addNode",value:function(r){var a=Object.assign({},this.graph.getNodeAttributes(r));this.settings.nodeReducer&&(a=this.settings.nodeReducer(r,a));var i=ybe(this.settings,r,a);this.nodeDataCache[r]=i,this.nodesWithForcedLabels.delete(r),i.forceLabel&&!i.hidden&&this.nodesWithForcedLabels.add(r),this.highlightedNodes.delete(r),i.highlighted&&!i.hidden&&this.highlightedNodes.add(r),this.settings.zIndex&&(i.zIndex<this.nodeZExtent[0]&&(this.nodeZExtent[0]=i.zIndex),i.zIndex>this.nodeZExtent[1]&&(this.nodeZExtent[1]=i.zIndex))}},{key:"updateNode",value:function(r){this.addNode(r);var a=this.nodeDataCache[r];this.normalizationFunction.applyTo(a)}},{key:"removeNode",value:function(r){delete this.nodeDataCache[r],delete this.nodeProgramIndex[r],this.highlightedNodes.delete(r),this.hoveredNode===r&&(this.hoveredNode=null),this.nodesWithForcedLabels.delete(r)}},{key:"addEdge",value:function(r){var a=Object.assign({},this.graph.getEdgeAttributes(r));this.settings.edgeReducer&&(a=this.settings.edgeReducer(r,a));var i=vbe(this.settings,r,a);this.edgeDataCache[r]=i,this.edgesWithForcedLabels.delete(r),i.forceLabel&&!i.hidden&&this.edgesWithForcedLabels.add(r),this.settings.zIndex&&(i.zIndex<this.edgeZExtent[0]&&(this.edgeZExtent[0]=i.zIndex),i.zIndex>this.edgeZExtent[1]&&(this.edgeZExtent[1]=i.zIndex))}},{key:"updateEdge",value:function(r){this.addEdge(r)}},{key:"removeEdge",value:function(r){delete this.edgeDataCache[r],delete this.edgeProgramIndex[r],this.hoveredEdge===r&&(this.hoveredEdge=null),this.edgesWithForcedLabels.delete(r)}},{key:"clearNodeIndices",value:function(){this.labelGrid=new wP,this.nodeExtent={x:[0,1],y:[0,1]},this.nodeDataCache={},this.edgeProgramIndex={},this.nodesWithForcedLabels=new Set,this.nodeZExtent=[1/0,-1/0]}},{key:"clearEdgeIndices",value:function(){this.edgeDataCache={},this.edgeProgramIndex={},this.edgesWithForcedLabels=new Set,this.edgeZExtent=[1/0,-1/0]}},{key:"clearIndices",value:function(){this.clearEdgeIndices(),this.clearNodeIndices()}},{key:"clearNodeState",value:function(){this.displayedNodeLabels=new Set,this.highlightedNodes=new Set,this.hoveredNode=null}},{key:"clearEdgeState",value:function(){this.displayedEdgeLabels=new Set,this.highlightedNodes=new Set,this.hoveredEdge=null}},{key:"clearState",value:function(){this.clearEdgeState(),this.clearNodeState()}},{key:"addNodeToProgram",value:function(r,a,i){var o=this.nodeDataCache[r],s=this.nodePrograms[o.type];if(!s)throw new Error('Sigma: could not find a suitable program for node type "'.concat(o.type,'"!'));s.process(a,i,o),this.nodeProgramIndex[r]=i}},{key:"addEdgeToProgram",value:function(r,a,i){var o=this.edgeDataCache[r],s=this.edgePrograms[o.type];if(!s)throw new Error('Sigma: could not find a suitable program for edge type "'.concat(o.type,'"!'));var l=this.graph.extremities(r),c=this.nodeDataCache[l[0]],d=this.nodeDataCache[l[1]];s.process(a,i,c,d,o),this.edgeProgramIndex[r]=i}},{key:"getRenderParams",value:function(){return{matrix:this.matrix,invMatrix:this.invMatrix,width:this.width,height:this.height,pixelRatio:this.pixelRatio,zoomRatio:this.camera.ratio,cameraAngle:this.camera.angle,sizeRatio:1/this.scaleSize(),correctionRatio:this.correctionRatio,downSizingRatio:this.pickingDownSizingRatio,minEdgeThickness:this.settings.minEdgeThickness,antiAliasingFeather:this.settings.antiAliasingFeather}}},{key:"getStagePadding",value:function(){var r=this.settings,a=r.stagePadding,i=r.autoRescale;return i&&a||0}},{key:"createLayer",value:function(r,a){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.elements[r])throw new Error('Sigma: a layer named "'.concat(r,'" already exists'));var o=Jme(a,{position:"absolute"},{class:"sigma-".concat(r)});return i.style&&Object.assign(o.style,i.style),this.elements[r]=o,"beforeLayer"in i&&i.beforeLayer?this.elements[i.beforeLayer].before(o):"afterLayer"in i&&i.afterLayer?this.elements[i.afterLayer].after(o):this.container.appendChild(o),o}},{key:"createCanvas",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.createLayer(r,"canvas",a)}},{key:"createCanvasContext",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.createCanvas(r,a),o={preserveDrawingBuffer:!1,antialias:!1};return this.canvasContexts[r]=i.getContext("2d",o),this}},{key:"createWebGLContext",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(a==null?void 0:a.canvas)||this.createCanvas(r,a);a.hidden&&i.remove();var o=Ke({preserveDrawingBuffer:!1,antialias:!1},a),s;s=i.getContext("webgl2",o),s||(s=i.getContext("webgl",o)),s||(s=i.getContext("experimental-webgl",o));var l=s;if(this.webGLContexts[r]=l,l.blendFunc(l.ONE,l.ONE_MINUS_SRC_ALPHA),a.picking){this.pickingLayers.add(r);var c=l.createFramebuffer();if(!c)throw new Error("Sigma: cannot create a new frame buffer for layer ".concat(r));this.frameBuffers[r]=c}return l}},{key:"killLayer",value:function(r){var a=this.elements[r];if(!a)throw new Error("Sigma: cannot kill layer ".concat(r,", which does not exist"));if(this.webGLContexts[r]){var i,o=this.webGLContexts[r];(i=o.getExtension("WEBGL_lose_context"))===null||i===void 0||i.loseContext(),delete this.webGLContexts[r]}else this.canvasContexts[r]&&delete this.canvasContexts[r];return a.remove(),delete this.elements[r],this}},{key:"getCamera",value:function(){return this.camera}},{key:"setCamera",value:function(r){this.unbindCameraHandlers(),this.camera=r,this.bindCameraHandlers()}},{key:"getContainer",value:function(){return this.container}},{key:"getGraph",value:function(){return this.graph}},{key:"setGraph",value:function(r){r!==this.graph&&(this.hoveredNode&&!r.hasNode(this.hoveredNode)&&(this.hoveredNode=null),this.hoveredEdge&&!r.hasEdge(this.hoveredEdge)&&(this.hoveredEdge=null),this.unbindGraphHandlers(),this.checkEdgesEventsFrame!==null&&(cancelAnimationFrame(this.checkEdgesEventsFrame),this.checkEdgesEventsFrame=null),this.graph=r,this.bindGraphHandlers(),this.refresh())}},{key:"getMouseCaptor",value:function(){return this.mouseCaptor}},{key:"getTouchCaptor",value:function(){return this.touchCaptor}},{key:"getDimensions",value:function(){return{width:this.width,height:this.height}}},{key:"getGraphDimensions",value:function(){var r=this.customBBox||this.nodeExtent;return{width:r.x[1]-r.x[0]||1,height:r.y[1]-r.y[0]||1}}},{key:"getNodeDisplayData",value:function(r){var a=this.nodeDataCache[r];return a?Object.assign({},a):void 0}},{key:"getEdgeDisplayData",value:function(r){var a=this.edgeDataCache[r];return a?Object.assign({},a):void 0}},{key:"getNodeDisplayedLabels",value:function(){return new Set(this.displayedNodeLabels)}},{key:"getEdgeDisplayedLabels",value:function(){return new Set(this.displayedEdgeLabels)}},{key:"getSettings",value:function(){return Ke({},this.settings)}},{key:"getSetting",value:function(r){return this.settings[r]}},{key:"setSetting",value:function(r,a){var i=Ke({},this.settings);return this.settings[r]=a,ZS(this.settings),this.handleSettingsUpdate(i),this.scheduleRefresh(),this}},{key:"updateSetting",value:function(r,a){return this.setSetting(r,a(this.settings[r])),this}},{key:"setSettings",value:function(r){var a=Ke({},this.settings);return this.settings=Ke(Ke({},this.settings),r),ZS(this.settings),this.handleSettingsUpdate(a),this.scheduleRefresh(),this}},{key:"resize",value:function(r){var a=this.width,i=this.height;if(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,this.pixelRatio=gP(),this.width===0)if(this.settings.allowInvalidContainer)this.width=1;else throw new Error("Sigma: Container has no width. You can set the allowInvalidContainer setting to true to stop seeing this error.");if(this.height===0)if(this.settings.allowInvalidContainer)this.height=1;else throw new Error("Sigma: Container has no height. You can set the allowInvalidContainer setting to true to stop seeing this error.");if(!r&&a===this.width&&i===this.height)return this;for(var o in this.elements){var s=this.elements[o];s.style.width=this.width+"px",s.style.height=this.height+"px"}for(var l in this.canvasContexts)this.elements[l].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[l].setAttribute("height",this.height*this.pixelRatio+"px"),this.pixelRatio!==1&&this.canvasContexts[l].scale(this.pixelRatio,this.pixelRatio);for(var c in this.webGLContexts){this.elements[c].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[c].setAttribute("height",this.height*this.pixelRatio+"px");var d=this.webGLContexts[c];if(d.viewport(0,0,this.width*this.pixelRatio,this.height*this.pixelRatio),this.pickingLayers.has(c)){var p=this.textures[c];p&&d.deleteTexture(p)}}return this.emit("resize"),this}},{key:"clear",value:function(){return this.emit("beforeClear"),this.webGLContexts.nodes.bindFramebuffer(WebGLRenderingContext.FRAMEBUFFER,null),this.webGLContexts.nodes.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.webGLContexts.edges.bindFramebuffer(WebGLRenderingContext.FRAMEBUFFER,null),this.webGLContexts.edges.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.webGLContexts.hoverNodes.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.canvasContexts.labels.clearRect(0,0,this.width,this.height),this.canvasContexts.hovers.clearRect(0,0,this.width,this.height),this.canvasContexts.edgeLabels.clearRect(0,0,this.width,this.height),this.emit("afterClear"),this}},{key:"refresh",value:function(r){var a=this,i=(r==null?void 0:r.skipIndexation)!==void 0?r==null?void 0:r.skipIndexation:!1,o=(r==null?void 0:r.schedule)!==void 0?r.schedule:!1,s=!r||!r.partialGraph;if(s)this.clearEdgeIndices(),this.clearNodeIndices(),this.graph.forEachNode(function(N){return a.addNode(N)}),this.graph.forEachEdge(function(N){return a.addEdge(N)});else{for(var l,c,d=((l=r.partialGraph)===null||l===void 0?void 0:l.nodes)||[],p=0,h=(d==null?void 0:d.length)||0;p<h;p++){var g=d[p];if(this.updateNode(g),i){var b=this.nodeProgramIndex[g];if(b===void 0)throw new Error('Sigma: node "'.concat(g,`" can't be repaint`));this.addNodeToProgram(g,this.nodeIndices[g],b)}}for(var y=(r==null||(c=r.partialGraph)===null||c===void 0?void 0:c.edges)||[],x=0,w=y.length;x<w;x++){var S=y[x];if(this.updateEdge(S),i){var _=this.edgeProgramIndex[S];if(_===void 0)throw new Error('Sigma: edge "'.concat(S,`" can't be repaint`));this.addEdgeToProgram(S,this.edgeIndices[S],_)}}}return(s||!i)&&(this.needToProcess=!0),o?this.scheduleRender():this.render(),this}},{key:"scheduleRender",value:function(){var r=this;return this.renderFrame||(this.renderFrame=requestAnimationFrame(function(){r.render()})),this}},{key:"scheduleRefresh",value:function(r){return this.refresh(Ke(Ke({},r),{},{schedule:!0}))}},{key:"getViewportZoomedState",value:function(r,a){var i=this.camera.getState(),o=i.ratio,s=i.angle,l=i.x,c=i.y,d=this.settings,p=d.minCameraRatio,h=d.maxCameraRatio;typeof h=="number"&&(a=Math.min(a,h)),typeof p=="number"&&(a=Math.max(a,p));var g=a/o,b={x:this.width/2,y:this.height/2},y=this.viewportToFramedGraph(r),x=this.viewportToFramedGraph(b);return{angle:s,x:(y.x-x.x)*(1-g)+l,y:(y.y-x.y)*(1-g)+c,ratio:a}}},{key:"viewRectangle",value:function(){var r=this.viewportToFramedGraph({x:0,y:0}),a=this.viewportToFramedGraph({x:this.width,y:0}),i=this.viewportToFramedGraph({x:0,y:this.height});return{x1:r.x,y1:r.y,x2:a.x,y2:a.y,height:a.y-i.y}}},{key:"framedGraphToViewport",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=!!a.cameraState||!!a.viewportDimensions||!!a.graphDimensions,o=a.matrix?a.matrix:i?nf(a.cameraState||this.camera.getState(),a.viewportDimensions||this.getDimensions(),a.graphDimensions||this.getGraphDimensions(),a.padding||this.getStagePadding()):this.matrix,s=zA(o,r);return{x:(1+s.x)*this.width/2,y:(1-s.y)*this.height/2}}},{key:"viewportToFramedGraph",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=!!a.cameraState||!!a.viewportDimensions||!a.graphDimensions,o=a.matrix?a.matrix:i?nf(a.cameraState||this.camera.getState(),a.viewportDimensions||this.getDimensions(),a.graphDimensions||this.getGraphDimensions(),a.padding||this.getStagePadding(),!0):this.invMatrix,s=zA(o,{x:r.x/this.width*2-1,y:1-r.y/this.height*2});return isNaN(s.x)&&(s.x=0),isNaN(s.y)&&(s.y=0),s}},{key:"viewportToGraph",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.normalizationFunction.inverse(this.viewportToFramedGraph(r,a))}},{key:"graphToViewport",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.framedGraphToViewport(this.normalizationFunction(r),a)}},{key:"getGraphToViewportRatio",value:function(){var r={x:0,y:0},a={x:1,y:1},i=Math.sqrt(Math.pow(r.x-a.x,2)+Math.pow(r.y-a.y,2)),o=this.graphToViewport(r),s=this.graphToViewport(a),l=Math.sqrt(Math.pow(o.x-s.x,2)+Math.pow(o.y-s.y,2));return l/i}},{key:"getBBox",value:function(){return this.nodeExtent}},{key:"getCustomBBox",value:function(){return this.customBBox}},{key:"setCustomBBox",value:function(r){return this.customBBox=r,this.scheduleRender(),this}},{key:"kill",value:function(){this.emit("kill"),this.removeAllListeners(),this.unbindCameraHandlers(),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),this.unbindGraphHandlers(),this.clearIndices(),this.clearState(),this.nodeDataCache={},this.edgeDataCache={},this.highlightedNodes.clear(),this.renderFrame&&(cancelAnimationFrame(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&(cancelAnimationFrame(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var r=this.container;r.firstChild;)r.removeChild(r.firstChild);this.canvasContexts={},this.webGLContexts={},this.elements={};for(var a in this.nodePrograms)this.nodePrograms[a].kill();for(var i in this.nodeHoverPrograms)this.nodeHoverPrograms[i].kill();for(var o in this.edgePrograms)this.edgePrograms[o].kill();this.nodePrograms={},this.nodeHoverPrograms={},this.edgePrograms={};for(var s in this.elements)this.killLayer(s)}},{key:"scaleSize",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.camera.ratio;return r/this.settings.zoomToSizeRatioFunction(a)*(this.getSetting("itemSizesReference")==="positions"?a*this.graphToViewportRatio:1)}},{key:"getCanvases",value:function(){var r={};for(var a in this.elements)this.elements[a]instanceof HTMLCanvasElement&&(r[a]=this.elements[a]);return r}}])}(yN);const dW=T.createContext(null),Sbe=dW.Provider;function xN(){const e=T.useContext(dW);if(e==null)throw new Error("No context provided: useSigmaContext() can only be used in a descendant of <SigmaContainer>");return e}function qa(){return xN().sigma}function fW(){const{sigma:e}=xN();return T.useCallback(t=>{e&&Object.keys(t).forEach(n=>{e.setSetting(n,t[n])})},[e])}function ky(e){return new Set(Object.keys(e))}const EP=ky({clickNode:!0,rightClickNode:!0,downNode:!0,enterNode:!0,leaveNode:!0,doubleClickNode:!0,wheelNode:!0,clickEdge:!0,rightClickEdge:!0,downEdge:!0,enterEdge:!0,leaveEdge:!0,doubleClickEdge:!0,wheelEdge:!0,clickStage:!0,rightClickStage:!0,downStage:!0,doubleClickStage:!0,wheelStage:!0,beforeRender:!0,afterRender:!0,kill:!0,upStage:!0,upEdge:!0,upNode:!0,enterStage:!0,leaveStage:!0,resize:!0,afterClear:!0,afterProcess:!0,beforeClear:!0,beforeProcess:!0,moveBody:!0}),kP=ky({click:!0,rightClick:!0,doubleClick:!0,mouseup:!0,mousedown:!0,mousemove:!0,mousemovebody:!0,mouseleave:!0,mouseenter:!0,wheel:!0}),_P=ky({touchup:!0,touchdown:!0,touchmove:!0,touchmovebody:!0,tap:!0,doubletap:!0}),CP=ky({updated:!0});function pW(){const e=qa(),t=fW(),[n,r]=T.useState({});return T.useEffect(()=>{if(!e||!n)return;const a=n,i=Object.keys(a);return i.forEach(o=>{const s=a[o];EP.has(o)&&e.on(o,s),kP.has(o)&&e.getMouseCaptor().on(o,s),_P.has(o)&&e.getTouchCaptor().on(o,s),CP.has(o)&&e.getCamera().on(o,s)}),()=>{e&&i.forEach(o=>{const s=a[o];EP.has(o)&&e.off(o,s),kP.has(o)&&e.getMouseCaptor().off(o,s),_P.has(o)&&e.getTouchCaptor().off(o,s),CP.has(o)&&e.getCamera().off(o,s)})}},[e,n,t]),r}function Fp(e,t){if(e===t)return!0;if(typeof e=="object"&&e!=null&&typeof t=="object"&&t!=null){if(Object.keys(e).length!=Object.keys(t).length)return!1;for(const n in e)if(!Object.hasOwn(t,n)||!Fp(e[n],t[n]))return!1;return!0}return!1}function hW(e){const t=qa(),[n,r]=T.useState(e||{});T.useEffect(()=>{r(c=>Fp(c,e||{})?c:e||{})},[e]);const a=T.useCallback(c=>{t.getCamera().animatedZoom(Object.assign(Object.assign({},n),c))},[t,n]),i=T.useCallback(c=>{t.getCamera().animatedUnzoom(Object.assign(Object.assign({},n),c))},[t,n]),o=T.useCallback(c=>{t.getCamera().animatedReset(Object.assign(Object.assign({},n),c))},[t,n]),s=T.useCallback((c,d)=>{t.getCamera().animate(c,Object.assign(Object.assign({},n),d))},[t,n]),l=T.useCallback((c,d)=>{const p=t.getNodeDisplayData(c);p?t.getCamera().animate(p,Object.assign(Object.assign({},n),d)):console.warn(`Node ${c} not found`)},[t,n]);return{zoomIn:a,zoomOut:i,reset:o,goto:s,gotoNode:l}}function wbe(e){const t=xN(),[n,r]=T.useState(!1),[a,i]=T.useState(t.container),o=T.useCallback(()=>r(s=>!s),[]);return T.useEffect(()=>(document.addEventListener("fullscreenchange",o),()=>document.removeEventListener("fullscreenchange",o)),[o]),T.useEffect(()=>{i(t.container)},[e,t.container]),{toggle:T.useCallback(()=>{var s;s=a,document.fullscreenElement!==s?s.requestFullscreen():document.exitFullscreen&&document.exitFullscreen()},[a]),isFullScreen:n}}const Ebe=T.forwardRef(({graph:e,id:t,className:n,style:r,settings:a={},children:i},o)=>{const s=T.useRef(null),l=T.useRef(null),c={className:`react-sigma ${n||""}`,id:t,style:r},[d,p]=T.useState(null),[h,g]=T.useState(a);T.useEffect(()=>{g(x=>Fp(x,a)?x:a)},[a]),T.useEffect(()=>{p(x=>{let w=null;if(l.current!==null){let S=new cn;e&&(S=typeof e=="function"?new e:e);let _=null;x&&(_=x.getCamera().getState(),x.kill()),w=new xbe(S,l.current,h),_&&w.getCamera().setState(_)}return w})},[l,e,h]),T.useImperativeHandle(o,()=>d,[d]);const b=T.useMemo(()=>d&&s.current?{sigma:d,container:s.current}:null,[d,s]),y=b!==null?Re.createElement(Sbe,{value:b},i):null;return Re.createElement("div",Object.assign({},c,{ref:s}),Re.createElement("div",{className:"sigma-container",ref:l}),y)});var kbe=`
precision mediump float;
varying vec4 v_color;
varying float v_border;
const float radius = 0.5;
const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
void main(void) {
vec2 m = gl_PointCoord - vec2(0.5, 0.5);
float dist = radius - length(m);
// No antialiasing for picking mode:
#ifdef PICKING_MODE
if (dist > v_border)
gl_FragColor = v_color;
else
gl_FragColor = transparent;
#else
float t = 0.0;
if (dist > v_border)
t = 1.0;
else if (dist > 0.0)
t = dist / v_border;
gl_FragColor = mix(transparent, v_color, t);
#endif
}
`,_be=kbe,Cbe=`
attribute vec4 a_id;
attribute vec4 a_color;
attribute vec2 a_position;
attribute float a_size;
uniform float u_sizeRatio;
uniform float u_pixelRatio;
uniform mat3 u_matrix;
varying vec4 v_color;
varying float v_border;
const float bias = 255.0 / 254.0;
void main() {
gl_Position = vec4(
(u_matrix * vec3(a_position, 1)).xy,
0,
1
);
// Multiply the point size twice:
// - x SCALING_RATIO to correct the canvas scaling
// - x 2 to correct the formulae
gl_PointSize = a_size / u_sizeRatio * u_pixelRatio * 2.0;
v_border = (0.5 / a_size) * u_sizeRatio;
#ifdef PICKING_MODE
// For picking mode, we use the ID as the color:
v_color = a_id;
#else
// For normal mode, we use the color:
v_color = a_color;
#endif
v_color.a *= bias;
}
`,Tbe=Cbe,gW=WebGLRenderingContext,TP=gW.UNSIGNED_BYTE,AP=gW.FLOAT,Abe=["u_sizeRatio","u_pixelRatio","u_matrix"],Rbe=function(e){function t(){return tr(this,t),Xr(this,t,arguments)}return Zr(t,e),nr(t,[{key:"getDefinition",value:function(){return{VERTICES:1,VERTEX_SHADER_SOURCE:Tbe,FRAGMENT_SHADER_SOURCE:_be,METHOD:WebGLRenderingContext.POINTS,UNIFORMS:Abe,ATTRIBUTES:[{name:"a_position",size:2,type:AP},{name:"a_size",size:1,type:AP},{name:"a_color",size:4,type:TP,normalized:!0},{name:"a_id",size:4,type:TP,normalized:!0}]}}},{key:"processVisibleItem",value:function(r,a,i){var o=this.array;o[a++]=i.x,o[a++]=i.y,o[a++]=i.size,o[a++]=Bi(i.color),o[a++]=r}},{key:"setUniforms",value:function(r,a){var i=r.sizeRatio,o=r.pixelRatio,s=r.matrix,l=a.gl,c=a.uniformLocations,d=c.u_sizeRatio,p=c.u_pixelRatio,h=c.u_matrix;l.uniform1f(p,o),l.uniform1f(d,i),l.uniformMatrix3fv(h,!1,s)}}])}(mN),Nbe=`
attribute vec4 a_id;
attribute vec4 a_color;
attribute vec2 a_normal;
attribute float a_normalCoef;
attribute vec2 a_positionStart;
attribute vec2 a_positionEnd;
attribute float a_positionCoef;
attribute float a_sourceRadius;
attribute float a_targetRadius;
attribute float a_sourceRadiusCoef;
attribute float a_targetRadiusCoef;
uniform mat3 u_matrix;
uniform float u_zoomRatio;
uniform float u_sizeRatio;
uniform float u_pixelRatio;
uniform float u_correctionRatio;
uniform float u_minEdgeThickness;
uniform float u_lengthToThicknessRatio;
uniform float u_feather;
varying vec4 v_color;
varying vec2 v_normal;
varying float v_thickness;
varying float v_feather;
const float bias = 255.0 / 254.0;
void main() {
float minThickness = u_minEdgeThickness;
vec2 normal = a_normal * a_normalCoef;
vec2 position = a_positionStart * (1.0 - a_positionCoef) + a_positionEnd * a_positionCoef;
float normalLength = length(normal);
vec2 unitNormal = normal / normalLength;
// These first computations are taken from edge.vert.glsl. Please read it to
// get better comments on what's happening:
float pixelsThickness = max(normalLength, minThickness * u_sizeRatio);
float webGLThickness = pixelsThickness * u_correctionRatio / u_sizeRatio;
// Here, we move the point to leave space for the arrow heads:
// Source arrow head
float sourceRadius = a_sourceRadius * a_sourceRadiusCoef;
float sourceDirection = sign(sourceRadius);
float webGLSourceRadius = sourceDirection * sourceRadius * 2.0 * u_correctionRatio / u_sizeRatio;
float webGLSourceArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;
vec2 sourceCompensationVector =
vec2(-sourceDirection * unitNormal.y, sourceDirection * unitNormal.x)
* (webGLSourceRadius + webGLSourceArrowHeadLength);
// Target arrow head
float targetRadius = a_targetRadius * a_targetRadiusCoef;
float targetDirection = sign(targetRadius);
float webGLTargetRadius = targetDirection * targetRadius * 2.0 * u_correctionRatio / u_sizeRatio;
float webGLTargetArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;
vec2 targetCompensationVector =
vec2(-targetDirection * unitNormal.y, targetDirection * unitNormal.x)
* (webGLTargetRadius + webGLTargetArrowHeadLength);
// Here is the proper position of the vertex
gl_Position = vec4((u_matrix * vec3(position + unitNormal * webGLThickness + sourceCompensationVector + targetCompensationVector, 1)).xy, 0, 1);
v_thickness = webGLThickness / u_zoomRatio;
v_normal = unitNormal;
v_feather = u_feather * u_correctionRatio / u_zoomRatio / u_pixelRatio * 2.0;
#ifdef PICKING_MODE
// For picking mode, we use the ID as the color:
v_color = a_id;
#else
// For normal mode, we use the color:
v_color = a_color;
#endif
v_color.a *= bias;
}
`,Lbe=Nbe,mW=WebGLRenderingContext,RP=mW.UNSIGNED_BYTE,so=mW.FLOAT,Obe=["u_matrix","u_zoomRatio","u_sizeRatio","u_correctionRatio","u_pixelRatio","u_feather","u_minEdgeThickness","u_lengthToThicknessRatio"],Dbe={lengthToThicknessRatio:Mp.lengthToThicknessRatio};function bW(e){var t=Ke(Ke({},Dbe),{});return function(n){function r(){return tr(this,r),Xr(this,r,arguments)}return Zr(r,n),nr(r,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:Lbe,FRAGMENT_SHADER_SOURCE:bN,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:Obe,ATTRIBUTES:[{name:"a_positionStart",size:2,type:so},{name:"a_positionEnd",size:2,type:so},{name:"a_normal",size:2,type:so},{name:"a_color",size:4,type:RP,normalized:!0},{name:"a_id",size:4,type:RP,normalized:!0},{name:"a_sourceRadius",size:1,type:so},{name:"a_targetRadius",size:1,type:so}],CONSTANT_ATTRIBUTES:[{name:"a_positionCoef",size:1,type:so},{name:"a_normalCoef",size:1,type:so},{name:"a_sourceRadiusCoef",size:1,type:so},{name:"a_targetRadiusCoef",size:1,type:so}],CONSTANT_DATA:[[0,1,-1,0],[0,-1,1,0],[1,1,0,1],[1,1,0,1],[0,-1,1,0],[1,-1,0,-1]]}}},{key:"processVisibleItem",value:function(i,o,s,l,c){var d=c.size||1,p=s.x,h=s.y,g=l.x,b=l.y,y=Bi(c.color),x=g-p,w=b-h,S=s.size||1,_=l.size||1,N=x*x+w*w,R=0,C=0;N&&(N=1/Math.sqrt(N),R=-w*N*d,C=x*N*d);var A=this.array;A[o++]=p,A[o++]=h,A[o++]=g,A[o++]=b,A[o++]=R,A[o++]=C,A[o++]=y,A[o++]=i,A[o++]=S,A[o++]=_}},{key:"setUniforms",value:function(i,o){var s=o.gl,l=o.uniformLocations,c=l.u_matrix,d=l.u_zoomRatio,p=l.u_feather,h=l.u_pixelRatio,g=l.u_correctionRatio,b=l.u_sizeRatio,y=l.u_minEdgeThickness,x=l.u_lengthToThicknessRatio;s.uniformMatrix3fv(c,!1,i.matrix),s.uniform1f(d,i.zoomRatio),s.uniform1f(b,i.sizeRatio),s.uniform1f(g,i.correctionRatio),s.uniform1f(h,i.pixelRatio),s.uniform1f(p,i.antiAliasingFeather),s.uniform1f(y,i.minEdgeThickness),s.uniform1f(x,t.lengthToThicknessRatio)}}])}(Dp)}bW();function Ibe(e){return Q7([bW(),Wm(e),Wm(Ke(Ke({},e),{},{extremity:"source"}))])}Ibe();function Mbe(e){if(Array.isArray(e))return e}function Fbe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function jA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yW(e,t){if(e){if(typeof e=="string")return jA(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jA(e,t):void 0}}function Pbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bbe(e,t){return Mbe(e)||Fbe(e,t)||yW(e,t)||Pbe()}function zbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $be(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vW(e){var t=$be(e,"string");return typeof t=="symbol"?t:t+""}function jbe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vW(r.key),r)}}function Ube(e,t,n){return t&&jbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vm(e){return Vm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vm(e)}function xW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xW=function(){return!!e})()}function UA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hbe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UA(e)}function Gbe(e,t,n){return t=Vm(t),Hbe(e,xW()?Reflect.construct(t,n||[],Vm(e).constructor):t.apply(e,n))}function HA(e,t){return HA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},HA(e,t)}function qbe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&HA(e,t)}function Pc(e,t,n){return(t=vW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wbe(e){if(Array.isArray(e))return jA(e)}function Vbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ybe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JS(e){return Wbe(e)||Vbe(e)||yW(e)||Ybe()}function NP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function LP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NP(Object(n),!0).forEach(function(r){Pc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Kbe="relative",Xbe={drawLabel:void 0,drawHover:void 0,borders:[{size:{value:.1},color:{attribute:"borderColor"}},{size:{fill:!0},color:{attribute:"color"}}]},Zbe="#000000";function Qbe(e){var t=e.borders,n=oP(t.filter(function(a){var i=a.size;return"fill"in i}).length),r=`
precision highp float;
varying vec2 v_diffVector;
varying float v_radius;
#ifdef PICKING_MODE
varying vec4 v_color;
#else
// For normal mode, we use the border colors defined in the program:
`.concat(t.flatMap(function(a,i){var o=a.size;return"attribute"in o?["varying float v_borderSize_".concat(i+1,";")]:[]}).join(`
`),`
`).concat(t.flatMap(function(a,i){var o=a.color;return"attribute"in o?["varying vec4 v_borderColor_".concat(i+1,";")]:"value"in o?["uniform vec4 u_borderColor_".concat(i+1,";")]:[]}).join(`
`),`
#endif
uniform float u_correctionRatio;
const float bias = 255.0 / 254.0;
const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
void main(void) {
float dist = length(v_diffVector);
float aaBorder = 2.0 * u_correctionRatio;
float v_borderSize_0 = v_radius;
vec4 v_borderColor_0 = transparent;
// No antialiasing for picking mode:
#ifdef PICKING_MODE
if (dist > v_radius)
gl_FragColor = transparent;
else {
gl_FragColor = v_color;
gl_FragColor.a *= bias;
}
#else
// Sizes:
`).concat(t.flatMap(function(a,i){var o=a.size;if("fill"in o)return[];o=o;var s="attribute"in o?"v_borderSize_".concat(i+1):oP(o.value),l=(o.mode||Kbe)==="pixels"?"u_correctionRatio":"v_radius";return[" float borderSize_".concat(i+1," = ").concat(l," * ").concat(s,";")]}).join(`
`),`
// Now, let's split the remaining space between "fill" borders:
float fillBorderSize = (v_radius - (`).concat(t.flatMap(function(a,i){var o=a.size;return"fill"in o?[]:["borderSize_".concat(i+1)]}).join(" + "),") ) / ").concat(n,`;
`).concat(t.flatMap(function(a,i){var o=a.size;return"fill"in o?[" float borderSize_".concat(i+1," = fillBorderSize;")]:[]}).join(`
`),`
// Finally, normalize all border sizes, to start from the full size and to end with the smallest:
float adjustedBorderSize_0 = v_radius;
`).concat(t.map(function(a,i){return" float adjustedBorderSize_".concat(i+1," = adjustedBorderSize_").concat(i," - borderSize_").concat(i+1,";")}).join(`
`),`
// Colors:
vec4 borderColor_0 = transparent;
`).concat(t.map(function(a,i){var o=a.color,s=[];return"attribute"in o?s.push(" vec4 borderColor_".concat(i+1," = v_borderColor_").concat(i+1,";")):"transparent"in o?s.push(" vec4 borderColor_".concat(i+1," = vec4(0.0, 0.0, 0.0, 0.0);")):s.push(" vec4 borderColor_".concat(i+1," = u_borderColor_").concat(i+1,";")),s.push(" borderColor_".concat(i+1,".a *= bias;")),s.push(" if (borderSize_".concat(i+1," <= 1.0 * u_correctionRatio) { borderColor_").concat(i+1," = borderColor_").concat(i,"; }")),s.join(`
`)}).join(`
`),`
if (dist > adjustedBorderSize_0) {
gl_FragColor = borderColor_0;
} else `).concat(t.map(function(a,i){return"if (dist > adjustedBorderSize_".concat(i,` - aaBorder) {
gl_FragColor = mix(borderColor_`).concat(i+1,", borderColor_").concat(i,", (dist - adjustedBorderSize_").concat(i,` + aaBorder) / aaBorder);
} else if (dist > adjustedBorderSize_`).concat(i+1,`) {
gl_FragColor = borderColor_`).concat(i+1,`;
} else `)}).join(""),` { /* Nothing to add here */ }
#endif
}
`);return r}function Jbe(e){var t=e.borders,n=`
attribute vec2 a_position;
attribute float a_size;
attribute float a_angle;
uniform mat3 u_matrix;
uniform float u_sizeRatio;
uniform float u_correctionRatio;
varying vec2 v_diffVector;
varying float v_radius;
#ifdef PICKING_MODE
attribute vec4 a_id;
varying vec4 v_color;
#else
`.concat(t.flatMap(function(r,a){var i=r.size;return"attribute"in i?["attribute float a_borderSize_".concat(a+1,";"),"varying float v_borderSize_".concat(a+1,";")]:[]}).join(`
`),`
`).concat(t.flatMap(function(r,a){var i=r.color;return"attribute"in i?["attribute vec4 a_borderColor_".concat(a+1,";"),"varying vec4 v_borderColor_".concat(a+1,";")]:[]}).join(`
`),`
#endif
const float bias = 255.0 / 254.0;
const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
void main() {
float size = a_size * u_correctionRatio / u_sizeRatio * 4.0;
vec2 diffVector = size * vec2(cos(a_angle), sin(a_angle));
vec2 position = a_position + diffVector;
gl_Position = vec4(
(u_matrix * vec3(position, 1)).xy,
0,
1
);
v_radius = size / 2.0;
v_diffVector = diffVector;
#ifdef PICKING_MODE
v_color = a_id;
#else
`).concat(t.flatMap(function(r,a){var i=r.size;return"attribute"in i?[" v_borderSize_".concat(a+1," = a_borderSize_").concat(a+1,";")]:[]}).join(`
`),`
`).concat(t.flatMap(function(r,a){var i=r.color;return"attribute"in i?[" v_borderColor_".concat(a+1," = a_borderColor_").concat(a+1,";")]:[]}).join(`
`),`
#endif
}
`);return n}var SW=WebGLRenderingContext,OP=SW.UNSIGNED_BYTE,Ag=SW.FLOAT;function eye(e){var t,n=LP(LP({},Xbe),{}),r=n.borders,a=n.drawLabel,i=n.drawHover,o=["u_sizeRatio","u_correctionRatio","u_matrix"].concat(JS(r.flatMap(function(s,l){var c=s.color;return"value"in c?["u_borderColor_".concat(l+1)]:[]})));return t=function(s){qbe(l,s);function l(){var c;zbe(this,l);for(var d=arguments.length,p=new Array(d),h=0;h<d;h++)p[h]=arguments[h];return c=Gbe(this,l,[].concat(p)),Pc(UA(c),"drawLabel",a),Pc(UA(c),"drawHover",i),c}return Ube(l,[{key:"getDefinition",value:function(){return{VERTICES:3,VERTEX_SHADER_SOURCE:Jbe(n),FRAGMENT_SHADER_SOURCE:Qbe(n),METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:o,ATTRIBUTES:[{name:"a_position",size:2,type:Ag},{name:"a_id",size:4,type:OP,normalized:!0},{name:"a_size",size:1,type:Ag}].concat(JS(r.flatMap(function(d,p){var h=d.color;return"attribute"in h?[{name:"a_borderColor_".concat(p+1),size:4,type:OP,normalized:!0}]:[]})),JS(r.flatMap(function(d,p){var h=d.size;return"attribute"in h?[{name:"a_borderSize_".concat(p+1),size:1,type:Ag}]:[]}))),CONSTANT_ATTRIBUTES:[{name:"a_angle",size:1,type:Ag}],CONSTANT_DATA:[[l.ANGLE_1],[l.ANGLE_2],[l.ANGLE_3]]}}},{key:"processVisibleItem",value:function(d,p,h){var g=this.array;g[p++]=h.x,g[p++]=h.y,g[p++]=d,g[p++]=h.size,r.forEach(function(b){var y=b.color;"attribute"in y&&(g[p++]=Bi(h[y.attribute]||y.defaultValue||Zbe))}),r.forEach(function(b){var y=b.size;"attribute"in y&&(g[p++]=h[y.attribute]||y.defaultValue)})}},{key:"setUniforms",value:function(d,p){var h=p.gl,g=p.uniformLocations,b=g.u_sizeRatio,y=g.u_correctionRatio,x=g.u_matrix;h.uniform1f(y,d.correctionRatio),h.uniform1f(b,d.sizeRatio),h.uniformMatrix3fv(x,!1,d.matrix),r.forEach(function(w,S){var _=w.color;if("value"in _){var N=g["u_borderColor_".concat(S+1)],R=ume(_.value),C=Bbe(R,4),A=C[0],I=C[1],D=C[2],O=C[3];h.uniform4f(N,A/255,I/255,D/255,O/255)}})}}]),l}(mN),Pc(t,"ANGLE_1",0),Pc(t,"ANGLE_2",2*Math.PI/3),Pc(t,"ANGLE_3",4*Math.PI/3),t}var tye=eye();function nye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wW(e){var t=nye(e,"string");return typeof t=="symbol"?t:t+""}function EW(e,t,n){return(t=wW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ym(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DP(Object(n),!0).forEach(function(r){EW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wW(r.key),r)}}function iye(e,t,n){return t&&aye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Km(e){return Km=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Km(e)}function kW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kW=function(){return!!e})()}function _W(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oye(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _W(e)}function sye(e,t,n){return t=Km(t),oye(e,kW()?Reflect.construct(t,n||[],Km(e).constructor):t.apply(e,n))}function GA(e,t){return GA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},GA(e,t)}function lye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GA(e,t)}function qA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cye(e){if(Array.isArray(e))return qA(e)}function uye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dye(e,t){if(e){if(typeof e=="string")return qA(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qA(e,t):void 0}}function fye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ew(e){return cye(e)||uye(e)||dye(e)||fye()}function CW(e,t,n,r){var a=Math.pow(1-e,2)*t.x+2*(1-e)*e*n.x+Math.pow(e,2)*r.x,i=Math.pow(1-e,2)*t.y+2*(1-e)*e*n.y+Math.pow(e,2)*r.y;return{x:a,y:i}}function pye(e,t,n){for(var r=20,a=0,i=e,o=0;o<r;o++){var s=CW((o+1)/r,e,t,n);a+=Math.sqrt(Math.pow(i.x-s.x,2)+Math.pow(i.y-s.y,2)),i=s}return a}function hye(e){var t=e.curvatureAttribute,n=e.defaultCurvature,r=e.keepLabelUpright,a=r===void 0?!0:r;return function(i,o,s,l,c){var d=c.edgeLabelSize,p=o[t]||n,h=c.edgeLabelFont,g=c.edgeLabelWeight,b=c.edgeLabelColor.attribute?o[c.edgeLabelColor.attribute]||c.edgeLabelColor.color||"#000":c.edgeLabelColor.color,y=o.label;if(y){i.fillStyle=b,i.font="".concat(g," ").concat(d,"px ").concat(h);var x=!a||s.x<l.x,w=x?s.x:l.x,S=x?s.y:l.y,_=x?l.x:s.x,N=x?l.y:s.y,R=(w+_)/2,C=(S+N)/2,A=_-w,I=N-S,D=Math.sqrt(Math.pow(A,2)+Math.pow(I,2)),O=x?1:-1,P=R+I*p*O,G=C-A*p*O,j=o.size*.7+5,W={x:G-S,y:-(P-w)},V=Math.sqrt(Math.pow(W.x,2)+Math.pow(W.y,2)),B={x:N-G,y:-(_-P)},U=Math.sqrt(Math.pow(B.x,2)+Math.pow(B.y,2));w+=j*W.x/V,S+=j*W.y/V,_+=j*B.x/U,N+=j*B.y/U,P+=j*I/D,G-=j*A/D;var M={x:P,y:G},K={x:w,y:S},F={x:_,y:N},Y=pye(K,M,F);if(!(Y<s.size+l.size)){var H=i.measureText(y).width,$=Y-s.size-l.size;if(H>$){var Z="…";for(y=y+Z,H=i.measureText(y).width;H>$&&y.length>1;)y=y.slice(0,-2)+Z,H=i.measureText(y).width;if(y.length<4)return}for(var Q={},ie=0,te=y.length;ie<te;ie++){var ce=y[ie];Q[ce]||(Q[ce]=i.measureText(ce).width*(1+p*.35))}for(var Te=.5-H/Y/2,ne=0,Ee=y.length;ne<Ee;ne++){var re=y[ne],we=CW(Te,K,M,F),xe=2*(1-Te)*(P-w)+2*Te*(_-P),Se=2*(1-Te)*(G-S)+2*Te*(N-G),ee=Math.atan2(Se,xe);i.save(),i.translate(we.x,we.y),i.rotate(ee),i.fillText(re,0,0),i.restore(),Te+=Q[re]/Y}}}}}function gye(e){var t=e.arrowHead,n=(t==null?void 0:t.extremity)==="target"||(t==null?void 0:t.extremity)==="both",r=(t==null?void 0:t.extremity)==="source"||(t==null?void 0:t.extremity)==="both",a=`
precision highp float;
varying vec4 v_color;
varying float v_thickness;
varying float v_feather;
varying vec2 v_cpA;
varying vec2 v_cpB;
varying vec2 v_cpC;
`.concat(n?`
varying float v_targetSize;
varying vec2 v_targetPoint;`:"",`
`).concat(r?`
varying float v_sourceSize;
varying vec2 v_sourcePoint;`:"",`
`).concat(t?`
uniform float u_lengthToThicknessRatio;
uniform float u_widenessToThicknessRatio;`:"",`
float det(vec2 a, vec2 b) {
return a.x * b.y - b.x * a.y;
}
vec2 getDistanceVector(vec2 b0, vec2 b1, vec2 b2) {
float a = det(b0, b2), b = 2.0 * det(b1, b0), d = 2.0 * det(b2, b1);
float f = b * d - a * a;
vec2 d21 = b2 - b1, d10 = b1 - b0, d20 = b2 - b0;
vec2 gf = 2.0 * (b * d21 + d * d10 + a * d20);
gf = vec2(gf.y, -gf.x);
vec2 pp = -f * gf / dot(gf, gf);
vec2 d0p = b0 - pp;
float ap = det(d0p, d20), bp = 2.0 * det(d10, d0p);
float t = clamp((ap + bp) / (2.0 * a + b + d), 0.0, 1.0);
return mix(mix(b0, b1, t), mix(b1, b2, t), t);
}
float distToQuadraticBezierCurve(vec2 p, vec2 b0, vec2 b1, vec2 b2) {
return length(getDistanceVector(b0 - p, b1 - p, b2 - p));
}
const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
void main(void) {
float dist = distToQuadraticBezierCurve(gl_FragCoord.xy, v_cpA, v_cpB, v_cpC);
float thickness = v_thickness;
`).concat(n?`
float distToTarget = length(gl_FragCoord.xy - v_targetPoint);
float targetArrowLength = v_targetSize + thickness * u_lengthToThicknessRatio;
if (distToTarget < targetArrowLength) {
thickness = (distToTarget - v_targetSize) / (targetArrowLength - v_targetSize) * u_widenessToThicknessRatio * thickness;
}`:"",`
`).concat(r?`
float distToSource = length(gl_FragCoord.xy - v_sourcePoint);
float sourceArrowLength = v_sourceSize + thickness * u_lengthToThicknessRatio;
if (distToSource < sourceArrowLength) {
thickness = (distToSource - v_sourceSize) / (sourceArrowLength - v_sourceSize) * u_widenessToThicknessRatio * thickness;
}`:"",`
float halfThickness = thickness / 2.0;
if (dist < halfThickness) {
#ifdef PICKING_MODE
gl_FragColor = v_color;
#else
float t = smoothstep(
halfThickness - v_feather,
halfThickness,
dist
);
gl_FragColor = mix(v_color, transparent, t);
#endif
} else {
gl_FragColor = transparent;
}
}
`);return a}function mye(e){var t=e.arrowHead,n=(t==null?void 0:t.extremity)==="target"||(t==null?void 0:t.extremity)==="both",r=(t==null?void 0:t.extremity)==="source"||(t==null?void 0:t.extremity)==="both",a=`
attribute vec4 a_id;
attribute vec4 a_color;
attribute float a_direction;
attribute float a_thickness;
attribute vec2 a_source;
attribute vec2 a_target;
attribute float a_current;
attribute float a_curvature;
`.concat(n?`attribute float a_targetSize;
`:"",`
`).concat(r?`attribute float a_sourceSize;
`:"",`
uniform mat3 u_matrix;
uniform float u_sizeRatio;
uniform float u_pixelRatio;
uniform vec2 u_dimensions;
uniform float u_minEdgeThickness;
uniform float u_feather;
varying vec4 v_color;
varying float v_thickness;
varying float v_feather;
varying vec2 v_cpA;
varying vec2 v_cpB;
varying vec2 v_cpC;
`).concat(n?`
varying float v_targetSize;
varying vec2 v_targetPoint;`:"",`
`).concat(r?`
varying float v_sourceSize;
varying vec2 v_sourcePoint;`:"",`
`).concat(t?`
uniform float u_widenessToThicknessRatio;`:"",`
const float bias = 255.0 / 254.0;
const float epsilon = 0.7;
vec2 clipspaceToViewport(vec2 pos, vec2 dimensions) {
return vec2(
(pos.x + 1.0) * dimensions.x / 2.0,
(pos.y + 1.0) * dimensions.y / 2.0
);
}
vec2 viewportToClipspace(vec2 pos, vec2 dimensions) {
return vec2(
pos.x / dimensions.x * 2.0 - 1.0,
pos.y / dimensions.y * 2.0 - 1.0
);
}
void main() {
float minThickness = u_minEdgeThickness;
// Selecting the correct position
// Branchless "position = a_source if a_current == 1.0 else a_target"
vec2 position = a_source * max(0.0, a_current) + a_target * max(0.0, 1.0 - a_current);
position = (u_matrix * vec3(position, 1)).xy;
vec2 source = (u_matrix * vec3(a_source, 1)).xy;
vec2 target = (u_matrix * vec3(a_target, 1)).xy;
vec2 viewportPosition = clipspaceToViewport(position, u_dimensions);
vec2 viewportSource = clipspaceToViewport(source, u_dimensions);
vec2 viewportTarget = clipspaceToViewport(target, u_dimensions);
vec2 delta = viewportTarget.xy - viewportSource.xy;
float len = length(delta);
vec2 normal = vec2(-delta.y, delta.x) * a_direction;
vec2 unitNormal = normal / len;
float boundingBoxThickness = len * a_curvature;
float curveThickness = max(minThickness, a_thickness / u_sizeRatio);
v_thickness = curveThickness * u_pixelRatio;
v_feather = u_feather;
v_cpA = viewportSource;
v_cpB = 0.5 * (viewportSource + viewportTarget) + unitNormal * a_direction * boundingBoxThickness;
v_cpC = viewportTarget;
vec2 viewportOffsetPosition = (
viewportPosition +
unitNormal * (boundingBoxThickness / 2.0 + sign(boundingBoxThickness) * (`).concat(t?"curveThickness * u_widenessToThicknessRatio":"curveThickness",` + epsilon)) *
max(0.0, a_direction) // NOTE: cutting the bounding box in half to avoid overdraw
);
position = viewportToClipspace(viewportOffsetPosition, u_dimensions);
gl_Position = vec4(position, 0, 1);
`).concat(n?`
v_targetSize = a_targetSize * u_pixelRatio / u_sizeRatio;
v_targetPoint = viewportTarget;
`:"",`
`).concat(r?`
v_sourceSize = a_sourceSize * u_pixelRatio / u_sizeRatio;
v_sourcePoint = viewportSource;
`:"",`
#ifdef PICKING_MODE
// For picking mode, we use the ID as the color:
v_color = a_id;
#else
// For normal mode, we use the color:
v_color = a_color;
#endif
v_color.a *= bias;
}
`);return a}var TW=.25,bye={arrowHead:null,curvatureAttribute:"curvature",defaultCurvature:TW},AW=WebGLRenderingContext,IP=AW.UNSIGNED_BYTE,as=AW.FLOAT;function SN(e){var t=Ym(Ym({},bye),e||{}),n=t,r=n.arrowHead,a=n.curvatureAttribute,i=n.drawLabel,o=(r==null?void 0:r.extremity)==="target"||(r==null?void 0:r.extremity)==="both",s=(r==null?void 0:r.extremity)==="source"||(r==null?void 0:r.extremity)==="both",l=["u_matrix","u_sizeRatio","u_dimensions","u_pixelRatio","u_feather","u_minEdgeThickness"].concat(ew(r?["u_lengthToThicknessRatio","u_widenessToThicknessRatio"]:[]));return function(c){lye(d,c);function d(){var p;rye(this,d);for(var h=arguments.length,g=new Array(h),b=0;b<h;b++)g[b]=arguments[b];return p=sye(this,d,[].concat(g)),EW(_W(p),"drawLabel",i||hye(t)),p}return iye(d,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:mye(t),FRAGMENT_SHADER_SOURCE:gye(t),METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:l,ATTRIBUTES:[{name:"a_source",size:2,type:as},{name:"a_target",size:2,type:as}].concat(ew(o?[{name:"a_targetSize",size:1,type:as}]:[]),ew(s?[{name:"a_sourceSize",size:1,type:as}]:[]),[{name:"a_thickness",size:1,type:as},{name:"a_curvature",size:1,type:as},{name:"a_color",size:4,type:IP,normalized:!0},{name:"a_id",size:4,type:IP,normalized:!0}]),CONSTANT_ATTRIBUTES:[{name:"a_current",size:1,type:as},{name:"a_direction",size:1,type:as}],CONSTANT_DATA:[[0,1],[0,-1],[1,1],[0,-1],[1,1],[1,-1]]}}},{key:"processVisibleItem",value:function(h,g,b,y,x){var w,S=x.size||1,_=b.x,N=b.y,R=y.x,C=y.y,A=Bi(x.color),I=(w=x[a])!==null&&w!==void 0?w:TW,D=this.array;D[g++]=_,D[g++]=N,D[g++]=R,D[g++]=C,o&&(D[g++]=y.size),s&&(D[g++]=b.size),D[g++]=S,D[g++]=I,D[g++]=A,D[g++]=h}},{key:"setUniforms",value:function(h,g){var b=g.gl,y=g.uniformLocations,x=y.u_matrix,w=y.u_pixelRatio,S=y.u_feather,_=y.u_sizeRatio,N=y.u_dimensions,R=y.u_minEdgeThickness;if(b.uniformMatrix3fv(x,!1,h.matrix),b.uniform1f(w,h.pixelRatio),b.uniform1f(_,h.sizeRatio),b.uniform1f(S,h.antiAliasingFeather),b.uniform2f(N,h.width*h.pixelRatio,h.height*h.pixelRatio),b.uniform1f(R,h.minEdgeThickness),r){var C=y.u_lengthToThicknessRatio,A=y.u_widenessToThicknessRatio;b.uniform1f(C,r.lengthToThicknessRatio),b.uniform1f(A,r.widenessToThicknessRatio)}}}]),d}(Dp)}var yye=SN(),vye=SN({arrowHead:Mp});SN({arrowHead:Ym(Ym({},Mp),{},{extremity:"both"})});const xye=({node:e,move:t})=>{const n=qa(),{gotoNode:r}=hW();return T.useEffect(()=>{const a=n.getGraph();if(t){if(e&&a.hasNode(e))try{a.setNodeAttribute(e,"highlighted",!0),r(e)}catch(i){console.error("Error focusing on node:",i)}else n.setCustomBBox(null),n.getCamera().animate({x:.5,y:.5,ratio:1},{duration:0});Ue.getState().setMoveToSelectedNode(!1)}else if(e&&a.hasNode(e))try{a.setNodeAttribute(e,"highlighted",!0)}catch(i){console.error("Error highlighting node:",i)}return()=>{if(e&&a.hasNode(e))try{a.setNodeAttribute(e,"highlighted",!1)}catch(i){console.error("Error cleaning up node highlight:",i)}}},[e,t,n,r]),null};function qu(e,t){const n=qa(),r=T.useRef(t);return Fp(r.current,t)||(r.current=t),{positions:T.useCallback(()=>r.current?e(n.getGraph(),r.current):{},[n,r,e]),assign:T.useCallback(()=>{r.current&&e.assign(n.getGraph(),r.current)},[n,r,e])}}function wN(e,t){const n=qa(),[r,a]=T.useState(!1),[i,o]=T.useState(null),s=T.useRef(t);return Fp(s.current,t)||(s.current=t),T.useEffect(()=>{a(!1);let l=null;return s.current&&(l=new e(n.getGraph(),s.current)),o(l),()=>{l!==null&&l.kill()}},[n,s,o,a,e]),{stop:T.useCallback(()=>{i&&(i.stop(),a(!1))},[i,a]),start:T.useCallback(()=>{i&&(i.start(),a(!0))},[i,a]),kill:T.useCallback(()=>{i&&i.kill(),a(!1)},[i,a]),isRunning:r}}var tw,MP;function Pp(){if(MP)return tw;MP=1;function e(n){return!n||typeof n!="object"||typeof n=="function"||Array.isArray(n)||n instanceof Set||n instanceof Map||n instanceof RegExp||n instanceof Date}function t(n,r){n=n||{};var a={};for(var i in r){var o=n[i],s=r[i];if(!e(s)){a[i]=t(o,s);continue}o===void 0?a[i]=s:a[i]=o}return a}return tw=t,tw}var nw,FP;function Sye(){if(FP)return nw;FP=1;function e(n){return function(r,a){return r+Math.floor(n()*(a-r+1))}}var t=e(Math.random);return t.createRandom=e,nw=t,nw}var rw,PP;function wye(){if(PP)return rw;PP=1;var e=Sye().createRandom;function t(r){var a=e(r);return function(i){for(var o=i.length,s=o-1,l=-1;++l<o;){var c=a(l,s),d=i[c];i[c]=i[l],i[l]=d}}}var n=t(Math.random);return n.createShuffleInPlace=t,rw=n,rw}var aw,BP;function Eye(){if(BP)return aw;BP=1;var e=Pp(),t=zi(),n=wye(),r={attributes:{x:"x",y:"y"},center:0,hierarchyAttributes:[],rng:Math.random,scale:1};function a(A,I,D,O,P){this.wrappedCircle=P||null,this.children={},this.countChildren=0,this.id=A||null,this.next=null,this.previous=null,this.x=I||null,this.y=D||null,P?this.r=1010101:this.r=O||999}a.prototype.hasChildren=function(){return this.countChildren>0},a.prototype.addChild=function(A,I){this.children[A]=I,++this.countChildren},a.prototype.getChild=function(A){if(!this.children.hasOwnProperty(A)){var I=new a;this.children[A]=I,++this.countChildren}return this.children[A]},a.prototype.applyPositionToChildren=function(){if(this.hasChildren()){var A=this;for(var I in A.children){var D=A.children[I];D.x+=A.x,D.y+=A.y,D.applyPositionToChildren()}}};function i(A,I,D){for(var O in I.children){var P=I.children[O];P.hasChildren()?i(A,P,D):D[P.id]={x:P.x,y:P.y}}}function o(A,I){var D=A.r-I.r,O=I.x-A.x,P=I.y-A.y;return D<0||D*D<O*O+P*P}function s(A,I){var D=A.r-I.r+1e-6,O=I.x-A.x,P=I.y-A.y;return D>0&&D*D>O*O+P*P}function l(A,I){for(var D=0;D<I.length;++D)if(!s(A,I[D]))return!1;return!0}function c(A){return new a(null,A.x,A.y,A.r)}function d(A,I){var D=A.x,O=A.y,P=A.r,G=I.x,j=I.y,W=I.r,V=G-D,B=j-O,U=W-P,M=Math.sqrt(V*V+B*B);return new a(null,(D+G+V/M*U)/2,(O+j+B/M*U)/2,(M+P+W)/2)}function p(A,I,D){var O=A.x,P=A.y,G=A.r,j=I.x,W=I.y,V=I.r,B=D.x,U=D.y,M=D.r,K=O-j,F=O-B,Y=P-W,H=P-U,$=V-G,Z=M-G,Q=O*O+P*P-G*G,ie=Q-j*j-W*W+V*V,te=Q-B*B-U*U+M*M,ce=F*Y-K*H,Te=(Y*te-H*ie)/(ce*2)-O,ne=(H*$-Y*Z)/ce,Ee=(F*ie-K*te)/(ce*2)-P,re=(K*Z-F*$)/ce,we=ne*ne+re*re-1,xe=2*(G+Te*ne+Ee*re),Se=Te*Te+Ee*Ee-G*G,ee=-(we?(xe+Math.sqrt(xe*xe-4*we*Se))/(2*we):Se/xe);return new a(null,O+Te+ne*ee,P+Ee+re*ee,ee)}function h(A){switch(A.length){case 1:return c(A[0]);case 2:return d(A[0],A[1]);case 3:return p(A[0],A[1],A[2]);default:throw new Error("graphology-layout/circlepack: Invalid basis length "+A.length)}}function g(A,I){var D,O;if(l(I,A))return[I];for(D=0;D<A.length;++D)if(o(I,A[D])&&l(d(A[D],I),A))return[A[D],I];for(D=0;D<A.length-1;++D)for(O=D+1;O<A.length;++O)if(o(d(A[D],A[O]),I)&&o(d(A[D],I),A[O])&&o(d(A[O],I),A[D])&&l(p(A[D],A[O],I),A))return[A[D],A[O],I];throw new Error("graphology-layout/circlepack: extendBasis failure !")}function b(A){var I=A.wrappedCircle,D=A.next.wrappedCircle,O=I.r+D.r,P=(I.x*D.r+D.x*I.r)/O,G=(I.y*D.r+D.y*I.r)/O;return P*P+G*G}function y(A,I){var D=0,O=A.slice(),P=A.length,G=[],j,W;for(I(O);D<P;)j=O[D],W&&s(W,j)?++D:(G=g(G,j),W=h(G),D=0);return W}function x(A,I,D){var O=A.x-I.x,P,G,j=A.y-I.y,W,V,B=O*O+j*j;B?(G=I.r+D.r,G*=G,V=A.r+D.r,V*=V,G>V?(P=(B+V-G)/(2*B),W=Math.sqrt(Math.max(0,V/B-P*P)),D.x=A.x-P*O-W*j,D.y=A.y-P*j+W*O):(P=(B+G-V)/(2*B),W=Math.sqrt(Math.max(0,G/B-P*P)),D.x=I.x+P*O-W*j,D.y=I.y+P*j+W*O)):(D.x=I.x+D.r,D.y=I.y)}function w(A,I){var D=A.r+I.r-1e-6,O=I.x-A.x,P=I.y-A.y;return D>0&&D*D>O*O+P*P}function S(A,I){var D=A.length;if(D===0)return 0;var O,P,G,j,W,V,B,U,M,K;if(O=A[0],O.x=0,O.y=0,D<=1)return O.r;if(P=A[1],O.x=-P.r,P.x=O.r,P.y=0,D<=2)return O.r+P.r;G=A[2],x(P,O,G),O=new a(null,null,null,null,O),P=new a(null,null,null,null,P),G=new a(null,null,null,null,G),O.next=G.previous=P,P.next=O.previous=G,G.next=P.previous=O;e:for(V=3;V<D;++V){G=A[V],x(O.wrappedCircle,P.wrappedCircle,G),G=new a(null,null,null,null,G),B=P.next,U=O.previous,M=P.wrappedCircle.r,K=O.wrappedCircle.r;do if(M<=K){if(w(B.wrappedCircle,G.wrappedCircle)){P=B,O.next=P,P.previous=O,--V;continue e}M+=B.wrappedCircle.r,B=B.next}else{if(w(U.wrappedCircle,G.wrappedCircle)){O=U,O.next=P,P.previous=O,--V;continue e}K+=U.wrappedCircle.r,U=U.previous}while(B!==U.next);for(G.previous=O,G.next=P,O.next=P.previous=P=G,j=b(O);(G=G.next)!==P;)(W=b(G))<j&&(O=G,j=W);P=O.next}O=[P.wrappedCircle],G=P;for(var F=1e4;(G=G.next)!==P&&--F!==0;)O.push(G.wrappedCircle);for(G=y(O,I),V=0;V<D;++V)O=A[V],O.x-=G.x,O.y-=G.y;return G.r}function _(A,I){var D=0;if(A.hasChildren()){for(var O in A.children){var P=A.children[O];P.hasChildren()&&(P.r=_(P,I))}D=S(Object.values(A.children),I)}return D}function N(A,I){_(A,I);for(var D in A.children){var O=A.children[D];O.applyPositionToChildren()}}function R(A,I,D){if(!t(I))throw new Error("graphology-layout/circlepack: the given graph is not a valid graphology instance.");D=e(D,r);var O={},P={},G=I.nodes(),j=D.center,W=D.hierarchyAttributes,V=n.createShuffleInPlace(D.rng),B=D.scale,U=new a;I.forEachNode(function($,Z){var Q=Z.size?Z.size:1,ie=new a($,null,null,Q),te=U;W.forEach(function(ce){var Te=Z[ce];te=te.getChild(Te)}),te.addChild($,ie)}),N(U,V),i(I,U,O);var M=G.length,K,F,Y;for(Y=0;Y<M;Y++){var H=G[Y];K=j+B*O[H].x,F=j+B*O[H].y,P[H]={x:K,y:F},A&&(I.setNodeAttribute(H,D.attributes.x,K),I.setNodeAttribute(H,D.attributes.y,F))}return P}var C=R.bind(null,!1);return C.assign=R.bind(null,!0),aw=C,aw}var kye=Eye();const _ye=Kn(kye);function Cye(e={}){return qu(_ye,e)}var iw,zP;function Tye(){if(zP)return iw;zP=1;var e=Pp(),t=zi(),n={dimensions:["x","y"],center:.5,scale:1};function r(i,o,s){if(!t(o))throw new Error("graphology-layout/random: the given graph is not a valid graphology instance.");s=e(s,n);var l=s.dimensions;if(!Array.isArray(l)||l.length!==2)throw new Error("graphology-layout/random: given dimensions are invalid.");var c=s.center,d=s.scale,p=Math.PI*2,h=(c-.5)*d,g=o.order,b=l[0],y=l[1];function x(_,N){return N[b]=d*Math.cos(_*p/g)+h,N[y]=d*Math.sin(_*p/g)+h,N}var w=0;if(!i){var S={};return o.forEachNode(function(_){S[_]=x(w++,{})}),S}o.updateEachNodeAttributes(function(_,N){return x(w++,N),N},{attributes:l})}var a=r.bind(null,!1);return a.assign=r.bind(null,!0),iw=a,iw}var Aye=Tye();const Rye=Kn(Aye);function Nye(e={}){return qu(Rye,e)}var of={},$P;function EN(){if($P)return of;$P=1;function e(r){return typeof r!="number"||isNaN(r)?1:r}function t(r,a){var i={},o=function(c){return typeof c>"u"?a:c};typeof a=="function"&&(o=a);var s=function(c){return o(c[r])},l=function(){return o(void 0)};return typeof r=="string"?(i.fromAttributes=s,i.fromGraph=function(c,d){return s(c.getNodeAttributes(d))},i.fromEntry=function(c,d){return s(d)}):typeof r=="function"?(i.fromAttributes=function(){throw new Error("graphology-utils/getters/createNodeValueGetter: irrelevant usage.")},i.fromGraph=function(c,d){return o(r(d,c.getNodeAttributes(d)))},i.fromEntry=function(c,d){return o(r(c,d))}):(i.fromAttributes=l,i.fromGraph=l,i.fromEntry=l),i}function n(r,a){var i={},o=function(c){return typeof c>"u"?a:c};typeof a=="function"&&(o=a);var s=function(c){return o(c[r])},l=function(){return o(void 0)};return typeof r=="string"?(i.fromAttributes=s,i.fromGraph=function(c,d){return s(c.getEdgeAttributes(d))},i.fromEntry=function(c,d){return s(d)},i.fromPartialEntry=i.fromEntry,i.fromMinimalEntry=i.fromEntry):typeof r=="function"?(i.fromAttributes=function(){throw new Error("graphology-utils/getters/createEdgeValueGetter: irrelevant usage.")},i.fromGraph=function(c,d){var p=c.extremities(d);return o(r(d,c.getEdgeAttributes(d),p[0],p[1],c.getNodeAttributes(p[0]),c.getNodeAttributes(p[1]),c.isUndirected(d)))},i.fromEntry=function(c,d,p,h,g,b,y){return o(r(c,d,p,h,g,b,y))},i.fromPartialEntry=function(c,d,p,h){return o(r(c,d,p,h))},i.fromMinimalEntry=function(c,d){return o(r(c,d))}):(i.fromAttributes=l,i.fromGraph=l,i.fromEntry=l,i.fromMinimalEntry=l),i}return of.createNodeValueGetter=t,of.createEdgeValueGetter=n,of.createEdgeWeightGetter=function(r){return n(r,e)},of}var ow,jP;function RW(){if(jP)return ow;jP=1;const{createNodeValueGetter:e,createEdgeValueGetter:t}=EN();return ow=function(r,a,i){const{nodeXAttribute:o,nodeYAttribute:s}=i,{attraction:l,repulsion:c,gravity:d,inertia:p,maxMove:h}=i.settings;let{shouldSkipNode:g,shouldSkipEdge:b,isNodeFixed:y}=i;y=e(y),g=e(g,!1),b=t(b,!1);const x=r.filterNodes((_,N)=>!g.fromEntry(_,N)),w=x.length;for(let _=0;_<w;_++){const N=x[_],R=r.getNodeAttributes(N),C=a[N];C?a[N]={dx:C.dx*p,dy:C.dy*p,x:R[o]||0,y:R[s]||0}:a[N]={dx:0,dy:0,x:R[o]||0,y:R[s]||0}}if(c)for(let _=0;_<w;_++){const N=x[_],R=a[N];for(let C=_+1;C<w;C++){const A=x[C],I=a[A],D=I.x-R.x,O=I.y-R.y,P=Math.sqrt(D*D+O*O)||1,G=c/P*D,j=c/P*O;R.dx-=G,R.dy-=j,I.dx+=G,I.dy+=j}}if(l&&r.forEachEdge((_,N,R,C,A,I,D)=>{if(R===C||g.fromEntry(R,A)||g.fromEntry(C,I)||b.fromEntry(_,N,R,C,A,I,D))return;const O=a[R],P=a[C],G=P.x-O.x,j=P.y-O.y,W=Math.sqrt(G*G+j*j)||1,V=l*W*G,B=l*W*j;O.dx+=V,O.dy+=B,P.dx-=V,P.dy-=B}),d)for(let _=0;_<w;_++){const N=x[_],R=a[N],{x:C,y:A}=R,I=Math.sqrt(C*C+A*A)||1;a[N].dx-=C*d*I,a[N].dy-=A*d*I}const S=!1;for(let _=0;_<w;_++){const N=x[_],R=a[N],C=Math.sqrt(R.dx*R.dx+R.dy*R.dy);C>h&&(R.dx*=h/C,R.dy*=h/C),y.fromGraph(r,N)?R.fixed=!0:(R.x+=R.dx,R.y+=R.dy,R.fixed=!1)}return{converged:S}},ow}var Rg={},UP;function NW(){return UP||(UP=1,Rg.assignLayoutChanges=function(e,t,n){const{nodeXAttribute:r,nodeYAttribute:a}=n;e.updateEachNodeAttributes((i,o)=>{const s=t[i];return!s||s.fixed||(o[r]=s.x,o[a]=s.y),o},{attributes:["x","y"]})},Rg.collectLayoutChanges=function(e){const t={};for(const n in e){const r=e[n];t[n]={x:r.x,y:r.y}}return t}),Rg}var sw,HP;function LW(){return HP||(HP=1,sw={nodeXAttribute:"x",nodeYAttribute:"y",isNodeFixed:"fixed",shouldSkipNode:null,shouldSkipEdge:null,settings:{attraction:5e-4,repulsion:.1,gravity:1e-4,inertia:.6,maxMove:200}}),sw}var lw,GP;function Lye(){if(GP)return lw;GP=1;const e=zi(),t=Pp(),n=RW(),r=NW(),a=LW();function i(s,l,c){if(!e(l))throw new Error("graphology-layout-force: the given graph is not a valid graphology instance.");typeof c=="number"?c={maxIterations:c}:c=c||{};const d=c.maxIterations;if(c=t(c,a),typeof d!="number"||d<=0)throw new Error("graphology-layout-force: you should provide a positive number of maximum iterations.");const p={};let h=null,g;for(g=0;g<d&&(h=n(l,p,c),!h.converged);g++);if(s){r.assignLayoutChanges(l,p,c);return}return r.collectLayoutChanges(p)}const o=i.bind(null,!1);return o.assign=i.bind(null,!0),lw=o,lw}var Oye=Lye();const Dye=Kn(Oye);var cw,qP;function Iye(){if(qP)return cw;qP=1;const e=zi(),t=Pp(),n=RW(),r=NW(),a=LW();function i(o,s){if(!e(o))throw new Error("graphology-layout-force/worker: the given graph is not a valid graphology instance.");s=t(s,a),this.callbacks={},s.onConverged&&(this.callbacks.onConverged=s.onConverged),this.graph=o,this.params=s,this.nodeStates={},this.frameID=null,this.running=!1,this.killed=!1}return i.prototype.isRunning=function(){return this.running},i.prototype.runFrame=function(){let{converged:o}=n(this.graph,this.nodeStates,this.params);r.assignLayoutChanges(this.graph,this.nodeStates,this.params),o=!1,o?(this.callbacks.onConverged&&this.callbacks.onConverged(),this.stop()):this.frameID=window.requestAnimationFrame(()=>this.runFrame())},i.prototype.stop=function(){return this.running=!1,this.frameID!==null&&(window.cancelAnimationFrame(this.frameID),this.frameID=null),this},i.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-force/worker.start: layout was killed.");this.running||(this.running=!0,this.runFrame())},i.prototype.kill=function(){this.stop(),delete this.nodeStates,this.killed=!0},cw=i,cw}var Mye=Iye();const Fye=Kn(Mye);function Pye(e={maxIterations:100}){return qu(Dye,e)}function Bye(e={}){return wN(Fye,e)}var uw,WP;function zye(){if(WP)return uw;WP=1;var e=0,t=1,n=2,r=3,a=4,i=5,o=6,s=7,l=8,c=9,d=0,p=1,h=2,g=0,b=1,y=2,x=3,w=4,S=5,_=6,N=7,R=8,C=3,A=10,I=3,D=9,O=10;return uw=function(G,j,W){var V,B,U,M,K,F,Y,H,$,Z,Q=j.length,ie=W.length,te=G.adjustSizes,ce=G.barnesHutTheta*G.barnesHutTheta,Te,ne,Ee,re,we,xe,Se,ee=[];for(U=0;U<Q;U+=A)j[U+a]=j[U+n],j[U+i]=j[U+r],j[U+n]=0,j[U+r]=0;if(G.outboundAttractionDistribution){for(Te=0,U=0;U<Q;U+=A)Te+=j[U+o];Te/=Q/A}if(G.barnesHutOptimize){var he=1/0,Ae=-1/0,be=1/0,Ce=-1/0,ue,Ve,We;for(U=0;U<Q;U+=A)he=Math.min(he,j[U+e]),Ae=Math.max(Ae,j[U+e]),be=Math.min(be,j[U+t]),Ce=Math.max(Ce,j[U+t]);var ve=Ae-he,Ie=Ce-be;for(ve>Ie?(be-=(ve-Ie)/2,Ce=be+ve):(he-=(Ie-ve)/2,Ae=he+Ie),ee[0+g]=-1,ee[0+b]=(he+Ae)/2,ee[0+y]=(be+Ce)/2,ee[0+x]=Math.max(Ae-he,Ce-be),ee[0+w]=-1,ee[0+S]=-1,ee[0+_]=0,ee[0+N]=0,ee[0+R]=0,V=1,U=0;U<Q;U+=A)for(B=0,We=C;;)if(ee[B+S]>=0){j[U+e]<ee[B+b]?j[U+t]<ee[B+y]?ue=ee[B+S]:ue=ee[B+S]+D:j[U+t]<ee[B+y]?ue=ee[B+S]+D*2:ue=ee[B+S]+D*3,ee[B+N]=(ee[B+N]*ee[B+_]+j[U+e]*j[U+o])/(ee[B+_]+j[U+o]),ee[B+R]=(ee[B+R]*ee[B+_]+j[U+t]*j[U+o])/(ee[B+_]+j[U+o]),ee[B+_]+=j[U+o],B=ue;continue}else if(ee[B+g]<0){ee[B+g]=U;break}else{if(ee[B+S]=V*D,H=ee[B+x]/2,$=ee[B+S],ee[$+g]=-1,ee[$+b]=ee[B+b]-H,ee[$+y]=ee[B+y]-H,ee[$+x]=H,ee[$+w]=$+D,ee[$+S]=-1,ee[$+_]=0,ee[$+N]=0,ee[$+R]=0,$+=D,ee[$+g]=-1,ee[$+b]=ee[B+b]-H,ee[$+y]=ee[B+y]+H,ee[$+x]=H,ee[$+w]=$+D,ee[$+S]=-1,ee[$+_]=0,ee[$+N]=0,ee[$+R]=0,$+=D,ee[$+g]=-1,ee[$+b]=ee[B+b]+H,ee[$+y]=ee[B+y]-H,ee[$+x]=H,ee[$+w]=$+D,ee[$+S]=-1,ee[$+_]=0,ee[$+N]=0,ee[$+R]=0,$+=D,ee[$+g]=-1,ee[$+b]=ee[B+b]+H,ee[$+y]=ee[B+y]+H,ee[$+x]=H,ee[$+w]=ee[B+w],ee[$+S]=-1,ee[$+_]=0,ee[$+N]=0,ee[$+R]=0,V+=4,j[ee[B+g]+e]<ee[B+b]?j[ee[B+g]+t]<ee[B+y]?ue=ee[B+S]:ue=ee[B+S]+D:j[ee[B+g]+t]<ee[B+y]?ue=ee[B+S]+D*2:ue=ee[B+S]+D*3,ee[B+_]=j[ee[B+g]+o],ee[B+N]=j[ee[B+g]+e],ee[B+R]=j[ee[B+g]+t],ee[ue+g]=ee[B+g],ee[B+g]=-1,j[U+e]<ee[B+b]?j[U+t]<ee[B+y]?Ve=ee[B+S]:Ve=ee[B+S]+D:j[U+t]<ee[B+y]?Ve=ee[B+S]+D*2:Ve=ee[B+S]+D*3,ue===Ve)if(We--){B=ue;continue}else{We=C;break}ee[Ve+g]=U;break}}if(G.barnesHutOptimize)for(ne=G.scalingRatio,U=0;U<Q;U+=A)for(B=0;;)if(ee[B+S]>=0)if(xe=Math.pow(j[U+e]-ee[B+N],2)+Math.pow(j[U+t]-ee[B+R],2),Z=ee[B+x],4*Z*Z/xe<ce){if(Ee=j[U+e]-ee[B+N],re=j[U+t]-ee[B+R],te===!0?xe>0?(Se=ne*j[U+o]*ee[B+_]/xe,j[U+n]+=Ee*Se,j[U+r]+=re*Se):xe<0&&(Se=-ne*j[U+o]*ee[B+_]/Math.sqrt(xe),j[U+n]+=Ee*Se,j[U+r]+=re*Se):xe>0&&(Se=ne*j[U+o]*ee[B+_]/xe,j[U+n]+=Ee*Se,j[U+r]+=re*Se),B=ee[B+w],B<0)break;continue}else{B=ee[B+S];continue}else{if(F=ee[B+g],F>=0&&F!==U&&(Ee=j[U+e]-j[F+e],re=j[U+t]-j[F+t],xe=Ee*Ee+re*re,te===!0?xe>0?(Se=ne*j[U+o]*j[F+o]/xe,j[U+n]+=Ee*Se,j[U+r]+=re*Se):xe<0&&(Se=-ne*j[U+o]*j[F+o]/Math.sqrt(xe),j[U+n]+=Ee*Se,j[U+r]+=re*Se):xe>0&&(Se=ne*j[U+o]*j[F+o]/xe,j[U+n]+=Ee*Se,j[U+r]+=re*Se)),B=ee[B+w],B<0)break;continue}else for(ne=G.scalingRatio,M=0;M<Q;M+=A)for(K=0;K<M;K+=A)Ee=j[M+e]-j[K+e],re=j[M+t]-j[K+t],te===!0?(xe=Math.sqrt(Ee*Ee+re*re)-j[M+l]-j[K+l],xe>0?(Se=ne*j[M+o]*j[K+o]/xe/xe,j[M+n]+=Ee*Se,j[M+r]+=re*Se,j[K+n]-=Ee*Se,j[K+r]-=re*Se):xe<0&&(Se=100*ne*j[M+o]*j[K+o],j[M+n]+=Ee*Se,j[M+r]+=re*Se,j[K+n]-=Ee*Se,j[K+r]-=re*Se)):(xe=Math.sqrt(Ee*Ee+re*re),xe>0&&(Se=ne*j[M+o]*j[K+o]/xe/xe,j[M+n]+=Ee*Se,j[M+r]+=re*Se,j[K+n]-=Ee*Se,j[K+r]-=re*Se));for($=G.gravity/G.scalingRatio,ne=G.scalingRatio,U=0;U<Q;U+=A)Se=0,Ee=j[U+e],re=j[U+t],xe=Math.sqrt(Math.pow(Ee,2)+Math.pow(re,2)),G.strongGravityMode?xe>0&&(Se=ne*j[U+o]*$):xe>0&&(Se=ne*j[U+o]*$/xe),j[U+n]-=Ee*Se,j[U+r]-=re*Se;for(ne=1*(G.outboundAttractionDistribution?Te:1),Y=0;Y<ie;Y+=I)M=W[Y+d],K=W[Y+p],H=W[Y+h],we=Math.pow(H,G.edgeWeightInfluence),Ee=j[M+e]-j[K+e],re=j[M+t]-j[K+t],te===!0?(xe=Math.sqrt(Ee*Ee+re*re)-j[M+l]-j[K+l],G.linLogMode?G.outboundAttractionDistribution?xe>0&&(Se=-ne*we*Math.log(1+xe)/xe/j[M+o]):xe>0&&(Se=-ne*we*Math.log(1+xe)/xe):G.outboundAttractionDistribution?xe>0&&(Se=-ne*we/j[M+o]):xe>0&&(Se=-ne*we)):(xe=Math.sqrt(Math.pow(Ee,2)+Math.pow(re,2)),G.linLogMode?G.outboundAttractionDistribution?xe>0&&(Se=-ne*we*Math.log(1+xe)/xe/j[M+o]):xe>0&&(Se=-ne*we*Math.log(1+xe)/xe):G.outboundAttractionDistribution?(xe=1,Se=-ne*we/j[M+o]):(xe=1,Se=-ne*we)),xe>0&&(j[M+n]+=Ee*Se,j[M+r]+=re*Se,j[K+n]-=Ee*Se,j[K+r]-=re*Se);var ae,ge,Me,He,tt,Pt;if(te===!0)for(U=0;U<Q;U+=A)j[U+c]!==1&&(ae=Math.sqrt(Math.pow(j[U+n],2)+Math.pow(j[U+r],2)),ae>O&&(j[U+n]=j[U+n]*O/ae,j[U+r]=j[U+r]*O/ae),ge=j[U+o]*Math.sqrt((j[U+a]-j[U+n])*(j[U+a]-j[U+n])+(j[U+i]-j[U+r])*(j[U+i]-j[U+r])),Me=Math.sqrt((j[U+a]+j[U+n])*(j[U+a]+j[U+n])+(j[U+i]+j[U+r])*(j[U+i]+j[U+r]))/2,He=.1*Math.log(1+Me)/(1+Math.sqrt(ge)),tt=j[U+e]+j[U+n]*(He/G.slowDown),j[U+e]=tt,Pt=j[U+t]+j[U+r]*(He/G.slowDown),j[U+t]=Pt);else for(U=0;U<Q;U+=A)j[U+c]!==1&&(ge=j[U+o]*Math.sqrt((j[U+a]-j[U+n])*(j[U+a]-j[U+n])+(j[U+i]-j[U+r])*(j[U+i]-j[U+r])),Me=Math.sqrt((j[U+a]+j[U+n])*(j[U+a]+j[U+n])+(j[U+i]+j[U+r])*(j[U+i]+j[U+r]))/2,He=j[U+s]*Math.log(1+Me)/(1+Math.sqrt(ge)),j[U+s]=Math.min(1,Math.sqrt(He*(Math.pow(j[U+n],2)+Math.pow(j[U+r],2))/(1+Math.sqrt(ge)))),tt=j[U+e]+j[U+n]*(He/G.slowDown),j[U+e]=tt,Pt=j[U+t]+j[U+r]*(He/G.slowDown),j[U+t]=Pt);return{}},uw}var lo={},VP;function OW(){if(VP)return lo;VP=1;var e=10,t=3;return lo.assign=function(n){n=n||{};var r=Array.prototype.slice.call(arguments).slice(1),a,i,o;for(a=0,o=r.length;a<o;a++)if(r[a])for(i in r[a])n[i]=r[a][i];return n},lo.validateSettings=function(n){return"linLogMode"in n&&typeof n.linLogMode!="boolean"?{message:"the `linLogMode` setting should be a boolean."}:"outboundAttractionDistribution"in n&&typeof n.outboundAttractionDistribution!="boolean"?{message:"the `outboundAttractionDistribution` setting should be a boolean."}:"adjustSizes"in n&&typeof n.adjustSizes!="boolean"?{message:"the `adjustSizes` setting should be a boolean."}:"edgeWeightInfluence"in n&&typeof n.edgeWeightInfluence!="number"?{message:"the `edgeWeightInfluence` setting should be a number."}:"scalingRatio"in n&&!(typeof n.scalingRatio=="number"&&n.scalingRatio>=0)?{message:"the `scalingRatio` setting should be a number >= 0."}:"strongGravityMode"in n&&typeof n.strongGravityMode!="boolean"?{message:"the `strongGravityMode` setting should be a boolean."}:"gravity"in n&&!(typeof n.gravity=="number"&&n.gravity>=0)?{message:"the `gravity` setting should be a number >= 0."}:"slowDown"in n&&!(typeof n.slowDown=="number"||n.slowDown>=0)?{message:"the `slowDown` setting should be a number >= 0."}:"barnesHutOptimize"in n&&typeof n.barnesHutOptimize!="boolean"?{message:"the `barnesHutOptimize` setting should be a boolean."}:"barnesHutTheta"in n&&!(typeof n.barnesHutTheta=="number"&&n.barnesHutTheta>=0)?{message:"the `barnesHutTheta` setting should be a number >= 0."}:null},lo.graphToByteArrays=function(n,r){var a=n.order,i=n.size,o={},s,l=new Float32Array(a*e),c=new Float32Array(i*t);return s=0,n.forEachNode(function(d,p){o[d]=s,l[s]=p.x,l[s+1]=p.y,l[s+2]=0,l[s+3]=0,l[s+4]=0,l[s+5]=0,l[s+6]=1,l[s+7]=1,l[s+8]=p.size||1,l[s+9]=p.fixed?1:0,s+=e}),s=0,n.forEachEdge(function(d,p,h,g,b,y,x){var w=o[h],S=o[g],_=r(d,p,h,g,b,y,x);l[w+6]+=_,l[S+6]+=_,c[s]=w,c[s+1]=S,c[s+2]=_,s+=t}),{nodes:l,edges:c}},lo.assignLayoutChanges=function(n,r,a){var i=0;n.updateEachNodeAttributes(function(o,s){return s.x=r[i],s.y=r[i+1],i+=e,a?a(o,s):s})},lo.readGraphPositions=function(n,r){var a=0;n.forEachNode(function(i,o){r[a]=o.x,r[a+1]=o.y,a+=e})},lo.collectLayoutChanges=function(n,r,a){for(var i=n.nodes(),o={},s=0,l=0,c=r.length;s<c;s+=e){if(a){var d=Object.assign({},n.getNodeAttributes(i[l]));d.x=r[s],d.y=r[s+1],d=a(i[l],d),o[i[l]]={x:d.x,y:d.y}}else o[i[l]]={x:r[s],y:r[s+1]};l++}return o},lo.createWorker=function(r){var a=window.URL||window.webkitURL,i=r.toString(),o=a.createObjectURL(new Blob(["("+i+").call(this);"],{type:"text/javascript"})),s=new Worker(o);return a.revokeObjectURL(o),s},lo}var dw,YP;function DW(){return YP||(YP=1,dw={linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:1,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5}),dw}var fw,KP;function $ye(){if(KP)return fw;KP=1;var e=zi(),t=EN().createEdgeWeightGetter,n=zye(),r=OW(),a=DW();function i(l,c,d){if(!e(c))throw new Error("graphology-layout-forceatlas2: the given graph is not a valid graphology instance.");typeof d=="number"&&(d={iterations:d});var p=d.iterations;if(typeof p!="number")throw new Error("graphology-layout-forceatlas2: invalid number of iterations.");if(p<=0)throw new Error("graphology-layout-forceatlas2: you should provide a positive number of iterations.");var h=t("getEdgeWeight"in d?d.getEdgeWeight:"weight").fromEntry,g=typeof d.outputReducer=="function"?d.outputReducer:null,b=r.assign({},a,d.settings),y=r.validateSettings(b);if(y)throw new Error("graphology-layout-forceatlas2: "+y.message);var x=r.graphToByteArrays(c,h),w;for(w=0;w<p;w++)n(b,x.nodes,x.edges);if(l){r.assignLayoutChanges(c,x.nodes,g);return}return r.collectLayoutChanges(c,x.nodes)}function o(l){var c=typeof l=="number"?l:l.order;return{barnesHutOptimize:c>2e3,strongGravityMode:!0,gravity:.05,scalingRatio:10,slowDown:1+Math.log(c)}}var s=i.bind(null,!1);return s.assign=i.bind(null,!0),s.inferSettings=o,fw=s,fw}var jye=$ye();const Uye=Kn(jye);var pw,XP;function Hye(){return XP||(XP=1,pw=function(){var t,n,r={};(function(){var i=0,o=1,s=2,l=3,c=4,d=5,p=6,h=7,g=8,b=9,y=0,x=1,w=2,S=0,_=1,N=2,R=3,C=4,A=5,I=6,D=7,O=8,P=3,G=10,j=3,W=9,V=10;r.exports=function(U,M,K){var F,Y,H,$,Z,Q,ie,te,ce,Te,ne=M.length,Ee=K.length,re=U.adjustSizes,we=U.barnesHutTheta*U.barnesHutTheta,xe,Se,ee,he,Ae,be,Ce,ue=[];for(H=0;H<ne;H+=G)M[H+c]=M[H+s],M[H+d]=M[H+l],M[H+s]=0,M[H+l]=0;if(U.outboundAttractionDistribution){for(xe=0,H=0;H<ne;H+=G)xe+=M[H+p];xe/=ne/G}if(U.barnesHutOptimize){var Ve=1/0,We=-1/0,ve=1/0,Ie=-1/0,ae,ge,Me;for(H=0;H<ne;H+=G)Ve=Math.min(Ve,M[H+i]),We=Math.max(We,M[H+i]),ve=Math.min(ve,M[H+o]),Ie=Math.max(Ie,M[H+o]);var He=We-Ve,tt=Ie-ve;for(He>tt?(ve-=(He-tt)/2,Ie=ve+He):(Ve-=(tt-He)/2,We=Ve+tt),ue[0+S]=-1,ue[0+_]=(Ve+We)/2,ue[0+N]=(ve+Ie)/2,ue[0+R]=Math.max(We-Ve,Ie-ve),ue[0+C]=-1,ue[0+A]=-1,ue[0+I]=0,ue[0+D]=0,ue[0+O]=0,F=1,H=0;H<ne;H+=G)for(Y=0,Me=P;;)if(ue[Y+A]>=0){M[H+i]<ue[Y+_]?M[H+o]<ue[Y+N]?ae=ue[Y+A]:ae=ue[Y+A]+W:M[H+o]<ue[Y+N]?ae=ue[Y+A]+W*2:ae=ue[Y+A]+W*3,ue[Y+D]=(ue[Y+D]*ue[Y+I]+M[H+i]*M[H+p])/(ue[Y+I]+M[H+p]),ue[Y+O]=(ue[Y+O]*ue[Y+I]+M[H+o]*M[H+p])/(ue[Y+I]+M[H+p]),ue[Y+I]+=M[H+p],Y=ae;continue}else if(ue[Y+S]<0){ue[Y+S]=H;break}else{if(ue[Y+A]=F*W,te=ue[Y+R]/2,ce=ue[Y+A],ue[ce+S]=-1,ue[ce+_]=ue[Y+_]-te,ue[ce+N]=ue[Y+N]-te,ue[ce+R]=te,ue[ce+C]=ce+W,ue[ce+A]=-1,ue[ce+I]=0,ue[ce+D]=0,ue[ce+O]=0,ce+=W,ue[ce+S]=-1,ue[ce+_]=ue[Y+_]-te,ue[ce+N]=ue[Y+N]+te,ue[ce+R]=te,ue[ce+C]=ce+W,ue[ce+A]=-1,ue[ce+I]=0,ue[ce+D]=0,ue[ce+O]=0,ce+=W,ue[ce+S]=-1,ue[ce+_]=ue[Y+_]+te,ue[ce+N]=ue[Y+N]-te,ue[ce+R]=te,ue[ce+C]=ce+W,ue[ce+A]=-1,ue[ce+I]=0,ue[ce+D]=0,ue[ce+O]=0,ce+=W,ue[ce+S]=-1,ue[ce+_]=ue[Y+_]+te,ue[ce+N]=ue[Y+N]+te,ue[ce+R]=te,ue[ce+C]=ue[Y+C],ue[ce+A]=-1,ue[ce+I]=0,ue[ce+D]=0,ue[ce+O]=0,F+=4,M[ue[Y+S]+i]<ue[Y+_]?M[ue[Y+S]+o]<ue[Y+N]?ae=ue[Y+A]:ae=ue[Y+A]+W:M[ue[Y+S]+o]<ue[Y+N]?ae=ue[Y+A]+W*2:ae=ue[Y+A]+W*3,ue[Y+I]=M[ue[Y+S]+p],ue[Y+D]=M[ue[Y+S]+i],ue[Y+O]=M[ue[Y+S]+o],ue[ae+S]=ue[Y+S],ue[Y+S]=-1,M[H+i]<ue[Y+_]?M[H+o]<ue[Y+N]?ge=ue[Y+A]:ge=ue[Y+A]+W:M[H+o]<ue[Y+N]?ge=ue[Y+A]+W*2:ge=ue[Y+A]+W*3,ae===ge)if(Me--){Y=ae;continue}else{Me=P;break}ue[ge+S]=H;break}}if(U.barnesHutOptimize)for(Se=U.scalingRatio,H=0;H<ne;H+=G)for(Y=0;;)if(ue[Y+A]>=0)if(be=Math.pow(M[H+i]-ue[Y+D],2)+Math.pow(M[H+o]-ue[Y+O],2),Te=ue[Y+R],4*Te*Te/be<we){if(ee=M[H+i]-ue[Y+D],he=M[H+o]-ue[Y+O],re===!0?be>0?(Ce=Se*M[H+p]*ue[Y+I]/be,M[H+s]+=ee*Ce,M[H+l]+=he*Ce):be<0&&(Ce=-Se*M[H+p]*ue[Y+I]/Math.sqrt(be),M[H+s]+=ee*Ce,M[H+l]+=he*Ce):be>0&&(Ce=Se*M[H+p]*ue[Y+I]/be,M[H+s]+=ee*Ce,M[H+l]+=he*Ce),Y=ue[Y+C],Y<0)break;continue}else{Y=ue[Y+A];continue}else{if(Q=ue[Y+S],Q>=0&&Q!==H&&(ee=M[H+i]-M[Q+i],he=M[H+o]-M[Q+o],be=ee*ee+he*he,re===!0?be>0?(Ce=Se*M[H+p]*M[Q+p]/be,M[H+s]+=ee*Ce,M[H+l]+=he*Ce):be<0&&(Ce=-Se*M[H+p]*M[Q+p]/Math.sqrt(be),M[H+s]+=ee*Ce,M[H+l]+=he*Ce):be>0&&(Ce=Se*M[H+p]*M[Q+p]/be,M[H+s]+=ee*Ce,M[H+l]+=he*Ce)),Y=ue[Y+C],Y<0)break;continue}else for(Se=U.scalingRatio,$=0;$<ne;$+=G)for(Z=0;Z<$;Z+=G)ee=M[$+i]-M[Z+i],he=M[$+o]-M[Z+o],re===!0?(be=Math.sqrt(ee*ee+he*he)-M[$+g]-M[Z+g],be>0?(Ce=Se*M[$+p]*M[Z+p]/be/be,M[$+s]+=ee*Ce,M[$+l]+=he*Ce,M[Z+s]-=ee*Ce,M[Z+l]-=he*Ce):be<0&&(Ce=100*Se*M[$+p]*M[Z+p],M[$+s]+=ee*Ce,M[$+l]+=he*Ce,M[Z+s]-=ee*Ce,M[Z+l]-=he*Ce)):(be=Math.sqrt(ee*ee+he*he),be>0&&(Ce=Se*M[$+p]*M[Z+p]/be/be,M[$+s]+=ee*Ce,M[$+l]+=he*Ce,M[Z+s]-=ee*Ce,M[Z+l]-=he*Ce));for(ce=U.gravity/U.scalingRatio,Se=U.scalingRatio,H=0;H<ne;H+=G)Ce=0,ee=M[H+i],he=M[H+o],be=Math.sqrt(Math.pow(ee,2)+Math.pow(he,2)),U.strongGravityMode?be>0&&(Ce=Se*M[H+p]*ce):be>0&&(Ce=Se*M[H+p]*ce/be),M[H+s]-=ee*Ce,M[H+l]-=he*Ce;for(Se=1*(U.outboundAttractionDistribution?xe:1),ie=0;ie<Ee;ie+=j)$=K[ie+y],Z=K[ie+x],te=K[ie+w],Ae=Math.pow(te,U.edgeWeightInfluence),ee=M[$+i]-M[Z+i],he=M[$+o]-M[Z+o],re===!0?(be=Math.sqrt(ee*ee+he*he)-M[$+g]-M[Z+g],U.linLogMode?U.outboundAttractionDistribution?be>0&&(Ce=-Se*Ae*Math.log(1+be)/be/M[$+p]):be>0&&(Ce=-Se*Ae*Math.log(1+be)/be):U.outboundAttractionDistribution?be>0&&(Ce=-Se*Ae/M[$+p]):be>0&&(Ce=-Se*Ae)):(be=Math.sqrt(Math.pow(ee,2)+Math.pow(he,2)),U.linLogMode?U.outboundAttractionDistribution?be>0&&(Ce=-Se*Ae*Math.log(1+be)/be/M[$+p]):be>0&&(Ce=-Se*Ae*Math.log(1+be)/be):U.outboundAttractionDistribution?(be=1,Ce=-Se*Ae/M[$+p]):(be=1,Ce=-Se*Ae)),be>0&&(M[$+s]+=ee*Ce,M[$+l]+=he*Ce,M[Z+s]-=ee*Ce,M[Z+l]-=he*Ce);var Pt,Gt,Nt,ct,Bt,wt;if(re===!0)for(H=0;H<ne;H+=G)M[H+b]!==1&&(Pt=Math.sqrt(Math.pow(M[H+s],2)+Math.pow(M[H+l],2)),Pt>V&&(M[H+s]=M[H+s]*V/Pt,M[H+l]=M[H+l]*V/Pt),Gt=M[H+p]*Math.sqrt((M[H+c]-M[H+s])*(M[H+c]-M[H+s])+(M[H+d]-M[H+l])*(M[H+d]-M[H+l])),Nt=Math.sqrt((M[H+c]+M[H+s])*(M[H+c]+M[H+s])+(M[H+d]+M[H+l])*(M[H+d]+M[H+l]))/2,ct=.1*Math.log(1+Nt)/(1+Math.sqrt(Gt)),Bt=M[H+i]+M[H+s]*(ct/U.slowDown),M[H+i]=Bt,wt=M[H+o]+M[H+l]*(ct/U.slowDown),M[H+o]=wt);else for(H=0;H<ne;H+=G)M[H+b]!==1&&(Gt=M[H+p]*Math.sqrt((M[H+c]-M[H+s])*(M[H+c]-M[H+s])+(M[H+d]-M[H+l])*(M[H+d]-M[H+l])),Nt=Math.sqrt((M[H+c]+M[H+s])*(M[H+c]+M[H+s])+(M[H+d]+M[H+l])*(M[H+d]+M[H+l]))/2,ct=M[H+h]*Math.log(1+Nt)/(1+Math.sqrt(Gt)),M[H+h]=Math.min(1,Math.sqrt(ct*(Math.pow(M[H+s],2)+Math.pow(M[H+l],2))/(1+Math.sqrt(Gt)))),Bt=M[H+i]+M[H+s]*(ct/U.slowDown),M[H+i]=Bt,wt=M[H+o]+M[H+l]*(ct/U.slowDown),M[H+o]=wt);return{}}})();var a=r.exports;self.addEventListener("message",function(i){var o=i.data;t=new Float32Array(o.nodes),o.edges&&(n=new Float32Array(o.edges)),a(o.settings,t,n),self.postMessage({nodes:t.buffer},[t.buffer])})}),pw}var hw,ZP;function Gye(){if(ZP)return hw;ZP=1;var e=Hye(),t=zi(),n=EN().createEdgeWeightGetter,r=OW(),a=DW();function i(o,s){if(s=s||{},!t(o))throw new Error("graphology-layout-forceatlas2/worker: the given graph is not a valid graphology instance.");var l=n("getEdgeWeight"in s?s.getEdgeWeight:"weight").fromEntry,c=r.assign({},a,s.settings),d=r.validateSettings(c);if(d)throw new Error("graphology-layout-forceatlas2/worker: "+d.message);this.worker=null,this.graph=o,this.settings=c,this.getEdgeWeight=l,this.matrices=null,this.running=!1,this.killed=!1,this.outputReducer=typeof s.outputReducer=="function"?s.outputReducer:null,this.handleMessage=this.handleMessage.bind(this);var p=void 0,h=this;this.handleGraphUpdate=function(){h.worker&&h.worker.terminate(),p&&clearTimeout(p),p=setTimeout(function(){p=void 0,h.spawnWorker()},0)},o.on("nodeAdded",this.handleGraphUpdate),o.on("edgeAdded",this.handleGraphUpdate),o.on("nodeDropped",this.handleGraphUpdate),o.on("edgeDropped",this.handleGraphUpdate),this.spawnWorker()}return i.prototype.isRunning=function(){return this.running},i.prototype.spawnWorker=function(){this.worker&&this.worker.terminate(),this.worker=r.createWorker(e),this.worker.addEventListener("message",this.handleMessage),this.running&&(this.running=!1,this.start())},i.prototype.handleMessage=function(o){if(this.running){var s=new Float32Array(o.data.nodes);r.assignLayoutChanges(this.graph,s,this.outputReducer),this.outputReducer&&r.readGraphPositions(this.graph,s),this.matrices.nodes=s,this.askForIterations()}},i.prototype.askForIterations=function(o){var s=this.matrices,l={settings:this.settings,nodes:s.nodes.buffer},c=[s.nodes.buffer];return o&&(l.edges=s.edges.buffer,c.push(s.edges.buffer)),this.worker.postMessage(l,c),this},i.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-forceatlas2/worker.start: layout was killed.");return this.running?this:(this.matrices=r.graphToByteArrays(this.graph,this.getEdgeWeight),this.running=!0,this.askForIterations(!0),this)},i.prototype.stop=function(){return this.running=!1,this},i.prototype.kill=function(){if(this.killed)return this;this.running=!1,this.killed=!0,this.matrices=null,this.worker.terminate(),this.graph.removeListener("nodeAdded",this.handleGraphUpdate),this.graph.removeListener("edgeAdded",this.handleGraphUpdate),this.graph.removeListener("nodeDropped",this.handleGraphUpdate),this.graph.removeListener("edgeDropped",this.handleGraphUpdate)},hw=i,hw}var qye=Gye();const Wye=Kn(qye);function IW(e={iterations:100}){return qu(Uye,e)}function Vye(e={}){return wN(Wye,e)}var gw,QP;function Yye(){if(QP)return gw;QP=1;var e=0,t=1,n=2,r=3;function a(o,s){return o+"§"+s}function i(){return .01*(.5-Math.random())}return gw=function(s,l){var c=s.margin,d=s.ratio,p=s.expansion,h=s.gridSize,g=s.speed,b,y,x,w,S,_,N=!0,R=l.length,C=R/r|0,A=new Float32Array(C),I=new Float32Array(C),D=1/0,O=1/0,P=-1/0,G=-1/0;for(b=0;b<R;b+=r)x=l[b+e],w=l[b+t],_=l[b+n]*d+c,D=Math.min(D,x-_),P=Math.max(P,x+_),O=Math.min(O,w-_),G=Math.max(G,w+_);var j=P-D,W=G-O,V=(D+P)/2,B=(O+G)/2;D=V-p*j/2,P=V+p*j/2,O=B-p*W/2,G=B+p*W/2;var U=new Array(h*h),M=U.length,K;for(K=0;K<M;K++)U[K]=[];var F,Y,H,$,Z,Q,ie,te,ce,Te;for(b=0;b<R;b+=r)for(x=l[b+e],w=l[b+t],_=l[b+n]*d+c,F=x-_,Y=x+_,H=w-_,$=w+_,Z=Math.floor(h*(F-D)/(P-D)),Q=Math.floor(h*(Y-D)/(P-D)),ie=Math.floor(h*(H-O)/(G-O)),te=Math.floor(h*($-O)/(G-O)),ce=Z;ce<=Q;ce++)for(Te=ie;Te<=te;Te++)U[ce*h+Te].push(b);var ne,Ee=new Set,re,we,xe,Se,ee,he,Ae,be,Ce,ue,Ve,We,ve;for(K=0;K<M;K++)for(ne=U[K],b=0,S=ne.length;b<S;b++)for(re=ne[b],xe=l[re+e],ee=l[re+t],Ae=l[re+n],y=b+1;y<S;y++)we=ne[y],Ce=a(re,we),!(M>1&&Ee.has(Ce))&&(M>1&&Ee.add(Ce),Se=l[we+e],he=l[we+t],be=l[we+n],ue=Se-xe,Ve=he-ee,We=Math.sqrt(ue*ue+Ve*Ve),ve=We<Ae*d+c+(be*d+c),ve&&(N=!1,we=we/r|0,We>0?(A[we]+=ue/We*(1+Ae),I[we]+=Ve/We*(1+Ae)):(A[we]+=j*i(),I[we]+=W*i())));for(b=0,y=0;b<R;b+=r,y++)l[b+e]+=A[y]*.1*g,l[b+t]+=I[y]*.1*g;return{converged:N}},gw}var nl={},JP;function MW(){if(JP)return nl;JP=1;var e=3;return nl.validateSettings=function(t){return"gridSize"in t&&typeof t.gridSize!="number"||t.gridSize<=0?{message:"the `gridSize` setting should be a positive number."}:"margin"in t&&typeof t.margin!="number"||t.margin<0?{message:"the `margin` setting should be 0 or a positive number."}:"expansion"in t&&typeof t.expansion!="number"||t.expansion<=0?{message:"the `expansion` setting should be a positive number."}:"ratio"in t&&typeof t.ratio!="number"||t.ratio<=0?{message:"the `ratio` setting should be a positive number."}:"speed"in t&&typeof t.speed!="number"||t.speed<=0?{message:"the `speed` setting should be a positive number."}:null},nl.graphToByteArray=function(t,n){var r=t.order,a=new Float32Array(r*e),i=0;return t.forEachNode(function(o,s){typeof n=="function"&&(s=n(o,s)),a[i]=s.x,a[i+1]=s.y,a[i+2]=s.size||1,i+=e}),a},nl.assignLayoutChanges=function(t,n,r){var a=0;t.forEachNode(function(i){var o={x:n[a],y:n[a+1]};typeof r=="function"&&(o=r(i,o)),t.mergeNodeAttributes(i,o),a+=e})},nl.collectLayoutChanges=function(t,n,r){var a={},i=0;return t.forEachNode(function(o){var s={x:n[i],y:n[i+1]};typeof r=="function"&&(s=r(o,s)),a[o]=s,i+=e}),a},nl.createWorker=function(n){var r=window.URL||window.webkitURL,a=n.toString(),i=r.createObjectURL(new Blob(["("+a+").call(this);"],{type:"text/javascript"})),o=new Worker(i);return r.revokeObjectURL(i),o},nl}var mw,eB;function FW(){return eB||(eB=1,mw={gridSize:20,margin:5,expansion:1.1,ratio:1,speed:3}),mw}var bw,tB;function Kye(){if(tB)return bw;tB=1;var e=zi(),t=Yye(),n=MW(),r=FW(),a=500;function i(s,l,c){if(!e(l))throw new Error("graphology-layout-noverlap: the given graph is not a valid graphology instance.");typeof c=="number"?c={maxIterations:c}:c=c||{};var d=c.maxIterations||a;if(typeof d!="number"||d<=0)throw new Error("graphology-layout-force: you should provide a positive number of maximum iterations.");var p=Object.assign({},r,c.settings),h=n.validateSettings(p);if(h)throw new Error("graphology-layout-noverlap: "+h.message);var g=n.graphToByteArray(l,c.inputReducer),b=!1,y;for(y=0;y<d&&!b;y++)b=t(p,g).converged;if(s){n.assignLayoutChanges(l,g,c.outputReducer);return}return n.collectLayoutChanges(l,g,c.outputReducer)}var o=i.bind(null,!1);return o.assign=i.bind(null,!0),bw=o,bw}var Xye=Kye();const Zye=Kn(Xye);var yw,nB;function Qye(){return nB||(nB=1,yw=function(){var t,n={};(function(){var a=0,i=1,o=2,s=3;function l(d,p){return d+"§"+p}function c(){return .01*(.5-Math.random())}n.exports=function(p,h){var g=p.margin,b=p.ratio,y=p.expansion,x=p.gridSize,w=p.speed,S,_,N,R,C,A,I=!0,D=h.length,O=D/s|0,P=new Float32Array(O),G=new Float32Array(O),j=1/0,W=1/0,V=-1/0,B=-1/0;for(S=0;S<D;S+=s)N=h[S+a],R=h[S+i],A=h[S+o]*b+g,j=Math.min(j,N-A),V=Math.max(V,N+A),W=Math.min(W,R-A),B=Math.max(B,R+A);var U=V-j,M=B-W,K=(j+V)/2,F=(W+B)/2;j=K-y*U/2,V=K+y*U/2,W=F-y*M/2,B=F+y*M/2;var Y=new Array(x*x),H=Y.length,$;for($=0;$<H;$++)Y[$]=[];var Z,Q,ie,te,ce,Te,ne,Ee,re,we;for(S=0;S<D;S+=s)for(N=h[S+a],R=h[S+i],A=h[S+o]*b+g,Z=N-A,Q=N+A,ie=R-A,te=R+A,ce=Math.floor(x*(Z-j)/(V-j)),Te=Math.floor(x*(Q-j)/(V-j)),ne=Math.floor(x*(ie-W)/(B-W)),Ee=Math.floor(x*(te-W)/(B-W)),re=ce;re<=Te;re++)for(we=ne;we<=Ee;we++)Y[re*x+we].push(S);var xe,Se=new Set,ee,he,Ae,be,Ce,ue,Ve,We,ve,Ie,ae,ge,Me;for($=0;$<H;$++)for(xe=Y[$],S=0,C=xe.length;S<C;S++)for(ee=xe[S],Ae=h[ee+a],Ce=h[ee+i],Ve=h[ee+o],_=S+1;_<C;_++)he=xe[_],ve=l(ee,he),!(H>1&&Se.has(ve))&&(H>1&&Se.add(ve),be=h[he+a],ue=h[he+i],We=h[he+o],Ie=be-Ae,ae=ue-Ce,ge=Math.sqrt(Ie*Ie+ae*ae),Me=ge<Ve*b+g+(We*b+g),Me&&(I=!1,he=he/s|0,ge>0?(P[he]+=Ie/ge*(1+Ve),G[he]+=ae/ge*(1+Ve)):(P[he]+=U*c(),G[he]+=M*c())));for(S=0,_=0;S<D;S+=s,_++)h[S+a]+=P[_]*.1*w,h[S+i]+=G[_]*.1*w;return{converged:I}}})();var r=n.exports;self.addEventListener("message",function(a){var i=a.data;t=new Float32Array(i.nodes);var o=r(i.settings,t);self.postMessage({result:o,nodes:t.buffer},[t.buffer])})}),yw}var vw,rB;function Jye(){if(rB)return vw;rB=1;var e=Qye(),t=zi(),n=MW(),r=FW();function a(i,o){if(o=o||{},!t(i))throw new Error("graphology-layout-noverlap/worker: the given graph is not a valid graphology instance.");var s=Object.assign({},r,o.settings),l=n.validateSettings(s);if(l)throw new Error("graphology-layout-noverlap/worker: "+l.message);this.worker=null,this.graph=i,this.settings=s,this.matrices=null,this.running=!1,this.killed=!1,this.inputReducer=o.inputReducer,this.outputReducer=o.outputReducer,this.callbacks={onConverged:typeof o.onConverged=="function"?o.onConverged:null},this.handleMessage=this.handleMessage.bind(this);var c=!1,d=this;this.handleAddition=function(){c||(c=!0,d.spawnWorker(),setTimeout(function(){c=!1},0))},i.on("nodeAdded",this.handleAddition),i.on("edgeAdded",this.handleAddition),this.spawnWorker()}return a.prototype.isRunning=function(){return this.running},a.prototype.spawnWorker=function(){this.worker&&this.worker.terminate(),this.worker=n.createWorker(e),this.worker.addEventListener("message",this.handleMessage),this.running&&(this.running=!1,this.start())},a.prototype.handleMessage=function(i){if(this.running){var o=new Float32Array(i.data.nodes);if(n.assignLayoutChanges(this.graph,o,this.outputReducer),this.matrices.nodes=o,i.data.result.converged){this.callbacks.onConverged&&this.callbacks.onConverged(),this.stop();return}this.askForIterations()}},a.prototype.askForIterations=function(){var i=this.matrices,o={settings:this.settings,nodes:i.nodes.buffer},s=[i.nodes.buffer];return this.worker.postMessage(o,s),this},a.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-noverlap/worker.start: layout was killed.");return this.running?this:(this.matrices={nodes:n.graphToByteArray(this.graph,this.inputReducer)},this.running=!0,this.askForIterations(),this)},a.prototype.stop=function(){return this.running=!1,this},a.prototype.kill=function(){if(this.killed)return this;this.running=!1,this.killed=!0,this.matrices=null,this.worker.terminate(),this.graph.removeListener("nodeAdded",this.handleAddition),this.graph.removeListener("edgeAdded",this.handleAddition)},vw=a,vw}var eve=Jye();const tve=Kn(eve);function nve(e={}){return qu(Zye,e)}function rve(e={}){return wN(tve,e)}var xw,aB;function ave(){if(aB)return xw;aB=1;var e=Pp(),t=zi(),n={dimensions:["x","y"],center:.5,rng:Math.random,scale:1};function r(i,o,s){if(!t(o))throw new Error("graphology-layout/random: the given graph is not a valid graphology instance.");s=e(s,n);var l=s.dimensions;if(!Array.isArray(l)||l.length<1)throw new Error("graphology-layout/random: given dimensions are invalid.");var c=l.length,d=s.center,p=s.rng,h=s.scale,g=(d-.5)*h;function b(x){for(var w=0;w<c;w++)x[l[w]]=p()*h+g;return x}if(!i){var y={};return o.forEachNode(function(x){y[x]=b({})}),y}o.updateEachNodeAttributes(function(x,w){return b(w),w},{attributes:l})}var a=r.bind(null,!1);return a.assign=r.bind(null,!0),xw=a,xw}var ive=ave();const ove=Kn(ive);function sve(e={}){return qu(ove,e)}var iB=1,lve=.9,cve=.8,uve=.17,Sw=.1,ww=.999,dve=.9999,fve=.99,pve=/[\\\/_+.#"@\[\(\{&]/,hve=/[\\\/_+.#"@\[\(\{&]/g,gve=/[\s-]/,PW=/[\s-]/g;function WA(e,t,n,r,a,i,o){if(i===t.length)return a===e.length?iB:fve;var s=`${a},${i}`;if(o[s]!==void 0)return o[s];for(var l=r.charAt(i),c=n.indexOf(l,a),d=0,p,h,g,b;c>=0;)p=WA(e,t,n,r,c+1,i+1,o),p>d&&(c===a?p*=iB:pve.test(e.charAt(c-1))?(p*=cve,g=e.slice(a,c-1).match(hve),g&&a>0&&(p*=Math.pow(ww,g.length))):gve.test(e.charAt(c-1))?(p*=lve,b=e.slice(a,c-1).match(PW),b&&a>0&&(p*=Math.pow(ww,b.length))):(p*=uve,a>0&&(p*=Math.pow(ww,c-a))),e.charAt(c)!==t.charAt(i)&&(p*=dve)),(p<Sw&&n.charAt(c-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(c-1)!==r.charAt(i))&&(h=WA(e,t,n,r,c+1,i+2,o),h*Sw>p&&(p=h*Sw)),p>d&&(d=p),c=n.indexOf(l,c+1);return o[s]=d,d}function oB(e){return e.toLowerCase().replace(PW," ")}function mve(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,WA(e,t,oB(e),oB(t),0,0,{})}var Ew={exports:{}},kw={};/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var sB;function bve(){if(sB)return kw;sB=1;var e=qb();function t(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function s(p,h){var g=h(),b=r({inst:{value:g,getSnapshot:h}}),y=b[0].inst,x=b[1];return i(function(){y.value=g,y.getSnapshot=h,l(y)&&x({inst:y})},[p,g,h]),a(function(){return l(y)&&x({inst:y}),p(function(){l(y)&&x({inst:y})})},[p]),o(g),g}function l(p){var h=p.getSnapshot;p=p.value;try{var g=h();return!n(p,g)}catch{return!0}}function c(p,h){return h()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return kw.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,kw}var lB;function yve(){return lB||(lB=1,Ew.exports=bve()),Ew.exports}var vve=yve(),sf='[cmdk-group=""]',_w='[cmdk-group-items=""]',xve='[cmdk-group-heading=""]',kN='[cmdk-item=""]',cB=`${kN}:not([aria-disabled="true"])`,VA="cmdk-item-select",ul="data-value",Sve=(e,t,n)=>mve(e,t,n),BW=T.createContext(void 0),Bp=()=>T.useContext(BW),zW=T.createContext(void 0),_N=()=>T.useContext(zW),$W=T.createContext(void 0),jW=T.forwardRef((e,t)=>{let n=Bc(()=>{var H,$;return{search:"",value:($=(H=e.value)!=null?H:e.defaultValue)!=null?$:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=Bc(()=>new Set),a=Bc(()=>new Map),i=Bc(()=>new Map),o=Bc(()=>new Set),s=UW(e),{label:l,children:c,value:d,onValueChange:p,filter:h,shouldFilter:g,loop:b,disablePointerSelection:y=!1,vimBindings:x=!0,...w}=e,S=Er(),_=Er(),N=Er(),R=T.useRef(null),C=Ove();Tl(()=>{if(d!==void 0){let H=d.trim();n.current.value=H,A.emit()}},[d]),Tl(()=>{C(6,j)},[]);let A=T.useMemo(()=>({subscribe:H=>(o.current.add(H),()=>o.current.delete(H)),snapshot:()=>n.current,setState:(H,$,Z)=>{var Q,ie,te;if(!Object.is(n.current[H],$)){if(n.current[H]=$,H==="search")G(),O(),C(1,P);else if(H==="value"&&(Z||C(5,j),((Q=s.current)==null?void 0:Q.value)!==void 0)){let ce=$??"";(te=(ie=s.current).onValueChange)==null||te.call(ie,ce);return}A.emit()}},emit:()=>{o.current.forEach(H=>H())}}),[]),I=T.useMemo(()=>({value:(H,$,Z)=>{var Q;$!==((Q=i.current.get(H))==null?void 0:Q.value)&&(i.current.set(H,{value:$,keywords:Z}),n.current.filtered.items.set(H,D($,Z)),C(2,()=>{O(),A.emit()}))},item:(H,$)=>(r.current.add(H),$&&(a.current.has($)?a.current.get($).add(H):a.current.set($,new Set([H]))),C(3,()=>{G(),O(),n.current.value||P(),A.emit()}),()=>{i.current.delete(H),r.current.delete(H),n.current.filtered.items.delete(H);let Z=W();C(4,()=>{G(),(Z==null?void 0:Z.getAttribute("id"))===H&&P(),A.emit()})}),group:H=>(a.current.has(H)||a.current.set(H,new Set),()=>{i.current.delete(H),a.current.delete(H)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:S,inputId:N,labelId:_,listInnerRef:R}),[]);function D(H,$){var Z,Q;let ie=(Q=(Z=s.current)==null?void 0:Z.filter)!=null?Q:Sve;return H?ie(H,n.current.search,$):0}function O(){if(!n.current.search||s.current.shouldFilter===!1)return;let H=n.current.filtered.items,$=[];n.current.filtered.groups.forEach(Q=>{let ie=a.current.get(Q),te=0;ie.forEach(ce=>{let Te=H.get(ce);te=Math.max(Te,te)}),$.push([Q,te])});let Z=R.current;V().sort((Q,ie)=>{var te,ce;let Te=Q.getAttribute("id"),ne=ie.getAttribute("id");return((te=H.get(ne))!=null?te:0)-((ce=H.get(Te))!=null?ce:0)}).forEach(Q=>{let ie=Q.closest(_w);ie?ie.appendChild(Q.parentElement===ie?Q:Q.closest(`${_w} > *`)):Z.appendChild(Q.parentElement===Z?Q:Q.closest(`${_w} > *`))}),$.sort((Q,ie)=>ie[1]-Q[1]).forEach(Q=>{var ie;let te=(ie=R.current)==null?void 0:ie.querySelector(`${sf}[${ul}="${encodeURIComponent(Q[0])}"]`);te==null||te.parentElement.appendChild(te)})}function P(){let H=V().find(Z=>Z.getAttribute("aria-disabled")!=="true"),$=H==null?void 0:H.getAttribute(ul);A.setState("value",$||void 0)}function G(){var H,$,Z,Q;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ie=0;for(let te of r.current){let ce=($=(H=i.current.get(te))==null?void 0:H.value)!=null?$:"",Te=(Q=(Z=i.current.get(te))==null?void 0:Z.keywords)!=null?Q:[],ne=D(ce,Te);n.current.filtered.items.set(te,ne),ne>0&&ie++}for(let[te,ce]of a.current)for(let Te of ce)if(n.current.filtered.items.get(Te)>0){n.current.filtered.groups.add(te);break}n.current.filtered.count=ie}function j(){var H,$,Z;let Q=W();Q&&(((H=Q.parentElement)==null?void 0:H.firstChild)===Q&&((Z=($=Q.closest(sf))==null?void 0:$.querySelector(xve))==null||Z.scrollIntoView({block:"nearest"})),Q.scrollIntoView({block:"nearest"}))}function W(){var H;return(H=R.current)==null?void 0:H.querySelector(`${kN}[aria-selected="true"]`)}function V(){var H;return Array.from(((H=R.current)==null?void 0:H.querySelectorAll(cB))||[])}function B(H){let $=V()[H];$&&A.setState("value",$.getAttribute(ul))}function U(H){var $;let Z=W(),Q=V(),ie=Q.findIndex(ce=>ce===Z),te=Q[ie+H];($=s.current)!=null&&$.loop&&(te=ie+H<0?Q[Q.length-1]:ie+H===Q.length?Q[0]:Q[ie+H]),te&&A.setState("value",te.getAttribute(ul))}function M(H){let $=W(),Z=$==null?void 0:$.closest(sf),Q;for(;Z&&!Q;)Z=H>0?Nve(Z,sf):Lve(Z,sf),Q=Z==null?void 0:Z.querySelector(cB);Q?A.setState("value",Q.getAttribute(ul)):U(H)}let K=()=>B(V().length-1),F=H=>{H.preventDefault(),H.metaKey?K():H.altKey?M(1):U(1)},Y=H=>{H.preventDefault(),H.metaKey?B(0):H.altKey?M(-1):U(-1)};return T.createElement(mt.div,{ref:t,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:H=>{var $;if(($=w.onKeyDown)==null||$.call(w,H),!H.defaultPrevented)switch(H.key){case"n":case"j":{x&&H.ctrlKey&&F(H);break}case"ArrowDown":{F(H);break}case"p":case"k":{x&&H.ctrlKey&&Y(H);break}case"ArrowUp":{Y(H);break}case"Home":{H.preventDefault(),B(0);break}case"End":{H.preventDefault(),K();break}case"Enter":if(!H.nativeEvent.isComposing&&H.keyCode!==229){H.preventDefault();let Z=W();if(Z){let Q=new Event(VA);Z.dispatchEvent(Q)}}}}},T.createElement("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:Ive},l),_y(e,H=>T.createElement(zW.Provider,{value:A},T.createElement(BW.Provider,{value:I},H))))}),wve=T.forwardRef((e,t)=>{var n,r;let a=Er(),i=T.useRef(null),o=T.useContext($W),s=Bp(),l=UW(e),c=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:o==null?void 0:o.forceMount;Tl(()=>{if(!c)return s.item(a,o==null?void 0:o.id)},[c]);let d=HW(a,i,[e.value,e.children,i],e.keywords),p=_N(),h=Al(C=>C.value&&C.value===d.current),g=Al(C=>c||s.filter()===!1?!0:C.search?C.filtered.items.get(a)>0:!0);T.useEffect(()=>{let C=i.current;if(!(!C||e.disabled))return C.addEventListener(VA,b),()=>C.removeEventListener(VA,b)},[g,e.onSelect,e.disabled]);function b(){var C,A;y(),(A=(C=l.current).onSelect)==null||A.call(C,d.current)}function y(){p.setState("value",d.current,!0)}if(!g)return null;let{disabled:x,value:w,onSelect:S,forceMount:_,keywords:N,...R}=e;return T.createElement(mt.div,{ref:Qf([i,t]),...R,id:a,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!h,"data-disabled":!!x,"data-selected":!!h,onPointerMove:x||s.getDisablePointerSelection()?void 0:y,onClick:x?void 0:b},e.children)}),Eve=T.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:a,...i}=e,o=Er(),s=T.useRef(null),l=T.useRef(null),c=Er(),d=Bp(),p=Al(g=>a||d.filter()===!1?!0:g.search?g.filtered.groups.has(o):!0);Tl(()=>d.group(o),[]),HW(o,s,[e.value,e.heading,l]);let h=T.useMemo(()=>({id:o,forceMount:a}),[a]);return T.createElement(mt.div,{ref:Qf([s,t]),...i,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},n&&T.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),_y(e,g=>T.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},T.createElement($W.Provider,{value:h},g))))}),kve=T.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=T.useRef(null),i=Al(o=>!o.search);return!n&&!i?null:T.createElement(mt.div,{ref:Qf([a,t]),...r,"cmdk-separator":"",role:"separator"})}),_ve=T.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,i=_N(),o=Al(d=>d.search),s=Al(d=>d.value),l=Bp(),c=T.useMemo(()=>{var d;let p=(d=l.listInnerRef.current)==null?void 0:d.querySelector(`${kN}[${ul}="${encodeURIComponent(s)}"]`);return p==null?void 0:p.getAttribute("id")},[]);return T.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),T.createElement(mt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":c,id:l.inputId,type:"text",value:a?e.value:o,onChange:d=>{a||i.setState("search",d.target.value),n==null||n(d.target.value)}})}),Cve=T.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,i=T.useRef(null),o=T.useRef(null),s=Bp();return T.useEffect(()=>{if(o.current&&i.current){let l=o.current,c=i.current,d,p=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let h=l.offsetHeight;c.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return p.observe(l),()=>{cancelAnimationFrame(d),p.unobserve(l)}}},[]),T.createElement(mt.div,{ref:Qf([i,t]),...a,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},_y(e,l=>T.createElement("div",{ref:Qf([o,s.listInnerRef]),"cmdk-list-sizer":""},l)))}),Tve=T.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:i,container:o,...s}=e;return T.createElement(M2,{open:n,onOpenChange:r},T.createElement(F2,{container:o},T.createElement(iy,{"cmdk-overlay":"",className:a}),T.createElement(oy,{"aria-label":e.label,"cmdk-dialog":"",className:i},T.createElement(jW,{ref:t,...s}))))}),Ave=T.forwardRef((e,t)=>Al(n=>n.filtered.count===0)?T.createElement(mt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Rve=T.forwardRef((e,t)=>{let{progress:n,children:r,label:a="Loading...",...i}=e;return T.createElement(mt.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},_y(e,o=>T.createElement("div",{"aria-hidden":!0},o)))}),Qr=Object.assign(jW,{List:Cve,Item:wve,Input:_ve,Group:Eve,Separator:kve,Dialog:Tve,Empty:Ave,Loading:Rve});function Nve(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Lve(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function UW(e){let t=T.useRef(e);return Tl(()=>{t.current=e}),t}var Tl=typeof window>"u"?T.useEffect:T.useLayoutEffect;function Bc(e){let t=T.useRef();return t.current===void 0&&(t.current=e()),t}function Qf(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function Al(e){let t=_N(),n=()=>e(t.snapshot());return vve.useSyncExternalStore(t.subscribe,n,n)}function HW(e,t,n,r=[]){let a=T.useRef(),i=Bp();return Tl(()=>{var o;let s=(()=>{var c;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(c=d.current.textContent)==null?void 0:c.trim():a.current}})(),l=r.map(c=>c.trim());i.value(e,s,l),(o=t.current)==null||o.setAttribute(ul,s),a.current=s}),a}var Ove=()=>{let[e,t]=T.useState(),n=Bc(()=>new Map);return Tl(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,a)=>{n.current.set(r,a),t({})}};function Dve(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function _y({asChild:e,children:t},n){return e&&T.isValidElement(t)?T.cloneElement(Dve(t),{ref:t.ref},n(t.props.children)):n(t)}var Ive={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Cy=T.forwardRef(({className:e,...t},n)=>k.jsx(Qr,{ref:n,className:je("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t}));Cy.displayName=Qr.displayName;const CN=T.forwardRef(({className:e,...t},n)=>k.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[k.jsx(_pe,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),k.jsx(Qr.Input,{ref:n,className:je("placeholder:text-muted-foreground flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));CN.displayName=Qr.Input.displayName;const Ty=T.forwardRef(({className:e,...t},n)=>k.jsx(Qr.List,{ref:n,className:je("max-h-[300px] overflow-x-hidden overflow-y-auto",e),...t}));Ty.displayName=Qr.List.displayName;const TN=T.forwardRef((e,t)=>k.jsx(Qr.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));TN.displayName=Qr.Empty.displayName;const Wu=T.forwardRef(({className:e,...t},n)=>k.jsx(Qr.Group,{ref:n,className:je("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t}));Wu.displayName=Qr.Group.displayName;const Mve=T.forwardRef(({className:e,...t},n)=>k.jsx(Qr.Separator,{ref:n,className:je("bg-border -mx-1 h-px",e),...t}));Mve.displayName=Qr.Separator.displayName;const Vu=T.forwardRef(({className:e,...t},n)=>k.jsx(Qr.Item,{ref:n,className:je("data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Vu.displayName=Qr.Item.displayName;const Fve=({layout:e,autoRunFor:t,mainLayout:n})=>{const r=qa(),[a,i]=T.useState(!1),o=T.useRef(null),{t:s}=Ht(),l=T.useCallback(()=>{if(r)try{const d=r.getGraph();if(!d||d.order===0)return;const p=n.positions();lW(d,p,{duration:300})}catch(d){console.error("Error updating positions:",d),o.current&&(window.clearInterval(o.current),o.current=null,i(!1))}},[r,n]),c=T.useCallback(()=>{if(a){console.log("Stopping layout animation"),o.current&&(window.clearInterval(o.current),o.current=null);try{typeof e.kill=="function"?(e.kill(),console.log("Layout algorithm killed")):typeof e.stop=="function"&&(e.stop(),console.log("Layout algorithm stopped"))}catch(d){console.error("Error stopping layout algorithm:",d)}i(!1)}else console.log("Starting layout animation"),l(),o.current=window.setInterval(()=>{l()},200),i(!0),setTimeout(()=>{if(o.current){console.log("Auto-stopping layout animation after 3 seconds"),window.clearInterval(o.current),o.current=null,i(!1);try{typeof e.kill=="function"?e.kill():typeof e.stop=="function"&&e.stop()}catch(d){console.error("Error stopping layout algorithm:",d)}}},3e3)},[a,e,l]);return T.useEffect(()=>{if(!r){console.log("No sigma instance available");return}let d=null;return t!==void 0&&t>-1&&r.getGraph().order>0&&(console.log("Auto-starting layout animation"),l(),o.current=window.setInterval(()=>{l()},200),i(!0),t>0&&(d=window.setTimeout(()=>{console.log("Auto-stopping layout animation after timeout"),o.current&&(window.clearInterval(o.current),o.current=null),i(!1)},t))),()=>{o.current&&(window.clearInterval(o.current),o.current=null),d&&window.clearTimeout(d),i(!1)}},[t,r,l]),k.jsx(xt,{size:"icon",onClick:c,tooltip:s(a?"graphPanel.sideBar.layoutsControl.stopAnimation":"graphPanel.sideBar.layoutsControl.startAnimation"),variant:Pa,children:a?k.jsx(fpe,{}):k.jsx(mpe,{})})},Pve=()=>{const e=qa(),{t}=Ht(),[n,r]=T.useState("Circular"),[a,i]=T.useState(!1),o=Pe.use.graphLayoutMaxIterations(),s=Nye(),l=Cye(),c=sve(),d=nve({maxIterations:o,settings:{margin:5,expansion:1.1,gridSize:1,ratio:1,speed:3}}),p=Pye({maxIterations:o,settings:{attraction:3e-4,repulsion:.02,gravity:.02,inertia:.4,maxMove:100}}),h=IW({iterations:o}),g=rve(),b=Bye(),y=Vye(),x=T.useMemo(()=>({Circular:{layout:s},Circlepack:{layout:l},Random:{layout:c},Noverlaps:{layout:d,worker:g},"Force Directed":{layout:p,worker:b},"Force Atlas":{layout:h,worker:y}}),[l,s,p,h,d,c,b,g,y]),w=T.useCallback(S=>{console.debug("Running layout:",S);const{positions:_}=x[S].layout;try{const N=e.getGraph();if(!N){console.error("No graph available");return}const R=_();console.log("Positions calculated, animating nodes"),lW(N,R,{duration:400}),r(S)}catch(N){console.error("Error running layout:",N)}},[x,e]);return k.jsxs("div",{children:[k.jsx("div",{children:x[n]&&"worker"in x[n]&&k.jsx(Fve,{layout:x[n].worker,mainLayout:x[n].layout})}),k.jsx("div",{children:k.jsxs(my,{open:a,onOpenChange:i,children:[k.jsx(by,{asChild:!0,children:k.jsx(xt,{size:"icon",variant:Pa,onClick:()=>i(S=>!S),tooltip:t("graphPanel.sideBar.layoutsControl.layoutGraph"),children:k.jsx(Jfe,{})})}),k.jsx(Lp,{side:"right",align:"start",sideOffset:8,collisionPadding:5,sticky:"always",className:"p-1 min-w-auto",children:k.jsx(Cy,{children:k.jsx(Ty,{children:k.jsx(Wu,{children:Object.keys(x).map(S=>k.jsx(Vu,{onSelect:()=>{w(S)},className:"cursor-pointer text-xs",children:t(`graphPanel.sideBar.layoutsControl.layouts.${S}`)},S))})})})})]})})]})},GW=()=>{const e=T.useContext(x9);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},Ng=e=>!!(e.type.startsWith("mouse")&&e.buttons!==0),Bve=({disableHoverEffect:e})=>{const t=qa(),n=pW(),r=fW(),a=Pe.use.graphLayoutMaxIterations(),{assign:i}=IW({iterations:a}),{theme:o}=GW(),s=Pe.use.enableHideUnselectedEdges(),l=Pe.use.enableEdgeEvents(),c=Pe.use.showEdgeLabel(),d=Pe.use.showNodeLabel(),p=Pe.use.minEdgeSize(),h=Pe.use.maxEdgeSize(),g=Ue.use.selectedNode(),b=Ue.use.focusedNode(),y=Ue.use.selectedEdge(),x=Ue.use.focusedEdge(),w=Ue.use.sigmaGraph();return T.useEffect(()=>{if(w&&t){try{typeof t.setGraph=="function"?(t.setGraph(w),console.log("Binding graph to sigma instance")):(t.graph=w,console.warn("Simgma missing setGraph function, set graph property directly"))}catch(S){console.error("Error setting graph on sigma instance:",S)}i(),console.log("Initial layout applied to graph")}},[t,w,i,a]),T.useEffect(()=>{t&&(Ue.getState().sigmaInstance||(console.log("Setting sigma instance from GraphControl"),Ue.getState().setSigmaInstance(t)))},[t]),T.useEffect(()=>{const{setFocusedNode:S,setSelectedNode:_,setFocusedEdge:N,setSelectedEdge:R,clearSelection:C}=Ue.getState(),A={enterNode:I=>{Ng(I.event.original)||t.getGraph().hasNode(I.node)&&S(I.node)},leaveNode:I=>{Ng(I.event.original)||S(null)},clickNode:I=>{t.getGraph().hasNode(I.node)&&(_(I.node),R(null))},clickStage:()=>C()};l&&(A.clickEdge=I=>{R(I.edge),_(null)},A.enterEdge=I=>{Ng(I.event.original)||N(I.edge)},A.leaveEdge=I=>{Ng(I.event.original)||N(null)}),n(A)},[n,l]),T.useEffect(()=>{if(t&&w){const S=t.getGraph();let _=Number.MAX_SAFE_INTEGER,N=0;S.forEachEdge(C=>{const A=S.getEdgeAttribute(C,"originalWeight")||1;typeof A=="number"&&(_=Math.min(_,A),N=Math.max(N,A))});const R=N-_;if(R>0){const C=h-p;S.forEachEdge(A=>{const I=S.getEdgeAttribute(A,"originalWeight")||1;if(typeof I=="number"){const D=p+C*Math.pow((I-_)/R,.5);S.setEdgeAttribute(A,"size",D)}})}else S.forEachEdge(C=>{S.setEdgeAttribute(C,"size",p)});t.refresh()}},[t,w,p,h]),T.useEffect(()=>{const S=o==="dark",_=S?Mse:void 0,N=S?zse:void 0;r({enableEdgeEvents:l,renderEdgeLabels:c,renderLabels:d,nodeReducer:(R,C)=>{const A=t.getGraph(),I={...C,highlighted:C.highlighted||!1,labelColor:_};if(!e){I.highlighted=!1;const D=b||g,O=x||y;if(D&&A.hasNode(D))try{(R===D||A.neighbors(D).includes(R))&&(I.highlighted=!0,R===g&&(I.borderColor=Bse))}catch(P){console.error("Error in nodeReducer:",P)}else if(O&&A.hasEdge(O))A.extremities(O).includes(R)&&(I.highlighted=!0,I.size=3);else return I;I.highlighted?S&&(I.labelColor=Fse):I.color=Pse}return I},edgeReducer:(R,C)=>{const A=t.getGraph(),I={...C,hidden:!1,labelColor:_,color:N};if(!e){const D=b||g;if(D&&A.hasNode(D))try{s?A.extremities(R).includes(D)||(I.hidden=!0):A.extremities(R).includes(D)&&(I.color=vF)}catch(O){console.error("Error in edgeReducer:",O)}else{const O=y&&A.hasEdge(y)?y:null,P=x&&A.hasEdge(x)?x:null;(O||P)&&(R===O?I.color=$se:R===P?I.color=vF:s&&(I.hidden=!0))}}return I}})},[g,b,y,x,r,t,e,o,s,l,c,d]),null},zve=()=>{const{zoomIn:e,zoomOut:t,reset:n}=hW({duration:200,factor:1.5}),r=qa(),{t:a}=Ht(),i=T.useCallback(()=>e(),[e]),o=T.useCallback(()=>t(),[t]),s=T.useCallback(()=>{if(r)try{r.setCustomBBox(null),r.refresh();const d=r.getGraph();if(!(d!=null&&d.order)||d.nodes().length===0){n();return}r.getCamera().animate({x:.5,y:.5,ratio:1.1},{duration:1e3})}catch(d){console.error("Error resetting zoom:",d),n()}},[r,n]),l=T.useCallback(()=>{if(!r)return;const d=r.getCamera(),h=d.angle+Math.PI/8;d.animate({angle:h},{duration:200})},[r]),c=T.useCallback(()=>{if(!r)return;const d=r.getCamera(),h=d.angle-Math.PI/8;d.animate({angle:h},{duration:200})},[r]);return k.jsxs(k.Fragment,{children:[k.jsx(xt,{variant:Pa,onClick:l,tooltip:a("graphPanel.sideBar.zoomControl.rotateCamera"),size:"icon",children:k.jsx(Spe,{})}),k.jsx(xt,{variant:Pa,onClick:c,tooltip:a("graphPanel.sideBar.zoomControl.rotateCameraCounterClockwise"),size:"icon",children:k.jsx(vpe,{})}),k.jsx(xt,{variant:Pa,onClick:s,tooltip:a("graphPanel.sideBar.zoomControl.resetZoom"),size:"icon",children:k.jsx(Vfe,{})}),k.jsx(xt,{variant:Pa,onClick:i,tooltip:a("graphPanel.sideBar.zoomControl.zoomIn"),size:"icon",children:k.jsx(Ppe,{})}),k.jsx(xt,{variant:Pa,onClick:o,tooltip:a("graphPanel.sideBar.zoomControl.zoomOut"),size:"icon",children:k.jsx(zpe,{})})]})},$ve=()=>{const{isFullScreen:e,toggle:t}=wbe(),{t:n}=Ht();return k.jsx(k.Fragment,{children:e?k.jsx(xt,{variant:Pa,onClick:t,tooltip:n("graphPanel.sideBar.fullScreenControl.windowed"),size:"icon",children:k.jsx(lpe,{})}):k.jsx(xt,{variant:Pa,onClick:t,tooltip:n("graphPanel.sideBar.fullScreenControl.fullScreen"),size:"icon",children:k.jsx(ope,{})})})};var AN="Checkbox",[jve,K8e]=pi(AN),[Uve,Hve]=jve(AN),qW=T.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:i,required:o,disabled:s,value:l="on",onCheckedChange:c,form:d,...p}=e,[h,g]=T.useState(null),b=Wt(t,N=>g(N)),y=T.useRef(!1),x=h?d||!!h.closest("form"):!0,[w=!1,S]=Eo({prop:a,defaultProp:i,onChange:c}),_=T.useRef(w);return T.useEffect(()=>{const N=h==null?void 0:h.form;if(N){const R=()=>S(_.current);return N.addEventListener("reset",R),()=>N.removeEventListener("reset",R)}},[h,S]),k.jsxs(Uve,{scope:n,state:w,disabled:s,children:[k.jsx(mt.button,{type:"button",role:"checkbox","aria-checked":ms(w)?"mixed":w,"aria-required":o,"data-state":YW(w),"data-disabled":s?"":void 0,disabled:s,value:l,...p,ref:b,onKeyDown:pt(e.onKeyDown,N=>{N.key==="Enter"&&N.preventDefault()}),onClick:pt(e.onClick,N=>{S(R=>ms(R)?!0:!R),x&&(y.current=N.isPropagationStopped(),y.current||N.stopPropagation())})}),x&&k.jsx(Gve,{control:h,bubbles:!y.current,name:r,value:l,checked:w,required:o,disabled:s,form:d,style:{transform:"translateX(-100%)"},defaultChecked:ms(i)?!1:i})]})});qW.displayName=AN;var WW="CheckboxIndicator",VW=T.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,i=Hve(WW,n);return k.jsx(ba,{present:r||ms(i.state)||i.state===!0,children:k.jsx(mt.span,{"data-state":YW(i.state),"data-disabled":i.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});VW.displayName=WW;var Gve=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:a,...i}=e,o=T.useRef(null),s=w8(n),l=Lq(t);T.useEffect(()=>{const d=o.current,p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(s!==n&&g){const b=new Event("click",{bubbles:r});d.indeterminate=ms(n),g.call(d,ms(n)?!1:n),d.dispatchEvent(b)}},[s,n,r]);const c=T.useRef(ms(n)?!1:n);return k.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??c.current,...i,tabIndex:-1,ref:o,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function ms(e){return e==="indeterminate"}function YW(e){return ms(e)?"indeterminate":e?"checked":"unchecked"}var KW=qW,qve=VW;const Xc=T.forwardRef(({className:e,...t},n)=>k.jsx(KW,{ref:n,className:je("peer border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-muted data-[state=checked]:text-muted-foreground h-4 w-4 shrink-0 rounded-sm border focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:k.jsx(qve,{className:je("flex items-center justify-center text-current"),children:k.jsx(rN,{className:"h-4 w-4"})})}));Xc.displayName=KW.displayName;var Wve="Separator",uB="horizontal",Vve=["horizontal","vertical"],XW=T.forwardRef((e,t)=>{const{decorative:n,orientation:r=uB,...a}=e,i=Yve(r)?r:uB,s=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return k.jsx(mt.div,{"data-orientation":i,...s,...a,ref:t})});XW.displayName=Wve;function Yve(e){return Vve.includes(e)}var ZW=XW;const zc=T.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},a)=>k.jsx(ZW,{ref:a,decorative:n,orientation:t,className:je("bg-border shrink-0",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));zc.displayName=ZW.displayName;const is=({checked:e,onCheckedChange:t,label:n})=>{const r=`checkbox-${n.toLowerCase().replace(/\s+/g,"-")}`;return k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx(Xc,{id:r,checked:e,onCheckedChange:t}),k.jsx("label",{htmlFor:r,className:"text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:n})]})},Cw=({value:e,onEditFinished:t,label:n,min:r,max:a,defaultValue:i})=>{const{t:o}=Ht(),[s,l]=T.useState(e),c=`input-${n.toLowerCase().replace(/\s+/g,"-")}`,d=T.useCallback(g=>{const b=g.target.value.trim();if(b.length===0){l(null);return}const y=Number.parseInt(b);if(!isNaN(y)&&y!==s){if(r!==void 0&&y<r||a!==void 0&&y>a)return;l(y)}},[s,r,a]),p=T.useCallback(()=>{s!==null&&e!==s&&t(s)},[e,s,t]),h=T.useCallback(()=>{i!==void 0&&e!==i&&(l(i),t(i))},[i,e,t]);return k.jsxs("div",{className:"flex flex-col gap-2",children:[k.jsx("label",{htmlFor:c,className:"text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:n}),k.jsxs("div",{className:"flex items-center gap-1",children:[k.jsx(Ua,{id:c,type:"number",value:s===null?"":s,onChange:d,className:"h-6 w-full min-w-0 pr-1",min:r,max:a,onBlur:p,onKeyDown:g=>{g.key==="Enter"&&p()}}),i!==void 0&&k.jsx(xt,{variant:"ghost",size:"icon",className:"h-6 w-6 flex-shrink-0 hover:bg-muted text-muted-foreground hover:text-foreground",onClick:h,type:"button",title:o("graphPanel.sideBar.settings.resetToDefault"),children:k.jsx(o8,{className:"h-3.5 w-3.5"})})]})]})};function Kve(){const[e,t]=T.useState(!1),n=Pe.use.showPropertyPanel(),r=Pe.use.showNodeSearchBar(),a=Pe.use.showNodeLabel(),i=Pe.use.enableEdgeEvents(),o=Pe.use.enableNodeDrag(),s=Pe.use.enableHideUnselectedEdges(),l=Pe.use.showEdgeLabel(),c=Pe.use.minEdgeSize(),d=Pe.use.maxEdgeSize(),p=Pe.use.graphQueryMaxDepth(),h=Pe.use.graphMaxNodes(),g=Pe.use.graphLayoutMaxIterations(),b=Pe.use.enableHealthCheck(),y=T.useCallback(()=>Pe.setState(G=>({enableNodeDrag:!G.enableNodeDrag})),[]),x=T.useCallback(()=>Pe.setState(G=>({enableEdgeEvents:!G.enableEdgeEvents})),[]),w=T.useCallback(()=>Pe.setState(G=>({enableHideUnselectedEdges:!G.enableHideUnselectedEdges})),[]),S=T.useCallback(()=>Pe.setState(G=>({showEdgeLabel:!G.showEdgeLabel})),[]),_=T.useCallback(()=>Pe.setState(G=>({showPropertyPanel:!G.showPropertyPanel})),[]),N=T.useCallback(()=>Pe.setState(G=>({showNodeSearchBar:!G.showNodeSearchBar})),[]),R=T.useCallback(()=>Pe.setState(G=>({showNodeLabel:!G.showNodeLabel})),[]),C=T.useCallback(()=>Pe.setState(G=>({enableHealthCheck:!G.enableHealthCheck})),[]),A=T.useCallback(G=>{if(G<1)return;Pe.setState({graphQueryMaxDepth:G});const j=Pe.getState().queryLabel;Pe.getState().setQueryLabel(""),setTimeout(()=>{Pe.getState().setQueryLabel(j)},300)},[]),I=T.useCallback(G=>{if(G<1||G>1e3)return;Pe.setState({graphMaxNodes:G});const j=Pe.getState().queryLabel;Pe.getState().setQueryLabel(""),setTimeout(()=>{Pe.getState().setQueryLabel(j)},300)},[]),D=T.useCallback(G=>{G<1||Pe.setState({graphLayoutMaxIterations:G})},[]),{t:O}=Ht(),P=()=>t(!1);return k.jsx(k.Fragment,{children:k.jsxs(my,{open:e,onOpenChange:t,children:[k.jsx(by,{asChild:!0,children:k.jsx(xt,{variant:Pa,tooltip:O("graphPanel.sideBar.settings.settings"),size:"icon",children:k.jsx(Rpe,{})})}),k.jsx(Lp,{side:"right",align:"end",sideOffset:8,collisionPadding:5,className:"p-2 max-w-[200px]",onCloseAutoFocus:G=>G.preventDefault(),children:k.jsxs("div",{className:"flex flex-col gap-2",children:[k.jsx(is,{checked:b,onCheckedChange:C,label:O("graphPanel.sideBar.settings.healthCheck")}),k.jsx(zc,{}),k.jsx(is,{checked:n,onCheckedChange:_,label:O("graphPanel.sideBar.settings.showPropertyPanel")}),k.jsx(is,{checked:r,onCheckedChange:N,label:O("graphPanel.sideBar.settings.showSearchBar")}),k.jsx(zc,{}),k.jsx(is,{checked:a,onCheckedChange:R,label:O("graphPanel.sideBar.settings.showNodeLabel")}),k.jsx(is,{checked:o,onCheckedChange:y,label:O("graphPanel.sideBar.settings.nodeDraggable")}),k.jsx(zc,{}),k.jsx(is,{checked:l,onCheckedChange:S,label:O("graphPanel.sideBar.settings.showEdgeLabel")}),k.jsx(is,{checked:s,onCheckedChange:w,label:O("graphPanel.sideBar.settings.hideUnselectedEdges")}),k.jsx(is,{checked:i,onCheckedChange:x,label:O("graphPanel.sideBar.settings.edgeEvents")}),k.jsxs("div",{className:"flex flex-col gap-2",children:[k.jsx("label",{htmlFor:"edge-size-min",className:"text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:O("graphPanel.sideBar.settings.edgeSizeRange")}),k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx(Ua,{id:"edge-size-min",type:"number",value:c,onChange:G=>{const j=Number(G.target.value);!isNaN(j)&&j>=1&&j<=d&&Pe.setState({minEdgeSize:j})},className:"h-6 w-16 min-w-0 pr-1",min:1,max:Math.min(d,10)}),k.jsx("span",{children:"-"}),k.jsxs("div",{className:"flex items-center gap-1",children:[k.jsx(Ua,{id:"edge-size-max",type:"number",value:d,onChange:G=>{const j=Number(G.target.value);!isNaN(j)&&j>=c&&j>=1&&j<=10&&Pe.setState({maxEdgeSize:j})},className:"h-6 w-16 min-w-0 pr-1",min:c,max:10}),k.jsx(xt,{variant:"ghost",size:"icon",className:"h-6 w-6 flex-shrink-0 hover:bg-muted text-muted-foreground hover:text-foreground",onClick:()=>Pe.setState({minEdgeSize:1,maxEdgeSize:5}),type:"button",title:O("graphPanel.sideBar.settings.resetToDefault"),children:k.jsx(o8,{className:"h-3.5 w-3.5"})})]})]})]}),k.jsx(zc,{}),k.jsx(Cw,{label:O("graphPanel.sideBar.settings.maxQueryDepth"),min:1,value:p,defaultValue:3,onEditFinished:A}),k.jsx(Cw,{label:O("graphPanel.sideBar.settings.maxNodes"),min:1,max:1e3,value:h,defaultValue:1e3,onEditFinished:I}),k.jsx(Cw,{label:O("graphPanel.sideBar.settings.maxLayoutIterations"),min:1,max:30,value:g,defaultValue:15,onEditFinished:D}),k.jsx(zc,{}),k.jsx(xt,{onClick:P,variant:"outline",size:"sm",className:"ml-auto px-4",children:O("graphPanel.sideBar.settings.save")})]})})]})})}const Xve="ENTRIES",QW="KEYS",JW="VALUES",dr="";class Tw{constructor(t,n){const r=t._tree,a=Array.from(r.keys());this.set=t,this._type=n,this._path=a.length>0?[{node:r,keys:a}]:[]}next(){const t=this.dive();return this.backtrack(),t}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:t,keys:n}=Nc(this._path);if(Nc(n)===dr)return{done:!1,value:this.result()};const r=t.get(Nc(n));return this._path.push({node:r,keys:Array.from(r.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const t=Nc(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:t})=>Nc(t)).filter(t=>t!==dr).join("")}value(){return Nc(this._path).node.get(dr)}result(){switch(this._type){case JW:return this.value();case QW:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const Nc=e=>e[e.length-1],Zve=(e,t,n)=>{const r=new Map;if(t===void 0)return r;const a=t.length+1,i=a+n,o=new Uint8Array(i*a).fill(n+1);for(let s=0;s<a;++s)o[s]=s;for(let s=1;s<i;++s)o[s*a]=s;return eV(e,t,n,r,o,1,a,""),r},eV=(e,t,n,r,a,i,o,s)=>{const l=i*o;e:for(const c of e.keys())if(c===dr){const d=a[l-1];d<=n&&r.set(s,[e.get(c),d])}else{let d=i;for(let p=0;p<c.length;++p,++d){const h=c[p],g=o*d,b=g-o;let y=a[g];const x=Math.max(0,d-n-1),w=Math.min(o-1,d+n);for(let S=x;S<w;++S){const _=h!==t[S],N=a[b+S]+ +_,R=a[b+S+1]+1,C=a[g+S]+1,A=a[g+S+1]=Math.min(N,R,C);A<y&&(y=A)}if(y>n)continue e}eV(e.get(c),t,n,r,a,d,o,s+c)}};class ps{constructor(t=new Map,n=""){this._size=void 0,this._tree=t,this._prefix=n}atPrefix(t){if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");const[n,r]=Xm(this._tree,t.slice(this._prefix.length));if(n===void 0){const[a,i]=RN(r);for(const o of a.keys())if(o!==dr&&o.startsWith(i)){const s=new Map;return s.set(o.slice(i.length),a.get(o)),new ps(s,t)}}return new ps(n,t)}clear(){this._size=void 0,this._tree.clear()}delete(t){return this._size=void 0,Qve(this._tree,t)}entries(){return new Tw(this,Xve)}forEach(t){for(const[n,r]of this)t(n,r,this)}fuzzyGet(t,n){return Zve(this._tree,t,n)}get(t){const n=YA(this._tree,t);return n!==void 0?n.get(dr):void 0}has(t){const n=YA(this._tree,t);return n!==void 0&&n.has(dr)}keys(){return new Tw(this,QW)}set(t,n){if(typeof t!="string")throw new Error("key must be a string");return this._size=void 0,Aw(this._tree,t).set(dr,n),this}get size(){if(this._size)return this._size;this._size=0;const t=this.entries();for(;!t.next().done;)this._size+=1;return this._size}update(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;const r=Aw(this._tree,t);return r.set(dr,n(r.get(dr))),this}fetch(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;const r=Aw(this._tree,t);let a=r.get(dr);return a===void 0&&r.set(dr,a=n()),a}values(){return new Tw(this,JW)}[Symbol.iterator](){return this.entries()}static from(t){const n=new ps;for(const[r,a]of t)n.set(r,a);return n}static fromObject(t){return ps.from(Object.entries(t))}}const Xm=(e,t,n=[])=>{if(t.length===0||e==null)return[e,n];for(const r of e.keys())if(r!==dr&&t.startsWith(r))return n.push([e,r]),Xm(e.get(r),t.slice(r.length),n);return n.push([e,t]),Xm(void 0,"",n)},YA=(e,t)=>{if(t.length===0||e==null)return e;for(const n of e.keys())if(n!==dr&&t.startsWith(n))return YA(e.get(n),t.slice(n.length))},Aw=(e,t)=>{const n=t.length;e:for(let r=0;e&&r<n;){for(const i of e.keys())if(i!==dr&&t[r]===i[0]){const o=Math.min(n-r,i.length);let s=1;for(;s<o&&t[r+s]===i[s];)++s;const l=e.get(i);if(s===i.length)e=l;else{const c=new Map;c.set(i.slice(s),l),e.set(t.slice(r,r+s),c),e.delete(i),e=c}r+=s;continue e}const a=new Map;return e.set(t.slice(r),a),a}return e},Qve=(e,t)=>{const[n,r]=Xm(e,t);if(n!==void 0){if(n.delete(dr),n.size===0)tV(r);else if(n.size===1){const[a,i]=n.entries().next().value;nV(r,a,i)}}},tV=e=>{if(e.length===0)return;const[t,n]=RN(e);if(t.delete(n),t.size===0)tV(e.slice(0,-1));else if(t.size===1){const[r,a]=t.entries().next().value;r!==dr&&nV(e.slice(0,-1),r,a)}},nV=(e,t,n)=>{if(e.length===0)return;const[r,a]=RN(e);r.set(a+t,n),r.delete(a)},RN=e=>e[e.length-1],NN="or",rV="and",Jve="and_not";class bs{constructor(t){if((t==null?void 0:t.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const n=t.autoVacuum==null||t.autoVacuum===!0?Lw:t.autoVacuum;this._options={...Nw,...t,autoVacuum:n,searchOptions:{...dB,...t.searchOptions||{}},autoSuggestOptions:{...axe,...t.autoSuggestOptions||{}}},this._index=new ps,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=XA,this.addFields(this._options.fields)}add(t){const{extractField:n,tokenize:r,processTerm:a,fields:i,idField:o}=this._options,s=n(t,o);if(s==null)throw new Error(`MiniSearch: document does not have ID field "${o}"`);if(this._idToShortId.has(s))throw new Error(`MiniSearch: duplicate ID ${s}`);const l=this.addDocumentId(s);this.saveStoredFields(l,t);for(const c of i){const d=n(t,c);if(d==null)continue;const p=r(d.toString(),c),h=this._fieldIds[c],g=new Set(p).size;this.addFieldLength(l,h,this._documentCount-1,g);for(const b of p){const y=a(b,c);if(Array.isArray(y))for(const x of y)this.addTerm(h,l,x);else y&&this.addTerm(h,l,y)}}}addAll(t){for(const n of t)this.add(n)}addAllAsync(t,n={}){const{chunkSize:r=10}=n,a={chunk:[],promise:Promise.resolve()},{chunk:i,promise:o}=t.reduce(({chunk:s,promise:l},c,d)=>(s.push(c),(d+1)%r===0?{chunk:[],promise:l.then(()=>new Promise(p=>setTimeout(p,0))).then(()=>this.addAll(s))}:{chunk:s,promise:l}),a);return o.then(()=>this.addAll(i))}remove(t){const{tokenize:n,processTerm:r,extractField:a,fields:i,idField:o}=this._options,s=a(t,o);if(s==null)throw new Error(`MiniSearch: document does not have ID field "${o}"`);const l=this._idToShortId.get(s);if(l==null)throw new Error(`MiniSearch: cannot remove document with ID ${s}: it is not in the index`);for(const c of i){const d=a(t,c);if(d==null)continue;const p=n(d.toString(),c),h=this._fieldIds[c],g=new Set(p).size;this.removeFieldLength(l,h,this._documentCount,g);for(const b of p){const y=r(b,c);if(Array.isArray(y))for(const x of y)this.removeTerm(h,l,x);else y&&this.removeTerm(h,l,y)}}this._storedFields.delete(l),this._documentIds.delete(l),this._idToShortId.delete(s),this._fieldLength.delete(l),this._documentCount-=1}removeAll(t){if(t)for(const n of t)this.remove(n);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new ps,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(t){const n=this._idToShortId.get(t);if(n==null)throw new Error(`MiniSearch: cannot discard document with ID ${t}: it is not in the index`);this._idToShortId.delete(t),this._documentIds.delete(n),this._storedFields.delete(n),(this._fieldLength.get(n)||[]).forEach((r,a)=>{this.removeFieldLength(n,a,this._documentCount,r)}),this._fieldLength.delete(n),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:t,minDirtCount:n,batchSize:r,batchWait:a}=this._options.autoVacuum;this.conditionalVacuum({batchSize:r,batchWait:a},{minDirtCount:n,minDirtFactor:t})}discardAll(t){const n=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const r of t)this.discard(r)}finally{this._options.autoVacuum=n}this.maybeAutoVacuum()}replace(t){const{idField:n,extractField:r}=this._options,a=r(t,n);this.discard(a),this.add(t)}vacuum(t={}){return this.conditionalVacuum(t)}conditionalVacuum(t,n){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&n,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const r=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=XA,this.performVacuuming(t,r)}),this._enqueuedVacuum)):this.vacuumConditionsMet(n)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)}async performVacuuming(t,n){const r=this._dirtCount;if(this.vacuumConditionsMet(n)){const a=t.batchSize||KA.batchSize,i=t.batchWait||KA.batchWait;let o=1;for(const[s,l]of this._index){for(const[c,d]of l)for(const[p]of d)this._documentIds.has(p)||(d.size<=1?l.delete(c):d.delete(p));this._index.get(s).size===0&&this._index.delete(s),o%a===0&&await new Promise(c=>setTimeout(c,i)),o+=1}this._dirtCount-=r}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(t){if(t==null)return!0;let{minDirtCount:n,minDirtFactor:r}=t;return n=n||Lw.minDirtCount,r=r||Lw.minDirtFactor,this.dirtCount>=n&&this.dirtFactor>=r}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(t){return this._idToShortId.has(t)}getStoredFields(t){const n=this._idToShortId.get(t);if(n!=null)return this._storedFields.get(n)}search(t,n={}){const{searchOptions:r}=this._options,a={...r,...n},i=this.executeQuery(t,n),o=[];for(const[s,{score:l,terms:c,match:d}]of i){const p=c.length||1,h={id:this._documentIds.get(s),score:l*p,terms:Object.keys(d),queryTerms:c,match:d};Object.assign(h,this._storedFields.get(s)),(a.filter==null||a.filter(h))&&o.push(h)}return t===bs.wildcard&&a.boostDocument==null||o.sort(pB),o}autoSuggest(t,n={}){n={...this._options.autoSuggestOptions,...n};const r=new Map;for(const{score:i,terms:o}of this.search(t,n)){const s=o.join(" "),l=r.get(s);l!=null?(l.score+=i,l.count+=1):r.set(s,{score:i,terms:o,count:1})}const a=[];for(const[i,{score:o,terms:s,count:l}]of r)a.push({suggestion:i,terms:s,score:o/l});return a.sort(pB),a}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(t,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),n)}static async loadJSONAsync(t,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(t),n)}static getDefault(t){if(Nw.hasOwnProperty(t))return Rw(Nw,t);throw new Error(`MiniSearch: unknown option "${t}"`)}static loadJS(t,n){const{index:r,documentIds:a,fieldLength:i,storedFields:o,serializationVersion:s}=t,l=this.instantiateMiniSearch(t,n);l._documentIds=Lg(a),l._fieldLength=Lg(i),l._storedFields=Lg(o);for(const[c,d]of l._documentIds)l._idToShortId.set(d,c);for(const[c,d]of r){const p=new Map;for(const h of Object.keys(d)){let g=d[h];s===1&&(g=g.ds),p.set(parseInt(h,10),Lg(g))}l._index.set(c,p)}return l}static async loadJSAsync(t,n){const{index:r,documentIds:a,fieldLength:i,storedFields:o,serializationVersion:s}=t,l=this.instantiateMiniSearch(t,n);l._documentIds=await Og(a),l._fieldLength=await Og(i),l._storedFields=await Og(o);for(const[d,p]of l._documentIds)l._idToShortId.set(p,d);let c=0;for(const[d,p]of r){const h=new Map;for(const g of Object.keys(p)){let b=p[g];s===1&&(b=b.ds),h.set(parseInt(g,10),await Og(b))}++c%1e3===0&&await aV(0),l._index.set(d,h)}return l}static instantiateMiniSearch(t,n){const{documentCount:r,nextId:a,fieldIds:i,averageFieldLength:o,dirtCount:s,serializationVersion:l}=t;if(l!==1&&l!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const c=new bs(n);return c._documentCount=r,c._nextId=a,c._idToShortId=new Map,c._fieldIds=i,c._avgFieldLength=o,c._dirtCount=s||0,c._index=new ps,c}executeQuery(t,n={}){if(t===bs.wildcard)return this.executeWildcardQuery(n);if(typeof t!="string"){const h={...n,...t,queries:void 0},g=t.queries.map(b=>this.executeQuery(b,h));return this.combineResults(g,h.combineWith)}const{tokenize:r,processTerm:a,searchOptions:i}=this._options,o={tokenize:r,processTerm:a,...i,...n},{tokenize:s,processTerm:l}=o,p=s(t).flatMap(h=>l(h)).filter(h=>!!h).map(rxe(o)).map(h=>this.executeQuerySpec(h,o));return this.combineResults(p,o.combineWith)}executeQuerySpec(t,n){const r={...this._options.searchOptions,...n},a=(r.fields||this._options.fields).reduce((y,x)=>({...y,[x]:Rw(r.boost,x)||1}),{}),{boostDocument:i,weights:o,maxFuzzy:s,bm25:l}=r,{fuzzy:c,prefix:d}={...dB.weights,...o},p=this._index.get(t.term),h=this.termResults(t.term,t.term,1,t.termBoost,p,a,i,l);let g,b;if(t.prefix&&(g=this._index.atPrefix(t.term)),t.fuzzy){const y=t.fuzzy===!0?.2:t.fuzzy,x=y<1?Math.min(s,Math.round(t.term.length*y)):y;x&&(b=this._index.fuzzyGet(t.term,x))}if(g)for(const[y,x]of g){const w=y.length-t.term.length;if(!w)continue;b==null||b.delete(y);const S=d*y.length/(y.length+.3*w);this.termResults(t.term,y,S,t.termBoost,x,a,i,l,h)}if(b)for(const y of b.keys()){const[x,w]=b.get(y);if(!w)continue;const S=c*y.length/(y.length+w);this.termResults(t.term,y,S,t.termBoost,x,a,i,l,h)}return h}executeWildcardQuery(t){const n=new Map,r={...this._options.searchOptions,...t};for(const[a,i]of this._documentIds){const o=r.boostDocument?r.boostDocument(i,"",this._storedFields.get(a)):1;n.set(a,{score:o,terms:[],match:{}})}return n}combineResults(t,n=NN){if(t.length===0)return new Map;const r=n.toLowerCase(),a=exe[r];if(!a)throw new Error(`Invalid combination operator: ${n}`);return t.reduce(a)||new Map}toJSON(){const t=[];for(const[n,r]of this._index){const a={};for(const[i,o]of r)a[i]=Object.fromEntries(o);t.push([n,a])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:t,serializationVersion:2}}termResults(t,n,r,a,i,o,s,l,c=new Map){if(i==null)return c;for(const d of Object.keys(o)){const p=o[d],h=this._fieldIds[d],g=i.get(h);if(g==null)continue;let b=g.size;const y=this._avgFieldLength[h];for(const x of g.keys()){if(!this._documentIds.has(x)){this.removeTerm(h,x,n),b-=1;continue}const w=s?s(this._documentIds.get(x),n,this._storedFields.get(x)):1;if(!w)continue;const S=g.get(x),_=this._fieldLength.get(x)[h],N=nxe(S,b,this._documentCount,_,y,l),R=r*a*p*w*N,C=c.get(x);if(C){C.score+=R,ixe(C.terms,t);const A=Rw(C.match,n);A?A.push(d):C.match[n]=[d]}else c.set(x,{score:R,terms:[t],match:{[n]:[d]}})}}return c}addTerm(t,n,r){const a=this._index.fetch(r,hB);let i=a.get(t);if(i==null)i=new Map,i.set(n,1),a.set(t,i);else{const o=i.get(n);i.set(n,(o||0)+1)}}removeTerm(t,n,r){if(!this._index.has(r)){this.warnDocumentChanged(n,t,r);return}const a=this._index.fetch(r,hB),i=a.get(t);i==null||i.get(n)==null?this.warnDocumentChanged(n,t,r):i.get(n)<=1?i.size<=1?a.delete(t):i.delete(n):i.set(n,i.get(n)-1),this._index.get(r).size===0&&this._index.delete(r)}warnDocumentChanged(t,n,r){for(const a of Object.keys(this._fieldIds))if(this._fieldIds[a]===n){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(t)} has changed before removal: term "${r}" was not present in field "${a}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(t){const n=this._nextId;return this._idToShortId.set(t,n),this._documentIds.set(n,t),this._documentCount+=1,this._nextId+=1,n}addFields(t){for(let n=0;n<t.length;n++)this._fieldIds[t[n]]=n}addFieldLength(t,n,r,a){let i=this._fieldLength.get(t);i==null&&this._fieldLength.set(t,i=[]),i[n]=a;const s=(this._avgFieldLength[n]||0)*r+a;this._avgFieldLength[n]=s/(r+1)}removeFieldLength(t,n,r,a){if(r===1){this._avgFieldLength[n]=0;return}const i=this._avgFieldLength[n]*r-a;this._avgFieldLength[n]=i/(r-1)}saveStoredFields(t,n){const{storeFields:r,extractField:a}=this._options;if(r==null||r.length===0)return;let i=this._storedFields.get(t);i==null&&this._storedFields.set(t,i={});for(const o of r){const s=a(n,o);s!==void 0&&(i[o]=s)}}}bs.wildcard=Symbol("*");const Rw=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,exe={[NN]:(e,t)=>{for(const n of t.keys()){const r=e.get(n);if(r==null)e.set(n,t.get(n));else{const{score:a,terms:i,match:o}=t.get(n);r.score=r.score+a,r.match=Object.assign(r.match,o),fB(r.terms,i)}}return e},[rV]:(e,t)=>{const n=new Map;for(const r of t.keys()){const a=e.get(r);if(a==null)continue;const{score:i,terms:o,match:s}=t.get(r);fB(a.terms,o),n.set(r,{score:a.score+i,terms:a.terms,match:Object.assign(a.match,s)})}return n},[Jve]:(e,t)=>{for(const n of t.keys())e.delete(n);return e}},txe={k:1.2,b:.7,d:.5},nxe=(e,t,n,r,a,i)=>{const{k:o,b:s,d:l}=i;return Math.log(1+(n-t+.5)/(t+.5))*(l+e*(o+1)/(e+o*(1-s+s*r/a)))},rxe=e=>(t,n,r)=>{const a=typeof e.fuzzy=="function"?e.fuzzy(t,n,r):e.fuzzy||!1,i=typeof e.prefix=="function"?e.prefix(t,n,r):e.prefix===!0,o=typeof e.boostTerm=="function"?e.boostTerm(t,n,r):1;return{term:t,fuzzy:a,prefix:i,termBoost:o}},Nw={idField:"id",extractField:(e,t)=>e[t],tokenize:e=>e.split(oxe),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof(console==null?void 0:console[e])=="function"&&console[e](t)},autoVacuum:!0},dB={combineWith:NN,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:txe},axe={combineWith:rV,prefix:(e,t,n)=>t===n.length-1},KA={batchSize:1e3,batchWait:10},XA={minDirtFactor:.1,minDirtCount:20},Lw={...KA,...XA},ixe=(e,t)=>{e.includes(t)||e.push(t)},fB=(e,t)=>{for(const n of t)e.includes(n)||e.push(n)},pB=({score:e},{score:t})=>t-e,hB=()=>new Map,Lg=e=>{const t=new Map;for(const n of Object.keys(e))t.set(parseInt(n,10),e[n]);return t},Og=async e=>{const t=new Map;let n=0;for(const r of Object.keys(e))t.set(parseInt(r,10),e[r]),++n%1e3===0&&await aV(0);return t},aV=e=>new Promise(t=>setTimeout(t,e)),oxe=/[\n\r\p{Z}\p{P}]+/u,sxe={index:new bs({fields:[]})};T.createContext(sxe);const ZA=({label:e,color:t,hidden:n,labels:r={}})=>Re.createElement("div",{className:"node"},Re.createElement("span",{className:"render "+(n?"circle":"disc"),style:{backgroundColor:t||"#000"}}),Re.createElement("span",{className:`label ${n?"text-muted":""} ${e?"":"text-italic"}`},e||r.no_label||"No label")),lxe=({id:e,labels:t})=>{const n=qa(),r=T.useMemo(()=>{const a=n.getGraph().getNodeAttributes(e),i=n.getSetting("nodeReducer");return Object.assign(Object.assign({color:n.getSetting("defaultNodeColor")},a),i?i(e,a):{})},[n,e]);return Re.createElement(ZA,Object.assign({},r,{labels:t}))},cxe=({label:e,color:t,source:n,target:r,hidden:a,directed:i,labels:o={}})=>Re.createElement("div",{className:"edge"},Re.createElement(ZA,Object.assign({},n,{labels:o})),Re.createElement("div",{className:"body"},Re.createElement("div",{className:"render"},Re.createElement("span",{className:a?"dotted":"dash",style:{borderColor:t||"#000"}})," ",i&&Re.createElement("span",{className:"arrow",style:{borderTopColor:t||"#000"}})),Re.createElement("span",{className:`label ${a?"text-muted":""} ${e?"":"fst-italic"}`},e||o.no_label||"No label")),Re.createElement(ZA,Object.assign({},r,{labels:o}))),uxe=({id:e,labels:t})=>{const n=qa(),r=T.useMemo(()=>{const a=n.getGraph().getEdgeAttributes(e),i=n.getSetting("nodeReducer"),o=n.getSetting("edgeReducer"),s=n.getGraph().getNodeAttributes(n.getGraph().source(e)),l=n.getGraph().getNodeAttributes(n.getGraph().target(e));return Object.assign(Object.assign(Object.assign({color:n.getSetting("defaultEdgeColor"),directed:n.getGraph().isDirected(e)},a),o?o(e,a):{}),{source:Object.assign(Object.assign({color:n.getSetting("defaultNodeColor")},s),i?i(e,s):{}),target:Object.assign(Object.assign({color:n.getSetting("defaultNodeColor")},l),i?i(e,l):{})})},[n,e]);return Re.createElement(cxe,Object.assign({},r,{labels:t}))};function LN(e,t){const[n,r]=T.useState(e);return T.useEffect(()=>{const a=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(a)}},[e,t]),n}function dxe({fetcher:e,preload:t,filterFn:n,renderOption:r,getOptionValue:a,notFound:i,loadingSkeleton:o,label:s,placeholder:l="Select...",value:c,onChange:d,onFocus:p,disabled:h=!1,className:g,noResultsMessage:b}){const[y,x]=T.useState(!1),[w,S]=T.useState(!1),[_,N]=T.useState([]),[R,C]=T.useState(!1),[A,I]=T.useState(null),[D,O]=T.useState(""),P=LN(D,t?0:150),G=T.useRef(null);T.useEffect(()=>{x(!0)},[]),T.useEffect(()=>{const U=M=>{G.current&&!G.current.contains(M.target)&&w&&S(!1)};return document.addEventListener("mousedown",U),()=>{document.removeEventListener("mousedown",U)}},[w]);const j=T.useCallback(async U=>{try{C(!0),I(null);const M=await e(U);N(M)}catch(M){I(M instanceof Error?M.message:"Failed to fetch options")}finally{C(!1)}},[e]);T.useEffect(()=>{y&&(t?P&&N(U=>U.filter(M=>n?n(M,P):!0)):j(P))},[y,P,t,n,j]),T.useEffect(()=>{!y||!c||j(c)},[y,c,j]);const W=T.useCallback(U=>{d(U),requestAnimationFrame(()=>{const M=document.activeElement;M==null||M.blur(),S(!1)})},[d]),V=T.useCallback(()=>{S(!0),j(D)},[D,j]),B=T.useCallback(U=>{U.target.closest(".cmd-item")&&U.preventDefault()},[]);return k.jsx("div",{ref:G,className:je(h&&"cursor-not-allowed opacity-50",g),onMouseDown:B,children:k.jsxs(Cy,{shouldFilter:!1,className:"bg-transparent",children:[k.jsxs("div",{children:[k.jsx(CN,{placeholder:l,value:D,className:"max-h-8",onFocus:V,onValueChange:U=>{O(U),w||S(!0)}}),R&&k.jsx("div",{className:"absolute top-1/2 right-2 flex -translate-y-1/2 transform items-center",children:k.jsx(a8,{className:"h-4 w-4 animate-spin"})})]}),k.jsxs(Ty,{hidden:!w,children:[A&&k.jsx("div",{className:"text-destructive p-4 text-center",children:A}),R&&_.length===0&&(o||k.jsx(fxe,{})),!R&&!A&&_.length===0&&(i||k.jsx(TN,{children:b??`No ${s.toLowerCase()} found.`})),k.jsx(Wu,{children:_.map((U,M)=>k.jsxs(Re.Fragment,{children:[k.jsx(Vu,{value:a(U),onSelect:W,onMouseMove:()=>p(a(U)),className:"truncate cmd-item",children:r(U)},a(U)+`${M}`),M!==_.length-1&&k.jsx("div",{className:"bg-foreground/10 h-[1px]"},`divider-${M}`)]},a(U)+`-fragment-${M}`))})]})]})})}function fxe(){return k.jsx(Wu,{children:k.jsx(Vu,{disabled:!0,children:k.jsxs("div",{className:"flex w-full items-center gap-2",children:[k.jsx("div",{className:"bg-muted h-6 w-6 animate-pulse rounded-full"}),k.jsxs("div",{className:"flex flex-1 flex-col gap-1",children:[k.jsx("div",{className:"bg-muted h-4 w-24 animate-pulse rounded"}),k.jsx("div",{className:"bg-muted h-3 w-16 animate-pulse rounded"})]})]})})})}const Ow="__message_item",pxe=({id:e})=>{const t=Ue.use.sigmaGraph();return t!=null&&t.hasNode(e)?k.jsx(lxe,{id:e}):null};function hxe(e){return k.jsxs("div",{children:[e.type==="nodes"&&k.jsx(pxe,{id:e.id}),e.type==="edges"&&k.jsx(uxe,{id:e.id}),e.type==="message"&&k.jsx("div",{children:e.message})]})}const gxe=({onChange:e,onFocus:t,value:n})=>{const{t:r}=Ht(),a=Ue.use.sigmaGraph(),i=Ue.use.searchEngine();T.useEffect(()=>{a&&Ue.getState().resetSearchEngine()},[a]),T.useEffect(()=>{if(!a||a.nodes().length===0||i)return;const s=new bs({idField:"id",fields:["label"],searchOptions:{prefix:!0,fuzzy:.2,boost:{label:2}}}),l=a.nodes().map(c=>({id:c,label:a.getNodeAttribute(c,"label")}));s.addAll(l),Ue.getState().setSearchEngine(s)},[a,i]);const o=T.useCallback(async s=>{if(t&&t(null),!a||!i)return[];if(a.nodes().length===0)return[];if(!s)return a.nodes().filter(d=>a.hasNode(d)).slice(0,pg).map(d=>({id:d,type:"nodes"}));let l=i.search(s).filter(c=>a.hasNode(c.id)).map(c=>({id:c.id,type:"nodes"}));if(l.length<5){const c=new Set(l.map(p=>p.id)),d=a.nodes().filter(p=>{if(c.has(p))return!1;const h=a.getNodeAttribute(p,"label");return h&&typeof h=="string"&&!h.toLowerCase().startsWith(s.toLowerCase())&&h.toLowerCase().includes(s.toLowerCase())}).map(p=>({id:p,type:"nodes"}));l=[...l,...d]}return l.length<=pg?l:[...l.slice(0,pg),{type:"message",id:Ow,message:r("graphPanel.search.message",{count:l.length-pg})}]},[a,i,t,r]);return k.jsx(dxe,{className:"bg-background/60 w-24 rounded-xl border-1 opacity-60 backdrop-blur-lg transition-all hover:w-fit hover:opacity-100",fetcher:o,renderOption:hxe,getOptionValue:s=>s.id,value:n&&n.type!=="message"?n.id:null,onChange:s=>{s!==Ow&&e(s?{id:s,type:"nodes"}:null)},onFocus:s=>{s!==Ow&&t&&t(s?{id:s,type:"nodes"}:null)},label:"item",placeholder:r("graphPanel.search.placeholder")})},mxe=({...e})=>k.jsx(gxe,{...e});function bxe({fetcher:e,preload:t,filterFn:n,renderOption:r,getOptionValue:a,getDisplayValue:i,notFound:o,loadingSkeleton:s,label:l,placeholder:c="Select...",value:d,onChange:p,disabled:h=!1,className:g,triggerClassName:b,searchInputClassName:y,noResultsMessage:x,triggerTooltip:w,clearable:S=!0}){const[_,N]=T.useState(!1),[R,C]=T.useState(!1),[A,I]=T.useState([]),[D,O]=T.useState(!1),[P,G]=T.useState(null),[j,W]=T.useState(d),[V,B]=T.useState(null),[U,M]=T.useState(""),K=LN(U,t?0:150),[F,Y]=T.useState([]),[H,$]=T.useState(null);T.useEffect(()=>{N(!0),W(d)},[d]),T.useEffect(()=>{d&&(!A.length||!V)?$(k.jsx("div",{children:d})):V&&$(null)},[d,A.length,V]),T.useEffect(()=>{if(d&&A.length>0){const Q=A.find(ie=>a(ie)===d);Q&&B(Q)}},[d,A,a]),T.useEffect(()=>{_||(async()=>{try{O(!0),G(null);const ie=await e(d);Y(ie),I(ie)}catch(ie){G(ie instanceof Error?ie.message:"Failed to fetch options")}finally{O(!1)}})()},[_,e,d]),T.useEffect(()=>{const Q=async()=>{try{O(!0),G(null);const ie=await e(K);Y(ie),I(ie)}catch(ie){G(ie instanceof Error?ie.message:"Failed to fetch options")}finally{O(!1)}};_&&t?t&&I(K?F.filter(ie=>n?n(ie,K):!0):F):Q()},[e,K,_,t,n]);const Z=T.useCallback(Q=>{const ie=S&&Q===j?"":Q;W(ie),B(A.find(te=>a(te)===ie)||null),p(ie),C(!1)},[j,p,S,A,a]);return k.jsxs(my,{open:R,onOpenChange:C,children:[k.jsx(by,{asChild:!0,children:k.jsxs(xt,{variant:"outline",role:"combobox","aria-expanded":R,className:je("justify-between",h&&"cursor-not-allowed opacity-50",b),disabled:h,tooltip:w,side:"bottom",children:[d==="*"?k.jsx("div",{children:"*"}):V?i(V):H||c,k.jsx(Pfe,{className:"opacity-50",size:10})]})}),k.jsx(Lp,{className:je("p-0",g),onCloseAutoFocus:Q=>Q.preventDefault(),align:"start",sideOffset:8,collisionPadding:5,children:k.jsxs(Cy,{shouldFilter:!1,children:[k.jsxs("div",{className:"relative w-full border-b",children:[k.jsx(CN,{placeholder:`Search ${l.toLowerCase()}...`,value:U,onValueChange:Q=>{M(Q)},className:y}),D&&A.length>0&&k.jsx("div",{className:"absolute top-1/2 right-2 flex -translate-y-1/2 transform items-center",children:k.jsx(a8,{className:"h-4 w-4 animate-spin"})})]}),k.jsxs(Ty,{children:[P&&k.jsx("div",{className:"text-destructive p-4 text-center",children:P}),D&&A.length===0&&(s||k.jsx(yxe,{})),!D&&!P&&A.length===0&&(o||k.jsx(TN,{children:x??`No ${l.toLowerCase()} found.`})),k.jsx(Wu,{children:A.map(Q=>k.jsxs(Vu,{value:a(Q),onSelect:Z,className:"truncate",children:[r(Q),k.jsx(rN,{className:je("ml-auto h-3 w-3",j===a(Q)?"opacity-100":"opacity-0")})]},a(Q)))})]})]})})]})}function yxe(){return k.jsx(Wu,{children:k.jsx(Vu,{disabled:!0,children:k.jsxs("div",{className:"flex w-full items-center gap-2",children:[k.jsx("div",{className:"bg-muted h-6 w-6 animate-pulse rounded-full"}),k.jsxs("div",{className:"flex flex-1 flex-col gap-1",children:[k.jsx("div",{className:"bg-muted h-4 w-24 animate-pulse rounded"}),k.jsx("div",{className:"bg-muted h-3 w-16 animate-pulse rounded"})]})]})})})}const vxe=()=>{const{t:e}=Ht(),t=Pe.use.queryLabel(),n=Ue.use.allDatabaseLabels(),r=Ue.use.labelsFetchAttempted(),a=T.useCallback(()=>{const s=new bs({idField:"id",fields:["value"],searchOptions:{prefix:!0,fuzzy:.2,boost:{label:2}}}),l=n.map((c,d)=>({id:d,value:c}));return s.addAll(l),{labels:n,searchEngine:s}},[n]),i=T.useCallback(async s=>{const{labels:l,searchEngine:c}=a();let d=l;if(s&&(d=c.search(s).map(p=>l[p.id]),d.length<15)){const p=new Set(d),h=l.filter(g=>p.has(g)?!1:g&&typeof g=="string"&&!g.toLowerCase().startsWith(s.toLowerCase())&&g.toLowerCase().includes(s.toLowerCase()));d=[...d,...h]}return d.length<=xF?d:[...d.slice(0,xF),"..."]},[a]);T.useEffect(()=>{r&&(n.length>1?t&&t!=="*"&&!n.includes(t)?(console.log(`Label "${t}" not in available labels, setting to "*"`),Pe.getState().setQueryLabel("*")):console.log(`Label "${t}" is valid`):t&&n.length<=1&&t&&t!=="*"&&(console.log("Available labels list is empty, setting label to empty"),Pe.getState().setQueryLabel("")),Ue.getState().setLabelsFetchAttempted(!1))},[n,t,r]);const o=T.useCallback(()=>{Ue.getState().setLabelsFetchAttempted(!1),Ue.getState().setGraphDataFetchAttempted(!1),Ue.getState().setLastSuccessfulQueryLabel("");const s=Pe.getState().queryLabel;s?(Pe.getState().setQueryLabel(""),setTimeout(()=>{Pe.getState().setQueryLabel(s)},0)):Pe.getState().setQueryLabel("*")},[]);return k.jsxs("div",{className:"flex items-center",children:[k.jsx(xt,{size:"icon",variant:Pa,onClick:o,tooltip:e("graphPanel.graphLabels.refreshTooltip"),className:"mr-2",children:k.jsx(i8,{className:"h-4 w-4"})}),k.jsx(bxe,{className:"min-w-[300px]",triggerClassName:"max-h-8",searchInputClassName:"max-h-8",triggerTooltip:e("graphPanel.graphLabels.selectTooltip"),fetcher:i,renderOption:s=>k.jsx("div",{children:s}),getOptionValue:s=>s,getDisplayValue:s=>k.jsx("div",{children:s}),notFound:k.jsx("div",{className:"py-6 text-center text-sm",children:"No labels found"}),label:e("graphPanel.graphLabels.label"),placeholder:e("graphPanel.graphLabels.placeholder"),value:t!==null?t:"*",onChange:s=>{const l=Pe.getState().queryLabel;s==="..."&&(s="*"),s===l&&s!=="*"&&(s="*"),Ue.getState().setGraphDataFetchAttempted(!1),Pe.getState().setQueryLabel(s)},clearable:!1})]})},Hr=({text:e,className:t,tooltipClassName:n,tooltip:r,side:a,onClick:i})=>r?k.jsx(eN,{delayDuration:200,children:k.jsxs(tN,{children:[k.jsx(nN,{asChild:!0,children:k.jsx("label",{className:je(t,i!==void 0?"cursor-pointer":void 0),onClick:i,children:e})}),k.jsx(gy,{side:a,className:n,children:r})]})}):k.jsx("label",{className:je(t,i!==void 0?"cursor-pointer":void 0),onClick:i,children:e});var cm={exports:{}},xxe=cm.exports,gB;function Sxe(){return gB||(gB=1,function(e){(function(t,n,r){function a(l){var c=this,d=s();c.next=function(){var p=2091639*c.s0+c.c*23283064365386963e-26;return c.s0=c.s1,c.s1=c.s2,c.s2=p-(c.c=p|0)},c.c=1,c.s0=d(" "),c.s1=d(" "),c.s2=d(" "),c.s0-=d(l),c.s0<0&&(c.s0+=1),c.s1-=d(l),c.s1<0&&(c.s1+=1),c.s2-=d(l),c.s2<0&&(c.s2+=1),d=null}function i(l,c){return c.c=l.c,c.s0=l.s0,c.s1=l.s1,c.s2=l.s2,c}function o(l,c){var d=new a(l),p=c&&c.state,h=d.next;return h.int32=function(){return d.next()*4294967296|0},h.double=function(){return h()+(h()*2097152|0)*11102230246251565e-32},h.quick=h,p&&(typeof p=="object"&&i(p,d),h.state=function(){return i(d,{})}),h}function s(){var l=4022871197,c=function(d){d=String(d);for(var p=0;p<d.length;p++){l+=d.charCodeAt(p);var h=.02519603282416938*l;l=h>>>0,h-=l,h*=l,l=h>>>0,h-=l,l+=h*4294967296}return(l>>>0)*23283064365386963e-26};return c}n&&n.exports?n.exports=o:this.alea=o})(xxe,e)}(cm)),cm.exports}var um={exports:{}},wxe=um.exports,mB;function Exe(){return mB||(mB=1,function(e){(function(t,n,r){function a(s){var l=this,c="";l.x=0,l.y=0,l.z=0,l.w=0,l.next=function(){var p=l.x^l.x<<11;return l.x=l.y,l.y=l.z,l.z=l.w,l.w^=l.w>>>19^p^p>>>8},s===(s|0)?l.x=s:c+=s;for(var d=0;d<c.length+64;d++)l.x^=c.charCodeAt(d)|0,l.next()}function i(s,l){return l.x=s.x,l.y=s.y,l.z=s.z,l.w=s.w,l}function o(s,l){var c=new a(s),d=l&&l.state,p=function(){return(c.next()>>>0)/4294967296};return p.double=function(){do var h=c.next()>>>11,g=(c.next()>>>0)/4294967296,b=(h+g)/(1<<21);while(b===0);return b},p.int32=c.next,p.quick=p,d&&(typeof d=="object"&&i(d,c),p.state=function(){return i(c,{})}),p}n&&n.exports?n.exports=o:this.xor128=o})(wxe,e)}(um)),um.exports}var dm={exports:{}},kxe=dm.exports,bB;function _xe(){return bB||(bB=1,function(e){(function(t,n,r){function a(s){var l=this,c="";l.next=function(){var p=l.x^l.x>>>2;return l.x=l.y,l.y=l.z,l.z=l.w,l.w=l.v,(l.d=l.d+362437|0)+(l.v=l.v^l.v<<4^(p^p<<1))|0},l.x=0,l.y=0,l.z=0,l.w=0,l.v=0,s===(s|0)?l.x=s:c+=s;for(var d=0;d<c.length+64;d++)l.x^=c.charCodeAt(d)|0,d==c.length&&(l.d=l.x<<10^l.x>>>4),l.next()}function i(s,l){return l.x=s.x,l.y=s.y,l.z=s.z,l.w=s.w,l.v=s.v,l.d=s.d,l}function o(s,l){var c=new a(s),d=l&&l.state,p=function(){return(c.next()>>>0)/4294967296};return p.double=function(){do var h=c.next()>>>11,g=(c.next()>>>0)/4294967296,b=(h+g)/(1<<21);while(b===0);return b},p.int32=c.next,p.quick=p,d&&(typeof d=="object"&&i(d,c),p.state=function(){return i(c,{})}),p}n&&n.exports?n.exports=o:this.xorwow=o})(kxe,e)}(dm)),dm.exports}var fm={exports:{}},Cxe=fm.exports,yB;function Txe(){return yB||(yB=1,function(e){(function(t,n,r){function a(s){var l=this;l.next=function(){var d=l.x,p=l.i,h,g;return h=d[p],h^=h>>>7,g=h^h<<24,h=d[p+1&7],g^=h^h>>>10,h=d[p+3&7],g^=h^h>>>3,h=d[p+4&7],g^=h^h<<7,h=d[p+7&7],h=h^h<<13,g^=h^h<<9,d[p]=g,l.i=p+1&7,g};function c(d,p){var h,g=[];if(p===(p|0))g[0]=p;else for(p=""+p,h=0;h<p.length;++h)g[h&7]=g[h&7]<<15^p.charCodeAt(h)+g[h+1&7]<<13;for(;g.length<8;)g.push(0);for(h=0;h<8&&g[h]===0;++h);for(h==8?g[7]=-1:g[h],d.x=g,d.i=0,h=256;h>0;--h)d.next()}c(l,s)}function i(s,l){return l.x=s.x.slice(),l.i=s.i,l}function o(s,l){s==null&&(s=+new Date);var c=new a(s),d=l&&l.state,p=function(){return(c.next()>>>0)/4294967296};return p.double=function(){do var h=c.next()>>>11,g=(c.next()>>>0)/4294967296,b=(h+g)/(1<<21);while(b===0);return b},p.int32=c.next,p.quick=p,d&&(d.x&&i(d,c),p.state=function(){return i(c,{})}),p}n&&n.exports?n.exports=o:this.xorshift7=o})(Cxe,e)}(fm)),fm.exports}var pm={exports:{}},Axe=pm.exports,vB;function Rxe(){return vB||(vB=1,function(e){(function(t,n,r){function a(s){var l=this;l.next=function(){var d=l.w,p=l.X,h=l.i,g,b;return l.w=d=d+1640531527|0,b=p[h+34&127],g=p[h=h+1&127],b^=b<<13,g^=g<<17,b^=b>>>15,g^=g>>>12,b=p[h]=b^g,l.i=h,b+(d^d>>>16)|0};function c(d,p){var h,g,b,y,x,w=[],S=128;for(p===(p|0)?(g=p,p=null):(p=p+"\0",g=0,S=Math.max(S,p.length)),b=0,y=-32;y<S;++y)p&&(g^=p.charCodeAt((y+32)%p.length)),y===0&&(x=g),g^=g<<10,g^=g>>>15,g^=g<<4,g^=g>>>13,y>=0&&(x=x+1640531527|0,h=w[y&127]^=g+x,b=h==0?b+1:0);for(b>=128&&(w[(p&&p.length||0)&127]=-1),b=127,y=4*128;y>0;--y)g=w[b+34&127],h=w[b=b+1&127],g^=g<<13,h^=h<<17,g^=g>>>15,h^=h>>>12,w[b]=g^h;d.w=x,d.X=w,d.i=b}c(l,s)}function i(s,l){return l.i=s.i,l.w=s.w,l.X=s.X.slice(),l}function o(s,l){s==null&&(s=+new Date);var c=new a(s),d=l&&l.state,p=function(){return(c.next()>>>0)/4294967296};return p.double=function(){do var h=c.next()>>>11,g=(c.next()>>>0)/4294967296,b=(h+g)/(1<<21);while(b===0);return b},p.int32=c.next,p.quick=p,d&&(d.X&&i(d,c),p.state=function(){return i(c,{})}),p}n&&n.exports?n.exports=o:this.xor4096=o})(Axe,e)}(pm)),pm.exports}var hm={exports:{}},Nxe=hm.exports,xB;function Lxe(){return xB||(xB=1,function(e){(function(t,n,r){function a(s){var l=this,c="";l.next=function(){var p=l.b,h=l.c,g=l.d,b=l.a;return p=p<<25^p>>>7^h,h=h-g|0,g=g<<24^g>>>8^b,b=b-p|0,l.b=p=p<<20^p>>>12^h,l.c=h=h-g|0,l.d=g<<16^h>>>16^b,l.a=b-p|0},l.a=0,l.b=0,l.c=-1640531527,l.d=1367130551,s===Math.floor(s)?(l.a=s/4294967296|0,l.b=s|0):c+=s;for(var d=0;d<c.length+20;d++)l.b^=c.charCodeAt(d)|0,l.next()}function i(s,l){return l.a=s.a,l.b=s.b,l.c=s.c,l.d=s.d,l}function o(s,l){var c=new a(s),d=l&&l.state,p=function(){return(c.next()>>>0)/4294967296};return p.double=function(){do var h=c.next()>>>11,g=(c.next()>>>0)/4294967296,b=(h+g)/(1<<21);while(b===0);return b},p.int32=c.next,p.quick=p,d&&(typeof d=="object"&&i(d,c),p.state=function(){return i(c,{})}),p}n&&n.exports?n.exports=o:this.tychei=o})(Nxe,e)}(hm)),hm.exports}var gm={exports:{}};const Oxe={},Dxe=Object.freeze(Object.defineProperty({__proto__:null,default:Oxe},Symbol.toStringTag,{value:"Module"})),Ixe=Fre(Dxe);var Mxe=gm.exports,SB;function Fxe(){return SB||(SB=1,function(e){(function(t,n,r){var a=256,i=6,o=52,s="random",l=r.pow(a,i),c=r.pow(2,o),d=c*2,p=a-1,h;function g(N,R,C){var A=[];R=R==!0?{entropy:!0}:R||{};var I=w(x(R.entropy?[N,_(n)]:N??S(),3),A),D=new b(A),O=function(){for(var P=D.g(i),G=l,j=0;P<c;)P=(P+j)*a,G*=a,j=D.g(1);for(;P>=d;)P/=2,G/=2,j>>>=1;return(P+j)/G};return O.int32=function(){return D.g(4)|0},O.quick=function(){return D.g(4)/4294967296},O.double=O,w(_(D.S),n),(R.pass||C||function(P,G,j,W){return W&&(W.S&&y(W,D),P.state=function(){return y(D,{})}),j?(r[s]=P,G):P})(O,I,"global"in R?R.global:this==r,R.state)}function b(N){var R,C=N.length,A=this,I=0,D=A.i=A.j=0,O=A.S=[];for(C||(N=[C++]);I<a;)O[I]=I++;for(I=0;I<a;I++)O[I]=O[D=p&D+N[I%C]+(R=O[I])],O[D]=R;(A.g=function(P){for(var G,j=0,W=A.i,V=A.j,B=A.S;P--;)G=B[W=p&W+1],j=j*a+B[p&(B[W]=B[V=p&V+G])+(B[V]=G)];return A.i=W,A.j=V,j})(a)}function y(N,R){return R.i=N.i,R.j=N.j,R.S=N.S.slice(),R}function x(N,R){var C=[],A=typeof N,I;if(R&&A=="object")for(I in N)try{C.push(x(N[I],R-1))}catch{}return C.length?C:A=="string"?N:N+"\0"}function w(N,R){for(var C=N+"",A,I=0;I<C.length;)R[p&I]=p&(A^=R[p&I]*19)+C.charCodeAt(I++);return _(R)}function S(){try{var N;return h&&(N=h.randomBytes)?N=N(a):(N=new Uint8Array(a),(t.crypto||t.msCrypto).getRandomValues(N)),_(N)}catch{var R=t.navigator,C=R&&R.plugins;return[+new Date,t,C,t.screen,_(n)]}}function _(N){return String.fromCharCode.apply(0,N)}if(w(r.random(),n),e.exports){e.exports=g;try{h=Ixe}catch{}}else r["seed"+s]=g})(typeof self<"u"?self:Mxe,[],Math)}(gm)),gm.exports}var Dw,wB;function Pxe(){if(wB)return Dw;wB=1;var e=Sxe(),t=Exe(),n=_xe(),r=Txe(),a=Rxe(),i=Lxe(),o=Fxe();return o.alea=e,o.xor128=t,o.xorwow=n,o.xorshift7=r,o.xor4096=a,o.tychei=i,Dw=o,Dw}var Bxe=Pxe();const QA=Kn(Bxe),zxe={unknown:"unknown",未知:"unknown",other:"unknown",category:"category",类别:"category",type:"category",分类:"category",organization:"organization",组织:"organization",org:"organization",company:"organization",公司:"organization",机构:"organization",event:"event",事件:"event",activity:"event",活动:"event",person:"person",人物:"person",people:"person",human:"person",人:"person",animal:"animal",动物:"animal",creature:"animal",生物:"animal",geo:"geo",地理:"geo",geography:"geo",地域:"geo",location:"location",地点:"location",place:"location",address:"location",位置:"location",地址:"location",technology:"technology",技术:"technology",tech:"technology",科技:"technology",equipment:"equipment",设备:"equipment",device:"equipment",装备:"equipment",weapon:"weapon",武器:"weapon",arms:"weapon",军火:"weapon",object:"object",物品:"object",stuff:"object",物体:"object",group:"group",群组:"group",community:"group",社区:"group"},EB={unknown:"#f4d371",category:"#e3493b",organization:"#0f705d",event:"#00bfa0",person:"#4169E1",animal:"#84a3e1",geo:"#ff99cc",location:"#cf6d17",technology:"#b300b3",equipment:"#2F4F4F",weapon:"#4421af",object:"#00cc00",group:"#0f558a"},$xe=["#5a2c6d","#0000ff","#cd071e","#00CED1","#9b3a31","#b2e061","#bd7ebe","#6ef7b3","#003366","#DEB887"],kB=e=>{const t="#5D6D7E",n=e?e.toLowerCase():"unknown",r=Ue.getState().typeColorMap;if(r.has(n))return r.get(n)||t;const a=zxe[n];if(a){const c=EB[a],d=new Map(r);return d.set(n,c),Ue.setState({typeColorMap:d}),c}const i=new Set(Array.from(r.entries()).filter(([,c])=>!Object.values(EB).includes(c)).map(([,c])=>c)),s=$xe.find(c=>!i.has(c))||t,l=new Map(r);return l.set(n,s),Ue.setState({typeColorMap:l}),s},jxe=e=>{if(!e)return console.log("Graph validation failed: graph is null"),!1;if(!Array.isArray(e.nodes)||!Array.isArray(e.edges))return console.log("Graph validation failed: nodes or edges is not an array"),!1;if(e.nodes.length===0)return console.log("Graph validation failed: nodes array is empty"),!1;for(const t of e.nodes)if(!t.id||!t.labels||!t.properties)return console.log("Graph validation failed: invalid node structure"),!1;for(const t of e.edges)if(!t.id||!t.source||!t.target)return console.log("Graph validation failed: invalid edge structure"),!1;for(const t of e.edges){const n=e.getNode(t.source),r=e.getNode(t.target);if(n==null||r==null)return console.log("Graph validation failed: edge references non-existent node"),!1}return console.log("Graph validation passed"),!0},Uxe=async(e,t,n)=>{let r=null;if(!Ue.getState().lastSuccessfulQueryLabel){console.log("Last successful queryLabel is empty");try{await Ue.getState().fetchAllDatabaseLabels()}catch(s){console.error("Failed to fetch all database labels:",s)}}Ue.getState().setLabelsFetchAttempted(!0);const i=e||"*";try{console.log(`Fetching graph label: ${i}, depth: ${t}, nodes: ${n}`),r=await m9(i,t,n)}catch(s){return fa.getState().setErrorMessage(ua(s),"Query Graphs Error!"),null}let o=null;if(r){const s={},l={};for(let h=0;h<r.nodes.length;h++){const g=r.nodes[h];s[g.id]=h,g.x=Math.random(),g.y=Math.random(),g.degree=0,g.size=10}for(let h=0;h<r.edges.length;h++){const g=r.edges[h];l[g.id]=h;const b=s[g.source],y=s[g.target];if(b!==void 0&&b!==void 0){const x=r.nodes[b],w=r.nodes[y];if(!x){console.error(`Source node ${g.source} is undefined`);continue}if(!w){console.error(`Target node ${g.target} is undefined`);continue}x.degree+=1,w.degree+=1}}let c=Number.MAX_SAFE_INTEGER,d=0;for(const h of r.nodes)c=Math.min(c,h.degree),d=Math.max(d,h.degree);const p=d-c;if(p>0){const h=pA-cl;for(const g of r.nodes)g.size=Math.round(cl+h*Math.pow((g.degree-c)/p,.5))}o=new Yse,o.nodes=r.nodes,o.edges=r.edges,o.nodeIdMap=s,o.edgeIdMap=l,jxe(o)||(o=null,console.warn("Invalid graph data")),console.log("Graph data loaded")}return{rawGraph:o,is_truncated:r.is_truncated}},Hxe=e=>{var s,l;const t=Pe.getState().minEdgeSize,n=Pe.getState().maxEdgeSize;if(!e||!e.nodes.length)return console.log("No graph data available, skipping sigma graph creation"),null;const r=new Zf;for(const c of(e==null?void 0:e.nodes)??[]){QA(c.id+Date.now().toString(),{global:!0});const d=Math.random(),p=Math.random();r.addNode(c.id,{label:c.labels.join(", "),color:c.color,x:d,y:p,size:c.size,borderColor:fA,borderSize:.2})}for(const c of(e==null?void 0:e.edges)??[]){const d=((s=c.properties)==null?void 0:s.weight)!==void 0?Number(c.properties.weight):1;c.dynamicId=r.addEdge(c.source,c.target,{label:((l=c.properties)==null?void 0:l.keywords)||void 0,size:d,originalWeight:d,type:"curvedNoArrow"})}let a=Number.MAX_SAFE_INTEGER,i=0;r.forEachEdge(c=>{const d=r.getEdgeAttribute(c,"originalWeight")||1;a=Math.min(a,d),i=Math.max(i,d)});const o=i-a;if(o>0){const c=n-t;r.forEachEdge(d=>{const p=r.getEdgeAttribute(d,"originalWeight")||1,h=t+c*Math.pow((p-a)/o,.5);r.setEdgeAttribute(d,"size",h)})}else r.forEachEdge(c=>{r.setEdgeAttribute(c,"size",t)});return r},Gxe=()=>{const{t:e}=Ht(),t=Pe.use.queryLabel(),n=Ue.use.rawGraph(),r=Ue.use.sigmaGraph(),a=Pe.use.graphQueryMaxDepth(),i=Pe.use.graphMaxNodes(),o=Ue.use.isFetching(),s=Ue.use.nodeToExpand(),l=Ue.use.nodeToPrune(),c=T.useRef(!1),d=T.useRef(!1),p=T.useRef(!1),h=T.useCallback(w=>(n==null?void 0:n.getNode(w))||null,[n]),g=T.useCallback((w,S=!0)=>(n==null?void 0:n.getEdge(w,S))||null,[n]),b=T.useRef(!1);T.useEffect(()=>{if(!t&&(n!==null||r!==null)){const w=Ue.getState();w.reset(),w.setGraphDataFetchAttempted(!1),w.setLabelsFetchAttempted(!1),c.current=!1,d.current=!1}},[t,n,r]),T.useEffect(()=>{if(!b.current&&!(!t&&p.current)&&!o&&!Ue.getState().graphDataFetchAttempted){b.current=!0,Ue.getState().setGraphDataFetchAttempted(!0);const w=Ue.getState();w.setIsFetching(!0),w.clearSelection(),w.sigmaGraph&&w.sigmaGraph.forEachNode(C=>{var A;(A=w.sigmaGraph)==null||A.setNodeAttribute(C,"highlighted",!1)}),console.log("Preparing graph data...");const S=t,_=a,N=i;let R;S?R=Uxe(S,_,N):(console.log("Query label is empty, show empty graph"),R=Promise.resolve({rawGraph:null,is_truncated:!1})),R.then(C=>{const A=Ue.getState(),I=C==null?void 0:C.rawGraph;if(I&&I.nodes&&I.nodes.forEach(D=>{var P;const O=(P=D.properties)==null?void 0:P.entity_type;D.color=kB(O)}),C!=null&&C.is_truncated&&en.info(e("graphPanel.dataIsTruncated","Graph data is truncated to Max Nodes")),A.reset(),!I||!I.nodes||I.nodes.length===0){const D=new Zf;D.addNode("empty-graph-node",{label:e("graphPanel.emptyGraph"),color:"#5D6D7E",x:.5,y:.5,size:15,borderColor:fA,borderSize:.2}),A.setSigmaGraph(D),A.setRawGraph(null),A.setGraphIsEmpty(!0);const O=fa.getState().message,P=O&&O.includes("Authentication required");!P&&S&&Pe.getState().setQueryLabel(""),P?console.log("Keep queryLabel for post-login reload"):A.setLastSuccessfulQueryLabel(""),console.log(`Graph data is empty, created graph with empty graph node. Auth error: ${P}`)}else{const D=Hxe(I);I.buildDynamicMap(),A.setSigmaGraph(D),A.setRawGraph(I),A.setGraphIsEmpty(!1),A.setLastSuccessfulQueryLabel(S),A.setMoveToSelectedNode(!0)}c.current=!0,d.current=!0,b.current=!1,A.setIsFetching(!1),(!I||!I.nodes||I.nodes.length===0)&&!S&&(p.current=!0)}).catch(C=>{console.error("Error fetching graph data:",C);const A=Ue.getState();A.setIsFetching(!1),c.current=!1,b.current=!1,A.setGraphDataFetchAttempted(!1),A.setLastSuccessfulQueryLabel("")})}},[t,a,i,o,e]),T.useEffect(()=>{s&&((async S=>{var _,N,R,C,A,I;if(!(!S||!r||!n))try{const D=n.getNode(S);if(!D){console.error("Node not found:",S);return}const O=D.labels[0];if(!O){console.error("Node has no label:",S);return}const P=await m9(O,2,1e3);if(!P||!P.nodes||!P.edges){console.error("Failed to fetch extended graph");return}const G=[];for(const re of P.nodes){QA(re.id,{global:!0});const we=(_=re.properties)==null?void 0:_.entity_type,xe=kB(we);G.push({id:re.id,labels:re.labels,properties:re.properties,size:10,x:Math.random(),y:Math.random(),color:xe,degree:0})}const j=[];for(const re of P.edges)j.push({id:re.id,source:re.source,target:re.target,type:re.type,properties:re.properties,dynamicId:""});const W={};r.forEachNode(re=>{W[re]={x:r.getNodeAttribute(re,"x"),y:r.getNodeAttribute(re,"y")}});const V=new Set(r.nodes()),B=new Set,U=new Set,M=1;let K=0,F=Number.MAX_SAFE_INTEGER,Y=0;r.forEachNode(re=>{const we=r.degree(re);K=Math.max(K,we)}),r.forEachEdge(re=>{const we=r.getEdgeAttribute(re,"originalWeight")||1;F=Math.min(F,we),Y=Math.max(Y,we)});for(const re of G){if(V.has(re.id))continue;j.some(xe=>xe.source===S&&xe.target===re.id||xe.target===S&&xe.source===re.id)&&B.add(re.id)}const H=new Map,$=new Map,Z=new Set;for(const re of j){const we=V.has(re.source)||B.has(re.source),xe=V.has(re.target)||B.has(re.target);we&&xe?(U.add(re.id),B.has(re.source)?H.set(re.source,(H.get(re.source)||0)+1):V.has(re.source)&&$.set(re.source,($.get(re.source)||0)+1),B.has(re.target)?H.set(re.target,(H.get(re.target)||0)+1):V.has(re.target)&&$.set(re.target,($.get(re.target)||0)+1)):(r.hasNode(re.source)?Z.add(re.source):B.has(re.source)&&(Z.add(re.source),H.set(re.source,(H.get(re.source)||0)+1)),r.hasNode(re.target)?Z.add(re.target):B.has(re.target)&&(Z.add(re.target),H.set(re.target,(H.get(re.target)||0)+1)))}const Q=(re,we,xe,Se)=>{const ee=Se-xe||1,he=pA-cl;for(const Ae of we)if(re.hasNode(Ae)){let be=re.degree(Ae);be+=1;const Ce=Math.min(be,Se+1),ue=Math.round(cl+he*Math.pow((Ce-xe)/ee,.5));re.setNodeAttribute(Ae,"size",ue)}},ie=(re,we,xe)=>{const Se=Pe.getState().minEdgeSize,ee=Pe.getState().maxEdgeSize,he=xe-we||1,Ae=ee-Se;re.forEachEdge(be=>{const Ce=re.getEdgeAttribute(be,"originalWeight")||1,ue=Se+Ae*Math.pow((Ce-we)/he,.5);re.setEdgeAttribute(be,"size",ue)})};if(B.size===0){Q(r,Z,M,K),en.info(e("graphPanel.propertiesView.node.noNewNodes"));return}for(const[,re]of H.entries())K=Math.max(K,re);for(const[re,we]of $.entries()){const Se=r.degree(re)+we;K=Math.max(K,Se)}const te=K-M||1,ce=pA-cl,Te=((N=Ue.getState().sigmaInstance)==null?void 0:N.getCamera().ratio)||1,ne=Math.max(Math.sqrt(D.size)*4,Math.sqrt(B.size)*3)/Te;QA(Date.now().toString(),{global:!0});const Ee=Math.random()*2*Math.PI;console.log("nodeSize:",D.size,"nodesToAdd:",B.size),console.log("cameraRatio:",Math.round(Te*100)/100,"spreadFactor:",Math.round(ne*100)/100);for(const re of B){const we=G.find(Ce=>Ce.id===re),xe=H.get(re)||0,Se=Math.min(xe,K+1),ee=Math.round(cl+ce*Math.pow((Se-M)/te,.5)),he=2*Math.PI*(Array.from(B).indexOf(re)/B.size),Ae=((R=W[re])==null?void 0:R.x)||W[D.id].x+Math.cos(Ee+he)*ne,be=((C=W[re])==null?void 0:C.y)||W[D.id].y+Math.sin(Ee+he)*ne;r.addNode(re,{label:we.labels.join(", "),color:we.color,x:Ae,y:be,size:ee,borderColor:fA,borderSize:.2}),n.getNode(re)||(we.size=ee,we.x=Ae,we.y=be,we.degree=xe,n.nodes.push(we),n.nodeIdMap[re]=n.nodes.length-1)}for(const re of U){const we=j.find(Se=>Se.id===re);if(r.hasEdge(we.source,we.target))continue;const xe=((A=we.properties)==null?void 0:A.weight)!==void 0?Number(we.properties.weight):1;F=Math.min(F,xe),Y=Math.max(Y,xe),we.dynamicId=r.addEdge(we.source,we.target,{label:((I=we.properties)==null?void 0:I.keywords)||void 0,size:xe,originalWeight:xe,type:"curvedNoArrow"}),n.getEdge(we.id,!1)?console.error("Edge already exists in rawGraph:",we.id):(n.edges.push(we),n.edgeIdMap[we.id]=n.edges.length-1,n.edgeDynamicIdMap[we.dynamicId]=n.edges.length-1)}if(n.buildDynamicMap(),Ue.getState().resetSearchEngine(),Q(r,Z,M,K),ie(r,F,Y),r.hasNode(S)){const re=r.degree(S),we=Math.min(re,K+1),xe=Math.round(cl+ce*Math.pow((we-M)/te,.5));r.setNodeAttribute(S,"size",xe),D.size=xe,D.degree=re}}catch(D){console.error("Error expanding node:",D)}})(s),window.setTimeout(()=>{Ue.getState().triggerNodeExpand(null)},0))},[s,r,n,e]);const y=T.useCallback((w,S)=>{const _=new Set([w]);return S.forEachNode(N=>{if(N===w)return;const R=S.neighbors(N);R.length===1&&R[0]===w&&_.add(N)}),_},[]);return T.useEffect(()=>{l&&((S=>{if(!(!S||!r||!n))try{const _=Ue.getState();if(!r.hasNode(S)){console.error("Node not found:",S);return}const N=y(S,r);if(N.size===r.nodes().length){en.error(e("graphPanel.propertiesView.node.deleteAllNodesError"));return}_.clearSelection();for(const R of N){r.dropNode(R);const C=n.nodeIdMap[R];if(C!==void 0){const A=n.edges.filter(I=>I.source===R||I.target===R);for(const I of A){const D=n.edgeIdMap[I.id];if(D!==void 0){n.edges.splice(D,1);for(const[O,P]of Object.entries(n.edgeIdMap))P>D&&(n.edgeIdMap[O]=P-1);delete n.edgeIdMap[I.id],delete n.edgeDynamicIdMap[I.dynamicId]}}n.nodes.splice(C,1);for(const[I,D]of Object.entries(n.nodeIdMap))D>C&&(n.nodeIdMap[I]=D-1);delete n.nodeIdMap[R]}}n.buildDynamicMap(),Ue.getState().resetSearchEngine(),N.size>1&&en.info(e("graphPanel.propertiesView.node.nodesRemoved",{count:N.size}))}catch(_){console.error("Error pruning node:",_)}})(l),window.setTimeout(()=>{Ue.getState().triggerNodePrune(null)},0))},[l,r,n,y,e]),{lightrageGraph:T.useCallback(()=>{if(r)return r;console.log("Creating new Sigma graph instance");const w=new Zf;return Ue.getState().setSigmaGraph(w),w},[r]),getNode:h,getEdge:g}},qxe=({name:e})=>{const{t}=Ht(),n=r=>{const a=`graphPanel.propertiesView.node.propertyNames.${r}`,i=t(a);return i===a?r:i};return k.jsx("span",{className:"text-primary/60 tracking-wide whitespace-nowrap",children:n(e)})},Wxe=({onClick:e})=>k.jsx("div",{children:k.jsx(hpe,{className:"h-3 w-3 text-gray-500 hover:text-gray-700 cursor-pointer",onClick:e})}),Vxe=({value:e,onClick:t,tooltip:n})=>k.jsx("div",{className:"flex items-center gap-1 overflow-hidden",children:k.jsx(Hr,{className:"hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis whitespace-nowrap",tooltipClassName:"max-w-80 -translate-x-15",text:e,tooltip:n||(typeof e=="string"?e:JSON.stringify(e,null,2)),side:"left",onClick:t})}),Yxe=({isOpen:e,onClose:t,onSave:n,propertyName:r,initialValue:a,isSubmitting:i=!1})=>{const{t:o}=Ht(),[s,l]=T.useState("");T.useEffect(()=>{e&&l(a)},[e,a]);const c=h=>{const g=`graphPanel.propertiesView.node.propertyNames.${h}`,b=o(g);return b===g?h:b},d=h=>{switch(h){case"description":return{className:"max-h-[50vh] min-h-[10em] resize-y",style:{height:"70vh",minHeight:"20em",resize:"vertical"}};case"entity_id":return{rows:2,className:"",style:{}};case"keywords":return{rows:4,className:"",style:{}};default:return{rows:5,className:"",style:{}}}},p=()=>{s.trim()!==""&&(n(s),t())};return k.jsx(Rp,{open:e,onOpenChange:h=>!h&&t(),children:k.jsxs(Pu,{className:"sm:max-w-md",children:[k.jsxs(Bu,{children:[k.jsx(zu,{children:o("graphPanel.propertiesView.editProperty",{property:c(r)})}),k.jsx($u,{children:o("graphPanel.propertiesView.editPropertyDescription")})]}),k.jsx("div",{className:"grid gap-4 py-4",children:(()=>{const h=d(r);return r==="description"?k.jsx("textarea",{value:s,onChange:g=>l(g.target.value),className:`border-input focus-visible:ring-ring flex w-full rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${h.className}`,style:h.style,disabled:i}):k.jsx("textarea",{value:s,onChange:g=>l(g.target.value),rows:h.rows,className:`border-input focus-visible:ring-ring flex w-full rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${h.className}`,disabled:i})})()}),k.jsxs(oN,{children:[k.jsx(xt,{type:"button",variant:"outline",onClick:t,disabled:i,children:o("common.cancel")}),k.jsx(xt,{type:"button",onClick:p,disabled:i,children:o("common.save")})]})]})})},Kxe=({name:e,value:t,onClick:n,nodeId:r,edgeId:a,entityId:i,dynamicId:o,entityType:s,sourceId:l,targetId:c,onValueChange:d,isEditable:p=!1,tooltip:h})=>{const{t:g}=Ht(),[b,y]=T.useState(!1),[x,w]=T.useState(!1),[S,_]=T.useState(t);T.useEffect(()=>{_(t)},[t]);const N=()=>{p&&!b&&y(!0)},R=()=>{y(!1)},C=async A=>{if(x||A===String(S)){y(!1);return}w(!0);try{if(s==="node"&&i&&r){let I={[e]:A};if(e==="entity_id"){if(await ule(A)){en.error(g("graphPanel.propertiesView.errors.duplicateName"));return}I={entity_name:A}}await lle(i,I,!0);try{await Ue.getState().updateNodeAndSelect(r,i,e,A)}catch(D){throw console.error("Error updating node in graph:",D),new Error("Failed to update node in graph")}en.success(g("graphPanel.propertiesView.success.entityUpdated"))}else if(s==="edge"&&l&&c&&a&&o){const I={[e]:A};await cle(l,c,I);try{await Ue.getState().updateEdgeAndSelect(a,o,l,c,e,A)}catch(D){throw console.error(`Error updating edge ${l}->${c} in graph:`,D),new Error("Failed to update edge in graph")}en.success(g("graphPanel.propertiesView.success.relationUpdated"))}y(!1),_(A),d==null||d(A)}catch(I){console.error("Error updating property:",I),en.error(g("graphPanel.propertiesView.errors.updateFailed"))}finally{w(!1)}};return k.jsxs("div",{className:"flex items-center gap-1 overflow-hidden",children:[k.jsx(qxe,{name:e}),k.jsx(Wxe,{onClick:N}),":",k.jsx(Vxe,{value:S,onClick:n,tooltip:h||(typeof S=="string"?S:JSON.stringify(S,null,2))}),k.jsx(Yxe,{isOpen:b,onClose:R,onSave:C,propertyName:e,initialValue:String(S),isSubmitting:x})]})},Xxe=()=>{const{getNode:e,getEdge:t}=Gxe(),n=Ue.use.selectedNode(),r=Ue.use.focusedNode(),a=Ue.use.selectedEdge(),i=Ue.use.focusedEdge(),o=Ue.use.graphDataVersion(),[s,l]=T.useState(null),[c,d]=T.useState(null);return T.useEffect(()=>{let p=null,h=null;r?(p="node",h=e(r)):n?(p="node",h=e(n)):i?(p="edge",h=t(i,!0)):a&&(p="edge",h=t(a,!0)),h?(p=="node"?l(Zxe(h)):l(Qxe(h)),d(p)):(l(null),d(null))},[r,n,i,a,o,l,d,e,t]),s?k.jsx("div",{className:"bg-background/80 max-w-xs rounded-lg border-2 p-2 text-xs backdrop-blur-lg",children:c=="node"?k.jsx(Jxe,{node:s}):k.jsx(eSe,{edge:s})}):k.jsx(k.Fragment,{})},Zxe=e=>{const t=Ue.getState(),n=[];if(t.sigmaGraph&&t.rawGraph)try{if(!t.sigmaGraph.hasNode(e.id))return console.warn("Node not found in sigmaGraph:",e.id),{...e,relationships:[]};const r=t.sigmaGraph.edges(e.id);for(const a of r){if(!t.sigmaGraph.hasEdge(a))continue;const i=t.rawGraph.getEdge(a,!0);if(i){const s=e.id===i.source?i.target:i.source;if(!t.sigmaGraph.hasNode(s))continue;const l=t.rawGraph.getNode(s);l&&n.push({type:"Neighbour",id:s,label:l.properties.entity_id?l.properties.entity_id:l.labels.join(", ")})}}}catch(r){console.error("Error refining node properties:",r)}return{...e,relationships:n}},Qxe=e=>{const t=Ue.getState();let n,r;if(t.sigmaGraph&&t.rawGraph)try{if(!t.sigmaGraph.hasEdge(e.dynamicId))return console.warn("Edge not found in sigmaGraph:",e.id,"dynamicId:",e.dynamicId),{...e,sourceNode:void 0,targetNode:void 0};t.sigmaGraph.hasNode(e.source)&&(n=t.rawGraph.getNode(e.source)),t.sigmaGraph.hasNode(e.target)&&(r=t.rawGraph.getNode(e.target))}catch(a){console.error("Error refining edge properties:",a)}return{...e,sourceNode:n,targetNode:r}},Ai=({name:e,value:t,onClick:n,tooltip:r,nodeId:a,edgeId:i,dynamicId:o,entityId:s,entityType:l,sourceId:c,targetId:d,isEditable:p=!1})=>{const{t:h}=Ht(),g=b=>{const y=`graphPanel.propertiesView.node.propertyNames.${b}`,x=h(y);return x===y?b:x};return p&&(e==="description"||e==="entity_id"||e==="keywords")?k.jsx(Kxe,{name:e,value:t,onClick:n,nodeId:a,entityId:s,edgeId:i,dynamicId:o,entityType:l,sourceId:c,targetId:d,isEditable:!0,tooltip:r||(typeof t=="string"?t:JSON.stringify(t,null,2))}):k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("span",{className:"text-primary/60 tracking-wide whitespace-nowrap",children:g(e)}),":",k.jsx(Hr,{className:"hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis",tooltipClassName:"max-w-80 -translate-x-13",text:t,tooltip:r||(typeof t=="string"?t:JSON.stringify(t,null,2)),side:"left",onClick:n})]})},Jxe=({node:e})=>{const{t}=Ht(),n=()=>{Ue.getState().triggerNodeExpand(e.id)},r=()=>{Ue.getState().triggerNodePrune(e.id)};return k.jsxs("div",{className:"flex flex-col gap-2",children:[k.jsxs("div",{className:"flex justify-between items-center",children:[k.jsx("h3",{className:"text-md pl-1 font-bold tracking-wide text-blue-700",children:t("graphPanel.propertiesView.node.title")}),k.jsxs("div",{className:"flex gap-3",children:[k.jsx(xt,{size:"icon",variant:"ghost",className:"h-7 w-7 border border-gray-400 hover:bg-gray-200 dark:border-gray-600 dark:hover:bg-gray-700",onClick:n,tooltip:t("graphPanel.propertiesView.node.expandNode"),children:k.jsx(Kfe,{className:"h-4 w-4 text-gray-700 dark:text-gray-300"})}),k.jsx(xt,{size:"icon",variant:"ghost",className:"h-7 w-7 border border-gray-400 hover:bg-gray-200 dark:border-gray-600 dark:hover:bg-gray-700",onClick:r,tooltip:t("graphPanel.propertiesView.node.pruneNode"),children:k.jsx(Epe,{className:"h-4 w-4 text-gray-900 dark:text-gray-300"})})]})]}),k.jsxs("div",{className:"bg-primary/5 max-h-96 overflow-auto rounded p-1",children:[k.jsx(Ai,{name:t("graphPanel.propertiesView.node.id"),value:String(e.id)}),k.jsx(Ai,{name:t("graphPanel.propertiesView.node.labels"),value:e.labels.join(", "),onClick:()=>{Ue.getState().setSelectedNode(e.id,!0)}}),k.jsx(Ai,{name:t("graphPanel.propertiesView.node.degree"),value:e.degree})]}),k.jsx("h3",{className:"text-md pl-1 font-bold tracking-wide text-amber-700",children:t("graphPanel.propertiesView.node.properties")}),k.jsx("div",{className:"bg-primary/5 max-h-96 overflow-auto rounded p-1",children:Object.keys(e.properties).sort().map(a=>k.jsx(Ai,{name:a,value:e.properties[a],nodeId:String(e.id),entityId:e.properties.entity_id,entityType:"node",isEditable:a==="description"||a==="entity_id"},a))}),e.relationships.length>0&&k.jsxs(k.Fragment,{children:[k.jsx("h3",{className:"text-md pl-1 font-bold tracking-wide text-emerald-700",children:t("graphPanel.propertiesView.node.relationships")}),k.jsx("div",{className:"bg-primary/5 max-h-96 overflow-auto rounded p-1",children:e.relationships.map(({type:a,id:i,label:o})=>k.jsx(Ai,{name:a,value:o,onClick:()=>{Ue.getState().setSelectedNode(i,!0)}},i))})]})]})},eSe=({edge:e})=>{const{t}=Ht();return k.jsxs("div",{className:"flex flex-col gap-2",children:[k.jsx("h3",{className:"text-md pl-1 font-bold tracking-wide text-violet-700",children:t("graphPanel.propertiesView.edge.title")}),k.jsxs("div",{className:"bg-primary/5 max-h-96 overflow-auto rounded p-1",children:[k.jsx(Ai,{name:t("graphPanel.propertiesView.edge.id"),value:e.id}),e.type&&k.jsx(Ai,{name:t("graphPanel.propertiesView.edge.type"),value:e.type}),k.jsx(Ai,{name:t("graphPanel.propertiesView.edge.source"),value:e.sourceNode?e.sourceNode.labels.join(", "):e.source,onClick:()=>{Ue.getState().setSelectedNode(e.source,!0)}}),k.jsx(Ai,{name:t("graphPanel.propertiesView.edge.target"),value:e.targetNode?e.targetNode.labels.join(", "):e.target,onClick:()=>{Ue.getState().setSelectedNode(e.target,!0)}})]}),k.jsx("h3",{className:"text-md pl-1 font-bold tracking-wide text-amber-700",children:t("graphPanel.propertiesView.edge.properties")}),k.jsx("div",{className:"bg-primary/5 max-h-96 overflow-auto rounded p-1",children:Object.keys(e.properties).sort().map(n=>{var r,a;return k.jsx(Ai,{name:n,value:e.properties[n],edgeId:String(e.id),dynamicId:String(e.dynamicId),entityType:"edge",sourceId:((r=e.sourceNode)==null?void 0:r.properties.entity_id)||e.source,targetId:((a=e.targetNode)==null?void 0:a.properties.entity_id)||e.target,isEditable:n==="description"||n==="keywords"},n)})})]})},tSe=()=>{const{t:e}=Ht(),t=Pe.use.graphQueryMaxDepth(),n=Pe.use.graphMaxNodes();return k.jsxs("div",{className:"absolute bottom-4 left-[calc(1rem+2.5rem)] flex items-center gap-2 text-xs text-gray-400",children:[k.jsxs("div",{children:[e("graphPanel.sideBar.settings.depth"),": ",t]}),k.jsxs("div",{children:[e("graphPanel.sideBar.settings.max"),": ",n]})]})},Rl=T.forwardRef(({className:e,...t},n)=>k.jsx("div",{ref:n,className:je("bg-card text-card-foreground rounded-xl border shadow",e),...t}));Rl.displayName="Card";const Jf=T.forwardRef(({className:e,...t},n)=>k.jsx("div",{ref:n,className:je("flex flex-col space-y-1.5 p-6",e),...t}));Jf.displayName="CardHeader";const ep=T.forwardRef(({className:e,...t},n)=>k.jsx("div",{ref:n,className:je("leading-none font-semibold tracking-tight",e),...t}));ep.displayName="CardTitle";const Ay=T.forwardRef(({className:e,...t},n)=>k.jsx("div",{ref:n,className:je("text-muted-foreground text-sm",e),...t}));Ay.displayName="CardDescription";const tp=T.forwardRef(({className:e,...t},n)=>k.jsx("div",{ref:n,className:je("p-6 pt-0",e),...t}));tp.displayName="CardContent";const nSe=T.forwardRef(({className:e,...t},n)=>k.jsx("div",{ref:n,className:je("flex items-center p-6 pt-0",e),...t}));nSe.displayName="CardFooter";function rSe(e,t){return T.useReducer((n,r)=>t[n][r]??n,e)}var ON="ScrollArea",[iV,X8e]=pi(ON),[aSe,Wa]=iV(ON),oV=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:a,scrollHideDelay:i=600,...o}=e,[s,l]=T.useState(null),[c,d]=T.useState(null),[p,h]=T.useState(null),[g,b]=T.useState(null),[y,x]=T.useState(null),[w,S]=T.useState(0),[_,N]=T.useState(0),[R,C]=T.useState(!1),[A,I]=T.useState(!1),D=Wt(t,P=>l(P)),O=yy(a);return k.jsx(aSe,{scope:n,type:r,dir:O,scrollHideDelay:i,scrollArea:s,viewport:c,onViewportChange:d,content:p,onContentChange:h,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:R,onScrollbarXEnabledChange:C,scrollbarY:y,onScrollbarYChange:x,scrollbarYEnabled:A,onScrollbarYEnabledChange:I,onCornerWidthChange:S,onCornerHeightChange:N,children:k.jsx(mt.div,{dir:O,...o,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":w+"px","--radix-scroll-area-corner-height":_+"px",...e.style}})})});oV.displayName=ON;var sV="ScrollAreaViewport",lV=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:a,...i}=e,o=Wa(sV,n),s=T.useRef(null),l=Wt(t,s,o.onViewportChange);return k.jsxs(k.Fragment,{children:[k.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),k.jsx(mt.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:k.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});lV.displayName=sV;var $i="ScrollAreaScrollbar",DN=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=Wa($i,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:o}=a,s=e.orientation==="horizontal";return T.useEffect(()=>(s?i(!0):o(!0),()=>{s?i(!1):o(!1)}),[s,i,o]),a.type==="hover"?k.jsx(iSe,{...r,ref:t,forceMount:n}):a.type==="scroll"?k.jsx(oSe,{...r,ref:t,forceMount:n}):a.type==="auto"?k.jsx(cV,{...r,ref:t,forceMount:n}):a.type==="always"?k.jsx(IN,{...r,ref:t}):null});DN.displayName=$i;var iSe=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=Wa($i,e.__scopeScrollArea),[i,o]=T.useState(!1);return T.useEffect(()=>{const s=a.scrollArea;let l=0;if(s){const c=()=>{window.clearTimeout(l),o(!0)},d=()=>{l=window.setTimeout(()=>o(!1),a.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",d)}}},[a.scrollArea,a.scrollHideDelay]),k.jsx(ba,{present:n||i,children:k.jsx(cV,{"data-state":i?"visible":"hidden",...r,ref:t})})}),oSe=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=Wa($i,e.__scopeScrollArea),i=e.orientation==="horizontal",o=Ny(()=>l("SCROLL_END"),100),[s,l]=rSe("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return T.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>l("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,a.scrollHideDelay,l]),T.useEffect(()=>{const c=a.viewport,d=i?"scrollLeft":"scrollTop";if(c){let p=c[d];const h=()=>{const g=c[d];p!==g&&(l("SCROLL"),o()),p=g};return c.addEventListener("scroll",h),()=>c.removeEventListener("scroll",h)}},[a.viewport,i,l,o]),k.jsx(ba,{present:n||s!=="hidden",children:k.jsx(IN,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:pt(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:pt(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),cV=T.forwardRef((e,t)=>{const n=Wa($i,e.__scopeScrollArea),{forceMount:r,...a}=e,[i,o]=T.useState(!1),s=e.orientation==="horizontal",l=Ny(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?c:d)}},10);return gu(n.viewport,l),gu(n.content,l),k.jsx(ba,{present:r||i,children:k.jsx(IN,{"data-state":i?"visible":"hidden",...a,ref:t})})}),IN=T.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,a=Wa($i,e.__scopeScrollArea),i=T.useRef(null),o=T.useRef(0),[s,l]=T.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=hV(s.viewport,s.content),d={...r,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:h=>i.current=h,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:h=>o.current=h};function p(h,g){return fSe(h,o.current,s,g)}return n==="horizontal"?k.jsx(sSe,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){const h=a.viewport.scrollLeft,g=_B(h,s,a.dir);i.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:h=>{a.viewport&&(a.viewport.scrollLeft=h)},onDragScroll:h=>{a.viewport&&(a.viewport.scrollLeft=p(h,a.dir))}}):n==="vertical"?k.jsx(lSe,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){const h=a.viewport.scrollTop,g=_B(h,s);i.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:h=>{a.viewport&&(a.viewport.scrollTop=h)},onDragScroll:h=>{a.viewport&&(a.viewport.scrollTop=p(h))}}):null}),sSe=T.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,i=Wa($i,e.__scopeScrollArea),[o,s]=T.useState(),l=T.useRef(null),c=Wt(t,l,i.onScrollbarXChange);return T.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),k.jsx(dV,{"data-orientation":"horizontal",...a,ref:c,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ry(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,p)=>{if(i.viewport){const h=i.viewport.scrollLeft+d.deltaX;e.onWheelScroll(h),mV(h,p)&&d.preventDefault()}},onResize:()=>{l.current&&i.viewport&&o&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Qm(o.paddingLeft),paddingEnd:Qm(o.paddingRight)}})}})}),lSe=T.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,i=Wa($i,e.__scopeScrollArea),[o,s]=T.useState(),l=T.useRef(null),c=Wt(t,l,i.onScrollbarYChange);return T.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),k.jsx(dV,{"data-orientation":"vertical",...a,ref:c,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ry(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,p)=>{if(i.viewport){const h=i.viewport.scrollTop+d.deltaY;e.onWheelScroll(h),mV(h,p)&&d.preventDefault()}},onResize:()=>{l.current&&i.viewport&&o&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Qm(o.paddingTop),paddingEnd:Qm(o.paddingBottom)}})}})}),[cSe,uV]=iV($i),dV=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:a,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:d,onResize:p,...h}=e,g=Wa($i,n),[b,y]=T.useState(null),x=Wt(t,D=>y(D)),w=T.useRef(null),S=T.useRef(""),_=g.viewport,N=r.content-r.viewport,R=fr(d),C=fr(l),A=Ny(p,10);function I(D){if(w.current){const O=D.clientX-w.current.left,P=D.clientY-w.current.top;c({x:O,y:P})}}return T.useEffect(()=>{const D=O=>{const P=O.target;(b==null?void 0:b.contains(P))&&R(O,N)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[_,b,N,R]),T.useEffect(C,[r,C]),gu(b,A),gu(g.content,A),k.jsx(cSe,{scope:n,scrollbar:b,hasThumb:a,onThumbChange:fr(i),onThumbPointerUp:fr(o),onThumbPositionChange:C,onThumbPointerDown:fr(s),children:k.jsx(mt.div,{...h,ref:x,style:{position:"absolute",...h.style},onPointerDown:pt(e.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),w.current=b.getBoundingClientRect(),S.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),I(D))}),onPointerMove:pt(e.onPointerMove,I),onPointerUp:pt(e.onPointerUp,D=>{const O=D.target;O.hasPointerCapture(D.pointerId)&&O.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=S.current,g.viewport&&(g.viewport.style.scrollBehavior=""),w.current=null})})})}),Zm="ScrollAreaThumb",fV=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=uV(Zm,e.__scopeScrollArea);return k.jsx(ba,{present:n||a.hasThumb,children:k.jsx(uSe,{ref:t,...r})})}),uSe=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...a}=e,i=Wa(Zm,n),o=uV(Zm,n),{onThumbPositionChange:s}=o,l=Wt(t,p=>o.onThumbChange(p)),c=T.useRef(void 0),d=Ny(()=>{c.current&&(c.current(),c.current=void 0)},100);return T.useEffect(()=>{const p=i.viewport;if(p){const h=()=>{if(d(),!c.current){const g=pSe(p,s);c.current=g,s()}};return s(),p.addEventListener("scroll",h),()=>p.removeEventListener("scroll",h)}},[i.viewport,d,s]),k.jsx(mt.div,{"data-state":o.hasThumb?"visible":"hidden",...a,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:pt(e.onPointerDownCapture,p=>{const g=p.target.getBoundingClientRect(),b=p.clientX-g.left,y=p.clientY-g.top;o.onThumbPointerDown({x:b,y})}),onPointerUp:pt(e.onPointerUp,o.onThumbPointerUp)})});fV.displayName=Zm;var MN="ScrollAreaCorner",pV=T.forwardRef((e,t)=>{const n=Wa(MN,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?k.jsx(dSe,{...e,ref:t}):null});pV.displayName=MN;var dSe=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,a=Wa(MN,n),[i,o]=T.useState(0),[s,l]=T.useState(0),c=!!(i&&s);return gu(a.scrollbarX,()=>{var p;const d=((p=a.scrollbarX)==null?void 0:p.offsetHeight)||0;a.onCornerHeightChange(d),l(d)}),gu(a.scrollbarY,()=>{var p;const d=((p=a.scrollbarY)==null?void 0:p.offsetWidth)||0;a.onCornerWidthChange(d),o(d)}),c?k.jsx(mt.div,{...r,ref:t,style:{width:i,height:s,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Qm(e){return e?parseInt(e,10):0}function hV(e,t){const n=e/t;return isNaN(n)?0:n}function Ry(e){const t=hV(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function fSe(e,t,n,r="ltr"){const a=Ry(n),i=a/2,o=t||i,s=a-o,l=n.scrollbar.paddingStart+o,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,d=n.content-n.viewport,p=r==="ltr"?[0,d]:[d*-1,0];return gV([l,c],p)(e)}function _B(e,t,n="ltr"){const r=Ry(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-a,o=t.content-t.viewport,s=i-r,l=n==="ltr"?[0,o]:[o*-1,0],c=RA(e,l);return gV([0,o],[0,s])(c)}function gV(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function mV(e,t){return e>0&&e<t}var pSe=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function a(){const i={left:e.scrollLeft,top:e.scrollTop},o=n.left!==i.left,s=n.top!==i.top;(o||s)&&t(),n=i,r=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(r)};function Ny(e,t){const n=fr(e),r=T.useRef(0);return T.useEffect(()=>()=>window.clearTimeout(r.current),[]),T.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function gu(e,t){const n=fr(t);_r(()=>{let r=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(r),a.unobserve(e)}}},[e,n])}var bV=oV,hSe=lV,gSe=pV;const FN=T.forwardRef(({className:e,children:t,...n},r)=>k.jsxs(bV,{ref:r,className:je("relative overflow-hidden",e),...n,children:[k.jsx(hSe,{className:"h-full w-full rounded-[inherit]",children:t}),k.jsx(yV,{}),k.jsx(gSe,{})]}));FN.displayName=bV.displayName;const yV=T.forwardRef(({className:e,orientation:t="vertical",...n},r)=>k.jsx(DN,{ref:r,orientation:t,className:je("flex touch-none transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:k.jsx(fV,{className:"bg-border relative flex-1 rounded-full"})}));yV.displayName=DN.displayName;const mSe=({className:e})=>{const{t}=Ht(),n=Ue.use.typeColorMap();return!n||n.size===0?null:k.jsxs(Rl,{className:`p-2 max-w-xs ${e}`,children:[k.jsx("h3",{className:"text-sm font-medium mb-2",children:t("graphPanel.legend")}),k.jsx(FN,{className:"max-h-80",children:k.jsx("div",{className:"flex flex-col gap-1",children:Array.from(n.entries()).map(([r,a])=>k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("div",{className:"w-4 h-4 rounded-full",style:{backgroundColor:a}}),k.jsx("span",{className:"text-xs truncate",title:r,children:t(`graphPanel.nodeTypes.${r.toLowerCase()}`,r)})]},r))})})]})},bSe=()=>{const{t:e}=Ht(),t=Pe.use.showLegend(),n=Pe.use.setShowLegend(),r=T.useCallback(()=>{n(!t)},[t,n]);return k.jsx(xt,{variant:Pa,onClick:r,tooltip:e("graphPanel.sideBar.legendControl.toggleLegend"),size:"icon",children:k.jsx(Ofe,{})})},CB={allowInvalidContainer:!0,defaultNodeType:"default",defaultEdgeType:"curvedNoArrow",renderEdgeLabels:!1,edgeProgramClasses:{arrow:aW,curvedArrow:vye,curvedNoArrow:yye},nodeProgramClasses:{default:tye,circel:Ip,point:Rbe},labelGridCellSize:60,labelRenderedSizeThreshold:12,enableEdgeEvents:!0,labelColor:{color:"#000",attribute:"labelColor"},edgeLabelColor:{color:"#000",attribute:"labelColor"},edgeLabelSize:8,labelSize:12},ySe=()=>{const e=pW(),t=qa(),[n,r]=T.useState(null);return T.useEffect(()=>{e({downNode:a=>{r(a.node),t.getGraph().setNodeAttribute(a.node,"highlighted",!0)},mousemovebody:a=>{if(!n)return;const i=t.viewportToGraph(a);t.getGraph().setNodeAttribute(n,"x",i.x),t.getGraph().setNodeAttribute(n,"y",i.y),a.preventSigmaDefault(),a.original.preventDefault(),a.original.stopPropagation()},mouseup:()=>{n&&(r(null),t.getGraph().removeNodeAttribute(n,"highlighted"))},mousedown:a=>{a.original.buttons!==0&&!t.getCustomBBox()&&t.setCustomBBox(t.getBBox())}})},[e,t,n]),null},vSe=()=>{const[e,t]=T.useState(CB),n=T.useRef(null),r=Ue.use.selectedNode(),a=Ue.use.focusedNode(),i=Ue.use.moveToSelectedNode(),o=Ue.use.isFetching(),s=Pe.use.showPropertyPanel(),l=Pe.use.showNodeSearchBar(),c=Pe.use.enableNodeDrag(),d=Pe.use.showLegend();T.useEffect(()=>{t(CB),console.log("Initialized sigma settings")},[]),T.useEffect(()=>()=>{const y=Ue.getState().sigmaInstance;if(y)try{y.kill(),Ue.getState().setSigmaInstance(null),console.log("Cleared sigma instance on Graphviewer unmount")}catch(x){console.error("Error cleaning up sigma instance:",x)}},[]);const p=T.useCallback(y=>{y===null?Ue.getState().setFocusedNode(null):y.type==="nodes"&&Ue.getState().setFocusedNode(y.id)},[]),h=T.useCallback(y=>{y===null?Ue.getState().setSelectedNode(null):y.type==="nodes"&&Ue.getState().setSelectedNode(y.id,!0)},[]),g=T.useMemo(()=>a??r,[a,r]),b=T.useMemo(()=>r?{type:"nodes",id:r}:null,[r]);return k.jsxs("div",{className:"relative h-full w-full overflow-hidden",children:[k.jsxs(Ebe,{settings:e,className:"!bg-background !size-full overflow-hidden",ref:n,children:[k.jsx(Bve,{}),c&&k.jsx(ySe,{}),k.jsx(xye,{node:g,move:i}),k.jsxs("div",{className:"absolute top-2 left-2 flex items-start gap-2",children:[k.jsx(vxe,{}),l&&k.jsx(mxe,{value:b,onFocus:p,onChange:h})]}),k.jsxs("div",{className:"bg-background/60 absolute bottom-2 left-2 flex flex-col rounded-xl border-2 backdrop-blur-lg",children:[k.jsx(Pve,{}),k.jsx(zve,{}),k.jsx($ve,{}),k.jsx(bSe,{}),k.jsx(Kve,{})]}),s&&k.jsx("div",{className:"absolute top-2 right-2",children:k.jsx(Xxe,{})}),d&&k.jsx("div",{className:"absolute bottom-10 right-2",children:k.jsx(mSe,{className:"bg-background/60 backdrop-blur-lg"})}),k.jsx(tSe,{})]}),o&&k.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-background/80 z-10",children:k.jsxs("div",{className:"text-center",children:[k.jsx("div",{className:"mb-2 h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"}),k.jsx("p",{children:"Loading Graph Data..."})]})})]})},vV=T.forwardRef(({className:e,...t},n)=>k.jsx("div",{className:"relative w-full overflow-auto",children:k.jsx("table",{ref:n,className:je("w-full caption-bottom text-sm",e),...t})}));vV.displayName="Table";const xV=T.forwardRef(({className:e,...t},n)=>k.jsx("thead",{ref:n,className:je("[&_tr]:border-b",e),...t}));xV.displayName="TableHeader";const SV=T.forwardRef(({className:e,...t},n)=>k.jsx("tbody",{ref:n,className:je("[&_tr:last-child]:border-0",e),...t}));SV.displayName="TableBody";const xSe=T.forwardRef(({className:e,...t},n)=>k.jsx("tfoot",{ref:n,className:je("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",e),...t}));xSe.displayName="TableFooter";const JA=T.forwardRef(({className:e,...t},n)=>k.jsx("tr",{ref:n,className:je("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t}));JA.displayName="TableRow";const ls=T.forwardRef(({className:e,...t},n)=>k.jsx("th",{ref:n,className:je("text-muted-foreground h-10 px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));ls.displayName="TableHead";const cs=T.forwardRef(({className:e,...t},n)=>k.jsx("td",{ref:n,className:je("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));cs.displayName="TableCell";const SSe=T.forwardRef(({className:e,...t},n)=>k.jsx("caption",{ref:n,className:je("text-muted-foreground mt-4 text-sm",e),...t}));SSe.displayName="TableCaption";function wSe({title:e,description:t,icon:n=Hfe,action:r,className:a,...i}){return k.jsxs(Rl,{className:je("flex w-full flex-col items-center justify-center space-y-6 bg-transparent p-16",a),...i,children:[k.jsx("div",{className:"mr-4 shrink-0 rounded-full border border-dashed p-4",children:k.jsx(n,{className:"text-muted-foreground size-8","aria-hidden":"true"})}),k.jsxs("div",{className:"flex flex-col items-center gap-1.5 text-center",children:[k.jsx(ep,{children:e}),t?k.jsx(Ay,{children:t}):null]}),r||null]})}var Iw={exports:{}},Mw,TB;function ESe(){if(TB)return Mw;TB=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Mw=e,Mw}var Fw,AB;function kSe(){if(AB)return Fw;AB=1;var e=ESe();function t(){}function n(){}return n.resetWarningCache=t,Fw=function(){function r(o,s,l,c,d,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Fw}var RB;function _Se(){return RB||(RB=1,Iw.exports=kSe()()),Iw.exports}var CSe=_Se();const dn=Kn(CSe),TSe=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function mu(e,t,n){const r=ASe(e),{webkitRelativePath:a}=e,i=typeof t=="string"?t:typeof a=="string"&&a.length>0?a:`./${e.name}`;return typeof r.path!="string"&&NB(r,"path",i),NB(r,"relativePath",i),r}function ASe(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),a=TSe.get(r);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}function NB(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const RSe=[".DS_Store","Thumbs.db"];function NSe(e){return zl(this,void 0,void 0,function*(){return Jm(e)&&LSe(e.dataTransfer)?MSe(e.dataTransfer,e.type):OSe(e)?DSe(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?ISe(e):[]})}function LSe(e){return Jm(e)}function OSe(e){return Jm(e)&&Jm(e.target)}function Jm(e){return typeof e=="object"&&e!==null}function DSe(e){return eR(e.target.files).map(t=>mu(t))}function ISe(e){return zl(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>mu(n))})}function MSe(e,t){return zl(this,void 0,void 0,function*(){if(e.items){const n=eR(e.items).filter(a=>a.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(FSe));return LB(wV(r))}return LB(eR(e.files).map(n=>mu(n)))})}function LB(e){return e.filter(t=>RSe.indexOf(t.name)===-1)}function eR(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function FSe(e){if(typeof e.webkitGetAsEntry!="function")return OB(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?EV(t):OB(e,t)}function wV(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?wV(n):[n]],[])}function OB(e,t){return zl(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const i=yield e.getAsFileSystemHandle();if(i===null)throw new Error(`${e} is not a File`);if(i!==void 0){const o=yield i.getFile();return o.handle=i,mu(o)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return mu(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function PSe(e){return zl(this,void 0,void 0,function*(){return e.isDirectory?EV(e):BSe(e)})}function EV(e){const t=e.createReader();return new Promise((n,r)=>{const a=[];function i(){t.readEntries(o=>zl(this,void 0,void 0,function*(){if(o.length){const s=Promise.all(o.map(PSe));a.push(s),i()}else try{const s=yield Promise.all(a);n(s)}catch(s){r(s)}}),o=>{r(o)})}i()})}function BSe(e){return zl(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const a=mu(r,e.fullPath);t(a)},r=>{n(r)})})})}var Dg={},DB;function zSe(){return DB||(DB=1,Dg.__esModule=!0,Dg.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",a=(e.type||"").toLowerCase(),i=a.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?i===s.replace(/\/.*$/,""):a===s})}return!0}),Dg}var $Se=zSe();const Pw=Kn($Se);function IB(e){return HSe(e)||USe(e)||_V(e)||jSe()}function jSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function USe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HSe(e){if(Array.isArray(e))return tR(e)}function MB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function FB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MB(Object(n),!0).forEach(function(r){kV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function np(e,t){return WSe(e)||qSe(e,t)||_V(e,t)||GSe()}function GSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _V(e,t){if(e){if(typeof e=="string")return tR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tR(e,t)}}function tR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qSe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,o,s;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));a=!0);}catch(l){i=!0,s=l}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function WSe(e){if(Array.isArray(e))return e}var VSe=typeof Pw=="function"?Pw:Pw.default,YSe="file-invalid-type",KSe="file-too-large",XSe="file-too-small",ZSe="too-many-files",QSe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:YSe,message:"File type must be ".concat(r)}},PB=function(t){return{code:KSe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},BB=function(t){return{code:XSe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},JSe={code:ZSe,message:"Too many files"};function CV(e,t){var n=e.type==="application/x-moz-file"||VSe(e,t);return[n,n?null:QSe(t)]}function TV(e,t,n){if(dl(e.size))if(dl(t)&&dl(n)){if(e.size>n)return[!1,PB(n)];if(e.size<t)return[!1,BB(t)]}else{if(dl(t)&&e.size<t)return[!1,BB(t)];if(dl(n)&&e.size>n)return[!1,PB(n)]}return[!0,null]}function dl(e){return e!=null}function ewe(e){var t=e.files,n=e.accept,r=e.minSize,a=e.maxSize,i=e.multiple,o=e.maxFiles,s=e.validator;return!i&&t.length>1||i&&o>=1&&t.length>o?!1:t.every(function(l){var c=CV(l,n),d=np(c,1),p=d[0],h=TV(l,r,a),g=np(h,1),b=g[0],y=s?s(l):null;return p&&b&&!y})}function eb(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Ig(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function zB(e){e.preventDefault()}function twe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function nwe(e){return e.indexOf("Edge/")!==-1}function rwe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return twe(e)||nwe(e)}function wi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];return t.some(function(s){return!eb(r)&&s&&s.apply(void 0,[r].concat(i)),eb(r)})}}function awe(){return"showOpenFilePicker"in window}function iwe(e){if(dl(e)){var t=Object.entries(e).filter(function(n){var r=np(n,2),a=r[0],i=r[1],o=!0;return AV(a)||(console.warn('Skipped "'.concat(a,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),(!Array.isArray(i)||!i.every(RV))&&(console.warn('Skipped "'.concat(a,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(n,r){var a=np(r,2),i=a[0],o=a[1];return FB(FB({},n),{},kV({},i,o))},{});return[{description:"Files",accept:t}]}return e}function owe(e){if(dl(e))return Object.entries(e).reduce(function(t,n){var r=np(n,2),a=r[0],i=r[1];return[].concat(IB(t),[a],IB(i))},[]).filter(function(t){return AV(t)||RV(t)}).join(",")}function swe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function lwe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function AV(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function RV(e){return/^.*\.[\w]+$/.test(e)}var cwe=["children"],uwe=["open"],dwe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],fwe=["refKey","onChange","onClick"];function pwe(e){return mwe(e)||gwe(e)||NV(e)||hwe()}function hwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mwe(e){if(Array.isArray(e))return nR(e)}function Bw(e,t){return vwe(e)||ywe(e,t)||NV(e,t)||bwe()}function bwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NV(e,t){if(e){if(typeof e=="string")return nR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nR(e,t)}}function nR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ywe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,o,s;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));a=!0);}catch(l){i=!0,s=l}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function vwe(e){if(Array.isArray(e))return e}function $B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$B(Object(n),!0).forEach(function(r){rR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$B(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tb(e,t){if(e==null)return{};var n=xwe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xwe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var Ly=T.forwardRef(function(e,t){var n=e.children,r=tb(e,cwe),a=Swe(r),i=a.open,o=tb(a,uwe);return T.useImperativeHandle(t,function(){return{open:i}},[i]),Re.createElement(T.Fragment,null,n(En(En({},o),{},{open:i})))});Ly.displayName="Dropzone";var LV={disabled:!1,getFilesFromEvent:NSe,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Ly.defaultProps=LV;Ly.propTypes={children:dn.func,accept:dn.objectOf(dn.arrayOf(dn.string)),multiple:dn.bool,preventDropOnDocument:dn.bool,noClick:dn.bool,noKeyboard:dn.bool,noDrag:dn.bool,noDragEventsBubbling:dn.bool,minSize:dn.number,maxSize:dn.number,maxFiles:dn.number,disabled:dn.bool,getFilesFromEvent:dn.func,onFileDialogCancel:dn.func,onFileDialogOpen:dn.func,useFsAccessApi:dn.bool,autoFocus:dn.bool,onDragEnter:dn.func,onDragLeave:dn.func,onDragOver:dn.func,onDrop:dn.func,onDropAccepted:dn.func,onDropRejected:dn.func,onError:dn.func,validator:dn.func};var aR={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Swe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=En(En({},LV),e),n=t.accept,r=t.disabled,a=t.getFilesFromEvent,i=t.maxSize,o=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,p=t.onDragOver,h=t.onDrop,g=t.onDropAccepted,b=t.onDropRejected,y=t.onFileDialogCancel,x=t.onFileDialogOpen,w=t.useFsAccessApi,S=t.autoFocus,_=t.preventDropOnDocument,N=t.noClick,R=t.noKeyboard,C=t.noDrag,A=t.noDragEventsBubbling,I=t.onError,D=t.validator,O=T.useMemo(function(){return owe(n)},[n]),P=T.useMemo(function(){return iwe(n)},[n]),G=T.useMemo(function(){return typeof x=="function"?x:jB},[x]),j=T.useMemo(function(){return typeof y=="function"?y:jB},[y]),W=T.useRef(null),V=T.useRef(null),B=T.useReducer(wwe,aR),U=Bw(B,2),M=U[0],K=U[1],F=M.isFocused,Y=M.isFileDialogActive,H=T.useRef(typeof window<"u"&&window.isSecureContext&&w&&awe()),$=function(){!H.current&&Y&&setTimeout(function(){if(V.current){var Ie=V.current.files;Ie.length||(K({type:"closeDialog"}),j())}},300)};T.useEffect(function(){return window.addEventListener("focus",$,!1),function(){window.removeEventListener("focus",$,!1)}},[V,Y,j,H]);var Z=T.useRef([]),Q=function(Ie){W.current&&W.current.contains(Ie.target)||(Ie.preventDefault(),Z.current=[])};T.useEffect(function(){return _&&(document.addEventListener("dragover",zB,!1),document.addEventListener("drop",Q,!1)),function(){_&&(document.removeEventListener("dragover",zB),document.removeEventListener("drop",Q))}},[W,_]),T.useEffect(function(){return!r&&S&&W.current&&W.current.focus(),function(){}},[W,S,r]);var ie=T.useCallback(function(ve){I?I(ve):console.error(ve)},[I]),te=T.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ce(ve),Z.current=[].concat(pwe(Z.current),[ve.target]),Ig(ve)&&Promise.resolve(a(ve)).then(function(Ie){if(!(eb(ve)&&!A)){var ae=Ie.length,ge=ae>0&&ewe({files:Ie,accept:O,minSize:o,maxSize:i,multiple:s,maxFiles:l,validator:D}),Me=ae>0&&!ge;K({isDragAccept:ge,isDragReject:Me,isDragActive:!0,type:"setDraggedFiles"}),c&&c(ve)}}).catch(function(Ie){return ie(Ie)})},[a,c,ie,A,O,o,i,s,l,D]),ce=T.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ce(ve);var Ie=Ig(ve);if(Ie&&ve.dataTransfer)try{ve.dataTransfer.dropEffect="copy"}catch{}return Ie&&p&&p(ve),!1},[p,A]),Te=T.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ce(ve);var Ie=Z.current.filter(function(ge){return W.current&&W.current.contains(ge)}),ae=Ie.indexOf(ve.target);ae!==-1&&Ie.splice(ae,1),Z.current=Ie,!(Ie.length>0)&&(K({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ig(ve)&&d&&d(ve))},[W,d,A]),ne=T.useCallback(function(ve,Ie){var ae=[],ge=[];ve.forEach(function(Me){var He=CV(Me,O),tt=Bw(He,2),Pt=tt[0],Gt=tt[1],Nt=TV(Me,o,i),ct=Bw(Nt,2),Bt=ct[0],wt=ct[1],zt=D?D(Me):null;if(Pt&&Bt&&!zt)ae.push(Me);else{var bn=[Gt,wt];zt&&(bn=bn.concat(zt)),ge.push({file:Me,errors:bn.filter(function(_n){return _n})})}}),(!s&&ae.length>1||s&&l>=1&&ae.length>l)&&(ae.forEach(function(Me){ge.push({file:Me,errors:[JSe]})}),ae.splice(0)),K({acceptedFiles:ae,fileRejections:ge,isDragReject:ge.length>0,type:"setFiles"}),h&&h(ae,ge,Ie),ge.length>0&&b&&b(ge,Ie),ae.length>0&&g&&g(ae,Ie)},[K,s,O,o,i,l,h,g,b,D]),Ee=T.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ce(ve),Z.current=[],Ig(ve)&&Promise.resolve(a(ve)).then(function(Ie){eb(ve)&&!A||ne(Ie,ve)}).catch(function(Ie){return ie(Ie)}),K({type:"reset"})},[a,ne,ie,A]),re=T.useCallback(function(){if(H.current){K({type:"openDialog"}),G();var ve={multiple:s,types:P};window.showOpenFilePicker(ve).then(function(Ie){return a(Ie)}).then(function(Ie){ne(Ie,null),K({type:"closeDialog"})}).catch(function(Ie){swe(Ie)?(j(Ie),K({type:"closeDialog"})):lwe(Ie)?(H.current=!1,V.current?(V.current.value=null,V.current.click()):ie(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ie(Ie)});return}V.current&&(K({type:"openDialog"}),G(),V.current.value=null,V.current.click())},[K,G,j,w,ne,ie,P,s]),we=T.useCallback(function(ve){!W.current||!W.current.isEqualNode(ve.target)||(ve.key===" "||ve.key==="Enter"||ve.keyCode===32||ve.keyCode===13)&&(ve.preventDefault(),re())},[W,re]),xe=T.useCallback(function(){K({type:"focus"})},[]),Se=T.useCallback(function(){K({type:"blur"})},[]),ee=T.useCallback(function(){N||(rwe()?setTimeout(re,0):re())},[N,re]),he=function(Ie){return r?null:Ie},Ae=function(Ie){return R?null:he(Ie)},be=function(Ie){return C?null:he(Ie)},Ce=function(Ie){A&&Ie.stopPropagation()},ue=T.useMemo(function(){return function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ie=ve.refKey,ae=Ie===void 0?"ref":Ie,ge=ve.role,Me=ve.onKeyDown,He=ve.onFocus,tt=ve.onBlur,Pt=ve.onClick,Gt=ve.onDragEnter,Nt=ve.onDragOver,ct=ve.onDragLeave,Bt=ve.onDrop,wt=tb(ve,dwe);return En(En(rR({onKeyDown:Ae(wi(Me,we)),onFocus:Ae(wi(He,xe)),onBlur:Ae(wi(tt,Se)),onClick:he(wi(Pt,ee)),onDragEnter:be(wi(Gt,te)),onDragOver:be(wi(Nt,ce)),onDragLeave:be(wi(ct,Te)),onDrop:be(wi(Bt,Ee)),role:typeof ge=="string"&&ge!==""?ge:"presentation"},ae,W),!r&&!R?{tabIndex:0}:{}),wt)}},[W,we,xe,Se,ee,te,ce,Te,Ee,R,C,r]),Ve=T.useCallback(function(ve){ve.stopPropagation()},[]),We=T.useMemo(function(){return function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ie=ve.refKey,ae=Ie===void 0?"ref":Ie,ge=ve.onChange,Me=ve.onClick,He=tb(ve,fwe),tt=rR({accept:O,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:he(wi(ge,Ee)),onClick:he(wi(Me,Ve)),tabIndex:-1},ae,V);return En(En({},tt),He)}},[V,n,s,Ee,r]);return En(En({},M),{},{isFocused:F&&!r,getRootProps:ue,getInputProps:We,rootRef:W,inputRef:V,open:he(re)})}function wwe(e,t){switch(t.type){case"focus":return En(En({},e),{},{isFocused:!0});case"blur":return En(En({},e),{},{isFocused:!1});case"openDialog":return En(En({},aR),{},{isFileDialogActive:!0});case"closeDialog":return En(En({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return En(En({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return En(En({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return En({},aR);default:return e}}function jB(){}function iR(e,t={}){const{decimals:n=0,sizeType:r="normal"}=t,a=["Bytes","KB","MB","GB","TB"],i=["Bytes","KiB","MiB","GiB","TiB"];if(e===0)return"0 Byte";const o=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,o)).toFixed(n)} ${r==="accurate"?i[o]??"Bytes":a[o]??"Bytes"}`}function Ewe(e){const{t}=Ht(),{value:n,onValueChange:r,onUpload:a,onReject:i,progresses:o,fileErrors:s,accept:l=Use,maxSize:c=1024*1024*200,maxFileCount:d=1,multiple:p=!1,disabled:h=!1,description:g,className:b,...y}=e,[x,w]=Eo({prop:n,onChange:r}),S=T.useCallback((R,C)=>{const A=((x==null?void 0:x.length)??0)+R.length+C.length;if(!p&&d===1&&R.length+C.length>1){en.error(t("documentPanel.uploadDocuments.fileUploader.singleFileLimit"));return}if(A>d){en.error(t("documentPanel.uploadDocuments.fileUploader.maxFilesLimit",{count:d}));return}C.length>0&&(i?i(C):C.forEach(({file:G})=>{en.error(t("documentPanel.uploadDocuments.fileUploader.fileRejected",{name:G.name}))}));const I=R.map(G=>Object.assign(G,{preview:URL.createObjectURL(G)})),D=C.map(({file:G})=>Object.assign(G,{preview:URL.createObjectURL(G),rejected:!0})),O=[...I,...D],P=x?[...x,...O]:O;if(w(P),a&&R.length>0){const G=R.filter(j=>{var U;if(!j.name)return!1;const W=`.${((U=j.name.split(".").pop())==null?void 0:U.toLowerCase())||""}`,V=Object.entries(l||{}).some(([M,K])=>j.type===M||Array.isArray(K)&&K.includes(W)),B=j.size<=c;return V&&B});G.length>0&&a(G)}},[x,d,p,a,i,w,t,l,c]);function _(R){if(!x)return;const C=x.filter((A,I)=>I!==R);w(C),r==null||r(C)}T.useEffect(()=>()=>{x&&x.forEach(R=>{OV(R)&&URL.revokeObjectURL(R.preview)})},[]);const N=h||((x==null?void 0:x.length)??0)>=d;return k.jsxs("div",{className:"relative flex flex-col gap-6 overflow-hidden",children:[k.jsx(Ly,{onDrop:S,noClick:!1,noKeyboard:!1,maxSize:c,maxFiles:d,multiple:d>1||p,disabled:N,validator:R=>{var I;if(!R.name)return{code:"invalid-file-name",message:t("documentPanel.uploadDocuments.fileUploader.invalidFileName",{fallback:"Invalid file name"})};const C=`.${((I=R.name.split(".").pop())==null?void 0:I.toLowerCase())||""}`;return Object.entries(l||{}).some(([D,O])=>R.type===D||Array.isArray(O)&&O.includes(C))?R.size>c?{code:"file-too-large",message:t("documentPanel.uploadDocuments.fileUploader.fileTooLarge",{maxSize:iR(c)})}:null:{code:"file-invalid-type",message:t("documentPanel.uploadDocuments.fileUploader.unsupportedType")}},children:({getRootProps:R,getInputProps:C,isDragActive:A})=>k.jsxs("div",{...R(),className:je("group border-muted-foreground/25 hover:bg-muted/25 relative grid h-52 w-full cursor-pointer place-items-center rounded-lg border-2 border-dashed px-5 py-2.5 text-center transition","ring-offset-background focus-visible:ring-ring focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",A&&"border-muted-foreground/50",N&&"pointer-events-none opacity-60",b),...y,children:[k.jsx("input",{...C()}),A?k.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 sm:px-5",children:[k.jsx("div",{className:"rounded-full border border-dashed p-3",children:k.jsx(AA,{className:"text-muted-foreground size-7","aria-hidden":"true"})}),k.jsx("p",{className:"text-muted-foreground font-medium",children:t("documentPanel.uploadDocuments.fileUploader.dropHere")})]}):k.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 sm:px-5",children:[k.jsx("div",{className:"rounded-full border border-dashed p-3",children:k.jsx(AA,{className:"text-muted-foreground size-7","aria-hidden":"true"})}),k.jsxs("div",{className:"flex flex-col gap-px",children:[k.jsx("p",{className:"text-muted-foreground font-medium",children:t("documentPanel.uploadDocuments.fileUploader.dragAndDrop")}),g?k.jsx("p",{className:"text-muted-foreground/70 text-sm",children:g}):k.jsxs("p",{className:"text-muted-foreground/70 text-sm",children:[t("documentPanel.uploadDocuments.fileUploader.uploadDescription",{count:d,isMultiple:d===1/0,maxSize:iR(c)}),t("documentPanel.uploadDocuments.fileTypes")]})]})]})]})}),x!=null&&x.length?k.jsx(FN,{className:"h-fit w-full px-3",children:k.jsx("div",{className:"flex max-h-48 flex-col gap-4",children:x==null?void 0:x.map((R,C)=>k.jsx(kwe,{file:R,onRemove:()=>_(C),progress:o==null?void 0:o[R.name],error:s==null?void 0:s[R.name]},C))})}):null]})}function UB({value:e,error:t}){return k.jsx("div",{className:"relative h-2 w-full",children:k.jsx("div",{className:"h-full w-full overflow-hidden rounded-full bg-secondary",children:k.jsx("div",{className:je("h-full transition-all",t?"bg-red-400":"bg-primary"),style:{width:`${e}%`}})})})}function kwe({file:e,progress:t,error:n,onRemove:r}){const{t:a}=Ht();return k.jsxs("div",{className:"relative flex items-center gap-2.5",children:[k.jsxs("div",{className:"flex flex-1 gap-2.5",children:[n?k.jsx(r8,{className:"text-red-400 size-10","aria-hidden":"true"}):OV(e)?k.jsx(_we,{file:e}):null,k.jsxs("div",{className:"flex w-full flex-col gap-2",children:[k.jsxs("div",{className:"flex flex-col gap-px",children:[k.jsx("p",{className:"text-foreground/80 line-clamp-1 text-sm font-medium",children:e.name}),k.jsx("p",{className:"text-muted-foreground text-xs",children:iR(e.size)})]}),n?k.jsxs("div",{className:"text-red-400 text-sm",children:[k.jsx("div",{className:"relative mb-2",children:k.jsx(UB,{value:100,error:!0})}),k.jsx("p",{children:n})]}):t?k.jsx(UB,{value:t}):null]})]}),k.jsx("div",{className:"flex items-center gap-2",children:k.jsxs(xt,{type:"button",variant:"outline",size:"icon",className:"size-7",onClick:r,children:[k.jsx(s8,{className:"size-4","aria-hidden":"true"}),k.jsx("span",{className:"sr-only",children:a("documentPanel.uploadDocuments.fileUploader.removeFile")})]})})]})}function OV(e){return"preview"in e&&typeof e.preview=="string"}function _we({file:e}){return e.type.startsWith("image/")?k.jsx("div",{className:"aspect-square shrink-0 rounded-md object-cover"}):k.jsx(r8,{className:"text-muted-foreground size-10","aria-hidden":"true"})}function Cwe({onDocumentsUploaded:e}){const{t}=Ht(),[n,r]=T.useState(!1),[a,i]=T.useState(!1),[o,s]=T.useState({}),[l,c]=T.useState({}),d=T.useCallback(h=>{h.forEach(({file:g,errors:b})=>{var x;let y=((x=b[0])==null?void 0:x.message)||t("documentPanel.uploadDocuments.fileUploader.fileRejected",{name:g.name});y.includes("file-invalid-type")&&(y=t("documentPanel.uploadDocuments.fileUploader.unsupportedType")),s(w=>({...w,[g.name]:100})),c(w=>({...w,[g.name]:y}))})},[s,c,t]),p=T.useCallback(async h=>{i(!0);let g=!1;c(y=>{const x={...y};return h.forEach(w=>{delete x[w.name]}),x});const b=en.loading(t("documentPanel.uploadDocuments.batch.uploading"));try{const y={};await Promise.all(h.map(async w=>{var S,_;try{s(R=>({...R,[w.name]:0}));const N=await rle(w,R=>{console.debug(t("documentPanel.uploadDocuments.single.uploading",{name:w.name,percent:R})),s(C=>({...C,[w.name]:R}))});N.status==="duplicated"?(y[w.name]=t("documentPanel.uploadDocuments.fileUploader.duplicateFile"),c(R=>({...R,[w.name]:t("documentPanel.uploadDocuments.fileUploader.duplicateFile")}))):N.status!=="success"?(y[w.name]=N.message,c(R=>({...R,[w.name]:N.message}))):g=!0}catch(N){console.error(`Upload failed for ${w.name}:`,N);let R=ua(N);if(N&&typeof N=="object"&&"response"in N){const C=N;((S=C.response)==null?void 0:S.status)===400&&(R=((_=C.response.data)==null?void 0:_.detail)||R),s(A=>({...A,[w.name]:100}))}y[w.name]=R,c(C=>({...C,[w.name]:R}))}})),Object.keys(y).length>0?en.error(t("documentPanel.uploadDocuments.batch.error"),{id:b}):en.success(t("documentPanel.uploadDocuments.batch.success"),{id:b}),g&&e&&e().catch(w=>{console.error("Error refreshing documents:",w)})}catch(y){console.error("Unexpected error during upload:",y),en.error(t("documentPanel.uploadDocuments.generalError",{error:ua(y)}),{id:b})}finally{i(!1)}},[i,s,c,t,e]);return k.jsxs(Rp,{open:n,onOpenChange:h=>{a||(h||(s({}),c({})),r(h))},children:[k.jsx(l8,{asChild:!0,children:k.jsxs(xt,{variant:"default",side:"bottom",tooltip:t("documentPanel.uploadDocuments.tooltip"),size:"sm",children:[k.jsx(AA,{})," ",t("documentPanel.uploadDocuments.button")]})}),k.jsxs(Pu,{className:"sm:max-w-xl",onCloseAutoFocus:h=>h.preventDefault(),children:[k.jsxs(Bu,{children:[k.jsx(zu,{children:t("documentPanel.uploadDocuments.title")}),k.jsx($u,{children:t("documentPanel.uploadDocuments.description")})]}),k.jsx(Ewe,{maxFileCount:1/0,maxSize:200*1024*1024,description:t("documentPanel.uploadDocuments.fileTypes"),onUpload:p,onReject:d,progresses:o,fileErrors:l,disabled:a})]})]})}const HB=({htmlFor:e,className:t,children:n,...r})=>k.jsx("label",{htmlFor:e,className:t,...r,children:n});function Twe({onDocumentsCleared:e}){const{t}=Ht(),[n,r]=T.useState(!1),[a,i]=T.useState(""),[o,s]=T.useState(!1),l=a.toLowerCase()==="yes";T.useEffect(()=>{n||(i(""),s(!1))},[n]);const c=T.useCallback(async()=>{if(l)try{const d=await ale();if(d.status!=="success"){en.error(t("documentPanel.clearDocuments.failed",{message:d.message})),i("");return}if(en.success(t("documentPanel.clearDocuments.success")),o)try{await ile(),en.success(t("documentPanel.clearDocuments.cacheCleared"))}catch(p){en.error(t("documentPanel.clearDocuments.cacheClearFailed",{error:ua(p)}))}e&&e().catch(console.error),r(!1)}catch(d){en.error(t("documentPanel.clearDocuments.error",{error:ua(d)})),i("")}},[l,o,r,t,e]);return k.jsxs(Rp,{open:n,onOpenChange:r,children:[k.jsx(l8,{asChild:!0,children:k.jsxs(xt,{variant:"outline",side:"bottom",tooltip:t("documentPanel.clearDocuments.tooltip"),size:"sm",children:[k.jsx(n8,{})," ",t("documentPanel.clearDocuments.button")]})}),k.jsxs(Pu,{className:"sm:max-w-xl",onCloseAutoFocus:d=>d.preventDefault(),children:[k.jsxs(Bu,{children:[k.jsxs(zu,{className:"flex items-center gap-2 text-red-500 dark:text-red-400 font-bold",children:[k.jsx(Lpe,{className:"h-5 w-5"}),t("documentPanel.clearDocuments.title")]}),k.jsx($u,{className:"pt-2",children:t("documentPanel.clearDocuments.description")})]}),k.jsx("div",{className:"text-red-500 dark:text-red-400 font-semibold mb-4",children:t("documentPanel.clearDocuments.warning")}),k.jsx("div",{className:"mb-4",children:t("documentPanel.clearDocuments.confirm")}),k.jsxs("div",{className:"space-y-4",children:[k.jsxs("div",{className:"space-y-2",children:[k.jsx(HB,{htmlFor:"confirm-text",className:"text-sm font-medium",children:t("documentPanel.clearDocuments.confirmPrompt")}),k.jsx(Ua,{id:"confirm-text",value:a,onChange:d=>i(d.target.value),placeholder:t("documentPanel.clearDocuments.confirmPlaceholder"),className:"w-full"})]}),k.jsxs("div",{className:"flex items-center space-x-2",children:[k.jsx(Xc,{id:"clear-cache",checked:o,onCheckedChange:d=>s(d===!0)}),k.jsx(HB,{htmlFor:"clear-cache",className:"text-sm font-medium cursor-pointer",children:t("documentPanel.clearDocuments.clearCache")})]})]}),k.jsxs(oN,{children:[k.jsx(xt,{variant:"outline",onClick:()=>r(!1),children:t("common.cancel")}),k.jsx(xt,{variant:"destructive",onClick:c,disabled:!l,children:t("documentPanel.clearDocuments.confirmButton")})]})]})]})}function Awe({open:e,onOpenChange:t}){var p;const{t:n}=Ht(),[r,a]=T.useState(null),[i,o]=T.useState("center"),[s,l]=T.useState(!1),c=T.useRef(null);T.useEffect(()=>{e&&(o("center"),l(!1))},[e]),T.useEffect(()=>{const h=c.current;!h||s||(h.scrollTop=h.scrollHeight)},[r==null?void 0:r.history_messages,s]);const d=()=>{const h=c.current;if(!h)return;const g=Math.abs(h.scrollHeight-h.scrollTop-h.clientHeight)<1;l(!g)};return T.useEffect(()=>{if(!e)return;const h=async()=>{try{const b=await ole();a(b)}catch(b){en.error(n("documentPanel.pipelineStatus.errors.fetchFailed",{error:ua(b)}))}};h();const g=setInterval(h,2e3);return()=>clearInterval(g)},[e,n]),k.jsx(Rp,{open:e,onOpenChange:t,children:k.jsxs(Pu,{className:je("sm:max-w-[600px] transition-all duration-200 fixed",i==="left"&&"!left-[25%] !translate-x-[-50%] !mx-4",i==="center"&&"!left-1/2 !-translate-x-1/2",i==="right"&&"!left-[75%] !translate-x-[-50%] !mx-4"),children:[k.jsx($u,{className:"sr-only",children:r!=null&&r.job_name?`${n("documentPanel.pipelineStatus.jobName")}: ${r.job_name}, ${n("documentPanel.pipelineStatus.progress")}: ${r.cur_batch}/${r.batchs}`:n("documentPanel.pipelineStatus.noActiveJob")}),k.jsxs(Bu,{className:"flex flex-row items-center",children:[k.jsx(zu,{className:"flex-1",children:n("documentPanel.pipelineStatus.title")}),k.jsxs("div",{className:"flex items-center gap-2 mr-8",children:[k.jsx(xt,{variant:"ghost",size:"icon",className:je("h-6 w-6",i==="left"&&"bg-zinc-200 text-zinc-800 hover:bg-zinc-300 dark:bg-zinc-700 dark:text-zinc-200 dark:hover:bg-zinc-600"),onClick:()=>o("left"),children:k.jsx(Cfe,{className:"h-4 w-4"})}),k.jsx(xt,{variant:"ghost",size:"icon",className:je("h-6 w-6",i==="center"&&"bg-zinc-200 text-zinc-800 hover:bg-zinc-300 dark:bg-zinc-700 dark:text-zinc-200 dark:hover:bg-zinc-600"),onClick:()=>o("center"),children:k.jsx(kfe,{className:"h-4 w-4"})}),k.jsx(xt,{variant:"ghost",size:"icon",className:je("h-6 w-6",i==="right"&&"bg-zinc-200 text-zinc-800 hover:bg-zinc-300 dark:bg-zinc-700 dark:text-zinc-200 dark:hover:bg-zinc-600"),onClick:()=>o("right"),children:k.jsx(Afe,{className:"h-4 w-4"})})]})]}),k.jsxs("div",{className:"space-y-4 pt-4",children:[k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsxs("div",{className:"text-sm font-medium",children:[n("documentPanel.pipelineStatus.busy"),":"]}),k.jsx("div",{className:`h-2 w-2 rounded-full ${r!=null&&r.busy?"bg-green-500":"bg-gray-300"}`})]}),k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsxs("div",{className:"text-sm font-medium",children:[n("documentPanel.pipelineStatus.requestPending"),":"]}),k.jsx("div",{className:`h-2 w-2 rounded-full ${r!=null&&r.request_pending?"bg-green-500":"bg-gray-300"}`})]})]}),k.jsxs("div",{className:"rounded-md border p-3 space-y-2",children:[k.jsxs("div",{children:[n("documentPanel.pipelineStatus.jobName"),": ",(r==null?void 0:r.job_name)||"-"]}),k.jsxs("div",{className:"flex justify-between",children:[k.jsxs("span",{children:[n("documentPanel.pipelineStatus.startTime"),": ",r!=null&&r.job_start?new Date(r.job_start).toLocaleString():"-"]}),k.jsxs("span",{children:[n("documentPanel.pipelineStatus.progress"),": ",r?`${r.cur_batch}/${r.batchs} ${n("documentPanel.pipelineStatus.unit")}`:"-"]})]})]}),k.jsxs("div",{className:"space-y-2",children:[k.jsxs("div",{className:"text-sm font-medium",children:[n("documentPanel.pipelineStatus.latestMessage"),":"]}),k.jsx("div",{className:"font-mono text-xs rounded-md bg-zinc-800 text-zinc-100 p-3",children:(r==null?void 0:r.latest_message)||"-"})]}),k.jsxs("div",{className:"space-y-2",children:[k.jsxs("div",{className:"text-sm font-medium",children:[n("documentPanel.pipelineStatus.historyMessages"),":"]}),k.jsx("div",{ref:c,onScroll:d,className:"font-mono text-xs rounded-md bg-zinc-800 text-zinc-100 p-3 overflow-y-auto min-h-[7.5em] max-h-[40vh]",children:(p=r==null?void 0:r.history_messages)!=null&&p.length?r.history_messages.map((h,g)=>k.jsx("div",{children:h},g)):"-"})]})]})]})})}const zw=(e,t=20)=>{if(!e.file_path||typeof e.file_path!="string"||e.file_path.trim()==="")return e.id;const n=e.file_path.split("/"),r=n[n.length-1];return!r||r.trim()===""?e.id:r.length>t?r.slice(0,t)+"...":r},Rwe=`
/* Tooltip styles */
.tooltip-container {
position: relative;
overflow: visible !important;
}
.tooltip {
position: fixed; /* Use fixed positioning to escape overflow constraints */
z-index: 9999; /* Ensure tooltip appears above all other elements */
max-width: 600px;
white-space: normal;
border-radius: 0.375rem;
padding: 0.5rem 0.75rem;
background-color: rgba(0, 0, 0, 0.95);
color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
pointer-events: none; /* Prevent tooltip from interfering with mouse events */
opacity: 0;
visibility: hidden;
transition: opacity 0.15s, visibility 0.15s;
}
.tooltip.visible {
opacity: 1;
visibility: visible;
}
.dark .tooltip {
background-color: rgba(255, 255, 255, 0.95);
color: black;
}
/* Position tooltip helper class */
.tooltip-helper {
position: absolute;
visibility: hidden;
pointer-events: none;
top: 0;
left: 0;
width: 100%;
height: 0;
}
@keyframes pulse {
0% {
background-color: rgb(255 0 0 / 0.1);
border-color: rgb(255 0 0 / 0.2);
}
50% {
background-color: rgb(255 0 0 / 0.2);
border-color: rgb(255 0 0 / 0.4);
}
100% {
background-color: rgb(255 0 0 / 0.1);
border-color: rgb(255 0 0 / 0.2);
}
}
.dark .pipeline-busy {
animation: dark-pulse 2s infinite;
}
@keyframes dark-pulse {
0% {
background-color: rgb(255 0 0 / 0.2);
border-color: rgb(255 0 0 / 0.4);
}
50% {
background-color: rgb(255 0 0 / 0.3);
border-color: rgb(255 0 0 / 0.6);
}
100% {
background-color: rgb(255 0 0 / 0.2);
border-color: rgb(255 0 0 / 0.4);
}
}
.pipeline-busy {
animation: pulse 2s infinite;
border: 1px solid;
}
`;function Nwe(){const e=T.useRef(!0);T.useEffect(()=>{e.current=!0;const O=()=>{e.current=!1};return window.addEventListener("beforeunload",O),()=>{e.current=!1,window.removeEventListener("beforeunload",O)}},[]);const[t,n]=T.useState(!1),{t:r,i18n:a}=Ht(),i=fa.use.health(),o=fa.use.pipelineBusy(),[s,l]=T.useState(null),c=Pe.use.currentTab(),d=Pe.use.showFileName(),p=Pe.use.setShowFileName(),[h,g]=T.useState("updated_at"),[b,y]=T.useState("desc"),[x,w]=T.useState("all"),S=O=>{h===O?y(P=>P==="asc"?"desc":"asc"):(g(O),y("desc"))},_=T.useCallback(O=>[...O].sort((P,G)=>{let j,W;h==="id"&&d?(j=zw(P),W=zw(G)):h==="id"?(j=P.id,W=G.id):(j=new Date(P[h]).getTime(),W=new Date(G[h]).getTime());const V=b==="asc"?1:-1;return typeof j=="string"&&typeof W=="string"?V*j.localeCompare(W):V*(j>W?1:j<W?-1:0)}),[h,b,d]),N=T.useMemo(()=>{if(!s)return null;const O=[];return x==="all"?Object.entries(s.statuses).forEach(([P,G])=>{G.forEach(j=>{O.push({...j,status:P})})}):(s.statuses[x]||[]).forEach(G=>{O.push({...G,status:x})}),h&&b?_(O):O},[s,h,b,x,_]),R=T.useMemo(()=>{if(!s)return{all:0};const O={all:0};return Object.entries(s.statuses).forEach(([P,G])=>{O[P]=G.length,O.all+=G.length}),O},[s]),C=T.useRef({processed:0,processing:0,pending:0,failed:0});T.useEffect(()=>{const O=document.createElement("style");return O.textContent=Rwe,document.head.appendChild(O),()=>{document.head.removeChild(O)}},[]);const A=T.useRef(null);T.useEffect(()=>{if(!s)return;const O=()=>{document.querySelectorAll(".tooltip-container").forEach(W=>{const V=W.querySelector(".tooltip");if(!V||!V.classList.contains("visible"))return;const B=W.getBoundingClientRect();V.style.left=`${B.left}px`,V.style.top=`${B.top-5}px`,V.style.transform="translateY(-100%)"})},P=j=>{const V=j.target.closest(".tooltip-container");if(!V)return;const B=V.querySelector(".tooltip");B&&(B.classList.add("visible"),O())},G=j=>{const V=j.target.closest(".tooltip-container");if(!V)return;const B=V.querySelector(".tooltip");B&&B.classList.remove("visible")};return document.addEventListener("mouseover",P),document.addEventListener("mouseout",G),()=>{document.removeEventListener("mouseover",P),document.removeEventListener("mouseout",G)}},[s]);const I=T.useCallback(async()=>{try{if(!e.current)return;const O=await Jse();if(!e.current)return;e.current&&(O&&O.statuses&&Object.values(O.statuses).reduce((G,j)=>G+j.length,0)>0?l(O):l(null))}catch(O){e.current&&en.error(r("documentPanel.documentManager.errors.loadFailed",{error:ua(O)}))}},[l,r]);T.useEffect(()=>{c==="documents"&&I()},[c,I]);const D=T.useCallback(async()=>{try{if(!e.current)return;const{status:O}=await ele();if(!e.current)return;en.message(O)}catch(O){e.current&&en.error(r("documentPanel.documentManager.errors.scanFailed",{error:ua(O)}))}},[r]);return T.useEffect(()=>{if(c!=="documents"||!i)return;const O=setInterval(async()=>{try{e.current&&await I()}catch(P){e.current&&en.error(r("documentPanel.documentManager.errors.scanProgressFailed",{error:ua(P)}))}},5e3);return()=>{clearInterval(O)}},[i,I,r,c]),T.useEffect(()=>{var G,j,W,V,B,U,M,K;if(!s)return;const O={processed:((j=(G=s==null?void 0:s.statuses)==null?void 0:G.processed)==null?void 0:j.length)||0,processing:((V=(W=s==null?void 0:s.statuses)==null?void 0:W.processing)==null?void 0:V.length)||0,pending:((U=(B=s==null?void 0:s.statuses)==null?void 0:B.pending)==null?void 0:U.length)||0,failed:((K=(M=s==null?void 0:s.statuses)==null?void 0:M.failed)==null?void 0:K.length)||0};Object.keys(O).some(F=>O[F]!==C.current[F])&&e.current&&fa.getState().check(),C.current=O},[s]),T.useEffect(()=>{},[h,b]),k.jsxs(Rl,{className:"!rounded-none !overflow-hidden flex flex-col h-full min-h-0",children:[k.jsx(Jf,{className:"py-2 px-6",children:k.jsx(ep,{className:"text-lg",children:r("documentPanel.documentManager.title")})}),k.jsxs(tp,{className:"flex-1 flex flex-col min-h-0 overflow-auto",children:[k.jsxs("div",{className:"flex gap-2 mb-2",children:[k.jsxs("div",{className:"flex gap-2",children:[k.jsxs(xt,{variant:"outline",onClick:D,side:"bottom",tooltip:r("documentPanel.documentManager.scanTooltip"),size:"sm",children:[k.jsx(i8,{})," ",r("documentPanel.documentManager.scanButton")]}),k.jsxs(xt,{variant:"outline",onClick:()=>n(!0),side:"bottom",tooltip:r("documentPanel.documentManager.pipelineStatusTooltip"),size:"sm",className:je(o&&"pipeline-busy"),children:[k.jsx(wfe,{})," ",r("documentPanel.documentManager.pipelineStatusButton")]})]}),k.jsx("div",{className:"flex-1"}),k.jsx(Twe,{onDocumentsCleared:I}),k.jsx(Cwe,{onDocumentsUploaded:I}),k.jsx(Awe,{open:t,onOpenChange:n})]}),k.jsxs(Rl,{className:"flex-1 flex flex-col border rounded-md min-h-0 mb-2",children:[k.jsxs(Jf,{className:"flex-none py-2 px-4",children:[k.jsxs("div",{className:"flex justify-between items-center",children:[k.jsx(ep,{children:r("documentPanel.documentManager.uploadedTitle")}),k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx(qfe,{className:"h-4 w-4"}),k.jsxs("div",{className:"flex gap-1",dir:a.dir(),children:[k.jsxs(xt,{size:"sm",variant:x==="all"?"secondary":"outline",onClick:()=>w("all"),className:je(x==="all"&&"bg-gray-100 dark:bg-gray-900 font-medium border border-gray-400 dark:border-gray-500 shadow-sm"),children:[r("documentPanel.documentManager.status.all")," (",R.all,")"]}),k.jsxs(xt,{size:"sm",variant:x==="processed"?"secondary":"outline",onClick:()=>w("processed"),className:je(R.processed>0?"text-green-600":"text-gray-500",x==="processed"&&"bg-green-100 dark:bg-green-900/30 font-medium border border-green-400 dark:border-green-600 shadow-sm"),children:[r("documentPanel.documentManager.status.completed")," (",R.processed||0,")"]}),k.jsxs(xt,{size:"sm",variant:x==="processing"?"secondary":"outline",onClick:()=>w("processing"),className:je(R.processing>0?"text-blue-600":"text-gray-500",x==="processing"&&"bg-blue-100 dark:bg-blue-900/30 font-medium border border-blue-400 dark:border-blue-600 shadow-sm"),children:[r("documentPanel.documentManager.status.processing")," (",R.processing||0,")"]}),k.jsxs(xt,{size:"sm",variant:x==="pending"?"secondary":"outline",onClick:()=>w("pending"),className:je(R.pending>0?"text-yellow-600":"text-gray-500",x==="pending"&&"bg-yellow-100 dark:bg-yellow-900/30 font-medium border border-yellow-400 dark:border-yellow-600 shadow-sm"),children:[r("documentPanel.documentManager.status.pending")," (",R.pending||0,")"]}),k.jsxs(xt,{size:"sm",variant:x==="failed"?"secondary":"outline",onClick:()=>w("failed"),className:je(R.failed>0?"text-red-600":"text-gray-500",x==="failed"&&"bg-red-100 dark:bg-red-900/30 font-medium border border-red-400 dark:border-red-600 shadow-sm"),children:[r("documentPanel.documentManager.status.failed")," (",R.failed||0,")"]})]})]}),k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("label",{htmlFor:"toggle-filename-btn",className:"text-sm text-gray-500",children:r("documentPanel.documentManager.fileNameLabel")}),k.jsx(xt,{id:"toggle-filename-btn",variant:"outline",size:"sm",onClick:()=>p(!d),className:"border-gray-200 dark:border-gray-700 hover:bg-gray-100 dark:hover:bg-gray-800",children:r(d?"documentPanel.documentManager.hideButton":"documentPanel.documentManager.showButton")})]})]}),k.jsx(Ay,{"aria-hidden":"true",className:"hidden",children:r("documentPanel.documentManager.uploadedDescription")})]}),k.jsxs(tp,{className:"flex-1 relative p-0",ref:A,children:[!s&&k.jsx("div",{className:"absolute inset-0 p-0",children:k.jsx(wSe,{title:r("documentPanel.documentManager.emptyTitle"),description:r("documentPanel.documentManager.emptyDescription")})}),s&&k.jsx("div",{className:"absolute inset-0 flex flex-col p-0",children:k.jsx("div",{className:"absolute inset-[-1px] flex flex-col p-0 border rounded-md border-gray-200 dark:border-gray-700 overflow-hidden",children:k.jsxs(vV,{className:"w-full",children:[k.jsx(xV,{className:"sticky top-0 bg-background z-10 shadow-sm",children:k.jsxs(JA,{className:"border-b bg-card/95 backdrop-blur supports-[backdrop-filter]:bg-card/75 shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]",children:[k.jsx(ls,{onClick:()=>S("id"),className:"cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-800 select-none",children:k.jsxs("div",{className:"flex items-center",children:[r("documentPanel.documentManager.columns.id"),h==="id"&&k.jsx("span",{className:"ml-1",children:b==="asc"?k.jsx(jS,{size:14}):k.jsx($S,{size:14})})]})}),k.jsx(ls,{children:r("documentPanel.documentManager.columns.summary")}),k.jsx(ls,{children:r("documentPanel.documentManager.columns.status")}),k.jsx(ls,{children:r("documentPanel.documentManager.columns.length")}),k.jsx(ls,{children:r("documentPanel.documentManager.columns.chunks")}),k.jsx(ls,{onClick:()=>S("created_at"),className:"cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-800 select-none",children:k.jsxs("div",{className:"flex items-center",children:[r("documentPanel.documentManager.columns.created"),h==="created_at"&&k.jsx("span",{className:"ml-1",children:b==="asc"?k.jsx(jS,{size:14}):k.jsx($S,{size:14})})]})}),k.jsx(ls,{onClick:()=>S("updated_at"),className:"cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-800 select-none",children:k.jsxs("div",{className:"flex items-center",children:[r("documentPanel.documentManager.columns.updated"),h==="updated_at"&&k.jsx("span",{className:"ml-1",children:b==="asc"?k.jsx(jS,{size:14}):k.jsx($S,{size:14})})]})})]})}),k.jsx(SV,{className:"text-sm overflow-auto",children:N&&N.map(O=>k.jsxs(JA,{children:[k.jsx(cs,{className:"truncate font-mono overflow-visible max-w-[250px]",children:d?k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"group relative overflow-visible tooltip-container",children:[k.jsx("div",{className:"truncate",children:zw(O,30)}),k.jsx("div",{className:"invisible group-hover:visible tooltip",children:O.file_path})]}),k.jsx("div",{className:"text-xs text-gray-500",children:O.id})]}):k.jsxs("div",{className:"group relative overflow-visible tooltip-container",children:[k.jsx("div",{className:"truncate",children:O.id}),k.jsx("div",{className:"invisible group-hover:visible tooltip",children:O.file_path})]})}),k.jsx(cs,{className:"max-w-xs min-w-45 truncate overflow-visible",children:k.jsxs("div",{className:"group relative overflow-visible tooltip-container",children:[k.jsx("div",{className:"truncate",children:O.content_summary}),k.jsx("div",{className:"invisible group-hover:visible tooltip",children:O.content_summary})]})}),k.jsxs(cs,{children:[O.status==="processed"&&k.jsx("span",{className:"text-green-600",children:r("documentPanel.documentManager.status.completed")}),O.status==="processing"&&k.jsx("span",{className:"text-blue-600",children:r("documentPanel.documentManager.status.processing")}),O.status==="pending"&&k.jsx("span",{className:"text-yellow-600",children:r("documentPanel.documentManager.status.pending")}),O.status==="failed"&&k.jsx("span",{className:"text-red-600",children:r("documentPanel.documentManager.status.failed")}),O.error&&k.jsx("span",{className:"ml-2 text-red-500",title:O.error,children:"⚠️"})]}),k.jsx(cs,{children:O.content_length??"-"}),k.jsx(cs,{children:O.chunks_count??"-"}),k.jsx(cs,{className:"truncate",children:new Date(O.created_at).toLocaleString()}),k.jsx(cs,{className:"truncate",children:new Date(O.updated_at).toLocaleString()})]},O.id))})]})})})]})]})]})]})}function DV(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}var rp;(function(e){e.event="event",e.props="prop"})(rp||(rp={}));function fs(){}function Lwe(e){var t,n=void 0;return function(){for(var r=[],a=arguments.length;a--;)r[a]=arguments[a];return t&&r.length===t.length&&r.every(function(i,o){return i===t[o]})||(t=r,n=e.apply(void 0,r)),n}}function ap(e){return!!(e||"").match(/\d/)}function Zc(e){return e==null}function Owe(e){return typeof e=="number"&&isNaN(e)}function IV(e){return Zc(e)||Owe(e)||typeof e=="number"&&!isFinite(e)}function MV(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Dwe(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Iwe(e,t,n){var r=Dwe(n),a=e.search(/[1-9]/);return a=a===-1?e.length:a,e.substring(0,a)+e.substring(a,e.length).replace(r,"$1"+t)}function Mwe(e){var t=T.useRef(e);t.current=e;var n=T.useRef(function(){for(var r=[],a=arguments.length;a--;)r[a]=arguments[a];return t.current.apply(t,r)});return n.current}function PN(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var a=e.split("."),i=a[0],o=a[1]||"";return{beforeDecimal:i,afterDecimal:o,hasNegation:n,addNegation:r}}function Fwe(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",a=n[1]||"";return(t?"-":"")+r+(a?"."+a:"")}function FV(e,t,n){for(var r="",a=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||a;return r}function GB(e,t){return Array(t+1).join(e)}function PV(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),a=r[0],i=r[1];if(i=Number(i),!i)return n+a;a=a.replace(".","");var o=1+i,s=a.length;return o<0?a="0."+GB("0",Math.abs(o))+a:o>=s?a=a+GB("0",o-s):a=(a.substring(0,o)||"0")+"."+a.substring(o),n+a}function qB(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,a=PN(e),i=a.beforeDecimal,o=a.afterDecimal,s=a.hasNegation,l=parseFloat("0."+(o||"0")),c=o.length<=t?"0."+o:l.toFixed(t),d=c.split("."),p=i;i&&Number(d[0])&&(p=i.split("").reverse().reduce(function(y,x,w){return y.length>w?(Number(y[0])+Number(x)).toString()+y.substring(1,y.length):x+y},d[0]));var h=FV(d[1]||"",t,n),g=s?"-":"",b=r?".":"";return""+g+p+b+h}function fl(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var BV=Lwe(function(e,t){for(var n=0,r=0,a=e.length,i=t.length;e[n]===t[n]&&n<a;)n++;for(;e[a-1-r]===t[i-1-r]&&i-r>n&&a-r>n;)r++;return{from:{start:n,end:a-r},to:{start:n,end:i-r}}}),Pwe=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function Bwe(e,t,n){return Math.min(Math.max(e,t),n)}function $w(e){return Math.max(e.selectionStart,e.selectionEnd)}function zwe(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function $we(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function jwe(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,a=e.formattedValueIndex;return t[r]===n[a]}function Uwe(e,t,n,r,a,i,o){o===void 0&&(o=jwe);var s=a.findIndex(function(N){return N}),l=e.slice(0,s);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var c=n.length,d=e.length,p={},h=new Array(c),g=0;g<c;g++){h[g]=-1;for(var b=0,y=d;b<y;b++){var x=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:g,formattedValueIndex:b});if(x&&p[b]!==!0){h[g]=b,p[b]=!0;break}}}for(var w=r;w<c&&(h[w]===-1||!i(n[w]));)w++;var S=w===c||h[w]===-1?d:h[w];for(w=r-1;w>0&&h[w]===-1;)w--;var _=w===-1||h[w]===-1?0:h[w]+1;return _>S?S:r-_<S-r?_:S}function WB(e,t,n,r){var a=e.length;if(t=Bwe(t,0,a),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=a&&!n[t];)t++;t>a&&(t=n.lastIndexOf(!0))}return t===-1&&(t=a),t}function Hwe(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(ap(e[n])||ap(e[n-1]));return t}function zV(e,t,n,r,a,i){i===void 0&&(i=fs);var o=Mwe(function(b,y){var x,w;return IV(b)?(w="",x=""):typeof b=="number"||y?(w=typeof b=="number"?PV(b):b,x=r(w)):(w=a(b,void 0),x=r(w)),{formattedValue:x,numAsString:w}}),s=T.useState(function(){return o(Zc(e)?t:e,n)}),l=s[0],c=s[1],d=function(b,y){b.formattedValue!==l.formattedValue&&c({formattedValue:b.formattedValue,numAsString:b.value}),i(b,y)},p=e,h=n;Zc(e)&&(p=l.numAsString,h=!0);var g=o(p,h);return T.useMemo(function(){c(g)},[g.formattedValue]),[l,d]}function Gwe(e){return e.replace(/[^0-9]/g,"")}function qwe(e){return e}function Wwe(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,a=e.renderText,i=e.getInputRef,o=e.format;o===void 0&&(o=qwe);var s=e.removeFormatting;s===void 0&&(s=Gwe);var l=e.defaultValue,c=e.valueIsNumericString,d=e.onValueChange,p=e.isAllowed,h=e.onChange;h===void 0&&(h=fs);var g=e.onKeyDown;g===void 0&&(g=fs);var b=e.onMouseUp;b===void 0&&(b=fs);var y=e.onFocus;y===void 0&&(y=fs);var x=e.onBlur;x===void 0&&(x=fs);var w=e.value,S=e.getCaretBoundary;S===void 0&&(S=Hwe);var _=e.isValidInputCharacter;_===void 0&&(_=ap);var N=e.isCharacterSame,R=DV(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),C=zV(w,l,!!c,o,s,d),A=C[0],I=A.formattedValue,D=A.numAsString,O=C[1],P=T.useRef(),G=T.useRef({formattedValue:I,numAsString:D}),j=function(he,Ae){G.current={formattedValue:he.formattedValue,numAsString:he.value},O(he,Ae)},W=T.useState(!1),V=W[0],B=W[1],U=T.useRef(null),M=T.useRef({setCaretTimeout:null,focusTimeout:null});T.useEffect(function(){return B(!0),function(){clearTimeout(M.current.setCaretTimeout),clearTimeout(M.current.focusTimeout)}},[]);var K=o,F=function(he,Ae){var be=parseFloat(Ae);return{formattedValue:he,value:Ae,floatValue:isNaN(be)?void 0:be}},Y=function(he,Ae,be){he.selectionStart===0&&he.selectionEnd===he.value.length||(fl(he,Ae),M.current.setCaretTimeout=setTimeout(function(){he.value===be&&he.selectionStart!==Ae&&fl(he,Ae)},0))},H=function(he,Ae,be){return WB(he,Ae,S(he),be)},$=function(he,Ae,be){var Ce=S(Ae),ue=Uwe(Ae,I,he,be,Ce,_,N);return ue=WB(Ae,ue,Ce),ue},Z=function(he){var Ae=he.formattedValue;Ae===void 0&&(Ae="");var be=he.input,Ce=he.source,ue=he.event,Ve=he.numAsString,We;if(be){var ve=he.inputValue||be.value,Ie=$w(be);be.value=Ae,We=$(ve,Ae,Ie),We!==void 0&&Y(be,We,Ae)}Ae!==I&&j(F(Ae,Ve),{event:ue,source:Ce})};T.useEffect(function(){var he=G.current,Ae=he.formattedValue,be=he.numAsString;(I!==Ae||D!==be)&&j(F(I,D),{event:void 0,source:rp.props})},[I,D]);var Q=U.current?$w(U.current):void 0,ie=typeof window<"u"?T.useLayoutEffect:T.useEffect;ie(function(){var he=U.current;if(I!==G.current.formattedValue&&he){var Ae=$(G.current.formattedValue,I,Q);he.value=I,Y(he,Ae,I)}},[I]);var te=function(he,Ae,be){var Ce=Ae.target,ue=P.current?Pwe(P.current,Ce.selectionEnd):BV(I,he),Ve=Object.assign(Object.assign({},ue),{lastValue:I}),We=s(he,Ve),ve=K(We);if(We=s(ve,void 0),p&&!p(F(ve,We))){var Ie=Ae.target,ae=$w(Ie),ge=$(he,I,ae);return Ie.value=I,Y(Ie,ge,I),!1}return Z({formattedValue:ve,numAsString:We,inputValue:he,event:Ae,source:be,input:Ae.target}),!0},ce=function(he,Ae){Ae===void 0&&(Ae=0);var be=he.selectionStart,Ce=he.selectionEnd;P.current={selectionStart:be,selectionEnd:Ce+Ae}},Te=function(he){var Ae=he.target,be=Ae.value,Ce=te(be,he,rp.event);Ce&&h(he),P.current=void 0},ne=function(he){var Ae=he.target,be=he.key,Ce=Ae.selectionStart,ue=Ae.selectionEnd,Ve=Ae.value;Ve===void 0&&(Ve="");var We;be==="ArrowLeft"||be==="Backspace"?We=Math.max(Ce-1,0):be==="ArrowRight"?We=Math.min(Ce+1,Ve.length):be==="Delete"&&(We=Ce);var ve=0;be==="Delete"&&Ce===ue&&(ve=1);var Ie=be==="ArrowLeft"||be==="ArrowRight";if(We===void 0||Ce!==ue&&!Ie){g(he),ce(Ae,ve);return}var ae=We;if(Ie){var ge=be==="ArrowLeft"?"left":"right";ae=H(Ve,We,ge),ae!==We&&he.preventDefault()}else be==="Delete"&&!_(Ve[We])?ae=H(Ve,We,"right"):be==="Backspace"&&!_(Ve[We])&&(ae=H(Ve,We,"left"));ae!==We&&Y(Ae,ae,Ve),g(he),ce(Ae,ve)},Ee=function(he){var Ae=he.target,be=function(){var Ce=Ae.selectionStart,ue=Ae.selectionEnd,Ve=Ae.value;if(Ve===void 0&&(Ve=""),Ce===ue){var We=H(Ve,Ce);We!==Ce&&Y(Ae,We,Ve)}};be(),requestAnimationFrame(function(){be()}),b(he),ce(Ae)},re=function(he){he.persist&&he.persist();var Ae=he.target,be=he.currentTarget;U.current=Ae,M.current.focusTimeout=setTimeout(function(){var Ce=Ae.selectionStart,ue=Ae.selectionEnd,Ve=Ae.value;Ve===void 0&&(Ve="");var We=H(Ve,Ce);We!==Ce&&!(Ce===0&&ue===Ve.length)&&Y(Ae,We,Ve),y(Object.assign(Object.assign({},he),{currentTarget:be}))},0)},we=function(he){U.current=null,clearTimeout(M.current.focusTimeout),clearTimeout(M.current.setCaretTimeout),x(he)},xe=V&&zwe()?"numeric":void 0,Se=Object.assign({inputMode:xe},R,{type:t,value:I,onChange:Te,onKeyDown:ne,onMouseUp:Ee,onFocus:re,onBlur:we});if(n==="text")return a?Re.createElement(Re.Fragment,null,a(I,R)||null):Re.createElement("span",Object.assign({},R,{ref:i}),I);if(r){var ee=r;return Re.createElement(ee,Object.assign({},Se,{ref:i}))}return Re.createElement("input",Object.assign({},Se,{ref:i}))}function VB(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,a=t.prefix;a===void 0&&(a="");var i=t.suffix;i===void 0&&(i="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=Oy(t),c=l.thousandSeparator,d=l.decimalSeparator,p=n!==0&&e.indexOf(".")!==-1||n&&r,h=PN(e,o),g=h.beforeDecimal,b=h.afterDecimal,y=h.addNegation;return n!==void 0&&(b=FV(b,n,!!r)),c&&(g=Iwe(g,c,s)),a&&(g=a+g),i&&(b=b+i),y&&(g="-"+g),e=g+(p&&d||"")+b,e}function Oy(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function Vwe(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),a=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),a&&!i&&t&&(e="-"+e),e}function Ywe(e,t){return new RegExp("(^-)|[0-9]|"+MV(e),"g")}function Kwe(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function Xwe(e,t,n){var r;t===void 0&&(t=$we(e));var a=n.allowNegative,i=n.prefix;i===void 0&&(i="");var o=n.suffix;o===void 0&&(o="");var s=n.decimalScale,l=t.from,c=t.to,d=c.start,p=c.end,h=Oy(n),g=h.allowedDecimalSeparators,b=h.decimalSeparator,y=e[p]===b;if(ap(e)&&(e===i||e===o)&&t.lastValue==="")return e;if(p-d===1&&g.indexOf(e[d])!==-1){var x=s===0?"":b;e=e.substring(0,d)+x+e.substring(d+1,e.length)}var w=function(U,M,K){var F=!1,Y=!1;i.startsWith("-")?F=!1:U.startsWith("--")?(F=!1,Y=!0):o.startsWith("-")&&U.length===o.length?F=!1:U[0]==="-"&&(F=!0);var H=F?1:0;return Y&&(H=2),H&&(U=U.substring(H),M-=H,K-=H),{value:U,start:M,end:K,hasNegation:F}},S=w(e,d,p),_=S.hasNegation;r=S,e=r.value,d=r.start,p=r.end;var N=w(t.lastValue,l.start,l.end),R=N.start,C=N.end,A=N.value,I=e.substring(d,p);e.length&&A.length&&(R>A.length-o.length||C<i.length)&&!(I&&o.startsWith(I))&&(e=A);var D=0;e.startsWith(i)?D+=i.length:d<i.length&&(D=d),e=e.substring(D),p-=D;var O=e.length,P=e.length-o.length;e.endsWith(o)?O=P:(p>P||p>e.length-o.length)&&(O=p),e=e.substring(0,O),e=Vwe(_?"-"+e:e,a),e=(e.match(Ywe(b))||[]).join("");var G=e.indexOf(b);e=e.replace(new RegExp(MV(b),"g"),function(U,M){return M===G?".":""});var j=PN(e,a),W=j.beforeDecimal,V=j.afterDecimal,B=j.addNegation;return c.end-c.start<l.end-l.start&&W===""&&y&&!parseFloat(V)&&(e=B?"-":""),e}function Zwe(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var a=Array.from({length:e.length+1}).map(function(){return!0}),i=e[0]==="-";a.fill(!1,0,n.length+(i?1:0));var o=e.length;return a.fill(!1,o-r.length+1,o+1),a}function Qwe(e){var t=Oy(e),n=t.thousandSeparator,r=t.decimalSeparator,a=e.prefix;a===void 0&&(a="");var i=e.allowNegative;if(i===void 0&&(i=!0),n===r)throw new Error(`
Decimal separator can't be same as thousand separator.
thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
decimalSeparator: `+r+` (default value for decimalSeparator is .)
`);return a.startsWith("-")&&i&&(console.error(`
Prefix can't start with '-' when allowNegative is true.
prefix: `+a+`
allowNegative: `+i+`
`),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}function Jwe(e){e=Qwe(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,a=e.onKeyDown;a===void 0&&(a=fs);var i=e.onBlur;i===void 0&&(i=fs);var o=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,c=e.prefix;c===void 0&&(c="");var d=e.defaultValue,p=e.value,h=e.valueIsNumericString,g=e.onValueChange,b=DV(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),y=Oy(e),x=y.decimalSeparator,w=y.allowedDecimalSeparators,S=function(B){return VB(B,e)},_=function(B,U){return Xwe(B,U,e)},N=Zc(p)?d:p,R=h??Kwe(N,c,t);Zc(p)?Zc(d)||(R=R||typeof d=="number"):R=R||typeof p=="number";var C=function(B){return IV(B)?B:(typeof B=="number"&&(B=PV(B)),R&&typeof s=="number"?qB(B,s,!!l):B)},A=zV(C(p),C(d),!!R,S,_,g),I=A[0],D=I.numAsString,O=I.formattedValue,P=A[1],G=function(B){var U=B.target,M=B.key,K=U.selectionStart,F=U.selectionEnd,Y=U.value;if(Y===void 0&&(Y=""),(M==="Backspace"||M==="Delete")&&F<c.length){B.preventDefault();return}if(K!==F){a(B);return}M==="Backspace"&&Y[0]==="-"&&K===c.length+1&&n&&fl(U,1),s&&l&&(M==="Backspace"&&Y[K-1]===x?(fl(U,K-1),B.preventDefault()):M==="Delete"&&Y[K]===x&&B.preventDefault()),w!=null&&w.includes(M)&&Y[K]===x&&fl(U,K+1);var H=o===!0?",":o;M==="Backspace"&&Y[K-1]===H&&fl(U,K-1),M==="Delete"&&Y[K]===H&&fl(U,K+1),a(B)},j=function(B){var U=D;if(U.match(/\d/g)||(U=""),r||(U=Fwe(U)),l&&s&&(U=qB(U,s,l)),U!==D){var M=VB(U,e);P({formattedValue:M,value:U,floatValue:parseFloat(U)},{event:B,source:rp.event})}i(B)},W=function(B){return B===x?!0:ap(B)},V=function(B){var U=B.currentValue,M=B.lastValue,K=B.formattedValue,F=B.currentValueIndex,Y=B.formattedValueIndex,H=U[F],$=K[Y],Z=BV(M,U),Q=Z.to,ie=function(te){return _(te).indexOf(".")+c.length};return p===0&&l&&s&&U[Q.start]===x&&ie(U)<F&&ie(K)>Y?!1:F>=Q.start&&F<Q.end&&w&&w.includes(H)&&$===x?!0:H===$};return Object.assign(Object.assign({},b),{value:O,valueIsNumericString:!1,isValidInputCharacter:W,isCharacterSame:V,onValueChange:P,format:S,removeFormatting:_,getCaretBoundary:function(B){return Zwe(B,e)},onKeyDown:G,onBlur:j})}function e0e(e){var t=Jwe(e);return Re.createElement(Wwe,Object.assign({},t))}const $c=T.forwardRef(({stepper:e,thousandSeparator:t,placeholder:n,defaultValue:r,min:a=-1/0,max:i=1/0,onValueChange:o,fixedDecimalScale:s=!1,decimalScale:l=0,className:c=void 0,suffix:d,prefix:p,value:h,...g},b)=>{const[y,x]=T.useState(h??r),w=T.useCallback(()=>{x(R=>R===void 0?e??1:Math.min(R+(e??1),i))},[e,i]),S=T.useCallback(()=>{x(R=>R===void 0?-(e??1):Math.max(R-(e??1),a))},[e,a]);T.useEffect(()=>{h!==void 0&&x(h)},[h]);const _=R=>{const C=R.floatValue===void 0?void 0:R.floatValue;x(C),o&&o(C)},N=()=>{y!==void 0&&(y<a?(x(a),b.current.value=String(a)):y>i&&(x(i),b.current.value=String(i)))};return k.jsxs("div",{className:"relative flex",children:[k.jsx(e0e,{value:y,onValueChange:_,thousandSeparator:t,decimalScale:l,fixedDecimalScale:s,allowNegative:a<0,valueIsNumericString:!0,onBlur:N,max:i,min:a,suffix:d,prefix:p,customInput:R=>k.jsx(Ua,{...R,className:je("w-full",c)}),placeholder:n,className:"[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",getInputRef:b,...g}),k.jsxs("div",{className:"absolute top-0 right-0 bottom-0 flex flex-col",children:[k.jsx(xt,{"aria-label":"Increase value",className:"border-input h-1/2 rounded-l-none rounded-br-none border-b border-l px-2 focus-visible:relative",variant:"outline",onClick:w,disabled:y===i,children:k.jsx(t8,{size:15})}),k.jsx(xt,{"aria-label":"Decrease value",className:"border-input h-1/2 rounded-l-none rounded-tr-none border-b border-l px-2 focus-visible:relative",variant:"outline",onClick:S,disabled:y===a,children:k.jsx(aN,{size:15})})]})]})});$c.displayName="NumberInput";function t0e(){var r,a;const{t:e}=Ht(),t=Pe(i=>i.querySettings),n=T.useCallback((i,o)=>{Pe.getState().updateQuerySettings({[i]:o})},[]);return k.jsxs(Rl,{className:"flex shrink-0 flex-col min-w-[180px]",children:[k.jsxs(Jf,{className:"px-4 pt-4 pb-2",children:[k.jsx(ep,{children:e("retrievePanel.querySettings.parametersTitle")}),k.jsx(Ay,{children:e("retrievePanel.querySettings.parametersDescription")})]}),k.jsx(tp,{className:"m-0 flex grow flex-col p-0 text-xs",children:k.jsx("div",{className:"relative size-full",children:k.jsxs("div",{className:"absolute inset-0 flex flex-col gap-2 overflow-auto px-2",children:[k.jsxs(k.Fragment,{children:[k.jsx(Hr,{className:"ml-1",text:e("retrievePanel.querySettings.queryMode"),tooltip:e("retrievePanel.querySettings.queryModeTooltip"),side:"left"}),k.jsxs(Gm,{value:t.mode,onValueChange:i=>n("mode",i),children:[k.jsx(Kf,{className:"hover:bg-primary/5 h-9 cursor-pointer focus:ring-0 focus:ring-offset-0 focus:outline-0 active:right-0",children:k.jsx(qm,{})}),k.jsx(Xf,{children:k.jsxs(XF,{children:[k.jsx(er,{value:"naive",children:e("retrievePanel.querySettings.queryModeOptions.naive")}),k.jsx(er,{value:"local",children:e("retrievePanel.querySettings.queryModeOptions.local")}),k.jsx(er,{value:"global",children:e("retrievePanel.querySettings.queryModeOptions.global")}),k.jsx(er,{value:"hybrid",children:e("retrievePanel.querySettings.queryModeOptions.hybrid")}),k.jsx(er,{value:"mix",children:e("retrievePanel.querySettings.queryModeOptions.mix")}),k.jsx(er,{value:"bypass",children:e("retrievePanel.querySettings.queryModeOptions.bypass")})]})})]})]}),k.jsxs(k.Fragment,{children:[k.jsx(Hr,{className:"ml-1",text:e("retrievePanel.querySettings.responseFormat"),tooltip:e("retrievePanel.querySettings.responseFormatTooltip"),side:"left"}),k.jsxs(Gm,{value:t.response_type,onValueChange:i=>n("response_type",i),children:[k.jsx(Kf,{className:"hover:bg-primary/5 h-9 cursor-pointer focus:ring-0 focus:ring-offset-0 focus:outline-0 active:right-0",children:k.jsx(qm,{})}),k.jsx(Xf,{children:k.jsxs(XF,{children:[k.jsx(er,{value:"Multiple Paragraphs",children:e("retrievePanel.querySettings.responseFormatOptions.multipleParagraphs")}),k.jsx(er,{value:"Single Paragraph",children:e("retrievePanel.querySettings.responseFormatOptions.singleParagraph")}),k.jsx(er,{value:"Bullet Points",children:e("retrievePanel.querySettings.responseFormatOptions.bulletPoints")})]})})]})]}),k.jsxs(k.Fragment,{children:[k.jsx(Hr,{className:"ml-1",text:e("retrievePanel.querySettings.topK"),tooltip:e("retrievePanel.querySettings.topKTooltip"),side:"left"}),k.jsxs("div",{children:[k.jsx("label",{htmlFor:"top_k",className:"sr-only",children:e("retrievePanel.querySettings.topK")}),k.jsx($c,{id:"top_k",stepper:1,value:t.top_k,onValueChange:i=>n("top_k",i),min:1,placeholder:e("retrievePanel.querySettings.topKPlaceholder")})]})]}),k.jsxs(k.Fragment,{children:[k.jsxs(k.Fragment,{children:[k.jsx(Hr,{className:"ml-1",text:e("retrievePanel.querySettings.maxTokensTextUnit"),tooltip:e("retrievePanel.querySettings.maxTokensTextUnitTooltip"),side:"left"}),k.jsxs("div",{children:[k.jsx("label",{htmlFor:"max_token_for_text_unit",className:"sr-only",children:e("retrievePanel.querySettings.maxTokensTextUnit")}),k.jsx($c,{id:"max_token_for_text_unit",stepper:500,value:t.max_token_for_text_unit,onValueChange:i=>n("max_token_for_text_unit",i),min:1,placeholder:e("retrievePanel.querySettings.maxTokensTextUnit")})]})]}),k.jsxs(k.Fragment,{children:[k.jsx(Hr,{text:e("retrievePanel.querySettings.maxTokensGlobalContext"),tooltip:e("retrievePanel.querySettings.maxTokensGlobalContextTooltip"),side:"left"}),k.jsxs("div",{children:[k.jsx("label",{htmlFor:"max_token_for_global_context",className:"sr-only",children:e("retrievePanel.querySettings.maxTokensGlobalContext")}),k.jsx($c,{id:"max_token_for_global_context",stepper:500,value:t.max_token_for_global_context,onValueChange:i=>n("max_token_for_global_context",i),min:1,placeholder:e("retrievePanel.querySettings.maxTokensGlobalContext")})]})]}),k.jsxs(k.Fragment,{children:[k.jsx(Hr,{className:"ml-1",text:e("retrievePanel.querySettings.maxTokensLocalContext"),tooltip:e("retrievePanel.querySettings.maxTokensLocalContextTooltip"),side:"left"}),k.jsxs("div",{children:[k.jsx("label",{htmlFor:"max_token_for_local_context",className:"sr-only",children:e("retrievePanel.querySettings.maxTokensLocalContext")}),k.jsx($c,{id:"max_token_for_local_context",stepper:500,value:t.max_token_for_local_context,onValueChange:i=>n("max_token_for_local_context",i),min:1,placeholder:e("retrievePanel.querySettings.maxTokensLocalContext")})]})]})]}),k.jsxs(k.Fragment,{children:[k.jsx(Hr,{className:"ml-1",text:e("retrievePanel.querySettings.historyTurns"),tooltip:e("retrievePanel.querySettings.historyTurnsTooltip"),side:"left"}),k.jsxs("div",{children:[k.jsx("label",{htmlFor:"history_turns",className:"sr-only",children:e("retrievePanel.querySettings.historyTurns")}),k.jsx($c,{className:"!border-input",id:"history_turns",stepper:1,type:"text",value:t.history_turns,onValueChange:i=>n("history_turns",i),min:0,placeholder:e("retrievePanel.querySettings.historyTurnsPlaceholder")})]})]}),k.jsxs(k.Fragment,{children:[k.jsxs(k.Fragment,{children:[k.jsx(Hr,{className:"ml-1",text:e("retrievePanel.querySettings.hlKeywords"),tooltip:e("retrievePanel.querySettings.hlKeywordsTooltip"),side:"left"}),k.jsxs("div",{children:[k.jsx("label",{htmlFor:"hl_keywords",className:"sr-only",children:e("retrievePanel.querySettings.hlKeywords")}),k.jsx(Ua,{id:"hl_keywords",type:"text",value:(r=t.hl_keywords)==null?void 0:r.join(", "),onChange:i=>{const o=i.target.value.split(",").map(s=>s.trim()).filter(s=>s!=="");n("hl_keywords",o)},placeholder:e("retrievePanel.querySettings.hlkeywordsPlaceHolder")})]})]}),k.jsxs(k.Fragment,{children:[k.jsx(Hr,{className:"ml-1",text:e("retrievePanel.querySettings.llKeywords"),tooltip:e("retrievePanel.querySettings.llKeywordsTooltip"),side:"left"}),k.jsxs("div",{children:[k.jsx("label",{htmlFor:"ll_keywords",className:"sr-only",children:e("retrievePanel.querySettings.llKeywords")}),k.jsx(Ua,{id:"ll_keywords",type:"text",value:(a=t.ll_keywords)==null?void 0:a.join(", "),onChange:i=>{const o=i.target.value.split(",").map(s=>s.trim()).filter(s=>s!=="");n("ll_keywords",o)},placeholder:e("retrievePanel.querySettings.hlkeywordsPlaceHolder")})]})]})]}),k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("label",{htmlFor:"only_need_context",className:"flex-1",children:k.jsx(Hr,{className:"ml-1",text:e("retrievePanel.querySettings.onlyNeedContext"),tooltip:e("retrievePanel.querySettings.onlyNeedContextTooltip"),side:"left"})}),k.jsx(Xc,{className:"mr-1 cursor-pointer",id:"only_need_context",checked:t.only_need_context,onCheckedChange:i=>n("only_need_context",i)})]}),k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("label",{htmlFor:"only_need_prompt",className:"flex-1",children:k.jsx(Hr,{className:"ml-1",text:e("retrievePanel.querySettings.onlyNeedPrompt"),tooltip:e("retrievePanel.querySettings.onlyNeedPromptTooltip"),side:"left"})}),k.jsx(Xc,{className:"mr-1 cursor-pointer",id:"only_need_prompt",checked:t.only_need_prompt,onCheckedChange:i=>n("only_need_prompt",i)})]}),k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("label",{htmlFor:"stream",className:"flex-1",children:k.jsx(Hr,{className:"ml-1",text:e("retrievePanel.querySettings.streamResponse"),tooltip:e("retrievePanel.querySettings.streamResponseTooltip"),side:"left"})}),k.jsx(Xc,{className:"mr-1 cursor-pointer",id:"stream",checked:t.stream,onCheckedChange:i=>n("stream",i)})]})]})]})})})]})}function n0e(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const r0e=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a0e=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i0e={};function YB(e,t){return(i0e.jsx?a0e:r0e).test(e)}const o0e=/[ \t\n\f\r]/g;function s0e(e){return typeof e=="object"?e.type==="text"?KB(e.value):!1:KB(e)}function KB(e){return e.replace(o0e,"")===""}class zp{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}zp.prototype.property={};zp.prototype.normal={};zp.prototype.space=null;function $V(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new zp(n,r,t)}function oR(e){return e.toLowerCase()}class Va{constructor(t,n){this.property=t,this.attribute=n}}Va.prototype.space=null;Va.prototype.boolean=!1;Va.prototype.booleanish=!1;Va.prototype.overloadedBoolean=!1;Va.prototype.number=!1;Va.prototype.commaSeparated=!1;Va.prototype.spaceSeparated=!1;Va.prototype.commaOrSpaceSeparated=!1;Va.prototype.mustUseProperty=!1;Va.prototype.defined=!1;let l0e=0;const Ct=$l(),Bn=$l(),jV=$l(),Be=$l(),gn=$l(),Qc=$l(),la=$l();function $l(){return 2**++l0e}const sR=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ct,booleanish:Bn,commaOrSpaceSeparated:la,commaSeparated:Qc,number:Be,overloadedBoolean:jV,spaceSeparated:gn},Symbol.toStringTag,{value:"Module"})),jw=Object.keys(sR);class BN extends Va{constructor(t,n,r,a){let i=-1;if(super(t,n),XB(this,"space",a),typeof r=="number")for(;++i<jw.length;){const o=jw[i];XB(this,jw[i],(r&sR[o])===sR[o])}}}BN.prototype.defined=!0;function XB(e,t,n){n&&(e[t]=n)}const c0e={}.hasOwnProperty;function Yu(e){const t={},n={};let r;for(r in e.properties)if(c0e.call(e.properties,r)){const a=e.properties[r],i=new BN(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[oR(r)]=r,n[oR(i.attribute)]=r}return new zp(t,n,e.space)}const UV=Yu({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),HV=Yu({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function GV(e,t){return t in e?e[t]:t}function qV(e,t){return GV(e,t.toLowerCase())}const WV=Yu({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:qV,properties:{xmlns:null,xmlnsXLink:null}}),VV=Yu({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Bn,ariaAutoComplete:null,ariaBusy:Bn,ariaChecked:Bn,ariaColCount:Be,ariaColIndex:Be,ariaColSpan:Be,ariaControls:gn,ariaCurrent:null,ariaDescribedBy:gn,ariaDetails:null,ariaDisabled:Bn,ariaDropEffect:gn,ariaErrorMessage:null,ariaExpanded:Bn,ariaFlowTo:gn,ariaGrabbed:Bn,ariaHasPopup:null,ariaHidden:Bn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:gn,ariaLevel:Be,ariaLive:null,ariaModal:Bn,ariaMultiLine:Bn,ariaMultiSelectable:Bn,ariaOrientation:null,ariaOwns:gn,ariaPlaceholder:null,ariaPosInSet:Be,ariaPressed:Bn,ariaReadOnly:Bn,ariaRelevant:null,ariaRequired:Bn,ariaRoleDescription:gn,ariaRowCount:Be,ariaRowIndex:Be,ariaRowSpan:Be,ariaSelected:Bn,ariaSetSize:Be,ariaSort:null,ariaValueMax:Be,ariaValueMin:Be,ariaValueNow:Be,ariaValueText:null,role:null}}),u0e=Yu({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:qV,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qc,acceptCharset:gn,accessKey:gn,action:null,allow:null,allowFullScreen:Ct,allowPaymentRequest:Ct,allowUserMedia:Ct,alt:null,as:null,async:Ct,autoCapitalize:null,autoComplete:gn,autoFocus:Ct,autoPlay:Ct,blocking:gn,capture:null,charSet:null,checked:Ct,cite:null,className:gn,cols:Be,colSpan:null,content:null,contentEditable:Bn,controls:Ct,controlsList:gn,coords:Be|Qc,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ct,defer:Ct,dir:null,dirName:null,disabled:Ct,download:jV,draggable:Bn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ct,formTarget:null,headers:gn,height:Be,hidden:Ct,high:Be,href:null,hrefLang:null,htmlFor:gn,httpEquiv:gn,id:null,imageSizes:null,imageSrcSet:null,inert:Ct,inputMode:null,integrity:null,is:null,isMap:Ct,itemId:null,itemProp:gn,itemRef:gn,itemScope:Ct,itemType:gn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ct,low:Be,manifest:null,max:null,maxLength:Be,media:null,method:null,min:null,minLength:Be,multiple:Ct,muted:Ct,name:null,nonce:null,noModule:Ct,noValidate:Ct,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle: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:Ct,optimum:Be,pattern:null,ping:gn,placeholder:null,playsInline:Ct,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ct,referrerPolicy:null,rel:gn,required:Ct,reversed:Ct,rows:Be,rowSpan:Be,sandbox:gn,scope:null,scoped:Ct,seamless:Ct,selected:Ct,shadowRootClonable:Ct,shadowRootDelegatesFocus:Ct,shadowRootMode:null,shape:null,size:Be,sizes:null,slot:null,span:Be,spellCheck:Bn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Be,step:null,style:null,tabIndex:Be,target:null,title:null,translate:null,type:null,typeMustMatch:Ct,useMap:null,value:Bn,width:Be,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:gn,axis:null,background:null,bgColor:null,border:Be,borderColor:null,bottomMargin:Be,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ct,declare:Ct,event:null,face:null,frame:null,frameBorder:null,hSpace:Be,leftMargin:Be,link:null,longDesc:null,lowSrc:null,marginHeight:Be,marginWidth:Be,noResize:Ct,noHref:Ct,noShade:Ct,noWrap:Ct,object:null,profile:null,prompt:null,rev:null,rightMargin:Be,rules:null,scheme:null,scrolling:Bn,standby:null,summary:null,text:null,topMargin:Be,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Be,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ct,disableRemotePlayback:Ct,prefix:null,property:null,results:Be,security:null,unselectable:null}}),d0e=Yu({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",transformOrigin:"transform-origin",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:GV,properties:{about:la,accentHeight:Be,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Be,amplitude:Be,arabicForm:null,ascent:Be,attributeName:null,attributeType:null,azimuth:Be,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Be,by:null,calcMode:null,capHeight:Be,className:gn,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:Be,diffuseConstant:Be,direction:null,display:null,dur:null,divisor:Be,dominantBaseline:null,download:Ct,dx:null,dy:null,edgeMode:null,editable:null,elevation:Be,enableBackground:null,end:null,event:null,exponent:Be,externalResourcesRequired:null,fill:null,fillOpacity:Be,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:Qc,g2:Qc,glyphName:Qc,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Be,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Be,horizOriginX:Be,horizOriginY:Be,id:null,ideographic:Be,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Be,k:Be,k1:Be,k2:Be,k3:Be,k4:Be,kernelMatrix:la,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Be,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:Be,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:Be,overlineThickness:Be,paintOrder:null,panose1:null,path:null,pathLength:Be,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:gn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Be,pointsAtY:Be,pointsAtZ:Be,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:la,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:la,rev:la,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:la,requiredFeatures:la,requiredFonts:la,requiredFormats:la,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:Be,specularExponent:Be,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Be,strikethroughThickness:Be,string:null,stroke:null,strokeDashArray:la,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Be,strokeOpacity:Be,strokeWidth:null,style:null,surfaceScale:Be,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:la,tabIndex:Be,tableValues:null,target:null,targetX:Be,targetY:Be,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:la,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Be,underlineThickness:Be,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Be,values:null,vAlphabetic:Be,vMathematical:Be,vectorEffect:null,vHanging:Be,vIdeographic:Be,version:null,vertAdvY:Be,vertOriginX:Be,vertOriginY:Be,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Be,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),f0e=/^data[-\w.:]+$/i,ZB=/-[a-z]/g,p0e=/[A-Z]/g;function h0e(e,t){const n=oR(t);let r=t,a=Va;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&f0e.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(ZB,m0e);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!ZB.test(i)){let o=i.replace(p0e,g0e);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=BN}return new a(r,t)}function g0e(e){return"-"+e.toLowerCase()}function m0e(e){return e.charAt(1).toUpperCase()}const b0e={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},y0e=$V([HV,UV,WV,VV,u0e],"html"),zN=$V([HV,UV,WV,VV,d0e],"svg");function v0e(e){return e.join(" ").trim()}var Lc={},Uw,QB;function x0e(){if(QB)return Uw;QB=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
`,c="/",d="*",p="",h="comment",g="declaration";Uw=function(y,x){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];x=x||{};var w=1,S=1;function _(j){var W=j.match(t);W&&(w+=W.length);var V=j.lastIndexOf(l);S=~V?j.length-V:S+j.length}function N(){var j={line:w,column:S};return function(W){return W.position=new R(j),I(),W}}function R(j){this.start=j,this.end={line:w,column:S},this.source=x.source}R.prototype.content=y;function C(j){var W=new Error(x.source+":"+w+":"+S+": "+j);if(W.reason=j,W.filename=x.source,W.line=w,W.column=S,W.source=y,!x.silent)throw W}function A(j){var W=j.exec(y);if(W){var V=W[0];return _(V),y=y.slice(V.length),W}}function I(){A(n)}function D(j){var W;for(j=j||[];W=O();)W!==!1&&j.push(W);return j}function O(){var j=N();if(!(c!=y.charAt(0)||d!=y.charAt(1))){for(var W=2;p!=y.charAt(W)&&(d!=y.charAt(W)||c!=y.charAt(W+1));)++W;if(W+=2,p===y.charAt(W-1))return C("End of comment missing");var V=y.slice(2,W-2);return S+=2,_(V),y=y.slice(W),S+=2,j({type:h,comment:V})}}function P(){var j=N(),W=A(r);if(W){if(O(),!A(a))return C("property missing ':'");var V=A(i),B=j({type:g,property:b(W[0].replace(e,p)),value:V?b(V[0].replace(e,p)):p});return A(o),B}}function G(){var j=[];D(j);for(var W;W=P();)W!==!1&&(j.push(W),D(j));return j}return I(),G()};function b(y){return y?y.replace(s,p):p}return Uw}var JB;function S0e(){if(JB)return Lc;JB=1;var e=Lc&&Lc.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.default=n;var t=e(x0e());function n(r,a){var i=null;if(!r||typeof r!="string")return i;var o=(0,t.default)(r),s=typeof a=="function";return o.forEach(function(l){if(l.type==="declaration"){var c=l.property,d=l.value;s?a(c,d,l):d&&(i=i||{},i[c]=d)}}),i}return Lc}var w0e=S0e();const ez=Kn(w0e),E0e=ez.default||ez,YV=KV("end"),$N=KV("start");function KV(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function k0e(e){const t=$N(e),n=YV(e);if(t&&n)return{start:t,end:n}}function If(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tz(e.position):"start"in e||"end"in e?tz(e):"line"in e||"column"in e?lR(e):""}function lR(e){return nz(e&&e.line)+":"+nz(e&&e.column)}function tz(e){return lR(e&&e.start)+"-"+lR(e&&e.end)}function nz(e){return e&&typeof e=="number"?e:1}class Cr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=If(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Cr.prototype.file="";Cr.prototype.name="";Cr.prototype.reason="";Cr.prototype.message="";Cr.prototype.stack="";Cr.prototype.column=void 0;Cr.prototype.line=void 0;Cr.prototype.ancestors=void 0;Cr.prototype.cause=void 0;Cr.prototype.fatal=void 0;Cr.prototype.place=void 0;Cr.prototype.ruleId=void 0;Cr.prototype.source=void 0;const jN={}.hasOwnProperty,_0e=new Map,C0e=/[A-Z]/g,T0e=/-([a-z])/g,A0e=new Set(["table","tbody","thead","tfoot","tr"]),R0e=new Set(["td","th"]),XV="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ZV(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=P0e(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=F0e(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?zN:y0e,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=QV(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function QV(e,t,n){if(t.type==="element")return N0e(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return L0e(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return D0e(e,t,n);if(t.type==="mdxjsEsm")return O0e(e,t);if(t.type==="root")return I0e(e,t,n);if(t.type==="text")return M0e(e,t)}function N0e(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=zN,e.schema=a),e.ancestors.push(t);const i=eY(e,t.tagName,!1),o=B0e(e,t);let s=HN(e,t);return A0e.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!s0e(l):!0})),JV(e,o,i,t),UN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function L0e(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ip(e,t.position)}function O0e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ip(e,t.position)}function D0e(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=zN,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:eY(e,t.name,!0),o=z0e(e,t),s=HN(e,t);return JV(e,o,i,t),UN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function I0e(e,t,n){const r={};return UN(r,HN(e,t)),e.create(t,e.Fragment,r,n)}function M0e(e,t){return t.value}function JV(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function UN(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function F0e(e,t,n){return r;function r(a,i,o,s){const c=Array.isArray(o.children)?n:t;return s?c(i,o,s):c(i,o)}}function P0e(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),l=$N(r);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function B0e(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&jN.call(t.properties,a)){const i=$0e(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&R0e.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function z0e(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else ip(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else ip(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function HN(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:_0e;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=a.get(l)||0;o=l+"-"+c,a.set(l,c+1)}}const s=QV(e,i,o);s!==void 0&&n.push(s)}return n}function $0e(e,t,n){const r=h0e(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?n0e(n):v0e(n)),r.property==="style"){let a=typeof n=="object"?n:j0e(e,String(n));return e.stylePropertyNameCase==="css"&&(a=U0e(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?b0e[r.property]||r.property:r.attribute,n]}}function j0e(e,t){const n={};try{E0e(t,r)}catch(a){if(!e.ignoreInvalidStyle){const i=a,o=new Cr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=XV+"#cannot-parse-style-attribute",o}}return n;function r(a,i){let o=a;o.slice(0,2)!=="--"&&(o.slice(0,4)==="-ms-"&&(o="ms-"+o.slice(4)),o=o.replace(T0e,G0e)),n[o]=i}}function eY(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const s=YB(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=YB(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return jN.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);ip(e)}function ip(e,t){const n=new Cr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=XV+"#cannot-handle-mdx-estrees-without-createevaluater",n}function U0e(e){const t={};let n;for(n in e)jN.call(e,n)&&(t[H0e(n)]=e[n]);return t}function H0e(e){let t=e.replace(C0e,q0e);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function G0e(e,t){return t.toUpperCase()}function q0e(e){return"-"+e.toLowerCase()}const Hw={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},W0e={};function GN(e,t){const n=W0e,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return tY(e,r,a)}function tY(e,t,n){if(V0e(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return rz(e.children,t,n)}return Array.isArray(e)?rz(e,t,n):""}function rz(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=tY(e[a],t,n);return r.join("")}function V0e(e){return!!(e&&typeof e=="object")}const az=document.createElement("i");function qN(e){const t="&"+e+";";az.innerHTML=t;const n=az.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ha(e,t,n,r){const a=e.length;let i=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function Fa(e,t){return e.length>0?(ha(e,e.length,0,t),e):t}const iz={}.hasOwnProperty;function nY(e){const t={};let n=-1;for(;++n<e.length;)Y0e(t,e[n]);return t}function Y0e(e,t){let n;for(n in t){const a=(iz.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){iz.call(a,o)||(a[o]=[]);const s=i[o];K0e(a[o],Array.isArray(s)?s:s?[s]:[])}}}function K0e(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ha(e,0,0,r)}function rY(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"<22>":String.fromCodePoint(n)}function oi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Lr=Ns(/[A-Za-z]/),wr=Ns(/[\dA-Za-z]/),X0e=Ns(/[#-'*+\--9=?A-Z^-~]/);function nb(e){return e!==null&&(e<32||e===127)}const cR=Ns(/\d/),Z0e=Ns(/[\dA-Fa-f]/),Q0e=Ns(/[!-/:-@[-`{-~]/);function ot(e){return e!==null&&e<-2}function fn(e){return e!==null&&(e<0||e===32)}function Ft(e){return e===-2||e===-1||e===32}const Dy=Ns(new RegExp("\\p{P}|\\p{S}","u")),Nl=Ns(/\s/);function Ns(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ku(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&wr(e.charCodeAt(n+1))&&wr(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="<22>"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Dt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return Ft(l)?(e.enter(n),s(l)):t(l)}function s(l){return Ft(l)&&i++<a?(e.consume(l),s):(e.exit(n),t(l))}}const J0e={tokenize:eEe};function eEe(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Dt(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return ot(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const tEe={tokenize:nEe},oz={tokenize:rEe};function nEe(e){const t=this,n=[];let r=0,a,i,o;return s;function s(_){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,l,c)(_)}return c(_)}function l(_){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&S();const N=t.events.length;let R=N,C;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){C=t.events[R][1].end;break}w(r);let A=N;for(;A<t.events.length;)t.events[A][1].end={...C},A++;return ha(t.events,R+1,0,t.events.slice(N)),t.events.length=A,c(_)}return s(_)}function c(_){if(r===n.length){if(!a)return h(_);if(a.currentConstruct&&a.currentConstruct.concrete)return b(_);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(oz,d,p)(_)}function d(_){return a&&S(),w(r),h(_)}function p(_){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,b(_)}function h(_){return t.containerState={},e.attempt(oz,g,b)(_)}function g(_){return r++,n.push([t.currentConstruct,t.containerState]),h(_)}function b(_){if(_===null){a&&S(),w(0),e.consume(_);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),y(_)}function y(_){if(_===null){x(e.exit("chunkFlow"),!0),w(0),e.consume(_);return}return ot(_)?(e.consume(_),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(_),y)}function x(_,N){const R=t.sliceStream(_);if(N&&R.push(null),_.previous=i,i&&(i.next=_),i=_,a.defineSkip(_.start),a.write(R),t.parser.lazy[_.start.line]){let C=a.events.length;for(;C--;)if(a.events[C][1].start.offset<o&&(!a.events[C][1].end||a.events[C][1].end.offset>o))return;const A=t.events.length;let I=A,D,O;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(D){O=t.events[I][1].end;break}D=!0}for(w(r),C=A;C<t.events.length;)t.events[C][1].end={...O},C++;ha(t.events,I+1,0,t.events.slice(A)),t.events.length=C}}function w(_){let N=n.length;for(;N-- >_;){const R=n[N];t.containerState=R[1],R[0].exit.call(t,e)}n.length=_}function S(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function rEe(e,t,n){return Dt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function bu(e){if(e===null||fn(e)||Nl(e))return 1;if(Dy(e))return 2}function Iy(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const uR={name:"attention",resolveAll:aEe,tokenize:iEe};function aEe(e,t){let n=-1,r,a,i,o,s,l,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[r][1].end},h={...e[n][1].start};sz(p,-l),sz(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Fa(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Fa(c,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=Fa(c,Iy(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Fa(c,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=Fa(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,ha(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function iEe(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=bu(r);let i;return o;function o(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const c=e.exit("attentionSequence"),d=bu(l),p=!d||d===2&&a||n.includes(l),h=!a||a===2&&d||n.includes(r);return c._open=!!(i===42?p:p&&(a||!h)),c._close=!!(i===42?h:h&&(d||!p)),t(l)}}function sz(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const oEe={name:"autolink",tokenize:sEe};function sEe(e,t,n){let r=0;return a;function a(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(g){return Lr(g)?(e.consume(g),o):g===64?n(g):c(g)}function o(g){return g===43||g===45||g===46||wr(g)?(r=1,s(g)):c(g)}function s(g){return g===58?(e.consume(g),r=0,l):(g===43||g===45||g===46||wr(g))&&r++<32?(e.consume(g),s):(r=0,c(g))}function l(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||nb(g)?n(g):(e.consume(g),l)}function c(g){return g===64?(e.consume(g),d):X0e(g)?(e.consume(g),c):n(g)}function d(g){return wr(g)?p(g):n(g)}function p(g){return g===46?(e.consume(g),r=0,d):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):h(g)}function h(g){if((g===45||wr(g))&&r++<63){const b=g===45?h:p;return e.consume(g),b}return n(g)}}const $p={partial:!0,tokenize:lEe};function lEe(e,t,n){return r;function r(i){return Ft(i)?Dt(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ot(i)?t(i):n(i)}}const aY={continuation:{tokenize:uEe},exit:dEe,name:"blockQuote",tokenize:cEe};function cEe(e,t,n){const r=this;return a;function a(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return Ft(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function uEe(e,t,n){const r=this;return a;function a(o){return Ft(o)?Dt(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(aY,t,n)(o)}}function dEe(e){e.exit("blockQuote")}const iY={name:"characterEscape",tokenize:fEe};function fEe(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return Q0e(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const oY={name:"characterReference",tokenize:pEe};function pEe(e,t,n){const r=this;let a=0,i,o;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),l}function l(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,o=wr,d(p))}function c(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Z0e,d):(e.enter("characterReferenceValue"),i=7,o=cR,d(p))}function d(p){if(p===59&&a){const h=e.exit("characterReferenceValue");return o===wr&&!qN(r.sliceSerialize(h))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(p)&&a++<i?(e.consume(p),d):n(p)}}const lz={partial:!0,tokenize:gEe},cz={concrete:!0,name:"codeFenced",tokenize:hEe};function hEe(e,t,n){const r=this,a={partial:!0,tokenize:R};let i=0,o=0,s;return l;function l(C){return c(C)}function c(C){const A=r.events[r.events.length-1];return i=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,s=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(C)}function d(C){return C===s?(o++,e.consume(C),d):o<3?n(C):(e.exit("codeFencedFenceSequence"),Ft(C)?Dt(e,p,"whitespace")(C):p(C))}function p(C){return C===null||ot(C)?(e.exit("codeFencedFence"),r.interrupt?t(C):e.check(lz,y,N)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(C))}function h(C){return C===null||ot(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(C)):Ft(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Dt(e,g,"whitespace")(C)):C===96&&C===s?n(C):(e.consume(C),h)}function g(C){return C===null||ot(C)?p(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(C))}function b(C){return C===null||ot(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(C)):C===96&&C===s?n(C):(e.consume(C),b)}function y(C){return e.attempt(a,N,x)(C)}function x(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),w}function w(C){return i>0&&Ft(C)?Dt(e,S,"linePrefix",i+1)(C):S(C)}function S(C){return C===null||ot(C)?e.check(lz,y,N)(C):(e.enter("codeFlowValue"),_(C))}function _(C){return C===null||ot(C)?(e.exit("codeFlowValue"),S(C)):(e.consume(C),_)}function N(C){return e.exit("codeFenced"),t(C)}function R(C,A,I){let D=0;return O;function O(V){return C.enter("lineEnding"),C.consume(V),C.exit("lineEnding"),P}function P(V){return C.enter("codeFencedFence"),Ft(V)?Dt(C,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):G(V)}function G(V){return V===s?(C.enter("codeFencedFenceSequence"),j(V)):I(V)}function j(V){return V===s?(D++,C.consume(V),j):D>=o?(C.exit("codeFencedFenceSequence"),Ft(V)?Dt(C,W,"whitespace")(V):W(V)):I(V)}function W(V){return V===null||ot(V)?(C.exit("codeFencedFence"),A(V)):I(V)}}}function gEe(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Gw={name:"codeIndented",tokenize:bEe},mEe={partial:!0,tokenize:yEe};function bEe(e,t,n){const r=this;return a;function a(c){return e.enter("codeIndented"),Dt(e,i,"linePrefix",5)(c)}function i(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):ot(c)?e.attempt(mEe,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||ot(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function yEe(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):ot(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):Dt(e,i,"linePrefix",5)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):ot(o)?a(o):n(o)}}const vEe={name:"codeText",previous:SEe,resolve:xEe,tokenize:wEe};function xEe(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function SEe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wEe(e,t,n){let r=0,a,i;return o;function o(p){return e.enter("codeText"),e.enter("codeTextSequence"),s(p)}function s(p){return p===96?(e.consume(p),r++,s):(e.exit("codeTextSequence"),l(p))}function l(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),l):p===96?(i=e.enter("codeTextSequence"),a=0,d(p)):ot(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||ot(p)?(e.exit("codeTextData"),l(p)):(e.consume(p),c)}function d(p){return p===96?(e.consume(p),a++,d):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(i.type="codeTextData",c(p))}}class EEe{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&lf(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),lf(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),lf(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);lf(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);lf(this.left,n.reverse())}}}function lf(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function sY(e){const t={};let n=-1,r,a,i,o,s,l,c;const d=new EEe(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,kEe(d,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(o=d.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(d.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);else if(o[1].type!=="linePrefix")break;a&&(r[1].end={...d.get(a)[1].start},s=d.slice(a,n),s.unshift(r),d.splice(a,n-a+1,s))}}return ha(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function kEe(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[],o=n._tokenizer||r.parser[n.contentType](n.start),s=o.events,l=[],c={};let d,p,h=-1,g=n,b=0,y=0;const x=[y];for(;g;){for(;e.get(++a)[1]!==g;);i.push(a),g._tokenizer||(d=r.sliceStream(g),g.next||d.push(null),p&&o.defineSkip(g.start),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=g,g=g.next}for(g=n;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(y=h+1,x.push(y),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(o.events=[],g?(g._tokenizer=void 0,g.previous=void 0):x.pop(),h=x.length;h--;){const w=s.slice(x[h],x[h+1]),S=i.pop();l.push([S,S+w.length-1]),e.splice(S,2,w)}for(l.reverse(),h=-1;++h<l.length;)c[b+l[h][0]]=b+l[h][1],b+=l[h][1]-l[h][0]-1;return c}const _Ee={resolve:TEe,tokenize:AEe},CEe={partial:!0,tokenize:REe};function TEe(e){return sY(e),e}function AEe(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):ot(s)?e.check(CEe,o,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function REe(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Dt(e,i,"linePrefix")}function i(o){if(o===null||ot(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function lY(e,t,n,r,a,i,o,s,l){const c=l||Number.POSITIVE_INFINITY;let d=0;return p;function p(w){return w===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(w),e.exit(i),h):w===null||w===32||w===41||nb(w)?n(w):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(w))}function h(w){return w===62?(e.enter(i),e.consume(w),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===62?(e.exit("chunkString"),e.exit(s),h(w)):w===null||w===60||ot(w)?n(w):(e.consume(w),w===92?b:g)}function b(w){return w===60||w===62||w===92?(e.consume(w),g):g(w)}function y(w){return!d&&(w===null||w===41||fn(w))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(w)):d<c&&w===40?(e.consume(w),d++,y):w===41?(e.consume(w),d--,y):w===null||w===32||w===40||nb(w)?n(w):(e.consume(w),w===92?x:y)}function x(w){return w===40||w===41||w===92?(e.consume(w),y):y(w)}}function cY(e,t,n,r,a,i){const o=this;let s=0,l;return c;function c(g){return e.enter(r),e.enter(a),e.consume(g),e.exit(a),e.enter(i),d}function d(g){return s>999||g===null||g===91||g===93&&!l||g===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(i),e.enter(a),e.consume(g),e.exit(a),e.exit(r),t):ot(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===null||g===91||g===93||ot(g)||s++>999?(e.exit("chunkString"),d(g)):(e.consume(g),l||(l=!Ft(g)),g===92?h:p)}function h(g){return g===91||g===92||g===93?(e.consume(g),s++,p):p(g)}}function uY(e,t,n,r,a,i){let o;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(a),e.consume(h),e.exit(a),o=h===40?41:h,l):n(h)}function l(h){return h===o?(e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):(e.enter(i),c(h))}function c(h){return h===o?(e.exit(i),l(o)):h===null?n(h):ot(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Dt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===o||h===null||ot(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?p:d)}function p(h){return h===o||h===92?(e.consume(h),d):d(h)}}function Mf(e,t){let n;return r;function r(a){return ot(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Ft(a)?Dt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const NEe={name:"definition",tokenize:OEe},LEe={partial:!0,tokenize:DEe};function OEe(e,t,n){const r=this;let a;return i;function i(g){return e.enter("definition"),o(g)}function o(g){return cY.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return a=oi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l):n(g)}function l(g){return fn(g)?Mf(e,c)(g):c(g)}function c(g){return lY(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(LEe,p,p)(g)}function p(g){return Ft(g)?Dt(e,h,"whitespace")(g):h(g)}function h(g){return g===null||ot(g)?(e.exit("definition"),r.parser.defined.push(a),t(g)):n(g)}}function DEe(e,t,n){return r;function r(s){return fn(s)?Mf(e,a)(s):n(s)}function a(s){return uY(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return Ft(s)?Dt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||ot(s)?t(s):n(s)}}const IEe={name:"hardBreakEscape",tokenize:MEe};function MEe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ot(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const FEe={name:"headingAtx",resolve:PEe,tokenize:BEe};function PEe(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ha(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function BEe(e,t,n){let r=0;return a;function a(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||fn(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||ot(d)?(e.exit("atxHeading"),t(d)):Ft(d)?Dt(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||fn(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}const zEe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],uz=["pre","script","style","textarea"],$Ee={concrete:!0,name:"htmlFlow",resolveTo:HEe,tokenize:GEe},jEe={partial:!0,tokenize:WEe},UEe={partial:!0,tokenize:qEe};function HEe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function GEe(e,t,n){const r=this;let a,i,o,s,l;return c;function c($){return d($)}function d($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),p}function p($){return $===33?(e.consume($),h):$===47?(e.consume($),i=!0,y):$===63?(e.consume($),a=3,r.interrupt?t:F):Lr($)?(e.consume($),o=String.fromCharCode($),x):n($)}function h($){return $===45?(e.consume($),a=2,g):$===91?(e.consume($),a=5,s=0,b):Lr($)?(e.consume($),a=4,r.interrupt?t:F):n($)}function g($){return $===45?(e.consume($),r.interrupt?t:F):n($)}function b($){const Z="CDATA[";return $===Z.charCodeAt(s++)?(e.consume($),s===Z.length?r.interrupt?t:G:b):n($)}function y($){return Lr($)?(e.consume($),o=String.fromCharCode($),x):n($)}function x($){if($===null||$===47||$===62||fn($)){const Z=$===47,Q=o.toLowerCase();return!Z&&!i&&uz.includes(Q)?(a=1,r.interrupt?t($):G($)):zEe.includes(o.toLowerCase())?(a=6,Z?(e.consume($),w):r.interrupt?t($):G($)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n($):i?S($):_($))}return $===45||wr($)?(e.consume($),o+=String.fromCharCode($),x):n($)}function w($){return $===62?(e.consume($),r.interrupt?t:G):n($)}function S($){return Ft($)?(e.consume($),S):O($)}function _($){return $===47?(e.consume($),O):$===58||$===95||Lr($)?(e.consume($),N):Ft($)?(e.consume($),_):O($)}function N($){return $===45||$===46||$===58||$===95||wr($)?(e.consume($),N):R($)}function R($){return $===61?(e.consume($),C):Ft($)?(e.consume($),R):_($)}function C($){return $===null||$===60||$===61||$===62||$===96?n($):$===34||$===39?(e.consume($),l=$,A):Ft($)?(e.consume($),C):I($)}function A($){return $===l?(e.consume($),l=null,D):$===null||ot($)?n($):(e.consume($),A)}function I($){return $===null||$===34||$===39||$===47||$===60||$===61||$===62||$===96||fn($)?R($):(e.consume($),I)}function D($){return $===47||$===62||Ft($)?_($):n($)}function O($){return $===62?(e.consume($),P):n($)}function P($){return $===null||ot($)?G($):Ft($)?(e.consume($),P):n($)}function G($){return $===45&&a===2?(e.consume($),B):$===60&&a===1?(e.consume($),U):$===62&&a===4?(e.consume($),Y):$===63&&a===3?(e.consume($),F):$===93&&a===5?(e.consume($),K):ot($)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(jEe,H,j)($)):$===null||ot($)?(e.exit("htmlFlowData"),j($)):(e.consume($),G)}function j($){return e.check(UEe,W,H)($)}function W($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),V}function V($){return $===null||ot($)?j($):(e.enter("htmlFlowData"),G($))}function B($){return $===45?(e.consume($),F):G($)}function U($){return $===47?(e.consume($),o="",M):G($)}function M($){if($===62){const Z=o.toLowerCase();return uz.includes(Z)?(e.consume($),Y):G($)}return Lr($)&&o.length<8?(e.consume($),o+=String.fromCharCode($),M):G($)}function K($){return $===93?(e.consume($),F):G($)}function F($){return $===62?(e.consume($),Y):$===45&&a===2?(e.consume($),F):G($)}function Y($){return $===null||ot($)?(e.exit("htmlFlowData"),H($)):(e.consume($),Y)}function H($){return e.exit("htmlFlow"),t($)}}function qEe(e,t,n){const r=this;return a;function a(o){return ot(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function WEe(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt($p,t,n)}}const VEe={name:"htmlText",tokenize:YEe};function YEe(e,t,n){const r=this;let a,i,o;return s;function s(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),l}function l(F){return F===33?(e.consume(F),c):F===47?(e.consume(F),R):F===63?(e.consume(F),_):Lr(F)?(e.consume(F),I):n(F)}function c(F){return F===45?(e.consume(F),d):F===91?(e.consume(F),i=0,b):Lr(F)?(e.consume(F),S):n(F)}function d(F){return F===45?(e.consume(F),g):n(F)}function p(F){return F===null?n(F):F===45?(e.consume(F),h):ot(F)?(o=p,U(F)):(e.consume(F),p)}function h(F){return F===45?(e.consume(F),g):p(F)}function g(F){return F===62?B(F):F===45?h(F):p(F)}function b(F){const Y="CDATA[";return F===Y.charCodeAt(i++)?(e.consume(F),i===Y.length?y:b):n(F)}function y(F){return F===null?n(F):F===93?(e.consume(F),x):ot(F)?(o=y,U(F)):(e.consume(F),y)}function x(F){return F===93?(e.consume(F),w):y(F)}function w(F){return F===62?B(F):F===93?(e.consume(F),w):y(F)}function S(F){return F===null||F===62?B(F):ot(F)?(o=S,U(F)):(e.consume(F),S)}function _(F){return F===null?n(F):F===63?(e.consume(F),N):ot(F)?(o=_,U(F)):(e.consume(F),_)}function N(F){return F===62?B(F):_(F)}function R(F){return Lr(F)?(e.consume(F),C):n(F)}function C(F){return F===45||wr(F)?(e.consume(F),C):A(F)}function A(F){return ot(F)?(o=A,U(F)):Ft(F)?(e.consume(F),A):B(F)}function I(F){return F===45||wr(F)?(e.consume(F),I):F===47||F===62||fn(F)?D(F):n(F)}function D(F){return F===47?(e.consume(F),B):F===58||F===95||Lr(F)?(e.consume(F),O):ot(F)?(o=D,U(F)):Ft(F)?(e.consume(F),D):B(F)}function O(F){return F===45||F===46||F===58||F===95||wr(F)?(e.consume(F),O):P(F)}function P(F){return F===61?(e.consume(F),G):ot(F)?(o=P,U(F)):Ft(F)?(e.consume(F),P):D(F)}function G(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),a=F,j):ot(F)?(o=G,U(F)):Ft(F)?(e.consume(F),G):(e.consume(F),W)}function j(F){return F===a?(e.consume(F),a=void 0,V):F===null?n(F):ot(F)?(o=j,U(F)):(e.consume(F),j)}function W(F){return F===null||F===34||F===39||F===60||F===61||F===96?n(F):F===47||F===62||fn(F)?D(F):(e.consume(F),W)}function V(F){return F===47||F===62||fn(F)?D(F):n(F)}function B(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),t):n(F)}function U(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),M}function M(F){return Ft(F)?Dt(e,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):K(F)}function K(F){return e.enter("htmlTextData"),o(F)}}const WN={name:"labelEnd",resolveAll:QEe,resolveTo:JEe,tokenize:eke},KEe={tokenize:tke},XEe={tokenize:nke},ZEe={tokenize:rke};function QEe(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&ha(e,0,e.length,n),e}function JEe(e,t){let n=e.length,r=0,a,i,o,s;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=Fa(s,e.slice(i+1,i+r+3)),s=Fa(s,[["enter",d,t]]),s=Fa(s,Iy(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=Fa(s,[["exit",d,t],e[o-2],e[o-1],["exit",c,t]]),s=Fa(s,e.slice(o+1)),s=Fa(s,[["exit",l,t]]),ha(e,i,e.length,s),e}function eke(e,t,n){const r=this;let a=r.events.length,i,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return s;function s(h){return i?i._inactive?p(h):(o=r.parser.defined.includes(oi(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(KEe,d,o?d:p)(h):h===91?e.attempt(XEe,d,o?c:p)(h):o?d(h):p(h)}function c(h){return e.attempt(ZEe,d,p)(h)}function d(h){return t(h)}function p(h){return i._balanced=!0,n(h)}}function tke(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),a}function a(p){return fn(p)?Mf(e,i)(p):i(p)}function i(p){return p===41?d(p):lY(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return fn(p)?Mf(e,l)(p):d(p)}function s(p){return n(p)}function l(p){return p===34||p===39||p===40?uY(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function c(p){return fn(p)?Mf(e,d)(p):d(p)}function d(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function nke(e,t,n){const r=this;return a;function a(s){return cY.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(oi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function rke(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const ake={name:"labelStartImage",resolveAll:WN.resolveAll,tokenize:ike};function ike(e,t,n){const r=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const oke={name:"labelStartLink",resolveAll:WN.resolveAll,tokenize:ske};function ske(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const qw={name:"lineEnding",tokenize:lke};function lke(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Dt(e,t,"linePrefix")}}const mm={name:"thematicBreak",tokenize:cke};function cke(e,t,n){let r=0,a;return i;function i(c){return e.enter("thematicBreak"),o(c)}function o(c){return a=c,s(c)}function s(c){return c===a?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||ot(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===a?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Ft(c)?Dt(e,s,"whitespace")(c):s(c))}}const Ur={continuation:{tokenize:pke},exit:gke,name:"list",tokenize:fke},uke={partial:!0,tokenize:mke},dke={partial:!0,tokenize:hke};function fke(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:cR(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(mm,n,c)(g):c(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(g)}return n(g)}function l(g){return cR(g)&&++o<10?(e.consume(g),l):(!r.interrupt||o<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check($p,r.interrupt?n:d,e.attempt(uke,h,p))}function d(g){return r.containerState.initialBlankLine=!0,i++,h(g)}function p(g){return Ft(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),h):n(g)}function h(g){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function pke(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check($p,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Dt(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!Ft(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(dke,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Dt(e,e.attempt(Ur,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function hke(e,t,n){const r=this;return Dt(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function gke(e){e.exit(this.containerState.type)}function mke(e,t,n){const r=this;return Dt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!Ft(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const dz={name:"setextUnderline",resolveTo:bke,tokenize:yke};function bke(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function yke(e,t,n){const r=this;let a;return i;function i(c){let d=r.events.length,p;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){p=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),a=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===a?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Ft(c)?Dt(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||ot(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const vke={tokenize:xke};function xke(e){const t=this,n=e.attempt($p,r,e.attempt(this.parser.constructs.flowInitial,a,Dt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(_Ee,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ske={resolveAll:fY()},wke=dY("string"),Eke=dY("text");function dY(e){return{resolveAll:fY(e==="text"?kke:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(d){return c(d)?i(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),i(d)):(n.consume(d),l)}function c(d){if(d===null)return!0;const p=a[d];let h=-1;if(p)for(;++h<p.length;){const g=p[h];if(!g.previous||g.previous.call(r,r.previous))return!0}return!1}}}function fY(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function kke(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,o=-1,s=0,l;for(;i--;){const c=a[i];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)l=!0,s++;else if(c!==-1){i++;break}}if(s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const _ke={42:Ur,43:Ur,45:Ur,48:Ur,49:Ur,50:Ur,51:Ur,52:Ur,53:Ur,54:Ur,55:Ur,56:Ur,57:Ur,62:aY},Cke={91:NEe},Tke={[-2]:Gw,[-1]:Gw,32:Gw},Ake={35:FEe,42:mm,45:[dz,mm],60:$Ee,61:dz,95:mm,96:cz,126:cz},Rke={38:oY,92:iY},Nke={[-5]:qw,[-4]:qw,[-3]:qw,33:ake,38:oY,42:uR,60:[oEe,VEe],91:oke,92:[IEe,iY],93:WN,95:uR,96:vEe},Lke={null:[uR,Ske]},Oke={null:[42,95]},Dke={null:[]},Ike=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Oke,contentInitial:Cke,disable:Dke,document:_ke,flow:Ake,flowInitial:Tke,insideSpan:Lke,string:Rke,text:Nke},Symbol.toStringTag,{value:"Module"}));function Mke(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let o=[],s=[];const l={attempt:A(R),check:A(C),consume:S,enter:_,exit:N,interrupt:A(C,{interrupt:!0})},c={code:null,containerState:{},defineSkip:y,events:[],now:b,parser:e,previous:null,sliceSerialize:h,sliceStream:g,write:p};let d=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function p(P){return o=Fa(o,P),x(),o[o.length-1]!==null?[]:(I(t,0),c.events=Iy(i,c.events,c),c.events)}function h(P,G){return Pke(g(P),G)}function g(P){return Fke(o,P)}function b(){const{_bufferIndex:P,_index:G,line:j,column:W,offset:V}=r;return{_bufferIndex:P,_index:G,line:j,column:W,offset:V}}function y(P){a[P.line]=P.column,O()}function x(){let P;for(;r._index<o.length;){const G=o[r._index];if(typeof G=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<G.length;)w(G.charCodeAt(r._bufferIndex));else w(G)}}function w(P){d=d(P)}function S(P){ot(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,O()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=P}function _(P,G){const j=G||{};return j.type=P,j.start=b(),c.events.push(["enter",j,c]),s.push(j),j}function N(P){const G=s.pop();return G.end=b(),c.events.push(["exit",G,c]),G}function R(P,G){I(P,G.from)}function C(P,G){G.restore()}function A(P,G){return j;function j(W,V,B){let U,M,K,F;return Array.isArray(W)?H(W):"tokenize"in W?H([W]):Y(W);function Y(ie){return te;function te(ce){const Te=ce!==null&&ie[ce],ne=ce!==null&&ie.null,Ee=[...Array.isArray(Te)?Te:Te?[Te]:[],...Array.isArray(ne)?ne:ne?[ne]:[]];return H(Ee)(ce)}}function H(ie){return U=ie,M=0,ie.length===0?B:$(ie[M])}function $(ie){return te;function te(ce){return F=D(),K=ie,ie.partial||(c.currentConstruct=ie),ie.name&&c.parser.constructs.disable.null.includes(ie.name)?Q():ie.tokenize.call(G?Object.assign(Object.create(c),G):c,l,Z,Q)(ce)}}function Z(ie){return P(K,F),V}function Q(ie){return F.restore(),++M<U.length?$(U[M]):B}}}function I(P,G){P.resolveAll&&!i.includes(P)&&i.push(P),P.resolve&&ha(c.events,G,c.events.length-G,P.resolve(c.events.slice(G),c)),P.resolveTo&&(c.events=P.resolveTo(c.events,c))}function D(){const P=b(),G=c.previous,j=c.currentConstruct,W=c.events.length,V=Array.from(s);return{from:W,restore:B};function B(){r=P,c.previous=G,c.currentConstruct=j,c.events.length=W,s=V,O()}}function O(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function Fke(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function Pke(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
`;break}case-3:{o=`\r
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,r.push(o)}return r.join("")}function Bke(e){const r={constructs:nY([Ike,...(e||{}).extensions||[]]),content:a(J0e),defined:[],document:a(tEe),flow:a(vke),lazy:{},string:a(wke),text:a(Eke)};return r;function a(i){return o;function o(s){return Mke(r,i,s)}}}function zke(e){for(;!sY(e););return e}const fz=/[\0\t\n\r]/g;function $ke(){let e=1,t="",n=!0,r;return a;function a(i,o,s){const l=[];let c,d,p,h,g;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),p=0,t="",n&&(i.charCodeAt(0)===65279&&p++,n=void 0);p<i.length;){if(fz.lastIndex=p,c=fz.exec(i),h=c&&c.index!==void 0?c.index:i.length,g=i.charCodeAt(h),!c){t=i.slice(p);break}if(g===10&&p===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),p<h&&(l.push(i.slice(p,h)),e+=h-p),g){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}p=h+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const jke=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Uke(e){return e.replace(jke,Hke)}function Hke(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return rY(n.slice(i?2:1),i?16:10)}return qN(n)||e}const pY={}.hasOwnProperty;function Gke(e,t,n){return typeof t!="string"&&(n=t,t=void 0),qke(n)(zke(Bke(n).document().write($ke()(e,t,!0))))}function qke(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(be),autolinkProtocol:D,autolinkEmail:D,atxHeading:i(Se),blockQuote:i(ne),characterEscape:D,characterReference:D,codeFenced:i(Ee),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(Ee,o),codeText:i(re,o),codeTextData:D,data:D,codeFlowValue:D,definition:i(we),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(xe),hardBreakEscape:i(ee),hardBreakTrailing:i(ee),htmlFlow:i(he,o),htmlFlowData:D,htmlText:i(he,o),htmlTextData:D,image:i(Ae),label:o,link:i(be),listItem:i(ue),listItemValue:h,listOrdered:i(Ce,p),listUnordered:i(Ce),paragraph:i(Ve),reference:$,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(Se),strong:i(We),thematicBreak:i(Ie)},exit:{atxHeading:l(),atxHeadingSequence:R,autolink:l(),autolinkEmail:Te,autolinkProtocol:ce,blockQuote:l(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:Q,characterReferenceMarkerNumeric:Q,characterReferenceValue:ie,characterReference:te,codeFenced:l(x),codeFencedFence:y,codeFencedFenceInfo:g,codeFencedFenceMeta:b,codeFlowValue:O,codeIndented:l(w),codeText:l(V),codeTextData:O,data:O,definition:l(),definitionDestinationString:N,definitionLabelString:S,definitionTitleString:_,emphasis:l(),hardBreakEscape:l(G),hardBreakTrailing:l(G),htmlFlow:l(j),htmlFlowData:O,htmlText:l(W),htmlTextData:O,image:l(U),label:K,labelText:M,lineEnding:P,link:l(B),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Z,resourceDestinationString:F,resourceTitleString:Y,resource:H,setextHeading:l(I),setextHeadingLineSequence:A,setextHeadingText:C,strong:l(),thematicBreak:l()}};hY(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ae){let ge={type:"root",children:[]};const Me={stack:[ge],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:d,data:n},He=[];let tt=-1;for(;++tt<ae.length;)if(ae[tt][1].type==="listOrdered"||ae[tt][1].type==="listUnordered")if(ae[tt][0]==="enter")He.push(tt);else{const Pt=He.pop();tt=a(ae,Pt,tt)}for(tt=-1;++tt<ae.length;){const Pt=t[ae[tt][0]];pY.call(Pt,ae[tt][1].type)&&Pt[ae[tt][1].type].call(Object.assign({sliceSerialize:ae[tt][2].sliceSerialize},Me),ae[tt][1])}if(Me.tokenStack.length>0){const Pt=Me.tokenStack[Me.tokenStack.length-1];(Pt[1]||pz).call(Me,void 0,Pt[0])}for(ge.position={start:os(ae.length>0?ae[0][1].start:{line:1,column:1,offset:0}),end:os(ae.length>0?ae[ae.length-2][1].end:{line:1,column:1,offset:0})},tt=-1;++tt<t.transforms.length;)ge=t.transforms[tt](ge)||ge;return ge}function a(ae,ge,Me){let He=ge-1,tt=-1,Pt=!1,Gt,Nt,ct,Bt;for(;++He<=Me;){const wt=ae[He];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?tt++:tt--,Bt=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(Gt&&!Bt&&!tt&&!ct&&(ct=He),Bt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bt=void 0}if(!tt&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||tt===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(Gt){let zt=He;for(Nt=void 0;zt--;){const bn=ae[zt];if(bn[1].type==="lineEnding"||bn[1].type==="lineEndingBlank"){if(bn[0]==="exit")continue;Nt&&(ae[Nt][1].type="lineEndingBlank",Pt=!0),bn[1].type="lineEnding",Nt=zt}else if(!(bn[1].type==="linePrefix"||bn[1].type==="blockQuotePrefix"||bn[1].type==="blockQuotePrefixWhitespace"||bn[1].type==="blockQuoteMarker"||bn[1].type==="listItemIndent"))break}ct&&(!Nt||ct<Nt)&&(Gt._spread=!0),Gt.end=Object.assign({},Nt?ae[Nt][1].start:wt[1].end),ae.splice(Nt||He,0,["exit",Gt,wt[2]]),He++,Me++}if(wt[1].type==="listItemPrefix"){const zt={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};Gt=zt,ae.splice(He,0,["enter",zt,wt[2]]),He++,Me++,ct=void 0,Bt=!0}}}return ae[ge][1]._spread=Pt,Me}function i(ae,ge){return Me;function Me(He){s.call(this,ae(He),He),ge&&ge.call(this,He)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(ae,ge,Me){this.stack[this.stack.length-1].children.push(ae),this.stack.push(ae),this.tokenStack.push([ge,Me||void 0]),ae.position={start:os(ge.start),end:void 0}}function l(ae){return ge;function ge(Me){ae&&ae.call(this,Me),c.call(this,Me)}}function c(ae,ge){const Me=this.stack.pop(),He=this.tokenStack.pop();if(He)He[0].type!==ae.type&&(ge?ge.call(this,ae,He[0]):(He[1]||pz).call(this,ae,He[0]));else throw new Error("Cannot close `"+ae.type+"` ("+If({start:ae.start,end:ae.end})+"): its not open");Me.position.end=os(ae.end)}function d(){return GN(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(ae){if(this.data.expectingFirstListItemValue){const ge=this.stack[this.stack.length-2];ge.start=Number.parseInt(this.sliceSerialize(ae),10),this.data.expectingFirstListItemValue=void 0}}function g(){const ae=this.resume(),ge=this.stack[this.stack.length-1];ge.lang=ae}function b(){const ae=this.resume(),ge=this.stack[this.stack.length-1];ge.meta=ae}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const ae=this.resume(),ge=this.stack[this.stack.length-1];ge.value=ae.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const ae=this.resume(),ge=this.stack[this.stack.length-1];ge.value=ae.replace(/(\r?\n|\r)$/g,"")}function S(ae){const ge=this.resume(),Me=this.stack[this.stack.length-1];Me.label=ge,Me.identifier=oi(this.sliceSerialize(ae)).toLowerCase()}function _(){const ae=this.resume(),ge=this.stack[this.stack.length-1];ge.title=ae}function N(){const ae=this.resume(),ge=this.stack[this.stack.length-1];ge.url=ae}function R(ae){const ge=this.stack[this.stack.length-1];if(!ge.depth){const Me=this.sliceSerialize(ae).length;ge.depth=Me}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function A(ae){const ge=this.stack[this.stack.length-1];ge.depth=this.sliceSerialize(ae).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function D(ae){const Me=this.stack[this.stack.length-1].children;let He=Me[Me.length-1];(!He||He.type!=="text")&&(He=ve(),He.position={start:os(ae.start),end:void 0},Me.push(He)),this.stack.push(He)}function O(ae){const ge=this.stack.pop();ge.value+=this.sliceSerialize(ae),ge.position.end=os(ae.end)}function P(ae){const ge=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Me=ge.children[ge.children.length-1];Me.position.end=os(ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ge.type)&&(D.call(this,ae),O.call(this,ae))}function G(){this.data.atHardBreak=!0}function j(){const ae=this.resume(),ge=this.stack[this.stack.length-1];ge.value=ae}function W(){const ae=this.resume(),ge=this.stack[this.stack.length-1];ge.value=ae}function V(){const ae=this.resume(),ge=this.stack[this.stack.length-1];ge.value=ae}function B(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const ge=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=ge,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function U(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const ge=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=ge,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function M(ae){const ge=this.sliceSerialize(ae),Me=this.stack[this.stack.length-2];Me.label=Uke(ge),Me.identifier=oi(ge).toLowerCase()}function K(){const ae=this.stack[this.stack.length-1],ge=this.resume(),Me=this.stack[this.stack.length-1];if(this.data.inReference=!0,Me.type==="link"){const He=ae.children;Me.children=He}else Me.alt=ge}function F(){const ae=this.resume(),ge=this.stack[this.stack.length-1];ge.url=ae}function Y(){const ae=this.resume(),ge=this.stack[this.stack.length-1];ge.title=ae}function H(){this.data.inReference=void 0}function $(){this.data.referenceType="collapsed"}function Z(ae){const ge=this.resume(),Me=this.stack[this.stack.length-1];Me.label=ge,Me.identifier=oi(this.sliceSerialize(ae)).toLowerCase(),this.data.referenceType="full"}function Q(ae){this.data.characterReferenceType=ae.type}function ie(ae){const ge=this.sliceSerialize(ae),Me=this.data.characterReferenceType;let He;Me?(He=rY(ge,Me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=qN(ge);const tt=this.stack[this.stack.length-1];tt.value+=He}function te(ae){const ge=this.stack.pop();ge.position.end=os(ae.end)}function ce(ae){O.call(this,ae);const ge=this.stack[this.stack.length-1];ge.url=this.sliceSerialize(ae)}function Te(ae){O.call(this,ae);const ge=this.stack[this.stack.length-1];ge.url="mailto:"+this.sliceSerialize(ae)}function ne(){return{type:"blockquote",children:[]}}function Ee(){return{type:"code",lang:null,meta:null,value:""}}function re(){return{type:"inlineCode",value:""}}function we(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xe(){return{type:"emphasis",children:[]}}function Se(){return{type:"heading",depth:0,children:[]}}function ee(){return{type:"break"}}function he(){return{type:"html",value:""}}function Ae(){return{type:"image",title:null,url:"",alt:null}}function be(){return{type:"link",title:null,url:"",children:[]}}function Ce(ae){return{type:"list",ordered:ae.type==="listOrdered",start:null,spread:ae._spread,children:[]}}function ue(ae){return{type:"listItem",spread:ae._spread,checked:null,children:[]}}function Ve(){return{type:"paragraph",children:[]}}function We(){return{type:"strong",children:[]}}function ve(){return{type:"text",value:""}}function Ie(){return{type:"thematicBreak"}}}function os(e){return{line:e.line,column:e.column,offset:e.offset}}function hY(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?hY(e,r):Wke(e,r)}}function Wke(e,t){let n;for(n in t)if(pY.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function pz(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+If({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+If({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+If({start:t.start,end:t.end})+") is still open")}function Vke(e){const t=this;t.parser=n;function n(r){return Gke(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Yke(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Kke(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function Xke(e,t){const n=t.value?t.value+`
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Zke(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Qke(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Jke(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=Ku(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function e1e(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function t1e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function gY(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=r:a.push({type:"text",value:r}),a}function n1e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return gY(e,t);const a={src:Ku(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function r1e(e,t){const n={src:Ku(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function a1e(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function i1e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return gY(e,t);const a={href:Ku(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function o1e(e,t){const n={href:Ku(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function s1e(e,t,n){const r=e.all(t),a=n?l1e(n):mY(t),i={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let p;d&&d.type==="element"&&d.tagName==="p"?p=d:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(a||s!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
`}),d.type==="element"&&d.tagName==="p"&&!a?o.push(...d.children):o.push(d)}const l=r[r.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
`});const c={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,c),e.applyData(t,c)}function l1e(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=mY(n[r])}return t}function mY(e){const t=e.spread;return t??e.children.length>1}function c1e(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const o=r[a];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function u1e(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function d1e(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function f1e(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function p1e(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),a.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=$N(t.children[1]),l=YV(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),a.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function h1e(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const p=t.children[l],h={},g=o?o[l]:void 0;g&&(h.align=g);let b={type:"element",tagName:i,properties:h,children:[]};p&&(b.children=e.all(p),e.patch(p,b),b=e.applyData(p,b)),c.push(b)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,d),e.applyData(t,d)}function g1e(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const hz=9,gz=32;function m1e(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(mz(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(mz(t.slice(a),a>0,!1)),i.join("")}function mz(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===hz||i===gz;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===hz||i===gz;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function b1e(e,t){const n={type:"text",value:m1e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function y1e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const v1e={blockquote:Yke,break:Kke,code:Xke,delete:Zke,emphasis:Qke,footnoteReference:Jke,heading:e1e,html:t1e,imageReference:n1e,image:r1e,inlineCode:a1e,linkReference:i1e,link:o1e,listItem:s1e,list:c1e,paragraph:u1e,root:d1e,strong:f1e,table:p1e,tableCell:g1e,tableRow:h1e,text:b1e,thematicBreak:y1e,toml:Mg,yaml:Mg,definition:Mg,footnoteDefinition:Mg};function Mg(){}const bY=-1,My=0,Ff=1,rb=2,VN=3,YN=4,KN=5,XN=6,yY=7,vY=8,bz=typeof self=="object"?self:globalThis,x1e=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case My:case bY:return n(o,a);case Ff:{const s=n([],a);for(const l of o)s.push(r(l));return s}case rb:{const s=n({},a);for(const[l,c]of o)s[r(l)]=r(c);return s}case VN:return n(new Date(o),a);case YN:{const{source:s,flags:l}=o;return n(new RegExp(s,l),a)}case KN:{const s=n(new Map,a);for(const[l,c]of o)s.set(r(l),r(c));return s}case XN:{const s=n(new Set,a);for(const l of o)s.add(r(l));return s}case yY:{const{name:s,message:l}=o;return n(new bz[s](l),a)}case vY:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new bz[i](o),a)};return r},yz=e=>x1e(new Map,e)(0),Oc="",{toString:S1e}={},{keys:w1e}=Object,cf=e=>{const t=typeof e;if(t!=="object"||!e)return[My,t];const n=S1e.call(e).slice(8,-1);switch(n){case"Array":return[Ff,Oc];case"Object":return[rb,Oc];case"Date":return[VN,Oc];case"RegExp":return[YN,Oc];case"Map":return[KN,Oc];case"Set":return[XN,Oc];case"DataView":return[Ff,n]}return n.includes("Array")?[Ff,n]:n.includes("Error")?[yY,n]:[rb,n]},Fg=([e,t])=>e===My&&(t==="function"||t==="symbol"),E1e=(e,t,n,r)=>{const a=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},i=o=>{if(n.has(o))return n.get(o);let[s,l]=cf(o);switch(s){case My:{let d=o;switch(l){case"bigint":s=vY,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return a([bY],o)}return a([s,d],o)}case Ff:{if(l){let h=o;return l==="DataView"?h=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(o)),a([l,[...h]],o)}const d=[],p=a([s,d],o);for(const h of o)d.push(i(h));return p}case rb:{if(l)switch(l){case"BigInt":return a([l,o.toString()],o);case"Boolean":case"Number":case"String":return a([l,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const d=[],p=a([s,d],o);for(const h of w1e(o))(e||!Fg(cf(o[h])))&&d.push([i(h),i(o[h])]);return p}case VN:return a([s,o.toISOString()],o);case YN:{const{source:d,flags:p}=o;return a([s,{source:d,flags:p}],o)}case KN:{const d=[],p=a([s,d],o);for(const[h,g]of o)(e||!(Fg(cf(h))||Fg(cf(g))))&&d.push([i(h),i(g)]);return p}case XN:{const d=[],p=a([s,d],o);for(const h of o)(e||!Fg(cf(h)))&&d.push(i(h));return p}}const{message:c}=o;return a([s,{name:l,message:c}],o)};return i},vz=(e,{json:t,lossy:n}={})=>{const r=[];return E1e(!(t||n),!!t,new Map,r)(e),r},ab=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?yz(vz(e,t)):structuredClone(e):(e,t)=>yz(vz(e,t));function k1e(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function _1e(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function C1e(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||k1e,r=e.options.footnoteBackLabel||_1e,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const d=e.all(c),p=String(c.identifier).toUpperCase(),h=Ku(p.toLowerCase());let g=0;const b=[],y=e.footnoteCounts.get(p);for(;y!==void 0&&++g<=y;){b.length>0&&b.push({type:"text",value:" "});let S=typeof n=="string"?n:n(l,g);typeof S=="string"&&(S={type:"text",value:S}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,g),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const x=d[d.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const S=x.children[x.children.length-1];S&&S.type==="text"?S.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...b)}else d.push(...b);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(d,!0)};e.patch(c,w),s.push(w)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...ab(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
`}]}}const Fy=function(e){if(e==null)return N1e;if(typeof e=="function")return Py(e);if(typeof e=="object")return Array.isArray(e)?T1e(e):A1e(e);if(typeof e=="string")return R1e(e);throw new Error("Expected function, string, or object as test")};function T1e(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Fy(e[n]);return Py(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function A1e(e){const t=e;return Py(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function R1e(e){return Py(t);function t(n){return n&&n.type===e}}function Py(e){return t;function t(n,r,a){return!!(L1e(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function N1e(){return!0}function L1e(e){return e!==null&&typeof e=="object"&&"type"in e}const xY=[],O1e=!0,dR=!1,D1e="skip";function SY(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=Fy(a),o=r?-1:1;s(e,void 0,[])();function s(l,c,d){const p=l&&typeof l=="object"?l:{};if(typeof p.type=="string"){const g=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(g?"<"+g+">":""))+")"})}return h;function h(){let g=xY,b,y,x;if((!t||i(l,c,d[d.length-1]||void 0))&&(g=I1e(n(l,d)),g[0]===dR))return g;if("children"in l&&l.children){const w=l;if(w.children&&g[0]!==D1e)for(y=(r?w.children.length:-1)+o,x=d.concat(w);y>-1&&y<w.children.length;){const S=w.children[y];if(b=s(S,y,x)(),b[0]===dR)return b;y=typeof b[1]=="number"?b[1]:y+o}}return g}}}function I1e(e){return Array.isArray(e)?e:typeof e=="number"?[O1e,e]:e==null?xY:[e]}function ZN(e,t,n,r){let a,i,o;typeof t=="function"?(i=void 0,o=t,a=n):(i=t,o=n,a=r),SY(e,i,s,a);function s(l,c){const d=c[c.length-1],p=d?d.children.indexOf(l):void 0;return o(l,p,d)}}const fR={}.hasOwnProperty,M1e={};function F1e(e,t){const n=t||M1e,r=new Map,a=new Map,i=new Map,o={...v1e,...n.handlers},s={all:c,applyData:B1e,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:o,one:l,options:n,patch:P1e,wrap:$1e};return ZN(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const p=d.type==="definition"?r:a,h=String(d.identifier).toUpperCase();p.has(h)||p.set(h,d)}}),s;function l(d,p){const h=d.type,g=s.handlers[h];if(fR.call(s.handlers,h)&&g)return g(s,d,p);if(s.options.passThrough&&s.options.passThrough.includes(h)){if("children"in d){const{children:y,...x}=d,w=ab(x);return w.children=s.all(d),w}return ab(d)}return(s.options.unknownHandler||z1e)(s,d,p)}function c(d){const p=[];if("children"in d){const h=d.children;let g=-1;for(;++g<h.length;){const b=s.one(h[g],d);if(b){if(g&&h[g-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=xz(b.value)),!Array.isArray(b)&&b.type==="element")){const y=b.children[0];y&&y.type==="text"&&(y.value=xz(y.value))}Array.isArray(b)?p.push(...b):p.push(b)}}}return p}}function P1e(e,t){e.position&&(t.position=k0e(e))}function B1e(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&i&&Object.assign(n.properties,ab(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function z1e(e,t){const n=t.data||{},r="value"in t&&!(fR.call(n,"hProperties")||fR.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $1e(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function xz(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Sz(e,t){const n=F1e(e,t),r=n.one(e,void 0),a=C1e(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
`},a),i}function j1e(e,t){return e&&"run"in e?async function(n,r){const a=Sz(n,{file:r,...t});await e.run(a,r)}:function(n,r){return Sz(n,{file:r,...e||t})}}function wz(e){if(e)throw e}var Ww,Ez;function U1e(){if(Ez)return Ww;Ez=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},i=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var d=e.call(c,"constructor"),p=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!d&&!p)return!1;var h;for(h in c);return typeof h>"u"||e.call(c,h)},o=function(c,d){n&&d.name==="__proto__"?n(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},s=function(c,d){if(d==="__proto__")if(e.call(c,d)){if(r)return r(c,d).value}else return;return c[d]};return Ww=function l(){var c,d,p,h,g,b,y=arguments[0],x=1,w=arguments.length,S=!1;for(typeof y=="boolean"&&(S=y,y=arguments[1]||{},x=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});x<w;++x)if(c=arguments[x],c!=null)for(d in c)p=s(y,d),h=s(c,d),y!==h&&(S&&h&&(i(h)||(g=a(h)))?(g?(g=!1,b=p&&a(p)?p:[]):b=p&&i(p)?p:{},o(y,{name:d,newValue:l(S,b,h)})):typeof h<"u"&&o(y,{name:d,newValue:h}));return y},Ww}var H1e=U1e();const Vw=Kn(H1e);function pR(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function G1e(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...a);function s(l,...c){const d=e[++i];let p=-1;if(l){o(l);return}for(;++p<a.length;)(c[p]===null||c[p]===void 0)&&(c[p]=a[p]);a=c,d?q1e(d,s)(...c):o(null,...c)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function q1e(e,t){let n;return r;function r(...o){const s=e.length>o.length;let l;s&&o.push(a);try{l=e.apply(this,o)}catch(c){const d=c;if(s&&n)throw d;return a(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(o,...s){n||(n=!0,t(o,...s))}function i(o){a(null,o)}}const _i={basename:W1e,dirname:V1e,extname:Y1e,join:K1e,sep:"/"};function W1e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');jp(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(r=a):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function V1e(e){if(jp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Y1e(e){jp(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function K1e(...e){let t=-1,n;for(;++t<e.length;)jp(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":X1e(n)}function X1e(e){jp(e);const t=e.codePointAt(0)===47;let n=Z1e(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Z1e(e,t){let n="",r=0,a=-1,i=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(a===o-1||i===1))if(a!==o-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else s===46&&i>-1?i++:i=-1}return n}function jp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Q1e={cwd:J1e};function J1e(){return"/"}function hR(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function e_e(e){if(typeof e=="string")e=new URL(e);else if(!hR(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return t_e(e)}function t_e(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Yw=["history","path","basename","stem","extname","dirname"];class wY{constructor(t){let n;t?hR(t)?n={path:t}:typeof t=="string"||n_e(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Q1e.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Yw.length;){const i=Yw[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)Yw.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?_i.basename(this.path):void 0}set basename(t){Xw(t,"basename"),Kw(t,"basename"),this.path=_i.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?_i.dirname(this.path):void 0}set dirname(t){kz(this.basename,"dirname"),this.path=_i.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?_i.extname(this.path):void 0}set extname(t){if(Kw(t,"extname"),kz(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=_i.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){hR(t)&&(t=e_e(t)),Xw(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?_i.basename(this.path,this.extname):void 0}set stem(t){Xw(t,"stem"),Kw(t,"stem"),this.path=_i.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Cr(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Kw(e,t){if(e&&e.includes(_i.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+_i.sep+"`")}function Xw(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function kz(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function n_e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const r_e=function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},a_e={}.hasOwnProperty;class QN extends r_e{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=G1e()}copy(){const t=new QN;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Vw(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Jw("data",this.frozen),this.namespace[t]=n,this):a_e.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Jw("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Pg(t),r=this.parser||this.Parser;return Zw("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Zw("process",this.parser||this.Parser),Qw("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,o){const s=Pg(t),l=r.parse(s);r.run(l,s,function(d,p,h){if(d||!p||!h)return c(d);const g=p,b=r.stringify(g,h);s_e(b)?h.value=b:h.result=b,c(d,h)});function c(d,p){d||!p?o(d):i?i(p):n(void 0,p)}}}processSync(t){let n=!1,r;return this.freeze(),Zw("processSync",this.parser||this.Parser),Qw("processSync",this.compiler||this.Compiler),this.process(t,a),Cz("processSync","process",n),r;function a(i,o){n=!0,wz(i),r=o}}run(t,n,r){_z(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(o,s){const l=Pg(n);a.run(t,l,c);function c(d,p,h){const g=p||t;d?s(d):o?o(g):r(void 0,g,h)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),Cz("runSync","run",r),a;function i(o,s){wz(o),a=s,r=!0}}stringify(t,n){this.freeze();const r=Pg(n),a=this.compiler||this.Compiler;return Qw("stringify",a),_z(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(Jw("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...p]=c;l(d,p)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(a.settings=Vw(!0,a.settings,c.settings))}function s(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const p=c[d];i(p)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,d){let p=-1,h=-1;for(;++p<r.length;)if(r[p][0]===c){h=p;break}if(h===-1)r.push([c,...d]);else if(d.length>0){let[g,...b]=d;const y=r[h][1];pR(y)&&pR(g)&&(g=Vw(!0,y,g)),r[h]=[c,g,...b]}}}}const i_e=new QN().freeze();function Zw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Qw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Jw(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _z(e){if(!pR(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Cz(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Pg(e){return o_e(e)?e:new wY(e)}function o_e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function s_e(e){return typeof e=="string"||l_e(e)}function l_e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const c_e="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Tz=[],Az={allowDangerousHtml:!0},u_e=/^(https?|ircs?|mailto|xmpp)$/i,d_e=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function f_e(e){const t=p_e(e),n=h_e(e);return g_e(t.runSync(t.parse(n),n),e)}function p_e(e){const t=e.rehypePlugins||Tz,n=e.remarkPlugins||Tz,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Az}:Az;return i_e().use(Vke).use(n).use(j1e,r).use(t)}function h_e(e){const t=e.children||"",n=new wY;return typeof t=="string"&&(n.value=t),n}function g_e(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||m_e;for(const d of d_e)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+c_e+d.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),ZN(e,c),ZV(e,{Fragment:k.Fragment,components:a,ignoreInvalidStyle:!0,jsx:k.jsx,jsxs:k.jsxs,passKeys:!0,passNode:!0});function c(d,p,h){if(d.type==="raw"&&h&&typeof p=="number")return o?h.children.splice(p,1):h.children[p]={type:"text",value:d.value},p;if(d.type==="element"){let g;for(g in Hw)if(Object.hasOwn(Hw,g)&&Object.hasOwn(d.properties,g)){const b=d.properties[g],y=Hw[g];(y===null||y.includes(d.tagName))&&(d.properties[g]=l(String(b||""),g,d))}}if(d.type==="element"){let g=n?!n.includes(d.tagName):i?i.includes(d.tagName):!1;if(!g&&r&&typeof p=="number"&&(g=!r(d,p,h)),g&&h&&typeof p=="number")return s&&d.children?h.children.splice(p,1,...d.children):h.children.splice(p,1),p}}}function m_e(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||u_e.test(e.slice(0,t))?e:""}function Rz(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function b_e(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function y_e(e,t,n){const a=Fy((n||{}).ignore||[]),i=v_e(t);let o=-1;for(;++o<i.length;)SY(e,"text",s);function s(c,d){let p=-1,h;for(;++p<d.length;){const g=d[p],b=h?h.children:void 0;if(a(g,b?b.indexOf(g):void 0,h))return;h=g}if(h)return l(c,d)}function l(c,d){const p=d[d.length-1],h=i[o][0],g=i[o][1];let b=0;const x=p.children.indexOf(c);let w=!1,S=[];h.lastIndex=0;let _=h.exec(c.value);for(;_;){const N=_.index,R={index:_.index,input:_.input,stack:[...d,c]};let C=g(..._,R);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C===!1?h.lastIndex=N+1:(b!==N&&S.push({type:"text",value:c.value.slice(b,N)}),Array.isArray(C)?S.push(...C):C&&S.push(C),b=N+_[0].length,w=!0),!h.global)break;_=h.exec(c.value)}return w?(b<c.value.length&&S.push({type:"text",value:c.value.slice(b)}),p.children.splice(x,1,...S)):S=[c],x+S.length}}function v_e(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([x_e(a[0]),S_e(a[1])])}return t}function x_e(e){return typeof e=="string"?new RegExp(b_e(e),"g"):e}function S_e(e){return typeof e=="function"?e:function(){return e}}const e0="phrasing",t0=["autolink","link","image","label"];function w_e(){return{transforms:[R_e],enter:{literalAutolink:k_e,literalAutolinkEmail:n0,literalAutolinkHttp:n0,literalAutolinkWww:n0},exit:{literalAutolink:A_e,literalAutolinkEmail:T_e,literalAutolinkHttp:__e,literalAutolinkWww:C_e}}}function E_e(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:e0,notInConstruct:t0},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:e0,notInConstruct:t0},{character:":",before:"[ps]",after:"\\/",inConstruct:e0,notInConstruct:t0}]}}function k_e(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function n0(e){this.config.enter.autolinkProtocol.call(this,e)}function __e(e){this.config.exit.autolinkProtocol.call(this,e)}function C_e(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function T_e(e){this.config.exit.autolinkEmail.call(this,e)}function A_e(e){this.exit(e)}function R_e(e){y_e(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,N_e],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),L_e]],{ignore:["link","linkReference"]})}function N_e(e,t,n,r,a){let i="";if(!EY(a)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!O_e(n)))return!1;const o=D_e(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:i+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function L_e(e,t,n,r){return!EY(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function O_e(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function D_e(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=Rz(e,"(");let i=Rz(e,")");for(;r!==-1&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function EY(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Nl(n)||Dy(n))&&(!t||n!==47)}kY.peek=U_e;function I_e(){this.buffer()}function M_e(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function F_e(){this.buffer()}function P_e(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function B_e(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=oi(this.sliceSerialize(e)).toLowerCase(),n.label=t}function z_e(e){this.exit(e)}function $_e(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=oi(this.sliceSerialize(e)).toLowerCase(),n.label=t}function j_e(e){this.exit(e)}function U_e(){return"["}function kY(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),o(),i+=a.move("]"),i}function H_e(){return{enter:{gfmFootnoteCallString:I_e,gfmFootnoteCall:M_e,gfmFootnoteDefinitionLabelString:F_e,gfmFootnoteDefinition:P_e},exit:{gfmFootnoteCallString:B_e,gfmFootnoteCall:z_e,gfmFootnoteDefinitionLabelString:$_e,gfmFootnoteDefinition:j_e}}}function G_e(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:kY},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,i,o){const s=i.createTracker(o);let l=s.move("[^");const c=i.enter("footnoteDefinition"),d=i.enter("label");return l+=s.move(i.safe(i.associationId(r),{before:l,after:"]"})),d(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
`:" ")+i.indentLines(i.containerFlow(r,s.current()),t?_Y:q_e))),c(),l}}function q_e(e,t,n){return t===0?e:_Y(e,t,n)}function _Y(e,t,n){return(n?"":" ")+e}const W_e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];CY.peek=Z_e;function V_e(){return{canContainEols:["delete"],enter:{strikethrough:K_e},exit:{strikethrough:X_e}}}function Y_e(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:W_e}],handlers:{delete:CY}}}function K_e(e){this.enter({type:"delete",children:[]},e)}function X_e(e){this.exit(e)}function CY(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),i(),o}function Z_e(){return"~"}function Q_e(e){return e.length}function J_e(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||Q_e,i=[],o=[],s=[],l=[];let c=0,d=-1;for(;++d<e.length;){const y=[],x=[];let w=-1;for(e[d].length>c&&(c=e[d].length);++w<e[d].length;){const S=eCe(e[d][w]);if(n.alignDelimiters!==!1){const _=a(S);x[w]=_,(l[w]===void 0||_>l[w])&&(l[w]=_)}y.push(S)}o[d]=y,s[d]=x}let p=-1;if(typeof r=="object"&&"length"in r)for(;++p<c;)i[p]=Nz(r[p]);else{const y=Nz(r);for(;++p<c;)i[p]=y}p=-1;const h=[],g=[];for(;++p<c;){const y=i[p];let x="",w="";y===99?(x=":",w=":"):y===108?x=":":y===114&&(w=":");let S=n.alignDelimiters===!1?1:Math.max(1,l[p]-x.length-w.length);const _=x+"-".repeat(S)+w;n.alignDelimiters!==!1&&(S=x.length+S+w.length,S>l[p]&&(l[p]=S),g[p]=S),h[p]=_}o.splice(1,0,h),s.splice(1,0,g),d=-1;const b=[];for(;++d<o.length;){const y=o[d],x=s[d];p=-1;const w=[];for(;++p<c;){const S=y[p]||"";let _="",N="";if(n.alignDelimiters!==!1){const R=l[p]-(x[p]||0),C=i[p];C===114?_=" ".repeat(R):C===99?R%2?(_=" ".repeat(R/2+.5),N=" ".repeat(R/2-.5)):(_=" ".repeat(R/2),N=_):N=" ".repeat(R)}n.delimiterStart!==!1&&!p&&w.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&S==="")&&(n.delimiterStart!==!1||p)&&w.push(" "),n.alignDelimiters!==!1&&w.push(_),w.push(S),n.alignDelimiters!==!1&&w.push(N),n.padding!==!1&&w.push(" "),(n.delimiterEnd!==!1||p!==c-1)&&w.push("|")}b.push(n.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return b.join(`
`)}function eCe(e){return e==null?"":String(e)}function Nz(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function tCe(e,t,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const o=n.indentLines(n.containerFlow(e,i.current()),nCe);return a(),o}function nCe(e,t,n){return">"+(n?"":" ")+e}function rCe(e,t){return Lz(e,t.inConstruct,!0)&&!Lz(e,t.notInConstruct,!1)}function Lz(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Oz(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
`&&rCe(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
`}function TY(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++i>o&&(o=i):i=1,a=r+t.length,r=n.indexOf(t,a);return o}function aCe(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function iCe(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function oCe(e,t,n,r){const a=iCe(n),i=e.value||"",o=a==="`"?"GraveAccent":"Tilde";if(aCe(e,n)){const p=n.enter("codeIndented"),h=n.indentLines(i,sCe);return p(),h}const s=n.createTracker(r),l=a.repeat(Math.max(TY(i,a)+1,3)),c=n.enter("codeFenced");let d=s.move(l);if(e.lang){const p=n.enter(`codeFencedLang${o}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${o}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
`,encode:["`"],...s.current()})),p()}return d+=s.move(`
`),i&&(d+=s.move(i+`
`)),d+=s.move(l),c(),d}function sCe(e,t,n){return(n?"":" ")+e}function JN(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function lCe(e,t,n,r){const a=JN(n),i=a==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":`
`,...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),o(),c}function cCe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function op(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ib(e,t,n){const r=bu(e),a=bu(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}AY.peek=uCe;function AY(e,t,n,r){const a=cCe(n),i=n.enter("emphasis"),o=n.createTracker(r),s=o.move(a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const c=l.charCodeAt(0),d=ib(r.before.charCodeAt(r.before.length-1),c,a);d.inside&&(l=op(c)+l.slice(1));const p=l.charCodeAt(l.length-1),h=ib(r.after.charCodeAt(0),p,a);h.inside&&(l=l.slice(0,-1)+op(p));const g=o.move(a);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},s+l+g}function uCe(e,t,n){return n.options.emphasis||"*"}function dCe(e,t){let n=!1;return ZN(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,dR}),!!((!e.depth||e.depth<3)&&GN(e)&&(t.options.setext||n))}function fCe(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(dCe(e,n)){const d=n.enter("headingSetext"),p=n.enter("phrasing"),h=n.containerPhrasing(e,{...i.current(),before:`
`,after:`
`});return p(),d(),h+`
`+(a===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
`))+1))}const o="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
`,...i.current()});return/^[\t ]/.test(c)&&(c=op(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c}RY.peek=pCe;function RY(e){return e.value||""}function pCe(){return"<"}NY.peek=hCe;function NY(e,t,n,r){const a=JN(n),i=a==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),o(),c}function hCe(){return"!"}LY.peek=gCe;function LY(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=d,i(),a==="full"||!c||c!==p?l+=s.move(p+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function gCe(){return"!"}OY.peek=mCe;function OY(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const o=n.unsafe[i],s=n.compilePattern(o);let l;if(o.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return a+r+a}function mCe(){return"`"}function DY(e,t){const n=GN(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}IY.peek=bCe;function IY(e,t,n,r){const a=JN(n),i=a==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(DY(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let p=o.move("<");return p+=o.move(n.containerPhrasing(e,{before:p,after:">",...o.current()})),p+=o.move(">"),s(),n.stack=d,p}s=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=o.move(" "+a),c+=o.move(n.safe(e.title,{before:c,after:a,...o.current()})),c+=o.move(a),l()),c+=o.move(")"),s(),c}function bCe(e,t,n){return DY(e,n)?"<":"["}MY.peek=yCe;function MY(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=d,i(),a==="full"||!c||c!==p?l+=s.move(p+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function yCe(){return"["}function eL(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function vCe(e){const t=eL(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function xCe(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function FY(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function SCe(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?xCe(n):eL(n);const s=e.ordered?o==="."?")":".":vCe(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),FY(n)===o&&d){let p=-1;for(;++p<e.children.length;){const h=e.children[p];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=i,a(),c}function wCe(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function ECe(e,t,n,r){const a=wCe(n);let i=n.bulletCurrent||eL(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(i+" ".repeat(o-i.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),d);return l(),c;function d(p,h,g){return h?(g?"":" ".repeat(o))+p:(g?i:i+" ".repeat(o-i.length))+p}}function kCe(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),a(),o}const _Ce=Fy(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function CCe(e,t,n,r){return(e.children.some(function(o){return _Ce(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function TCe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}PY.peek=ACe;function PY(e,t,n,r){const a=TCe(n),i=n.enter("strong"),o=n.createTracker(r),s=o.move(a+a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const c=l.charCodeAt(0),d=ib(r.before.charCodeAt(r.before.length-1),c,a);d.inside&&(l=op(c)+l.slice(1));const p=l.charCodeAt(l.length-1),h=ib(r.after.charCodeAt(0),p,a);h.inside&&(l=l.slice(0,-1)+op(p));const g=o.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},s+l+g}function ACe(e,t,n){return n.options.strong||"*"}function RCe(e,t,n,r){return n.safe(e.value,r)}function NCe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function LCe(e,t,n){const r=(FY(n)+(n.options.ruleSpaces?" ":"")).repeat(NCe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const BY={blockquote:tCe,break:Oz,code:oCe,definition:lCe,emphasis:AY,hardBreak:Oz,heading:fCe,html:RY,image:NY,imageReference:LY,inlineCode:OY,link:IY,linkReference:MY,list:SCe,listItem:ECe,paragraph:kCe,root:CCe,strong:PY,text:RCe,thematicBreak:LCe};function OCe(){return{enter:{table:DCe,tableData:Dz,tableHeader:Dz,tableRow:MCe},exit:{codeText:FCe,table:ICe,tableData:r0,tableHeader:r0,tableRow:r0}}}function DCe(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function ICe(e){this.exit(e),this.data.inTable=void 0}function MCe(e){this.enter({type:"tableRow",children:[]},e)}function r0(e){this.exit(e)}function Dz(e){this.enter({type:"tableCell",children:[]},e)}function FCe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,PCe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function PCe(e,t){return t==="|"?t:e}function BCe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:l,tableRow:s}};function o(g,b,y,x){return c(d(g,y,x),g.align)}function s(g,b,y,x){const w=p(g,y,x),S=c([w]);return S.slice(0,S.indexOf(`
`))}function l(g,b,y,x){const w=y.enter("tableCell"),S=y.enter("phrasing"),_=y.containerPhrasing(g,{...x,before:i,after:i});return S(),w(),_}function c(g,b){return J_e(g,{align:b,alignDelimiters:r,padding:n,stringLength:a})}function d(g,b,y){const x=g.children;let w=-1;const S=[],_=b.enter("table");for(;++w<x.length;)S[w]=p(x[w],b,y);return _(),S}function p(g,b,y){const x=g.children;let w=-1;const S=[],_=b.enter("tableRow");for(;++w<x.length;)S[w]=l(x[w],g,b,y);return _(),S}function h(g,b,y){let x=BY.inlineCode(g,b,y);return y.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function zCe(){return{exit:{taskListCheckValueChecked:Iz,taskListCheckValueUnchecked:Iz,paragraph:jCe}}}function $Ce(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:UCe}}}function Iz(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function jCe(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,o;for(;++i<a.length;){const s=a[i];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function UCe(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(o);let l=BY.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(d){return d+o}}function HCe(){return[w_e(),H_e(),V_e(),OCe(),zCe()]}function GCe(e){return{extensions:[E_e(),G_e(e),Y_e(),BCe(e),$Ce()]}}const qCe={tokenize:ZCe,partial:!0},zY={tokenize:QCe,partial:!0},$Y={tokenize:JCe,partial:!0},jY={tokenize:eTe,partial:!0},WCe={tokenize:tTe,partial:!0},UY={name:"wwwAutolink",tokenize:KCe,previous:GY},HY={name:"protocolAutolink",tokenize:XCe,previous:qY},Lo={name:"emailAutolink",tokenize:YCe,previous:WY},ji={};function VCe(){return{text:ji}}let rl=48;for(;rl<123;)ji[rl]=Lo,rl++,rl===58?rl=65:rl===91&&(rl=97);ji[43]=Lo;ji[45]=Lo;ji[46]=Lo;ji[95]=Lo;ji[72]=[Lo,HY];ji[104]=[Lo,HY];ji[87]=[Lo,UY];ji[119]=[Lo,UY];function YCe(e,t,n){const r=this;let a,i;return o;function o(p){return!gR(p)||!WY.call(r,r.previous)||tL(r.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(p))}function s(p){return gR(p)?(e.consume(p),s):p===64?(e.consume(p),l):n(p)}function l(p){return p===46?e.check(WCe,d,c)(p):p===45||p===95||wr(p)?(i=!0,e.consume(p),l):d(p)}function c(p){return e.consume(p),a=!0,l}function d(p){return i&&a&&Lr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function KCe(e,t,n){const r=this;return a;function a(o){return o!==87&&o!==119||!GY.call(r,r.previous)||tL(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(qCe,e.attempt(zY,e.attempt($Y,i),n),n)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function XCe(e,t,n){const r=this;let a="",i=!1;return o;function o(p){return(p===72||p===104)&&qY.call(r,r.previous)&&!tL(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(p),e.consume(p),s):n(p)}function s(p){if(Lr(p)&&a.length<5)return a+=String.fromCodePoint(p),e.consume(p),s;if(p===58){const h=a.toLowerCase();if(h==="http"||h==="https")return e.consume(p),l}return n(p)}function l(p){return p===47?(e.consume(p),i?c:(i=!0,l)):n(p)}function c(p){return p===null||nb(p)||fn(p)||Nl(p)||Dy(p)?n(p):e.attempt(zY,e.attempt($Y,d),n)(p)}function d(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function ZCe(e,t,n){let r=0;return a;function a(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),a):o===46&&r===3?(e.consume(o),i):n(o)}function i(o){return o===null?n(o):t(o)}}function QCe(e,t,n){let r,a,i;return o;function o(c){return c===46||c===95?e.check(jY,l,s)(c):c===null||fn(c)||Nl(c)||c!==45&&Dy(c)?l(c):(i=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(a=r,r=void 0),e.consume(c),o}function l(c){return a||r||!i?n(c):t(c)}}function JCe(e,t){let n=0,r=0;return a;function a(o){return o===40?(n++,e.consume(o),a):o===41&&r<n?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(jY,t,i)(o):o===null||fn(o)||Nl(o)?t(o):(e.consume(o),a)}function i(o){return o===41&&r++,e.consume(o),a}}function eTe(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),i):s===93?(e.consume(s),a):s===60||s===null||fn(s)||Nl(s)?t(s):n(s)}function a(s){return s===null||s===40||s===91||fn(s)||Nl(s)?t(s):r(s)}function i(s){return Lr(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Lr(s)?(e.consume(s),o):n(s)}}function tTe(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return wr(i)?n(i):t(i)}}function GY(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||fn(e)}function qY(e){return!Lr(e)}function WY(e){return!(e===47||gR(e))}function gR(e){return e===43||e===45||e===46||e===95||wr(e)}function tL(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const nTe={tokenize:uTe,partial:!0};function rTe(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:sTe,continuation:{tokenize:lTe},exit:cTe}},text:{91:{name:"gfmFootnoteCall",tokenize:oTe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:aTe,resolveTo:iTe}}}}function aTe(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const l=r.events[a][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=oi(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function iTe(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function oTe(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,o;return s;function s(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),l}function l(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(p){if(i>999||p===93&&!o||p===null||p===91||fn(p))return n(p);if(p===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return a.includes(oi(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return fn(p)||(o=!0),i++,e.consume(p),p===92?d:c}function d(p){return p===91||p===92||p===93?(e.consume(p),i++,c):c(p)}}function sTe(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0,s;return l;function l(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(b)}function d(b){if(o>999||b===93&&!s||b===null||b===91||fn(b))return n(b);if(b===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return i=oi(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return fn(b)||(s=!0),o++,e.consume(b),b===92?p:d}function p(b){return b===91||b===92||b===93?(e.consume(b),o++,d):d(b)}function h(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(i)||a.push(i),Dt(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function lTe(e,t,n){return e.check($p,t,e.attempt(nTe,t,n))}function cTe(e){e.exit("gfmFootnoteDefinition")}function uTe(e,t,n){const r=this;return Dt(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):n(i)}}function dTe(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},p={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},h=[["enter",d,s],["enter",o[c][1],s],["exit",o[c][1],s],["enter",p,s]],g=s.parser.constructs.insideSpan.null;g&&ha(h,h.length,0,Iy(g,o.slice(c+1,l),s)),ha(h,h.length,0,[["exit",p,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",d,s]]),ha(o,c-1,l-c+3,h),l=c+h.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function i(o,s,l){const c=this.previous,d=this.events;let p=0;return h;function h(b){return c===126&&d[d.length-1][1].type!=="characterEscape"?l(b):(o.enter("strikethroughSequenceTemporary"),g(b))}function g(b){const y=bu(c);if(b===126)return p>1?l(b):(o.consume(b),p++,g);if(p<2&&!n)return l(b);const x=o.exit("strikethroughSequenceTemporary"),w=bu(b);return x._open=!w||w===2&&!!y,x._close=!y||y===2&&!!w,s(b)}}}class fTe{constructor(){this.map=[]}add(t,n,r){pTe(this,t,n,r)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const i of a)t.push(i);a=r.pop()}this.map.length=0}}function pTe(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function hTe(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function gTe(){return{flow:{null:{name:"table",tokenize:mTe,resolveAll:bTe}}}}function mTe(e,t,n){const r=this;let a=0,i=0,o;return s;function s(O){let P=r.events.length-1;for(;P>-1;){const W=r.events[P][1].type;if(W==="lineEnding"||W==="linePrefix")P--;else break}const G=P>-1?r.events[P][1].type:null,j=G==="tableHead"||G==="tableRow"?C:l;return j===C&&r.parser.lazy[r.now().line]?n(O):j(O)}function l(O){return e.enter("tableHead"),e.enter("tableRow"),c(O)}function c(O){return O===124||(o=!0,i+=1),d(O)}function d(O){return O===null?n(O):ot(O)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),g):n(O):Ft(O)?Dt(e,d,"whitespace")(O):(i+=1,o&&(o=!1,a+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),p(O)))}function p(O){return O===null||O===124||fn(O)?(e.exit("data"),d(O)):(e.consume(O),O===92?h:p)}function h(O){return O===92||O===124?(e.consume(O),p):p(O)}function g(O){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(O):(e.enter("tableDelimiterRow"),o=!1,Ft(O)?Dt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):b(O))}function b(O){return O===45||O===58?x(O):O===124?(o=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),y):R(O)}function y(O){return Ft(O)?Dt(e,x,"whitespace")(O):x(O)}function x(O){return O===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),w):O===45?(i+=1,w(O)):O===null||ot(O)?N(O):R(O)}function w(O){return O===45?(e.enter("tableDelimiterFiller"),S(O)):R(O)}function S(O){return O===45?(e.consume(O),S):O===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(O))}function _(O){return Ft(O)?Dt(e,N,"whitespace")(O):N(O)}function N(O){return O===124?b(O):O===null||ot(O)?!o||a!==i?R(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):R(O)}function R(O){return n(O)}function C(O){return e.enter("tableRow"),A(O)}function A(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),A):O===null||ot(O)?(e.exit("tableRow"),t(O)):Ft(O)?Dt(e,A,"whitespace")(O):(e.enter("data"),I(O))}function I(O){return O===null||O===124||fn(O)?(e.exit("data"),A(O)):(e.consume(O),O===92?D:I)}function D(O){return O===92||O===124?(e.consume(O),I):I(O)}}function bTe(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,d,p;const h=new fTe;for(;++n<e.length;){const g=e[n],b=g[1];g[0]==="enter"?b.type==="tableHead"?(s=!1,l!==0&&(Mz(h,t,l,c,d),d=void 0,l=0),c={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},h.add(n,0,[["enter",c,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,p=void 0,i=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},h.add(n,0,[["enter",d,t]])),a=b.type==="tableDelimiterRow"?2:d?3:1):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],p=Bg(h,t,i,a,void 0,p),i=[0,0,0,0]),o[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(o[0]=o[1],p=Bg(h,t,i,a,void 0,p)),i=o,o=[i[1],n,0,0])):b.type==="tableHead"?(s=!0,l=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(l=n,i[1]!==0?(o[0]=o[1],p=Bg(h,t,i,a,n,p)):o[1]!==0&&(p=Bg(h,t,o,a,n,p)),a=0):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&Mz(h,t,l,c,d),h.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=hTe(t.events,n))}return e}function Bg(e,t,n,r,a,i){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},jc(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=jc(t.events,n[1]);if(i={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const c=jc(t.events,n[2]),d=jc(t.events,n[3]),p={type:s,start:Object.assign({},c),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",p,t]]),r!==2){const h=t.events[n[2]],g=t.events[n[3]];if(h[1].end=Object.assign({},g[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,y=n[3]-n[2]-1;e.add(b,y,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return a!==void 0&&(i.end=Object.assign({},jc(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function Mz(e,t,n,r,a){const i=[],o=jc(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function jc(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const yTe={name:"tasklistCheck",tokenize:xTe};function vTe(){return{text:{91:yTe}}}function xTe(e,t,n){const r=this;return a;function a(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return fn(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return ot(l)?t(l):Ft(l)?e.check({tokenize:STe},t,n)(l):n(l)}}function STe(e,t,n){return Dt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function wTe(e){return nY([VCe(),rTe(),dTe(e),gTe(),vTe()])}const ETe={};function kTe(e){const t=this,n=e||ETe,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(wTe(n)),i.push(HCe()),o.push(GCe(n))}function _Te(e){const t=this;t.compiler=n;function n(r,a){return ZV(r,{filePath:a.path,...e})}}function CTe(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:i},exit:{mathFlow:a,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(l){const c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},l)}function t(){this.buffer()}function n(){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,c.meta=l}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(l){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=c;const p=d.data.hChildren[0];p.type,p.tagName,p.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function i(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function o(l){const c=this.resume(),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=c,d.data.hChildren.push({type:"text",value:c})}function s(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function TTe(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(i,o,s,l){const c=i.value||"",d=s.createTracker(l),p="$".repeat(Math.max(TY(c,"$")+1,2)),h=s.enter("mathFlow");let g=d.move(p);if(i.meta){const b=s.enter("mathFlowMeta");g+=d.move(s.safe(i.meta,{after:`
`,before:g,encode:["$"],...d.current()})),b()}return g+=d.move(`
`),c&&(g+=d.move(c+`
`)),g+=d.move(p),h(),g}function r(i,o,s){let l=i.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;const d="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let p=-1;for(;++p<s.unsafe.length;){const h=s.unsafe[p];if(!h.atBreak)continue;const g=s.compilePattern(h);let b;for(;b=g.exec(l);){let y=b.index;l.codePointAt(y)===10&&l.codePointAt(y-1)===13&&y--,l=l.slice(0,y)+" "+l.slice(b.index+1)}}return d+l+d}function a(){return"$"}}const ATe={tokenize:RTe,concrete:!0,name:"mathFlow"},Fz={tokenize:NTe,partial:!0};function RTe(e,t,n){const r=this,a=r.events[r.events.length-1],i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let o=0;return s;function s(S){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(S)}function l(S){return S===36?(e.consume(S),o++,l):o<2?n(S):(e.exit("mathFlowFenceSequence"),Dt(e,c,"whitespace")(S))}function c(S){return S===null||ot(S)?p(S):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||ot(S)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),p(S)):S===36?n(S):(e.consume(S),d)}function p(S){return e.exit("mathFlowFence"),r.interrupt?t(S):e.attempt(Fz,h,x)(S)}function h(S){return e.attempt({tokenize:w,partial:!0},x,g)(S)}function g(S){return(i?Dt(e,b,"linePrefix",i+1):b)(S)}function b(S){return S===null?x(S):ot(S)?e.attempt(Fz,h,x)(S):(e.enter("mathFlowValue"),y(S))}function y(S){return S===null||ot(S)?(e.exit("mathFlowValue"),b(S)):(e.consume(S),y)}function x(S){return e.exit("mathFlow"),t(S)}function w(S,_,N){let R=0;return Dt(S,C,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function C(D){return S.enter("mathFlowFence"),S.enter("mathFlowFenceSequence"),A(D)}function A(D){return D===36?(R++,S.consume(D),A):R<o?N(D):(S.exit("mathFlowFenceSequence"),Dt(S,I,"whitespace")(D))}function I(D){return D===null||ot(D)?(S.exit("mathFlowFence"),_(D)):N(D)}}}function NTe(e,t,n){const r=this;return a;function a(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function LTe(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:OTe,previous:DTe,name:"mathText"};function r(a,i,o){let s=0,l,c;return d;function d(y){return a.enter("mathText"),a.enter("mathTextSequence"),p(y)}function p(y){return y===36?(a.consume(y),s++,p):s<2&&!n?o(y):(a.exit("mathTextSequence"),h(y))}function h(y){return y===null?o(y):y===36?(c=a.enter("mathTextSequence"),l=0,b(y)):y===32?(a.enter("space"),a.consume(y),a.exit("space"),h):ot(y)?(a.enter("lineEnding"),a.consume(y),a.exit("lineEnding"),h):(a.enter("mathTextData"),g(y))}function g(y){return y===null||y===32||y===36||ot(y)?(a.exit("mathTextData"),h(y)):(a.consume(y),g)}function b(y){return y===36?(a.consume(y),l++,b):l===s?(a.exit("mathTextSequence"),a.exit("mathText"),i(y)):(c.type="mathTextData",g(y))}}}function OTe(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="mathTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function DTe(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function ITe(e){return{flow:{36:ATe},text:{36:LTe(e)}}}const MTe={};function FTe(e){const t=this,n=e||MTe,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(ITe(n)),i.push(CTe()),o.push(TTe(n))}var bm={exports:{}},PTe=bm.exports,Pz;function BTe(){return Pz||(Pz=1,function(e,t){(function(n,r){e.exports=r()})(PTe,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",c="day",d="week",p="month",h="quarter",g="year",b="date",y="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var V=["th","st","nd","rd"],B=W%100;return"["+W+(V[(B-20)%10]||V[B]||V[0])+"]"}},_=function(W,V,B){var U=String(W);return!U||U.length>=V?W:""+Array(V+1-U.length).join(B)+W},N={s:_,z:function(W){var V=-W.utcOffset(),B=Math.abs(V),U=Math.floor(B/60),M=B%60;return(V<=0?"+":"-")+_(U,2,"0")+":"+_(M,2,"0")},m:function W(V,B){if(V.date()<B.date())return-W(B,V);var U=12*(B.year()-V.year())+(B.month()-V.month()),M=V.clone().add(U,p),K=B-M<0,F=V.clone().add(U+(K?-1:1),p);return+(-(U+(B-M)/(K?M-F:F-M))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:p,y:g,w:d,d:c,D:b,h:l,m:s,s:o,ms:i,Q:h}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},R="en",C={};C[R]=S;var A="$isDayjsObject",I=function(W){return W instanceof G||!(!W||!W[A])},D=function W(V,B,U){var M;if(!V)return R;if(typeof V=="string"){var K=V.toLowerCase();C[K]&&(M=K),B&&(C[K]=B,M=K);var F=V.split("-");if(!M&&F.length>1)return W(F[0])}else{var Y=V.name;C[Y]=V,M=Y}return!U&&M&&(R=M),M||!U&&R},O=function(W,V){if(I(W))return W.clone();var B=typeof V=="object"?V:{};return B.date=W,B.args=arguments,new G(B)},P=N;P.l=D,P.i=I,P.w=function(W,V){return O(W,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var G=function(){function W(B){this.$L=D(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[A]=!0}var V=W.prototype;return V.parse=function(B){this.$d=function(U){var M=U.date,K=U.utc;if(M===null)return new Date(NaN);if(P.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var F=M.match(x);if(F){var Y=F[2]-1||0,H=(F[7]||"0").substring(0,3);return K?new Date(Date.UTC(F[1],Y,F[3]||1,F[4]||0,F[5]||0,F[6]||0,H)):new Date(F[1],Y,F[3]||1,F[4]||0,F[5]||0,F[6]||0,H)}}return new Date(M)}(B),this.init()},V.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},V.$utils=function(){return P},V.isValid=function(){return this.$d.toString()!==y},V.isSame=function(B,U){var M=O(B);return this.startOf(U)<=M&&M<=this.endOf(U)},V.isAfter=function(B,U){return O(B)<this.startOf(U)},V.isBefore=function(B,U){return this.endOf(U)<O(B)},V.$g=function(B,U,M){return P.u(B)?this[U]:this.set(M,B)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(B,U){var M=this,K=!!P.u(U)||U,F=P.p(B),Y=function(Te,ne){var Ee=P.w(M.$u?Date.UTC(M.$y,ne,Te):new Date(M.$y,ne,Te),M);return K?Ee:Ee.endOf(c)},H=function(Te,ne){return P.w(M.toDate()[Te].apply(M.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(ne)),M)},$=this.$W,Z=this.$M,Q=this.$D,ie="set"+(this.$u?"UTC":"");switch(F){case g:return K?Y(1,0):Y(31,11);case p:return K?Y(1,Z):Y(0,Z+1);case d:var te=this.$locale().weekStart||0,ce=($<te?$+7:$)-te;return Y(K?Q-ce:Q+(6-ce),Z);case c:case b:return H(ie+"Hours",0);case l:return H(ie+"Minutes",1);case s:return H(ie+"Seconds",2);case o:return H(ie+"Milliseconds",3);default:return this.clone()}},V.endOf=function(B){return this.startOf(B,!1)},V.$set=function(B,U){var M,K=P.p(B),F="set"+(this.$u?"UTC":""),Y=(M={},M[c]=F+"Date",M[b]=F+"Date",M[p]=F+"Month",M[g]=F+"FullYear",M[l]=F+"Hours",M[s]=F+"Minutes",M[o]=F+"Seconds",M[i]=F+"Milliseconds",M)[K],H=K===c?this.$D+(U-this.$W):U;if(K===p||K===g){var $=this.clone().set(b,1);$.$d[Y](H),$.init(),this.$d=$.set(b,Math.min(this.$D,$.daysInMonth())).$d}else Y&&this.$d[Y](H);return this.init(),this},V.set=function(B,U){return this.clone().$set(B,U)},V.get=function(B){return this[P.p(B)]()},V.add=function(B,U){var M,K=this;B=Number(B);var F=P.p(U),Y=function(Z){var Q=O(K);return P.w(Q.date(Q.date()+Math.round(Z*B)),K)};if(F===p)return this.set(p,this.$M+B);if(F===g)return this.set(g,this.$y+B);if(F===c)return Y(1);if(F===d)return Y(7);var H=(M={},M[s]=r,M[l]=a,M[o]=n,M)[F]||1,$=this.$d.getTime()+B*H;return P.w($,this)},V.subtract=function(B,U){return this.add(-1*B,U)},V.format=function(B){var U=this,M=this.$locale();if(!this.isValid())return M.invalidDate||y;var K=B||"YYYY-MM-DDTHH:mm:ssZ",F=P.z(this),Y=this.$H,H=this.$m,$=this.$M,Z=M.weekdays,Q=M.months,ie=M.meridiem,te=function(ne,Ee,re,we){return ne&&(ne[Ee]||ne(U,K))||re[Ee].slice(0,we)},ce=function(ne){return P.s(Y%12||12,ne,"0")},Te=ie||function(ne,Ee,re){var we=ne<12?"AM":"PM";return re?we.toLowerCase():we};return K.replace(w,function(ne,Ee){return Ee||function(re){switch(re){case"YY":return String(U.$y).slice(-2);case"YYYY":return P.s(U.$y,4,"0");case"M":return $+1;case"MM":return P.s($+1,2,"0");case"MMM":return te(M.monthsShort,$,Q,3);case"MMMM":return te(Q,$);case"D":return U.$D;case"DD":return P.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return te(M.weekdaysMin,U.$W,Z,2);case"ddd":return te(M.weekdaysShort,U.$W,Z,3);case"dddd":return Z[U.$W];case"H":return String(Y);case"HH":return P.s(Y,2,"0");case"h":return ce(1);case"hh":return ce(2);case"a":return Te(Y,H,!0);case"A":return Te(Y,H,!1);case"m":return String(H);case"mm":return P.s(H,2,"0");case"s":return String(U.$s);case"ss":return P.s(U.$s,2,"0");case"SSS":return P.s(U.$ms,3,"0");case"Z":return F}return null}(ne)||F.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(B,U,M){var K,F=this,Y=P.p(U),H=O(B),$=(H.utcOffset()-this.utcOffset())*r,Z=this-H,Q=function(){return P.m(F,H)};switch(Y){case g:K=Q()/12;break;case p:K=Q();break;case h:K=Q()/3;break;case d:K=(Z-$)/6048e5;break;case c:K=(Z-$)/864e5;break;case l:K=Z/a;break;case s:K=Z/r;break;case o:K=Z/n;break;default:K=Z}return M?K:P.a(K)},V.daysInMonth=function(){return this.endOf(p).$D},V.$locale=function(){return C[this.$L]},V.locale=function(B,U){if(!B)return this.$L;var M=this.clone(),K=D(B,U,!0);return K&&(M.$L=K),M},V.clone=function(){return P.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},W}(),j=G.prototype;return O.prototype=j,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",c],["$M",p],["$y",g],["$D",b]].forEach(function(W){j[W[1]]=function(V){return this.$g(V,W[0],W[1])}}),O.extend=function(W,V){return W.$i||(W(V,G,O),W.$i=!0),O},O.locale=D,O.isDayjs=I,O.unix=function(W){return O(1e3*W)},O.en=C[R],O.Ls=C,O.p={},O})}(bm)),bm.exports}var zTe=BTe();const $Te=Kn(zTe),ym={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;const a=n<.5?n*(1+t):n+t-n*t,i=2*n-a;switch(r){case"r":return ym.hue2rgb(i,a,e+1/3)*255;case"g":return ym.hue2rgb(i,a,e)*255;case"b":return ym.hue2rgb(i,a,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;const a=Math.max(e,t,n),i=Math.min(e,t,n),o=(a+i)/2;if(r==="l")return o*100;if(a===i)return 0;const s=a-i,l=o>.5?s/(2-a-i):s/(a+i);if(r==="s")return l*100;switch(a){case e:return((t-n)/s+(t<n?6:0))*60;case t:return((n-e)/s+2)*60;case n:return((e-t)/s+4)*60;default:return-1}}},jTe={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},UTe={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},vt={channel:ym,lang:jTe,unit:UTe},us={};for(let e=0;e<=255;e++)us[e]=vt.unit.dec2hex(e);const xr={ALL:0,RGB:1,HSL:2};class HTe{constructor(){this.type=xr.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=xr.ALL}is(t){return this.type===t}}class GTe{constructor(t,n){this.color=n,this.changed=!1,this.data=t,this.type=new HTe}set(t,n){return this.color=n,this.changed=!1,this.data=t,this.type.type=xr.ALL,this}_ensureHSL(){const t=this.data,{h:n,s:r,l:a}=t;n===void 0&&(t.h=vt.channel.rgb2hsl(t,"h")),r===void 0&&(t.s=vt.channel.rgb2hsl(t,"s")),a===void 0&&(t.l=vt.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:n,g:r,b:a}=t;n===void 0&&(t.r=vt.channel.hsl2rgb(t,"r")),r===void 0&&(t.g=vt.channel.hsl2rgb(t,"g")),a===void 0&&(t.b=vt.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,n=t.r;return!this.type.is(xr.HSL)&&n!==void 0?n:(this._ensureHSL(),vt.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,n=t.g;return!this.type.is(xr.HSL)&&n!==void 0?n:(this._ensureHSL(),vt.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,n=t.b;return!this.type.is(xr.HSL)&&n!==void 0?n:(this._ensureHSL(),vt.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,n=t.h;return!this.type.is(xr.RGB)&&n!==void 0?n:(this._ensureRGB(),vt.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,n=t.s;return!this.type.is(xr.RGB)&&n!==void 0?n:(this._ensureRGB(),vt.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,n=t.l;return!this.type.is(xr.RGB)&&n!==void 0?n:(this._ensureRGB(),vt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(xr.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(xr.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(xr.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(xr.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(xr.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(xr.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const By=new GTe({r:0,g:0,b:0,a:0},"transparent"),Jc={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Jc.re);if(!t)return;const n=t[1],r=parseInt(n,16),a=n.length,i=a%4===0,o=a>4,s=o?1:17,l=o?8:4,c=i?0:-1,d=o?255:15;return By.set({r:(r>>l*(c+3)&d)*s,g:(r>>l*(c+2)&d)*s,b:(r>>l*(c+1)&d)*s,a:i?(r&d)*s/255:1},e)},stringify:e=>{const{r:t,g:n,b:r,a}=e;return a<1?`#${us[Math.round(t)]}${us[Math.round(n)]}${us[Math.round(r)]}${us[Math.round(a*255)]}`:`#${us[Math.round(t)]}${us[Math.round(n)]}${us[Math.round(r)]}`}},hl={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(hl.hueRe);if(t){const[,n,r]=t;switch(r){case"grad":return vt.channel.clamp.h(parseFloat(n)*.9);case"rad":return vt.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return vt.channel.clamp.h(parseFloat(n)*360)}}return vt.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const n=e.match(hl.re);if(!n)return;const[,r,a,i,o,s]=n;return By.set({h:hl._hue2deg(r),s:vt.channel.clamp.s(parseFloat(a)),l:vt.channel.clamp.l(parseFloat(i)),a:o?vt.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:n,l:r,a}=e;return a<1?`hsla(${vt.lang.round(t)}, ${vt.lang.round(n)}%, ${vt.lang.round(r)}%, ${a})`:`hsl(${vt.lang.round(t)}, ${vt.lang.round(n)}%, ${vt.lang.round(r)}%)`}},Pf={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=Pf.colors[e];if(t)return Jc.parse(t)},stringify:e=>{const t=Jc.stringify(e);for(const n in Pf.colors)if(Pf.colors[n]===t)return n}},Cf={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const n=e.match(Cf.re);if(!n)return;const[,r,a,i,o,s,l,c,d]=n;return By.set({r:vt.channel.clamp.r(a?parseFloat(r)*2.55:parseFloat(r)),g:vt.channel.clamp.g(o?parseFloat(i)*2.55:parseFloat(i)),b:vt.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?vt.channel.clamp.a(d?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:n,b:r,a}=e;return a<1?`rgba(${vt.lang.round(t)}, ${vt.lang.round(n)}, ${vt.lang.round(r)}, ${vt.lang.round(a)})`:`rgb(${vt.lang.round(t)}, ${vt.lang.round(n)}, ${vt.lang.round(r)})`}},Ii={format:{keyword:Pf,hex:Jc,rgb:Cf,rgba:Cf,hsl:hl,hsla:hl},parse:e=>{if(typeof e!="string")return e;const t=Jc.parse(e)||Cf.parse(e)||hl.parse(e)||Pf.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(xr.HSL)||e.data.r===void 0?hl.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Cf.stringify(e):Jc.stringify(e)},VY=(e,t)=>{const n=Ii.parse(e);for(const r in t)n[r]=vt.channel.clamp[r](t[r]);return Ii.stringify(n)},Bf=(e,t,n=0,r=1)=>{if(typeof e!="number")return VY(e,{a:t});const a=By.set({r:vt.channel.clamp.r(e),g:vt.channel.clamp.g(t),b:vt.channel.clamp.b(n),a:vt.channel.clamp.a(r)});return Ii.stringify(a)},qTe=e=>{const{r:t,g:n,b:r}=Ii.parse(e),a=.2126*vt.channel.toLinear(t)+.7152*vt.channel.toLinear(n)+.0722*vt.channel.toLinear(r);return vt.lang.round(a)},WTe=e=>qTe(e)>=.5,Up=e=>!WTe(e),YY=(e,t,n)=>{const r=Ii.parse(e),a=r[t],i=vt.channel.clamp[t](a+n);return a!==i&&(r[t]=i),Ii.stringify(r)},Ze=(e,t)=>YY(e,"l",t),ft=(e,t)=>YY(e,"l",-t),fe=(e,t)=>{const n=Ii.parse(e),r={};for(const a in t)t[a]&&(r[a]=n[a]+t[a]);return VY(e,r)},VTe=(e,t,n=50)=>{const{r,g:a,b:i,a:o}=Ii.parse(e),{r:s,g:l,b:c,a:d}=Ii.parse(t),p=n/100,h=p*2-1,g=o-d,y=((h*g===-1?h:(h+g)/(1+h*g))+1)/2,x=1-y,w=r*y+s*x,S=a*y+l*x,_=i*y+c*x,N=o*p+d*(1-p);return Bf(w,S,_,N)},$e=(e,t=100)=>{const n=Ii.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,VTe(n,e,t)};/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */const{entries:KY,setPrototypeOf:Bz,isFrozen:YTe,getPrototypeOf:KTe,getOwnPropertyDescriptor:XTe}=Object;let{freeze:Fr,seal:Ha,create:XY}=Object,{apply:mR,construct:bR}=typeof Reflect<"u"&&Reflect;Fr||(Fr=function(t){return t});Ha||(Ha=function(t){return t});mR||(mR=function(t,n,r){return t.apply(n,r)});bR||(bR=function(t,n){return new t(...n)});const zg=Pr(Array.prototype.forEach),ZTe=Pr(Array.prototype.lastIndexOf),zz=Pr(Array.prototype.pop),uf=Pr(Array.prototype.push),QTe=Pr(Array.prototype.splice),vm=Pr(String.prototype.toLowerCase),a0=Pr(String.prototype.toString),$z=Pr(String.prototype.match),df=Pr(String.prototype.replace),JTe=Pr(String.prototype.indexOf),eAe=Pr(String.prototype.trim),ri=Pr(Object.prototype.hasOwnProperty),Nr=Pr(RegExp.prototype.test),ff=tAe(TypeError);function Pr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return mR(e,t,r)}}function tAe(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bR(e,n)}}function Mt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vm;Bz&&Bz(e,null);let r=t.length;for(;r--;){let a=t[r];if(typeof a=="string"){const i=n(a);i!==a&&(YTe(t)||(t[r]=i),a=i)}e[a]=!0}return e}function nAe(e){for(let t=0;t<e.length;t++)ri(e,t)||(e[t]=null);return e}function il(e){const t=XY(null);for(const[n,r]of KY(e))ri(e,n)&&(Array.isArray(r)?t[n]=nAe(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=il(r):t[n]=r);return t}function pf(e,t){for(;e!==null;){const r=XTe(e,t);if(r){if(r.get)return Pr(r.get);if(typeof r.value=="function")return Pr(r.value)}e=KTe(e)}function n(){return null}return n}const jz=Fr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),i0=Fr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),o0=Fr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),rAe=Fr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),s0=Fr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),aAe=Fr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Uz=Fr(["#text"]),Hz=Fr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),l0=Fr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gz=Fr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$g=Fr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),iAe=Ha(/\{\{[\w\W]*|[\w\W]*\}\}/gm),oAe=Ha(/<%[\w\W]*|[\w\W]*%>/gm),sAe=Ha(/\$\{[\w\W]*/gm),lAe=Ha(/^data-[\-\w.\u00B7-\uFFFF]+$/),cAe=Ha(/^aria-[\-\w]+$/),ZY=Ha(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),uAe=Ha(/^(?:\w+script|data):/i),dAe=Ha(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),QY=Ha(/^html$/i),fAe=Ha(/^[a-z][.\w]*(-[.\w]+)+$/i);var qz=Object.freeze({__proto__:null,ARIA_ATTR:cAe,ATTR_WHITESPACE:dAe,CUSTOM_ELEMENT:fAe,DATA_ATTR:lAe,DOCTYPE_NAME:QY,ERB_EXPR:oAe,IS_ALLOWED_URI:ZY,IS_SCRIPT_OR_DATA:uAe,MUSTACHE_EXPR:iAe,TMPLIT_EXPR:sAe});const hf={element:1,text:3,progressingInstruction:7,comment:8,document:9},pAe=function(){return typeof window>"u"?null:window},hAe=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(r=n.getAttribute(a));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Wz=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function JY(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pAe();const t=nt=>JY(nt);if(t.version="3.2.5",t.removed=[],!e||!e.document||e.document.nodeType!==hf.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,a=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:c,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:g}=e,b=l.prototype,y=pf(b,"cloneNode"),x=pf(b,"remove"),w=pf(b,"nextSibling"),S=pf(b,"childNodes"),_=pf(b,"parentNode");if(typeof o=="function"){const nt=n.createElement("template");nt.content&&nt.content.ownerDocument&&(n=nt.content.ownerDocument)}let N,R="";const{implementation:C,createNodeIterator:A,createDocumentFragment:I,getElementsByTagName:D}=n,{importNode:O}=r;let P=Wz();t.isSupported=typeof KY=="function"&&typeof _=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:G,ERB_EXPR:j,TMPLIT_EXPR:W,DATA_ATTR:V,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:K}=qz;let{IS_ALLOWED_URI:F}=qz,Y=null;const H=Mt({},[...jz,...i0,...o0,...s0,...Uz]);let $=null;const Z=Mt({},[...Hz,...l0,...Gz,...$g]);let Q=Object.seal(XY(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,te=null,ce=!0,Te=!0,ne=!1,Ee=!0,re=!1,we=!0,xe=!1,Se=!1,ee=!1,he=!1,Ae=!1,be=!1,Ce=!0,ue=!1;const Ve="user-content-";let We=!0,ve=!1,Ie={},ae=null;const ge=Mt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Me=null;const He=Mt({},["audio","video","img","source","image","track"]);let tt=null;const Pt=Mt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gt="http://www.w3.org/1998/Math/MathML",Nt="http://www.w3.org/2000/svg",ct="http://www.w3.org/1999/xhtml";let Bt=ct,wt=!1,zt=null;const bn=Mt({},[Gt,Nt,ct],a0);let _n=Mt({},["mi","mo","mn","ms","mtext"]),on=Mt({},["annotation-xml"]);const Br=Mt({},["title","style","font","a","script"]);let mr=null;const Ln=["application/xhtml+xml","text/html"],Ya="text/html";let Ge=null,At=null;const rn=n.createElement("form"),rr=function(oe){return oe instanceof RegExp||oe instanceof Function},$n=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(At&&At===oe)){if((!oe||typeof oe!="object")&&(oe={}),oe=il(oe),mr=Ln.indexOf(oe.PARSER_MEDIA_TYPE)===-1?Ya:oe.PARSER_MEDIA_TYPE,Ge=mr==="application/xhtml+xml"?a0:vm,Y=ri(oe,"ALLOWED_TAGS")?Mt({},oe.ALLOWED_TAGS,Ge):H,$=ri(oe,"ALLOWED_ATTR")?Mt({},oe.ALLOWED_ATTR,Ge):Z,zt=ri(oe,"ALLOWED_NAMESPACES")?Mt({},oe.ALLOWED_NAMESPACES,a0):bn,tt=ri(oe,"ADD_URI_SAFE_ATTR")?Mt(il(Pt),oe.ADD_URI_SAFE_ATTR,Ge):Pt,Me=ri(oe,"ADD_DATA_URI_TAGS")?Mt(il(He),oe.ADD_DATA_URI_TAGS,Ge):He,ae=ri(oe,"FORBID_CONTENTS")?Mt({},oe.FORBID_CONTENTS,Ge):ge,ie=ri(oe,"FORBID_TAGS")?Mt({},oe.FORBID_TAGS,Ge):{},te=ri(oe,"FORBID_ATTR")?Mt({},oe.FORBID_ATTR,Ge):{},Ie=ri(oe,"USE_PROFILES")?oe.USE_PROFILES:!1,ce=oe.ALLOW_ARIA_ATTR!==!1,Te=oe.ALLOW_DATA_ATTR!==!1,ne=oe.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=oe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=oe.SAFE_FOR_TEMPLATES||!1,we=oe.SAFE_FOR_XML!==!1,xe=oe.WHOLE_DOCUMENT||!1,he=oe.RETURN_DOM||!1,Ae=oe.RETURN_DOM_FRAGMENT||!1,be=oe.RETURN_TRUSTED_TYPE||!1,ee=oe.FORCE_BODY||!1,Ce=oe.SANITIZE_DOM!==!1,ue=oe.SANITIZE_NAMED_PROPS||!1,We=oe.KEEP_CONTENT!==!1,ve=oe.IN_PLACE||!1,F=oe.ALLOWED_URI_REGEXP||ZY,Bt=oe.NAMESPACE||ct,_n=oe.MATHML_TEXT_INTEGRATION_POINTS||_n,on=oe.HTML_INTEGRATION_POINTS||on,Q=oe.CUSTOM_ELEMENT_HANDLING||{},oe.CUSTOM_ELEMENT_HANDLING&&rr(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Q.tagNameCheck=oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&rr(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Q.attributeNameCheck=oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Q.allowCustomizedBuiltInElements=oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(Te=!1),Ae&&(he=!0),Ie&&(Y=Mt({},Uz),$=[],Ie.html===!0&&(Mt(Y,jz),Mt($,Hz)),Ie.svg===!0&&(Mt(Y,i0),Mt($,l0),Mt($,$g)),Ie.svgFilters===!0&&(Mt(Y,o0),Mt($,l0),Mt($,$g)),Ie.mathMl===!0&&(Mt(Y,s0),Mt($,Gz),Mt($,$g))),oe.ADD_TAGS&&(Y===H&&(Y=il(Y)),Mt(Y,oe.ADD_TAGS,Ge)),oe.ADD_ATTR&&($===Z&&($=il($)),Mt($,oe.ADD_ATTR,Ge)),oe.ADD_URI_SAFE_ATTR&&Mt(tt,oe.ADD_URI_SAFE_ATTR,Ge),oe.FORBID_CONTENTS&&(ae===ge&&(ae=il(ae)),Mt(ae,oe.FORBID_CONTENTS,Ge)),We&&(Y["#text"]=!0),xe&&Mt(Y,["html","head","body"]),Y.table&&(Mt(Y,["tbody"]),delete ie.tbody),oe.TRUSTED_TYPES_POLICY){if(typeof oe.TRUSTED_TYPES_POLICY.createHTML!="function")throw ff('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof oe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ff('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=oe.TRUSTED_TYPES_POLICY,R=N.createHTML("")}else N===void 0&&(N=hAe(g,a)),N!==null&&typeof R=="string"&&(R=N.createHTML(""));Fr&&Fr(oe),At=oe}},ar=Mt({},[...i0,...o0,...rAe]),ya=Mt({},[...s0,...aAe]),br=function(oe){let Fe=_(oe);(!Fe||!Fe.tagName)&&(Fe={namespaceURI:Bt,tagName:"template"});const Ye=vm(oe.tagName),Jt=vm(Fe.tagName);return zt[oe.namespaceURI]?oe.namespaceURI===Nt?Fe.namespaceURI===ct?Ye==="svg":Fe.namespaceURI===Gt?Ye==="svg"&&(Jt==="annotation-xml"||_n[Jt]):!!ar[Ye]:oe.namespaceURI===Gt?Fe.namespaceURI===ct?Ye==="math":Fe.namespaceURI===Nt?Ye==="math"&&on[Jt]:!!ya[Ye]:oe.namespaceURI===ct?Fe.namespaceURI===Nt&&!on[Jt]||Fe.namespaceURI===Gt&&!_n[Jt]?!1:!ya[Ye]&&(Br[Ye]||!ar[Ye]):!!(mr==="application/xhtml+xml"&&zt[oe.namespaceURI]):!1},Cn=function(oe){uf(t.removed,{element:oe});try{_(oe).removeChild(oe)}catch{x(oe)}},Ds=function(oe,Fe){try{uf(t.removed,{attribute:Fe.getAttributeNode(oe),from:Fe})}catch{uf(t.removed,{attribute:null,from:Fe})}if(Fe.removeAttribute(oe),oe==="is")if(he||Ae)try{Cn(Fe)}catch{}else try{Fe.setAttribute(oe,"")}catch{}},nd=function(oe){let Fe=null,Ye=null;if(ee)oe="<remove></remove>"+oe;else{const $t=$z(oe,/^[\r\n\t ]+/);Ye=$t&&$t[0]}mr==="application/xhtml+xml"&&Bt===ct&&(oe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+oe+"</body></html>");const Jt=N?N.createHTML(oe):oe;if(Bt===ct)try{Fe=new h().parseFromString(Jt,mr)}catch{}if(!Fe||!Fe.documentElement){Fe=C.createDocument(Bt,"template",null);try{Fe.documentElement.innerHTML=wt?R:Jt}catch{}}const xn=Fe.body||Fe.documentElement;return oe&&Ye&&xn.insertBefore(n.createTextNode(Ye),xn.childNodes[0]||null),Bt===ct?D.call(Fe,xe?"html":"body")[0]:xe?Fe.documentElement:xn},Jp=function(oe){return A.call(oe.ownerDocument||oe,oe,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},va=function(oe){return oe instanceof p&&(typeof oe.nodeName!="string"||typeof oe.textContent!="string"||typeof oe.removeChild!="function"||!(oe.attributes instanceof d)||typeof oe.removeAttribute!="function"||typeof oe.setAttribute!="function"||typeof oe.namespaceURI!="string"||typeof oe.insertBefore!="function"||typeof oe.hasChildNodes!="function")},jn=function(oe){return typeof s=="function"&&oe instanceof s};function yn(nt,oe,Fe){zg(nt,Ye=>{Ye.call(t,oe,Fe,At)})}const Gi=function(oe){let Fe=null;if(yn(P.beforeSanitizeElements,oe,null),va(oe))return Cn(oe),!0;const Ye=Ge(oe.nodeName);if(yn(P.uponSanitizeElement,oe,{tagName:Ye,allowedTags:Y}),oe.hasChildNodes()&&!jn(oe.firstElementChild)&&Nr(/<[/\w!]/g,oe.innerHTML)&&Nr(/<[/\w!]/g,oe.textContent)||oe.nodeType===hf.progressingInstruction||we&&oe.nodeType===hf.comment&&Nr(/<[/\w]/g,oe.data))return Cn(oe),!0;if(!Y[Ye]||ie[Ye]){if(!ie[Ye]&&eh(Ye)&&(Q.tagNameCheck instanceof RegExp&&Nr(Q.tagNameCheck,Ye)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck(Ye)))return!1;if(We&&!ae[Ye]){const Jt=_(oe)||oe.parentNode,xn=S(oe)||oe.childNodes;if(xn&&Jt){const $t=xn.length;for(let ir=$t-1;ir>=0;--ir){const ea=y(xn[ir],!0);ea.__removalCount=(oe.__removalCount||0)+1,Jt.insertBefore(ea,w(oe))}}}return Cn(oe),!0}return oe instanceof l&&!br(oe)||(Ye==="noscript"||Ye==="noembed"||Ye==="noframes")&&Nr(/<\/no(script|embed|frames)/i,oe.innerHTML)?(Cn(oe),!0):(re&&oe.nodeType===hf.text&&(Fe=oe.textContent,zg([G,j,W],Jt=>{Fe=df(Fe,Jt," ")}),oe.textContent!==Fe&&(uf(t.removed,{element:oe.cloneNode()}),oe.textContent=Fe)),yn(P.afterSanitizeElements,oe,null),!1)},Vl=function(oe,Fe,Ye){if(Ce&&(Fe==="id"||Fe==="name")&&(Ye in n||Ye in rn))return!1;if(!(Te&&!te[Fe]&&Nr(V,Fe))){if(!(ce&&Nr(B,Fe))){if(!$[Fe]||te[Fe]){if(!(eh(oe)&&(Q.tagNameCheck instanceof RegExp&&Nr(Q.tagNameCheck,oe)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck(oe))&&(Q.attributeNameCheck instanceof RegExp&&Nr(Q.attributeNameCheck,Fe)||Q.attributeNameCheck instanceof Function&&Q.attributeNameCheck(Fe))||Fe==="is"&&Q.allowCustomizedBuiltInElements&&(Q.tagNameCheck instanceof RegExp&&Nr(Q.tagNameCheck,Ye)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck(Ye))))return!1}else if(!tt[Fe]){if(!Nr(F,df(Ye,M,""))){if(!((Fe==="src"||Fe==="xlink:href"||Fe==="href")&&oe!=="script"&&JTe(Ye,"data:")===0&&Me[oe])){if(!(ne&&!Nr(U,df(Ye,M,"")))){if(Ye)return!1}}}}}}return!0},eh=function(oe){return oe!=="annotation-xml"&&$z(oe,K)},th=function(oe){yn(P.beforeSanitizeAttributes,oe,null);const{attributes:Fe}=oe;if(!Fe||va(oe))return;const Ye={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$,forceKeepAttr:void 0};let Jt=Fe.length;for(;Jt--;){const xn=Fe[Jt],{name:$t,namespaceURI:ir,value:ea}=xn,ta=Ge($t);let Tn=$t==="value"?ea:eAe(ea);if(Ye.attrName=ta,Ye.attrValue=Tn,Ye.keepAttr=!0,Ye.forceKeepAttr=void 0,yn(P.uponSanitizeAttribute,oe,Ye),Tn=Ye.attrValue,ue&&(ta==="id"||ta==="name")&&(Ds($t,oe),Tn=Ve+Tn),we&&Nr(/((--!?|])>)|<\/(style|title)/i,Tn)){Ds($t,oe);continue}if(Ye.forceKeepAttr||(Ds($t,oe),!Ye.keepAttr))continue;if(!Ee&&Nr(/\/>/i,Tn)){Ds($t,oe);continue}re&&zg([G,j,W],rh=>{Tn=df(Tn,rh," ")});const xa=Ge(oe.nodeName);if(Vl(xa,ta,Tn)){if(N&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!ir)switch(g.getAttributeType(xa,ta)){case"TrustedHTML":{Tn=N.createHTML(Tn);break}case"TrustedScriptURL":{Tn=N.createScriptURL(Tn);break}}try{ir?oe.setAttributeNS(ir,$t,Tn):oe.setAttribute($t,Tn),va(oe)?Cn(oe):zz(t.removed)}catch{}}}yn(P.afterSanitizeAttributes,oe,null)},nh=function nt(oe){let Fe=null;const Ye=Jp(oe);for(yn(P.beforeSanitizeShadowDOM,oe,null);Fe=Ye.nextNode();)yn(P.uponSanitizeShadowNode,Fe,null),Gi(Fe),th(Fe),Fe.content instanceof i&&nt(Fe.content);yn(P.afterSanitizeShadowDOM,oe,null)};return t.sanitize=function(nt){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=null,Ye=null,Jt=null,xn=null;if(wt=!nt,wt&&(nt="<!-->"),typeof nt!="string"&&!jn(nt))if(typeof nt.toString=="function"){if(nt=nt.toString(),typeof nt!="string")throw ff("dirty is not a string, aborting")}else throw ff("toString is not a function");if(!t.isSupported)return nt;if(Se||$n(oe),t.removed=[],typeof nt=="string"&&(ve=!1),ve){if(nt.nodeName){const ea=Ge(nt.nodeName);if(!Y[ea]||ie[ea])throw ff("root node is forbidden and cannot be sanitized in-place")}}else if(nt instanceof s)Fe=nd("<!---->"),Ye=Fe.ownerDocument.importNode(nt,!0),Ye.nodeType===hf.element&&Ye.nodeName==="BODY"||Ye.nodeName==="HTML"?Fe=Ye:Fe.appendChild(Ye);else{if(!he&&!re&&!xe&&nt.indexOf("<")===-1)return N&&be?N.createHTML(nt):nt;if(Fe=nd(nt),!Fe)return he?null:be?R:""}Fe&&ee&&Cn(Fe.firstChild);const $t=Jp(ve?nt:Fe);for(;Jt=$t.nextNode();)Gi(Jt),th(Jt),Jt.content instanceof i&&nh(Jt.content);if(ve)return nt;if(he){if(Ae)for(xn=I.call(Fe.ownerDocument);Fe.firstChild;)xn.appendChild(Fe.firstChild);else xn=Fe;return($.shadowroot||$.shadowrootmode)&&(xn=O.call(r,xn,!0)),xn}let ir=xe?Fe.outerHTML:Fe.innerHTML;return xe&&Y["!doctype"]&&Fe.ownerDocument&&Fe.ownerDocument.doctype&&Fe.ownerDocument.doctype.name&&Nr(QY,Fe.ownerDocument.doctype.name)&&(ir="<!DOCTYPE "+Fe.ownerDocument.doctype.name+`>
`+ir),re&&zg([G,j,W],ea=>{ir=df(ir,ea," ")}),N&&be?N.createHTML(ir):ir},t.setConfig=function(){let nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$n(nt),Se=!0},t.clearConfig=function(){At=null,Se=!1},t.isValidAttribute=function(nt,oe,Fe){At||$n({});const Ye=Ge(nt),Jt=Ge(oe);return Vl(Ye,Jt,Fe)},t.addHook=function(nt,oe){typeof oe=="function"&&uf(P[nt],oe)},t.removeHook=function(nt,oe){if(oe!==void 0){const Fe=ZTe(P[nt],oe);return Fe===-1?void 0:QTe(P[nt],Fe,1)[0]}return zz(P[nt])},t.removeHooks=function(nt){P[nt]=[]},t.removeAllHooks=function(){P=Wz()},t}var yu=JY(),eK=Object.defineProperty,z=(e,t)=>eK(e,"name",{value:t,configurable:!0}),gAe=(e,t)=>{for(var n in t)eK(e,n,{get:t[n],enumerable:!0})},co={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Le={trace:z((...e)=>{},"trace"),debug:z((...e)=>{},"debug"),info:z((...e)=>{},"info"),warn:z((...e)=>{},"warn"),error:z((...e)=>{},"error"),fatal:z((...e)=>{},"fatal")},nL=z(function(e="fatal"){let t=co.fatal;typeof e=="string"?e.toLowerCase()in co&&(t=co[e]):typeof e=="number"&&(t=e),Le.trace=()=>{},Le.debug=()=>{},Le.info=()=>{},Le.warn=()=>{},Le.error=()=>{},Le.fatal=()=>{},t<=co.fatal&&(Le.fatal=console.error?console.error.bind(console,Ia("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ia("FATAL"))),t<=co.error&&(Le.error=console.error?console.error.bind(console,Ia("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ia("ERROR"))),t<=co.warn&&(Le.warn=console.warn?console.warn.bind(console,Ia("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ia("WARN"))),t<=co.info&&(Le.info=console.info?console.info.bind(console,Ia("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ia("INFO"))),t<=co.debug&&(Le.debug=console.debug?console.debug.bind(console,Ia("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ia("DEBUG"))),t<=co.trace&&(Le.trace=console.debug?console.debug.bind(console,Ia("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ia("TRACE")))},"setLogLevel"),Ia=z(e=>`%c${$Te().format("ss.SSS")} : ${e} : `,"format"),tK=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,zf=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,mAe=/\s*%%.*\n/gm,nu,nK=(nu=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},z(nu,"UnknownDiagramError"),nu),vu={},rL=z(function(e,t){e=e.replace(tK,"").replace(zf,"").replace(mAe,`
`);for(const[n,{detector:r}]of Object.entries(vu))if(r(e,t))return n;throw new nK(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),rK=z((...e)=>{for(const{id:t,detector:n,loader:r}of e)aK(t,n,r)},"registerLazyLoadedDiagrams"),aK=z((e,t,n)=>{vu[e]&&Le.warn(`Detector with key ${e} already exists. Overwriting.`),vu[e]={detector:t,loader:n},Le.debug(`Detector with key ${e} added${n?" with loader":""}`)},"addDetector"),bAe=z(e=>vu[e].loader,"getDiagramLoader"),yR=z((e,t,{depth:n=2,clobber:r=!1}={})=>{const a={depth:n,clobber:r};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(i=>yR(e,i,a)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(i=>{e.includes(i)||e.push(i)}),e):e===void 0||n<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(i=>{typeof t[i]=="object"&&(e[i]===void 0||typeof e[i]=="object")?(e[i]===void 0&&(e[i]=Array.isArray(t[i])?[]:{}),e[i]=yR(e[i],t[i],{depth:n-1,clobber:r})):(r||typeof e[i]!="object"&&typeof t[i]!="object")&&(e[i]=t[i])}),e)},"assignWithDepth"),hr=yR,zy="#ffffff",$y="#f2f2f2",Or=z((e,t)=>t?fe(e,{s:-40,l:10}):fe(e,{s:-40,l:-10}),"mkBorder"),ru,yAe=(ru=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var n,r,a,i,o,s,l,c,d,p,h,g,b,y,x,w,S,_,N,R,C;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||fe(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||fe(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Or(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Or(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Or(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Or(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||$e(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||$e(this.tertiaryColor),this.lineColor=this.lineColor||$e(this.background),this.arrowheadColor=this.arrowheadColor||$e(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ft(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ft(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||$e(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Ze(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||ft(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||ft(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Ze(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Ze(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||fe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||fe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||fe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||fe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||fe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||fe(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||fe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||fe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||fe(this.primaryColor,{h:330}),this.darkMode)for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=ft(this["cScale"+A],75);else for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=ft(this["cScale"+A],25);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||$e(this["cScale"+A]);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this.darkMode?this["cScalePeer"+A]=this["cScalePeer"+A]||Ze(this["cScale"+A],10):this["cScalePeer"+A]=this["cScalePeer"+A]||ft(this["cScale"+A],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||fe(this.mainBkg,{h:180,s:-15,l:t*(5+A*3)}),this["surfacePeer"+A]=this["surfacePeer"+A]||fe(this.mainBkg,{h:180,s:-15,l:t*(8+A*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||fe(this.primaryColor,{h:64}),this.fillType3=this.fillType3||fe(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||fe(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||fe(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||fe(this.primaryColor,{h:128}),this.fillType7=this.fillType7||fe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||fe(this.primaryColor,{l:-10}),this.pie5=this.pie5||fe(this.secondaryColor,{l:-10}),this.pie6=this.pie6||fe(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||fe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||fe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||fe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||fe(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||fe(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||fe(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:((n=this.radar)==null?void 0:n.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((a=this.radar)==null?void 0:a.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((c=this.radar)==null?void 0:c.graticuleOpacity)||.3,legendBoxSize:((d=this.radar)==null?void 0:d.legendBoxSize)||12,legendFontSize:((p=this.radar)==null?void 0:p.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||fe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||fe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||fe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||fe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||fe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||fe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Up(this.quadrant1Fill)?Ze(this.quadrant1Fill):ft(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((h=this.xyChart)==null?void 0:h.backgroundColor)||this.background,titleColor:((g=this.xyChart)==null?void 0:g.titleColor)||this.primaryTextColor,xAxisTitleColor:((b=this.xyChart)==null?void 0:b.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((y=this.xyChart)==null?void 0:y.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((x=this.xyChart)==null?void 0:x.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((w=this.xyChart)==null?void 0:w.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((S=this.xyChart)==null?void 0:S.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((N=this.xyChart)==null?void 0:N.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((R=this.xyChart)==null?void 0:R.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ft(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||fe(this.primaryColor,{h:-30}),this.git4=this.git4||fe(this.primaryColor,{h:-60}),this.git5=this.git5||fe(this.primaryColor,{h:-90}),this.git6=this.git6||fe(this.primaryColor,{h:60}),this.git7=this.git7||fe(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ze(this.git0,25),this.git1=Ze(this.git1,25),this.git2=Ze(this.git2,25),this.git3=Ze(this.git3,25),this.git4=Ze(this.git4,25),this.git5=Ze(this.git5,25),this.git6=Ze(this.git6,25),this.git7=Ze(this.git7,25)):(this.git0=ft(this.git0,25),this.git1=ft(this.git1,25),this.git2=ft(this.git2,25),this.git3=ft(this.git3,25),this.git4=ft(this.git4,25),this.git5=ft(this.git5,25),this.git6=ft(this.git6,25),this.git7=ft(this.git7,25)),this.gitInv0=this.gitInv0||$e(this.git0),this.gitInv1=this.gitInv1||$e(this.git1),this.gitInv2=this.gitInv2||$e(this.git2),this.gitInv3=this.gitInv3||$e(this.git3),this.gitInv4=this.gitInv4||$e(this.git4),this.gitInv5=this.gitInv5||$e(this.git5),this.gitInv6=this.gitInv6||$e(this.git6),this.gitInv7=this.gitInv7||$e(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||zy,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||$y}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},z(ru,"Theme"),ru),vAe=z(e=>{const t=new yAe;return t.calculate(e),t},"getThemeVariables"),au,xAe=(au=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Ze(this.primaryColor,16),this.tertiaryColor=fe(this.primaryColor,{h:-160}),this.primaryBorderColor=$e(this.background),this.secondaryBorderColor=Or(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Or(this.tertiaryColor,this.darkMode),this.primaryTextColor=$e(this.primaryColor),this.secondaryTextColor=$e(this.secondaryColor),this.tertiaryTextColor=$e(this.tertiaryColor),this.lineColor=$e(this.background),this.textColor=$e(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Ze($e("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Bf(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=ft("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=ft(this.sectionBkgColor,10),this.taskBorderColor=Bf(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Bf(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Ze(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||ft(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,n,r,a,i,o,s,l,c,d,p,h,g,b,y,x,w,S,_,N,R;this.secondBkg=Ze(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Ze(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Ze(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=fe(this.primaryColor,{h:64}),this.fillType3=fe(this.secondaryColor,{h:64}),this.fillType4=fe(this.primaryColor,{h:-64}),this.fillType5=fe(this.secondaryColor,{h:-64}),this.fillType6=fe(this.primaryColor,{h:128}),this.fillType7=fe(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||fe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||fe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||fe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||fe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||fe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||fe(this.primaryColor,{h:210}),this.cScale9=this.cScale9||fe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||fe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||fe(this.primaryColor,{h:330});for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||$e(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScalePeer"+C]=this["cScalePeer"+C]||Ze(this["cScale"+C],10);for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||fe(this.mainBkg,{h:30,s:-30,l:-(-10+C*4)}),this["surfacePeer"+C]=this["surfacePeer"+C]||fe(this.mainBkg,{h:30,s:-30,l:-(-7+C*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["pie"+C]=this["cScale"+C];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||fe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||fe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||fe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||fe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||fe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||fe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Up(this.quadrant1Fill)?Ze(this.quadrant1Fill):ft(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((h=this.radar)==null?void 0:h.axisColor)||this.lineColor,axisStrokeWidth:((g=this.radar)==null?void 0:g.axisStrokeWidth)||2,axisLabelFontSize:((b=this.radar)==null?void 0:b.axisLabelFontSize)||12,curveOpacity:((y=this.radar)==null?void 0:y.curveOpacity)||.5,curveStrokeWidth:((x=this.radar)==null?void 0:x.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((S=this.radar)==null?void 0:S.graticuleStrokeWidth)||1,graticuleOpacity:((_=this.radar)==null?void 0:_.graticuleOpacity)||.3,legendBoxSize:((N=this.radar)==null?void 0:N.legendBoxSize)||12,legendFontSize:((R=this.radar)==null?void 0:R.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ft(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Ze(this.secondaryColor,20),this.git1=Ze(this.pie2||this.secondaryColor,20),this.git2=Ze(this.pie3||this.tertiaryColor,20),this.git3=Ze(this.pie4||fe(this.primaryColor,{h:-30}),20),this.git4=Ze(this.pie5||fe(this.primaryColor,{h:-60}),20),this.git5=Ze(this.pie6||fe(this.primaryColor,{h:-90}),10),this.git6=Ze(this.pie7||fe(this.primaryColor,{h:60}),10),this.git7=Ze(this.pie8||fe(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||$e(this.git0),this.gitInv1=this.gitInv1||$e(this.git1),this.gitInv2=this.gitInv2||$e(this.git2),this.gitInv3=this.gitInv3||$e(this.git3),this.gitInv4=this.gitInv4||$e(this.git4),this.gitInv5=this.gitInv5||$e(this.git5),this.gitInv6=this.gitInv6||$e(this.git6),this.gitInv7=this.gitInv7||$e(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||$e(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||$e(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ze(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ze(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},z(au,"Theme"),au),SAe=z(e=>{const t=new xAe;return t.calculate(e),t},"getThemeVariables"),iu,wAe=(iu=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=fe(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=fe(this.primaryColor,{h:-160}),this.primaryBorderColor=Or(this.primaryColor,this.darkMode),this.secondaryBorderColor=Or(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Or(this.tertiaryColor,this.darkMode),this.primaryTextColor=$e(this.primaryColor),this.secondaryTextColor=$e(this.secondaryColor),this.tertiaryTextColor=$e(this.tertiaryColor),this.lineColor=$e(this.background),this.textColor=$e(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Bf(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,n,r,a,i,o,s,l,c,d,p,h,g,b,y,x,w,S,_,N,R;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||fe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||fe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||fe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||fe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||fe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||fe(this.primaryColor,{h:210}),this.cScale9=this.cScale9||fe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||fe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||fe(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||ft(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||ft(this.tertiaryColor,40);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=ft(this["cScale"+C],10),this["cScalePeer"+C]=this["cScalePeer"+C]||ft(this["cScale"+C],25);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||fe(this["cScale"+C],{h:180});for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||fe(this.mainBkg,{h:30,l:-(5+C*5)}),this["surfacePeer"+C]=this["surfacePeer"+C]||fe(this.mainBkg,{h:30,l:-(7+C*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||$e(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||$e(this.labelTextColor);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=Ze(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Ze(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Ze(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=fe(this.primaryColor,{h:64}),this.fillType3=fe(this.secondaryColor,{h:64}),this.fillType4=fe(this.primaryColor,{h:-64}),this.fillType5=fe(this.secondaryColor,{h:-64}),this.fillType6=fe(this.primaryColor,{h:128}),this.fillType7=fe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||fe(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||fe(this.primaryColor,{l:-10}),this.pie5=this.pie5||fe(this.secondaryColor,{l:-30}),this.pie6=this.pie6||fe(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||fe(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||fe(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||fe(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||fe(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||fe(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||fe(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||fe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||fe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||fe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||fe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||fe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||fe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Up(this.quadrant1Fill)?Ze(this.quadrant1Fill):ft(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((r=this.radar)==null?void 0:r.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((i=this.radar)==null?void 0:i.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((s=this.radar)==null?void 0:s.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((p=this.xyChart)==null?void 0:p.backgroundColor)||this.background,titleColor:((h=this.xyChart)==null?void 0:h.titleColor)||this.primaryTextColor,xAxisTitleColor:((g=this.xyChart)==null?void 0:g.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((b=this.xyChart)==null?void 0:b.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((x=this.xyChart)==null?void 0:x.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((w=this.xyChart)==null?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((S=this.xyChart)==null?void 0:S.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((_=this.xyChart)==null?void 0:_.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((N=this.xyChart)==null?void 0:N.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((R=this.xyChart)==null?void 0:R.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||fe(this.primaryColor,{h:-30}),this.git4=this.git4||fe(this.primaryColor,{h:-60}),this.git5=this.git5||fe(this.primaryColor,{h:-90}),this.git6=this.git6||fe(this.primaryColor,{h:60}),this.git7=this.git7||fe(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ze(this.git0,25),this.git1=Ze(this.git1,25),this.git2=Ze(this.git2,25),this.git3=Ze(this.git3,25),this.git4=Ze(this.git4,25),this.git5=Ze(this.git5,25),this.git6=Ze(this.git6,25),this.git7=Ze(this.git7,25)):(this.git0=ft(this.git0,25),this.git1=ft(this.git1,25),this.git2=ft(this.git2,25),this.git3=ft(this.git3,25),this.git4=ft(this.git4,25),this.git5=ft(this.git5,25),this.git6=ft(this.git6,25),this.git7=ft(this.git7,25)),this.gitInv0=this.gitInv0||ft($e(this.git0),25),this.gitInv1=this.gitInv1||$e(this.git1),this.gitInv2=this.gitInv2||$e(this.git2),this.gitInv3=this.gitInv3||$e(this.git3),this.gitInv4=this.gitInv4||$e(this.git4),this.gitInv5=this.gitInv5||$e(this.git5),this.gitInv6=this.gitInv6||$e(this.git6),this.gitInv7=this.gitInv7||$e(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||$e(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||$e(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||zy,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||$y}calculate(t){if(Object.keys(this).forEach(r=>{this[r]==="calculated"&&(this[r]=void 0)}),typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},z(iu,"Theme"),iu),EAe=z(e=>{const t=new wAe;return t.calculate(e),t},"getThemeVariables"),ou,kAe=(ou=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Ze("#cde498",10),this.primaryBorderColor=Or(this.primaryColor,this.darkMode),this.secondaryBorderColor=Or(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Or(this.tertiaryColor,this.darkMode),this.primaryTextColor=$e(this.primaryColor),this.secondaryTextColor=$e(this.secondaryColor),this.tertiaryTextColor=$e(this.primaryColor),this.lineColor=$e(this.background),this.textColor=$e(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,n,r,a,i,o,s,l,c,d,p,h,g,b,y,x,w,S,_,N,R;this.actorBorder=ft(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||fe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||fe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||fe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||fe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||fe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||fe(this.primaryColor,{h:210}),this.cScale9=this.cScale9||fe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||fe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||fe(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||ft(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||ft(this.tertiaryColor,40);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=ft(this["cScale"+C],10),this["cScalePeer"+C]=this["cScalePeer"+C]||ft(this["cScale"+C],25);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||fe(this["cScale"+C],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||fe(this.mainBkg,{h:30,s:-30,l:-(5+C*5)}),this["surfacePeer"+C]=this["surfacePeer"+C]||fe(this.mainBkg,{h:30,s:-30,l:-(8+C*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Ze(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Ze(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=fe(this.primaryColor,{h:64}),this.fillType3=fe(this.secondaryColor,{h:64}),this.fillType4=fe(this.primaryColor,{h:-64}),this.fillType5=fe(this.secondaryColor,{h:-64}),this.fillType6=fe(this.primaryColor,{h:128}),this.fillType7=fe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||fe(this.primaryColor,{l:-30}),this.pie5=this.pie5||fe(this.secondaryColor,{l:-30}),this.pie6=this.pie6||fe(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||fe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||fe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||fe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||fe(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||fe(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||fe(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||fe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||fe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||fe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||fe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||fe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||fe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Up(this.quadrant1Fill)?Ze(this.quadrant1Fill):ft(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((r=this.radar)==null?void 0:r.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((i=this.radar)==null?void 0:i.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((s=this.radar)==null?void 0:s.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((p=this.xyChart)==null?void 0:p.backgroundColor)||this.background,titleColor:((h=this.xyChart)==null?void 0:h.titleColor)||this.primaryTextColor,xAxisTitleColor:((g=this.xyChart)==null?void 0:g.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((b=this.xyChart)==null?void 0:b.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((x=this.xyChart)==null?void 0:x.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((w=this.xyChart)==null?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((S=this.xyChart)==null?void 0:S.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((_=this.xyChart)==null?void 0:_.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((N=this.xyChart)==null?void 0:N.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((R=this.xyChart)==null?void 0:R.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||fe(this.primaryColor,{h:-30}),this.git4=this.git4||fe(this.primaryColor,{h:-60}),this.git5=this.git5||fe(this.primaryColor,{h:-90}),this.git6=this.git6||fe(this.primaryColor,{h:60}),this.git7=this.git7||fe(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ze(this.git0,25),this.git1=Ze(this.git1,25),this.git2=Ze(this.git2,25),this.git3=Ze(this.git3,25),this.git4=Ze(this.git4,25),this.git5=Ze(this.git5,25),this.git6=Ze(this.git6,25),this.git7=Ze(this.git7,25)):(this.git0=ft(this.git0,25),this.git1=ft(this.git1,25),this.git2=ft(this.git2,25),this.git3=ft(this.git3,25),this.git4=ft(this.git4,25),this.git5=ft(this.git5,25),this.git6=ft(this.git6,25),this.git7=ft(this.git7,25)),this.gitInv0=this.gitInv0||$e(this.git0),this.gitInv1=this.gitInv1||$e(this.git1),this.gitInv2=this.gitInv2||$e(this.git2),this.gitInv3=this.gitInv3||$e(this.git3),this.gitInv4=this.gitInv4||$e(this.git4),this.gitInv5=this.gitInv5||$e(this.git5),this.gitInv6=this.gitInv6||$e(this.git6),this.gitInv7=this.gitInv7||$e(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||$e(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||$e(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||zy,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||$y}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},z(ou,"Theme"),ou),_Ae=z(e=>{const t=new kAe;return t.calculate(e),t},"getThemeVariables"),su,CAe=(su=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Ze(this.contrast,55),this.background="#ffffff",this.tertiaryColor=fe(this.primaryColor,{h:-160}),this.primaryBorderColor=Or(this.primaryColor,this.darkMode),this.secondaryBorderColor=Or(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Or(this.tertiaryColor,this.darkMode),this.primaryTextColor=$e(this.primaryColor),this.secondaryTextColor=$e(this.secondaryColor),this.tertiaryTextColor=$e(this.tertiaryColor),this.lineColor=$e(this.background),this.textColor=$e(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Ze(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,n,r,a,i,o,s,l,c,d,p,h,g,b,y,x,w,S,_,N,R;this.secondBkg=Ze(this.contrast,55),this.border2=this.contrast,this.actorBorder=Ze(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||$e(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this.darkMode?this["cScalePeer"+C]=this["cScalePeer"+C]||Ze(this["cScale"+C],10):this["cScalePeer"+C]=this["cScalePeer"+C]||ft(this["cScale"+C],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||fe(this.mainBkg,{l:-(5+C*5)}),this["surfacePeer"+C]=this["surfacePeer"+C]||fe(this.mainBkg,{l:-(8+C*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=Ze(this.contrast,30),this.sectionBkgColor2=Ze(this.contrast,30),this.taskBorderColor=ft(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Ze(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=ft(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=fe(this.primaryColor,{h:64}),this.fillType3=fe(this.secondaryColor,{h:64}),this.fillType4=fe(this.primaryColor,{h:-64}),this.fillType5=fe(this.secondaryColor,{h:-64}),this.fillType6=fe(this.primaryColor,{h:128}),this.fillType7=fe(this.secondaryColor,{h:128});for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["pie"+C]=this["cScale"+C];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||fe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||fe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||fe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||fe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||fe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||fe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Up(this.quadrant1Fill)?Ze(this.quadrant1Fill):ft(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((h=this.radar)==null?void 0:h.axisColor)||this.lineColor,axisStrokeWidth:((g=this.radar)==null?void 0:g.axisStrokeWidth)||2,axisLabelFontSize:((b=this.radar)==null?void 0:b.axisLabelFontSize)||12,curveOpacity:((y=this.radar)==null?void 0:y.curveOpacity)||.5,curveStrokeWidth:((x=this.radar)==null?void 0:x.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((S=this.radar)==null?void 0:S.graticuleStrokeWidth)||1,graticuleOpacity:((_=this.radar)==null?void 0:_.graticuleOpacity)||.3,legendBoxSize:((N=this.radar)==null?void 0:N.legendBoxSize)||12,legendFontSize:((R=this.radar)==null?void 0:R.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=ft(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||fe(this.primaryColor,{h:-30}),this.git4=this.pie5||fe(this.primaryColor,{h:-60}),this.git5=this.pie6||fe(this.primaryColor,{h:-90}),this.git6=this.pie7||fe(this.primaryColor,{h:60}),this.git7=this.pie8||fe(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||$e(this.git0),this.gitInv1=this.gitInv1||$e(this.git1),this.gitInv2=this.gitInv2||$e(this.git2),this.gitInv3=this.gitInv3||$e(this.git3),this.gitInv4=this.gitInv4||$e(this.git4),this.gitInv5=this.gitInv5||$e(this.git5),this.gitInv6=this.gitInv6||$e(this.git6),this.gitInv7=this.gitInv7||$e(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||zy,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||$y}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},z(su,"Theme"),su),TAe=z(e=>{const t=new CAe;return t.calculate(e),t},"getThemeVariables"),xo={base:{getThemeVariables:vAe},dark:{getThemeVariables:SAe},default:{getThemeVariables:EAe},forest:{getThemeVariables:_Ae},neutral:{getThemeVariables:TAe}},uo={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},iK={...uo,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:xo.default.getThemeVariables(),sequence:{...uo.sequence,messageFont:z(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:z(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:z(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...uo.gantt,tickInterval:void 0,useWidth:void 0},c4:{...uo.c4,useWidth:void 0,personFont:z(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:z(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:z(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:z(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:z(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:z(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:z(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:z(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:z(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:z(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:z(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:z(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:z(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:z(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:z(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:z(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:z(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:z(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:z(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:z(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:z(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:z(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...uo.pie,useWidth:984},xyChart:{...uo.xyChart,useWidth:void 0},requirement:{...uo.requirement,useWidth:void 0},packet:{...uo.packet},radar:{...uo.radar}},oK=z((e,t="")=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:typeof e[r]=="object"&&e[r]!==null?[...n,t+r,...oK(e[r],"")]:[...n,t+r],[]),"keyify"),AAe=new Set(oK(iK,"")),sK=iK,ob=z(e=>{if(Le.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>ob(t));return}for(const t of Object.keys(e)){if(Le.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!AAe.has(t)||e[t]==null){Le.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){Le.debug("sanitizing object",t),ob(e[t]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const r of n)t.includes(r)&&(Le.debug("sanitizing css option",t),e[t]=RAe(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const n=e.themeVariables[t];n!=null&&n.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}Le.debug("After sanitization",e)}},"sanitizeDirective"),RAe=z(e=>{let t=0,n=0;for(const r of e){if(t<n)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?t++:r==="}"&&n++}return t!==n?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),xu=Object.freeze(sK),qr=hr({},xu),lK,Su=[],$f=hr({},xu),jy=z((e,t)=>{let n=hr({},e),r={};for(const a of t)dK(a),r=hr(r,a);if(n=hr(n,r),r.theme&&r.theme in xo){const a=hr({},lK),i=hr(a.themeVariables||{},r.themeVariables);n.theme&&n.theme in xo&&(n.themeVariables=xo[n.theme].getThemeVariables(i))}return $f=n,fK($f),$f},"updateCurrentConfig"),NAe=z(e=>(qr=hr({},xu),qr=hr(qr,e),e.theme&&xo[e.theme]&&(qr.themeVariables=xo[e.theme].getThemeVariables(e.themeVariables)),jy(qr,Su),qr),"setSiteConfig"),LAe=z(e=>{lK=hr({},e)},"saveConfigFromInitialize"),OAe=z(e=>(qr=hr(qr,e),jy(qr,Su),qr),"updateSiteConfig"),cK=z(()=>hr({},qr),"getSiteConfig"),uK=z(e=>(fK(e),hr($f,e),Kr()),"setConfig"),Kr=z(()=>hr({},$f),"getConfig"),dK=z(e=>{e&&(["secure",...qr.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(Le.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&dK(e[t])}))},"sanitize"),DAe=z(e=>{var t;ob(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Su.push(e),jy(qr,Su)},"addDirective"),sb=z((e=qr)=>{Su=[],jy(e,Su)},"reset"),IAe={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Vz={},MAe=z(e=>{Vz[e]||(Le.warn(IAe[e]),Vz[e]=!0)},"issueWarning"),fK=z(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&MAe("LAZY_LOAD_DEPRECATED")},"checkConfig"),Hp=/<br\s*\/?>/gi,FAe=z(e=>e?gK(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),PAe=(()=>{let e=!1;return()=>{e||(pK(),e=!0)}})();function pK(){const e="data-temp-href-target";yu.addHook("beforeSanitizeAttributes",t=>{t instanceof Element&&t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),yu.addHook("afterSanitizeAttributes",t=>{t instanceof Element&&t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}z(pK,"setupDompurifyHooks");var hK=z(e=>(PAe(),yu.sanitize(e)),"removeScript"),Yz=z((e,t)=>{var n;if(((n=t.flowchart)==null?void 0:n.htmlLabels)!==!1){const r=t.securityLevel;r==="antiscript"||r==="strict"?e=hK(e):r!=="loose"&&(e=gK(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=jAe(e))}return e},"sanitizeMore"),Ll=z((e,t)=>e&&(t.dompurifyConfig?e=yu.sanitize(Yz(e,t),t.dompurifyConfig).toString():e=yu.sanitize(Yz(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),BAe=z((e,t)=>typeof e=="string"?Ll(e,t):e.flat().map(n=>Ll(n,t)),"sanitizeTextOrArray"),zAe=z(e=>Hp.test(e),"hasBreaks"),$Ae=z(e=>e.split(Hp),"splitBreaks"),jAe=z(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),gK=z(e=>e.replace(Hp,"#br#"),"breakToPlaceholder"),UAe=z(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},"getUrl"),Vn=z(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),HAe=z(function(...e){const t=e.filter(n=>!isNaN(n));return Math.max(...t)},"getMax"),GAe=z(function(...e){const t=e.filter(n=>!isNaN(n));return Math.min(...t)},"getMin"),Kz=z(function(e){const t=e.split(/(,)/),n=[];for(let r=0;r<t.length;r++){let a=t[r];if(a===","&&r>0&&r+1<t.length){const i=t[r-1],o=t[r+1];qAe(i,o)&&(a=i+","+o,r++,n.pop())}n.push(WAe(a))}return n.join("")},"parseGenericTypes"),vR=z((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),qAe=z((e,t)=>{const n=vR(e,"~"),r=vR(t,"~");return n===1&&r===1},"shouldCombineSets"),WAe=z(e=>{const t=vR(e,"~");let n=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),n=!0);const r=[...e];let a=r.indexOf("~"),i=r.lastIndexOf("~");for(;a!==-1&&i!==-1&&a!==i;)r[a]="<",r[i]=">",a=r.indexOf("~"),i=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")},"processSet"),Xz=z(()=>window.MathMLElement!==void 0,"isMathMLSupported"),xR=/\$\$(.*)\$\$/g,wu=z(e=>{var t;return(((t=e.match(xR))==null?void 0:t.length)??0)>0},"hasKatex"),Z8e=z(async(e,t)=>{e=await aL(e,t);const n=document.createElement("div");n.innerHTML=e,n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",n);const a={width:n.clientWidth,height:n.clientHeight};return n.remove(),a},"calculateMathMLDimensions"),aL=z(async(e,t)=>{if(!wu(e))return e;if(!(Xz()||t.legacyMathML||t.forceLegacyMathML))return e.replace(xR,"MathML is unsupported in this environment.");const{default:n}=await an(async()=>{const{default:a}=await import("./katex-DCmpTppl.js");return{default:a}},[]),r=t.forceLegacyMathML||!Xz()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Hp).map(a=>wu(a)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${a}</div>`:`<div>${a}</div>`).join("").replace(xR,(a,i)=>n.renderToString(i,{throwOnError:!0,displayMode:!0,output:r}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},"renderKatex"),Xu={getRows:FAe,sanitizeText:Ll,sanitizeTextOrArray:BAe,hasBreaks:zAe,splitBreaks:$Ae,lineBreakRegex:Hp,removeScript:hK,getUrl:UAe,evaluate:Vn,getMax:HAe,getMin:GAe},VAe=z(function(e,t){for(let n of t)e.attr(n[0],n[1])},"d3Attrs"),YAe=z(function(e,t,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${t}px;`)):(r.set("height",e),r.set("width",t)),r},"calculateSvgSizeAttrs"),mK=z(function(e,t,n,r){const a=YAe(t,n,r);VAe(e,a)},"configureSvgSize"),KAe=z(function(e,t,n,r){const a=t.node().getBBox(),i=a.width,o=a.height;Le.info(`SVG bounds: ${i}x${o}`,a);let s=0,l=0;Le.info(`Graph bounds: ${s}x${l}`,e),s=i+n*2,l=o+n*2,Le.info(`Calculated bounds: ${s}x${l}`),mK(t,l,s,r);const c=`${a.x-n} ${a.y-n} ${a.width+2*n} ${a.height+2*n}`;t.attr("viewBox",c)},"setupGraphViewbox"),xm={},XAe=z((e,t,n)=>{let r="";return e in xm&&xm[e]?r=xm[e](n):Le.warn(`No theme found for ${e}`),` & {
font-family: ${n.fontFamily};
font-size: ${n.fontSize};
fill: ${n.textColor}
}
@keyframes edge-animation-frame {
from {
stroke-dashoffset: 0;
}
}
@keyframes dash {
to {
stroke-dashoffset: 0;
}
}
& .edge-animation-slow {
stroke-dasharray: 9,5 !important;
stroke-dashoffset: 900;
animation: dash 50s linear infinite;
stroke-linecap: round;
}
& .edge-animation-fast {
stroke-dasharray: 9,5 !important;
stroke-dashoffset: 900;
animation: dash 20s linear infinite;
stroke-linecap: round;
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${n.errorBkgColor};
}
& .error-text {
fill: ${n.errorTextColor};
stroke: ${n.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 1px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-thickness-invisible {
stroke-width: 0;
fill: none;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${n.lineColor};
stroke: ${n.lineColor};
}
& .marker.cross {
stroke: ${n.lineColor};
}
& svg {
font-family: ${n.fontFamily};
font-size: ${n.fontSize};
}
& p {
margin: 0
}
${r}
${t}
`},"getStyles"),ZAe=z((e,t)=>{t!==void 0&&(xm[e]=t)},"addStylesForDiagram"),QAe=XAe,bK={};gAe(bK,{clear:()=>JAe,getAccDescription:()=>rRe,getAccTitle:()=>tRe,getDiagramTitle:()=>iRe,setAccDescription:()=>nRe,setAccTitle:()=>eRe,setDiagramTitle:()=>aRe});var iL="",oL="",sL="",lL=z(e=>Ll(e,Kr()),"sanitizeText"),JAe=z(()=>{iL="",sL="",oL=""},"clear"),eRe=z(e=>{iL=lL(e).replace(/^\s+/g,"")},"setAccTitle"),tRe=z(()=>iL,"getAccTitle"),nRe=z(e=>{sL=lL(e).replace(/\n\s+/g,`
`)},"setAccDescription"),rRe=z(()=>sL,"getAccDescription"),aRe=z(e=>{oL=lL(e)},"setDiagramTitle"),iRe=z(()=>oL,"getDiagramTitle"),Zz=Le,oRe=nL,Qt=Kr,Q8e=uK,J8e=xu,cL=z(e=>Ll(e,Qt()),"sanitizeText"),sRe=KAe,lRe=z(()=>bK,"getCommonDb"),lb={},cb=z((e,t,n)=>{var r;lb[e]&&Zz.warn(`Diagram with id ${e} already registered. Overwriting.`),lb[e]=t,n&&aK(e,n),ZAe(e,t.styles),(r=t.injectUtils)==null||r.call(t,Zz,oRe,Qt,cL,sRe,lRe(),()=>{})},"registerDiagram"),SR=z(e=>{if(e in lb)return lb[e];throw new cRe(e)},"getDiagram"),lu,cRe=(lu=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},z(lu,"DiagramNotFoundError"),lu);function uL(e){return typeof e>"u"||e===null}z(uL,"isNothing");function yK(e){return typeof e=="object"&&e!==null}z(yK,"isObject");function vK(e){return Array.isArray(e)?e:uL(e)?[]:[e]}z(vK,"toArray");function xK(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;n<r;n+=1)a=i[n],e[a]=t[a];return e}z(xK,"extend");function SK(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}z(SK,"repeat");function wK(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}z(wK,"isNegativeZero");var uRe=uL,dRe=yK,fRe=vK,pRe=SK,hRe=wK,gRe=xK,Wn={isNothing:uRe,isObject:dRe,toArray:fRe,repeat:pRe,isNegativeZero:hRe,extend:gRe};function dL(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
`+e.mark.snippet),r+" "+n):r}z(dL,"formatError");function Eu(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=dL(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}z(Eu,"YAMLException$1");Eu.prototype=Object.create(Error.prototype);Eu.prototype.constructor=Eu;Eu.prototype.toString=z(function(t){return this.name+": "+dL(this,t)},"toString");var Wr=Eu;function Sm(e,t,n,r,a){var i="",o="",s=Math.floor(a/2)-1;return r-t>s&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+i.length}}z(Sm,"getLine");function wm(e,t){return Wn.repeat(" ",t-e.length)+e}z(wm,"padStart");function EK(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",l,c,d=Math.min(e.line+t.linesAfter,a.length).toString().length,p=t.maxLength-(t.indent+d+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)c=Sm(e.buffer,r[o-l],a[o-l],e.position-(r[o]-r[o-l]),p),s=Wn.repeat(" ",t.indent)+wm((e.line-l+1).toString(),d)+" | "+c.str+`
`+s;for(c=Sm(e.buffer,r[o],a[o],e.position,p),s+=Wn.repeat(" ",t.indent)+wm((e.line+1).toString(),d)+" | "+c.str+`
`,s+=Wn.repeat("-",t.indent+d+3+c.pos)+`^
`,l=1;l<=t.linesAfter&&!(o+l>=a.length);l++)c=Sm(e.buffer,r[o+l],a[o+l],e.position-(r[o]-r[o+l]),p),s+=Wn.repeat(" ",t.indent)+wm((e.line+l+1).toString(),d)+" | "+c.str+`
`;return s.replace(/\n$/,"")}z(EK,"makeSnippet");var mRe=EK,bRe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],yRe=["scalar","sequence","mapping"];function kK(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}z(kK,"compileStyleAliases");function _K(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(bRe.indexOf(n)===-1)throw new Wr('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=kK(t.styleAliases||null),yRe.indexOf(this.kind)===-1)throw new Wr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}z(_K,"Type$1");var kr=_K;function wR(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}z(wR,"compileList");function CK(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(z(r,"collectType"),t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}z(CK,"compileMap");function ub(e){return this.extend(e)}z(ub,"Schema$1");ub.prototype.extend=z(function(t){var n=[],r=[];if(t instanceof kr)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new Wr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(i){if(!(i instanceof kr))throw new Wr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new Wr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new Wr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(i){if(!(i instanceof kr))throw new Wr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var a=Object.create(ub.prototype);return a.implicit=(this.implicit||[]).concat(n),a.explicit=(this.explicit||[]).concat(r),a.compiledImplicit=wR(a,"implicit"),a.compiledExplicit=wR(a,"explicit"),a.compiledTypeMap=CK(a.compiledImplicit,a.compiledExplicit),a},"extend");var vRe=ub,xRe=new kr("tag:yaml.org,2002:str",{kind:"scalar",construct:z(function(e){return e!==null?e:""},"construct")}),SRe=new kr("tag:yaml.org,2002:seq",{kind:"sequence",construct:z(function(e){return e!==null?e:[]},"construct")}),wRe=new kr("tag:yaml.org,2002:map",{kind:"mapping",construct:z(function(e){return e!==null?e:{}},"construct")}),ERe=new vRe({explicit:[xRe,SRe,wRe]});function TK(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}z(TK,"resolveYamlNull");function AK(){return null}z(AK,"constructYamlNull");function RK(e){return e===null}z(RK,"isNull");var kRe=new kr("tag:yaml.org,2002:null",{kind:"scalar",resolve:TK,construct:AK,predicate:RK,represent:{canonical:z(function(){return"~"},"canonical"),lowercase:z(function(){return"null"},"lowercase"),uppercase:z(function(){return"NULL"},"uppercase"),camelcase:z(function(){return"Null"},"camelcase"),empty:z(function(){return""},"empty")},defaultStyle:"lowercase"});function NK(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}z(NK,"resolveYamlBoolean");function LK(e){return e==="true"||e==="True"||e==="TRUE"}z(LK,"constructYamlBoolean");function OK(e){return Object.prototype.toString.call(e)==="[object Boolean]"}z(OK,"isBoolean");var _Re=new kr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:NK,construct:LK,predicate:OK,represent:{lowercase:z(function(e){return e?"true":"false"},"lowercase"),uppercase:z(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:z(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function DK(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}z(DK,"isHexCode");function IK(e){return 48<=e&&e<=55}z(IK,"isOctCode");function MK(e){return 48<=e&&e<=57}z(MK,"isDecCode");function FK(e){if(e===null)return!1;var t=e.length,n=0,r=!1,a;if(!t)return!1;if(a=e[n],(a==="-"||a==="+")&&(a=e[++n]),a==="0"){if(n+1===t)return!0;if(a=e[++n],a==="b"){for(n++;n<t;n++)if(a=e[n],a!=="_"){if(a!=="0"&&a!=="1")return!1;r=!0}return r&&a!=="_"}if(a==="x"){for(n++;n<t;n++)if(a=e[n],a!=="_"){if(!DK(e.charCodeAt(n)))return!1;r=!0}return r&&a!=="_"}if(a==="o"){for(n++;n<t;n++)if(a=e[n],a!=="_"){if(!IK(e.charCodeAt(n)))return!1;r=!0}return r&&a!=="_"}}if(a==="_")return!1;for(;n<t;n++)if(a=e[n],a!=="_"){if(!MK(e.charCodeAt(n)))return!1;r=!0}return!(!r||a==="_")}z(FK,"resolveYamlInteger");function PK(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}z(PK,"constructYamlInteger");function BK(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Wn.isNegativeZero(e)}z(BK,"isInteger");var CRe=new kr("tag:yaml.org,2002:int",{kind:"scalar",resolve:FK,construct:PK,predicate:BK,represent:{binary:z(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:z(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:z(function(e){return e.toString(10)},"decimal"),hexadecimal:z(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),TRe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function zK(e){return!(e===null||!TRe.test(e)||e[e.length-1]==="_")}z(zK,"resolveYamlFloat");function $K(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}z($K,"constructYamlFloat");var ARe=/^[-+]?[0-9]+e/;function jK(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Wn.isNegativeZero(e))return"-0.0";return n=e.toString(10),ARe.test(n)?n.replace("e",".e"):n}z(jK,"representYamlFloat");function UK(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Wn.isNegativeZero(e))}z(UK,"isFloat");var RRe=new kr("tag:yaml.org,2002:float",{kind:"scalar",resolve:zK,construct:$K,predicate:UK,represent:jK,defaultStyle:"lowercase"}),HK=ERe.extend({implicit:[kRe,_Re,CRe,RRe]}),NRe=HK,GK=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),qK=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function WK(e){return e===null?!1:GK.exec(e)!==null||qK.exec(e)!==null}z(WK,"resolveYamlTimestamp");function VK(e){var t,n,r,a,i,o,s,l=0,c=null,d,p,h;if(t=GK.exec(e),t===null&&(t=qK.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(d=+t[10],p=+(t[11]||0),c=(d*60+p)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(n,r,a,i,o,s,l)),c&&h.setTime(h.getTime()-c),h}z(VK,"constructYamlTimestamp");function YK(e){return e.toISOString()}z(YK,"representYamlTimestamp");var LRe=new kr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:WK,construct:VK,instanceOf:Date,represent:YK});function KK(e){return e==="<<"||e===null}z(KK,"resolveYamlMerge");var ORe=new kr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:KK}),fL=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function XK(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=fL;for(n=0;n<a;n++)if(t=i.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}z(XK,"resolveYamlBinary");function ZK(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=fL,o=0,s=[];for(t=0;t<a;t++)t%4===0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}z(ZK,"constructYamlBinary");function QK(e){var t="",n=0,r,a,i=e.length,o=fL;for(r=0;r<i;r++)r%3===0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}z(QK,"representYamlBinary");function JK(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}z(JK,"isBinary");var DRe=new kr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:XK,construct:ZK,predicate:JK,represent:QK}),IRe=Object.prototype.hasOwnProperty,MRe=Object.prototype.toString;function eX(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(a=s[n],o=!1,MRe.call(a)!=="[object Object]")return!1;for(i in a)if(IRe.call(a,i))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}z(eX,"resolveYamlOmap");function tX(e){return e!==null?e:[]}z(tX,"constructYamlOmap");var FRe=new kr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:eX,construct:tX}),PRe=Object.prototype.toString;function nX(e){if(e===null)return!0;var t,n,r,a,i,o=e;for(i=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],PRe.call(r)!=="[object Object]"||(a=Object.keys(r),a.length!==1))return!1;i[t]=[a[0],r[a[0]]]}return!0}z(nX,"resolveYamlPairs");function rX(e){if(e===null)return[];var t,n,r,a,i,o=e;for(i=new Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],a=Object.keys(r),i[t]=[a[0],r[a[0]]];return i}z(rX,"constructYamlPairs");var BRe=new kr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:nX,construct:rX}),zRe=Object.prototype.hasOwnProperty;function aX(e){if(e===null)return!0;var t,n=e;for(t in n)if(zRe.call(n,t)&&n[t]!==null)return!1;return!0}z(aX,"resolveYamlSet");function iX(e){return e!==null?e:{}}z(iX,"constructYamlSet");var $Re=new kr("tag:yaml.org,2002:set",{kind:"mapping",resolve:aX,construct:iX}),oX=NRe.extend({implicit:[LRe,ORe],explicit:[DRe,FRe,BRe,$Re]}),Es=Object.prototype.hasOwnProperty,db=1,sX=2,lX=3,fb=4,c0=1,jRe=2,Qz=3,URe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,HRe=/[\x85\u2028\u2029]/,GRe=/[,\[\]\{\}]/,cX=/^(?:!|!!|![a-z\-]+!)$/i,uX=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ER(e){return Object.prototype.toString.call(e)}z(ER,"_class");function si(e){return e===10||e===13}z(si,"is_EOL");function ys(e){return e===9||e===32}z(ys,"is_WHITE_SPACE");function Dr(e){return e===9||e===32||e===10||e===13}z(Dr,"is_WS_OR_EOL");function gl(e){return e===44||e===91||e===93||e===123||e===125}z(gl,"is_FLOW_INDICATOR");function dX(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}z(dX,"fromHexCode");function fX(e){return e===120?2:e===117?4:e===85?8:0}z(fX,"escapedHexLen");function pX(e){return 48<=e&&e<=57?e-48:-1}z(pX,"fromDecimalCode");function kR(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}z(kR,"simpleEscapeSequence");function hX(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}z(hX,"charFromCodepoint");var gX=new Array(256),mX=new Array(256);for(al=0;al<256;al++)gX[al]=kR(al)?1:0,mX[al]=kR(al);var al;function bX(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||oX,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}z(bX,"State$1");function pL(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=mRe(n),new Wr(t,n)}z(pL,"generateError");function ut(e,t){throw pL(e,t)}z(ut,"throwError");function sp(e,t){e.onWarning&&e.onWarning.call(null,pL(e,t))}z(sp,"throwWarning");var Jz={YAML:z(function(t,n,r){var a,i,o;t.version!==null&&ut(t,"duplication of %YAML directive"),r.length!==1&&ut(t,"YAML directive accepts exactly one argument"),a=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),a===null&&ut(t,"ill-formed argument of the YAML directive"),i=parseInt(a[1],10),o=parseInt(a[2],10),i!==1&&ut(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&sp(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:z(function(t,n,r){var a,i;r.length!==2&&ut(t,"TAG directive accepts exactly two arguments"),a=r[0],i=r[1],cX.test(a)||ut(t,"ill-formed tag handle (first argument) of the TAG directive"),Es.call(t.tagMap,a)&&ut(t,'there is a previously declared suffix for "'+a+'" tag handle'),uX.test(i)||ut(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{ut(t,"tag prefix is malformed: "+i)}t.tagMap[a]=i},"handleTagDirective")};function So(e,t,n,r){var a,i,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(a=0,i=s.length;a<i;a+=1)o=s.charCodeAt(a),o===9||32<=o&&o<=1114111||ut(e,"expected valid JSON character");else URe.test(s)&&ut(e,"the stream contains non-printable characters");e.result+=s}}z(So,"captureSegment");function _R(e,t,n,r){var a,i,o,s;for(Wn.isObject(n)||ut(e,"cannot merge mappings; the provided source object is unacceptable"),a=Object.keys(n),o=0,s=a.length;o<s;o+=1)i=a[o],Es.call(t,i)||(t[i]=n[i],r[i]=!0)}z(_R,"mergeMappings");function ml(e,t,n,r,a,i,o,s,l){var c,d;if(Array.isArray(a))for(a=Array.prototype.slice.call(a),c=0,d=a.length;c<d;c+=1)Array.isArray(a[c])&&ut(e,"nested arrays are not supported inside keys"),typeof a=="object"&&ER(a[c])==="[object Object]"&&(a[c]="[object Object]");if(typeof a=="object"&&ER(a)==="[object Object]"&&(a="[object Object]"),a=String(a),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(i))for(c=0,d=i.length;c<d;c+=1)_R(e,t,i[c],n);else _R(e,t,i,n);else!e.json&&!Es.call(n,a)&&Es.call(t,a)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,ut(e,"duplicated mapping key")),a==="__proto__"?Object.defineProperty(t,a,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[a]=i,delete n[a];return t}z(ml,"storeMappingPair");function Uy(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ut(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}z(Uy,"readLineBreak");function Dn(e,t,n){for(var r=0,a=e.input.charCodeAt(e.position);a!==0;){for(;ys(a);)a===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),a=e.input.charCodeAt(++e.position);if(t&&a===35)do a=e.input.charCodeAt(++e.position);while(a!==10&&a!==13&&a!==0);if(si(a))for(Uy(e),a=e.input.charCodeAt(e.position),r++,e.lineIndent=0;a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&sp(e,"deficient indentation"),r}z(Dn,"skipSeparationSpace");function Gp(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||Dr(n)))}z(Gp,"testDocumentSeparator");function Hy(e,t){t===1?e.result+=" ":t>1&&(e.result+=Wn.repeat(`
`,t-1))}z(Hy,"writeFoldedLines");function yX(e,t,n){var r,a,i,o,s,l,c,d,p=e.kind,h=e.result,g;if(g=e.input.charCodeAt(e.position),Dr(g)||gl(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(a=e.input.charCodeAt(e.position+1),Dr(a)||n&&gl(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;g!==0;){if(g===58){if(a=e.input.charCodeAt(e.position+1),Dr(a)||n&&gl(a))break}else if(g===35){if(r=e.input.charCodeAt(e.position-1),Dr(r))break}else{if(e.position===e.lineStart&&Gp(e)||n&&gl(g))break;if(si(g))if(l=e.line,c=e.lineStart,d=e.lineIndent,Dn(e,!1,-1),e.lineIndent>=t){s=!0,g=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=c,e.lineIndent=d;break}}s&&(So(e,i,o,!1),Hy(e,e.line-l),i=o=e.position,s=!1),ys(g)||(o=e.position+1),g=e.input.charCodeAt(++e.position)}return So(e,i,o,!1),e.result?!0:(e.kind=p,e.result=h,!1)}z(yX,"readPlainScalar");function vX(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(So(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else si(n)?(So(e,r,a,!0),Hy(e,Dn(e,!1,t)),r=a=e.position):e.position===e.lineStart&&Gp(e)?ut(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ut(e,"unexpected end of the stream within a single quoted scalar")}z(vX,"readSingleQuotedScalar");function xX(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return So(e,n,e.position,!0),e.position++,!0;if(s===92){if(So(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),si(s))Dn(e,!1,t);else if(s<256&&gX[s])e.result+=mX[s],e.position++;else if((o=fX(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=dX(s))>=0?i=(i<<4)+o:ut(e,"expected hexadecimal character");e.result+=hX(i),e.position++}else ut(e,"unknown escape sequence");n=r=e.position}else si(s)?(So(e,n,r,!0),Hy(e,Dn(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Gp(e)?ut(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ut(e,"unexpected end of the stream within a double quoted scalar")}z(xX,"readDoubleQuotedScalar");function SX(e,t){var n=!0,r,a,i,o=e.tag,s,l=e.anchor,c,d,p,h,g,b=Object.create(null),y,x,w,S;if(S=e.input.charCodeAt(e.position),S===91)d=93,g=!1,s=[];else if(S===123)d=125,g=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),S=e.input.charCodeAt(++e.position);S!==0;){if(Dn(e,!0,t),S=e.input.charCodeAt(e.position),S===d)return e.position++,e.tag=o,e.anchor=l,e.kind=g?"mapping":"sequence",e.result=s,!0;n?S===44&&ut(e,"expected the node content, but found ','"):ut(e,"missed comma between flow collection entries"),x=y=w=null,p=h=!1,S===63&&(c=e.input.charCodeAt(e.position+1),Dr(c)&&(p=h=!0,e.position++,Dn(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,Ol(e,t,db,!1,!0),x=e.tag,y=e.result,Dn(e,!0,t),S=e.input.charCodeAt(e.position),(h||e.line===r)&&S===58&&(p=!0,S=e.input.charCodeAt(++e.position),Dn(e,!0,t),Ol(e,t,db,!1,!0),w=e.result),g?ml(e,s,b,x,y,w,r,a,i):p?s.push(ml(e,null,b,x,y,w,r,a,i)):s.push(y),Dn(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(n=!0,S=e.input.charCodeAt(++e.position)):n=!1}ut(e,"unexpected end of the stream within a flow collection")}z(SX,"readFlowCollection");function wX(e,t){var n,r,a=c0,i=!1,o=!1,s=t,l=0,c=!1,d,p;if(p=e.input.charCodeAt(e.position),p===124)r=!1;else if(p===62)r=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)c0===a?a=p===43?Qz:jRe:ut(e,"repeat of a chomping mode identifier");else if((d=pX(p))>=0)d===0?ut(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ut(e,"repeat of an indentation width identifier"):(s=t+d-1,o=!0);else break;if(ys(p)){do p=e.input.charCodeAt(++e.position);while(ys(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!si(p)&&p!==0)}for(;p!==0;){for(Uy(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),si(p)){l++;continue}if(e.lineIndent<s){a===Qz?e.result+=Wn.repeat(`
`,i?1+l:l):a===c0&&i&&(e.result+=`
`);break}for(r?ys(p)?(c=!0,e.result+=Wn.repeat(`
`,i?1+l:l)):c?(c=!1,e.result+=Wn.repeat(`
`,l+1)):l===0?i&&(e.result+=" "):e.result+=Wn.repeat(`
`,l):e.result+=Wn.repeat(`
`,i?1+l:l),i=!0,o=!0,l=0,n=e.position;!si(p)&&p!==0;)p=e.input.charCodeAt(++e.position);So(e,n,e.position,!1)}return!0}z(wX,"readBlockScalar");function CR(e,t){var n,r=e.tag,a=e.anchor,i=[],o,s=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=i),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ut(e,"tab characters must not be used in indentation")),!(l!==45||(o=e.input.charCodeAt(e.position+1),!Dr(o))));){if(s=!0,e.position++,Dn(e,!0,-1)&&e.lineIndent<=t){i.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,Ol(e,t,lX,!1,!0),i.push(e.result),Dn(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)ut(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=a,e.kind="sequence",e.result=i,!0):!1}z(CR,"readBlockSequence");function EX(e,t,n){var r,a,i,o,s,l,c=e.tag,d=e.anchor,p={},h=Object.create(null),g=null,b=null,y=null,x=!1,w=!1,S;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),S=e.input.charCodeAt(e.position);S!==0;){if(!x&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ut(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),i=e.line,(S===63||S===58)&&Dr(r))S===63?(x&&(ml(e,p,h,g,b,null,o,s,l),g=b=y=null),w=!0,x=!0,a=!0):x?(x=!1,a=!0):ut(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,S=r;else{if(o=e.line,s=e.lineStart,l=e.position,!Ol(e,n,sX,!1,!0))break;if(e.line===i){for(S=e.input.charCodeAt(e.position);ys(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),Dr(S)||ut(e,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(ml(e,p,h,g,b,null,o,s,l),g=b=y=null),w=!0,x=!1,a=!1,g=e.tag,b=e.result;else if(w)ut(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=d,!0}else if(w)ut(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=d,!0}if((e.line===i||e.lineIndent>t)&&(x&&(o=e.line,s=e.lineStart,l=e.position),Ol(e,t,fb,!0,a)&&(x?b=e.result:y=e.result),x||(ml(e,p,h,g,b,y,o,s,l),g=b=y=null),Dn(e,!0,-1),S=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&S!==0)ut(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return x&&ml(e,p,h,g,b,null,o,s,l),w&&(e.tag=c,e.anchor=d,e.kind="mapping",e.result=p),w}z(EX,"readBlockMapping");function kX(e){var t,n=!1,r=!1,a,i,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ut(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,a="!!",o=e.input.charCodeAt(++e.position)):a="!",t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(i=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ut(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Dr(o);)o===33&&(r?ut(e,"tag suffix cannot contain exclamation marks"):(a=e.input.slice(t-1,e.position+1),cX.test(a)||ut(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),GRe.test(i)&&ut(e,"tag suffix cannot contain flow indicator characters")}i&&!uX.test(i)&&ut(e,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch{ut(e,"tag name is malformed: "+i)}return n?e.tag=i:Es.call(e.tagMap,a)?e.tag=e.tagMap[a]+i:a==="!"?e.tag="!"+i:a==="!!"?e.tag="tag:yaml.org,2002:"+i:ut(e,'undeclared tag handle "'+a+'"'),!0}z(kX,"readTagProperty");function _X(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&ut(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Dr(n)&&!gl(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ut(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}z(_X,"readAnchorProperty");function CX(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Dr(r)&&!gl(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ut(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Es.call(e.anchorMap,n)||ut(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Dn(e,!0,-1),!0}z(CX,"readAlias");function Ol(e,t,n,r,a){var i,o,s,l=1,c=!1,d=!1,p,h,g,b,y,x;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=s=fb===n||lX===n,r&&Dn(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;kX(e)||_X(e);)Dn(e,!0,-1)?(c=!0,s=i,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):s=!1;if(s&&(s=c||a),(l===1||fb===n)&&(db===n||sX===n?y=t:y=t+1,x=e.position-e.lineStart,l===1?s&&(CR(e,x)||EX(e,x,y))||SX(e,y)?d=!0:(o&&wX(e,y)||vX(e,y)||xX(e,y)?d=!0:CX(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&ut(e,"alias node should not have any properties")):yX(e,y,db===n)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(d=s&&CR(e,x))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ut(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,h=e.implicitTypes.length;p<h;p+=1)if(b=e.implicitTypes[p],b.resolve(e.result)){e.result=b.construct(e.result),e.tag=b.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Es.call(e.typeMap[e.kind||"fallback"],e.tag))b=e.typeMap[e.kind||"fallback"][e.tag];else for(b=null,g=e.typeMap.multi[e.kind||"fallback"],p=0,h=g.length;p<h;p+=1)if(e.tag.slice(0,g[p].tag.length)===g[p].tag){b=g[p];break}b||ut(e,"unknown tag !<"+e.tag+">"),e.result!==null&&b.kind!==e.kind&&ut(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"'),b.resolve(e.result,e.tag)?(e.result=b.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ut(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}z(Ol,"composeNode");function TX(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Dn(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Dr(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ut(e,"directive name must not be less than one character in length");o!==0;){for(;ys(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!si(o));break}if(si(o))break;for(n=e.position;o!==0&&!Dr(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Uy(e),Es.call(Jz,r)?Jz[r](e,r,a):sp(e,'unknown document directive "'+r+'"')}if(Dn(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Dn(e,!0,-1)):i&&ut(e,"directives end mark is expected"),Ol(e,e.lineIndent-1,fb,!1,!0),Dn(e,!0,-1),e.checkLineBreaks&&HRe.test(e.input.slice(t,e.position))&&sp(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Gp(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Dn(e,!0,-1));return}if(e.position<e.length-1)ut(e,"end of the stream or a document separator is expected");else return}z(TX,"readDocument");function hL(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new bX(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,ut(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)TX(n);return n.documents}z(hL,"loadDocuments");function qRe(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=hL(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a<i;a+=1)t(r[a])}z(qRe,"loadAll$1");function AX(e,t){var n=hL(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Wr("expected a single document in the stream, but found more")}}z(AX,"load$1");var WRe=AX,VRe={load:WRe},RX=Object.prototype.toString,NX=Object.prototype.hasOwnProperty,gL=65279,YRe=9,lp=10,KRe=13,XRe=32,ZRe=33,QRe=34,TR=35,JRe=37,e2e=38,t2e=39,n2e=42,LX=44,r2e=45,pb=58,a2e=61,i2e=62,o2e=63,s2e=64,OX=91,DX=93,l2e=96,IX=123,c2e=124,MX=125,Tr={};Tr[0]="\\0";Tr[7]="\\a";Tr[8]="\\b";Tr[9]="\\t";Tr[10]="\\n";Tr[11]="\\v";Tr[12]="\\f";Tr[13]="\\r";Tr[27]="\\e";Tr[34]='\\"';Tr[92]="\\\\";Tr[133]="\\N";Tr[160]="\\_";Tr[8232]="\\L";Tr[8233]="\\P";var u2e=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],d2e=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function FX(e,t){var n,r,a,i,o,s,l;if(t===null)return{};for(n={},r=Object.keys(t),a=0,i=r.length;a<i;a+=1)o=r[a],s=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=e.compiledTypeMap.fallback[o],l&&NX.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[o]=s;return n}z(FX,"compileStyleMap");function PX(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Wr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Wn.repeat("0",r-t.length)+t}z(PX,"encodeHex");var f2e=1,cp=2;function BX(e){this.schema=e.schema||oX,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Wn.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=FX(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?cp:f2e,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}z(BX,"State");function AR(e,t){for(var n=Wn.repeat(" ",t),r=0,a=-1,i="",o,s=e.length;r<s;)a=e.indexOf(`
`,r),a===-1?(o=e.slice(r),r=s):(o=e.slice(r,a+1),r=a+1),o.length&&o!==`
`&&(i+=n),i+=o;return i}z(AR,"indentString");function hb(e,t){return`
`+Wn.repeat(" ",e.indent*t)}z(hb,"generateNextLine");function zX(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(a=e.implicitTypes[n],a.resolve(t))return!0;return!1}z(zX,"testImplicitResolving");function up(e){return e===XRe||e===YRe}z(up,"isWhitespace");function ku(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==gL||65536<=e&&e<=1114111}z(ku,"isPrintable");function RR(e){return ku(e)&&e!==gL&&e!==KRe&&e!==lp}z(RR,"isNsCharOrWhitespace");function NR(e,t,n){var r=RR(e),a=r&&!up(e);return(n?r:r&&e!==LX&&e!==OX&&e!==DX&&e!==IX&&e!==MX)&&e!==TR&&!(t===pb&&!a)||RR(t)&&!up(t)&&e===TR||t===pb&&a}z(NR,"isPlainSafe");function $X(e){return ku(e)&&e!==gL&&!up(e)&&e!==r2e&&e!==o2e&&e!==pb&&e!==LX&&e!==OX&&e!==DX&&e!==IX&&e!==MX&&e!==TR&&e!==e2e&&e!==n2e&&e!==ZRe&&e!==c2e&&e!==a2e&&e!==i2e&&e!==t2e&&e!==QRe&&e!==JRe&&e!==s2e&&e!==l2e}z($X,"isPlainSafeFirst");function jX(e){return!up(e)&&e!==pb}z(jX,"isPlainSafeLast");function Gc(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}z(Gc,"codePointAt");function mL(e){var t=/^\n* /;return t.test(e)}z(mL,"needIndentIndicator");var UX=1,LR=2,HX=3,GX=4,Uc=5;function qX(e,t,n,r,a,i,o,s){var l,c=0,d=null,p=!1,h=!1,g=r!==-1,b=-1,y=$X(Gc(e,0))&&jX(Gc(e,e.length-1));if(t||o)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Gc(e,l),!ku(c))return Uc;y=y&&NR(c,d,s),d=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Gc(e,l),c===lp)p=!0,g&&(h=h||l-b-1>r&&e[b+1]!==" ",b=l);else if(!ku(c))return Uc;y=y&&NR(c,d,s),d=c}h=h||g&&l-b-1>r&&e[b+1]!==" "}return!p&&!h?y&&!o&&!a(e)?UX:i===cp?Uc:LR:n>9&&mL(e)?Uc:o?i===cp?Uc:LR:h?GX:HX}z(qX,"chooseScalarStyle");function WX(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===cp?'""':"''";if(!e.noCompatMode&&(u2e.indexOf(t)!==-1||d2e.test(t)))return e.quotingType===cp?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function l(c){return zX(e,c)}switch(z(l,"testAmbiguity"),qX(t,s,e.indent,o,l,e.quotingType,e.forceQuotes&&!r,a)){case UX:return t;case LR:return"'"+t.replace(/'/g,"''")+"'";case HX:return"|"+OR(t,e.indent)+DR(AR(t,i));case GX:return">"+OR(t,e.indent)+DR(AR(VX(t,o),i));case Uc:return'"'+YX(t)+'"';default:throw new Wr("impossible error: invalid scalar style")}}()}z(WX,"writeScalar");function OR(e,t){var n=mL(e)?String(t):"",r=e[e.length-1]===`
`,a=r&&(e[e.length-2]===`
`||e===`
`),i=a?"+":r?"":"-";return n+i+`
`}z(OR,"blockHeader");function DR(e){return e[e.length-1]===`
`?e.slice(0,-1):e}z(DR,"dropEndingNewline");function VX(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var c=e.indexOf(`
`);return c=c!==-1?c:e.length,n.lastIndex=c,IR(e.slice(0,c),t)}(),a=e[0]===`
`||e[0]===" ",i,o;o=n.exec(e);){var s=o[1],l=o[2];i=l[0]===" ",r+=s+(!a&&!i&&l!==""?`
`:"")+IR(l,t),a=i}return r}z(VX,"foldString");function IR(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,l="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,l+=`
`+e.slice(a,i),a=i+1),o=s;return l+=`
`,e.length-a>t&&o>a?l+=e.slice(a,o)+`
`+e.slice(o+1):l+=e.slice(a),l.slice(1)}z(IR,"foldLine");function YX(e){for(var t="",n=0,r,a=0;a<e.length;n>=65536?a+=2:a++)n=Gc(e,a),r=Tr[n],!r&&ku(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||PX(n);return t}z(YX,"escapeString");function KX(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i<o;i+=1)s=n[i],e.replacer&&(s=e.replacer.call(n,String(i),s)),(Mi(e,t,s,!1,!1)||typeof s>"u"&&Mi(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}z(KX,"writeFlowSequence");function MR(e,t,n,r){var a="",i=e.tag,o,s,l;for(o=0,s=n.length;o<s;o+=1)l=n[o],e.replacer&&(l=e.replacer.call(n,String(o),l)),(Mi(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&Mi(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=hb(e,t)),e.dump&&lp===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}z(MR,"writeBlockSequence");function XX(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,l,c,d;for(o=0,s=i.length;o<s;o+=1)d="",r!==""&&(d+=", "),e.condenseFlow&&(d+='"'),l=i[o],c=n[l],e.replacer&&(c=e.replacer.call(n,l,c)),Mi(e,t,l,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Mi(e,t,c,!1,!1)&&(d+=e.dump,r+=d));e.tag=a,e.dump="{"+r+"}"}z(XX,"writeFlowMapping");function ZX(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,l,c,d,p,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Wr("sortKeys must be a boolean or a function");for(s=0,l=o.length;s<l;s+=1)h="",(!r||a!=="")&&(h+=hb(e,t)),c=o[s],d=n[c],e.replacer&&(d=e.replacer.call(n,c,d)),Mi(e,t+1,c,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&lp===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,p&&(h+=hb(e,t)),Mi(e,t+1,d,!0,p)&&(e.dump&&lp===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,a+=h));e.tag=i,e.dump=a||"{}"}z(ZX,"writeBlockMapping");function FR(e,t,n){var r,a,i,o,s,l;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i<o;i+=1)if(s=a[i],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,RX.call(s.represent)==="[object Function]")r=s.represent(t,l);else if(NX.call(s.represent,l))r=s.represent[l](t,l);else throw new Wr("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}z(FR,"detectType");function Mi(e,t,n,r,a,i,o){e.tag=null,e.dump=n,FR(e,n,!1)||FR(e,n,!0);var s=RX.call(e.dump),l=r,c;r&&(r=e.flowLevel<0||e.flowLevel>t);var d=s==="[object Object]"||s==="[object Array]",p,h;if(d&&(p=e.duplicates.indexOf(n),h=p!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(a=!1),h&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&h&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(ZX(e,t,e.dump,a),h&&(e.dump="&ref_"+p+e.dump)):(XX(e,t,e.dump),h&&(e.dump="&ref_"+p+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?MR(e,t-1,e.dump,a):MR(e,t,e.dump,a),h&&(e.dump="&ref_"+p+e.dump)):(KX(e,t,e.dump),h&&(e.dump="&ref_"+p+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&WX(e,e.dump,t,i,l);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Wr("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}z(Mi,"writeNode");function QX(e,t){var n=[],r=[],a,i;for(gb(e,n,r),a=0,i=r.length;a<i;a+=1)t.duplicates.push(n[r[a]]);t.usedDuplicates=new Array(i)}z(QX,"getDuplicateReferences");function gb(e,t,n){var r,a,i;if(e!==null&&typeof e=="object")if(a=t.indexOf(e),a!==-1)n.indexOf(a)===-1&&n.push(a);else if(t.push(e),Array.isArray(e))for(a=0,i=e.length;a<i;a+=1)gb(e[a],t,n);else for(r=Object.keys(e),a=0,i=r.length;a<i;a+=1)gb(e[r[a]],t,n)}z(gb,"inspectNode");function p2e(e,t){t=t||{};var n=new BX(t);n.noRefs||QX(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Mi(n,0,r,!0,!0)?n.dump+`
`:""}z(p2e,"dump$1");function h2e(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}z(h2e,"renamed");var g2e=HK,m2e=VRe.load;/*! Bundled license information:
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
*/var Ma={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function Tf(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=vn(e),t=vn(t);const[n,r]=[e.x,e.y],[a,i]=[t.x,t.y],o=a-n,s=i-r;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}z(Tf,"calculateDeltaAndAngle");var vn=z(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),b2e=z(e=>({x:z(function(t,n,r){let a=0;const i=vn(r[0]).x<vn(r[r.length-1]).x?"left":"right";if(n===0&&Object.hasOwn(Ma,e.arrowTypeStart)){const{angle:g,deltaX:b}=Tf(r[0],r[1]);a=Ma[e.arrowTypeStart]*Math.cos(g)*(b>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(Ma,e.arrowTypeEnd)){const{angle:g,deltaX:b}=Tf(r[r.length-1],r[r.length-2]);a=Ma[e.arrowTypeEnd]*Math.cos(g)*(b>=0?1:-1)}const o=Math.abs(vn(t).x-vn(r[r.length-1]).x),s=Math.abs(vn(t).y-vn(r[r.length-1]).y),l=Math.abs(vn(t).x-vn(r[0]).x),c=Math.abs(vn(t).y-vn(r[0]).y),d=Ma[e.arrowTypeStart],p=Ma[e.arrowTypeEnd],h=1;if(o<p&&o>0&&s<p){let g=p+h-o;g*=i==="right"?-1:1,a-=g}if(l<d&&l>0&&c<d){let g=d+h-l;g*=i==="right"?-1:1,a+=g}return vn(t).x+a},"x"),y:z(function(t,n,r){let a=0;const i=vn(r[0]).y<vn(r[r.length-1]).y?"down":"up";if(n===0&&Object.hasOwn(Ma,e.arrowTypeStart)){const{angle:g,deltaY:b}=Tf(r[0],r[1]);a=Ma[e.arrowTypeStart]*Math.abs(Math.sin(g))*(b>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(Ma,e.arrowTypeEnd)){const{angle:g,deltaY:b}=Tf(r[r.length-1],r[r.length-2]);a=Ma[e.arrowTypeEnd]*Math.abs(Math.sin(g))*(b>=0?1:-1)}const o=Math.abs(vn(t).y-vn(r[r.length-1]).y),s=Math.abs(vn(t).x-vn(r[r.length-1]).x),l=Math.abs(vn(t).y-vn(r[0]).y),c=Math.abs(vn(t).x-vn(r[0]).x),d=Ma[e.arrowTypeStart],p=Ma[e.arrowTypeEnd],h=1;if(o<p&&o>0&&s<p){let g=p+h-o;g*=i==="up"?-1:1,a-=g}if(l<d&&l>0&&c<d){let g=d+h-l;g*=i==="up"?-1:1,a+=g}return vn(t).y+a},"y")}),"getLineFunctionsWithOffset"),bL=z(({flowchart:e})=>{var a,i;const t=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.top)??0,n=((i=e==null?void 0:e.subGraphTitleMargin)==null?void 0:i.bottom)??0,r=t+n;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:r}},"getSubGraphTitleMargins");const y2e=Object.freeze({left:0,top:0,width:16,height:16}),mb=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),JX=Object.freeze({...y2e,...mb}),v2e=Object.freeze({...JX,body:"",hidden:!1}),x2e=Object.freeze({width:null,height:null}),S2e=Object.freeze({...x2e,...mb}),w2e=(e,t,n,r="")=>{const a=e.split(":");if(e.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;r=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){const s=a.pop(),l=a.pop(),c={provider:a.length>0?a[0]:r,prefix:l,name:s};return u0(c)?c:null}const i=a[0],o=i.split("-");if(o.length>1){const s={provider:r,prefix:o.shift(),name:o.join("-")};return u0(s)?s:null}if(n&&r===""){const s={provider:r,prefix:"",name:i};return u0(s,n)?s:null}return null},u0=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function E2e(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function e3(e,t){const n=E2e(e,t);for(const r in v2e)r in mb?r in e&&!(r in n)&&(n[r]=mb[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function k2e(e,t){const n=e.icons,r=e.aliases||Object.create(null),a=Object.create(null);function i(o){if(n[o])return a[o]=[];if(!(o in a)){a[o]=null;const s=r[o]&&r[o].parent,l=s&&i(s);l&&(a[o]=[s].concat(l))}return a[o]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(i),a}function t3(e,t,n){const r=e.icons,a=e.aliases||Object.create(null);let i={};function o(s){i=e3(r[s]||a[s],i)}return o(t),n.forEach(o),e3(e,i)}function _2e(e,t){if(e.icons[t])return t3(e,t,[]);const n=k2e(e,[t])[t];return n?t3(e,t,n):null}const C2e=/(-?[0-9.]*[0-9]+[0-9.]*)/g,T2e=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function n3(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(C2e);if(r===null||!r.length)return e;const a=[];let i=r.shift(),o=T2e.test(i);for(;;){if(o){const s=parseFloat(i);isNaN(s)?a.push(i):a.push(Math.ceil(s*t*n)/n)}else a.push(i);if(i=r.shift(),i===void 0)return a.join("");o=!o}}function A2e(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const a=e.indexOf(">",r),i=e.indexOf("</"+t);if(a===-1||i===-1)break;const o=e.indexOf(">",i);if(o===-1)break;n+=e.slice(a+1,i).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function R2e(e,t){return e?"<defs>"+e+"</defs>"+t:t}function N2e(e,t,n){const r=A2e(e);return R2e(r.defs,t+r.content+n)}const L2e=e=>e==="unset"||e==="undefined"||e==="none";function O2e(e,t){const n={...JX,...e},r={...S2e,...t},a={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(y=>{const x=[],w=y.hFlip,S=y.vFlip;let _=y.rotate;w?S?_+=2:(x.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),x.push("scale(-1 1)"),a.top=a.left=0):S&&(x.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),x.push("scale(1 -1)"),a.top=a.left=0);let N;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:N=a.height/2+a.top,x.unshift("rotate(90 "+N.toString()+" "+N.toString()+")");break;case 2:x.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:N=a.width/2+a.left,x.unshift("rotate(-90 "+N.toString()+" "+N.toString()+")");break}_%2===1&&(a.left!==a.top&&(N=a.left,a.left=a.top,a.top=N),a.width!==a.height&&(N=a.width,a.width=a.height,a.height=N)),x.length&&(i=N2e(i,'<g transform="'+x.join(" ")+'">',"</g>"))});const o=r.width,s=r.height,l=a.width,c=a.height;let d,p;o===null?(p=s===null?"1em":s==="auto"?c:s,d=n3(p,l/c)):(d=o==="auto"?l:o,p=s===null?n3(d,c/l):s==="auto"?c:s);const h={},g=(y,x)=>{L2e(x)||(h[y]=x.toString())};g("width",d),g("height",p);const b=[a.left,a.top,l,c];return h.viewBox=b.join(" "),{attributes:h,viewBox:b,body:i}}const D2e=/\sid="(\S+)"/g,I2e="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let M2e=0;function F2e(e,t=I2e){const n=[];let r;for(;r=D2e.exec(e);)n.push(r[1]);if(!n.length)return e;const a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const o=typeof t=="function"?t(i):t+(M2e++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+a+"$3")}),e=e.replace(new RegExp(a,"g"),""),e}function P2e(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}var B2e={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},PR=new Map,eZ=new Map,z2e=z(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(Le.debug("Registering icon pack:",t.name),"loader"in t)eZ.set(t.name,t.loader);else if("icons"in t)PR.set(t.name,t.icons);else throw Le.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),$2e=z(async(e,t)=>{const n=w2e(e,!0,t!==void 0);if(!n)throw new Error(`Invalid icon name: ${e}`);const r=n.prefix||t;if(!r)throw new Error(`Icon name must contain a prefix: ${e}`);let a=PR.get(r);if(!a){const o=eZ.get(r);if(!o)throw new Error(`Icon set not found: ${n.prefix}`);try{a={...await o(),prefix:r},PR.set(r,a)}catch(s){throw Le.error(s),new Error(`Failed to load icon set: ${n.prefix}`)}}const i=_2e(a,n.name);if(!i)throw new Error(`Icon not found: ${e}`);return i},"getRegisteredIconData"),Gy=z(async(e,t)=>{let n;try{n=await $2e(e,t==null?void 0:t.fallbackPrefix)}catch(i){Le.error(i),n=B2e}const r=O2e(n,t);return P2e(F2e(r.body),r.attributes)},"getIconSVG"),gf={},Gn={},r3;function j2e(){return r3||(r3=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.BLANK_URL=Gn.relativeFirstCharacters=Gn.whitespaceEscapeCharsRegex=Gn.urlSchemeRegex=Gn.ctrlCharactersRegex=Gn.htmlCtrlEntityRegex=Gn.htmlEntitiesRegex=Gn.invalidProtocolRegex=void 0,Gn.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,Gn.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,Gn.htmlCtrlEntityRegex=/&(newline|tab);/gi,Gn.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Gn.urlSchemeRegex=/^.+(:|&colon;)/gim,Gn.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,Gn.relativeFirstCharacters=[".","/"],Gn.BLANK_URL="about:blank"),Gn}var a3;function U2e(){if(a3)return gf;a3=1,Object.defineProperty(gf,"__esModule",{value:!0}),gf.sanitizeUrl=void 0;var e=j2e();function t(o){return e.relativeFirstCharacters.indexOf(o[0])>-1}function n(o){var s=o.replace(e.ctrlCharactersRegex,"");return s.replace(e.htmlEntitiesRegex,function(l,c){return String.fromCharCode(c)})}function r(o){return URL.canParse(o)}function a(o){try{return decodeURIComponent(o)}catch{return o}}function i(o){if(!o)return e.BLANK_URL;var s,l=a(o.trim());do l=n(l).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),l=a(l),s=l.match(e.ctrlCharactersRegex)||l.match(e.htmlEntitiesRegex)||l.match(e.htmlCtrlEntityRegex)||l.match(e.whitespaceEscapeCharsRegex);while(s&&s.length>0);var c=l;if(!c)return e.BLANK_URL;if(t(c))return c;var d=c.trimStart(),p=d.match(e.urlSchemeRegex);if(!p)return c;var h=p[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(h))return e.BLANK_URL;var g=d.replace(/\\/g,"/");if(h==="mailto:"||h.includes("://"))return g;if(h==="http:"||h==="https:"){if(!r(g))return e.BLANK_URL;var b=new URL(g);return b.protocol=b.protocol.toLowerCase(),b.hostname=b.hostname.toLowerCase(),b.toString()}return g}return gf.sanitizeUrl=i,gf}var H2e=U2e(),G2e={value:()=>{}};function tZ(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Em(n)}function Em(e){this._=e}function q2e(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",a=n.indexOf(".");if(a>=0&&(r=n.slice(a+1),n=n.slice(0,a)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Em.prototype=tZ.prototype={constructor:Em,on:function(e,t){var n=this._,r=q2e(e+"",n),a,i=-1,o=r.length;if(arguments.length<2){for(;++i<o;)if((a=(e=r[i]).type)&&(a=W2e(n[a],e.name)))return a;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<o;)if(a=(e=r[i]).type)n[a]=i3(n[a],e.name,t);else if(t==null)for(a in n)n[a]=i3(n[a],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Em(e)},call:function(e,t){if((a=arguments.length-2)>0)for(var n=new Array(a),r=0,a,i;r<a;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,a=i.length;r<a;++r)i[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],a=0,i=r.length;a<i;++a)r[a].value.apply(t,n)}};function W2e(e,t){for(var n=0,r=e.length,a;n<r;++n)if((a=e[n]).name===t)return a.value}function i3(e,t,n){for(var r=0,a=e.length;r<a;++r)if(e[r].name===t){e[r]=G2e,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var BR="http://www.w3.org/1999/xhtml";const o3={svg:"http://www.w3.org/2000/svg",xhtml:BR,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qy(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),o3.hasOwnProperty(t)?{space:o3[t],local:e}:e}function V2e(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===BR&&t.documentElement.namespaceURI===BR?t.createElement(e):t.createElementNS(n,e)}}function Y2e(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function nZ(e){var t=qy(e);return(t.local?Y2e:V2e)(t)}function K2e(){}function yL(e){return e==null?K2e:function(){return this.querySelector(e)}}function X2e(e){typeof e!="function"&&(e=yL(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i=t[a],o=i.length,s=r[a]=new Array(o),l,c,d=0;d<o;++d)(l=i[d])&&(c=e.call(l,l.__data__,d,i))&&("__data__"in l&&(c.__data__=l.__data__),s[d]=c);return new ma(r,this._parents)}function Z2e(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Q2e(){return[]}function rZ(e){return e==null?Q2e:function(){return this.querySelectorAll(e)}}function J2e(e){return function(){return Z2e(e.apply(this,arguments))}}function eNe(e){typeof e=="function"?e=J2e(e):e=rZ(e);for(var t=this._groups,n=t.length,r=[],a=[],i=0;i<n;++i)for(var o=t[i],s=o.length,l,c=0;c<s;++c)(l=o[c])&&(r.push(e.call(l,l.__data__,c,o)),a.push(l));return new ma(r,a)}function aZ(e){return function(){return this.matches(e)}}function iZ(e){return function(t){return t.matches(e)}}var tNe=Array.prototype.find;function nNe(e){return function(){return tNe.call(this.children,e)}}function rNe(){return this.firstElementChild}function aNe(e){return this.select(e==null?rNe:nNe(typeof e=="function"?e:iZ(e)))}var iNe=Array.prototype.filter;function oNe(){return Array.from(this.children)}function sNe(e){return function(){return iNe.call(this.children,e)}}function lNe(e){return this.selectAll(e==null?oNe:sNe(typeof e=="function"?e:iZ(e)))}function cNe(e){typeof e!="function"&&(e=aZ(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i=t[a],o=i.length,s=r[a]=[],l,c=0;c<o;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&s.push(l);return new ma(r,this._parents)}function oZ(e){return new Array(e.length)}function uNe(){return new ma(this._enter||this._groups.map(oZ),this._parents)}function bb(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}bb.prototype={constructor:bb,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function dNe(e){return function(){return e}}function fNe(e,t,n,r,a,i){for(var o=0,s,l=t.length,c=i.length;o<c;++o)(s=t[o])?(s.__data__=i[o],r[o]=s):n[o]=new bb(e,i[o]);for(;o<l;++o)(s=t[o])&&(a[o]=s)}function pNe(e,t,n,r,a,i,o){var s,l,c=new Map,d=t.length,p=i.length,h=new Array(d),g;for(s=0;s<d;++s)(l=t[s])&&(h[s]=g=o.call(l,l.__data__,s,t)+"",c.has(g)?a[s]=l:c.set(g,l));for(s=0;s<p;++s)g=o.call(e,i[s],s,i)+"",(l=c.get(g))?(r[s]=l,l.__data__=i[s],c.delete(g)):n[s]=new bb(e,i[s]);for(s=0;s<d;++s)(l=t[s])&&c.get(h[s])===l&&(a[s]=l)}function hNe(e){return e.__data__}function gNe(e,t){if(!arguments.length)return Array.from(this,hNe);var n=t?pNe:fNe,r=this._parents,a=this._groups;typeof e!="function"&&(e=dNe(e));for(var i=a.length,o=new Array(i),s=new Array(i),l=new Array(i),c=0;c<i;++c){var d=r[c],p=a[c],h=p.length,g=mNe(e.call(d,d&&d.__data__,c,r)),b=g.length,y=s[c]=new Array(b),x=o[c]=new Array(b),w=l[c]=new Array(h);n(d,p,y,x,w,g,t);for(var S=0,_=0,N,R;S<b;++S)if(N=y[S]){for(S>=_&&(_=S+1);!(R=x[_])&&++_<b;);N._next=R||null}}return o=new ma(o,r),o._enter=s,o._exit=l,o}function mNe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bNe(){return new ma(this._exit||this._groups.map(oZ),this._parents)}function yNe(e,t,n){var r=this.enter(),a=this,i=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(a=t(a),a&&(a=a.selection())),n==null?i.remove():n(i),r&&a?r.merge(a).order():a}function vNe(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,a=n.length,i=r.length,o=Math.min(a,i),s=new Array(a),l=0;l<o;++l)for(var c=n[l],d=r[l],p=c.length,h=s[l]=new Array(p),g,b=0;b<p;++b)(g=c[b]||d[b])&&(h[b]=g);for(;l<a;++l)s[l]=n[l];return new ma(s,this._parents)}function xNe(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],a=r.length-1,i=r[a],o;--a>=0;)(o=r[a])&&(i&&o.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(o,i),i=o);return this}function SNe(e){e||(e=wNe);function t(p,h){return p&&h?e(p.__data__,h.__data__):!p-!h}for(var n=this._groups,r=n.length,a=new Array(r),i=0;i<r;++i){for(var o=n[i],s=o.length,l=a[i]=new Array(s),c,d=0;d<s;++d)(c=o[d])&&(l[d]=c);l.sort(t)}return new ma(a,this._parents).order()}function wNe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ENe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function kNe(){return Array.from(this)}function _Ne(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,i=r.length;a<i;++a){var o=r[a];if(o)return o}return null}function CNe(){let e=0;for(const t of this)++e;return e}function TNe(){return!this.node()}function ANe(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var a=t[n],i=0,o=a.length,s;i<o;++i)(s=a[i])&&e.call(s,s.__data__,i,a);return this}function RNe(e){return function(){this.removeAttribute(e)}}function NNe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function LNe(e,t){return function(){this.setAttribute(e,t)}}function ONe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function DNe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function INe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function MNe(e,t){var n=qy(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?NNe:RNe:typeof t=="function"?n.local?INe:DNe:n.local?ONe:LNe)(n,t))}function sZ(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function FNe(e){return function(){this.style.removeProperty(e)}}function PNe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function BNe(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function zNe(e,t,n){return arguments.length>1?this.each((t==null?FNe:typeof t=="function"?BNe:PNe)(e,t,n??"")):_u(this.node(),e)}function _u(e,t){return e.style.getPropertyValue(t)||sZ(e).getComputedStyle(e,null).getPropertyValue(t)}function $Ne(e){return function(){delete this[e]}}function jNe(e,t){return function(){this[e]=t}}function UNe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function HNe(e,t){return arguments.length>1?this.each((t==null?$Ne:typeof t=="function"?UNe:jNe)(e,t)):this.node()[e]}function lZ(e){return e.trim().split(/^|\s+/)}function vL(e){return e.classList||new cZ(e)}function cZ(e){this._node=e,this._names=lZ(e.getAttribute("class")||"")}cZ.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function uZ(e,t){for(var n=vL(e),r=-1,a=t.length;++r<a;)n.add(t[r])}function dZ(e,t){for(var n=vL(e),r=-1,a=t.length;++r<a;)n.remove(t[r])}function GNe(e){return function(){uZ(this,e)}}function qNe(e){return function(){dZ(this,e)}}function WNe(e,t){return function(){(t.apply(this,arguments)?uZ:dZ)(this,e)}}function VNe(e,t){var n=lZ(e+"");if(arguments.length<2){for(var r=vL(this.node()),a=-1,i=n.length;++a<i;)if(!r.contains(n[a]))return!1;return!0}return this.each((typeof t=="function"?WNe:t?GNe:qNe)(n,t))}function YNe(){this.textContent=""}function KNe(e){return function(){this.textContent=e}}function XNe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function ZNe(e){return arguments.length?this.each(e==null?YNe:(typeof e=="function"?XNe:KNe)(e)):this.node().textContent}function QNe(){this.innerHTML=""}function JNe(e){return function(){this.innerHTML=e}}function eLe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function tLe(e){return arguments.length?this.each(e==null?QNe:(typeof e=="function"?eLe:JNe)(e)):this.node().innerHTML}function nLe(){this.nextSibling&&this.parentNode.appendChild(this)}function rLe(){return this.each(nLe)}function aLe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function iLe(){return this.each(aLe)}function oLe(e){var t=typeof e=="function"?e:nZ(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function sLe(){return null}function lLe(e,t){var n=typeof e=="function"?e:nZ(e),r=t==null?sLe:typeof t=="function"?t:yL(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function cLe(){var e=this.parentNode;e&&e.removeChild(this)}function uLe(){return this.each(cLe)}function dLe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function fLe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function pLe(e){return this.select(e?fLe:dLe)}function hLe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function gLe(e){return function(t){e.call(this,t,this.__data__)}}function mLe(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function bLe(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,a=t.length,i;n<a;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++r]=i;++r?t.length=r:delete this.__on}}}function yLe(e,t,n){return function(){var r=this.__on,a,i=gLe(t);if(r){for(var o=0,s=r.length;o<s;++o)if((a=r[o]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=i,a.options=n),a.value=t;return}}this.addEventListener(e.type,i,n),a={type:e.type,name:e.name,value:t,listener:i,options:n},r?r.push(a):this.__on=[a]}}function vLe(e,t,n){var r=mLe(e+""),a,i=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,c=s.length,d;l<c;++l)for(a=0,d=s[l];a<i;++a)if((o=r[a]).type===d.type&&o.name===d.name)return d.value}return}for(s=t?yLe:bLe,a=0;a<i;++a)this.each(s(r[a],t,n));return this}function fZ(e,t,n){var r=sZ(e),a=r.CustomEvent;typeof a=="function"?a=new a(t,n):(a=r.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}function xLe(e,t){return function(){return fZ(this,e,t)}}function SLe(e,t){return function(){return fZ(this,e,t.apply(this,arguments))}}function wLe(e,t){return this.each((typeof t=="function"?SLe:xLe)(e,t))}function*ELe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,i=r.length,o;a<i;++a)(o=r[a])&&(yield o)}var pZ=[null];function ma(e,t){this._groups=e,this._parents=t}function qp(){return new ma([[document.documentElement]],pZ)}function kLe(){return this}ma.prototype=qp.prototype={constructor:ma,select:X2e,selectAll:eNe,selectChild:aNe,selectChildren:lNe,filter:cNe,data:gNe,enter:uNe,exit:bNe,join:yNe,merge:vNe,selection:kLe,order:xNe,sort:SNe,call:ENe,nodes:kNe,node:_Ne,size:CNe,empty:TNe,each:ANe,attr:MNe,style:zNe,property:HNe,classed:VNe,text:ZNe,html:tLe,raise:rLe,lower:iLe,append:oLe,insert:lLe,remove:uLe,clone:pLe,datum:hLe,on:vLe,dispatch:wLe,[Symbol.iterator]:ELe};function Yt(e){return typeof e=="string"?new ma([[document.querySelector(e)]],[document.documentElement]):new ma([[e]],pZ)}function xL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function hZ(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Wp(){}var dp=.7,yb=1/dp,eu="\\s*([+-]?\\d+)\\s*",fp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Oi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_Le=/^#([0-9a-f]{3,8})$/,CLe=new RegExp(`^rgb\\(${eu},${eu},${eu}\\)$`),TLe=new RegExp(`^rgb\\(${Oi},${Oi},${Oi}\\)$`),ALe=new RegExp(`^rgba\\(${eu},${eu},${eu},${fp}\\)$`),RLe=new RegExp(`^rgba\\(${Oi},${Oi},${Oi},${fp}\\)$`),NLe=new RegExp(`^hsl\\(${fp},${Oi},${Oi}\\)$`),LLe=new RegExp(`^hsla\\(${fp},${Oi},${Oi},${fp}\\)$`),s3={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};xL(Wp,pp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:l3,formatHex:l3,formatHex8:OLe,formatHsl:DLe,formatRgb:c3,toString:c3});function l3(){return this.rgb().formatHex()}function OLe(){return this.rgb().formatHex8()}function DLe(){return gZ(this).formatHsl()}function c3(){return this.rgb().formatRgb()}function pp(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_Le.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?u3(t):n===3?new Vr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?jg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?jg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=CLe.exec(e))?new Vr(t[1],t[2],t[3],1):(t=TLe.exec(e))?new Vr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ALe.exec(e))?jg(t[1],t[2],t[3],t[4]):(t=RLe.exec(e))?jg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=NLe.exec(e))?p3(t[1],t[2]/100,t[3]/100,1):(t=LLe.exec(e))?p3(t[1],t[2]/100,t[3]/100,t[4]):s3.hasOwnProperty(e)?u3(s3[e]):e==="transparent"?new Vr(NaN,NaN,NaN,0):null}function u3(e){return new Vr(e>>16&255,e>>8&255,e&255,1)}function jg(e,t,n,r){return r<=0&&(e=t=n=NaN),new Vr(e,t,n,r)}function ILe(e){return e instanceof Wp||(e=pp(e)),e?(e=e.rgb(),new Vr(e.r,e.g,e.b,e.opacity)):new Vr}function zR(e,t,n,r){return arguments.length===1?ILe(e):new Vr(e,t,n,r??1)}function Vr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}xL(Vr,zR,hZ(Wp,{brighter(e){return e=e==null?yb:Math.pow(yb,e),new Vr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?dp:Math.pow(dp,e),new Vr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vr(Sl(this.r),Sl(this.g),Sl(this.b),vb(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:d3,formatHex:d3,formatHex8:MLe,formatRgb:f3,toString:f3}));function d3(){return`#${bl(this.r)}${bl(this.g)}${bl(this.b)}`}function MLe(){return`#${bl(this.r)}${bl(this.g)}${bl(this.b)}${bl((isNaN(this.opacity)?1:this.opacity)*255)}`}function f3(){const e=vb(this.opacity);return`${e===1?"rgb(":"rgba("}${Sl(this.r)}, ${Sl(this.g)}, ${Sl(this.b)}${e===1?")":`, ${e})`}`}function vb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Sl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function bl(e){return e=Sl(e),(e<16?"0":"")+e.toString(16)}function p3(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ii(e,t,n,r)}function gZ(e){if(e instanceof ii)return new ii(e.h,e.s,e.l,e.opacity);if(e instanceof Wp||(e=pp(e)),!e)return new ii;if(e instanceof ii)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?i+a:2-i-a,o*=60):s=l>0&&l<1?0:o,new ii(o,s,l,e.opacity)}function FLe(e,t,n,r){return arguments.length===1?gZ(e):new ii(e,t,n,r??1)}function ii(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}xL(ii,FLe,hZ(Wp,{brighter(e){return e=e==null?yb:Math.pow(yb,e),new ii(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?dp:Math.pow(dp,e),new ii(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Vr(d0(e>=240?e-240:e+120,a,r),d0(e,a,r),d0(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new ii(h3(this.h),Ug(this.s),Ug(this.l),vb(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=vb(this.opacity);return`${e===1?"hsl(":"hsla("}${h3(this.h)}, ${Ug(this.s)*100}%, ${Ug(this.l)*100}%${e===1?")":`, ${e})`}`}}));function h3(e){return e=(e||0)%360,e<0?e+360:e}function Ug(e){return Math.max(0,Math.min(1,e||0))}function d0(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const SL=e=>()=>e;function mZ(e,t){return function(n){return e+n*t}}function PLe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function e7e(e,t){var n=t-e;return n?mZ(e,n>180||n<-180?n-360*Math.round(n/360):n):SL(isNaN(e)?t:e)}function BLe(e){return(e=+e)==1?bZ:function(t,n){return n-t?PLe(t,n,e):SL(isNaN(t)?n:t)}}function bZ(e,t){var n=t-e;return n?mZ(e,n):SL(isNaN(e)?t:e)}const g3=function e(t){var n=BLe(t);function r(a,i){var o=n((a=zR(a)).r,(i=zR(i)).r),s=n(a.g,i.g),l=n(a.b,i.b),c=bZ(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=s(d),a.b=l(d),a.opacity=c(d),a+""}}return r.gamma=e,r}(1);function ds(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var $R=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,f0=new RegExp($R.source,"g");function zLe(e){return function(){return e}}function $Le(e){return function(t){return e(t)+""}}function jLe(e,t){var n=$R.lastIndex=f0.lastIndex=0,r,a,i,o=-1,s=[],l=[];for(e=e+"",t=t+"";(r=$R.exec(e))&&(a=f0.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:ds(r,a)})),n=f0.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?$Le(l[0].x):zLe(t):(t=l.length,function(c){for(var d=0,p;d<t;++d)s[(p=l[d]).i]=p.x(c);return s.join("")})}var m3=180/Math.PI,jR={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function yZ(e,t,n,r,a,i){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*m3,skewX:Math.atan(l)*m3,scaleX:o,scaleY:s}}var Hg;function ULe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?jR:yZ(t.a,t.b,t.c,t.d,t.e,t.f)}function HLe(e){return e==null||(Hg||(Hg=document.createElementNS("http://www.w3.org/2000/svg","g")),Hg.setAttribute("transform",e),!(e=Hg.transform.baseVal.consolidate()))?jR:(e=e.matrix,yZ(e.a,e.b,e.c,e.d,e.e,e.f))}function vZ(e,t,n,r){function a(c){return c.length?c.pop()+" ":""}function i(c,d,p,h,g,b){if(c!==p||d!==h){var y=g.push("translate(",null,t,null,n);b.push({i:y-4,x:ds(c,p)},{i:y-2,x:ds(d,h)})}else(p||h)&&g.push("translate("+p+t+h+n)}function o(c,d,p,h){c!==d?(c-d>180?d+=360:d-c>180&&(c+=360),h.push({i:p.push(a(p)+"rotate(",null,r)-2,x:ds(c,d)})):d&&p.push(a(p)+"rotate("+d+r)}function s(c,d,p,h){c!==d?h.push({i:p.push(a(p)+"skewX(",null,r)-2,x:ds(c,d)}):d&&p.push(a(p)+"skewX("+d+r)}function l(c,d,p,h,g,b){if(c!==p||d!==h){var y=g.push(a(g)+"scale(",null,",",null,")");b.push({i:y-4,x:ds(c,p)},{i:y-2,x:ds(d,h)})}else(p!==1||h!==1)&&g.push(a(g)+"scale("+p+","+h+")")}return function(c,d){var p=[],h=[];return c=e(c),d=e(d),i(c.translateX,c.translateY,d.translateX,d.translateY,p,h),o(c.rotate,d.rotate,p,h),s(c.skewX,d.skewX,p,h),l(c.scaleX,c.scaleY,d.scaleX,d.scaleY,p,h),c=d=null,function(g){for(var b=-1,y=h.length,x;++b<y;)p[(x=h[b]).i]=x.x(g);return p.join("")}}}var GLe=vZ(ULe,"px, ","px)","deg)"),qLe=vZ(HLe,", ",")",")"),Cu=0,Af=0,mf=0,xZ=1e3,xb,Rf,Sb=0,Dl=0,Wy=0,hp=typeof performance=="object"&&performance.now?performance:Date,SZ=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function wL(){return Dl||(SZ(WLe),Dl=hp.now()+Wy)}function WLe(){Dl=0}function wb(){this._call=this._time=this._next=null}wb.prototype=wZ.prototype={constructor:wb,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?wL():+n)+(t==null?0:+t),!this._next&&Rf!==this&&(Rf?Rf._next=this:xb=this,Rf=this),this._call=e,this._time=n,UR()},stop:function(){this._call&&(this._call=null,this._time=1/0,UR())}};function wZ(e,t,n){var r=new wb;return r.restart(e,t,n),r}function VLe(){wL(),++Cu;for(var e=xb,t;e;)(t=Dl-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Cu}function b3(){Dl=(Sb=hp.now())+Wy,Cu=Af=0;try{VLe()}finally{Cu=0,KLe(),Dl=0}}function YLe(){var e=hp.now(),t=e-Sb;t>xZ&&(Wy-=t,Sb=e)}function KLe(){for(var e,t=xb,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:xb=n);Rf=e,UR(r)}function UR(e){if(!Cu){Af&&(Af=clearTimeout(Af));var t=e-Dl;t>24?(e<1/0&&(Af=setTimeout(b3,e-hp.now()-Wy)),mf&&(mf=clearInterval(mf))):(mf||(Sb=hp.now(),mf=setInterval(YLe,xZ)),Cu=1,SZ(b3))}}function y3(e,t,n){var r=new wb;return t=t==null?0:+t,r.restart(a=>{r.stop(),e(a+t)},t,n),r}var XLe=tZ("start","end","cancel","interrupt"),ZLe=[],EZ=0,v3=1,HR=2,km=3,x3=4,GR=5,_m=6;function Vy(e,t,n,r,a,i){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;QLe(e,n,{name:t,index:r,group:a,on:XLe,tween:ZLe,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:EZ})}function EL(e,t){var n=gi(e,t);if(n.state>EZ)throw new Error("too late; already scheduled");return n}function Ui(e,t){var n=gi(e,t);if(n.state>km)throw new Error("too late; already running");return n}function gi(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function QLe(e,t,n){var r=e.__transition,a;r[t]=n,n.timer=wZ(i,0,n.time);function i(c){n.state=v3,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var d,p,h,g;if(n.state!==v3)return l();for(d in r)if(g=r[d],g.name===n.name){if(g.state===km)return y3(o);g.state===x3?(g.state=_m,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete r[d]):+d<t&&(g.state=_m,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete r[d])}if(y3(function(){n.state===km&&(n.state=x3,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=HR,n.on.call("start",e,e.__data__,n.index,n.group),n.state===HR){for(n.state=km,a=new Array(h=n.tween.length),d=0,p=-1;d<h;++d)(g=n.tween[d].value.call(e,e.__data__,n.index,n.group))&&(a[++p]=g);a.length=p+1}}function s(c){for(var d=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=GR,1),p=-1,h=a.length;++p<h;)a[p].call(e,d);n.state===GR&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=_m,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function JLe(e,t){var n=e.__transition,r,a,i=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){i=!1;continue}a=r.state>HR&&r.state<GR,r.state=_m,r.timer.stop(),r.on.call(a?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}i&&delete e.__transition}}function eOe(e){return this.each(function(){JLe(this,e)})}function tOe(e,t){var n,r;return function(){var a=Ui(this,e),i=a.tween;if(i!==n){r=n=i;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}a.tween=r}}function nOe(e,t,n){var r,a;if(typeof n!="function")throw new Error;return function(){var i=Ui(this,e),o=i.tween;if(o!==r){a=(r=o).slice();for(var s={name:t,value:n},l=0,c=a.length;l<c;++l)if(a[l].name===t){a[l]=s;break}l===c&&a.push(s)}i.tween=a}}function rOe(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=gi(this.node(),n).tween,a=0,i=r.length,o;a<i;++a)if((o=r[a]).name===e)return o.value;return null}return this.each((t==null?tOe:nOe)(n,e,t))}function kL(e,t,n){var r=e._id;return e.each(function(){var a=Ui(this,r);(a.value||(a.value={}))[t]=n.apply(this,arguments)}),function(a){return gi(a,r).value[t]}}function kZ(e,t){var n;return(typeof t=="number"?ds:t instanceof pp?g3:(n=pp(t))?(t=n,g3):jLe)(e,t)}function aOe(e){return function(){this.removeAttribute(e)}}function iOe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function oOe(e,t,n){var r,a=n+"",i;return function(){var o=this.getAttribute(e);return o===a?null:o===r?i:i=t(r=o,n)}}function sOe(e,t,n){var r,a=n+"",i;return function(){var o=this.getAttributeNS(e.space,e.local);return o===a?null:o===r?i:i=t(r=o,n)}}function lOe(e,t,n){var r,a,i;return function(){var o,s=n(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===r&&l===a?i:(a=l,i=t(r=o,s)))}}function cOe(e,t,n){var r,a,i;return function(){var o,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===r&&l===a?i:(a=l,i=t(r=o,s)))}}function uOe(e,t){var n=qy(e),r=n==="transform"?qLe:kZ;return this.attrTween(e,typeof t=="function"?(n.local?cOe:lOe)(n,r,kL(this,"attr."+e,t)):t==null?(n.local?iOe:aOe)(n):(n.local?sOe:oOe)(n,r,t))}function dOe(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function fOe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function pOe(e,t){var n,r;function a(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&fOe(e,i)),n}return a._value=t,a}function hOe(e,t){var n,r;function a(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&dOe(e,i)),n}return a._value=t,a}function gOe(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=qy(e);return this.tween(n,(r.local?pOe:hOe)(r,t))}function mOe(e,t){return function(){EL(this,e).delay=+t.apply(this,arguments)}}function bOe(e,t){return t=+t,function(){EL(this,e).delay=t}}function yOe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?mOe:bOe)(t,e)):gi(this.node(),t).delay}function vOe(e,t){return function(){Ui(this,e).duration=+t.apply(this,arguments)}}function xOe(e,t){return t=+t,function(){Ui(this,e).duration=t}}function SOe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?vOe:xOe)(t,e)):gi(this.node(),t).duration}function wOe(e,t){if(typeof t!="function")throw new Error;return function(){Ui(this,e).ease=t}}function EOe(e){var t=this._id;return arguments.length?this.each(wOe(t,e)):gi(this.node(),t).ease}function kOe(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Ui(this,e).ease=n}}function _Oe(e){if(typeof e!="function")throw new Error;return this.each(kOe(this._id,e))}function COe(e){typeof e!="function"&&(e=aZ(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i=t[a],o=i.length,s=r[a]=[],l,c=0;c<o;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&s.push(l);return new Co(r,this._parents,this._name,this._id)}function TOe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,a=n.length,i=Math.min(r,a),o=new Array(r),s=0;s<i;++s)for(var l=t[s],c=n[s],d=l.length,p=o[s]=new Array(d),h,g=0;g<d;++g)(h=l[g]||c[g])&&(p[g]=h);for(;s<r;++s)o[s]=t[s];return new Co(o,this._parents,this._name,this._id)}function AOe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function ROe(e,t,n){var r,a,i=AOe(t)?EL:Ui;return function(){var o=i(this,e),s=o.on;s!==r&&(a=(r=s).copy()).on(t,n),o.on=a}}function NOe(e,t){var n=this._id;return arguments.length<2?gi(this.node(),n).on.on(e):this.each(ROe(n,e,t))}function LOe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function OOe(){return this.on("end.remove",LOe(this._id))}function DOe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=yL(e));for(var r=this._groups,a=r.length,i=new Array(a),o=0;o<a;++o)for(var s=r[o],l=s.length,c=i[o]=new Array(l),d,p,h=0;h<l;++h)(d=s[h])&&(p=e.call(d,d.__data__,h,s))&&("__data__"in d&&(p.__data__=d.__data__),c[h]=p,Vy(c[h],t,n,h,c,gi(d,n)));return new Co(i,this._parents,t,n)}function IOe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=rZ(e));for(var r=this._groups,a=r.length,i=[],o=[],s=0;s<a;++s)for(var l=r[s],c=l.length,d,p=0;p<c;++p)if(d=l[p]){for(var h=e.call(d,d.__data__,p,l),g,b=gi(d,n),y=0,x=h.length;y<x;++y)(g=h[y])&&Vy(g,t,n,y,h,b);i.push(h),o.push(d)}return new Co(i,o,t,n)}var MOe=qp.prototype.constructor;function FOe(){return new MOe(this._groups,this._parents)}function POe(e,t){var n,r,a;return function(){var i=_u(this,e),o=(this.style.removeProperty(e),_u(this,e));return i===o?null:i===n&&o===r?a:a=t(n=i,r=o)}}function _Z(e){return function(){this.style.removeProperty(e)}}function BOe(e,t,n){var r,a=n+"",i;return function(){var o=_u(this,e);return o===a?null:o===r?i:i=t(r=o,n)}}function zOe(e,t,n){var r,a,i;return function(){var o=_u(this,e),s=n(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),_u(this,e))),o===l?null:o===r&&l===a?i:(a=l,i=t(r=o,s))}}function $Oe(e,t){var n,r,a,i="style."+t,o="end."+i,s;return function(){var l=Ui(this,e),c=l.on,d=l.value[i]==null?s||(s=_Z(t)):void 0;(c!==n||a!==d)&&(r=(n=c).copy()).on(o,a=d),l.on=r}}function jOe(e,t,n){var r=(e+="")=="transform"?GLe:kZ;return t==null?this.styleTween(e,POe(e,r)).on("end.style."+e,_Z(e)):typeof t=="function"?this.styleTween(e,zOe(e,r,kL(this,"style."+e,t))).each($Oe(this._id,e)):this.styleTween(e,BOe(e,r,t),n).on("end.style."+e,null)}function UOe(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function HOe(e,t,n){var r,a;function i(){var o=t.apply(this,arguments);return o!==a&&(r=(a=o)&&UOe(e,o,n)),r}return i._value=t,i}function GOe(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,HOe(e,t,n??""))}function qOe(e){return function(){this.textContent=e}}function WOe(e){return function(){var t=e(this);this.textContent=t??""}}function VOe(e){return this.tween("text",typeof e=="function"?WOe(kL(this,"text",e)):qOe(e==null?"":e+""))}function YOe(e){return function(t){this.textContent=e.call(this,t)}}function KOe(e){var t,n;function r(){var a=e.apply(this,arguments);return a!==n&&(t=(n=a)&&YOe(a)),t}return r._value=e,r}function XOe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,KOe(e))}function ZOe(){for(var e=this._name,t=this._id,n=CZ(),r=this._groups,a=r.length,i=0;i<a;++i)for(var o=r[i],s=o.length,l,c=0;c<s;++c)if(l=o[c]){var d=gi(l,t);Vy(l,e,n,c,o,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Co(r,this._parents,e,n)}function QOe(){var e,t,n=this,r=n._id,a=n.size();return new Promise(function(i,o){var s={value:o},l={value:function(){--a===0&&i()}};n.each(function(){var c=Ui(this,r),d=c.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),c.on=t}),a===0&&i()})}var JOe=0;function Co(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function CZ(){return++JOe}var fo=qp.prototype;Co.prototype={constructor:Co,select:DOe,selectAll:IOe,selectChild:fo.selectChild,selectChildren:fo.selectChildren,filter:COe,merge:TOe,selection:FOe,transition:ZOe,call:fo.call,nodes:fo.nodes,node:fo.node,size:fo.size,empty:fo.empty,each:fo.each,on:NOe,attr:uOe,attrTween:gOe,style:jOe,styleTween:GOe,text:VOe,textTween:XOe,remove:OOe,tween:rOe,delay:yOe,duration:SOe,ease:EOe,easeVarying:_Oe,end:QOe,[Symbol.iterator]:fo[Symbol.iterator]};function eDe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var tDe={time:null,delay:0,duration:250,ease:eDe};function nDe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function rDe(e){var t,n;e instanceof Co?(t=e._id,e=e._name):(t=CZ(),(n=tDe).time=wL(),e=e==null?null:e+"");for(var r=this._groups,a=r.length,i=0;i<a;++i)for(var o=r[i],s=o.length,l,c=0;c<s;++c)(l=o[c])&&Vy(l,e,t,c,o,n||nDe(l,t));return new Co(r,this._parents,e,t)}qp.prototype.interrupt=eOe;qp.prototype.transition=rDe;const qR=Math.PI,WR=2*qR,ol=1e-6,aDe=WR-ol;function TZ(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function iDe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return TZ;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class oDe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?TZ:iDe(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,l=r-t,c=a-n,d=o-t,p=s-n,h=d*d+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>ol)if(!(Math.abs(p*l-c*d)>ol)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let g=r-o,b=a-s,y=l*l+c*c,x=g*g+b*b,w=Math.sqrt(y),S=Math.sqrt(h),_=i*Math.tan((qR-Math.acos((y+h-x)/(2*w*S)))/2),N=_/S,R=_/w;Math.abs(N-1)>ol&&this._append`L${t+N*d},${n+N*p}`,this._append`A${i},${i},0,0,${+(p*g>d*b)},${this._x1=t+R*l},${this._y1=n+R*c}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),l=r*Math.sin(a),c=t+s,d=n+l,p=1^o,h=o?a-i:i-a;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>ol||Math.abs(this._y1-d)>ol)&&this._append`L${c},${d}`,r&&(h<0&&(h=h%WR+WR),h>aDe?this._append`A${r},${r},0,1,${p},${t-s},${n-l}A${r},${r},0,1,${p},${this._x1=c},${this._y1=d}`:h>ol&&this._append`A${r},${r},0,${+(h>=qR)},${p},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function Dc(e){return function(){return e}}const t7e=Math.abs,n7e=Math.atan2,r7e=Math.cos,a7e=Math.max,i7e=Math.min,o7e=Math.sin,s7e=Math.sqrt,S3=1e-12,_L=Math.PI,w3=_L/2,l7e=2*_L;function c7e(e){return e>1?0:e<-1?_L:Math.acos(e)}function u7e(e){return e>=1?w3:e<=-1?-w3:Math.asin(e)}function sDe(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new oDe(t)}function lDe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function AZ(e){this._context=e}AZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Eb(e){return new AZ(e)}function cDe(e){return e[0]}function uDe(e){return e[1]}function dDe(e,t){var n=Dc(!0),r=null,a=Eb,i=null,o=sDe(s);e=typeof e=="function"?e:e===void 0?cDe:Dc(e),t=typeof t=="function"?t:t===void 0?uDe:Dc(t);function s(l){var c,d=(l=lDe(l)).length,p,h=!1,g;for(r==null&&(i=a(g=o())),c=0;c<=d;++c)!(c<d&&n(p=l[c],c,l))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(p,c,l),+t(p,c,l));if(g)return i=null,g+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Dc(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Dc(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Dc(!!l),s):n},s.curve=function(l){return arguments.length?(a=l,r!=null&&(i=a(r)),s):a},s.context=function(l){return arguments.length?(l==null?r=i=null:i=a(r=l),s):r},s}class RZ{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function NZ(e){return new RZ(e,!0)}function LZ(e){return new RZ(e,!1)}function ks(){}function kb(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Yy(e){this._context=e}Yy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:kb(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:kb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cm(e){return new Yy(e)}function OZ(e){this._context=e}OZ.prototype={areaStart:ks,areaEnd:ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:kb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fDe(e){return new OZ(e)}function DZ(e){this._context=e}DZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:kb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pDe(e){return new DZ(e)}function IZ(e,t){this._basis=new Yy(e),this._beta=t}IZ.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],a=t[0],i=e[n]-r,o=t[n]-a,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*i),this._beta*t[s]+(1-this._beta)*(a+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const hDe=function e(t){function n(r){return t===1?new Yy(r):new IZ(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function _b(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function CL(e,t){this._context=e,this._k=(1-t)/6}CL.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_b(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:_b(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const MZ=function e(t){function n(r){return new CL(r,t)}return n.tension=function(r){return e(+r)},n}(0);function TL(e,t){this._context=e,this._k=(1-t)/6}TL.prototype={areaStart:ks,areaEnd:ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_b(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const gDe=function e(t){function n(r){return new TL(r,t)}return n.tension=function(r){return e(+r)},n}(0);function AL(e,t){this._context=e,this._k=(1-t)/6}AL.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_b(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const mDe=function e(t){function n(r){return new AL(r,t)}return n.tension=function(r){return e(+r)},n}(0);function RL(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>S3){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>S3){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*c+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function FZ(e,t){this._context=e,this._alpha=t}FZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:RL(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const PZ=function e(t){function n(r){return t?new FZ(r,t):new CL(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function BZ(e,t){this._context=e,this._alpha=t}BZ.prototype={areaStart:ks,areaEnd:ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:RL(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const bDe=function e(t){function n(r){return t?new BZ(r,t):new TL(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function zZ(e,t){this._context=e,this._alpha=t}zZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:RL(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const yDe=function e(t){function n(r){return t?new zZ(r,t):new AL(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function $Z(e){this._context=e}$Z.prototype={areaStart:ks,areaEnd:ks,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function vDe(e){return new $Z(e)}function E3(e){return e<0?-1:1}function k3(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(E3(i)+E3(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function _3(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function p0(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function Cb(e){this._context=e}Cb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:p0(this,this._t0,_3(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,p0(this,_3(this,n=k3(this,e,t)),n);break;default:p0(this,this._t0,n=k3(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function jZ(e){this._context=new UZ(e)}(jZ.prototype=Object.create(Cb.prototype)).point=function(e,t){Cb.prototype.point.call(this,t,e)};function UZ(e){this._context=e}UZ.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function HZ(e){return new Cb(e)}function GZ(e){return new jZ(e)}function qZ(e){this._context=e}qZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=C3(e),a=C3(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function C3(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function WZ(e){return new qZ(e)}function Ky(e,t){this._context=e,this._t=t}Ky.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function VZ(e){return new Ky(e,.5)}function YZ(e){return new Ky(e,0)}function KZ(e){return new Ky(e,1)}function Nf(e,t,n){this.k=e,this.x=t,this.y=n}Nf.prototype={constructor:Nf,scale:function(e){return e===1?this:new Nf(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Nf(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Nf.prototype;var XZ=typeof global=="object"&&global&&global.Object===Object&&global,xDe=typeof self=="object"&&self&&self.Object===Object&&self,Hi=XZ||xDe||Function("return this")(),Tb=Hi.Symbol,ZZ=Object.prototype,SDe=ZZ.hasOwnProperty,wDe=ZZ.toString,bf=Tb?Tb.toStringTag:void 0;function EDe(e){var t=SDe.call(e,bf),n=e[bf];try{e[bf]=void 0;var r=!0}catch{}var a=wDe.call(e);return r&&(t?e[bf]=n:delete e[bf]),a}var kDe=Object.prototype,_De=kDe.toString;function CDe(e){return _De.call(e)}var TDe="[object Null]",ADe="[object Undefined]",T3=Tb?Tb.toStringTag:void 0;function Zu(e){return e==null?e===void 0?ADe:TDe:T3&&T3 in Object(e)?EDe(e):CDe(e)}function jl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var RDe="[object AsyncFunction]",NDe="[object Function]",LDe="[object GeneratorFunction]",ODe="[object Proxy]";function NL(e){if(!jl(e))return!1;var t=Zu(e);return t==NDe||t==LDe||t==RDe||t==ODe}var h0=Hi["__core-js_shared__"],A3=function(){var e=/[^.]+$/.exec(h0&&h0.keys&&h0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function DDe(e){return!!A3&&A3 in e}var IDe=Function.prototype,MDe=IDe.toString;function Ul(e){if(e!=null){try{return MDe.call(e)}catch{}try{return e+""}catch{}}return""}var FDe=/[\\^$.*+?()[\]{}|]/g,PDe=/^\[object .+?Constructor\]$/,BDe=Function.prototype,zDe=Object.prototype,$De=BDe.toString,jDe=zDe.hasOwnProperty,UDe=RegExp("^"+$De.call(jDe).replace(FDe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function HDe(e){if(!jl(e)||DDe(e))return!1;var t=NL(e)?UDe:PDe;return t.test(Ul(e))}function GDe(e,t){return e==null?void 0:e[t]}function Hl(e,t){var n=GDe(e,t);return HDe(n)?n:void 0}var gp=Hl(Object,"create");function qDe(){this.__data__=gp?gp(null):{},this.size=0}function WDe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var VDe="__lodash_hash_undefined__",YDe=Object.prototype,KDe=YDe.hasOwnProperty;function XDe(e){var t=this.__data__;if(gp){var n=t[e];return n===VDe?void 0:n}return KDe.call(t,e)?t[e]:void 0}var ZDe=Object.prototype,QDe=ZDe.hasOwnProperty;function JDe(e){var t=this.__data__;return gp?t[e]!==void 0:QDe.call(t,e)}var eIe="__lodash_hash_undefined__";function tIe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gp&&t===void 0?eIe:t,this}function Il(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Il.prototype.clear=qDe;Il.prototype.delete=WDe;Il.prototype.get=XDe;Il.prototype.has=JDe;Il.prototype.set=tIe;function nIe(){this.__data__=[],this.size=0}function Xy(e,t){return e===t||e!==e&&t!==t}function Zy(e,t){for(var n=e.length;n--;)if(Xy(e[n][0],t))return n;return-1}var rIe=Array.prototype,aIe=rIe.splice;function iIe(e){var t=this.__data__,n=Zy(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():aIe.call(t,n,1),--this.size,!0}function oIe(e){var t=this.__data__,n=Zy(t,e);return n<0?void 0:t[n][1]}function sIe(e){return Zy(this.__data__,e)>-1}function lIe(e,t){var n=this.__data__,r=Zy(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Oo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Oo.prototype.clear=nIe;Oo.prototype.delete=iIe;Oo.prototype.get=oIe;Oo.prototype.has=sIe;Oo.prototype.set=lIe;var mp=Hl(Hi,"Map");function cIe(){this.size=0,this.__data__={hash:new Il,map:new(mp||Oo),string:new Il}}function uIe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qy(e,t){var n=e.__data__;return uIe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function dIe(e){var t=Qy(this,e).delete(e);return this.size-=t?1:0,t}function fIe(e){return Qy(this,e).get(e)}function pIe(e){return Qy(this,e).has(e)}function hIe(e,t){var n=Qy(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ls(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ls.prototype.clear=cIe;Ls.prototype.delete=dIe;Ls.prototype.get=fIe;Ls.prototype.has=pIe;Ls.prototype.set=hIe;var gIe="Expected a function";function Vp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(gIe);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Vp.Cache||Ls),n}Vp.Cache=Ls;function mIe(){this.__data__=new Oo,this.size=0}function bIe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function yIe(e){return this.__data__.get(e)}function vIe(e){return this.__data__.has(e)}var xIe=200;function SIe(e,t){var n=this.__data__;if(n instanceof Oo){var r=n.__data__;if(!mp||r.length<xIe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ls(r)}return n.set(e,t),this.size=n.size,this}function Qu(e){var t=this.__data__=new Oo(e);this.size=t.size}Qu.prototype.clear=mIe;Qu.prototype.delete=bIe;Qu.prototype.get=yIe;Qu.prototype.has=vIe;Qu.prototype.set=SIe;var Ab=function(){try{var e=Hl(Object,"defineProperty");return e({},"",{}),e}catch{}}();function LL(e,t,n){t=="__proto__"&&Ab?Ab(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function VR(e,t,n){(n!==void 0&&!Xy(e[t],n)||n===void 0&&!(t in e))&&LL(e,t,n)}function wIe(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var l=o[++a];if(n(i[l],l,i)===!1)break}return t}}var EIe=wIe(),QZ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,R3=QZ&&typeof module=="object"&&module&&!module.nodeType&&module,kIe=R3&&R3.exports===QZ,N3=kIe?Hi.Buffer:void 0,L3=N3?N3.allocUnsafe:void 0;function _Ie(e,t){if(t)return e.slice();var n=e.length,r=L3?L3(n):new e.constructor(n);return e.copy(r),r}var O3=Hi.Uint8Array;function CIe(e){var t=new e.constructor(e.byteLength);return new O3(t).set(new O3(e)),t}function TIe(e,t){var n=t?CIe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function AIe(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var D3=Object.create,RIe=function(){function e(){}return function(t){if(!jl(t))return{};if(D3)return D3(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function JZ(e,t){return function(n){return e(t(n))}}var eQ=JZ(Object.getPrototypeOf,Object),NIe=Object.prototype;function Jy(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||NIe;return e===n}function LIe(e){return typeof e.constructor=="function"&&!Jy(e)?RIe(eQ(e)):{}}function Yp(e){return e!=null&&typeof e=="object"}var OIe="[object Arguments]";function I3(e){return Yp(e)&&Zu(e)==OIe}var tQ=Object.prototype,DIe=tQ.hasOwnProperty,IIe=tQ.propertyIsEnumerable,Rb=I3(function(){return arguments}())?I3:function(e){return Yp(e)&&DIe.call(e,"callee")&&!IIe.call(e,"callee")},Nb=Array.isArray,MIe=9007199254740991;function nQ(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MIe}function ev(e){return e!=null&&nQ(e.length)&&!NL(e)}function FIe(e){return Yp(e)&&ev(e)}function PIe(){return!1}var rQ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,M3=rQ&&typeof module=="object"&&module&&!module.nodeType&&module,BIe=M3&&M3.exports===rQ,F3=BIe?Hi.Buffer:void 0,zIe=F3?F3.isBuffer:void 0,OL=zIe||PIe,$Ie="[object Object]",jIe=Function.prototype,UIe=Object.prototype,aQ=jIe.toString,HIe=UIe.hasOwnProperty,GIe=aQ.call(Object);function qIe(e){if(!Yp(e)||Zu(e)!=$Ie)return!1;var t=eQ(e);if(t===null)return!0;var n=HIe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&aQ.call(n)==GIe}var WIe="[object Arguments]",VIe="[object Array]",YIe="[object Boolean]",KIe="[object Date]",XIe="[object Error]",ZIe="[object Function]",QIe="[object Map]",JIe="[object Number]",eMe="[object Object]",tMe="[object RegExp]",nMe="[object Set]",rMe="[object String]",aMe="[object WeakMap]",iMe="[object ArrayBuffer]",oMe="[object DataView]",sMe="[object Float32Array]",lMe="[object Float64Array]",cMe="[object Int8Array]",uMe="[object Int16Array]",dMe="[object Int32Array]",fMe="[object Uint8Array]",pMe="[object Uint8ClampedArray]",hMe="[object Uint16Array]",gMe="[object Uint32Array]",mn={};mn[sMe]=mn[lMe]=mn[cMe]=mn[uMe]=mn[dMe]=mn[fMe]=mn[pMe]=mn[hMe]=mn[gMe]=!0;mn[WIe]=mn[VIe]=mn[iMe]=mn[YIe]=mn[oMe]=mn[KIe]=mn[XIe]=mn[ZIe]=mn[QIe]=mn[JIe]=mn[eMe]=mn[tMe]=mn[nMe]=mn[rMe]=mn[aMe]=!1;function mMe(e){return Yp(e)&&nQ(e.length)&&!!mn[Zu(e)]}function bMe(e){return function(t){return e(t)}}var iQ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jf=iQ&&typeof module=="object"&&module&&!module.nodeType&&module,yMe=jf&&jf.exports===iQ,g0=yMe&&XZ.process,P3=function(){try{var e=jf&&jf.require&&jf.require("util").types;return e||g0&&g0.binding&&g0.binding("util")}catch{}}(),B3=P3&&P3.isTypedArray,DL=B3?bMe(B3):mMe;function YR(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var vMe=Object.prototype,xMe=vMe.hasOwnProperty;function SMe(e,t,n){var r=e[t];(!(xMe.call(e,t)&&Xy(r,n))||n===void 0&&!(t in e))&&LL(e,t,n)}function wMe(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=void 0;l===void 0&&(l=e[s]),a?LL(n,s,l):SMe(n,s,l)}return n}function EMe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var kMe=9007199254740991,_Me=/^(?:0|[1-9]\d*)$/;function oQ(e,t){var n=typeof e;return t=t??kMe,!!t&&(n=="number"||n!="symbol"&&_Me.test(e))&&e>-1&&e%1==0&&e<t}var CMe=Object.prototype,TMe=CMe.hasOwnProperty;function AMe(e,t){var n=Nb(e),r=!n&&Rb(e),a=!n&&!r&&OL(e),i=!n&&!r&&!a&&DL(e),o=n||r||a||i,s=o?EMe(e.length,String):[],l=s.length;for(var c in e)(t||TMe.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||oQ(c,l)))&&s.push(c);return s}function RMe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var NMe=Object.prototype,LMe=NMe.hasOwnProperty;function OMe(e){if(!jl(e))return RMe(e);var t=Jy(e),n=[];for(var r in e)r=="constructor"&&(t||!LMe.call(e,r))||n.push(r);return n}function sQ(e){return ev(e)?AMe(e,!0):OMe(e)}function DMe(e){return wMe(e,sQ(e))}function IMe(e,t,n,r,a,i,o){var s=YR(e,n),l=YR(t,n),c=o.get(l);if(c){VR(e,n,c);return}var d=i?i(s,l,n+"",e,t,o):void 0,p=d===void 0;if(p){var h=Nb(l),g=!h&&OL(l),b=!h&&!g&&DL(l);d=l,h||g||b?Nb(s)?d=s:FIe(s)?d=AIe(s):g?(p=!1,d=_Ie(l,!0)):b?(p=!1,d=TIe(l,!0)):d=[]:qIe(l)||Rb(l)?(d=s,Rb(s)?d=DMe(s):(!jl(s)||NL(s))&&(d=LIe(l))):p=!1}p&&(o.set(l,d),a(d,l,r,i,o),o.delete(l)),VR(e,n,d)}function lQ(e,t,n,r,a){e!==t&&EIe(t,function(i,o){if(a||(a=new Qu),jl(i))IMe(e,t,o,n,lQ,r,a);else{var s=r?r(YR(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),VR(e,o,s)}},sQ)}function cQ(e){return e}function MMe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var z3=Math.max;function FMe(e,t,n){return t=z3(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=z3(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),MMe(e,this,s)}}function PMe(e){return function(){return e}}var BMe=Ab?function(e,t){return Ab(e,"toString",{configurable:!0,enumerable:!1,value:PMe(t),writable:!0})}:cQ,zMe=800,$Me=16,jMe=Date.now;function UMe(e){var t=0,n=0;return function(){var r=jMe(),a=$Me-(r-n);if(n=r,a>0){if(++t>=zMe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var HMe=UMe(BMe);function GMe(e,t){return HMe(FMe(e,t,cQ),e+"")}function qMe(e,t,n){if(!jl(n))return!1;var r=typeof t;return(r=="number"?ev(n)&&oQ(t,n.length):r=="string"&&t in n)?Xy(n[t],e):!1}function WMe(e){return GMe(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&qMe(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var VMe=WMe(function(e,t,n){lQ(e,t,n)}),YMe="",KMe={curveBasis:Cm,curveBasisClosed:fDe,curveBasisOpen:pDe,curveBumpX:NZ,curveBumpY:LZ,curveBundle:hDe,curveCardinalClosed:gDe,curveCardinalOpen:mDe,curveCardinal:MZ,curveCatmullRomClosed:bDe,curveCatmullRomOpen:yDe,curveCatmullRom:PZ,curveLinear:Eb,curveLinearClosed:vDe,curveMonotoneX:HZ,curveMonotoneY:GZ,curveNatural:WZ,curveStep:VZ,curveStepAfter:KZ,curveStepBefore:YZ},XMe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ZMe=z(function(e,t){const n=uQ(e,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(n)){const o=n.map(s=>s.args);ob(o),r=hr(r,[...o])}else r=n.args;if(!r)return;let a=rL(e,t);const i="config";return r[i]!==void 0&&(a==="flowchart-v2"&&(a="flowchart"),r[a]=r[i],delete r[i]),r},"detectInit"),uQ=z(function(e,t=null){var n,r;try{const a=new RegExp(`[%]{2}(?![{]${XMe.source})(?=[}][%]{2}).*
`,"ig");e=e.trim().replace(a,"").replace(/'/gm,'"'),Le.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let i;const o=[];for(;(i=zf.exec(e))!==null;)if(i.index===zf.lastIndex&&zf.lastIndex++,i&&!t||t&&((n=i[1])!=null&&n.match(t))||t&&((r=i[2])!=null&&r.match(t))){const s=i[1]?i[1]:i[2],l=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;o.push({type:s,args:l})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(a){return Le.error(`ERROR: ${a.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),QMe=z(function(e){return e.replace(zf,"")},"removeDirectives"),JMe=z(function(e,t){for(const[n,r]of t.entries())if(r.match(e))return n;return-1},"isSubstringInArray");function IL(e,t){if(!e)return t;const n=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return KMe[n]??t}z(IL,"interpolateToCurve");function dQ(e,t){const n=e.trim();if(n)return t.securityLevel!=="loose"?H2e.sanitizeUrl(n):n}z(dQ,"formatUrl");var eFe=z((e,...t)=>{const n=e.split("."),r=n.length-1,a=n[r];let i=window;for(let o=0;o<r;o++)if(i=i[n[o]],!i){Le.error(`Function name: ${e} not found in window`);return}i[a](...t)},"runFunc");function ML(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}z(ML,"distance");function fQ(e){let t,n=0;e.forEach(a=>{n+=ML(a,t),t=a});const r=n/2;return FL(e,r)}z(fQ,"traverseEdge");function pQ(e){return e.length===1?e[0]:fQ(e)}z(pQ,"calcLabelPosition");var $3=z((e,t=2)=>{const n=Math.pow(10,t);return Math.round(e*n)/n},"roundNumber"),FL=z((e,t)=>{let n,r=t;for(const a of e){if(n){const i=ML(a,n);if(i===0)return n;if(i<r)r-=i;else{const o=r/i;if(o<=0)return n;if(o>=1)return{x:a.x,y:a.y};if(o>0&&o<1)return{x:$3((1-o)*n.x+o*a.x,5),y:$3((1-o)*n.y+o*a.y,5)}}}n=a}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),tFe=z((e,t,n)=>{Le.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());const a=FL(t,25),i=e?10:5,o=Math.atan2(t[0].y-a.y,t[0].x-a.x),s={x:0,y:0};return s.x=Math.sin(o)*i+(t[0].x+a.x)/2,s.y=-Math.cos(o)*i+(t[0].y+a.y)/2,s},"calcCardinalityPosition");function hQ(e,t,n){const r=structuredClone(n);Le.info("our points",r),t!=="start_left"&&t!=="start_right"&&r.reverse();const a=25+e,i=FL(r,a),o=10+e*.5,s=Math.atan2(r[0].y-i.y,r[0].x-i.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(s+Math.PI)*o+(r[0].x+i.x)/2,l.y=-Math.cos(s+Math.PI)*o+(r[0].y+i.y)/2):t==="end_right"?(l.x=Math.sin(s-Math.PI)*o+(r[0].x+i.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(r[0].y+i.y)/2-5):t==="end_left"?(l.x=Math.sin(s)*o+(r[0].x+i.x)/2-5,l.y=-Math.cos(s)*o+(r[0].y+i.y)/2-5):(l.x=Math.sin(s)*o+(r[0].x+i.x)/2,l.y=-Math.cos(s)*o+(r[0].y+i.y)/2),l}z(hQ,"calcTerminalLabelPosition");function gQ(e){let t="",n="";for(const r of e)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}z(gQ,"getStylesFromArray");var j3=0,nFe=z(()=>(j3++,"id-"+Math.random().toString(36).substr(2,12)+"-"+j3),"generateId");function mQ(e){let t="";const n="0123456789abcdef",r=n.length;for(let a=0;a<e;a++)t+=n.charAt(Math.floor(Math.random()*r));return t}z(mQ,"makeRandomHex");var rFe=z(e=>mQ(e.length),"random"),aFe=z(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),iFe=z(function(e,t){const n=t.text.replace(Xu.lineBreakRegex," "),[,r]=tv(t.fontSize),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.style("text-anchor",t.anchor),a.style("font-family",t.fontFamily),a.style("font-size",r),a.style("font-weight",t.fontWeight),a.attr("fill",t.fill),t.class!==void 0&&a.attr("class",t.class);const i=a.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.attr("fill",t.fill),i.text(n),a},"drawSimpleText"),oFe=Vp((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),Xu.lineBreakRegex.test(e)))return e;const r=e.split(" ").filter(Boolean),a=[];let i="";return r.forEach((o,s)=>{const l=To(`${o} `,n),c=To(i,n);if(l>t){const{hyphenatedStrings:h,remainingWord:g}=sFe(o,t,"-",n);a.push(i,...h),i=g}else c+l>=t?(a.push(i),i=o):i=[i,o].filter(Boolean).join(" ");s+1===r.length&&a.push(i)}),a.filter(o=>o!=="").join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),sFe=Vp((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const a=[...e],i=[];let o="";return a.forEach((s,l)=>{const c=`${o}${s}`;if(To(c,r)>=t){const p=l+1,h=a.length===p,g=`${c}${n}`;i.push(h?c:g),o=""}else o=c}),{hyphenatedStrings:i,remainingWord:o}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function bQ(e,t){return PL(e,t).height}z(bQ,"calculateTextHeight");function To(e,t){return PL(e,t).width}z(To,"calculateTextWidth");var PL=Vp((e,t)=>{const{fontSize:n=12,fontFamily:r="Arial",fontWeight:a=400}=t;if(!e)return{width:0,height:0};const[,i]=tv(n),o=["sans-serif",r],s=e.split(Xu.lineBreakRegex),l=[],c=Yt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const d=c.append("svg");for(const h of o){let g=0;const b={width:0,height:0,lineHeight:0};for(const y of s){const x=aFe();x.text=y||YMe;const w=iFe(d,x).style("font-size",i).style("font-weight",a).style("font-family",h),S=(w._groups||w)[0][0].getBBox();if(S.width===0&&S.height===0)throw new Error("svg element not in render tree");b.width=Math.round(Math.max(b.width,S.width)),g=Math.round(S.height),b.height+=g,b.lineHeight=Math.round(Math.max(b.lineHeight,g))}l.push(b)}d.remove();const p=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[p]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),cu,lFe=(cu=class{constructor(t=!1,n){this.count=0,this.count=n?n.length:0,this.next=t?()=>this.count++:()=>Date.now()}},z(cu,"InitIDGenerator"),cu),Gg,cFe=z(function(e){return Gg=Gg||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Gg.innerHTML=e,unescape(Gg.textContent)},"entityDecode");function BL(e){return"str"in e}z(BL,"isDetailedError");var uFe=z((e,t,n,r)=>{var i;if(!r)return;const a=(i=e.node())==null?void 0:i.getBBox();a&&e.append("text").text(r).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-n).attr("class",t)},"insertTitle"),tv=z(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function zL(e,t){return VMe({},e,t)}z(zL,"cleanAndMerge");var Ri={assignWithDepth:hr,wrapLabel:oFe,calculateTextHeight:bQ,calculateTextWidth:To,calculateTextDimensions:PL,cleanAndMerge:zL,detectInit:ZMe,detectDirective:uQ,isSubstringInArray:JMe,interpolateToCurve:IL,calcLabelPosition:pQ,calcCardinalityPosition:tFe,calcTerminalLabelPosition:hQ,formatUrl:dQ,getStylesFromArray:gQ,generateId:nFe,random:rFe,runFunc:eFe,entityDecode:cFe,insertTitle:uFe,parseFontSize:tv,InitIDGenerator:lFe},dFe=z(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/#\w+;/g,function(n){const r=n.substring(1,n.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),t},"encodeEntities"),Gl=z(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),d7e=z((e,t,{counter:n=0,prefix:r,suffix:a},i)=>i||`${r?`${r}_`:""}${e}_${t}_${n}${a?`_${a}`:""}`,"getEdgeId");function Mr(e){return e??null}z(Mr,"handleUndefinedAttr");function $L(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let ql=$L();function yQ(e){ql=e}const Uf={exec:()=>null};function nn(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(a,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(Ir.caret,"$1"),n=n.replace(a,o),r},getRegex:()=>new RegExp(n,t)};return r}const Ir={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},fFe=/^(?:[ \t]*(?:\n|$))+/,pFe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,hFe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Kp=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,gFe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,jL=/(?:[*+-]|\d{1,9}[.)])/,vQ=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,xQ=nn(vQ).replace(/bull/g,jL).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),mFe=nn(vQ).replace(/bull/g,jL).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),UL=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,bFe=/^[^\n]+/,HL=/(?!\s*\])(?:\\.|[^\[\]\\])+/,yFe=nn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",HL).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),vFe=nn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jL).getRegex(),nv="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",GL=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,xFe=nn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",GL).replace("tag",nv).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),SQ=nn(UL).replace("hr",Kp).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nv).getRegex(),SFe=nn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",SQ).getRegex(),qL={blockquote:SFe,code:pFe,def:yFe,fences:hFe,heading:gFe,hr:Kp,html:xFe,lheading:xQ,list:vFe,newline:fFe,paragraph:SQ,table:Uf,text:bFe},U3=nn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Kp).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nv).getRegex(),wFe={...qL,lheading:mFe,table:U3,paragraph:nn(UL).replace("hr",Kp).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",U3).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nv).getRegex()},EFe={...qL,html:nn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",GL).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Uf,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:nn(UL).replace("hr",Kp).replace("heading",` *#{1,6} *[^
]`).replace("lheading",xQ).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},kFe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,_Fe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,wQ=/^( {2,}|\\)\n(?!\s*$)/,CFe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,rv=/[\p{P}\p{S}]/u,WL=/[\s\p{P}\p{S}]/u,EQ=/[^\s\p{P}\p{S}]/u,TFe=nn(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,WL).getRegex(),kQ=/(?!~)[\p{P}\p{S}]/u,AFe=/(?!~)[\s\p{P}\p{S}]/u,RFe=/(?:[^\s\p{P}\p{S}]|~)/u,NFe=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,_Q=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,LFe=nn(_Q,"u").replace(/punct/g,rv).getRegex(),OFe=nn(_Q,"u").replace(/punct/g,kQ).getRegex(),CQ="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",DFe=nn(CQ,"gu").replace(/notPunctSpace/g,EQ).replace(/punctSpace/g,WL).replace(/punct/g,rv).getRegex(),IFe=nn(CQ,"gu").replace(/notPunctSpace/g,RFe).replace(/punctSpace/g,AFe).replace(/punct/g,kQ).getRegex(),MFe=nn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,EQ).replace(/punctSpace/g,WL).replace(/punct/g,rv).getRegex(),FFe=nn(/\\(punct)/,"gu").replace(/punct/g,rv).getRegex(),PFe=nn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),BFe=nn(GL).replace("(?:-->|$)","-->").getRegex(),zFe=nn("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",BFe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Lb=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$Fe=nn(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Lb).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),TQ=nn(/^!?\[(label)\]\[(ref)\]/).replace("label",Lb).replace("ref",HL).getRegex(),AQ=nn(/^!?\[(ref)\](?:\[\])?/).replace("ref",HL).getRegex(),jFe=nn("reflink|nolink(?!\\()","g").replace("reflink",TQ).replace("nolink",AQ).getRegex(),VL={_backpedal:Uf,anyPunctuation:FFe,autolink:PFe,blockSkip:NFe,br:wQ,code:_Fe,del:Uf,emStrongLDelim:LFe,emStrongRDelimAst:DFe,emStrongRDelimUnd:MFe,escape:kFe,link:$Fe,nolink:AQ,punctuation:TFe,reflink:TQ,reflinkSearch:jFe,tag:zFe,text:CFe,url:Uf},UFe={...VL,link:nn(/^!?\[(label)\]\((.*?)\)/).replace("label",Lb).getRegex(),reflink:nn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Lb).getRegex()},KR={...VL,emStrongRDelimAst:IFe,emStrongLDelim:OFe,url:nn(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},HFe={...KR,br:nn(wQ).replace("{2,}","*").getRegex(),text:nn(KR.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},qg={normal:qL,gfm:wFe,pedantic:EFe},yf={normal:VL,gfm:KR,breaks:HFe,pedantic:UFe},GFe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},H3=e=>GFe[e];function Ei(e,t){if(t){if(Ir.escapeTest.test(e))return e.replace(Ir.escapeReplace,H3)}else if(Ir.escapeTestNoEncode.test(e))return e.replace(Ir.escapeReplaceNoEncode,H3);return e}function G3(e){try{e=encodeURI(e).replace(Ir.percentDecode,"%")}catch{return null}return e}function q3(e,t){var i;const n=e.replace(Ir.findPipe,(o,s,l)=>{let c=!1,d=s;for(;--d>=0&&l[d]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Ir.splitPipe);let a=0;if(r[0].trim()||r.shift(),r.length>0&&!((i=r.at(-1))!=null&&i.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;a<r.length;a++)r[a]=r[a].trim().replace(Ir.slashPipe,"|");return r}function vf(e,t,n){const r=e.length;if(r===0)return"";let a=0;for(;a<r&&e.charAt(r-a-1)===t;)a++;return e.slice(0,r-a)}function qFe(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function W3(e,t,n,r,a){const i=t.href,o=t.title||null,s=e[1].replace(a.other.outputLinkReplace,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const l={type:"link",raw:n,href:i,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}return{type:"image",raw:n,href:i,title:o,text:s}}function WFe(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const a=r[1];return t.split(`
`).map(i=>{const o=i.match(n.other.beginningSpace);if(o===null)return i;const[s]=o;return s.length>=a.length?i.slice(a.length):i}).join(`
`)}class Ob{constructor(t){jt(this,"options");jt(this,"rules");jt(this,"lexer");this.options=t||ql}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:vf(r,`
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],a=WFe(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:a}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const a=vf(r,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(r=a.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:vf(n[0],`
`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=vf(n[0],`
`).split(`
`),a="",i="";const o=[];for(;r.length>0;){let s=!1;const l=[];let c;for(c=0;c<r.length;c++)if(this.rules.other.blockquoteStart.test(r[c]))l.push(r[c]),s=!0;else if(!s)l.push(r[c]);else break;r=r.slice(c);const d=l.join(`
`),p=d.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
${d}`:d,i=i?`${i}
${p}`:p;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,o,!0),this.lexer.state.top=h,r.length===0)break;const g=o.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){const b=g,y=b.raw+`
`+r.join(`
`),x=this.blockquote(y);o[o.length-1]=x,a=a.substring(0,a.length-b.raw.length)+x.raw,i=i.substring(0,i.length-b.text.length)+x.text;break}else if((g==null?void 0:g.type)==="list"){const b=g,y=b.raw+`
`+r.join(`
`),x=this.list(y);o[o.length-1]=x,a=a.substring(0,a.length-g.raw.length)+x.raw,i=i.substring(0,i.length-b.raw.length)+x.raw,r=y.substring(o.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:a,tokens:o,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const a=r.length>1,i={type:"list",raw:"",ordered:a,start:a?+r.slice(0,-1):"",loose:!1,items:[]};r=a?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=a?r:"[*+-]");const o=this.rules.other.listItemRegex(r);let s=!1;for(;t;){let c=!1,d="",p="";if(!(n=o.exec(t))||this.rules.block.hr.test(t))break;d=n[0],t=t.substring(d.length);let h=n[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),g=t.split(`
`,1)[0],b=!h.trim(),y=0;if(this.options.pedantic?(y=2,p=h.trimStart()):b?y=n[1].length+1:(y=n[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,p=h.slice(y),y+=n[1].length),b&&this.rules.other.blankLine.test(g)&&(d+=g+`
`,t=t.substring(g.length+1),c=!0),!c){const S=this.rules.other.nextBulletRegex(y),_=this.rules.other.hrRegex(y),N=this.rules.other.fencesBeginRegex(y),R=this.rules.other.headingBeginRegex(y),C=this.rules.other.htmlBeginRegex(y);for(;t;){const A=t.split(`
`,1)[0];let I;if(g=A,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),I=g):I=g.replace(this.rules.other.tabCharGlobal," "),N.test(g)||R.test(g)||C.test(g)||S.test(g)||_.test(g))break;if(I.search(this.rules.other.nonSpaceChar)>=y||!g.trim())p+=`
`+I.slice(y);else{if(b||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||N.test(h)||R.test(h)||_.test(h))break;p+=`
`+g}!b&&!g.trim()&&(b=!0),d+=A+`
`,t=t.substring(A.length+1),h=I.slice(y)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(s=!0));let x=null,w;this.options.gfm&&(x=this.rules.other.listIsTask.exec(p),x&&(w=x[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:d,task:!!x,checked:w,loose:!1,text:p,tokens:[]}),i.raw+=d}const l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let c=0;c<i.items.length;c++)if(this.lexer.state.top=!1,i.items[c].tokens=this.lexer.blockTokens(i.items[c].text,[]),!i.loose){const d=i.items[c].tokens.filter(h=>h.type==="space"),p=d.length>0&&d.some(h=>this.rules.other.anyLine.test(h.raw));i.loose=p}if(i.loose)for(let c=0;c<i.items.length;c++)i.items[c].loose=!0;return i}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:a,title:i}}}table(t){var s;const n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=q3(n[1]),a=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(s=n[3])!=null&&s.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===a.length){for(const l of a)this.rules.other.tableAlignRight.test(l)?o.align.push("right"):this.rules.other.tableAlignCenter.test(l)?o.align.push("center"):this.rules.other.tableAlignLeft.test(l)?o.align.push("left"):o.align.push(null);for(let l=0;l<r.length;l++)o.header.push({text:r[l],tokens:this.lexer.inline(r[l]),header:!0,align:o.align[l]});for(const l of i)o.rows.push(q3(l,o.header.length).map((c,d)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:o.align[d]})));return o}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const o=vf(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=qFe(n[2],"()");if(o===-2)return;if(o>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+o;n[2]=n[2].substring(0,o),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let a=n[2],i="";if(this.options.pedantic){const o=this.rules.other.pedanticHrefTitle.exec(a);o&&(a=o[1],i=o[3])}else i=n[3]?n[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?a=a.slice(1):a=a.slice(1,-1)),W3(n,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const a=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[a.toLowerCase()];if(!i){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return W3(r,i,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let a=this.rules.inline.emStrongLDelim.exec(t);if(!a||a[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(a[1]||a[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...a[0]].length-1;let s,l,c=o,d=0;const p=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,n=n.slice(-1*t.length+o);(a=p.exec(n))!=null;){if(s=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!s)continue;if(l=[...s].length,a[3]||a[4]){c+=l;continue}else if((a[5]||a[6])&&o%3&&!((o+l)%3)){d+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+d);const h=[...a[0]][0].length,g=t.slice(0,o+a.index+h+l);if(Math.min(o,l)%2){const y=g.slice(1,-1);return{type:"em",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}const b=g.slice(2,-2);return{type:"strong",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const a=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return a&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,a;return n[2]==="@"?(r=n[1],a="mailto:"+r):(r=n[1],a=r),{type:"link",raw:n[0],text:r,href:a,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let a,i;if(n[2]==="@")a=n[0],i="mailto:"+a;else{let o;do o=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(o!==n[0]);a=n[0],n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:a,href:i,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}}class Ba{constructor(t){jt(this,"tokens");jt(this,"options");jt(this,"state");jt(this,"tokenizer");jt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ql,this.options.tokenizer=this.options.tokenizer||new Ob,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:Ir,block:qg.normal,inline:yf.normal};this.options.pedantic?(n.block=qg.pedantic,n.inline=yf.pedantic):this.options.gfm&&(n.block=qg.gfm,this.options.breaks?n.inline=yf.breaks:n.inline=yf.gfm),this.tokenizer.rules=n}static get rules(){return{block:qg,inline:yf}}static lex(t,n){return new Ba(n).lex(t)}static lexInline(t,n){return new Ba(n).inlineTokens(t)}lex(t){t=t.replace(Ir.carriageReturn,`
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var a,i,o;for(this.options.pedantic&&(t=t.replace(Ir.tabCharGlobal," ").replace(Ir.spaceLine,""));t;){let s;if((i=(a=this.options.extensions)==null?void 0:a.block)!=null&&i.some(c=>(s=c.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);const c=n.at(-1);s.raw.length===1&&c!==void 0?c.raw+=`
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
`+s.raw,c.text+=`
`+s.text,this.inlineQueue.at(-1).src=c.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
`+s.raw,c.text+=`
`+s.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}let l=t;if((o=this.options.extensions)!=null&&o.startBlock){let c=1/0;const d=t.slice(1);let p;this.options.extensions.startBlock.forEach(h=>{p=h.call({lexer:this},d),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(l=t.substring(0,c+1))}if(this.state.top&&(s=this.tokenizer.paragraph(l))){const c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=`
`+s.raw,c.text+=`
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(s),r=l.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=`
`+s.raw,c.text+=`
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(s);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var s,l,c;let r=t,a=null;if(this.tokens.links){const d=Object.keys(this.tokens.links);if(d.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)d.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,a.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(a=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,o="";for(;t;){i||(o=""),i=!1;let d;if((l=(s=this.options.extensions)==null?void 0:s.inline)!=null&&l.some(h=>(d=h.call({lexer:this},t,n))?(t=t.substring(d.raw.length),n.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);const h=n.at(-1);d.type==="text"&&(h==null?void 0:h.type)==="text"?(h.raw+=d.raw,h.text+=d.text):n.push(d);continue}if(d=this.tokenizer.emStrong(t,r,o)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.del(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),n.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),n.push(d);continue}let p=t;if((c=this.options.extensions)!=null&&c.startInline){let h=1/0;const g=t.slice(1);let b;this.options.extensions.startInline.forEach(y=>{b=y.call({lexer:this},g),typeof b=="number"&&b>=0&&(h=Math.min(h,b))}),h<1/0&&h>=0&&(p=t.substring(0,h+1))}if(d=this.tokenizer.inlineText(p)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(o=d.raw.slice(-1)),i=!0;const h=n.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=d.raw,h.text+=d.text):n.push(d);continue}if(t){const h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return n}}class Db{constructor(t){jt(this,"options");jt(this,"parser");this.options=t||ql}space(t){return""}code({text:t,lang:n,escaped:r}){var o;const a=(o=(n||"").match(Ir.notSpaceStart))==null?void 0:o[0],i=t.replace(Ir.endingNewline,"")+`
`;return a?'<pre><code class="language-'+Ei(a)+'">'+(r?i:Ei(i,!0))+`</code></pre>
`:"<pre><code>"+(r?i:Ei(i,!0))+`</code></pre>
`}blockquote({tokens:t}){return`<blockquote>
${this.parser.parse(t)}</blockquote>
`}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
`}hr(t){return`<hr>
`}list(t){const n=t.ordered,r=t.start;let a="";for(let s=0;s<t.items.length;s++){const l=t.items[s];a+=this.listitem(l)}const i=n?"ol":"ul",o=n&&r!==1?' start="'+r+'"':"";return"<"+i+o+`>
`+a+"</"+i+`>
`}listitem(t){var r;let n="";if(t.task){const a=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=a+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=a+" "+Ei(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:a+" ",text:a+" ",escaped:!0}):n+=a+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
`}table(t){let n="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);n+=this.tablerow({text:r});let a="";for(let i=0;i<t.rows.length;i++){const o=t.rows[i];r="";for(let s=0;s<o.length;s++)r+=this.tablecell(o[s]);a+=this.tablerow({text:r})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
<thead>
`+n+`</thead>
`+a+`</table>
`}tablerow({text:t}){return`<tr>
${t}</tr>
`}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Ei(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const a=this.parser.parseInline(r),i=G3(t);if(i===null)return a;t=i;let o='<a href="'+t+'"';return n&&(o+=' title="'+Ei(n)+'"'),o+=">"+a+"</a>",o}image({href:t,title:n,text:r}){const a=G3(t);if(a===null)return Ei(r);t=a;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${Ei(n)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Ei(t.text)}}class YL{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class za{constructor(t){jt(this,"options");jt(this,"renderer");jt(this,"textRenderer");this.options=t||ql,this.options.renderer=this.options.renderer||new Db,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new YL}static parse(t,n){return new za(n).parse(t)}static parseInline(t,n){return new za(n).parseInline(t)}parse(t,n=!0){var a,i;let r="";for(let o=0;o<t.length;o++){const s=t[o];if((i=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&i[s.type]){const c=s,d=this.options.extensions.renderers[c.type].call({parser:this},c);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){r+=d||"";continue}}const l=s;switch(l.type){case"space":{r+=this.renderer.space(l);continue}case"hr":{r+=this.renderer.hr(l);continue}case"heading":{r+=this.renderer.heading(l);continue}case"code":{r+=this.renderer.code(l);continue}case"table":{r+=this.renderer.table(l);continue}case"blockquote":{r+=this.renderer.blockquote(l);continue}case"list":{r+=this.renderer.list(l);continue}case"html":{r+=this.renderer.html(l);continue}case"paragraph":{r+=this.renderer.paragraph(l);continue}case"text":{let c=l,d=this.renderer.text(c);for(;o+1<t.length&&t[o+1].type==="text";)c=t[++o],d+=`
`+this.renderer.text(c);n?r+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):r+=d;continue}default:{const c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,n=this.renderer){var a,i;let r="";for(let o=0;o<t.length;o++){const s=t[o];if((i=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&i[s.type]){const c=this.options.extensions.renderers[s.type].call({parser:this},s);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=c||"";continue}}const l=s;switch(l.type){case"escape":{r+=n.text(l);break}case"html":{r+=n.html(l);break}case"link":{r+=n.link(l);break}case"image":{r+=n.image(l);break}case"strong":{r+=n.strong(l);break}case"em":{r+=n.em(l);break}case"codespan":{r+=n.codespan(l);break}case"br":{r+=n.br(l);break}case"del":{r+=n.del(l);break}case"text":{r+=n.text(l);break}default:{const c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}}class Hf{constructor(t){jt(this,"options");jt(this,"block");this.options=t||ql}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Ba.lex:Ba.lexInline}provideParser(){return this.block?za.parse:za.parseInline}}jt(Hf,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class VFe{constructor(...t){jt(this,"defaults",$L());jt(this,"options",this.setOptions);jt(this,"parse",this.parseMarkdown(!0));jt(this,"parseInline",this.parseMarkdown(!1));jt(this,"Parser",za);jt(this,"Renderer",Db);jt(this,"TextRenderer",YL);jt(this,"Lexer",Ba);jt(this,"Tokenizer",Ob);jt(this,"Hooks",Hf);this.use(...t)}walkTokens(t,n){var a,i;let r=[];for(const o of t)switch(r=r.concat(n.call(this,o)),o.type){case"table":{const s=o;for(const l of s.header)r=r.concat(this.walkTokens(l.tokens,n));for(const l of s.rows)for(const c of l)r=r.concat(this.walkTokens(c.tokens,n));break}case"list":{const s=o;r=r.concat(this.walkTokens(s.items,n));break}default:{const s=o;(i=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&i[s.type]?this.defaults.extensions.childTokens[s.type].forEach(l=>{const c=s[l].flat(1/0);r=r.concat(this.walkTokens(c,n))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const a={...r};if(a.async=this.defaults.async||a.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const o=n.renderers[i.name];o?n.renderers[i.name]=function(...s){let l=i.renderer.apply(this,s);return l===!1&&(l=o.apply(this,s)),l}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=n[i.level];o?o.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),a.extensions=n),r.renderer){const i=this.defaults.renderer||new Db(this.defaults);for(const o in r.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const s=o,l=r.renderer[s],c=i[s];i[s]=(...d)=>{let p=l.apply(i,d);return p===!1&&(p=c.apply(i,d)),p||""}}a.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new Ob(this.defaults);for(const o in r.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const s=o,l=r.tokenizer[s],c=i[s];i[s]=(...d)=>{let p=l.apply(i,d);return p===!1&&(p=c.apply(i,d)),p}}a.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new Hf;for(const o in r.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const s=o,l=r.hooks[s],c=i[s];Hf.passThroughHooks.has(o)?i[s]=d=>{if(this.defaults.async)return Promise.resolve(l.call(i,d)).then(h=>c.call(i,h));const p=l.call(i,d);return c.call(i,p)}:i[s]=(...d)=>{let p=l.apply(i,d);return p===!1&&(p=c.apply(i,d)),p}}a.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,o=r.walkTokens;a.walkTokens=function(s){let l=[];return l.push(o.call(this,s)),i&&(l=l.concat(i.call(this,s))),l}}this.defaults={...this.defaults,...a}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Ba.lex(t,n??this.defaults)}parser(t,n){return za.parse(t,n??this.defaults)}parseMarkdown(t){return(r,a)=>{const i={...a},o={...this.defaults,...i},s=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=t);const l=o.hooks?o.hooks.provideLexer():t?Ba.lex:Ba.lexInline,c=o.hooks?o.hooks.provideParser():t?za.parse:za.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(d=>l(d,o)).then(d=>o.hooks?o.hooks.processAllTokens(d):d).then(d=>o.walkTokens?Promise.all(this.walkTokens(d,o.walkTokens)).then(()=>d):d).then(d=>c(d,o)).then(d=>o.hooks?o.hooks.postprocess(d):d).catch(s);try{o.hooks&&(r=o.hooks.preprocess(r));let d=l(r,o);o.hooks&&(d=o.hooks.processAllTokens(d)),o.walkTokens&&this.walkTokens(d,o.walkTokens);let p=c(d,o);return o.hooks&&(p=o.hooks.postprocess(p)),p}catch(d){return s(d)}}}onError(t,n){return r=>{if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,t){const a="<p>An error occurred:</p><pre>"+Ei(r.message+"",!0)+"</pre>";return n?Promise.resolve(a):a}if(n)return Promise.reject(r);throw r}}}const Ml=new VFe;function tn(e,t){return Ml.parse(e,t)}tn.options=tn.setOptions=function(e){return Ml.setOptions(e),tn.defaults=Ml.defaults,yQ(tn.defaults),tn};tn.getDefaults=$L;tn.defaults=ql;tn.use=function(...e){return Ml.use(...e),tn.defaults=Ml.defaults,yQ(tn.defaults),tn};tn.walkTokens=function(e,t){return Ml.walkTokens(e,t)};tn.parseInline=Ml.parseInline;tn.Parser=za;tn.parser=za.parse;tn.Renderer=Db;tn.TextRenderer=YL;tn.Lexer=Ba;tn.lexer=Ba.lex;tn.Tokenizer=Ob;tn.Hooks=Hf;tn.parse=tn;tn.options;tn.setOptions;tn.use;tn.walkTokens;tn.parseInline;za.parse;Ba.lex;function RQ(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from(typeof e=="string"?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var a=r.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(d){var p,h;return(h=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&h!==void 0?h:0})):s},[]);if(a.length){var i=new RegExp(`
[ ]{`+Math.min.apply(Math,a)+"}","g");r=r.map(function(s){return s.replace(i,`
`)})}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return t.forEach(function(s,l){var c=o.match(/(?:^|\n)( *)$/),d=c?c[1]:"",p=s;typeof s=="string"&&s.includes(`
`)&&(p=String(s).split(`
`).map(function(h,g){return g===0?h:""+d+h}).join(`
`)),o+=p+r[l+1]}),o}function NQ(e,{markdownAutoWrap:t}){const r=e.replace(/<br\/>/g,`
`).replace(/\n{2,}/g,`
`),a=RQ(r);return t===!1?a.replace(/ /g,"&nbsp;"):a}z(NQ,"preprocessMarkdown");function LQ(e,t={}){const n=NQ(e,t),r=tn.lexer(n),a=[[]];let i=0;function o(s,l="normal"){s.type==="text"?s.text.split(`
`).forEach((d,p)=>{p!==0&&(i++,a.push([])),d.split(" ").forEach(h=>{h=h.replace(/&#39;/g,"'"),h&&a[i].push({content:h,type:l})})}):s.type==="strong"||s.type==="em"?s.tokens.forEach(c=>{o(c,s.type)}):s.type==="html"&&a[i].push({content:s.text,type:"normal"})}return z(o,"processNode"),r.forEach(s=>{var l;s.type==="paragraph"?(l=s.tokens)==null||l.forEach(c=>{o(c)}):s.type==="html"&&a[i].push({content:s.text,type:"normal"})}),a}z(LQ,"markdownToLines");function OQ(e,{markdownAutoWrap:t}={}){const n=tn.lexer(e);function r(a){var i,o,s;return a.type==="text"?t===!1?a.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):a.text.replace(/\n */g,"<br/>"):a.type==="strong"?`<strong>${(i=a.tokens)==null?void 0:i.map(r).join("")}</strong>`:a.type==="em"?`<em>${(o=a.tokens)==null?void 0:o.map(r).join("")}</em>`:a.type==="paragraph"?`<p>${(s=a.tokens)==null?void 0:s.map(r).join("")}</p>`:a.type==="space"?"":a.type==="html"?`${a.text}`:a.type==="escape"?a.text:`Unsupported markdown: ${a.type}`}return z(r,"output"),n.map(r).join("")}z(OQ,"markdownToHTML");function DQ(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}z(DQ,"splitTextToChars");function IQ(e,t){const n=DQ(t.content);return KL(e,[],n,t.type)}z(IQ,"splitWordToFitWidth");function KL(e,t,n,r){if(n.length===0)return[{content:t.join(""),type:r},{content:"",type:r}];const[a,...i]=n,o=[...t,a];return e([{content:o.join(""),type:r}])?KL(e,o,i,r):(t.length===0&&a&&(t.push(a),n.shift()),[{content:t.join(""),type:r},{content:n.join(""),type:r}])}z(KL,"splitWordToFitWidthRecursion");function MQ(e,t){if(e.some(({content:n})=>n.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Ib(e,t)}z(MQ,"splitLineToFitWidth");function Ib(e,t,n=[],r=[]){if(e.length===0)return r.length>0&&n.push(r),n.length>0?n:[];let a="";e[0].content===" "&&(a=" ",e.shift());const i=e.shift()??{content:" ",type:"normal"},o=[...r];if(a!==""&&o.push({content:a,type:"normal"}),o.push(i),t(o))return Ib(e,t,n,o);if(r.length>0)n.push(r),e.unshift(i);else if(i.content){const[s,l]=IQ(t,i);n.push([s]),l.content&&e.unshift(l)}return Ib(e,t,n)}z(Ib,"splitLineToFitWidthRecursion");function XR(e,t){t&&e.attr("style",t)}z(XR,"applyStyle");async function FQ(e,t,n,r,a=!1){const i=e.append("foreignObject");i.attr("width",`${10*n}px`),i.attr("height",`${10*n}px`);const o=i.append("xhtml:div");let s=t.label;t.label&&wu(t.label)&&(s=await aL(t.label.replace(Xu.lineBreakRegex,`
`),Qt()));const l=t.isNode?"nodeLabel":"edgeLabel",c=o.append("span");c.html(s),XR(c,t.labelStyle),c.attr("class",`${l} ${r}`),XR(o,t.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),o.style("max-width",n+"px"),o.style("text-align","center"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&o.attr("class","labelBkg");let d=o.node().getBoundingClientRect();return d.width===n&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",n+"px"),d=o.node().getBoundingClientRect()),i.node()}z(FQ,"addHtmlSpan");function av(e,t,n){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*n-.1+"em").attr("dy",n+"em")}z(av,"createTspan");function PQ(e,t,n){const r=e.append("text"),a=av(r,1,t);iv(a,n);const i=a.node().getComputedTextLength();return r.remove(),i}z(PQ,"computeWidthOfText");function YFe(e,t,n){var o;const r=e.append("text"),a=av(r,1,t);iv(a,[{content:n,type:"normal"}]);const i=(o=a.node())==null?void 0:o.getBoundingClientRect();return i&&r.remove(),i}z(YFe,"computeDimensionOfText");function BQ(e,t,n,r=!1){const i=t.append("g"),o=i.insert("rect").attr("class","background").attr("style","stroke: none"),s=i.append("text").attr("y","-10.1");let l=0;for(const c of n){const d=z(h=>PQ(i,1.1,h)<=e,"checkWidth"),p=d(c)?[c]:MQ(c,d);for(const h of p){const g=av(s,l,1.1);iv(g,h),l++}}if(r){const c=s.node().getBBox(),d=2;return o.attr("x",c.x-d).attr("y",c.y-d).attr("width",c.width+2*d).attr("height",c.height+2*d),i.node()}else return s.node()}z(BQ,"createFormattedText");function iv(e,t){e.text(""),t.forEach((n,r)=>{const a=e.append("tspan").attr("font-style",n.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",n.type==="strong"?"bold":"normal");r===0?a.text(n.content):a.text(" "+n.content)})}z(iv,"updateTextContentAndStyles");function zQ(e){return e.replace(/fa[bklrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`)}z(zQ,"replaceIconSubstring");var Os=z(async(e,t="",{style:n="",isTitle:r=!1,classes:a="",useHtmlLabels:i=!0,isNode:o=!0,width:s=200,addSvgBackground:l=!1}={},c)=>{if(Le.debug("XYZ createText",t,n,r,a,i,o,"addSvgBackground: ",l),i){const d=OQ(t,c),p=zQ(Gl(d)),h=t.replace(/\\\\/g,"\\"),g={isNode:o,label:wu(t)?h:p,labelStyle:n.replace("fill:","color:")};return await FQ(e,g,s,a,l)}else{const d=t.replace(/<br\s*\/?>/g,"<br/>"),p=LQ(d.replace("<br>","<br/>"),c),h=BQ(s,e,p,t?l:!1);if(o){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));const g=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Yt(h).attr("style",g)}else{const g=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Yt(h).select("rect").attr("style",g.replace(/background:/g,"fill:"));const b=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Yt(h).select("text").attr("style",b)}return h}},"createText");function m0(e,t,n){if(e&&e.length){const[r,a]=t,i=Math.PI/180*n,o=Math.cos(i),s=Math.sin(i);for(const l of e){const[c,d]=l;l[0]=(c-r)*o-(d-a)*s+r,l[1]=(c-r)*s+(d-a)*o+a}}}function KFe(e,t){return e[0]===t[0]&&e[1]===t[1]}function XFe(e,t,n,r=1){const a=n,i=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,s=[0,0];if(a)for(const c of o)m0(c,s,a);const l=function(c,d,p){const h=[];for(const S of c){const _=[...S];KFe(_[0],_[_.length-1])||_.push([_[0][0],_[0][1]]),_.length>2&&h.push(_)}const g=[];d=Math.max(d,.1);const b=[];for(const S of h)for(let _=0;_<S.length-1;_++){const N=S[_],R=S[_+1];if(N[1]!==R[1]){const C=Math.min(N[1],R[1]);b.push({ymin:C,ymax:Math.max(N[1],R[1]),x:C===N[1]?N[0]:R[0],islope:(R[0]-N[0])/(R[1]-N[1])})}}if(b.sort((S,_)=>S.ymin<_.ymin?-1:S.ymin>_.ymin?1:S.x<_.x?-1:S.x>_.x?1:S.ymax===_.ymax?0:(S.ymax-_.ymax)/Math.abs(S.ymax-_.ymax)),!b.length)return g;let y=[],x=b[0].ymin,w=0;for(;y.length||b.length;){if(b.length){let S=-1;for(let _=0;_<b.length&&!(b[_].ymin>x);_++)S=_;b.splice(0,S+1).forEach(_=>{y.push({s:x,edge:_})})}if(y=y.filter(S=>!(S.edge.ymax<=x)),y.sort((S,_)=>S.edge.x===_.edge.x?0:(S.edge.x-_.edge.x)/Math.abs(S.edge.x-_.edge.x)),(p!==1||w%d==0)&&y.length>1)for(let S=0;S<y.length;S+=2){const _=S+1;if(_>=y.length)break;const N=y[S].edge,R=y[_].edge;g.push([[Math.round(N.x),x],[Math.round(R.x),x]])}x+=p,y.forEach(S=>{S.edge.x=S.edge.x+p*S.edge.islope}),w++}return g}(o,i,r);if(a){for(const c of o)m0(c,s,-a);(function(c,d,p){const h=[];c.forEach(g=>h.push(...g)),m0(h,d,p)})(l,s,-a)}return l}function Xp(e,t){var n;const r=t.hachureAngle+90;let a=t.hachureGap;a<0&&(a=4*t.strokeWidth),a=Math.round(Math.max(a,.1));let i=1;return t.roughness>=1&&(((n=t.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(i=a),XFe(e,a,r,i||1)}class XL{constructor(t){this.helper=t}fillPolygons(t,n){return this._fillPolygons(t,n)}_fillPolygons(t,n){const r=Xp(t,n);return{type:"fillSketch",ops:this.renderLines(r,n)}}renderLines(t,n){const r=[];for(const a of t)r.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],n));return r}}function ov(e){const t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}class ZFe extends XL{fillPolygons(t,n){let r=n.hachureGap;r<0&&(r=4*n.strokeWidth),r=Math.max(r,.1);const a=Xp(t,Object.assign({},n,{hachureGap:r})),i=Math.PI/180*n.hachureAngle,o=[],s=.5*r*Math.cos(i),l=.5*r*Math.sin(i);for(const[c,d]of a)ov([c,d])&&o.push([[c[0]-s,c[1]+l],[...d]],[[c[0]+s,c[1]-l],[...d]]);return{type:"fillSketch",ops:this.renderLines(o,n)}}}class QFe extends XL{fillPolygons(t,n){const r=this._fillPolygons(t,n),a=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),i=this._fillPolygons(t,a);return r.ops=r.ops.concat(i.ops),r}}class JFe{constructor(t){this.helper=t}fillPolygons(t,n){const r=Xp(t,n=Object.assign({},n,{hachureAngle:0}));return this.dotsOnLines(r,n)}dotsOnLines(t,n){const r=[];let a=n.hachureGap;a<0&&(a=4*n.strokeWidth),a=Math.max(a,.1);let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);const o=a/4;for(const s of t){const l=ov(s),c=l/a,d=Math.ceil(c)-1,p=l-d*a,h=(s[0][0]+s[1][0])/2-a/4,g=Math.min(s[0][1],s[1][1]);for(let b=0;b<d;b++){const y=g+p+b*a,x=h-o+2*Math.random()*o,w=y-o+2*Math.random()*o,S=this.helper.ellipse(x,w,i,i,n);r.push(...S.ops)}}return{type:"fillSketch",ops:r}}}class ePe{constructor(t){this.helper=t}fillPolygons(t,n){const r=Xp(t,n);return{type:"fillSketch",ops:this.dashedLine(r,n)}}dashedLine(t,n){const r=n.dashOffset<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashOffset,a=n.dashGap<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashGap,i=[];return t.forEach(o=>{const s=ov(o),l=Math.floor(s/(r+a)),c=(s+a-l*(r+a))/2;let d=o[0],p=o[1];d[0]>p[0]&&(d=o[1],p=o[0]);const h=Math.atan((p[1]-d[1])/(p[0]-d[0]));for(let g=0;g<l;g++){const b=g*(r+a),y=b+r,x=[d[0]+b*Math.cos(h)+c*Math.cos(h),d[1]+b*Math.sin(h)+c*Math.sin(h)],w=[d[0]+y*Math.cos(h)+c*Math.cos(h),d[1]+y*Math.sin(h)+c*Math.sin(h)];i.push(...this.helper.doubleLineOps(x[0],x[1],w[0],w[1],n))}}),i}}class tPe{constructor(t){this.helper=t}fillPolygons(t,n){const r=n.hachureGap<0?4*n.strokeWidth:n.hachureGap,a=n.zigzagOffset<0?r:n.zigzagOffset,i=Xp(t,n=Object.assign({},n,{hachureGap:r+a}));return{type:"fillSketch",ops:this.zigzagLines(i,a,n)}}zigzagLines(t,n,r){const a=[];return t.forEach(i=>{const o=ov(i),s=Math.round(o/(2*n));let l=i[0],c=i[1];l[0]>c[0]&&(l=i[1],c=i[0]);const d=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let p=0;p<s;p++){const h=2*p*n,g=2*(p+1)*n,b=Math.sqrt(2*Math.pow(n,2)),y=[l[0]+h*Math.cos(d),l[1]+h*Math.sin(d)],x=[l[0]+g*Math.cos(d),l[1]+g*Math.sin(d)],w=[y[0]+b*Math.cos(d+Math.PI/4),y[1]+b*Math.sin(d+Math.PI/4)];a.push(...this.helper.doubleLineOps(y[0],y[1],w[0],w[1],r),...this.helper.doubleLineOps(w[0],w[1],x[0],x[1],r))}}),a}}const jr={};class nPe{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const rPe=0,b0=1,V3=2,Wg={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function y0(e,t){return e.type===t}function ZL(e){const t=[],n=function(o){const s=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))s[s.length]={type:rPe,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];s[s.length]={type:b0,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return s[s.length]={type:V3,text:""},s}(e);let r="BOD",a=0,i=n[a];for(;!y0(i,V3);){let o=0;const s=[];if(r==="BOD"){if(i.text!=="M"&&i.text!=="m")return ZL("M0,0"+e);a++,o=Wg[i.text],r=i.text}else y0(i,b0)?o=Wg[r]:(a++,o=Wg[i.text],r=i.text);if(!(a+o<n.length))throw new Error("Path data ended short");for(let l=a;l<a+o;l++){const c=n[l];if(!y0(c,b0))throw new Error("Param not a number: "+r+","+c.text);s[s.length]=+c.text}if(typeof Wg[r]!="number")throw new Error("Bad segment: "+r);{const l={key:r,data:s};t.push(l),a+=o,i=n[a],r==="M"&&(r="L"),r==="m"&&(r="l")}}return t}function $Q(e){let t=0,n=0,r=0,a=0;const i=[];for(const{key:o,data:s}of e)switch(o){case"M":i.push({key:"M",data:[...s]}),[t,n]=s,[r,a]=s;break;case"m":t+=s[0],n+=s[1],i.push({key:"M",data:[t,n]}),r=t,a=n;break;case"L":i.push({key:"L",data:[...s]}),[t,n]=s;break;case"l":t+=s[0],n+=s[1],i.push({key:"L",data:[t,n]});break;case"C":i.push({key:"C",data:[...s]}),t=s[4],n=s[5];break;case"c":{const l=s.map((c,d)=>d%2?c+n:c+t);i.push({key:"C",data:l}),t=l[4],n=l[5];break}case"Q":i.push({key:"Q",data:[...s]}),t=s[2],n=s[3];break;case"q":{const l=s.map((c,d)=>d%2?c+n:c+t);i.push({key:"Q",data:l}),t=l[2],n=l[3];break}case"A":i.push({key:"A",data:[...s]}),t=s[5],n=s[6];break;case"a":t+=s[5],n+=s[6],i.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case"H":i.push({key:"H",data:[...s]}),t=s[0];break;case"h":t+=s[0],i.push({key:"H",data:[t]});break;case"V":i.push({key:"V",data:[...s]}),n=s[0];break;case"v":n+=s[0],i.push({key:"V",data:[n]});break;case"S":i.push({key:"S",data:[...s]}),t=s[2],n=s[3];break;case"s":{const l=s.map((c,d)=>d%2?c+n:c+t);i.push({key:"S",data:l}),t=l[2],n=l[3];break}case"T":i.push({key:"T",data:[...s]}),t=s[0],n=s[1];break;case"t":t+=s[0],n+=s[1],i.push({key:"T",data:[t,n]});break;case"Z":case"z":i.push({key:"Z",data:[]}),t=r,n=a}return i}function jQ(e){const t=[];let n="",r=0,a=0,i=0,o=0,s=0,l=0;for(const{key:c,data:d}of e){switch(c){case"M":t.push({key:"M",data:[...d]}),[r,a]=d,[i,o]=d;break;case"C":t.push({key:"C",data:[...d]}),r=d[4],a=d[5],s=d[2],l=d[3];break;case"L":t.push({key:"L",data:[...d]}),[r,a]=d;break;case"H":r=d[0],t.push({key:"L",data:[r,a]});break;case"V":a=d[0],t.push({key:"L",data:[r,a]});break;case"S":{let p=0,h=0;n==="C"||n==="S"?(p=r+(r-s),h=a+(a-l)):(p=r,h=a),t.push({key:"C",data:[p,h,...d]}),s=d[0],l=d[1],r=d[2],a=d[3];break}case"T":{const[p,h]=d;let g=0,b=0;n==="Q"||n==="T"?(g=r+(r-s),b=a+(a-l)):(g=r,b=a);const y=r+2*(g-r)/3,x=a+2*(b-a)/3,w=p+2*(g-p)/3,S=h+2*(b-h)/3;t.push({key:"C",data:[y,x,w,S,p,h]}),s=g,l=b,r=p,a=h;break}case"Q":{const[p,h,g,b]=d,y=r+2*(p-r)/3,x=a+2*(h-a)/3,w=g+2*(p-g)/3,S=b+2*(h-b)/3;t.push({key:"C",data:[y,x,w,S,g,b]}),s=p,l=h,r=g,a=b;break}case"A":{const p=Math.abs(d[0]),h=Math.abs(d[1]),g=d[2],b=d[3],y=d[4],x=d[5],w=d[6];p===0||h===0?(t.push({key:"C",data:[r,a,x,w,x,w]}),r=x,a=w):(r!==x||a!==w)&&(UQ(r,a,x,w,p,h,g,b,y).forEach(function(S){t.push({key:"C",data:S})}),r=x,a=w);break}case"Z":t.push({key:"Z",data:[]}),r=i,a=o}n=c}return t}function xf(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function UQ(e,t,n,r,a,i,o,s,l,c){const d=(p=o,Math.PI*p/180);var p;let h=[],g=0,b=0,y=0,x=0;if(c)[g,b,y,x]=c;else{[e,t]=xf(e,t,-d),[n,r]=xf(n,r,-d);const j=(e-n)/2,W=(t-r)/2;let V=j*j/(a*a)+W*W/(i*i);V>1&&(V=Math.sqrt(V),a*=V,i*=V);const B=a*a,U=i*i,M=B*U-B*W*W-U*j*j,K=B*W*W+U*j*j,F=(s===l?-1:1)*Math.sqrt(Math.abs(M/K));y=F*a*W/i+(e+n)/2,x=F*-i*j/a+(t+r)/2,g=Math.asin(parseFloat(((t-x)/i).toFixed(9))),b=Math.asin(parseFloat(((r-x)/i).toFixed(9))),e<y&&(g=Math.PI-g),n<y&&(b=Math.PI-b),g<0&&(g=2*Math.PI+g),b<0&&(b=2*Math.PI+b),l&&g>b&&(g-=2*Math.PI),!l&&b>g&&(b-=2*Math.PI)}let w=b-g;if(Math.abs(w)>120*Math.PI/180){const j=b,W=n,V=r;b=l&&b>g?g+120*Math.PI/180*1:g+120*Math.PI/180*-1,h=UQ(n=y+a*Math.cos(b),r=x+i*Math.sin(b),W,V,a,i,o,0,l,[b,j,y,x])}w=b-g;const S=Math.cos(g),_=Math.sin(g),N=Math.cos(b),R=Math.sin(b),C=Math.tan(w/4),A=4/3*a*C,I=4/3*i*C,D=[e,t],O=[e+A*_,t-I*S],P=[n+A*R,r-I*N],G=[n,r];if(O[0]=2*D[0]-O[0],O[1]=2*D[1]-O[1],c)return[O,P,G].concat(h);{h=[O,P,G].concat(h);const j=[];for(let W=0;W<h.length;W+=3){const V=xf(h[W][0],h[W][1],d),B=xf(h[W+1][0],h[W+1][1],d),U=xf(h[W+2][0],h[W+2][1],d);j.push([V[0],V[1],B[0],B[1],U[0],U[1]])}return j}}const aPe={randOffset:function(e,t){return bt(e,t)},randOffsetWithRange:function(e,t,n){return Mb(e,t,n)},ellipse:function(e,t,n,r,a){const i=GQ(n,r,a);return ZR(e,t,a,i).opset},doubleLineOps:function(e,t,n,r,a){return _s(e,t,n,r,a,!0)}};function HQ(e,t,n,r,a){return{type:"path",ops:_s(e,t,n,r,a)}}function Tm(e,t,n){const r=(e||[]).length;if(r>2){const a=[];for(let i=0;i<r-1;i++)a.push(..._s(e[i][0],e[i][1],e[i+1][0],e[i+1][1],n));return t&&a.push(..._s(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:"path",ops:a}}return r===2?HQ(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:"path",ops:[]}}function iPe(e,t,n,r,a){return function(i,o){return Tm(i,!0,o)}([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],a)}function Y3(e,t){if(e.length){const n=typeof e[0][0]=="number"?[e]:e,r=Vg(n[0],1*(1+.2*t.roughness),t),a=t.disableMultiStroke?[]:Vg(n[0],1.5*(1+.22*t.roughness),Z3(t));for(let i=1;i<n.length;i++){const o=n[i];if(o.length){const s=Vg(o,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:Vg(o,1.5*(1+.22*t.roughness),Z3(t));for(const c of s)c.op!=="move"&&r.push(c);for(const c of l)c.op!=="move"&&a.push(c)}}return{type:"path",ops:r.concat(a)}}return{type:"path",ops:[]}}function GQ(e,t,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),a=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),i=2*Math.PI/a;let o=Math.abs(e/2),s=Math.abs(t/2);const l=1-n.curveFitting;return o+=bt(o*l,n),s+=bt(s*l,n),{increment:i,rx:o,ry:s}}function ZR(e,t,n,r){const[a,i]=Q3(r.increment,e,t,r.rx,r.ry,1,r.increment*Mb(.1,Mb(.4,1,n),n),n);let o=Fb(a,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[s]=Q3(r.increment,e,t,r.rx,r.ry,1.5,0,n),l=Fb(s,null,n);o=o.concat(l)}return{estimatedPoints:i,opset:{type:"path",ops:o}}}function K3(e,t,n,r,a,i,o,s,l){const c=e,d=t;let p=Math.abs(n/2),h=Math.abs(r/2);p+=bt(.01*p,l),h+=bt(.01*h,l);let g=a,b=i;for(;g<0;)g+=2*Math.PI,b+=2*Math.PI;b-g>2*Math.PI&&(g=0,b=2*Math.PI);const y=2*Math.PI/l.curveStepCount,x=Math.min(y/2,(b-g)/2),w=J3(x,c,d,p,h,g,b,1,l);if(!l.disableMultiStroke){const S=J3(x,c,d,p,h,g,b,1.5,l);w.push(...S)}return o&&(s?w.push(..._s(c,d,c+p*Math.cos(g),d+h*Math.sin(g),l),..._s(c,d,c+p*Math.cos(b),d+h*Math.sin(b),l)):w.push({op:"lineTo",data:[c,d]},{op:"lineTo",data:[c+p*Math.cos(g),d+h*Math.sin(g)]})),{type:"path",ops:w}}function X3(e,t){const n=jQ($Q(ZL(e))),r=[];let a=[0,0],i=[0,0];for(const{key:o,data:s}of n)switch(o){case"M":i=[s[0],s[1]],a=[s[0],s[1]];break;case"L":r.push(..._s(i[0],i[1],s[0],s[1],t)),i=[s[0],s[1]];break;case"C":{const[l,c,d,p,h,g]=s;r.push(...oPe(l,c,d,p,h,g,i,t)),i=[h,g];break}case"Z":r.push(..._s(i[0],i[1],a[0],a[1],t)),i=[a[0],a[1]]}return{type:"path",ops:r}}function v0(e,t){const n=[];for(const r of e)if(r.length){const a=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:"move",data:[r[0][0]+bt(a,t),r[0][1]+bt(a,t)]});for(let o=1;o<i;o++)n.push({op:"lineTo",data:[r[o][0]+bt(a,t),r[o][1]+bt(a,t)]})}}return{type:"fillPath",ops:n}}function Ic(e,t){return function(n,r){let a=n.fillStyle||"hachure";if(!jr[a])switch(a){case"zigzag":jr[a]||(jr[a]=new ZFe(r));break;case"cross-hatch":jr[a]||(jr[a]=new QFe(r));break;case"dots":jr[a]||(jr[a]=new JFe(r));break;case"dashed":jr[a]||(jr[a]=new ePe(r));break;case"zigzag-line":jr[a]||(jr[a]=new tPe(r));break;default:a="hachure",jr[a]||(jr[a]=new XL(r))}return jr[a]}(t,aPe).fillPolygons(e,t)}function Z3(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function qQ(e){return e.randomizer||(e.randomizer=new nPe(e.seed||0)),e.randomizer.next()}function Mb(e,t,n,r=1){return n.roughness*r*(qQ(n)*(t-e)+e)}function bt(e,t,n=1){return Mb(-e,e,t,n)}function _s(e,t,n,r,a,i=!1){const o=i?a.disableMultiStrokeFill:a.disableMultiStroke,s=QR(e,t,n,r,a,!0,!1);if(o)return s;const l=QR(e,t,n,r,a,!0,!0);return s.concat(l)}function QR(e,t,n,r,a,i,o){const s=Math.pow(e-n,2)+Math.pow(t-r,2),l=Math.sqrt(s);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let d=a.maxRandomnessOffset||0;d*d*100>s&&(d=l/10);const p=d/2,h=.2+.2*qQ(a);let g=a.bowing*a.maxRandomnessOffset*(r-t)/200,b=a.bowing*a.maxRandomnessOffset*(e-n)/200;g=bt(g,a,c),b=bt(b,a,c);const y=[],x=()=>bt(p,a,c),w=()=>bt(d,a,c),S=a.preserveVertices;return o?y.push({op:"move",data:[e+(S?0:x()),t+(S?0:x())]}):y.push({op:"move",data:[e+(S?0:bt(d,a,c)),t+(S?0:bt(d,a,c))]}),o?y.push({op:"bcurveTo",data:[g+e+(n-e)*h+x(),b+t+(r-t)*h+x(),g+e+2*(n-e)*h+x(),b+t+2*(r-t)*h+x(),n+(S?0:x()),r+(S?0:x())]}):y.push({op:"bcurveTo",data:[g+e+(n-e)*h+w(),b+t+(r-t)*h+w(),g+e+2*(n-e)*h+w(),b+t+2*(r-t)*h+w(),n+(S?0:w()),r+(S?0:w())]}),y}function Vg(e,t,n){if(!e.length)return[];const r=[];r.push([e[0][0]+bt(t,n),e[0][1]+bt(t,n)]),r.push([e[0][0]+bt(t,n),e[0][1]+bt(t,n)]);for(let a=1;a<e.length;a++)r.push([e[a][0]+bt(t,n),e[a][1]+bt(t,n)]),a===e.length-1&&r.push([e[a][0]+bt(t,n),e[a][1]+bt(t,n)]);return Fb(r,null,n)}function Fb(e,t,n){const r=e.length,a=[];if(r>3){const i=[],o=1-n.curveTightness;a.push({op:"move",data:[e[1][0],e[1][1]]});for(let s=1;s+2<r;s++){const l=e[s];i[0]=[l[0],l[1]],i[1]=[l[0]+(o*e[s+1][0]-o*e[s-1][0])/6,l[1]+(o*e[s+1][1]-o*e[s-1][1])/6],i[2]=[e[s+1][0]+(o*e[s][0]-o*e[s+2][0])/6,e[s+1][1]+(o*e[s][1]-o*e[s+2][1])/6],i[3]=[e[s+1][0],e[s+1][1]],a.push({op:"bcurveTo",data:[i[1][0],i[1][1],i[2][0],i[2][1],i[3][0],i[3][1]]})}}else r===3?(a.push({op:"move",data:[e[1][0],e[1][1]]}),a.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):r===2&&a.push(...QR(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return a}function Q3(e,t,n,r,a,i,o,s){const l=[],c=[];if(s.roughness===0){e/=4,c.push([t+r*Math.cos(-e),n+a*Math.sin(-e)]);for(let d=0;d<=2*Math.PI;d+=e){const p=[t+r*Math.cos(d),n+a*Math.sin(d)];l.push(p),c.push(p)}c.push([t+r*Math.cos(0),n+a*Math.sin(0)]),c.push([t+r*Math.cos(e),n+a*Math.sin(e)])}else{const d=bt(.5,s)-Math.PI/2;c.push([bt(i,s)+t+.9*r*Math.cos(d-e),bt(i,s)+n+.9*a*Math.sin(d-e)]);const p=2*Math.PI+d-.01;for(let h=d;h<p;h+=e){const g=[bt(i,s)+t+r*Math.cos(h),bt(i,s)+n+a*Math.sin(h)];l.push(g),c.push(g)}c.push([bt(i,s)+t+r*Math.cos(d+2*Math.PI+.5*o),bt(i,s)+n+a*Math.sin(d+2*Math.PI+.5*o)]),c.push([bt(i,s)+t+.98*r*Math.cos(d+o),bt(i,s)+n+.98*a*Math.sin(d+o)]),c.push([bt(i,s)+t+.9*r*Math.cos(d+.5*o),bt(i,s)+n+.9*a*Math.sin(d+.5*o)])}return[c,l]}function J3(e,t,n,r,a,i,o,s,l){const c=i+bt(.1,l),d=[];d.push([bt(s,l)+t+.9*r*Math.cos(c-e),bt(s,l)+n+.9*a*Math.sin(c-e)]);for(let p=c;p<=o;p+=e)d.push([bt(s,l)+t+r*Math.cos(p),bt(s,l)+n+a*Math.sin(p)]);return d.push([t+r*Math.cos(o),n+a*Math.sin(o)]),d.push([t+r*Math.cos(o),n+a*Math.sin(o)]),Fb(d,null,l)}function oPe(e,t,n,r,a,i,o,s){const l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let d=[0,0];const p=s.disableMultiStroke?1:2,h=s.preserveVertices;for(let g=0;g<p;g++)g===0?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(h?0:bt(c[0],s)),o[1]+(h?0:bt(c[0],s))]}),d=h?[a,i]:[a+bt(c[g],s),i+bt(c[g],s)],l.push({op:"bcurveTo",data:[e+bt(c[g],s),t+bt(c[g],s),n+bt(c[g],s),r+bt(c[g],s),d[0],d[1]]});return l}function Sf(e){return[...e]}function e5(e,t=0){const n=e.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(n===3)r.push(Sf(e[0]),Sf(e[1]),Sf(e[2]),Sf(e[2]));else{const a=[];a.push(e[0],e[0]);for(let s=1;s<e.length;s++)a.push(e[s]),s===e.length-1&&a.push(e[s]);const i=[],o=1-t;r.push(Sf(a[0]));for(let s=1;s+2<a.length;s++){const l=a[s];i[0]=[l[0],l[1]],i[1]=[l[0]+(o*a[s+1][0]-o*a[s-1][0])/6,l[1]+(o*a[s+1][1]-o*a[s-1][1])/6],i[2]=[a[s+1][0]+(o*a[s][0]-o*a[s+2][0])/6,a[s+1][1]+(o*a[s][1]-o*a[s+2][1])/6],i[3]=[a[s+1][0],a[s+1][1]],r.push(i[1],i[2],i[3])}}return r}function Am(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function sPe(e,t,n){const r=Am(t,n);if(r===0)return Am(e,t);let a=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return a=Math.max(0,Math.min(1,a)),Am(e,sl(t,n,a))}function sl(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function JR(e,t,n,r){const a=r||[];if(function(s,l){const c=s[l+0],d=s[l+1],p=s[l+2],h=s[l+3];let g=3*d[0]-2*c[0]-h[0];g*=g;let b=3*d[1]-2*c[1]-h[1];b*=b;let y=3*p[0]-2*h[0]-c[0];y*=y;let x=3*p[1]-2*h[1]-c[1];return x*=x,g<y&&(g=y),b<x&&(b=x),g+b}(e,t)<n){const s=e[t+0];a.length?(i=a[a.length-1],o=s,Math.sqrt(Am(i,o))>1&&a.push(s)):a.push(s),a.push(e[t+3])}else{const l=e[t+0],c=e[t+1],d=e[t+2],p=e[t+3],h=sl(l,c,.5),g=sl(c,d,.5),b=sl(d,p,.5),y=sl(h,g,.5),x=sl(g,b,.5),w=sl(y,x,.5);JR([l,h,y,w],0,n,a),JR([w,x,b,p],0,n,a)}var i,o;return a}function lPe(e,t){return Pb(e,0,e.length,t)}function Pb(e,t,n,r,a){const i=a||[],o=e[t],s=e[n-1];let l=0,c=1;for(let d=t+1;d<n-1;++d){const p=sPe(e[d],o,s);p>l&&(l=p,c=d)}return Math.sqrt(l)>r?(Pb(e,t,c+1,r,i),Pb(e,c,n,r,i)):(i.length||i.push(o),i.push(s)),i}function x0(e,t=.15,n){const r=[],a=(e.length-1)/3;for(let i=0;i<a;i++)JR(e,3*i,t,r);return n&&n>0?Pb(r,0,r.length,n):r}const sa="none";class Bb{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,n,r){return{shape:t,sets:n||[],options:r||this.defaultOptions}}line(t,n,r,a,i){const o=this._o(i);return this._d("line",[HQ(t,n,r,a,o)],o)}rectangle(t,n,r,a,i){const o=this._o(i),s=[],l=iPe(t,n,r,a,o);if(o.fill){const c=[[t,n],[t+r,n],[t+r,n+a],[t,n+a]];o.fillStyle==="solid"?s.push(v0([c],o)):s.push(Ic([c],o))}return o.stroke!==sa&&s.push(l),this._d("rectangle",s,o)}ellipse(t,n,r,a,i){const o=this._o(i),s=[],l=GQ(r,a,o),c=ZR(t,n,o,l);if(o.fill)if(o.fillStyle==="solid"){const d=ZR(t,n,o,l).opset;d.type="fillPath",s.push(d)}else s.push(Ic([c.estimatedPoints],o));return o.stroke!==sa&&s.push(c.opset),this._d("ellipse",s,o)}circle(t,n,r,a){const i=this.ellipse(t,n,r,r,a);return i.shape="circle",i}linearPath(t,n){const r=this._o(n);return this._d("linearPath",[Tm(t,!1,r)],r)}arc(t,n,r,a,i,o,s=!1,l){const c=this._o(l),d=[],p=K3(t,n,r,a,i,o,s,!0,c);if(s&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const g=K3(t,n,r,a,i,o,!0,!1,h);g.type="fillPath",d.push(g)}else d.push(function(h,g,b,y,x,w,S){const _=h,N=g;let R=Math.abs(b/2),C=Math.abs(y/2);R+=bt(.01*R,S),C+=bt(.01*C,S);let A=x,I=w;for(;A<0;)A+=2*Math.PI,I+=2*Math.PI;I-A>2*Math.PI&&(A=0,I=2*Math.PI);const D=(I-A)/S.curveStepCount,O=[];for(let P=A;P<=I;P+=D)O.push([_+R*Math.cos(P),N+C*Math.sin(P)]);return O.push([_+R*Math.cos(I),N+C*Math.sin(I)]),O.push([_,N]),Ic([O],S)}(t,n,r,a,i,o,c));return c.stroke!==sa&&d.push(p),this._d("arc",d,c)}curve(t,n){const r=this._o(n),a=[],i=Y3(t,r);if(r.fill&&r.fill!==sa)if(r.fillStyle==="solid"){const o=Y3(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],s=t;if(s.length){const l=typeof s[0][0]=="number"?[s]:s;for(const c of l)c.length<3?o.push(...c):c.length===3?o.push(...x0(e5([c[0],c[0],c[1],c[2]]),10,(1+r.roughness)/2)):o.push(...x0(e5(c),10,(1+r.roughness)/2))}o.length&&a.push(Ic([o],r))}return r.stroke!==sa&&a.push(i),this._d("curve",a,r)}polygon(t,n){const r=this._o(n),a=[],i=Tm(t,!0,r);return r.fill&&(r.fillStyle==="solid"?a.push(v0([t],r)):a.push(Ic([t],r))),r.stroke!==sa&&a.push(i),this._d("polygon",a,r)}path(t,n){const r=this._o(n),a=[];if(!t)return this._d("path",a,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=r.fill&&r.fill!=="transparent"&&r.fill!==sa,o=r.stroke!==sa,s=!!(r.simplification&&r.simplification<1),l=function(d,p,h){const g=jQ($Q(ZL(d))),b=[];let y=[],x=[0,0],w=[];const S=()=>{w.length>=4&&y.push(...x0(w,p)),w=[]},_=()=>{S(),y.length&&(b.push(y),y=[])};for(const{key:R,data:C}of g)switch(R){case"M":_(),x=[C[0],C[1]],y.push(x);break;case"L":S(),y.push([C[0],C[1]]);break;case"C":if(!w.length){const A=y.length?y[y.length-1]:x;w.push([A[0],A[1]])}w.push([C[0],C[1]]),w.push([C[2],C[3]]),w.push([C[4],C[5]]);break;case"Z":S(),y.push([x[0],x[1]])}if(_(),!h)return b;const N=[];for(const R of b){const C=lPe(R,h);C.length&&N.push(C)}return N}(t,1,s?4-4*(r.simplification||1):(1+r.roughness)/2),c=X3(t,r);if(i)if(r.fillStyle==="solid")if(l.length===1){const d=X3(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else a.push(v0(l,r));else a.push(Ic(l,r));return o&&(s?l.forEach(d=>{a.push(Tm(d,!1,r))}):a.push(c)),this._d("path",a,r)}opsToPath(t,n){let r="";for(const a of t.ops){const i=typeof n=="number"&&n>=0?a.data.map(o=>+o.toFixed(n)):a.data;switch(a.op){case"move":r+=`M${i[0]} ${i[1]} `;break;case"bcurveTo":r+=`C${i[0]} ${i[1]}, ${i[2]} ${i[3]}, ${i[4]} ${i[5]} `;break;case"lineTo":r+=`L${i[0]} ${i[1]} `}}return r.trim()}toPaths(t){const n=t.sets||[],r=t.options||this.defaultOptions,a=[];for(const i of n){let o=null;switch(i.type){case"path":o={d:this.opsToPath(i),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:sa};break;case"fillPath":o={d:this.opsToPath(i),stroke:sa,strokeWidth:0,fill:r.fill||sa};break;case"fillSketch":o=this.fillSketch(i,r)}o&&a.push(o)}return a}fillSketch(t,n){let r=n.fillWeight;return r<0&&(r=n.strokeWidth/2),{d:this.opsToPath(t),stroke:n.fill||sa,strokeWidth:r,fill:sa}}_mergedShape(t){return t.filter((n,r)=>r===0||n.op!=="move")}}class cPe{constructor(t,n){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new Bb(n)}draw(t){const n=t.sets||[],r=t.options||this.getDefaultOptions(),a=this.ctx,i=t.options.fixedDecimalPlaceDigits;for(const o of n)switch(o.type){case"path":a.save(),a.strokeStyle=r.stroke==="none"?"transparent":r.stroke,a.lineWidth=r.strokeWidth,r.strokeLineDash&&a.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(a.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(a,o,i),a.restore();break;case"fillPath":{a.save(),a.fillStyle=r.fill||"";const s=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,o,i,s),a.restore();break}case"fillSketch":this.fillSketch(a,o,r)}}fillSketch(t,n,r){let a=r.fillWeight;a<0&&(a=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=a,this._drawToContext(t,n,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,n,r,a="nonzero"){t.beginPath();for(const i of n.ops){const o=typeof r=="number"&&r>=0?i.data.map(s=>+s.toFixed(r)):i.data;switch(i.op){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}n.type==="fillPath"?t.fill(a):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,n,r,a,i){const o=this.gen.line(t,n,r,a,i);return this.draw(o),o}rectangle(t,n,r,a,i){const o=this.gen.rectangle(t,n,r,a,i);return this.draw(o),o}ellipse(t,n,r,a,i){const o=this.gen.ellipse(t,n,r,a,i);return this.draw(o),o}circle(t,n,r,a){const i=this.gen.circle(t,n,r,a);return this.draw(i),i}linearPath(t,n){const r=this.gen.linearPath(t,n);return this.draw(r),r}polygon(t,n){const r=this.gen.polygon(t,n);return this.draw(r),r}arc(t,n,r,a,i,o,s=!1,l){const c=this.gen.arc(t,n,r,a,i,o,s,l);return this.draw(c),c}curve(t,n){const r=this.gen.curve(t,n);return this.draw(r),r}path(t,n){const r=this.gen.path(t,n);return this.draw(r),r}}const Yg="http://www.w3.org/2000/svg";class uPe{constructor(t,n){this.svg=t,this.gen=new Bb(n)}draw(t){const n=t.sets||[],r=t.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,i=a.createElementNS(Yg,"g"),o=t.options.fixedDecimalPlaceDigits;for(const s of n){let l=null;switch(s.type){case"path":l=a.createElementNS(Yg,"path"),l.setAttribute("d",this.opsToPath(s,o)),l.setAttribute("stroke",r.stroke),l.setAttribute("stroke-width",r.strokeWidth+""),l.setAttribute("fill","none"),r.strokeLineDash&&l.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":l=a.createElementNS(Yg,"path"),l.setAttribute("d",this.opsToPath(s,o)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",r.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(a,s,r)}l&&i.appendChild(l)}return i}fillSketch(t,n,r){let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const i=t.createElementNS(Yg,"path");return i.setAttribute("d",this.opsToPath(n,r.fixedDecimalPlaceDigits)),i.setAttribute("stroke",r.fill||""),i.setAttribute("stroke-width",a+""),i.setAttribute("fill","none"),r.fillLineDash&&i.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,n){return this.gen.opsToPath(t,n)}line(t,n,r,a,i){const o=this.gen.line(t,n,r,a,i);return this.draw(o)}rectangle(t,n,r,a,i){const o=this.gen.rectangle(t,n,r,a,i);return this.draw(o)}ellipse(t,n,r,a,i){const o=this.gen.ellipse(t,n,r,a,i);return this.draw(o)}circle(t,n,r,a){const i=this.gen.circle(t,n,r,a);return this.draw(i)}linearPath(t,n){const r=this.gen.linearPath(t,n);return this.draw(r)}polygon(t,n){const r=this.gen.polygon(t,n);return this.draw(r)}arc(t,n,r,a,i,o,s=!1,l){const c=this.gen.arc(t,n,r,a,i,o,s,l);return this.draw(c)}curve(t,n){const r=this.gen.curve(t,n);return this.draw(r)}path(t,n){const r=this.gen.path(t,n);return this.draw(r)}}var rt={canvas:(e,t)=>new cPe(e,t),svg:(e,t)=>new uPe(e,t),generator:e=>new Bb(e),newSeed:()=>Bb.newSeed()},St=z(async(e,t,n)=>{var p,h;let r;const a=t.useHtmlLabels||Vn((p=Qt())==null?void 0:p.htmlLabels);n?r=n:r="node default";const i=e.insert("g").attr("class",r).attr("id",t.domId||t.id),o=i.insert("g").attr("class","label").attr("style",Mr(t.labelStyle));let s;t.label===void 0?s="":s=typeof t.label=="string"?t.label:t.label[0];const l=await Os(o,Ll(Gl(s),Qt()),{useHtmlLabels:a,width:t.width||((h=Qt().flowchart)==null?void 0:h.wrappingWidth),cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let c=l.getBBox();const d=((t==null?void 0:t.padding)??0)/2;if(a){const g=l.children[0],b=Yt(l),y=g.getElementsByTagName("img");if(y){const x=s.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...y].map(w=>new Promise(S=>{function _(){if(w.style.display="flex",w.style.flexDirection="column",x){const N=Qt().fontSize?Qt().fontSize:window.getComputedStyle(document.body).fontSize,R=5,[C=sK.fontSize]=tv(N),A=C*R+"px";w.style.minWidth=A,w.style.maxWidth=A}else w.style.width="100%";S(w)}z(_,"setupImage"),setTimeout(()=>{w.complete&&_()}),w.addEventListener("error",_),w.addEventListener("load",_)})))}c=g.getBoundingClientRect(),b.attr("width",c.width),b.attr("height",c.height)}return a?o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):o.attr("transform","translate(0, "+-c.height/2+")"),t.centerLabel&&o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:i,bbox:c,halfPadding:d,label:o}},"labelHelper"),S0=z(async(e,t,n)=>{var l,c,d,p,h,g;const r=n.useHtmlLabels||Vn((c=(l=Qt())==null?void 0:l.flowchart)==null?void 0:c.htmlLabels),a=e.insert("g").attr("class","label").attr("style",n.labelStyle||""),i=await Os(a,Ll(Gl(t),Qt()),{useHtmlLabels:r,width:n.width||((p=(d=Qt())==null?void 0:d.flowchart)==null?void 0:p.wrappingWidth),style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img});let o=i.getBBox();const s=n.padding/2;if(Vn((g=(h=Qt())==null?void 0:h.flowchart)==null?void 0:g.htmlLabels)){const b=i.children[0],y=Yt(i);o=b.getBoundingClientRect(),y.attr("width",o.width),y.attr("height",o.height)}return r?a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):a.attr("transform","translate(0, "+-o.height/2+")"),n.centerLabel&&a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:e,bbox:o,halfPadding:s,label:a}},"insertLabel"),st=z((e,t)=>{const n=t.node().getBBox();e.width=n.width,e.height=n.height},"updateNodeBounds"),yt=z((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function Kt(e){const t=e.map((n,r)=>`${r===0?"M":"L"}${n.x},${n.y}`);return t.push("Z"),t.join(" ")}z(Kt,"createPathFromPoints");function Cs(e,t,n,r,a,i){const o=[],l=n-e,c=r-t,d=l/i,p=2*Math.PI/d,h=t+c/2;for(let g=0;g<=50;g++){const b=g/50,y=e+b*l,x=h+a*Math.sin(p*(y-e));o.push({x:y,y:x})}return o}z(Cs,"generateFullSineWavePoints");function QL(e,t,n,r,a,i){const o=[],s=a*Math.PI/180,d=(i*Math.PI/180-s)/(r-1);for(let p=0;p<r;p++){const h=s+p*d,g=e+n*Math.cos(h),b=t+n*Math.sin(h);o.push({x:-g,y:-b})}return o}z(QL,"generateCirclePoints");var dPe=z((e,t)=>{var n=e.x,r=e.y,a=t.x-n,i=t.y-r,o=e.width/2,s=e.height/2,l,c;return Math.abs(i)*o>Math.abs(a)*s?(i<0&&(s=-s),l=i===0?0:s*a/i,c=s):(a<0&&(o=-o),l=o,c=a===0?0:o*i/a),{x:n+l,y:r+c}},"intersectRect"),Ju=dPe;function WQ(e,t){t&&e.attr("style",t)}z(WQ,"applyStyle");async function VQ(e){const t=Yt(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=t.append("xhtml:div");let r=e.label;e.label&&wu(e.label)&&(r=await aL(e.label.replace(Xu.lineBreakRegex,`
`),Qt()));const a=e.isNode?"nodeLabel":"edgeLabel";return n.html('<span class="'+a+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+r+"</span>"),WQ(n,e.labelStyle),n.style("display","inline-block"),n.style("padding-right","1px"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}z(VQ,"addHtmlLabel");var fPe=z(async(e,t,n,r)=>{let a=e||"";if(typeof a=="object"&&(a=a[0]),Vn(Qt().flowchart.htmlLabels)){a=a.replace(/\\n|\n/g,"<br />"),Le.info("vertexText"+a);const i={isNode:r,label:Gl(a).replace(/fa[blrs]?:fa-[\w-]+/g,s=>`<i class='${s.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")};return await VQ(i)}else{const i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("style",t.replace("color:","fill:"));let o=[];typeof a=="string"?o=a.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(a)?o=a:o=[];for(const s of o){const l=document.createElementNS("http://www.w3.org/2000/svg","tspan");l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),l.setAttribute("dy","1em"),l.setAttribute("x","0"),n?l.setAttribute("class","title-row"):l.setAttribute("class","row"),l.textContent=s.trim(),i.appendChild(l)}return i}},"createLabel"),yl=fPe,Do=z((e,t,n,r,a)=>["M",e+a,t,"H",e+n-a,"A",a,a,0,0,1,e+n,t+a,"V",t+r-a,"A",a,a,0,0,1,e+n-a,t+r,"H",e+a,"A",a,a,0,0,1,e,t+r-a,"V",t+a,"A",a,a,0,0,1,e+a,t,"Z"].join(" "),"createRoundedRectPathD"),pPe=z(e=>{const{handDrawnSeed:t}=Qt();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),ed=z(e=>{const t=hPe([...e.cssCompiledStyles||[],...e.cssStyles||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),hPe=z(e=>{const t=new Map;return e.forEach(n=>{const[r,a]=n.split(":");t.set(r.trim(),a==null?void 0:a.trim())}),t},"styles2Map"),YQ=z(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),lt=z(e=>{const{stylesArray:t}=ed(e),n=[],r=[],a=[],i=[];return t.forEach(o=>{const s=o[0];YQ(s)?n.push(o.join(":")+" !important"):(r.push(o.join(":")+" !important"),s.includes("stroke")&&a.push(o.join(":")+" !important"),s==="fill"&&i.push(o.join(":")+" !important"))}),{labelStyles:n.join(";"),nodeStyles:r.join(";"),stylesArray:t,borderStyles:a,backgroundStyles:i}},"styles2String"),at=z((e,t)=>{var l;const{themeVariables:n,handDrawnSeed:r}=Qt(),{nodeBorder:a,mainBkg:i}=n,{stylesMap:o}=ed(e);return Object.assign({roughness:.7,fill:o.get("fill")||i,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||a,seed:r,strokeWidth:((l=o.get("stroke-width"))==null?void 0:l.replace("px",""))||1.3,fillLineDash:[0,0]},t)},"userNodeOverrides"),KQ=z(async(e,t)=>{Le.info("Creating subgraph rect for ",t.id,t);const n=Qt(),{themeVariables:r,handDrawnSeed:a}=n,{clusterBkg:i,clusterBorder:o}=r,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:d}=lt(t),p=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),h=Vn(n.flowchart.htmlLabels),g=p.insert("g").attr("class","cluster-label "),b=await Os(g,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0});let y=b.getBBox();if(Vn(n.flowchart.htmlLabels)){const A=b.children[0],I=Yt(b);y=A.getBoundingClientRect(),I.attr("width",y.width),I.attr("height",y.height)}const x=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const w=t.height,S=t.x-x/2,_=t.y-w/2;Le.trace("Data ",t,JSON.stringify(t));let N;if(t.look==="handDrawn"){const A=rt.svg(p),I=at(t,{roughness:.7,fill:i,stroke:o,fillWeight:3,seed:a}),D=A.path(Do(S,_,x,w,0),I);N=p.insert(()=>(Le.debug("Rough node insert CXC",D),D),":first-child"),N.select("path:nth-child(2)").attr("style",c.join(";")),N.select("path").attr("style",d.join(";").replace("fill","stroke"))}else N=p.insert("rect",":first-child"),N.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",S).attr("y",_).attr("width",x).attr("height",w);const{subGraphTitleTopMargin:R}=bL(n);if(g.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+R})`),s){const A=g.select("span");A&&A.attr("style",s)}const C=N.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=y.height-t.padding/2,t.intersect=function(A){return Ju(t,A)},{cluster:p,labelBBox:y}},"rect"),gPe=z((e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),a=0*t.padding,i=a/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-i).attr("y",t.y-t.height/2-i).attr("width",t.width+a).attr("height",t.height+a).attr("fill","none");const o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(s){return Ju(t,s)},{cluster:n,labelBBox:{width:0,height:0}}},"noteGroup"),mPe=z(async(e,t)=>{const n=Qt(),{themeVariables:r,handDrawnSeed:a}=n,{altBackground:i,compositeBackground:o,compositeTitleBackground:s,nodeBorder:l}=r,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),d=c.insert("g",":first-child"),p=c.insert("g").attr("class","cluster-label");let h=c.append("rect");const g=p.node().appendChild(await yl(t.label,t.labelStyle,void 0,!0));let b=g.getBBox();if(Vn(n.flowchart.htmlLabels)){const D=g.children[0],O=Yt(g);b=D.getBoundingClientRect(),O.attr("width",b.width),O.attr("height",b.height)}const y=0*t.padding,x=y/2,w=(t.width<=b.width+t.padding?b.width+t.padding:t.width)+y;t.width<=b.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;const S=t.height+y,_=t.height+y-b.height-6,N=t.x-w/2,R=t.y-S/2;t.width=w;const C=t.y-t.height/2-x+b.height+2;let A;if(t.look==="handDrawn"){const D=t.cssClasses.includes("statediagram-cluster-alt"),O=rt.svg(c),P=t.rx||t.ry?O.path(Do(N,R,w,S,10),{roughness:.7,fill:s,fillStyle:"solid",stroke:l,seed:a}):O.rectangle(N,R,w,S,{seed:a});A=c.insert(()=>P,":first-child");const G=O.rectangle(N,C,w,_,{fill:D?i:o,fillStyle:D?"hachure":"solid",stroke:l,seed:a});A=c.insert(()=>P,":first-child"),h=c.insert(()=>G)}else A=d.insert("rect",":first-child"),A.attr("class","outer").attr("x",N).attr("y",R).attr("width",w).attr("height",S).attr("data-look",t.look),h.attr("class","inner").attr("x",N).attr("y",C).attr("width",w).attr("height",_);p.attr("transform",`translate(${t.x-b.width/2}, ${R+1-(Vn(n.flowchart.htmlLabels)?0:3)})`);const I=A.node().getBBox();return t.height=I.height,t.offsetX=0,t.offsetY=b.height-t.padding/2,t.labelBBox=b,t.intersect=function(D){return Ju(t,D)},{cluster:c,labelBBox:b}},"roundedWithTitle"),bPe=z(async(e,t)=>{Le.info("Creating subgraph rect for ",t.id,t);const n=Qt(),{themeVariables:r,handDrawnSeed:a}=n,{clusterBkg:i,clusterBorder:o}=r,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:d}=lt(t),p=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),h=Vn(n.flowchart.htmlLabels),g=p.insert("g").attr("class","cluster-label "),b=await Os(g,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width});let y=b.getBBox();if(Vn(n.flowchart.htmlLabels)){const A=b.children[0],I=Yt(b);y=A.getBoundingClientRect(),I.attr("width",y.width),I.attr("height",y.height)}const x=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const w=t.height,S=t.x-x/2,_=t.y-w/2;Le.trace("Data ",t,JSON.stringify(t));let N;if(t.look==="handDrawn"){const A=rt.svg(p),I=at(t,{roughness:.7,fill:i,stroke:o,fillWeight:4,seed:a}),D=A.path(Do(S,_,x,w,t.rx),I);N=p.insert(()=>(Le.debug("Rough node insert CXC",D),D),":first-child"),N.select("path:nth-child(2)").attr("style",c.join(";")),N.select("path").attr("style",d.join(";").replace("fill","stroke"))}else N=p.insert("rect",":first-child"),N.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",S).attr("y",_).attr("width",x).attr("height",w);const{subGraphTitleTopMargin:R}=bL(n);if(g.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+R})`),s){const A=g.select("span");A&&A.attr("style",s)}const C=N.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=y.height-t.padding/2,t.intersect=function(A){return Ju(t,A)},{cluster:p,labelBBox:y}},"kanbanSection"),yPe=z((e,t)=>{const n=Qt(),{themeVariables:r,handDrawnSeed:a}=n,{nodeBorder:i}=r,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),s=o.insert("g",":first-child"),l=0*t.padding,c=t.width+l;t.diff=-t.padding;const d=t.height+l,p=t.x-c/2,h=t.y-d/2;t.width=c;let g;if(t.look==="handDrawn"){const x=rt.svg(o).rectangle(p,h,c,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:i,seed:a});g=o.insert(()=>x,":first-child")}else g=s.insert("rect",":first-child"),g.attr("class","divider").attr("x",p).attr("y",h).attr("width",c).attr("height",d).attr("data-look",t.look);const b=g.node().getBBox();return t.height=b.height,t.offsetX=0,t.offsetY=0,t.intersect=function(y){return Ju(t,y)},{cluster:o,labelBBox:{}}},"divider"),vPe=KQ,xPe={rect:KQ,squareRect:vPe,roundedWithTitle:mPe,noteGroup:gPe,divider:yPe,kanbanSection:bPe},XQ=new Map,SPe=z(async(e,t)=>{const n=t.shape||"rect",r=await xPe[n](e,t);return XQ.set(t.id,r),r},"insertCluster"),f7e=z(()=>{XQ=new Map},"clear");function ZQ(e,t){return e.intersect(t)}z(ZQ,"intersectNode");var wPe=ZQ;function QQ(e,t,n,r){var a=e.x,i=e.y,o=a-r.x,s=i-r.y,l=Math.sqrt(t*t*s*s+n*n*o*o),c=Math.abs(t*n*o/l);r.x<a&&(c=-c);var d=Math.abs(t*n*s/l);return r.y<i&&(d=-d),{x:a+c,y:i+d}}z(QQ,"intersectEllipse");var JQ=QQ;function eJ(e,t,n){return JQ(e,t,t,n)}z(eJ,"intersectCircle");var EPe=eJ;function tJ(e,t,n,r){var a,i,o,s,l,c,d,p,h,g,b,y,x,w,S;if(a=t.y-e.y,o=e.x-t.x,l=t.x*e.y-e.x*t.y,h=a*n.x+o*n.y+l,g=a*r.x+o*r.y+l,!(h!==0&&g!==0&&e2(h,g))&&(i=r.y-n.y,s=n.x-r.x,c=r.x*n.y-n.x*r.y,d=i*e.x+s*e.y+c,p=i*t.x+s*t.y+c,!(d!==0&&p!==0&&e2(d,p))&&(b=a*s-i*o,b!==0)))return y=Math.abs(b/2),x=o*c-s*l,w=x<0?(x-y)/b:(x+y)/b,x=i*l-a*c,S=x<0?(x-y)/b:(x+y)/b,{x:w,y:S}}z(tJ,"intersectLine");function e2(e,t){return e*t>0}z(e2,"sameSign");var kPe=tJ;function nJ(e,t,n){let r=e.x,a=e.y,i=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){o=Math.min(o,d.x),s=Math.min(s,d.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let l=r-e.width/2-o,c=a-e.height/2-s;for(let d=0;d<t.length;d++){let p=t[d],h=t[d<t.length-1?d+1:0],g=kPe(e,n,{x:l+p.x,y:c+p.y},{x:l+h.x,y:c+h.y});g&&i.push(g)}return i.length?(i.length>1&&i.sort(function(d,p){let h=d.x-n.x,g=d.y-n.y,b=Math.sqrt(h*h+g*g),y=p.x-n.x,x=p.y-n.y,w=Math.sqrt(y*y+x*x);return b<w?-1:b===w?0:1}),i[0]):e}z(nJ,"intersectPolygon");var _Pe=nJ,et={node:wPe,circle:EPe,ellipse:JQ,polygon:_Pe,rect:Ju};function rJ(e,t){const{labelStyles:n}=lt(t);t.labelStyle=n;const r=yt(t);let a=r;r||(a="anchor");const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),o=1,{cssStyles:s}=t,l=rt.svg(i),c=at(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const d=l.circle(0,0,o*2,c),p=i.insert(()=>d,":first-child");return p.attr("class","anchor").attr("style",Mr(s)),st(t,p),t.intersect=function(h){return Le.info("Circle intersect",t,o,h),et.circle(t,o,h)},i}z(rJ,"anchor");function t2(e,t,n,r,a,i,o){const l=(e+n)/2,c=(t+r)/2,d=Math.atan2(r-t,n-e),p=(n-e)/2,h=(r-t)/2,g=p/a,b=h/i,y=Math.sqrt(g**2+b**2);if(y>1)throw new Error("The given radii are too small to create an arc between the points.");const x=Math.sqrt(1-y**2),w=l+x*i*Math.sin(d)*(o?-1:1),S=c-x*a*Math.cos(d)*(o?-1:1),_=Math.atan2((t-S)/i,(e-w)/a);let R=Math.atan2((r-S)/i,(n-w)/a)-_;o&&R<0&&(R+=2*Math.PI),!o&&R>0&&(R-=2*Math.PI);const C=[];for(let A=0;A<20;A++){const I=A/19,D=_+I*R,O=w+a*Math.cos(D),P=S+i*Math.sin(D);C.push({x:O,y:P})}return C}z(t2,"generateArcPoints");async function aJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=i.width+t.padding+20,s=i.height+t.padding,l=s/2,c=l/(2.5+s/50),{cssStyles:d}=t,p=[{x:o/2,y:-s/2},{x:-o/2,y:-s/2},...t2(-o/2,-s/2,-o/2,s/2,c,l,!1),{x:o/2,y:s/2},...t2(o/2,s/2,o/2,-s/2,c,l,!0)],h=rt.svg(a),g=at(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const b=Kt(p),y=h.path(b,g),x=a.insert(()=>y,":first-child");return x.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",d),r&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",r),x.attr("transform",`translate(${c/2}, 0)`),st(t,x),t.intersect=function(w){return et.polygon(t,p,w)},a}z(aJ,"bowTieRect");function Io(e,t,n,r){return e.insert("polygon",":first-child").attr("points",r.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+n/2+")")}z(Io,"insertPolygonShape");async function iJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=i.height+t.padding,s=12,l=i.width+t.padding+s,c=0,d=l,p=-o,h=0,g=[{x:c+s,y:p},{x:d,y:p},{x:d,y:h},{x:c,y:h},{x:c,y:p+s},{x:c+s,y:p}];let b;const{cssStyles:y}=t;if(t.look==="handDrawn"){const x=rt.svg(a),w=at(t,{}),S=Kt(g),_=x.path(S,w);b=a.insert(()=>_,":first-child").attr("transform",`translate(${-l/2}, ${o/2})`),y&&b.attr("style",y)}else b=Io(a,l,o,g);return r&&b.attr("style",r),st(t,b),t.intersect=function(x){return et.polygon(t,g,x)},a}z(iJ,"card");function oJ(e,t){const{nodeStyles:n}=lt(t);t.label="";const r=e.insert("g").attr("class",yt(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,i=Math.max(28,t.width??0),o=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}],s=rt.svg(r),l=at(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=Kt(o),d=s.path(c,l),p=r.insert(()=>d,":first-child");return a&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",a),n&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",n),t.width=28,t.height=28,t.intersect=function(h){return et.polygon(t,o,h)},r}z(oJ,"choice");async function sJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,halfPadding:o}=await St(e,t,yt(t)),s=i.width/2+o;let l;const{cssStyles:c}=t;if(t.look==="handDrawn"){const d=rt.svg(a),p=at(t,{}),h=d.circle(0,0,s*2,p);l=a.insert(()=>h,":first-child"),l.attr("class","basic label-container").attr("style",Mr(c))}else l=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",r).attr("r",s).attr("cx",0).attr("cy",0);return st(t,l),t.intersect=function(d){return Le.info("Circle intersect",t,s,d),et.circle(t,s,d)},a}z(sJ,"circle");function lJ(e){const t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,a={x:r/2*t,y:r/2*n},i={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${i.x},${i.y} L ${s.x},${s.y}
M ${a.x},${a.y} L ${o.x},${o.y}`}z(lJ,"createLine");function cJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n,t.label="";const a=e.insert("g").attr("class",yt(t)).attr("id",t.domId??t.id),i=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:o}=t,s=rt.svg(a),l=at(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=s.circle(0,0,i*2,l),d=lJ(i),p=s.path(d,l),h=a.insert(()=>c,":first-child");return h.insert(()=>p),o&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",o),r&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",r),st(t,h),t.intersect=function(g){return Le.info("crossedCircle intersect",t,{radius:i,point:g}),et.circle(t,i,g)},a}z(cJ,"crossedCircle");function go(e,t,n,r=100,a=0,i=180){const o=[],s=a*Math.PI/180,d=(i*Math.PI/180-s)/(r-1);for(let p=0;p<r;p++){const h=s+p*d,g=e+n*Math.cos(h),b=t+n*Math.sin(h);o.push({x:-g,y:-b})}return o}z(go,"generateCirclePoints");async function uJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=i.width+(t.padding??0),l=i.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:d}=t,p=[...go(s/2,-l/2,c,30,-90,0),{x:-s/2-c,y:c},...go(s/2+c*2,-c,c,20,-180,-270),...go(s/2+c*2,c,c,20,-90,-180),{x:-s/2-c,y:-l/2},...go(s/2,l/2,c,20,0,90)],h=[{x:s/2,y:-l/2-c},{x:-s/2,y:-l/2-c},...go(s/2,-l/2,c,20,-90,0),{x:-s/2-c,y:-c},...go(s/2+s*.1,-c,c,20,-180,-270),...go(s/2+s*.1,c,c,20,-90,-180),{x:-s/2-c,y:l/2},...go(s/2,l/2,c,20,0,90),{x:-s/2,y:l/2+c},{x:s/2,y:l/2+c}],g=rt.svg(a),b=at(t,{fill:"none"});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const x=Kt(p).replace("Z",""),w=g.path(x,b),S=Kt(h),_=g.path(S,{...b}),N=a.insert("g",":first-child");return N.insert(()=>_,":first-child").attr("stroke-opacity",0),N.insert(()=>w,":first-child"),N.attr("class","text"),d&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",d),r&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(${c}, 0)`),o.attr("transform",`translate(${-s/2+c-(i.x-(i.left??0))},${-l/2+(t.padding??0)/2-(i.y-(i.top??0))})`),st(t,N),t.intersect=function(R){return et.polygon(t,h,R)},a}z(uJ,"curlyBraceLeft");function mo(e,t,n,r=100,a=0,i=180){const o=[],s=a*Math.PI/180,d=(i*Math.PI/180-s)/(r-1);for(let p=0;p<r;p++){const h=s+p*d,g=e+n*Math.cos(h),b=t+n*Math.sin(h);o.push({x:g,y:b})}return o}z(mo,"generateCirclePoints");async function dJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=i.width+(t.padding??0),l=i.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:d}=t,p=[...mo(s/2,-l/2,c,20,-90,0),{x:s/2+c,y:-c},...mo(s/2+c*2,-c,c,20,-180,-270),...mo(s/2+c*2,c,c,20,-90,-180),{x:s/2+c,y:l/2},...mo(s/2,l/2,c,20,0,90)],h=[{x:-s/2,y:-l/2-c},{x:s/2,y:-l/2-c},...mo(s/2,-l/2,c,20,-90,0),{x:s/2+c,y:-c},...mo(s/2+c*2,-c,c,20,-180,-270),...mo(s/2+c*2,c,c,20,-90,-180),{x:s/2+c,y:l/2},...mo(s/2,l/2,c,20,0,90),{x:s/2,y:l/2+c},{x:-s/2,y:l/2+c}],g=rt.svg(a),b=at(t,{fill:"none"});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const x=Kt(p).replace("Z",""),w=g.path(x,b),S=Kt(h),_=g.path(S,{...b}),N=a.insert("g",":first-child");return N.insert(()=>_,":first-child").attr("stroke-opacity",0),N.insert(()=>w,":first-child"),N.attr("class","text"),d&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",d),r&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(${-c}, 0)`),o.attr("transform",`translate(${-s/2+(t.padding??0)/2-(i.x-(i.left??0))},${-l/2+(t.padding??0)/2-(i.y-(i.top??0))})`),st(t,N),t.intersect=function(R){return et.polygon(t,h,R)},a}z(dJ,"curlyBraceRight");function cr(e,t,n,r=100,a=0,i=180){const o=[],s=a*Math.PI/180,d=(i*Math.PI/180-s)/(r-1);for(let p=0;p<r;p++){const h=s+p*d,g=e+n*Math.cos(h),b=t+n*Math.sin(h);o.push({x:-g,y:-b})}return o}z(cr,"generateCirclePoints");async function fJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=i.width+(t.padding??0),l=i.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:d}=t,p=[...cr(s/2,-l/2,c,30,-90,0),{x:-s/2-c,y:c},...cr(s/2+c*2,-c,c,20,-180,-270),...cr(s/2+c*2,c,c,20,-90,-180),{x:-s/2-c,y:-l/2},...cr(s/2,l/2,c,20,0,90)],h=[...cr(-s/2+c+c/2,-l/2,c,20,-90,-180),{x:s/2-c/2,y:c},...cr(-s/2-c/2,-c,c,20,0,90),...cr(-s/2-c/2,c,c,20,-90,0),{x:s/2-c/2,y:-c},...cr(-s/2+c+c/2,l/2,c,30,-180,-270)],g=[{x:s/2,y:-l/2-c},{x:-s/2,y:-l/2-c},...cr(s/2,-l/2,c,20,-90,0),{x:-s/2-c,y:-c},...cr(s/2+c*2,-c,c,20,-180,-270),...cr(s/2+c*2,c,c,20,-90,-180),{x:-s/2-c,y:l/2},...cr(s/2,l/2,c,20,0,90),{x:-s/2,y:l/2+c},{x:s/2-c-c/2,y:l/2+c},...cr(-s/2+c+c/2,-l/2,c,20,-90,-180),{x:s/2-c/2,y:c},...cr(-s/2-c/2,-c,c,20,0,90),...cr(-s/2-c/2,c,c,20,-90,0),{x:s/2-c/2,y:-c},...cr(-s/2+c+c/2,l/2,c,30,-180,-270)],b=rt.svg(a),y=at(t,{fill:"none"});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const w=Kt(p).replace("Z",""),S=b.path(w,y),N=Kt(h).replace("Z",""),R=b.path(N,y),C=Kt(g),A=b.path(C,{...y}),I=a.insert("g",":first-child");return I.insert(()=>A,":first-child").attr("stroke-opacity",0),I.insert(()=>S,":first-child"),I.insert(()=>R,":first-child"),I.attr("class","text"),d&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",d),r&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",r),I.attr("transform",`translate(${c-c/4}, 0)`),o.attr("transform",`translate(${-s/2+(t.padding??0)/2-(i.x-(i.left??0))},${-l/2+(t.padding??0)/2-(i.y-(i.top??0))})`),st(t,I),t.intersect=function(D){return et.polygon(t,g,D)},a}z(fJ,"curlyBraces");async function pJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=80,s=20,l=Math.max(o,(i.width+(t.padding??0)*2)*1.25,(t==null?void 0:t.width)??0),c=Math.max(s,i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=c/2,{cssStyles:p}=t,h=rt.svg(a),g=at(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const b=l,y=c,x=b-d,w=y/4,S=[{x,y:0},{x:w,y:0},{x:0,y:y/2},{x:w,y},{x,y},...QL(-x,-y/2,d,50,270,90)],_=Kt(S),N=h.path(_,g),R=a.insert(()=>N,":first-child");return R.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&R.selectChildren("path").attr("style",p),r&&t.look!=="handDrawn"&&R.selectChildren("path").attr("style",r),R.attr("transform",`translate(${-l/2}, ${-c/2})`),st(t,R),t.intersect=function(C){return et.polygon(t,S,C)},a}z(pJ,"curvedTrapezoid");var CPe=z((e,t,n,r,a,i)=>[`M${e},${t+i}`,`a${a},${i} 0,0,0 ${n},0`,`a${a},${i} 0,0,0 ${-n},0`,`l0,${r}`,`a${a},${i} 0,0,0 ${n},0`,`l0,${-r}`].join(" "),"createCylinderPathD"),TPe=z((e,t,n,r,a,i)=>[`M${e},${t+i}`,`M${e+n},${t+i}`,`a${a},${i} 0,0,0 ${-n},0`,`l0,${r}`,`a${a},${i} 0,0,0 ${n},0`,`l0,${-r}`].join(" "),"createOuterCylinderPathD"),APe=z((e,t,n,r,a,i)=>[`M${e-n/2},${-r/2}`,`a${a},${i} 0,0,0 ${n},0`].join(" "),"createInnerCylinderPathD");async function hJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=Math.max(i.width+t.padding,t.width??0),l=s/2,c=l/(2.5+s/50),d=Math.max(i.height+c+t.padding,t.height??0);let p;const{cssStyles:h}=t;if(t.look==="handDrawn"){const g=rt.svg(a),b=TPe(0,0,s,d,l,c),y=APe(0,c,s,d,l,c),x=g.path(b,at(t,{})),w=g.path(y,at(t,{fill:"none"}));p=a.insert(()=>w,":first-child"),p=a.insert(()=>x,":first-child"),p.attr("class","basic label-container"),h&&p.attr("style",h)}else{const g=CPe(0,0,s,d,l,c);p=a.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",Mr(h)).attr("style",r)}return p.attr("label-offset-y",c),p.attr("transform",`translate(${-s/2}, ${-(d/2+c)})`),st(t,p),o.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)+(t.padding??0)/1.5-(i.y-(i.top??0))})`),t.intersect=function(g){const b=et.rect(t,g),y=b.x-(t.x??0);if(l!=0&&(Math.abs(y)<(t.width??0)/2||Math.abs(y)==(t.width??0)/2&&Math.abs(b.y-(t.y??0))>(t.height??0)/2-c)){let x=c*c*(1-y*y/(l*l));x>0&&(x=Math.sqrt(x)),x=c-x,g.y-(t.y??0)>0&&(x=-x),b.y+=x}return b},a}z(hJ,"cylinder");async function gJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=i.width+t.padding,l=i.height+t.padding,c=l*.2,d=-s/2,p=-l/2-c/2,{cssStyles:h}=t,g=rt.svg(a),b=at(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const y=[{x:d,y:p+c},{x:-d,y:p+c},{x:-d,y:-p},{x:d,y:-p},{x:d,y:p},{x:-d,y:p},{x:-d,y:p+c}],x=g.polygon(y.map(S=>[S.x,S.y]),b),w=a.insert(()=>x,":first-child");return w.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",h),r&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",r),o.attr("transform",`translate(${d+(t.padding??0)/2-(i.x-(i.left??0))}, ${p+c+(t.padding??0)/2-(i.y-(i.top??0))})`),st(t,w),t.intersect=function(S){return et.rect(t,S)},a}z(gJ,"dividedRectangle");async function mJ(e,t){var h,g;const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,halfPadding:o}=await St(e,t,yt(t)),l=i.width/2+o+5,c=i.width/2+o;let d;const{cssStyles:p}=t;if(t.look==="handDrawn"){const b=rt.svg(a),y=at(t,{roughness:.2,strokeWidth:2.5}),x=at(t,{roughness:.2,strokeWidth:1.5}),w=b.circle(0,0,l*2,y),S=b.circle(0,0,c*2,x);d=a.insert("g",":first-child"),d.attr("class",Mr(t.cssClasses)).attr("style",Mr(p)),(h=d.node())==null||h.appendChild(w),(g=d.node())==null||g.appendChild(S)}else{d=a.insert("g",":first-child");const b=d.insert("circle",":first-child"),y=d.insert("circle");d.attr("class","basic label-container").attr("style",r),b.attr("class","outer-circle").attr("style",r).attr("r",l).attr("cx",0).attr("cy",0),y.attr("class","inner-circle").attr("style",r).attr("r",c).attr("cx",0).attr("cy",0)}return st(t,d),t.intersect=function(b){return Le.info("DoubleCircle intersect",t,l,b),et.circle(t,l,b)},a}z(mJ,"doublecircle");function bJ(e,t,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:a}=lt(t);t.label="",t.labelStyle=r;const i=e.insert("g").attr("class",yt(t)).attr("id",t.domId??t.id),o=7,{cssStyles:s}=t,l=rt.svg(i),{nodeBorder:c}=n,d=at(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(d.roughness=0);const p=l.circle(0,0,o*2,d),h=i.insert(()=>p,":first-child");return h.selectAll("path").attr("style",`fill: ${c} !important;`),s&&s.length>0&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",s),a&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",a),st(t,h),t.intersect=function(g){return Le.info("filledCircle intersect",t,{radius:o,point:g}),et.circle(t,o,g)},i}z(bJ,"filledCircle");async function yJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=i.width+(t.padding??0),l=s+i.height,c=s+i.height,d=[{x:0,y:-l},{x:c,y:-l},{x:c/2,y:0}],{cssStyles:p}=t,h=rt.svg(a),g=at(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const b=Kt(d),y=h.path(b,g),x=a.insert(()=>y,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return p&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",p),r&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",r),t.width=s,t.height=l,st(t,x),o.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${-l/2+(t.padding??0)/2+(i.y-(i.top??0))})`),t.intersect=function(w){return Le.info("Triangle intersect",t,d,w),et.polygon(t,d,w)},a}z(yJ,"flippedTriangle");function vJ(e,t,{dir:n,config:{state:r,themeVariables:a}}){const{nodeStyles:i}=lt(t);t.label="";const o=e.insert("g").attr("class",yt(t)).attr("id",t.domId??t.id),{cssStyles:s}=t;let l=Math.max(70,(t==null?void 0:t.width)??0),c=Math.max(10,(t==null?void 0:t.height)??0);n==="LR"&&(l=Math.max(10,(t==null?void 0:t.width)??0),c=Math.max(70,(t==null?void 0:t.height)??0));const d=-1*l/2,p=-1*c/2,h=rt.svg(o),g=at(t,{stroke:a.lineColor,fill:a.lineColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const b=h.rectangle(d,p,l,c,g),y=o.insert(()=>b,":first-child");s&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",s),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),st(t,y);const x=(r==null?void 0:r.padding)??0;return t.width&&t.height&&(t.width+=x/2||0,t.height+=x/2||0),t.intersect=function(w){return et.rect(t,w)},o}z(vJ,"forkJoin");async function xJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const a=80,i=50,{shapeSvg:o,bbox:s}=await St(e,t,yt(t)),l=Math.max(a,s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(i,s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=c/2,{cssStyles:p}=t,h=rt.svg(o),g=at(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const b=[{x:-l/2,y:-c/2},{x:l/2-d,y:-c/2},...QL(-l/2+d,0,d,50,90,270),{x:l/2-d,y:c/2},{x:-l/2,y:c/2}],y=Kt(b),x=h.path(y,g),w=o.insert(()=>x,":first-child");return w.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",p),r&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",r),st(t,w),t.intersect=function(S){return Le.info("Pill intersect",t,{radius:d,point:S}),et.polygon(t,b,S)},o}z(xJ,"halfRoundedRectangle");var RPe=z((e,t,n,r,a)=>[`M${e+a},${t}`,`L${e+n-a},${t}`,`L${e+n},${t-r/2}`,`L${e+n-a},${t-r}`,`L${e+a},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createHexagonPathD");async function SJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=4,s=i.height+t.padding,l=s/o,c=i.width+2*l+t.padding,d=[{x:l,y:0},{x:c-l,y:0},{x:c,y:-s/2},{x:c-l,y:-s},{x:l,y:-s},{x:0,y:-s/2}];let p;const{cssStyles:h}=t;if(t.look==="handDrawn"){const g=rt.svg(a),b=at(t,{}),y=RPe(0,0,c,s,l),x=g.path(y,b);p=a.insert(()=>x,":first-child").attr("transform",`translate(${-c/2}, ${s/2})`),h&&p.attr("style",h)}else p=Io(a,c,s,d);return r&&p.attr("style",r),t.width=c,t.height=s,st(t,p),t.intersect=function(g){return et.polygon(t,d,g)},a}z(SJ,"hexagon");async function wJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.label="",t.labelStyle=n;const{shapeSvg:a}=await St(e,t,yt(t)),i=Math.max(30,(t==null?void 0:t.width)??0),o=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:s}=t,l=rt.svg(a),c=at(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const d=[{x:0,y:0},{x:i,y:0},{x:0,y:o},{x:i,y:o}],p=Kt(d),h=l.path(p,c),g=a.insert(()=>h,":first-child");return g.attr("class","basic label-container"),s&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",s),r&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",r),g.attr("transform",`translate(${-i/2}, ${-o/2})`),st(t,g),t.intersect=function(b){return Le.info("Pill intersect",t,{points:d}),et.polygon(t,d,b)},a}z(wJ,"hourglass");async function EJ(e,t,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:a}=lt(t);t.labelStyle=a;const i=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(i,o),l=r==null?void 0:r.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:d,label:p}=await St(e,t,"icon-shape default"),h=t.pos==="t",g=s,b=s,{nodeBorder:y}=n,{stylesMap:x}=ed(t),w=-b/2,S=-g/2,_=t.label?8:0,N=rt.svg(c),R=at(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");const C=N.rectangle(w,S,b,g,R),A=Math.max(b,d.width),I=g+d.height+_,D=N.rectangle(-A/2,-I/2,A,I,{...R,fill:"transparent",stroke:"none"}),O=c.insert(()=>C,":first-child"),P=c.insert(()=>D);if(t.icon){const G=c.append("g");G.html(`<g>${await Gy(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const j=G.node().getBBox(),W=j.width,V=j.height,B=j.x,U=j.y;G.attr("transform",`translate(${-W/2-B},${h?d.height/2+_/2-V/2-U:-d.height/2-_/2-V/2-U})`),G.attr("style",`color: ${x.get("stroke")??y};`)}return p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${h?-I/2:I/2-d.height})`),O.attr("transform",`translate(0,${h?d.height/2+_/2:-d.height/2-_/2})`),st(t,P),t.intersect=function(G){if(Le.info("iconSquare intersect",t,G),!t.label)return et.rect(t,G);const j=t.x??0,W=t.y??0,V=t.height??0;let B=[];return h?B=[{x:j-d.width/2,y:W-V/2},{x:j+d.width/2,y:W-V/2},{x:j+d.width/2,y:W-V/2+d.height+_},{x:j+b/2,y:W-V/2+d.height+_},{x:j+b/2,y:W+V/2},{x:j-b/2,y:W+V/2},{x:j-b/2,y:W-V/2+d.height+_},{x:j-d.width/2,y:W-V/2+d.height+_}]:B=[{x:j-b/2,y:W-V/2},{x:j+b/2,y:W-V/2},{x:j+b/2,y:W-V/2+g},{x:j+d.width/2,y:W-V/2+g},{x:j+d.width/2/2,y:W+V/2},{x:j-d.width/2,y:W+V/2},{x:j-d.width/2,y:W-V/2+g},{x:j-b/2,y:W-V/2+g}],et.polygon(t,B,G)},c}z(EJ,"icon");async function kJ(e,t,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:a}=lt(t);t.labelStyle=a;const i=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(i,o),l=r==null?void 0:r.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:d,label:p}=await St(e,t,"icon-shape default"),h=20,g=t.label?8:0,b=t.pos==="t",{nodeBorder:y,mainBkg:x}=n,{stylesMap:w}=ed(t),S=rt.svg(c),_=at(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const N=w.get("fill");_.stroke=N??x;const R=c.append("g");t.icon&&R.html(`<g>${await Gy(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const C=R.node().getBBox(),A=C.width,I=C.height,D=C.x,O=C.y,P=Math.max(A,I)*Math.SQRT2+h*2,G=S.circle(0,0,P,_),j=Math.max(P,d.width),W=P+d.height+g,V=S.rectangle(-j/2,-W/2,j,W,{..._,fill:"transparent",stroke:"none"}),B=c.insert(()=>G,":first-child"),U=c.insert(()=>V);return R.attr("transform",`translate(${-A/2-D},${b?d.height/2+g/2-I/2-O:-d.height/2-g/2-I/2-O})`),R.attr("style",`color: ${w.get("stroke")??y};`),p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${b?-W/2:W/2-d.height})`),B.attr("transform",`translate(0,${b?d.height/2+g/2:-d.height/2-g/2})`),st(t,U),t.intersect=function(M){return Le.info("iconSquare intersect",t,M),et.rect(t,M)},c}z(kJ,"iconCircle");async function _J(e,t,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:a}=lt(t);t.labelStyle=a;const i=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(i,o),l=r==null?void 0:r.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:d,halfPadding:p,label:h}=await St(e,t,"icon-shape default"),g=t.pos==="t",b=s+p*2,y=s+p*2,{nodeBorder:x,mainBkg:w}=n,{stylesMap:S}=ed(t),_=-y/2,N=-b/2,R=t.label?8:0,C=rt.svg(c),A=at(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const I=S.get("fill");A.stroke=I??w;const D=C.path(Do(_,N,y,b,5),A),O=Math.max(y,d.width),P=b+d.height+R,G=C.rectangle(-O/2,-P/2,O,P,{...A,fill:"transparent",stroke:"none"}),j=c.insert(()=>D,":first-child").attr("class","icon-shape2"),W=c.insert(()=>G);if(t.icon){const V=c.append("g");V.html(`<g>${await Gy(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const B=V.node().getBBox(),U=B.width,M=B.height,K=B.x,F=B.y;V.attr("transform",`translate(${-U/2-K},${g?d.height/2+R/2-M/2-F:-d.height/2-R/2-M/2-F})`),V.attr("style",`color: ${S.get("stroke")??x};`)}return h.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-P/2:P/2-d.height})`),j.attr("transform",`translate(0,${g?d.height/2+R/2:-d.height/2-R/2})`),st(t,W),t.intersect=function(V){if(Le.info("iconSquare intersect",t,V),!t.label)return et.rect(t,V);const B=t.x??0,U=t.y??0,M=t.height??0;let K=[];return g?K=[{x:B-d.width/2,y:U-M/2},{x:B+d.width/2,y:U-M/2},{x:B+d.width/2,y:U-M/2+d.height+R},{x:B+y/2,y:U-M/2+d.height+R},{x:B+y/2,y:U+M/2},{x:B-y/2,y:U+M/2},{x:B-y/2,y:U-M/2+d.height+R},{x:B-d.width/2,y:U-M/2+d.height+R}]:K=[{x:B-y/2,y:U-M/2},{x:B+y/2,y:U-M/2},{x:B+y/2,y:U-M/2+b},{x:B+d.width/2,y:U-M/2+b},{x:B+d.width/2/2,y:U+M/2},{x:B-d.width/2,y:U+M/2},{x:B-d.width/2,y:U-M/2+b},{x:B-y/2,y:U-M/2+b}],et.polygon(t,K,V)},c}z(_J,"iconRounded");async function CJ(e,t,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:a}=lt(t);t.labelStyle=a;const i=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(i,o),l=r==null?void 0:r.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:d,halfPadding:p,label:h}=await St(e,t,"icon-shape default"),g=t.pos==="t",b=s+p*2,y=s+p*2,{nodeBorder:x,mainBkg:w}=n,{stylesMap:S}=ed(t),_=-y/2,N=-b/2,R=t.label?8:0,C=rt.svg(c),A=at(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const I=S.get("fill");A.stroke=I??w;const D=C.path(Do(_,N,y,b,.1),A),O=Math.max(y,d.width),P=b+d.height+R,G=C.rectangle(-O/2,-P/2,O,P,{...A,fill:"transparent",stroke:"none"}),j=c.insert(()=>D,":first-child"),W=c.insert(()=>G);if(t.icon){const V=c.append("g");V.html(`<g>${await Gy(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const B=V.node().getBBox(),U=B.width,M=B.height,K=B.x,F=B.y;V.attr("transform",`translate(${-U/2-K},${g?d.height/2+R/2-M/2-F:-d.height/2-R/2-M/2-F})`),V.attr("style",`color: ${S.get("stroke")??x};`)}return h.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-P/2:P/2-d.height})`),j.attr("transform",`translate(0,${g?d.height/2+R/2:-d.height/2-R/2})`),st(t,W),t.intersect=function(V){if(Le.info("iconSquare intersect",t,V),!t.label)return et.rect(t,V);const B=t.x??0,U=t.y??0,M=t.height??0;let K=[];return g?K=[{x:B-d.width/2,y:U-M/2},{x:B+d.width/2,y:U-M/2},{x:B+d.width/2,y:U-M/2+d.height+R},{x:B+y/2,y:U-M/2+d.height+R},{x:B+y/2,y:U+M/2},{x:B-y/2,y:U+M/2},{x:B-y/2,y:U-M/2+d.height+R},{x:B-d.width/2,y:U-M/2+d.height+R}]:K=[{x:B-y/2,y:U-M/2},{x:B+y/2,y:U-M/2},{x:B+y/2,y:U-M/2+b},{x:B+d.width/2,y:U-M/2+b},{x:B+d.width/2/2,y:U+M/2},{x:B-d.width/2,y:U+M/2},{x:B-d.width/2,y:U-M/2+b},{x:B-y/2,y:U-M/2+b}],et.polygon(t,K,V)},c}z(CJ,"iconSquare");async function TJ(e,t,{config:{flowchart:n}}){const r=new Image;r.src=(t==null?void 0:t.img)??"",await r.decode();const a=Number(r.naturalWidth.toString().replace("px","")),i=Number(r.naturalHeight.toString().replace("px",""));t.imageAspectRatio=a/i;const{labelStyles:o}=lt(t);t.labelStyle=o;const s=n==null?void 0:n.wrappingWidth;t.defaultWidth=n==null?void 0:n.wrappingWidth;const l=Math.max(t.label?s??0:0,(t==null?void 0:t.assetWidth)??a),c=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:l,d=t.constraint==="on"?c/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??i;t.width=Math.max(c,s??0);const{shapeSvg:p,bbox:h,label:g}=await St(e,t,"image-shape default"),b=t.pos==="t",y=-c/2,x=-d/2,w=t.label?8:0,S=rt.svg(p),_=at(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const N=S.rectangle(y,x,c,d,_),R=Math.max(c,h.width),C=d+h.height+w,A=S.rectangle(-R/2,-C/2,R,C,{..._,fill:"none",stroke:"none"}),I=p.insert(()=>N,":first-child"),D=p.insert(()=>A);if(t.img){const O=p.append("image");O.attr("href",t.img),O.attr("width",c),O.attr("height",d),O.attr("preserveAspectRatio","none"),O.attr("transform",`translate(${-c/2},${b?C/2-d:-C/2})`)}return g.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${b?-d/2-h.height/2-w/2:d/2-h.height/2+w/2})`),I.attr("transform",`translate(0,${b?h.height/2+w/2:-h.height/2-w/2})`),st(t,D),t.intersect=function(O){if(Le.info("iconSquare intersect",t,O),!t.label)return et.rect(t,O);const P=t.x??0,G=t.y??0,j=t.height??0;let W=[];return b?W=[{x:P-h.width/2,y:G-j/2},{x:P+h.width/2,y:G-j/2},{x:P+h.width/2,y:G-j/2+h.height+w},{x:P+c/2,y:G-j/2+h.height+w},{x:P+c/2,y:G+j/2},{x:P-c/2,y:G+j/2},{x:P-c/2,y:G-j/2+h.height+w},{x:P-h.width/2,y:G-j/2+h.height+w}]:W=[{x:P-c/2,y:G-j/2},{x:P+c/2,y:G-j/2},{x:P+c/2,y:G-j/2+d},{x:P+h.width/2,y:G-j/2+d},{x:P+h.width/2/2,y:G+j/2},{x:P-h.width/2,y:G+j/2},{x:P-h.width/2,y:G-j/2+d},{x:P-c/2,y:G-j/2+d}],et.polygon(t,W,O)},p}z(TJ,"imageSquare");async function AJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),s=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),l=[{x:0,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:-3*s/6,y:-s}];let c;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=rt.svg(a),h=at(t,{}),g=Kt(l),b=p.path(g,h);c=a.insert(()=>b,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),d&&c.attr("style",d)}else c=Io(a,o,s,l);return r&&c.attr("style",r),t.width=o,t.height=s,st(t,c),t.intersect=function(p){return et.polygon(t,l,p)},a}z(AJ,"inv_trapezoid");async function Zp(e,t,n){const{labelStyles:r,nodeStyles:a}=lt(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await St(e,t,yt(t)),s=Math.max(o.width+n.labelPaddingX*2,(t==null?void 0:t.width)||0),l=Math.max(o.height+n.labelPaddingY*2,(t==null?void 0:t.height)||0),c=-s/2,d=-l/2;let p,{rx:h,ry:g}=t;const{cssStyles:b}=t;if(n!=null&&n.rx&&n.ry&&(h=n.rx,g=n.ry),t.look==="handDrawn"){const y=rt.svg(i),x=at(t,{}),w=h||g?y.path(Do(c,d,s,l,h||0),x):y.rectangle(c,d,s,l,x);p=i.insert(()=>w,":first-child"),p.attr("class","basic label-container").attr("style",Mr(b))}else p=i.insert("rect",":first-child"),p.attr("class","basic label-container").attr("style",a).attr("rx",Mr(h)).attr("ry",Mr(g)).attr("x",c).attr("y",d).attr("width",s).attr("height",l);return st(t,p),t.intersect=function(y){return et.rect(t,y)},i}z(Zp,"drawRect");async function RJ(e,t){const{shapeSvg:n,bbox:r,label:a}=await St(e,t,"label"),i=n.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),n.attr("class","label edgeLabel"),a.attr("transform",`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),st(t,i),t.intersect=function(l){return et.rect(t,l)},n}z(RJ,"labelRect");async function NJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=Math.max(i.width+(t.padding??0),(t==null?void 0:t.width)??0),s=Math.max(i.height+(t.padding??0),(t==null?void 0:t.height)??0),l=[{x:0,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:-(3*s)/6,y:-s}];let c;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=rt.svg(a),h=at(t,{}),g=Kt(l),b=p.path(g,h);c=a.insert(()=>b,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),d&&c.attr("style",d)}else c=Io(a,o,s,l);return r&&c.attr("style",r),t.width=o,t.height=s,st(t,c),t.intersect=function(p){return et.polygon(t,l,p)},a}z(NJ,"lean_left");async function LJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=Math.max(i.width+(t.padding??0),(t==null?void 0:t.width)??0),s=Math.max(i.height+(t.padding??0),(t==null?void 0:t.height)??0),l=[{x:-3*s/6,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:0,y:-s}];let c;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=rt.svg(a),h=at(t,{}),g=Kt(l),b=p.path(g,h);c=a.insert(()=>b,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),d&&c.attr("style",d)}else c=Io(a,o,s,l);return r&&c.attr("style",r),t.width=o,t.height=s,st(t,c),t.intersect=function(p){return et.polygon(t,l,p)},a}z(LJ,"lean_right");function OJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.label="",t.labelStyle=n;const a=e.insert("g").attr("class",yt(t)).attr("id",t.domId??t.id),{cssStyles:i}=t,o=Math.max(35,(t==null?void 0:t.width)??0),s=Math.max(35,(t==null?void 0:t.height)??0),l=7,c=[{x:o,y:0},{x:0,y:s+l/2},{x:o-2*l,y:s+l/2},{x:0,y:2*s},{x:o,y:s-l/2},{x:2*l,y:s-l/2}],d=rt.svg(a),p=at(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const h=Kt(c),g=d.path(h,p),b=a.insert(()=>g,":first-child");return i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),r&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",r),b.attr("transform",`translate(-${o/2},${-s})`),st(t,b),t.intersect=function(y){return Le.info("lightningBolt intersect",t,y),et.polygon(t,c,y)},a}z(OJ,"lightningBolt");var NPe=z((e,t,n,r,a,i,o)=>[`M${e},${t+i}`,`a${a},${i} 0,0,0 ${n},0`,`a${a},${i} 0,0,0 ${-n},0`,`l0,${r}`,`a${a},${i} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+i+o}`,`a${a},${i} 0,0,0 ${n},0`].join(" "),"createCylinderPathD"),LPe=z((e,t,n,r,a,i,o)=>[`M${e},${t+i}`,`M${e+n},${t+i}`,`a${a},${i} 0,0,0 ${-n},0`,`l0,${r}`,`a${a},${i} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+i+o}`,`a${a},${i} 0,0,0 ${n},0`].join(" "),"createOuterCylinderPathD"),OPe=z((e,t,n,r,a,i)=>[`M${e-n/2},${-r/2}`,`a${a},${i} 0,0,0 ${n},0`].join(" "),"createInnerCylinderPathD");async function DJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=Math.max(i.width+(t.padding??0),t.width??0),l=s/2,c=l/(2.5+s/50),d=Math.max(i.height+c+(t.padding??0),t.height??0),p=d*.1;let h;const{cssStyles:g}=t;if(t.look==="handDrawn"){const b=rt.svg(a),y=LPe(0,0,s,d,l,c,p),x=OPe(0,c,s,d,l,c),w=at(t,{}),S=b.path(y,w),_=b.path(x,w);a.insert(()=>_,":first-child").attr("class","line"),h=a.insert(()=>S,":first-child"),h.attr("class","basic label-container"),g&&h.attr("style",g)}else{const b=NPe(0,0,s,d,l,c,p);h=a.insert("path",":first-child").attr("d",b).attr("class","basic label-container").attr("style",Mr(g)).attr("style",r)}return h.attr("label-offset-y",c),h.attr("transform",`translate(${-s/2}, ${-(d/2+c)})`),st(t,h),o.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)+c-(i.y-(i.top??0))})`),t.intersect=function(b){const y=et.rect(t,b),x=y.x-(t.x??0);if(l!=0&&(Math.abs(x)<(t.width??0)/2||Math.abs(x)==(t.width??0)/2&&Math.abs(y.y-(t.y??0))>(t.height??0)/2-c)){let w=c*c*(1-x*x/(l*l));w>0&&(w=Math.sqrt(w)),w=c-w,b.y-(t.y??0)>0&&(w=-w),y.y+=w}return y},a}z(DJ,"linedCylinder");async function IJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/4,d=l+c,{cssStyles:p}=t,h=rt.svg(a),g=at(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const b=[{x:-s/2-s/2*.1,y:-d/2},{x:-s/2-s/2*.1,y:d/2},...Cs(-s/2-s/2*.1,d/2,s/2+s/2*.1,d/2,c,.8),{x:s/2+s/2*.1,y:-d/2},{x:-s/2-s/2*.1,y:-d/2},{x:-s/2,y:-d/2},{x:-s/2,y:d/2*1.1},{x:-s/2,y:-d/2}],y=h.polygon(b.map(w=>[w.x,w.y]),g),x=a.insert(()=>y,":first-child");return x.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",p),r&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",r),x.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-s/2+(t.padding??0)+s/2*.1/2-(i.x-(i.left??0))},${-l/2+(t.padding??0)-c/2-(i.y-(i.top??0))})`),st(t,x),t.intersect=function(w){return et.polygon(t,b,w)},a}z(IJ,"linedWaveEdgedRect");async function MJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=5,d=-s/2,p=-l/2,{cssStyles:h}=t,g=rt.svg(a),b=at(t,{}),y=[{x:d-c,y:p+c},{x:d-c,y:p+l+c},{x:d+s-c,y:p+l+c},{x:d+s-c,y:p+l},{x:d+s,y:p+l},{x:d+s,y:p+l-c},{x:d+s+c,y:p+l-c},{x:d+s+c,y:p-c},{x:d+c,y:p-c},{x:d+c,y:p},{x:d,y:p},{x:d,y:p+c}],x=[{x:d,y:p+c},{x:d+s-c,y:p+c},{x:d+s-c,y:p+l},{x:d+s,y:p+l},{x:d+s,y:p},{x:d,y:p}];t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=Kt(y),S=g.path(w,b),_=Kt(x),N=g.path(_,{...b,fill:"none"}),R=a.insert(()=>N,":first-child");return R.insert(()=>S,":first-child"),R.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",h),r&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",r),o.attr("transform",`translate(${-(i.width/2)-c-(i.x-(i.left??0))}, ${-(i.height/2)+c-(i.y-(i.top??0))})`),st(t,R),t.intersect=function(C){return et.polygon(t,y,C)},a}z(MJ,"multiRect");async function FJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/4,d=l+c,p=-s/2,h=-d/2,g=5,{cssStyles:b}=t,y=Cs(p-g,h+d+g,p+s-g,h+d+g,c,.8),x=y==null?void 0:y[y.length-1],w=[{x:p-g,y:h+g},{x:p-g,y:h+d+g},...y,{x:p+s-g,y:x.y-g},{x:p+s,y:x.y-g},{x:p+s,y:x.y-2*g},{x:p+s+g,y:x.y-2*g},{x:p+s+g,y:h-g},{x:p+g,y:h-g},{x:p+g,y:h},{x:p,y:h},{x:p,y:h+g}],S=[{x:p,y:h+g},{x:p+s-g,y:h+g},{x:p+s-g,y:x.y-g},{x:p+s,y:x.y-g},{x:p+s,y:h},{x:p,y:h}],_=rt.svg(a),N=at(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const R=Kt(w),C=_.path(R,N),A=Kt(S),I=_.path(A,N),D=a.insert(()=>C,":first-child");return D.insert(()=>I),D.attr("class","basic label-container"),b&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",b),r&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",r),D.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-(i.width/2)-g-(i.x-(i.left??0))}, ${-(i.height/2)+g-c/2-(i.y-(i.top??0))})`),st(t,D),t.intersect=function(O){return et.polygon(t,w,O)},a}z(FJ,"multiWaveEdgedRectangle");async function PJ(e,t,{config:{themeVariables:n}}){var w;const{labelStyles:r,nodeStyles:a}=lt(t);t.labelStyle=r,t.useHtmlLabels||((w=Kr().flowchart)==null?void 0:w.htmlLabels)!==!1||(t.centerLabel=!0);const{shapeSvg:o,bbox:s}=await St(e,t,yt(t)),l=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=-l/2,p=-c/2,{cssStyles:h}=t,g=rt.svg(o),b=at(t,{fill:n.noteBkgColor,stroke:n.noteBorderColor});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const y=g.rectangle(d,p,l,c,b),x=o.insert(()=>y,":first-child");return x.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",h),a&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",a),st(t,x),t.intersect=function(S){return et.rect(t,S)},o}z(PJ,"note");var DPe=z((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function BJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=i.width+t.padding,s=i.height+t.padding,l=o+s,c=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let d;const{cssStyles:p}=t;if(t.look==="handDrawn"){const h=rt.svg(a),g=at(t,{}),b=DPe(0,0,l),y=h.path(b,g);d=a.insert(()=>y,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`),p&&d.attr("style",p)}else d=Io(a,l,l,c);return r&&d.attr("style",r),st(t,d),t.intersect=function(h){return Le.debug(`APA12 Intersect called SPLIT
point:`,h,`
node:
`,t,`
res:`,et.polygon(t,c,h)),et.polygon(t,c,h)},a}z(BJ,"question");async function zJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=Math.max(i.width+(t.padding??0),(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0),(t==null?void 0:t.height)??0),c=-s/2,d=-l/2,p=d/2,h=[{x:c+p,y:d},{x:c,y:0},{x:c+p,y:-d},{x:-c,y:-d},{x:-c,y:d}],{cssStyles:g}=t,b=rt.svg(a),y=at(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const x=Kt(h),w=b.path(x,y),S=a.insert(()=>w,":first-child");return S.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",g),r&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",r),S.attr("transform",`translate(${-p/2},0)`),o.attr("transform",`translate(${-p/2-i.width/2-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),st(t,S),t.intersect=function(_){return et.polygon(t,h,_)},a}z(zJ,"rect_left_inv_arrow");async function $J(e,t){var I,D;const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;let a;t.cssClasses?a="node "+t.cssClasses:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),o=i.insert("g"),s=i.insert("g").attr("class","label").attr("style",r),l=t.description,c=t.label,d=s.node().appendChild(await yl(c,t.labelStyle,!0,!0));let p={width:0,height:0};if(Vn((D=(I=Qt())==null?void 0:I.flowchart)==null?void 0:D.htmlLabels)){const O=d.children[0],P=Yt(d);p=O.getBoundingClientRect(),P.attr("width",p.width),P.attr("height",p.height)}Le.info("Text 2",l);const h=l||[],g=d.getBBox(),b=s.node().appendChild(await yl(h.join?h.join("<br/>"):h,t.labelStyle,!0,!0)),y=b.children[0],x=Yt(b);p=y.getBoundingClientRect(),x.attr("width",p.width),x.attr("height",p.height);const w=(t.padding||0)/2;Yt(b).attr("transform","translate( "+(p.width>g.width?0:(g.width-p.width)/2)+", "+(g.height+w+5)+")"),Yt(d).attr("transform","translate( "+(p.width<g.width?0:-(g.width-p.width)/2)+", 0)"),p=s.node().getBBox(),s.attr("transform","translate("+-p.width/2+", "+(-p.height/2-w+3)+")");const S=p.width+(t.padding||0),_=p.height+(t.padding||0),N=-p.width/2-w,R=-p.height/2-w;let C,A;if(t.look==="handDrawn"){const O=rt.svg(i),P=at(t,{}),G=O.path(Do(N,R,S,_,t.rx||0),P),j=O.line(-p.width/2-w,-p.height/2-w+g.height+w,p.width/2+w,-p.height/2-w+g.height+w,P);A=i.insert(()=>(Le.debug("Rough node insert CXC",G),j),":first-child"),C=i.insert(()=>(Le.debug("Rough node insert CXC",G),G),":first-child")}else C=o.insert("rect",":first-child"),A=o.insert("line"),C.attr("class","outer title-state").attr("style",r).attr("x",-p.width/2-w).attr("y",-p.height/2-w).attr("width",p.width+(t.padding||0)).attr("height",p.height+(t.padding||0)),A.attr("class","divider").attr("x1",-p.width/2-w).attr("x2",p.width/2+w).attr("y1",-p.height/2-w+g.height+w).attr("y2",-p.height/2-w+g.height+w);return st(t,C),t.intersect=function(O){return et.rect(t,O)},i}z($J,"rectWithTitle");async function jJ(e,t){const n={rx:5,ry:5,labelPaddingX:((t==null?void 0:t.padding)||0)*1,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return Zp(e,t,n)}z(jJ,"roundedRect");async function UJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=(t==null?void 0:t.padding)??0,l=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=-i.width/2-s,p=-i.height/2-s,{cssStyles:h}=t,g=rt.svg(a),b=at(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const y=[{x:d,y:p},{x:d+l+8,y:p},{x:d+l+8,y:p+c},{x:d-8,y:p+c},{x:d-8,y:p},{x:d,y:p},{x:d,y:p+c}],x=g.polygon(y.map(S=>[S.x,S.y]),b),w=a.insert(()=>x,":first-child");return w.attr("class","basic label-container").attr("style",Mr(h)),r&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",r),h&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",r),o.attr("transform",`translate(${-l/2+4+(t.padding??0)-(i.x-(i.left??0))},${-c/2+(t.padding??0)-(i.y-(i.top??0))})`),st(t,w),t.intersect=function(S){return et.rect(t,S)},a}z(UJ,"shadedProcess");async function HJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=-s/2,d=-l/2,{cssStyles:p}=t,h=rt.svg(a),g=at(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const b=[{x:c,y:d},{x:c,y:d+l},{x:c+s,y:d+l},{x:c+s,y:d-l/2}],y=Kt(b),x=h.path(y,g),w=a.insert(()=>x,":first-child");return w.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",p),r&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",r),w.attr("transform",`translate(0, ${l/4})`),o.attr("transform",`translate(${-s/2+(t.padding??0)-(i.x-(i.left??0))}, ${-l/4+(t.padding??0)-(i.y-(i.top??0))})`),st(t,w),t.intersect=function(S){return et.polygon(t,b,S)},a}z(HJ,"slopedRect");async function GJ(e,t){const n={rx:0,ry:0,labelPaddingX:((t==null?void 0:t.padding)||0)*2,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return Zp(e,t,n)}z(GJ,"squareRect");async function qJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=i.height+t.padding,s=i.width+o/4+t.padding;let l;const{cssStyles:c}=t;if(t.look==="handDrawn"){const d=rt.svg(a),p=at(t,{}),h=Do(-s/2,-o/2,s,o,o/2),g=d.path(h,p);l=a.insert(()=>g,":first-child"),l.attr("class","basic label-container").attr("style",Mr(c))}else l=a.insert("rect",":first-child"),l.attr("class","basic label-container").attr("style",r).attr("rx",o/2).attr("ry",o/2).attr("x",-s/2).attr("y",-o/2).attr("width",s).attr("height",o);return st(t,l),t.intersect=function(d){return et.rect(t,d)},a}z(qJ,"stadium");async function WJ(e,t){return Zp(e,t,{rx:5,ry:5})}z(WJ,"state");function VJ(e,t,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:a}=lt(t);t.labelStyle=r;const{cssStyles:i}=t,{lineColor:o,stateBorder:s,nodeBorder:l}=n,c=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),d=rt.svg(c),p=at(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const h=d.circle(0,0,14,{...p,stroke:o,strokeWidth:2}),g=s??l,b=d.circle(0,0,5,{...p,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),y=c.insert(()=>h,":first-child");return y.insert(()=>b),i&&y.selectAll("path").attr("style",i),a&&y.selectAll("path").attr("style",a),st(t,y),t.intersect=function(x){return et.circle(t,7,x)},c}z(VJ,"stateEnd");function YJ(e,t,{config:{themeVariables:n}}){const{lineColor:r}=n,a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let i;if(t.look==="handDrawn"){const s=rt.svg(a).circle(0,0,14,pPe(r));i=a.insert(()=>s),i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else i=a.insert("circle",":first-child"),i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return st(t,i),t.intersect=function(o){return et.circle(t,7,o)},a}z(YJ,"stateStart");async function KJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=((t==null?void 0:t.padding)||0)/2,s=i.width+t.padding,l=i.height+t.padding,c=-i.width/2-o,d=-i.height/2-o,p=[{x:0,y:0},{x:s,y:0},{x:s,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-l},{x:-8,y:-l},{x:-8,y:0}];if(t.look==="handDrawn"){const h=rt.svg(a),g=at(t,{}),b=h.rectangle(c-8,d,s+16,l,g),y=h.line(c,d,c,d+l,g),x=h.line(c+s,d,c+s,d+l,g);a.insert(()=>y,":first-child"),a.insert(()=>x,":first-child");const w=a.insert(()=>b,":first-child"),{cssStyles:S}=t;w.attr("class","basic label-container").attr("style",Mr(S)),st(t,w)}else{const h=Io(a,s,l,p);r&&h.attr("style",r),st(t,h)}return t.intersect=function(h){return et.polygon(t,p,h)},a}z(KJ,"subroutine");async function XJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),s=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),l=-o/2,c=-s/2,d=.2*s,p=.2*s,{cssStyles:h}=t,g=rt.svg(a),b=at(t,{}),y=[{x:l-d/2,y:c},{x:l+o+d/2,y:c},{x:l+o+d/2,y:c+s},{x:l-d/2,y:c+s}],x=[{x:l+o-d/2,y:c+s},{x:l+o+d/2,y:c+s},{x:l+o+d/2,y:c+s-p}];t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=Kt(y),S=g.path(w,b),_=Kt(x),N=g.path(_,{...b,fillStyle:"solid"}),R=a.insert(()=>N,":first-child");return R.insert(()=>S,":first-child"),R.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",h),r&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",r),st(t,R),t.intersect=function(C){return et.polygon(t,y,C)},a}z(XJ,"taggedRect");async function ZJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/4,d=.2*s,p=.2*l,h=l+c,{cssStyles:g}=t,b=rt.svg(a),y=at(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const x=[{x:-s/2-s/2*.1,y:h/2},...Cs(-s/2-s/2*.1,h/2,s/2+s/2*.1,h/2,c,.8),{x:s/2+s/2*.1,y:-h/2},{x:-s/2-s/2*.1,y:-h/2}],w=-s/2+s/2*.1,S=-h/2-p*.4,_=[{x:w+s-d,y:(S+l)*1.4},{x:w+s,y:S+l-p},{x:w+s,y:(S+l)*.9},...Cs(w+s,(S+l)*1.3,w+s-d,(S+l)*1.5,-l*.03,.5)],N=Kt(x),R=b.path(N,y),C=Kt(_),A=b.path(C,{...y,fillStyle:"solid"}),I=a.insert(()=>A,":first-child");return I.insert(()=>R,":first-child"),I.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",g),r&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",r),I.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-s/2+(t.padding??0)-(i.x-(i.left??0))},${-l/2+(t.padding??0)-c/2-(i.y-(i.top??0))})`),st(t,I),t.intersect=function(D){return et.polygon(t,x,D)},a}z(ZJ,"taggedWaveEdgedRectangle");async function QJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=Math.max(i.width+t.padding,(t==null?void 0:t.width)||0),s=Math.max(i.height+t.padding,(t==null?void 0:t.height)||0),l=-o/2,c=-s/2,d=a.insert("rect",":first-child");return d.attr("class","text").attr("style",r).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",o).attr("height",s),st(t,d),t.intersect=function(p){return et.rect(t,p)},a}z(QJ,"text");var IPe=z((e,t,n,r,a,i)=>`M${e},${t}
a${a},${i} 0,0,1 0,${-r}
l${n},0
a${a},${i} 0,0,1 0,${r}
M${n},${-r}
a${a},${i} 0,0,0 0,${r}
l${-n},0`,"createCylinderPathD"),MPe=z((e,t,n,r,a,i)=>[`M${e},${t}`,`M${e+n},${t}`,`a${a},${i} 0,0,0 0,${-r}`,`l${-n},0`,`a${a},${i} 0,0,0 0,${r}`,`l${n},0`].join(" "),"createOuterCylinderPathD"),FPe=z((e,t,n,r,a,i)=>[`M${e+n/2},${-r/2}`,`a${a},${i} 0,0,0 0,${r}`].join(" "),"createInnerCylinderPathD");async function JJ(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o,halfPadding:s}=await St(e,t,yt(t)),l=t.look==="neo"?s*2:s,c=i.height+l,d=c/2,p=d/(2.5+c/50),h=i.width+p+l,{cssStyles:g}=t;let b;if(t.look==="handDrawn"){const y=rt.svg(a),x=MPe(0,0,h,c,p,d),w=FPe(0,0,h,c,p,d),S=y.path(x,at(t,{})),_=y.path(w,at(t,{fill:"none"}));b=a.insert(()=>_,":first-child"),b=a.insert(()=>S,":first-child"),b.attr("class","basic label-container"),g&&b.attr("style",g)}else{const y=IPe(0,0,h,c,p,d);b=a.insert("path",":first-child").attr("d",y).attr("class","basic label-container").attr("style",Mr(g)).attr("style",r),b.attr("class","basic label-container"),g&&b.selectAll("path").attr("style",g),r&&b.selectAll("path").attr("style",r)}return b.attr("label-offset-x",p),b.attr("transform",`translate(${-h/2}, ${c/2} )`),o.attr("transform",`translate(${-(i.width/2)-p-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),st(t,b),t.intersect=function(y){const x=et.rect(t,y),w=x.y-(t.y??0);if(d!=0&&(Math.abs(w)<(t.height??0)/2||Math.abs(w)==(t.height??0)/2&&Math.abs(x.x-(t.x??0))>(t.width??0)/2-p)){let S=p*p*(1-w*w/(d*d));S!=0&&(S=Math.sqrt(Math.abs(S))),S=p-S,y.x-(t.x??0)>0&&(S=-S),x.x+=S}return x},a}z(JJ,"tiltedCylinder");async function eee(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=i.width+t.padding,s=i.height+t.padding,l=[{x:-3*s/6,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:0,y:-s}];let c;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=rt.svg(a),h=at(t,{}),g=Kt(l),b=p.path(g,h);c=a.insert(()=>b,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),d&&c.attr("style",d)}else c=Io(a,o,s,l);return r&&c.attr("style",r),t.width=o,t.height=s,st(t,c),t.intersect=function(p){return et.polygon(t,l,p)},a}z(eee,"trapezoid");async function tee(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=60,s=20,l=Math.max(o,i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(s,i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),{cssStyles:d}=t,p=rt.svg(a),h=at(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const g=[{x:-l/2*.8,y:-c/2},{x:l/2*.8,y:-c/2},{x:l/2,y:-c/2*.6},{x:l/2,y:c/2},{x:-l/2,y:c/2},{x:-l/2,y:-c/2*.6}],b=Kt(g),y=p.path(b,h),x=a.insert(()=>y,":first-child");return x.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",d),r&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",r),st(t,x),t.intersect=function(w){return et.polygon(t,g,w)},a}z(tee,"trapezoidalPentagon");async function nee(e,t){var S;const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=Vn((S=Qt().flowchart)==null?void 0:S.htmlLabels),l=i.width+(t.padding??0),c=l+i.height,d=l+i.height,p=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-c}],{cssStyles:h}=t,g=rt.svg(a),b=at(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const y=Kt(p),x=g.path(y,b),w=a.insert(()=>x,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return h&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",h),r&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",r),t.width=l,t.height=c,st(t,w),o.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${c/2-(i.height+(t.padding??0)/(s?2:1)-(i.y-(i.top??0)))})`),t.intersect=function(_){return Le.info("Triangle intersect",t,p,_),et.polygon(t,p,_)},a}z(nee,"triangle");async function ree(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/8,d=l+c,{cssStyles:p}=t,g=70-s,b=g>0?g/2:0,y=rt.svg(a),x=at(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const w=[{x:-s/2-b,y:d/2},...Cs(-s/2-b,d/2,s/2+b,d/2,c,.8),{x:s/2+b,y:-d/2},{x:-s/2-b,y:-d/2}],S=Kt(w),_=y.path(S,x),N=a.insert(()=>_,":first-child");return N.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",p),r&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-s/2+(t.padding??0)-(i.x-(i.left??0))},${-l/2+(t.padding??0)-c-(i.y-(i.top??0))})`),st(t,N),t.intersect=function(R){return et.polygon(t,w,R)},a}z(ree,"waveEdgedRectangle");async function aee(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i}=await St(e,t,yt(t)),o=100,s=50,l=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=l/c;let p=l,h=c;p>h*d?h=p/d:p=h*d,p=Math.max(p,o),h=Math.max(h,s);const g=Math.min(h*.2,h/4),b=h+g*2,{cssStyles:y}=t,x=rt.svg(a),w=at(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=[{x:-p/2,y:b/2},...Cs(-p/2,b/2,p/2,b/2,g,1),{x:p/2,y:-b/2},...Cs(p/2,-b/2,-p/2,-b/2,g,-1)],_=Kt(S),N=x.path(_,w),R=a.insert(()=>N,":first-child");return R.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",y),r&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",r),st(t,R),t.intersect=function(C){return et.polygon(t,S,C)},a}z(aee,"waveRectangle");async function iee(e,t){const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const{shapeSvg:a,bbox:i,label:o}=await St(e,t,yt(t)),s=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=5,d=-s/2,p=-l/2,{cssStyles:h}=t,g=rt.svg(a),b=at(t,{}),y=[{x:d-c,y:p-c},{x:d-c,y:p+l},{x:d+s,y:p+l},{x:d+s,y:p-c}],x=`M${d-c},${p-c} L${d+s},${p-c} L${d+s},${p+l} L${d-c},${p+l} L${d-c},${p-c}
M${d-c},${p} L${d+s},${p}
M${d},${p-c} L${d},${p+l}`;t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=g.path(x,b),S=a.insert(()=>w,":first-child");return S.attr("transform",`translate(${c/2}, ${c/2})`),S.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",h),r&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",r),o.attr("transform",`translate(${-(i.width/2)+c/2-(i.x-(i.left??0))}, ${-(i.height/2)+c/2-(i.y-(i.top??0))})`),st(t,S),t.intersect=function(_){return et.polygon(t,y,_)},a}z(iee,"windowPane");async function JL(e,t){var K,F,Y;const n=t;if(n.alias&&(t.label=n.alias),t.look==="handDrawn"){const{themeVariables:H}=Kr(),{background:$}=H,Z={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${$}`]};await JL(e,Z)}const r=Kr();t.useHtmlLabels=r.htmlLabels;let a=((K=r.er)==null?void 0:K.diagramPadding)??10,i=((F=r.er)==null?void 0:F.entityPadding)??6;const{cssStyles:o}=t,{labelStyles:s}=lt(t);if(n.attributes.length===0&&t.label){const H={rx:0,ry:0,labelPaddingX:a,labelPaddingY:a*1.5};To(t.label,r)+H.labelPaddingX*2<r.er.minEntityWidth&&(t.width=r.er.minEntityWidth);const $=await Zp(e,t,H);if(!Vn(r.htmlLabels)){const Z=$.select("text"),Q=(Y=Z.node())==null?void 0:Y.getBBox();Z.attr("transform",`translate(${-Q.width/2}, 0)`)}return $}r.htmlLabels||(a*=1.25,i*=1.25);let l=yt(t);l||(l="node default");const c=e.insert("g").attr("class",l).attr("id",t.domId||t.id),d=await Hc(c,t.label??"",r,0,0,["name"],s);d.height+=i;let p=0;const h=[];let g=0,b=0,y=0,x=0,w=!0,S=!0;for(const H of n.attributes){const $=await Hc(c,H.type,r,0,p,["attribute-type"],s);g=Math.max(g,$.width+a);const Z=await Hc(c,H.name,r,0,p,["attribute-name"],s);b=Math.max(b,Z.width+a);const Q=await Hc(c,H.keys.join(),r,0,p,["attribute-keys"],s);y=Math.max(y,Q.width+a);const ie=await Hc(c,H.comment,r,0,p,["attribute-comment"],s);x=Math.max(x,ie.width+a),p+=Math.max($.height,Z.height,Q.height,ie.height)+i,h.push(p)}h.pop();let _=4;y<=a&&(w=!1,y=0,_--),x<=a&&(S=!1,x=0,_--);const N=c.node().getBBox();if(d.width+a*2-(g+b+y+x)>0){const H=d.width+a*2-(g+b+y+x);g+=H/_,b+=H/_,y>0&&(y+=H/_),x>0&&(x+=H/_)}const R=g+b+y+x,C=rt.svg(c),A=at(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const I=Math.max(N.width+a*2,(t==null?void 0:t.width)||0,R),D=Math.max(N.height+(h[0]||p)+i,(t==null?void 0:t.height)||0),O=-I/2,P=-D/2;c.selectAll("g:not(:first-child)").each((H,$,Z)=>{const Q=Yt(Z[$]),ie=Q.attr("transform");let te=0,ce=0;if(ie){const ne=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ie);ne&&(te=parseFloat(ne[1]),ce=parseFloat(ne[2]),Q.attr("class").includes("attribute-name")?te+=g:Q.attr("class").includes("attribute-keys")?te+=g+b:Q.attr("class").includes("attribute-comment")&&(te+=g+b+y))}Q.attr("transform",`translate(${O+a/2+te}, ${ce+P+d.height+i/2})`)}),c.select(".name").attr("transform","translate("+-d.width/2+", "+(P+i/2)+")");const G=C.rectangle(O,P,I,D,A),j=c.insert(()=>G,":first-child").attr("style",o.join("")),{themeVariables:W}=Kr(),{rowEven:V,rowOdd:B,nodeBorder:U}=W;h.push(0);for(const[H,$]of h.entries()){if(H===0&&h.length>1)continue;const Z=H%2===0&&$!==0,Q=C.rectangle(O,d.height+P+$,I,d.height,{...A,fill:Z?V:B,stroke:U});c.insert(()=>Q,"g.label").attr("style",o.join("")).attr("class",`row-rect-${H%2===0?"even":"odd"}`)}let M=C.line(O,d.height+P,I+O,d.height+P,A);c.insert(()=>M).attr("class","divider"),M=C.line(g+O,d.height+P,g+O,D+P,A),c.insert(()=>M).attr("class","divider"),w&&(M=C.line(g+b+O,d.height+P,g+b+O,D+P,A),c.insert(()=>M).attr("class","divider")),S&&(M=C.line(g+b+y+O,d.height+P,g+b+y+O,D+P,A),c.insert(()=>M).attr("class","divider"));for(const H of h)M=C.line(O,d.height+P+H,I+O,d.height+P+H,A),c.insert(()=>M).attr("class","divider");return st(t,j),t.intersect=function(H){return et.rect(t,H)},c}z(JL,"erBox");async function Hc(e,t,n,r=0,a=0,i=[],o=""){const s=e.insert("g").attr("class",`label ${i.join(" ")}`).attr("transform",`translate(${r}, ${a})`).attr("style",o);t!==Kz(t)&&(t=Kz(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const l=s.node().appendChild(await Os(s,t,{width:To(t,n)+100,style:o,useHtmlLabels:n.htmlLabels},n));if(t.includes("&lt;")||t.includes("&gt;")){let d=l.children[0];for(d.textContent=d.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");d.childNodes[0];)d=d.childNodes[0],d.textContent=d.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let c=l.getBBox();if(Vn(n.htmlLabels)){const d=l.children[0];d.style.textAlign="start";const p=Yt(l);c=d.getBoundingClientRect(),p.attr("width",c.width),p.attr("height",c.height)}return c}z(Hc,"addText");async function oee(e,t,n,r,a=n.class.padding??12){const i=r?0:3,o=e.insert("g").attr("class",yt(t)).attr("id",t.domId||t.id);let s=null,l=null,c=null,d=null,p=0,h=0,g=0;if(s=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const S=t.annotations[0];await Lf(s,{text:`«${S}»`},0),p=s.node().getBBox().height}l=o.insert("g").attr("class","label-group text"),await Lf(l,t,0,["font-weight: bolder"]);const b=l.node().getBBox();h=b.height,c=o.insert("g").attr("class","members-group text");let y=0;for(const S of t.members){const _=await Lf(c,S,y,[S.parseClassifier()]);y+=_+i}g=c.node().getBBox().height,g<=0&&(g=a/2),d=o.insert("g").attr("class","methods-group text");let x=0;for(const S of t.methods){const _=await Lf(d,S,x,[S.parseClassifier()]);x+=_+i}let w=o.node().getBBox();if(s!==null){const S=s.node().getBBox();s.attr("transform",`translate(${-S.width/2})`)}return l.attr("transform",`translate(${-b.width/2}, ${p})`),w=o.node().getBBox(),c.attr("transform",`translate(0, ${p+h+a*2})`),w=o.node().getBBox(),d.attr("transform",`translate(0, ${p+h+(g?g+a*4:a*2)})`),w=o.node().getBBox(),{shapeSvg:o,bbox:w}}z(oee,"textHelper");async function Lf(e,t,n,r=[]){const a=e.insert("g").attr("class","label").attr("style",r.join("; ")),i=Kr();let o="useHtmlLabels"in t?t.useHtmlLabels:Vn(i.htmlLabels)??!0,s="";"text"in t?s=t.text:s=t.label,!o&&s.startsWith("\\")&&(s=s.substring(1)),wu(s)&&(o=!0);const l=await Os(a,cL(Gl(s)),{width:To(s,i)+50,classes:"markdown-node-label",useHtmlLabels:o},i);let c,d=1;if(o){const p=l.children[0],h=Yt(l);d=p.innerHTML.split("<br>").length,p.innerHTML.includes("</math>")&&(d+=p.innerHTML.split("<mrow>").length-1);const g=p.getElementsByTagName("img");if(g){const b=s.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...g].map(y=>new Promise(x=>{function w(){var S;if(y.style.display="flex",y.style.flexDirection="column",b){const _=((S=i.fontSize)==null?void 0:S.toString())??window.getComputedStyle(document.body).fontSize,R=parseInt(_,10)*5+"px";y.style.minWidth=R,y.style.maxWidth=R}else y.style.width="100%";x(y)}z(w,"setupImage"),setTimeout(()=>{y.complete&&w()}),y.addEventListener("error",w),y.addEventListener("load",w)})))}c=p.getBoundingClientRect(),h.attr("width",c.width),h.attr("height",c.height)}else{r.includes("font-weight: bolder")&&Yt(l).selectAll("tspan").attr("font-weight",""),d=l.children.length;const p=l.children[0];(l.textContent===""||l.textContent.includes("&gt"))&&(p.textContent=s[0]+s.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),s[1]===" "&&(p.textContent=p.textContent[0]+" "+p.textContent.substring(1))),p.textContent==="undefined"&&(p.textContent=""),c=l.getBBox()}return a.attr("transform","translate(0,"+(-c.height/(2*d)+n)+")"),c.height}z(Lf,"addText");async function see(e,t){var D,O;const n=Qt(),r=n.class.padding??12,a=r,i=t.useHtmlLabels??Vn(n.htmlLabels)??!0,o=t;o.annotations=o.annotations??[],o.members=o.members??[],o.methods=o.methods??[];const{shapeSvg:s,bbox:l}=await oee(e,t,n,i,a),{labelStyles:c,nodeStyles:d}=lt(t);t.labelStyle=c,t.cssStyles=o.styles||"";const p=((D=o.styles)==null?void 0:D.join(";"))||d||"";t.cssStyles||(t.cssStyles=p.replaceAll("!important","").split(";"));const h=o.members.length===0&&o.methods.length===0&&!((O=n.class)!=null&&O.hideEmptyMembersBox),g=rt.svg(s),b=at(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const y=l.width;let x=l.height;o.members.length===0&&o.methods.length===0?x+=a:o.members.length>0&&o.methods.length===0&&(x+=a*2);const w=-y/2,S=-x/2,_=g.rectangle(w-r,S-r-(h?r:o.members.length===0&&o.methods.length===0?-r/2:0),y+2*r,x+2*r+(h?r*2:o.members.length===0&&o.methods.length===0?-r:0),b),N=s.insert(()=>_,":first-child");N.attr("class","basic label-container");const R=N.node().getBBox();s.selectAll(".text").each((P,G,j)=>{var K;const W=Yt(j[G]),V=W.attr("transform");let B=0;if(V){const Y=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(V);Y&&(B=parseFloat(Y[2]))}let U=B+S+r-(h?r:o.members.length===0&&o.methods.length===0?-r/2:0);i||(U-=4);let M=w;(W.attr("class").includes("label-group")||W.attr("class").includes("annotation-group"))&&(M=-((K=W.node())==null?void 0:K.getBBox().width)/2||0,s.selectAll("text").each(function(F,Y,H){window.getComputedStyle(H[Y]).textAnchor==="middle"&&(M=0)})),W.attr("transform",`translate(${M}, ${U})`)});const C=s.select(".annotation-group").node().getBBox().height-(h?r/2:0)||0,A=s.select(".label-group").node().getBBox().height-(h?r/2:0)||0,I=s.select(".members-group").node().getBBox().height-(h?r/2:0)||0;if(o.members.length>0||o.methods.length>0||h){const P=g.line(R.x,C+A+S+r,R.x+R.width,C+A+S+r,b);s.insert(()=>P).attr("class","divider").attr("style",p)}if(h||o.members.length>0||o.methods.length>0){const P=g.line(R.x,C+A+I+S+a*2+r,R.x+R.width,C+A+I+S+r+a*2,b);s.insert(()=>P).attr("class","divider").attr("style",p)}if(o.look!=="handDrawn"&&s.selectAll("path").attr("style",p),N.select(":nth-child(2)").attr("style",p),s.selectAll(".divider").select("path").attr("style",p),t.labelStyle?s.selectAll("span").attr("style",t.labelStyle):s.selectAll("span").attr("style",p),!i){const P=RegExp(/color\s*:\s*([^;]*)/),G=P.exec(p);if(G){const j=G[0].replace("color","fill");s.selectAll("tspan").attr("style",j)}else if(c){const j=P.exec(c);if(j){const W=j[0].replace("color","fill");s.selectAll("tspan").attr("style",W)}}}return st(t,N),t.intersect=function(P){return et.rect(t,P)},s}z(see,"classBox");async function lee(e,t){var C,A;const{labelStyles:n,nodeStyles:r}=lt(t);t.labelStyle=n;const a=t,i=t,o=20,s=20,l="verifyMethod"in t,c=yt(t),d=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let p;l?p=await ki(d,`&lt;&lt;${a.type}&gt;&gt;`,0,t.labelStyle):p=await ki(d,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let h=p;const g=await ki(d,a.name,h,t.labelStyle+"; font-weight: bold;");if(h+=g+s,l){const I=await ki(d,`${a.requirementId?`Id: ${a.requirementId}`:""}`,h,t.labelStyle);h+=I;const D=await ki(d,`${a.text?`Text: ${a.text}`:""}`,h,t.labelStyle);h+=D;const O=await ki(d,`${a.risk?`Risk: ${a.risk}`:""}`,h,t.labelStyle);h+=O,await ki(d,`${a.verifyMethod?`Verification: ${a.verifyMethod}`:""}`,h,t.labelStyle)}else{const I=await ki(d,`${i.type?`Type: ${i.type}`:""}`,h,t.labelStyle);h+=I,await ki(d,`${i.docRef?`Doc Ref: ${i.docRef}`:""}`,h,t.labelStyle)}const b=(((C=d.node())==null?void 0:C.getBBox().width)??200)+o,y=(((A=d.node())==null?void 0:A.getBBox().height)??200)+o,x=-b/2,w=-y/2,S=rt.svg(d),_=at(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const N=S.rectangle(x,w,b,y,_),R=d.insert(()=>N,":first-child");if(R.attr("class","basic label-container").attr("style",r),d.selectAll(".label").each((I,D,O)=>{const P=Yt(O[D]),G=P.attr("transform");let j=0,W=0;if(G){const M=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(G);M&&(j=parseFloat(M[1]),W=parseFloat(M[2]))}const V=W-y/2;let B=x+o/2;(D===0||D===1)&&(B=j),P.attr("transform",`translate(${B}, ${V+o})`)}),h>p+g+s){const I=S.line(x,w+p+g+s,x+b,w+p+g+s,_);d.insert(()=>I).attr("style",r)}return st(t,R),t.intersect=function(I){return et.rect(t,I)},d}z(lee,"requirementBox");async function ki(e,t,n,r=""){if(t==="")return 0;const a=e.insert("g").attr("class","label").attr("style",r),i=Qt(),o=i.htmlLabels??!0,s=await Os(a,cL(Gl(t)),{width:To(t,i)+50,classes:"markdown-node-label",useHtmlLabels:o,style:r},i);let l;if(o){const c=s.children[0],d=Yt(s);l=c.getBoundingClientRect(),d.attr("width",l.width),d.attr("height",l.height)}else{const c=s.children[0];for(const d of c.children)d.textContent=d.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),r&&d.setAttribute("style",r);l=s.getBBox(),l.height+=6}return a.attr("transform",`translate(${-l.width/2},${-l.height/2+n})`),l.height}z(ki,"addText");var PPe=z(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function cee(e,t,{config:n}){var G,j;const{labelStyles:r,nodeStyles:a}=lt(t);t.labelStyle=r||"";const i=10,o=t.width;t.width=(t.width??200)-10;const{shapeSvg:s,bbox:l,label:c}=await St(e,t,yt(t)),d=t.padding||10;let p="",h;"ticket"in t&&t.ticket&&((G=n==null?void 0:n.kanban)!=null&&G.ticketBaseUrl)&&(p=(j=n==null?void 0:n.kanban)==null?void 0:j.ticketBaseUrl.replace("#TICKET#",t.ticket),h=s.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",p).attr("target","_blank"));const g={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let b,y;h?{label:b,bbox:y}=await S0(h,"ticket"in t&&t.ticket||"",g):{label:b,bbox:y}=await S0(s,"ticket"in t&&t.ticket||"",g);const{label:x,bbox:w}=await S0(s,"assigned"in t&&t.assigned||"",g);t.width=o;const S=10,_=(t==null?void 0:t.width)||0,N=Math.max(y.height,w.height)/2,R=Math.max(l.height+S*2,(t==null?void 0:t.height)||0)+N,C=-_/2,A=-R/2;c.attr("transform","translate("+(d-_/2)+", "+(-N-l.height/2)+")"),b.attr("transform","translate("+(d-_/2)+", "+(-N+l.height/2)+")"),x.attr("transform","translate("+(d+_/2-w.width-2*i)+", "+(-N+l.height/2)+")");let I;const{rx:D,ry:O}=t,{cssStyles:P}=t;if(t.look==="handDrawn"){const W=rt.svg(s),V=at(t,{}),B=D||O?W.path(Do(C,A,_,R,D||0),V):W.rectangle(C,A,_,R,V);I=s.insert(()=>B,":first-child"),I.attr("class","basic label-container").attr("style",P||null)}else{I=s.insert("rect",":first-child"),I.attr("class","basic label-container __APA__").attr("style",a).attr("rx",D??5).attr("ry",O??5).attr("x",C).attr("y",A).attr("width",_).attr("height",R);const W="priority"in t&&t.priority;if(W){const V=s.append("line"),B=C+2,U=A+Math.floor((D??0)/2),M=A+R-Math.floor((D??0)/2);V.attr("x1",B).attr("y1",U).attr("x2",B).attr("y2",M).attr("stroke-width","4").attr("stroke",PPe(W))}}return st(t,I),t.height=R,t.intersect=function(W){return et.rect(t,W)},s}z(cee,"kanbanItem");var BPe=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:GJ},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:jJ},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:qJ},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:KJ},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:hJ},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:sJ},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:BJ},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:SJ},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:LJ},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:NJ},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:eee},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:AJ},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:mJ},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:QJ},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:iJ},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:UJ},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:YJ},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:VJ},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:vJ},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:wJ},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:uJ},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:dJ},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:fJ},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:OJ},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:ree},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:xJ},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:JJ},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:DJ},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:pJ},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:gJ},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:nee},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:iee},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:bJ},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:tee},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:yJ},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:HJ},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:FJ},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:MJ},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:aJ},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:cJ},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:ZJ},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:XJ},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:aee},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:zJ},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:IJ}],zPe=z(()=>{const t=[...Object.entries({state:WJ,choice:oJ,note:PJ,rectWithTitle:$J,labelRect:RJ,iconSquare:CJ,iconCircle:kJ,icon:EJ,iconRounded:_J,imageSquare:TJ,anchor:rJ,kanbanItem:cee,classBox:see,erBox:JL,requirementBox:lee}),...BPe.flatMap(n=>[n.shortName,..."aliases"in n?n.aliases:[],..."internalAliases"in n?n.internalAliases:[]].map(a=>[a,n.handler]))];return Object.fromEntries(t)},"generateShapeMap"),uee=zPe();function $Pe(e){return e in uee}z($Pe,"isValidShape");var sv=new Map;async function dee(e,t,n){let r,a;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const i=t.shape?uee[t.shape]:void 0;if(!i)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;n.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),r=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),a=await i(r,t,n)}else a=await i(e,t,n),r=a;return t.tooltip&&a.attr("title",t.tooltip),sv.set(t.id,r),t.haveCallback&&r.attr("class",r.attr("class")+" clickable"),r}z(dee,"insertNode");var p7e=z((e,t)=>{sv.set(t.id,e)},"setNodeElem"),h7e=z(()=>{sv.clear()},"clear"),g7e=z(e=>{const t=sv.get(e.id);Le.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const n=8,r=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+r-e.width/2)+", "+(e.y-e.height/2-n)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),r},"positionNode"),jPe=z((e,t,n,r,a,i)=>{t.arrowTypeStart&&t5(e,"start",t.arrowTypeStart,n,r,a,i),t.arrowTypeEnd&&t5(e,"end",t.arrowTypeEnd,n,r,a,i)},"addEdgeMarkers"),UPe={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},t5=z((e,t,n,r,a,i,o)=>{var p;const s=UPe[n];if(!s){Le.warn(`Unknown arrow type: ${n}`);return}const l=s.type,d=`${a}_${i}-${l}${t==="start"?"Start":"End"}`;if(o&&o.trim()!==""){const h=o.replace(/[^\dA-Za-z]/g,"_"),g=`${d}_${h}`;if(!document.getElementById(g)){const b=document.getElementById(d);if(b){const y=b.cloneNode(!0);y.id=g,y.querySelectorAll("path, circle, line").forEach(w=>{w.setAttribute("stroke",o),s.fill&&w.setAttribute("fill",o)}),(p=b.parentNode)==null||p.appendChild(y)}}e.attr(`marker-${t}`,`url(${r}#${g})`)}else e.attr(`marker-${t}`,`url(${r}#${d})`)},"addEdgeMarker"),zb=new Map,ur=new Map,m7e=z(()=>{zb.clear(),ur.clear()},"clear"),wf=z(e=>e?e.reduce((n,r)=>n+";"+r,""):"","getLabelStyles"),HPe=z(async(e,t)=>{let n=Vn(Qt().flowchart.htmlLabels);const r=await Os(e,t.label,{style:wf(t.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1});Le.info("abc82",t,t.labelType);const a=e.insert("g").attr("class","edgeLabel"),i=a.insert("g").attr("class","label");i.node().appendChild(r);let o=r.getBBox();if(n){const l=r.children[0],c=Yt(r);o=l.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),zb.set(t.id,a),t.width=o.width,t.height=o.height;let s;if(t.startLabelLeft){const l=await yl(t.startLabelLeft,wf(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),d=c.insert("g").attr("class","inner");s=d.node().appendChild(l);const p=l.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),ur.get(t.id)||ur.set(t.id,{}),ur.get(t.id).startLeft=c,Of(s,t.startLabelLeft)}if(t.startLabelRight){const l=await yl(t.startLabelRight,wf(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),d=c.insert("g").attr("class","inner");s=c.node().appendChild(l),d.node().appendChild(l);const p=l.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),ur.get(t.id)||ur.set(t.id,{}),ur.get(t.id).startRight=c,Of(s,t.startLabelRight)}if(t.endLabelLeft){const l=await yl(t.endLabelLeft,wf(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),d=c.insert("g").attr("class","inner");s=d.node().appendChild(l);const p=l.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),c.node().appendChild(l),ur.get(t.id)||ur.set(t.id,{}),ur.get(t.id).endLeft=c,Of(s,t.endLabelLeft)}if(t.endLabelRight){const l=await yl(t.endLabelRight,wf(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),d=c.insert("g").attr("class","inner");s=d.node().appendChild(l);const p=l.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),c.node().appendChild(l),ur.get(t.id)||ur.set(t.id,{}),ur.get(t.id).endRight=c,Of(s,t.endLabelRight)}return r},"insertEdgeLabel");function Of(e,t){Qt().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}z(Of,"setTerminalWidth");var GPe=z((e,t)=>{Le.debug("Moving label abc88 ",e.id,e.label,zb.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath;const r=Qt(),{subGraphTitleTotalMargin:a}=bL(r);if(e.label){const i=zb.get(e.id);let o=e.x,s=e.y;if(n){const l=Ri.calcLabelPosition(n);Le.debug("Moving label "+e.label+" from (",o,",",s,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(o=l.x,s=l.y)}i.attr("transform",`translate(${o}, ${s+a/2})`)}if(e.startLabelLeft){const i=ur.get(e.id).startLeft;let o=e.x,s=e.y;if(n){const l=Ri.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",n);o=l.x,s=l.y}i.attr("transform",`translate(${o}, ${s})`)}if(e.startLabelRight){const i=ur.get(e.id).startRight;let o=e.x,s=e.y;if(n){const l=Ri.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",n);o=l.x,s=l.y}i.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelLeft){const i=ur.get(e.id).endLeft;let o=e.x,s=e.y;if(n){const l=Ri.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",n);o=l.x,s=l.y}i.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelRight){const i=ur.get(e.id).endRight;let o=e.x,s=e.y;if(n){const l=Ri.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",n);o=l.x,s=l.y}i.attr("transform",`translate(${o}, ${s})`)}},"positionEdgeLabel"),qPe=z((e,t)=>{const n=e.x,r=e.y,a=Math.abs(t.x-n),i=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return a>=o||i>=s},"outsideNode"),WPe=z((e,t,n)=>{Le.debug(`intersection calc abc89:
outsidePoint: ${JSON.stringify(t)}
insidePoint : ${JSON.stringify(n)}
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const r=e.x,a=e.y,i=Math.abs(r-n.x),o=e.width/2;let s=n.x<t.x?o-i:o+i;const l=e.height/2,c=Math.abs(t.y-n.y),d=Math.abs(t.x-n.x);if(Math.abs(a-t.y)*o>Math.abs(r-t.x)*l){let p=n.y<t.y?t.y-l-a:a-l-t.y;s=d*p/c;const h={x:n.x<t.x?n.x+s:n.x-d+s,y:n.y<t.y?n.y+c-p:n.y-c+p};return s===0&&(h.x=t.x,h.y=t.y),d===0&&(h.x=t.x),c===0&&(h.y=t.y),Le.debug(`abc89 top/bottom calc, Q ${c}, q ${p}, R ${d}, r ${s}`,h),h}else{n.x<t.x?s=t.x-o-r:s=r-o-t.x;let p=c*s/d,h=n.x<t.x?n.x+d-s:n.x-d+s,g=n.y<t.y?n.y+p:n.y-p;return Le.debug(`sides calc abc89, Q ${c}, q ${p}, R ${d}, r ${s}`,{_x:h,_y:g}),s===0&&(h=t.x,g=t.y),d===0&&(h=t.x),c===0&&(g=t.y),{x:h,y:g}}},"intersection"),n5=z((e,t)=>{Le.warn("abc88 cutPathAtIntersect",e,t);let n=[],r=e[0],a=!1;return e.forEach(i=>{if(Le.info("abc88 checking point",i,t),!qPe(t,i)&&!a){const o=WPe(t,r,i);Le.debug("abc88 inside",i,r,o),Le.debug("abc88 intersection",o,t);let s=!1;n.forEach(l=>{s=s||l.x===o.x&&l.y===o.y}),n.some(l=>l.x===o.x&&l.y===o.y)?Le.warn("abc88 no intersect",o,n):n.push(o),a=!0}else Le.warn("abc88 outside",i,r),r=i,a||n.push(i)}),Le.debug("returning points",n),n},"cutPathAtIntersect");function fee(e){const t=[],n=[];for(let r=1;r<e.length-1;r++){const a=e[r-1],i=e[r],o=e[r+1];(a.x===i.x&&i.y===o.y&&Math.abs(i.x-o.x)>5&&Math.abs(i.y-a.y)>5||a.y===i.y&&i.x===o.x&&Math.abs(i.x-a.x)>5&&Math.abs(i.y-o.y)>5)&&(t.push(i),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}z(fee,"extractCornerPoints");var r5=z(function(e,t,n){const r=t.x-e.x,a=t.y-e.y,i=Math.sqrt(r*r+a*a),o=n/i;return{x:t.x-o*r,y:t.y-o*a}},"findAdjacentPoint"),VPe=z(function(e){const{cornerPointPositions:t}=fee(e),n=[];for(let r=0;r<e.length;r++)if(t.includes(r)){const a=e[r-1],i=e[r+1],o=e[r],s=r5(a,o,5),l=r5(i,o,5),c=l.x-s.x,d=l.y-s.y;n.push(s);const p=Math.sqrt(2)*2;let h={x:o.x,y:o.y};if(Math.abs(i.x-a.x)>10&&Math.abs(i.y-a.y)>=10){Le.debug("Corner point fixing",Math.abs(i.x-a.x),Math.abs(i.y-a.y));const g=5;o.x===s.x?h={x:c<0?s.x-g+p:s.x+g-p,y:d<0?s.y-p:s.y+p}:h={x:c<0?s.x-p:s.x+p,y:d<0?s.y-g+p:s.y+g-p}}else Le.debug("Corner point skipping fixing",Math.abs(i.x-a.x),Math.abs(i.y-a.y));n.push(h,l)}else n.push(e[r]);return n},"fixCorners"),YPe=z(function(e,t,n,r,a,i,o){var D;const{handDrawnSeed:s}=Qt();let l=t.points,c=!1;const d=a;var p=i;const h=[];for(const O in t.cssCompiledStyles)YQ(O)||h.push(t.cssCompiledStyles[O]);p.intersect&&d.intersect&&(l=l.slice(1,t.points.length-1),l.unshift(d.intersect(l[0])),Le.debug("Last point APA12",t.start,"-->",t.end,l[l.length-1],p,p.intersect(l[l.length-1])),l.push(p.intersect(l[l.length-1]))),t.toCluster&&(Le.info("to cluster abc88",n.get(t.toCluster)),l=n5(t.points,n.get(t.toCluster).node),c=!0),t.fromCluster&&(Le.debug("from cluster abc88",n.get(t.fromCluster),JSON.stringify(l,null,2)),l=n5(l.reverse(),n.get(t.fromCluster).node).reverse(),c=!0);let g=l.filter(O=>!Number.isNaN(O.y));g=VPe(g);let b=Cm;switch(b=Eb,t.curve){case"linear":b=Eb;break;case"basis":b=Cm;break;case"cardinal":b=MZ;break;case"bumpX":b=NZ;break;case"bumpY":b=LZ;break;case"catmullRom":b=PZ;break;case"monotoneX":b=HZ;break;case"monotoneY":b=GZ;break;case"natural":b=WZ;break;case"step":b=VZ;break;case"stepAfter":b=KZ;break;case"stepBefore":b=YZ;break;default:b=Cm}const{x:y,y:x}=b2e(t),w=dDe().x(y).y(x).curve(b);let S;switch(t.thickness){case"normal":S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;case"invisible":S="edge-thickness-invisible";break;default:S="edge-thickness-normal"}switch(t.pattern){case"solid":S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed";break;default:S+=" edge-pattern-solid"}let _,N=w(g);const R=Array.isArray(t.style)?t.style:[t.style];let C=R.find(O=>O==null?void 0:O.startsWith("stroke:"));if(t.look==="handDrawn"){const O=rt.svg(e);Object.assign([],g);const P=O.path(N,{roughness:.3,seed:s});S+=" transition",_=Yt(P).select("path").attr("id",t.id).attr("class"," "+S+(t.classes?" "+t.classes:"")).attr("style",R?R.reduce((j,W)=>j+";"+W,""):"");let G=_.attr("d");_.attr("d",G),e.node().appendChild(_.node())}else{const O=h.join(";"),P=R?R.reduce((W,V)=>W+V+";",""):"";let G="";t.animate&&(G=" edge-animation-fast"),t.animation&&(G=" edge-animation-"+t.animation);const j=O?O+";"+P+";":P;_=e.append("path").attr("d",N).attr("id",t.id).attr("class"," "+S+(t.classes?" "+t.classes:"")+(G??"")).attr("style",j),C=(D=j.match(/stroke:([^;]+)/))==null?void 0:D[1]}let A="";(Qt().flowchart.arrowMarkerAbsolute||Qt().state.arrowMarkerAbsolute)&&(A=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,A=A.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),Le.info("arrowTypeStart",t.arrowTypeStart),Le.info("arrowTypeEnd",t.arrowTypeEnd),jPe(_,t,A,o,r,C);let I={};return c&&(I.updatedPath=l),I.originalPath=t.points,I},"insertEdge"),KPe=z((e,t,n,r)=>{t.forEach(a=>{dBe[a](e,n,r)})},"insertMarkers"),XPe=z((e,t,n)=>{Le.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),ZPe=z((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),QPe=z((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),JPe=z((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),eBe=z((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),tBe=z((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),nBe=z((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),rBe=z((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),aBe=z((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),iBe=z((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),oBe=z((e,t,n)=>{const r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("d","M9,0 L9,18");const a=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),a.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),sBe=z((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),lBe=z((e,t,n)=>{const r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const a=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),a.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),cBe=z((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
L20,10
M20,10
L0,20`)},"requirement_arrow"),uBe=z((e,t,n)=>{const r=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");r.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),r.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),r.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),dBe={extension:XPe,composition:ZPe,aggregation:QPe,dependency:JPe,lollipop:eBe,point:tBe,circle:nBe,cross:rBe,barb:aBe,only_one:iBe,zero_or_one:oBe,one_or_more:sBe,zero_or_more:lBe,requirement_arrow:cBe,requirement_contains:uBe},fBe=KPe,pBe={common:Xu,getConfig:Kr,insertCluster:SPe,insertEdge:YPe,insertEdgeLabel:HPe,insertMarkers:fBe,insertNode:dee,interpolateToCurve:IL,labelHelper:St,log:Le,positionEdgeLabel:GPe},bp={},pee=z(e=>{for(const t of e)bp[t.name]=t},"registerLayoutLoaders"),hBe=z(()=>{pee([{name:"dagre",loader:z(async()=>await an(()=>import("./dagre-OKDRZEBW-CGLGKqWw.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")}])},"registerDefaultLayoutLoaders");hBe();var b7e=z(async(e,t)=>{if(!(e.layoutAlgorithm in bp))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const n=bp[e.layoutAlgorithm];return(await n.loader()).render(e,t,pBe,{algorithm:n.algorithm})},"render"),y7e=z((e="",{fallback:t="dagre"}={})=>{if(e in bp)return e;if(t in bp)return Le.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),a5={version:"11.6.0"},gBe=z(e=>{var a;const{securityLevel:t}=Qt();let n=Yt("body");if(t==="sandbox"){const o=((a=Yt(`#i${e}`).node())==null?void 0:a.contentDocument)??document;n=Yt(o.body)}return n.select(`#${e}`)},"selectSvgElement"),hee="comm",gee="rule",mee="decl",mBe="@import",bBe="@namespace",yBe="@keyframes",vBe="@layer",bee=Math.abs,eO=String.fromCharCode;function yee(e){return e.trim()}function Rm(e,t,n){return e.replace(t,n)}function xBe(e,t,n){return e.indexOf(t,n)}function tu(e,t){return e.charCodeAt(t)|0}function Tu(e,t,n){return e.slice(t,n)}function Ci(e){return e.length}function SBe(e){return e.length}function Kg(e,t){return t.push(e),e}var lv=1,Au=1,vee=0,Ga=0,zn=0,td="";function tO(e,t,n,r,a,i,o,s){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:lv,column:Au,length:o,return:"",siblings:s}}function wBe(){return zn}function EBe(){return zn=Ga>0?tu(td,--Ga):0,Au--,zn===10&&(Au=1,lv--),zn}function li(){return zn=Ga<vee?tu(td,Ga++):0,Au++,zn===10&&(Au=1,lv++),zn}function hs(){return tu(td,Ga)}function Nm(){return Ga}function cv(e,t){return Tu(td,e,t)}function yp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function kBe(e){return lv=Au=1,vee=Ci(td=e),Ga=0,[]}function _Be(e){return td="",e}function w0(e){return yee(cv(Ga-1,n2(e===91?e+2:e===40?e+1:e)))}function CBe(e){for(;(zn=hs())&&zn<33;)li();return yp(e)>2||yp(zn)>3?"":" "}function TBe(e,t){for(;--t&&li()&&!(zn<48||zn>102||zn>57&&zn<65||zn>70&&zn<97););return cv(e,Nm()+(t<6&&hs()==32&&li()==32))}function n2(e){for(;li();)switch(zn){case e:return Ga;case 34:case 39:e!==34&&e!==39&&n2(zn);break;case 40:e===41&&n2(e);break;case 92:li();break}return Ga}function ABe(e,t){for(;li()&&e+zn!==57;)if(e+zn===84&&hs()===47)break;return"/*"+cv(t,Ga-1)+"*"+eO(e===47?e:li())}function RBe(e){for(;!yp(hs());)li();return cv(e,Ga)}function NBe(e){return _Be(Lm("",null,null,null,[""],e=kBe(e),0,[0],e))}function Lm(e,t,n,r,a,i,o,s,l){for(var c=0,d=0,p=o,h=0,g=0,b=0,y=1,x=1,w=1,S=0,_="",N=a,R=i,C=r,A=_;x;)switch(b=S,S=li()){case 40:if(b!=108&&tu(A,p-1)==58){xBe(A+=Rm(w0(S),"&","&\f"),"&\f",bee(c?s[c-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:A+=w0(S);break;case 9:case 10:case 13:case 32:A+=CBe(b);break;case 92:A+=TBe(Nm()-1,7);continue;case 47:switch(hs()){case 42:case 47:Kg(LBe(ABe(li(),Nm()),t,n,l),l),(yp(b||1)==5||yp(hs()||1)==5)&&Ci(A)&&Tu(A,-1,void 0)!==" "&&(A+=" ");break;default:A+="/"}break;case 123*y:s[c++]=Ci(A)*w;case 125*y:case 59:case 0:switch(S){case 0:case 125:x=0;case 59+d:w==-1&&(A=Rm(A,/\f/g,"")),g>0&&(Ci(A)-p||y===0&&b===47)&&Kg(g>32?o5(A+";",r,n,p-1,l):o5(Rm(A," ","")+";",r,n,p-2,l),l);break;case 59:A+=";";default:if(Kg(C=i5(A,t,n,c,d,a,s,_,N=[],R=[],p,i),i),S===123)if(d===0)Lm(A,t,C,C,N,i,p,s,R);else{switch(h){case 99:if(tu(A,3)===110)break;case 108:if(tu(A,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Lm(e,C,C,r&&Kg(i5(e,C,C,0,0,a,s,_,a,N=[],p,R),R),a,R,p,s,r?N:R):Lm(A,C,C,C,[""],R,0,s,R)}}c=d=g=0,y=w=1,_=A="",p=o;break;case 58:p=1+Ci(A),g=b;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&EBe()==125)continue}switch(A+=eO(S),S*y){case 38:w=d>0?1:(A+="\f",-1);break;case 44:s[c++]=(Ci(A)-1)*w,w=1;break;case 64:hs()===45&&(A+=w0(li())),h=hs(),d=p=Ci(_=A+=RBe(Nm())),S++;break;case 45:b===45&&Ci(A)==2&&(y=0)}}return i}function i5(e,t,n,r,a,i,o,s,l,c,d,p){for(var h=a-1,g=a===0?i:[""],b=SBe(g),y=0,x=0,w=0;y<r;++y)for(var S=0,_=Tu(e,h+1,h=bee(x=o[y])),N=e;S<b;++S)(N=yee(x>0?g[S]+" "+_:Rm(_,/&\f/g,g[S])))&&(l[w++]=N);return tO(e,t,n,a===0?gee:s,l,c,d,p)}function LBe(e,t,n,r){return tO(e,t,n,hee,eO(wBe()),Tu(e,2,-2),0,r)}function o5(e,t,n,r,a){return tO(e,t,n,mee,Tu(e,0,r),Tu(e,r+1,-1),r,a)}function r2(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function OBe(e,t,n,r){switch(e.type){case vBe:if(e.children.length)break;case mBe:case bBe:case mee:return e.return=e.return||e.value;case hee:return"";case yBe:return e.return=e.value+"{"+r2(e.children,r)+"}";case gee:if(!Ci(e.value=e.props.join(",")))return""}return Ci(n=r2(e.children,r))?e.return=e.value+"{"+n+"}":""}var DBe=JZ(Object.keys,Object),IBe=Object.prototype,MBe=IBe.hasOwnProperty;function FBe(e){if(!Jy(e))return DBe(e);var t=[];for(var n in Object(e))MBe.call(e,n)&&n!="constructor"&&t.push(n);return t}var a2=Hl(Hi,"DataView"),i2=Hl(Hi,"Promise"),o2=Hl(Hi,"Set"),s2=Hl(Hi,"WeakMap"),s5="[object Map]",PBe="[object Object]",l5="[object Promise]",c5="[object Set]",u5="[object WeakMap]",d5="[object DataView]",BBe=Ul(a2),zBe=Ul(mp),$Be=Ul(i2),jBe=Ul(o2),UBe=Ul(s2),ll=Zu;(a2&&ll(new a2(new ArrayBuffer(1)))!=d5||mp&&ll(new mp)!=s5||i2&&ll(i2.resolve())!=l5||o2&&ll(new o2)!=c5||s2&&ll(new s2)!=u5)&&(ll=function(e){var t=Zu(e),n=t==PBe?e.constructor:void 0,r=n?Ul(n):"";if(r)switch(r){case BBe:return d5;case zBe:return s5;case $Be:return l5;case jBe:return c5;case UBe:return u5}return t});var HBe="[object Map]",GBe="[object Set]",qBe=Object.prototype,WBe=qBe.hasOwnProperty;function f5(e){if(e==null)return!0;if(ev(e)&&(Nb(e)||typeof e=="string"||typeof e.splice=="function"||OL(e)||DL(e)||Rb(e)))return!e.length;var t=ll(e);if(t==HBe||t==GBe)return!e.size;if(Jy(e))return!FBe(e).length;for(var n in e)if(WBe.call(e,n))return!1;return!0}var xee="c4",VBe=z(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),YBe=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./c4Diagram-VJAJSXHY-BN5_uwIb.js");return{diagram:t}},__vite__mapDeps([6,7]));return{id:xee,diagram:e}},"loader"),KBe={id:xee,detector:VBe,loader:YBe},XBe=KBe,See="flowchart",ZBe=z((e,t)=>{var n,r;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),QBe=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./flowDiagram-4HSFHLVR-CPQBP0rf.js");return{diagram:t}},__vite__mapDeps([8,9,10]));return{id:See,diagram:e}},"loader"),JBe={id:See,detector:ZBe,loader:QBe},eze=JBe,wee="flowchart-v2",tze=z((e,t)=>{var n,r,a;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"?!1:(((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),nze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./flowDiagram-4HSFHLVR-CPQBP0rf.js");return{diagram:t}},__vite__mapDeps([8,9,10]));return{id:wee,diagram:e}},"loader"),rze={id:wee,detector:tze,loader:nze},aze=rze,Eee="er",ize=z(e=>/^\s*erDiagram/.test(e),"detector"),oze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./erDiagram-Q7BY3M3F-wlsG6Z10.js");return{diagram:t}},__vite__mapDeps([11,9,10]));return{id:Eee,diagram:e}},"loader"),sze={id:Eee,detector:ize,loader:oze},lze=sze,kee="gitGraph",cze=z(e=>/^\s*gitGraph/.test(e),"detector"),uze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./gitGraphDiagram-7IBYFJ6S-Cz1LC2mu.js");return{diagram:t}},__vite__mapDeps([12,13,14,15,2,4,5]));return{id:kee,diagram:e}},"loader"),dze={id:kee,detector:cze,loader:uze},fze=dze,_ee="gantt",pze=z(e=>/^\s*gantt/.test(e),"detector"),hze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./ganttDiagram-APWFNJXF-D5n-1VFv.js");return{diagram:t}},__vite__mapDeps([16,17,18]));return{id:_ee,diagram:e}},"loader"),gze={id:_ee,detector:pze,loader:hze},mze=gze,Cee="info",bze=z(e=>/^\s*info/.test(e),"detector"),yze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./infoDiagram-PH2N3AL5-BjhqsDcK.js");return{diagram:t}},__vite__mapDeps([19,15,2,4,5]));return{id:Cee,diagram:e}},"loader"),vze={id:Cee,detector:bze,loader:yze},Tee="pie",xze=z(e=>/^\s*pie/.test(e),"detector"),Sze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./pieDiagram-IB7DONF6-CD5aoKMy.js");return{diagram:t}},__vite__mapDeps([20,13,15,2,4,5,21,22,18]));return{id:Tee,diagram:e}},"loader"),wze={id:Tee,detector:xze,loader:Sze},Aee="quadrantChart",Eze=z(e=>/^\s*quadrantChart/.test(e),"detector"),kze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./quadrantDiagram-7GDLP6J5-C83eLFL3.js");return{diagram:t}},__vite__mapDeps([23,17,18]));return{id:Aee,diagram:e}},"loader"),_ze={id:Aee,detector:Eze,loader:kze},Cze=_ze,Ree="xychart",Tze=z(e=>/^\s*xychart-beta/.test(e),"detector"),Aze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./xychartDiagram-VJFVF3MP-Dfdu6LZP.js");return{diagram:t}},__vite__mapDeps([24,18,22,17]));return{id:Ree,diagram:e}},"loader"),Rze={id:Ree,detector:Tze,loader:Aze},Nze=Rze,Nee="requirement",Lze=z(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),Oze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./requirementDiagram-KVF5MWMF-BJVJ5LRo.js");return{diagram:t}},__vite__mapDeps([25,9]));return{id:Nee,diagram:e}},"loader"),Dze={id:Nee,detector:Lze,loader:Oze},Ize=Dze,Lee="sequence",Mze=z(e=>/^\s*sequenceDiagram/.test(e),"detector"),Fze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./sequenceDiagram-X6HHIX6F-gz9G4_2U.js");return{diagram:t}},__vite__mapDeps([26,7,14]));return{id:Lee,diagram:e}},"loader"),Pze={id:Lee,detector:Mze,loader:Fze},Bze=Pze,Oee="class",zze=z((e,t)=>{var n;return((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),$ze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./classDiagram-GIVACNV2-acOnbCpO.js");return{diagram:t}},__vite__mapDeps([27,28,9]));return{id:Oee,diagram:e}},"loader"),jze={id:Oee,detector:zze,loader:$ze},Uze=jze,Dee="classDiagram",Hze=z((e,t)=>{var n;return/^\s*classDiagram/.test(e)&&((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),Gze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./classDiagram-v2-COTLJTTW-acOnbCpO.js");return{diagram:t}},__vite__mapDeps([29,28,9]));return{id:Dee,diagram:e}},"loader"),qze={id:Dee,detector:Hze,loader:Gze},Wze=qze,Iee="state",Vze=z((e,t)=>{var n;return((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),Yze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./stateDiagram-DGXRK772-Dqjs1uNr.js");return{diagram:t}},__vite__mapDeps([30,31,9,1,2,3,4]));return{id:Iee,diagram:e}},"loader"),Kze={id:Iee,detector:Vze,loader:Yze},Xze=Kze,Mee="stateDiagram",Zze=z((e,t)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},"detector"),Qze=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./stateDiagram-v2-YXO3MK2T-IumEckhu.js");return{diagram:t}},__vite__mapDeps([32,31,9]));return{id:Mee,diagram:e}},"loader"),Jze={id:Mee,detector:Zze,loader:Qze},e3e=Jze,Fee="journey",t3e=z(e=>/^\s*journey/.test(e),"detector"),n3e=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./journeyDiagram-U35MCT3I-CRuT1sZr.js");return{diagram:t}},__vite__mapDeps([33,7,21]));return{id:Fee,diagram:e}},"loader"),r3e={id:Fee,detector:t3e,loader:n3e},a3e=r3e,i3e=z((e,t,n)=>{Le.debug(`rendering svg for syntax error
`);const r=gBe(t),a=r.append("g");r.attr("viewBox","0 0 2412 512"),mK(r,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw"),Pee={draw:i3e},o3e=Pee,s3e={db:{},renderer:Pee,parser:{parse:z(()=>{},"parse")}},l3e=s3e,Bee="flowchart-elk",c3e=z((e,t={})=>{var n;return/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),u3e=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./flowDiagram-4HSFHLVR-CPQBP0rf.js");return{diagram:t}},__vite__mapDeps([8,9,10]));return{id:Bee,diagram:e}},"loader"),d3e={id:Bee,detector:c3e,loader:u3e},f3e=d3e,zee="timeline",p3e=z(e=>/^\s*timeline/.test(e),"detector"),h3e=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./timeline-definition-BDJGKUSR-DSYi8csu.js");return{diagram:t}},__vite__mapDeps([34,21]));return{id:zee,diagram:e}},"loader"),g3e={id:zee,detector:p3e,loader:h3e},m3e=g3e,$ee="mindmap",b3e=z(e=>/^\s*mindmap/.test(e),"detector"),y3e=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./mindmap-definition-ALO5MXBD-DyPb8ezw.js");return{diagram:t}},__vite__mapDeps([35,36]));return{id:$ee,diagram:e}},"loader"),v3e={id:$ee,detector:b3e,loader:y3e},x3e=v3e,jee="kanban",S3e=z(e=>/^\s*kanban/.test(e),"detector"),w3e=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./kanban-definition-NDS4AKOZ-D5BkJ8Zr.js");return{diagram:t}},[]);return{id:jee,diagram:e}},"loader"),E3e={id:jee,detector:S3e,loader:w3e},k3e=E3e,Uee="sankey",_3e=z(e=>/^\s*sankey-beta/.test(e),"detector"),C3e=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./sankeyDiagram-QLVOVGJD-CeOiKBYU.js");return{diagram:t}},__vite__mapDeps([37,22,18]));return{id:Uee,diagram:e}},"loader"),T3e={id:Uee,detector:_3e,loader:C3e},A3e=T3e,Hee="packet",R3e=z(e=>/^\s*packet-beta/.test(e),"detector"),N3e=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./diagram-VNBRO52H-BxSEPkct.js");return{diagram:t}},__vite__mapDeps([38,13,15,2,4,5]));return{id:Hee,diagram:e}},"loader"),L3e={id:Hee,detector:R3e,loader:N3e},Gee="radar",O3e=z(e=>/^\s*radar-beta/.test(e),"detector"),D3e=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./diagram-SSKATNLV-DAf1IW2R.js");return{diagram:t}},__vite__mapDeps([39,13,15,2,4,5]));return{id:Gee,diagram:e}},"loader"),I3e={id:Gee,detector:O3e,loader:D3e},qee="block",M3e=z(e=>/^\s*block-beta/.test(e),"detector"),F3e=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./blockDiagram-JOT3LUYC-CMvDpqP1.js");return{diagram:t}},__vite__mapDeps([40,5,2,1,10]));return{id:qee,diagram:e}},"loader"),P3e={id:qee,detector:M3e,loader:F3e},B3e=P3e,Wee="architecture",z3e=z(e=>/^\s*architecture/.test(e),"detector"),$3e=z(async()=>{const{diagram:e}=await an(async()=>{const{diagram:t}=await import("./architectureDiagram-IEHRJDOE-BPwMqCMS.js");return{diagram:t}},__vite__mapDeps([41,13,14,15,2,4,5,36]));return{id:Wee,diagram:e}},"loader"),j3e={id:Wee,detector:z3e,loader:$3e},U3e=j3e,p5=!1,uv=z(()=>{p5||(p5=!0,cb("error",l3e,e=>e.toLowerCase().trim()==="error"),cb("---",{db:{clear:z(()=>{},"clear")},styles:{},renderer:{draw:z(()=>{},"draw")},parser:{parse:z(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:z(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),rK(XBe,k3e,Wze,Uze,lze,mze,vze,wze,Ize,Bze,f3e,aze,eze,x3e,m3e,fze,e3e,Xze,a3e,Cze,A3e,L3e,Nze,B3e,U3e,I3e))},"addDiagrams"),H3e=z(async()=>{Le.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(vu).map(async([n,{detector:r,loader:a}])=>{if(a)try{SR(n)}catch{try{const{diagram:i,id:o}=await a();cb(o,i,r)}catch(i){throw Le.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete vu[n],i}}}))).filter(n=>n.status==="rejected");if(t.length>0){Le.error(`Failed to load ${t.length} external diagrams`);for(const n of t)Le.error(n);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),G3e="graphics-document document";function Vee(e,t){e.attr("role",G3e),t!==""&&e.attr("aria-roledescription",t)}z(Vee,"setA11yDiagramInfo");function Yee(e,t,n,r){if(e.insert!==void 0){if(n){const a=`chart-desc-${r}`;e.attr("aria-describedby",a),e.insert("desc",":first-child").attr("id",a).text(n)}if(t){const a=`chart-title-${r}`;e.attr("aria-labelledby",a),e.insert("title",":first-child").attr("id",a).text(t)}}}z(Yee,"addSVGa11yTitleDescription");var wl,l2=(wl=class{constructor(t,n,r,a,i){this.type=t,this.text=n,this.db=r,this.parser=a,this.renderer=i}static async fromText(t,n={}){var c,d;const r=Kr(),a=rL(t,r);t=dFe(t)+`
`;try{SR(a)}catch{const p=bAe(a);if(!p)throw new nK(`Diagram ${a} not found.`);const{id:h,diagram:g}=await p();cb(h,g)}const{db:i,parser:o,renderer:s,init:l}=SR(a);return o.parser&&(o.parser.yy=i),(c=i.clear)==null||c.call(i),l==null||l(r),n.title&&((d=i.setDiagramTitle)==null||d.call(i,n.title)),await o.parse(t),new wl(a,t,i,o,s)}async render(t,n){await this.renderer.draw(this.text,t,n,this)}getParser(){return this.parser}getType(){return this.type}},z(wl,"Diagram"),wl),h5=[],q3e=z(()=>{h5.forEach(e=>{e()}),h5=[]},"attachFunctions"),W3e=z(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Kee(e){const t=e.match(tK);if(!t)return{text:e,metadata:{}};let n=m2e(t[1],{schema:g2e})??{};n=typeof n=="object"&&!Array.isArray(n)?n:{};const r={};return n.displayMode&&(r.displayMode=n.displayMode.toString()),n.title&&(r.title=n.title.toString()),n.config&&(r.config=n.config),{text:e.slice(t[0].length),metadata:r}}z(Kee,"extractFrontMatter");var V3e=z(e=>e.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(t,n,r)=>"<"+n+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Y3e=z(e=>{const{text:t,metadata:n}=Kee(e),{displayMode:r,title:a,config:i={}}=n;return r&&(i.gantt||(i.gantt={}),i.gantt.displayMode=r),{title:a,config:i,text:t}},"processFrontmatter"),K3e=z(e=>{const t=Ri.detectInit(e)??{},n=Ri.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:r})=>r==="wrap"):(n==null?void 0:n.type)==="wrap"&&(t.wrap=!0),{text:QMe(e),directive:t}},"processDirectives");function nO(e){const t=V3e(e),n=Y3e(t),r=K3e(n.text),a=zL(n.config,r.directive);return e=W3e(r.text),{code:e,title:n.title,config:a}}z(nO,"preprocessDiagram");function Xee(e){const t=new TextEncoder().encode(e),n=Array.from(t,r=>String.fromCodePoint(r)).join("");return btoa(n)}z(Xee,"toBase64");var X3e=5e4,Z3e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Q3e="sandbox",J3e="loose",e5e="http://www.w3.org/2000/svg",t5e="http://www.w3.org/1999/xlink",n5e="http://www.w3.org/1999/xhtml",r5e="100%",a5e="100%",i5e="border:0;margin:0;",o5e="margin:0",s5e="allow-top-navigation-by-user-activation allow-popups",l5e='The "iframe" tag is not supported by your browser.',c5e=["foreignobject"],u5e=["dominant-baseline"];function rO(e){const t=nO(e);return sb(),DAe(t.config??{}),t}z(rO,"processAndSetConfigs");async function Zee(e,t){uv();try{const{code:n,config:r}=rO(e);return{diagramType:(await Jee(n)).type,config:r}}catch(n){if(t!=null&&t.suppressErrors)return!1;throw n}}z(Zee,"parse");var g5=z((e,t,n=[])=>`
.${e} ${t} { ${n.join(" !important; ")} !important; }`,"cssImportantStyles"),d5e=z((e,t=new Map)=>{var r;let n="";if(e.themeCSS!==void 0&&(n+=`
${e.themeCSS}`),e.fontFamily!==void 0&&(n+=`
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(n+=`
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const s=e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(l=>{f5(l.styles)||s.forEach(c=>{n+=g5(l.id,c,l.styles)}),f5(l.textStyles)||(n+=g5(l.id,"tspan",((l==null?void 0:l.textStyles)||[]).map(c=>c.replace("color","fill"))))})}return n},"createCssStyles"),f5e=z((e,t,n,r)=>{const a=d5e(e,n),i=QAe(t,a,e.themeVariables);return r2(NBe(`${r}{${i}}`),OBe)},"createUserStyles"),p5e=z((e="",t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=Gl(r),r=r.replace(/<br>/g,"<br/>"),r},"cleanUpSvgCode"),h5e=z((e="",t)=>{var a,i;const n=(i=(a=t==null?void 0:t.viewBox)==null?void 0:a.baseVal)!=null&&i.height?t.viewBox.baseVal.height+"px":a5e,r=Xee(`<body style="${o5e}">${e}</body>`);return`<iframe style="width:${r5e};height:${n};${i5e}" src="data:text/html;charset=UTF-8;base64,${r}" sandbox="${s5e}">
${l5e}
</iframe>`},"putIntoIFrame"),m5=z((e,t,n,r,a)=>{const i=e.append("div");i.attr("id",n),r&&i.attr("style",r);const o=i.append("svg").attr("id",t).attr("width","100%").attr("xmlns",e5e);return a&&o.attr("xmlns:xlink",a),o.append("g"),e},"appendDivSvgG");function c2(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}z(c2,"sandboxedIframe");var g5e=z((e,t,n,r)=>{var a,i,o;(a=e.getElementById(t))==null||a.remove(),(i=e.getElementById(n))==null||i.remove(),(o=e.getElementById(r))==null||o.remove()},"removeExistingElements"),m5e=z(async function(e,t,n){var G,j,W,V,B,U;uv();const r=rO(t);t=r.code;const a=Kr();Le.debug(a),t.length>((a==null?void 0:a.maxTextSize)??X3e)&&(t=Z3e);const i="#"+e,o="i"+e,s="#"+o,l="d"+e,c="#"+l,d=z(()=>{const K=Yt(h?s:c).node();K&&"remove"in K&&K.remove()},"removeTempElements");let p=Yt("body");const h=a.securityLevel===Q3e,g=a.securityLevel===J3e,b=a.fontFamily;if(n!==void 0){if(n&&(n.innerHTML=""),h){const M=c2(Yt(n),o);p=Yt(M.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=Yt(n);m5(p,e,l,`font-family: ${b}`,t5e)}else{if(g5e(document,e,l,o),h){const M=c2(Yt("body"),o);p=Yt(M.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=Yt("body");m5(p,e,l)}let y,x;try{y=await l2.fromText(t,{title:r.title})}catch(M){if(a.suppressErrorRendering)throw d(),M;y=await l2.fromText("error"),x=M}const w=p.select(c).node(),S=y.type,_=w.firstChild,N=_.firstChild,R=(j=(G=y.renderer).getClasses)==null?void 0:j.call(G,t,y),C=f5e(a,S,R,i),A=document.createElement("style");A.innerHTML=C,_.insertBefore(A,N);try{await y.renderer.draw(t,e,a5.version,y)}catch(M){throw a.suppressErrorRendering?d():o3e.draw(t,e,a5.version),M}const I=p.select(`${c} svg`),D=(V=(W=y.db).getAccTitle)==null?void 0:V.call(W),O=(U=(B=y.db).getAccDescription)==null?void 0:U.call(B);ete(S,I,D,O),p.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",n5e);let P=p.select(c).node().innerHTML;if(Le.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute),P=p5e(P,h,Vn(a.arrowMarkerAbsolute)),h){const M=p.select(c+" svg").node();P=h5e(P,M)}else g||(P=yu.sanitize(P,{ADD_TAGS:c5e,ADD_ATTR:u5e,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(q3e(),x)throw x;return d(),{diagramType:S,svg:P,bindFunctions:y.db.bindFunctions}},"render");function Qee(e={}){var r;const t=hr({},e);t!=null&&t.fontFamily&&!((r=t.themeVariables)!=null&&r.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),LAe(t),t!=null&&t.theme&&t.theme in xo?t.themeVariables=xo[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=xo.default.getThemeVariables(t.themeVariables));const n=typeof t=="object"?NAe(t):cK();nL(n.logLevel),uv()}z(Qee,"initialize");var Jee=z((e,t={})=>{const{code:n}=nO(e);return l2.fromText(n,t)},"getDiagramFromText");function ete(e,t,n,r){Vee(t,e),Yee(t,n,r,t.attr("id"))}z(ete,"addA11yInfo");var Fl=Object.freeze({render:m5e,parse:Zee,getDiagramFromText:Jee,initialize:Qee,getConfig:Kr,setConfig:uK,getSiteConfig:cK,updateSiteConfig:OAe,reset:z(()=>{sb()},"reset"),globalReset:z(()=>{sb(xu)},"globalReset"),defaultConfig:xu});nL(Kr().logLevel);sb(Kr());var b5e=z((e,t,n)=>{Le.warn(e),BL(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),tte=z(async function(e={querySelector:".mermaid"}){try{await y5e(e)}catch(t){if(BL(t)&&Le.error(t.str),ga.parseError&&ga.parseError(t),!e.suppressErrors)throw Le.error("Use the suppressErrors option to suppress these errors"),t}},"run"),y5e=z(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){const r=Fl.getConfig();Le.debug(`${e?"":"No "}Callback function found`);let a;if(n)a=n;else if(t)a=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");Le.debug(`Found ${a.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(Le.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),Fl.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const i=new Ri.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let o;const s=[];for(const l of Array.from(a)){if(Le.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${i.next()}`;o=l.innerHTML,o=RQ(Ri.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const d=Ri.detectInit(o);d&&Le.debug("Detected early reinit: ",d);try{const{svg:p,bindFunctions:h}=await ite(c,o,l);l.innerHTML=p,e&&await e(c),h&&h(l)}catch(p){b5e(p,s,ga.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),nte=z(function(e){Fl.initialize(e)},"initialize"),v5e=z(async function(e,t,n){Le.warn("mermaid.init is deprecated. Please use run instead."),e&&nte(e);const r={postRenderCallback:n,querySelector:".mermaid"};typeof t=="string"?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await tte(r)},"init"),x5e=z(async(e,{lazyLoad:t=!0}={})=>{uv(),rK(...e),t===!1&&await H3e()},"registerExternalDiagrams"),rte=z(function(){if(ga.startOnLoad){const{startOnLoad:e}=Fl.getConfig();e&&ga.run().catch(t=>Le.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",rte,!1);var S5e=z(function(e){ga.parseError=e},"setParseErrorHandler"),$b=[],E0=!1,ate=z(async()=>{if(!E0){for(E0=!0;$b.length>0;){const e=$b.shift();if(e)try{await e()}catch(t){Le.error("Error executing queue",t)}}E0=!1}},"executeQueue"),w5e=z(async(e,t)=>new Promise((n,r)=>{const a=z(()=>new Promise((i,o)=>{Fl.parse(e,t).then(s=>{i(s),n(s)},s=>{var l;Le.error("Error parsing",s),(l=ga.parseError)==null||l.call(ga,s),o(s),r(s)})}),"performCall");$b.push(a),ate().catch(r)}),"parse"),ite=z((e,t,n)=>new Promise((r,a)=>{const i=z(()=>new Promise((o,s)=>{Fl.render(e,t,n).then(l=>{o(l),r(l)},l=>{var c;Le.error("Error parsing",l),(c=ga.parseError)==null||c.call(ga,l),s(l),a(l)})}),"performCall");$b.push(i),ate().catch(a)}),"render"),ga={startOnLoad:!0,mermaidAPI:Fl,parse:w5e,render:ite,init:v5e,run:tte,registerExternalDiagrams:x5e,registerLayoutLoaders:pee,initialize:nte,parseError:void 0,contentLoaded:rte,setParseErrorHandler:S5e,detectType:rL,registerIconPacks:z2e},b5=ga;/*! Check if previously processed *//*!
* Wait for document loaded before starting the execution
*/function E5e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function k5e(e,t){if(e==null)return{};var n,r,a=E5e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function u2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _5e(e){if(Array.isArray(e))return u2(e)}function C5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function T5e(e,t){if(e){if(typeof e=="string")return u2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u2(e,t):void 0}}function A5e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d2(e){return _5e(e)||C5e(e)||T5e(e)||A5e()}function vp(e){"@babel/helpers - typeof";return vp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vp(e)}function R5e(e,t){if(vp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function N5e(e){var t=R5e(e,"string");return vp(t)=="symbol"?t:t+""}function ote(e,t,n){return(t=N5e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f2(){return f2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f2.apply(null,arguments)}function y5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y5(Object(n),!0).forEach(function(r){ote(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L5e(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var k0={};function O5e(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return k0[t]||(k0[t]=L5e(e)),k0[t]}function D5e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(i){return i!=="token"}),a=O5e(r);return a.reduce(function(i,o){return qc(qc({},i),n[o])},t)}function v5(e){return e.join(" ")}function I5e(e,t){var n=0;return function(r){return n+=1,r.map(function(a,i){return ste({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})})}}function ste(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,i=e.useInlineStyles,o=e.key,s=t.properties,l=t.type,c=t.tagName,d=t.value;if(l==="text")return d;if(c){var p=I5e(n,i),h;if(!i)h=qc(qc({},s),{},{className:v5(s.className)});else{var g=Object.keys(n).reduce(function(w,S){return S.split(".").forEach(function(_){w.includes(_)||w.push(_)}),w},[]),b=s.className&&s.className.includes("token")?["token"]:[],y=s.className&&b.concat(s.className.filter(function(w){return!g.includes(w)}));h=qc(qc({},s),{},{className:v5(y)||void 0,style:D5e(s.className,Object.assign({},s.style,a),n)})}var x=p(t.children);return Re.createElement(c,f2({key:o},h),x)}}const M5e=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var F5e=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function x5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x5(Object(n),!0).forEach(function(r){ote(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var P5e=/\n/g;function B5e(e){return e.match(P5e)}function z5e(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(a,i){var o=i+n;return Re.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(o):r},"".concat(o,`
`))})}function $5e(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,a=r===void 0?{float:"left",paddingRight:"10px"}:r,i=e.numberStyle,o=i===void 0?{}:i,s=e.startingLineNumber;return Re.createElement("code",{style:Object.assign({},n,a)},z5e({lines:t.replace(/\n$/,"").split(`
`),style:o,startingLineNumber:s}))}function j5e(e){return"".concat(e.toString().length,".25em")}function lte(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function cte(e,t,n){var r={display:"inline-block",minWidth:j5e(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof e=="function"?e(t):e,i=gs(gs({},r),a);return i}function Om(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,i=e.showInlineLineNumbers,o=e.lineProps,s=o===void 0?{}:o,l=e.className,c=l===void 0?[]:l,d=e.showLineNumbers,p=e.wrapLongLines,h=e.wrapLines,g=h===void 0?!1:h,b=g?gs({},typeof s=="function"?s(n):s):{};if(b.className=b.className?[].concat(d2(b.className.trim().split(/\s+/)),d2(c)):c,n&&i){var y=cte(r,n,a);t.unshift(lte(n,y))}return p&d&&(b.style=gs({display:"flex"},b.style)),{type:"element",tagName:"span",properties:b,children:t}}function ute(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r<e.length;r++){var a=e[r];if(a.type==="text")n.push(Om({children:[a],className:d2(new Set(t))}));else if(a.children){var i=t.concat(a.properties.className);ute(a.children,i).forEach(function(o){return n.push(o)})}}return n}function U5e(e,t,n,r,a,i,o,s,l){var c,d=ute(e.value),p=[],h=-1,g=0;function b(R,C){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Om({children:R,lineNumber:C,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:a,lineProps:n,className:A,showLineNumbers:r,wrapLongLines:l,wrapLines:t})}function y(R,C){if(r&&C&&a){var A=cte(s,C,o);R.unshift(lte(C,A))}return R}function x(R,C){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||A.length>0?b(R,C,A):y(R,C)}for(var w=function(){var C=d[g],A=C.children[0].value,I=B5e(A);if(I){var D=A.split(`
`);D.forEach(function(O,P){var G=r&&p.length+i,j={type:"text",value:"".concat(O,`
`)};if(P===0){var W=d.slice(h+1,g).concat(Om({children:[j],className:C.properties.className})),V=x(W,G);p.push(V)}else if(P===D.length-1){var B=d[g+1]&&d[g+1].children&&d[g+1].children[0],U={type:"text",value:"".concat(O)};if(B){var M=Om({children:[U],className:C.properties.className});d.splice(g+1,0,M)}else{var K=[U],F=x(K,G,C.properties.className);p.push(F)}}else{var Y=[j],H=x(Y,G,C.properties.className);p.push(H)}}),h=g}g++};g<d.length;)w();if(h!==d.length-1){var S=d.slice(h+1,d.length);if(S&&S.length){var _=r&&p.length+i,N=x(S,_);p.push(N)}}return t?p:(c=[]).concat.apply(c,p)}function H5e(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(a,i){return ste({node:a,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(i)})})}function dte(e){return e&&typeof e.highlightAuto<"u"}function G5e(e){var t=e.astGenerator,n=e.language,r=e.code,a=e.defaultCodeValue;if(dte(t)){var i=M5e(t,n);return n==="text"?{value:a,language:"text"}:i?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:a}}catch{return{value:a}}}function q5e(e,t){return function(r){var a=r.language,i=r.children,o=r.style,s=o===void 0?t:o,l=r.customStyle,c=l===void 0?{}:l,d=r.codeTagProps,p=d===void 0?{className:a?"language-".concat(a):void 0,style:gs(gs({},s['code[class*="language-"]']),s['code[class*="language-'.concat(a,'"]')])}:d,h=r.useInlineStyles,g=h===void 0?!0:h,b=r.showLineNumbers,y=b===void 0?!1:b,x=r.showInlineLineNumbers,w=x===void 0?!0:x,S=r.startingLineNumber,_=S===void 0?1:S,N=r.lineNumberContainerStyle,R=r.lineNumberStyle,C=R===void 0?{}:R,A=r.wrapLines,I=r.wrapLongLines,D=I===void 0?!1:I,O=r.lineProps,P=O===void 0?{}:O,G=r.renderer,j=r.PreTag,W=j===void 0?"pre":j,V=r.CodeTag,B=V===void 0?"code":V,U=r.code,M=U===void 0?(Array.isArray(i)?i[0]:i)||"":U,K=r.astGenerator,F=k5e(r,F5e);K=K||e;var Y=y?Re.createElement($5e,{containerStyle:N,codeStyle:p.style||{},numberStyle:C,startingLineNumber:_,codeString:M}):null,H=s.hljs||s['pre[class*="language-"]']||{backgroundColor:"#fff"},$=dte(K)?"hljs":"prismjs",Z=g?Object.assign({},F,{style:Object.assign({},H,c)}):Object.assign({},F,{className:F.className?"".concat($," ").concat(F.className):$,style:Object.assign({},c)});if(D?p.style=gs({whiteSpace:"pre-wrap"},p.style):p.style=gs({whiteSpace:"pre"},p.style),!K)return Re.createElement(W,Z,Y,Re.createElement(B,p,M));(A===void 0&&G||D)&&(A=!0),G=G||H5e;var Q=[{type:"text",value:M}],ie=G5e({astGenerator:K,language:a,code:M,defaultCodeValue:Q});ie.language===null&&(ie.value=Q);var te=ie.value.length;te===1&&ie.value[0].type==="text"&&(te=ie.value[0].value.split(`
`).length);var ce=te+_,Te=U5e(ie,A,P,y,w,_,ce,C,D);return Re.createElement(W,Z,Re.createElement(B,p,!w&&Y,G({rows:Te,stylesheet:s,useInlineStyles:g})))}}const W5e=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var _0,S5;function V5e(){if(S5)return _0;S5=1,_0=t;var e=Object.prototype.hasOwnProperty;function t(){for(var n={},r=0;r<arguments.length;r++){var a=arguments[r];for(var i in a)e.call(a,i)&&(n[i]=a[i])}return n}return _0}var C0,w5;function fte(){if(w5)return C0;w5=1,C0=t;var e=t.prototype;e.space=null,e.normal={},e.property={};function t(n,r,a){this.property=n,this.normal=r,a&&(this.space=a)}return C0}var T0,E5;function Y5e(){if(E5)return T0;E5=1;var e=V5e(),t=fte();T0=n;function n(r){for(var a=r.length,i=[],o=[],s=-1,l,c;++s<a;)l=r[s],i.push(l.property),o.push(l.normal),c=l.space;return new t(e.apply(null,i),e.apply(null,o),c)}return T0}var A0,k5;function aO(){if(k5)return A0;k5=1,A0=e;function e(t){return t.toLowerCase()}return A0}var R0,_5;function pte(){if(_5)return R0;_5=1,R0=t;var e=t.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function t(n,r){this.property=n,this.attribute=r}return R0}var po={},C5;function iO(){if(C5)return po;C5=1;var e=0;po.boolean=t(),po.booleanish=t(),po.overloadedBoolean=t(),po.number=t(),po.spaceSeparated=t(),po.commaSeparated=t(),po.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++e)}return po}var N0,T5;function hte(){if(T5)return N0;T5=1;var e=pte(),t=iO();N0=a,a.prototype=new e,a.prototype.defined=!0;var n=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],r=n.length;function a(o,s,l,c){var d=-1,p;for(i(this,"space",c),e.call(this,o,s);++d<r;)p=n[d],i(this,p,(l&t[p])===t[p])}function i(o,s,l){l&&(o[s]=l)}return N0}var L0,A5;function Qp(){if(A5)return L0;A5=1;var e=aO(),t=fte(),n=hte();L0=r;function r(a){var i=a.space,o=a.mustUseProperty||[],s=a.attributes||{},l=a.properties,c=a.transform,d={},p={},h,g;for(h in l)g=new n(h,c(s,h),l[h],i),o.indexOf(h)!==-1&&(g.mustUseProperty=!0),d[h]=g,p[e(h)]=h,p[e(g.attribute)]=h;return new t(d,p,i)}return L0}var O0,R5;function K5e(){if(R5)return O0;R5=1;var e=Qp();O0=e({space:"xlink",transform:t,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t(n,r){return"xlink:"+r.slice(5).toLowerCase()}return O0}var D0,N5;function X5e(){if(N5)return D0;N5=1;var e=Qp();D0=e({space:"xml",transform:t,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t(n,r){return"xml:"+r.slice(3).toLowerCase()}return D0}var I0,L5;function Z5e(){if(L5)return I0;L5=1,I0=e;function e(t,n){return n in t?t[n]:n}return I0}var M0,O5;function gte(){if(O5)return M0;O5=1;var e=Z5e();M0=t;function t(n,r){return e(n,r.toLowerCase())}return M0}var F0,D5;function Q5e(){if(D5)return F0;D5=1;var e=Qp(),t=gte();return F0=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t,properties:{xmlns:null,xmlnsXLink:null}}),F0}var P0,I5;function J5e(){if(I5)return P0;I5=1;var e=iO(),t=Qp(),n=e.booleanish,r=e.number,a=e.spaceSeparated;P0=t({transform:i,properties:{ariaActiveDescendant:null,ariaAtomic:n,ariaAutoComplete:null,ariaBusy:n,ariaChecked:n,ariaColCount:r,ariaColIndex:r,ariaColSpan:r,ariaControls:a,ariaCurrent:null,ariaDescribedBy:a,ariaDetails:null,ariaDisabled:n,ariaDropEffect:a,ariaErrorMessage:null,ariaExpanded:n,ariaFlowTo:a,ariaGrabbed:n,ariaHasPopup:null,ariaHidden:n,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:a,ariaLevel:r,ariaLive:null,ariaModal:n,ariaMultiLine:n,ariaMultiSelectable:n,ariaOrientation:null,ariaOwns:a,ariaPlaceholder:null,ariaPosInSet:r,ariaPressed:n,ariaReadOnly:n,ariaRelevant:null,ariaRequired:n,ariaRoleDescription:a,ariaRowCount:r,ariaRowIndex:r,ariaRowSpan:r,ariaSelected:n,ariaSetSize:r,ariaSort:null,ariaValueMax:r,ariaValueMin:r,ariaValueNow:r,ariaValueText:null,role:null}});function i(o,s){return s==="role"?s:"aria-"+s.slice(4).toLowerCase()}return P0}var B0,M5;function e4e(){if(M5)return B0;M5=1;var e=iO(),t=Qp(),n=gte(),r=e.boolean,a=e.overloadedBoolean,i=e.booleanish,o=e.number,s=e.spaceSeparated,l=e.commaSeparated;return B0=t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:n,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l,acceptCharset:s,accessKey:s,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:s,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:s,cols:o,colSpan:null,content:null,contentEditable:i,controls:r,controlsList:s,coords:o|l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:a,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:s,height:o,hidden:r,high:o,href:null,hrefLang:null,htmlFor:s,httpEquiv:s,id:null,imageSizes:null,imageSrcSet:l,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:s,itemRef:s,itemScope:r,itemType:s,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:o,manifest:null,max:null,maxLength:o,media:null,method:null,min:null,minLength:o,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu: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,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:r,optimum:o,pattern:null,ping:s,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:s,required:r,reversed:r,rows:o,rowSpan:o,sandbox:s,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:o,sizes:null,slot:null,span:o,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:l,start:o,step:null,style:null,tabIndex:o,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:i,width:o,wrap:null,align:null,aLink:null,archive:s,axis:null,background:null,bgColor:null,border:o,borderColor:null,bottomMargin:o,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:o,leftMargin:o,link:null,longDesc:null,lowSrc:null,marginHeight:o,marginWidth:o,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:o,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:o,valueType:null,version:null,vAlign:null,vLink:null,vSpace:o,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:o,security:null,unselectable:null}}),B0}var z0,F5;function t4e(){if(F5)return z0;F5=1;var e=Y5e(),t=K5e(),n=X5e(),r=Q5e(),a=J5e(),i=e4e();return z0=e([n,t,r,a,i]),z0}var $0,P5;function n4e(){if(P5)return $0;P5=1;var e=aO(),t=hte(),n=pte(),r="data";$0=s;var a=/^data[-\w.:]+$/i,i=/-[a-z]/g,o=/[A-Z]/g;function s(h,g){var b=e(g),y=g,x=n;return b in h.normal?h.property[h.normal[b]]:(b.length>4&&b.slice(0,4)===r&&a.test(g)&&(g.charAt(4)==="-"?y=l(g):g=c(g),x=t),new x(y,g))}function l(h){var g=h.slice(5).replace(i,p);return r+g.charAt(0).toUpperCase()+g.slice(1)}function c(h){var g=h.slice(4);return i.test(g)?h:(g=g.replace(o,d),g.charAt(0)!=="-"&&(g="-"+g),r+g)}function d(h){return"-"+h.toLowerCase()}function p(h){return h.charAt(1).toUpperCase()}return $0}var j0,B5;function r4e(){if(B5)return j0;B5=1,j0=t;var e=/[#.]/g;function t(n,r){for(var a=n||"",i=r||"div",o={},s=0,l,c,d;s<a.length;)e.lastIndex=s,d=e.exec(a),l=a.slice(s,d?d.index:a.length),l&&(c?c==="#"?o.id=l:o.className?o.className.push(l):o.className=[l]:i=l,s+=l.length),d&&(c=d[0],s++);return{type:"element",tagName:i,properties:o,children:[]}}return j0}var Xg={},z5;function a4e(){if(z5)return Xg;z5=1,Xg.parse=r,Xg.stringify=a;var e="",t=" ",n=/[ \t\n\r\f]+/g;function r(i){var o=String(i||e).trim();return o===e?[]:o.split(n)}function a(i){return i.join(t).trim()}return Xg}var Zg={},$5;function i4e(){if($5)return Zg;$5=1,Zg.parse=r,Zg.stringify=a;var e=",",t=" ",n="";function r(i){for(var o=[],s=String(i||n),l=s.indexOf(e),c=0,d=!1,p;!d;)l===-1&&(l=s.length,d=!0),p=s.slice(c,l).trim(),(p||!d)&&o.push(p),c=l+1,l=s.indexOf(e,c);return o}function a(i,o){var s=o||{},l=s.padLeft===!1?n:t,c=s.padRight?t:n;return i[i.length-1]===n&&(i=i.concat(n)),i.join(c+e+l).trim()}return Zg}var U0,j5;function o4e(){if(j5)return U0;j5=1;var e=n4e(),t=aO(),n=r4e(),r=a4e().parse,a=i4e().parse;U0=o;var i={}.hasOwnProperty;function o(b,y,x){var w=x?g(x):null;return S;function S(N,R){var C=n(N,y),A=Array.prototype.slice.call(arguments,2),I=C.tagName.toLowerCase(),D;if(C.tagName=w&&i.call(w,I)?w[I]:I,R&&s(R,C)&&(A.unshift(R),R=null),R)for(D in R)_(C.properties,D,R[D]);return c(C.children,A),C.tagName==="template"&&(C.content={type:"root",children:C.children},C.children=[]),C}function _(N,R,C){var A,I,D;C==null||C!==C||(A=e(b,R),I=A.property,D=C,typeof D=="string"&&(A.spaceSeparated?D=r(D):A.commaSeparated?D=a(D):A.commaOrSpaceSeparated&&(D=r(a(D).join(" ")))),I==="style"&&typeof C!="string"&&(D=h(D)),I==="className"&&N.className&&(D=N.className.concat(D)),N[I]=d(A,I,D))}}function s(b,y){return typeof b=="string"||"length"in b||l(y.tagName,b)}function l(b,y){var x=y.type;return b==="input"||!x||typeof x!="string"?!1:typeof y.children=="object"&&"length"in y.children?!0:(x=x.toLowerCase(),b==="button"?x!=="menu"&&x!=="submit"&&x!=="reset"&&x!=="button":"value"in y)}function c(b,y){var x,w;if(typeof y=="string"||typeof y=="number"){b.push({type:"text",value:String(y)});return}if(typeof y=="object"&&"length"in y){for(x=-1,w=y.length;++x<w;)c(b,y[x]);return}if(typeof y!="object"||!("type"in y))throw new Error("Expected node, nodes, or string, got `"+y+"`");b.push(y)}function d(b,y,x){var w,S,_;if(typeof x!="object"||!("length"in x))return p(b,y,x);for(S=x.length,w=-1,_=[];++w<S;)_[w]=p(b,y,x[w]);return _}function p(b,y,x){var w=x;return b.number||b.positiveNumber?!isNaN(w)&&w!==""&&(w=Number(w)):(b.boolean||b.overloadedBoolean)&&typeof w=="string"&&(w===""||t(x)===t(y))&&(w=!0),w}function h(b){var y=[],x;for(x in b)y.push([x,b[x]].join(": "));return y.join("; ")}function g(b){for(var y=b.length,x=-1,w={},S;++x<y;)S=b[x],w[S.toLowerCase()]=S;return w}return U0}var H0,U5;function s4e(){if(U5)return H0;U5=1;var e=t4e(),t=o4e(),n=t(e,"div");return n.displayName="html",H0=n,H0}var G0,H5;function l4e(){return H5||(H5=1,G0=s4e()),G0}const c4e="Æ",u4e="&",d4e="Á",f4e="Â",p4e="À",h4e="Å",g4e="Ã",m4e="Ä",b4e="©",y4e="Ç",v4e="Ð",x4e="É",S4e="Ê",w4e="È",E4e="Ë",k4e=">",_4e="Í",C4e="Î",T4e="Ì",A4e="Ï",R4e="<",N4e="Ñ",L4e="Ó",O4e="Ô",D4e="Ò",I4e="Ø",M4e="Õ",F4e="Ö",P4e='"',B4e="®",z4e="Þ",$4e="Ú",j4e="Û",U4e="Ù",H4e="Ü",G4e="Ý",q4e="á",W4e="â",V4e="´",Y4e="æ",K4e="à",X4e="&",Z4e="å",Q4e="ã",J4e="ä",e$e="¦",t$e="ç",n$e="¸",r$e="¢",a$e="©",i$e="¤",o$e="°",s$e="÷",l$e="é",c$e="ê",u$e="è",d$e="ð",f$e="ë",p$e="½",h$e="¼",g$e="¾",m$e=">",b$e="í",y$e="î",v$e="¡",x$e="ì",S$e="¿",w$e="ï",E$e="«",k$e="<",_$e="¯",C$e="µ",T$e="·",A$e=" ",R$e="¬",N$e="ñ",L$e="ó",O$e="ô",D$e="ò",I$e="ª",M$e="º",F$e="ø",P$e="õ",B$e="ö",z$e="¶",$$e="±",j$e="£",U$e='"',H$e="»",G$e="®",q$e="§",W$e="­",V$e="¹",Y$e="²",K$e="³",X$e="ß",Z$e="þ",Q$e="×",J$e="ú",eje="û",tje="ù",nje="¨",rje="ü",aje="ý",ije="¥",oje="ÿ",sje={AElig:c4e,AMP:u4e,Aacute:d4e,Acirc:f4e,Agrave:p4e,Aring:h4e,Atilde:g4e,Auml:m4e,COPY:b4e,Ccedil:y4e,ETH:v4e,Eacute:x4e,Ecirc:S4e,Egrave:w4e,Euml:E4e,GT:k4e,Iacute:_4e,Icirc:C4e,Igrave:T4e,Iuml:A4e,LT:R4e,Ntilde:N4e,Oacute:L4e,Ocirc:O4e,Ograve:D4e,Oslash:I4e,Otilde:M4e,Ouml:F4e,QUOT:P4e,REG:B4e,THORN:z4e,Uacute:$4e,Ucirc:j4e,Ugrave:U4e,Uuml:H4e,Yacute:G4e,aacute:q4e,acirc:W4e,acute:V4e,aelig:Y4e,agrave:K4e,amp:X4e,aring:Z4e,atilde:Q4e,auml:J4e,brvbar:e$e,ccedil:t$e,cedil:n$e,cent:r$e,copy:a$e,curren:i$e,deg:o$e,divide:s$e,eacute:l$e,ecirc:c$e,egrave:u$e,eth:d$e,euml:f$e,frac12:p$e,frac14:h$e,frac34:g$e,gt:m$e,iacute:b$e,icirc:y$e,iexcl:v$e,igrave:x$e,iquest:S$e,iuml:w$e,laquo:E$e,lt:k$e,macr:_$e,micro:C$e,middot:T$e,nbsp:A$e,not:R$e,ntilde:N$e,oacute:L$e,ocirc:O$e,ograve:D$e,ordf:I$e,ordm:M$e,oslash:F$e,otilde:P$e,ouml:B$e,para:z$e,plusmn:$$e,pound:j$e,quot:U$e,raquo:H$e,reg:G$e,sect:q$e,shy:W$e,sup1:V$e,sup2:Y$e,sup3:K$e,szlig:X$e,thorn:Z$e,times:Q$e,uacute:J$e,ucirc:eje,ugrave:tje,uml:nje,uuml:rje,yacute:aje,yen:ije,yuml:oje},lje={0:"<22>",128:"€",130:"",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"",140:"Œ",142:"Ž",145:"",146:"",147:"“",148:"”",149:"•",150:"",151:"—",152:"˜",153:"™",154:"š",155:"",156:"œ",158:"ž",159:"Ÿ"};var q0,G5;function mte(){if(G5)return q0;G5=1,q0=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=48&&n<=57}return q0}var W0,q5;function cje(){if(q5)return W0;q5=1,W0=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}return W0}var V0,W5;function uje(){if(W5)return V0;W5=1,V0=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=122||n>=65&&n<=90}return V0}var Y0,V5;function dje(){if(V5)return Y0;V5=1;var e=uje(),t=mte();Y0=n;function n(r){return e(r)||t(r)}return Y0}var K0,Y5;function fje(){if(Y5)return K0;Y5=1;var e,t=59;K0=n;function n(r){var a="&"+r+";",i;return e=e||document.createElement("i"),e.innerHTML=a,i=e.textContent,i.charCodeAt(i.length-1)===t&&r!=="semi"||i===a?!1:i}return K0}var X0,K5;function pje(){if(K5)return X0;K5=1;var e=sje,t=lje,n=mte(),r=cje(),a=dje(),i=fje();X0=K;var o={}.hasOwnProperty,s=String.fromCharCode,l=Function.prototype,c={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},d=9,p=10,h=12,g=32,b=38,y=59,x=60,w=61,S=35,_=88,N=120,R=65533,C="named",A="hexadecimal",I="decimal",D={};D[A]=16,D[I]=10;var O={};O[C]=a,O[I]=n,O[A]=r;var P=1,G=2,j=3,W=4,V=5,B=6,U=7,M={};M[P]="Named character references must be terminated by a semicolon",M[G]="Numeric character references must be terminated by a semicolon",M[j]="Named character references cannot be empty",M[W]="Numeric character references cannot be empty",M[V]="Named character references must be known",M[B]="Numeric character references cannot be disallowed",M[U]="Numeric character references cannot be outside the permissible Unicode range";function K($,Z){var Q={},ie,te;Z||(Z={});for(te in c)ie=Z[te],Q[te]=ie??c[te];return(Q.position.indent||Q.position.start)&&(Q.indent=Q.position.indent||[],Q.position=Q.position.start),F($,Q)}function F($,Z){var Q=Z.additional,ie=Z.nonTerminated,te=Z.text,ce=Z.reference,Te=Z.warning,ne=Z.textContext,Ee=Z.referenceContext,re=Z.warningContext,we=Z.position,xe=Z.indent||[],Se=$.length,ee=0,he=-1,Ae=we.column||1,be=we.line||1,Ce="",ue=[],Ve,We,ve,Ie,ae,ge,Me,He,tt,Pt,Gt,Nt,ct,Bt,wt,zt,bn,_n,on;for(typeof Q=="string"&&(Q=Q.charCodeAt(0)),zt=Br(),He=Te?mr:l,ee--,Se++;++ee<Se;)if(ae===p&&(Ae=xe[he]||1),ae=$.charCodeAt(ee),ae===b){if(Me=$.charCodeAt(ee+1),Me===d||Me===p||Me===h||Me===g||Me===b||Me===x||Me!==Me||Q&&Me===Q){Ce+=s(ae),Ae++;continue}for(ct=ee+1,Nt=ct,on=ct,Me===S?(on=++Nt,Me=$.charCodeAt(on),Me===_||Me===N?(Bt=A,on=++Nt):Bt=I):Bt=C,Ve="",Gt="",Ie="",wt=O[Bt],on--;++on<Se&&(Me=$.charCodeAt(on),!!wt(Me));)Ie+=s(Me),Bt===C&&o.call(e,Ie)&&(Ve=Ie,Gt=e[Ie]);ve=$.charCodeAt(on)===y,ve&&(on++,We=Bt===C?i(Ie):!1,We&&(Ve=Ie,Gt=We)),_n=1+on-ct,!ve&&!ie||(Ie?Bt===C?(ve&&!Gt?He(V,1):(Ve!==Ie&&(on=Nt+Ve.length,_n=1+on-Nt,ve=!1),ve||(tt=Ve?P:j,Z.attribute?(Me=$.charCodeAt(on),Me===w?(He(tt,_n),Gt=null):a(Me)?Gt=null:He(tt,_n)):He(tt,_n))),ge=Gt):(ve||He(G,_n),ge=parseInt(Ie,D[Bt]),Y(ge)?(He(U,_n),ge=s(R)):ge in t?(He(B,_n),ge=t[ge]):(Pt="",H(ge)&&He(B,_n),ge>65535&&(ge-=65536,Pt+=s(ge>>>10|55296),ge=56320|ge&1023),ge=Pt+s(ge))):Bt!==C&&He(W,_n)),ge?(Ln(),zt=Br(),ee=on-1,Ae+=on-ct+1,ue.push(ge),bn=Br(),bn.offset++,ce&&ce.call(Ee,ge,{start:zt,end:bn},$.slice(ct-1,on)),zt=bn):(Ie=$.slice(ct-1,on),Ce+=Ie,Ae+=Ie.length,ee=on-1)}else ae===10&&(be++,he++,Ae=0),ae===ae?(Ce+=s(ae),Ae++):Ln();return ue.join("");function Br(){return{line:be,column:Ae,offset:ee+(we.offset||0)}}function mr(Ya,Ge){var At=Br();At.column+=Ge,At.offset+=Ge,Te.call(re,M[Ya],At,Ya)}function Ln(){Ce&&(ue.push(Ce),te&&te.call(ne,Ce,{start:zt,end:Br()}),Ce="")}}function Y($){return $>=55296&&$<=57343||$>1114111}function H($){return $>=1&&$<=8||$===11||$>=13&&$<=31||$>=127&&$<=159||$>=64976&&$<=65007||($&65535)===65535||($&65535)===65534}return X0}var Z0={exports:{}},X5;function hje(){return X5||(X5=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/var n=function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function S(_){return _ instanceof l?new l(_.type,S(_.content),_.alias):Array.isArray(_)?_.map(S):_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(S){return Object.prototype.toString.call(S).slice(8,-1)},objId:function(S){return S.__id||Object.defineProperty(S,"__id",{value:++i}),S.__id},clone:function S(_,N){N=N||{};var R,C;switch(s.util.type(_)){case"Object":if(C=s.util.objId(_),N[C])return N[C];R={},N[C]=R;for(var A in _)_.hasOwnProperty(A)&&(R[A]=S(_[A],N));return R;case"Array":return C=s.util.objId(_),N[C]?N[C]:(R=[],N[C]=R,_.forEach(function(I,D){R[D]=S(I,N)}),R);default:return _}},getLanguage:function(S){for(;S;){var _=a.exec(S.className);if(_)return _[1].toLowerCase();S=S.parentElement}return"none"},setLanguage:function(S,_){S.className=S.className.replace(RegExp(a,"gi"),""),S.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(R){var S=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(R.stack)||[])[1];if(S){var _=document.getElementsByTagName("script");for(var N in _)if(_[N].src==S)return _[N]}return null}},isActive:function(S,_,N){for(var R="no-"+_;S;){var C=S.classList;if(C.contains(_))return!0;if(C.contains(R))return!1;S=S.parentElement}return!!N}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(S,_){var N=s.util.clone(s.languages[S]);for(var R in _)N[R]=_[R];return N},insertBefore:function(S,_,N,R){R=R||s.languages;var C=R[S],A={};for(var I in C)if(C.hasOwnProperty(I)){if(I==_)for(var D in N)N.hasOwnProperty(D)&&(A[D]=N[D]);N.hasOwnProperty(I)||(A[I]=C[I])}var O=R[S];return R[S]=A,s.languages.DFS(s.languages,function(P,G){G===O&&P!=S&&(this[P]=A)}),A},DFS:function S(_,N,R,C){C=C||{};var A=s.util.objId;for(var I in _)if(_.hasOwnProperty(I)){N.call(_,I,_[I],R||I);var D=_[I],O=s.util.type(D);O==="Object"&&!C[A(D)]?(C[A(D)]=!0,S(D,N,null,C)):O==="Array"&&!C[A(D)]&&(C[A(D)]=!0,S(D,N,I,C))}}},plugins:{},highlightAll:function(S,_){s.highlightAllUnder(document,S,_)},highlightAllUnder:function(S,_,N){var R={callback:N,container:S,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",R),R.elements=Array.prototype.slice.apply(R.container.querySelectorAll(R.selector)),s.hooks.run("before-all-elements-highlight",R);for(var C=0,A;A=R.elements[C++];)s.highlightElement(A,_===!0,R.callback)},highlightElement:function(S,_,N){var R=s.util.getLanguage(S),C=s.languages[R];s.util.setLanguage(S,R);var A=S.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(A,R);var I=S.textContent,D={element:S,language:R,grammar:C,code:I};function O(G){D.highlightedCode=G,s.hooks.run("before-insert",D),D.element.innerHTML=D.highlightedCode,s.hooks.run("after-highlight",D),s.hooks.run("complete",D),N&&N.call(D.element)}if(s.hooks.run("before-sanity-check",D),A=D.element.parentElement,A&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!D.code){s.hooks.run("complete",D),N&&N.call(D.element);return}if(s.hooks.run("before-highlight",D),!D.grammar){O(s.util.encode(D.code));return}if(_&&r.Worker){var P=new Worker(s.filename);P.onmessage=function(G){O(G.data)},P.postMessage(JSON.stringify({language:D.language,code:D.code,immediateClose:!0}))}else O(s.highlight(D.code,D.grammar,D.language))},highlight:function(S,_,N){var R={code:S,grammar:_,language:N};if(s.hooks.run("before-tokenize",R),!R.grammar)throw new Error('The language "'+R.language+'" has no grammar.');return R.tokens=s.tokenize(R.code,R.grammar),s.hooks.run("after-tokenize",R),l.stringify(s.util.encode(R.tokens),R.language)},tokenize:function(S,_){var N=_.rest;if(N){for(var R in N)_[R]=N[R];delete _.rest}var C=new p;return h(C,C.head,S),d(S,C,_,C.head,0),b(C)},hooks:{all:{},add:function(S,_){var N=s.hooks.all;N[S]=N[S]||[],N[S].push(_)},run:function(S,_){var N=s.hooks.all[S];if(!(!N||!N.length))for(var R=0,C;C=N[R++];)C(_)}},Token:l};r.Prism=s;function l(S,_,N,R){this.type=S,this.content=_,this.alias=N,this.length=(R||"").length|0}l.stringify=function S(_,N){if(typeof _=="string")return _;if(Array.isArray(_)){var R="";return _.forEach(function(O){R+=S(O,N)}),R}var C={type:_.type,content:S(_.content,N),tag:"span",classes:["token",_.type],attributes:{},language:N},A=_.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(C.classes,A):C.classes.push(A)),s.hooks.run("wrap",C);var I="";for(var D in C.attributes)I+=" "+D+'="'+(C.attributes[D]||"").replace(/"/g,"&quot;")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+I+">"+C.content+"</"+C.tag+">"};function c(S,_,N,R){S.lastIndex=_;var C=S.exec(N);if(C&&R&&C[1]){var A=C[1].length;C.index+=A,C[0]=C[0].slice(A)}return C}function d(S,_,N,R,C,A){for(var I in N)if(!(!N.hasOwnProperty(I)||!N[I])){var D=N[I];D=Array.isArray(D)?D:[D];for(var O=0;O<D.length;++O){if(A&&A.cause==I+","+O)return;var P=D[O],G=P.inside,j=!!P.lookbehind,W=!!P.greedy,V=P.alias;if(W&&!P.pattern.global){var B=P.pattern.toString().match(/[imsuy]*$/)[0];P.pattern=RegExp(P.pattern.source,B+"g")}for(var U=P.pattern||P,M=R.next,K=C;M!==_.tail&&!(A&&K>=A.reach);K+=M.value.length,M=M.next){var F=M.value;if(_.length>S.length)return;if(!(F instanceof l)){var Y=1,H;if(W){if(H=c(U,K,S,j),!H||H.index>=S.length)break;var ie=H.index,$=H.index+H[0].length,Z=K;for(Z+=M.value.length;ie>=Z;)M=M.next,Z+=M.value.length;if(Z-=M.value.length,K=Z,M.value instanceof l)continue;for(var Q=M;Q!==_.tail&&(Z<$||typeof Q.value=="string");Q=Q.next)Y++,Z+=Q.value.length;Y--,F=S.slice(K,Z),H.index-=K}else if(H=c(U,0,F,j),!H)continue;var ie=H.index,te=H[0],ce=F.slice(0,ie),Te=F.slice(ie+te.length),ne=K+F.length;A&&ne>A.reach&&(A.reach=ne);var Ee=M.prev;ce&&(Ee=h(_,Ee,ce),K+=ce.length),g(_,Ee,Y);var re=new l(I,G?s.tokenize(te,G):te,V,te);if(M=h(_,Ee,re),Te&&h(_,M,Te),Y>1){var we={cause:I+","+O,reach:ne};d(S,_,N,M.prev,K,we),A&&we.reach>A.reach&&(A.reach=we.reach)}}}}}}function p(){var S={value:null,prev:null,next:null},_={value:null,prev:S,next:null};S.next=_,this.head=S,this.tail=_,this.length=0}function h(S,_,N){var R=_.next,C={value:N,prev:_,next:R};return _.next=C,R.prev=C,S.length++,C}function g(S,_,N){for(var R=_.next,C=0;C<N&&R!==S.tail;C++)R=R.next;_.next=R,R.prev=_,S.length-=C}function b(S){for(var _=[],N=S.head.next;N!==S.tail;)_.push(N.value),N=N.next;return _}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(S){var _=JSON.parse(S.data),N=_.language,R=_.code,C=_.immediateClose;r.postMessage(s.highlight(R,s.languages[N],N)),C&&r.close()},!1)),s;var y=s.util.currentScript();y&&(s.filename=y.src,y.hasAttribute("data-manual")&&(s.manual=!0));function x(){s.manual||s.highlightAll()}if(!s.manual){var w=document.readyState;w==="loading"||w==="interactive"&&y&&y.defer?document.addEventListener("DOMContentLoaded",x):window.requestAnimationFrame?window.requestAnimationFrame(x):window.setTimeout(x,16)}return s}(t);e.exports&&(e.exports=n),typeof Dm<"u"&&(Dm.Prism=n)}(Z0)),Z0.exports}var Q0,Z5;function gje(){if(Z5)return Q0;Z5=1,Q0=e,e.displayName="markup",e.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function e(t){t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(r,a){var i={};i["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[a]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};o["language-"+a]={pattern:/[\s\S]+/,inside:t.languages[a]};var s={};s[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml}return Q0}var J0,Q5;function mje(){if(Q5)return J0;Q5=1,J0=e,e.displayName="css",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var a=n.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))})(t)}return J0}var eE,J5;function bje(){if(J5)return eE;J5=1,eE=e,e.displayName="clike",e.aliases=[];function e(t){t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}return eE}var tE,e4;function yje(){if(e4)return tE;e4=1,tE=e,e.displayName="javascript",e.aliases=["js"];function e(t){t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript}return tE}var nE,t4;function vje(){if(t4)return nE;t4=1;var e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Dm=="object"?Dm:{},t=R();e.Prism={manual:!0,disableWorkerMessageHandler:!0};var n=l4e(),r=pje(),a=hje(),i=gje(),o=mje(),s=bje(),l=yje();t();var c={}.hasOwnProperty;function d(){}d.prototype=a;var p=new d;nE=p,p.highlight=b,p.register=h,p.alias=g,p.registered=y,p.listLanguages=x,h(i),h(o),h(s),h(l),p.util.encode=_,p.Token.stringify=w;function h(C){if(typeof C!="function"||!C.displayName)throw new Error("Expected `function` for `grammar`, got `"+C+"`");p.languages[C.displayName]===void 0&&C(p)}function g(C,A){var I=p.languages,D=C,O,P,G,j;A&&(D={},D[C]=A);for(O in D)for(P=D[O],P=typeof P=="string"?[P]:P,G=P.length,j=-1;++j<G;)I[P[j]]=I[O]}function b(C,A){var I=a.highlight,D;if(typeof C!="string")throw new Error("Expected `string` for `value`, got `"+C+"`");if(p.util.type(A)==="Object")D=A,A=null;else{if(typeof A!="string")throw new Error("Expected `string` for `name`, got `"+A+"`");if(c.call(p.languages,A))D=p.languages[A];else throw new Error("Unknown language: `"+A+"` is not registered")}return I.call(this,C,D,A)}function y(C){if(typeof C!="string")throw new Error("Expected `string` for `language`, got `"+C+"`");return c.call(p.languages,C)}function x(){var C=p.languages,A=[],I;for(I in C)c.call(C,I)&&typeof C[I]=="object"&&A.push(I);return A}function w(C,A,I){var D;return typeof C=="string"?{type:"text",value:C}:p.util.type(C)==="Array"?S(C,A):(D={type:C.type,content:p.Token.stringify(C.content,A,I),tag:"span",classes:["token",C.type],attributes:{},language:A,parent:I},C.alias&&(D.classes=D.classes.concat(C.alias)),p.hooks.run("wrap",D),n(D.tag+"."+D.classes.join("."),N(D.attributes),D.content))}function S(C,A){for(var I=[],D=C.length,O=-1,P;++O<D;)P=C[O],P!==""&&P!==null&&P!==void 0&&I.push(P);for(O=-1,D=I.length;++O<D;)P=I[O],I[O]=p.Token.stringify(P,A,I);return I}function _(C){return C}function N(C){var A;for(A in C)C[A]=r(C[A]);return C}function R(){var C="Prism"in e,A=C?e.Prism:void 0;return I;function I(){C?e.Prism=A:delete e.Prism,C=void 0,A=void 0}}return nE}const xje={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var rE,n4;function Sje(){if(n4)return rE;n4=1,rE=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return rE}var aE,r4;function wje(){if(r4)return aE;r4=1,aE=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return aE}var iE,a4;function Eje(){if(a4)return iE;a4=1,iE=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return iE}var oE,i4;function kje(){if(i4)return oE;i4=1,oE=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return oE}var sE,o4;function _je(){if(o4)return sE;o4=1,sE=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return sE}var lE,s4;function Cje(){if(s4)return lE;s4=1,lE=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return lE}var cE,l4;function Tje(){if(l4)return cE;l4=1,cE=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return cE}var uE,c4;function Aje(){if(c4)return uE;c4=1,uE=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return uE}var dE,u4;function oO(){if(u4)return dE;u4=1,dE=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return dE}var fE,d4;function Rje(){if(d4)return fE;d4=1;var e=oO();fE=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,i=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return a.source});function o(l){return RegExp(l.replace(/<CLASS-NAME>/g,function(){return i}),"i")}var s={keyword:a,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:s},{pattern:o(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:o(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(n)}return fE}var pE,f4;function Nje(){if(f4)return pE;f4=1,pE=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return pE}var hE,p4;function Lje(){if(p4)return hE;p4=1,hE=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return hE}var gE,h4;function Oje(){if(h4)return gE;h4=1,gE=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return gE}var mE,g4;function Wl(){if(g4)return mE;g4=1,mE=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return mE}var bE,m4;function sO(){if(m4)return bE;m4=1;var e=Wl();bE=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,i=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return a.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return i})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(n)}return bE}var yE,b4;function Dje(){if(b4)return yE;b4=1;var e=sO();yE=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return yE}var vE,y4;function Ije(){if(y4)return vE;y4=1,vE=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return vE}var xE,v4;function Mje(){if(v4)return xE;v4=1,xE=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var s={},l=0,c=o.length;l<c;l++)s[o[l]]=a[o[l]];return s}r.inside.interpreted.inside.rest=i("macro inline replacement entity"),a["passthrough-block"].inside.rest=i("macro"),a["literal-block"].inside.rest=i("callout"),a.table.inside.rest=i("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),a["other-block"].inside.rest=i("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),a.title.inside.rest=i("macro inline replacement entity"),n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.value.replace(/&amp;/,"&"))}),n.languages.adoc=n.languages.asciidoc})(t)}return xE}var SE,x4;function Fje(){if(x4)return SE;x4=1,SE=e,e.displayName="asm6502",e.aliases=[];function e(t){t.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}return SE}var wE,S4;function Pje(){if(S4)return wE;S4=1,wE=e,e.displayName="asmatmel",e.aliases=[];function e(t){t.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return wE}var EE,w4;function dv(){if(w4)return EE;w4=1,EE=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(Y,H){return Y.replace(/<<(\d+)>>/g,function($,Z){return"(?:"+H[+Z]+")"})}function a(Y,H,$){return RegExp(r(Y,H),"")}function i(Y,H){for(var $=0;$<H;$++)Y=Y.replace(/<<self>>/g,function(){return"(?:"+Y+")"});return Y.replace(/<<self>>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(Y){return"\\b(?:"+Y.trim().replace(/ /g,"|")+")\\b"}var l=s(o.typeDeclaration),c=RegExp(s(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),d=s(o.typeDeclaration+" "+o.contextual+" "+o.other),p=s(o.type+" "+o.typeDeclaration+" "+o.other),h=i(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),g=i(/\((?:[^()]|<<self>>)*\)/.source,2),b=/@?\b[A-Za-z_]\w*\b/.source,y=r(/<<0>>(?:\s*<<1>>)?/.source,[b,h]),x=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,y]),w=/\[\s*(?:,\s*)*\]/.source,S=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[x,w]),_=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,g,w]),N=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[_]),R=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[N,x,w]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,I=/"(?:\\.|[^\\"\r\n])*"/.source,D=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[I]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[x]),lookbehind:!0,inside:C},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[b,R]),lookbehind:!0,inside:C},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[b]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[l,y]),lookbehind:!0,inside:C},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[x]),lookbehind:!0,inside:C},{pattern:a(/(\bwhere\s+)<<0>>/.source,[b]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[S]),lookbehind:!0,inside:C},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[R,p,b]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[b]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[b]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[g]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[R,x]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[R]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[b,h]),inside:{function:a(/^<<0>>/.source,[b]),generic:{pattern:RegExp(h),alias:"class-name",inside:C}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,y,b,R,c.source,g,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[y,g]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:c,"class-name":{pattern:RegExp(R),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=I+"|"+A,P=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),G=i(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[P]),2),j=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,W=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[x,G]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[j,W]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[j]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[G]),inside:n.languages.csharp},"class-name":{pattern:RegExp(x),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var V=/:[^}\r\n]+/.source,B=i(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[P]),2),U=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[B,V]),M=i(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),K=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,V]);function F(Y,H){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[Y]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[H,V]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[U]),lookbehind:!0,greedy:!0,inside:F(U,B)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[K]),lookbehind:!0,greedy:!0,inside:F(K,M)}],char:{pattern:RegExp(A),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return EE}var kE,E4;function Bje(){if(E4)return kE;E4=1;var e=dv();kE=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return kE}var _E,k4;function zje(){if(k4)return _E;k4=1,_E=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return _E}var CE,_4;function $je(){if(_4)return CE;_4=1,CE=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return CE}var TE,C4;function jje(){if(C4)return TE;C4=1,TE=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(d,p){return d.replace(/<<(\d+)>>/g,function(h,g){return p[+g]})}function a(d,p,h){return RegExp(r(d,p),h)}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),l=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),c=[o,s,l].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[c],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return TE}var AE,T4;function Uje(){if(T4)return AE;T4=1,AE=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return AE}var RE,A4;function bte(){if(A4)return RE;A4=1,RE=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:a,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=n.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,l=0;l<o.length;l++)s[o[l]]=n.languages.bash[o[l]];n.languages.shell=n.languages.bash})(t)}return RE}var NE,R4;function yte(){if(R4)return NE;R4=1,NE=e,e.displayName="basic",e.aliases=[];function e(t){t.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return NE}var LE,N4;function Hje(){if(N4)return LE;N4=1,LE=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:a,variable:r,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:a,variable:r,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:a,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return LE}var OE,L4;function Gje(){if(L4)return OE;L4=1,OE=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return OE}var DE,O4;function qje(){if(O4)return DE;O4=1,DE=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return DE}var IE,D4;function Wje(){if(D4)return IE;D4=1,IE=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return IE}var ME,I4;function Vje(){if(I4)return ME;I4=1;var e=Wl();ME=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return ME}var FE,M4;function Yje(){if(M4)return FE;M4=1,FE=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return FE}var PE,F4;function Kje(){if(F4)return PE;F4=1,PE=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return PE}var BE,P4;function Xje(){if(P4)return BE;P4=1,BE=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return BE}var zE,B4;function Zje(){if(B4)return zE;B4=1,zE=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return zE}var $E,z4;function Qje(){if(z4)return $E;z4=1,$E=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return $E}var jE,$4;function Jje(){if($4)return jE;$4=1,jE=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return jE}var UE,j4;function eUe(){if(j4)return UE;j4=1;var e=sO();UE=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return UE}var HE,U4;function tUe(){if(U4)return HE;U4=1,HE=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return HE}var GE,H4;function nUe(){if(H4)return GE;H4=1,GE=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return GE}var qE,G4;function rUe(){if(G4)return qE;G4=1,qE=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return qE}var WE,q4;function aUe(){if(q4)return WE;q4=1,WE=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return WE}var VE,W4;function iUe(){if(W4)return VE;W4=1,VE=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return VE}var YE,V4;function oUe(){if(V4)return YE;V4=1,YE=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return YE}var KE,Y4;function sUe(){if(Y4)return KE;Y4=1,KE=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,a=0;a<2;a++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return KE}var XE,K4;function fv(){if(K4)return XE;K4=1,XE=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(t)}return XE}var ZE,X4;function lUe(){if(X4)return ZE;X4=1;var e=fv();ZE=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(n)}return ZE}var QE,Z4;function cUe(){if(Z4)return QE;Z4=1;var e=dv();QE=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(x,w){for(var S=0;S<w;S++)x=x.replace(/<self>/g,function(){return"(?:"+x+")"});return x.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+i+")").replace(/<comment>/g,"(?:"+a+")")}var s=o(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),l=o(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),c=o(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),d=o(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,h=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,g=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|"+o(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+h+")";r.languages.cshtml=r.languages.extend("markup",{});var b=r.languages.insertBefore("csharp","string",{html:{pattern:RegExp(g),greedy:!0,inside:r.languages.cshtml}},{csharp:r.languages.extend("csharp",{})}),y={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:b};r.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[c,/(?:code|functions)\s*/.source+c,/(?:for|foreach|lock|switch|using|while)\s*/.source+s+/\s*/.source+c,/do\s*/.source+c+/\s*while\s*/.source+s+/(?:\s*;)?/.source,/try\s*/.source+c+/\s*catch\s*/.source+s+/\s*/.source+c+/\s*finally\s*/.source+c,/if\s*/.source+s+/\s*/.source+c+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+s+")?"+/\s*/.source+c+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:y}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:y}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+s+")(?:"+/[?!]?\.\w+\b/.source+"|"+s+"|"+l+"|"+d+s+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:y}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),r.languages.razor=r.languages.cshtml}(n)}return QE}var JE,Q4;function uUe(){if(Q4)return JE;Q4=1,JE=e,e.displayName="csp",e.aliases=[];function e(t){(function(n){function r(a){return RegExp(/([ \t])/.source+"(?:"+a+")"+/(?=[\s;]|$)/.source,"i")}n.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:r(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:r(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:r(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:r(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:r(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:r(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:r(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(t)}return JE}var ek,J4;function dUe(){if(J4)return ek;J4=1,ek=e,e.displayName="cssExtras",e.aliases=[];function e(t){(function(n){var r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,a;n.languages.css.selector={pattern:n.languages.css.selector.pattern,lookbehind:!0,inside:a={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+r.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[r,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})})(t)}return ek}var tk,e$;function fUe(){if(e$)return tk;e$=1,tk=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return tk}var nk,t$;function pUe(){if(t$)return nk;t$=1,nk=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return nk}var rk,n$;function hUe(){if(n$)return rk;n$=1,rk=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return rk}var ak,r$;function gUe(){if(r$)return ak;r$=1,ak=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return ak}var ik,a$;function mUe(){if(a$)return ik;a$=1,ik=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return ik}var ok,i$;function bUe(){if(i$)return ok;i$=1,ok=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return ok}var sk,o$;function yUe(){if(o$)return sk;o$=1,sk=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return sk}var lk,s$;function vUe(){if(s$)return lk;s$=1,lk=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var i=r[a],o=[];/^\w+$/.test(a)||o.push(/\w+/.exec(a)[0]),a==="diff"&&o.push("bold"),n.languages.diff[a]={pattern:RegExp("^(?:["+i+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(t)}return lk}var ck,l$;function Jr(){if(l$)return ck;l$=1,ck=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,i,o,s){if(a.language===i){var l=a.tokenStack=[];a.code=a.code.replace(o,function(c){if(typeof s=="function"&&!s(c))return c;for(var d=l.length,p;a.code.indexOf(p=r(i,d))!==-1;)++d;return l[d]=c,p}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=n.languages[i];var o=0,s=Object.keys(a.tokenStack);function l(c){for(var d=0;d<c.length&&!(o>=s.length);d++){var p=c[d];if(typeof p=="string"||p.content&&typeof p.content=="string"){var h=s[o],g=a.tokenStack[h],b=typeof p=="string"?p:p.content,y=r(i,h),x=b.indexOf(y);if(x>-1){++o;var w=b.substring(0,x),S=new n.Token(i,n.tokenize(g,a.grammar),"language-"+i,g),_=b.substring(x+y.length),N=[];w&&N.push.apply(N,l([w])),N.push(S),_&&N.push.apply(N,l([_])),typeof p=="string"?c.splice.apply(c,[d,1].concat(N)):p.content=N}}else p.content&&l(p.content)}return c}l(a.tokens)}}})})(t)}return ck}var uk,c$;function xUe(){if(c$)return uk;c$=1;var e=Jr();uk=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})}(n)}return uk}var dk,u$;function SUe(){if(u$)return dk;u$=1,dk=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return dk}var fk,d$;function wUe(){if(d$)return fk;d$=1,fk=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return r}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return i}),s={pattern:RegExp(i),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function c(d,p){return d=d.replace(/<OPT>/g,function(){return o}).replace(/<SP>/g,function(){return a}),RegExp(d,p)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:c(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:c(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},n.languages.dockerfile=n.languages.docker})(t)}return fk}var pk,f$;function EUe(){if(f$)return pk;f$=1,pk=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function i(o,s){return RegExp(o.replace(/<ID>/g,function(){return r}),s)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:i(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:i(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return pk}var hk,p$;function kUe(){if(p$)return hk;p$=1,hk=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return hk}var gk,h$;function _Ue(){if(h$)return gk;h$=1,gk=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return gk}var mk,g$;function CUe(){if(g$)return mk;g$=1,mk=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return mk}var bk,m$;function TUe(){if(m$)return bk;m$=1;var e=Jr();bk=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs}(n)}return bk}var yk,b$;function AUe(){if(b$)return yk;b$=1,yk=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return yk}var vk,y$;function RUe(){if(y$)return vk;y$=1,vk=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return vk}var xk,v$;function NUe(){if(v$)return xk;v$=1;var e=fv(),t=Jr();xk=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(i){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"erb",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"erb")})}(r)}return xk}var Sk,x$;function LUe(){if(x$)return Sk;x$=1,Sk=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return Sk}var wk,S$;function vte(){if(S$)return wk;S$=1,wk=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return wk}var Ek,w$;function OUe(){if(w$)return Ek;w$=1;var e=vte(),t=Jr();Ek=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(i){var o=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"etlua",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})}(r)}return Ek}var kk,E$;function DUe(){if(E$)return kk;E$=1,kk=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return kk}var _k,k$;function IUe(){if(k$)return _k;k$=1,_k=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},o=function(d){return(d+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(d){return new RegExp("(^|\\s)(?:"+d.map(o).join("|")+")(?=\\s|$)")},l={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(l).forEach(function(d){i[d].pattern=s(l[d])});var c=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];i.combinators.pattern=s(c),n.languages.factor=i})(t)}return _k}var Ck,_$;function MUe(){if(_$)return Ck;_$=1,Ck=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(t)}return Ck}var Tk,C$;function FUe(){if(C$)return Tk;C$=1,Tk=e,e.displayName="firestoreSecurityRules",e.aliases=[];function e(t){t.languages["firestore-security-rules"]=t.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return Tk}var Ak,T$;function PUe(){if(T$)return Ak;T$=1,Ak=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return Ak}var Rk,A$;function BUe(){if(A$)return Rk;A$=1,Rk=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return Rk}var Nk,R$;function zUe(){if(R$)return Nk;R$=1,Nk=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return Nk}var Lk,N$;function $Ue(){if(N$)return Lk;N$=1;var e=Jr();Lk=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)a=a.replace(/<expr>/g,function(){return a});a=a.replace(/<expr>/g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},r.hooks.add("before-tokenize",function(s){var l=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(s,"ftl",l)}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(n)}return Lk}var Ok,L$;function jUe(){if(L$)return Ok;L$=1,Ok=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return Ok}var Dk,O$;function UUe(){if(O$)return Dk;O$=1,Dk=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return Dk}var Ik,D$;function HUe(){if(D$)return Ik;D$=1,Ik=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return Ik}var Mk,I$;function GUe(){if(I$)return Mk;I$=1,Mk=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return Mk}var Fk,M$;function qUe(){if(M$)return Fk;M$=1,Fk=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return Fk}var Pk,F$;function WUe(){if(F$)return Pk;F$=1,Pk=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return Pk}var Bk,P$;function VUe(){if(P$)return Bk;P$=1;var e=Wl();Bk=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return Bk}var zk,B$;function YUe(){if(B$)return zk;B$=1,zk=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return zk}var $k,z$;function KUe(){if(z$)return $k;z$=1,$k=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return $k}var jk,$$;function XUe(){if($$)return jk;$$=1,jk=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return jk}var Uk,j$;function ZUe(){if(j$)return Uk;j$=1,Uk=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return Uk}var Hk,U$;function QUe(){if(U$)return Hk;U$=1,Hk=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),i=0;function o(w){return a[i+w]}function s(w,S){S=S||0;for(var _=0;_<w.length;_++){var N=o(_+S);if(!N||N.type!==w[_])return!1}return!0}function l(w,S){for(var _=1,N=i;N<a.length;N++){var R=a[N],C=R.content;if(R.type==="punctuation"&&typeof C=="string"){if(w.test(C))_++;else if(S.test(C)&&(_--,_===0))return N}}return-1}function c(w,S){var _=w.alias;_?Array.isArray(_)||(w.alias=_=[_]):w.alias=_=[],_.push(S)}for(;i<a.length;){var d=a[i++];if(d.type==="keyword"&&d.content==="mutation"){var p=[];if(s(["definition-mutation","punctuation"])&&o(1).content==="("){i+=2;var h=l(/^\($/,/^\)$/);if(h===-1)continue;for(;i<h;i++){var g=o(0);g.type==="variable"&&(c(g,"variable-input"),p.push(g.content))}i=h+1}if(s(["punctuation","property-query"])&&o(0).content==="{"&&(i++,c(o(0),"property-mutation"),p.length>0)){var b=l(/^\{$/,/^\}$/);if(b===-1)continue;for(var y=i;y<b;y++){var x=a[y];x.type==="variable"&&p.indexOf(x.content)>=0&&c(x,"variable-input")}}}}})}return Hk}var Gk,H$;function JUe(){if(H$)return Gk;H$=1,Gk=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return Gk}var qk,G$;function e6e(){if(G$)return qk;G$=1;var e=fv();qk=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},s=0,l=i.length;s<l;s++){var c=i[s];c=typeof c=="string"?{filter:c,language:c}:c,r.languages[c.language]&&(o["filter-"+c.filter]={pattern:RegExp(a.replace("{{filter_name}}",function(){return c.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[c.language,"language-"+c.language],inside:r.languages[c.language]}}})}r.languages.insertBefore("haml","filter",o)}(n)}return qk}var Wk,q$;function t6e(){if(q$)return Wk;q$=1;var e=Jr();Wk=t,t.displayName="handlebars",t.aliases=["hbs"];function t(n){n.register(e),function(r){r.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars}(n)}return Wk}var Vk,W$;function lO(){if(W$)return Vk;W$=1,Vk=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return Vk}var Yk,V$;function n6e(){if(V$)return Yk;V$=1,Yk=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return Yk}var Kk,Y$;function r6e(){if(Y$)return Kk;Y$=1,Kk=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return Kk}var Xk,K$;function a6e(){if(K$)return Xk;K$=1;var e=Wl();Xk=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return Xk}var Zk,X$;function i6e(){if(X$)return Zk;X$=1,Zk=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return Zk}var Qk,Z$;function o6e(){if(Z$)return Qk;Z$=1,Qk=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Qk}var Jk,Q$;function s6e(){if(Q$)return Jk;Q$=1,Jk=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Jk}var e1,J$;function l6e(){if(J$)return e1;J$=1,e1=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.languages,i={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},o={"application/json":!0,"application/xml":!0};function s(p){var h=p.replace(/^[a-z]+\//,""),g="\\w+/(?:[\\w.-]+\\+)+"+h+"(?![+\\w.-])";return"(?:"+p+"|"+g+")"}var l;for(var c in i)if(i[c]){l=l||{};var d=o[c]?s(c):c;l[c.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+d+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[c]}}l&&n.languages.insertBefore("http","header",l)})(t)}return e1}var t1,ej;function c6e(){if(ej)return t1;ej=1,t1=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return t1}var n1,tj;function u6e(){if(tj)return n1;tj=1,n1=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return n1}var r1,nj;function d6e(){if(nj)return r1;nj=1,r1=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(c,d){return d<=0?/[]/.source:c.replace(/<SELF>/g,function(){return r(c,d-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:a,greedy:!0,inside:{escape:i}},s=r(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return a.source}),8),l={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":l,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":l,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},l.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return r1}var a1,rj;function f6e(){if(rj)return a1;rj=1;var e=lO();a1=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return a1}var i1,aj;function p6e(){if(aj)return i1;aj=1,i1=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return i1}var o1,ij;function h6e(){if(ij)return o1;ij=1,o1=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return o1}var s1,oj;function g6e(){if(oj)return s1;oj=1,s1=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return s1}var l1,sj;function m6e(){if(sj)return l1;sj=1,l1=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return l1}var c1,lj;function b6e(){if(lj)return c1;lj=1,c1=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}return c1}var u1,cj;function y6e(){if(cj)return u1;cj=1,u1=e,e.displayName="j",e.aliases=[];function e(t){t.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return u1}var d1,uj;function cO(){if(uj)return d1;uj=1,d1=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return d1}var f1,dj;function pv(){if(dj)return f1;dj=1,f1=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(o,s){var l="doc-comment",c=n.languages[o];if(c){var d=c[l];if(!d){var p={};p[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},c=n.languages.insertBefore(o,"comment",p),d=c[l]}if(d instanceof RegExp&&(d=c[l]={pattern:d}),Array.isArray(d))for(var h=0,g=d.length;h<g;h++)d[h]instanceof RegExp&&(d[h]={pattern:d[h]}),s(d[h]);else s(d)}}function i(o,s){typeof o=="string"&&(o=[o]),o.forEach(function(l){a(l,function(c){c.inside||(c.inside={}),c.inside.rest=s})})}Object.defineProperty(r,"addSupport",{value:i}),r.addSupport(["java","javascript","php"],r)})(t)}return f1}var p1,fj;function v6e(){if(fj)return p1;fj=1;var e=cO(),t=pv();p1=n,n.displayName="javadoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var i=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,o=/#\s*\w+(?:\s*\([^()]*\))?/.source,s=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return o});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)}(r)}return p1}var h1,pj;function x6e(){if(pj)return h1;pj=1,h1=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return h1}var g1,hj;function S6e(){if(hj)return g1;hj=1,g1=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return g1}var m1,gj;function w6e(){if(gj)return m1;gj=1,m1=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return m1}var b1,mj;function E6e(){if(mj)return b1;mj=1,b1=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:a,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(t)}return b1}var y1,bj;function k6e(){if(bj)return y1;bj=1,y1=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(c,d){return RegExp(c.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),d)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],i=0;i<a.length;i++){var o=a[i],s=n.languages.javascript[o];n.util.type(s)==="RegExp"&&(s=n.languages.javascript[o]={pattern:s});var l=s.inside||{};s.inside=l,l["maybe-class-name"]=/^[A-Z][\s\S]*/}})(t)}return y1}var v1,yj;function _6e(){if(yj)return v1;yj=1,v1=e,e.displayName="jsTemplates",e.aliases=[];function e(t){(function(n){var r=n.languages.javascript["template-string"],a=r.pattern.source,i=r.inside.interpolation,o=i.inside["interpolation-punctuation"],s=i.pattern.source;function l(y,x){if(n.languages[y])return{pattern:RegExp("((?:"+x+")\\s*)"+a),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:y}}}}n.languages.javascript["template-string"]=[l("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),l("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),l("svg",/\bsvg/.source),l("markdown",/\b(?:markdown|md)/.source),l("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),l("sql",/\bsql/.source),r].filter(Boolean);function c(y,x){return"___"+x.toUpperCase()+"_"+y+"___"}function d(y,x,w){var S={code:y,grammar:x,language:w};return n.hooks.run("before-tokenize",S),S.tokens=n.tokenize(S.code,S.grammar),n.hooks.run("after-tokenize",S),S.tokens}function p(y){var x={};x["interpolation-punctuation"]=o;var w=n.tokenize(y,x);if(w.length===3){var S=[1,1];S.push.apply(S,d(w[1],n.languages.javascript,"javascript")),w.splice.apply(w,S)}return new n.Token("interpolation",w,i.alias,y)}function h(y,x,w){var S=n.tokenize(y,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),_=0,N={},R=S.map(function(D){if(typeof D=="string")return D;for(var O=D.content,P;y.indexOf(P=c(_++,w))!==-1;);return N[P]=O,P}).join(""),C=d(R,x,w),A=Object.keys(N);_=0;function I(D){for(var O=0;O<D.length;O++){if(_>=A.length)return;var P=D[O];if(typeof P=="string"||typeof P.content=="string"){var G=A[_],j=typeof P=="string"?P:P.content,W=j.indexOf(G);if(W!==-1){++_;var V=j.substring(0,W),B=p(N[G]),U=j.substring(W+G.length),M=[];if(V&&M.push(V),M.push(B),U){var K=[U];I(K),M.push.apply(M,K)}typeof P=="string"?(D.splice.apply(D,[O,1].concat(M)),O+=M.length-1):P.content=M}}else{var F=P.content;Array.isArray(F)?I(F):I([F])}}}return I(C),new n.Token(w,C,"language-"+w,y)}var g={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(y){if(!(y.language in g))return;function x(w){for(var S=0,_=w.length;S<_;S++){var N=w[S];if(typeof N!="string"){var R=N.content;if(!Array.isArray(R)){typeof R!="string"&&x([R]);continue}if(N.type==="template-string"){var C=R[1];if(R.length===3&&typeof C!="string"&&C.type==="embedded-code"){var A=b(C),I=C.alias,D=Array.isArray(I)?I[0]:I,O=n.languages[D];if(!O)continue;R[1]=h(A,O,D)}}else x(R)}}}x(y.tokens)});function b(y){return typeof y=="string"?y:Array.isArray(y)?y.map(b).join(""):b(y.content)}})(t)}return v1}var x1,vj;function uO(){if(vj)return x1;vj=1,x1=e,e.displayName="typescript",e.aliases=["ts"];function e(t){(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(t)}return x1}var S1,xj;function C6e(){if(xj)return S1;xj=1;var e=pv(),t=uO();S1=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var i=a.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)}(r)}return S1}var w1,Sj;function dO(){if(Sj)return w1;Sj=1,w1=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return w1}var E1,wj;function T6e(){if(wj)return E1;wj=1;var e=dO();E1=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(n)}return E1}var k1,Ej;function A6e(){if(Ej)return k1;Ej=1;var e=dO();k1=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return k1}var _1,kj;function R6e(){if(kj)return _1;kj=1,_1=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return _1}var C1,_j;function xte(){if(_j)return C1;_j=1,C1=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function s(d,p){return d=d.replace(/<S>/g,function(){return a}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(d,p)}o=s(o).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:s(/<SPREAD>/.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var l=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(l).join(""):""},c=function(d){for(var p=[],h=0;h<d.length;h++){var g=d[h],b=!1;if(typeof g!="string"&&(g.type==="tag"&&g.content[0]&&g.content[0].type==="tag"?g.content[0].content[0].content==="</"?p.length>0&&p[p.length-1].tagName===l(g.content[0].content[1])&&p.pop():g.content[g.content.length-1].content==="/>"||p.push({tagName:l(g.content[0].content[1]),openedBraces:0}):p.length>0&&g.type==="punctuation"&&g.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&g.type==="punctuation"&&g.content==="}"?p[p.length-1].openedBraces--:b=!0),(b||typeof g=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var y=l(g);h<d.length-1&&(typeof d[h+1]=="string"||d[h+1].type==="plain-text")&&(y+=l(d[h+1]),d.splice(h+1,1)),h>0&&(typeof d[h-1]=="string"||d[h-1].type==="plain-text")&&(y=l(d[h-1])+y,d.splice(h-1,1),h--),d[h]=new n.Token("plain-text",y,null,y)}g.content&&typeof g.content!="string"&&c(g.content)}};n.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||c(d.tokens)})})(t)}return C1}var T1,Cj;function N6e(){if(Cj)return T1;Cj=1,T1=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return T1}var A1,Tj;function L6e(){if(Tj)return A1;Tj=1,A1=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return A1}var R1,Aj;function O6e(){if(Aj)return R1;Aj=1,R1=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return R1}var N1,Rj;function D6e(){if(Rj)return N1;Rj=1,N1=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return N1}var L1,Nj;function I6e(){if(Nj)return L1;Nj=1,L1=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,o){return RegExp(i.replace(/<nonId>/g,r),o)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(t)}return L1}var O1,Lj;function M6e(){if(Lj)return O1;Lj=1,O1=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return O1}var D1,Oj;function F6e(){if(Oj)return D1;Oj=1,D1=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return D1}var I1,Dj;function hv(){if(Dj)return I1;Dj=1;var e=Jr();I1=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),function(r){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,l=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:s,punctuation:l};var c={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},d=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:c}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:c}}];r.languages.insertBefore("php","variable",{string:d,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:d,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:o,operator:s,punctuation:l}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(p){if(/<\?/.test(p.code)){var h=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(p,"php",h)}}),r.hooks.add("after-tokenize",function(p){r.languages["markup-templating"].tokenizePlaceholders(p,"php")})}(n)}return I1}var M1,Ij;function P6e(){if(Ij)return M1;Ij=1;var e=Jr(),t=hv();M1=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var i=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},i.tag),a.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(o,"latte",s),o.grammar=i}}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"latte")})}(r)}return M1}var F1,Mj;function B6e(){if(Mj)return F1;Mj=1,F1=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return F1}var P1,Fj;function fO(){if(Fj)return P1;Fj=1,P1=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(a){for(var i in a)a[i]=a[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+a[o].trim()+")"});return a[i]}})(t)}return P1}var B1,Pj;function z6e(){if(Pj)return B1;Pj=1;var e=fO();B1=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,i=5,o=0;o<i;o++)a=a.replace(/<expr>/g,function(){return a});a=a.replace(/<expr>/g,/[^\s\S]/.source);var s=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,r.languages.ly=s}(n)}return B1}var z1,Bj;function $6e(){if(Bj)return z1;Bj=1;var e=Jr();z1=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",a,function(o){var s=/^\{%-?\s*(\w+)/.exec(o);if(s){var l=s[1];if(l==="raw"&&!i)return i=!0,!0;if(l==="endraw")return i=!1,!0}return!i})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return z1}var $1,zj;function j6e(){if(zj)return $1;zj=1,$1=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(y){return RegExp(/(\()/.source+"(?:"+y+")"+/(?=[\s\)])/.source)}function a(y){return RegExp(/([\s([])/.source+"(?:"+y+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,s="(\\()",l="(?=\\))",c="(?=\\s)",d=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+c),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+c),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+d+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},h={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+d+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},g="\\S+(?:\\s+\\S+)*",b={pattern:RegExp(s+d+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+g),inside:h},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+g),inside:h},keys:{pattern:RegExp("&key\\s+"+g+"(?:\\s+&allow-other-keys)?"),inside:h},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=b,p.defun.inside.arguments=n.util.clone(b),p.defun.inside.arguments.inside.sublist=b,n.languages.lisp=p,n.languages.elisp=p,n.languages.emacs=p,n.languages["emacs-lisp"]=p})(t)}return $1}var j1,$j;function U6e(){if($j)return j1;$j=1,j1=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return j1}var U1,jj;function H6e(){if(jj)return U1;jj=1,U1=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return U1}var H1,Uj;function G6e(){if(Uj)return H1;Uj=1,H1=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return H1}var G1,Hj;function q6e(){if(Hj)return G1;Hj=1,G1=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return G1}var q1,Gj;function W6e(){if(Gj)return q1;Gj=1,q1=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return q1}var W1,qj;function V6e(){if(qj)return W1;qj=1,W1=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return W1}var V1,Wj;function Y6e(){if(Wj)return V1;Wj=1,V1=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(h){return h=h.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+h+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+s+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+s+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(h){["url","bold","italic","strike","code-snippet"].forEach(function(g){h!==g&&(n.languages.markdown[h].inside.content.inside[g]=n.languages.markdown[g])})}),n.hooks.add("after-tokenize",function(h){if(h.language!=="markdown"&&h.language!=="md")return;function g(b){if(!(!b||typeof b=="string"))for(var y=0,x=b.length;y<x;y++){var w=b[y];if(w.type!=="code"){g(w.content);continue}var S=w.content[1],_=w.content[3];if(S&&_&&S.type==="code-language"&&_.type==="code-block"&&typeof S.content=="string"){var N=S.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");N=(/[a-z][\w-]*/i.exec(N)||[""])[0].toLowerCase();var R="language-"+N;_.alias?typeof _.alias=="string"?_.alias=[_.alias,R]:_.alias.push(R):_.alias=[R]}}}g(h.tokens)}),n.hooks.add("wrap",function(h){if(h.type==="code-block"){for(var g="",b=0,y=h.classes.length;b<y;b++){var x=h.classes[b],w=/language-(.+)/.exec(x);if(w){g=w[1];break}}var S=n.languages[g];if(S)h.content=n.highlight(p(h.content.value),S,g);else if(g&&g!=="none"&&n.plugins.autoloader){var _="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);h.attributes.id=_,n.plugins.autoloader.loadLanguages(g,function(){var N=document.getElementById(_);N&&(N.innerHTML=n.highlight(N.textContent,n.languages[g],g))})}}});var l=RegExp(n.languages.markup.tag.pattern.source,"gi"),c={amp:"&",lt:"<",gt:">",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function p(h){var g=h.replace(l,"");return g=g.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,y){if(y=y.toLowerCase(),y[0]==="#"){var x;return y[1]==="x"?x=parseInt(y.slice(2),16):x=Number(y.slice(1)),d(x)}else{var w=c[y];return w||b}}),g}n.languages.md=n.languages.markdown})(t)}return V1}var Y1,Vj;function K6e(){if(Vj)return Y1;Vj=1,Y1=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return Y1}var K1,Yj;function X6e(){if(Yj)return K1;Yj=1,K1=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return K1}var X1,Kj;function Z6e(){if(Kj)return X1;Kj=1,X1=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return X1}var Z1,Xj;function Q6e(){if(Xj)return Z1;Xj=1,Z1=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return Z1}var Q1,Zj;function J6e(){if(Zj)return Q1;Zj=1,Q1=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return Q1}var J1,Qj;function eHe(){if(Qj)return J1;Qj=1,J1=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(o){return o.replace("$","\\$")});var i="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return J1}var e_,Jj;function tHe(){if(Jj)return e_;Jj=1,e_=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return e_}var t_,eU;function nHe(){if(eU)return t_;eU=1,t_=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return t_}var n_,tU;function rHe(){if(tU)return n_;tU=1,n_=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return n_}var r_,nU;function aHe(){if(nU)return r_;nU=1,r_=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return r_}var a_,rU;function iHe(){if(rU)return a_;rU=1,a_=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return a_}var i_,aU;function oHe(){if(aU)return i_;aU=1,i_=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(s){var l=s.tokens;l.forEach(function(c){if(typeof c!="string"&&c.type==="generic-text"){var d=o(c);i(d)||(c.type="bad-line",c.content=d)}})});function i(s){for(var l="[]{}",c=[],d=0;d<s.length;d++){var p=s[d],h=l.indexOf(p);if(h!==-1){if(h%2===0)c.push(h+1);else if(c.pop()!==h)return!1}}return c.length===0}function o(s){return typeof s=="string"?s:Array.isArray(s)?s.map(o).join(""):o(s.content)}})(t)}return i_}var o_,iU;function sHe(){if(iU)return o_;iU=1,o_=e,e.displayName="nasm",e.aliases=[];function e(t){t.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}return o_}var s_,oU;function lHe(){if(oU)return s_;oU=1,s_=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return s_}var l_,sU;function cHe(){if(sU)return l_;sU=1,l_=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return l_}var c_,lU;function uHe(){if(lU)return c_;lU=1,c_=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(t)}return c_}var u_,cU;function dHe(){if(cU)return u_;cU=1,u_=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return u_}var d_,uU;function fHe(){if(uU)return d_;uU=1,d_=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return d_}var f_,dU;function pHe(){if(dU)return f_;dU=1,f_=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return f_}var p_,fU;function hHe(){if(fU)return p_;fU=1;var e=Wl();p_=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return p_}var h_,pU;function gHe(){if(pU)return h_;pU=1,h_=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return h_}var g_,hU;function mHe(){if(hU)return g_;hU=1;var e=Wl();g_=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",a),r.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",a))}(n)}return g_}var m_,gU;function bHe(){if(gU)return m_;gU=1,m_=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return m_}var b_,mU;function yHe(){if(mU)return b_;mU=1,b_=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return b_}var y_,bU;function vHe(){if(bU)return y_;bU=1,y_=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return y_}var v_,yU;function xHe(){if(yU)return v_;yU=1,v_=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return v_}var x_,vU;function SHe(){if(vU)return x_;vU=1,x_=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return x_}var S_,xU;function wHe(){if(xU)return S_;xU=1,S_=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return r}),i=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,l){return s[l]=i[l],s},{});i["class-name"].forEach(function(s){s.inside=o})})(t)}return S_}var w_,SU;function EHe(){if(SU)return w_;SU=1,w_=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return w_}var E_,wU;function kHe(){if(wU)return E_;wU=1,E_=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return E_}var k_,EU;function _He(){if(EU)return k_;EU=1,k_=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return k_}var __,kU;function CHe(){if(kU)return __;kU=1;var e=hv();__=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return __}var C_,_U;function THe(){if(_U)return C_;_U=1;var e=hv(),t=pv();C_=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}(r)}return C_}var T_,CU;function AHe(){if(CU)return T_;CU=1;var e=oO();T_=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return T_}var A_,TU;function RHe(){if(TU)return A_;TU=1,A_=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return A_}var R_,AU;function NHe(){if(AU)return R_;AU=1,R_=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return R_}var N_,RU;function LHe(){if(RU)return N_;RU=1,N_=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return N_}var L_,NU;function OHe(){if(NU)return L_;NU=1,L_=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return L_}var O_,LU;function DHe(){if(LU)return O_;LU=1,O_=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=r.concat(a,i);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return O_}var D_,OU;function IHe(){if(OU)return D_;OU=1,D_=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return D_}var I_,DU;function MHe(){if(DU)return I_;DU=1,I_=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return I_}var M_,IU;function FHe(){if(IU)return M_;IU=1,M_=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return M_}var F_,MU;function PHe(){if(MU)return F_;MU=1,F_=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,s=a.length;o<s;o++){var l=a[o];l=typeof l=="string"?{filter:l,language:l}:l,n.languages[l.language]&&(i["filter-"+l.filter]={pattern:RegExp(r.replace("<filter_name>",function(){return l.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[l.language,"language-"+l.language],inside:n.languages[l.language]}}})}n.languages.insertBefore("pug","filter",i)})(t)}return F_}var P_,FU;function BHe(){if(FU)return P_;FU=1,P_=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return P_}var B_,PU;function zHe(){if(PU)return B_;PU=1,B_=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),n.languages[o]){var s={};s["inline-lang-"+o]={pattern:RegExp(a.replace("<lang>",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},s["inline-lang-"+o].inside.rest=n.util.clone(n.languages[o]),n.languages.insertBefore("pure","inline-lang",s)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return B_}var z_,BU;function $He(){if(BU)return z_;BU=1,z_=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return z_}var $_,zU;function jHe(){if(zU)return $_;zU=1;var e=lO();$_=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return $_}var j_,$U;function UHe(){if($U)return j_;$U=1,j_=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return j_}var U_,jU;function HHe(){if(jU)return U_;jU=1,U_=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return U_}var H_,UU;function GHe(){if(UU)return H_;UU=1,H_=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return r}).replace(/<comment>/g,function(){return a}),o=0;o<2;o++)i=i.replace(/<expr>/g,function(){return i});i=i.replace(/<expr>/g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return H_}var G_,HU;function qHe(){if(HU)return G_;HU=1,G_=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return G_}var q_,GU;function WHe(){if(GU)return q_;GU=1,q_=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(b,y){return b.replace(/<<(\d+)>>/g,function(x,w){return"(?:"+y[+w]+")"})}function a(b,y,x){return RegExp(r(b,y),"")}function i(b,y){for(var x=0;x<y;x++)b=b.replace(/<<self>>/g,function(){return"(?:"+b+")"});return b.replace(/<<self>>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(b){return"\\b(?:"+b.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(s(o.type+" "+o.other)),c=/\b[A-Za-z_]\w*\b/.source,d=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[c]),p={keyword:l,punctuation:/[<>()?,.:[\]]/},h=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[h]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[d]),lookbehind:!0,inside:p},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[d]),lookbehind:!0,inside:p}],keyword:l,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var g=i(r(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[h]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[g]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[g]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return q_}var W_,qU;function VHe(){if(qU)return W_;qU=1,W_=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return W_}var V_,WU;function YHe(){if(WU)return V_;WU=1;var e=fO();V_=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return V_}var Y_,VU;function KHe(){if(VU)return Y_;VU=1,Y_=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return Y_}var K_,YU;function XHe(){if(YU)return K_;YU=1,K_=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+a.source+")",l=RegExp(s+"-"+s),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":o,escape:a}},"special-escape":r,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":c}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(t)}return K_}var X_,KU;function ZHe(){if(KU)return X_;KU=1,X_=e,e.displayName="rego",e.aliases=[];function e(t){t.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return X_}var Z_,XU;function QHe(){if(XU)return Z_;XU=1,Z_=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return Z_}var Q_,ZU;function JHe(){if(ZU)return Q_;ZU=1,Q_=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return Q_}var J_,QU;function eGe(){if(QU)return J_;QU=1,J_=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return J_}var eC,JU;function tGe(){if(JU)return eC;JU=1,eC=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return eC}var tC,e6;function nGe(){if(e6)return tC;e6=1,tC=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(c,d){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var h in d)p[h]=d[h];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=a,p.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return c}),"im"),alias:"section",inside:p}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},l={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};n.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:o,property:l}),keywords:i("Keywords",{"keyword-name":s,documentation:o,property:l}),tasks:i("Tasks",{"task-name":s,documentation:o,property:l}),comment:r},n.languages.robot=n.languages.robotframework})(t)}return tC}var nC,t6;function rGe(){if(t6)return nC;t6=1,nC=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,a=0;a<2;a++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return nC}var rC,n6;function aGe(){if(n6)return rC;n6=1,rC=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(r+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},l={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},c=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={pattern:RegExp(r),greedy:!0},p=/[$%@.(){}\[\];,\\]/,h={pattern:/%?\b\w+(?=\()/,alias:"keyword"},g={function:h,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:d},b={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},y={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},x={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},w={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},S=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,_={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return S}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return S}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:c,function:h,"arg-value":g["arg-value"],operator:g.operator,argument:g.arg,number:a,"numeric-constant":i,punctuation:p,string:d}},N={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":x,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:N,"submit-statement":w,"global-statements":x,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:N,"submit-statement":w,"global-statements":x,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:g}},"cas-actions":_,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:g},step:l,keyword:N,function:h,format:b,altformat:y,"global-statements":x,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,inside:g},"macro-keyword":s,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:c,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:g},"cas-actions":_,comment:c,function:h,format:b,altformat:y,"numeric-constant":i,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:d,step:l,keyword:N,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(t)}return rC}var aC,r6;function iGe(){if(r6)return aC;r6=1,aC=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return aC}var iC,a6;function oGe(){if(a6)return iC;a6=1;var e=cO();iC=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return iC}var oC,i6;function sGe(){if(i6)return oC;i6=1,oC=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return oC}var sC,o6;function lGe(){if(o6)return sC;o6=1;var e=bte();sC=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]}(n)}return sC}var lC,s6;function cGe(){if(s6)return lC;s6=1,lC=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return lC}var cC,l6;function uGe(){if(l6)return cC;l6=1,cC=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return cC}var uC,c6;function dGe(){if(c6)return uC;c6=1;var e=Jr();uC=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return a.source}),"g");r.hooks.add("before-tokenize",function(o){var s="{literal}",l="{/literal}",c=!1;r.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(d){return d===l&&(c=!1),c?!1:(d===s&&(c=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})}(n)}return uC}var dC,u6;function fGe(){if(u6)return dC;u6=1,dC=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return dC}var fC,d6;function pGe(){if(d6)return fC;d6=1,fC=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return fC}var pC,f6;function hGe(){if(f6)return pC;f6=1,pC=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return pC}var hC,p6;function gGe(){if(p6)return hC;p6=1;var e=Jr();hC=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(o){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,l="{literal}",c="{/literal}",d=!1;r.languages["markup-templating"].buildPlaceholders(o,"soy",s,function(p){return p===c&&(d=!1),d?!1:(p===l&&(d=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"soy")})}(n)}return hC}var gC,h6;function Ste(){if(h6)return gC;h6=1,gC=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return gC}var mC,g6;function mGe(){if(g6)return mC;g6=1;var e=Ste();mC=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return mC}var bC,m6;function bGe(){if(m6)return bC;m6=1,bC=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return bC}var yC,b6;function yGe(){if(b6)return yC;b6=1,yC=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return yC}var vC,y6;function vGe(){if(y6)return vC;y6=1,vC=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return vC}var xC,v6;function xGe(){if(v6)return xC;v6=1,xC=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return xC}var SC,x6;function SGe(){if(x6)return SC;x6=1,SC=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return SC}var wC,S6;function wGe(){if(S6)return wC;S6=1,wC=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=t.languages.swift})}return wC}var EC,w6;function EGe(){if(w6)return EC;w6=1,EC=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return EC}var kC,E6;function pO(){if(E6)return kC;E6=1,kC=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(i,o,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:s}}}}function a(i){var o=n.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",o,s),"class-feature":r("\\+",o,s),standard:r("",o,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return kC}var _C,k6;function kGe(){if(k6)return _C;k6=1;var e=pO(),t=dv();_C=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return _C}var CC,_6;function wte(){if(_6)return CC;_6=1;var e=yte();CC=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return CC}var TC,C6;function _Ge(){if(C6)return TC;C6=1;var e=pO(),t=wte();TC=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return TC}var AC,T6;function Ete(){if(T6)return AC;T6=1,AC=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(c,d){d=(d||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return c});return RegExp(p,d)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return AC}var RC,A6;function CGe(){if(A6)return RC;A6=1;var e=Ete();RC=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return RC}var NC,R6;function TGe(){if(R6)return NC;R6=1,NC=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return NC}var LC,N6;function AGe(){if(N6)return LC;N6=1,LC=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(h,g){return RegExp(h.replace(/<MOD>/g,function(){return"(?:"+r+")"}).replace(/<PAR>/g,function(){return"(?:"+a+")"}),g||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")<MOD>+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=s.phrase.inside,c={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=l.inline.inside;d.bold.inside=c,d.italic.inside=c,d.inserted.inside=c,d.deleted.inside=c,d.span.inside=c;var p=l.table.inside;p.inline=c.inline,p.link=c.link,p.image=c.image,p.footnote=c.footnote,p.acronym=c.acronym,p.mark=c.mark})(t)}return LC}var OC,L6;function RGe(){if(L6)return OC;L6=1,OC=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return OC}var DC,O6;function NGe(){if(O6)return DC;O6=1,DC=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return DC}var IC,D6;function LGe(){if(D6)return IC;D6=1;var e=xte(),t=uO();IC=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var o=a.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0}(r)}return IC}var MC,I6;function OGe(){if(I6)return MC;I6=1;var e=Jr();MC=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(n)}return MC}var FC,M6;function DGe(){if(M6)return FC;M6=1;var e=Jr();FC=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return FC}var PC,F6;function IGe(){if(F6)return PC;F6=1,PC=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return PC}var BC,P6;function MGe(){if(P6)return BC;P6=1,BC=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return BC}var zC,B6;function FGe(){if(B6)return zC;B6=1,zC=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return zC}var $C,z6;function PGe(){if(z6)return $C;z6=1,$C=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return $C}var jC,$6;function BGe(){if($6)return jC;$6=1,jC=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return jC}var UC,j6;function zGe(){if(j6)return UC;j6=1,UC=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return UC}var HC,U6;function $Ge(){if(U6)return HC;U6=1,HC=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return HC}var GC,H6;function jGe(){if(H6)return GC;H6=1,GC=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return GC}var qC,G6;function UGe(){if(G6)return qC;G6=1,qC=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return qC}var WC,q6;function HGe(){if(q6)return WC;q6=1,WC=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return WC}var VC,W6;function GGe(){if(W6)return VC;W6=1,VC=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:[']|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return VC}var YC,V6;function qGe(){if(V6)return YC;V6=1,YC=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return YC}var KC,Y6;function WGe(){if(Y6)return KC;Y6=1,KC=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return KC}var XC,K6;function VGe(){if(K6)return XC;K6=1,XC=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in n.languages["web-idl"])o!=="class-name"&&(i[o]=n.languages["web-idl"][o]);n.languages.webidl=n.languages["web-idl"]})(t)}return XC}var ZC,X6;function YGe(){if(X6)return ZC;X6=1,ZC=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return ZC}var QC,Z6;function KGe(){if(Z6)return QC;Z6=1,QC=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return QC}var JC,Q6;function XGe(){if(Q6)return JC;Q6=1,JC=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return JC}var eT,J6;function ZGe(){if(J6)return eT;J6=1,eT=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return eT}var tT,eH;function QGe(){if(eH)return tT;eH=1,tT=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(s,l){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":l})}var a=n.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",i),r("fsharp",i),r("vbnet",o)})(t)}return tT}var nT,tH;function JGe(){if(tH)return nT;tH=1,nT=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return nT}var rT,nH;function e9e(){if(nH)return rT;nH=1,rT=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(r).join("")},a=function(i){for(var o=[],s=0;s<i.length;s++){var l=i[s],c=!1;if(typeof l!="string"&&(l.type==="tag"&&l.content[0]&&l.content[0].type==="tag"?l.content[0].content[0].content==="</"?o.length>0&&o[o.length-1].tagName===r(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:r(l.content[0].content[1]),openedBraces:0}):o.length>0&&l.type==="punctuation"&&l.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?o[o.length-1].openedBraces--:l.type!=="comment"&&(c=!0)),(c||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var d=r(l);s<i.length-1&&(typeof i[s+1]=="string"||i[s+1].type==="plain-text")&&(d+=r(i[s+1]),i.splice(s+1,1)),s>0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(d=r(i[s-1])+d,i.splice(s-1,1),s--),/^\s+$/.test(d)?i[s]=d:i[s]=new n.Token("plain-text",d,null,d)}l.content&&typeof l.content!="string"&&a(l.content)}};n.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return rT}var aT,rH;function t9e(){if(rH)return aT;rH=1,aT=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return aT}var iT,aH;function n9e(){if(aH)return iT;aH=1,iT=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(d){return function(){return d}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,r(o)),l=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,r(i)),c="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,r(c)).replace(/<ALIGN>/g,r(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,r(c)).replace(/<ALIGN>/g,r(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=n.languages.zig)})})(t)}return iT}var oT,iH;function r9e(){if(iH)return oT;iH=1;var e=vje();return oT=e,e.register(Sje()),e.register(wje()),e.register(Eje()),e.register(kje()),e.register(_je()),e.register(Cje()),e.register(Tje()),e.register(Aje()),e.register(Rje()),e.register(Nje()),e.register(Lje()),e.register(Oje()),e.register(Dje()),e.register(Ije()),e.register(Mje()),e.register(Fje()),e.register(Pje()),e.register(Bje()),e.register(zje()),e.register($je()),e.register(jje()),e.register(Uje()),e.register(bte()),e.register(yte()),e.register(Hje()),e.register(Gje()),e.register(qje()),e.register(Wje()),e.register(Vje()),e.register(Yje()),e.register(Kje()),e.register(Xje()),e.register(Zje()),e.register(Qje()),e.register(Wl()),e.register(Jje()),e.register(eUe()),e.register(tUe()),e.register(nUe()),e.register(rUe()),e.register(aUe()),e.register(iUe()),e.register(oUe()),e.register(sUe()),e.register(sO()),e.register(lUe()),e.register(dv()),e.register(cUe()),e.register(uUe()),e.register(dUe()),e.register(fUe()),e.register(pUe()),e.register(hUe()),e.register(gUe()),e.register(mUe()),e.register(bUe()),e.register(yUe()),e.register(vUe()),e.register(xUe()),e.register(SUe()),e.register(wUe()),e.register(EUe()),e.register(kUe()),e.register(_Ue()),e.register(CUe()),e.register(TUe()),e.register(AUe()),e.register(RUe()),e.register(NUe()),e.register(LUe()),e.register(OUe()),e.register(DUe()),e.register(IUe()),e.register(MUe()),e.register(FUe()),e.register(PUe()),e.register(BUe()),e.register(zUe()),e.register($Ue()),e.register(jUe()),e.register(UUe()),e.register(HUe()),e.register(GUe()),e.register(qUe()),e.register(WUe()),e.register(VUe()),e.register(YUe()),e.register(KUe()),e.register(XUe()),e.register(ZUe()),e.register(QUe()),e.register(JUe()),e.register(e6e()),e.register(t6e()),e.register(lO()),e.register(n6e()),e.register(r6e()),e.register(a6e()),e.register(i6e()),e.register(o6e()),e.register(s6e()),e.register(l6e()),e.register(c6e()),e.register(u6e()),e.register(d6e()),e.register(f6e()),e.register(p6e()),e.register(h6e()),e.register(g6e()),e.register(m6e()),e.register(b6e()),e.register(y6e()),e.register(cO()),e.register(v6e()),e.register(pv()),e.register(x6e()),e.register(S6e()),e.register(w6e()),e.register(E6e()),e.register(k6e()),e.register(_6e()),e.register(C6e()),e.register(dO()),e.register(T6e()),e.register(A6e()),e.register(R6e()),e.register(xte()),e.register(N6e()),e.register(L6e()),e.register(O6e()),e.register(D6e()),e.register(I6e()),e.register(M6e()),e.register(F6e()),e.register(P6e()),e.register(B6e()),e.register(z6e()),e.register($6e()),e.register(j6e()),e.register(U6e()),e.register(H6e()),e.register(G6e()),e.register(q6e()),e.register(vte()),e.register(W6e()),e.register(V6e()),e.register(Y6e()),e.register(Jr()),e.register(K6e()),e.register(X6e()),e.register(Z6e()),e.register(Q6e()),e.register(J6e()),e.register(eHe()),e.register(tHe()),e.register(nHe()),e.register(rHe()),e.register(aHe()),e.register(iHe()),e.register(oHe()),e.register(sHe()),e.register(lHe()),e.register(cHe()),e.register(uHe()),e.register(dHe()),e.register(fHe()),e.register(pHe()),e.register(hHe()),e.register(gHe()),e.register(mHe()),e.register(bHe()),e.register(yHe()),e.register(vHe()),e.register(xHe()),e.register(SHe()),e.register(wHe()),e.register(EHe()),e.register(kHe()),e.register(_He()),e.register(CHe()),e.register(hv()),e.register(THe()),e.register(AHe()),e.register(RHe()),e.register(NHe()),e.register(LHe()),e.register(OHe()),e.register(DHe()),e.register(IHe()),e.register(MHe()),e.register(FHe()),e.register(PHe()),e.register(BHe()),e.register(zHe()),e.register($He()),e.register(jHe()),e.register(UHe()),e.register(HHe()),e.register(GHe()),e.register(qHe()),e.register(WHe()),e.register(VHe()),e.register(YHe()),e.register(KHe()),e.register(XHe()),e.register(ZHe()),e.register(QHe()),e.register(JHe()),e.register(eGe()),e.register(tGe()),e.register(nGe()),e.register(fv()),e.register(rGe()),e.register(aGe()),e.register(iGe()),e.register(oGe()),e.register(fO()),e.register(sGe()),e.register(lGe()),e.register(cGe()),e.register(uGe()),e.register(dGe()),e.register(fGe()),e.register(pGe()),e.register(hGe()),e.register(gGe()),e.register(mGe()),e.register(bGe()),e.register(yGe()),e.register(oO()),e.register(vGe()),e.register(xGe()),e.register(SGe()),e.register(wGe()),e.register(EGe()),e.register(kGe()),e.register(pO()),e.register(_Ge()),e.register(CGe()),e.register(TGe()),e.register(AGe()),e.register(RGe()),e.register(NGe()),e.register(LGe()),e.register(OGe()),e.register(Ste()),e.register(DGe()),e.register(uO()),e.register(IGe()),e.register(MGe()),e.register(FGe()),e.register(PGe()),e.register(BGe()),e.register(zGe()),e.register(wte()),e.register($Ge()),e.register(jGe()),e.register(UGe()),e.register(HGe()),e.register(GGe()),e.register(qGe()),e.register(WGe()),e.register(VGe()),e.register(YGe()),e.register(KGe()),e.register(XGe()),e.register(ZGe()),e.register(QGe()),e.register(JGe()),e.register(e9e()),e.register(Ete()),e.register(t9e()),e.register(n9e()),oT}var a9e=r9e();const i9e=Kn(a9e);var kte=q5e(i9e,xje);kte.supportedLanguages=W5e;var sT={},lT={exports:{}},oH;function o9e(){return oH||(oH=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(lT)),lT.exports}var cT={},sH;function s9e(){return sH||(sH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",maxHeight:"inherit",height:"inherit",padding:"0 1em",display:"block",overflow:"auto"},'pre[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",position:"relative",margin:".5em 0",overflow:"visible",padding:"1px",backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em"},'pre[class*="language-"] > code':{position:"relative",zIndex:"1",borderLeft:"10px solid #358ccb",boxShadow:"-1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf",backgroundColor:"#fdfdfd",backgroundImage:"linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%)",backgroundSize:"3em 3em",backgroundOrigin:"content-box",backgroundAttachment:"local"},':not(pre) > code[class*="language-"]':{backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em",position:"relative",padding:".2em",borderRadius:"0.3em",color:"#c92c2c",border:"1px solid rgba(0, 0, 0, 0.1)",display:"inline",whiteSpace:"normal"},'pre[class*="language-"]:before':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"0.18em",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(-2deg)",MozTransform:"rotate(-2deg)",msTransform:"rotate(-2deg)",OTransform:"rotate(-2deg)",transform:"rotate(-2deg)"},'pre[class*="language-"]:after':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"auto",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(2deg)",MozTransform:"rotate(2deg)",msTransform:"rotate(2deg)",OTransform:"rotate(2deg)",transform:"rotate(2deg)",right:"0.75em"},comment:{color:"#7D8B99"},"block-comment":{color:"#7D8B99"},prolog:{color:"#7D8B99"},doctype:{color:"#7D8B99"},cdata:{color:"#7D8B99"},punctuation:{color:"#5F6364"},property:{color:"#c92c2c"},tag:{color:"#c92c2c"},boolean:{color:"#c92c2c"},number:{color:"#c92c2c"},"function-name":{color:"#c92c2c"},constant:{color:"#c92c2c"},symbol:{color:"#c92c2c"},deleted:{color:"#c92c2c"},selector:{color:"#2f9c0a"},"attr-name":{color:"#2f9c0a"},string:{color:"#2f9c0a"},char:{color:"#2f9c0a"},function:{color:"#2f9c0a"},builtin:{color:"#2f9c0a"},inserted:{color:"#2f9c0a"},operator:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},entity:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)",cursor:"help"},url:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},variable:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},atrule:{color:"#1990b8"},"attr-value":{color:"#1990b8"},keyword:{color:"#1990b8"},"class-name":{color:"#1990b8"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"normal"},".language-css .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},".style .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:".7"},'pre[class*="language-"].line-numbers.line-numbers':{paddingLeft:"0"},'pre[class*="language-"].line-numbers.line-numbers code':{paddingLeft:"3.8em"},'pre[class*="language-"].line-numbers.line-numbers .line-numbers-rows':{left:"0"},'pre[class*="language-"][data-line]':{paddingTop:"0",paddingBottom:"0",paddingLeft:"0"},"pre[data-line] code":{position:"relative",paddingLeft:"4em"},"pre .line-highlight":{marginTop:"0"}}}(cT)),cT}var uT={},lH;function l9e(){return lH||(lH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"white",background:"none",textShadow:"0 -.1em .2em black",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",background:"hsl(30, 20%, 25%)",textShadow:"0 -.1em .2em black",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:".3em solid hsl(30, 20%, 40%)",borderRadius:".5em",boxShadow:"1px 1px .5em black inset"},':not(pre) > code[class*="language-"]':{background:"hsl(30, 20%, 25%)",padding:".15em .2em .05em",borderRadius:".3em",border:".13em solid hsl(30, 20%, 40%)",boxShadow:"1px 1px .3em -.1em black inset",whiteSpace:"normal"},comment:{color:"hsl(30, 20%, 50%)"},prolog:{color:"hsl(30, 20%, 50%)"},doctype:{color:"hsl(30, 20%, 50%)"},cdata:{color:"hsl(30, 20%, 50%)"},punctuation:{Opacity:".7"},namespace:{Opacity:".7"},property:{color:"hsl(350, 40%, 70%)"},tag:{color:"hsl(350, 40%, 70%)"},boolean:{color:"hsl(350, 40%, 70%)"},number:{color:"hsl(350, 40%, 70%)"},constant:{color:"hsl(350, 40%, 70%)"},symbol:{color:"hsl(350, 40%, 70%)"},selector:{color:"hsl(75, 70%, 60%)"},"attr-name":{color:"hsl(75, 70%, 60%)"},string:{color:"hsl(75, 70%, 60%)"},char:{color:"hsl(75, 70%, 60%)"},builtin:{color:"hsl(75, 70%, 60%)"},inserted:{color:"hsl(75, 70%, 60%)"},operator:{color:"hsl(40, 90%, 60%)"},entity:{color:"hsl(40, 90%, 60%)",cursor:"help"},url:{color:"hsl(40, 90%, 60%)"},".language-css .token.string":{color:"hsl(40, 90%, 60%)"},".style .token.string":{color:"hsl(40, 90%, 60%)"},variable:{color:"hsl(40, 90%, 60%)"},atrule:{color:"hsl(350, 40%, 70%)"},"attr-value":{color:"hsl(350, 40%, 70%)"},keyword:{color:"hsl(350, 40%, 70%)"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},deleted:{color:"red"}}}(uT)),uT}var dT={},cH;function c9e(){return cH||(cH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"black",color:"white",boxShadow:"-.3em 0 0 .3em black, .3em 0 0 .3em black"},'pre[class*="language-"]':{fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:".4em .8em",margin:".5em 0",overflow:"auto",background:`url('data:image/svg+xml;charset=utf-8,<svg%20version%3D"1.1"%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"100"%20height%3D"100"%20fill%3D"rgba(0%2C0%2C0%2C.2)">%0D%0A<polygon%20points%3D"0%2C50%2050%2C0%200%2C0"%20%2F>%0D%0A<polygon%20points%3D"0%2C100%2050%2C100%20100%2C50%20100%2C0"%20%2F>%0D%0A<%2Fsvg>')`,backgroundSize:"1em 1em"},':not(pre) > code[class*="language-"]':{padding:".2em",borderRadius:".3em",boxShadow:"none",whiteSpace:"normal"},comment:{color:"#aaa"},prolog:{color:"#aaa"},doctype:{color:"#aaa"},cdata:{color:"#aaa"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#0cf"},tag:{color:"#0cf"},boolean:{color:"#0cf"},number:{color:"#0cf"},constant:{color:"#0cf"},symbol:{color:"#0cf"},selector:{color:"yellow"},"attr-name":{color:"yellow"},string:{color:"yellow"},char:{color:"yellow"},builtin:{color:"yellow"},operator:{color:"yellowgreen"},entity:{color:"yellowgreen",cursor:"help"},url:{color:"yellowgreen"},".language-css .token.string":{color:"yellowgreen"},variable:{color:"yellowgreen"},inserted:{color:"yellowgreen"},atrule:{color:"deeppink"},"attr-value":{color:"deeppink"},keyword:{color:"deeppink"},regex:{color:"orange"},important:{color:"orange",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},deleted:{color:"red"},"pre.diff-highlight.diff-highlight > code .token.deleted:not(.prefix)":{backgroundColor:"rgba(255, 0, 0, .3)",display:"inline"},"pre > code.diff-highlight.diff-highlight .token.deleted:not(.prefix)":{backgroundColor:"rgba(255, 0, 0, .3)",display:"inline"},"pre.diff-highlight.diff-highlight > code .token.inserted:not(.prefix)":{backgroundColor:"rgba(0, 255, 128, .3)",display:"inline"},"pre > code.diff-highlight.diff-highlight .token.inserted:not(.prefix)":{backgroundColor:"rgba(0, 255, 128, .3)",display:"inline"}}}(dT)),dT}var fT={},uH;function u9e(){return uH||(uH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#272822",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#272822",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8292a2"},prolog:{color:"#8292a2"},doctype:{color:"#8292a2"},cdata:{color:"#8292a2"},punctuation:{color:"#f8f8f2"},namespace:{Opacity:".7"},property:{color:"#f92672"},tag:{color:"#f92672"},constant:{color:"#f92672"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},boolean:{color:"#ae81ff"},number:{color:"#ae81ff"},selector:{color:"#a6e22e"},"attr-name":{color:"#a6e22e"},string:{color:"#a6e22e"},char:{color:"#a6e22e"},builtin:{color:"#a6e22e"},inserted:{color:"#a6e22e"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#e6db74"},"attr-value":{color:"#e6db74"},function:{color:"#e6db74"},"class-name":{color:"#e6db74"},keyword:{color:"#66d9ef"},regex:{color:"#fd971f"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(fT)),fT}var pT={},dH;function d9e(){return dH||(dH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#657b83",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#657b83",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",backgroundColor:"#fdf6e3"},'pre[class*="language-"]::-moz-selection':{background:"#073642"},'pre[class*="language-"] ::-moz-selection':{background:"#073642"},'code[class*="language-"]::-moz-selection':{background:"#073642"},'code[class*="language-"] ::-moz-selection':{background:"#073642"},'pre[class*="language-"]::selection':{background:"#073642"},'pre[class*="language-"] ::selection':{background:"#073642"},'code[class*="language-"]::selection':{background:"#073642"},'code[class*="language-"] ::selection':{background:"#073642"},':not(pre) > code[class*="language-"]':{backgroundColor:"#fdf6e3",padding:".1em",borderRadius:".3em"},comment:{color:"#93a1a1"},prolog:{color:"#93a1a1"},doctype:{color:"#93a1a1"},cdata:{color:"#93a1a1"},punctuation:{color:"#586e75"},namespace:{Opacity:".7"},property:{color:"#268bd2"},tag:{color:"#268bd2"},boolean:{color:"#268bd2"},number:{color:"#268bd2"},constant:{color:"#268bd2"},symbol:{color:"#268bd2"},deleted:{color:"#268bd2"},selector:{color:"#2aa198"},"attr-name":{color:"#2aa198"},string:{color:"#2aa198"},char:{color:"#2aa198"},builtin:{color:"#2aa198"},url:{color:"#2aa198"},inserted:{color:"#2aa198"},entity:{color:"#657b83",background:"#eee8d5",cursor:"help"},atrule:{color:"#859900"},"attr-value":{color:"#859900"},keyword:{color:"#859900"},function:{color:"#b58900"},"class-name":{color:"#b58900"},regex:{color:"#cb4b16"},important:{color:"#cb4b16",fontWeight:"bold"},variable:{color:"#cb4b16"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(pT)),pT}var hT={},fH;function f9e(){return fH||(fH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#ccc",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#ccc",background:"#2d2d2d",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},':not(pre) > code[class*="language-"]':{background:"#2d2d2d",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#999"},"block-comment":{color:"#999"},prolog:{color:"#999"},doctype:{color:"#999"},cdata:{color:"#999"},punctuation:{color:"#ccc"},tag:{color:"#e2777a"},"attr-name":{color:"#e2777a"},namespace:{color:"#e2777a"},deleted:{color:"#e2777a"},"function-name":{color:"#6196cc"},boolean:{color:"#f08d49"},number:{color:"#f08d49"},function:{color:"#f08d49"},property:{color:"#f8c555"},"class-name":{color:"#f8c555"},constant:{color:"#f8c555"},symbol:{color:"#f8c555"},selector:{color:"#cc99cd"},important:{color:"#cc99cd",fontWeight:"bold"},atrule:{color:"#cc99cd"},keyword:{color:"#cc99cd"},builtin:{color:"#cc99cd"},string:{color:"#7ec699"},char:{color:"#7ec699"},"attr-value":{color:"#7ec699"},regex:{color:"#7ec699"},variable:{color:"#7ec699"},operator:{color:"#67cdcc"},entity:{color:"#67cdcc",cursor:"help"},url:{color:"#67cdcc"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{color:"green"}}}(hT)),hT}var gT={},pH;function p9e(){return pH||(pH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"white",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",textShadow:"0 -.1em .2em black",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",background:"hsl(0, 0%, 8%)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",textShadow:"0 -.1em .2em black",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",borderRadius:".5em",border:".3em solid hsl(0, 0%, 33%)",boxShadow:"1px 1px .5em black inset",margin:".5em 0",overflow:"auto",padding:"1em"},':not(pre) > code[class*="language-"]':{background:"hsl(0, 0%, 8%)",borderRadius:".3em",border:".13em solid hsl(0, 0%, 33%)",boxShadow:"1px 1px .3em -.1em black inset",padding:".15em .2em .05em",whiteSpace:"normal"},'pre[class*="language-"]::-moz-selection':{background:"hsla(0, 0%, 93%, 0.15)",textShadow:"none"},'pre[class*="language-"]::selection':{background:"hsla(0, 0%, 93%, 0.15)",textShadow:"none"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"]::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},comment:{color:"hsl(0, 0%, 47%)"},prolog:{color:"hsl(0, 0%, 47%)"},doctype:{color:"hsl(0, 0%, 47%)"},cdata:{color:"hsl(0, 0%, 47%)"},punctuation:{Opacity:".7"},namespace:{Opacity:".7"},tag:{color:"hsl(14, 58%, 55%)"},boolean:{color:"hsl(14, 58%, 55%)"},number:{color:"hsl(14, 58%, 55%)"},deleted:{color:"hsl(14, 58%, 55%)"},keyword:{color:"hsl(53, 89%, 79%)"},property:{color:"hsl(53, 89%, 79%)"},selector:{color:"hsl(53, 89%, 79%)"},constant:{color:"hsl(53, 89%, 79%)"},symbol:{color:"hsl(53, 89%, 79%)"},builtin:{color:"hsl(53, 89%, 79%)"},"attr-name":{color:"hsl(76, 21%, 52%)"},"attr-value":{color:"hsl(76, 21%, 52%)"},string:{color:"hsl(76, 21%, 52%)"},char:{color:"hsl(76, 21%, 52%)"},operator:{color:"hsl(76, 21%, 52%)"},entity:{color:"hsl(76, 21%, 52%)",cursor:"help"},url:{color:"hsl(76, 21%, 52%)"},".language-css .token.string":{color:"hsl(76, 21%, 52%)"},".style .token.string":{color:"hsl(76, 21%, 52%)"},variable:{color:"hsl(76, 21%, 52%)"},inserted:{color:"hsl(76, 21%, 52%)"},atrule:{color:"hsl(218, 22%, 55%)"},regex:{color:"hsl(42, 75%, 65%)"},important:{color:"hsl(42, 75%, 65%)",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},".language-markup .token.tag":{color:"hsl(33, 33%, 52%)"},".language-markup .token.attr-name":{color:"hsl(33, 33%, 52%)"},".language-markup .token.punctuation":{color:"hsl(33, 33%, 52%)"},"":{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0))",borderBottom:"1px dashed hsl(0, 0%, 33%)",borderTop:"1px dashed hsl(0, 0%, 33%)",marginTop:"0.75em",zIndex:"0"},".line-highlight.line-highlight:before":{backgroundColor:"hsl(215, 15%, 59%)",color:"hsl(24, 20%, 95%)"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"hsl(215, 15%, 59%)",color:"hsl(24, 20%, 95%)"}}}(gT)),gT}var mT={},hH;function h9e(){return hH||(hH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(mT)),mT}var bT={},gH;function g9e(){return gH||(gH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2b2b2b",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2b2b2b",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#d4d0ab"},prolog:{color:"#d4d0ab"},doctype:{color:"#d4d0ab"},cdata:{color:"#d4d0ab"},punctuation:{color:"#fefefe"},property:{color:"#ffa07a"},tag:{color:"#ffa07a"},constant:{color:"#ffa07a"},symbol:{color:"#ffa07a"},deleted:{color:"#ffa07a"},boolean:{color:"#00e0e0"},number:{color:"#00e0e0"},selector:{color:"#abe338"},"attr-name":{color:"#abe338"},string:{color:"#abe338"},char:{color:"#abe338"},builtin:{color:"#abe338"},inserted:{color:"#abe338"},operator:{color:"#00e0e0"},entity:{color:"#00e0e0",cursor:"help"},url:{color:"#00e0e0"},".language-css .token.string":{color:"#00e0e0"},".style .token.string":{color:"#00e0e0"},variable:{color:"#00e0e0"},atrule:{color:"#ffd700"},"attr-value":{color:"#ffd700"},function:{color:"#ffd700"},keyword:{color:"#00e0e0"},regex:{color:"#ffd700"},important:{color:"#ffd700",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(bT)),bT}var yT={},mH;function m9e(){return mH||(mH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",background:"#1d1f21"},':not(pre) > code[class*="language-"]':{background:"#1d1f21",padding:".1em",borderRadius:".3em"},comment:{color:"#7C7C7C"},prolog:{color:"#7C7C7C"},doctype:{color:"#7C7C7C"},cdata:{color:"#7C7C7C"},punctuation:{color:"#c5c8c6"},".namespace":{Opacity:".7"},property:{color:"#96CBFE"},keyword:{color:"#96CBFE"},tag:{color:"#96CBFE"},"class-name":{color:"#FFFFB6",textDecoration:"underline"},boolean:{color:"#99CC99"},constant:{color:"#99CC99"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},number:{color:"#FF73FD"},selector:{color:"#A8FF60"},"attr-name":{color:"#A8FF60"},string:{color:"#A8FF60"},char:{color:"#A8FF60"},builtin:{color:"#A8FF60"},inserted:{color:"#A8FF60"},variable:{color:"#C6C5FE"},operator:{color:"#EDEDED"},entity:{color:"#FFFFB6",cursor:"help"},url:{color:"#96CBFE"},".language-css .token.string":{color:"#87C38A"},".style .token.string":{color:"#87C38A"},atrule:{color:"#F9EE98"},"attr-value":{color:"#F9EE98"},function:{color:"#DAD085"},regex:{color:"#E9C062"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(yT)),yT}var vT={},bH;function b9e(){return bH||(bH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#f5f7ff",color:"#5e6687"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#f5f7ff",color:"#5e6687",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"]::selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#dfe2f1"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#898ea4"},prolog:{color:"#898ea4"},doctype:{color:"#898ea4"},cdata:{color:"#898ea4"},punctuation:{color:"#5e6687"},namespace:{Opacity:".7"},operator:{color:"#c76b29"},boolean:{color:"#c76b29"},number:{color:"#c76b29"},property:{color:"#c08b30"},tag:{color:"#3d8fd1"},string:{color:"#22a2c9"},selector:{color:"#6679cc"},"attr-name":{color:"#c76b29"},entity:{color:"#22a2c9",cursor:"help"},url:{color:"#22a2c9"},".language-css .token.string":{color:"#22a2c9"},".style .token.string":{color:"#22a2c9"},"attr-value":{color:"#ac9739"},keyword:{color:"#ac9739"},control:{color:"#ac9739"},directive:{color:"#ac9739"},unit:{color:"#ac9739"},statement:{color:"#22a2c9"},regex:{color:"#22a2c9"},atrule:{color:"#22a2c9"},placeholder:{color:"#3d8fd1"},variable:{color:"#3d8fd1"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #202746",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#c94922"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:"0.4em solid #c94922",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#dfe2f1"},".line-numbers .line-numbers-rows > span:before":{color:"#979db4"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(107, 115, 148, 0.2) 70%, rgba(107, 115, 148, 0))"}}}(vT)),vT}var xT={},yH;function y9e(){return yH||(yH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#fff",textShadow:"0 1px 1px #000",fontFamily:'Menlo, Monaco, "Courier New", monospace',direction:"ltr",textAlign:"left",wordSpacing:"normal",whiteSpace:"pre",wordWrap:"normal",lineHeight:"1.4",background:"none",border:"0",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#fff",textShadow:"0 1px 1px #000",fontFamily:'Menlo, Monaco, "Courier New", monospace',direction:"ltr",textAlign:"left",wordSpacing:"normal",whiteSpace:"pre",wordWrap:"normal",lineHeight:"1.4",background:"#222",border:"0",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"15px",margin:"1em 0",overflow:"auto",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},'pre[class*="language-"] code':{float:"left",padding:"0 15px 0 0"},':not(pre) > code[class*="language-"]':{background:"#222",padding:"5px 10px",lineHeight:"1",MozBorderRadius:"3px",WebkitBorderRadius:"3px",borderRadius:"3px"},comment:{color:"#797979"},prolog:{color:"#797979"},doctype:{color:"#797979"},cdata:{color:"#797979"},selector:{color:"#fff"},operator:{color:"#fff"},punctuation:{color:"#fff"},namespace:{Opacity:".7"},tag:{color:"#ffd893"},boolean:{color:"#ffd893"},atrule:{color:"#B0C975"},"attr-value":{color:"#B0C975"},hex:{color:"#B0C975"},string:{color:"#B0C975"},property:{color:"#c27628"},entity:{color:"#c27628",cursor:"help"},url:{color:"#c27628"},"attr-name":{color:"#c27628"},keyword:{color:"#c27628"},regex:{color:"#9B71C6"},function:{color:"#e5a638"},constant:{color:"#e5a638"},variable:{color:"#fdfba8"},number:{color:"#8799B0"},important:{color:"#E45734"},deliminator:{color:"#E45734"},".line-highlight.line-highlight":{background:"rgba(255, 255, 255, .2)"},".line-highlight.line-highlight:before":{top:".3em",backgroundColor:"rgba(255, 255, 255, .3)",color:"#fff",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},".line-highlight.line-highlight[data-end]:after":{top:".3em",backgroundColor:"rgba(255, 255, 255, .3)",color:"#fff",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},".line-numbers .line-numbers-rows > span":{borderRight:"3px #d9d336 solid"}}}(xT)),xT}var ST={},vH;function v9e(){return vH||(vH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#111b27",background:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#111b27",background:"#e3eaf2",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{background:"#8da1b9"},'pre[class*="language-"] ::-moz-selection':{background:"#8da1b9"},'code[class*="language-"]::-moz-selection':{background:"#8da1b9"},'code[class*="language-"] ::-moz-selection':{background:"#8da1b9"},'pre[class*="language-"]::selection':{background:"#8da1b9"},'pre[class*="language-"] ::selection':{background:"#8da1b9"},'code[class*="language-"]::selection':{background:"#8da1b9"},'code[class*="language-"] ::selection':{background:"#8da1b9"},':not(pre) > code[class*="language-"]':{background:"#e3eaf2",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#3c526d"},prolog:{color:"#3c526d"},doctype:{color:"#3c526d"},cdata:{color:"#3c526d"},punctuation:{color:"#111b27"},"delimiter.important":{color:"#006d6d",fontWeight:"inherit"},"selector.parent":{color:"#006d6d"},tag:{color:"#006d6d"},"tag.punctuation":{color:"#006d6d"},"attr-name":{color:"#755f00"},boolean:{color:"#755f00"},"boolean.important":{color:"#755f00"},number:{color:"#755f00"},constant:{color:"#755f00"},"selector.attribute":{color:"#755f00"},"class-name":{color:"#005a8e"},key:{color:"#005a8e"},parameter:{color:"#005a8e"},property:{color:"#005a8e"},"property-access":{color:"#005a8e"},variable:{color:"#005a8e"},"attr-value":{color:"#116b00"},inserted:{color:"#116b00"},color:{color:"#116b00"},"selector.value":{color:"#116b00"},string:{color:"#116b00"},"string.url-link":{color:"#116b00"},builtin:{color:"#af00af"},"keyword-array":{color:"#af00af"},package:{color:"#af00af"},regex:{color:"#af00af"},function:{color:"#7c00aa"},"selector.class":{color:"#7c00aa"},"selector.id":{color:"#7c00aa"},"atrule.rule":{color:"#a04900"},combinator:{color:"#a04900"},keyword:{color:"#a04900"},operator:{color:"#a04900"},"pseudo-class":{color:"#a04900"},"pseudo-element":{color:"#a04900"},selector:{color:"#a04900"},unit:{color:"#a04900"},deleted:{color:"#c22f2e"},important:{color:"#c22f2e",fontWeight:"bold"},"keyword-this":{color:"#005a8e",fontWeight:"bold"},this:{color:"#005a8e",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#005a8e",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#005a8e",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#af00af"},".language-markdown .token.code":{color:"#006d6d"},".language-markdown .token.hr.punctuation":{color:"#005a8e"},".language-markdown .token.url > .token.content":{color:"#116b00"},".language-markdown .token.url-link":{color:"#755f00"},".language-markdown .token.list.punctuation":{color:"#af00af"},".language-markdown .token.table-header":{color:"#111b27"},".language-json .token.operator":{color:"#111b27"},".language-scss .token.variable":{color:"#006d6d"},"token.tab:not(:empty):before":{color:"#3c526d"},"token.cr:before":{color:"#3c526d"},"token.lf:before":{color:"#3c526d"},"token.space:before":{color:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#e3eaf2",background:"#005a8e"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#e3eaf2",background:"#005a8e"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#e3eaf2",background:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#e3eaf2",background:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#e3eaf2",background:"#3c526d"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #8da1b92f 70%, #8da1b925)"},".line-highlight.line-highlight:before":{backgroundColor:"#3c526d",color:"#e3eaf2",boxShadow:"0 1px #8da1b9"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#3c526d",color:"#e3eaf2",boxShadow:"0 1px #8da1b9"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#3c526d1f"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #8da1b97a",background:"#d0dae77a"},".line-numbers .line-numbers-rows > span:before":{color:"#3c526dda"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#7c00aa"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#7c00aa"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#7c00aa"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#c22f2e1f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#c22f2e1f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#116b001f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#116b001f"},".command-line .command-line-prompt":{borderRight:"1px solid #8da1b97a"},".command-line .command-line-prompt > span:before":{color:"#3c526dda"}}}(ST)),ST}var wT={},xH;function x9e(){return xH||(xH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#e3eaf2",background:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#e3eaf2",background:"#111b27",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{background:"#3c526d"},'pre[class*="language-"] ::-moz-selection':{background:"#3c526d"},'code[class*="language-"]::-moz-selection':{background:"#3c526d"},'code[class*="language-"] ::-moz-selection':{background:"#3c526d"},'pre[class*="language-"]::selection':{background:"#3c526d"},'pre[class*="language-"] ::selection':{background:"#3c526d"},'code[class*="language-"]::selection':{background:"#3c526d"},'code[class*="language-"] ::selection':{background:"#3c526d"},':not(pre) > code[class*="language-"]':{background:"#111b27",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#8da1b9"},prolog:{color:"#8da1b9"},doctype:{color:"#8da1b9"},cdata:{color:"#8da1b9"},punctuation:{color:"#e3eaf2"},"delimiter.important":{color:"#66cccc",fontWeight:"inherit"},"selector.parent":{color:"#66cccc"},tag:{color:"#66cccc"},"tag.punctuation":{color:"#66cccc"},"attr-name":{color:"#e6d37a"},boolean:{color:"#e6d37a"},"boolean.important":{color:"#e6d37a"},number:{color:"#e6d37a"},constant:{color:"#e6d37a"},"selector.attribute":{color:"#e6d37a"},"class-name":{color:"#6cb8e6"},key:{color:"#6cb8e6"},parameter:{color:"#6cb8e6"},property:{color:"#6cb8e6"},"property-access":{color:"#6cb8e6"},variable:{color:"#6cb8e6"},"attr-value":{color:"#91d076"},inserted:{color:"#91d076"},color:{color:"#91d076"},"selector.value":{color:"#91d076"},string:{color:"#91d076"},"string.url-link":{color:"#91d076"},builtin:{color:"#f4adf4"},"keyword-array":{color:"#f4adf4"},package:{color:"#f4adf4"},regex:{color:"#f4adf4"},function:{color:"#c699e3"},"selector.class":{color:"#c699e3"},"selector.id":{color:"#c699e3"},"atrule.rule":{color:"#e9ae7e"},combinator:{color:"#e9ae7e"},keyword:{color:"#e9ae7e"},operator:{color:"#e9ae7e"},"pseudo-class":{color:"#e9ae7e"},"pseudo-element":{color:"#e9ae7e"},selector:{color:"#e9ae7e"},unit:{color:"#e9ae7e"},deleted:{color:"#cd6660"},important:{color:"#cd6660",fontWeight:"bold"},"keyword-this":{color:"#6cb8e6",fontWeight:"bold"},this:{color:"#6cb8e6",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#f4adf4"},".language-markdown .token.code":{color:"#66cccc"},".language-markdown .token.hr.punctuation":{color:"#6cb8e6"},".language-markdown .token.url .token.content":{color:"#91d076"},".language-markdown .token.url-link":{color:"#e6d37a"},".language-markdown .token.list.punctuation":{color:"#f4adf4"},".language-markdown .token.table-header":{color:"#e3eaf2"},".language-json .token.operator":{color:"#e3eaf2"},".language-scss .token.variable":{color:"#66cccc"},"token.tab:not(:empty):before":{color:"#8da1b9"},"token.cr:before":{color:"#8da1b9"},"token.lf:before":{color:"#8da1b9"},"token.space:before":{color:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#111b27",background:"#8da1b9"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #3c526d5f 70%, #3c526d55)"},".line-highlight.line-highlight:before":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#8da1b918"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #0b121b",background:"#0b121b7a"},".line-numbers .line-numbers-rows > span:before":{color:"#8da1b9da"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#c699e3"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},".command-line .command-line-prompt":{borderRight:"1px solid #0b121b"},".command-line .command-line-prompt > span:before":{color:"#8da1b9da"}}}(wT)),wT}var ET={},SH;function S9e(){return SH||(SH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",position:"relative",borderLeft:"10px solid #358ccb",boxShadow:"-1px 0 0 0 #358ccb, 0 0 0 1px #dfdfdf",backgroundColor:"#fdfdfd",backgroundImage:"linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%)",backgroundSize:"3em 3em",backgroundOrigin:"content-box",backgroundAttachment:"local",margin:".5em 0",padding:"0 1em"},'pre[class*="language-"] > code':{display:"block"},':not(pre) > code[class*="language-"]':{position:"relative",padding:".2em",borderRadius:"0.3em",color:"#c92c2c",border:"1px solid rgba(0, 0, 0, 0.1)",display:"inline",whiteSpace:"normal",backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box"},comment:{color:"#7D8B99"},"block-comment":{color:"#7D8B99"},prolog:{color:"#7D8B99"},doctype:{color:"#7D8B99"},cdata:{color:"#7D8B99"},punctuation:{color:"#5F6364"},property:{color:"#c92c2c"},tag:{color:"#c92c2c"},boolean:{color:"#c92c2c"},number:{color:"#c92c2c"},"function-name":{color:"#c92c2c"},constant:{color:"#c92c2c"},symbol:{color:"#c92c2c"},deleted:{color:"#c92c2c"},selector:{color:"#2f9c0a"},"attr-name":{color:"#2f9c0a"},string:{color:"#2f9c0a"},char:{color:"#2f9c0a"},function:{color:"#2f9c0a"},builtin:{color:"#2f9c0a"},inserted:{color:"#2f9c0a"},operator:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},entity:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)",cursor:"help"},url:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},variable:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},atrule:{color:"#1990b8"},"attr-value":{color:"#1990b8"},keyword:{color:"#1990b8"},"class-name":{color:"#1990b8"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"normal"},".language-css .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},".style .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:".7"}}}(ET)),ET}var kT={},wH;function w9e(){return wH||(wH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#a9b7c6",fontFamily:"Consolas, Monaco, 'Andale Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#a9b7c6",fontFamily:"Consolas, Monaco, 'Andale Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#2b2b2b"},'pre[class*="language-"]::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"] ::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"]::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"] ::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"]::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"] ::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"]::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"] ::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},':not(pre) > code[class*="language-"]':{background:"#2b2b2b",padding:".1em",borderRadius:".3em"},comment:{color:"#808080"},prolog:{color:"#808080"},cdata:{color:"#808080"},delimiter:{color:"#cc7832"},boolean:{color:"#cc7832"},keyword:{color:"#cc7832"},selector:{color:"#cc7832"},important:{color:"#cc7832"},atrule:{color:"#cc7832"},operator:{color:"#a9b7c6"},punctuation:{color:"#a9b7c6"},"attr-name":{color:"#a9b7c6"},tag:{color:"#e8bf6a"},"tag.punctuation":{color:"#e8bf6a"},doctype:{color:"#e8bf6a"},builtin:{color:"#e8bf6a"},entity:{color:"#6897bb"},number:{color:"#6897bb"},symbol:{color:"#6897bb"},property:{color:"#9876aa"},constant:{color:"#9876aa"},variable:{color:"#9876aa"},string:{color:"#6a8759"},char:{color:"#6a8759"},"attr-value":{color:"#a5c261"},"attr-value.punctuation":{color:"#a5c261"},"attr-value.punctuation:first-child":{color:"#a9b7c6"},url:{color:"#287bde",textDecoration:"underline"},function:{color:"#ffc66d"},regex:{background:"#364135"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#294436"},deleted:{background:"#484a4a"},"code.language-css .token.property":{color:"#a9b7c6"},"code.language-css .token.property + .token.punctuation":{color:"#a9b7c6"},"code.language-css .token.id":{color:"#ffc66d"},"code.language-css .token.selector > .token.class":{color:"#ffc66d"},"code.language-css .token.selector > .token.attribute":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-class":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-element":{color:"#ffc66d"}}}(kT)),kT}var _T={},EH;function E9e(){return EH||(EH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#282a36",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#282a36",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#6272a4"},prolog:{color:"#6272a4"},doctype:{color:"#6272a4"},cdata:{color:"#6272a4"},punctuation:{color:"#f8f8f2"},".namespace":{Opacity:".7"},property:{color:"#ff79c6"},tag:{color:"#ff79c6"},constant:{color:"#ff79c6"},symbol:{color:"#ff79c6"},deleted:{color:"#ff79c6"},boolean:{color:"#bd93f9"},number:{color:"#bd93f9"},selector:{color:"#50fa7b"},"attr-name":{color:"#50fa7b"},string:{color:"#50fa7b"},char:{color:"#50fa7b"},builtin:{color:"#50fa7b"},inserted:{color:"#50fa7b"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#f1fa8c"},"attr-value":{color:"#f1fa8c"},function:{color:"#f1fa8c"},"class-name":{color:"#f1fa8c"},keyword:{color:"#8be9fd"},regex:{color:"#ffb86c"},important:{color:"#ffb86c",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(_T)),_T}var CT={},kH;function k9e(){return kH||(kH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2734",color:"#9a86fd"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2734",color:"#9a86fd",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"]::selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#6a51e6"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#6c6783"},prolog:{color:"#6c6783"},doctype:{color:"#6c6783"},cdata:{color:"#6c6783"},punctuation:{color:"#6c6783"},namespace:{Opacity:".7"},tag:{color:"#e09142"},operator:{color:"#e09142"},number:{color:"#e09142"},property:{color:"#9a86fd"},function:{color:"#9a86fd"},"tag-id":{color:"#eeebff"},selector:{color:"#eeebff"},"atrule-id":{color:"#eeebff"},"code.language-javascript":{color:"#c4b9fe"},"attr-name":{color:"#c4b9fe"},"code.language-css":{color:"#ffcc99"},"code.language-scss":{color:"#ffcc99"},boolean:{color:"#ffcc99"},string:{color:"#ffcc99"},entity:{color:"#ffcc99",cursor:"help"},url:{color:"#ffcc99"},".language-css .token.string":{color:"#ffcc99"},".language-scss .token.string":{color:"#ffcc99"},".style .token.string":{color:"#ffcc99"},"attr-value":{color:"#ffcc99"},keyword:{color:"#ffcc99"},control:{color:"#ffcc99"},directive:{color:"#ffcc99"},unit:{color:"#ffcc99"},statement:{color:"#ffcc99"},regex:{color:"#ffcc99"},atrule:{color:"#ffcc99"},placeholder:{color:"#ffcc99"},variable:{color:"#ffcc99"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #eeebff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#c4b9fe"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #8a75f5",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#2c2937"},".line-numbers .line-numbers-rows > span:before":{color:"#3c3949"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(224, 145, 66, 0.2) 70%, rgba(224, 145, 66, 0))"}}}(CT)),CT}var TT={},_H;function _9e(){return _H||(_H=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#322d29",color:"#88786d"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#322d29",color:"#88786d",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"]::selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#6f5849"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#6a5f58"},prolog:{color:"#6a5f58"},doctype:{color:"#6a5f58"},cdata:{color:"#6a5f58"},punctuation:{color:"#6a5f58"},namespace:{Opacity:".7"},tag:{color:"#bfa05a"},operator:{color:"#bfa05a"},number:{color:"#bfa05a"},property:{color:"#88786d"},function:{color:"#88786d"},"tag-id":{color:"#fff3eb"},selector:{color:"#fff3eb"},"atrule-id":{color:"#fff3eb"},"code.language-javascript":{color:"#a48774"},"attr-name":{color:"#a48774"},"code.language-css":{color:"#fcc440"},"code.language-scss":{color:"#fcc440"},boolean:{color:"#fcc440"},string:{color:"#fcc440"},entity:{color:"#fcc440",cursor:"help"},url:{color:"#fcc440"},".language-css .token.string":{color:"#fcc440"},".language-scss .token.string":{color:"#fcc440"},".style .token.string":{color:"#fcc440"},"attr-value":{color:"#fcc440"},keyword:{color:"#fcc440"},control:{color:"#fcc440"},directive:{color:"#fcc440"},unit:{color:"#fcc440"},statement:{color:"#fcc440"},regex:{color:"#fcc440"},atrule:{color:"#fcc440"},placeholder:{color:"#fcc440"},variable:{color:"#fcc440"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #fff3eb",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#a48774"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #816d5f",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#35302b"},".line-numbers .line-numbers-rows > span:before":{color:"#46403d"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(191, 160, 90, 0.2) 70%, rgba(191, 160, 90, 0))"}}}(TT)),TT}var AT={},CH;function C9e(){return CH||(CH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2d2a",color:"#687d68"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2d2a",color:"#687d68",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#435643"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#435643"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#435643"},'code[class*="language-"]::selection':{textShadow:"none",background:"#435643"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#435643"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#535f53"},prolog:{color:"#535f53"},doctype:{color:"#535f53"},cdata:{color:"#535f53"},punctuation:{color:"#535f53"},namespace:{Opacity:".7"},tag:{color:"#a2b34d"},operator:{color:"#a2b34d"},number:{color:"#a2b34d"},property:{color:"#687d68"},function:{color:"#687d68"},"tag-id":{color:"#f0fff0"},selector:{color:"#f0fff0"},"atrule-id":{color:"#f0fff0"},"code.language-javascript":{color:"#b3d6b3"},"attr-name":{color:"#b3d6b3"},"code.language-css":{color:"#e5fb79"},"code.language-scss":{color:"#e5fb79"},boolean:{color:"#e5fb79"},string:{color:"#e5fb79"},entity:{color:"#e5fb79",cursor:"help"},url:{color:"#e5fb79"},".language-css .token.string":{color:"#e5fb79"},".language-scss .token.string":{color:"#e5fb79"},".style .token.string":{color:"#e5fb79"},"attr-value":{color:"#e5fb79"},keyword:{color:"#e5fb79"},control:{color:"#e5fb79"},directive:{color:"#e5fb79"},unit:{color:"#e5fb79"},statement:{color:"#e5fb79"},regex:{color:"#e5fb79"},atrule:{color:"#e5fb79"},placeholder:{color:"#e5fb79"},variable:{color:"#e5fb79"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #f0fff0",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#b3d6b3"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #5c705c",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#2c302c"},".line-numbers .line-numbers-rows > span:before":{color:"#3b423b"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(162, 179, 77, 0.2) 70%, rgba(162, 179, 77, 0))"}}}(AT)),AT}var RT={},TH;function T9e(){return TH||(TH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#b6ad9a"},prolog:{color:"#b6ad9a"},doctype:{color:"#b6ad9a"},cdata:{color:"#b6ad9a"},punctuation:{color:"#b6ad9a"},namespace:{Opacity:".7"},tag:{color:"#063289"},operator:{color:"#063289"},number:{color:"#063289"},property:{color:"#b29762"},function:{color:"#b29762"},"tag-id":{color:"#2d2006"},selector:{color:"#2d2006"},"atrule-id":{color:"#2d2006"},"code.language-javascript":{color:"#896724"},"attr-name":{color:"#896724"},"code.language-css":{color:"#728fcb"},"code.language-scss":{color:"#728fcb"},boolean:{color:"#728fcb"},string:{color:"#728fcb"},entity:{color:"#728fcb",cursor:"help"},url:{color:"#728fcb"},".language-css .token.string":{color:"#728fcb"},".language-scss .token.string":{color:"#728fcb"},".style .token.string":{color:"#728fcb"},"attr-value":{color:"#728fcb"},keyword:{color:"#728fcb"},control:{color:"#728fcb"},directive:{color:"#728fcb"},unit:{color:"#728fcb"},statement:{color:"#728fcb"},regex:{color:"#728fcb"},atrule:{color:"#728fcb"},placeholder:{color:"#93abdc"},variable:{color:"#93abdc"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #2d2006",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#896724"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #896724",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#ece8de"},".line-numbers .line-numbers-rows > span:before":{color:"#cdc4b1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(45, 32, 6, 0.2) 70%, rgba(45, 32, 6, 0))"}}}(RT)),RT}var NT={},AH;function A9e(){return AH||(AH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#1d262f",color:"#57718e"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#1d262f",color:"#57718e",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"]::selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#004a9e"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#4a5f78"},prolog:{color:"#4a5f78"},doctype:{color:"#4a5f78"},cdata:{color:"#4a5f78"},punctuation:{color:"#4a5f78"},namespace:{Opacity:".7"},tag:{color:"#0aa370"},operator:{color:"#0aa370"},number:{color:"#0aa370"},property:{color:"#57718e"},function:{color:"#57718e"},"tag-id":{color:"#ebf4ff"},selector:{color:"#ebf4ff"},"atrule-id":{color:"#ebf4ff"},"code.language-javascript":{color:"#7eb6f6"},"attr-name":{color:"#7eb6f6"},"code.language-css":{color:"#47ebb4"},"code.language-scss":{color:"#47ebb4"},boolean:{color:"#47ebb4"},string:{color:"#47ebb4"},entity:{color:"#47ebb4",cursor:"help"},url:{color:"#47ebb4"},".language-css .token.string":{color:"#47ebb4"},".language-scss .token.string":{color:"#47ebb4"},".style .token.string":{color:"#47ebb4"},"attr-value":{color:"#47ebb4"},keyword:{color:"#47ebb4"},control:{color:"#47ebb4"},directive:{color:"#47ebb4"},unit:{color:"#47ebb4"},statement:{color:"#47ebb4"},regex:{color:"#47ebb4"},atrule:{color:"#47ebb4"},placeholder:{color:"#47ebb4"},variable:{color:"#47ebb4"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #ebf4ff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#7eb6f6"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #34659d",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#1f2932"},".line-numbers .line-numbers-rows > span:before":{color:"#2c3847"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(10, 163, 112, 0.2) 70%, rgba(10, 163, 112, 0))"}}}(NT)),NT}var LT={},RH;function R9e(){return RH||(RH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#24242e",color:"#767693"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#24242e",color:"#767693",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"]::selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#5151e6"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#5b5b76"},prolog:{color:"#5b5b76"},doctype:{color:"#5b5b76"},cdata:{color:"#5b5b76"},punctuation:{color:"#5b5b76"},namespace:{Opacity:".7"},tag:{color:"#dd672c"},operator:{color:"#dd672c"},number:{color:"#dd672c"},property:{color:"#767693"},function:{color:"#767693"},"tag-id":{color:"#ebebff"},selector:{color:"#ebebff"},"atrule-id":{color:"#ebebff"},"code.language-javascript":{color:"#aaaaca"},"attr-name":{color:"#aaaaca"},"code.language-css":{color:"#fe8c52"},"code.language-scss":{color:"#fe8c52"},boolean:{color:"#fe8c52"},string:{color:"#fe8c52"},entity:{color:"#fe8c52",cursor:"help"},url:{color:"#fe8c52"},".language-css .token.string":{color:"#fe8c52"},".language-scss .token.string":{color:"#fe8c52"},".style .token.string":{color:"#fe8c52"},"attr-value":{color:"#fe8c52"},keyword:{color:"#fe8c52"},control:{color:"#fe8c52"},directive:{color:"#fe8c52"},unit:{color:"#fe8c52"},statement:{color:"#fe8c52"},regex:{color:"#fe8c52"},atrule:{color:"#fe8c52"},placeholder:{color:"#fe8c52"},variable:{color:"#fe8c52"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #ebebff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#aaaaca"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #7676f4",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#262631"},".line-numbers .line-numbers-rows > span:before":{color:"#393949"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(221, 103, 44, 0.2) 70%, rgba(221, 103, 44, 0))"}}}(LT)),LT}var OT={},NH;function N9e(){return NH||(NH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:"1px solid #dddddd",backgroundColor:"white"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{background:"#b3d4fc"},'pre[class*="language-"]::selection':{background:"#b3d4fc"},'pre[class*="language-"] ::selection':{background:"#b3d4fc"},'code[class*="language-"]::selection':{background:"#b3d4fc"},'code[class*="language-"] ::selection':{background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{padding:".2em",paddingTop:"1px",paddingBottom:"1px",background:"#f8f8f8",border:"1px solid #dddddd"},comment:{color:"#999988",fontStyle:"italic"},prolog:{color:"#999988",fontStyle:"italic"},doctype:{color:"#999988",fontStyle:"italic"},cdata:{color:"#999988",fontStyle:"italic"},namespace:{Opacity:".7"},string:{color:"#e3116c"},"attr-value":{color:"#e3116c"},punctuation:{color:"#393A34"},operator:{color:"#393A34"},entity:{color:"#36acaa"},url:{color:"#36acaa"},symbol:{color:"#36acaa"},number:{color:"#36acaa"},boolean:{color:"#36acaa"},variable:{color:"#36acaa"},constant:{color:"#36acaa"},property:{color:"#36acaa"},regex:{color:"#36acaa"},inserted:{color:"#36acaa"},atrule:{color:"#00a4db"},keyword:{color:"#00a4db"},"attr-name":{color:"#00a4db"},".language-autohotkey .token.selector":{color:"#00a4db"},function:{color:"#9a050f",fontWeight:"bold"},deleted:{color:"#9a050f"},".language-autohotkey .token.tag":{color:"#9a050f"},tag:{color:"#00009f"},selector:{color:"#00009f"},".language-autohotkey .token.keyword":{color:"#00009f"},important:{fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(OT)),OT}var DT={},LH;function L9e(){return LH||(LH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#ebdbb2",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#ebdbb2",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#1d2021"},'pre[class*="language-"]::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"] ::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"]::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"] ::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"]::selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"] ::selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"]::selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"] ::selection':{color:"#fbf1c7",background:"#7c6f64"},':not(pre) > code[class*="language-"]':{background:"#1d2021",padding:"0.1em",borderRadius:"0.3em"},comment:{color:"#a89984"},prolog:{color:"#a89984"},cdata:{color:"#a89984"},delimiter:{color:"#fb4934"},boolean:{color:"#fb4934"},keyword:{color:"#fb4934"},selector:{color:"#fb4934"},important:{color:"#fb4934"},atrule:{color:"#fb4934"},operator:{color:"#a89984"},punctuation:{color:"#a89984"},"attr-name":{color:"#a89984"},tag:{color:"#fabd2f"},"tag.punctuation":{color:"#fabd2f"},doctype:{color:"#fabd2f"},builtin:{color:"#fabd2f"},entity:{color:"#d3869b"},number:{color:"#d3869b"},symbol:{color:"#d3869b"},property:{color:"#fb4934"},constant:{color:"#fb4934"},variable:{color:"#fb4934"},string:{color:"#b8bb26"},char:{color:"#b8bb26"},"attr-value":{color:"#a89984"},"attr-value.punctuation":{color:"#a89984"},url:{color:"#b8bb26",textDecoration:"underline"},function:{color:"#fabd2f"},regex:{background:"#b8bb26"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#a89984"},deleted:{background:"#fb4934"}}}(DT)),DT}var IT={},OH;function O9e(){return OH||(OH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#3c3836",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#3c3836",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#f9f5d7"},'pre[class*="language-"]::-moz-selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"] ::-moz-selection':{color:"#282828",background:"#a89984"},'code[class*="language-"]::-moz-selection':{color:"#282828",background:"#a89984"},'code[class*="language-"] ::-moz-selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"]::selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"] ::selection':{color:"#282828",background:"#a89984"},'code[class*="language-"]::selection':{color:"#282828",background:"#a89984"},'code[class*="language-"] ::selection':{color:"#282828",background:"#a89984"},':not(pre) > code[class*="language-"]':{background:"#f9f5d7",padding:"0.1em",borderRadius:"0.3em"},comment:{color:"#7c6f64"},prolog:{color:"#7c6f64"},cdata:{color:"#7c6f64"},delimiter:{color:"#9d0006"},boolean:{color:"#9d0006"},keyword:{color:"#9d0006"},selector:{color:"#9d0006"},important:{color:"#9d0006"},atrule:{color:"#9d0006"},operator:{color:"#7c6f64"},punctuation:{color:"#7c6f64"},"attr-name":{color:"#7c6f64"},tag:{color:"#b57614"},"tag.punctuation":{color:"#b57614"},doctype:{color:"#b57614"},builtin:{color:"#b57614"},entity:{color:"#8f3f71"},number:{color:"#8f3f71"},symbol:{color:"#8f3f71"},property:{color:"#9d0006"},constant:{color:"#9d0006"},variable:{color:"#9d0006"},string:{color:"#797403"},char:{color:"#797403"},"attr-value":{color:"#7c6f64"},"attr-value.punctuation":{color:"#7c6f64"},url:{color:"#797403",textDecoration:"underline"},function:{color:"#b57614"},regex:{background:"#797403"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#7c6f64"},deleted:{background:"#9d0006"}}}(IT)),IT}var MT={},DH;function D9e(){return DH||(DH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={"code[class*='language-']":{color:"#d6e7ff",background:"#030314",textShadow:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',fontSize:"1em",lineHeight:"1.5",letterSpacing:".2px",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",textAlign:"left",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},"pre[class*='language-']":{color:"#d6e7ff",background:"#030314",textShadow:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',fontSize:"1em",lineHeight:"1.5",letterSpacing:".2px",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",textAlign:"left",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",border:"1px solid #2a4555",borderRadius:"5px",padding:"1.5em 1em",margin:"1em 0",overflow:"auto"},"pre[class*='language-']::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-'] ::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-']::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-'] ::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-']::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-'] ::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-']::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-'] ::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},":not(pre) > code[class*='language-']":{color:"#f0f6f6",background:"#2a4555",padding:"0.2em 0.3em",borderRadius:"0.2em",boxDecorationBreak:"clone"},comment:{color:"#446e69"},prolog:{color:"#446e69"},doctype:{color:"#446e69"},cdata:{color:"#446e69"},punctuation:{color:"#d6b007"},property:{color:"#d6e7ff"},tag:{color:"#d6e7ff"},boolean:{color:"#d6e7ff"},number:{color:"#d6e7ff"},constant:{color:"#d6e7ff"},symbol:{color:"#d6e7ff"},deleted:{color:"#d6e7ff"},selector:{color:"#e60067"},"attr-name":{color:"#e60067"},builtin:{color:"#e60067"},inserted:{color:"#e60067"},string:{color:"#49c6ec"},char:{color:"#49c6ec"},operator:{color:"#ec8e01",background:"transparent"},entity:{color:"#ec8e01",background:"transparent"},url:{color:"#ec8e01",background:"transparent"},".language-css .token.string":{color:"#ec8e01",background:"transparent"},".style .token.string":{color:"#ec8e01",background:"transparent"},atrule:{color:"#0fe468"},"attr-value":{color:"#0fe468"},keyword:{color:"#0fe468"},function:{color:"#78f3e9"},"class-name":{color:"#78f3e9"},regex:{color:"#d6e7ff"},important:{color:"#d6e7ff"},variable:{color:"#d6e7ff"}}}(MT)),MT}var FT={},IH;function I9e(){return IH||(IH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'"Fira Mono", Menlo, Monaco, "Lucida Console", "Courier New", Courier, monospace',fontSize:"16px",lineHeight:"1.375",direction:"ltr",textAlign:"left",wordSpacing:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",background:"#322931",color:"#b9b5b8"},'pre[class*="language-"]':{fontFamily:'"Fira Mono", Menlo, Monaco, "Lucida Console", "Courier New", Courier, monospace',fontSize:"16px",lineHeight:"1.375",direction:"ltr",textAlign:"left",wordSpacing:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",background:"#322931",color:"#b9b5b8",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#797379"},prolog:{color:"#797379"},doctype:{color:"#797379"},cdata:{color:"#797379"},punctuation:{color:"#b9b5b8"},".namespace":{Opacity:".7"},null:{color:"#fd8b19"},operator:{color:"#fd8b19"},boolean:{color:"#fd8b19"},number:{color:"#fd8b19"},property:{color:"#fdcc59"},tag:{color:"#1290bf"},string:{color:"#149b93"},selector:{color:"#c85e7c"},"attr-name":{color:"#fd8b19"},entity:{color:"#149b93",cursor:"help"},url:{color:"#149b93"},".language-css .token.string":{color:"#149b93"},".style .token.string":{color:"#149b93"},"attr-value":{color:"#8fc13e"},keyword:{color:"#8fc13e"},control:{color:"#8fc13e"},directive:{color:"#8fc13e"},unit:{color:"#8fc13e"},statement:{color:"#149b93"},regex:{color:"#149b93"},atrule:{color:"#149b93"},placeholder:{color:"#1290bf"},variable:{color:"#1290bf"},important:{color:"#dd464c",fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid red",OutlineOffset:".4em"}}}(FT)),FT}var PT={},MH;function M9e(){return MH||(MH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#263E52",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#263E52",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#5c98cd"},prolog:{color:"#5c98cd"},doctype:{color:"#5c98cd"},cdata:{color:"#5c98cd"},punctuation:{color:"#f8f8f2"},".namespace":{Opacity:".7"},property:{color:"#F05E5D"},tag:{color:"#F05E5D"},constant:{color:"#F05E5D"},symbol:{color:"#F05E5D"},deleted:{color:"#F05E5D"},boolean:{color:"#BC94F9"},number:{color:"#BC94F9"},selector:{color:"#FCFCD6"},"attr-name":{color:"#FCFCD6"},string:{color:"#FCFCD6"},char:{color:"#FCFCD6"},builtin:{color:"#FCFCD6"},inserted:{color:"#FCFCD6"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#66D8EF"},"attr-value":{color:"#66D8EF"},function:{color:"#66D8EF"},"class-name":{color:"#66D8EF"},keyword:{color:"#6EB26E"},regex:{color:"#F05E5D"},important:{color:"#F05E5D",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(PT)),PT}var BT={},FH;function F9e(){return FH||(FH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#eee",background:"#2f2f2f",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#eee",background:"#2f2f2f",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#363636"},'pre[class*="language-"]::-moz-selection':{background:"#363636"},'code[class*="language-"] ::-moz-selection':{background:"#363636"},'pre[class*="language-"] ::-moz-selection':{background:"#363636"},'code[class*="language-"]::selection':{background:"#363636"},'pre[class*="language-"]::selection':{background:"#363636"},'code[class*="language-"] ::selection':{background:"#363636"},'pre[class*="language-"] ::selection':{background:"#363636"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#fd9170"},".language-sass > code":{color:"#fd9170"},".language-scss > code":{color:"#fd9170"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#c792ea"},"attr-name":{color:"#ffcb6b"},"attr-value":{color:"#a5e844"},attribute:{color:"#a5e844"},boolean:{color:"#c792ea"},builtin:{color:"#ffcb6b"},cdata:{color:"#80cbc4"},char:{color:"#80cbc4"},class:{color:"#ffcb6b"},"class-name":{color:"#f2ff00"},comment:{color:"#616161"},constant:{color:"#c792ea"},deleted:{color:"#ff6666"},doctype:{color:"#616161"},entity:{color:"#ff6666"},function:{color:"#c792ea"},hexcode:{color:"#f2ff00"},id:{color:"#c792ea",fontWeight:"bold"},important:{color:"#c792ea",fontWeight:"bold"},inserted:{color:"#80cbc4"},keyword:{color:"#c792ea"},number:{color:"#fd9170"},operator:{color:"#89ddff"},prolog:{color:"#616161"},property:{color:"#80cbc4"},"pseudo-class":{color:"#a5e844"},"pseudo-element":{color:"#a5e844"},punctuation:{color:"#89ddff"},regex:{color:"#f2ff00"},selector:{color:"#ff6666"},string:{color:"#a5e844"},symbol:{color:"#c792ea"},tag:{color:"#ff6666"},unit:{color:"#fd9170"},url:{color:"#ff6666"},variable:{color:"#ff6666"}}}(BT)),BT}var zT={},PH;function P9e(){return PH||(PH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#f76d47"},".language-sass > code":{color:"#f76d47"},".language-scss > code":{color:"#f76d47"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#7c4dff"},"attr-name":{color:"#39adb5"},"attr-value":{color:"#f6a434"},attribute:{color:"#f6a434"},boolean:{color:"#7c4dff"},builtin:{color:"#39adb5"},cdata:{color:"#39adb5"},char:{color:"#39adb5"},class:{color:"#39adb5"},"class-name":{color:"#6182b8"},comment:{color:"#aabfc9"},constant:{color:"#7c4dff"},deleted:{color:"#e53935"},doctype:{color:"#aabfc9"},entity:{color:"#e53935"},function:{color:"#7c4dff"},hexcode:{color:"#f76d47"},id:{color:"#7c4dff",fontWeight:"bold"},important:{color:"#7c4dff",fontWeight:"bold"},inserted:{color:"#39adb5"},keyword:{color:"#7c4dff"},number:{color:"#f76d47"},operator:{color:"#39adb5"},prolog:{color:"#aabfc9"},property:{color:"#39adb5"},"pseudo-class":{color:"#f6a434"},"pseudo-element":{color:"#f6a434"},punctuation:{color:"#39adb5"},regex:{color:"#6182b8"},selector:{color:"#e53935"},string:{color:"#f6a434"},symbol:{color:"#7c4dff"},tag:{color:"#e53935"},unit:{color:"#f76d47"},url:{color:"#e53935"},variable:{color:"#e53935"}}}(zT)),zT}var $T={},BH;function B9e(){return BH||(BH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#c3cee3",background:"#263238",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#c3cee3",background:"#263238",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#363636"},'pre[class*="language-"]::-moz-selection':{background:"#363636"},'code[class*="language-"] ::-moz-selection':{background:"#363636"},'pre[class*="language-"] ::-moz-selection':{background:"#363636"},'code[class*="language-"]::selection':{background:"#363636"},'pre[class*="language-"]::selection':{background:"#363636"},'code[class*="language-"] ::selection':{background:"#363636"},'pre[class*="language-"] ::selection':{background:"#363636"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#fd9170"},".language-sass > code":{color:"#fd9170"},".language-scss > code":{color:"#fd9170"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#c792ea"},"attr-name":{color:"#ffcb6b"},"attr-value":{color:"#c3e88d"},attribute:{color:"#c3e88d"},boolean:{color:"#c792ea"},builtin:{color:"#ffcb6b"},cdata:{color:"#80cbc4"},char:{color:"#80cbc4"},class:{color:"#ffcb6b"},"class-name":{color:"#f2ff00"},color:{color:"#f2ff00"},comment:{color:"#546e7a"},constant:{color:"#c792ea"},deleted:{color:"#f07178"},doctype:{color:"#546e7a"},entity:{color:"#f07178"},function:{color:"#c792ea"},hexcode:{color:"#f2ff00"},id:{color:"#c792ea",fontWeight:"bold"},important:{color:"#c792ea",fontWeight:"bold"},inserted:{color:"#80cbc4"},keyword:{color:"#c792ea",fontStyle:"italic"},number:{color:"#fd9170"},operator:{color:"#89ddff"},prolog:{color:"#546e7a"},property:{color:"#80cbc4"},"pseudo-class":{color:"#c3e88d"},"pseudo-element":{color:"#c3e88d"},punctuation:{color:"#89ddff"},regex:{color:"#f2ff00"},selector:{color:"#f07178"},string:{color:"#c3e88d"},symbol:{color:"#c792ea"},tag:{color:"#f07178"},unit:{color:"#f07178"},url:{color:"#fd9170"},variable:{color:"#f07178"}}}($T)),$T}var jT={},zH;function z9e(){return zH||(zH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#d6deeb",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#011627"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},':not(pre) > code[class*="language-"]':{color:"white",background:"#011627",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"rgb(99, 119, 119)",fontStyle:"italic"},prolog:{color:"rgb(99, 119, 119)",fontStyle:"italic"},cdata:{color:"rgb(99, 119, 119)",fontStyle:"italic"},punctuation:{color:"rgb(199, 146, 234)"},".namespace":{color:"rgb(178, 204, 214)"},deleted:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"},symbol:{color:"rgb(128, 203, 196)"},property:{color:"rgb(128, 203, 196)"},tag:{color:"rgb(127, 219, 202)"},operator:{color:"rgb(127, 219, 202)"},keyword:{color:"rgb(127, 219, 202)"},boolean:{color:"rgb(255, 88, 116)"},number:{color:"rgb(247, 140, 108)"},constant:{color:"rgb(130, 170, 255)"},function:{color:"rgb(130, 170, 255)"},builtin:{color:"rgb(130, 170, 255)"},char:{color:"rgb(130, 170, 255)"},selector:{color:"rgb(199, 146, 234)",fontStyle:"italic"},doctype:{color:"rgb(199, 146, 234)",fontStyle:"italic"},"attr-name":{color:"rgb(173, 219, 103)",fontStyle:"italic"},inserted:{color:"rgb(173, 219, 103)",fontStyle:"italic"},string:{color:"rgb(173, 219, 103)"},url:{color:"rgb(173, 219, 103)"},entity:{color:"rgb(173, 219, 103)"},".language-css .token.string":{color:"rgb(173, 219, 103)"},".style .token.string":{color:"rgb(173, 219, 103)"},"class-name":{color:"rgb(255, 203, 139)"},atrule:{color:"rgb(255, 203, 139)"},"attr-value":{color:"rgb(255, 203, 139)"},regex:{color:"rgb(214, 222, 235)"},important:{color:"rgb(214, 222, 235)",fontWeight:"bold"},variable:{color:"rgb(214, 222, 235)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(jT)),jT}var UT={},$H;function $9e(){return $H||($H=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2E3440",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2E3440",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#636f88"},prolog:{color:"#636f88"},doctype:{color:"#636f88"},cdata:{color:"#636f88"},punctuation:{color:"#81A1C1"},".namespace":{Opacity:".7"},property:{color:"#81A1C1"},tag:{color:"#81A1C1"},constant:{color:"#81A1C1"},symbol:{color:"#81A1C1"},deleted:{color:"#81A1C1"},number:{color:"#B48EAD"},boolean:{color:"#81A1C1"},selector:{color:"#A3BE8C"},"attr-name":{color:"#A3BE8C"},string:{color:"#A3BE8C"},char:{color:"#A3BE8C"},builtin:{color:"#A3BE8C"},inserted:{color:"#A3BE8C"},operator:{color:"#81A1C1"},entity:{color:"#81A1C1",cursor:"help"},url:{color:"#81A1C1"},".language-css .token.string":{color:"#81A1C1"},".style .token.string":{color:"#81A1C1"},variable:{color:"#81A1C1"},atrule:{color:"#88C0D0"},"attr-value":{color:"#88C0D0"},function:{color:"#88C0D0"},"class-name":{color:"#88C0D0"},keyword:{color:"#81A1C1"},regex:{color:"#EBCB8B"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(UT)),UT}var HT={},jH;function j9e(){return jH||(jH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}}}(HT)),HT}var GT={},UH;function U9e(){return UH||(UH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}}}(GT)),GT}var qT={},HH;function H9e(){return HH||(HH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"15px",lineHeight:"1.5",color:"#dccf8f",textShadow:"0"},'pre[class*="language-"]':{MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"15px",lineHeight:"1.5",color:"#DCCF8F",textShadow:"0",borderRadius:"5px",border:"1px solid #000",background:"#181914 url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAMAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQACQYGBgcGCQcHCQ0IBwgNDwsJCQsPEQ4ODw4OERENDg4ODg0RERQUFhQUERoaHBwaGiYmJiYmKysrKysrKysrKwEJCAgJCgkMCgoMDwwODA8TDg4ODhMVDg4PDg4VGhMRERERExoXGhYWFhoXHR0aGh0dJCQjJCQrKysrKysrKysr/8AAEQgAjACMAwEiAAIRAQMRAf/EAF4AAQEBAAAAAAAAAAAAAAAAAAABBwEBAQAAAAAAAAAAAAAAAAAAAAIQAAEDAwIHAQEAAAAAAAAAAADwAREhYaExkUFRcYGxwdHh8REBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AyGFEjHaBS2fDDs2zkhKmBKktb7km+ZwwCnXPkLVmCTMItj6AXFxRS465/BTnkAJvkLkJe+7AKKoi2AtRS2zuAWsCb5GOlBN8gKfmuGHZ8MFqIth3ALmFoFwbwKWyAlTAp17uKqBvgBD8sM4fTjhvAhkzhaRkBMKBrfs7jGPIpzy7gFrAqnC0C0gB0EWwBDW2cBVQwm+QtPpa3wBO3sVvszCnLAhkzgL5/RLf13cLQd8/AGlu0Cb5HTx9KuAEieGJEdcehS3eRTp2ATdt3CpIm+QtZwAhROXFeb7swp/ahaM3kBE/jSIUBc/AWrgBN8uNFAl+b7sAXFxFn2YLUU5Ns7gFX8C4ib+hN8gFWXwK3bZglxEJm+gKdciLPsFV/TClsgJUwKJ5FVA7tvIFrfZhVfGJDcsCKaYgAqv6YRbE+RWOWBtu7+AL3yRalXLyKqAIIfk+zARbDgFyEsncYwJvlgFRW+GEWntIi2P0BooyFxcNr8Ep3+ANLbMO+QyhvbiqdgC0kVvgUUiLYgBS2QtPbiVI1/sgOmG9uO+Y8DW+7jS2zAOnj6O2BndwuIAUtkdRN8gFoK3wwXMQyZwHVbClsuNLd4E3yAUR6FVDBR+BafQGt93LVMxJTv8ABts4CVLhcfYWsCb5kC9/BHdU8CLYFY5bMAd+eX9MGthhpbA1vu4B7+RKkaW2Yq4AQtVBBFsAJU/AuIXBhN8gGWnstefhiZyWvLAEnbYS1uzSFP6Jvn4Baxx70JKkQojLib5AVTey1jjgkKJGO0AKWyOm7N7cSpgSpAdPH0Tfd/gp1z5C1ZgKqN9J2wFxcUUuAFLZAm+QC0Fb4YUVRFsAOvj4KW2dwtYE3yAWk/wS/PLMKfmuGHZ8MAXF/Ja32Yi5haAKWz4Ydm2cSpgU693Atb7km+Zwwh+WGcPpxw3gAkzCLY+iYUDW/Z3Adc/gpzyFrAqnALkJe+7DoItgAtRS2zuKqGE3yAx0oJvkdvYrfZmALURbDuL5/RLf13cAuDeBS2RpbtAm+QFVA3wR+3fUtFHoBDJnC0jIXH0HWsgMY8inPLuOkd9chp4z20ALQLSA8cI9jYAIa2zjzjBd8gRafS1vgiUho/kAKcsCGTOGWvoOpkAtB3z8Hm8x2Ff5ADp4+lXAlIvcmwH/2Q==') repeat left top",padding:"12px",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{borderRadius:"5px",border:"1px solid #000",color:"#DCCF8F",background:"#181914 url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAMAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQACQYGBgcGCQcHCQ0IBwgNDwsJCQsPEQ4ODw4OERENDg4ODg0RERQUFhQUERoaHBwaGiYmJiYmKysrKysrKysrKwEJCAgJCgkMCgoMDwwODA8TDg4ODhMVDg4PDg4VGhMRERERExoXGhYWFhoXHR0aGh0dJCQjJCQrKysrKysrKysr/8AAEQgAjACMAwEiAAIRAQMRAf/EAF4AAQEBAAAAAAAAAAAAAAAAAAABBwEBAQAAAAAAAAAAAAAAAAAAAAIQAAEDAwIHAQEAAAAAAAAAAADwAREhYaExkUFRcYGxwdHh8REBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AyGFEjHaBS2fDDs2zkhKmBKktb7km+ZwwCnXPkLVmCTMItj6AXFxRS465/BTnkAJvkLkJe+7AKKoi2AtRS2zuAWsCb5GOlBN8gKfmuGHZ8MFqIth3ALmFoFwbwKWyAlTAp17uKqBvgBD8sM4fTjhvAhkzhaRkBMKBrfs7jGPIpzy7gFrAqnC0C0gB0EWwBDW2cBVQwm+QtPpa3wBO3sVvszCnLAhkzgL5/RLf13cLQd8/AGlu0Cb5HTx9KuAEieGJEdcehS3eRTp2ATdt3CpIm+QtZwAhROXFeb7swp/ahaM3kBE/jSIUBc/AWrgBN8uNFAl+b7sAXFxFn2YLUU5Ns7gFX8C4ib+hN8gFWXwK3bZglxEJm+gKdciLPsFV/TClsgJUwKJ5FVA7tvIFrfZhVfGJDcsCKaYgAqv6YRbE+RWOWBtu7+AL3yRalXLyKqAIIfk+zARbDgFyEsncYwJvlgFRW+GEWntIi2P0BooyFxcNr8Ep3+ANLbMO+QyhvbiqdgC0kVvgUUiLYgBS2QtPbiVI1/sgOmG9uO+Y8DW+7jS2zAOnj6O2BndwuIAUtkdRN8gFoK3wwXMQyZwHVbClsuNLd4E3yAUR6FVDBR+BafQGt93LVMxJTv8ABts4CVLhcfYWsCb5kC9/BHdU8CLYFY5bMAd+eX9MGthhpbA1vu4B7+RKkaW2Yq4AQtVBBFsAJU/AuIXBhN8gGWnstefhiZyWvLAEnbYS1uzSFP6Jvn4Baxx70JKkQojLib5AVTey1jjgkKJGO0AKWyOm7N7cSpgSpAdPH0Tfd/gp1z5C1ZgKqN9J2wFxcUUuAFLZAm+QC0Fb4YUVRFsAOvj4KW2dwtYE3yAWk/wS/PLMKfmuGHZ8MAXF/Ja32Yi5haAKWz4Ydm2cSpgU693Atb7km+Zwwh+WGcPpxw3gAkzCLY+iYUDW/Z3Adc/gpzyFrAqnALkJe+7DoItgAtRS2zuKqGE3yAx0oJvkdvYrfZmALURbDuL5/RLf13cAuDeBS2RpbtAm+QFVA3wR+3fUtFHoBDJnC0jIXH0HWsgMY8inPLuOkd9chp4z20ALQLSA8cI9jYAIa2zjzjBd8gRafS1vgiUho/kAKcsCGTOGWvoOpkAtB3z8Hm8x2Ff5ADp4+lXAlIvcmwH/2Q==') repeat left top",padding:"2px 6px"},namespace:{Opacity:".7"},comment:{color:"#586e75",fontStyle:"italic"},prolog:{color:"#586e75",fontStyle:"italic"},doctype:{color:"#586e75",fontStyle:"italic"},cdata:{color:"#586e75",fontStyle:"italic"},number:{color:"#b89859"},string:{color:"#468966"},char:{color:"#468966"},builtin:{color:"#468966"},inserted:{color:"#468966"},"attr-name":{color:"#b89859"},operator:{color:"#dccf8f"},entity:{color:"#dccf8f",cursor:"help"},url:{color:"#dccf8f"},".language-css .token.string":{color:"#dccf8f"},".style .token.string":{color:"#dccf8f"},selector:{color:"#859900"},regex:{color:"#859900"},atrule:{color:"#cb4b16"},keyword:{color:"#cb4b16"},"attr-value":{color:"#468966"},function:{color:"#b58900"},variable:{color:"#b58900"},placeholder:{color:"#b58900"},property:{color:"#b89859"},tag:{color:"#ffb03b"},boolean:{color:"#b89859"},constant:{color:"#b89859"},symbol:{color:"#b89859"},important:{color:"#dc322f"},statement:{color:"#dc322f"},deleted:{color:"#dc322f"},punctuation:{color:"#dccf8f"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(qT)),qT}var WT={},GH;function G9e(){return GH||(GH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={"code[class*='language-']":{color:"#9efeff",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",fontFamily:"'Operator Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontWeight:"400",fontSize:"17px",lineHeight:"25px",letterSpacing:"0.5px",textShadow:"0 1px #222245"},"pre[class*='language-']":{color:"#9efeff",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",fontFamily:"'Operator Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontWeight:"400",fontSize:"17px",lineHeight:"25px",letterSpacing:"0.5px",textShadow:"0 1px #222245",padding:"2em",margin:"0.5em 0",overflow:"auto",background:"#1e1e3f"},"pre[class*='language-']::-moz-selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-'] ::-moz-selection":{color:"inherit",background:"#a599e9"},"code[class*='language-']::-moz-selection":{color:"inherit",background:"#a599e9"},"code[class*='language-'] ::-moz-selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-']::selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-'] ::selection":{color:"inherit",background:"#a599e9"},"code[class*='language-']::selection":{color:"inherit",background:"#a599e9"},"code[class*='language-'] ::selection":{color:"inherit",background:"#a599e9"},":not(pre) > code[class*='language-']":{background:"#1e1e3f",padding:"0.1em",borderRadius:"0.3em"},"":{fontWeight:"400"},comment:{color:"#b362ff"},prolog:{color:"#b362ff"},cdata:{color:"#b362ff"},delimiter:{color:"#ff9d00"},keyword:{color:"#ff9d00"},selector:{color:"#ff9d00"},important:{color:"#ff9d00"},atrule:{color:"#ff9d00"},operator:{color:"rgb(255, 180, 84)",background:"none"},"attr-name":{color:"rgb(255, 180, 84)"},punctuation:{color:"#ffffff"},boolean:{color:"rgb(255, 98, 140)"},tag:{color:"rgb(255, 157, 0)"},"tag.punctuation":{color:"rgb(255, 157, 0)"},doctype:{color:"rgb(255, 157, 0)"},builtin:{color:"rgb(255, 157, 0)"},entity:{color:"#6897bb",background:"none"},symbol:{color:"#6897bb"},number:{color:"#ff628c"},property:{color:"#ff628c"},constant:{color:"#ff628c"},variable:{color:"#ff628c"},string:{color:"#a5ff90"},char:{color:"#a5ff90"},"attr-value":{color:"#a5c261"},"attr-value.punctuation":{color:"#a5c261"},"attr-value.punctuation:first-child":{color:"#a9b7c6"},url:{color:"#287bde",textDecoration:"underline",background:"none"},function:{color:"rgb(250, 208, 0)"},regex:{background:"#364135"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#00ff00"},deleted:{background:"#ff000d"},"code.language-css .token.property":{color:"#a9b7c6"},"code.language-css .token.property + .token.punctuation":{color:"#a9b7c6"},"code.language-css .token.id":{color:"#ffc66d"},"code.language-css .token.selector > .token.class":{color:"#ffc66d"},"code.language-css .token.selector > .token.attribute":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-class":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-element":{color:"#ffc66d"},"class-name":{color:"#fb94ff"},".language-css .token.string":{background:"none"},".style .token.string":{background:"none"},".line-highlight.line-highlight":{marginTop:"36px",background:"linear-gradient(to right, rgba(179, 98, 255, 0.17), transparent)"},".line-highlight.line-highlight:before":{content:"''"},".line-highlight.line-highlight[data-end]:after":{content:"''"}}}(WT)),WT}var VT={},qH;function q9e(){return qH||(qH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#839496",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#839496",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",background:"#002b36"},':not(pre) > code[class*="language-"]':{background:"#002b36",padding:".1em",borderRadius:".3em"},comment:{color:"#586e75"},prolog:{color:"#586e75"},doctype:{color:"#586e75"},cdata:{color:"#586e75"},punctuation:{color:"#93a1a1"},".namespace":{Opacity:".7"},property:{color:"#268bd2"},keyword:{color:"#268bd2"},tag:{color:"#268bd2"},"class-name":{color:"#FFFFB6",textDecoration:"underline"},boolean:{color:"#b58900"},constant:{color:"#b58900"},symbol:{color:"#dc322f"},deleted:{color:"#dc322f"},number:{color:"#859900"},selector:{color:"#859900"},"attr-name":{color:"#859900"},string:{color:"#859900"},char:{color:"#859900"},builtin:{color:"#859900"},inserted:{color:"#859900"},variable:{color:"#268bd2"},operator:{color:"#EDEDED"},function:{color:"#268bd2"},regex:{color:"#E9C062"},important:{color:"#fd971f",fontWeight:"bold"},entity:{color:"#FFFFB6",cursor:"help"},url:{color:"#96CBFE"},".language-css .token.string":{color:"#87C38A"},".style .token.string":{color:"#87C38A"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},atrule:{color:"#F9EE98"},"attr-value":{color:"#F9EE98"}}}(VT)),VT}var YT={},WH;function W9e(){return WH||(WH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",backgroundColor:"transparent !important",backgroundImage:"linear-gradient(to bottom, #2a2139 75%, #34294f)"},':not(pre) > code[class*="language-"]':{backgroundColor:"transparent !important",backgroundImage:"linear-gradient(to bottom, #2a2139 75%, #34294f)",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8e8e8e"},"block-comment":{color:"#8e8e8e"},prolog:{color:"#8e8e8e"},doctype:{color:"#8e8e8e"},cdata:{color:"#8e8e8e"},punctuation:{color:"#ccc"},tag:{color:"#e2777a"},"attr-name":{color:"#e2777a"},namespace:{color:"#e2777a"},number:{color:"#e2777a"},unit:{color:"#e2777a"},hexcode:{color:"#e2777a"},deleted:{color:"#e2777a"},property:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"},selector:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"},"function-name":{color:"#6196cc"},boolean:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},"selector.id":{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},function:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},"class-name":{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"},constant:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},symbol:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},important:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575",fontWeight:"bold"},atrule:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},keyword:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},"selector.class":{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},builtin:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},string:{color:"#f87c32"},char:{color:"#f87c32"},"attr-value":{color:"#f87c32"},regex:{color:"#f87c32"},variable:{color:"#f87c32"},operator:{color:"#67cdcc"},entity:{color:"#67cdcc",cursor:"help"},url:{color:"#67cdcc"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{color:"green"}}}(YT)),YT}var KT={},VH;function V9e(){return VH||(VH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:"1px solid #dddddd",backgroundColor:"white"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{background:"#C1DEF1"},'pre[class*="language-"] ::-moz-selection':{background:"#C1DEF1"},'code[class*="language-"]::-moz-selection':{background:"#C1DEF1"},'code[class*="language-"] ::-moz-selection':{background:"#C1DEF1"},'pre[class*="language-"]::selection':{background:"#C1DEF1"},'pre[class*="language-"] ::selection':{background:"#C1DEF1"},'code[class*="language-"]::selection':{background:"#C1DEF1"},'code[class*="language-"] ::selection':{background:"#C1DEF1"},':not(pre) > code[class*="language-"]':{padding:".2em",paddingTop:"1px",paddingBottom:"1px",background:"#f8f8f8",border:"1px solid #dddddd"},comment:{color:"#008000",fontStyle:"italic"},prolog:{color:"#008000",fontStyle:"italic"},doctype:{color:"#008000",fontStyle:"italic"},cdata:{color:"#008000",fontStyle:"italic"},namespace:{Opacity:".7"},string:{color:"#A31515"},punctuation:{color:"#393A34"},operator:{color:"#393A34"},url:{color:"#36acaa"},symbol:{color:"#36acaa"},number:{color:"#36acaa"},boolean:{color:"#36acaa"},variable:{color:"#36acaa"},constant:{color:"#36acaa"},inserted:{color:"#36acaa"},atrule:{color:"#0000ff"},keyword:{color:"#0000ff"},"attr-value":{color:"#0000ff"},".language-autohotkey .token.selector":{color:"#0000ff"},".language-json .token.boolean":{color:"#0000ff"},".language-json .token.number":{color:"#0000ff"},'code[class*="language-css"]':{color:"#0000ff"},function:{color:"#393A34"},deleted:{color:"#9a050f"},".language-autohotkey .token.tag":{color:"#9a050f"},selector:{color:"#800000"},".language-autohotkey .token.keyword":{color:"#00009f"},important:{color:"#e90",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},"class-name":{color:"#2B91AF"},".language-json .token.property":{color:"#2B91AF"},tag:{color:"#800000"},"attr-name":{color:"#ff0000"},property:{color:"#ff0000"},regex:{color:"#ff0000"},entity:{color:"#ff0000"},"directive.tag.tag":{background:"#ffff00",color:"#393A34"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#a5a5a5"},".line-numbers .line-numbers-rows > span:before":{color:"#2B91AF"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0))"}}}(KT)),KT}var XT={},YH;function Y9e(){return YH||(YH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}}(XT)),XT}var ZT={},KH;function K9e(){return KH||(KH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordWrap:"normal",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"14px",color:"#76d9e6",textShadow:"none"},'pre[class*="language-"]':{MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordWrap:"normal",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"14px",color:"#76d9e6",textShadow:"none",background:"#2a2a2a",padding:"15px",borderRadius:"4px",border:"1px solid #e1e1e8",overflow:"auto",position:"relative"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{background:"#2a2a2a",padding:"0.15em 0.2em 0.05em",borderRadius:".3em",border:"0.13em solid #7a6652",boxShadow:"1px 1px 0.3em -0.1em #000 inset"},'pre[class*="language-"] code':{whiteSpace:"pre",display:"block"},namespace:{Opacity:".7"},comment:{color:"#6f705e"},prolog:{color:"#6f705e"},doctype:{color:"#6f705e"},cdata:{color:"#6f705e"},operator:{color:"#a77afe"},boolean:{color:"#a77afe"},number:{color:"#a77afe"},"attr-name":{color:"#e6d06c"},string:{color:"#e6d06c"},entity:{color:"#e6d06c",cursor:"help"},url:{color:"#e6d06c"},".language-css .token.string":{color:"#e6d06c"},".style .token.string":{color:"#e6d06c"},selector:{color:"#a6e22d"},inserted:{color:"#a6e22d"},atrule:{color:"#ef3b7d"},"attr-value":{color:"#ef3b7d"},keyword:{color:"#ef3b7d"},important:{color:"#ef3b7d",fontWeight:"bold"},deleted:{color:"#ef3b7d"},regex:{color:"#76d9e6"},statement:{color:"#76d9e6",fontWeight:"bold"},placeholder:{color:"#fff"},variable:{color:"#fff"},bold:{fontWeight:"bold"},punctuation:{color:"#bebec5"},italic:{fontStyle:"italic"},"code.language-markup":{color:"#f9f9f9"},"code.language-markup .token.tag":{color:"#ef3b7d"},"code.language-markup .token.attr-name":{color:"#a6e22d"},"code.language-markup .token.attr-value":{color:"#e6d06c"},"code.language-markup .token.style":{color:"#76d9e6"},"code.language-markup .token.script":{color:"#76d9e6"},"code.language-markup .token.script .token.keyword":{color:"#76d9e6"},".line-highlight.line-highlight":{padding:"0",background:"rgba(255, 255, 255, 0.08)"},".line-highlight.line-highlight:before":{padding:"0.2em 0.5em",backgroundColor:"rgba(255, 255, 255, 0.4)",color:"black",height:"1em",lineHeight:"1em",boxShadow:"0 1px 1px rgba(255, 255, 255, 0.7)"},".line-highlight.line-highlight[data-end]:after":{padding:"0.2em 0.5em",backgroundColor:"rgba(255, 255, 255, 0.4)",color:"black",height:"1em",lineHeight:"1em",boxShadow:"0 1px 1px rgba(255, 255, 255, 0.7)"}}}(ZT)),ZT}var QT={},XH;function X9e(){return XH||(XH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#22da17",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",lineHeight:"25px",fontSize:"18px",margin:"5px 0"},'pre[class*="language-"]':{color:"white",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",lineHeight:"25px",fontSize:"18px",margin:"0.5em 0",background:"#0a143c",padding:"1em",overflow:"auto"},'pre[class*="language-"] *':{fontFamily:"monospace"},':not(pre) > code[class*="language-"]':{color:"white",background:"#0a143c",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},comment:{color:"rgb(99, 119, 119)",fontStyle:"italic"},prolog:{color:"rgb(99, 119, 119)",fontStyle:"italic"},cdata:{color:"rgb(99, 119, 119)",fontStyle:"italic"},punctuation:{color:"rgb(199, 146, 234)"},".namespace":{color:"rgb(178, 204, 214)"},deleted:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"},symbol:{color:"rgb(128, 203, 196)"},property:{color:"rgb(128, 203, 196)"},tag:{color:"rgb(127, 219, 202)"},operator:{color:"rgb(127, 219, 202)"},keyword:{color:"rgb(127, 219, 202)"},boolean:{color:"rgb(255, 88, 116)"},number:{color:"rgb(247, 140, 108)"},constant:{color:"rgb(34 183 199)"},function:{color:"rgb(34 183 199)"},builtin:{color:"rgb(34 183 199)"},char:{color:"rgb(34 183 199)"},selector:{color:"rgb(199, 146, 234)",fontStyle:"italic"},doctype:{color:"rgb(199, 146, 234)",fontStyle:"italic"},"attr-name":{color:"rgb(173, 219, 103)",fontStyle:"italic"},inserted:{color:"rgb(173, 219, 103)",fontStyle:"italic"},string:{color:"rgb(173, 219, 103)"},url:{color:"rgb(173, 219, 103)"},entity:{color:"rgb(173, 219, 103)"},".language-css .token.string":{color:"rgb(173, 219, 103)"},".style .token.string":{color:"rgb(173, 219, 103)"},"class-name":{color:"rgb(255, 203, 139)"},atrule:{color:"rgb(255, 203, 139)"},"attr-value":{color:"rgb(255, 203, 139)"},regex:{color:"rgb(214, 222, 235)"},important:{color:"rgb(214, 222, 235)",fontWeight:"bold"},variable:{color:"rgb(214, 222, 235)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(QT)),QT}var ZH;function Z9e(){return ZH||(ZH=1,function(e){var t=o9e();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"a11yDark",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"atomDark",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"base16AteliersulphurpoolLight",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"cb",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"coldarkCold",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"coldarkDark",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"coy",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"coyWithoutShadows",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"darcula",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"dark",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"dracula",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"duotoneDark",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"duotoneEarth",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"duotoneForest",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"duotoneLight",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"duotoneSea",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"duotoneSpace",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"funky",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"ghcolors",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"gruvboxDark",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"gruvboxLight",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"holiTheme",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"hopscotch",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"lucario",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"materialDark",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"materialLight",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"materialOceanic",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"nightOwl",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"nord",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(e,"okaidia",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"oneDark",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"oneLight",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"pojoaque",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"prism",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"shadesOfPurple",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"solarizedDarkAtom",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(e,"solarizedlight",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"synthwave84",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"tomorrow",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"twilight",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"vs",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"vscDarkPlus",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"xonokai",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(e,"zTouch",{enumerable:!0,get:function(){return Te.default}});var n=t(s9e()),r=t(l9e()),a=t(c9e()),i=t(u9e()),o=t(d9e()),s=t(f9e()),l=t(p9e()),c=t(h9e()),d=t(g9e()),p=t(m9e()),h=t(b9e()),g=t(y9e()),b=t(v9e()),y=t(x9e()),x=t(S9e()),w=t(w9e()),S=t(E9e()),_=t(k9e()),N=t(_9e()),R=t(C9e()),C=t(T9e()),A=t(A9e()),I=t(R9e()),D=t(N9e()),O=t(L9e()),P=t(O9e()),G=t(D9e()),j=t(I9e()),W=t(M9e()),V=t(F9e()),B=t(P9e()),U=t(B9e()),M=t(z9e()),K=t($9e()),F=t(j9e()),Y=t(U9e()),H=t(H9e()),$=t(G9e()),Z=t(q9e()),Q=t(W9e()),ie=t(V9e()),te=t(Y9e()),ce=t(K9e()),Te=t(X9e())}(sT)),sT}var QH=Z9e();const Q9e=({message:e})=>{const{t}=Ht();e.content=e.content.replace(/\* {3}/g,"").replace(/ {4}\*\*/g,"**");const n=T.useCallback(async()=>{if(e.content)try{await navigator.clipboard.writeText(e.content)}catch(r){console.error(t("chat.copyError"),r)}},[e,t]);return k.jsxs("div",{className:`max-w-[80%] rounded-lg px-4 py-2 ${e.role==="user"?"bg-primary text-primary-foreground":e.isError?"bg-red-100 text-red-600 dark:bg-red-950 dark:text-red-400":"bg-muted"}`,children:[k.jsxs("pre",{className:"relative break-words whitespace-pre-wrap",children:[k.jsx(f_e,{className:"dark:prose-invert max-w-none text-base text-sm",remarkPlugins:[kTe,FTe],rehypePlugins:[_Te],skipHtml:!1,components:{code:eqe},children:e.content}),e.role==="assistant"&&e.content&&e.content.length>0&&k.jsxs(xt,{onClick:n,className:"absolute right-0 bottom-0 size-6 rounded-md opacity-20 transition-opacity hover:opacity-100",tooltip:t("retrievePanel.chatMessage.copyTooltip"),variant:"default",size:"icon",children:[k.jsx(zfe,{className:"size-4"})," "]})]}),e.content===""&&k.jsx(npe,{className:"animate-spin duration-2000"})," "]})},J9e=e=>{if(!e||!e.children)return!1;const t=e.children.filter(n=>n.type==="text").map(n=>n.value).join("");return!t.includes(`
`)||t.length<40},eqe=({className:e,children:t,node:n,...r})=>{const{theme:a}=GW(),i=e==null?void 0:e.match(/language-(\w+)/),o=i?i[1]:void 0,s=J9e(n),l=T.useRef(null),c=T.useRef(null);return T.useEffect(()=>{if(c.current&&clearTimeout(c.current),o==="mermaid"&&l.current){const d=l.current;c.current=setTimeout(()=>{if(d)try{b5.initialize({startOnLoad:!1,theme:a==="dark"?"dark":"default",securityLevel:"loose"}),d.innerHTML='<div class="flex justify-center items-center p-4"><svg class="animate-spin h-5 w-5 text-primary" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><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"></path></svg></div>';const p=String(t).replace(/\n$/,"").trim();if(!(p.length>10&&(p.startsWith("graph")||p.startsWith("sequenceDiagram")||p.startsWith("classDiagram")||p.startsWith("stateDiagram")||p.startsWith("gantt")||p.startsWith("pie")||p.startsWith("flowchart")||p.startsWith("erDiagram")))){console.log("Mermaid content might be incomplete, skipping render attempt:",p);return}const g=p.split(`
`).map(y=>{const x=y.trim();if(x.startsWith("subgraph")){const w=x.split(" ");if(w.length>1)return`subgraph "${w.slice(1).join(" ").replace(/["']/g,"")}"`}return x}).filter(y=>!y.trim().startsWith("linkStyle")).join(`
`),b=`mermaid-${Date.now()}`;b5.render(b,g).then(({svg:y,bindFunctions:x})=>{if(l.current===d){if(d.innerHTML=y,x)try{x(d)}catch(w){console.error("Mermaid bindFunctions error:",w),d.innerHTML+='<p class="text-orange-500 text-xs">Diagram interactions might be limited.</p>'}}else console.log("Mermaid container changed before rendering completed.")}).catch(y=>{if(console.error("Mermaid rendering promise error (debounced):",y),console.error("Failed content (debounced):",g),l.current===d){const x=y instanceof Error?y.message:String(y),w=document.createElement("pre");w.className="text-red-500 text-xs whitespace-pre-wrap break-words",w.textContent=`Mermaid diagram error: ${x}
Content:
${g}`,d.innerHTML="",d.appendChild(w)}})}catch(p){if(console.error("Mermaid synchronous error (debounced):",p),console.error("Failed content (debounced):",String(t)),l.current===d){const h=p instanceof Error?p.message:String(p),g=document.createElement("pre");g.className="text-red-500 text-xs whitespace-pre-wrap break-words",g.textContent=`Mermaid diagram setup error: ${h}`,d.innerHTML="",d.appendChild(g)}}},300)}return()=>{c.current&&clearTimeout(c.current)}},[o,t,a]),o==="mermaid"?k.jsx("div",{className:"mermaid-diagram-container my-4 overflow-x-auto",ref:l}):s?k.jsx("code",{className:je(e,"mx-1 rounded-sm bg-muted px-1 py-0.5 text-sm"),...r,children:t}):k.jsx(kte,{style:a==="dark"?QH.oneDark:QH.oneLight,PreTag:"div",language:o,...r,children:String(t).replace(/\n$/,"")})};function tqe(){const{t:e}=Ht(),[t,n]=T.useState(()=>Pe.getState().retrievalHistory||[]),[r,a]=T.useState(""),[i,o]=T.useState(!1),s=T.useRef(null),l=T.useCallback(()=>{var h;(h=s.current)==null||h.scrollIntoView({behavior:"smooth"})},[]),c=T.useCallback(async h=>{if(h.preventDefault(),!r.trim()||i)return;const g={content:r,role:"user"},b={content:"",role:"assistant"},y=[...t];n([...y,g,b]),a(""),o(!0);const x=(_,N)=>{b.content+=_,n(R=>{const C=[...R],A=C[C.length-1];return A.role==="assistant"&&(A.content=b.content,A.isError=N),C}),l()},w=Pe.getState(),S={...w.querySettings,query:g.content,conversation_history:y.filter(_=>_.isError!==!0).slice(-(w.querySettings.history_turns||0)*2).map(_=>({role:_.role,content:_.content}))};try{if(w.querySettings.stream){let _="";await nle(S,x,N=>{_+=N}),_&&(b.content&&(_=b.content+`
`+_),x(_,!0))}else{const _=await tle(S);x(_.response)}}catch(_){x(`${e("retrievePanel.retrieval.error")}
${ua(_)}`,!0)}finally{o(!1),Pe.getState().setRetrievalHistory([...y,g,b])}},[r,i,t,n,e]),d=LN(t,100);T.useEffect(()=>l(),[d,l]);const p=T.useCallback(()=>{n([]),Pe.getState().setRetrievalHistory([])},[n]);return k.jsxs("div",{className:"flex size-full gap-2 px-2 pb-12 overflow-hidden",children:[k.jsxs("div",{className:"flex grow flex-col gap-4",children:[k.jsx("div",{className:"relative grow",children:k.jsx("div",{className:"bg-primary-foreground/60 absolute inset-0 flex flex-col overflow-auto rounded-lg border p-2",children:k.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-2",children:[t.length===0?k.jsx("div",{className:"text-muted-foreground flex h-full items-center justify-center text-lg",children:e("retrievePanel.retrieval.startPrompt")}):t.map((h,g)=>k.jsx("div",{className:`flex ${h.role==="user"?"justify-end":"justify-start"}`,children:k.jsx(Q9e,{message:h})},g)),k.jsx("div",{ref:s,className:"pb-1"})]})})}),k.jsxs("form",{onSubmit:c,className:"flex shrink-0 items-center gap-2",children:[k.jsxs(xt,{type:"button",variant:"outline",onClick:p,disabled:i,size:"sm",children:[k.jsx(n8,{}),e("retrievePanel.retrieval.clear")]}),k.jsxs("div",{className:"flex-1 relative",children:[k.jsx("label",{htmlFor:"query-input",className:"sr-only",children:e("retrievePanel.retrieval.placeholder")}),k.jsx(Ua,{id:"query-input",className:"w-full",value:r,onChange:h=>a(h.target.value),placeholder:e("retrievePanel.retrieval.placeholder"),disabled:i})]}),k.jsxs(xt,{type:"submit",variant:"default",disabled:i,size:"sm",children:[k.jsx(Tpe,{}),e("retrievePanel.retrieval.send")]})]})]}),k.jsx(t0e,{})]})}const nqe=()=>{const e=T.useContext(w9);if(!e)throw new Error("useTabVisibility must be used within a TabVisibilityProvider");return e};function rqe(){const{t:e}=Ht(),{isTabVisible:t}=nqe(),n=t("api"),[r,a]=T.useState(!1);return T.useEffect(()=>{r||a(!0)},[r]),k.jsx("div",{className:`size-full ${n?"":"hidden"}`,children:r?k.jsx("iframe",{src:C2+"/docs",className:"size-full w-full h-full",style:{width:"100%",height:"100%",border:"none"}},"api-docs-iframe"):k.jsx("div",{className:"flex h-full w-full items-center justify-center bg-background",children:k.jsxs("div",{className:"text-center",children:[k.jsx("div",{className:"mb-2 h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"}),k.jsx("p",{children:e("apiSite.loading")})]})})})}function aqe(){const e=fa.use.message(),t=Pe.use.enableHealthCheck(),n=Pe.use.currentTab(),[r,a]=T.useState(!1),[i,o]=T.useState(!0),s=T.useRef(!1),l=T.useRef(!1),c=T.useCallback(h=>{a(h),h||fa.getState().clear()},[]),d=T.useRef(!0);T.useEffect(()=>{d.current=!0;const h=()=>{d.current=!1};return window.addEventListener("beforeunload",h),()=>{d.current=!1,window.removeEventListener("beforeunload",h)}},[]),T.useEffect(()=>{if(!t||r)return;const h=async()=>{try{d.current&&await fa.getState().check()}catch(b){console.error("Health check error:",b)}};l.current||(l.current=!0,h());const g=setInterval(h,jse*1e3);return()=>clearInterval(g)},[t,r]),T.useEffect(()=>{(async()=>{if(s.current)return;if(s.current=!0,sessionStorage.getItem("VERSION_CHECKED_FROM_LOGIN")==="true"){o(!1);return}try{o(!0);const b=localStorage.getItem("LIGHTRAG-API-TOKEN"),y=await b9();if(!y.auth_configured&&y.access_token)$a.getState().login(y.access_token,!0,y.core_version,y.api_version,y.webui_title||null,y.webui_description||null);else if(b&&(y.core_version||y.api_version||y.webui_title||y.webui_description)){const x=y.auth_mode==="disabled"||$a.getState().isGuestMode;$a.getState().login(b,x,y.core_version,y.api_version,y.webui_title||null,y.webui_description||null)}sessionStorage.setItem("VERSION_CHECKED_FROM_LOGIN","true")}catch(b){console.error("Failed to get version info:",b)}finally{o(!1)}})()},[]);const p=T.useCallback(h=>Pe.getState().setCurrentTab(h),[]);return T.useEffect(()=>{e&&(e.includes(h9)||e.includes(g9))&&a(!0)},[e]),k.jsx(S9,{children:k.jsx(Hle,{children:i?k.jsxs("div",{className:"flex h-screen w-screen flex-col",children:[k.jsxs("header",{className:"border-border/40 bg-background/95 supports-[backdrop-filter]:bg-background/60 sticky top-0 z-50 flex h-10 w-full border-b px-4 backdrop-blur",children:[k.jsx("div",{className:"min-w-[200px] w-auto flex items-center",children:k.jsxs("a",{href:f9,className:"flex items-center gap-2",children:[k.jsx(iN,{className:"size-4 text-emerald-400","aria-hidden":"true"}),k.jsx("span",{className:"font-bold md:inline-block",children:hA.name})]})}),k.jsx("div",{className:"flex h-10 flex-1 items-center justify-center"}),k.jsx("nav",{className:"w-[200px] flex items-center justify-end"})]}),k.jsx("div",{className:"flex flex-1 items-center justify-center",children:k.jsxs("div",{className:"text-center",children:[k.jsx("div",{className:"mb-2 h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"}),k.jsx("p",{children:"Initializing..."})]})})]}):k.jsxs("main",{className:"flex h-screen w-screen overflow-hidden",children:[k.jsxs(Whe,{defaultValue:n,className:"!m-0 flex grow flex-col !p-0 overflow-hidden",onValueChange:p,children:[k.jsx(Yhe,{}),k.jsxs("div",{className:"relative grow",children:[k.jsx(_f,{value:"documents",className:"absolute top-0 right-0 bottom-0 left-0 overflow-auto",children:k.jsx(Nwe,{})}),k.jsx(_f,{value:"knowledge-graph",className:"absolute top-0 right-0 bottom-0 left-0 overflow-hidden",children:k.jsx(vSe,{})}),k.jsx(_f,{value:"retrieval",className:"absolute top-0 right-0 bottom-0 left-0 overflow-hidden",children:k.jsx(tqe,{})}),k.jsx(_f,{value:"api",className:"absolute top-0 right-0 bottom-0 left-0 overflow-hidden",children:k.jsx(rqe,{})})]})]}),t&&k.jsx(Hpe,{}),k.jsx(bfe,{open:r,onOpenChange:c})]})})})}const iqe=()=>{const e=g2(),{login:t,isAuthenticated:n}=$a(),{t:r}=Ht(),[a,i]=T.useState(!1),[o,s]=T.useState(""),[l,c]=T.useState(""),[d,p]=T.useState(!0),h=T.useRef(!1);if(T.useEffect(()=>{console.log("LoginPage mounted")},[]),T.useEffect(()=>((async()=>{if(!h.current){h.current=!0;try{if(n){e("/");return}const y=await b9();if((y.core_version||y.api_version)&&sessionStorage.setItem("VERSION_CHECKED_FROM_LOGIN","true"),!y.auth_configured&&y.access_token){t(y.access_token,!0,y.core_version,y.api_version,y.webui_title||null,y.webui_description||null),y.message&&en.info(y.message),e("/");return}p(!1)}catch(y){console.error("Failed to check auth configuration:",y),p(!1)}}})(),()=>{}),[n,t,e]),d)return null;const g=async b=>{if(b.preventDefault(),!o||!l){en.error(r("login.errorEmptyFields"));return}try{i(!0);const y=await sle(o,l),x=y.auth_mode==="disabled";t(y.access_token,x,y.core_version,y.api_version,y.webui_title||null,y.webui_description||null),(y.core_version||y.api_version)&&sessionStorage.setItem("VERSION_CHECKED_FROM_LOGIN","true"),x?en.info(y.message||r("login.authDisabled","Authentication is disabled. Using guest access.")):en.success(r("login.successMessage")),e("/")}catch(y){console.error("Login failed...",y),en.error(r("login.errorInvalidCredentials")),$a.getState().logout(),localStorage.removeItem("LIGHTRAG-API-TOKEN")}finally{i(!1)}};return k.jsxs("div",{className:"flex h-screen w-screen items-center justify-center bg-gradient-to-br from-emerald-50 to-teal-100 dark:from-gray-900 dark:to-gray-800",children:[k.jsx("div",{className:"absolute top-4 right-4 flex items-center gap-2",children:k.jsx(s7,{className:"bg-white/30 dark:bg-gray-800/30 backdrop-blur-sm rounded-md"})}),k.jsxs(Rl,{className:"w-full max-w-[480px] shadow-lg mx-4",children:[k.jsx(Jf,{className:"flex items-center justify-center space-y-2 pb-8 pt-6",children:k.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[k.jsxs("div",{className:"flex items-center gap-3",children:[k.jsx("img",{src:"logo.png",alt:"LightRAG Logo",className:"h-12 w-12"}),k.jsx(iN,{className:"size-10 text-emerald-400","aria-hidden":"true"})]}),k.jsxs("div",{className:"text-center space-y-2",children:[k.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"LightRAG"}),k.jsx("p",{className:"text-muted-foreground text-sm",children:r("login.description")})]})]})}),k.jsx(tp,{className:"px-8 pb-8",children:k.jsxs("form",{onSubmit:g,className:"space-y-6",children:[k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsx("label",{htmlFor:"username-input",className:"text-sm font-medium w-16 shrink-0",children:r("login.username")}),k.jsx(Ua,{id:"username-input",placeholder:r("login.usernamePlaceholder"),value:o,onChange:b=>s(b.target.value),required:!0,className:"h-11 flex-1"})]}),k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsx("label",{htmlFor:"password-input",className:"text-sm font-medium w-16 shrink-0",children:r("login.password")}),k.jsx(Ua,{id:"password-input",type:"password",placeholder:r("login.passwordPlaceholder"),value:l,onChange:b=>c(b.target.value),required:!0,className:"h-11 flex-1"})]}),k.jsx(xt,{type:"submit",className:"w-full h-11 text-base font-medium mt-2",disabled:a,children:r(a?"login.loggingIn":"login.loginButton")})]})})]})]})},oqe=()=>{const[e,t]=T.useState(!0),{isAuthenticated:n}=$a(),r=g2();return T.useEffect(()=>{T2.setNavigate(r)},[r]),T.useEffect(()=>((async()=>{try{const i=localStorage.getItem("LIGHTRAG-API-TOKEN");if(i&&n){t(!1);return}i||$a.getState().logout()}catch(i){console.error("Auth initialization error:",i),n||$a.getState().logout()}finally{t(!1)}})(),()=>{}),[n]),T.useEffect(()=>{!e&&!n&&window.location.hash.slice(1)!=="/login"&&(console.log("Not authenticated, redirecting to login"),r("/login"))},[e,n,r]),e?null:k.jsxs(Fae,{children:[k.jsx(tA,{path:"/login",element:k.jsx(iqe,{})}),k.jsx(tA,{path:"/*",element:n?k.jsx(aqe,{}):null})]})},sqe=()=>k.jsx(S9,{children:k.jsxs(iie,{children:[k.jsx(oqe,{}),k.jsx($le,{position:"bottom-center",theme:"system",closeButton:!0,richColors:!0})]})}),Et=e=>typeof e=="string",Ef=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},JH=e=>e==null?"":""+e,lqe=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},cqe=/###/g,eG=e=>e&&e.indexOf("###")>-1?e.replace(cqe,"."):e,tG=e=>!e||Et(e),Gf=(e,t,n)=>{const r=Et(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(tG(e))return{};const i=eG(r[a]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++a}return tG(e)?{}:{obj:e,k:eG(r[a])}},nG=(e,t,n)=>{const{obj:r,k:a}=Gf(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let i=t[t.length-1],o=t.slice(0,t.length-1),s=Gf(e,o,Object);for(;s.obj===void 0&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),s=Gf(e,o,Object),s!=null&&s.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},uqe=(e,t,n,r)=>{const{obj:a,k:i}=Gf(e,t,Object);a[i]=a[i]||[],a[i].push(n)},jb=(e,t)=>{const{obj:n,k:r}=Gf(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},dqe=(e,t,n)=>{const r=jb(e,n);return r!==void 0?r:jb(t,n)},_te=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Et(e[r])||e[r]instanceof String||Et(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):_te(e[r],t[r],n):e[r]=t[r]);return e},Mc=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var fqe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const pqe=e=>Et(e)?e.replace(/[&<>"'\/]/g,t=>fqe[t]):e;class hqe{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const gqe=[" ",",","?","!",";"],mqe=new hqe(20),bqe=(e,t,n)=>{t=t||"",n=n||"";const r=gqe.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const a=mqe.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!a.test(e);if(!i){const o=e.indexOf(n);o>0&&!a.test(e.substring(0,o))&&(i=!0)}return i},p2=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let a=e;for(let i=0;i<r.length;){if(!a||typeof a!="object")return;let o,s="";for(let l=i;l<r.length;++l)if(l!==i&&(s+=n),s+=r[l],o=a[s],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<r.length-1)continue;i+=l-i+1;break}a=o}return a},Ub=e=>e==null?void 0:e.replace("_","-"),yqe={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class Hb{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||yqe,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(Et(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Hb(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Hb(this.logger,t)}}var Ni=new Hb;class gv{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[s,l]=o;for(let c=0;c<l;c++)s(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[s,l]=o;for(let c=0;c<l;c++)s.apply(s,[t,...r])})}}class rG extends gv{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){var c,d;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,o=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):Et(r)&&i?s.push(...r.split(i)):s.push(r)));const l=jb(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!o||!Et(r)?l:p2((d=(c=this.data)==null?void 0:c[t])==null?void 0:d[n],r,i)}addResource(t,n,r,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split("."),a=n,n=s[1]),this.addNamespaces(n),nG(this.data,s,a),i.silent||this.emit("added",t,n,r,a)}addResources(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(Et(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),a=r,r=n,n=s[1]),this.addNamespaces(n);let l=jb(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?_te(l,r,i):l={...l,...r},nG(this.data,s,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var Cte={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(i=>{var o;t=((o=this.processors[i])==null?void 0:o.process(t,n,r,a))??t}),t}};const aG={},iG=e=>!Et(e)&&typeof e!="boolean"&&typeof e!="number";class Gb extends gv{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),lqe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ni.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return(r==null?void 0:r.res)!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!bqe(t,r,a);if(o&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:Et(i)?[i]:i};const c=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(a)}return{key:t,namespaces:Et(i)?[i]:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),l=s[s.length-1],c=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode"){if(d){const P=n.nsSeparator||this.options.nsSeparator;return a?{res:`${l}${P}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${P}${o}`}return a?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}const p=this.resolve(t,n);let h=p==null?void 0:p.res;const g=(p==null?void 0:p.usedKey)||o,b=(p==null?void 0:p.exactUsedKey)||o,y=["[object Number]","[object Function]","[object RegExp]"],x=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,S=n.count!==void 0&&!Et(n.count),_=Gb.hasDefaultValue(n),N=S?this.pluralResolver.getSuffix(c,n.count,n):"",R=n.ordinal&&S?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",C=S&&!n.ordinal&&n.count===0,A=C&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${N}`]||n[`defaultValue${R}`]||n.defaultValue;let I=h;w&&!h&&_&&(I=A);const D=iG(I),O=Object.prototype.toString.apply(I);if(w&&I&&D&&y.indexOf(O)<0&&!(Et(x)&&Array.isArray(I))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,I,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return a?(p.res=P,p.usedParams=this.getUsedParamsDetails(n),p):P}if(i){const P=Array.isArray(I),G=P?[]:{},j=P?b:g;for(const W in I)if(Object.prototype.hasOwnProperty.call(I,W)){const V=`${j}${i}${W}`;_&&!h?G[W]=this.translate(V,{...n,defaultValue:iG(A)?A[W]:void 0,joinArrays:!1,ns:s}):G[W]=this.translate(V,{...n,joinArrays:!1,ns:s}),G[W]===V&&(G[W]=I[W])}h=G}}else if(w&&Et(x)&&Array.isArray(h))h=h.join(x),h&&(h=this.extendTranslation(h,t,n,r));else{let P=!1,G=!1;!this.isValidLookup(h)&&_&&(P=!0,h=A),this.isValidLookup(h)||(G=!0,h=o);const W=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&G?void 0:h,V=_&&A!==h&&this.options.updateMissing;if(G||P||V){if(this.logger.log(V?"updateKey":"missingKey",c,l,o,V?A:h),i){const K=this.resolve(o,{...n,keySeparator:!1});K&&K.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let B=[];const U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&U&&U[0])for(let K=0;K<U.length;K++)B.push(U[K]);else this.options.saveMissingTo==="all"?B=this.languageUtils.toResolveHierarchy(n.lng||this.language):B.push(n.lng||this.language);const M=(K,F,Y)=>{var $;const H=_&&Y!==h?Y:W;this.options.missingKeyHandler?this.options.missingKeyHandler(K,l,F,H,V,n):($=this.backendConnector)!=null&&$.saveMissing&&this.backendConnector.saveMissing(K,l,F,H,V,n),this.emit("missingKey",K,l,F,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?B.forEach(K=>{const F=this.pluralResolver.getSuffixes(K,n);C&&n[`defaultValue${this.options.pluralSeparator}zero`]&&F.indexOf(`${this.options.pluralSeparator}zero`)<0&&F.push(`${this.options.pluralSeparator}zero`),F.forEach(Y=>{M([K],o+Y,n[`defaultValue${Y}`]||A)})}):M(B,o,A))}h=this.extendTranslation(h,t,n,p,r),G&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(G||P)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,P?h:void 0))}return a?(p.res=h,p.usedParams=this.getUsedParamsDetails(n),p):h}extendTranslation(t,n,r,a,i){var c,d;var o=this;if((c=this.i18nFormat)!=null&&c.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const p=Et(t)&&(((d=r==null?void 0:r.interpolation)==null?void 0:d.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(p){const b=t.match(this.interpolator.nestingRegexp);h=b&&b.length}let g=r.replace&&!Et(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),t=this.interpolator.interpolate(t,g,r.lng||this.language||a.usedLng,r),p){const b=t.match(this.interpolator.nestingRegexp),y=b&&b.length;h<y&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var b=arguments.length,y=new Array(b),x=0;x<b;x++)y[x]=arguments[x];return(i==null?void 0:i[0])===y[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):o.translate(...y,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,l=Et(s)?[s]:s;return t!=null&&(l!=null&&l.length)&&r.applyPostProcessor!==!1&&(t=Cte.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,i,o,s;return Et(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),d=c.key;a=d;let p=c.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const h=n.count!==void 0&&!Et(n.count),g=h&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(Et(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(x=>{var w,S;this.isValidLookup(r)||(s=x,!aG[`${y[0]}-${x}`]&&((w=this.utils)!=null&&w.hasLoadedNamespace)&&!((S=this.utils)!=null&&S.hasLoadedNamespace(s))&&(aG[`${y[0]}-${x}`]=!0,this.logger.warn(`key "${a}" for languages "${y.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(_=>{var C;if(this.isValidLookup(r))return;o=_;const N=[d];if((C=this.i18nFormat)!=null&&C.addLookupKeys)this.i18nFormat.addLookupKeys(N,d,_,x,n);else{let A;h&&(A=this.pluralResolver.getSuffix(_,n.count,n));const I=`${this.options.pluralSeparator}zero`,D=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(N.push(d+A),n.ordinal&&A.indexOf(D)===0&&N.push(d+A.replace(D,this.options.pluralSeparator)),g&&N.push(d+I)),b){const O=`${d}${this.options.contextSeparator}${n.context}`;N.push(O),h&&(N.push(O+A),n.ordinal&&A.indexOf(D)===0&&N.push(O+A.replace(D,this.options.pluralSeparator)),g&&N.push(O+I))}}let R;for(;R=N.pop();)this.isValidLookup(r)||(i=R,r=this.getResource(_,x,R,n))}))})}),{res:r,usedKey:a,exactUsedKey:i,usedLng:o,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){var i;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Et(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const i of n)delete a[i]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class oG{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ni.create("languageUtils")}getScriptPartFromCode(t){if(t=Ub(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ub(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Et(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(i=>{if(i===a)return i;if(!(i.indexOf("-")<0&&a.indexOf("-")<0)&&(i.indexOf("-")>0&&a.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===a||i.indexOf(a)===0&&a.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Et(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],i=o=>{o&&(this.isSupportedCode(o)?a.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return Et(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):Et(t)&&i(this.formatLanguageCode(t)),r.forEach(o=>{a.indexOf(o)<0&&i(this.formatLanguageCode(o))}),a}}const sG={zero:0,one:1,two:2,few:3,many:4,other:5},lG={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class vqe{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ni.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=Ub(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:a});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),lG;if(!t.match(/-|_/))return lG;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,n)}return this.pluralRulesCache[i]=o,o}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,i)=>sG[a]-sG[i]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const cG=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=dqe(e,t,n);return!i&&a&&Et(n)&&(i=p2(e,n,r),i===void 0&&(i=p2(t,n,r))),i},JT=e=>e.replace(/\$/g,"$$$$");class xqe{constructor(){var n;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ni.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:p,nestingPrefix:h,nestingPrefixEscaped:g,nestingSuffix:b,nestingSuffixEscaped:y,nestingOptionsSeparator:x,maxReplaces:w,alwaysFormat:S}=t.interpolation;this.escape=n!==void 0?n:pqe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=i?Mc(i):o||"{{",this.suffix=s?Mc(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=h?Mc(h):g||Mc("$t("),this.nestingSuffix=b?Mc(b):y||Mc(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=w||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,a){var g;let i,o,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=b=>{if(b.indexOf(this.formatSeparator)<0){const S=cG(n,l,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,r,{...a,...n,interpolationkey:b}):S}const y=b.split(this.formatSeparator),x=y.shift().trim(),w=y.join(this.formatSeparator).trim();return this.format(cG(n,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...a,...n,interpolationkey:x})};this.resetRegExp();const d=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,p=((g=a==null?void 0:a.interpolation)==null?void 0:g.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>JT(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?JT(this.escape(b)):JT(b)}].forEach(b=>{for(s=0;i=b.regex.exec(t);){const y=i[1].trim();if(o=c(y),o===void 0)if(typeof d=="function"){const w=d(t,i,a);o=Et(w)?w:""}else if(a&&Object.prototype.hasOwnProperty.call(a,y))o="";else if(p){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else!Et(o)&&!this.useRawValueToEscape&&(o=JH(o));const x=b.safeValue(o);if(t=t.replace(i[0],x),p?(b.regex.lastIndex+=o.length,b.regex.lastIndex-=i[0].length):b.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,i,o;const s=(l,c)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const p=l.split(new RegExp(`${d}[ ]*{`));let h=`{${p[1]}`;l=p[0],h=this.interpolate(h,o);const g=h.match(/'/g),b=h.match(/"/g);(((g==null?void 0:g.length)??0)%2===0&&!b||b.length%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),c&&(o={...c,...o})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${d}${h}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;a=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&!Et(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(p=>p.trim());a[1]=d.shift(),l=d,c=!0}if(i=n(s.call(this,a[1].trim(),o),o),i&&a[0]===t&&!Et(i))return i;Et(i)||(i=JH(i)),i||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((d,p)=>this.format(d,p,r.lng,{...r,interpolationkey:a[1].trim()}),i.trim())),t=t.replace(a[0],i),this.regexp.lastIndex=0}return t}}const Sqe=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(o=>{if(o){const[s,...l]=o.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();n[d]||(n[d]=c),c==="false"&&(n[d]=!1),c==="true"&&(n[d]=!0),isNaN(c)||(n[d]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},Fc=e=>{const t={};return(n,r,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});const o=r+JSON.stringify(i);let s=t[o];return s||(s=e(Ub(r),a),t[o]=s),s(n)}};class wqe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ni.create("formatter"),this.options=t,this.formats={number:Fc((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return i=>a.format(i)}),currency:Fc((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>a.format(i)}),datetime:Fc((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return i=>a.format(i)}),relativetime:Fc((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return i=>a.format(i,r.range||"day")}),list:Fc((n,r)=>{const a=new Intl.ListFormat(n,{...r});return i=>a.format(i)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Fc(n)}format(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(s=>s.indexOf(")")>-1)){const s=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,s)].join(this.formatSeparator)}return i.reduce((s,l)=>{var p;const{formatName:c,formatOptions:d}=Sqe(l);if(this.formats[c]){let h=s;try{const g=((p=a==null?void 0:a.formatParams)==null?void 0:p[a.interpolationkey])||{},b=g.locale||g.lng||a.locale||a.lng||r;h=this.formats[c](s,b,{...d,...a,...g})}catch(g){this.logger.warn(g)}return h}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}const Eqe=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class kqe extends gv{constructor(t,n,r){var i,o;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=Ni.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(o=(i=this.backend)==null?void 0:i.init)==null||o.call(i,r,a.backend,a)}queueLoad(t,n,r,a){const i={},o={},s={},l={};return t.forEach(c=>{let d=!0;n.forEach(p=>{const h=`${c}|${p}`;!r.reload&&this.store.hasResourceBundle(c,p)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,d=!1,o[h]===void 0&&(o[h]=!0),i[h]===void 0&&(i[h]=!0),l[p]===void 0&&(l[p]=!0)))}),d||(s[c]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const a=t.split("|"),i=a[0],o=a[1];n&&this.emit("failedLoading",i,o,n),!n&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{uqe(l.loaded,[i],o),Eqe(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const d=l.loaded[c];d.length&&d.forEach(p=>{s[c][p]===void 0&&(s[c][p]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:i,callback:o});return}this.readingCalls++;const s=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(c&&d&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,a+1,i*2,o)},i);return}o(c,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(d=>s(null,d)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Et(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Et(n)&&(n=[n]);const i=this.queueLoad(t,n,r,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),a=r[0],i=r[1];this.read(a,i,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${a} failed`,o),!o&&s&&this.logger.log(`${n}loaded namespace ${i} for language ${a}`,s),this.loaded(t,o,s)})}saveMissing(t,n,r,a,i){var l,c,d,p,h;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((p=(d=this.services)==null?void 0:d.utils)!=null&&p.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((h=this.backend)!=null&&h.create){const g={...o,isUpdate:i},b=this.backend.create.bind(this.backend);if(b.length<6)try{let y;b.length===5?y=b(t,n,r,a,g):y=b(t,n,r,a),y&&typeof y.then=="function"?y.then(x=>s(null,x)).catch(s):s(null,y)}catch(y){s(y)}else b(t,n,r,a,s,g)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const uG=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Et(e[1])&&(t.defaultValue=e[1]),Et(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),dG=e=>{var t,n;return Et(e.ns)&&(e.ns=[e.ns]),Et(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Et(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Qg=()=>{},_qe=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class xp extends gv{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=dG(t),this.services={},this.logger=Ni,this.modules={external:[]},_qe(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(Et(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=uG();this.options={...a,...this.options,...dG(n)},this.options.interpolation={...a.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Ni.init(i(this.modules.logger),this.options):Ni.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=wqe;const p=new oG(this.options);this.store=new rG(this.options.resources,this.options);const h=this.services;h.logger=Ni,h.resourceStore=this.store,h.languageUtils=p,h.pluralResolver=new vqe(p,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(h.formatter=i(d),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new xqe(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new kqe(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(g){for(var b=arguments.length,y=new Array(b>1?b-1:0),x=1;x<b;x++)y[x-1]=arguments[x];t.emit(g,...y)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Gb(this.services,this.options),this.translator.on("*",function(g){for(var b=arguments.length,y=new Array(b>1?b-1:0),x=1;x<b;x++)y[x-1]=arguments[x];t.emit(g,...y)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Qg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=Ef(),c=()=>{const d=(p,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(h),r(p,h)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t){var i,o;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qg;const a=Et(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(p=>{p!=="cimode"&&s.indexOf(p)<0&&s.push(p)})};a?l(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),(o=(i=this.options.preload)==null?void 0:i.forEach)==null||o.call(i,c=>l(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const a=Ef();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Qg),this.services.backendConnector.reload(t,n,i=>{a.resolve(),r(i)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Cte.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const a=Ef();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{var d,p;!t&&!l&&this.services.languageDetector&&(l=[]);const c=Et(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),(p=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||p.call(d,c)),this.loadResources(c,h=>{o(h,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),a}getFixedT(t,n,r){var a=this;const i=function(o,s){let l;if(typeof s!="object"){for(var c=arguments.length,d=new Array(c>2?c-2:0),p=2;p<c;p++)d[p-2]=arguments[p];l=a.options.overloadTranslationOptionHandler([o,s].concat(d))}else l={...s};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const h=a.options.keySeparator||".";let g;return l.keyPrefix&&Array.isArray(o)?g=o.map(b=>`${l.keyPrefix}${h}${b}`):g=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,a.t(g,l)};return Et(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){var a;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(a=this.translator)==null?void 0:a.translate(...n)}exists(){var a;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(a=this.translator)==null?void 0:a.exists(...n)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!a||o(i,t)))}loadNamespaces(t,n){const r=Ef();return this.options.ns?(Et(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Ef();Et(t)&&(t=[t]);const a=this.options.preload||[],i=t.filter(o=>a.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return i.length?(this.options.preload=a.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){var a,i;if(t||(t=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((i=this.services)==null?void 0:i.languageUtils)||new oG(uG());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new xp(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qg;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},i=new xp(a);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const s=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},Object.keys(l[c]).reduce((d,p)=>(d[p]={...l[c][p]},d),{})),{});i.store=new rG(s,a),i.services.resourceStore=i.store}return i.translator=new Gb(i.services,a),i.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),d=1;d<l;d++)c[d-1]=arguments[d];i.emit(s,...c)}),i.init(a,n),i.translator.options=a,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Yn=xp.createInstance();Yn.createInstance=xp.createInstance;Yn.createInstance;Yn.dir;Yn.init;Yn.loadResources;Yn.reloadResources;Yn.use;Yn.changeLanguage;Yn.getFixedT;Yn.t;Yn.exists;Yn.setDefaultNamespace;Yn.hasLoadedNamespace;Yn.loadNamespaces;Yn.loadLanguages;const Cqe=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Tqe={language:"Language",theme:"Theme",light:"Light",dark:"Dark",system:"System"},Aqe={documents:"Documents",knowledgeGraph:"Knowledge Graph",retrieval:"Retrieval",api:"API",projectRepository:"Project Repository",logout:"Logout",themeToggle:{switchToLight:"Switch to light theme",switchToDark:"Switch to dark theme"}},Rqe={description:"Please enter your account and password to log in to the system",username:"Username",usernamePlaceholder:"Please input a username",password:"Password",passwordPlaceholder:"Please input a password",loginButton:"Login",loggingIn:"Logging in...",successMessage:"Login succeeded",errorEmptyFields:"Please enter your username and password",errorInvalidCredentials:"Login failed, please check username and password",authDisabled:"Authentication is disabled. Using login free mode.",guestMode:"Login Free"},Nqe={cancel:"Cancel",save:"Save"},Lqe={clearDocuments:{button:"Clear",tooltip:"Clear documents",title:"Clear Documents",description:"This will remove all documents from the system",warning:"WARNING: This action will permanently delete all documents and cannot be undone!",confirm:"Do you really want to clear all documents?",confirmPrompt:"Type 'yes' to confirm this action",confirmPlaceholder:"Type yes to confirm",clearCache:"Clear LLM cache",confirmButton:"YES",success:"Documents cleared successfully",cacheCleared:"Cache cleared successfully",cacheClearFailed:`Failed to clear cache:
{{error}}`,failed:`Clear Documents Failed:
{{message}}`,error:`Clear Documents Failed:
{{error}}`},uploadDocuments:{button:"Upload",tooltip:"Upload documents",title:"Upload Documents",description:"Drag and drop your documents here or click to browse.",single:{uploading:"Uploading {{name}}: {{percent}}%",success:`Upload Success:
{{name}} uploaded successfully`,failed:`Upload Failed:
{{name}}
{{message}}`,error:`Upload Failed:
{{name}}
{{error}}`},batch:{uploading:"Uploading files...",success:"Files uploaded successfully",error:"Some files failed to upload"},generalError:`Upload Failed
{{error}}`,fileTypes:"Supported types: TXT, MD, DOCX, PDF, PPTX, RTF, ODT, EPUB, HTML, HTM, TEX, JSON, XML, YAML, YML, CSV, LOG, CONF, INI, PROPERTIES, SQL, BAT, SH, C, CPP, PY, JAVA, JS, TS, SWIFT, GO, RB, PHP, CSS, SCSS, LESS",fileUploader:{singleFileLimit:"Cannot upload more than 1 file at a time",maxFilesLimit:"Cannot upload more than {{count}} files",fileRejected:"File {{name}} was rejected",unsupportedType:"Unsupported file type",fileTooLarge:"File too large, maximum size is {{maxSize}}",dropHere:"Drop the files here",dragAndDrop:"Drag and drop files here, or click to select files",removeFile:"Remove file",uploadDescription:"You can upload {{isMultiple ? 'multiple' : count}} files (up to {{maxSize}} each)",duplicateFile:"File name already exists in server cache"}},documentManager:{title:"Document Management",scanButton:"Scan",scanTooltip:"Scan documents in input folder",pipelineStatusButton:"Pipeline Status",pipelineStatusTooltip:"View pipeline status",uploadedTitle:"Uploaded Documents",uploadedDescription:"List of uploaded documents and their statuses.",emptyTitle:"No Documents",emptyDescription:"There are no uploaded documents yet.",columns:{id:"ID",summary:"Summary",status:"Status",length:"Length",chunks:"Chunks",created:"Created",updated:"Updated",metadata:"Metadata"},status:{all:"All",completed:"Completed",processing:"Processing",pending:"Pending",failed:"Failed"},errors:{loadFailed:`Failed to load documents
{{error}}`,scanFailed:`Failed to scan documents
{{error}}`,scanProgressFailed:`Failed to get scan progress
{{error}}`},fileNameLabel:"File Name",showButton:"Show",hideButton:"Hide",showFileNameTooltip:"Show file name",hideFileNameTooltip:"Hide file name"},pipelineStatus:{title:"Pipeline Status",busy:"Pipeline Busy",requestPending:"Request Pending",jobName:"Job Name",startTime:"Start Time",progress:"Progress",unit:"batch",latestMessage:"Latest Message",historyMessages:"History Messages",errors:{fetchFailed:`Failed to get pipeline status
{{error}}`}}},Oqe={dataIsTruncated:"Graph data is truncated to Max Nodes",statusDialog:{title:"LightRAG Server Settings",description:"View current system status and connection information"},legend:"Legend",nodeTypes:{person:"Person",category:"Category",geo:"Geographic",location:"Location",organization:"Organization",event:"Event",equipment:"Equipment",weapon:"Weapon",animal:"Animal",unknown:"Unknown",object:"Object",group:"Group",technology:"Technology"},sideBar:{settings:{settings:"Settings",healthCheck:"Health Check",showPropertyPanel:"Show Property Panel",showSearchBar:"Show Search Bar",showNodeLabel:"Show Node Label",nodeDraggable:"Node Draggable",showEdgeLabel:"Show Edge Label",hideUnselectedEdges:"Hide Unselected Edges",edgeEvents:"Edge Events",maxQueryDepth:"Max Query Depth",maxNodes:"Max Nodes",maxLayoutIterations:"Max Layout Iterations",resetToDefault:"Reset to default",edgeSizeRange:"Edge Size Range",depth:"D",max:"Max",degree:"Degree",apiKey:"API Key",enterYourAPIkey:"Enter your API key",save:"Save",refreshLayout:"Refresh Layout"},zoomControl:{zoomIn:"Zoom In",zoomOut:"Zoom Out",resetZoom:"Reset Zoom",rotateCamera:"Clockwise Rotate",rotateCameraCounterClockwise:"Counter-Clockwise Rotate"},layoutsControl:{startAnimation:"Continue layout animation",stopAnimation:"Stop layout animation",layoutGraph:"Layout Graph",layouts:{Circular:"Circular",Circlepack:"Circlepack",Random:"Random",Noverlaps:"Noverlaps","Force Directed":"Force Directed","Force Atlas":"Force Atlas"}},fullScreenControl:{fullScreen:"Full Screen",windowed:"Windowed"},legendControl:{toggleLegend:"Toggle Legend"}},statusIndicator:{connected:"Connected",disconnected:"Disconnected"},statusCard:{unavailable:"Status information unavailable",storageInfo:"Storage Info",workingDirectory:"Working Directory",inputDirectory:"Input Directory",llmConfig:"LLM Configuration",llmBinding:"LLM Binding",llmBindingHost:"LLM Binding Host",llmModel:"LLM Model",maxTokens:"Max Tokens",embeddingConfig:"Embedding Configuration",embeddingBinding:"Embedding Binding",embeddingBindingHost:"Embedding Binding Host",embeddingModel:"Embedding Model",storageConfig:"Storage Configuration",kvStorage:"KV Storage",docStatusStorage:"Doc Status Storage",graphStorage:"Graph Storage",vectorStorage:"Vector Storage"},propertiesView:{editProperty:"Edit {{property}}",editPropertyDescription:"Edit the property value in the text area below.",errors:{duplicateName:"Node name already exists",updateFailed:"Failed to update node",tryAgainLater:"Please try again later"},success:{entityUpdated:"Node updated successfully",relationUpdated:"Relation updated successfully"},node:{title:"Node",id:"ID",labels:"Labels",degree:"Degree",properties:"Properties",relationships:"Relations(within subgraph)",expandNode:"Expand Node",pruneNode:"Prune Node",deleteAllNodesError:"Refuse to delete all nodes in the graph",nodesRemoved:"{{count}} nodes removed, including orphan nodes",noNewNodes:"No expandable nodes found",propertyNames:{description:"Description",entity_id:"Name",entity_type:"Type",source_id:"SrcID",Neighbour:"Neigh",file_path:"Source",keywords:"Keys",weight:"Weight"}},edge:{title:"Relationship",id:"ID",type:"Type",source:"Source",target:"Target",properties:"Properties"}},search:{placeholder:"Search nodes...",message:"And {count} others"},graphLabels:{selectTooltip:"Select query label",noLabels:"No labels found",label:"Label",placeholder:"Search labels...",andOthers:"And {count} others",refreshTooltip:"Reload data(After file added)"},emptyGraph:"Empty(Try Reload Again)"},Dqe={chatMessage:{copyTooltip:"Copy to clipboard",copyError:"Failed to copy text to clipboard"},retrieval:{startPrompt:"Start a retrieval by typing your query below",clear:"Clear",send:"Send",placeholder:"Type your query...",error:"Error: Failed to get response"},querySettings:{parametersTitle:"Parameters",parametersDescription:"Configure your query parameters",queryMode:"Query Mode",queryModeTooltip:`Select the retrieval strategy:
• Naive: Basic search without advanced techniques
• Local: Context-dependent information retrieval
• Global: Utilizes global knowledge base
• Hybrid: Combines local and global retrieval
• Mix: Integrates knowledge graph with vector retrieval
• Bypass: Passes query directly to LLM without retrieval`,queryModeOptions:{naive:"Naive",local:"Local",global:"Global",hybrid:"Hybrid",mix:"Mix",bypass:"Bypass"},responseFormat:"Response Format",responseFormatTooltip:`Defines the response format. Examples:
• Multiple Paragraphs
• Single Paragraph
• Bullet Points`,responseFormatOptions:{multipleParagraphs:"Multiple Paragraphs",singleParagraph:"Single Paragraph",bulletPoints:"Bullet Points"},topK:"Top K Results",topKTooltip:"Number of top items to retrieve. Represents entities in 'local' mode and relationships in 'global' mode",topKPlaceholder:"Number of results",maxTokensTextUnit:"Max Tokens for Text Unit",maxTokensTextUnitTooltip:"Maximum number of tokens allowed for each retrieved text chunk",maxTokensGlobalContext:"Max Tokens for Global Context",maxTokensGlobalContextTooltip:"Maximum number of tokens allocated for relationship descriptions in global retrieval",maxTokensLocalContext:"Max Tokens for Local Context",maxTokensLocalContextTooltip:"Maximum number of tokens allocated for entity descriptions in local retrieval",historyTurns:"History Turns",historyTurnsTooltip:"Number of complete conversation turns (user-assistant pairs) to consider in the response context",historyTurnsPlaceholder:"Number of history turns",hlKeywords:"High-Level Keywords",hlKeywordsTooltip:"List of high-level keywords to prioritize in retrieval. Separate with commas",hlkeywordsPlaceHolder:"Enter keywords",llKeywords:"Low-Level Keywords",llKeywordsTooltip:"List of low-level keywords to refine retrieval focus. Separate with commas",onlyNeedContext:"Only Need Context",onlyNeedContextTooltip:"If True, only returns the retrieved context without generating a response",onlyNeedPrompt:"Only Need Prompt",onlyNeedPromptTooltip:"If True, only returns the generated prompt without producing a response",streamResponse:"Stream Response",streamResponseTooltip:"If True, enables streaming output for real-time responses"}},Iqe={loading:"Loading API Documentation..."},Mqe={title:"API Key is required",description:"Please enter your API key to access the service",placeholder:"Enter your API key",save:"Save"},Fqe={settings:Tqe,header:Aqe,login:Rqe,common:Nqe,documentPanel:Lqe,graphPanel:Oqe,retrievePanel:Dqe,apiSite:Iqe,apiKeyAlert:Mqe},Pqe={language:"语言",theme:"主题",light:"浅色",dark:"深色",system:"系统"},Bqe={documents:"文档",knowledgeGraph:"知识图谱",retrieval:"检索",api:"API",projectRepository:"项目仓库",logout:"退出登录",themeToggle:{switchToLight:"切换到浅色主题",switchToDark:"切换到深色主题"}},zqe={description:"请输入您的账号和密码登录系统",username:"用户名",usernamePlaceholder:"请输入用户名",password:"密码",passwordPlaceholder:"请输入密码",loginButton:"登录",loggingIn:"登录中...",successMessage:"登录成功",errorEmptyFields:"请输入您的用户名和密码",errorInvalidCredentials:"登录失败,请检查用户名和密码",authDisabled:"认证已禁用,使用无需登陆模式。",guestMode:"无需登陆"},$qe={cancel:"取消",save:"保存"},jqe={clearDocuments:{button:"清空",tooltip:"清空文档",title:"清空文档",description:"此操作将从系统中移除所有文档",warning:"警告:此操作将永久删除所有文档,无法恢复!",confirm:"确定要清空所有文档吗?",confirmPrompt:"请输入 yes 确认操作",confirmPlaceholder:"输入 yes 确认",clearCache:"清空LLM缓存",confirmButton:"确定",success:"文档清空成功",cacheCleared:"缓存清空成功",cacheClearFailed:`清空缓存失败:
{{error}}`,failed:`清空文档失败:
{{message}}`,error:`清空文档失败:
{{error}}`},uploadDocuments:{button:"上传",tooltip:"上传文档",title:"上传文档",description:"拖拽文件到此处或点击浏览",single:{uploading:"正在上传 {{name}}{{percent}}%",success:`上传成功:
{{name}} 上传完成`,failed:`上传失败:
{{name}}
{{message}}`,error:`上传失败:
{{name}}
{{error}}`},batch:{uploading:"正在上传文件...",success:"文件上传完成",error:"部分文件上传失败"},generalError:`上传失败
{{error}}`,fileTypes:"支持的文件类型TXT, MD, DOCX, PDF, PPTX, RTF, ODT, EPUB, HTML, HTM, TEX, JSON, XML, YAML, YML, CSV, LOG, CONF, INI, PROPERTIES, SQL, BAT, SH, C, CPP, PY, JAVA, JS, TS, SWIFT, GO, RB, PHP, CSS, SCSS, LESS",fileUploader:{singleFileLimit:"一次只能上传一个文件",maxFilesLimit:"最多只能上传 {{count}} 个文件",fileRejected:"文件 {{name}} 被拒绝",unsupportedType:"不支持的文件类型",fileTooLarge:"文件过大,最大允许 {{maxSize}}",dropHere:"将文件拖放到此处",dragAndDrop:"拖放文件到此处,或点击选择文件",removeFile:"移除文件",uploadDescription:"您可以上传{{isMultiple ? '多个' : count}}个文件(每个文件最大{{maxSize}}",duplicateFile:"文件名与服务器上的缓存重复"}},documentManager:{title:"文档管理",scanButton:"扫描",scanTooltip:"扫描输入目录中的文档",pipelineStatusButton:"流水线状态",pipelineStatusTooltip:"查看流水线状态",uploadedTitle:"已上传文档",uploadedDescription:"已上传文档列表及其状态",emptyTitle:"无文档",emptyDescription:"还没有上传任何文档",columns:{id:"ID",summary:"摘要",status:"状态",length:"长度",chunks:"分块",created:"创建时间",updated:"更新时间",metadata:"元数据"},status:{all:"全部",completed:"已完成",processing:"处理中",pending:"等待中",failed:"失败"},errors:{loadFailed:`加载文档失败
{{error}}`,scanFailed:`扫描文档失败
{{error}}`,scanProgressFailed:`获取扫描进度失败
{{error}}`},fileNameLabel:"文件名",showButton:"显示",hideButton:"隐藏",showFileNameTooltip:"显示文件名",hideFileNameTooltip:"隐藏文件名"},pipelineStatus:{title:"流水线状态",busy:"流水线忙碌",requestPending:"待处理请求",jobName:"作业名称",startTime:"开始时间",progress:"进度",unit:"批",latestMessage:"最新消息",historyMessages:"历史消息",errors:{fetchFailed:`获取流水线状态失败
{{error}}`}}},Uqe={dataIsTruncated:"图数据已截断至最大返回节点数",statusDialog:{title:"LightRAG 服务器设置",description:"查看当前系统状态和连接信息"},legend:"图例",nodeTypes:{person:"人物角色",category:"分类",geo:"地理名称",location:"位置",organization:"组织机构",event:"事件",equipment:"装备",weapon:"武器",animal:"动物",unknown:"未知",object:"物品",group:"群组",technology:"技术"},sideBar:{settings:{settings:"设置",healthCheck:"健康检查",showPropertyPanel:"显示属性面板",showSearchBar:"显示搜索栏",showNodeLabel:"显示节点标签",nodeDraggable:"节点可拖动",showEdgeLabel:"显示边标签",hideUnselectedEdges:"隐藏未选中的边",edgeEvents:"边事件",maxQueryDepth:"最大查询深度",maxNodes:"最大返回节点数",maxLayoutIterations:"最大布局迭代次数",resetToDefault:"重置为默认值",edgeSizeRange:"边粗细范围",depth:"深",max:"Max",degree:"邻边",apiKey:"API密钥",enterYourAPIkey:"输入您的API密钥",save:"保存",refreshLayout:"刷新布局"},zoomControl:{zoomIn:"放大",zoomOut:"缩小",resetZoom:"重置缩放",rotateCamera:"顺时针旋转图形",rotateCameraCounterClockwise:"逆时针旋转图形"},layoutsControl:{startAnimation:"继续布局动画",stopAnimation:"停止布局动画",layoutGraph:"图布局",layouts:{Circular:"环形",Circlepack:"圆形打包",Random:"随机",Noverlaps:"无重叠","Force Directed":"力导向","Force Atlas":"力地图"}},fullScreenControl:{fullScreen:"全屏",windowed:"窗口"},legendControl:{toggleLegend:"切换图例显示"}},statusIndicator:{connected:"已连接",disconnected:"未连接"},statusCard:{unavailable:"状态信息不可用",storageInfo:"存储信息",workingDirectory:"工作目录",inputDirectory:"输入目录",llmConfig:"LLM配置",llmBinding:"LLM绑定",llmBindingHost:"LLM绑定主机",llmModel:"LLM模型",maxTokens:"最大令牌数",embeddingConfig:"嵌入配置",embeddingBinding:"嵌入绑定",embeddingBindingHost:"嵌入绑定主机",embeddingModel:"嵌入模型",storageConfig:"存储配置",kvStorage:"KV存储",docStatusStorage:"文档状态存储",graphStorage:"图存储",vectorStorage:"向量存储"},propertiesView:{editProperty:"编辑{{property}}",editPropertyDescription:"在下方文本区域编辑属性值。",errors:{duplicateName:"节点名称已存在",updateFailed:"更新节点失败",tryAgainLater:"请稍后重试"},success:{entityUpdated:"节点更新成功",relationUpdated:"关系更新成功"},node:{title:"节点",id:"ID",labels:"标签",degree:"度数",properties:"属性",relationships:"关系(子图内)",expandNode:"扩展节点",pruneNode:"修剪节点",deleteAllNodesError:"拒绝删除图中的所有节点",nodesRemoved:"已删除 {{count}} 个节点,包括孤立节点",noNewNodes:"没有发现可以扩展的节点",propertyNames:{description:"描述",entity_id:"名称",entity_type:"类型",source_id:"信源ID",Neighbour:"邻接",file_path:"信源",keywords:"Keys",weight:"权重"}},edge:{title:"关系",id:"ID",type:"类型",source:"源节点",target:"目标节点",properties:"属性"}},search:{placeholder:"搜索节点...",message:"还有 {count} 个"},graphLabels:{selectTooltip:"选择查询标签",noLabels:"未找到标签",label:"标签",placeholder:"搜索标签...",andOthers:"还有 {count} 个",refreshTooltip:"重载图形数据(添加文件后需重载)"},emptyGraph:"无数据(请重载图形数据)"},Hqe={chatMessage:{copyTooltip:"复制到剪贴板",copyError:"复制文本到剪贴板失败"},retrieval:{startPrompt:"输入查询开始检索",clear:"清空",send:"发送",placeholder:"输入查询...",error:"错误:获取响应失败"},querySettings:{parametersTitle:"参数",parametersDescription:"配置查询参数",queryMode:"查询模式",queryModeTooltip:`选择检索策略:
• Naive基础搜索无高级技术
• Local上下文相关信息检索
• Global利用全局知识库
• Hybrid结合本地和全局检索
• Mix整合知识图谱和向量检索
• Bypass直接传递查询到LLM不进行检索`,queryModeOptions:{naive:"Naive",local:"Local",global:"Global",hybrid:"Hybrid",mix:"Mix",bypass:"Bypass"},responseFormat:"响应格式",responseFormatTooltip:`定义响应格式。例如:
• 多段落
• 单段落
• 要点`,responseFormatOptions:{multipleParagraphs:"多段落",singleParagraph:"单段落",bulletPoints:"要点"},topK:"Top K结果",topKTooltip:"检索的顶部项目数。在'local'模式下表示实体,在'global'模式下表示关系",topKPlaceholder:"结果数量",maxTokensTextUnit:"文本单元最大令牌数",maxTokensTextUnitTooltip:"每个检索文本块允许的最大令牌数",maxTokensGlobalContext:"全局上下文最大令牌数",maxTokensGlobalContextTooltip:"全局检索中关系描述的最大令牌数",maxTokensLocalContext:"本地上下文最大令牌数",maxTokensLocalContextTooltip:"本地检索中实体描述的最大令牌数",historyTurns:"历史轮次",historyTurnsTooltip:"响应上下文中考虑的完整对话轮次(用户-助手对)数量",historyTurnsPlaceholder:"历史轮次数",hlKeywords:"高级关键词",hlKeywordsTooltip:"检索中优先考虑的高级关键词列表。用逗号分隔",hlkeywordsPlaceHolder:"输入关键词",llKeywords:"低级关键词",llKeywordsTooltip:"用于细化检索重点的低级关键词列表。用逗号分隔",onlyNeedContext:"仅需上下文",onlyNeedContextTooltip:"如果为True仅返回检索到的上下文而不生成响应",onlyNeedPrompt:"仅需提示",onlyNeedPromptTooltip:"如果为True仅返回生成的提示而不产生响应",streamResponse:"流式响应",streamResponseTooltip:"如果为True启用实时流式输出响应"}},Gqe={loading:"正在加载 API 文档..."},qqe={title:"需要 API Key",description:"请输入您的 API Key 以访问服务",placeholder:"请输入 API Key",save:"保存"},Wqe={settings:Pqe,header:Bqe,login:zqe,common:$qe,documentPanel:jqe,graphPanel:Uqe,retrievePanel:Hqe,apiSite:Gqe,apiKeyAlert:qqe},Vqe={language:"Langue",theme:"Thème",light:"Clair",dark:"Sombre",system:"Système"},Yqe={documents:"Documents",knowledgeGraph:"Graphe de connaissances",retrieval:"Récupération",api:"API",projectRepository:"Référentiel du projet",logout:"Déconnexion",themeToggle:{switchToLight:"Passer au thème clair",switchToDark:"Passer au thème sombre"}},Kqe={description:"Veuillez entrer votre compte et mot de passe pour vous connecter au système",username:"Nom d'utilisateur",usernamePlaceholder:"Veuillez saisir un nom d'utilisateur",password:"Mot de passe",passwordPlaceholder:"Veuillez saisir un mot de passe",loginButton:"Connexion",loggingIn:"Connexion en cours...",successMessage:"Connexion réussie",errorEmptyFields:"Veuillez saisir votre nom d'utilisateur et mot de passe",errorInvalidCredentials:"Échec de la connexion, veuillez vérifier le nom d'utilisateur et le mot de passe",authDisabled:"L'authentification est désactivée. Utilisation du mode sans connexion.",guestMode:"Mode sans connexion"},Xqe={cancel:"Annuler",save:"Sauvegarder"},Zqe={clearDocuments:{button:"Effacer",tooltip:"Effacer les documents",title:"Effacer les documents",description:"Cette action supprimera tous les documents du système",warning:"ATTENTION : Cette action supprimera définitivement tous les documents et ne peut pas être annulée !",confirm:"Voulez-vous vraiment effacer tous les documents ?",confirmPrompt:"Tapez 'yes' pour confirmer cette action",confirmPlaceholder:"Tapez yes pour confirmer",clearCache:"Effacer le cache LLM",confirmButton:"OUI",success:"Documents effacés avec succès",cacheCleared:"Cache effacé avec succès",cacheClearFailed:`Échec de l'effacement du cache :
{{error}}`,failed:`Échec de l'effacement des documents :
{{message}}`,error:`Échec de l'effacement des documents :
{{error}}`},uploadDocuments:{button:"Télécharger",tooltip:"Télécharger des documents",title:"Télécharger des documents",description:"Glissez-déposez vos documents ici ou cliquez pour parcourir.",single:{uploading:"Téléchargement de {{name}} : {{percent}}%",success:`Succès du téléchargement :
{{name}} téléchargé avec succès`,failed:`Échec du téléchargement :
{{name}}
{{message}}`,error:`Échec du téléchargement :
{{name}}
{{error}}`},batch:{uploading:"Téléchargement des fichiers...",success:"Fichiers téléchargés avec succès",error:"Certains fichiers n'ont pas pu être téléchargés"},generalError:`Échec du téléchargement
{{error}}`,fileTypes:"Types pris en charge : TXT, MD, DOCX, PDF, PPTX, RTF, ODT, EPUB, HTML, HTM, TEX, JSON, XML, YAML, YML, CSV, LOG, CONF, INI, PROPERTIES, SQL, BAT, SH, C, CPP, PY, JAVA, JS, TS, SWIFT, GO, RB, PHP, CSS, SCSS, LESS",fileUploader:{singleFileLimit:"Impossible de télécharger plus d'un fichier à la fois",maxFilesLimit:"Impossible de télécharger plus de {{count}} fichiers",fileRejected:"Le fichier {{name}} a été rejeté",unsupportedType:"Type de fichier non pris en charge",fileTooLarge:"Fichier trop volumineux, taille maximale {{maxSize}}",dropHere:"Déposez les fichiers ici",dragAndDrop:"Glissez et déposez les fichiers ici, ou cliquez pour sélectionner",removeFile:"Supprimer le fichier",uploadDescription:"Vous pouvez télécharger {{isMultiple ? 'plusieurs' : count}} fichiers (jusqu'à {{maxSize}} chacun)",duplicateFile:"Le nom du fichier existe déjà dans le cache du serveur"}},documentManager:{title:"Gestion des documents",scanButton:"Scanner",scanTooltip:"Scanner les documents dans le dossier d'entrée",pipelineStatusButton:"État du Pipeline",pipelineStatusTooltip:"Voir l'état du pipeline",uploadedTitle:"Documents téléchargés",uploadedDescription:"Liste des documents téléchargés et leurs statuts.",emptyTitle:"Aucun document",emptyDescription:"Il n'y a pas encore de documents téléchargés.",columns:{id:"ID",summary:"Résumé",status:"Statut",length:"Longueur",chunks:"Fragments",created:"Créé",updated:"Mis à jour",metadata:"Métadonnées"},status:{all:"Tous",completed:"Terminé",processing:"En traitement",pending:"En attente",failed:"Échoué"},errors:{loadFailed:`Échec du chargement des documents
{{error}}`,scanFailed:`Échec de la numérisation des documents
{{error}}`,scanProgressFailed:`Échec de l'obtention de la progression de la numérisation
{{error}}`},fileNameLabel:"Nom du fichier",showButton:"Afficher",hideButton:"Masquer",showFileNameTooltip:"Afficher le nom du fichier",hideFileNameTooltip:"Masquer le nom du fichier"},pipelineStatus:{title:"État du Pipeline",busy:"Pipeline occupé",requestPending:"Requête en attente",jobName:"Nom du travail",startTime:"Heure de début",progress:"Progression",unit:"lot",latestMessage:"Dernier message",historyMessages:"Historique des messages",errors:{fetchFailed:`Échec de la récupération de l'état du pipeline
{{error}}`}}},Qqe={dataIsTruncated:"Les données du graphe sont tronquées au nombre maximum de nœuds",statusDialog:{title:"Paramètres du Serveur LightRAG",description:"Afficher l'état actuel du système et les informations de connexion"},legend:"Légende",nodeTypes:{person:"Personne",category:"Catégorie",geo:"Géographique",location:"Emplacement",organization:"Organisation",event:"Événement",equipment:"Équipement",weapon:"Arme",animal:"Animal",unknown:"Inconnu",object:"Objet",group:"Groupe",technology:"Technologie"},sideBar:{settings:{settings:"Paramètres",healthCheck:"Vérification de l'état",showPropertyPanel:"Afficher le panneau des propriétés",showSearchBar:"Afficher la barre de recherche",showNodeLabel:"Afficher l'étiquette du nœud",nodeDraggable:"Nœud déplaçable",showEdgeLabel:"Afficher l'étiquette de l'arête",hideUnselectedEdges:"Masquer les arêtes non sélectionnées",edgeEvents:"Événements des arêtes",maxQueryDepth:"Profondeur maximale de la requête",maxNodes:"Nombre maximum de nœuds",maxLayoutIterations:"Itérations maximales de mise en page",resetToDefault:"Réinitialiser par défaut",edgeSizeRange:"Plage de taille des arêtes",depth:"D",max:"Max",degree:"Degré",apiKey:"Clé API",enterYourAPIkey:"Entrez votre clé API",save:"Sauvegarder",refreshLayout:"Actualiser la mise en page"},zoomControl:{zoomIn:"Zoom avant",zoomOut:"Zoom arrière",resetZoom:"Réinitialiser le zoom",rotateCamera:"Rotation horaire",rotateCameraCounterClockwise:"Rotation antihoraire"},layoutsControl:{startAnimation:"Démarrer l'animation de mise en page",stopAnimation:"Arrêter l'animation de mise en page",layoutGraph:"Mettre en page le graphe",layouts:{Circular:"Circulaire",Circlepack:"Paquet circulaire",Random:"Aléatoire",Noverlaps:"Sans chevauchement","Force Directed":"Dirigé par la force","Force Atlas":"Atlas de force"}},fullScreenControl:{fullScreen:"Plein écran",windowed:"Fenêtré"},legendControl:{toggleLegend:"Basculer la légende"}},statusIndicator:{connected:"Connecté",disconnected:"Déconnecté"},statusCard:{unavailable:"Informations sur l'état indisponibles",storageInfo:"Informations de stockage",workingDirectory:"Répertoire de travail",inputDirectory:"Répertoire d'entrée",llmConfig:"Configuration du modèle de langage",llmBinding:"Liaison du modèle de langage",llmBindingHost:"Hôte de liaison du modèle de langage",llmModel:"Modèle de langage",maxTokens:"Nombre maximum de jetons",embeddingConfig:"Configuration d'incorporation",embeddingBinding:"Liaison d'incorporation",embeddingBindingHost:"Hôte de liaison d'incorporation",embeddingModel:"Modèle d'incorporation",storageConfig:"Configuration de stockage",kvStorage:"Stockage clé-valeur",docStatusStorage:"Stockage de l'état des documents",graphStorage:"Stockage du graphe",vectorStorage:"Stockage vectoriel"},propertiesView:{editProperty:"Modifier {{property}}",editPropertyDescription:"Modifiez la valeur de la propriété dans la zone de texte ci-dessous.",errors:{duplicateName:"Le nom du nœud existe déjà",updateFailed:"Échec de la mise à jour du nœud",tryAgainLater:"Veuillez réessayer plus tard"},success:{entityUpdated:"Nœud mis à jour avec succès",relationUpdated:"Relation mise à jour avec succès"},node:{title:"Nœud",id:"ID",labels:"Étiquettes",degree:"Degré",properties:"Propriétés",relationships:"Relations(dans le sous-graphe)",expandNode:"Développer le nœud",pruneNode:"Élaguer le nœud",deleteAllNodesError:"Refus de supprimer tous les nœuds du graphe",nodesRemoved:"{{count}} nœuds supprimés, y compris les nœuds orphelins",noNewNodes:"Aucun nœud développable trouvé",propertyNames:{description:"Description",entity_id:"Nom",entity_type:"Type",source_id:"ID source",Neighbour:"Voisin",file_path:"Source",keywords:"Keys",weight:"Poids"}},edge:{title:"Relation",id:"ID",type:"Type",source:"Source",target:"Cible",properties:"Propriétés"}},search:{placeholder:"Rechercher des nœuds...",message:"Et {{count}} autres"},graphLabels:{selectTooltip:"Sélectionner l'étiquette de la requête",noLabels:"Aucune étiquette trouvée",label:"Étiquette",placeholder:"Rechercher des étiquettes...",andOthers:"Et {{count}} autres",refreshTooltip:"Recharger les données (Après l'ajout de fichier)"},emptyGraph:"Vide (Essayez de recharger)"},Jqe={chatMessage:{copyTooltip:"Copier dans le presse-papiers",copyError:"Échec de la copie du texte dans le presse-papiers"},retrieval:{startPrompt:"Démarrez une récupération en tapant votre requête ci-dessous",clear:"Effacer",send:"Envoyer",placeholder:"Tapez votre requête...",error:"Erreur : Échec de l'obtention de la réponse"},querySettings:{parametersTitle:"Paramètres",parametersDescription:"Configurez vos paramètres de requête",queryMode:"Mode de requête",queryModeTooltip:`Sélectionnez la stratégie de récupération :
• Naïf : Recherche de base sans techniques avancées
• Local : Récupération d'informations dépendante du contexte
• Global : Utilise une base de connaissances globale
• Hybride : Combine récupération locale et globale
• Mixte : Intègre le graphe de connaissances avec la récupération vectorielle
• Bypass : Transmet directement la requête au LLM sans récupération`,queryModeOptions:{naive:"Naïf",local:"Local",global:"Global",hybrid:"Hybride",mix:"Mixte",bypass:"Bypass"},responseFormat:"Format de réponse",responseFormatTooltip:`Définit le format de la réponse. Exemples :
• Plusieurs paragraphes
• Paragraphe unique
• Points à puces`,responseFormatOptions:{multipleParagraphs:"Plusieurs paragraphes",singleParagraph:"Paragraphe unique",bulletPoints:"Points à puces"},topK:"Top K résultats",topKTooltip:"Nombre d'éléments supérieurs à récupérer. Représente les entités en mode 'local' et les relations en mode 'global'",topKPlaceholder:"Nombre de résultats",maxTokensTextUnit:"Nombre maximum de jetons pour l'unité de texte",maxTokensTextUnitTooltip:"Nombre maximum de jetons autorisés pour chaque fragment de texte récupéré",maxTokensGlobalContext:"Nombre maximum de jetons pour le contexte global",maxTokensGlobalContextTooltip:"Nombre maximum de jetons alloués pour les descriptions des relations dans la récupération globale",maxTokensLocalContext:"Nombre maximum de jetons pour le contexte local",maxTokensLocalContextTooltip:"Nombre maximum de jetons alloués pour les descriptions des entités dans la récupération locale",historyTurns:"Tours d'historique",historyTurnsTooltip:"Nombre de tours complets de conversation (paires utilisateur-assistant) à prendre en compte dans le contexte de la réponse",historyTurnsPlaceholder:"Nombre de tours d'historique",hlKeywords:"Mots-clés de haut niveau",hlKeywordsTooltip:"Liste de mots-clés de haut niveau à prioriser dans la récupération. Séparez par des virgules",hlkeywordsPlaceHolder:"Entrez les mots-clés",llKeywords:"Mots-clés de bas niveau",llKeywordsTooltip:"Liste de mots-clés de bas niveau pour affiner la focalisation de la récupération. Séparez par des virgules",onlyNeedContext:"Besoin uniquement du contexte",onlyNeedContextTooltip:"Si vrai, ne renvoie que le contexte récupéré sans générer de réponse",onlyNeedPrompt:"Besoin uniquement de l'invite",onlyNeedPromptTooltip:"Si vrai, ne renvoie que l'invite générée sans produire de réponse",streamResponse:"Réponse en flux",streamResponseTooltip:"Si vrai, active la sortie en flux pour des réponses en temps réel"}},e8e={loading:"Chargement de la documentation de l'API..."},t8e={title:"Clé API requise",description:"Veuillez entrer votre clé API pour accéder au service",placeholder:"Entrez votre clé API",save:"Sauvegarder"},n8e={settings:Vqe,header:Yqe,login:Kqe,common:Xqe,documentPanel:Zqe,graphPanel:Qqe,retrievePanel:Jqe,apiSite:e8e,apiKeyAlert:t8e},r8e={language:"اللغة",theme:"السمة",light:"فاتح",dark:"داكن",system:"النظام"},a8e={documents:"المستندات",knowledgeGraph:"شبكة المعرفة",retrieval:"الاسترجاع",api:"واجهة برمجة التطبيقات",projectRepository:"مستودع المشروع",logout:"تسجيل الخروج",themeToggle:{switchToLight:"التحويل إلى السمة الفاتحة",switchToDark:"التحويل إلى السمة الداكنة"}},i8e={description:"الرجاء إدخال حسابك وكلمة المرور لتسجيل الدخول إلى النظام",username:"اسم المستخدم",usernamePlaceholder:"الرجاء إدخال اسم المستخدم",password:"كلمة المرور",passwordPlaceholder:"الرجاء إدخال كلمة المرور",loginButton:"تسجيل الدخول",loggingIn:"جاري تسجيل الدخول...",successMessage:"تم تسجيل الدخول بنجاح",errorEmptyFields:"الرجاء إدخال اسم المستخدم وكلمة المرور",errorInvalidCredentials:"فشل تسجيل الدخول، يرجى التحقق من اسم المستخدم وكلمة المرور",authDisabled:"تم تعطيل المصادقة. استخدام وضع بدون تسجيل دخول.",guestMode:"وضع بدون تسجيل دخول"},o8e={cancel:"إلغاء",save:"حفظ"},s8e={clearDocuments:{button:"مسح",tooltip:"مسح المستندات",title:"مسح المستندات",description:"سيؤدي هذا إلى إزالة جميع المستندات من النظام",warning:"تحذير: سيؤدي هذا الإجراء إلى حذف جميع المستندات بشكل دائم ولا يمكن التراجع عنه!",confirm:"هل تريد حقًا مسح جميع المستندات؟",confirmPrompt:"اكتب 'yes' لتأكيد هذا الإجراء",confirmPlaceholder:"اكتب yes للتأكيد",clearCache:"مسح كاش نموذج اللغة",confirmButton:"نعم",success:"تم مسح المستندات بنجاح",cacheCleared:"تم مسح ذاكرة التخزين المؤقت بنجاح",cacheClearFailed:`فشل مسح ذاكرة التخزين المؤقت:
{{error}}`,failed:`فشل مسح المستندات:
{{message}}`,error:`فشل مسح المستندات:
{{error}}`},uploadDocuments:{button:"رفع",tooltip:"رفع المستندات",title:"رفع المستندات",description:"اسحب وأفلت مستنداتك هنا أو انقر للتصفح.",single:{uploading:"جارٍ الرفع {{name}}: {{percent}}%",success:`نجاح الرفع:
تم رفع {{name}} بنجاح`,failed:`فشل الرفع:
{{name}}
{{message}}`,error:`فشل الرفع:
{{name}}
{{error}}`},batch:{uploading:"جارٍ رفع الملفات...",success:"تم رفع الملفات بنجاح",error:"فشل رفع بعض الملفات"},generalError:`فشل الرفع
{{error}}`,fileTypes:"الأنواع المدعومة: TXT، MD، DOCX، PDF، PPTX، RTF، ODT، EPUB، HTML، HTM، TEX، JSON، XML، YAML، YML، CSV، LOG، CONF، INI، PROPERTIES، SQL، BAT، SH، C، CPP، PY، JAVA، JS، TS، SWIFT، GO، RB، PHP، CSS، SCSS، LESS",fileUploader:{singleFileLimit:"لا يمكن رفع أكثر من ملف واحد في المرة الواحدة",maxFilesLimit:"لا يمكن رفع أكثر من {{count}} ملفات",fileRejected:"تم رفض الملف {{name}}",unsupportedType:"نوع الملف غير مدعوم",fileTooLarge:"حجم الملف كبير جدًا، الحد الأقصى {{maxSize}}",dropHere:"أفلت الملفات هنا",dragAndDrop:"اسحب وأفلت الملفات هنا، أو انقر للاختيار",removeFile:"إزالة الملف",uploadDescription:"يمكنك رفع {{isMultiple ? 'عدة' : count}} ملفات (حتى {{maxSize}} لكل منها)",duplicateFile:"اسم الملف موجود بالفعل في ذاكرة التخزين المؤقت للخادم"}},documentManager:{title:"إدارة المستندات",scanButton:"مسح ضوئي",scanTooltip:"مسح المستندات ضوئيًا في مجلد الإدخال",pipelineStatusButton:"حالة خط المعالجة",pipelineStatusTooltip:"عرض حالة خط المعالجة",uploadedTitle:"المستندات المرفوعة",uploadedDescription:"قائمة المستندات المرفوعة وحالاتها.",emptyTitle:"لا توجد مستندات",emptyDescription:"لا توجد مستندات مرفوعة بعد.",columns:{id:"المعرف",summary:"الملخص",status:"الحالة",length:"الطول",chunks:"الأجزاء",created:"تم الإنشاء",updated:"تم التحديث",metadata:"البيانات الوصفية"},status:{all:"الكل",completed:"مكتمل",processing:"قيد المعالجة",pending:"معلق",failed:"فشل"},errors:{loadFailed:`فشل تحميل المستندات
{{error}}`,scanFailed:`فشل مسح المستندات
{{error}}`,scanProgressFailed:`فشل الحصول على تقدم المسح
{{error}}`},fileNameLabel:"اسم الملف",showButton:"عرض",hideButton:"إخفاء",showFileNameTooltip:"عرض اسم الملف",hideFileNameTooltip:"إخفاء اسم الملف"},pipelineStatus:{title:"حالة خط المعالجة",busy:"خط المعالجة مشغول",requestPending:"الطلب معلق",jobName:"اسم المهمة",startTime:"وقت البدء",progress:"التقدم",unit:"دفعة",latestMessage:"آخر رسالة",historyMessages:"سجل الرسائل",errors:{fetchFailed:`فشل في جلب حالة خط المعالجة
{{error}}`}}},l8e={dataIsTruncated:"تم اقتصار بيانات الرسم البياني على الحد الأقصى للعقد",statusDialog:{title:"إعدادات خادم LightRAG",description:"عرض حالة النظام الحالية ومعلومات الاتصال"},legend:"المفتاح",nodeTypes:{person:"شخص",category:"فئة",geo:"كيان جغرافي",location:"موقع",organization:"منظمة",event:"حدث",equipment:"معدات",weapon:"سلاح",animal:"حيوان",unknown:"غير معروف",object:"مصنوع",group:"مجموعة",technology:"العلوم"},sideBar:{settings:{settings:"الإعدادات",healthCheck:"فحص الحالة",showPropertyPanel:"إظهار لوحة الخصائص",showSearchBar:"إظهار شريط البحث",showNodeLabel:"إظهار تسمية العقدة",nodeDraggable:"العقدة قابلة للسحب",showEdgeLabel:"إظهار تسمية الحافة",hideUnselectedEdges:"إخفاء الحواف غير المحددة",edgeEvents:"أحداث الحافة",maxQueryDepth:"أقصى عمق للاستعلام",maxNodes:"الحد الأقصى للعقد",maxLayoutIterations:"أقصى تكرارات التخطيط",resetToDefault:"إعادة التعيين إلى الافتراضي",edgeSizeRange:"نطاق حجم الحافة",depth:"D",max:"Max",degree:"الدرجة",apiKey:"مفتاح واجهة برمجة التطبيقات",enterYourAPIkey:"أدخل مفتاح واجهة برمجة التطبيقات الخاص بك",save:"حفظ",refreshLayout:"تحديث التخطيط"},zoomControl:{zoomIn:"تكبير",zoomOut:"تصغير",resetZoom:"إعادة تعيين التكبير",rotateCamera:"تدوير في اتجاه عقارب الساعة",rotateCameraCounterClockwise:"تدوير عكس اتجاه عقارب الساعة"},layoutsControl:{startAnimation:"بدء حركة التخطيط",stopAnimation:"إيقاف حركة التخطيط",layoutGraph:"تخطيط الرسم البياني",layouts:{Circular:"دائري",Circlepack:"حزمة دائرية",Random:"عشوائي",Noverlaps:"بدون تداخل","Force Directed":"موجه بالقوة","Force Atlas":"أطلس القوة"}},fullScreenControl:{fullScreen:"شاشة كاملة",windowed:"نوافذ"},legendControl:{toggleLegend:"تبديل المفتاح"}},statusIndicator:{connected:"متصل",disconnected:"غير متصل"},statusCard:{unavailable:"معلومات الحالة غير متوفرة",storageInfo:"معلومات التخزين",workingDirectory:"دليل العمل",inputDirectory:"دليل الإدخال",llmConfig:"تكوين نموذج اللغة الكبير",llmBinding:"ربط نموذج اللغة الكبير",llmBindingHost:"مضيف ربط نموذج اللغة الكبير",llmModel:"نموذج اللغة الكبير",maxTokens:"أقصى عدد من الرموز",embeddingConfig:"تكوين التضمين",embeddingBinding:"ربط التضمين",embeddingBindingHost:"مضيف ربط التضمين",embeddingModel:"نموذج التضمين",storageConfig:"تكوين التخزين",kvStorage:"تخزين المفتاح-القيمة",docStatusStorage:"تخزين حالة المستند",graphStorage:"تخزين الرسم البياني",vectorStorage:"تخزين المتجهات"},propertiesView:{editProperty:"تعديل {{property}}",editPropertyDescription:"قم بتحرير قيمة الخاصية في منطقة النص أدناه.",errors:{duplicateName:"اسم العقدة موجود بالفعل",updateFailed:"فشل تحديث العقدة",tryAgainLater:"يرجى المحاولة مرة أخرى لاحقًا"},success:{entityUpdated:"تم تحديث العقدة بنجاح",relationUpdated:"تم تحديث العلاقة بنجاح"},node:{title:"عقدة",id:"المعرف",labels:"التسميات",degree:"الدرجة",properties:"الخصائص",relationships:"العلاقات (داخل الرسم الفرعي)",expandNode:"توسيع العقدة",pruneNode:"تقليم العقدة",deleteAllNodesError:"رفض حذف جميع العقد في الرسم البياني",nodesRemoved:"تم إزالة {{count}} عقدة، بما في ذلك العقد اليتيمة",noNewNodes:"لم يتم العثور على عقد قابلة للتوسيع",propertyNames:{description:"الوصف",entity_id:"الاسم",entity_type:"النوع",source_id:"معرف المصدر",Neighbour:"الجار",file_path:"المصدر",keywords:"الكلمات الرئيسية",weight:"الوزن"}},edge:{title:"علاقة",id:"المعرف",type:"النوع",source:"المصدر",target:"الهدف",properties:"الخصائص"}},search:{placeholder:"ابحث في العقد...",message:"و {{count}} آخرون"},graphLabels:{selectTooltip:"حدد تسمية الاستعلام",noLabels:"لم يتم العثور على تسميات",label:"التسمية",placeholder:"ابحث في التسميات...",andOthers:"و {{count}} آخرون",refreshTooltip:"إعادة تحميل البيانات (بعد إضافة الملف)"},emptyGraph:"فارغ (حاول إعادة التحميل)"},c8e={chatMessage:{copyTooltip:"نسخ إلى الحافظة",copyError:"فشل نسخ النص إلى الحافظة"},retrieval:{startPrompt:"ابدأ الاسترجاع بكتابة استفسارك أدناه",clear:"مسح",send:"إرسال",placeholder:"اكتب استفسارك...",error:"خطأ: فشل الحصول على الرد"},querySettings:{parametersTitle:"المعلمات",parametersDescription:"تكوين معلمات الاستعلام الخاص بك",queryMode:"وضع الاستعلام",queryModeTooltip:`حدد استراتيجية الاسترجاع:
• ساذج: بحث أساسي بدون تقنيات متقدمة
• محلي: استرجاع معلومات يعتمد على السياق
• عالمي: يستخدم قاعدة المعرفة العالمية
• مختلط: يجمع بين الاسترجاع المحلي والعالمي
• مزيج: يدمج شبكة المعرفة مع الاسترجاع المتجهي
• تجاوز: يمرر الاستعلام مباشرة إلى LLM بدون استرجاع`,queryModeOptions:{naive:"ساذج",local:"محلي",global:"عالمي",hybrid:"مختلط",mix:"مزيج",bypass:"تجاوز"},responseFormat:"تنسيق الرد",responseFormatTooltip:`يحدد تنسيق الرد. أمثلة:
• فقرات متعددة
• فقرة واحدة
• نقاط نقطية`,responseFormatOptions:{multipleParagraphs:"فقرات متعددة",singleParagraph:"فقرة واحدة",bulletPoints:"نقاط نقطية"},topK:"أعلى K نتائج",topKTooltip:"عدد العناصر العلوية للاسترجاع. يمثل الكيانات في وضع 'محلي' والعلاقات في وضع 'عالمي'",topKPlaceholder:"عدد النتائج",maxTokensTextUnit:"أقصى عدد من الرموز لوحدة النص",maxTokensTextUnitTooltip:"الحد الأقصى لعدد الرموز المسموح به لكل جزء نصي مسترجع",maxTokensGlobalContext:"أقصى عدد من الرموز للسياق العالمي",maxTokensGlobalContextTooltip:"الحد الأقصى لعدد الرموز المخصص لأوصاف العلاقات في الاسترجاع العالمي",maxTokensLocalContext:"أقصى عدد من الرموز للسياق المحلي",maxTokensLocalContextTooltip:"الحد الأقصى لعدد الرموز المخصص لأوصاف الكيانات في الاسترجاع المحلي",historyTurns:"دورات التاريخ",historyTurnsTooltip:"عدد الدورات الكاملة للمحادثة (أزواج المستخدم-المساعد) التي يجب مراعاتها في سياق الرد",historyTurnsPlaceholder:"عدد دورات التاريخ",hlKeywords:"الكلمات المفتاحية عالية المستوى",hlKeywordsTooltip:"قائمة الكلمات المفتاحية عالية المستوى لإعطائها الأولوية في الاسترجاع. افصل بينها بفواصل",hlkeywordsPlaceHolder:"أدخل الكلمات المفتاحية",llKeywords:"الكلمات المفتاحية منخفضة المستوى",llKeywordsTooltip:"قائمة الكلمات المفتاحية منخفضة المستوى لتحسين تركيز الاسترجاع. افصل بينها بفواصل",onlyNeedContext:"تحتاج فقط إلى السياق",onlyNeedContextTooltip:"إذا كان صحيحًا، يتم إرجاع السياق المسترجع فقط دون إنشاء رد",onlyNeedPrompt:"تحتاج فقط إلى المطالبة",onlyNeedPromptTooltip:"إذا كان صحيحًا، يتم إرجاع المطالبة المولدة فقط دون إنتاج رد",streamResponse:"تدفق الرد",streamResponseTooltip:"إذا كان صحيحًا، يتيح إخراج التدفق للردود في الوقت الفعلي"}},u8e={loading:"جارٍ تحميل وثائق واجهة برمجة التطبيقات..."},d8e={title:"مفتاح واجهة برمجة التطبيقات مطلوب",description:"الرجاء إدخال مفتاح واجهة برمجة التطبيقات للوصول إلى الخدمة",placeholder:"أدخل مفتاح واجهة برمجة التطبيقات",save:"حفظ"},f8e={settings:r8e,header:a8e,login:i8e,common:o8e,documentPanel:s8e,graphPanel:l8e,retrievePanel:c8e,apiSite:u8e,apiKeyAlert:d8e},p8e={language:"語言",theme:"主題",light:"淺色",dark:"深色",system:"系統"},h8e={documents:"文件",knowledgeGraph:"知識圖譜",retrieval:"檢索",api:"API",projectRepository:"專案庫",logout:"登出",themeToggle:{switchToLight:"切換至淺色主題",switchToDark:"切換至深色主題"}},g8e={description:"請輸入您的帳號和密碼登入系統",username:"帳號",usernamePlaceholder:"請輸入帳號",password:"密碼",passwordPlaceholder:"請輸入密碼",loginButton:"登入",loggingIn:"登入中...",successMessage:"登入成功",errorEmptyFields:"請輸入您的帳號和密碼",errorInvalidCredentials:"登入失敗,請檢查帳號和密碼",authDisabled:"認證已停用,使用免登入模式",guestMode:"免登入"},m8e={cancel:"取消",save:"儲存"},b8e={clearDocuments:{button:"清空",tooltip:"清空文件",title:"清空文件",description:"此操作將從系統中移除所有文件",warning:"警告:此操作將永久刪除所有文件,無法復原!",confirm:"確定要清空所有文件嗎?",confirmPrompt:"請輸入 yes 確認操作",confirmPlaceholder:"輸入 yes 以確認",clearCache:"清空 LLM 快取",confirmButton:"確定",success:"文件清空成功",cacheCleared:"快取清空成功",cacheClearFailed:`清空快取失敗:
{{error}}`,failed:`清空文件失敗:
{{message}}`,error:`清空文件失敗:
{{error}}`},uploadDocuments:{button:"上傳",tooltip:"上傳文件",title:"上傳文件",description:"拖曳檔案至此處或點擊瀏覽",single:{uploading:"正在上傳 {{name}}{{percent}}%",success:`上傳成功:
{{name}} 上傳完成`,failed:`上傳失敗:
{{name}}
{{message}}`,error:`上傳失敗:
{{name}}
{{error}}`},batch:{uploading:"正在上傳檔案...",success:"檔案上傳完成",error:"部分檔案上傳失敗"},generalError:`上傳失敗
{{error}}`,fileTypes:"支援的檔案類型TXT, MD, DOCX, PDF, PPTX, RTF, ODT, EPUB, HTML, HTM, TEX, JSON, XML, YAML, YML, CSV, LOG, CONF, INI, PROPERTIES, SQL, BAT, SH, C, CPP, PY, JAVA, JS, TS, SWIFT, GO, RB, PHP, CSS, SCSS, LESS",fileUploader:{singleFileLimit:"一次只能上傳一個檔案",maxFilesLimit:"最多只能上傳 {{count}} 個檔案",fileRejected:"檔案 {{name}} 被拒絕",unsupportedType:"不支援的檔案類型",fileTooLarge:"檔案過大,最大允許 {{maxSize}}",dropHere:"將檔案拖放至此處",dragAndDrop:"拖放檔案至此處,或點擊選擇檔案",removeFile:"移除檔案",uploadDescription:"您可以上傳{{isMultiple ? '多個' : count}}個檔案(每個檔案最大{{maxSize}}",duplicateFile:"檔案名稱與伺服器上的快取重複"}},documentManager:{title:"文件管理",scanButton:"掃描",scanTooltip:"掃描輸入目錄中的文件",pipelineStatusButton:"pipeline 狀態",pipelineStatusTooltip:"查看pipeline 狀態",uploadedTitle:"已上傳文件",uploadedDescription:"已上傳文件清單及其狀態",emptyTitle:"無文件",emptyDescription:"尚未上傳任何文件",columns:{id:"ID",summary:"摘要",status:"狀態",length:"長度",chunks:"分塊",created:"建立時間",updated:"更新時間",metadata:"元資料"},status:{all:"全部",completed:"已完成",processing:"處理中",pending:"等待中",failed:"失敗"},errors:{loadFailed:`載入文件失敗
{{error}}`,scanFailed:`掃描文件失敗
{{error}}`,scanProgressFailed:`取得掃描進度失敗
{{error}}`},fileNameLabel:"檔案名稱",showButton:"顯示",hideButton:"隱藏",showFileNameTooltip:"顯示檔案名稱",hideFileNameTooltip:"隱藏檔案名稱"},pipelineStatus:{title:"pipeline 狀態",busy:"pipeline 忙碌中",requestPending:"待處理請求",jobName:"工作名稱",startTime:"開始時間",progress:"進度",unit:"梯次",latestMessage:"最新訊息",historyMessages:"歷史訊息",errors:{fetchFailed:`取得pipeline 狀態失敗
{{error}}`}}},y8e={dataIsTruncated:"圖資料已截斷至最大回傳節點數",statusDialog:{title:"LightRAG 伺服器設定",description:"查看目前系統狀態和連線資訊"},legend:"圖例",nodeTypes:{person:"人物角色",category:"分類",geo:"地理名稱",location:"位置",organization:"組織機構",event:"事件",equipment:"設備",weapon:"武器",animal:"動物",unknown:"未知",object:"物品",group:"群組",technology:"技術"},sideBar:{settings:{settings:"設定",healthCheck:"健康檢查",showPropertyPanel:"顯示屬性面板",showSearchBar:"顯示搜尋列",showNodeLabel:"顯示節點標籤",nodeDraggable:"節點可拖曳",showEdgeLabel:"顯示 Edge 標籤",hideUnselectedEdges:"隱藏未選取的 Edge",edgeEvents:"Edge 事件",maxQueryDepth:"最大查詢深度",maxNodes:"最大回傳節點數",maxLayoutIterations:"最大版面配置迭代次數",resetToDefault:"重設為預設值",edgeSizeRange:"Edge 粗細範圍",depth:"深度",max:"最大值",degree:"鄰邊",apiKey:"API key",enterYourAPIkey:"輸入您的 API key",save:"儲存",refreshLayout:"重新整理版面配置"},zoomControl:{zoomIn:"放大",zoomOut:"縮小",resetZoom:"重設縮放",rotateCamera:"順時針旋轉圖形",rotateCameraCounterClockwise:"逆時針旋轉圖形"},layoutsControl:{startAnimation:"繼續版面配置動畫",stopAnimation:"停止版面配置動畫",layoutGraph:"圖形版面配置",layouts:{Circular:"環形",Circlepack:"圓形打包",Random:"隨機",Noverlaps:"無重疊","Force Directed":"力導向","Force Atlas":"力圖"}},fullScreenControl:{fullScreen:"全螢幕",windowed:"視窗"},legendControl:{toggleLegend:"切換圖例顯示"}},statusIndicator:{connected:"已連線",disconnected:"未連線"},statusCard:{unavailable:"狀態資訊不可用",storageInfo:"儲存資訊",workingDirectory:"工作目錄",inputDirectory:"輸入目錄",llmConfig:"LLM 設定",llmBinding:"LLM 綁定",llmBindingHost:"LLM 綁定主機",llmModel:"LLM 模型",maxTokens:"最大權杖數",embeddingConfig:"嵌入設定",embeddingBinding:"嵌入綁定",embeddingBindingHost:"嵌入綁定主機",embeddingModel:"嵌入模型",storageConfig:"儲存設定",kvStorage:"KV 儲存",docStatusStorage:"文件狀態儲存",graphStorage:"圖形儲存",vectorStorage:"向量儲存"},propertiesView:{editProperty:"編輯{{property}}",editPropertyDescription:"在下方文字區域編輯屬性值。",errors:{duplicateName:"節點名稱已存在",updateFailed:"更新節點失敗",tryAgainLater:"請稍後重試"},success:{entityUpdated:"節點更新成功",relationUpdated:"關係更新成功"},node:{title:"節點",id:"ID",labels:"標籤",degree:"度數",properties:"屬性",relationships:"關係(子圖內)",expandNode:"展開節點",pruneNode:"修剪節點",deleteAllNodesError:"拒絕刪除圖中的所有節點",nodesRemoved:"已刪除 {{count}} 個節點,包括孤立節點",noNewNodes:"沒有發現可以展開的節點",propertyNames:{description:"描述",entity_id:"名稱",entity_type:"類型",source_id:"來源ID",Neighbour:"鄰接",file_path:"來源",keywords:"Keys",weight:"權重"}},edge:{title:"關係",id:"ID",type:"類型",source:"來源節點",target:"目標節點",properties:"屬性"}},search:{placeholder:"搜尋節點...",message:"還有 {count} 個"},graphLabels:{selectTooltip:"選擇查詢標籤",noLabels:"未找到標籤",label:"標籤",placeholder:"搜尋標籤...",andOthers:"還有 {count} 個",refreshTooltip:"重載圖形數據(新增檔案後需重載)"},emptyGraph:"無數據(請重載圖形數據)"},v8e={chatMessage:{copyTooltip:"複製到剪貼簿",copyError:"複製文字到剪貼簿失敗"},retrieval:{startPrompt:"輸入查詢開始檢索",clear:"清空",send:"送出",placeholder:"輸入查詢...",error:"錯誤:取得回應失敗"},querySettings:{parametersTitle:"參數",parametersDescription:"設定查詢參數",queryMode:"查詢模式",queryModeTooltip:`選擇檢索策略:
• Naive基礎搜尋無進階技術
• Local上下文相關資訊檢索
• Global利用全域知識庫
• Hybrid結合本地和全域檢索
• Mix整合知識圖譜和向量檢索
• Bypass直接傳遞查詢到LLM不進行檢索`,queryModeOptions:{naive:"Naive",local:"Local",global:"Global",hybrid:"Hybrid",mix:"Mix",bypass:"Bypass"},responseFormat:"回應格式",responseFormatTooltip:`定義回應格式。例如:
• 多段落
• 單段落
• 重點`,responseFormatOptions:{multipleParagraphs:"多段落",singleParagraph:"單段落",bulletPoints:"重點"},topK:"Top K結果",topKTooltip:"檢索的前幾項結果數。在'local'模式下表示實體,在'global'模式下表示關係",topKPlaceholder:"結果數量",maxTokensTextUnit:"文字單元最大權杖數",maxTokensTextUnitTooltip:"每個檢索文字區塊允許的最大權杖數",maxTokensGlobalContext:"全域上下文最大權杖數",maxTokensGlobalContextTooltip:"全域檢索中關係描述的最大權杖數",maxTokensLocalContext:"本地上下文最大權杖數",maxTokensLocalContextTooltip:"本地檢索中實體描述的最大權杖數",historyTurns:"歷史輪次",historyTurnsTooltip:"回應上下文中考慮的完整對話輪次(使用者-助手對)數量",historyTurnsPlaceholder:"歷史輪次數",hlKeywords:"進階關鍵字",hlKeywordsTooltip:"檢索中優先考慮的進階關鍵字清單。用逗號分隔",hlkeywordsPlaceHolder:"輸入關鍵字",llKeywords:"基礎關鍵字",llKeywordsTooltip:"用於細化檢索重點的基礎關鍵字清單。用逗號分隔",onlyNeedContext:"僅需上下文",onlyNeedContextTooltip:"如果為True僅回傳檢索到的上下文而不產生回應",onlyNeedPrompt:"僅需提示",onlyNeedPromptTooltip:"如果為True僅回傳產生的提示而不產生回應",streamResponse:"串流回應",streamResponseTooltip:"如果為True啟用即時串流輸出回應"}},x8e={loading:"正在載入 API 文件..."},S8e={title:"需要 API key",description:"請輸入您的 API key 以存取服務",placeholder:"請輸入 API key",save:"儲存"},w8e={settings:p8e,header:h8e,login:g8e,common:m8e,documentPanel:b8e,graphPanel:y8e,retrievePanel:v8e,apiSite:x8e,apiKeyAlert:S8e},E8e=()=>{var e;try{const t=localStorage.getItem("settings-storage");if(t)return((e=JSON.parse(t).state)==null?void 0:e.language)||"en"}catch(t){console.error("Failed to get stored language:",t)}return"en"};Yn.use(tce).init({resources:{en:{translation:Fqe},zh:{translation:Wqe},fr:{translation:n8e},ar:{translation:f8e},zh_TW:{translation:w8e}},lng:E8e(),fallbackLng:"en",interpolation:{escapeValue:!1},returnEmptyString:!1,returnNull:!1});Pe.subscribe(e=>{const t=e.language;Yn.language!==t&&Yn.changeLanguage(t)});Wre.createRoot(document.getElementById("root")).render(k.jsx(T.StrictMode,{children:k.jsx(sqe,{})}));export{sDe as $,Bf as A,gAe as B,sRe as C,zL as D,Kr as E,sK as F,rFe as G,gBe as H,a5 as I,g2e as J,EAe as K,wu as L,Z8e as M,tv as N,aL as O,Kz as P,dDe as Q,Cm as R,nFe as S,Hp as T,KAe as U,Up as V,Ze as W,ft as X,bK as Y,YMe as Z,z as _,tRe as a,SL as a$,w3 as a0,S3 as a1,l7e as a2,r7e as a3,o7e as a4,i7e as a5,t7e as a6,Dc as a7,_L as a8,s7e as a9,FIe as aA,PMe as aB,NL as aC,f5 as aD,YFe as aE,lDe as aF,Kn as aG,Gy as aH,z2e as aI,B2e as aJ,jl as aK,qMe as aL,sQ as aM,Xy as aN,ev as aO,Nb as aP,cQ as aQ,oQ as aR,SMe as aS,Vr as aT,ILe as aU,xL as aV,hZ as aW,Wp as aX,bZ as aY,e7e as aZ,$Te as a_,n7e as aa,u7e as ab,c7e as ac,a7e as ad,SPe as ae,dee as af,g7e as ag,b2e as ah,Vn as ai,Os as aj,bL as ak,zQ as al,Gl as am,gQ as an,vt as ao,Ii as ap,fBe as aq,h7e as ar,m7e as as,f7e as at,st as au,p7e as av,YPe as aw,GPe as ax,HPe as ay,GMe as az,eRe as b,ds as b0,g3 as b1,jLe as b2,pp as b3,HMe as b4,FMe as b5,EIe as b6,LL as b7,bMe as b8,VMe as b9,Yp as ba,Zu as bb,Tb as bc,AMe as bd,FBe as be,Vp as bf,Rb as bg,wMe as bh,eQ as bi,CIe as bj,TIe as bk,ll as bl,P3 as bm,AIe as bn,OL as bo,_Ie as bp,LIe as bq,Qu as br,Ls as bs,O3 as bt,DL as bu,nQ as bv,o2 as bw,WMe as bx,Jy as by,an as bz,Qt as c,Yt as d,mK as e,hr as f,rRe as g,To as h,Ll as i,H2e as j,Xu as k,Le as l,bQ as m,Q8e as n,y7e as o,aRe as p,iRe as q,b7e as r,nRe as s,m2e as t,Ri as u,$Pe as v,oFe as w,d7e as x,JAe as y,J8e as z};