var UZ=Object.defineProperty;var dB=t=>{throw TypeError(t)};var jZ=(t,e,n)=>e in t?UZ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Pn=(t,e,n)=>jZ(t,typeof e!="symbol"?e+"":e,n),CC=(t,e,n)=>e.has(t)||dB("Cannot "+n);var $=(t,e,n)=>(CC(t,e,"read from private field"),n?n.call(t):e.get(t)),Je=(t,e,n)=>e.has(t)?dB("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Pe=(t,e,n,r)=>(CC(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),$e=(t,e,n)=>(CC(t,e,"access private method"),n);var Qd=(t,e,n,r)=>({set _(i){Pe(t,e,i,n)},get _(){return $(t,e,r)}});function GZ(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function sl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function P5(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var OC={exports:{}},Og={};/**
 * @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 fB;function qZ(){if(fB)return Og;fB=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,a){var s=null;if(a!==void 0&&(s=""+a),i.key!==void 0&&(s=""+i.key),"key"in i){a={};for(var o in i)o!=="key"&&(a[o]=i[o])}else a=i;return i=a.ref,{$$typeof:t,type:r,key:s,ref:i!==void 0?i:null,props:a}}return Og.Fragment=e,Og.jsx=n,Og.jsxs=n,Og}var hB;function $Z(){return hB||(hB=1,OC.exports=qZ()),OC.exports}var l=$Z(),RC={exports:{}},Yt={};/**
 * @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 pB;function zZ(){if(pB)return Yt;pB=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function m(G){return G===null||typeof G!="object"?null:(G=p&&G[p]||G["@@iterator"],typeof G=="function"?G:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,S={};function y(G,Q,Z){this.props=G,this.context=Q,this.refs=S,this.updater=Z||g}y.prototype.isReactComponent={},y.prototype.setState=function(G,Q){if(typeof G!="object"&&typeof G!="function"&&G!=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,G,Q,"setState")},y.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function E(){}E.prototype=y.prototype;function T(G,Q,Z){this.props=G,this.context=Q,this.refs=S,this.updater=Z||g}var x=T.prototype=new E;x.constructor=T,b(x,y.prototype),x.isPureReactComponent=!0;var O=Array.isArray,C={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function w(G,Q,Z,X,ue,fe){return Z=fe.ref,{$$typeof:t,type:G,key:Q,ref:Z!==void 0?Z:null,props:fe}}function D(G,Q){return w(G.type,Q,void 0,void 0,void 0,G.props)}function L(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function U(G){var Q={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(Z){return Q[Z]})}var M=/\/+/g;function B(G,Q){return typeof G=="object"&&G!==null&&G.key!=null?U(""+G.key):Q.toString(36)}function Y(){}function H(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(Y,Y):(G.status="pending",G.then(function(Q){G.status==="pending"&&(G.status="fulfilled",G.value=Q)},function(Q){G.status==="pending"&&(G.status="rejected",G.reason=Q)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function F(G,Q,Z,X,ue){var fe=typeof G;(fe==="undefined"||fe==="boolean")&&(G=null);var be=!1;if(G===null)be=!0;else switch(fe){case"bigint":case"string":case"number":be=!0;break;case"object":switch(G.$$typeof){case t:case e:be=!0;break;case f:return be=G._init,F(be(G._payload),Q,Z,X,ue)}}if(be)return ue=ue(G),be=X===""?"."+B(G,0):X,O(ue)?(Z="",be!=null&&(Z=be.replace(M,"$&/")+"/"),F(ue,Q,Z,"",function(ke){return ke})):ue!=null&&(L(ue)&&(ue=D(ue,Z+(ue.key==null||G&&G.key===ue.key?"":(""+ue.key).replace(M,"$&/")+"/")+be)),Q.push(ue)),1;be=0;var ye=X===""?".":X+":";if(O(G))for(var Ne=0;Ne<G.length;Ne++)X=G[Ne],fe=ye+B(X,Ne),be+=F(X,Q,Z,fe,ue);else if(Ne=m(G),typeof Ne=="function")for(G=Ne.call(G),Ne=0;!(X=G.next()).done;)X=X.value,fe=ye+B(X,Ne++),be+=F(X,Q,Z,fe,ue);else if(fe==="object"){if(typeof G.then=="function")return F(H(G),Q,Z,X,ue);throw Q=String(G),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return be}function k(G,Q,Z){if(G==null)return G;var X=[],ue=0;return F(G,X,"","",function(fe){return Q.call(Z,fe,ue++)}),X}function P(G){if(G._status===-1){var Q=G._result;Q=Q(),Q.then(function(Z){(G._status===0||G._status===-1)&&(G._status=1,G._result=Z)},function(Z){(G._status===0||G._status===-1)&&(G._status=2,G._result=Z)}),G._status===-1&&(G._status=0,G._result=Q)}if(G._status===1)return G._result.default;throw G._result}var z=typeof reportError=="function"?reportError:function(G){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof G=="object"&&G!==null&&typeof G.message=="string"?String(G.message):String(G),error:G});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",G);return}console.error(G)};function V(){}return Yt.Children={map:k,forEach:function(G,Q,Z){k(G,function(){Q.apply(this,arguments)},Z)},count:function(G){var Q=0;return k(G,function(){Q++}),Q},toArray:function(G){return k(G,function(Q){return Q})||[]},only:function(G){if(!L(G))throw Error("React.Children.only expected to receive a single React element child.");return G}},Yt.Component=y,Yt.Fragment=n,Yt.Profiler=i,Yt.PureComponent=T,Yt.StrictMode=r,Yt.Suspense=c,Yt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,Yt.__COMPILER_RUNTIME={__proto__:null,c:function(G){return C.H.useMemoCache(G)}},Yt.cache=function(G){return function(){return G.apply(null,arguments)}},Yt.cloneElement=function(G,Q,Z){if(G==null)throw Error("The argument must be a React element, but you passed "+G+".");var X=b({},G.props),ue=G.key,fe=void 0;if(Q!=null)for(be in Q.ref!==void 0&&(fe=void 0),Q.key!==void 0&&(ue=""+Q.key),Q)!N.call(Q,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&Q.ref===void 0||(X[be]=Q[be]);var be=arguments.length-2;if(be===1)X.children=Z;else if(1<be){for(var ye=Array(be),Ne=0;Ne<be;Ne++)ye[Ne]=arguments[Ne+2];X.children=ye}return w(G.type,ue,void 0,void 0,fe,X)},Yt.createContext=function(G){return G={$$typeof:s,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null},G.Provider=G,G.Consumer={$$typeof:a,_context:G},G},Yt.createElement=function(G,Q,Z){var X,ue={},fe=null;if(Q!=null)for(X in Q.key!==void 0&&(fe=""+Q.key),Q)N.call(Q,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(ue[X]=Q[X]);var be=arguments.length-2;if(be===1)ue.children=Z;else if(1<be){for(var ye=Array(be),Ne=0;Ne<be;Ne++)ye[Ne]=arguments[Ne+2];ue.children=ye}if(G&&G.defaultProps)for(X in be=G.defaultProps,be)ue[X]===void 0&&(ue[X]=be[X]);return w(G,fe,void 0,void 0,null,ue)},Yt.createRef=function(){return{current:null}},Yt.forwardRef=function(G){return{$$typeof:o,render:G}},Yt.isValidElement=L,Yt.lazy=function(G){return{$$typeof:f,_payload:{_status:-1,_result:G},_init:P}},Yt.memo=function(G,Q){return{$$typeof:d,type:G,compare:Q===void 0?null:Q}},Yt.startTransition=function(G){var Q=C.T,Z={};C.T=Z;try{var X=G(),ue=C.S;ue!==null&&ue(Z,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(V,z)}catch(fe){z(fe)}finally{C.T=Q}},Yt.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Yt.use=function(G){return C.H.use(G)},Yt.useActionState=function(G,Q,Z){return C.H.useActionState(G,Q,Z)},Yt.useCallback=function(G,Q){return C.H.useCallback(G,Q)},Yt.useContext=function(G){return C.H.useContext(G)},Yt.useDebugValue=function(){},Yt.useDeferredValue=function(G,Q){return C.H.useDeferredValue(G,Q)},Yt.useEffect=function(G,Q,Z){var X=C.H;if(typeof Z=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return X.useEffect(G,Q)},Yt.useId=function(){return C.H.useId()},Yt.useImperativeHandle=function(G,Q,Z){return C.H.useImperativeHandle(G,Q,Z)},Yt.useInsertionEffect=function(G,Q){return C.H.useInsertionEffect(G,Q)},Yt.useLayoutEffect=function(G,Q){return C.H.useLayoutEffect(G,Q)},Yt.useMemo=function(G,Q){return C.H.useMemo(G,Q)},Yt.useOptimistic=function(G,Q){return C.H.useOptimistic(G,Q)},Yt.useReducer=function(G,Q,Z){return C.H.useReducer(G,Q,Z)},Yt.useRef=function(G){return C.H.useRef(G)},Yt.useState=function(G){return C.H.useState(G)},Yt.useSyncExternalStore=function(G,Q,Z){return C.H.useSyncExternalStore(G,Q,Z)},Yt.useTransition=function(){return C.H.useTransition()},Yt.version="19.1.0",Yt}var mB;function h0(){return mB||(mB=1,RC.exports=zZ()),RC.exports}var I=h0();const On=sl(I),YZ=GZ({__proto__:null,default:On},[I]);var NC={exports:{}},Rg={},AC={exports:{}},wC={};/**
 * @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 gB;function HZ(){return gB||(gB=1,function(t){function e(k,P){var z=k.length;k.push(P);e:for(;0<z;){var V=z-1>>>1,G=k[V];if(0<i(G,P))k[V]=P,k[z]=G,z=V;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var P=k[0],z=k.pop();if(z!==P){k[0]=z;e:for(var V=0,G=k.length,Q=G>>>1;V<Q;){var Z=2*(V+1)-1,X=k[Z],ue=Z+1,fe=k[ue];if(0>i(X,z))ue<G&&0>i(fe,X)?(k[V]=fe,k[ue]=z,V=ue):(k[V]=X,k[Z]=z,V=Z);else if(ue<G&&0>i(fe,z))k[V]=fe,k[ue]=z,V=ue;else break e}}return P}function i(k,P){var z=k.sortIndex-P.sortIndex;return z!==0?z:k.id-P.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();t.unstable_now=function(){return s.now()-o}}var c=[],d=[],f=1,p=null,m=3,g=!1,b=!1,S=!1,y=!1,E=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function O(k){for(var P=n(d);P!==null;){if(P.callback===null)r(d);else if(P.startTime<=k)r(d),P.sortIndex=P.expirationTime,e(c,P);else break;P=n(d)}}function C(k){if(S=!1,O(k),!b)if(n(c)!==null)b=!0,N||(N=!0,B());else{var P=n(d);P!==null&&F(C,P.startTime-k)}}var N=!1,w=-1,D=5,L=-1;function U(){return y?!0:!(t.unstable_now()-L<D)}function M(){if(y=!1,N){var k=t.unstable_now();L=k;var P=!0;try{e:{b=!1,S&&(S=!1,T(w),w=-1),g=!0;var z=m;try{t:{for(O(k),p=n(c);p!==null&&!(p.expirationTime>k&&U());){var V=p.callback;if(typeof V=="function"){p.callback=null,m=p.priorityLevel;var G=V(p.expirationTime<=k);if(k=t.unstable_now(),typeof G=="function"){p.callback=G,O(k),P=!0;break t}p===n(c)&&r(c),O(k)}else r(c);p=n(c)}if(p!==null)P=!0;else{var Q=n(d);Q!==null&&F(C,Q.startTime-k),P=!1}}break e}finally{p=null,m=z,g=!1}P=void 0}}finally{P?B():N=!1}}}var B;if(typeof x=="function")B=function(){x(M)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,H=Y.port2;Y.port1.onmessage=M,B=function(){H.postMessage(null)}}else B=function(){E(M,0)};function F(k,P){w=E(function(){k(t.unstable_now())},P)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(k){k.callback=null},t.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<k?Math.floor(1e3/k):5},t.unstable_getCurrentPriorityLevel=function(){return m},t.unstable_next=function(k){switch(m){case 1:case 2:case 3:var P=3;break;default:P=m}var z=m;m=P;try{return k()}finally{m=z}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(k,P){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var z=m;m=k;try{return P()}finally{m=z}},t.unstable_scheduleCallback=function(k,P,z){var V=t.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?V+z:V):z=V,k){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=z+G,k={id:f++,callback:P,priorityLevel:k,startTime:z,expirationTime:G,sortIndex:-1},z>V?(k.sortIndex=z,e(d,k),n(c)===null&&k===n(d)&&(S?(T(w),w=-1):S=!0,F(C,z-V))):(k.sortIndex=G,e(c,k),b||g||(b=!0,N||(N=!0,B()))),k},t.unstable_shouldYield=U,t.unstable_wrapCallback=function(k){var P=m;return function(){var z=m;m=P;try{return k.apply(this,arguments)}finally{m=z}}}}(wC)),wC}var _B;function VZ(){return _B||(_B=1,AC.exports=HZ()),AC.exports}var IC={exports:{}},fa={};/**
 * @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 bB;function WZ(){if(bB)return fa;bB=1;var t=h0();function e(c){var d="https://react.dev/errors/"+c;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)d+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+c+"; visit "+d+" 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(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(c,d,f){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:c,containerInfo:d,implementation:f}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(c,d){if(c==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return fa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fa.createPortal=function(c,d){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(e(299));return a(c,d,null,f)},fa.flushSync=function(c){var d=s.T,f=r.p;try{if(s.T=null,r.p=2,c)return c()}finally{s.T=d,r.p=f,r.d.f()}},fa.preconnect=function(c,d){typeof c=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(c,d))},fa.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},fa.preinit=function(c,d){if(typeof c=="string"&&d&&typeof d.as=="string"){var f=d.as,p=o(f,d.crossOrigin),m=typeof d.integrity=="string"?d.integrity:void 0,g=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;f==="style"?r.d.S(c,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:m,fetchPriority:g}):f==="script"&&r.d.X(c,{crossOrigin:p,integrity:m,fetchPriority:g,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},fa.preinitModule=function(c,d){if(typeof c=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var f=o(d.as,d.crossOrigin);r.d.M(c,{crossOrigin:f,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(c)},fa.preload=function(c,d){if(typeof c=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var f=d.as,p=o(f,d.crossOrigin);r.d.L(c,f,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},fa.preloadModule=function(c,d){if(typeof c=="string")if(d){var f=o(d.as,d.crossOrigin);r.d.m(c,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:f,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(c)},fa.requestFormReset=function(c){r.d.r(c)},fa.unstable_batchedUpdates=function(c,d){return c(d)},fa.useFormState=function(c,d,f){return s.H.useFormState(c,d,f)},fa.useFormStatus=function(){return s.H.useHostTransitionStatus()},fa.version="19.1.0",fa}var vB;function B5(){if(vB)return IC.exports;vB=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),IC.exports=WZ(),IC.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 SB;function QZ(){if(SB)return Rg;SB=1;var t=VZ(),e=h0(),n=B5();function r(u){var h="https://react.dev/errors/"+u;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)h+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+u+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function a(u){var h=u,_=u;if(u.alternate)for(;h.return;)h=h.return;else{u=h;do h=u,(h.flags&4098)!==0&&(_=h.return),u=h.return;while(u)}return h.tag===3?_:null}function s(u){if(u.tag===13){var h=u.memoizedState;if(h===null&&(u=u.alternate,u!==null&&(h=u.memoizedState)),h!==null)return h.dehydrated}return null}function o(u){if(a(u)!==u)throw Error(r(188))}function c(u){var h=u.alternate;if(!h){if(h=a(u),h===null)throw Error(r(188));return h!==u?null:u}for(var _=u,v=h;;){var R=_.return;if(R===null)break;var A=R.alternate;if(A===null){if(v=R.return,v!==null){_=v;continue}break}if(R.child===A.child){for(A=R.child;A;){if(A===_)return o(R),u;if(A===v)return o(R),h;A=A.sibling}throw Error(r(188))}if(_.return!==v.return)_=R,v=A;else{for(var q=!1,K=R.child;K;){if(K===_){q=!0,_=R,v=A;break}if(K===v){q=!0,v=R,_=A;break}K=K.sibling}if(!q){for(K=A.child;K;){if(K===_){q=!0,_=A,v=R;break}if(K===v){q=!0,v=A,_=R;break}K=K.sibling}if(!q)throw Error(r(189))}}if(_.alternate!==v)throw Error(r(190))}if(_.tag!==3)throw Error(r(188));return _.stateNode.current===_?u:h}function d(u){var h=u.tag;if(h===5||h===26||h===27||h===6)return u;for(u=u.child;u!==null;){if(h=d(u),h!==null)return h;u=u.sibling}return null}var f=Object.assign,p=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),T=Symbol.for("react.consumer"),x=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),M=Symbol.iterator;function B(u){return u===null||typeof u!="object"?null:(u=M&&u[M]||u["@@iterator"],typeof u=="function"?u:null)}var Y=Symbol.for("react.client.reference");function H(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===Y?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case b:return"Fragment";case y:return"Profiler";case S:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case L:return"Activity"}if(typeof u=="object")switch(u.$$typeof){case g:return"Portal";case x:return(u.displayName||"Context")+".Provider";case T:return(u._context.displayName||"Context")+".Consumer";case O:var h=u.render;return u=u.displayName,u||(u=h.displayName||h.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case w:return h=u.displayName||null,h!==null?h:H(u.type)||"Memo";case D:h=u._payload,u=u._init;try{return H(u(h))}catch{}}return null}var F=Array.isArray,k=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},V=[],G=-1;function Q(u){return{current:u}}function Z(u){0>G||(u.current=V[G],V[G]=null,G--)}function X(u,h){G++,V[G]=u.current,u.current=h}var ue=Q(null),fe=Q(null),be=Q(null),ye=Q(null);function Ne(u,h){switch(X(be,h),X(fe,u),X(ue,null),h.nodeType){case 9:case 11:u=(u=h.documentElement)&&(u=u.namespaceURI)?U3(u):0;break;default:if(u=h.tagName,h=h.namespaceURI)h=U3(h),u=j3(h,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}Z(ue),X(ue,u)}function ke(){Z(ue),Z(fe),Z(be)}function Oe(u){u.memoizedState!==null&&X(ye,u);var h=ue.current,_=j3(h,u.type);h!==_&&(X(fe,u),X(ue,_))}function oe(u){fe.current===u&&(Z(ue),Z(fe)),ye.current===u&&(Z(ye),Eg._currentValue=z)}var Se=Object.prototype.hasOwnProperty,le=t.unstable_scheduleCallback,Ge=t.unstable_cancelCallback,lt=t.unstable_shouldYield,xt=t.unstable_requestPaint,Ae=t.unstable_now,Be=t.unstable_getCurrentPriorityLevel,Xe=t.unstable_ImmediatePriority,je=t.unstable_UserBlockingPriority,Ze=t.unstable_NormalPriority,Et=t.unstable_LowPriority,vt=t.unstable_IdlePriority,xe=t.log,Re=t.unstable_setDisableYieldValue,et=null,yt=null;function Mt(u){if(typeof xe=="function"&&Re(u),yt&&typeof yt.setStrictMode=="function")try{yt.setStrictMode(et,u)}catch{}}var kt=Math.clz32?Math.clz32:Fn,Zt=Math.log,zt=Math.LN2;function Fn(u){return u>>>=0,u===0?32:31-(Zt(u)/zt|0)|0}var Hn=256,Lt=4194304;function Jt(u){var h=u&42;if(h!==0)return h;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:return 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&4194048;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 si(u,h,_){var v=u.pendingLanes;if(v===0)return 0;var R=0,A=u.suspendedLanes,q=u.pingedLanes;u=u.warmLanes;var K=v&134217727;return K!==0?(v=K&~A,v!==0?R=Jt(v):(q&=K,q!==0?R=Jt(q):_||(_=K&~u,_!==0&&(R=Jt(_))))):(K=v&~A,K!==0?R=Jt(K):q!==0?R=Jt(q):_||(_=v&~u,_!==0&&(R=Jt(_)))),R===0?0:h!==0&&h!==R&&(h&A)===0&&(A=R&-R,_=h&-h,A>=_||A===32&&(_&4194048)!==0)?h:R}function Nr(u,h){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&h)===0}function $t(u,h){switch(u){case 1:case 2:case 4:case 8:case 64:return h+250;case 16:case 32: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 h+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 Fr(){var u=Hn;return Hn<<=1,(Hn&4194048)===0&&(Hn=256),u}function Vn(){var u=Lt;return Lt<<=1,(Lt&62914560)===0&&(Lt=4194304),u}function xr(u){for(var h=[],_=0;31>_;_++)h.push(u);return h}function ya(u,h){u.pendingLanes|=h,h!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function Ga(u,h,_,v,R,A){var q=u.pendingLanes;u.pendingLanes=_,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=_,u.entangledLanes&=_,u.errorRecoveryDisabledLanes&=_,u.shellSuspendCounter=0;var K=u.entanglements,te=u.expirationTimes,_e=u.hiddenUpdates;for(_=q&~_;0<_;){var Ie=31-kt(_),Ue=1<<Ie;K[Ie]=0,te[Ie]=-1;var Ee=_e[Ie];if(Ee!==null)for(_e[Ie]=null,Ie=0;Ie<Ee.length;Ie++){var Ce=Ee[Ie];Ce!==null&&(Ce.lane&=-536870913)}_&=~Ue}v!==0&&ne(u,v,0),A!==0&&R===0&&u.tag!==0&&(u.suspendedLanes|=A&~(q&~h))}function ne(u,h,_){u.pendingLanes|=h,u.suspendedLanes&=~h;var v=31-kt(h);u.entangledLanes|=h,u.entanglements[v]=u.entanglements[v]|1073741824|_&4194090}function we(u,h){var _=u.entangledLanes|=h;for(u=u.entanglements;_;){var v=31-kt(_),R=1<<v;R&h|u[v]&h&&(u[v]|=h),_&=~R}}function Ke(u){switch(u){case 2:u=1;break;case 8:u=4;break;case 32:u=16;break;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:u=128;break;case 268435456:u=134217728;break;default:u=0}return u}function ct(u){return u&=-u,2<u?8<u?(u&134217727)!==0?32:268435456:8:2}function gn(){var u=P.p;return u!==0?u:(u=window.event,u===void 0?32:aB(u.type))}function vn(u,h){var _=P.p;try{return P.p=u,h()}finally{P.p=_}}var We=Math.random().toString(36).slice(2),ze="__reactFiber$"+We,dt="__reactProps$"+We,_n="__reactContainer$"+We,en="__reactEvents$"+We,Ta="__reactListeners$"+We,ss="__reactHandles$"+We,ll="__reactResources$"+We,go="__reactMarker$"+We;function cl(u){delete u[ze],delete u[dt],delete u[en],delete u[Ta],delete u[ss]}function _o(u){var h=u[ze];if(h)return h;for(var _=u.parentNode;_;){if(h=_[_n]||_[ze]){if(_=h.alternate,h.child!==null||_!==null&&_.child!==null)for(u=z3(u);u!==null;){if(_=u[ze])return _;u=z3(u)}return h}u=_,_=u.parentNode}return null}function ji(u){if(u=u[ze]||u[_n]){var h=u.tag;if(h===5||h===6||h===13||h===26||h===27||h===3)return u}return null}function ul(u){var h=u.tag;if(h===5||h===26||h===27||h===6)return u.stateNode;throw Error(r(33))}function ra(u){var h=u[ll];return h||(h=u[ll]={hoistableStyles:new Map,hoistableScripts:new Map}),h}function Wn(u){u[go]=!0}var qa=new Set,Cr={};function In(u,h){Un(u,h),Un(u+"Capture",h)}function Un(u,h){for(Cr[u]=h,u=0;u<h.length;u++)qa.add(h[u])}var ia=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]*$"),Ti={},Ls={};function Ad(u){return Se.call(Ls,u)?!0:Se.call(Ti,u)?!1:ia.test(u)?Ls[u]=!0:(Ti[u]=!0,!1)}function bo(u,h,_){if(Ad(h))if(_===null)u.removeAttribute(h);else{switch(typeof _){case"undefined":case"function":case"symbol":u.removeAttribute(h);return;case"boolean":var v=h.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){u.removeAttribute(h);return}}u.setAttribute(h,""+_)}}function ks(u,h,_){if(_===null)u.removeAttribute(h);else{switch(typeof _){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(h);return}u.setAttribute(h,""+_)}}function Ar(u,h,_,v){if(v===null)u.removeAttribute(_);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(_);return}u.setAttributeNS(h,_,""+v)}}var dl,Ye;function _t(u){if(dl===void 0)try{throw Error()}catch(_){var h=_.stack.trim().match(/\n( *(at )?)/);dl=h&&h[1]||"",Ye=-1<_.stack.indexOf(`
    at`)?" (<anonymous>)":-1<_.stack.indexOf("@")?"@unknown:0:0":""}return`
`+dl+u+Ye}var Gt=!1;function dn(u,h){if(!u||Gt)return"";Gt=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(h){var Ue=function(){throw Error()};if(Object.defineProperty(Ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ue,[])}catch(Ce){var Ee=Ce}Reflect.construct(u,[],Ue)}else{try{Ue.call()}catch(Ce){Ee=Ce}u.call(Ue.prototype)}}else{try{throw Error()}catch(Ce){Ee=Ce}(Ue=u())&&typeof Ue.catch=="function"&&Ue.catch(function(){})}}catch(Ce){if(Ce&&Ee&&typeof Ce.stack=="string")return[Ce.stack,Ee.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var R=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");R&&R.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var A=v.DetermineComponentFrameRoot(),q=A[0],K=A[1];if(q&&K){var te=q.split(`
`),_e=K.split(`
`);for(R=v=0;v<te.length&&!te[v].includes("DetermineComponentFrameRoot");)v++;for(;R<_e.length&&!_e[R].includes("DetermineComponentFrameRoot");)R++;if(v===te.length||R===_e.length)for(v=te.length-1,R=_e.length-1;1<=v&&0<=R&&te[v]!==_e[R];)R--;for(;1<=v&&0<=R;v--,R--)if(te[v]!==_e[R]){if(v!==1||R!==1)do if(v--,R--,0>R||te[v]!==_e[R]){var Ie=`
`+te[v].replace(" at new "," at ");return u.displayName&&Ie.includes("<anonymous>")&&(Ie=Ie.replace("<anonymous>",u.displayName)),Ie}while(1<=v&&0<=R);break}}}finally{Gt=!1,Error.prepareStackTrace=_}return(_=u?u.displayName||u.name:"")?_t(_):""}function nr(u){switch(u.tag){case 26:case 27:case 5:return _t(u.type);case 16:return _t("Lazy");case 13:return _t("Suspense");case 19:return _t("SuspenseList");case 0:case 15:return dn(u.type,!1);case 11:return dn(u.type.render,!1);case 1:return dn(u.type,!0);case 31:return _t("Activity");default:return""}}function oi(u){try{var h="";do h+=nr(u),u=u.return;while(u);return h}catch(_){return`
Error generating stack: `+_.message+`
`+_.stack}}function an(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function vo(u){var h=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function li(u){var h=vo(u)?"checked":"value",_=Object.getOwnPropertyDescriptor(u.constructor.prototype,h),v=""+u[h];if(!u.hasOwnProperty(h)&&typeof _<"u"&&typeof _.get=="function"&&typeof _.set=="function"){var R=_.get,A=_.set;return Object.defineProperty(u,h,{configurable:!0,get:function(){return R.call(this)},set:function(q){v=""+q,A.call(this,q)}}),Object.defineProperty(u,h,{enumerable:_.enumerable}),{getValue:function(){return v},setValue:function(q){v=""+q},stopTracking:function(){u._valueTracker=null,delete u[h]}}}}function zr(u){u._valueTracker||(u._valueTracker=li(u))}function tc(u){if(!u)return!1;var h=u._valueTracker;if(!h)return!0;var _=h.getValue(),v="";return u&&(v=vo(u)?u.checked?"true":"false":u.value),u=v,u!==_?(h.setValue(u),!0):!1}function fl(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 wd=/[\n"\\]/g;function Gi(u){return u.replace(wd,function(h){return"\\"+h.charCodeAt(0).toString(16)+" "})}function nc(u,h,_,v,R,A,q,K){u.name="",q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?u.type=q:u.removeAttribute("type"),h!=null?q==="number"?(h===0&&u.value===""||u.value!=h)&&(u.value=""+an(h)):u.value!==""+an(h)&&(u.value=""+an(h)):q!=="submit"&&q!=="reset"||u.removeAttribute("value"),h!=null?su(u,q,an(h)):_!=null?su(u,q,an(_)):v!=null&&u.removeAttribute("value"),R==null&&A!=null&&(u.defaultChecked=!!A),R!=null&&(u.checked=R&&typeof R!="function"&&typeof R!="symbol"),K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"?u.name=""+an(K):u.removeAttribute("name")}function au(u,h,_,v,R,A,q,K){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(u.type=A),h!=null||_!=null){if(!(A!=="submit"&&A!=="reset"||h!=null))return;_=_!=null?""+an(_):"",h=h!=null?""+an(h):_,K||h===u.value||(u.value=h),u.defaultValue=h}v=v??R,v=typeof v!="function"&&typeof v!="symbol"&&!!v,u.checked=K?u.checked:!!v,u.defaultChecked=!!v,q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"&&(u.name=q)}function su(u,h,_){h==="number"&&fl(u.ownerDocument)===u||u.defaultValue===""+_||(u.defaultValue=""+_)}function aa(u,h,_,v){if(u=u.options,h){h={};for(var R=0;R<_.length;R++)h["$"+_[R]]=!0;for(_=0;_<u.length;_++)R=h.hasOwnProperty("$"+u[_].value),u[_].selected!==R&&(u[_].selected=R),R&&v&&(u[_].defaultSelected=!0)}else{for(_=""+an(_),h=null,R=0;R<u.length;R++){if(u[R].value===_){u[R].selected=!0,v&&(u[R].defaultSelected=!0);return}h!==null||u[R].disabled||(h=u[R])}h!==null&&(h.selected=!0)}}function So(u,h,_){if(h!=null&&(h=""+an(h),h!==u.value&&(u.value=h),_==null)){u.defaultValue!==h&&(u.defaultValue=h);return}u.defaultValue=_!=null?""+an(_):""}function Yr(u,h,_,v){if(h==null){if(v!=null){if(_!=null)throw Error(r(92));if(F(v)){if(1<v.length)throw Error(r(93));v=v[0]}_=v}_==null&&(_=""),h=_}_=an(h),u.defaultValue=_,v=u.textContent,v===_&&v!==""&&v!==null&&(u.value=v)}function xa(u,h){if(h){var _=u.firstChild;if(_&&_===u.lastChild&&_.nodeType===3){_.nodeValue=h;return}}u.textContent=h}var rc=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 At(u,h,_){var v=h.indexOf("--")===0;_==null||typeof _=="boolean"||_===""?v?u.setProperty(h,""):h==="float"?u.cssFloat="":u[h]="":v?u.setProperty(h,_):typeof _!="number"||_===0||rc.has(h)?h==="float"?u.cssFloat=_:u[h]=(""+_).trim():u[h]=_+"px"}function ic(u,h,_){if(h!=null&&typeof h!="object")throw Error(r(62));if(u=u.style,_!=null){for(var v in _)!_.hasOwnProperty(v)||h!=null&&h.hasOwnProperty(v)||(v.indexOf("--")===0?u.setProperty(v,""):v==="float"?u.cssFloat="":u[v]="");for(var R in h)v=h[R],h.hasOwnProperty(R)&&_[R]!==v&&At(u,R,v)}else for(var A in h)h.hasOwnProperty(A)&&At(u,A,h[A])}function rr(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 Sn=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"]]),sa=/^[\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 ci(u){return sa.test(""+u)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":u}var os=null;function oa(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var Qe=null,it=null;function Bt(u){var h=ji(u);if(h&&(u=h.stateNode)){var _=u[dt]||null;e:switch(u=h.stateNode,h.type){case"input":if(nc(u,_.value,_.defaultValue,_.defaultValue,_.checked,_.defaultChecked,_.type,_.name),h=_.name,_.type==="radio"&&h!=null){for(_=u;_.parentNode;)_=_.parentNode;for(_=_.querySelectorAll('input[name="'+Gi(""+h)+'"][type="radio"]'),h=0;h<_.length;h++){var v=_[h];if(v!==u&&v.form===u.form){var R=v[dt]||null;if(!R)throw Error(r(90));nc(v,R.value,R.defaultValue,R.defaultValue,R.checked,R.defaultChecked,R.type,R.name)}}for(h=0;h<_.length;h++)v=_[h],v.form===u.form&&tc(v)}break e;case"textarea":So(u,_.value,_.defaultValue);break e;case"select":h=_.value,h!=null&&aa(u,!!_.multiple,h,!1)}}}var Qt=!1;function ir(u,h,_){if(Qt)return u(h,_);Qt=!0;try{var v=u(h);return v}finally{if(Qt=!1,(Qe!==null||it!==null)&&(Lb(),Qe&&(h=Qe,u=it,it=Qe=null,Bt(h),u)))for(h=0;h<u.length;h++)Bt(u[h])}}function Hr(u,h){var _=u.stateNode;if(_===null)return null;var v=_[dt]||null;if(v===null)return null;_=v[h];e:switch(h){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(_&&typeof _!="function")throw Error(r(231,h,typeof _));return _}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ps=!1;if(la)try{var Bs={};Object.defineProperty(Bs,"passive",{get:function(){Ps=!0}}),window.addEventListener("test",Bs,Bs),window.removeEventListener("test",Bs,Bs)}catch{Ps=!1}var Eo=null,ah=null,yo=null;function ac(){if(yo)return yo;var u,h=ah,_=h.length,v,R="value"in Eo?Eo.value:Eo.textContent,A=R.length;for(u=0;u<_&&h[u]===R[u];u++);var q=_-u;for(v=1;v<=q&&h[_-v]===R[A-v];v++);return yo=R.slice(u,1<v?1-v:void 0)}function Id(u){var h=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&h===13&&(u=13)):u=h,u===10&&(u=13),32<=u||u===13?u:0}function Dd(){return!0}function jn(){return!1}function Kt(u){function h(_,v,R,A,q){this._reactName=_,this._targetInst=R,this.type=v,this.nativeEvent=A,this.target=q,this.currentTarget=null;for(var K in u)u.hasOwnProperty(K)&&(_=u[K],this[K]=_?_(A):A[K]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?Dd:jn,this.isPropagationStopped=jn,this}return f(h.prototype,{preventDefault:function(){this.defaultPrevented=!0;var _=this.nativeEvent;_&&(_.preventDefault?_.preventDefault():typeof _.returnValue!="unknown"&&(_.returnValue=!1),this.isDefaultPrevented=Dd)},stopPropagation:function(){var _=this.nativeEvent;_&&(_.stopPropagation?_.stopPropagation():typeof _.cancelBubble!="unknown"&&(_.cancelBubble=!0),this.isPropagationStopped=Dd)},persist:function(){},isPersistent:Dd}),h}var ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wr=Kt(ca),_r=f({},ca,{view:0,detail:0}),Vr=Kt(_r),Dn,hl,pl,sh=f({},_r,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oc,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!==pl&&(pl&&u.type==="mousemove"?(Dn=u.screenX-pl.screenX,hl=u.screenY-pl.screenY):hl=Dn=0,pl=u),Dn)},movementY:function(u){return"movementY"in u?u.movementY:hl}}),To=Kt(sh),Fs=f({},sh,{dataTransfer:0}),kT=Kt(Fs),PT=f({},_r,{relatedTarget:0}),Mm=Kt(PT),BT=f({},ca,{animationName:0,elapsedTime:0,pseudoElement:0}),xo=Kt(BT),ml=f({},ca,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),sc=Kt(ml),ou=f({},ca,{data:0}),H0=Kt(ou),Us={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FT={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"},V0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function W0(u){var h=this.nativeEvent;return h.getModifierState?h.getModifierState(u):(u=V0[u])?!!h[u]:!1}function oc(){return W0}var Md=f({},_r,{key:function(u){if(u.key){var h=Us[u.key]||u.key;if(h!=="Unidentified")return h}return u.type==="keypress"?(u=Id(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?FT[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oc,charCode:function(u){return u.type==="keypress"?Id(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?Id(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),UT=Kt(Md),Lm=f({},sh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Q0=Kt(Lm),lc=f({},_r,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oc}),gl=Kt(lc),Ld=f({},ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),K0=Kt(Ld),km=f({},sh,{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}),Pm=Kt(km),Bm=f({},ca,{newState:0,oldState:0}),X0=Kt(Bm),Z0=[9,13,27,32],oh=la&&"CompositionEvent"in window,lu=null;la&&"documentMode"in document&&(lu=document.documentMode);var J0=la&&"TextEvent"in window&&!lu,Fm=la&&(!oh||lu&&8<lu&&11>=lu),eb=" ",Um=!1;function jm(u,h){switch(u){case"keyup":return Z0.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cc(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Co=!1;function Wr(u,h){switch(u){case"compositionend":return cc(h);case"keypress":return h.which!==32?null:(Um=!0,eb);case"textInput":return u=h.data,u===eb&&Um?null:u;default:return null}}function tb(u,h){if(Co)return u==="compositionend"||!oh&&jm(u,h)?(u=ac(),yo=ah=Eo=null,Co=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1<h.char.length)return h.char;if(h.which)return String.fromCharCode(h.which)}return null;case"compositionend":return Fm&&h.locale!=="ko"?null:h.data;default:return null}}var Ir={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 Gm(u){var h=u&&u.nodeName&&u.nodeName.toLowerCase();return h==="input"?!!Ir[u.type]:h==="textarea"}function lh(u,h,_,v){Qe?it?it.push(v):it=[v]:Qe=v,h=jb(h,"onChange"),0<h.length&&(_=new wr("onChange","change",null,_,v),u.push({event:_,listeners:h}))}var Oo=null,kd=null;function jT(u){L3(u,0)}function cu(u){var h=ul(u);if(tc(h))return u}function j(u,h){if(u==="change")return h}var W=!1;if(la){var J;if(la){var ee="oninput"in document;if(!ee){var ae=document.createElement("div");ae.setAttribute("oninput","return;"),ee=typeof ae.oninput=="function"}J=ee}else J=!1;W=J&&(!document.documentMode||9<document.documentMode)}function ge(){Oo&&(Oo.detachEvent("onpropertychange",De),kd=Oo=null)}function De(u){if(u.propertyName==="value"&&cu(kd)){var h=[];lh(h,kd,u,oa(u)),ir(jT,h)}}function qe(u,h,_){u==="focusin"?(ge(),Oo=h,kd=_,Oo.attachEvent("onpropertychange",De)):u==="focusout"&&ge()}function He(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return cu(kd)}function at(u,h){if(u==="click")return cu(h)}function st(u,h){if(u==="input"||u==="change")return cu(h)}function mt(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var Ct=typeof Object.is=="function"?Object.is:mt;function sn(u,h){if(Ct(u,h))return!0;if(typeof u!="object"||u===null||typeof h!="object"||h===null)return!1;var _=Object.keys(u),v=Object.keys(h);if(_.length!==v.length)return!1;for(v=0;v<_.length;v++){var R=_[v];if(!Se.call(h,R)||!Ct(u[R],h[R]))return!1}return!0}function fn(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function Wt(u,h){var _=fn(u);u=0;for(var v;_;){if(_.nodeType===3){if(v=u+_.textContent.length,u<=h&&v>=h)return{node:_,offset:h-u};u=v}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=fn(_)}}function wt(u,h){return u&&h?u===h?!0:u&&u.nodeType===3?!1:h&&h.nodeType===3?wt(u,h.parentNode):"contains"in u?u.contains(h):u.compareDocumentPosition?!!(u.compareDocumentPosition(h)&16):!1:!1}function Tt(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var h=fl(u.document);h instanceof u.HTMLIFrameElement;){try{var _=typeof h.contentWindow.location.href=="string"}catch{_=!1}if(_)u=h.contentWindow;else break;h=fl(u.document)}return h}function Mn(u){var h=u&&u.nodeName&&u.nodeName.toLowerCase();return h&&(h==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||h==="textarea"||u.contentEditable==="true")}var br=la&&"documentMode"in document&&11>=document.documentMode,or=null,En=null,Gn=null,qi=!1;function xi(u,h,_){var v=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;qi||or==null||or!==fl(v)||(v=or,"selectionStart"in v&&Mn(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}),Gn&&sn(Gn,v)||(Gn=v,v=jb(En,"onSelect"),0<v.length&&(h=new wr("onSelect","select",null,h,_),u.push({event:h,listeners:v}),h.target=or)))}function Qr(u,h){var _={};return _[u.toLowerCase()]=h.toLowerCase(),_["Webkit"+u]="webkit"+h,_["Moz"+u]="moz"+h,_}var Ci={animationend:Qr("Animation","AnimationEnd"),animationiteration:Qr("Animation","AnimationIteration"),animationstart:Qr("Animation","AnimationStart"),transitionrun:Qr("Transition","TransitionRun"),transitionstart:Qr("Transition","TransitionStart"),transitioncancel:Qr("Transition","TransitionCancel"),transitionend:Qr("Transition","TransitionEnd")},$a={},ua={};la&&(ua=document.createElement("div").style,"AnimationEvent"in window||(delete Ci.animationend.animation,delete Ci.animationiteration.animation,delete Ci.animationstart.animation),"TransitionEvent"in window||delete Ci.transitionend.transition);function Kr(u){if($a[u])return $a[u];if(!Ci[u])return u;var h=Ci[u],_;for(_ in h)if(h.hasOwnProperty(_)&&_ in ua)return $a[u]=h[_];return u}var za=Kr("animationend"),ls=Kr("animationiteration"),Oi=Kr("animationstart"),Ca=Kr("transitionrun"),uc=Kr("transitionstart"),$i=Kr("transitioncancel"),qm=Kr("transitionend"),gP=new Map,GT="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 toggle touchMove waiting wheel".split(" ");GT.push("scrollEnd");function Ro(u,h){gP.set(u,h),In(h,[u])}var _P=new WeakMap;function js(u,h){if(typeof u=="object"&&u!==null){var _=_P.get(u);return _!==void 0?_:(h={value:u,source:h,stack:oi(h)},_P.set(u,h),h)}return{value:u,source:h,stack:oi(h)}}var Gs=[],ch=0,qT=0;function nb(){for(var u=ch,h=qT=ch=0;h<u;){var _=Gs[h];Gs[h++]=null;var v=Gs[h];Gs[h++]=null;var R=Gs[h];Gs[h++]=null;var A=Gs[h];if(Gs[h++]=null,v!==null&&R!==null){var q=v.pending;q===null?R.next=R:(R.next=q.next,q.next=R),v.pending=R}A!==0&&bP(_,R,A)}}function rb(u,h,_,v){Gs[ch++]=u,Gs[ch++]=h,Gs[ch++]=_,Gs[ch++]=v,qT|=v,u.lanes|=v,u=u.alternate,u!==null&&(u.lanes|=v)}function $T(u,h,_,v){return rb(u,h,_,v),ib(u)}function uh(u,h){return rb(u,null,null,h),ib(u)}function bP(u,h,_){u.lanes|=_;var v=u.alternate;v!==null&&(v.lanes|=_);for(var R=!1,A=u.return;A!==null;)A.childLanes|=_,v=A.alternate,v!==null&&(v.childLanes|=_),A.tag===22&&(u=A.stateNode,u===null||u._visibility&1||(R=!0)),u=A,A=A.return;return u.tag===3?(A=u.stateNode,R&&h!==null&&(R=31-kt(_),u=A.hiddenUpdates,v=u[R],v===null?u[R]=[h]:v.push(h),h.lane=_|536870912),A):null}function ib(u){if(50<hg)throw hg=0,Qx=null,Error(r(185));for(var h=u.return;h!==null;)u=h,h=u.return;return u.tag===3?u.stateNode:null}var dh={};function xX(u,h,_,v){this.tag=u,this.key=_,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=h,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 cs(u,h,_,v){return new xX(u,h,_,v)}function zT(u){return u=u.prototype,!(!u||!u.isReactComponent)}function dc(u,h){var _=u.alternate;return _===null?(_=cs(u.tag,h,u.key,u.mode),_.elementType=u.elementType,_.type=u.type,_.stateNode=u.stateNode,_.alternate=u,u.alternate=_):(_.pendingProps=h,_.type=u.type,_.flags=0,_.subtreeFlags=0,_.deletions=null),_.flags=u.flags&65011712,_.childLanes=u.childLanes,_.lanes=u.lanes,_.child=u.child,_.memoizedProps=u.memoizedProps,_.memoizedState=u.memoizedState,_.updateQueue=u.updateQueue,h=u.dependencies,_.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},_.sibling=u.sibling,_.index=u.index,_.ref=u.ref,_.refCleanup=u.refCleanup,_}function vP(u,h){u.flags&=65011714;var _=u.alternate;return _===null?(u.childLanes=0,u.lanes=h,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=_.childLanes,u.lanes=_.lanes,u.child=_.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=_.memoizedProps,u.memoizedState=_.memoizedState,u.updateQueue=_.updateQueue,u.type=_.type,h=_.dependencies,u.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext}),u}function ab(u,h,_,v,R,A){var q=0;if(v=u,typeof u=="function")zT(u)&&(q=1);else if(typeof u=="string")q=OZ(u,_,ue.current)?26:u==="html"||u==="head"||u==="body"?27:5;else e:switch(u){case L:return u=cs(31,_,h,R),u.elementType=L,u.lanes=A,u;case b:return Pd(_.children,R,A,h);case S:q=8,R|=24;break;case y:return u=cs(12,_,h,R|2),u.elementType=y,u.lanes=A,u;case C:return u=cs(13,_,h,R),u.elementType=C,u.lanes=A,u;case N:return u=cs(19,_,h,R),u.elementType=N,u.lanes=A,u;default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case E:case x:q=10;break e;case T:q=9;break e;case O:q=11;break e;case w:q=14;break e;case D:q=16,v=null;break e}q=29,_=Error(r(130,u===null?"null":typeof u,"")),v=null}return h=cs(q,_,h,R),h.elementType=u,h.type=v,h.lanes=A,h}function Pd(u,h,_,v){return u=cs(7,u,v,h),u.lanes=_,u}function YT(u,h,_){return u=cs(6,u,null,h),u.lanes=_,u}function HT(u,h,_){return h=cs(4,u.children!==null?u.children:[],u.key,h),h.lanes=_,h.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},h}var fh=[],hh=0,sb=null,ob=0,qs=[],$s=0,Bd=null,fc=1,hc="";function Fd(u,h){fh[hh++]=ob,fh[hh++]=sb,sb=u,ob=h}function SP(u,h,_){qs[$s++]=fc,qs[$s++]=hc,qs[$s++]=Bd,Bd=u;var v=fc;u=hc;var R=32-kt(v)-1;v&=~(1<<R),_+=1;var A=32-kt(h)+R;if(30<A){var q=R-R%5;A=(v&(1<<q)-1).toString(32),v>>=q,R-=q,fc=1<<32-kt(h)+R|_<<R|v,hc=A+u}else fc=1<<A|_<<R|v,hc=u}function VT(u){u.return!==null&&(Fd(u,1),SP(u,1,0))}function WT(u){for(;u===sb;)sb=fh[--hh],fh[hh]=null,ob=fh[--hh],fh[hh]=null;for(;u===Bd;)Bd=qs[--$s],qs[$s]=null,hc=qs[--$s],qs[$s]=null,fc=qs[--$s],qs[$s]=null}var Oa=null,Dr=null,xn=!1,Ud=null,_l=!1,QT=Error(r(519));function jd(u){var h=Error(r(418,""));throw Ym(js(h,u)),QT}function EP(u){var h=u.stateNode,_=u.type,v=u.memoizedProps;switch(h[ze]=u,h[dt]=v,_){case"dialog":ln("cancel",h),ln("close",h);break;case"iframe":case"object":case"embed":ln("load",h);break;case"video":case"audio":for(_=0;_<mg.length;_++)ln(mg[_],h);break;case"source":ln("error",h);break;case"img":case"image":case"link":ln("error",h),ln("load",h);break;case"details":ln("toggle",h);break;case"input":ln("invalid",h),au(h,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0),zr(h);break;case"select":ln("invalid",h);break;case"textarea":ln("invalid",h),Yr(h,v.value,v.defaultValue,v.children),zr(h)}_=v.children,typeof _!="string"&&typeof _!="number"&&typeof _!="bigint"||h.textContent===""+_||v.suppressHydrationWarning===!0||F3(h.textContent,_)?(v.popover!=null&&(ln("beforetoggle",h),ln("toggle",h)),v.onScroll!=null&&ln("scroll",h),v.onScrollEnd!=null&&ln("scrollend",h),v.onClick!=null&&(h.onclick=Gb),h=!0):h=!1,h||jd(u)}function yP(u){for(Oa=u.return;Oa;)switch(Oa.tag){case 5:case 13:_l=!1;return;case 27:case 3:_l=!0;return;default:Oa=Oa.return}}function $m(u){if(u!==Oa)return!1;if(!xn)return yP(u),xn=!0,!1;var h=u.tag,_;if((_=h!==3&&h!==27)&&((_=h===5)&&(_=u.type,_=!(_!=="form"&&_!=="button")||dC(u.type,u.memoizedProps)),_=!_),_&&Dr&&jd(u),yP(u),h===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));e:{for(u=u.nextSibling,h=0;u;){if(u.nodeType===8)if(_=u.data,_==="/$"){if(h===0){Dr=Ao(u.nextSibling);break e}h--}else _!=="$"&&_!=="$!"&&_!=="$?"||h++;u=u.nextSibling}Dr=null}}else h===27?(h=Dr,Cu(u.type)?(u=mC,mC=null,Dr=u):Dr=h):Dr=Oa?Ao(u.stateNode.nextSibling):null;return!0}function zm(){Dr=Oa=null,xn=!1}function TP(){var u=Ud;return u!==null&&(Va===null?Va=u:Va.push.apply(Va,u),Ud=null),u}function Ym(u){Ud===null?Ud=[u]:Ud.push(u)}var KT=Q(null),Gd=null,pc=null;function uu(u,h,_){X(KT,h._currentValue),h._currentValue=_}function mc(u){u._currentValue=KT.current,Z(KT)}function XT(u,h,_){for(;u!==null;){var v=u.alternate;if((u.childLanes&h)!==h?(u.childLanes|=h,v!==null&&(v.childLanes|=h)):v!==null&&(v.childLanes&h)!==h&&(v.childLanes|=h),u===_)break;u=u.return}}function ZT(u,h,_,v){var R=u.child;for(R!==null&&(R.return=u);R!==null;){var A=R.dependencies;if(A!==null){var q=R.child;A=A.firstContext;e:for(;A!==null;){var K=A;A=R;for(var te=0;te<h.length;te++)if(K.context===h[te]){A.lanes|=_,K=A.alternate,K!==null&&(K.lanes|=_),XT(A.return,_,u),v||(q=null);break e}A=K.next}}else if(R.tag===18){if(q=R.return,q===null)throw Error(r(341));q.lanes|=_,A=q.alternate,A!==null&&(A.lanes|=_),XT(q,_,u),q=null}else q=R.child;if(q!==null)q.return=R;else for(q=R;q!==null;){if(q===u){q=null;break}if(R=q.sibling,R!==null){R.return=q.return,q=R;break}q=q.return}R=q}}function Hm(u,h,_,v){u=null;for(var R=h,A=!1;R!==null;){if(!A){if((R.flags&524288)!==0)A=!0;else if((R.flags&262144)!==0)break}if(R.tag===10){var q=R.alternate;if(q===null)throw Error(r(387));if(q=q.memoizedProps,q!==null){var K=R.type;Ct(R.pendingProps.value,q.value)||(u!==null?u.push(K):u=[K])}}else if(R===ye.current){if(q=R.alternate,q===null)throw Error(r(387));q.memoizedState.memoizedState!==R.memoizedState.memoizedState&&(u!==null?u.push(Eg):u=[Eg])}R=R.return}u!==null&&ZT(h,u,_,v),h.flags|=262144}function lb(u){for(u=u.firstContext;u!==null;){if(!Ct(u.context._currentValue,u.memoizedValue))return!0;u=u.next}return!1}function qd(u){Gd=u,pc=null,u=u.dependencies,u!==null&&(u.firstContext=null)}function da(u){return xP(Gd,u)}function cb(u,h){return Gd===null&&qd(u),xP(u,h)}function xP(u,h){var _=h._currentValue;if(h={context:h,memoizedValue:_,next:null},pc===null){if(u===null)throw Error(r(308));pc=h,u.dependencies={lanes:0,firstContext:h},u.flags|=524288}else pc=pc.next=h;return _}var CX=typeof AbortController<"u"?AbortController:function(){var u=[],h=this.signal={aborted:!1,addEventListener:function(_,v){u.push(v)}};this.abort=function(){h.aborted=!0,u.forEach(function(_){return _()})}},OX=t.unstable_scheduleCallback,RX=t.unstable_NormalPriority,ui={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function JT(){return{controller:new CX,data:new Map,refCount:0}}function Vm(u){u.refCount--,u.refCount===0&&OX(RX,function(){u.controller.abort()})}var Wm=null,ex=0,ph=0,mh=null;function NX(u,h){if(Wm===null){var _=Wm=[];ex=0,ph=nC(),mh={status:"pending",value:void 0,then:function(v){_.push(v)}}}return ex++,h.then(CP,CP),h}function CP(){if(--ex===0&&Wm!==null){mh!==null&&(mh.status="fulfilled");var u=Wm;Wm=null,ph=0,mh=null;for(var h=0;h<u.length;h++)(0,u[h])()}}function AX(u,h){var _=[],v={status:"pending",value:null,reason:null,then:function(R){_.push(R)}};return u.then(function(){v.status="fulfilled",v.value=h;for(var R=0;R<_.length;R++)(0,_[R])(h)},function(R){for(v.status="rejected",v.reason=R,R=0;R<_.length;R++)(0,_[R])(void 0)}),v}var OP=k.S;k.S=function(u,h){typeof h=="object"&&h!==null&&typeof h.then=="function"&&NX(u,h),OP!==null&&OP(u,h)};var $d=Q(null);function tx(){var u=$d.current;return u!==null?u:ar.pooledCache}function ub(u,h){h===null?X($d,$d.current):X($d,h.pool)}function RP(){var u=tx();return u===null?null:{parent:ui._currentValue,pool:u}}var Qm=Error(r(460)),NP=Error(r(474)),db=Error(r(542)),nx={then:function(){}};function AP(u){return u=u.status,u==="fulfilled"||u==="rejected"}function fb(){}function wP(u,h,_){switch(_=u[_],_===void 0?u.push(h):_!==h&&(h.then(fb,fb),h=_),h.status){case"fulfilled":return h.value;case"rejected":throw u=h.reason,DP(u),u;default:if(typeof h.status=="string")h.then(fb,fb);else{if(u=ar,u!==null&&100<u.shellSuspendCounter)throw Error(r(482));u=h,u.status="pending",u.then(function(v){if(h.status==="pending"){var R=h;R.status="fulfilled",R.value=v}},function(v){if(h.status==="pending"){var R=h;R.status="rejected",R.reason=v}})}switch(h.status){case"fulfilled":return h.value;case"rejected":throw u=h.reason,DP(u),u}throw Km=h,Qm}}var Km=null;function IP(){if(Km===null)throw Error(r(459));var u=Km;return Km=null,u}function DP(u){if(u===Qm||u===db)throw Error(r(483))}var du=!1;function rx(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ix(u,h){u=u.updateQueue,h.updateQueue===u&&(h.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function fu(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function hu(u,h,_){var v=u.updateQueue;if(v===null)return null;if(v=v.shared,(Ln&2)!==0){var R=v.pending;return R===null?h.next=h:(h.next=R.next,R.next=h),v.pending=h,h=ib(u),bP(u,null,_),h}return rb(u,v,h,_),ib(u)}function Xm(u,h,_){if(h=h.updateQueue,h!==null&&(h=h.shared,(_&4194048)!==0)){var v=h.lanes;v&=u.pendingLanes,_|=v,h.lanes=_,we(u,_)}}function ax(u,h){var _=u.updateQueue,v=u.alternate;if(v!==null&&(v=v.updateQueue,_===v)){var R=null,A=null;if(_=_.firstBaseUpdate,_!==null){do{var q={lane:_.lane,tag:_.tag,payload:_.payload,callback:null,next:null};A===null?R=A=q:A=A.next=q,_=_.next}while(_!==null);A===null?R=A=h:A=A.next=h}else R=A=h;_={baseState:v.baseState,firstBaseUpdate:R,lastBaseUpdate:A,shared:v.shared,callbacks:v.callbacks},u.updateQueue=_;return}u=_.lastBaseUpdate,u===null?_.firstBaseUpdate=h:u.next=h,_.lastBaseUpdate=h}var sx=!1;function Zm(){if(sx){var u=mh;if(u!==null)throw u}}function Jm(u,h,_,v){sx=!1;var R=u.updateQueue;du=!1;var A=R.firstBaseUpdate,q=R.lastBaseUpdate,K=R.shared.pending;if(K!==null){R.shared.pending=null;var te=K,_e=te.next;te.next=null,q===null?A=_e:q.next=_e,q=te;var Ie=u.alternate;Ie!==null&&(Ie=Ie.updateQueue,K=Ie.lastBaseUpdate,K!==q&&(K===null?Ie.firstBaseUpdate=_e:K.next=_e,Ie.lastBaseUpdate=te))}if(A!==null){var Ue=R.baseState;q=0,Ie=_e=te=null,K=A;do{var Ee=K.lane&-536870913,Ce=Ee!==K.lane;if(Ce?(pn&Ee)===Ee:(v&Ee)===Ee){Ee!==0&&Ee===ph&&(sx=!0),Ie!==null&&(Ie=Ie.next={lane:0,tag:K.tag,payload:K.payload,callback:null,next:null});e:{var Pt=u,It=K;Ee=h;var zn=_;switch(It.tag){case 1:if(Pt=It.payload,typeof Pt=="function"){Ue=Pt.call(zn,Ue,Ee);break e}Ue=Pt;break e;case 3:Pt.flags=Pt.flags&-65537|128;case 0:if(Pt=It.payload,Ee=typeof Pt=="function"?Pt.call(zn,Ue,Ee):Pt,Ee==null)break e;Ue=f({},Ue,Ee);break e;case 2:du=!0}}Ee=K.callback,Ee!==null&&(u.flags|=64,Ce&&(u.flags|=8192),Ce=R.callbacks,Ce===null?R.callbacks=[Ee]:Ce.push(Ee))}else Ce={lane:Ee,tag:K.tag,payload:K.payload,callback:K.callback,next:null},Ie===null?(_e=Ie=Ce,te=Ue):Ie=Ie.next=Ce,q|=Ee;if(K=K.next,K===null){if(K=R.shared.pending,K===null)break;Ce=K,K=Ce.next,Ce.next=null,R.lastBaseUpdate=Ce,R.shared.pending=null}}while(!0);Ie===null&&(te=Ue),R.baseState=te,R.firstBaseUpdate=_e,R.lastBaseUpdate=Ie,A===null&&(R.shared.lanes=0),Eu|=q,u.lanes=q,u.memoizedState=Ue}}function MP(u,h){if(typeof u!="function")throw Error(r(191,u));u.call(h)}function LP(u,h){var _=u.callbacks;if(_!==null)for(u.callbacks=null,u=0;u<_.length;u++)MP(_[u],h)}var gh=Q(null),hb=Q(0);function kP(u,h){u=yc,X(hb,u),X(gh,h),yc=u|h.baseLanes}function ox(){X(hb,yc),X(gh,gh.current)}function lx(){yc=hb.current,Z(gh),Z(hb)}var pu=0,Xt=null,qn=null,Xr=null,pb=!1,_h=!1,zd=!1,mb=0,eg=0,bh=null,wX=0;function Ur(){throw Error(r(321))}function cx(u,h){if(h===null)return!1;for(var _=0;_<h.length&&_<u.length;_++)if(!Ct(u[_],h[_]))return!1;return!0}function ux(u,h,_,v,R,A){return pu=A,Xt=h,h.memoizedState=null,h.updateQueue=null,h.lanes=0,k.H=u===null||u.memoizedState===null?b2:v2,zd=!1,A=_(v,R),zd=!1,_h&&(A=BP(h,_,v,R)),PP(u),A}function PP(u){k.H=Eb;var h=qn!==null&&qn.next!==null;if(pu=0,Xr=qn=Xt=null,pb=!1,eg=0,bh=null,h)throw Error(r(300));u===null||Ri||(u=u.dependencies,u!==null&&lb(u)&&(Ri=!0))}function BP(u,h,_,v){Xt=u;var R=0;do{if(_h&&(bh=null),eg=0,_h=!1,25<=R)throw Error(r(301));if(R+=1,Xr=qn=null,u.updateQueue!=null){var A=u.updateQueue;A.lastEffect=null,A.events=null,A.stores=null,A.memoCache!=null&&(A.memoCache.index=0)}k.H=BX,A=h(_,v)}while(_h);return A}function IX(){var u=k.H,h=u.useState()[0];return h=typeof h.then=="function"?tg(h):h,u=u.useState()[0],(qn!==null?qn.memoizedState:null)!==u&&(Xt.flags|=1024),h}function dx(){var u=mb!==0;return mb=0,u}function fx(u,h,_){h.updateQueue=u.updateQueue,h.flags&=-2053,u.lanes&=~_}function hx(u){if(pb){for(u=u.memoizedState;u!==null;){var h=u.queue;h!==null&&(h.pending=null),u=u.next}pb=!1}pu=0,Xr=qn=Xt=null,_h=!1,eg=mb=0,bh=null}function Ya(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xr===null?Xt.memoizedState=Xr=u:Xr=Xr.next=u,Xr}function Zr(){if(qn===null){var u=Xt.alternate;u=u!==null?u.memoizedState:null}else u=qn.next;var h=Xr===null?Xt.memoizedState:Xr.next;if(h!==null)Xr=h,qn=u;else{if(u===null)throw Xt.alternate===null?Error(r(467)):Error(r(310));qn=u,u={memoizedState:qn.memoizedState,baseState:qn.baseState,baseQueue:qn.baseQueue,queue:qn.queue,next:null},Xr===null?Xt.memoizedState=Xr=u:Xr=Xr.next=u}return Xr}function px(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tg(u){var h=eg;return eg+=1,bh===null&&(bh=[]),u=wP(bh,u,h),h=Xt,(Xr===null?h.memoizedState:Xr.next)===null&&(h=h.alternate,k.H=h===null||h.memoizedState===null?b2:v2),u}function gb(u){if(u!==null&&typeof u=="object"){if(typeof u.then=="function")return tg(u);if(u.$$typeof===x)return da(u)}throw Error(r(438,String(u)))}function mx(u){var h=null,_=Xt.updateQueue;if(_!==null&&(h=_.memoCache),h==null){var v=Xt.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(h={data:v.data.map(function(R){return R.slice()}),index:0})))}if(h==null&&(h={data:[],index:0}),_===null&&(_=px(),Xt.updateQueue=_),_.memoCache=h,_=h.data[h.index],_===void 0)for(_=h.data[h.index]=Array(u),v=0;v<u;v++)_[v]=U;return h.index++,_}function gc(u,h){return typeof h=="function"?h(u):h}function _b(u){var h=Zr();return gx(h,qn,u)}function gx(u,h,_){var v=u.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=_;var R=u.baseQueue,A=v.pending;if(A!==null){if(R!==null){var q=R.next;R.next=A.next,A.next=q}h.baseQueue=R=A,v.pending=null}if(A=u.baseState,R===null)u.memoizedState=A;else{h=R.next;var K=q=null,te=null,_e=h,Ie=!1;do{var Ue=_e.lane&-536870913;if(Ue!==_e.lane?(pn&Ue)===Ue:(pu&Ue)===Ue){var Ee=_e.revertLane;if(Ee===0)te!==null&&(te=te.next={lane:0,revertLane:0,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null}),Ue===ph&&(Ie=!0);else if((pu&Ee)===Ee){_e=_e.next,Ee===ph&&(Ie=!0);continue}else Ue={lane:0,revertLane:_e.revertLane,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null},te===null?(K=te=Ue,q=A):te=te.next=Ue,Xt.lanes|=Ee,Eu|=Ee;Ue=_e.action,zd&&_(A,Ue),A=_e.hasEagerState?_e.eagerState:_(A,Ue)}else Ee={lane:Ue,revertLane:_e.revertLane,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null},te===null?(K=te=Ee,q=A):te=te.next=Ee,Xt.lanes|=Ue,Eu|=Ue;_e=_e.next}while(_e!==null&&_e!==h);if(te===null?q=A:te.next=K,!Ct(A,u.memoizedState)&&(Ri=!0,Ie&&(_=mh,_!==null)))throw _;u.memoizedState=A,u.baseState=q,u.baseQueue=te,v.lastRenderedState=A}return R===null&&(v.lanes=0),[u.memoizedState,v.dispatch]}function _x(u){var h=Zr(),_=h.queue;if(_===null)throw Error(r(311));_.lastRenderedReducer=u;var v=_.dispatch,R=_.pending,A=h.memoizedState;if(R!==null){_.pending=null;var q=R=R.next;do A=u(A,q.action),q=q.next;while(q!==R);Ct(A,h.memoizedState)||(Ri=!0),h.memoizedState=A,h.baseQueue===null&&(h.baseState=A),_.lastRenderedState=A}return[A,v]}function FP(u,h,_){var v=Xt,R=Zr(),A=xn;if(A){if(_===void 0)throw Error(r(407));_=_()}else _=h();var q=!Ct((qn||R).memoizedState,_);q&&(R.memoizedState=_,Ri=!0),R=R.queue;var K=GP.bind(null,v,R,u);if(ng(2048,8,K,[u]),R.getSnapshot!==h||q||Xr!==null&&Xr.memoizedState.tag&1){if(v.flags|=2048,vh(9,bb(),jP.bind(null,v,R,_,h),null),ar===null)throw Error(r(349));A||(pu&124)!==0||UP(v,h,_)}return _}function UP(u,h,_){u.flags|=16384,u={getSnapshot:h,value:_},h=Xt.updateQueue,h===null?(h=px(),Xt.updateQueue=h,h.stores=[u]):(_=h.stores,_===null?h.stores=[u]:_.push(u))}function jP(u,h,_,v){h.value=_,h.getSnapshot=v,qP(h)&&$P(u)}function GP(u,h,_){return _(function(){qP(h)&&$P(u)})}function qP(u){var h=u.getSnapshot;u=u.value;try{var _=h();return!Ct(u,_)}catch{return!0}}function $P(u){var h=uh(u,2);h!==null&&ps(h,u,2)}function bx(u){var h=Ya();if(typeof u=="function"){var _=u;if(u=_(),zd){Mt(!0);try{_()}finally{Mt(!1)}}}return h.memoizedState=h.baseState=u,h.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gc,lastRenderedState:u},h}function zP(u,h,_,v){return u.baseState=_,gx(u,qn,typeof v=="function"?v:gc)}function DX(u,h,_,v,R){if(Sb(u))throw Error(r(485));if(u=h.action,u!==null){var A={payload:R,action:u,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(q){A.listeners.push(q)}};k.T!==null?_(!0):A.isTransition=!1,v(A),_=h.pending,_===null?(A.next=h.pending=A,YP(h,A)):(A.next=_.next,h.pending=_.next=A)}}function YP(u,h){var _=h.action,v=h.payload,R=u.state;if(h.isTransition){var A=k.T,q={};k.T=q;try{var K=_(R,v),te=k.S;te!==null&&te(q,K),HP(u,h,K)}catch(_e){vx(u,h,_e)}finally{k.T=A}}else try{A=_(R,v),HP(u,h,A)}catch(_e){vx(u,h,_e)}}function HP(u,h,_){_!==null&&typeof _=="object"&&typeof _.then=="function"?_.then(function(v){VP(u,h,v)},function(v){return vx(u,h,v)}):VP(u,h,_)}function VP(u,h,_){h.status="fulfilled",h.value=_,WP(h),u.state=_,h=u.pending,h!==null&&(_=h.next,_===h?u.pending=null:(_=_.next,h.next=_,YP(u,_)))}function vx(u,h,_){var v=u.pending;if(u.pending=null,v!==null){v=v.next;do h.status="rejected",h.reason=_,WP(h),h=h.next;while(h!==v)}u.action=null}function WP(u){u=u.listeners;for(var h=0;h<u.length;h++)(0,u[h])()}function QP(u,h){return h}function KP(u,h){if(xn){var _=ar.formState;if(_!==null){e:{var v=Xt;if(xn){if(Dr){t:{for(var R=Dr,A=_l;R.nodeType!==8;){if(!A){R=null;break t}if(R=Ao(R.nextSibling),R===null){R=null;break t}}A=R.data,R=A==="F!"||A==="F"?R:null}if(R){Dr=Ao(R.nextSibling),v=R.data==="F!";break e}}jd(v)}v=!1}v&&(h=_[0])}}return _=Ya(),_.memoizedState=_.baseState=h,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:QP,lastRenderedState:h},_.queue=v,_=m2.bind(null,Xt,v),v.dispatch=_,v=bx(!1),A=xx.bind(null,Xt,!1,v.queue),v=Ya(),R={state:h,dispatch:null,action:u,pending:null},v.queue=R,_=DX.bind(null,Xt,R,A,_),R.dispatch=_,v.memoizedState=u,[h,_,!1]}function XP(u){var h=Zr();return ZP(h,qn,u)}function ZP(u,h,_){if(h=gx(u,h,QP)[0],u=_b(gc)[0],typeof h=="object"&&h!==null&&typeof h.then=="function")try{var v=tg(h)}catch(q){throw q===Qm?db:q}else v=h;h=Zr();var R=h.queue,A=R.dispatch;return _!==h.memoizedState&&(Xt.flags|=2048,vh(9,bb(),MX.bind(null,R,_),null)),[v,A,u]}function MX(u,h){u.action=h}function JP(u){var h=Zr(),_=qn;if(_!==null)return ZP(h,_,u);Zr(),h=h.memoizedState,_=Zr();var v=_.queue.dispatch;return _.memoizedState=u,[h,v,!1]}function vh(u,h,_,v){return u={tag:u,create:_,deps:v,inst:h,next:null},h=Xt.updateQueue,h===null&&(h=px(),Xt.updateQueue=h),_=h.lastEffect,_===null?h.lastEffect=u.next=u:(v=_.next,_.next=u,u.next=v,h.lastEffect=u),u}function bb(){return{destroy:void 0,resource:void 0}}function e2(){return Zr().memoizedState}function vb(u,h,_,v){var R=Ya();v=v===void 0?null:v,Xt.flags|=u,R.memoizedState=vh(1|h,bb(),_,v)}function ng(u,h,_,v){var R=Zr();v=v===void 0?null:v;var A=R.memoizedState.inst;qn!==null&&v!==null&&cx(v,qn.memoizedState.deps)?R.memoizedState=vh(h,A,_,v):(Xt.flags|=u,R.memoizedState=vh(1|h,A,_,v))}function t2(u,h){vb(8390656,8,u,h)}function n2(u,h){ng(2048,8,u,h)}function r2(u,h){return ng(4,2,u,h)}function i2(u,h){return ng(4,4,u,h)}function a2(u,h){if(typeof h=="function"){u=u();var _=h(u);return function(){typeof _=="function"?_():h(null)}}if(h!=null)return u=u(),h.current=u,function(){h.current=null}}function s2(u,h,_){_=_!=null?_.concat([u]):null,ng(4,4,a2.bind(null,h,u),_)}function Sx(){}function o2(u,h){var _=Zr();h=h===void 0?null:h;var v=_.memoizedState;return h!==null&&cx(h,v[1])?v[0]:(_.memoizedState=[u,h],u)}function l2(u,h){var _=Zr();h=h===void 0?null:h;var v=_.memoizedState;if(h!==null&&cx(h,v[1]))return v[0];if(v=u(),zd){Mt(!0);try{u()}finally{Mt(!1)}}return _.memoizedState=[v,h],v}function Ex(u,h,_){return _===void 0||(pu&1073741824)!==0?u.memoizedState=h:(u.memoizedState=_,u=d3(),Xt.lanes|=u,Eu|=u,_)}function c2(u,h,_,v){return Ct(_,h)?_:gh.current!==null?(u=Ex(u,_,v),Ct(u,h)||(Ri=!0),u):(pu&42)===0?(Ri=!0,u.memoizedState=_):(u=d3(),Xt.lanes|=u,Eu|=u,h)}function u2(u,h,_,v,R){var A=P.p;P.p=A!==0&&8>A?A:8;var q=k.T,K={};k.T=K,xx(u,!1,h,_);try{var te=R(),_e=k.S;if(_e!==null&&_e(K,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var Ie=AX(te,v);rg(u,h,Ie,hs(u))}else rg(u,h,v,hs(u))}catch(Ue){rg(u,h,{then:function(){},status:"rejected",reason:Ue},hs())}finally{P.p=A,k.T=q}}function LX(){}function yx(u,h,_,v){if(u.tag!==5)throw Error(r(476));var R=d2(u).queue;u2(u,R,h,z,_===null?LX:function(){return f2(u),_(v)})}function d2(u){var h=u.memoizedState;if(h!==null)return h;h={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gc,lastRenderedState:z},next:null};var _={};return h.next={memoizedState:_,baseState:_,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gc,lastRenderedState:_},next:null},u.memoizedState=h,u=u.alternate,u!==null&&(u.memoizedState=h),h}function f2(u){var h=d2(u).next.queue;rg(u,h,{},hs())}function Tx(){return da(Eg)}function h2(){return Zr().memoizedState}function p2(){return Zr().memoizedState}function kX(u){for(var h=u.return;h!==null;){switch(h.tag){case 24:case 3:var _=hs();u=fu(_);var v=hu(h,u,_);v!==null&&(ps(v,h,_),Xm(v,h,_)),h={cache:JT()},u.payload=h;return}h=h.return}}function PX(u,h,_){var v=hs();_={lane:v,revertLane:0,action:_,hasEagerState:!1,eagerState:null,next:null},Sb(u)?g2(h,_):(_=$T(u,h,_,v),_!==null&&(ps(_,u,v),_2(_,h,v)))}function m2(u,h,_){var v=hs();rg(u,h,_,v)}function rg(u,h,_,v){var R={lane:v,revertLane:0,action:_,hasEagerState:!1,eagerState:null,next:null};if(Sb(u))g2(h,R);else{var A=u.alternate;if(u.lanes===0&&(A===null||A.lanes===0)&&(A=h.lastRenderedReducer,A!==null))try{var q=h.lastRenderedState,K=A(q,_);if(R.hasEagerState=!0,R.eagerState=K,Ct(K,q))return rb(u,h,R,0),ar===null&&nb(),!1}catch{}finally{}if(_=$T(u,h,R,v),_!==null)return ps(_,u,v),_2(_,h,v),!0}return!1}function xx(u,h,_,v){if(v={lane:2,revertLane:nC(),action:v,hasEagerState:!1,eagerState:null,next:null},Sb(u)){if(h)throw Error(r(479))}else h=$T(u,_,v,2),h!==null&&ps(h,u,2)}function Sb(u){var h=u.alternate;return u===Xt||h!==null&&h===Xt}function g2(u,h){_h=pb=!0;var _=u.pending;_===null?h.next=h:(h.next=_.next,_.next=h),u.pending=h}function _2(u,h,_){if((_&4194048)!==0){var v=h.lanes;v&=u.pendingLanes,_|=v,h.lanes=_,we(u,_)}}var Eb={readContext:da,use:gb,useCallback:Ur,useContext:Ur,useEffect:Ur,useImperativeHandle:Ur,useLayoutEffect:Ur,useInsertionEffect:Ur,useMemo:Ur,useReducer:Ur,useRef:Ur,useState:Ur,useDebugValue:Ur,useDeferredValue:Ur,useTransition:Ur,useSyncExternalStore:Ur,useId:Ur,useHostTransitionStatus:Ur,useFormState:Ur,useActionState:Ur,useOptimistic:Ur,useMemoCache:Ur,useCacheRefresh:Ur},b2={readContext:da,use:gb,useCallback:function(u,h){return Ya().memoizedState=[u,h===void 0?null:h],u},useContext:da,useEffect:t2,useImperativeHandle:function(u,h,_){_=_!=null?_.concat([u]):null,vb(4194308,4,a2.bind(null,h,u),_)},useLayoutEffect:function(u,h){return vb(4194308,4,u,h)},useInsertionEffect:function(u,h){vb(4,2,u,h)},useMemo:function(u,h){var _=Ya();h=h===void 0?null:h;var v=u();if(zd){Mt(!0);try{u()}finally{Mt(!1)}}return _.memoizedState=[v,h],v},useReducer:function(u,h,_){var v=Ya();if(_!==void 0){var R=_(h);if(zd){Mt(!0);try{_(h)}finally{Mt(!1)}}}else R=h;return v.memoizedState=v.baseState=R,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:R},v.queue=u,u=u.dispatch=PX.bind(null,Xt,u),[v.memoizedState,u]},useRef:function(u){var h=Ya();return u={current:u},h.memoizedState=u},useState:function(u){u=bx(u);var h=u.queue,_=m2.bind(null,Xt,h);return h.dispatch=_,[u.memoizedState,_]},useDebugValue:Sx,useDeferredValue:function(u,h){var _=Ya();return Ex(_,u,h)},useTransition:function(){var u=bx(!1);return u=u2.bind(null,Xt,u.queue,!0,!1),Ya().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,h,_){var v=Xt,R=Ya();if(xn){if(_===void 0)throw Error(r(407));_=_()}else{if(_=h(),ar===null)throw Error(r(349));(pn&124)!==0||UP(v,h,_)}R.memoizedState=_;var A={value:_,getSnapshot:h};return R.queue=A,t2(GP.bind(null,v,A,u),[u]),v.flags|=2048,vh(9,bb(),jP.bind(null,v,A,_,h),null),_},useId:function(){var u=Ya(),h=ar.identifierPrefix;if(xn){var _=hc,v=fc;_=(v&~(1<<32-kt(v)-1)).toString(32)+_,h="«"+h+"R"+_,_=mb++,0<_&&(h+="H"+_.toString(32)),h+="»"}else _=wX++,h="«"+h+"r"+_.toString(32)+"»";return u.memoizedState=h},useHostTransitionStatus:Tx,useFormState:KP,useActionState:KP,useOptimistic:function(u){var h=Ya();h.memoizedState=h.baseState=u;var _={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return h.queue=_,h=xx.bind(null,Xt,!0,_),_.dispatch=h,[u,h]},useMemoCache:mx,useCacheRefresh:function(){return Ya().memoizedState=kX.bind(null,Xt)}},v2={readContext:da,use:gb,useCallback:o2,useContext:da,useEffect:n2,useImperativeHandle:s2,useInsertionEffect:r2,useLayoutEffect:i2,useMemo:l2,useReducer:_b,useRef:e2,useState:function(){return _b(gc)},useDebugValue:Sx,useDeferredValue:function(u,h){var _=Zr();return c2(_,qn.memoizedState,u,h)},useTransition:function(){var u=_b(gc)[0],h=Zr().memoizedState;return[typeof u=="boolean"?u:tg(u),h]},useSyncExternalStore:FP,useId:h2,useHostTransitionStatus:Tx,useFormState:XP,useActionState:XP,useOptimistic:function(u,h){var _=Zr();return zP(_,qn,u,h)},useMemoCache:mx,useCacheRefresh:p2},BX={readContext:da,use:gb,useCallback:o2,useContext:da,useEffect:n2,useImperativeHandle:s2,useInsertionEffect:r2,useLayoutEffect:i2,useMemo:l2,useReducer:_x,useRef:e2,useState:function(){return _x(gc)},useDebugValue:Sx,useDeferredValue:function(u,h){var _=Zr();return qn===null?Ex(_,u,h):c2(_,qn.memoizedState,u,h)},useTransition:function(){var u=_x(gc)[0],h=Zr().memoizedState;return[typeof u=="boolean"?u:tg(u),h]},useSyncExternalStore:FP,useId:h2,useHostTransitionStatus:Tx,useFormState:JP,useActionState:JP,useOptimistic:function(u,h){var _=Zr();return qn!==null?zP(_,qn,u,h):(_.baseState=u,[u,_.queue.dispatch])},useMemoCache:mx,useCacheRefresh:p2},Sh=null,ig=0;function yb(u){var h=ig;return ig+=1,Sh===null&&(Sh=[]),wP(Sh,u,h)}function ag(u,h){h=h.props.ref,u.ref=h!==void 0?h:null}function Tb(u,h){throw h.$$typeof===p?Error(r(525)):(u=Object.prototype.toString.call(h),Error(r(31,u==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":u)))}function S2(u){var h=u._init;return h(u._payload)}function E2(u){function h(de,se){if(u){var me=de.deletions;me===null?(de.deletions=[se],de.flags|=16):me.push(se)}}function _(de,se){if(!u)return null;for(;se!==null;)h(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 R(de,se){return de=dc(de,se),de.index=0,de.sibling=null,de}function A(de,se,me){return de.index=me,u?(me=de.alternate,me!==null?(me=me.index,me<se?(de.flags|=67108866,se):me):(de.flags|=67108866,se)):(de.flags|=1048576,se)}function q(de){return u&&de.alternate===null&&(de.flags|=67108866),de}function K(de,se,me,Le){return se===null||se.tag!==6?(se=YT(me,de.mode,Le),se.return=de,se):(se=R(se,me),se.return=de,se)}function te(de,se,me,Le){var St=me.type;return St===b?Ie(de,se,me.props.children,Le,me.key):se!==null&&(se.elementType===St||typeof St=="object"&&St!==null&&St.$$typeof===D&&S2(St)===se.type)?(se=R(se,me.props),ag(se,me),se.return=de,se):(se=ab(me.type,me.key,me.props,null,de.mode,Le),ag(se,me),se.return=de,se)}function _e(de,se,me,Le){return se===null||se.tag!==4||se.stateNode.containerInfo!==me.containerInfo||se.stateNode.implementation!==me.implementation?(se=HT(me,de.mode,Le),se.return=de,se):(se=R(se,me.children||[]),se.return=de,se)}function Ie(de,se,me,Le,St){return se===null||se.tag!==7?(se=Pd(me,de.mode,Le,St),se.return=de,se):(se=R(se,me),se.return=de,se)}function Ue(de,se,me){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return se=YT(""+se,de.mode,me),se.return=de,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case m:return me=ab(se.type,se.key,se.props,null,de.mode,me),ag(me,se),me.return=de,me;case g:return se=HT(se,de.mode,me),se.return=de,se;case D:var Le=se._init;return se=Le(se._payload),Ue(de,se,me)}if(F(se)||B(se))return se=Pd(se,de.mode,me,null),se.return=de,se;if(typeof se.then=="function")return Ue(de,yb(se),me);if(se.$$typeof===x)return Ue(de,cb(de,se),me);Tb(de,se)}return null}function Ee(de,se,me,Le){var St=se!==null?se.key:null;if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return St!==null?null:K(de,se,""+me,Le);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case m:return me.key===St?te(de,se,me,Le):null;case g:return me.key===St?_e(de,se,me,Le):null;case D:return St=me._init,me=St(me._payload),Ee(de,se,me,Le)}if(F(me)||B(me))return St!==null?null:Ie(de,se,me,Le,null);if(typeof me.then=="function")return Ee(de,se,yb(me),Le);if(me.$$typeof===x)return Ee(de,se,cb(de,me),Le);Tb(de,me)}return null}function Ce(de,se,me,Le,St){if(typeof Le=="string"&&Le!==""||typeof Le=="number"||typeof Le=="bigint")return de=de.get(me)||null,K(se,de,""+Le,St);if(typeof Le=="object"&&Le!==null){switch(Le.$$typeof){case m:return de=de.get(Le.key===null?me:Le.key)||null,te(se,de,Le,St);case g:return de=de.get(Le.key===null?me:Le.key)||null,_e(se,de,Le,St);case D:var tn=Le._init;return Le=tn(Le._payload),Ce(de,se,me,Le,St)}if(F(Le)||B(Le))return de=de.get(me)||null,Ie(se,de,Le,St,null);if(typeof Le.then=="function")return Ce(de,se,me,yb(Le),St);if(Le.$$typeof===x)return Ce(de,se,me,cb(se,Le),St);Tb(se,Le)}return null}function Pt(de,se,me,Le){for(var St=null,tn=null,Ot=se,Dt=se=0,Ai=null;Ot!==null&&Dt<me.length;Dt++){Ot.index>Dt?(Ai=Ot,Ot=null):Ai=Ot.sibling;var yn=Ee(de,Ot,me[Dt],Le);if(yn===null){Ot===null&&(Ot=Ai);break}u&&Ot&&yn.alternate===null&&h(de,Ot),se=A(yn,se,Dt),tn===null?St=yn:tn.sibling=yn,tn=yn,Ot=Ai}if(Dt===me.length)return _(de,Ot),xn&&Fd(de,Dt),St;if(Ot===null){for(;Dt<me.length;Dt++)Ot=Ue(de,me[Dt],Le),Ot!==null&&(se=A(Ot,se,Dt),tn===null?St=Ot:tn.sibling=Ot,tn=Ot);return xn&&Fd(de,Dt),St}for(Ot=v(Ot);Dt<me.length;Dt++)Ai=Ce(Ot,de,Dt,me[Dt],Le),Ai!==null&&(u&&Ai.alternate!==null&&Ot.delete(Ai.key===null?Dt:Ai.key),se=A(Ai,se,Dt),tn===null?St=Ai:tn.sibling=Ai,tn=Ai);return u&&Ot.forEach(function(wu){return h(de,wu)}),xn&&Fd(de,Dt),St}function It(de,se,me,Le){if(me==null)throw Error(r(151));for(var St=null,tn=null,Ot=se,Dt=se=0,Ai=null,yn=me.next();Ot!==null&&!yn.done;Dt++,yn=me.next()){Ot.index>Dt?(Ai=Ot,Ot=null):Ai=Ot.sibling;var wu=Ee(de,Ot,yn.value,Le);if(wu===null){Ot===null&&(Ot=Ai);break}u&&Ot&&wu.alternate===null&&h(de,Ot),se=A(wu,se,Dt),tn===null?St=wu:tn.sibling=wu,tn=wu,Ot=Ai}if(yn.done)return _(de,Ot),xn&&Fd(de,Dt),St;if(Ot===null){for(;!yn.done;Dt++,yn=me.next())yn=Ue(de,yn.value,Le),yn!==null&&(se=A(yn,se,Dt),tn===null?St=yn:tn.sibling=yn,tn=yn);return xn&&Fd(de,Dt),St}for(Ot=v(Ot);!yn.done;Dt++,yn=me.next())yn=Ce(Ot,de,Dt,yn.value,Le),yn!==null&&(u&&yn.alternate!==null&&Ot.delete(yn.key===null?Dt:yn.key),se=A(yn,se,Dt),tn===null?St=yn:tn.sibling=yn,tn=yn);return u&&Ot.forEach(function(FZ){return h(de,FZ)}),xn&&Fd(de,Dt),St}function zn(de,se,me,Le){if(typeof me=="object"&&me!==null&&me.type===b&&me.key===null&&(me=me.props.children),typeof me=="object"&&me!==null){switch(me.$$typeof){case m:e:{for(var St=me.key;se!==null;){if(se.key===St){if(St=me.type,St===b){if(se.tag===7){_(de,se.sibling),Le=R(se,me.props.children),Le.return=de,de=Le;break e}}else if(se.elementType===St||typeof St=="object"&&St!==null&&St.$$typeof===D&&S2(St)===se.type){_(de,se.sibling),Le=R(se,me.props),ag(Le,me),Le.return=de,de=Le;break e}_(de,se);break}else h(de,se);se=se.sibling}me.type===b?(Le=Pd(me.props.children,de.mode,Le,me.key),Le.return=de,de=Le):(Le=ab(me.type,me.key,me.props,null,de.mode,Le),ag(Le,me),Le.return=de,de=Le)}return q(de);case g:e:{for(St=me.key;se!==null;){if(se.key===St)if(se.tag===4&&se.stateNode.containerInfo===me.containerInfo&&se.stateNode.implementation===me.implementation){_(de,se.sibling),Le=R(se,me.children||[]),Le.return=de,de=Le;break e}else{_(de,se);break}else h(de,se);se=se.sibling}Le=HT(me,de.mode,Le),Le.return=de,de=Le}return q(de);case D:return St=me._init,me=St(me._payload),zn(de,se,me,Le)}if(F(me))return Pt(de,se,me,Le);if(B(me)){if(St=B(me),typeof St!="function")throw Error(r(150));return me=St.call(me),It(de,se,me,Le)}if(typeof me.then=="function")return zn(de,se,yb(me),Le);if(me.$$typeof===x)return zn(de,se,cb(de,me),Le);Tb(de,me)}return typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint"?(me=""+me,se!==null&&se.tag===6?(_(de,se.sibling),Le=R(se,me),Le.return=de,de=Le):(_(de,se),Le=YT(me,de.mode,Le),Le.return=de,de=Le),q(de)):_(de,se)}return function(de,se,me,Le){try{ig=0;var St=zn(de,se,me,Le);return Sh=null,St}catch(Ot){if(Ot===Qm||Ot===db)throw Ot;var tn=cs(29,Ot,null,de.mode);return tn.lanes=Le,tn.return=de,tn}finally{}}}var Eh=E2(!0),y2=E2(!1),zs=Q(null),bl=null;function mu(u){var h=u.alternate;X(di,di.current&1),X(zs,u),bl===null&&(h===null||gh.current!==null||h.memoizedState!==null)&&(bl=u)}function T2(u){if(u.tag===22){if(X(di,di.current),X(zs,u),bl===null){var h=u.alternate;h!==null&&h.memoizedState!==null&&(bl=u)}}else gu()}function gu(){X(di,di.current),X(zs,zs.current)}function _c(u){Z(zs),bl===u&&(bl=null),Z(di)}var di=Q(0);function xb(u){for(var h=u;h!==null;){if(h.tag===13){var _=h.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||_.data==="$?"||pC(_)))return h}else if(h.tag===19&&h.memoizedProps.revealOrder!==void 0){if((h.flags&128)!==0)return h}else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===u)break;for(;h.sibling===null;){if(h.return===null||h.return===u)return null;h=h.return}h.sibling.return=h.return,h=h.sibling}return null}function Cx(u,h,_,v){h=u.memoizedState,_=_(v,h),_=_==null?h:f({},h,_),u.memoizedState=_,u.lanes===0&&(u.updateQueue.baseState=_)}var Ox={enqueueSetState:function(u,h,_){u=u._reactInternals;var v=hs(),R=fu(v);R.payload=h,_!=null&&(R.callback=_),h=hu(u,R,v),h!==null&&(ps(h,u,v),Xm(h,u,v))},enqueueReplaceState:function(u,h,_){u=u._reactInternals;var v=hs(),R=fu(v);R.tag=1,R.payload=h,_!=null&&(R.callback=_),h=hu(u,R,v),h!==null&&(ps(h,u,v),Xm(h,u,v))},enqueueForceUpdate:function(u,h){u=u._reactInternals;var _=hs(),v=fu(_);v.tag=2,h!=null&&(v.callback=h),h=hu(u,v,_),h!==null&&(ps(h,u,_),Xm(h,u,_))}};function x2(u,h,_,v,R,A,q){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(v,A,q):h.prototype&&h.prototype.isPureReactComponent?!sn(_,v)||!sn(R,A):!0}function C2(u,h,_,v){u=h.state,typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps(_,v),typeof h.UNSAFE_componentWillReceiveProps=="function"&&h.UNSAFE_componentWillReceiveProps(_,v),h.state!==u&&Ox.enqueueReplaceState(h,h.state,null)}function Yd(u,h){var _=h;if("ref"in h){_={};for(var v in h)v!=="ref"&&(_[v]=h[v])}if(u=u.defaultProps){_===h&&(_=f({},_));for(var R in u)_[R]===void 0&&(_[R]=u[R])}return _}var Cb=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var h=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(h))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function O2(u){Cb(u)}function R2(u){console.error(u)}function N2(u){Cb(u)}function Ob(u,h){try{var _=u.onUncaughtError;_(h.value,{componentStack:h.stack})}catch(v){setTimeout(function(){throw v})}}function A2(u,h,_){try{var v=u.onCaughtError;v(_.value,{componentStack:_.stack,errorBoundary:h.tag===1?h.stateNode:null})}catch(R){setTimeout(function(){throw R})}}function Rx(u,h,_){return _=fu(_),_.tag=3,_.payload={element:null},_.callback=function(){Ob(u,h)},_}function w2(u){return u=fu(u),u.tag=3,u}function I2(u,h,_,v){var R=_.type.getDerivedStateFromError;if(typeof R=="function"){var A=v.value;u.payload=function(){return R(A)},u.callback=function(){A2(h,_,v)}}var q=_.stateNode;q!==null&&typeof q.componentDidCatch=="function"&&(u.callback=function(){A2(h,_,v),typeof R!="function"&&(yu===null?yu=new Set([this]):yu.add(this));var K=v.stack;this.componentDidCatch(v.value,{componentStack:K!==null?K:""})})}function FX(u,h,_,v,R){if(_.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(h=_.alternate,h!==null&&Hm(h,_,R,!0),_=zs.current,_!==null){switch(_.tag){case 13:return bl===null?Xx():_.alternate===null&&Mr===0&&(Mr=3),_.flags&=-257,_.flags|=65536,_.lanes=R,v===nx?_.flags|=16384:(h=_.updateQueue,h===null?_.updateQueue=new Set([v]):h.add(v),Jx(u,v,R)),!1;case 22:return _.flags|=65536,v===nx?_.flags|=16384:(h=_.updateQueue,h===null?(h={transitions:null,markerInstances:null,retryQueue:new Set([v])},_.updateQueue=h):(_=h.retryQueue,_===null?h.retryQueue=new Set([v]):_.add(v)),Jx(u,v,R)),!1}throw Error(r(435,_.tag))}return Jx(u,v,R),Xx(),!1}if(xn)return h=zs.current,h!==null?((h.flags&65536)===0&&(h.flags|=256),h.flags|=65536,h.lanes=R,v!==QT&&(u=Error(r(422),{cause:v}),Ym(js(u,_)))):(v!==QT&&(h=Error(r(423),{cause:v}),Ym(js(h,_))),u=u.current.alternate,u.flags|=65536,R&=-R,u.lanes|=R,v=js(v,_),R=Rx(u.stateNode,v,R),ax(u,R),Mr!==4&&(Mr=2)),!1;var A=Error(r(520),{cause:v});if(A=js(A,_),fg===null?fg=[A]:fg.push(A),Mr!==4&&(Mr=2),h===null)return!0;v=js(v,_),_=h;do{switch(_.tag){case 3:return _.flags|=65536,u=R&-R,_.lanes|=u,u=Rx(_.stateNode,v,u),ax(_,u),!1;case 1:if(h=_.type,A=_.stateNode,(_.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(yu===null||!yu.has(A))))return _.flags|=65536,R&=-R,_.lanes|=R,R=w2(R),I2(R,u,_,v),ax(_,R),!1}_=_.return}while(_!==null);return!1}var D2=Error(r(461)),Ri=!1;function zi(u,h,_,v){h.child=u===null?y2(h,null,_,v):Eh(h,u.child,_,v)}function M2(u,h,_,v,R){_=_.render;var A=h.ref;if("ref"in v){var q={};for(var K in v)K!=="ref"&&(q[K]=v[K])}else q=v;return qd(h),v=ux(u,h,_,q,A,R),K=dx(),u!==null&&!Ri?(fx(u,h,R),bc(u,h,R)):(xn&&K&&VT(h),h.flags|=1,zi(u,h,v,R),h.child)}function L2(u,h,_,v,R){if(u===null){var A=_.type;return typeof A=="function"&&!zT(A)&&A.defaultProps===void 0&&_.compare===null?(h.tag=15,h.type=A,k2(u,h,A,v,R)):(u=ab(_.type,null,v,h,h.mode,R),u.ref=h.ref,u.return=h,h.child=u)}if(A=u.child,!kx(u,R)){var q=A.memoizedProps;if(_=_.compare,_=_!==null?_:sn,_(q,v)&&u.ref===h.ref)return bc(u,h,R)}return h.flags|=1,u=dc(A,v),u.ref=h.ref,u.return=h,h.child=u}function k2(u,h,_,v,R){if(u!==null){var A=u.memoizedProps;if(sn(A,v)&&u.ref===h.ref)if(Ri=!1,h.pendingProps=v=A,kx(u,R))(u.flags&131072)!==0&&(Ri=!0);else return h.lanes=u.lanes,bc(u,h,R)}return Nx(u,h,_,v,R)}function P2(u,h,_){var v=h.pendingProps,R=v.children,A=u!==null?u.memoizedState:null;if(v.mode==="hidden"){if((h.flags&128)!==0){if(v=A!==null?A.baseLanes|_:_,u!==null){for(R=h.child=u.child,A=0;R!==null;)A=A|R.lanes|R.childLanes,R=R.sibling;h.childLanes=A&~v}else h.childLanes=0,h.child=null;return B2(u,h,v,_)}if((_&536870912)!==0)h.memoizedState={baseLanes:0,cachePool:null},u!==null&&ub(h,A!==null?A.cachePool:null),A!==null?kP(h,A):ox(),T2(h);else return h.lanes=h.childLanes=536870912,B2(u,h,A!==null?A.baseLanes|_:_,_)}else A!==null?(ub(h,A.cachePool),kP(h,A),gu(),h.memoizedState=null):(u!==null&&ub(h,null),ox(),gu());return zi(u,h,R,_),h.child}function B2(u,h,_,v){var R=tx();return R=R===null?null:{parent:ui._currentValue,pool:R},h.memoizedState={baseLanes:_,cachePool:R},u!==null&&ub(h,null),ox(),T2(h),u!==null&&Hm(u,h,v,!0),null}function Rb(u,h){var _=h.ref;if(_===null)u!==null&&u.ref!==null&&(h.flags|=4194816);else{if(typeof _!="function"&&typeof _!="object")throw Error(r(284));(u===null||u.ref!==_)&&(h.flags|=4194816)}}function Nx(u,h,_,v,R){return qd(h),_=ux(u,h,_,v,void 0,R),v=dx(),u!==null&&!Ri?(fx(u,h,R),bc(u,h,R)):(xn&&v&&VT(h),h.flags|=1,zi(u,h,_,R),h.child)}function F2(u,h,_,v,R,A){return qd(h),h.updateQueue=null,_=BP(h,v,_,R),PP(u),v=dx(),u!==null&&!Ri?(fx(u,h,A),bc(u,h,A)):(xn&&v&&VT(h),h.flags|=1,zi(u,h,_,A),h.child)}function U2(u,h,_,v,R){if(qd(h),h.stateNode===null){var A=dh,q=_.contextType;typeof q=="object"&&q!==null&&(A=da(q)),A=new _(v,A),h.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=Ox,h.stateNode=A,A._reactInternals=h,A=h.stateNode,A.props=v,A.state=h.memoizedState,A.refs={},rx(h),q=_.contextType,A.context=typeof q=="object"&&q!==null?da(q):dh,A.state=h.memoizedState,q=_.getDerivedStateFromProps,typeof q=="function"&&(Cx(h,_,q,v),A.state=h.memoizedState),typeof _.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(q=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),q!==A.state&&Ox.enqueueReplaceState(A,A.state,null),Jm(h,v,A,R),Zm(),A.state=h.memoizedState),typeof A.componentDidMount=="function"&&(h.flags|=4194308),v=!0}else if(u===null){A=h.stateNode;var K=h.memoizedProps,te=Yd(_,K);A.props=te;var _e=A.context,Ie=_.contextType;q=dh,typeof Ie=="object"&&Ie!==null&&(q=da(Ie));var Ue=_.getDerivedStateFromProps;Ie=typeof Ue=="function"||typeof A.getSnapshotBeforeUpdate=="function",K=h.pendingProps!==K,Ie||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(K||_e!==q)&&C2(h,A,v,q),du=!1;var Ee=h.memoizedState;A.state=Ee,Jm(h,v,A,R),Zm(),_e=h.memoizedState,K||Ee!==_e||du?(typeof Ue=="function"&&(Cx(h,_,Ue,v),_e=h.memoizedState),(te=du||x2(h,_,te,v,Ee,_e,q))?(Ie||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(h.flags|=4194308)):(typeof A.componentDidMount=="function"&&(h.flags|=4194308),h.memoizedProps=v,h.memoizedState=_e),A.props=v,A.state=_e,A.context=q,v=te):(typeof A.componentDidMount=="function"&&(h.flags|=4194308),v=!1)}else{A=h.stateNode,ix(u,h),q=h.memoizedProps,Ie=Yd(_,q),A.props=Ie,Ue=h.pendingProps,Ee=A.context,_e=_.contextType,te=dh,typeof _e=="object"&&_e!==null&&(te=da(_e)),K=_.getDerivedStateFromProps,(_e=typeof K=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(q!==Ue||Ee!==te)&&C2(h,A,v,te),du=!1,Ee=h.memoizedState,A.state=Ee,Jm(h,v,A,R),Zm();var Ce=h.memoizedState;q!==Ue||Ee!==Ce||du||u!==null&&u.dependencies!==null&&lb(u.dependencies)?(typeof K=="function"&&(Cx(h,_,K,v),Ce=h.memoizedState),(Ie=du||x2(h,_,Ie,v,Ee,Ce,te)||u!==null&&u.dependencies!==null&&lb(u.dependencies))?(_e||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(v,Ce,te),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(v,Ce,te)),typeof A.componentDidUpdate=="function"&&(h.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(h.flags|=1024)):(typeof A.componentDidUpdate!="function"||q===u.memoizedProps&&Ee===u.memoizedState||(h.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||q===u.memoizedProps&&Ee===u.memoizedState||(h.flags|=1024),h.memoizedProps=v,h.memoizedState=Ce),A.props=v,A.state=Ce,A.context=te,v=Ie):(typeof A.componentDidUpdate!="function"||q===u.memoizedProps&&Ee===u.memoizedState||(h.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||q===u.memoizedProps&&Ee===u.memoizedState||(h.flags|=1024),v=!1)}return A=v,Rb(u,h),v=(h.flags&128)!==0,A||v?(A=h.stateNode,_=v&&typeof _.getDerivedStateFromError!="function"?null:A.render(),h.flags|=1,u!==null&&v?(h.child=Eh(h,u.child,null,R),h.child=Eh(h,null,_,R)):zi(u,h,_,R),h.memoizedState=A.state,u=h.child):u=bc(u,h,R),u}function j2(u,h,_,v){return zm(),h.flags|=256,zi(u,h,_,v),h.child}var Ax={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wx(u){return{baseLanes:u,cachePool:RP()}}function Ix(u,h,_){return u=u!==null?u.childLanes&~_:0,h&&(u|=Ys),u}function G2(u,h,_){var v=h.pendingProps,R=!1,A=(h.flags&128)!==0,q;if((q=A)||(q=u!==null&&u.memoizedState===null?!1:(di.current&2)!==0),q&&(R=!0,h.flags&=-129),q=(h.flags&32)!==0,h.flags&=-33,u===null){if(xn){if(R?mu(h):gu(),xn){var K=Dr,te;if(te=K){e:{for(te=K,K=_l;te.nodeType!==8;){if(!K){K=null;break e}if(te=Ao(te.nextSibling),te===null){K=null;break e}}K=te}K!==null?(h.memoizedState={dehydrated:K,treeContext:Bd!==null?{id:fc,overflow:hc}:null,retryLane:536870912,hydrationErrors:null},te=cs(18,null,null,0),te.stateNode=K,te.return=h,h.child=te,Oa=h,Dr=null,te=!0):te=!1}te||jd(h)}if(K=h.memoizedState,K!==null&&(K=K.dehydrated,K!==null))return pC(K)?h.lanes=32:h.lanes=536870912,null;_c(h)}return K=v.children,v=v.fallback,R?(gu(),R=h.mode,K=Nb({mode:"hidden",children:K},R),v=Pd(v,R,_,null),K.return=h,v.return=h,K.sibling=v,h.child=K,R=h.child,R.memoizedState=wx(_),R.childLanes=Ix(u,q,_),h.memoizedState=Ax,v):(mu(h),Dx(h,K))}if(te=u.memoizedState,te!==null&&(K=te.dehydrated,K!==null)){if(A)h.flags&256?(mu(h),h.flags&=-257,h=Mx(u,h,_)):h.memoizedState!==null?(gu(),h.child=u.child,h.flags|=128,h=null):(gu(),R=v.fallback,K=h.mode,v=Nb({mode:"visible",children:v.children},K),R=Pd(R,K,_,null),R.flags|=2,v.return=h,R.return=h,v.sibling=R,h.child=v,Eh(h,u.child,null,_),v=h.child,v.memoizedState=wx(_),v.childLanes=Ix(u,q,_),h.memoizedState=Ax,h=R);else if(mu(h),pC(K)){if(q=K.nextSibling&&K.nextSibling.dataset,q)var _e=q.dgst;q=_e,v=Error(r(419)),v.stack="",v.digest=q,Ym({value:v,source:null,stack:null}),h=Mx(u,h,_)}else if(Ri||Hm(u,h,_,!1),q=(_&u.childLanes)!==0,Ri||q){if(q=ar,q!==null&&(v=_&-_,v=(v&42)!==0?1:Ke(v),v=(v&(q.suspendedLanes|_))!==0?0:v,v!==0&&v!==te.retryLane))throw te.retryLane=v,uh(u,v),ps(q,u,v),D2;K.data==="$?"||Xx(),h=Mx(u,h,_)}else K.data==="$?"?(h.flags|=192,h.child=u.child,h=null):(u=te.treeContext,Dr=Ao(K.nextSibling),Oa=h,xn=!0,Ud=null,_l=!1,u!==null&&(qs[$s++]=fc,qs[$s++]=hc,qs[$s++]=Bd,fc=u.id,hc=u.overflow,Bd=h),h=Dx(h,v.children),h.flags|=4096);return h}return R?(gu(),R=v.fallback,K=h.mode,te=u.child,_e=te.sibling,v=dc(te,{mode:"hidden",children:v.children}),v.subtreeFlags=te.subtreeFlags&65011712,_e!==null?R=dc(_e,R):(R=Pd(R,K,_,null),R.flags|=2),R.return=h,v.return=h,v.sibling=R,h.child=v,v=R,R=h.child,K=u.child.memoizedState,K===null?K=wx(_):(te=K.cachePool,te!==null?(_e=ui._currentValue,te=te.parent!==_e?{parent:_e,pool:_e}:te):te=RP(),K={baseLanes:K.baseLanes|_,cachePool:te}),R.memoizedState=K,R.childLanes=Ix(u,q,_),h.memoizedState=Ax,v):(mu(h),_=u.child,u=_.sibling,_=dc(_,{mode:"visible",children:v.children}),_.return=h,_.sibling=null,u!==null&&(q=h.deletions,q===null?(h.deletions=[u],h.flags|=16):q.push(u)),h.child=_,h.memoizedState=null,_)}function Dx(u,h){return h=Nb({mode:"visible",children:h},u.mode),h.return=u,u.child=h}function Nb(u,h){return u=cs(22,u,null,h),u.lanes=0,u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},u}function Mx(u,h,_){return Eh(h,u.child,null,_),u=Dx(h,h.pendingProps.children),u.flags|=2,h.memoizedState=null,u}function q2(u,h,_){u.lanes|=h;var v=u.alternate;v!==null&&(v.lanes|=h),XT(u.return,h,_)}function Lx(u,h,_,v,R){var A=u.memoizedState;A===null?u.memoizedState={isBackwards:h,rendering:null,renderingStartTime:0,last:v,tail:_,tailMode:R}:(A.isBackwards=h,A.rendering=null,A.renderingStartTime=0,A.last=v,A.tail=_,A.tailMode=R)}function $2(u,h,_){var v=h.pendingProps,R=v.revealOrder,A=v.tail;if(zi(u,h,v.children,_),v=di.current,(v&2)!==0)v=v&1|2,h.flags|=128;else{if(u!==null&&(u.flags&128)!==0)e:for(u=h.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&q2(u,_,h);else if(u.tag===19)q2(u,_,h);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===h)break e;for(;u.sibling===null;){if(u.return===null||u.return===h)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}v&=1}switch(X(di,v),R){case"forwards":for(_=h.child,R=null;_!==null;)u=_.alternate,u!==null&&xb(u)===null&&(R=_),_=_.sibling;_=R,_===null?(R=h.child,h.child=null):(R=_.sibling,_.sibling=null),Lx(h,!1,R,_,A);break;case"backwards":for(_=null,R=h.child,h.child=null;R!==null;){if(u=R.alternate,u!==null&&xb(u)===null){h.child=R;break}u=R.sibling,R.sibling=_,_=R,R=u}Lx(h,!0,_,null,A);break;case"together":Lx(h,!1,null,null,void 0);break;default:h.memoizedState=null}return h.child}function bc(u,h,_){if(u!==null&&(h.dependencies=u.dependencies),Eu|=h.lanes,(_&h.childLanes)===0)if(u!==null){if(Hm(u,h,_,!1),(_&h.childLanes)===0)return null}else return null;if(u!==null&&h.child!==u.child)throw Error(r(153));if(h.child!==null){for(u=h.child,_=dc(u,u.pendingProps),h.child=_,_.return=h;u.sibling!==null;)u=u.sibling,_=_.sibling=dc(u,u.pendingProps),_.return=h;_.sibling=null}return h.child}function kx(u,h){return(u.lanes&h)!==0?!0:(u=u.dependencies,!!(u!==null&&lb(u)))}function UX(u,h,_){switch(h.tag){case 3:Ne(h,h.stateNode.containerInfo),uu(h,ui,u.memoizedState.cache),zm();break;case 27:case 5:Oe(h);break;case 4:Ne(h,h.stateNode.containerInfo);break;case 10:uu(h,h.type,h.memoizedProps.value);break;case 13:var v=h.memoizedState;if(v!==null)return v.dehydrated!==null?(mu(h),h.flags|=128,null):(_&h.child.childLanes)!==0?G2(u,h,_):(mu(h),u=bc(u,h,_),u!==null?u.sibling:null);mu(h);break;case 19:var R=(u.flags&128)!==0;if(v=(_&h.childLanes)!==0,v||(Hm(u,h,_,!1),v=(_&h.childLanes)!==0),R){if(v)return $2(u,h,_);h.flags|=128}if(R=h.memoizedState,R!==null&&(R.rendering=null,R.tail=null,R.lastEffect=null),X(di,di.current),v)break;return null;case 22:case 23:return h.lanes=0,P2(u,h,_);case 24:uu(h,ui,u.memoizedState.cache)}return bc(u,h,_)}function z2(u,h,_){if(u!==null)if(u.memoizedProps!==h.pendingProps)Ri=!0;else{if(!kx(u,_)&&(h.flags&128)===0)return Ri=!1,UX(u,h,_);Ri=(u.flags&131072)!==0}else Ri=!1,xn&&(h.flags&1048576)!==0&&SP(h,ob,h.index);switch(h.lanes=0,h.tag){case 16:e:{u=h.pendingProps;var v=h.elementType,R=v._init;if(v=R(v._payload),h.type=v,typeof v=="function")zT(v)?(u=Yd(v,u),h.tag=1,h=U2(null,h,v,u,_)):(h.tag=0,h=Nx(null,h,v,u,_));else{if(v!=null){if(R=v.$$typeof,R===O){h.tag=11,h=M2(null,h,v,u,_);break e}else if(R===w){h.tag=14,h=L2(null,h,v,u,_);break e}}throw h=H(v)||v,Error(r(306,h,""))}}return h;case 0:return Nx(u,h,h.type,h.pendingProps,_);case 1:return v=h.type,R=Yd(v,h.pendingProps),U2(u,h,v,R,_);case 3:e:{if(Ne(h,h.stateNode.containerInfo),u===null)throw Error(r(387));v=h.pendingProps;var A=h.memoizedState;R=A.element,ix(u,h),Jm(h,v,null,_);var q=h.memoizedState;if(v=q.cache,uu(h,ui,v),v!==A.cache&&ZT(h,[ui],_,!0),Zm(),v=q.element,A.isDehydrated)if(A={element:v,isDehydrated:!1,cache:q.cache},h.updateQueue.baseState=A,h.memoizedState=A,h.flags&256){h=j2(u,h,v,_);break e}else if(v!==R){R=js(Error(r(424)),h),Ym(R),h=j2(u,h,v,_);break e}else{switch(u=h.stateNode.containerInfo,u.nodeType){case 9:u=u.body;break;default:u=u.nodeName==="HTML"?u.ownerDocument.body:u}for(Dr=Ao(u.firstChild),Oa=h,xn=!0,Ud=null,_l=!0,_=y2(h,null,v,_),h.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling}else{if(zm(),v===R){h=bc(u,h,_);break e}zi(u,h,v,_)}h=h.child}return h;case 26:return Rb(u,h),u===null?(_=W3(h.type,null,h.pendingProps,null))?h.memoizedState=_:xn||(_=h.type,u=h.pendingProps,v=qb(be.current).createElement(_),v[ze]=h,v[dt]=u,Hi(v,_,u),Wn(v),h.stateNode=v):h.memoizedState=W3(h.type,u.memoizedProps,h.pendingProps,u.memoizedState),null;case 27:return Oe(h),u===null&&xn&&(v=h.stateNode=Y3(h.type,h.pendingProps,be.current),Oa=h,_l=!0,R=Dr,Cu(h.type)?(mC=R,Dr=Ao(v.firstChild)):Dr=R),zi(u,h,h.pendingProps.children,_),Rb(u,h),u===null&&(h.flags|=4194304),h.child;case 5:return u===null&&xn&&((R=v=Dr)&&(v=hZ(v,h.type,h.pendingProps,_l),v!==null?(h.stateNode=v,Oa=h,Dr=Ao(v.firstChild),_l=!1,R=!0):R=!1),R||jd(h)),Oe(h),R=h.type,A=h.pendingProps,q=u!==null?u.memoizedProps:null,v=A.children,dC(R,A)?v=null:q!==null&&dC(R,q)&&(h.flags|=32),h.memoizedState!==null&&(R=ux(u,h,IX,null,null,_),Eg._currentValue=R),Rb(u,h),zi(u,h,v,_),h.child;case 6:return u===null&&xn&&((u=_=Dr)&&(_=pZ(_,h.pendingProps,_l),_!==null?(h.stateNode=_,Oa=h,Dr=null,u=!0):u=!1),u||jd(h)),null;case 13:return G2(u,h,_);case 4:return Ne(h,h.stateNode.containerInfo),v=h.pendingProps,u===null?h.child=Eh(h,null,v,_):zi(u,h,v,_),h.child;case 11:return M2(u,h,h.type,h.pendingProps,_);case 7:return zi(u,h,h.pendingProps,_),h.child;case 8:return zi(u,h,h.pendingProps.children,_),h.child;case 12:return zi(u,h,h.pendingProps.children,_),h.child;case 10:return v=h.pendingProps,uu(h,h.type,v.value),zi(u,h,v.children,_),h.child;case 9:return R=h.type._context,v=h.pendingProps.children,qd(h),R=da(R),v=v(R),h.flags|=1,zi(u,h,v,_),h.child;case 14:return L2(u,h,h.type,h.pendingProps,_);case 15:return k2(u,h,h.type,h.pendingProps,_);case 19:return $2(u,h,_);case 31:return v=h.pendingProps,_=h.mode,v={mode:v.mode,children:v.children},u===null?(_=Nb(v,_),_.ref=h.ref,h.child=_,_.return=h,h=_):(_=dc(u.child,v),_.ref=h.ref,h.child=_,_.return=h,h=_),h;case 22:return P2(u,h,_);case 24:return qd(h),v=da(ui),u===null?(R=tx(),R===null&&(R=ar,A=JT(),R.pooledCache=A,A.refCount++,A!==null&&(R.pooledCacheLanes|=_),R=A),h.memoizedState={parent:v,cache:R},rx(h),uu(h,ui,R)):((u.lanes&_)!==0&&(ix(u,h),Jm(h,null,null,_),Zm()),R=u.memoizedState,A=h.memoizedState,R.parent!==v?(R={parent:v,cache:v},h.memoizedState=R,h.lanes===0&&(h.memoizedState=h.updateQueue.baseState=R),uu(h,ui,v)):(v=A.cache,uu(h,ui,v),v!==R.cache&&ZT(h,[ui],_,!0))),zi(u,h,h.pendingProps.children,_),h.child;case 29:throw h.pendingProps}throw Error(r(156,h.tag))}function vc(u){u.flags|=4}function Y2(u,h){if(h.type!=="stylesheet"||(h.state.loading&4)!==0)u.flags&=-16777217;else if(u.flags|=16777216,!J3(h)){if(h=zs.current,h!==null&&((pn&4194048)===pn?bl!==null:(pn&62914560)!==pn&&(pn&536870912)===0||h!==bl))throw Km=nx,NP;u.flags|=8192}}function Ab(u,h){h!==null&&(u.flags|=4),u.flags&16384&&(h=u.tag!==22?Vn():536870912,u.lanes|=h,Ch|=h)}function sg(u,h){if(!xn)switch(u.tailMode){case"hidden":h=u.tail;for(var _=null;h!==null;)h.alternate!==null&&(_=h),h=h.sibling;_===null?u.tail=null:_.sibling=null;break;case"collapsed":_=u.tail;for(var v=null;_!==null;)_.alternate!==null&&(v=_),_=_.sibling;v===null?h||u.tail===null?u.tail=null:u.tail.sibling=null:v.sibling=null}}function Or(u){var h=u.alternate!==null&&u.alternate.child===u.child,_=0,v=0;if(h)for(var R=u.child;R!==null;)_|=R.lanes|R.childLanes,v|=R.subtreeFlags&65011712,v|=R.flags&65011712,R.return=u,R=R.sibling;else for(R=u.child;R!==null;)_|=R.lanes|R.childLanes,v|=R.subtreeFlags,v|=R.flags,R.return=u,R=R.sibling;return u.subtreeFlags|=v,u.childLanes=_,h}function jX(u,h,_){var v=h.pendingProps;switch(WT(h),h.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Or(h),null;case 1:return Or(h),null;case 3:return _=h.stateNode,v=null,u!==null&&(v=u.memoizedState.cache),h.memoizedState.cache!==v&&(h.flags|=2048),mc(ui),ke(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(u===null||u.child===null)&&($m(h)?vc(h):u===null||u.memoizedState.isDehydrated&&(h.flags&256)===0||(h.flags|=1024,TP())),Or(h),null;case 26:return _=h.memoizedState,u===null?(vc(h),_!==null?(Or(h),Y2(h,_)):(Or(h),h.flags&=-16777217)):_?_!==u.memoizedState?(vc(h),Or(h),Y2(h,_)):(Or(h),h.flags&=-16777217):(u.memoizedProps!==v&&vc(h),Or(h),h.flags&=-16777217),null;case 27:oe(h),_=be.current;var R=h.type;if(u!==null&&h.stateNode!=null)u.memoizedProps!==v&&vc(h);else{if(!v){if(h.stateNode===null)throw Error(r(166));return Or(h),null}u=ue.current,$m(h)?EP(h):(u=Y3(R,v,_),h.stateNode=u,vc(h))}return Or(h),null;case 5:if(oe(h),_=h.type,u!==null&&h.stateNode!=null)u.memoizedProps!==v&&vc(h);else{if(!v){if(h.stateNode===null)throw Error(r(166));return Or(h),null}if(u=ue.current,$m(h))EP(h);else{switch(R=qb(be.current),u){case 1:u=R.createElementNS("http://www.w3.org/2000/svg",_);break;case 2:u=R.createElementNS("http://www.w3.org/1998/Math/MathML",_);break;default:switch(_){case"svg":u=R.createElementNS("http://www.w3.org/2000/svg",_);break;case"math":u=R.createElementNS("http://www.w3.org/1998/Math/MathML",_);break;case"script":u=R.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof v.is=="string"?R.createElement("select",{is:v.is}):R.createElement("select"),v.multiple?u.multiple=!0:v.size&&(u.size=v.size);break;default:u=typeof v.is=="string"?R.createElement(_,{is:v.is}):R.createElement(_)}}u[ze]=h,u[dt]=v;e:for(R=h.child;R!==null;){if(R.tag===5||R.tag===6)u.appendChild(R.stateNode);else if(R.tag!==4&&R.tag!==27&&R.child!==null){R.child.return=R,R=R.child;continue}if(R===h)break e;for(;R.sibling===null;){if(R.return===null||R.return===h)break e;R=R.return}R.sibling.return=R.return,R=R.sibling}h.stateNode=u;e:switch(Hi(u,_,v),_){case"button":case"input":case"select":case"textarea":u=!!v.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&vc(h)}}return Or(h),h.flags&=-16777217,null;case 6:if(u&&h.stateNode!=null)u.memoizedProps!==v&&vc(h);else{if(typeof v!="string"&&h.stateNode===null)throw Error(r(166));if(u=be.current,$m(h)){if(u=h.stateNode,_=h.memoizedProps,v=null,R=Oa,R!==null)switch(R.tag){case 27:case 5:v=R.memoizedProps}u[ze]=h,u=!!(u.nodeValue===_||v!==null&&v.suppressHydrationWarning===!0||F3(u.nodeValue,_)),u||jd(h)}else u=qb(u).createTextNode(v),u[ze]=h,h.stateNode=u}return Or(h),null;case 13:if(v=h.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(R=$m(h),v!==null&&v.dehydrated!==null){if(u===null){if(!R)throw Error(r(318));if(R=h.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(r(317));R[ze]=h}else zm(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;Or(h),R=!1}else R=TP(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=R),R=!0;if(!R)return h.flags&256?(_c(h),h):(_c(h),null)}if(_c(h),(h.flags&128)!==0)return h.lanes=_,h;if(_=v!==null,u=u!==null&&u.memoizedState!==null,_){v=h.child,R=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(R=v.alternate.memoizedState.cachePool.pool);var A=null;v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(A=v.memoizedState.cachePool.pool),A!==R&&(v.flags|=2048)}return _!==u&&_&&(h.child.flags|=8192),Ab(h,h.updateQueue),Or(h),null;case 4:return ke(),u===null&&sC(h.stateNode.containerInfo),Or(h),null;case 10:return mc(h.type),Or(h),null;case 19:if(Z(di),R=h.memoizedState,R===null)return Or(h),null;if(v=(h.flags&128)!==0,A=R.rendering,A===null)if(v)sg(R,!1);else{if(Mr!==0||u!==null&&(u.flags&128)!==0)for(u=h.child;u!==null;){if(A=xb(u),A!==null){for(h.flags|=128,sg(R,!1),u=A.updateQueue,h.updateQueue=u,Ab(h,u),h.subtreeFlags=0,u=_,_=h.child;_!==null;)vP(_,u),_=_.sibling;return X(di,di.current&1|2),h.child}u=u.sibling}R.tail!==null&&Ae()>Db&&(h.flags|=128,v=!0,sg(R,!1),h.lanes=4194304)}else{if(!v)if(u=xb(A),u!==null){if(h.flags|=128,v=!0,u=u.updateQueue,h.updateQueue=u,Ab(h,u),sg(R,!0),R.tail===null&&R.tailMode==="hidden"&&!A.alternate&&!xn)return Or(h),null}else 2*Ae()-R.renderingStartTime>Db&&_!==536870912&&(h.flags|=128,v=!0,sg(R,!1),h.lanes=4194304);R.isBackwards?(A.sibling=h.child,h.child=A):(u=R.last,u!==null?u.sibling=A:h.child=A,R.last=A)}return R.tail!==null?(h=R.tail,R.rendering=h,R.tail=h.sibling,R.renderingStartTime=Ae(),h.sibling=null,u=di.current,X(di,v?u&1|2:u&1),h):(Or(h),null);case 22:case 23:return _c(h),lx(),v=h.memoizedState!==null,u!==null?u.memoizedState!==null!==v&&(h.flags|=8192):v&&(h.flags|=8192),v?(_&536870912)!==0&&(h.flags&128)===0&&(Or(h),h.subtreeFlags&6&&(h.flags|=8192)):Or(h),_=h.updateQueue,_!==null&&Ab(h,_.retryQueue),_=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(_=u.memoizedState.cachePool.pool),v=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(v=h.memoizedState.cachePool.pool),v!==_&&(h.flags|=2048),u!==null&&Z($d),null;case 24:return _=null,u!==null&&(_=u.memoizedState.cache),h.memoizedState.cache!==_&&(h.flags|=2048),mc(ui),Or(h),null;case 25:return null;case 30:return null}throw Error(r(156,h.tag))}function GX(u,h){switch(WT(h),h.tag){case 1:return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 3:return mc(ui),ke(),u=h.flags,(u&65536)!==0&&(u&128)===0?(h.flags=u&-65537|128,h):null;case 26:case 27:case 5:return oe(h),null;case 13:if(_c(h),u=h.memoizedState,u!==null&&u.dehydrated!==null){if(h.alternate===null)throw Error(r(340));zm()}return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 19:return Z(di),null;case 4:return ke(),null;case 10:return mc(h.type),null;case 22:case 23:return _c(h),lx(),u!==null&&Z($d),u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 24:return mc(ui),null;case 25:return null;default:return null}}function H2(u,h){switch(WT(h),h.tag){case 3:mc(ui),ke();break;case 26:case 27:case 5:oe(h);break;case 4:ke();break;case 13:_c(h);break;case 19:Z(di);break;case 10:mc(h.type);break;case 22:case 23:_c(h),lx(),u!==null&&Z($d);break;case 24:mc(ui)}}function og(u,h){try{var _=h.updateQueue,v=_!==null?_.lastEffect:null;if(v!==null){var R=v.next;_=R;do{if((_.tag&u)===u){v=void 0;var A=_.create,q=_.inst;v=A(),q.destroy=v}_=_.next}while(_!==R)}}catch(K){Qn(h,h.return,K)}}function _u(u,h,_){try{var v=h.updateQueue,R=v!==null?v.lastEffect:null;if(R!==null){var A=R.next;v=A;do{if((v.tag&u)===u){var q=v.inst,K=q.destroy;if(K!==void 0){q.destroy=void 0,R=h;var te=_,_e=K;try{_e()}catch(Ie){Qn(R,te,Ie)}}}v=v.next}while(v!==A)}}catch(Ie){Qn(h,h.return,Ie)}}function V2(u){var h=u.updateQueue;if(h!==null){var _=u.stateNode;try{LP(h,_)}catch(v){Qn(u,u.return,v)}}}function W2(u,h,_){_.props=Yd(u.type,u.memoizedProps),_.state=u.memoizedState;try{_.componentWillUnmount()}catch(v){Qn(u,h,v)}}function lg(u,h){try{var _=u.ref;if(_!==null){switch(u.tag){case 26:case 27:case 5:var v=u.stateNode;break;case 30:v=u.stateNode;break;default:v=u.stateNode}typeof _=="function"?u.refCleanup=_(v):_.current=v}}catch(R){Qn(u,h,R)}}function vl(u,h){var _=u.ref,v=u.refCleanup;if(_!==null)if(typeof v=="function")try{v()}catch(R){Qn(u,h,R)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof _=="function")try{_(null)}catch(R){Qn(u,h,R)}else _.current=null}function Q2(u){var h=u.type,_=u.memoizedProps,v=u.stateNode;try{e:switch(h){case"button":case"input":case"select":case"textarea":_.autoFocus&&v.focus();break e;case"img":_.src?v.src=_.src:_.srcSet&&(v.srcset=_.srcSet)}}catch(R){Qn(u,u.return,R)}}function Px(u,h,_){try{var v=u.stateNode;lZ(v,u.type,_,h),v[dt]=h}catch(R){Qn(u,u.return,R)}}function K2(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27&&Cu(u.type)||u.tag===4}function Bx(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||K2(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.tag===27&&Cu(u.type)||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 Fx(u,h,_){var v=u.tag;if(v===5||v===6)u=u.stateNode,h?(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).insertBefore(u,h):(h=_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,h.appendChild(u),_=_._reactRootContainer,_!=null||h.onclick!==null||(h.onclick=Gb));else if(v!==4&&(v===27&&Cu(u.type)&&(_=u.stateNode,h=null),u=u.child,u!==null))for(Fx(u,h,_),u=u.sibling;u!==null;)Fx(u,h,_),u=u.sibling}function wb(u,h,_){var v=u.tag;if(v===5||v===6)u=u.stateNode,h?_.insertBefore(u,h):_.appendChild(u);else if(v!==4&&(v===27&&Cu(u.type)&&(_=u.stateNode),u=u.child,u!==null))for(wb(u,h,_),u=u.sibling;u!==null;)wb(u,h,_),u=u.sibling}function X2(u){var h=u.stateNode,_=u.memoizedProps;try{for(var v=u.type,R=h.attributes;R.length;)h.removeAttributeNode(R[0]);Hi(h,v,_),h[ze]=u,h[dt]=_}catch(A){Qn(u,u.return,A)}}var Sc=!1,jr=!1,Ux=!1,Z2=typeof WeakSet=="function"?WeakSet:Set,Ni=null;function qX(u,h){if(u=u.containerInfo,cC=Wb,u=Tt(u),Mn(u)){if("selectionStart"in u)var _={start:u.selectionStart,end:u.selectionEnd};else e:{_=(_=u.ownerDocument)&&_.defaultView||window;var v=_.getSelection&&_.getSelection();if(v&&v.rangeCount!==0){_=v.anchorNode;var R=v.anchorOffset,A=v.focusNode;v=v.focusOffset;try{_.nodeType,A.nodeType}catch{_=null;break e}var q=0,K=-1,te=-1,_e=0,Ie=0,Ue=u,Ee=null;t:for(;;){for(var Ce;Ue!==_||R!==0&&Ue.nodeType!==3||(K=q+R),Ue!==A||v!==0&&Ue.nodeType!==3||(te=q+v),Ue.nodeType===3&&(q+=Ue.nodeValue.length),(Ce=Ue.firstChild)!==null;)Ee=Ue,Ue=Ce;for(;;){if(Ue===u)break t;if(Ee===_&&++_e===R&&(K=q),Ee===A&&++Ie===v&&(te=q),(Ce=Ue.nextSibling)!==null)break;Ue=Ee,Ee=Ue.parentNode}Ue=Ce}_=K===-1||te===-1?null:{start:K,end:te}}else _=null}_=_||{start:0,end:0}}else _=null;for(uC={focusedElem:u,selectionRange:_},Wb=!1,Ni=h;Ni!==null;)if(h=Ni,u=h.child,(h.subtreeFlags&1024)!==0&&u!==null)u.return=h,Ni=u;else for(;Ni!==null;){switch(h=Ni,A=h.alternate,u=h.flags,h.tag){case 0:break;case 11:case 15:break;case 1:if((u&1024)!==0&&A!==null){u=void 0,_=h,R=A.memoizedProps,A=A.memoizedState,v=_.stateNode;try{var Pt=Yd(_.type,R,_.elementType===_.type);u=v.getSnapshotBeforeUpdate(Pt,A),v.__reactInternalSnapshotBeforeUpdate=u}catch(It){Qn(_,_.return,It)}}break;case 3:if((u&1024)!==0){if(u=h.stateNode.containerInfo,_=u.nodeType,_===9)hC(u);else if(_===1)switch(u.nodeName){case"HEAD":case"HTML":case"BODY":hC(u);break;default:u.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&1024)!==0)throw Error(r(163))}if(u=h.sibling,u!==null){u.return=h.return,Ni=u;break}Ni=h.return}}function J2(u,h,_){var v=_.flags;switch(_.tag){case 0:case 11:case 15:bu(u,_),v&4&&og(5,_);break;case 1:if(bu(u,_),v&4)if(u=_.stateNode,h===null)try{u.componentDidMount()}catch(q){Qn(_,_.return,q)}else{var R=Yd(_.type,h.memoizedProps);h=h.memoizedState;try{u.componentDidUpdate(R,h,u.__reactInternalSnapshotBeforeUpdate)}catch(q){Qn(_,_.return,q)}}v&64&&V2(_),v&512&&lg(_,_.return);break;case 3:if(bu(u,_),v&64&&(u=_.updateQueue,u!==null)){if(h=null,_.child!==null)switch(_.child.tag){case 27:case 5:h=_.child.stateNode;break;case 1:h=_.child.stateNode}try{LP(u,h)}catch(q){Qn(_,_.return,q)}}break;case 27:h===null&&v&4&&X2(_);case 26:case 5:bu(u,_),h===null&&v&4&&Q2(_),v&512&&lg(_,_.return);break;case 12:bu(u,_);break;case 13:bu(u,_),v&4&&n3(u,_),v&64&&(u=_.memoizedState,u!==null&&(u=u.dehydrated,u!==null&&(_=XX.bind(null,_),mZ(u,_))));break;case 22:if(v=_.memoizedState!==null||Sc,!v){h=h!==null&&h.memoizedState!==null||jr,R=Sc;var A=jr;Sc=v,(jr=h)&&!A?vu(u,_,(_.subtreeFlags&8772)!==0):bu(u,_),Sc=R,jr=A}break;case 30:break;default:bu(u,_)}}function e3(u){var h=u.alternate;h!==null&&(u.alternate=null,e3(h)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(h=u.stateNode,h!==null&&cl(h)),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 vr=null,Ha=!1;function Ec(u,h,_){for(_=_.child;_!==null;)t3(u,h,_),_=_.sibling}function t3(u,h,_){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(et,_)}catch{}switch(_.tag){case 26:jr||vl(_,h),Ec(u,h,_),_.memoizedState?_.memoizedState.count--:_.stateNode&&(_=_.stateNode,_.parentNode.removeChild(_));break;case 27:jr||vl(_,h);var v=vr,R=Ha;Cu(_.type)&&(vr=_.stateNode,Ha=!1),Ec(u,h,_),_g(_.stateNode),vr=v,Ha=R;break;case 5:jr||vl(_,h);case 6:if(v=vr,R=Ha,vr=null,Ec(u,h,_),vr=v,Ha=R,vr!==null)if(Ha)try{(vr.nodeType===9?vr.body:vr.nodeName==="HTML"?vr.ownerDocument.body:vr).removeChild(_.stateNode)}catch(A){Qn(_,h,A)}else try{vr.removeChild(_.stateNode)}catch(A){Qn(_,h,A)}break;case 18:vr!==null&&(Ha?(u=vr,$3(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,_.stateNode),Cg(u)):$3(vr,_.stateNode));break;case 4:v=vr,R=Ha,vr=_.stateNode.containerInfo,Ha=!0,Ec(u,h,_),vr=v,Ha=R;break;case 0:case 11:case 14:case 15:jr||_u(2,_,h),jr||_u(4,_,h),Ec(u,h,_);break;case 1:jr||(vl(_,h),v=_.stateNode,typeof v.componentWillUnmount=="function"&&W2(_,h,v)),Ec(u,h,_);break;case 21:Ec(u,h,_);break;case 22:jr=(v=jr)||_.memoizedState!==null,Ec(u,h,_),jr=v;break;default:Ec(u,h,_)}}function n3(u,h){if(h.memoizedState===null&&(u=h.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null))))try{Cg(u)}catch(_){Qn(h,h.return,_)}}function $X(u){switch(u.tag){case 13:case 19:var h=u.stateNode;return h===null&&(h=u.stateNode=new Z2),h;case 22:return u=u.stateNode,h=u._retryCache,h===null&&(h=u._retryCache=new Z2),h;default:throw Error(r(435,u.tag))}}function jx(u,h){var _=$X(u);h.forEach(function(v){var R=ZX.bind(null,u,v);_.has(v)||(_.add(v),v.then(R,R))})}function us(u,h){var _=h.deletions;if(_!==null)for(var v=0;v<_.length;v++){var R=_[v],A=u,q=h,K=q;e:for(;K!==null;){switch(K.tag){case 27:if(Cu(K.type)){vr=K.stateNode,Ha=!1;break e}break;case 5:vr=K.stateNode,Ha=!1;break e;case 3:case 4:vr=K.stateNode.containerInfo,Ha=!0;break e}K=K.return}if(vr===null)throw Error(r(160));t3(A,q,R),vr=null,Ha=!1,A=R.alternate,A!==null&&(A.return=null),R.return=null}if(h.subtreeFlags&13878)for(h=h.child;h!==null;)r3(h,u),h=h.sibling}var No=null;function r3(u,h){var _=u.alternate,v=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:us(h,u),ds(u),v&4&&(_u(3,u,u.return),og(3,u),_u(5,u,u.return));break;case 1:us(h,u),ds(u),v&512&&(jr||_===null||vl(_,_.return)),v&64&&Sc&&(u=u.updateQueue,u!==null&&(v=u.callbacks,v!==null&&(_=u.shared.hiddenCallbacks,u.shared.hiddenCallbacks=_===null?v:_.concat(v))));break;case 26:var R=No;if(us(h,u),ds(u),v&512&&(jr||_===null||vl(_,_.return)),v&4){var A=_!==null?_.memoizedState:null;if(v=u.memoizedState,_===null)if(v===null)if(u.stateNode===null){e:{v=u.type,_=u.memoizedProps,R=R.ownerDocument||R;t:switch(v){case"title":A=R.getElementsByTagName("title")[0],(!A||A[go]||A[ze]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=R.createElement(v),R.head.insertBefore(A,R.querySelector("head > title"))),Hi(A,v,_),A[ze]=u,Wn(A),v=A;break e;case"link":var q=X3("link","href",R).get(v+(_.href||""));if(q){for(var K=0;K<q.length;K++)if(A=q[K],A.getAttribute("href")===(_.href==null||_.href===""?null:_.href)&&A.getAttribute("rel")===(_.rel==null?null:_.rel)&&A.getAttribute("title")===(_.title==null?null:_.title)&&A.getAttribute("crossorigin")===(_.crossOrigin==null?null:_.crossOrigin)){q.splice(K,1);break t}}A=R.createElement(v),Hi(A,v,_),R.head.appendChild(A);break;case"meta":if(q=X3("meta","content",R).get(v+(_.content||""))){for(K=0;K<q.length;K++)if(A=q[K],A.getAttribute("content")===(_.content==null?null:""+_.content)&&A.getAttribute("name")===(_.name==null?null:_.name)&&A.getAttribute("property")===(_.property==null?null:_.property)&&A.getAttribute("http-equiv")===(_.httpEquiv==null?null:_.httpEquiv)&&A.getAttribute("charset")===(_.charSet==null?null:_.charSet)){q.splice(K,1);break t}}A=R.createElement(v),Hi(A,v,_),R.head.appendChild(A);break;default:throw Error(r(468,v))}A[ze]=u,Wn(A),v=A}u.stateNode=v}else Z3(R,u.type,u.stateNode);else u.stateNode=K3(R,v,u.memoizedProps);else A!==v?(A===null?_.stateNode!==null&&(_=_.stateNode,_.parentNode.removeChild(_)):A.count--,v===null?Z3(R,u.type,u.stateNode):K3(R,v,u.memoizedProps)):v===null&&u.stateNode!==null&&Px(u,u.memoizedProps,_.memoizedProps)}break;case 27:us(h,u),ds(u),v&512&&(jr||_===null||vl(_,_.return)),_!==null&&v&4&&Px(u,u.memoizedProps,_.memoizedProps);break;case 5:if(us(h,u),ds(u),v&512&&(jr||_===null||vl(_,_.return)),u.flags&32){R=u.stateNode;try{xa(R,"")}catch(Ce){Qn(u,u.return,Ce)}}v&4&&u.stateNode!=null&&(R=u.memoizedProps,Px(u,R,_!==null?_.memoizedProps:R)),v&1024&&(Ux=!0);break;case 6:if(us(h,u),ds(u),v&4){if(u.stateNode===null)throw Error(r(162));v=u.memoizedProps,_=u.stateNode;try{_.nodeValue=v}catch(Ce){Qn(u,u.return,Ce)}}break;case 3:if(Yb=null,R=No,No=$b(h.containerInfo),us(h,u),No=R,ds(u),v&4&&_!==null&&_.memoizedState.isDehydrated)try{Cg(h.containerInfo)}catch(Ce){Qn(u,u.return,Ce)}Ux&&(Ux=!1,i3(u));break;case 4:v=No,No=$b(u.stateNode.containerInfo),us(h,u),ds(u),No=v;break;case 12:us(h,u),ds(u);break;case 13:us(h,u),ds(u),u.child.flags&8192&&u.memoizedState!==null!=(_!==null&&_.memoizedState!==null)&&(Hx=Ae()),v&4&&(v=u.updateQueue,v!==null&&(u.updateQueue=null,jx(u,v)));break;case 22:R=u.memoizedState!==null;var te=_!==null&&_.memoizedState!==null,_e=Sc,Ie=jr;if(Sc=_e||R,jr=Ie||te,us(h,u),jr=Ie,Sc=_e,ds(u),v&8192)e:for(h=u.stateNode,h._visibility=R?h._visibility&-2:h._visibility|1,R&&(_===null||te||Sc||jr||Hd(u)),_=null,h=u;;){if(h.tag===5||h.tag===26){if(_===null){te=_=h;try{if(A=te.stateNode,R)q=A.style,typeof q.setProperty=="function"?q.setProperty("display","none","important"):q.display="none";else{K=te.stateNode;var Ue=te.memoizedProps.style,Ee=Ue!=null&&Ue.hasOwnProperty("display")?Ue.display:null;K.style.display=Ee==null||typeof Ee=="boolean"?"":(""+Ee).trim()}}catch(Ce){Qn(te,te.return,Ce)}}}else if(h.tag===6){if(_===null){te=h;try{te.stateNode.nodeValue=R?"":te.memoizedProps}catch(Ce){Qn(te,te.return,Ce)}}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===u)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===u)break e;for(;h.sibling===null;){if(h.return===null||h.return===u)break e;_===h&&(_=null),h=h.return}_===h&&(_=null),h.sibling.return=h.return,h=h.sibling}v&4&&(v=u.updateQueue,v!==null&&(_=v.retryQueue,_!==null&&(v.retryQueue=null,jx(u,_))));break;case 19:us(h,u),ds(u),v&4&&(v=u.updateQueue,v!==null&&(u.updateQueue=null,jx(u,v)));break;case 30:break;case 21:break;default:us(h,u),ds(u)}}function ds(u){var h=u.flags;if(h&2){try{for(var _,v=u.return;v!==null;){if(K2(v)){_=v;break}v=v.return}if(_==null)throw Error(r(160));switch(_.tag){case 27:var R=_.stateNode,A=Bx(u);wb(u,A,R);break;case 5:var q=_.stateNode;_.flags&32&&(xa(q,""),_.flags&=-33);var K=Bx(u);wb(u,K,q);break;case 3:case 4:var te=_.stateNode.containerInfo,_e=Bx(u);Fx(u,_e,te);break;default:throw Error(r(161))}}catch(Ie){Qn(u,u.return,Ie)}u.flags&=-3}h&4096&&(u.flags&=-4097)}function i3(u){if(u.subtreeFlags&1024)for(u=u.child;u!==null;){var h=u;i3(h),h.tag===5&&h.flags&1024&&h.stateNode.reset(),u=u.sibling}}function bu(u,h){if(h.subtreeFlags&8772)for(h=h.child;h!==null;)J2(u,h.alternate,h),h=h.sibling}function Hd(u){for(u=u.child;u!==null;){var h=u;switch(h.tag){case 0:case 11:case 14:case 15:_u(4,h,h.return),Hd(h);break;case 1:vl(h,h.return);var _=h.stateNode;typeof _.componentWillUnmount=="function"&&W2(h,h.return,_),Hd(h);break;case 27:_g(h.stateNode);case 26:case 5:vl(h,h.return),Hd(h);break;case 22:h.memoizedState===null&&Hd(h);break;case 30:Hd(h);break;default:Hd(h)}u=u.sibling}}function vu(u,h,_){for(_=_&&(h.subtreeFlags&8772)!==0,h=h.child;h!==null;){var v=h.alternate,R=u,A=h,q=A.flags;switch(A.tag){case 0:case 11:case 15:vu(R,A,_),og(4,A);break;case 1:if(vu(R,A,_),v=A,R=v.stateNode,typeof R.componentDidMount=="function")try{R.componentDidMount()}catch(_e){Qn(v,v.return,_e)}if(v=A,R=v.updateQueue,R!==null){var K=v.stateNode;try{var te=R.shared.hiddenCallbacks;if(te!==null)for(R.shared.hiddenCallbacks=null,R=0;R<te.length;R++)MP(te[R],K)}catch(_e){Qn(v,v.return,_e)}}_&&q&64&&V2(A),lg(A,A.return);break;case 27:X2(A);case 26:case 5:vu(R,A,_),_&&v===null&&q&4&&Q2(A),lg(A,A.return);break;case 12:vu(R,A,_);break;case 13:vu(R,A,_),_&&q&4&&n3(R,A);break;case 22:A.memoizedState===null&&vu(R,A,_),lg(A,A.return);break;case 30:break;default:vu(R,A,_)}h=h.sibling}}function Gx(u,h){var _=null;u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(_=u.memoizedState.cachePool.pool),u=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(u=h.memoizedState.cachePool.pool),u!==_&&(u!=null&&u.refCount++,_!=null&&Vm(_))}function qx(u,h){u=null,h.alternate!==null&&(u=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==u&&(h.refCount++,u!=null&&Vm(u))}function Sl(u,h,_,v){if(h.subtreeFlags&10256)for(h=h.child;h!==null;)a3(u,h,_,v),h=h.sibling}function a3(u,h,_,v){var R=h.flags;switch(h.tag){case 0:case 11:case 15:Sl(u,h,_,v),R&2048&&og(9,h);break;case 1:Sl(u,h,_,v);break;case 3:Sl(u,h,_,v),R&2048&&(u=null,h.alternate!==null&&(u=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==u&&(h.refCount++,u!=null&&Vm(u)));break;case 12:if(R&2048){Sl(u,h,_,v),u=h.stateNode;try{var A=h.memoizedProps,q=A.id,K=A.onPostCommit;typeof K=="function"&&K(q,h.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(te){Qn(h,h.return,te)}}else Sl(u,h,_,v);break;case 13:Sl(u,h,_,v);break;case 23:break;case 22:A=h.stateNode,q=h.alternate,h.memoizedState!==null?A._visibility&2?Sl(u,h,_,v):cg(u,h):A._visibility&2?Sl(u,h,_,v):(A._visibility|=2,yh(u,h,_,v,(h.subtreeFlags&10256)!==0)),R&2048&&Gx(q,h);break;case 24:Sl(u,h,_,v),R&2048&&qx(h.alternate,h);break;default:Sl(u,h,_,v)}}function yh(u,h,_,v,R){for(R=R&&(h.subtreeFlags&10256)!==0,h=h.child;h!==null;){var A=u,q=h,K=_,te=v,_e=q.flags;switch(q.tag){case 0:case 11:case 15:yh(A,q,K,te,R),og(8,q);break;case 23:break;case 22:var Ie=q.stateNode;q.memoizedState!==null?Ie._visibility&2?yh(A,q,K,te,R):cg(A,q):(Ie._visibility|=2,yh(A,q,K,te,R)),R&&_e&2048&&Gx(q.alternate,q);break;case 24:yh(A,q,K,te,R),R&&_e&2048&&qx(q.alternate,q);break;default:yh(A,q,K,te,R)}h=h.sibling}}function cg(u,h){if(h.subtreeFlags&10256)for(h=h.child;h!==null;){var _=u,v=h,R=v.flags;switch(v.tag){case 22:cg(_,v),R&2048&&Gx(v.alternate,v);break;case 24:cg(_,v),R&2048&&qx(v.alternate,v);break;default:cg(_,v)}h=h.sibling}}var ug=8192;function Th(u){if(u.subtreeFlags&ug)for(u=u.child;u!==null;)s3(u),u=u.sibling}function s3(u){switch(u.tag){case 26:Th(u),u.flags&ug&&u.memoizedState!==null&&NZ(No,u.memoizedState,u.memoizedProps);break;case 5:Th(u);break;case 3:case 4:var h=No;No=$b(u.stateNode.containerInfo),Th(u),No=h;break;case 22:u.memoizedState===null&&(h=u.alternate,h!==null&&h.memoizedState!==null?(h=ug,ug=16777216,Th(u),ug=h):Th(u));break;default:Th(u)}}function o3(u){var h=u.alternate;if(h!==null&&(u=h.child,u!==null)){h.child=null;do h=u.sibling,u.sibling=null,u=h;while(u!==null)}}function dg(u){var h=u.deletions;if((u.flags&16)!==0){if(h!==null)for(var _=0;_<h.length;_++){var v=h[_];Ni=v,c3(v,u)}o3(u)}if(u.subtreeFlags&10256)for(u=u.child;u!==null;)l3(u),u=u.sibling}function l3(u){switch(u.tag){case 0:case 11:case 15:dg(u),u.flags&2048&&_u(9,u,u.return);break;case 3:dg(u);break;case 12:dg(u);break;case 22:var h=u.stateNode;u.memoizedState!==null&&h._visibility&2&&(u.return===null||u.return.tag!==13)?(h._visibility&=-3,Ib(u)):dg(u);break;default:dg(u)}}function Ib(u){var h=u.deletions;if((u.flags&16)!==0){if(h!==null)for(var _=0;_<h.length;_++){var v=h[_];Ni=v,c3(v,u)}o3(u)}for(u=u.child;u!==null;){switch(h=u,h.tag){case 0:case 11:case 15:_u(8,h,h.return),Ib(h);break;case 22:_=h.stateNode,_._visibility&2&&(_._visibility&=-3,Ib(h));break;default:Ib(h)}u=u.sibling}}function c3(u,h){for(;Ni!==null;){var _=Ni;switch(_.tag){case 0:case 11:case 15:_u(8,_,h);break;case 23:case 22:if(_.memoizedState!==null&&_.memoizedState.cachePool!==null){var v=_.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:Vm(_.memoizedState.cache)}if(v=_.child,v!==null)v.return=_,Ni=v;else e:for(_=u;Ni!==null;){v=Ni;var R=v.sibling,A=v.return;if(e3(v),v===_){Ni=null;break e}if(R!==null){R.return=A,Ni=R;break e}Ni=A}}}var zX={getCacheForType:function(u){var h=da(ui),_=h.data.get(u);return _===void 0&&(_=u(),h.data.set(u,_)),_}},YX=typeof WeakMap=="function"?WeakMap:Map,Ln=0,ar=null,on=null,pn=0,kn=0,fs=null,Su=!1,xh=!1,$x=!1,yc=0,Mr=0,Eu=0,Vd=0,zx=0,Ys=0,Ch=0,fg=null,Va=null,Yx=!1,Hx=0,Db=1/0,Mb=null,yu=null,Yi=0,Tu=null,Oh=null,Rh=0,Vx=0,Wx=null,u3=null,hg=0,Qx=null;function hs(){if((Ln&2)!==0&&pn!==0)return pn&-pn;if(k.T!==null){var u=ph;return u!==0?u:nC()}return gn()}function d3(){Ys===0&&(Ys=(pn&536870912)===0||xn?Fr():536870912);var u=zs.current;return u!==null&&(u.flags|=32),Ys}function ps(u,h,_){(u===ar&&(kn===2||kn===9)||u.cancelPendingCommit!==null)&&(Nh(u,0),xu(u,pn,Ys,!1)),ya(u,_),((Ln&2)===0||u!==ar)&&(u===ar&&((Ln&2)===0&&(Vd|=_),Mr===4&&xu(u,pn,Ys,!1)),El(u))}function f3(u,h,_){if((Ln&6)!==0)throw Error(r(327));var v=!_&&(h&124)===0&&(h&u.expiredLanes)===0||Nr(u,h),R=v?WX(u,h):Zx(u,h,!0),A=v;do{if(R===0){xh&&!v&&xu(u,h,0,!1);break}else{if(_=u.current.alternate,A&&!HX(_)){R=Zx(u,h,!1),A=!1;continue}if(R===2){if(A=h,u.errorRecoveryDisabledLanes&A)var q=0;else q=u.pendingLanes&-536870913,q=q!==0?q:q&536870912?536870912:0;if(q!==0){h=q;e:{var K=u;R=fg;var te=K.current.memoizedState.isDehydrated;if(te&&(Nh(K,q).flags|=256),q=Zx(K,q,!1),q!==2){if($x&&!te){K.errorRecoveryDisabledLanes|=A,Vd|=A,R=4;break e}A=Va,Va=R,A!==null&&(Va===null?Va=A:Va.push.apply(Va,A))}R=q}if(A=!1,R!==2)continue}}if(R===1){Nh(u,0),xu(u,h,0,!0);break}e:{switch(v=u,A=R,A){case 0:case 1:throw Error(r(345));case 4:if((h&4194048)!==h)break;case 6:xu(v,h,Ys,!Su);break e;case 2:Va=null;break;case 3:case 5:break;default:throw Error(r(329))}if((h&62914560)===h&&(R=Hx+300-Ae(),10<R)){if(xu(v,h,Ys,!Su),si(v,0,!0)!==0)break e;v.timeoutHandle=G3(h3.bind(null,v,_,Va,Mb,Yx,h,Ys,Vd,Ch,Su,A,2,-0,0),R);break e}h3(v,_,Va,Mb,Yx,h,Ys,Vd,Ch,Su,A,0,-0,0)}}break}while(!0);El(u)}function h3(u,h,_,v,R,A,q,K,te,_e,Ie,Ue,Ee,Ce){if(u.timeoutHandle=-1,Ue=h.subtreeFlags,(Ue&8192||(Ue&16785408)===16785408)&&(Sg={stylesheets:null,count:0,unsuspend:RZ},s3(h),Ue=AZ(),Ue!==null)){u.cancelPendingCommit=Ue(S3.bind(null,u,h,A,_,v,R,q,K,te,Ie,1,Ee,Ce)),xu(u,A,q,!_e);return}S3(u,h,A,_,v,R,q,K,te)}function HX(u){for(var h=u;;){var _=h.tag;if((_===0||_===11||_===15)&&h.flags&16384&&(_=h.updateQueue,_!==null&&(_=_.stores,_!==null)))for(var v=0;v<_.length;v++){var R=_[v],A=R.getSnapshot;R=R.value;try{if(!Ct(A(),R))return!1}catch{return!1}}if(_=h.child,h.subtreeFlags&16384&&_!==null)_.return=h,h=_;else{if(h===u)break;for(;h.sibling===null;){if(h.return===null||h.return===u)return!0;h=h.return}h.sibling.return=h.return,h=h.sibling}}return!0}function xu(u,h,_,v){h&=~zx,h&=~Vd,u.suspendedLanes|=h,u.pingedLanes&=~h,v&&(u.warmLanes|=h),v=u.expirationTimes;for(var R=h;0<R;){var A=31-kt(R),q=1<<A;v[A]=-1,R&=~q}_!==0&&ne(u,_,h)}function Lb(){return(Ln&6)===0?(pg(0),!1):!0}function Kx(){if(on!==null){if(kn===0)var u=on.return;else u=on,pc=Gd=null,hx(u),Sh=null,ig=0,u=on;for(;u!==null;)H2(u.alternate,u),u=u.return;on=null}}function Nh(u,h){var _=u.timeoutHandle;_!==-1&&(u.timeoutHandle=-1,uZ(_)),_=u.cancelPendingCommit,_!==null&&(u.cancelPendingCommit=null,_()),Kx(),ar=u,on=_=dc(u.current,null),pn=h,kn=0,fs=null,Su=!1,xh=Nr(u,h),$x=!1,Ch=Ys=zx=Vd=Eu=Mr=0,Va=fg=null,Yx=!1,(h&8)!==0&&(h|=h&32);var v=u.entangledLanes;if(v!==0)for(u=u.entanglements,v&=h;0<v;){var R=31-kt(v),A=1<<R;h|=u[R],v&=~A}return yc=h,nb(),_}function p3(u,h){Xt=null,k.H=Eb,h===Qm||h===db?(h=IP(),kn=3):h===NP?(h=IP(),kn=4):kn=h===D2?8:h!==null&&typeof h=="object"&&typeof h.then=="function"?6:1,fs=h,on===null&&(Mr=1,Ob(u,js(h,u.current)))}function m3(){var u=k.H;return k.H=Eb,u===null?Eb:u}function g3(){var u=k.A;return k.A=zX,u}function Xx(){Mr=4,Su||(pn&4194048)!==pn&&zs.current!==null||(xh=!0),(Eu&134217727)===0&&(Vd&134217727)===0||ar===null||xu(ar,pn,Ys,!1)}function Zx(u,h,_){var v=Ln;Ln|=2;var R=m3(),A=g3();(ar!==u||pn!==h)&&(Mb=null,Nh(u,h)),h=!1;var q=Mr;e:do try{if(kn!==0&&on!==null){var K=on,te=fs;switch(kn){case 8:Kx(),q=6;break e;case 3:case 2:case 9:case 6:zs.current===null&&(h=!0);var _e=kn;if(kn=0,fs=null,Ah(u,K,te,_e),_&&xh){q=0;break e}break;default:_e=kn,kn=0,fs=null,Ah(u,K,te,_e)}}VX(),q=Mr;break}catch(Ie){p3(u,Ie)}while(!0);return h&&u.shellSuspendCounter++,pc=Gd=null,Ln=v,k.H=R,k.A=A,on===null&&(ar=null,pn=0,nb()),q}function VX(){for(;on!==null;)_3(on)}function WX(u,h){var _=Ln;Ln|=2;var v=m3(),R=g3();ar!==u||pn!==h?(Mb=null,Db=Ae()+500,Nh(u,h)):xh=Nr(u,h);e:do try{if(kn!==0&&on!==null){h=on;var A=fs;t:switch(kn){case 1:kn=0,fs=null,Ah(u,h,A,1);break;case 2:case 9:if(AP(A)){kn=0,fs=null,b3(h);break}h=function(){kn!==2&&kn!==9||ar!==u||(kn=7),El(u)},A.then(h,h);break e;case 3:kn=7;break e;case 4:kn=5;break e;case 7:AP(A)?(kn=0,fs=null,b3(h)):(kn=0,fs=null,Ah(u,h,A,7));break;case 5:var q=null;switch(on.tag){case 26:q=on.memoizedState;case 5:case 27:var K=on;if(!q||J3(q)){kn=0,fs=null;var te=K.sibling;if(te!==null)on=te;else{var _e=K.return;_e!==null?(on=_e,kb(_e)):on=null}break t}}kn=0,fs=null,Ah(u,h,A,5);break;case 6:kn=0,fs=null,Ah(u,h,A,6);break;case 8:Kx(),Mr=6;break e;default:throw Error(r(462))}}QX();break}catch(Ie){p3(u,Ie)}while(!0);return pc=Gd=null,k.H=v,k.A=R,Ln=_,on!==null?0:(ar=null,pn=0,nb(),Mr)}function QX(){for(;on!==null&&!lt();)_3(on)}function _3(u){var h=z2(u.alternate,u,yc);u.memoizedProps=u.pendingProps,h===null?kb(u):on=h}function b3(u){var h=u,_=h.alternate;switch(h.tag){case 15:case 0:h=F2(_,h,h.pendingProps,h.type,void 0,pn);break;case 11:h=F2(_,h,h.pendingProps,h.type.render,h.ref,pn);break;case 5:hx(h);default:H2(_,h),h=on=vP(h,yc),h=z2(_,h,yc)}u.memoizedProps=u.pendingProps,h===null?kb(u):on=h}function Ah(u,h,_,v){pc=Gd=null,hx(h),Sh=null,ig=0;var R=h.return;try{if(FX(u,R,h,_,pn)){Mr=1,Ob(u,js(_,u.current)),on=null;return}}catch(A){if(R!==null)throw on=R,A;Mr=1,Ob(u,js(_,u.current)),on=null;return}h.flags&32768?(xn||v===1?u=!0:xh||(pn&536870912)!==0?u=!1:(Su=u=!0,(v===2||v===9||v===3||v===6)&&(v=zs.current,v!==null&&v.tag===13&&(v.flags|=16384))),v3(h,u)):kb(h)}function kb(u){var h=u;do{if((h.flags&32768)!==0){v3(h,Su);return}u=h.return;var _=jX(h.alternate,h,yc);if(_!==null){on=_;return}if(h=h.sibling,h!==null){on=h;return}on=h=u}while(h!==null);Mr===0&&(Mr=5)}function v3(u,h){do{var _=GX(u.alternate,u);if(_!==null){_.flags&=32767,on=_;return}if(_=u.return,_!==null&&(_.flags|=32768,_.subtreeFlags=0,_.deletions=null),!h&&(u=u.sibling,u!==null)){on=u;return}on=u=_}while(u!==null);Mr=6,on=null}function S3(u,h,_,v,R,A,q,K,te){u.cancelPendingCommit=null;do Pb();while(Yi!==0);if((Ln&6)!==0)throw Error(r(327));if(h!==null){if(h===u.current)throw Error(r(177));if(A=h.lanes|h.childLanes,A|=qT,Ga(u,_,A,q,K,te),u===ar&&(on=ar=null,pn=0),Oh=h,Tu=u,Rh=_,Vx=A,Wx=R,u3=v,(h.subtreeFlags&10256)!==0||(h.flags&10256)!==0?(u.callbackNode=null,u.callbackPriority=0,JX(Ze,function(){return C3(),null})):(u.callbackNode=null,u.callbackPriority=0),v=(h.flags&13878)!==0,(h.subtreeFlags&13878)!==0||v){v=k.T,k.T=null,R=P.p,P.p=2,q=Ln,Ln|=4;try{qX(u,h,_)}finally{Ln=q,P.p=R,k.T=v}}Yi=1,E3(),y3(),T3()}}function E3(){if(Yi===1){Yi=0;var u=Tu,h=Oh,_=(h.flags&13878)!==0;if((h.subtreeFlags&13878)!==0||_){_=k.T,k.T=null;var v=P.p;P.p=2;var R=Ln;Ln|=4;try{r3(h,u);var A=uC,q=Tt(u.containerInfo),K=A.focusedElem,te=A.selectionRange;if(q!==K&&K&&K.ownerDocument&&wt(K.ownerDocument.documentElement,K)){if(te!==null&&Mn(K)){var _e=te.start,Ie=te.end;if(Ie===void 0&&(Ie=_e),"selectionStart"in K)K.selectionStart=_e,K.selectionEnd=Math.min(Ie,K.value.length);else{var Ue=K.ownerDocument||document,Ee=Ue&&Ue.defaultView||window;if(Ee.getSelection){var Ce=Ee.getSelection(),Pt=K.textContent.length,It=Math.min(te.start,Pt),zn=te.end===void 0?It:Math.min(te.end,Pt);!Ce.extend&&It>zn&&(q=zn,zn=It,It=q);var de=Wt(K,It),se=Wt(K,zn);if(de&&se&&(Ce.rangeCount!==1||Ce.anchorNode!==de.node||Ce.anchorOffset!==de.offset||Ce.focusNode!==se.node||Ce.focusOffset!==se.offset)){var me=Ue.createRange();me.setStart(de.node,de.offset),Ce.removeAllRanges(),It>zn?(Ce.addRange(me),Ce.extend(se.node,se.offset)):(me.setEnd(se.node,se.offset),Ce.addRange(me))}}}}for(Ue=[],Ce=K;Ce=Ce.parentNode;)Ce.nodeType===1&&Ue.push({element:Ce,left:Ce.scrollLeft,top:Ce.scrollTop});for(typeof K.focus=="function"&&K.focus(),K=0;K<Ue.length;K++){var Le=Ue[K];Le.element.scrollLeft=Le.left,Le.element.scrollTop=Le.top}}Wb=!!cC,uC=cC=null}finally{Ln=R,P.p=v,k.T=_}}u.current=h,Yi=2}}function y3(){if(Yi===2){Yi=0;var u=Tu,h=Oh,_=(h.flags&8772)!==0;if((h.subtreeFlags&8772)!==0||_){_=k.T,k.T=null;var v=P.p;P.p=2;var R=Ln;Ln|=4;try{J2(u,h.alternate,h)}finally{Ln=R,P.p=v,k.T=_}}Yi=3}}function T3(){if(Yi===4||Yi===3){Yi=0,xt();var u=Tu,h=Oh,_=Rh,v=u3;(h.subtreeFlags&10256)!==0||(h.flags&10256)!==0?Yi=5:(Yi=0,Oh=Tu=null,x3(u,u.pendingLanes));var R=u.pendingLanes;if(R===0&&(yu=null),ct(_),h=h.stateNode,yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot(et,h,void 0,(h.current.flags&128)===128)}catch{}if(v!==null){h=k.T,R=P.p,P.p=2,k.T=null;try{for(var A=u.onRecoverableError,q=0;q<v.length;q++){var K=v[q];A(K.value,{componentStack:K.stack})}}finally{k.T=h,P.p=R}}(Rh&3)!==0&&Pb(),El(u),R=u.pendingLanes,(_&4194090)!==0&&(R&42)!==0?u===Qx?hg++:(hg=0,Qx=u):hg=0,pg(0)}}function x3(u,h){(u.pooledCacheLanes&=h)===0&&(h=u.pooledCache,h!=null&&(u.pooledCache=null,Vm(h)))}function Pb(u){return E3(),y3(),T3(),C3()}function C3(){if(Yi!==5)return!1;var u=Tu,h=Vx;Vx=0;var _=ct(Rh),v=k.T,R=P.p;try{P.p=32>_?32:_,k.T=null,_=Wx,Wx=null;var A=Tu,q=Rh;if(Yi=0,Oh=Tu=null,Rh=0,(Ln&6)!==0)throw Error(r(331));var K=Ln;if(Ln|=4,l3(A.current),a3(A,A.current,q,_),Ln=K,pg(0,!1),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot(et,A)}catch{}return!0}finally{P.p=R,k.T=v,x3(u,h)}}function O3(u,h,_){h=js(_,h),h=Rx(u.stateNode,h,2),u=hu(u,h,2),u!==null&&(ya(u,2),El(u))}function Qn(u,h,_){if(u.tag===3)O3(u,u,_);else for(;h!==null;){if(h.tag===3){O3(h,u,_);break}else if(h.tag===1){var v=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(yu===null||!yu.has(v))){u=js(_,u),_=w2(2),v=hu(h,_,2),v!==null&&(I2(_,v,h,u),ya(v,2),El(v));break}}h=h.return}}function Jx(u,h,_){var v=u.pingCache;if(v===null){v=u.pingCache=new YX;var R=new Set;v.set(h,R)}else R=v.get(h),R===void 0&&(R=new Set,v.set(h,R));R.has(_)||($x=!0,R.add(_),u=KX.bind(null,u,h,_),h.then(u,u))}function KX(u,h,_){var v=u.pingCache;v!==null&&v.delete(h),u.pingedLanes|=u.suspendedLanes&_,u.warmLanes&=~_,ar===u&&(pn&_)===_&&(Mr===4||Mr===3&&(pn&62914560)===pn&&300>Ae()-Hx?(Ln&2)===0&&Nh(u,0):zx|=_,Ch===pn&&(Ch=0)),El(u)}function R3(u,h){h===0&&(h=Vn()),u=uh(u,h),u!==null&&(ya(u,h),El(u))}function XX(u){var h=u.memoizedState,_=0;h!==null&&(_=h.retryLane),R3(u,_)}function ZX(u,h){var _=0;switch(u.tag){case 13:var v=u.stateNode,R=u.memoizedState;R!==null&&(_=R.retryLane);break;case 19:v=u.stateNode;break;case 22:v=u.stateNode._retryCache;break;default:throw Error(r(314))}v!==null&&v.delete(h),R3(u,_)}function JX(u,h){return le(u,h)}var Bb=null,wh=null,eC=!1,Fb=!1,tC=!1,Wd=0;function El(u){u!==wh&&u.next===null&&(wh===null?Bb=wh=u:wh=wh.next=u),Fb=!0,eC||(eC=!0,tZ())}function pg(u,h){if(!tC&&Fb){tC=!0;do for(var _=!1,v=Bb;v!==null;){if(u!==0){var R=v.pendingLanes;if(R===0)var A=0;else{var q=v.suspendedLanes,K=v.pingedLanes;A=(1<<31-kt(42|u)+1)-1,A&=R&~(q&~K),A=A&201326741?A&201326741|1:A?A|2:0}A!==0&&(_=!0,I3(v,A))}else A=pn,A=si(v,v===ar?A:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(A&3)===0||Nr(v,A)||(_=!0,I3(v,A));v=v.next}while(_);tC=!1}}function eZ(){N3()}function N3(){Fb=eC=!1;var u=0;Wd!==0&&(cZ()&&(u=Wd),Wd=0);for(var h=Ae(),_=null,v=Bb;v!==null;){var R=v.next,A=A3(v,h);A===0?(v.next=null,_===null?Bb=R:_.next=R,R===null&&(wh=_)):(_=v,(u!==0||(A&3)!==0)&&(Fb=!0)),v=R}pg(u)}function A3(u,h){for(var _=u.suspendedLanes,v=u.pingedLanes,R=u.expirationTimes,A=u.pendingLanes&-62914561;0<A;){var q=31-kt(A),K=1<<q,te=R[q];te===-1?((K&_)===0||(K&v)!==0)&&(R[q]=$t(K,h)):te<=h&&(u.expiredLanes|=K),A&=~K}if(h=ar,_=pn,_=si(u,u===h?_:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),v=u.callbackNode,_===0||u===h&&(kn===2||kn===9)||u.cancelPendingCommit!==null)return v!==null&&v!==null&&Ge(v),u.callbackNode=null,u.callbackPriority=0;if((_&3)===0||Nr(u,_)){if(h=_&-_,h===u.callbackPriority)return h;switch(v!==null&&Ge(v),ct(_)){case 2:case 8:_=je;break;case 32:_=Ze;break;case 268435456:_=vt;break;default:_=Ze}return v=w3.bind(null,u),_=le(_,v),u.callbackPriority=h,u.callbackNode=_,h}return v!==null&&v!==null&&Ge(v),u.callbackPriority=2,u.callbackNode=null,2}function w3(u,h){if(Yi!==0&&Yi!==5)return u.callbackNode=null,u.callbackPriority=0,null;var _=u.callbackNode;if(Pb()&&u.callbackNode!==_)return null;var v=pn;return v=si(u,u===ar?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),v===0?null:(f3(u,v,h),A3(u,Ae()),u.callbackNode!=null&&u.callbackNode===_?w3.bind(null,u):null)}function I3(u,h){if(Pb())return null;f3(u,h,!0)}function tZ(){dZ(function(){(Ln&6)!==0?le(Xe,eZ):N3()})}function nC(){return Wd===0&&(Wd=Fr()),Wd}function D3(u){return u==null||typeof u=="symbol"||typeof u=="boolean"?null:typeof u=="function"?u:ci(""+u)}function M3(u,h){var _=h.ownerDocument.createElement("input");return _.name=h.name,_.value=h.value,u.id&&_.setAttribute("form",u.id),h.parentNode.insertBefore(_,h),u=new FormData(u),_.parentNode.removeChild(_),u}function nZ(u,h,_,v,R){if(h==="submit"&&_&&_.stateNode===R){var A=D3((R[dt]||null).action),q=v.submitter;q&&(h=(h=q[dt]||null)?D3(h.formAction):q.getAttribute("formAction"),h!==null&&(A=h,q=null));var K=new wr("action","action",null,v,R);u.push({event:K,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Wd!==0){var te=q?M3(R,q):new FormData(R);yx(_,{pending:!0,data:te,method:R.method,action:A},null,te)}}else typeof A=="function"&&(K.preventDefault(),te=q?M3(R,q):new FormData(R),yx(_,{pending:!0,data:te,method:R.method,action:A},A,te))},currentTarget:R}]})}}for(var rC=0;rC<GT.length;rC++){var iC=GT[rC],rZ=iC.toLowerCase(),iZ=iC[0].toUpperCase()+iC.slice(1);Ro(rZ,"on"+iZ)}Ro(za,"onAnimationEnd"),Ro(ls,"onAnimationIteration"),Ro(Oi,"onAnimationStart"),Ro("dblclick","onDoubleClick"),Ro("focusin","onFocus"),Ro("focusout","onBlur"),Ro(Ca,"onTransitionRun"),Ro(uc,"onTransitionStart"),Ro($i,"onTransitionCancel"),Ro(qm,"onTransitionEnd"),Un("onMouseEnter",["mouseout","mouseover"]),Un("onMouseLeave",["mouseout","mouseover"]),Un("onPointerEnter",["pointerout","pointerover"]),Un("onPointerLeave",["pointerout","pointerover"]),In("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),In("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),In("onBeforeInput",["compositionend","keypress","textInput","paste"]),In("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mg="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(" "),aZ=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mg));function L3(u,h){h=(h&4)!==0;for(var _=0;_<u.length;_++){var v=u[_],R=v.event;v=v.listeners;e:{var A=void 0;if(h)for(var q=v.length-1;0<=q;q--){var K=v[q],te=K.instance,_e=K.currentTarget;if(K=K.listener,te!==A&&R.isPropagationStopped())break e;A=K,R.currentTarget=_e;try{A(R)}catch(Ie){Cb(Ie)}R.currentTarget=null,A=te}else for(q=0;q<v.length;q++){if(K=v[q],te=K.instance,_e=K.currentTarget,K=K.listener,te!==A&&R.isPropagationStopped())break e;A=K,R.currentTarget=_e;try{A(R)}catch(Ie){Cb(Ie)}R.currentTarget=null,A=te}}}}function ln(u,h){var _=h[en];_===void 0&&(_=h[en]=new Set);var v=u+"__bubble";_.has(v)||(k3(h,u,2,!1),_.add(v))}function aC(u,h,_){var v=0;h&&(v|=4),k3(_,u,v,h)}var Ub="_reactListening"+Math.random().toString(36).slice(2);function sC(u){if(!u[Ub]){u[Ub]=!0,qa.forEach(function(_){_!=="selectionchange"&&(aZ.has(_)||aC(_,!1,u),aC(_,!0,u))});var h=u.nodeType===9?u:u.ownerDocument;h===null||h[Ub]||(h[Ub]=!0,aC("selectionchange",!1,h))}}function k3(u,h,_,v){switch(aB(h)){case 2:var R=DZ;break;case 8:R=MZ;break;default:R=SC}_=R.bind(null,h,_,u),R=void 0,!Ps||h!=="touchstart"&&h!=="touchmove"&&h!=="wheel"||(R=!0),v?R!==void 0?u.addEventListener(h,_,{capture:!0,passive:R}):u.addEventListener(h,_,!0):R!==void 0?u.addEventListener(h,_,{passive:R}):u.addEventListener(h,_,!1)}function oC(u,h,_,v,R){var A=v;if((h&1)===0&&(h&2)===0&&v!==null)e:for(;;){if(v===null)return;var q=v.tag;if(q===3||q===4){var K=v.stateNode.containerInfo;if(K===R)break;if(q===4)for(q=v.return;q!==null;){var te=q.tag;if((te===3||te===4)&&q.stateNode.containerInfo===R)return;q=q.return}for(;K!==null;){if(q=_o(K),q===null)return;if(te=q.tag,te===5||te===6||te===26||te===27){v=A=q;continue e}K=K.parentNode}}v=v.return}ir(function(){var _e=A,Ie=oa(_),Ue=[];e:{var Ee=gP.get(u);if(Ee!==void 0){var Ce=wr,Pt=u;switch(u){case"keypress":if(Id(_)===0)break e;case"keydown":case"keyup":Ce=UT;break;case"focusin":Pt="focus",Ce=Mm;break;case"focusout":Pt="blur",Ce=Mm;break;case"beforeblur":case"afterblur":Ce=Mm;break;case"click":if(_.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ce=To;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ce=kT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ce=gl;break;case za:case ls:case Oi:Ce=xo;break;case qm:Ce=K0;break;case"scroll":case"scrollend":Ce=Vr;break;case"wheel":Ce=Pm;break;case"copy":case"cut":case"paste":Ce=sc;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ce=Q0;break;case"toggle":case"beforetoggle":Ce=X0}var It=(h&4)!==0,zn=!It&&(u==="scroll"||u==="scrollend"),de=It?Ee!==null?Ee+"Capture":null:Ee;It=[];for(var se=_e,me;se!==null;){var Le=se;if(me=Le.stateNode,Le=Le.tag,Le!==5&&Le!==26&&Le!==27||me===null||de===null||(Le=Hr(se,de),Le!=null&&It.push(gg(se,Le,me))),zn)break;se=se.return}0<It.length&&(Ee=new Ce(Ee,Pt,null,_,Ie),Ue.push({event:Ee,listeners:It}))}}if((h&7)===0){e:{if(Ee=u==="mouseover"||u==="pointerover",Ce=u==="mouseout"||u==="pointerout",Ee&&_!==os&&(Pt=_.relatedTarget||_.fromElement)&&(_o(Pt)||Pt[_n]))break e;if((Ce||Ee)&&(Ee=Ie.window===Ie?Ie:(Ee=Ie.ownerDocument)?Ee.defaultView||Ee.parentWindow:window,Ce?(Pt=_.relatedTarget||_.toElement,Ce=_e,Pt=Pt?_o(Pt):null,Pt!==null&&(zn=a(Pt),It=Pt.tag,Pt!==zn||It!==5&&It!==27&&It!==6)&&(Pt=null)):(Ce=null,Pt=_e),Ce!==Pt)){if(It=To,Le="onMouseLeave",de="onMouseEnter",se="mouse",(u==="pointerout"||u==="pointerover")&&(It=Q0,Le="onPointerLeave",de="onPointerEnter",se="pointer"),zn=Ce==null?Ee:ul(Ce),me=Pt==null?Ee:ul(Pt),Ee=new It(Le,se+"leave",Ce,_,Ie),Ee.target=zn,Ee.relatedTarget=me,Le=null,_o(Ie)===_e&&(It=new It(de,se+"enter",Pt,_,Ie),It.target=me,It.relatedTarget=zn,Le=It),zn=Le,Ce&&Pt)t:{for(It=Ce,de=Pt,se=0,me=It;me;me=Ih(me))se++;for(me=0,Le=de;Le;Le=Ih(Le))me++;for(;0<se-me;)It=Ih(It),se--;for(;0<me-se;)de=Ih(de),me--;for(;se--;){if(It===de||de!==null&&It===de.alternate)break t;It=Ih(It),de=Ih(de)}It=null}else It=null;Ce!==null&&P3(Ue,Ee,Ce,It,!1),Pt!==null&&zn!==null&&P3(Ue,zn,Pt,It,!0)}}e:{if(Ee=_e?ul(_e):window,Ce=Ee.nodeName&&Ee.nodeName.toLowerCase(),Ce==="select"||Ce==="input"&&Ee.type==="file")var St=j;else if(Gm(Ee))if(W)St=st;else{St=He;var tn=qe}else Ce=Ee.nodeName,!Ce||Ce.toLowerCase()!=="input"||Ee.type!=="checkbox"&&Ee.type!=="radio"?_e&&rr(_e.elementType)&&(St=j):St=at;if(St&&(St=St(u,_e))){lh(Ue,St,_,Ie);break e}tn&&tn(u,Ee,_e),u==="focusout"&&_e&&Ee.type==="number"&&_e.memoizedProps.value!=null&&su(Ee,"number",Ee.value)}switch(tn=_e?ul(_e):window,u){case"focusin":(Gm(tn)||tn.contentEditable==="true")&&(or=tn,En=_e,Gn=null);break;case"focusout":Gn=En=or=null;break;case"mousedown":qi=!0;break;case"contextmenu":case"mouseup":case"dragend":qi=!1,xi(Ue,_,Ie);break;case"selectionchange":if(br)break;case"keydown":case"keyup":xi(Ue,_,Ie)}var Ot;if(oh)e:{switch(u){case"compositionstart":var Dt="onCompositionStart";break e;case"compositionend":Dt="onCompositionEnd";break e;case"compositionupdate":Dt="onCompositionUpdate";break e}Dt=void 0}else Co?jm(u,_)&&(Dt="onCompositionEnd"):u==="keydown"&&_.keyCode===229&&(Dt="onCompositionStart");Dt&&(Fm&&_.locale!=="ko"&&(Co||Dt!=="onCompositionStart"?Dt==="onCompositionEnd"&&Co&&(Ot=ac()):(Eo=Ie,ah="value"in Eo?Eo.value:Eo.textContent,Co=!0)),tn=jb(_e,Dt),0<tn.length&&(Dt=new H0(Dt,u,null,_,Ie),Ue.push({event:Dt,listeners:tn}),Ot?Dt.data=Ot:(Ot=cc(_),Ot!==null&&(Dt.data=Ot)))),(Ot=J0?Wr(u,_):tb(u,_))&&(Dt=jb(_e,"onBeforeInput"),0<Dt.length&&(tn=new H0("onBeforeInput","beforeinput",null,_,Ie),Ue.push({event:tn,listeners:Dt}),tn.data=Ot)),nZ(Ue,u,_e,_,Ie)}L3(Ue,h)})}function gg(u,h,_){return{instance:u,listener:h,currentTarget:_}}function jb(u,h){for(var _=h+"Capture",v=[];u!==null;){var R=u,A=R.stateNode;if(R=R.tag,R!==5&&R!==26&&R!==27||A===null||(R=Hr(u,_),R!=null&&v.unshift(gg(u,R,A)),R=Hr(u,h),R!=null&&v.push(gg(u,R,A))),u.tag===3)return v;u=u.return}return[]}function Ih(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5&&u.tag!==27);return u||null}function P3(u,h,_,v,R){for(var A=h._reactName,q=[];_!==null&&_!==v;){var K=_,te=K.alternate,_e=K.stateNode;if(K=K.tag,te!==null&&te===v)break;K!==5&&K!==26&&K!==27||_e===null||(te=_e,R?(_e=Hr(_,A),_e!=null&&q.unshift(gg(_,_e,te))):R||(_e=Hr(_,A),_e!=null&&q.push(gg(_,_e,te)))),_=_.return}q.length!==0&&u.push({event:h,listeners:q})}var sZ=/\r\n?/g,oZ=/\u0000|\uFFFD/g;function B3(u){return(typeof u=="string"?u:""+u).replace(sZ,`
`).replace(oZ,"")}function F3(u,h){return h=B3(h),B3(u)===h}function Gb(){}function $n(u,h,_,v,R,A){switch(_){case"children":typeof v=="string"?h==="body"||h==="textarea"&&v===""||xa(u,v):(typeof v=="number"||typeof v=="bigint")&&h!=="body"&&xa(u,""+v);break;case"className":ks(u,"class",v);break;case"tabIndex":ks(u,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":ks(u,_,v);break;case"style":ic(u,v,A);break;case"data":if(h!=="object"){ks(u,"data",v);break}case"src":case"href":if(v===""&&(h!=="a"||_!=="href")){u.removeAttribute(_);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){u.removeAttribute(_);break}v=ci(""+v),u.setAttribute(_,v);break;case"action":case"formAction":if(typeof v=="function"){u.setAttribute(_,"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 A=="function"&&(_==="formAction"?(h!=="input"&&$n(u,h,"name",R.name,R,null),$n(u,h,"formEncType",R.formEncType,R,null),$n(u,h,"formMethod",R.formMethod,R,null),$n(u,h,"formTarget",R.formTarget,R,null)):($n(u,h,"encType",R.encType,R,null),$n(u,h,"method",R.method,R,null),$n(u,h,"target",R.target,R,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){u.removeAttribute(_);break}v=ci(""+v),u.setAttribute(_,v);break;case"onClick":v!=null&&(u.onclick=Gb);break;case"onScroll":v!=null&&ln("scroll",u);break;case"onScrollEnd":v!=null&&ln("scrollend",u);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(_=v.__html,_!=null){if(R.children!=null)throw Error(r(60));u.innerHTML=_}}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}_=ci(""+v),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",_);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(_,""+v):u.removeAttribute(_);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(_,""):u.removeAttribute(_);break;case"capture":case"download":v===!0?u.setAttribute(_,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?u.setAttribute(_,v):u.removeAttribute(_);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?u.setAttribute(_,v):u.removeAttribute(_);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?u.removeAttribute(_):u.setAttribute(_,v);break;case"popover":ln("beforetoggle",u),ln("toggle",u),bo(u,"popover",v);break;case"xlinkActuate":Ar(u,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":Ar(u,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":Ar(u,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":Ar(u,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":Ar(u,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":Ar(u,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":Ar(u,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":Ar(u,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":Ar(u,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":bo(u,"is",v);break;case"innerText":case"textContent":break;default:(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N")&&(_=Sn.get(_)||_,bo(u,_,v))}}function lC(u,h,_,v,R,A){switch(_){case"style":ic(u,v,A);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(_=v.__html,_!=null){if(R.children!=null)throw Error(r(60));u.innerHTML=_}}break;case"children":typeof v=="string"?xa(u,v):(typeof v=="number"||typeof v=="bigint")&&xa(u,""+v);break;case"onScroll":v!=null&&ln("scroll",u);break;case"onScrollEnd":v!=null&&ln("scrollend",u);break;case"onClick":v!=null&&(u.onclick=Gb);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cr.hasOwnProperty(_))e:{if(_[0]==="o"&&_[1]==="n"&&(R=_.endsWith("Capture"),h=_.slice(2,R?_.length-7:void 0),A=u[dt]||null,A=A!=null?A[_]:null,typeof A=="function"&&u.removeEventListener(h,A,R),typeof v=="function")){typeof A!="function"&&A!==null&&(_ in u?u[_]=null:u.hasAttribute(_)&&u.removeAttribute(_)),u.addEventListener(h,v,R);break e}_ in u?u[_]=v:v===!0?u.setAttribute(_,""):bo(u,_,v)}}}function Hi(u,h,_){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ln("error",u),ln("load",u);var v=!1,R=!1,A;for(A in _)if(_.hasOwnProperty(A)){var q=_[A];if(q!=null)switch(A){case"src":v=!0;break;case"srcSet":R=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,h));default:$n(u,h,A,q,_,null)}}R&&$n(u,h,"srcSet",_.srcSet,_,null),v&&$n(u,h,"src",_.src,_,null);return;case"input":ln("invalid",u);var K=A=q=R=null,te=null,_e=null;for(v in _)if(_.hasOwnProperty(v)){var Ie=_[v];if(Ie!=null)switch(v){case"name":R=Ie;break;case"type":q=Ie;break;case"checked":te=Ie;break;case"defaultChecked":_e=Ie;break;case"value":A=Ie;break;case"defaultValue":K=Ie;break;case"children":case"dangerouslySetInnerHTML":if(Ie!=null)throw Error(r(137,h));break;default:$n(u,h,v,Ie,_,null)}}au(u,A,K,te,_e,q,R,!1),zr(u);return;case"select":ln("invalid",u),v=q=A=null;for(R in _)if(_.hasOwnProperty(R)&&(K=_[R],K!=null))switch(R){case"value":A=K;break;case"defaultValue":q=K;break;case"multiple":v=K;default:$n(u,h,R,K,_,null)}h=A,_=q,u.multiple=!!v,h!=null?aa(u,!!v,h,!1):_!=null&&aa(u,!!v,_,!0);return;case"textarea":ln("invalid",u),A=R=v=null;for(q in _)if(_.hasOwnProperty(q)&&(K=_[q],K!=null))switch(q){case"value":v=K;break;case"defaultValue":R=K;break;case"children":A=K;break;case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(91));break;default:$n(u,h,q,K,_,null)}Yr(u,v,R,A),zr(u);return;case"option":for(te in _)if(_.hasOwnProperty(te)&&(v=_[te],v!=null))switch(te){case"selected":u.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:$n(u,h,te,v,_,null)}return;case"dialog":ln("beforetoggle",u),ln("toggle",u),ln("cancel",u),ln("close",u);break;case"iframe":case"object":ln("load",u);break;case"video":case"audio":for(v=0;v<mg.length;v++)ln(mg[v],u);break;case"image":ln("error",u),ln("load",u);break;case"details":ln("toggle",u);break;case"embed":case"source":case"link":ln("error",u),ln("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(_e in _)if(_.hasOwnProperty(_e)&&(v=_[_e],v!=null))switch(_e){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,h));default:$n(u,h,_e,v,_,null)}return;default:if(rr(h)){for(Ie in _)_.hasOwnProperty(Ie)&&(v=_[Ie],v!==void 0&&lC(u,h,Ie,v,_,void 0));return}}for(K in _)_.hasOwnProperty(K)&&(v=_[K],v!=null&&$n(u,h,K,v,_,null))}function lZ(u,h,_,v){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var R=null,A=null,q=null,K=null,te=null,_e=null,Ie=null;for(Ce in _){var Ue=_[Ce];if(_.hasOwnProperty(Ce)&&Ue!=null)switch(Ce){case"checked":break;case"value":break;case"defaultValue":te=Ue;default:v.hasOwnProperty(Ce)||$n(u,h,Ce,null,v,Ue)}}for(var Ee in v){var Ce=v[Ee];if(Ue=_[Ee],v.hasOwnProperty(Ee)&&(Ce!=null||Ue!=null))switch(Ee){case"type":A=Ce;break;case"name":R=Ce;break;case"checked":_e=Ce;break;case"defaultChecked":Ie=Ce;break;case"value":q=Ce;break;case"defaultValue":K=Ce;break;case"children":case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(r(137,h));break;default:Ce!==Ue&&$n(u,h,Ee,Ce,v,Ue)}}nc(u,q,K,te,_e,Ie,A,R);return;case"select":Ce=q=K=Ee=null;for(A in _)if(te=_[A],_.hasOwnProperty(A)&&te!=null)switch(A){case"value":break;case"multiple":Ce=te;default:v.hasOwnProperty(A)||$n(u,h,A,null,v,te)}for(R in v)if(A=v[R],te=_[R],v.hasOwnProperty(R)&&(A!=null||te!=null))switch(R){case"value":Ee=A;break;case"defaultValue":K=A;break;case"multiple":q=A;default:A!==te&&$n(u,h,R,A,v,te)}h=K,_=q,v=Ce,Ee!=null?aa(u,!!_,Ee,!1):!!v!=!!_&&(h!=null?aa(u,!!_,h,!0):aa(u,!!_,_?[]:"",!1));return;case"textarea":Ce=Ee=null;for(K in _)if(R=_[K],_.hasOwnProperty(K)&&R!=null&&!v.hasOwnProperty(K))switch(K){case"value":break;case"children":break;default:$n(u,h,K,null,v,R)}for(q in v)if(R=v[q],A=_[q],v.hasOwnProperty(q)&&(R!=null||A!=null))switch(q){case"value":Ee=R;break;case"defaultValue":Ce=R;break;case"children":break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(91));break;default:R!==A&&$n(u,h,q,R,v,A)}So(u,Ee,Ce);return;case"option":for(var Pt in _)if(Ee=_[Pt],_.hasOwnProperty(Pt)&&Ee!=null&&!v.hasOwnProperty(Pt))switch(Pt){case"selected":u.selected=!1;break;default:$n(u,h,Pt,null,v,Ee)}for(te in v)if(Ee=v[te],Ce=_[te],v.hasOwnProperty(te)&&Ee!==Ce&&(Ee!=null||Ce!=null))switch(te){case"selected":u.selected=Ee&&typeof Ee!="function"&&typeof Ee!="symbol";break;default:$n(u,h,te,Ee,v,Ce)}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 It in _)Ee=_[It],_.hasOwnProperty(It)&&Ee!=null&&!v.hasOwnProperty(It)&&$n(u,h,It,null,v,Ee);for(_e in v)if(Ee=v[_e],Ce=_[_e],v.hasOwnProperty(_e)&&Ee!==Ce&&(Ee!=null||Ce!=null))switch(_e){case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(r(137,h));break;default:$n(u,h,_e,Ee,v,Ce)}return;default:if(rr(h)){for(var zn in _)Ee=_[zn],_.hasOwnProperty(zn)&&Ee!==void 0&&!v.hasOwnProperty(zn)&&lC(u,h,zn,void 0,v,Ee);for(Ie in v)Ee=v[Ie],Ce=_[Ie],!v.hasOwnProperty(Ie)||Ee===Ce||Ee===void 0&&Ce===void 0||lC(u,h,Ie,Ee,v,Ce);return}}for(var de in _)Ee=_[de],_.hasOwnProperty(de)&&Ee!=null&&!v.hasOwnProperty(de)&&$n(u,h,de,null,v,Ee);for(Ue in v)Ee=v[Ue],Ce=_[Ue],!v.hasOwnProperty(Ue)||Ee===Ce||Ee==null&&Ce==null||$n(u,h,Ue,Ee,v,Ce)}var cC=null,uC=null;function qb(u){return u.nodeType===9?u:u.ownerDocument}function U3(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 j3(u,h){if(u===0)switch(h){case"svg":return 1;case"math":return 2;default:return 0}return u===1&&h==="foreignObject"?0:u}function dC(u,h){return u==="textarea"||u==="noscript"||typeof h.children=="string"||typeof h.children=="number"||typeof h.children=="bigint"||typeof h.dangerouslySetInnerHTML=="object"&&h.dangerouslySetInnerHTML!==null&&h.dangerouslySetInnerHTML.__html!=null}var fC=null;function cZ(){var u=window.event;return u&&u.type==="popstate"?u===fC?!1:(fC=u,!0):(fC=null,!1)}var G3=typeof setTimeout=="function"?setTimeout:void 0,uZ=typeof clearTimeout=="function"?clearTimeout:void 0,q3=typeof Promise=="function"?Promise:void 0,dZ=typeof queueMicrotask=="function"?queueMicrotask:typeof q3<"u"?function(u){return q3.resolve(null).then(u).catch(fZ)}:G3;function fZ(u){setTimeout(function(){throw u})}function Cu(u){return u==="head"}function $3(u,h){var _=h,v=0,R=0;do{var A=_.nextSibling;if(u.removeChild(_),A&&A.nodeType===8)if(_=A.data,_==="/$"){if(0<v&&8>v){_=v;var q=u.ownerDocument;if(_&1&&_g(q.documentElement),_&2&&_g(q.body),_&4)for(_=q.head,_g(_),q=_.firstChild;q;){var K=q.nextSibling,te=q.nodeName;q[go]||te==="SCRIPT"||te==="STYLE"||te==="LINK"&&q.rel.toLowerCase()==="stylesheet"||_.removeChild(q),q=K}}if(R===0){u.removeChild(A),Cg(h);return}R--}else _==="$"||_==="$?"||_==="$!"?R++:v=_.charCodeAt(0)-48;else v=0;_=A}while(_);Cg(h)}function hC(u){var h=u.firstChild;for(h&&h.nodeType===10&&(h=h.nextSibling);h;){var _=h;switch(h=h.nextSibling,_.nodeName){case"HTML":case"HEAD":case"BODY":hC(_),cl(_);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(_.rel.toLowerCase()==="stylesheet")continue}u.removeChild(_)}}function hZ(u,h,_,v){for(;u.nodeType===1;){var R=_;if(u.nodeName.toLowerCase()!==h.toLowerCase()){if(!v&&(u.nodeName!=="INPUT"||u.type!=="hidden"))break}else if(v){if(!u[go])switch(h){case"meta":if(!u.hasAttribute("itemprop"))break;return u;case"link":if(A=u.getAttribute("rel"),A==="stylesheet"&&u.hasAttribute("data-precedence"))break;if(A!==R.rel||u.getAttribute("href")!==(R.href==null||R.href===""?null:R.href)||u.getAttribute("crossorigin")!==(R.crossOrigin==null?null:R.crossOrigin)||u.getAttribute("title")!==(R.title==null?null:R.title))break;return u;case"style":if(u.hasAttribute("data-precedence"))break;return u;case"script":if(A=u.getAttribute("src"),(A!==(R.src==null?null:R.src)||u.getAttribute("type")!==(R.type==null?null:R.type)||u.getAttribute("crossorigin")!==(R.crossOrigin==null?null:R.crossOrigin))&&A&&u.hasAttribute("async")&&!u.hasAttribute("itemprop"))break;return u;default:return u}}else if(h==="input"&&u.type==="hidden"){var A=R.name==null?null:""+R.name;if(R.type==="hidden"&&u.getAttribute("name")===A)return u}else return u;if(u=Ao(u.nextSibling),u===null)break}return null}function pZ(u,h,_){if(h==="")return null;for(;u.nodeType!==3;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!_||(u=Ao(u.nextSibling),u===null))return null;return u}function pC(u){return u.data==="$!"||u.data==="$?"&&u.ownerDocument.readyState==="complete"}function mZ(u,h){var _=u.ownerDocument;if(u.data!=="$?"||_.readyState==="complete")h();else{var v=function(){h(),_.removeEventListener("DOMContentLoaded",v)};_.addEventListener("DOMContentLoaded",v),u._reactRetry=v}}function Ao(u){for(;u!=null;u=u.nextSibling){var h=u.nodeType;if(h===1||h===3)break;if(h===8){if(h=u.data,h==="$"||h==="$!"||h==="$?"||h==="F!"||h==="F")break;if(h==="/$")return null}}return u}var mC=null;function z3(u){u=u.previousSibling;for(var h=0;u;){if(u.nodeType===8){var _=u.data;if(_==="$"||_==="$!"||_==="$?"){if(h===0)return u;h--}else _==="/$"&&h++}u=u.previousSibling}return null}function Y3(u,h,_){switch(h=qb(_),u){case"html":if(u=h.documentElement,!u)throw Error(r(452));return u;case"head":if(u=h.head,!u)throw Error(r(453));return u;case"body":if(u=h.body,!u)throw Error(r(454));return u;default:throw Error(r(451))}}function _g(u){for(var h=u.attributes;h.length;)u.removeAttributeNode(h[0]);cl(u)}var Hs=new Map,H3=new Set;function $b(u){return typeof u.getRootNode=="function"?u.getRootNode():u.nodeType===9?u:u.ownerDocument}var Tc=P.d;P.d={f:gZ,r:_Z,D:bZ,C:vZ,L:SZ,m:EZ,X:TZ,S:yZ,M:xZ};function gZ(){var u=Tc.f(),h=Lb();return u||h}function _Z(u){var h=ji(u);h!==null&&h.tag===5&&h.type==="form"?f2(h):Tc.r(u)}var Dh=typeof document>"u"?null:document;function V3(u,h,_){var v=Dh;if(v&&typeof h=="string"&&h){var R=Gi(h);R='link[rel="'+u+'"][href="'+R+'"]',typeof _=="string"&&(R+='[crossorigin="'+_+'"]'),H3.has(R)||(H3.add(R),u={rel:u,crossOrigin:_,href:h},v.querySelector(R)===null&&(h=v.createElement("link"),Hi(h,"link",u),Wn(h),v.head.appendChild(h)))}}function bZ(u){Tc.D(u),V3("dns-prefetch",u,null)}function vZ(u,h){Tc.C(u,h),V3("preconnect",u,h)}function SZ(u,h,_){Tc.L(u,h,_);var v=Dh;if(v&&u&&h){var R='link[rel="preload"][as="'+Gi(h)+'"]';h==="image"&&_&&_.imageSrcSet?(R+='[imagesrcset="'+Gi(_.imageSrcSet)+'"]',typeof _.imageSizes=="string"&&(R+='[imagesizes="'+Gi(_.imageSizes)+'"]')):R+='[href="'+Gi(u)+'"]';var A=R;switch(h){case"style":A=Mh(u);break;case"script":A=Lh(u)}Hs.has(A)||(u=f({rel:"preload",href:h==="image"&&_&&_.imageSrcSet?void 0:u,as:h},_),Hs.set(A,u),v.querySelector(R)!==null||h==="style"&&v.querySelector(bg(A))||h==="script"&&v.querySelector(vg(A))||(h=v.createElement("link"),Hi(h,"link",u),Wn(h),v.head.appendChild(h)))}}function EZ(u,h){Tc.m(u,h);var _=Dh;if(_&&u){var v=h&&typeof h.as=="string"?h.as:"script",R='link[rel="modulepreload"][as="'+Gi(v)+'"][href="'+Gi(u)+'"]',A=R;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=Lh(u)}if(!Hs.has(A)&&(u=f({rel:"modulepreload",href:u},h),Hs.set(A,u),_.querySelector(R)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(_.querySelector(vg(A)))return}v=_.createElement("link"),Hi(v,"link",u),Wn(v),_.head.appendChild(v)}}}function yZ(u,h,_){Tc.S(u,h,_);var v=Dh;if(v&&u){var R=ra(v).hoistableStyles,A=Mh(u);h=h||"default";var q=R.get(A);if(!q){var K={loading:0,preload:null};if(q=v.querySelector(bg(A)))K.loading=5;else{u=f({rel:"stylesheet",href:u,"data-precedence":h},_),(_=Hs.get(A))&&gC(u,_);var te=q=v.createElement("link");Wn(te),Hi(te,"link",u),te._p=new Promise(function(_e,Ie){te.onload=_e,te.onerror=Ie}),te.addEventListener("load",function(){K.loading|=1}),te.addEventListener("error",function(){K.loading|=2}),K.loading|=4,zb(q,h,v)}q={type:"stylesheet",instance:q,count:1,state:K},R.set(A,q)}}}function TZ(u,h){Tc.X(u,h);var _=Dh;if(_&&u){var v=ra(_).hoistableScripts,R=Lh(u),A=v.get(R);A||(A=_.querySelector(vg(R)),A||(u=f({src:u,async:!0},h),(h=Hs.get(R))&&_C(u,h),A=_.createElement("script"),Wn(A),Hi(A,"link",u),_.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},v.set(R,A))}}function xZ(u,h){Tc.M(u,h);var _=Dh;if(_&&u){var v=ra(_).hoistableScripts,R=Lh(u),A=v.get(R);A||(A=_.querySelector(vg(R)),A||(u=f({src:u,async:!0,type:"module"},h),(h=Hs.get(R))&&_C(u,h),A=_.createElement("script"),Wn(A),Hi(A,"link",u),_.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},v.set(R,A))}}function W3(u,h,_,v){var R=(R=be.current)?$b(R):null;if(!R)throw Error(r(446));switch(u){case"meta":case"title":return null;case"style":return typeof _.precedence=="string"&&typeof _.href=="string"?(h=Mh(_.href),_=ra(R).hoistableStyles,v=_.get(h),v||(v={type:"style",instance:null,count:0,state:null},_.set(h,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(_.rel==="stylesheet"&&typeof _.href=="string"&&typeof _.precedence=="string"){u=Mh(_.href);var A=ra(R).hoistableStyles,q=A.get(u);if(q||(R=R.ownerDocument||R,q={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(u,q),(A=R.querySelector(bg(u)))&&!A._p&&(q.instance=A,q.state.loading=5),Hs.has(u)||(_={rel:"preload",as:"style",href:_.href,crossOrigin:_.crossOrigin,integrity:_.integrity,media:_.media,hrefLang:_.hrefLang,referrerPolicy:_.referrerPolicy},Hs.set(u,_),A||CZ(R,u,_,q.state))),h&&v===null)throw Error(r(528,""));return q}if(h&&v!==null)throw Error(r(529,""));return null;case"script":return h=_.async,_=_.src,typeof _=="string"&&h&&typeof h!="function"&&typeof h!="symbol"?(h=Lh(_),_=ra(R).hoistableScripts,v=_.get(h),v||(v={type:"script",instance:null,count:0,state:null},_.set(h,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,u))}}function Mh(u){return'href="'+Gi(u)+'"'}function bg(u){return'link[rel="stylesheet"]['+u+"]"}function Q3(u){return f({},u,{"data-precedence":u.precedence,precedence:null})}function CZ(u,h,_,v){u.querySelector('link[rel="preload"][as="style"]['+h+"]")?v.loading=1:(h=u.createElement("link"),v.preload=h,h.addEventListener("load",function(){return v.loading|=1}),h.addEventListener("error",function(){return v.loading|=2}),Hi(h,"link",_),Wn(h),u.head.appendChild(h))}function Lh(u){return'[src="'+Gi(u)+'"]'}function vg(u){return"script[async]"+u}function K3(u,h,_){if(h.count++,h.instance===null)switch(h.type){case"style":var v=u.querySelector('style[data-href~="'+Gi(_.href)+'"]');if(v)return h.instance=v,Wn(v),v;var R=f({},_,{"data-href":_.href,"data-precedence":_.precedence,href:null,precedence:null});return v=(u.ownerDocument||u).createElement("style"),Wn(v),Hi(v,"style",R),zb(v,_.precedence,u),h.instance=v;case"stylesheet":R=Mh(_.href);var A=u.querySelector(bg(R));if(A)return h.state.loading|=4,h.instance=A,Wn(A),A;v=Q3(_),(R=Hs.get(R))&&gC(v,R),A=(u.ownerDocument||u).createElement("link"),Wn(A);var q=A;return q._p=new Promise(function(K,te){q.onload=K,q.onerror=te}),Hi(A,"link",v),h.state.loading|=4,zb(A,_.precedence,u),h.instance=A;case"script":return A=Lh(_.src),(R=u.querySelector(vg(A)))?(h.instance=R,Wn(R),R):(v=_,(R=Hs.get(A))&&(v=f({},_),_C(v,R)),u=u.ownerDocument||u,R=u.createElement("script"),Wn(R),Hi(R,"link",v),u.head.appendChild(R),h.instance=R);case"void":return null;default:throw Error(r(443,h.type))}else h.type==="stylesheet"&&(h.state.loading&4)===0&&(v=h.instance,h.state.loading|=4,zb(v,_.precedence,u));return h.instance}function zb(u,h,_){for(var v=_.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),R=v.length?v[v.length-1]:null,A=R,q=0;q<v.length;q++){var K=v[q];if(K.dataset.precedence===h)A=K;else if(A!==R)break}A?A.parentNode.insertBefore(u,A.nextSibling):(h=_.nodeType===9?_.head:_,h.insertBefore(u,h.firstChild))}function gC(u,h){u.crossOrigin==null&&(u.crossOrigin=h.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=h.referrerPolicy),u.title==null&&(u.title=h.title)}function _C(u,h){u.crossOrigin==null&&(u.crossOrigin=h.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=h.referrerPolicy),u.integrity==null&&(u.integrity=h.integrity)}var Yb=null;function X3(u,h,_){if(Yb===null){var v=new Map,R=Yb=new Map;R.set(_,v)}else R=Yb,v=R.get(_),v||(v=new Map,R.set(_,v));if(v.has(u))return v;for(v.set(u,null),_=_.getElementsByTagName(u),R=0;R<_.length;R++){var A=_[R];if(!(A[go]||A[ze]||u==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var q=A.getAttribute(h)||"";q=u+q;var K=v.get(q);K?K.push(A):v.set(q,[A])}}return v}function Z3(u,h,_){u=u.ownerDocument||u,u.head.insertBefore(_,h==="title"?u.querySelector("head > title"):null)}function OZ(u,h,_){if(_===1||h.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof h.precedence!="string"||typeof h.href!="string"||h.href==="")break;return!0;case"link":if(typeof h.rel!="string"||typeof h.href!="string"||h.href===""||h.onLoad||h.onError)break;switch(h.rel){case"stylesheet":return u=h.disabled,typeof h.precedence=="string"&&u==null;default:return!0}case"script":if(h.async&&typeof h.async!="function"&&typeof h.async!="symbol"&&!h.onLoad&&!h.onError&&h.src&&typeof h.src=="string")return!0}return!1}function J3(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}var Sg=null;function RZ(){}function NZ(u,h,_){if(Sg===null)throw Error(r(475));var v=Sg;if(h.type==="stylesheet"&&(typeof _.media!="string"||matchMedia(_.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var R=Mh(_.href),A=u.querySelector(bg(R));if(A){u=A._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(v.count++,v=Hb.bind(v),u.then(v,v)),h.state.loading|=4,h.instance=A,Wn(A);return}A=u.ownerDocument||u,_=Q3(_),(R=Hs.get(R))&&gC(_,R),A=A.createElement("link"),Wn(A);var q=A;q._p=new Promise(function(K,te){q.onload=K,q.onerror=te}),Hi(A,"link",_),h.instance=A}v.stylesheets===null&&(v.stylesheets=new Map),v.stylesheets.set(h,u),(u=h.state.preload)&&(h.state.loading&3)===0&&(v.count++,h=Hb.bind(v),u.addEventListener("load",h),u.addEventListener("error",h))}}function AZ(){if(Sg===null)throw Error(r(475));var u=Sg;return u.stylesheets&&u.count===0&&bC(u,u.stylesheets),0<u.count?function(h){var _=setTimeout(function(){if(u.stylesheets&&bC(u,u.stylesheets),u.unsuspend){var v=u.unsuspend;u.unsuspend=null,v()}},6e4);return u.unsuspend=h,function(){u.unsuspend=null,clearTimeout(_)}}:null}function Hb(){if(this.count--,this.count===0){if(this.stylesheets)bC(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var Vb=null;function bC(u,h){u.stylesheets=null,u.unsuspend!==null&&(u.count++,Vb=new Map,h.forEach(wZ,u),Vb=null,Hb.call(u))}function wZ(u,h){if(!(h.state.loading&4)){var _=Vb.get(u);if(_)var v=_.get(null);else{_=new Map,Vb.set(u,_);for(var R=u.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<R.length;A++){var q=R[A];(q.nodeName==="LINK"||q.getAttribute("media")!=="not all")&&(_.set(q.dataset.precedence,q),v=q)}v&&_.set(null,v)}R=h.instance,q=R.getAttribute("data-precedence"),A=_.get(q)||v,A===v&&_.set(null,R),_.set(q,R),this.count++,v=Hb.bind(this),R.addEventListener("load",v),R.addEventListener("error",v),A?A.parentNode.insertBefore(R,A.nextSibling):(u=u.nodeType===9?u.head:u,u.insertBefore(R,u.firstChild)),h.state.loading|=4}}var Eg={$$typeof:x,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function IZ(u,h,_,v,R,A,q,K){this.tag=1,this.containerInfo=u,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=xr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xr(0),this.hiddenUpdates=xr(null),this.identifierPrefix=v,this.onUncaughtError=R,this.onCaughtError=A,this.onRecoverableError=q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=K,this.incompleteTransitions=new Map}function eB(u,h,_,v,R,A,q,K,te,_e,Ie,Ue){return u=new IZ(u,h,_,q,K,te,_e,Ue),h=1,A===!0&&(h|=24),A=cs(3,null,null,h),u.current=A,A.stateNode=u,h=JT(),h.refCount++,u.pooledCache=h,h.refCount++,A.memoizedState={element:v,isDehydrated:_,cache:h},rx(A),u}function tB(u){return u?(u=dh,u):dh}function nB(u,h,_,v,R,A){R=tB(R),v.context===null?v.context=R:v.pendingContext=R,v=fu(h),v.payload={element:_},A=A===void 0?null:A,A!==null&&(v.callback=A),_=hu(u,v,h),_!==null&&(ps(_,u,h),Xm(_,u,h))}function rB(u,h){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var _=u.retryLane;u.retryLane=_!==0&&_<h?_:h}}function vC(u,h){rB(u,h),(u=u.alternate)&&rB(u,h)}function iB(u){if(u.tag===13){var h=uh(u,67108864);h!==null&&ps(h,u,67108864),vC(u,67108864)}}var Wb=!0;function DZ(u,h,_,v){var R=k.T;k.T=null;var A=P.p;try{P.p=2,SC(u,h,_,v)}finally{P.p=A,k.T=R}}function MZ(u,h,_,v){var R=k.T;k.T=null;var A=P.p;try{P.p=8,SC(u,h,_,v)}finally{P.p=A,k.T=R}}function SC(u,h,_,v){if(Wb){var R=EC(v);if(R===null)oC(u,h,v,Qb,_),sB(u,v);else if(kZ(R,u,h,_,v))v.stopPropagation();else if(sB(u,v),h&4&&-1<LZ.indexOf(u)){for(;R!==null;){var A=ji(R);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var q=Jt(A.pendingLanes);if(q!==0){var K=A;for(K.pendingLanes|=2,K.entangledLanes|=2;q;){var te=1<<31-kt(q);K.entanglements[1]|=te,q&=~te}El(A),(Ln&6)===0&&(Db=Ae()+500,pg(0))}}break;case 13:K=uh(A,2),K!==null&&ps(K,A,2),Lb(),vC(A,2)}if(A=EC(v),A===null&&oC(u,h,v,Qb,_),A===R)break;R=A}R!==null&&v.stopPropagation()}else oC(u,h,v,null,_)}}function EC(u){return u=oa(u),yC(u)}var Qb=null;function yC(u){if(Qb=null,u=_o(u),u!==null){var h=a(u);if(h===null)u=null;else{var _=h.tag;if(_===13){if(u=s(h),u!==null)return u;u=null}else if(_===3){if(h.stateNode.current.memoizedState.isDehydrated)return h.tag===3?h.stateNode.containerInfo:null;u=null}else h!==u&&(u=null)}}return Qb=u,null}function aB(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(Be()){case Xe:return 2;case je:return 8;case Ze:case Et:return 32;case vt:return 268435456;default:return 32}default:return 32}}var TC=!1,Ou=null,Ru=null,Nu=null,yg=new Map,Tg=new Map,Au=[],LZ="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 sB(u,h){switch(u){case"focusin":case"focusout":Ou=null;break;case"dragenter":case"dragleave":Ru=null;break;case"mouseover":case"mouseout":Nu=null;break;case"pointerover":case"pointerout":yg.delete(h.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tg.delete(h.pointerId)}}function xg(u,h,_,v,R,A){return u===null||u.nativeEvent!==A?(u={blockedOn:h,domEventName:_,eventSystemFlags:v,nativeEvent:A,targetContainers:[R]},h!==null&&(h=ji(h),h!==null&&iB(h)),u):(u.eventSystemFlags|=v,h=u.targetContainers,R!==null&&h.indexOf(R)===-1&&h.push(R),u)}function kZ(u,h,_,v,R){switch(h){case"focusin":return Ou=xg(Ou,u,h,_,v,R),!0;case"dragenter":return Ru=xg(Ru,u,h,_,v,R),!0;case"mouseover":return Nu=xg(Nu,u,h,_,v,R),!0;case"pointerover":var A=R.pointerId;return yg.set(A,xg(yg.get(A)||null,u,h,_,v,R)),!0;case"gotpointercapture":return A=R.pointerId,Tg.set(A,xg(Tg.get(A)||null,u,h,_,v,R)),!0}return!1}function oB(u){var h=_o(u.target);if(h!==null){var _=a(h);if(_!==null){if(h=_.tag,h===13){if(h=s(_),h!==null){u.blockedOn=h,vn(u.priority,function(){if(_.tag===13){var v=hs();v=Ke(v);var R=uh(_,v);R!==null&&ps(R,_,v),vC(_,v)}});return}}else if(h===3&&_.stateNode.current.memoizedState.isDehydrated){u.blockedOn=_.tag===3?_.stateNode.containerInfo:null;return}}}u.blockedOn=null}function Kb(u){if(u.blockedOn!==null)return!1;for(var h=u.targetContainers;0<h.length;){var _=EC(u.nativeEvent);if(_===null){_=u.nativeEvent;var v=new _.constructor(_.type,_);os=v,_.target.dispatchEvent(v),os=null}else return h=ji(_),h!==null&&iB(h),u.blockedOn=_,!1;h.shift()}return!0}function lB(u,h,_){Kb(u)&&_.delete(h)}function PZ(){TC=!1,Ou!==null&&Kb(Ou)&&(Ou=null),Ru!==null&&Kb(Ru)&&(Ru=null),Nu!==null&&Kb(Nu)&&(Nu=null),yg.forEach(lB),Tg.forEach(lB)}function Xb(u,h){u.blockedOn===h&&(u.blockedOn=null,TC||(TC=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,PZ)))}var Zb=null;function cB(u){Zb!==u&&(Zb=u,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Zb===u&&(Zb=null);for(var h=0;h<u.length;h+=3){var _=u[h],v=u[h+1],R=u[h+2];if(typeof v!="function"){if(yC(v||_)===null)continue;break}var A=ji(_);A!==null&&(u.splice(h,3),h-=3,yx(A,{pending:!0,data:R,method:_.method,action:v},v,R))}}))}function Cg(u){function h(te){return Xb(te,u)}Ou!==null&&Xb(Ou,u),Ru!==null&&Xb(Ru,u),Nu!==null&&Xb(Nu,u),yg.forEach(h),Tg.forEach(h);for(var _=0;_<Au.length;_++){var v=Au[_];v.blockedOn===u&&(v.blockedOn=null)}for(;0<Au.length&&(_=Au[0],_.blockedOn===null);)oB(_),_.blockedOn===null&&Au.shift();if(_=(u.ownerDocument||u).$$reactFormReplay,_!=null)for(v=0;v<_.length;v+=3){var R=_[v],A=_[v+1],q=R[dt]||null;if(typeof A=="function")q||cB(_);else if(q){var K=null;if(A&&A.hasAttribute("formAction")){if(R=A,q=A[dt]||null)K=q.formAction;else if(yC(R)!==null)continue}else K=q.action;typeof K=="function"?_[v+1]=K:(_.splice(v,3),v-=3),cB(_)}}}function xC(u){this._internalRoot=u}Jb.prototype.render=xC.prototype.render=function(u){var h=this._internalRoot;if(h===null)throw Error(r(409));var _=h.current,v=hs();nB(_,v,u,h,null,null)},Jb.prototype.unmount=xC.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var h=u.containerInfo;nB(u.current,2,null,u,null,null),Lb(),h[_n]=null}};function Jb(u){this._internalRoot=u}Jb.prototype.unstable_scheduleHydration=function(u){if(u){var h=gn();u={blockedOn:null,target:u,priority:h};for(var _=0;_<Au.length&&h!==0&&h<Au[_].priority;_++);Au.splice(_,0,u),_===0&&oB(u)}};var uB=e.version;if(uB!=="19.1.0")throw Error(r(527,uB,"19.1.0"));P.findDOMNode=function(u){var h=u._reactInternals;if(h===void 0)throw typeof u.render=="function"?Error(r(188)):(u=Object.keys(u).join(","),Error(r(268,u)));return u=c(h),u=u!==null?d(u):null,u=u===null?null:u.stateNode,u};var BZ={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ev=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ev.isDisabled&&ev.supportsFiber)try{et=ev.inject(BZ),yt=ev}catch{}}return Rg.createRoot=function(u,h){if(!i(u))throw Error(r(299));var _=!1,v="",R=O2,A=R2,q=N2,K=null;return h!=null&&(h.unstable_strictMode===!0&&(_=!0),h.identifierPrefix!==void 0&&(v=h.identifierPrefix),h.onUncaughtError!==void 0&&(R=h.onUncaughtError),h.onCaughtError!==void 0&&(A=h.onCaughtError),h.onRecoverableError!==void 0&&(q=h.onRecoverableError),h.unstable_transitionCallbacks!==void 0&&(K=h.unstable_transitionCallbacks)),h=eB(u,1,!1,null,null,_,v,R,A,q,K,null),u[_n]=h.current,sC(u),new xC(h)},Rg.hydrateRoot=function(u,h,_){if(!i(u))throw Error(r(299));var v=!1,R="",A=O2,q=R2,K=N2,te=null,_e=null;return _!=null&&(_.unstable_strictMode===!0&&(v=!0),_.identifierPrefix!==void 0&&(R=_.identifierPrefix),_.onUncaughtError!==void 0&&(A=_.onUncaughtError),_.onCaughtError!==void 0&&(q=_.onCaughtError),_.onRecoverableError!==void 0&&(K=_.onRecoverableError),_.unstable_transitionCallbacks!==void 0&&(te=_.unstable_transitionCallbacks),_.formState!==void 0&&(_e=_.formState)),h=eB(u,1,!0,h,_??null,v,R,A,q,K,te,_e),h.context=tB(null),_=h.current,v=hs(),v=Ke(v),R=fu(v),R.callback=null,hu(_,R,v),_=v,h.current.lanes=_,ya(h,_),El(h),u[_n]=h.current,sC(u),new Jb(h)},Rg.version="19.1.0",Rg}var EB;function KZ(){if(EB)return NC.exports;EB=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),NC.exports=QZ(),NC.exports}var XZ=KZ();const ZZ=sl(XZ),JZ="_link_88ik9_12",tv={link:JZ},eJ="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='115.333px'%20height='114px'%20viewBox='0%200%20115.333%20114'%20enable-background='new%200%200%20115.333%20114'%20xml:space='preserve'%3e%3cg%20id='Layer_2'%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23EEEEEE'%20d='M56.667,0.667C25.372,0.667,0,26.036,0,57.332c0,31.295,25.372,56.666,56.667,56.666%20s56.666-25.371,56.666-56.666C113.333,26.036,87.961,0.667,56.667,0.667z%20M56.667,106.722c-8.904,0-16.123-5.948-16.123-13.283%20H72.79C72.79,100.773,65.571,106.722,56.667,106.722z%20M83.297,89.04H30.034v-9.658h53.264V89.04z%20M83.106,74.411h-52.92%20c-0.176-0.203-0.356-0.403-0.526-0.609c-5.452-6.62-6.736-10.076-7.983-13.598c-0.021-0.116,6.611,1.355,11.314,2.413%20c0,0,2.42,0.56,5.958,1.205c-3.397-3.982-5.414-9.044-5.414-14.218c0-11.359,8.712-21.285,5.569-29.308%20c3.059,0.249,6.331,6.456,6.552,16.161c3.252-4.494,4.613-12.701,4.613-17.733c0-5.21,3.433-11.262,6.867-11.469%20c-3.061,5.045,0.793,9.37,4.219,20.099c1.285,4.03,1.121,10.812,2.113,15.113C63.797,33.534,65.333,20.5,71,16%20c-2.5,5.667,0.37,12.758,2.333,16.167c3.167,5.5,5.087,9.667,5.087,17.548c0,5.284-1.951,10.259-5.242,14.148%20c3.742-0.702,6.326-1.335,6.326-1.335l12.152-2.371C91.657,60.156,89.891,67.418,83.106,74.411z'/%3e%3c/g%3e%3c/svg%3e";var Dl=function(){return Dl=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Dl.apply(this,arguments)};function F5(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function tJ(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}var Jv="right-scroll-bar-position",eS="width-before-scroll-bar",nJ="with-scroll-bars-hidden",rJ="--removed-body-scroll-bar-size";function DC(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function iJ(t,e){var n=I.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var aJ=typeof window<"u"?I.useLayoutEffect:I.useEffect,yB=new WeakMap;function sJ(t,e){var n=iJ(null,function(r){return t.forEach(function(i){return DC(i,r)})});return aJ(function(){var r=yB.get(n);if(r){var i=new Set(r),a=new Set(t),s=n.current;i.forEach(function(o){a.has(o)||DC(o,null)}),a.forEach(function(o){i.has(o)||DC(o,s)})}yB.set(n,t)},[t]),n}function oJ(t){return t}function lJ(t,e){e===void 0&&(e=oJ);var n=[],r=!1,i={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]:t},useMedium:function(a){var s=e(a,r);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(o){return a(o)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(a),s=n}var c=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),n}}}};return i}function cJ(t){t===void 0&&(t={});var e=lJ(null);return e.options=Dl({async:!0,ssr:!1},t),e}var U5=function(t){var e=t.sideCar,n=F5(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return I.createElement(r,Dl({},n))};U5.isSideCarExport=!0;function uJ(t,e){return t.useMedium(e),U5}var j5=cJ(),MC=function(){},YE=I.forwardRef(function(t,e){var n=I.useRef(null),r=I.useState({onScrollCapture:MC,onWheelCapture:MC,onTouchMoveCapture:MC}),i=r[0],a=r[1],s=t.forwardProps,o=t.children,c=t.className,d=t.removeScrollBar,f=t.enabled,p=t.shards,m=t.sideCar,g=t.noIsolation,b=t.inert,S=t.allowPinchZoom,y=t.as,E=y===void 0?"div":y,T=t.gapMode,x=F5(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=m,C=sJ([n,e]),N=Dl(Dl({},x),i);return I.createElement(I.Fragment,null,f&&I.createElement(O,{sideCar:j5,removeScrollBar:d,shards:p,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!S,lockRef:n,gapMode:T}),s?I.cloneElement(I.Children.only(o),Dl(Dl({},N),{ref:C})):I.createElement(E,Dl({},N,{className:c,ref:C}),o))});YE.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};YE.classNames={fullWidth:eS,zeroRight:Jv};var dJ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fJ(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=dJ();return e&&t.setAttribute("nonce",e),t}function hJ(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function pJ(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var mJ=function(){var t=0,e=null;return{add:function(n){t==0&&(e=fJ())&&(hJ(e,n),pJ(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},gJ=function(){var t=mJ();return function(e,n){I.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},G5=function(){var t=gJ(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},_J={left:0,top:0,right:0,gap:0},LC=function(t){return parseInt(t||"",10)||0},bJ=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[LC(n),LC(r),LC(i)]},vJ=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return _J;var e=bJ(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},SJ=G5(),np="data-scroll-locked",EJ=function(t,e,n,r){var i=t.left,a=t.top,s=t.right,o=t.gap;return n===void 0&&(n="margin"),`
  .`.concat(nJ,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(o,"px ").concat(r,`;
  }
  body[`).concat(np,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(i,`px;
    padding-top: `).concat(a,`px;
    padding-right: `).concat(s,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(o,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Jv,` {
    right: `).concat(o,"px ").concat(r,`;
  }
  
  .`).concat(eS,` {
    margin-right: `).concat(o,"px ").concat(r,`;
  }
  
  .`).concat(Jv," .").concat(Jv,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(eS," .").concat(eS,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(np,`] {
    `).concat(rJ,": ").concat(o,`px;
  }
`)},TB=function(){var t=parseInt(document.body.getAttribute(np)||"0",10);return isFinite(t)?t:0},yJ=function(){I.useEffect(function(){return document.body.setAttribute(np,(TB()+1).toString()),function(){var t=TB()-1;t<=0?document.body.removeAttribute(np):document.body.setAttribute(np,t.toString())}},[])},TJ=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;yJ();var a=I.useMemo(function(){return vJ(i)},[i]);return I.createElement(SJ,{styles:EJ(a,!e,i,n?"":"!important")})},_w=!1;if(typeof window<"u")try{var nv=Object.defineProperty({},"passive",{get:function(){return _w=!0,!0}});window.addEventListener("test",nv,nv),window.removeEventListener("test",nv,nv)}catch{_w=!1}var kh=_w?{passive:!1}:!1,xJ=function(t){return t.tagName==="TEXTAREA"},q5=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!xJ(t)&&n[e]==="visible")},CJ=function(t){return q5(t,"overflowY")},OJ=function(t){return q5(t,"overflowX")},xB=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=$5(t,r);if(i){var a=z5(t,r),s=a[1],o=a[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},RJ=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},NJ=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},$5=function(t,e){return t==="v"?CJ(e):OJ(e)},z5=function(t,e){return t==="v"?RJ(e):NJ(e)},AJ=function(t,e){return t==="h"&&e==="rtl"?-1:1},wJ=function(t,e,n,r,i){var a=AJ(t,window.getComputedStyle(e).direction),s=a*r,o=n.target,c=e.contains(o),d=!1,f=s>0,p=0,m=0;do{var g=z5(t,o),b=g[0],S=g[1],y=g[2],E=S-y-a*b;(b||E)&&$5(t,o)&&(p+=E,m+=b),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!c&&o!==document.body||c&&(e.contains(o)||e===o));return(f&&Math.abs(p)<1||!f&&Math.abs(m)<1)&&(d=!0),d},rv=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},CB=function(t){return[t.deltaX,t.deltaY]},OB=function(t){return t&&"current"in t?t.current:t},IJ=function(t,e){return t[0]===e[0]&&t[1]===e[1]},DJ=function(t){return`
  .block-interactivity-`.concat(t,` {pointer-events: none;}
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},MJ=0,Ph=[];function LJ(t){var e=I.useRef([]),n=I.useRef([0,0]),r=I.useRef(),i=I.useState(MJ++)[0],a=I.useState(G5)[0],s=I.useRef(t);I.useEffect(function(){s.current=t},[t]),I.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var S=tJ([t.lockRef.current],(t.shards||[]).map(OB),!0).filter(Boolean);return S.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var o=I.useCallback(function(S,y){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!s.current.allowPinchZoom;var E=rv(S),T=n.current,x="deltaX"in S?S.deltaX:T[0]-E[0],O="deltaY"in S?S.deltaY:T[1]-E[1],C,N=S.target,w=Math.abs(x)>Math.abs(O)?"h":"v";if("touches"in S&&w==="h"&&N.type==="range")return!1;var D=xB(w,N);if(!D)return!0;if(D?C=w:(C=w==="v"?"h":"v",D=xB(w,N)),!D)return!1;if(!r.current&&"changedTouches"in S&&(x||O)&&(r.current=C),!C)return!0;var L=r.current||C;return wJ(L,y,S,L==="h"?x:O)},[]),c=I.useCallback(function(S){var y=S;if(!(!Ph.length||Ph[Ph.length-1]!==a)){var E="deltaY"in y?CB(y):rv(y),T=e.current.filter(function(C){return C.name===y.type&&(C.target===y.target||y.target===C.shadowParent)&&IJ(C.delta,E)})[0];if(T&&T.should){y.cancelable&&y.preventDefault();return}if(!T){var x=(s.current.shards||[]).map(OB).filter(Boolean).filter(function(C){return C.contains(y.target)}),O=x.length>0?o(y,x[0]):!s.current.noIsolation;O&&y.cancelable&&y.preventDefault()}}},[]),d=I.useCallback(function(S,y,E,T){var x={name:S,delta:y,target:E,should:T,shadowParent:kJ(E)};e.current.push(x),setTimeout(function(){e.current=e.current.filter(function(O){return O!==x})},1)},[]),f=I.useCallback(function(S){n.current=rv(S),r.current=void 0},[]),p=I.useCallback(function(S){d(S.type,CB(S),S.target,o(S,t.lockRef.current))},[]),m=I.useCallback(function(S){d(S.type,rv(S),S.target,o(S,t.lockRef.current))},[]);I.useEffect(function(){return Ph.push(a),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,kh),document.addEventListener("touchmove",c,kh),document.addEventListener("touchstart",f,kh),function(){Ph=Ph.filter(function(S){return S!==a}),document.removeEventListener("wheel",c,kh),document.removeEventListener("touchmove",c,kh),document.removeEventListener("touchstart",f,kh)}},[]);var g=t.removeScrollBar,b=t.inert;return I.createElement(I.Fragment,null,b?I.createElement(a,{styles:DJ(i)}):null,g?I.createElement(TJ,{gapMode:t.gapMode}):null)}function kJ(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const PJ=uJ(j5,LJ);var Bp=I.forwardRef(function(t,e){return I.createElement(YE,Dl({},t,{ref:e,sideCar:PJ}))});Bp.classNames=YE.classNames;function ki(t){return Object.keys(t)}function kC(t){return t&&typeof t=="object"&&!Array.isArray(t)}function LD(t,e){const n={...t},r=e;return kC(t)&&kC(e)&&Object.keys(e).forEach(i=>{kC(r[i])&&i in t?n[i]=LD(n[i],r[i]):n[i]=r[i]}),n}function BJ(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function FJ(t){var e;return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:(e=t.match(/^calc\((.*?)\)$/))==null?void 0:e[1].split("*")[0].trim()}function bw(t){const e=FJ(t);return typeof e=="number"?e:typeof e=="string"?e.includes("calc")||e.includes("var")?e:e.includes("px")?Number(e.replace("px","")):e.includes("rem")?Number(e.replace("rem",""))*16:e.includes("em")?Number(e.replace("em",""))*16:Number(e):NaN}function PC(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}function Y5(t,{shouldScale:e=!1}={}){function n(r){if(r===0||r==="0")return`0${t}`;if(typeof r=="number"){const i=`${r/16}${t}`;return e?PC(i):i}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(a=>n(a)).join(",");if(r.includes(" "))return r.split(" ").map(a=>n(a)).join(" ");if(r.includes(t))return e?PC(r):r;const i=r.replace("px","");if(!Number.isNaN(Number(i))){const a=`${Number(i)/16}${t}`;return e?PC(a):a}}return r}return n}const he=Y5("rem",{shouldScale:!0}),ns=Y5("em");function kD(t){return Object.keys(t).reduce((e,n)=>(t[n]!==void 0&&(e[n]=t[n]),e),{})}function H5(t){if(typeof t=="number")return!0;if(typeof t=="string"){if(t.startsWith("calc(")||t.startsWith("var(")||t.includes(" ")&&t.trim()!=="")return!0;const e=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return t.trim().split(/\s+/).every(r=>e.test(r))}return!1}function yd(t){return Array.isArray(t)||t===null?!1:typeof t=="object"?t.type!==I.Fragment:!1}function va(t){const e=I.createContext(null);return[({children:i,value:a})=>l.jsx(e.Provider,{value:a,children:i}),()=>{const i=I.useContext(e);if(i===null)throw new Error(t);return i}]}function om(t=null){const e=I.createContext(t);return[({children:i,value:a})=>l.jsx(e.Provider,{value:a,children:i}),()=>I.useContext(e)]}function MS(t,e){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(e);return`${t}-${n}`}}function LS(t,e){let n=t;for(;(n=n.parentElement)&&!n.matches(e););return n}function UJ(t,e,n){for(let r=t-1;r>=0;r-=1)if(!e[r].disabled)return r;if(n){for(let r=e.length-1;r>-1;r-=1)if(!e[r].disabled)return r}return t}function jJ(t,e,n){for(let r=t+1;r<e.length;r+=1)if(!e[r].disabled)return r;if(n){for(let r=0;r<e.length;r+=1)if(!e[r].disabled)return r}return t}function GJ(t,e,n){return LS(t,n)===LS(e,n)}function PD({parentSelector:t,siblingSelector:e,onKeyDown:n,loop:r=!0,activateOnFocus:i=!1,dir:a="rtl",orientation:s}){return o=>{var b;n==null||n(o);const c=Array.from(((b=LS(o.currentTarget,t))==null?void 0:b.querySelectorAll(e))||[]).filter(S=>GJ(o.currentTarget,S,t)),d=c.findIndex(S=>o.currentTarget===S),f=jJ(d,c,r),p=UJ(d,c,r),m=a==="rtl"?p:f,g=a==="rtl"?f:p;switch(o.key){case"ArrowRight":{s==="horizontal"&&(o.stopPropagation(),o.preventDefault(),c[m].focus(),i&&c[m].click());break}case"ArrowLeft":{s==="horizontal"&&(o.stopPropagation(),o.preventDefault(),c[g].focus(),i&&c[g].click());break}case"ArrowUp":{s==="vertical"&&(o.stopPropagation(),o.preventDefault(),c[p].focus(),i&&c[p].click());break}case"ArrowDown":{s==="vertical"&&(o.stopPropagation(),o.preventDefault(),c[f].focus(),i&&c[f].click());break}case"Home":{o.stopPropagation(),o.preventDefault(),!c[0].disabled&&c[0].focus();break}case"End":{o.stopPropagation(),o.preventDefault();const S=c.length-1;!c[S].disabled&&c[S].focus();break}}}}const qJ={app:100,modal:200,popover:300,overlay:400,max:9999};function so(t){return qJ[t]}const kS=()=>{};function $J(t,e={active:!0}){return typeof t!="function"||!e.active?e.onKeyDown||kS:n=>{var r;n.key==="Escape"&&(t(n),(r=e.onTrigger)==null||r.call(e))}}function Ut(t,e="size",n=!0){if(t!==void 0)return H5(t)?n?he(t):t:`var(--${e}-${t})`}function zl(t){return Ut(t,"mantine-spacing")}function Yn(t){return t===void 0?"var(--mantine-radius-default)":Ut(t,"mantine-radius")}function Rr(t){return Ut(t,"mantine-font-size")}function V5(t){return Ut(t,"mantine-line-height",!1)}function BD(t){if(t)return Ut(t,"mantine-shadow",!1)}function Ja(t,e){return n=>{t==null||t(n),e==null||e(n)}}function FD(t,e){return t in e?bw(e[t]):bw(t)}function RB(t,e){const n=t.map(r=>({value:r,px:FD(r,e)}));return n.sort((r,i)=>r.px-i.px),n}function zJ(t,e,n){var r;return n?Array.from(((r=LS(n,e))==null?void 0:r.querySelectorAll(t))||[]).findIndex(i=>i===n):null}function YJ(){const[t,e]=I.useState(-1);return[t,{setHovered:e,resetHovered:()=>e(-1)}]}function Qg(t,e,n){return e===void 0&&n===void 0?t:e!==void 0&&n===void 0?Math.max(t,e):Math.min(e===void 0&&n!==void 0?t:Math.max(t,e),n)}function x_(t="mantine-"){return`${t}${Math.random().toString(36).slice(2,11)}`}function HJ(t,e){if(t===e)return!0;if(!(t instanceof Object)||!(e instanceof Object))return!1;const n=Object.keys(t),{length:r}=n;if(r!==Object.keys(e).length)return!1;for(let i=0;i<r;i+=1){const a=n[i];if(!(a in e)||t[a]!==e[a])return!1}return!0}function lf(t){const e=I.useRef(t);return I.useEffect(()=>{e.current=t}),I.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}const VJ=()=>{};function HE(t,e){const n=typeof e=="number"?e:e.delay,r=typeof e=="number"?!1:e.flushOnUnmount,i=lf(t),a=I.useRef(0),s=Object.assign(I.useCallback((...o)=>{window.clearTimeout(a.current);const c=()=>{a.current!==0&&(a.current=0,i(...o))};s.flush=c,a.current=window.setTimeout(c,n)},[i,n]),{flush:VJ});return I.useEffect(()=>()=>{window.clearTimeout(a.current),r&&s.flush()},[s,r]),s}const NB=["mousedown","touchstart"];function WJ(t,e,n){const r=I.useRef(null);return I.useEffect(()=>{const i=a=>{const{target:s}=a??{};if(Array.isArray(n)){const o=(s==null?void 0:s.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(s)&&s.tagName!=="HTML";n.every(d=>!!d&&!a.composedPath().includes(d))&&!o&&t()}else r.current&&!r.current.contains(s)&&t()};return(e||NB).forEach(a=>document.addEventListener(a,i)),()=>{(e||NB).forEach(a=>document.removeEventListener(a,i))}},[r,t,n]),r}function QJ({timeout:t=2e3}={}){const[e,n]=I.useState(null),[r,i]=I.useState(!1),[a,s]=I.useState(null),o=f=>{window.clearTimeout(a),s(window.setTimeout(()=>i(!1),t)),i(f)};return{copy:f=>{"clipboard"in navigator?navigator.clipboard.writeText(f).then(()=>o(!0)).catch(p=>n(p)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{i(!1),n(null),window.clearTimeout(a)},error:e,copied:r}}function KJ(t,e){try{return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}catch{return t.addListener(e),()=>t.removeListener(e)}}function XJ(t,e){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(t).matches:!1}function W5(t,e,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,i]=I.useState(n?e:XJ(t)),a=I.useRef(null);return I.useEffect(()=>{if("matchMedia"in window)return a.current=window.matchMedia(t),i(a.current.matches),KJ(a.current,s=>i(s.matches))},[t]),r}function Q5(t,e){return W5("(prefers-color-scheme: dark)",t==="dark",e)?"dark":"light"}function VE(t,e,n={leading:!1}){const[r,i]=I.useState(t),a=I.useRef(!1),s=I.useRef(null),o=I.useRef(!1),c=()=>window.clearTimeout(s.current);return I.useEffect(()=>{a.current&&(!o.current&&n.leading?(o.current=!0,i(t)):(c(),s.current=window.setTimeout(()=>{o.current=!1,i(t)},e)))},[t,n.leading,e]),I.useEffect(()=>(a.current=!0,c),[]),[r,c]}const lm=typeof document<"u"?I.useLayoutEffect:I.useEffect;function ro(t,e){const n=I.useRef(!1);I.useEffect(()=>()=>{n.current=!1},[]),I.useEffect(()=>{if(n.current)return t();n.current=!0},e)}function K5({opened:t,shouldReturnFocus:e=!0}){const n=I.useRef(null),r=()=>{var i;n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&((i=n.current)==null||i.focus({preventScroll:!0}))};return ro(()=>{let i=-1;const a=s=>{s.key==="Tab"&&window.clearTimeout(i)};return document.addEventListener("keydown",a),t?n.current=document.activeElement:e&&(i=window.setTimeout(r,10)),()=>{window.clearTimeout(i),document.removeEventListener("keydown",a)}},[t,e]),r}const ZJ=/input|select|textarea|button|object/,X5="a, input, select, textarea, button, object, [tabindex]";function JJ(t){return t.style.display==="none"}function eee(t){if(t.getAttribute("aria-hidden")||t.getAttribute("hidden")||t.getAttribute("type")==="hidden")return!1;let n=t;for(;n&&!(n===document.body||n.nodeType===11);){if(JJ(n))return!1;n=n.parentNode}return!0}function Z5(t){let e=t.getAttribute("tabindex");return e===null&&(e=void 0),parseInt(e,10)}function vw(t){const e=t.nodeName.toLowerCase(),n=!Number.isNaN(Z5(t));return(ZJ.test(e)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||n)&&eee(t)}function J5(t){const e=Z5(t);return(Number.isNaN(e)||e>=0)&&vw(t)}function tee(t){return Array.from(t.querySelectorAll(X5)).filter(J5)}function nee(t,e){const n=tee(t);if(!n.length){e.preventDefault();return}const r=n[e.shiftKey?0:n.length-1],i=t.getRootNode();let a=r===i.activeElement||t===i.activeElement;const s=i.activeElement;if(s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(a=n.filter(f=>f.getAttribute("type")==="radio"&&f.getAttribute("name")===s.getAttribute("name")).includes(r)),!a)return;e.preventDefault();const c=n[e.shiftKey?n.length-1:0];c&&c.focus()}function ree(t=!0){const e=I.useRef(null),n=i=>{let a=i.querySelector("[data-autofocus]");if(!a){const s=Array.from(i.querySelectorAll(X5));a=s.find(J5)||s.find(vw)||null,!a&&vw(i)&&(a=i)}a&&a.focus({preventScroll:!0})},r=I.useCallback(i=>{t&&i!==null&&e.current!==i&&(i?(setTimeout(()=>{i.getRootNode()&&n(i)}),e.current=i):e.current=null)},[t]);return I.useEffect(()=>{if(!t)return;e.current&&setTimeout(()=>n(e.current));const i=a=>{a.key==="Tab"&&e.current&&nee(e.current,a)};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[t]),r}const iee=t=>(t+1)%1e6;function aee(){const[,t]=I.useReducer(iee,0);return t}const see=On.useId||(()=>{});function oee(){const t=see();return t?`mantine-${t.replace(/:/g,"")}`:""}function ja(t){const e=oee(),[n,r]=I.useState(e);return lm(()=>{r(x_())},[]),typeof t=="string"?t:typeof window>"u"?e:n}function PS(t,e,n){I.useEffect(()=>(window.addEventListener(t,e,n),()=>window.removeEventListener(t,e,n)),[t,e])}function lee(t,e="use-local-storage"){try{return JSON.stringify(t)}catch{throw new Error(`@mantine/hooks ${e}: Failed to serialize the value`)}}function cee(t){try{return t&&JSON.parse(t)}catch{return t}}function uee(t){return{getItem:i=>{try{return window[t].getItem(i)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(i,a)=>{try{window[t].setItem(i,a)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:i=>{try{window[t].removeItem(i)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function dee(t,e){const n="mantine-local-storage",{getItem:r,setItem:i,removeItem:a}=uee(t);return function({key:o,defaultValue:c,getInitialValueInEffect:d=!0,sync:f=!0,deserialize:p=cee,serialize:m=g=>lee(g,e)}){const g=I.useCallback(T=>{let x;try{x=typeof window>"u"||!(t in window)||window[t]===null||!!T}catch{x=!0}if(x)return c;const O=r(o);return O!==null?p(O):c},[o,c]),[b,S]=I.useState(g(d)),y=I.useCallback(T=>{T instanceof Function?S(x=>{const O=T(x);return i(o,m(O)),window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:T(x)}})),O}):(i(o,m(T)),window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:T}})),S(T))},[o]),E=I.useCallback(()=>{a(o),window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:c}}))},[]);return PS("storage",T=>{f&&T.storageArea===window[t]&&T.key===o&&S(p(T.newValue??void 0))}),PS(n,T=>{f&&T.detail.key===o&&S(T.detail.value)}),I.useEffect(()=>{c!==void 0&&b===void 0&&y(c)},[c,b,y]),I.useEffect(()=>{const T=g();T!==void 0&&y(T)},[o]),[b===void 0?c:b,y,E]}}function WE(t){return dee("localStorage","use-local-storage")(t)}function BS(t,e){if(typeof t=="function")return t(e);typeof t=="object"&&t!==null&&"current"in t&&(t.current=e)}function ez(...t){const e=new Map;return n=>{if(t.forEach(r=>{const i=BS(r,n);i&&e.set(r,i)}),e.size>0)return()=>{t.forEach(r=>{const i=e.get(r);i?i():BS(r,null)}),e.clear()}}}function $r(...t){return I.useCallback(ez(...t),t)}function na({value:t,defaultValue:e,finalValue:n,onChange:r=()=>{}}){const[i,a]=I.useState(e!==void 0?e:n),s=(o,...c)=>{a(o),r==null||r(o,...c)};return t!==void 0?[t,r,!0]:[i,s,!1]}function Iu(t,e){const n=e-t+1;return Array.from({length:n},(r,i)=>i+t)}const iv="dots";function fee({total:t,siblings:e=1,boundaries:n=1,page:r,initialPage:i=1,onChange:a}){const s=Math.max(Math.trunc(t),0),[o,c]=na({value:r,onChange:a,defaultValue:i,finalValue:i}),d=S=>{S<=0?c(1):S>s?c(s):c(S)},f=()=>d(o+1),p=()=>d(o-1),m=()=>d(1),g=()=>d(s);return{range:I.useMemo(()=>{if(e*2+3+n*2>=s)return Iu(1,s);const y=Math.max(o-e,n),E=Math.min(o+e,s-n),T=y>n+2,x=E<s-(n+1);if(!T&&x){const O=e*2+n+2;return[...Iu(1,O),iv,...Iu(s-(n-1),s)]}if(T&&!x){const O=n+1+2*e;return[...Iu(1,n),iv,...Iu(s-O,s)]}return[...Iu(1,n),iv,...Iu(y,E),iv,...Iu(s-n+1,s)]},[s,e,o]),active:o,setPage:d,next:f,previous:p,first:m,last:g}}function QE(t,e){return W5("(prefers-reduced-motion: reduce)",t,e)}const hee={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function pee(t){const e=I.useRef(0),n=I.useRef(null),[r,i]=I.useState(hee),a=I.useMemo(()=>typeof window<"u"?new ResizeObserver(s=>{const o=s[0];o&&(cancelAnimationFrame(e.current),e.current=requestAnimationFrame(()=>{n.current&&i(o.contentRect)}))}):null,[]);return I.useEffect(()=>(n.current&&(a==null||a.observe(n.current,t)),()=>{a==null||a.disconnect(),e.current&&cancelAnimationFrame(e.current)}),[n.current]),[n,r]}function mee(t){const[e,{width:n,height:r}]=pee(t);return{ref:e,width:n,height:r}}function gee(t,e){if(!t||!e)return!1;if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n+=1)if(!HJ(t[n],e[n]))return!1;return!0}function _ee(t){const e=I.useRef([]),n=I.useRef(0);return gee(e.current,t)||(e.current=t,n.current+=1),[n.current]}function bee(t,e){I.useEffect(t,_ee(e))}function UD(t=!1,e){const{onOpen:n,onClose:r}={},[i,a]=I.useState(t),s=I.useCallback(()=>{a(d=>d||(n==null||n(),!0))},[n]),o=I.useCallback(()=>{a(d=>d&&(r==null||r(),!1))},[r]),c=I.useCallback(()=>{i?o():s()},[o,s,i]);return[i,{open:s,close:o,toggle:c}]}function vee(t,e,n={autoInvoke:!1}){const r=I.useRef(null),i=I.useCallback((...s)=>{r.current||(r.current=window.setTimeout(()=>{t(s),r.current=null},e))},[e]),a=I.useCallback(()=>{r.current&&(window.clearTimeout(r.current),r.current=null)},[]);return I.useEffect(()=>(n.autoInvoke&&i(),a),[a,i]),{start:i,clear:a}}function See(t){const e=I.useRef(void 0);return I.useEffect(()=>{e.current=t},[t]),e.current}function Eee(t,e,n){const r=I.useRef(null),i=I.useRef(null);return I.useEffect(()=>{const a=typeof n=="function"?n():n;return(a||i.current)&&(r.current=new MutationObserver(t),r.current.observe(a||i.current,e)),()=>{var s;(s=r.current)==null||s.disconnect()}},[t,e]),i}function yee(){const[t,e]=I.useState(!1);return I.useEffect(()=>e(!0),[]),t}var Tee={};function xee(){return typeof process<"u"&&Tee?"production":"development"}function KE(t){var n;const e=On.version;return typeof On.version!="string"||e.startsWith("18.")?t==null?void 0:t.ref:(n=t==null?void 0:t.props)==null?void 0:n.ref}function tz(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=tz(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Tr(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=tz(t))&&(r&&(r+=" "),r+=e);return r}const Cee={};function Oee(t){const e={};return t.forEach(n=>{Object.entries(n).forEach(([r,i])=>{e[r]?e[r]=Tr(e[r],i):e[r]=i})}),e}function XE({theme:t,classNames:e,props:n,stylesCtx:r}){const a=(Array.isArray(e)?e:[e]).map(s=>typeof s=="function"?s(t,n,r):s||Cee);return Oee(a)}function FS({theme:t,styles:e,props:n,stylesCtx:r}){return(Array.isArray(e)?e:[e]).reduce((a,s)=>typeof s=="function"?{...a,...s(t,n,r)}:{...a,...s},{})}const jD=I.createContext(null);function Wc(){const t=I.useContext(jD);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function Ree(){return Wc().cssVariablesResolver}function Nee(){return Wc().classNamesPrefix}function ZE(){return Wc().getStyleNonce}function Aee(){return Wc().withStaticClasses}function wee(){return Wc().headless}function Iee(){var t;return(t=Wc().stylesTransform)==null?void 0:t.sx}function Dee(){var t;return(t=Wc().stylesTransform)==null?void 0:t.styles}function nz(){return Wc().env||"default"}function Mee(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}function Lee(t){let e=t.replace("#","");if(e.length===3){const s=e.split("");e=[s[0],s[0],s[1],s[1],s[2],s[2]].join("")}if(e.length===8){const s=parseInt(e.slice(6,8),16)/255;return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16),a:s}}const n=parseInt(e,16),r=n>>16&255,i=n>>8&255,a=n&255;return{r,g:i,b:a,a:1}}function kee(t){const[e,n,r,i]=t.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:e,g:n,b:r,a:i||1}}function Pee(t){const e=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=t.match(e);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),i=parseInt(n[2],10)/100,a=parseInt(n[3],10)/100,s=n[5]?parseFloat(n[5]):void 0,o=(1-Math.abs(2*a-1))*i,c=r/60,d=o*(1-Math.abs(c%2-1)),f=a-o/2;let p,m,g;return c>=0&&c<1?(p=o,m=d,g=0):c>=1&&c<2?(p=d,m=o,g=0):c>=2&&c<3?(p=0,m=o,g=d):c>=3&&c<4?(p=0,m=d,g=o):c>=4&&c<5?(p=d,m=0,g=o):(p=o,m=0,g=d),{r:Math.round((p+f)*255),g:Math.round((m+f)*255),b:Math.round((g+f)*255),a:s||1}}function JE(t){return Mee(t)?Lee(t):t.startsWith("rgb")?kee(t):t.startsWith("hsl")?Pee(t):{r:0,g:0,b:0,a:1}}function av(t,e){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, black ${e*100}%)`;const{r:n,g:r,b:i,a}=JE(t),s=1-e,o=c=>Math.round(c*s);return`rgba(${o(n)}, ${o(r)}, ${o(i)}, ${a})`}function C_(t,e){return typeof t.primaryShade=="number"?t.primaryShade:e==="dark"?t.primaryShade.dark:t.primaryShade.light}function BC(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function Bee(t){const e=t.match(/oklch\((.*?)%\s/);return e?parseFloat(e[1]):null}function Fee(t){if(t.startsWith("oklch("))return(Bee(t)||0)/100;const{r:e,g:n,b:r}=JE(t),i=e/255,a=n/255,s=r/255,o=BC(i),c=BC(a),d=BC(s);return .2126*o+.7152*c+.0722*d}function Ng(t,e=.179){return t.startsWith("var(")?!1:Fee(t)>e}function Td({color:t,theme:e,colorScheme:n}){if(typeof t!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof t}`);if(t==="bright")return{color:t,value:n==="dark"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:Ng(n==="dark"?e.white:e.black,e.luminanceThreshold),variable:"--mantine-color-bright"};if(t==="dimmed")return{color:t,value:n==="dark"?e.colors.dark[2]:e.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Ng(n==="dark"?e.colors.dark[2]:e.colors.gray[6],e.luminanceThreshold),variable:"--mantine-color-dimmed"};if(t==="white"||t==="black")return{color:t,value:t==="white"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:Ng(t==="white"?e.white:e.black,e.luminanceThreshold),variable:`--mantine-color-${t}`};const[r,i]=t.split("."),a=i?Number(i):void 0,s=r in e.colors;if(s){const o=a!==void 0?e.colors[r][a]:e.colors[r][C_(e,n||"light")];return{color:r,value:o,shade:a,isThemeColor:s,isLight:Ng(o,e.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:t,value:t,isThemeColor:s,isLight:Ng(t,e.luminanceThreshold),shade:a,variable:void 0}}function tr(t,e){const n=Td({color:t||e.primaryColor,theme:e});return n.variable?`var(${n.variable})`:t}function Sw(t,e){const n={from:(t==null?void 0:t.from)||e.defaultGradient.from,to:(t==null?void 0:t.to)||e.defaultGradient.to,deg:(t==null?void 0:t.deg)??e.defaultGradient.deg??0},r=tr(n.from,e),i=tr(n.to,e);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function Rl(t,e){if(typeof t!="string"||e>1||e<0)return"rgba(0, 0, 0, 1)";if(t.startsWith("var(")){const a=(1-e)*100;return`color-mix(in srgb, ${t}, transparent ${a}%)`}if(t.startsWith("oklch"))return t.includes("/")?t.replace(/\/\s*[\d.]+\s*\)/,`/ ${e})`):t.replace(")",` / ${e})`);const{r:n,g:r,b:i}=JE(t);return`rgba(${n}, ${r}, ${i}, ${e})`}const Bh=Rl,Uee=({color:t,theme:e,variant:n,gradient:r,autoContrast:i})=>{const a=Td({color:t,theme:e}),s=typeof i=="boolean"?i:e.autoContrast;if(n==="filled"){const o=s&&a.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${t}-filled)`,hover:`var(--mantine-color-${t}-filled-hover)`,color:o,border:`${he(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:o,border:`${he(1)} solid transparent`}:{background:t,hover:av(t,.1),color:o,border:`${he(1)} solid transparent`}}if(n==="light"){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${t}-light)`,hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${he(1)} solid transparent`};const o=e.colors[a.color][a.shade];return{background:Rl(o,.1),hover:Rl(o,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${he(1)} solid transparent`}}return{background:Rl(t,.1),hover:Rl(t,.12),color:t,border:`${he(1)} solid transparent`}}if(n==="outline")return a.isThemeColor?a.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${t}-outline-hover)`,color:`var(--mantine-color-${t}-outline)`,border:`${he(1)} solid var(--mantine-color-${t}-outline)`}:{background:"transparent",hover:Rl(e.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${he(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:"transparent",hover:Rl(t,.05),color:t,border:`${he(1)} solid ${t}`};if(n==="subtle"){if(a.isThemeColor){if(a.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${he(1)} solid transparent`};const o=e.colors[a.color][a.shade];return{background:"transparent",hover:Rl(o,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${he(1)} solid transparent`}}return{background:"transparent",hover:Rl(t,.12),color:t,border:`${he(1)} solid transparent`}}return n==="transparent"?a.isThemeColor?a.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${t}-light-color)`,border:`${he(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${he(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:t,border:`${he(1)} solid transparent`}:n==="white"?a.isThemeColor?a.shade===void 0?{background:"var(--mantine-color-white)",hover:av(e.white,.01),color:`var(--mantine-color-${t}-filled)`,border:`${he(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:av(e.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${he(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:av(e.white,.01),color:t,border:`${he(1)} solid transparent`}:n==="gradient"?{background:Sw(r,e),hover:Sw(r,e),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${he(1)} solid var(--mantine-color-default-border)`}:{}},jee={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},AB="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",GD={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:jee,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:Uee,autoContrast:!1,luminanceThreshold:.3,fontFamily:AB,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:AB,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:he(34),lineHeight:"1.3"},h2:{fontSize:he(26),lineHeight:"1.35"},h3:{fontSize:he(22),lineHeight:"1.4"},h4:{fontSize:he(18),lineHeight:"1.45"},h5:{fontSize:he(16),lineHeight:"1.5"},h6:{fontSize:he(14),lineHeight:"1.5"}}},fontSizes:{xs:he(12),sm:he(14),md:he(16),lg:he(18),xl:he(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:he(2),sm:he(4),md:he(8),lg:he(16),xl:he(32)},spacing:{xs:he(10),sm:he(12),md:he(16),lg:he(20),xl:he(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${he(1)} ${he(3)} rgba(0, 0, 0, 0.05), 0 ${he(1)} ${he(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${he(1)} ${he(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${he(10)} ${he(15)} ${he(-5)}, rgba(0, 0, 0, 0.04) 0 ${he(7)} ${he(7)} ${he(-5)}`,md:`0 ${he(1)} ${he(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${he(20)} ${he(25)} ${he(-5)}, rgba(0, 0, 0, 0.04) 0 ${he(10)} ${he(10)} ${he(-5)}`,lg:`0 ${he(1)} ${he(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${he(28)} ${he(23)} ${he(-7)}, rgba(0, 0, 0, 0.04) 0 ${he(12)} ${he(12)} ${he(-7)}`,xl:`0 ${he(1)} ${he(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${he(36)} ${he(28)} ${he(-7)}, rgba(0, 0, 0, 0.04) 0 ${he(17)} ${he(17)} ${he(-7)}`},other:{},components:{}};function wB(t){return t==="auto"||t==="dark"||t==="light"}function Gee({key:t="mantine-color-scheme-value"}={}){let e;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(t);return wB(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(t,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{e=r=>{r.storageArea===window.localStorage&&r.key===t&&wB(r.newValue)&&n(r.newValue)},window.addEventListener("storage",e)},unsubscribe:()=>{window.removeEventListener("storage",e)},clear:()=>{window.localStorage.removeItem(t)}}}const qee="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",IB="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function FC(t){return t<0||t>9?!1:parseInt(t.toString(),10)===t}function DB(t){if(!(t.primaryColor in t.colors))throw new Error(qee);if(typeof t.primaryShade=="object"&&(!FC(t.primaryShade.dark)||!FC(t.primaryShade.light)))throw new Error(IB);if(typeof t.primaryShade=="number"&&!FC(t.primaryShade))throw new Error(IB)}function $ee(t,e){var r;if(!e)return DB(t),t;const n=LD(t,e);return e.fontFamily&&!((r=e.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=e.fontFamily),DB(n),n}const qD=I.createContext(null),zee=()=>I.useContext(qD)||GD;function Fi(){const t=I.useContext(qD);if(!t)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return t}function rz({theme:t,children:e,inherit:n=!0}){const r=zee(),i=I.useMemo(()=>$ee(n?r:GD,t),[t,r,n]);return l.jsx(qD.Provider,{value:i,children:e})}rz.displayName="@mantine/core/MantineThemeProvider";function Yee(){const t=Fi(),e=ZE(),n=ki(t.breakpoints).reduce((r,i)=>{const a=t.breakpoints[i].includes("px"),s=bw(t.breakpoints[i]),o=a?`${s-.1}px`:ns(s-.1),c=a?`${s}px`:ns(s);return`${r}@media (max-width: ${o}) {.mantine-visible-from-${i} {display: none !important;}}@media (min-width: ${c}) {.mantine-hidden-from-${i} {display: none !important;}}`},"");return l.jsx("style",{"data-mantine-styles":"classes",nonce:e==null?void 0:e(),dangerouslySetInnerHTML:{__html:n}})}function UC(t){return Object.entries(t).map(([e,n])=>`${e}: ${n};`).join("")}function Ag(t,e){return(Array.isArray(t)?t:[t]).reduce((r,i)=>`${i}{${r}}`,e)}function Hee(t,e){const n=UC(t.variables),r=n?Ag(e,n):"",i=UC(t.dark),a=UC(t.light),s=i?Ag(e===":host"?`${e}([data-mantine-color-scheme="dark"])`:`${e}[data-mantine-color-scheme="dark"]`,i):"",o=a?Ag(e===":host"?`${e}([data-mantine-color-scheme="light"])`:`${e}[data-mantine-color-scheme="light"]`,a):"";return`${r}${s}${o}`}function xd({color:t,theme:e,autoContrast:n}){return(typeof n=="boolean"?n:e.autoContrast)&&Td({color:t||e.primaryColor,theme:e}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function MB(t,e){return xd({color:t.colors[t.primaryColor][C_(t,e)],theme:t,autoContrast:null})}function sv({theme:t,color:e,colorScheme:n,name:r=e,withColorValues:i=!0}){if(!t.colors[e])return{};if(n==="light"){const o=C_(t,"light"),c={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${o})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${o===9?8:o+1})`,[`--mantine-color-${r}-light`]:Bh(t.colors[e][o],.1),[`--mantine-color-${r}-light-hover`]:Bh(t.colors[e][o],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${o})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${o})`,[`--mantine-color-${r}-outline-hover`]:Bh(t.colors[e][o],.05)};return i?{[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9],...c}:c}const a=C_(t,"dark"),s={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:Bh(t.colors[e][Math.max(0,a-2)],.15),[`--mantine-color-${r}-light-hover`]:Bh(t.colors[e][Math.max(0,a-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(a-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Bh(t.colors[e][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9],...s}:s}function Vee(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}function Fh(t,e,n){ki(e).forEach(r=>Object.assign(t,{[`--mantine-${n}-${r}`]:e[r]}))}const iz=t=>{const e=C_(t,"light"),n=t.defaultRadius in t.radius?t.radius[t.defaultRadius]:he(t.defaultRadius),r={variables:{"--mantine-scale":t.scale.toString(),"--mantine-cursor-type":t.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":t.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":t.fontSmoothing?"grayscale":"unset","--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-line-height":t.lineHeights.md,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":t.headings.fontWeight,"--mantine-heading-text-wrap":t.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${t.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${t.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${t.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${t.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${t.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":MB(t,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":t.black,"--mantine-color-body":t.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-${e})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":MB(t,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};Fh(r.variables,t.breakpoints,"breakpoint"),Fh(r.variables,t.spacing,"spacing"),Fh(r.variables,t.fontSizes,"font-size"),Fh(r.variables,t.lineHeights,"line-height"),Fh(r.variables,t.shadows,"shadow"),Fh(r.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((a,s)=>{r.variables[`--mantine-primary-color-${s}`]=`var(--mantine-color-${t.primaryColor}-${s})`}),ki(t.colors).forEach(a=>{const s=t.colors[a];if(Vee(s)){Object.assign(r.light,sv({theme:t,name:s.name,color:s.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,sv({theme:t,name:s.name,color:s.dark,colorScheme:"dark",withColorValues:!0}));return}s.forEach((o,c)=>{r.variables[`--mantine-color-${a}-${c}`]=o}),Object.assign(r.light,sv({theme:t,color:a,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,sv({theme:t,color:a,colorScheme:"dark",withColorValues:!1}))});const i=t.headings.sizes;return ki(i).forEach(a=>{r.variables[`--mantine-${a}-font-size`]=i[a].fontSize,r.variables[`--mantine-${a}-line-height`]=i[a].lineHeight,r.variables[`--mantine-${a}-font-weight`]=i[a].fontWeight||t.headings.fontWeight}),r};function Wee({theme:t,generator:e}){const n=iz(t),r=e==null?void 0:e(t);return r?LD(n,r):n}const jC=iz(GD);function Qee(t){const e={variables:{},light:{},dark:{}};return ki(t.variables).forEach(n=>{jC.variables[n]!==t.variables[n]&&(e.variables[n]=t.variables[n])}),ki(t.light).forEach(n=>{jC.light[n]!==t.light[n]&&(e.light[n]=t.light[n])}),ki(t.dark).forEach(n=>{jC.dark[n]!==t.dark[n]&&(e.dark[n]=t.dark[n])}),e}function Kee(t){return`
  ${t}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
  ${t}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
`}function az({cssVariablesSelector:t,deduplicateCssVariables:e}){const n=Fi(),r=ZE(),i=Ree(),a=Wee({theme:n,generator:i}),s=t===":root"&&e,o=s?Qee(a):a,c=Hee(o,t);return c?l.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${c}${s?"":Kee(t)}`}}):null}az.displayName="@mantine/CssVariables";function Xee(){const t=console.error;console.error=(...e)=>{e.length>1&&typeof e[0]=="string"&&e[0].toLowerCase().includes("extra attributes from the server")&&typeof e[1]=="string"&&e[1].toLowerCase().includes("data-mantine-color-scheme")||t(...e)}}function Uh(t,e){var i,a;const n=typeof window<"u"&&"matchMedia"in window&&((i=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:i.matches),r=t!=="auto"?t:n?"dark":"light";(a=e())==null||a.setAttribute("data-mantine-color-scheme",r)}function Zee({manager:t,defaultColorScheme:e,getRootElement:n,forceColorScheme:r}){const i=I.useRef(null),[a,s]=I.useState(()=>t.get(e)),o=r||a,c=I.useCallback(f=>{r||(Uh(f,n),s(f),t.set(f))},[t.set,o,r]),d=I.useCallback(()=>{s(e),Uh(e,n),t.clear()},[t.clear,e]);return I.useEffect(()=>(t.subscribe(c),t.unsubscribe),[t.subscribe,t.unsubscribe]),lm(()=>{Uh(t.get(e),n)},[]),I.useEffect(()=>{var p;if(r)return Uh(r,n),()=>{};r===void 0&&Uh(a,n),typeof window<"u"&&"matchMedia"in window&&(i.current=window.matchMedia("(prefers-color-scheme: dark)"));const f=m=>{a==="auto"&&Uh(m.matches?"dark":"light",n)};return(p=i.current)==null||p.addEventListener("change",f),()=>{var m;return(m=i.current)==null?void 0:m.removeEventListener("change",f)}},[a,r]),{colorScheme:o,setColorScheme:c,clearColorScheme:d}}function Jee({respectReducedMotion:t,getRootElement:e}){lm(()=>{var n;t&&((n=e())==null||n.setAttribute("data-respect-reduced-motion","true"))},[t])}Xee();function sz({theme:t,children:e,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:s=!0,cssVariablesSelector:o=":root",classNamesPrefix:c="mantine",colorSchemeManager:d=Gee(),defaultColorScheme:f="light",getRootElement:p=()=>document.documentElement,cssVariablesResolver:m,forceColorScheme:g,stylesTransform:b,env:S}){const{colorScheme:y,setColorScheme:E,clearColorScheme:T}=Zee({defaultColorScheme:f,forceColorScheme:g,manager:d,getRootElement:p});return Jee({respectReducedMotion:(t==null?void 0:t.respectReducedMotion)||!1,getRootElement:p}),l.jsx(jD.Provider,{value:{colorScheme:y,setColorScheme:E,clearColorScheme:T,getRootElement:p,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:m,cssVariablesSelector:o,withStaticClasses:r,stylesTransform:b,env:S},children:l.jsxs(rz,{theme:t,children:[s&&l.jsx(az,{cssVariablesSelector:o,deduplicateCssVariables:a}),i&&l.jsx(Yee,{}),e]})})}sz.displayName="@mantine/core/MantineProvider";function oo({classNames:t,styles:e,props:n,stylesCtx:r}){const i=Fi();return{resolvedClassNames:XE({theme:i,classNames:t,props:n,stylesCtx:r||void 0}),resolvedStyles:FS({theme:i,styles:e,props:n,stylesCtx:r||void 0})}}const ete={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function tte({theme:t,options:e,unstyled:n}){return Tr((e==null?void 0:e.focusable)&&!n&&(t.focusClassName||ete[t.focusRing]),(e==null?void 0:e.active)&&!n&&t.activeClassName)}function nte({selector:t,stylesCtx:e,options:n,props:r,theme:i}){return XE({theme:i,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:e})[t]}function LB({selector:t,stylesCtx:e,theme:n,classNames:r,props:i}){return XE({theme:n,classNames:r,props:i,stylesCtx:e})[t]}function rte({rootSelector:t,selector:e,className:n}){return t===e?n:void 0}function ite({selector:t,classes:e,unstyled:n}){return n?void 0:e[t]}function ate({themeName:t,classNamesPrefix:e,selector:n,withStaticClass:r}){return r===!1?[]:t.map(i=>`${e}-${i}-${n}`)}function ste({themeName:t,theme:e,selector:n,props:r,stylesCtx:i}){return t.map(a=>{var s,o;return(o=XE({theme:e,classNames:(s=e.components[a])==null?void 0:s.classNames,props:r,stylesCtx:i}))==null?void 0:o[n]})}function ote({options:t,classes:e,selector:n,unstyled:r}){return t!=null&&t.variant&&!r?e[`${n}--${t.variant}`]:void 0}function lte({theme:t,options:e,themeName:n,selector:r,classNamesPrefix:i,classNames:a,classes:s,unstyled:o,className:c,rootSelector:d,props:f,stylesCtx:p,withStaticClasses:m,headless:g,transformedStyles:b}){return Tr(tte({theme:t,options:e,unstyled:o||g}),ste({theme:t,themeName:n,selector:r,props:f,stylesCtx:p}),ote({options:e,classes:s,selector:r,unstyled:o}),LB({selector:r,stylesCtx:p,theme:t,classNames:a,props:f}),LB({selector:r,stylesCtx:p,theme:t,classNames:b,props:f}),nte({selector:r,stylesCtx:p,options:e,props:f,theme:t}),rte({rootSelector:d,selector:r,className:c}),ite({selector:r,classes:s,unstyled:o||g}),m&&!g&&ate({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:e==null?void 0:e.withStaticClass}),e==null?void 0:e.className)}function cte({theme:t,themeName:e,props:n,stylesCtx:r,selector:i}){return e.map(a=>{var s;return FS({theme:t,styles:(s=t.components[a])==null?void 0:s.styles,props:n,stylesCtx:r})[i]}).reduce((a,s)=>({...a,...s}),{})}function Ew({style:t,theme:e}){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...Ew({style:r,theme:e})}),{}):typeof t=="function"?t(e):t??{}}function ute(t){return t.reduce((e,n)=>(n&&Object.keys(n).forEach(r=>{e[r]={...e[r],...kD(n[r])}}),e),{})}function dte({vars:t,varsResolver:e,theme:n,props:r,stylesCtx:i,selector:a,themeName:s,headless:o}){var c;return(c=ute([o?{}:e==null?void 0:e(n,r,i),...s.map(d=>{var f,p,m;return(m=(p=(f=n.components)==null?void 0:f[d])==null?void 0:p.vars)==null?void 0:m.call(p,n,r,i)}),t==null?void 0:t(n,r,i)]))==null?void 0:c[a]}function fte({theme:t,themeName:e,selector:n,options:r,props:i,stylesCtx:a,rootSelector:s,styles:o,style:c,vars:d,varsResolver:f,headless:p,withStylesTransform:m}){return{...!m&&cte({theme:t,themeName:e,props:i,stylesCtx:a,selector:n}),...!m&&FS({theme:t,styles:o,props:i,stylesCtx:a})[n],...!m&&FS({theme:t,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||i,stylesCtx:a})[n],...dte({theme:t,props:i,stylesCtx:a,vars:d,varsResolver:f,selector:n,themeName:e,headless:p}),...s===n?Ew({style:c,theme:t}):null,...Ew({style:r==null?void 0:r.style,theme:t})}}function hte({props:t,stylesCtx:e,themeName:n}){var s;const r=Fi(),i=(s=Dee())==null?void 0:s();return{getTransformedStyles:o=>i?[...o.map(d=>i(d,{props:t,theme:r,ctx:e})),...n.map(d=>{var f;return i((f=r.components[d])==null?void 0:f.styles,{props:t,theme:r,ctx:e})})].filter(Boolean):[],withStylesTransform:!!i}}function ot({name:t,classes:e,props:n,stylesCtx:r,className:i,style:a,rootSelector:s="root",unstyled:o,classNames:c,styles:d,vars:f,varsResolver:p}){const m=Fi(),g=Nee(),b=Aee(),S=wee(),y=(Array.isArray(t)?t:[t]).filter(x=>x),{withStylesTransform:E,getTransformedStyles:T}=hte({props:n,stylesCtx:r,themeName:y});return(x,O)=>({className:lte({theme:m,options:O,themeName:y,selector:x,classNamesPrefix:g,classNames:c,classes:e,unstyled:o,className:i,rootSelector:s,props:n,stylesCtx:r,withStaticClasses:b,headless:S,transformedStyles:T([O==null?void 0:O.styles,d])}),style:fte({theme:m,themeName:y,selector:x,options:O,props:n,stylesCtx:r,rootSelector:s,styles:d,style:a,vars:f,varsResolver:p,headless:S,withStylesTransform:E})})}function oz(t,e){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, white ${e*100}%)`;const{r:n,g:r,b:i,a}=JE(t),s=o=>Math.round(o+(255-o)*e);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function cm(t,e){return typeof t=="boolean"?t:e.autoContrast}function kB(t){const e=document.createElement("style");return e.setAttribute("data-mantine-styles","inline"),e.innerHTML="*, *::before, *::after {transition: none !important;}",e.setAttribute("data-mantine-disable-transition","true"),t&&e.setAttribute("nonce",t),document.head.appendChild(e),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(r=>r.remove())}function lz({keepTransitions:t}={}){const e=I.useRef(kS),n=I.useRef(-1),r=I.useContext(jD),i=ZE(),a=I.useRef(i==null?void 0:i());if(!r)throw new Error("[@mantine/core] MantineProvider was not found in tree");const s=p=>{r.setColorScheme(p),e.current=t?()=>{}:kB(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var m;(m=e.current)==null||m.call(e)},10)},o=()=>{r.clearColorScheme(),e.current=t?()=>{}:kB(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var p;(p=e.current)==null||p.call(e)},10)},c=Q5("light",{getInitialValueInEffect:!1}),d=r.colorScheme==="auto"?c:r.colorScheme,f=I.useCallback(()=>s(d==="light"?"dark":"light"),[s,d]);return I.useEffect(()=>()=>{var p;(p=e.current)==null||p.call(e),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:s,clearColorScheme:o,toggleColorScheme:f}}function $D(t,e={getInitialValueInEffect:!0}){const n=Q5(t,e),{colorScheme:r}=lz();return r==="auto"?n:r}function Te(t,e,n){var s;const r=Fi(),i=(s=r.components[t])==null?void 0:s.defaultProps,a=typeof i=="function"?i(r):i;return{...e,...a,...kD(n)}}function GC(t){return ki(t).reduce((e,n)=>t[n]!==void 0?`${e}${BJ(n)}:${t[n]};`:e,"").trim()}function pte({selector:t,styles:e,media:n,container:r}){const i=e?GC(e):"",a=Array.isArray(n)?n.map(o=>`@media${o.query}{${t}{${GC(o.styles)}}}`):[],s=Array.isArray(r)?r.map(o=>`@container ${o.query}{${t}{${GC(o.styles)}}}`):[];return`${i?`${t}{${i}}`:""}${a.join("")}${s.join("")}`.trim()}function cz(t){const e=ZE();return l.jsx("style",{"data-mantine-styles":"inline",nonce:e==null?void 0:e(),dangerouslySetInnerHTML:{__html:pte(t)}})}function p0(t){const{m:e,mx:n,my:r,mt:i,mb:a,ml:s,mr:o,me:c,ms:d,p:f,px:p,py:m,pt:g,pb:b,pl:S,pr:y,pe:E,ps:T,bd:x,bg:O,c:C,opacity:N,ff:w,fz:D,fw:L,lts:U,ta:M,lh:B,fs:Y,tt:H,td:F,w:k,miw:P,maw:z,h:V,mih:G,mah:Q,bgsz:Z,bgp:X,bgr:ue,bga:fe,pos:be,top:ye,left:Ne,bottom:ke,right:Oe,inset:oe,display:Se,flex:le,hiddenFrom:Ge,visibleFrom:lt,lightHidden:xt,darkHidden:Ae,sx:Be,...Xe}=t;return{styleProps:kD({m:e,mx:n,my:r,mt:i,mb:a,ml:s,mr:o,me:c,ms:d,p:f,px:p,py:m,pt:g,pb:b,pl:S,pr:y,pe:E,ps:T,bd:x,bg:O,c:C,opacity:N,ff:w,fz:D,fw:L,lts:U,ta:M,lh:B,fs:Y,tt:H,td:F,w:k,miw:P,maw:z,h:V,mih:G,mah:Q,bgsz:Z,bgp:X,bgr:ue,bga:fe,pos:be,top:ye,left:Ne,bottom:ke,right:Oe,inset:oe,display:Se,flex:le,hiddenFrom:Ge,visibleFrom:lt,lightHidden:xt,darkHidden:Ae,sx:Be}),rest:Xe}}const mte={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function zD(t,e){const n=Td({color:t,theme:e});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function gte(t,e){const n=Td({color:t,theme:e});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:zD(t,e)}function _te(t,e){if(typeof t=="number")return he(t);if(typeof t=="string"){const[n,r,...i]=t.split(" ").filter(s=>s.trim()!=="");let a=`${he(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${zD(i.join(" "),e)}`),a.trim()}return t}const PB={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function bte(t){return typeof t=="string"&&t in PB?PB[t]:t}const vte=["h1","h2","h3","h4","h5","h6"];function Ste(t,e){return typeof t=="string"&&t in e.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&vte.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?he(t):t}function Ete(t){return t}const yte=["h1","h2","h3","h4","h5","h6"];function Tte(t,e){return typeof t=="string"&&t in e.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&yte.includes(t)?`var(--mantine-${t}-line-height)`:t}function xte(t){return typeof t=="number"?he(t):t}function Cte(t,e){if(typeof t=="number")return he(t);if(typeof t=="string"){const n=t.replace("-","");if(!(n in e.spacing))return he(t);const r=`--mantine-spacing-${n}`;return t.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return t}const qC={color:zD,textColor:gte,fontSize:Ste,spacing:Cte,identity:Ete,size:xte,lineHeight:Tte,fontFamily:bte,border:_te};function BB(t){return t.replace("(min-width: ","").replace("em)","")}function Ote({media:t,...e}){const r=Object.keys(t).sort((i,a)=>Number(BB(i))-Number(BB(a))).map(i=>({query:i,styles:t[i]}));return{...e,media:r}}function Rte(t){if(typeof t!="object"||t===null)return!1;const e=Object.keys(t);return!(e.length===1&&e[0]==="base")}function Nte(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function Ate(t){return typeof t=="object"&&t!==null?ki(t).filter(e=>e!=="base"):[]}function wte(t,e){return typeof t=="object"&&t!==null&&e in t?t[e]:t}function Ite({styleProps:t,data:e,theme:n}){return Ote(ki(t).reduce((r,i)=>{if(i==="hiddenFrom"||i==="visibleFrom"||i==="sx")return r;const a=e[i],s=Array.isArray(a.property)?a.property:[a.property],o=Nte(t[i]);if(!Rte(t[i]))return s.forEach(d=>{r.inlineStyles[d]=qC[a.type](o,n)}),r;r.hasResponsiveStyles=!0;const c=Ate(t[i]);return s.forEach(d=>{o&&(r.styles[d]=qC[a.type](o,n)),c.forEach(f=>{const p=`(min-width: ${n.breakpoints[f]})`;r.media[p]={...r.media[p],[d]:qC[a.type](wte(t[i],f),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Dte(){return`__m__-${I.useId().replace(/:/g,"")}`}function YD(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...YD(r,e)}),{}):typeof t=="function"?t(e):t??{}}function uz(t){return t.startsWith("data-")?t:`data-${t}`}function Mte(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r===void 0||r===""||r===!1||r===null||(e[uz(n)]=t[n]),e},{})}function dz(t){return t?typeof t=="string"?{[uz(t)]:!0}:Array.isArray(t)?[...t].reduce((e,n)=>({...e,...dz(n)}),{}):Mte(t):null}function yw(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...yw(r,e)}),{}):typeof t=="function"?t(e):t??{}}function Lte({theme:t,style:e,vars:n,styleProps:r}){const i=yw(e,t),a=yw(n,t);return{...i,...a,...r}}const fz=I.forwardRef(({component:t,style:e,__vars:n,className:r,variant:i,mod:a,size:s,hiddenFrom:o,visibleFrom:c,lightHidden:d,darkHidden:f,renderRoot:p,__size:m,...g},b)=>{var D;const S=Fi(),y=t||"div",{styleProps:E,rest:T}=p0(g),x=Iee(),O=(D=x==null?void 0:x())==null?void 0:D(E.sx),C=Dte(),N=Ite({styleProps:E,theme:S,data:mte}),w={ref:b,style:Lte({theme:S,style:e,vars:n,styleProps:N.inlineStyles}),className:Tr(r,O,{[C]:N.hasResponsiveStyles,"mantine-light-hidden":d,"mantine-dark-hidden":f,[`mantine-hidden-from-${o}`]:o,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":H5(s)?void 0:s||void 0,size:m,...dz(a),...T};return l.jsxs(l.Fragment,{children:[N.hasResponsiveStyles&&l.jsx(cz,{selector:`.${C}`,styles:N.styles,media:N.media}),typeof p=="function"?p(w):l.jsx(y,{...w})]})});fz.displayName="@mantine/core/Box";const ve=fz;function hz(t){return t}function pz(t){const e=t;return n=>{const r=I.forwardRef((i,a)=>l.jsx(e,{...n,...i,ref:a}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r}}function Me(t){const e=I.forwardRef(t);return e.extend=hz,e.withProps=n=>{const r=I.forwardRef((i,a)=>l.jsx(e,{...n,...i,ref:a}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e}function Sa(t){const e=I.forwardRef(t);return e.withProps=n=>{const r=I.forwardRef((i,a)=>l.jsx(e,{...n,...i,ref:a}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e.extend=hz,e}const kte=I.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function um(){return I.useContext(kte)}var ey=B5();const Kg=sl(ey);function Pte(t){if(!t||typeof t=="string")return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function $C(t){return t!=null&&t.current?t.current.scrollHeight:"auto"}const wg=typeof window<"u"&&window.requestAnimationFrame;function Bte({transitionDuration:t,transitionTimingFunction:e="ease",onTransitionEnd:n=()=>{},opened:r}){const i=I.useRef(null),a=0,s={display:"none",height:0,overflow:"hidden"},[o,c]=I.useState(r?{}:s),d=b=>{ey.flushSync(()=>c(b))},f=b=>{d(S=>({...S,...b}))};function p(b){const S=t||Pte(b);return{transition:`height ${S}ms ${e}, opacity ${S}ms ${e}`}}ro(()=>{typeof wg=="function"&&wg(r?()=>{f({willChange:"height",display:"block",overflow:"hidden"}),wg(()=>{const b=$C(i);f({...p(b),height:b})})}:()=>{const b=$C(i);f({...p(b),willChange:"height",height:b}),wg(()=>f({height:a,overflow:"hidden"}))})},[r]);const m=b=>{if(!(b.target!==i.current||b.propertyName!=="height"))if(r){const S=$C(i);S===o.height?d({}):f({height:S}),n()}else o.height===a&&(d(s),n())};function g({style:b={},refKey:S="ref",...y}={}){const E=y[S];return{"aria-hidden":!r,...y,[S]:ez(i,E),onTransitionEnd:m,style:{boxSizing:"border-box",...b,...o}}}return g}const Fte={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},HD=Me((t,e)=>{const{children:n,in:r,transitionDuration:i,transitionTimingFunction:a,style:s,onTransitionEnd:o,animateOpacity:c,...d}=Te("Collapse",Fte,t),f=Fi(),p=QE(),g=(f.respectReducedMotion?p:!1)?0:i,b=Bte({opened:r,transitionDuration:g,transitionTimingFunction:a,onTransitionEnd:o});return g===0?r?l.jsx(ve,{...d,children:n}):null:l.jsx(ve,{...b({style:{opacity:r||!c?1:0,transition:c?`opacity ${g}ms ${a}`:"none",...YD(s,f)},ref:e,...d}),children:n})});HD.displayName="@mantine/core/Collapse";function ty(){return typeof window<"u"}function dm(t){return mz(t)?(t.nodeName||"").toLowerCase():"#document"}function ts(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Vl(t){var e;return(e=(mz(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function mz(t){return ty()?t instanceof Node||t instanceof ts(t).Node:!1}function fr(t){return ty()?t instanceof Element||t instanceof ts(t).Element:!1}function As(t){return ty()?t instanceof HTMLElement||t instanceof ts(t).HTMLElement:!1}function Tw(t){return!ty()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ts(t).ShadowRoot}function m0(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=io(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function Ute(t){return["table","td","th"].includes(dm(t))}function ny(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function VD(t){const e=ry(),n=fr(t)?io(t):t;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(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 jte(t){let e=jc(t);for(;As(e)&&!cd(e);){if(VD(e))return e;if(ny(e))return null;e=jc(e)}return null}function ry(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function cd(t){return["html","body","#document"].includes(dm(t))}function io(t){return ts(t).getComputedStyle(t)}function iy(t){return fr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function jc(t){if(dm(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Tw(t)&&t.host||Vl(t);return Tw(e)?e.host:e}function gz(t){const e=jc(t);return cd(e)?t.ownerDocument?t.ownerDocument.body:t.body:As(e)&&m0(e)?e:gz(e)}function Lc(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=gz(t),a=i===((r=t.ownerDocument)==null?void 0:r.body),s=ts(i);if(a){const o=xw(s);return e.concat(s,s.visualViewport||[],m0(i)?i:[],o&&n?Lc(o):[])}return e.concat(i,Lc(i,[],n))}function xw(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function FB(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function O_(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&Tw(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function _z(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function bz(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}function Gte(t){return zte()?!1:!UB()&&t.width===0&&t.height===0||UB()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function qte(){return/apple/i.test(navigator.vendor)}function UB(){const t=/android/i;return t.test(_z())||t.test(bz())}function $te(){return _z().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function zte(){return bz().includes("jsdom/")}function Cw(t,e){const n=["mouse","pen"];return n.push("",void 0),n.includes(t)}function Yte(t){return"nativeEvent"in t}function Hte(t){return t.matches("html,body")}function pf(t){return(t==null?void 0:t.ownerDocument)||document}function zC(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function Yh(t){return"composedPath"in t?t.composedPath()[0]:t.target}const Vte="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Wte(t){return As(t)&&t.matches(Vte)}const Cs=Math.min,ga=Math.max,US=Math.round,ov=Math.floor,jl=t=>({x:t,y:t}),Qte={left:"right",right:"left",bottom:"top",top:"bottom"},Kte={start:"end",end:"start"};function Ow(t,e,n){return ga(t,Cs(e,n))}function Gc(t,e){return typeof t=="function"?t(e):t}function tl(t){return t.split("-")[0]}function fm(t){return t.split("-")[1]}function WD(t){return t==="x"?"y":"x"}function QD(t){return t==="y"?"height":"width"}function qc(t){return["top","bottom"].includes(tl(t))?"y":"x"}function KD(t){return WD(qc(t))}function Xte(t,e,n){n===void 0&&(n=!1);const r=fm(t),i=KD(t),a=QD(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=jS(s)),[s,jS(s)]}function Zte(t){const e=jS(t);return[Rw(t),e,Rw(e)]}function Rw(t){return t.replace(/start|end/g,e=>Kte[e])}function Jte(t,e,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?a:s;default:return[]}}function ene(t,e,n,r){const i=fm(t);let a=Jte(tl(t),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),e&&(a=a.concat(a.map(Rw)))),a}function jS(t){return t.replace(/left|right|bottom|top/g,e=>Qte[e])}function tne(t){return{top:0,right:0,bottom:0,left:0,...t}}function XD(t){return typeof t!="number"?tne(t):{top:t,right:t,bottom:t,left:t}}function Fp(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function jB(t,e,n){let{reference:r,floating:i}=t;const a=qc(e),s=KD(e),o=QD(s),c=tl(e),d=a==="y",f=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,m=r[o]/2-i[o]/2;let g;switch(c){case"top":g={x:f,y:r.y-i.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-i.width,y:p};break;default:g={x:r.x,y:r.y}}switch(fm(e)){case"start":g[s]-=m*(n&&d?-1:1);break;case"end":g[s]+=m*(n&&d?-1:1);break}return g}const nne=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,o=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let d=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:p}=jB(d,r,c),m=r,g={},b=0;for(let S=0;S<o.length;S++){const{name:y,fn:E}=o[S],{x:T,y:x,data:O,reset:C}=await E({x:f,y:p,initialPlacement:r,placement:m,strategy:i,middlewareData:g,rects:d,platform:s,elements:{reference:t,floating:e}});f=T??f,p=x??p,g={...g,[y]:{...g[y],...O}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(d=C.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):C.rects),{x:f,y:p}=jB(d,m,c)),S=-1)}return{x:f,y:p,placement:m,strategy:i,middlewareData:g}};async function ZD(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:a,rects:s,elements:o,strategy:c}=t,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=Gc(e,t),b=XD(g),y=o[m?p==="floating"?"reference":"floating":p],E=Fp(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(y)))==null||n?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:d,rootBoundary:f,strategy:c})),T=p==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),O=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},C=Fp(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:T,offsetParent:x,strategy:c}):T);return{top:(E.top-C.top+b.top)/O.y,bottom:(C.bottom-E.bottom+b.bottom)/O.y,left:(E.left-C.left+b.left)/O.x,right:(C.right-E.right+b.right)/O.x}}const rne=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:a,platform:s,elements:o,middlewareData:c}=e,{element:d,padding:f=0}=Gc(t,e)||{};if(d==null)return{};const p=XD(f),m={x:n,y:r},g=KD(i),b=QD(g),S=await s.getDimensions(d),y=g==="y",E=y?"top":"left",T=y?"bottom":"right",x=y?"clientHeight":"clientWidth",O=a.reference[b]+a.reference[g]-m[g]-a.floating[b],C=m[g]-a.reference[g],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let w=N?N[x]:0;(!w||!await(s.isElement==null?void 0:s.isElement(N)))&&(w=o.floating[x]||a.floating[b]);const D=O/2-C/2,L=w/2-S[b]/2-1,U=Cs(p[E],L),M=Cs(p[T],L),B=U,Y=w-S[b]-M,H=w/2-S[b]/2+D,F=Ow(B,H,Y),k=!c.arrow&&fm(i)!=null&&H!==F&&a.reference[b]/2-(H<B?U:M)-S[b]/2<0,P=k?H<B?H-B:H-Y:0;return{[g]:m[g]+P,data:{[g]:F,centerOffset:H-F-P,...k&&{alignmentOffset:P}},reset:k}}}),ine=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:o,platform:c,elements:d}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:S=!0,...y}=Gc(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const E=tl(i),T=qc(o),x=tl(o)===o,O=await(c.isRTL==null?void 0:c.isRTL(d.floating)),C=m||(x||!S?[jS(o)]:Zte(o)),N=b!=="none";!m&&N&&C.push(...ene(o,S,b,O));const w=[o,...C],D=await ZD(e,y),L=[];let U=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&L.push(D[E]),p){const H=Xte(i,s,O);L.push(D[H[0]],D[H[1]])}if(U=[...U,{placement:i,overflows:L}],!L.every(H=>H<=0)){var M,B;const H=(((M=a.flip)==null?void 0:M.index)||0)+1,F=w[H];if(F)return{data:{index:H,overflows:U},reset:{placement:F}};let k=(B=U.filter(P=>P.overflows[0]<=0).sort((P,z)=>P.overflows[1]-z.overflows[1])[0])==null?void 0:B.placement;if(!k)switch(g){case"bestFit":{var Y;const P=(Y=U.filter(z=>{if(N){const V=qc(z.placement);return V===T||V==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(V=>V>0).reduce((V,G)=>V+G,0)]).sort((z,V)=>z[1]-V[1])[0])==null?void 0:Y[0];P&&(k=P);break}case"initialPlacement":k=o;break}if(i!==k)return{reset:{placement:k}}}return{}}}};function vz(t){const e=Cs(...t.map(a=>a.left)),n=Cs(...t.map(a=>a.top)),r=ga(...t.map(a=>a.right)),i=ga(...t.map(a=>a.bottom));return{x:e,y:n,width:r-e,height:i-n}}function ane(t){const e=t.slice().sort((i,a)=>i.y-a.y),n=[];let r=null;for(let i=0;i<e.length;i++){const a=e[i];!r||a.y-r.y>r.height/2?n.push([a]):n[n.length-1].push(a),r=a}return n.map(i=>Fp(vz(i)))}const sne=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:r,rects:i,platform:a,strategy:s}=e,{padding:o=2,x:c,y:d}=Gc(t,e),f=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]),p=ane(f),m=Fp(vz(f)),g=XD(o);function b(){if(p.length===2&&p[0].left>p[1].right&&c!=null&&d!=null)return p.find(y=>c>y.left-g.left&&c<y.right+g.right&&d>y.top-g.top&&d<y.bottom+g.bottom)||m;if(p.length>=2){if(qc(n)==="y"){const U=p[0],M=p[p.length-1],B=tl(n)==="top",Y=U.top,H=M.bottom,F=B?U.left:M.left,k=B?U.right:M.right,P=k-F,z=H-Y;return{top:Y,bottom:H,left:F,right:k,width:P,height:z,x:F,y:Y}}const y=tl(n)==="left",E=ga(...p.map(U=>U.right)),T=Cs(...p.map(U=>U.left)),x=p.filter(U=>y?U.left===T:U.right===E),O=x[0].top,C=x[x.length-1].bottom,N=T,w=E,D=w-N,L=C-O;return{top:O,bottom:C,left:N,right:w,width:D,height:L,x:N,y:O}}return m}const S=await a.getElementRects({reference:{getBoundingClientRect:b},floating:r.floating,strategy:s});return i.reference.x!==S.reference.x||i.reference.y!==S.reference.y||i.reference.width!==S.reference.width||i.reference.height!==S.reference.height?{reset:{rects:S}}:{}}}};async function one(t,e){const{placement:n,platform:r,elements:i}=t,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=tl(n),o=fm(n),c=qc(n)==="y",d=["left","top"].includes(s)?-1:1,f=a&&c?-1:1,p=Gc(e,t);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return o&&typeof b=="number"&&(g=o==="end"?b*-1:b),c?{x:g*f,y:m*d}:{x:m*d,y:g*f}}const lne=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:a,placement:s,middlewareData:o}=e,c=await one(e,t);return s===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:s}}}}},cne=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:o={fn:y=>{let{x:E,y:T}=y;return{x:E,y:T}}},...c}=Gc(t,e),d={x:n,y:r},f=await ZD(e,c),p=qc(tl(i)),m=WD(p);let g=d[m],b=d[p];if(a){const y=m==="y"?"top":"left",E=m==="y"?"bottom":"right",T=g+f[y],x=g-f[E];g=Ow(T,g,x)}if(s){const y=p==="y"?"top":"left",E=p==="y"?"bottom":"right",T=b+f[y],x=b-f[E];b=Ow(T,b,x)}const S=o.fn({...e,[m]:g,[p]:b});return{...S,data:{x:S.x-n,y:S.y-r}}}}},une=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:a,middlewareData:s}=e,{offset:o=0,mainAxis:c=!0,crossAxis:d=!0}=Gc(t,e),f={x:n,y:r},p=qc(i),m=WD(p);let g=f[m],b=f[p];const S=Gc(o,e),y=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(c){const x=m==="y"?"height":"width",O=a.reference[m]-a.floating[x]+y.mainAxis,C=a.reference[m]+a.reference[x]-y.mainAxis;g<O?g=O:g>C&&(g=C)}if(d){var E,T;const x=m==="y"?"width":"height",O=["top","left"].includes(tl(i)),C=a.reference[p]-a.floating[x]+(O&&((E=s.offset)==null?void 0:E[p])||0)+(O?0:y.crossAxis),N=a.reference[p]+a.reference[x]+(O?0:((T=s.offset)==null?void 0:T[p])||0)-(O?y.crossAxis:0);b<C?b=C:b>N&&(b=N)}return{[m]:g,[p]:b}}}},dne=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:r,platform:i,elements:a}=e,{apply:s=()=>{},...o}=Gc(t,e),c=await ZD(e,o),d=tl(n),f=fm(n),p=qc(n)==="y",{width:m,height:g}=r.floating;let b,S;d==="top"||d==="bottom"?(b=d,S=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(S=d,b=f==="end"?"top":"bottom");const y=g-c.top-c.bottom,E=m-c.left-c.right,T=Cs(g-c[b],y),x=Cs(m-c[S],E),O=!e.middlewareData.shift;let C=T,N=x;if(p?N=f||O?Cs(x,E):E:C=f||O?Cs(T,y):y,O&&!f){const D=ga(c.left,0),L=ga(c.right,0),U=ga(c.top,0),M=ga(c.bottom,0);p?N=m-2*(D!==0||L!==0?D+L:ga(c.left,c.right)):C=g-2*(U!==0||M!==0?U+M:ga(c.top,c.bottom))}await s({...e,availableWidth:N,availableHeight:C});const w=await i.getDimensions(a.floating);return m!==w.width||g!==w.height?{reset:{rects:!0}}:{}}}};function Sz(t){const e=io(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=As(t),a=i?t.offsetWidth:n,s=i?t.offsetHeight:r,o=US(n)!==a||US(r)!==s;return o&&(n=a,r=s),{width:n,height:r,$:o}}function JD(t){return fr(t)?t:t.contextElement}function rp(t){const e=JD(t);if(!As(e))return jl(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:a}=Sz(e);let s=(a?US(n.width):n.width)/r,o=(a?US(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const fne=jl(0);function Ez(t){const e=ts(t);return!ry()||!e.visualViewport?fne:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function hne(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==ts(t)?!1:e}function Uf(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),a=JD(t);let s=jl(1);e&&(r?fr(r)&&(s=rp(r)):s=rp(t));const o=hne(a,n,r)?Ez(a):jl(0);let c=(i.left+o.x)/s.x,d=(i.top+o.y)/s.y,f=i.width/s.x,p=i.height/s.y;if(a){const m=ts(a),g=r&&fr(r)?ts(r):r;let b=m,S=xw(b);for(;S&&r&&g!==b;){const y=rp(S),E=S.getBoundingClientRect(),T=io(S),x=E.left+(S.clientLeft+parseFloat(T.paddingLeft))*y.x,O=E.top+(S.clientTop+parseFloat(T.paddingTop))*y.y;c*=y.x,d*=y.y,f*=y.x,p*=y.y,c+=x,d+=O,b=ts(S),S=xw(b)}}return Fp({width:f,height:p,x:c,y:d})}function eM(t,e){const n=iy(t).scrollLeft;return e?e.left+n:Uf(Vl(t)).left+n}function yz(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-(n?0:eM(t,r)),a=r.top+e.scrollTop;return{x:i,y:a}}function pne(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const a=i==="fixed",s=Vl(r),o=e?ny(e.floating):!1;if(r===s||o&&a)return n;let c={scrollLeft:0,scrollTop:0},d=jl(1);const f=jl(0),p=As(r);if((p||!p&&!a)&&((dm(r)!=="body"||m0(s))&&(c=iy(r)),As(r))){const g=Uf(r);d=rp(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=s&&!p&&!a?yz(s,c,!0):jl(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-c.scrollTop*d.y+f.y+m.y}}function mne(t){return Array.from(t.getClientRects())}function gne(t){const e=Vl(t),n=iy(t),r=t.ownerDocument.body,i=ga(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=ga(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+eM(t);const o=-n.scrollTop;return io(r).direction==="rtl"&&(s+=ga(e.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:o}}function _ne(t,e){const n=ts(t),r=Vl(t),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,o=0,c=0;if(i){a=i.width,s=i.height;const d=ry();(!d||d&&e==="fixed")&&(o=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:o,y:c}}function bne(t,e){const n=Uf(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,a=As(t)?rp(t):jl(1),s=t.clientWidth*a.x,o=t.clientHeight*a.y,c=i*a.x,d=r*a.y;return{width:s,height:o,x:c,y:d}}function GB(t,e,n){let r;if(e==="viewport")r=_ne(t,n);else if(e==="document")r=gne(Vl(t));else if(fr(e))r=bne(e,n);else{const i=Ez(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Fp(r)}function Tz(t,e){const n=jc(t);return n===e||!fr(n)||cd(n)?!1:io(n).position==="fixed"||Tz(n,e)}function vne(t,e){const n=e.get(t);if(n)return n;let r=Lc(t,[],!1).filter(o=>fr(o)&&dm(o)!=="body"),i=null;const a=io(t).position==="fixed";let s=a?jc(t):t;for(;fr(s)&&!cd(s);){const o=io(s),c=VD(s);!c&&o.position==="fixed"&&(i=null),(a?!c&&!i:!c&&o.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||m0(s)&&!c&&Tz(t,s))?r=r.filter(f=>f!==s):i=o,s=jc(s)}return e.set(t,r),r}function Sne(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const s=[...n==="clippingAncestors"?ny(e)?[]:vne(e,this._c):[].concat(n),r],o=s[0],c=s.reduce((d,f)=>{const p=GB(e,f,i);return d.top=ga(p.top,d.top),d.right=Cs(p.right,d.right),d.bottom=Cs(p.bottom,d.bottom),d.left=ga(p.left,d.left),d},GB(e,o,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ene(t){const{width:e,height:n}=Sz(t);return{width:e,height:n}}function yne(t,e,n){const r=As(e),i=Vl(e),a=n==="fixed",s=Uf(t,!0,a,e);let o={scrollLeft:0,scrollTop:0};const c=jl(0);if(r||!r&&!a)if((dm(e)!=="body"||m0(i))&&(o=iy(e)),r){const m=Uf(e,!0,a,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else i&&(c.x=eM(i));const d=i&&!r&&!a?yz(i,o):jl(0),f=s.left+o.scrollLeft-c.x-d.x,p=s.top+o.scrollTop-c.y-d.y;return{x:f,y:p,width:s.width,height:s.height}}function YC(t){return io(t).position==="static"}function qB(t,e){if(!As(t)||io(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Vl(t)===n&&(n=n.ownerDocument.body),n}function xz(t,e){const n=ts(t);if(ny(t))return n;if(!As(t)){let i=jc(t);for(;i&&!cd(i);){if(fr(i)&&!YC(i))return i;i=jc(i)}return n}let r=qB(t,e);for(;r&&Ute(r)&&YC(r);)r=qB(r,e);return r&&cd(r)&&YC(r)&&!VD(r)?n:r||jte(t)||n}const Tne=async function(t){const e=this.getOffsetParent||xz,n=this.getDimensions,r=await n(t.floating);return{reference:yne(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xne(t){return io(t).direction==="rtl"}const Cne={convertOffsetParentRelativeRectToViewportRelativeRect:pne,getDocumentElement:Vl,getClippingRect:Sne,getOffsetParent:xz,getElementRects:Tne,getClientRects:mne,getDimensions:Ene,getScale:rp,isElement:fr,isRTL:xne};function Cz(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function One(t,e){let n=null,r;const i=Vl(t);function a(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function s(o,c){o===void 0&&(o=!1),c===void 0&&(c=1),a();const d=t.getBoundingClientRect(),{left:f,top:p,width:m,height:g}=d;if(o||e(),!m||!g)return;const b=ov(p),S=ov(i.clientWidth-(f+m)),y=ov(i.clientHeight-(p+g)),E=ov(f),x={rootMargin:-b+"px "+-S+"px "+-y+"px "+-E+"px",threshold:ga(0,Cs(1,c))||1};let O=!0;function C(N){const w=N[0].intersectionRatio;if(w!==c){if(!O)return s();w?s(!1,w):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w===1&&!Cz(d,t.getBoundingClientRect())&&s(),O=!1}try{n=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(t)}return s(!0),a}function Rne(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=JD(t),f=i||a?[...d?Lc(d):[],...Lc(e)]:[];f.forEach(E=>{i&&E.addEventListener("scroll",n,{passive:!0}),a&&E.addEventListener("resize",n)});const p=d&&o?One(d,n):null;let m=-1,g=null;s&&(g=new ResizeObserver(E=>{let[T]=E;T&&T.target===d&&g&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(e)})),n()}),d&&!c&&g.observe(d),g.observe(e));let b,S=c?Uf(t):null;c&&y();function y(){const E=Uf(t);S&&!Cz(S,E)&&n(),S=E,b=requestAnimationFrame(y)}return n(),()=>{var E;f.forEach(T=>{i&&T.removeEventListener("scroll",n),a&&T.removeEventListener("resize",n)}),p==null||p(),(E=g)==null||E.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const Oz=lne,Rz=cne,Nz=ine,Nne=dne,$B=rne,Ane=sne,wne=une,Az=(t,e,n)=>{const r=new Map,i={platform:Cne,...n},a={...i.platform,_c:r};return nne(t,e,{...i,platform:a})};var tS=typeof document<"u"?I.useLayoutEffect:I.useEffect;function GS(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!GS(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&t.$$typeof)&&!GS(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function wz(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function zB(t,e){const n=wz(t);return Math.round(e*n)/n}function HC(t){const e=I.useRef(t);return tS(()=>{e.current=t}),e}function Ine(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:c,open:d}=t,[f,p]=I.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,g]=I.useState(r);GS(m,r)||g(r);const[b,S]=I.useState(null),[y,E]=I.useState(null),T=I.useCallback(z=>{z!==N.current&&(N.current=z,S(z))},[]),x=I.useCallback(z=>{z!==w.current&&(w.current=z,E(z))},[]),O=a||b,C=s||y,N=I.useRef(null),w=I.useRef(null),D=I.useRef(f),L=c!=null,U=HC(c),M=HC(i),B=HC(d),Y=I.useCallback(()=>{if(!N.current||!w.current)return;const z={placement:e,strategy:n,middleware:m};M.current&&(z.platform=M.current),Az(N.current,w.current,z).then(V=>{const G={...V,isPositioned:B.current!==!1};H.current&&!GS(D.current,G)&&(D.current=G,ey.flushSync(()=>{p(G)}))})},[m,e,n,M,B]);tS(()=>{d===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,p(z=>({...z,isPositioned:!1})))},[d]);const H=I.useRef(!1);tS(()=>(H.current=!0,()=>{H.current=!1}),[]),tS(()=>{if(O&&(N.current=O),C&&(w.current=C),O&&C){if(U.current)return U.current(O,C,Y);Y()}},[O,C,Y,U,L]);const F=I.useMemo(()=>({reference:N,floating:w,setReference:T,setFloating:x}),[T,x]),k=I.useMemo(()=>({reference:O,floating:C}),[O,C]),P=I.useMemo(()=>{const z={position:n,left:0,top:0};if(!k.floating)return z;const V=zB(k.floating,f.x),G=zB(k.floating,f.y);return o?{...z,transform:"translate("+V+"px, "+G+"px)",...wz(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:G}},[n,o,k.floating,f.x,f.y]);return I.useMemo(()=>({...f,update:Y,refs:F,elements:k,floatingStyles:P}),[f,Y,F,k,P])}const Dne=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?$B({element:r.current,padding:i}).fn(n):{}:r?$B({element:r,padding:i}).fn(n):{}}}},Iz=(t,e)=>({...Oz(t),options:[t,e]}),tM=(t,e)=>({...Rz(t),options:[t,e]}),YB=(t,e)=>({...wne(t),options:[t,e]}),qS=(t,e)=>({...Nz(t),options:[t,e]}),Mne=(t,e)=>({...Nne(t),options:[t,e]}),f_=(t,e)=>({...Ane(t),options:[t,e]}),Dz=(t,e)=>({...Dne(t),options:[t,e]});function Lne(t){return I.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})},t)}const Mz={...YZ},kne=Mz.useInsertionEffect,Pne=kne||(t=>t());function wc(t){const e=I.useRef(()=>{});return Pne(()=>{e.current=t}),I.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}var Gl=typeof document<"u"?I.useLayoutEffect:I.useEffect;let HB=!1,Bne=0;const VB=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Bne++;function Fne(){const[t,e]=I.useState(()=>HB?VB():void 0);return Gl(()=>{t==null&&e(VB())},[]),I.useEffect(()=>{HB=!0},[]),t}const Une=Mz.useId,Lz=Une||Fne;function jne(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(i=>i(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var r;t.set(e,((r=t.get(e))==null?void 0:r.filter(i=>i!==n))||[])}}}const Gne=I.createContext(null),qne=I.createContext(null),nM=()=>{var t;return((t=I.useContext(Gne))==null?void 0:t.id)||null},rM=()=>I.useContext(qne);function iM(t){return"data-floating-ui-"+t}function VC(t){const e=I.useRef(t);return Gl(()=>{e.current=t}),e}const WB=iM("safe-polygon");function nS(t,e,n){return n&&!Cw(n)?0:typeof t=="number"?t:t==null?void 0:t[e]}function $ne(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:s}=t,{enabled:o=!0,delay:c=0,handleClose:d=null,mouseOnly:f=!1,restMs:p=0,move:m=!0}=e,g=rM(),b=nM(),S=VC(d),y=VC(c),E=VC(n),T=I.useRef(),x=I.useRef(-1),O=I.useRef(),C=I.useRef(-1),N=I.useRef(!0),w=I.useRef(!1),D=I.useRef(()=>{}),L=I.useRef(!1),U=I.useCallback(()=>{var P;const z=(P=i.current.openEvent)==null?void 0:P.type;return(z==null?void 0:z.includes("mouse"))&&z!=="mousedown"},[i]);I.useEffect(()=>{if(!o)return;function P(z){let{open:V}=z;V||(clearTimeout(x.current),clearTimeout(C.current),N.current=!0,L.current=!1)}return a.on("openchange",P),()=>{a.off("openchange",P)}},[o,a]),I.useEffect(()=>{if(!o||!S.current||!n)return;function P(V){U()&&r(!1,V,"hover")}const z=pf(s.floating).documentElement;return z.addEventListener("mouseleave",P),()=>{z.removeEventListener("mouseleave",P)}},[s.floating,n,r,o,S,U]);const M=I.useCallback(function(P,z,V){z===void 0&&(z=!0),V===void 0&&(V="hover");const G=nS(y.current,"close",T.current);G&&!O.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>r(!1,P,V),G)):z&&(clearTimeout(x.current),r(!1,P,V))},[y,r]),B=wc(()=>{D.current(),O.current=void 0}),Y=wc(()=>{if(w.current){const P=pf(s.floating).body;P.style.pointerEvents="",P.removeAttribute(WB),w.current=!1}}),H=wc(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);I.useEffect(()=>{if(!o)return;function P(Q){if(clearTimeout(x.current),N.current=!1,f&&!Cw(T.current)||p>0&&!nS(y.current,"open"))return;const Z=nS(y.current,"open",T.current);Z?x.current=window.setTimeout(()=>{E.current||r(!0,Q,"hover")},Z):n||r(!0,Q,"hover")}function z(Q){if(H())return;D.current();const Z=pf(s.floating);if(clearTimeout(C.current),L.current=!1,S.current&&i.current.floatingContext){n||clearTimeout(x.current),O.current=S.current({...i.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){Y(),B(),H()||M(Q,!0,"safe-polygon")}});const ue=O.current;Z.addEventListener("mousemove",ue),D.current=()=>{Z.removeEventListener("mousemove",ue)};return}(T.current==="touch"?!O_(s.floating,Q.relatedTarget):!0)&&M(Q)}function V(Q){H()||i.current.floatingContext&&(S.current==null||S.current({...i.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){Y(),B(),H()||M(Q)}})(Q))}if(fr(s.domReference)){var G;const Q=s.domReference;return n&&Q.addEventListener("mouseleave",V),(G=s.floating)==null||G.addEventListener("mouseleave",V),m&&Q.addEventListener("mousemove",P,{once:!0}),Q.addEventListener("mouseenter",P),Q.addEventListener("mouseleave",z),()=>{var Z;n&&Q.removeEventListener("mouseleave",V),(Z=s.floating)==null||Z.removeEventListener("mouseleave",V),m&&Q.removeEventListener("mousemove",P),Q.removeEventListener("mouseenter",P),Q.removeEventListener("mouseleave",z)}}},[s,o,t,f,p,m,M,B,Y,r,n,E,g,y,S,i,H]),Gl(()=>{var P;if(o&&n&&(P=S.current)!=null&&P.__options.blockPointerEvents&&U()){w.current=!0;const V=s.floating;if(fr(s.domReference)&&V){var z;const G=pf(s.floating).body;G.setAttribute(WB,"");const Q=s.domReference,Z=g==null||(z=g.nodesRef.current.find(X=>X.id===b))==null||(z=z.context)==null?void 0:z.elements.floating;return Z&&(Z.style.pointerEvents=""),G.style.pointerEvents="none",Q.style.pointerEvents="auto",V.style.pointerEvents="auto",()=>{G.style.pointerEvents="",Q.style.pointerEvents="",V.style.pointerEvents=""}}}},[o,n,b,s,g,S,U]),Gl(()=>{n||(T.current=void 0,L.current=!1,B(),Y())},[n,B,Y]),I.useEffect(()=>()=>{B(),clearTimeout(x.current),clearTimeout(C.current),Y()},[o,s.domReference,B,Y]);const F=I.useMemo(()=>{function P(z){T.current=z.pointerType}return{onPointerDown:P,onPointerEnter:P,onMouseMove(z){const{nativeEvent:V}=z;function G(){!N.current&&!E.current&&r(!0,V,"hover")}f&&!Cw(T.current)||n||p===0||L.current&&z.movementX**2+z.movementY**2<2||(clearTimeout(C.current),T.current==="touch"?G():(L.current=!0,C.current=window.setTimeout(G,p)))}}},[f,r,n,E,p]),k=I.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(P){H()||M(P.nativeEvent,!1)}}),[M,H]);return I.useMemo(()=>o?{reference:F,floating:k}:{},[o,F,k])}const Nw=()=>{},kz=I.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Nw,setState:Nw,isInstantPhase:!1}),zne=()=>I.useContext(kz);function Yne(t){const{children:e,delay:n,timeoutMs:r=0}=t,[i,a]=I.useReducer((c,d)=>({...c,...d}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),s=I.useRef(null),o=I.useCallback(c=>{a({currentId:c})},[]);return Gl(()=>{i.currentId?s.current===null?s.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),s.current=null)},[i.currentId,i.isInstantPhase]),I.createElement(kz.Provider,{value:I.useMemo(()=>({...i,setState:a,setCurrentId:o}),[i,o])},e)}function Hne(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,floatingId:i}=t,{id:a,enabled:s=!0}=e,o=a??i,c=zne(),{currentId:d,setCurrentId:f,initialDelay:p,setState:m,timeoutMs:g}=c;return Gl(()=>{s&&d&&(m({delay:{open:1,close:nS(p,"close")}}),d!==o&&r(!1))},[s,o,r,m,d,p]),Gl(()=>{function b(){r(!1),m({delay:p,currentId:null})}if(s&&d&&!n&&d===o){if(g){const S=window.setTimeout(b,g);return()=>{clearTimeout(S)}}b()}},[s,n,m,d,o,r,p,g]),Gl(()=>{s&&(f===Nw||!n||f(o))},[s,n,f,o]),c}function WC(t,e){let n=t.filter(i=>{var a;return i.parentId===e&&((a=i.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=t.filter(i=>{var a;return(a=r)==null?void 0:a.some(s=>{var o;return i.parentId===s.id&&((o=i.context)==null?void 0:o.open)})}),n=n.concat(r);return n}const Vne="data-floating-ui-focusable",Wne={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Qne={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},QB=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t==null?void 0:t.outsidePress)!=null?n:!0}};function Kne(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,elements:i,dataRef:a}=t,{enabled:s=!0,escapeKey:o=!0,outsidePress:c=!0,outsidePressEvent:d="pointerdown",referencePress:f=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:g,capture:b}=e,S=rM(),y=wc(typeof c=="function"?c:()=>!1),E=typeof c=="function"?y:c,T=I.useRef(!1),x=I.useRef(!1),{escapeKey:O,outsidePress:C}=QB(g),{escapeKey:N,outsidePress:w}=QB(b),D=I.useRef(!1),L=wc(F=>{var k;if(!n||!s||!o||F.key!=="Escape"||D.current)return;const P=(k=a.current.floatingContext)==null?void 0:k.nodeId,z=S?WC(S.nodesRef.current,P):[];if(!O&&(F.stopPropagation(),z.length>0)){let V=!0;if(z.forEach(G=>{var Q;if((Q=G.context)!=null&&Q.open&&!G.context.dataRef.current.__escapeKeyBubbles){V=!1;return}}),!V)return}r(!1,Yte(F)?F.nativeEvent:F,"escape-key")}),U=wc(F=>{var k;const P=()=>{var z;L(F),(z=Yh(F))==null||z.removeEventListener("keydown",P)};(k=Yh(F))==null||k.addEventListener("keydown",P)}),M=wc(F=>{var k;const P=T.current;T.current=!1;const z=x.current;if(x.current=!1,d==="click"&&z||P||typeof E=="function"&&!E(F))return;const V=Yh(F),G="["+iM("inert")+"]",Q=pf(i.floating).querySelectorAll(G);let Z=fr(V)?V:null;for(;Z&&!cd(Z);){const be=jc(Z);if(cd(be)||!fr(be))break;Z=be}if(Q.length&&fr(V)&&!Hte(V)&&!O_(V,i.floating)&&Array.from(Q).every(be=>!O_(Z,be)))return;if(As(V)&&H){const be=V.clientWidth>0&&V.scrollWidth>V.clientWidth,ye=V.clientHeight>0&&V.scrollHeight>V.clientHeight;let Ne=ye&&F.offsetX>V.clientWidth;if(ye&&io(V).direction==="rtl"&&(Ne=F.offsetX<=V.offsetWidth-V.clientWidth),Ne||be&&F.offsetY>V.clientHeight)return}const X=(k=a.current.floatingContext)==null?void 0:k.nodeId,ue=S&&WC(S.nodesRef.current,X).some(be=>{var ye;return zC(F,(ye=be.context)==null?void 0:ye.elements.floating)});if(zC(F,i.floating)||zC(F,i.domReference)||ue)return;const fe=S?WC(S.nodesRef.current,X):[];if(fe.length>0){let be=!0;if(fe.forEach(ye=>{var Ne;if((Ne=ye.context)!=null&&Ne.open&&!ye.context.dataRef.current.__outsidePressBubbles){be=!1;return}}),!be)return}r(!1,F,"outside-press")}),B=wc(F=>{var k;const P=()=>{var z;M(F),(z=Yh(F))==null||z.removeEventListener(d,P)};(k=Yh(F))==null||k.addEventListener(d,P)});I.useEffect(()=>{if(!n||!s)return;a.current.__escapeKeyBubbles=O,a.current.__outsidePressBubbles=C;let F=-1;function k(Q){r(!1,Q,"ancestor-scroll")}function P(){window.clearTimeout(F),D.current=!0}function z(){F=window.setTimeout(()=>{D.current=!1},ry()?5:0)}const V=pf(i.floating);o&&(V.addEventListener("keydown",N?U:L,N),V.addEventListener("compositionstart",P),V.addEventListener("compositionend",z)),E&&V.addEventListener(d,w?B:M,w);let G=[];return m&&(fr(i.domReference)&&(G=Lc(i.domReference)),fr(i.floating)&&(G=G.concat(Lc(i.floating))),!fr(i.reference)&&i.reference&&i.reference.contextElement&&(G=G.concat(Lc(i.reference.contextElement)))),G=G.filter(Q=>{var Z;return Q!==((Z=V.defaultView)==null?void 0:Z.visualViewport)}),G.forEach(Q=>{Q.addEventListener("scroll",k,{passive:!0})}),()=>{o&&(V.removeEventListener("keydown",N?U:L,N),V.removeEventListener("compositionstart",P),V.removeEventListener("compositionend",z)),E&&V.removeEventListener(d,w?B:M,w),G.forEach(Q=>{Q.removeEventListener("scroll",k)}),window.clearTimeout(F)}},[a,i,o,E,d,n,r,m,s,O,C,L,N,U,M,w,B]),I.useEffect(()=>{T.current=!1},[E,d]);const Y=I.useMemo(()=>({onKeyDown:L,[Wne[p]]:F=>{f&&r(!1,F.nativeEvent,"reference-press")}}),[L,r,f,p]),H=I.useMemo(()=>({onKeyDown:L,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[Qne[d]]:()=>{T.current=!0}}),[L,d]);return I.useMemo(()=>s?{reference:Y,floating:H}:{},[s,Y,H])}function Xne(t){const{open:e=!1,onOpenChange:n,elements:r}=t,i=Lz(),a=I.useRef({}),[s]=I.useState(()=>jne()),o=nM()!=null,[c,d]=I.useState(r.reference),f=wc((g,b,S)=>{a.current.openEvent=g?b:void 0,s.emit("openchange",{open:g,event:b,reason:S,nested:o}),n==null||n(g,b,S)}),p=I.useMemo(()=>({setPositionReference:d}),[]),m=I.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return I.useMemo(()=>({dataRef:a,open:e,onOpenChange:f,elements:m,events:s,floatingId:i,refs:p}),[e,f,m,s,i,p])}function aM(t){t===void 0&&(t={});const{nodeId:e}=t,n=Xne({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,i=r.elements,[a,s]=I.useState(null),[o,c]=I.useState(null),f=(i==null?void 0:i.domReference)||a,p=I.useRef(null),m=rM();Gl(()=>{f&&(p.current=f)},[f]);const g=Ine({...t,elements:{...i,...o&&{reference:o}}}),b=I.useCallback(x=>{const O=fr(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;c(O),g.refs.setReference(O)},[g.refs]),S=I.useCallback(x=>{(fr(x)||x===null)&&(p.current=x,s(x)),(fr(g.refs.reference.current)||g.refs.reference.current===null||x!==null&&!fr(x))&&g.refs.setReference(x)},[g.refs]),y=I.useMemo(()=>({...g.refs,setReference:S,setPositionReference:b,domReference:p}),[g.refs,S,b]),E=I.useMemo(()=>({...g.elements,domReference:f}),[g.elements,f]),T=I.useMemo(()=>({...g,...r,refs:y,elements:E,nodeId:e}),[g,y,E,e,r]);return Gl(()=>{r.dataRef.current.floatingContext=T;const x=m==null?void 0:m.nodesRef.current.find(O=>O.id===e);x&&(x.context=T)}),I.useMemo(()=>({...g,context:T,refs:y,elements:E}),[g,y,E,T])}function Zne(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:i,dataRef:a,elements:s}=t,{enabled:o=!0,visibleOnly:c=!0}=e,d=I.useRef(!1),f=I.useRef(),p=I.useRef(!0);I.useEffect(()=>{if(!o)return;const g=ts(s.domReference);function b(){!n&&As(s.domReference)&&s.domReference===FB(pf(s.domReference))&&(d.current=!0)}function S(){p.current=!0}return g.addEventListener("blur",b),g.addEventListener("keydown",S,!0),()=>{g.removeEventListener("blur",b),g.removeEventListener("keydown",S,!0)}},[s.domReference,n,o]),I.useEffect(()=>{if(!o)return;function g(b){let{reason:S}=b;(S==="reference-press"||S==="escape-key")&&(d.current=!0)}return i.on("openchange",g),()=>{i.off("openchange",g)}},[i,o]),I.useEffect(()=>()=>{clearTimeout(f.current)},[]);const m=I.useMemo(()=>({onPointerDown(g){Gte(g.nativeEvent)||(p.current=!1)},onMouseLeave(){d.current=!1},onFocus(g){if(d.current)return;const b=Yh(g.nativeEvent);if(c&&fr(b))try{if(qte()&&$te())throw Error();if(!b.matches(":focus-visible"))return}catch{if(!p.current&&!Wte(b))return}r(!0,g.nativeEvent,"focus")},onBlur(g){d.current=!1;const b=g.relatedTarget,S=g.nativeEvent,y=fr(b)&&b.hasAttribute(iM("focus-guard"))&&b.getAttribute("data-type")==="outside";f.current=window.setTimeout(()=>{var E;const T=FB(s.domReference?s.domReference.ownerDocument:document);!b&&T===s.domReference||O_((E=a.current.floatingContext)==null?void 0:E.refs.floating.current,T)||O_(s.domReference,T)||y||r(!1,S,"focus")})}}),[a,s.domReference,r,c]);return I.useMemo(()=>o?{reference:m}:{},[o,m])}const KB="active",XB="selected";function QC(t,e,n){const r=new Map,i=n==="item";let a=t;if(i&&t){const{[KB]:s,[XB]:o,...c}=t;a=c}return{...n==="floating"&&{tabIndex:-1,[Vne]:""},...a,...e.map(s=>{const o=s?s[n]:null;return typeof o=="function"?t?o(t):null:o}).concat(t).reduce((s,o)=>(o&&Object.entries(o).forEach(c=>{let[d,f]=c;if(!(i&&[KB,XB].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof f=="function"){var p;(p=r.get(d))==null||p.push(f),s[d]=function(){for(var m,g=arguments.length,b=new Array(g),S=0;S<g;S++)b[S]=arguments[S];return(m=r.get(d))==null?void 0:m.map(y=>y(...b)).find(y=>y!==void 0)}}}else s[d]=f}),s),{})}}function Jne(t){t===void 0&&(t=[]);const e=t.map(o=>o==null?void 0:o.reference),n=t.map(o=>o==null?void 0:o.floating),r=t.map(o=>o==null?void 0:o.item),i=I.useCallback(o=>QC(o,t,"reference"),e),a=I.useCallback(o=>QC(o,t,"floating"),n),s=I.useCallback(o=>QC(o,t,"item"),r);return I.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:s}),[i,a,s])}const ere=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function tre(t,e){var n;e===void 0&&(e={});const{open:r,floatingId:i}=t,{enabled:a=!0,role:s="dialog"}=e,o=(n=ere.get(s))!=null?n:s,c=Lz(),f=nM()!=null,p=I.useMemo(()=>o==="tooltip"||s==="label"?{["aria-"+(s==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:c},...o==="menu"&&f&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},[o,i,f,r,c,s]),m=I.useMemo(()=>{const b={id:i,...o&&{role:o}};return o==="tooltip"||s==="label"?b:{...b,...o==="menu"&&{"aria-labelledby":c}}},[o,i,c,s]),g=I.useCallback(b=>{let{active:S,selected:y}=b;const E={role:"option",...S&&{id:i+"-option"}};switch(s){case"select":return{...E,"aria-selected":S&&y};case"combobox":return{...E,...S&&{"aria-selected":!0}}}return{}},[i,s]);return I.useMemo(()=>a?{reference:p,floating:m,item:g}:{},[a,p,m,g])}const[nre,lo]=va("ScrollArea.Root component was not found in tree");function Up(t,e){const n=lf(e);lm(()=>{let r=0;if(t){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(t),()=>{window.cancelAnimationFrame(r),i.unobserve(t)}}},[t,n])}const rre=I.forwardRef((t,e)=>{const{style:n,...r}=t,i=lo(),[a,s]=I.useState(0),[o,c]=I.useState(0),d=!!(a&&o);return Up(i.scrollbarX,()=>{var p;const f=((p=i.scrollbarX)==null?void 0:p.offsetHeight)||0;i.onCornerHeightChange(f),c(f)}),Up(i.scrollbarY,()=>{var p;const f=((p=i.scrollbarY)==null?void 0:p.offsetWidth)||0;i.onCornerWidthChange(f),s(f)}),d?l.jsx("div",{...r,ref:e,style:{...n,width:a,height:o}}):null}),ire=I.forwardRef((t,e)=>{const n=lo(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?l.jsx(rre,{...t,ref:e}):null}),are={scrollHideDelay:1e3,type:"hover"},Pz=I.forwardRef((t,e)=>{const n=Te("ScrollAreaRoot",are,t),{type:r,scrollHideDelay:i,scrollbars:a,...s}=n,[o,c]=I.useState(null),[d,f]=I.useState(null),[p,m]=I.useState(null),[g,b]=I.useState(null),[S,y]=I.useState(null),[E,T]=I.useState(0),[x,O]=I.useState(0),[C,N]=I.useState(!1),[w,D]=I.useState(!1),L=$r(e,U=>c(U));return l.jsx(nre,{value:{type:r,scrollHideDelay:i,scrollArea:o,viewport:d,onViewportChange:f,content:p,onContentChange:m,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:C,onScrollbarXEnabledChange:N,scrollbarY:S,onScrollbarYChange:y,scrollbarYEnabled:w,onScrollbarYEnabledChange:D,onCornerWidthChange:T,onCornerHeightChange:O},children:l.jsx(ve,{...s,ref:L,__vars:{"--sa-corner-width":a!=="xy"?"0px":`${E}px`,"--sa-corner-height":a!=="xy"?"0px":`${x}px`}})})});Pz.displayName="@mantine/core/ScrollAreaRoot";function Bz(t,e){const n=t/e;return Number.isNaN(n)?0:n}function ay(t){const e=Bz(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function Fz(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function sre(t,[e,n]){return Math.min(n,Math.max(e,t))}function ZB(t,e,n="ltr"){const r=ay(e),i=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=e.scrollbar.size-i,s=e.content-e.viewport,o=a-r,c=n==="ltr"?[0,s]:[s*-1,0],d=sre(t,c);return Fz([0,s],[0,o])(d)}function ore(t,e,n,r="ltr"){const i=ay(n),a=i/2,s=e||a,o=i-s,c=n.scrollbar.paddingStart+s,d=n.scrollbar.size-n.scrollbar.paddingEnd-o,f=n.content-n.viewport,p=r==="ltr"?[0,f]:[f*-1,0];return Fz([c,d],p)(t)}function Uz(t,e){return t>0&&t<e}function Ju(t){return t?parseInt(t,10):0}function If(t,e,{checkForDefaultPrevented:n=!0}={}){return r=>{t==null||t(r),(n===!1||!r.defaultPrevented)&&(e==null||e(r))}}const[lre,jz]=va("ScrollAreaScrollbar was not found in tree"),Gz=I.forwardRef((t,e)=>{const{sizes:n,hasThumb:r,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:o,onDragScroll:c,onWheelScroll:d,onResize:f,...p}=t,m=lo(),[g,b]=I.useState(null),S=$r(e,D=>b(D)),y=I.useRef(null),E=I.useRef(""),{viewport:T}=m,x=n.content-n.viewport,O=lf(d),C=lf(o),N=HE(f,10),w=D=>{if(y.current){const L=D.clientX-y.current.left,U=D.clientY-y.current.top;c({x:L,y:U})}};return I.useEffect(()=>{const D=L=>{const U=L.target;(g==null?void 0:g.contains(U))&&O(L,x)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[T,g,x,O]),I.useEffect(C,[n,C]),Up(g,N),Up(m.content,N),l.jsx(lre,{value:{scrollbar:g,hasThumb:r,onThumbChange:lf(i),onThumbPointerUp:lf(a),onThumbPositionChange:C,onThumbPointerDown:lf(s)},children:l.jsx("div",{...p,ref:S,"data-mantine-scrollbar":!0,style:{position:"absolute",...p.style},onPointerDown:If(t.onPointerDown,D=>{D.preventDefault(),D.button===0&&(D.target.setPointerCapture(D.pointerId),y.current=g.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w(D))}),onPointerMove:If(t.onPointerMove,w),onPointerUp:If(t.onPointerUp,D=>{const L=D.target;L.hasPointerCapture(D.pointerId)&&(D.preventDefault(),L.releasePointerCapture(D.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=E.current,y.current=null}})})}),qz=I.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:i,...a}=t,s=lo(),[o,c]=I.useState(),d=I.useRef(null),f=$r(e,d,s.onScrollbarXChange);return I.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),l.jsx(Gz,{"data-orientation":"horizontal",...a,ref:f,sizes:n,style:{...i,"--sa-thumb-width":`${ay(n)}px`},onThumbPointerDown:p=>t.onThumbPointerDown(p.x),onDragScroll:p=>t.onDragScroll(p.x),onWheelScroll:(p,m)=>{if(s.viewport){const g=s.viewport.scrollLeft+p.deltaX;t.onWheelScroll(g),Uz(g,m)&&p.preventDefault()}},onResize:()=>{d.current&&s.viewport&&o&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:Ju(o.paddingLeft),paddingEnd:Ju(o.paddingRight)}})}})});qz.displayName="@mantine/core/ScrollAreaScrollbarX";const $z=I.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:i,...a}=t,s=lo(),[o,c]=I.useState(),d=I.useRef(null),f=$r(e,d,s.onScrollbarYChange);return I.useEffect(()=>{d.current&&c(window.getComputedStyle(d.current))},[]),l.jsx(Gz,{...a,"data-orientation":"vertical",ref:f,sizes:n,style:{"--sa-thumb-height":`${ay(n)}px`,...i},onThumbPointerDown:p=>t.onThumbPointerDown(p.y),onDragScroll:p=>t.onDragScroll(p.y),onWheelScroll:(p,m)=>{if(s.viewport){const g=s.viewport.scrollTop+p.deltaY;t.onWheelScroll(g),Uz(g,m)&&p.preventDefault()}},onResize:()=>{d.current&&s.viewport&&o&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:Ju(o.paddingTop),paddingEnd:Ju(o.paddingBottom)}})}})});$z.displayName="@mantine/core/ScrollAreaScrollbarY";const sy=I.forwardRef((t,e)=>{const{orientation:n="vertical",...r}=t,{dir:i}=um(),a=lo(),s=I.useRef(null),o=I.useRef(0),[c,d]=I.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=Bz(c.viewport,c.content),p={...r,sizes:c,onSizesChange:d,hasThumb:f>0&&f<1,onThumbChange:g=>{s.current=g},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:g=>{o.current=g}},m=(g,b)=>ore(g,o.current,c,b);return n==="horizontal"?l.jsx(qz,{...p,ref:e,onThumbPositionChange:()=>{if(a.viewport&&s.current){const g=a.viewport.scrollLeft,b=ZB(g,c,i);s.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:g=>{a.viewport&&(a.viewport.scrollLeft=g)},onDragScroll:g=>{a.viewport&&(a.viewport.scrollLeft=m(g,i))}}):n==="vertical"?l.jsx($z,{...p,ref:e,onThumbPositionChange:()=>{if(a.viewport&&s.current){const g=a.viewport.scrollTop,b=ZB(g,c);c.scrollbar.size===0?s.current.style.setProperty("--thumb-opacity","0"):s.current.style.setProperty("--thumb-opacity","1"),s.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:g=>{a.viewport&&(a.viewport.scrollTop=g)},onDragScroll:g=>{a.viewport&&(a.viewport.scrollTop=m(g))}}):null});sy.displayName="@mantine/core/ScrollAreaScrollbarVisible";const sM=I.forwardRef((t,e)=>{const n=lo(),{forceMount:r,...i}=t,[a,s]=I.useState(!1),o=t.orientation==="horizontal",c=HE(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;s(o?d:f)}},10);return Up(n.viewport,c),Up(n.content,c),r||a?l.jsx(sy,{"data-state":a?"visible":"hidden",...i,ref:e}):null});sM.displayName="@mantine/core/ScrollAreaScrollbarAuto";const zz=I.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=lo(),[a,s]=I.useState(!1);return I.useEffect(()=>{const{scrollArea:o}=i;let c=0;if(o){const d=()=>{window.clearTimeout(c),s(!0)},f=()=>{c=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return o.addEventListener("pointerenter",d),o.addEventListener("pointerleave",f),()=>{window.clearTimeout(c),o.removeEventListener("pointerenter",d),o.removeEventListener("pointerleave",f)}}},[i.scrollArea,i.scrollHideDelay]),n||a?l.jsx(sM,{"data-state":a?"visible":"hidden",...r,ref:e}):null});zz.displayName="@mantine/core/ScrollAreaScrollbarHover";const cre=I.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=lo(),a=t.orientation==="horizontal",[s,o]=I.useState("hidden"),c=HE(()=>o("idle"),100);return I.useEffect(()=>{if(s==="idle"){const d=window.setTimeout(()=>o("hidden"),i.scrollHideDelay);return()=>window.clearTimeout(d)}},[s,i.scrollHideDelay]),I.useEffect(()=>{const{viewport:d}=i,f=a?"scrollLeft":"scrollTop";if(d){let p=d[f];const m=()=>{const g=d[f];p!==g&&(o("scrolling"),c()),p=g};return d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[i.viewport,a,c]),n||s!=="hidden"?l.jsx(sy,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:If(t.onPointerEnter,()=>o("interacting")),onPointerLeave:If(t.onPointerLeave,()=>o("idle"))}):null}),Aw=I.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=lo(),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=i,o=t.orientation==="horizontal";return I.useEffect(()=>(o?a(!0):s(!0),()=>{o?a(!1):s(!1)}),[o,a,s]),i.type==="hover"?l.jsx(zz,{...r,ref:e,forceMount:n}):i.type==="scroll"?l.jsx(cre,{...r,ref:e,forceMount:n}):i.type==="auto"?l.jsx(sM,{...r,ref:e,forceMount:n}):i.type==="always"?l.jsx(sy,{...r,ref:e}):null});Aw.displayName="@mantine/core/ScrollAreaScrollbar";function ure(t,e=()=>{}){let n={left:t.scrollLeft,top:t.scrollTop},r=0;return function i(){const a={left:t.scrollLeft,top:t.scrollTop},s=n.left!==a.left,o=n.top!==a.top;(s||o)&&e(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)}const Yz=I.forwardRef((t,e)=>{const{style:n,...r}=t,i=lo(),a=jz(),{onThumbPositionChange:s}=a,o=$r(e,f=>a.onThumbChange(f)),c=I.useRef(void 0),d=HE(()=>{c.current&&(c.current(),c.current=void 0)},100);return I.useEffect(()=>{const{viewport:f}=i;if(f){const p=()=>{if(d(),!c.current){const m=ure(f,s);c.current=m,s()}};return s(),f.addEventListener("scroll",p),()=>f.removeEventListener("scroll",p)}},[i.viewport,d,s]),l.jsx("div",{"data-state":a.hasThumb?"visible":"hidden",...r,ref:o,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:If(t.onPointerDownCapture,f=>{const m=f.target.getBoundingClientRect(),g=f.clientX-m.left,b=f.clientY-m.top;a.onThumbPointerDown({x:g,y:b})}),onPointerUp:If(t.onPointerUp,a.onThumbPointerUp)})});Yz.displayName="@mantine/core/ScrollAreaThumb";const ww=I.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=jz();return n||i.hasThumb?l.jsx(Yz,{ref:e,...r}):null});ww.displayName="@mantine/core/ScrollAreaThumb";const Hz=I.forwardRef(({children:t,style:e,...n},r)=>{const i=lo(),a=$r(r,i.onViewportChange);return l.jsx(ve,{...n,ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e},children:l.jsx("div",{style:{minWidth:"100%",display:"table"},ref:i.onContentChange,children:t})})});Hz.displayName="@mantine/core/ScrollAreaViewport";var oM={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const Vz={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},dre=(t,{scrollbarSize:e,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":he(e),"--scrollarea-over-scroll-behavior":n}}),Qc=Me((t,e)=>{const n=Te("ScrollArea",Vz,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,scrollbarSize:c,vars:d,type:f,scrollHideDelay:p,viewportProps:m,viewportRef:g,onScrollPositionChange:b,children:S,offsetScrollbars:y,scrollbars:E,onBottomReached:T,onTopReached:x,overscrollBehavior:O,...C}=n,[N,w]=I.useState(!1),[D,L]=I.useState(!1),[U,M]=I.useState(!1),B=ot({name:"ScrollArea",props:n,classes:oM,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:d,varsResolver:dre}),Y=I.useRef(null),H=Lne([g,Y]);return I.useEffect(()=>{if(!Y.current||y!=="present")return;const F=Y.current,k=new ResizeObserver(()=>{const{scrollHeight:P,clientHeight:z,scrollWidth:V,clientWidth:G}=F;L(P>z),M(V>G)});return k.observe(F),()=>k.disconnect()},[Y,y]),l.jsxs(Pz,{type:f==="never"?"always":f,scrollHideDelay:p,ref:e,scrollbars:E,...B("root"),...C,children:[l.jsx(Hz,{...m,...B("viewport",{style:m==null?void 0:m.style}),ref:H,"data-offset-scrollbars":y===!0?"xy":y||void 0,"data-scrollbars":E||void 0,"data-horizontal-hidden":y==="present"&&!U?"true":void 0,"data-vertical-hidden":y==="present"&&!D?"true":void 0,onScroll:F=>{var V;(V=m==null?void 0:m.onScroll)==null||V.call(m,F),b==null||b({x:F.currentTarget.scrollLeft,y:F.currentTarget.scrollTop});const{scrollTop:k,scrollHeight:P,clientHeight:z}=F.currentTarget;k-(P-z)>=0&&(T==null||T()),k===0&&(x==null||x())},children:S}),(E==="xy"||E==="x")&&l.jsx(Aw,{...B("scrollbar"),orientation:"horizontal","data-hidden":f==="never"||y==="present"&&!U?!0:void 0,forceMount:!0,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:l.jsx(ww,{...B("thumb")})}),(E==="xy"||E==="y")&&l.jsx(Aw,{...B("scrollbar"),orientation:"vertical","data-hidden":f==="never"||y==="present"&&!D?!0:void 0,forceMount:!0,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:l.jsx(ww,{...B("thumb")})}),l.jsx(ire,{...B("corner"),"data-hovered":N||void 0,"data-hidden":f==="never"||void 0})]})});Qc.displayName="@mantine/core/ScrollArea";const lM=Me((t,e)=>{const{children:n,classNames:r,styles:i,scrollbarSize:a,scrollHideDelay:s,type:o,dir:c,offsetScrollbars:d,viewportRef:f,onScrollPositionChange:p,unstyled:m,variant:g,viewportProps:b,scrollbars:S,style:y,vars:E,onBottomReached:T,onTopReached:x,...O}=Te("ScrollAreaAutosize",Vz,t);return l.jsx(ve,{...O,ref:e,style:[{display:"flex",overflow:"auto"},y],children:l.jsx(ve,{style:{display:"flex",flexDirection:"column",flex:1},children:l.jsx(Qc,{classNames:r,styles:i,scrollHideDelay:s,scrollbarSize:a,type:o,dir:c,offsetScrollbars:d,viewportRef:f,onScrollPositionChange:p,unstyled:m,variant:g,viewportProps:b,vars:E,scrollbars:S,onBottomReached:T,onTopReached:x,children:n})})})});Qc.classes=oM;lM.displayName="@mantine/core/ScrollAreaAutosize";lM.classes=oM;Qc.Autosize=lM;var Wz={root:"m_87cf2631"};const fre={__staticSelector:"UnstyledButton"},bi=Sa((t,e)=>{const n=Te("UnstyledButton",fre,t),{className:r,component:i="button",__staticSelector:a,unstyled:s,classNames:o,styles:c,style:d,...f}=n,p=ot({name:a,props:n,classes:Wz,className:r,style:d,classNames:o,styles:c,unstyled:s});return l.jsx(ve,{...p("root",{focusable:!0}),component:i,ref:e,type:i==="button"?"button":void 0,...f})});bi.classes=Wz;bi.displayName="@mantine/core/UnstyledButton";var Qz={root:"m_515a97f8"};const hre={},cM=Me((t,e)=>{const n=Te("VisuallyHidden",hre,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,...d}=n,f=ot({name:"VisuallyHidden",classes:Qz,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o});return l.jsx(ve,{component:"span",ref:e,...f("root"),...d})});cM.classes=Qz;cM.displayName="@mantine/core/VisuallyHidden";var Kz={root:"m_1b7284a3"};const pre={},mre=(t,{radius:e,shadow:n})=>({root:{"--paper-radius":e===void 0?void 0:Yn(e),"--paper-shadow":BD(n)}}),oy=Sa((t,e)=>{const n=Te("Paper",pre,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,withBorder:c,vars:d,radius:f,shadow:p,variant:m,mod:g,...b}=n,S=ot({name:"Paper",props:n,classes:Kz,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:d,varsResolver:mre});return l.jsx(ve,{ref:e,mod:[{"data-with-border":c},g],...S("root"),variant:m,...b})});oy.classes=Kz;oy.displayName="@mantine/core/Paper";function Xz(t,e){if(t==="rtl"&&(e.includes("right")||e.includes("left"))){const[n,r]=e.split("-"),i=n==="right"?"left":"right";return r===void 0?i:`${i}-${r}`}return e}function JB(t,e,n,r){return t==="center"||r==="center"?{top:e}:t==="end"?{bottom:n}:t==="start"?{top:n}:{}}function eF(t,e,n,r,i){return t==="center"||r==="center"?{left:e}:t==="end"?{[i==="ltr"?"right":"left"]:n}:t==="start"?{[i==="ltr"?"left":"right"]:n}:{}}const gre={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function _re({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:s,dir:o}){const[c,d="center"]=t.split("-"),f={width:e,height:e,transform:"rotate(45deg)",position:"absolute",[gre[c]]:r},p=-e/2;return c==="left"?{...f,...JB(d,s,n,i),right:p,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...f,...JB(d,s,n,i),left:p,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...f,...eF(d,a,n,i,o),bottom:p,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...f,...eF(d,a,n,i,o),top:p,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const uM=I.forwardRef(({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:s,arrowY:o,style:c,...d},f)=>{const{dir:p}=um();return a?l.jsx("div",{...d,ref:f,style:{...c,..._re({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:p,arrowX:s,arrowY:o})}}):null});uM.displayName="@mantine/core/FloatingArrow";var Zz={root:"m_9814e45f"};const bre={zIndex:so("modal")},vre=(t,{gradient:e,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:s})=>({root:{"--overlay-bg":e||(n!==void 0||r!==void 0)&&Rl(n||"#000",r??.6)||void 0,"--overlay-filter":i?`blur(${he(i)})`:void 0,"--overlay-radius":a===void 0?void 0:Yn(a),"--overlay-z-index":s==null?void 0:s.toString()}}),jp=Sa((t,e)=>{const n=Te("Overlay",bre,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,fixed:d,center:f,children:p,radius:m,zIndex:g,gradient:b,blur:S,color:y,backgroundOpacity:E,mod:T,...x}=n,O=ot({name:"Overlay",props:n,classes:Zz,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:vre});return l.jsx(ve,{ref:e,...O("root"),mod:[{center:f,fixed:d},T],...x,children:p})});jp.classes=Zz;jp.displayName="@mantine/core/Overlay";function KC(t){const e=document.createElement("div");return e.setAttribute("data-portal","true"),typeof t.className=="string"&&e.classList.add(...t.className.split(" ").filter(Boolean)),typeof t.style=="object"&&Object.assign(e.style,t.style),typeof t.id=="string"&&e.setAttribute("id",t.id),e}function Sre({target:t,reuseTargetNode:e,...n}){if(t)return typeof t=="string"?document.querySelector(t)||KC(n):t;if(e){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const i=KC(n);return i.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(i),i}return KC(n)}const Ere={},Jz=Me((t,e)=>{const{children:n,target:r,reuseTargetNode:i,...a}=Te("Portal",Ere,t),[s,o]=I.useState(!1),c=I.useRef(null);return lm(()=>(o(!0),c.current=Sre({target:r,reuseTargetNode:i,...a}),BS(e,c.current),!r&&!i&&c.current&&document.body.appendChild(c.current),()=>{!r&&!i&&c.current&&document.body.removeChild(c.current)}),[r]),!s||!c.current?null:ey.createPortal(l.jsx(l.Fragment,{children:n}),c.current)});Jz.displayName="@mantine/core/Portal";const Xf=Me(({withinPortal:t=!0,children:e,...n},r)=>nz()==="test"||!t?l.jsx(l.Fragment,{children:e}):l.jsx(Jz,{ref:r,...n,children:e}));Xf.displayName="@mantine/core/OptionalPortal";const Ig=t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${t==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),lv={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Ig("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Ig("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Ig("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Ig("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Ig("top"),common:{transformOrigin:"top right"}}},tF={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function yre({transition:t,state:e,duration:n,timingFunction:r}){const i={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof t=="string"?t in lv?{transitionProperty:lv[t].transitionProperty,...i,...lv[t].common,...lv[t][tF[e]]}:{}:{transitionProperty:t.transitionProperty,...i,...t.common,...t[tF[e]]}}function Tre({duration:t,exitDuration:e,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:s,onExited:o,enterDelay:c,exitDelay:d}){const f=Fi(),p=QE(),m=f.respectReducedMotion?p:!1,[g,b]=I.useState(m?0:t),[S,y]=I.useState(r?"entered":"exited"),E=I.useRef(-1),T=I.useRef(-1),x=I.useRef(-1),O=N=>{const w=N?i:a,D=N?s:o;window.clearTimeout(E.current);const L=m?0:N?t:e;b(L),L===0?(typeof w=="function"&&w(),typeof D=="function"&&D(),y(N?"entered":"exited")):x.current=requestAnimationFrame(()=>{Kg.flushSync(()=>{y(N?"pre-entering":"pre-exiting")}),x.current=requestAnimationFrame(()=>{typeof w=="function"&&w(),y(N?"entering":"exiting"),E.current=window.setTimeout(()=>{typeof D=="function"&&D(),y(N?"entered":"exited")},L)})})},C=N=>{if(window.clearTimeout(T.current),typeof(N?c:d)!="number"){O(N);return}T.current=window.setTimeout(()=>{O(N)},N?c:d)};return ro(()=>{C(r)},[r]),I.useEffect(()=>()=>{window.clearTimeout(E.current),cancelAnimationFrame(x.current)},[]),{transitionDuration:g,transitionStatus:S,transitionTimingFunction:n||"ease"}}function Kc({keepMounted:t,transition:e="fade",duration:n=250,exitDuration:r=n,mounted:i,children:a,timingFunction:s="ease",onExit:o,onEntered:c,onEnter:d,onExited:f,enterDelay:p,exitDelay:m}){const g=nz(),{transitionDuration:b,transitionStatus:S,transitionTimingFunction:y}=Tre({mounted:i,exitDuration:r,duration:n,timingFunction:s,onExit:o,onEntered:c,onEnter:d,onExited:f,enterDelay:p,exitDelay:m});return b===0||g==="test"?i?l.jsx(l.Fragment,{children:a({})}):t?a({display:"none"}):null:S==="exited"?t?a({display:"none"}):null:l.jsx(l.Fragment,{children:a(yre({transition:e,duration:b,state:S,timingFunction:y}))})}Kc.displayName="@mantine/core/Transition";const[xre,eY]=va("Popover component was not found in the tree");function ly({children:t,active:e=!0,refProp:n="ref",innerRef:r}){const i=ree(e),a=$r(i,r);return yd(t)?I.cloneElement(t,{[n]:a}):t}function tY(t){return l.jsx(cM,{tabIndex:-1,"data-autofocus":!0,...t})}ly.displayName="@mantine/core/FocusTrap";tY.displayName="@mantine/core/FocusTrapInitialFocus";ly.InitialFocus=tY;var nY={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const Cre={},dM=Me((t,e)=>{var y,E,T,x;const n=Te("PopoverDropdown",Cre,t),{className:r,style:i,vars:a,children:s,onKeyDownCapture:o,variant:c,classNames:d,styles:f,...p}=n,m=eY(),g=K5({opened:m.opened,shouldReturnFocus:m.returnFocus}),b=m.withRoles?{"aria-labelledby":m.getTargetId(),id:m.getDropdownId(),role:"dialog",tabIndex:-1}:{},S=$r(e,m.floating);return m.disabled?null:l.jsx(Xf,{...m.portalProps,withinPortal:m.withinPortal,children:l.jsx(Kc,{mounted:m.opened,...m.transitionProps,transition:((y=m.transitionProps)==null?void 0:y.transition)||"fade",duration:((E=m.transitionProps)==null?void 0:E.duration)??150,keepMounted:m.keepMounted,exitDuration:typeof((T=m.transitionProps)==null?void 0:T.exitDuration)=="number"?m.transitionProps.exitDuration:(x=m.transitionProps)==null?void 0:x.duration,children:O=>l.jsx(ly,{active:m.trapFocus&&m.opened,innerRef:S,children:l.jsxs(ve,{...b,...p,variant:c,onKeyDownCapture:$J(()=>{var C,N;(C=m.onClose)==null||C.call(m),(N=m.onDismiss)==null||N.call(m)},{active:m.closeOnEscape,onTrigger:g,onKeyDown:o}),"data-position":m.placement,"data-fixed":m.floatingStrategy==="fixed"||void 0,...m.getStyles("dropdown",{className:r,props:n,classNames:d,styles:f,style:[{...O,zIndex:m.zIndex,top:m.y??0,left:m.x??0,width:m.width==="target"?void 0:he(m.width)},m.resolvedStyles.dropdown,f==null?void 0:f.dropdown,i]}),children:[s,l.jsx(uM,{ref:m.arrowRef,arrowX:m.arrowX,arrowY:m.arrowY,visible:m.withArrow,position:m.placement,arrowSize:m.arrowSize,arrowRadius:m.arrowRadius,arrowOffset:m.arrowOffset,arrowPosition:m.arrowPosition,...m.getStyles("arrow",{props:n,classNames:d,styles:f})})]})})})})});dM.classes=nY;dM.displayName="@mantine/core/PopoverDropdown";const Ore={refProp:"ref",popupType:"dialog"},rY=Me((t,e)=>{const{children:n,refProp:r,popupType:i,...a}=Te("PopoverTarget",Ore,t);if(!yd(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=a,o=eY(),c=$r(o.reference,KE(n),e),d=o.withRoles?{"aria-haspopup":i,"aria-expanded":o.opened,"aria-controls":o.getDropdownId(),id:o.getTargetId()}:{};return I.cloneElement(n,{...s,...d,...o.targetProps,className:Tr(o.targetProps.className,s.className,n.props.className),[r]:c,...o.controlled?null:{onClick:o.onToggle}})});rY.displayName="@mantine/core/PopoverTarget";function iY({opened:t,floating:e,position:n,positionDependencies:r}){const[i,a]=I.useState(0);I.useEffect(()=>{if(e.refs.reference.current&&e.refs.floating.current&&t)return Rne(e.refs.reference.current,e.refs.floating.current,e.update)},[e.refs.reference.current,e.refs.floating.current,t,i,n]),ro(()=>{e.update()},r),ro(()=>{a(s=>s+1)},[t])}function Rre(t){if(t===void 0)return{shift:!0,flip:!0};const e={...t};return t.shift===void 0&&(e.shift=!0),t.flip===void 0&&(e.flip=!0),e}function Nre(t,e){const n=Rre(t.middlewares),r=[Iz(t.offset)];return n.shift&&r.push(tM(typeof n.shift=="boolean"?{limiter:YB(),padding:5}:{limiter:YB(),padding:5,...n.shift})),n.flip&&r.push(typeof n.flip=="boolean"?qS():qS(n.flip)),n.inline&&r.push(typeof n.inline=="boolean"?f_():f_(n.inline)),r.push(Dz({element:t.arrowRef,padding:t.arrowOffset})),(n.size||t.width==="target")&&r.push(Mne({...typeof n.size=="boolean"?{}:n.size,apply({rects:i,availableWidth:a,availableHeight:s,...o}){var f;const d=((f=e().refs.floating.current)==null?void 0:f.style)??{};n.size&&(typeof n.size=="object"&&n.size.apply?n.size.apply({rects:i,availableWidth:a,availableHeight:s,...o}):Object.assign(d,{maxWidth:`${a}px`,maxHeight:`${s}px`})),t.width==="target"&&Object.assign(d,{width:`${i.reference.width}px`})}})),r}function Are(t){const[e,n]=na({value:t.opened,defaultValue:t.defaultOpened,finalValue:!1,onChange:t.onChange}),r=I.useRef(e),i=()=>{e&&n(!1)},a=()=>n(!e),s=aM({strategy:t.strategy,placement:t.position,middleware:Nre(t,()=>s)});return iY({opened:e,position:t.position,positionDependencies:t.positionDependencies||[],floating:s}),ro(()=>{var o;(o=t.onPositionChange)==null||o.call(t,s.placement)},[s.placement]),ro(()=>{var o,c;e!==r.current&&(e?(c=t.onOpen)==null||c.call(t):(o=t.onClose)==null||o.call(t)),r.current=e},[e,t.onClose,t.onOpen]),{floating:s,controlled:typeof t.opened=="boolean",opened:e,onClose:i,onToggle:a}}const wre={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:so("popover"),__staticSelector:"Popover",width:"max-content"},Ire=(t,{radius:e,shadow:n})=>({dropdown:{"--popover-radius":e===void 0?void 0:Yn(e),"--popover-shadow":BD(n)}});function ai(t){var Re,et,yt,Mt,kt,Zt;const e=Te("Popover",wre,t),{children:n,position:r,offset:i,onPositionChange:a,positionDependencies:s,opened:o,transitionProps:c,onExitTransitionEnd:d,onEnterTransitionEnd:f,width:p,middlewares:m,withArrow:g,arrowSize:b,arrowOffset:S,arrowRadius:y,arrowPosition:E,unstyled:T,classNames:x,styles:O,closeOnClickOutside:C,withinPortal:N,portalProps:w,closeOnEscape:D,clickOutsideEvents:L,trapFocus:U,onClose:M,onDismiss:B,onOpen:Y,onChange:H,zIndex:F,radius:k,shadow:P,id:z,defaultOpened:V,__staticSelector:G,withRoles:Q,disabled:Z,returnFocus:X,variant:ue,keepMounted:fe,vars:be,floatingStrategy:ye,withOverlay:Ne,overlayProps:ke,...Oe}=e,oe=ot({name:G,props:e,classes:nY,classNames:x,styles:O,unstyled:T,rootSelector:"dropdown",vars:be,varsResolver:Ire}),{resolvedStyles:Se}=oo({classNames:x,styles:O,props:e}),le=I.useRef(null),[Ge,lt]=I.useState(null),[xt,Ae]=I.useState(null),{dir:Be}=um(),Xe=ja(z),je=Are({middlewares:m,width:p,position:Xz(Be,r),offset:typeof i=="number"?i+(g?b/2:0):i,arrowRef:le,arrowOffset:S,onPositionChange:a,positionDependencies:s,opened:o,defaultOpened:V,onChange:H,onOpen:Y,onClose:M,onDismiss:B,strategy:ye});WJ(()=>{C&&(je.onClose(),B==null||B())},L,[Ge,xt]);const Ze=I.useCallback(zt=>{lt(zt),je.floating.refs.setReference(zt)},[je.floating.refs.setReference]),Et=I.useCallback(zt=>{Ae(zt),je.floating.refs.setFloating(zt)},[je.floating.refs.setFloating]),vt=I.useCallback(()=>{var zt;(zt=c==null?void 0:c.onExited)==null||zt.call(c),d==null||d()},[c==null?void 0:c.onExited,d]),xe=I.useCallback(()=>{var zt;(zt=c==null?void 0:c.onEntered)==null||zt.call(c),f==null||f()},[c==null?void 0:c.onEntered,f]);return l.jsxs(xre,{value:{returnFocus:X,disabled:Z,controlled:je.controlled,reference:Ze,floating:Et,x:je.floating.x,y:je.floating.y,arrowX:(yt=(et=(Re=je.floating)==null?void 0:Re.middlewareData)==null?void 0:et.arrow)==null?void 0:yt.x,arrowY:(Zt=(kt=(Mt=je.floating)==null?void 0:Mt.middlewareData)==null?void 0:kt.arrow)==null?void 0:Zt.y,opened:je.opened,arrowRef:le,transitionProps:{...c,onExited:vt,onEntered:xe},width:p,withArrow:g,arrowSize:b,arrowOffset:S,arrowRadius:y,arrowPosition:E,placement:je.floating.placement,trapFocus:U,withinPortal:N,portalProps:w,zIndex:F,radius:k,shadow:P,closeOnEscape:D,onDismiss:B,onClose:je.onClose,onToggle:je.onToggle,getTargetId:()=>`${Xe}-target`,getDropdownId:()=>`${Xe}-dropdown`,withRoles:Q,targetProps:Oe,__staticSelector:G,classNames:x,styles:O,unstyled:T,variant:ue,keepMounted:fe,getStyles:oe,resolvedStyles:Se,floatingStrategy:ye},children:[n,Ne&&l.jsx(Kc,{transition:"fade",mounted:je.opened,duration:(c==null?void 0:c.duration)||250,exitDuration:(c==null?void 0:c.exitDuration)||250,children:zt=>l.jsx(Xf,{withinPortal:N,children:l.jsx(jp,{...ke,...oe("overlay",{className:ke==null?void 0:ke.className,style:[zt,ke==null?void 0:ke.style]})})})})]})}ai.Target=rY;ai.Dropdown=dM;ai.displayName="@mantine/core/Popover";ai.extend=t=>t;var Xo={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const aY=I.forwardRef(({className:t,...e},n)=>l.jsxs(ve,{component:"span",className:Tr(Xo.barsLoader,t),...e,ref:n,children:[l.jsx("span",{className:Xo.bar}),l.jsx("span",{className:Xo.bar}),l.jsx("span",{className:Xo.bar})]}));aY.displayName="@mantine/core/Bars";const sY=I.forwardRef(({className:t,...e},n)=>l.jsxs(ve,{component:"span",className:Tr(Xo.dotsLoader,t),...e,ref:n,children:[l.jsx("span",{className:Xo.dot}),l.jsx("span",{className:Xo.dot}),l.jsx("span",{className:Xo.dot})]}));sY.displayName="@mantine/core/Dots";const oY=I.forwardRef(({className:t,...e},n)=>l.jsx(ve,{component:"span",className:Tr(Xo.ovalLoader,t),...e,ref:n}));oY.displayName="@mantine/core/Oval";const lY={bars:aY,oval:oY,dots:sY},Dre={loaders:lY,type:"oval"},Mre=(t,{size:e,color:n})=>({root:{"--loader-size":Ut(e,"loader-size"),"--loader-color":n?tr(n,t):void 0}}),Yl=Me((t,e)=>{const n=Te("Loader",Dre,t),{size:r,color:i,type:a,vars:s,className:o,style:c,classNames:d,styles:f,unstyled:p,loaders:m,variant:g,children:b,...S}=n,y=ot({name:"Loader",props:n,classes:Xo,className:o,style:c,classNames:d,styles:f,unstyled:p,vars:s,varsResolver:Mre});return b?l.jsx(ve,{...y("root"),ref:e,...S,children:b}):l.jsx(ve,{...y("root"),ref:e,component:m[a],variant:g,size:r,...S})});Yl.defaultLoaders=lY;Yl.classes=Xo;Yl.displayName="@mantine/core/Loader";var hm={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const nF={orientation:"horizontal"},Lre=(t,{borderWidth:e})=>({group:{"--ai-border-width":he(e)}}),fM=Me((t,e)=>{const n=Te("ActionIconGroup",nF,t),{className:r,style:i,classNames:a,styles:s,unstyled:o,orientation:c,vars:d,borderWidth:f,variant:p,mod:m,...g}=Te("ActionIconGroup",nF,t),b=ot({name:"ActionIconGroup",props:n,classes:hm,className:r,style:i,classNames:a,styles:s,unstyled:o,vars:d,varsResolver:Lre,rootSelector:"group"});return l.jsx(ve,{...b("group"),ref:e,variant:p,mod:[{"data-orientation":c},m],role:"group",...g})});fM.classes=hm;fM.displayName="@mantine/core/ActionIconGroup";const rF={},kre=(t,{radius:e,color:n,gradient:r,variant:i,autoContrast:a,size:s})=>{const o=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:i||"filled",autoContrast:a});return{groupSection:{"--section-height":Ut(s,"section-height"),"--section-padding-x":Ut(s,"section-padding-x"),"--section-fz":Rr(s),"--section-radius":e===void 0?void 0:Yn(e),"--section-bg":n||i?o.background:void 0,"--section-color":o.color,"--section-bd":n||i?o.border:void 0}}},hM=Me((t,e)=>{const n=Te("ActionIconGroupSection",rF,t),{className:r,style:i,classNames:a,styles:s,unstyled:o,vars:c,variant:d,gradient:f,radius:p,autoContrast:m,...g}=Te("ActionIconGroupSection",rF,t),b=ot({name:"ActionIconGroupSection",props:n,classes:hm,className:r,style:i,classNames:a,styles:s,unstyled:o,vars:c,varsResolver:kre,rootSelector:"groupSection"});return l.jsx(ve,{...b("groupSection"),ref:e,variant:d,...g})});hM.classes=hm;hM.displayName="@mantine/core/ActionIconGroupSection";const Pre={},Bre=(t,{size:e,radius:n,variant:r,gradient:i,color:a,autoContrast:s})=>{const o=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:i,variant:r||"filled",autoContrast:s});return{root:{"--ai-size":Ut(e,"ai-size"),"--ai-radius":n===void 0?void 0:Yn(n),"--ai-bg":a||r?o.background:void 0,"--ai-hover":a||r?o.hover:void 0,"--ai-hover-color":a||r?o.hoverColor:void 0,"--ai-color":o.color,"--ai-bd":a||r?o.border:void 0}}},Pr=Sa((t,e)=>{const n=Te("ActionIcon",Pre,t),{className:r,unstyled:i,variant:a,classNames:s,styles:o,style:c,loading:d,loaderProps:f,size:p,color:m,radius:g,__staticSelector:b,gradient:S,vars:y,children:E,disabled:T,"data-disabled":x,autoContrast:O,mod:C,...N}=n,w=ot({name:["ActionIcon",b],props:n,className:r,style:c,classes:hm,classNames:s,styles:o,unstyled:i,vars:y,varsResolver:Bre});return l.jsxs(bi,{...w("root",{active:!T&&!d&&!x}),...N,unstyled:i,variant:a,size:p,disabled:T||d,ref:e,mod:[{loading:d,disabled:T||x},C],children:[l.jsx(Kc,{mounted:!!d,transition:"slide-down",duration:150,children:D=>l.jsx(ve,{component:"span",...w("loader",{style:D}),"aria-hidden":!0,children:l.jsx(Yl,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...f})})}),l.jsx(ve,{component:"span",mod:{loading:d},...w("icon"),children:E})]})});Pr.classes=hm;Pr.displayName="@mantine/core/ActionIcon";Pr.Group=fM;Pr.GroupSection=hM;const cY=I.forwardRef(({size:t="var(--cb-icon-size, 70%)",style:e,...n},r)=>l.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:t,height:t},ref:r,...n,children:l.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));cY.displayName="@mantine/core/CloseIcon";var uY={root:"m_86a44da5","root--subtle":"m_220c80f2"};const Fre={variant:"subtle"},Ure=(t,{size:e,radius:n,iconSize:r})=>({root:{"--cb-size":Ut(e,"cb-size"),"--cb-radius":n===void 0?void 0:Yn(n),"--cb-icon-size":he(r)}}),Xc=Sa((t,e)=>{const n=Te("CloseButton",Fre,t),{iconSize:r,children:i,vars:a,radius:s,className:o,classNames:c,style:d,styles:f,unstyled:p,"data-disabled":m,disabled:g,variant:b,icon:S,mod:y,__staticSelector:E,...T}=n,x=ot({name:E||"CloseButton",props:n,className:o,style:d,classes:uY,classNames:c,styles:f,unstyled:p,vars:a,varsResolver:Ure});return l.jsxs(bi,{ref:e,...T,unstyled:p,variant:b,disabled:g,mod:[{disabled:g||m},y],...x("root",{variant:b,active:!g&&!m}),children:[S||l.jsx(cY,{}),i]})});Xc.classes=uY;Xc.displayName="@mantine/core/CloseButton";function jre(t){return I.Children.toArray(t).filter(Boolean)}var dY={root:"m_4081bf90"};const Gre={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},qre=(t,{grow:e,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:s},{childWidth:o})=>({root:{"--group-child-width":e&&n?o:void 0,"--group-gap":zl(r),"--group-align":i,"--group-justify":a,"--group-wrap":s}}),pt=Me((t,e)=>{const n=Te("Group",Gre,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,children:c,gap:d,align:f,justify:p,wrap:m,grow:g,preventGrowOverflow:b,vars:S,variant:y,__size:E,mod:T,...x}=n,O=jre(c),C=O.length,N=zl(d??"md"),D={childWidth:`calc(${100/C}% - (${N} - ${N} / ${C}))`},L=ot({name:"Group",props:n,stylesCtx:D,className:i,style:a,classes:dY,classNames:r,styles:s,unstyled:o,vars:S,varsResolver:qre});return l.jsx(ve,{...L("root"),ref:e,variant:y,mod:[{grow:g},T],size:E,...x,children:O})});pt.classes=dY;pt.displayName="@mantine/core/Group";const[$re,Zc]=va("ModalBase component was not found in tree");function zre({opened:t,transitionDuration:e}){const[n,r]=I.useState(t),i=I.useRef(-1),s=QE()?0:e;return I.useEffect(()=>(t?(r(!0),window.clearTimeout(i.current)):s===0?r(!1):i.current=window.setTimeout(()=>r(!1),s),()=>window.clearTimeout(i.current)),[t,s]),n}function Yre({id:t,transitionProps:e,opened:n,trapFocus:r,closeOnEscape:i,onClose:a,returnFocus:s}){const o=ja(t),[c,d]=I.useState(!1),[f,p]=I.useState(!1),m=typeof(e==null?void 0:e.duration)=="number"?e==null?void 0:e.duration:200,g=zre({opened:n,transitionDuration:m});return PS("keydown",b=>{var S;b.key==="Escape"&&i&&!b.isComposing&&n&&((S=b.target)==null?void 0:S.getAttribute("data-mantine-stop-propagation"))!=="true"&&a()},{capture:!0}),K5({opened:n,shouldReturnFocus:r&&s}),{_id:o,titleMounted:c,bodyMounted:f,shouldLockScroll:g,setTitleMounted:d,setBodyMounted:p}}const fY=I.forwardRef(({keepMounted:t,opened:e,onClose:n,id:r,transitionProps:i,onExitTransitionEnd:a,onEnterTransitionEnd:s,trapFocus:o,closeOnEscape:c,returnFocus:d,closeOnClickOutside:f,withinPortal:p,portalProps:m,lockScroll:g,children:b,zIndex:S,shadow:y,padding:E,__vars:T,unstyled:x,removeScrollProps:O,...C},N)=>{const{_id:w,titleMounted:D,bodyMounted:L,shouldLockScroll:U,setTitleMounted:M,setBodyMounted:B}=Yre({id:r,transitionProps:i,opened:e,trapFocus:o,closeOnEscape:c,onClose:n,returnFocus:d}),{key:Y,...H}=O||{};return l.jsx(Xf,{...m,withinPortal:p,children:l.jsx($re,{value:{opened:e,onClose:n,closeOnClickOutside:f,onExitTransitionEnd:a,onEnterTransitionEnd:s,transitionProps:{...i,keepMounted:t},getTitleId:()=>`${w}-title`,getBodyId:()=>`${w}-body`,titleMounted:D,bodyMounted:L,setTitleMounted:M,setBodyMounted:B,trapFocus:o,closeOnEscape:c,zIndex:S,unstyled:x},children:l.jsx(Bp,{enabled:U&&g,...H,children:l.jsx(ve,{ref:N,...C,__vars:{...T,"--mb-z-index":(S||so("modal")).toString(),"--mb-shadow":BD(y),"--mb-padding":zl(E)},children:b})},Y)})})});fY.displayName="@mantine/core/ModalBase";function Hre(){const t=Zc();return I.useEffect(()=>(t.setBodyMounted(!0),()=>t.setBodyMounted(!1)),[]),t.getBodyId()}var Gp={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const hY=I.forwardRef(({className:t,...e},n)=>{const r=Hre(),i=Zc();return l.jsx(ve,{ref:n,...e,id:r,className:Tr({[Gp.body]:!i.unstyled},t)})});hY.displayName="@mantine/core/ModalBaseBody";const pY=I.forwardRef(({className:t,onClick:e,...n},r)=>{const i=Zc();return l.jsx(Xc,{ref:r,...n,onClick:a=>{i.onClose(),e==null||e(a)},className:Tr({[Gp.close]:!i.unstyled},t),unstyled:i.unstyled})});pY.displayName="@mantine/core/ModalBaseCloseButton";const mY=I.forwardRef(({transitionProps:t,className:e,innerProps:n,onKeyDown:r,style:i,...a},s)=>{const o=Zc();return l.jsx(Kc,{mounted:o.opened,transition:"pop",...o.transitionProps,onExited:()=>{var c,d,f;(c=o.onExitTransitionEnd)==null||c.call(o),(f=(d=o.transitionProps)==null?void 0:d.onExited)==null||f.call(d)},onEntered:()=>{var c,d,f;(c=o.onEnterTransitionEnd)==null||c.call(o),(f=(d=o.transitionProps)==null?void 0:d.onEntered)==null||f.call(d)},...t,children:c=>l.jsx("div",{...n,className:Tr({[Gp.inner]:!o.unstyled},n.className),children:l.jsx(ly,{active:o.opened&&o.trapFocus,innerRef:s,children:l.jsx(oy,{...a,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":o.bodyMounted?o.getBodyId():void 0,"aria-labelledby":o.titleMounted?o.getTitleId():void 0,style:[i,c],className:Tr({[Gp.content]:!o.unstyled},e),unstyled:o.unstyled,children:a.children})})})})});mY.displayName="@mantine/core/ModalBaseContent";const gY=I.forwardRef(({className:t,...e},n)=>{const r=Zc();return l.jsx(ve,{component:"header",ref:n,className:Tr({[Gp.header]:!r.unstyled},t),...e})});gY.displayName="@mantine/core/ModalBaseHeader";const Vre={duration:200,timingFunction:"ease",transition:"fade"};function Wre(t){const e=Zc();return{...Vre,...e.transitionProps,...t}}const _Y=I.forwardRef(({onClick:t,transitionProps:e,style:n,visible:r,...i},a)=>{const s=Zc(),o=Wre(e);return l.jsx(Kc,{mounted:r!==void 0?r:s.opened,...o,transition:"fade",children:c=>l.jsx(jp,{ref:a,fixed:!0,style:[n,c],zIndex:s.zIndex,unstyled:s.unstyled,onClick:d=>{t==null||t(d),s.closeOnClickOutside&&s.onClose()},...i})})});_Y.displayName="@mantine/core/ModalBaseOverlay";function Qre(){const t=Zc();return I.useEffect(()=>(t.setTitleMounted(!0),()=>t.setTitleMounted(!1)),[]),t.getTitleId()}const bY=I.forwardRef(({className:t,...e},n)=>{const r=Qre(),i=Zc();return l.jsx(ve,{component:"h2",ref:n,className:Tr({[Gp.title]:!i.unstyled},t),...e,id:r})});bY.displayName="@mantine/core/ModalBaseTitle";function Kre({children:t}){return l.jsx(l.Fragment,{children:t})}const[Xre,Zre]=om({size:"sm"}),Jre={},vY=Me((t,e)=>{const n=Te("InputClearButton",Jre,t),{size:r,variant:i,vars:a,classNames:s,styles:o,...c}=n,d=Zre(),{resolvedClassNames:f,resolvedStyles:p}=oo({classNames:s,styles:o,props:n});return l.jsx(Xc,{variant:i||"transparent",ref:e,size:r||(d==null?void 0:d.size)||"sm",classNames:f,styles:p,__staticSelector:"InputClearButton",...c})});vY.displayName="@mantine/core/InputClearButton";const[eie,pm]=om({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var co={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const iF={},tie=(t,{size:e})=>({description:{"--input-description-size":e===void 0?void 0:`calc(${Rr(e)} - ${he(2)})`}}),cy=Me((t,e)=>{const n=Te("InputDescription",iF,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,size:d,__staticSelector:f,__inheritStyles:p=!0,variant:m,...g}=Te("InputDescription",iF,n),b=pm(),S=ot({name:["InputWrapper",f],props:n,classes:co,className:i,style:a,classNames:r,styles:s,unstyled:o,rootSelector:"description",vars:c,varsResolver:tie}),y=p&&(b==null?void 0:b.getStyles)||S;return l.jsx(ve,{component:"p",ref:e,variant:m,size:d,...y("description",b!=null&&b.getStyles?{className:i,style:a}:void 0),...g})});cy.classes=co;cy.displayName="@mantine/core/InputDescription";const nie={},rie=(t,{size:e})=>({error:{"--input-error-size":e===void 0?void 0:`calc(${Rr(e)} - ${he(2)})`}}),uy=Me((t,e)=>{const n=Te("InputError",nie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,size:d,__staticSelector:f,__inheritStyles:p=!0,variant:m,...g}=n,b=ot({name:["InputWrapper",f],props:n,classes:co,className:i,style:a,classNames:r,styles:s,unstyled:o,rootSelector:"error",vars:c,varsResolver:rie}),S=pm(),y=p&&(S==null?void 0:S.getStyles)||b;return l.jsx(ve,{component:"p",ref:e,variant:m,size:d,...y("error",S!=null&&S.getStyles?{className:i,style:a}:void 0),...g})});uy.classes=co;uy.displayName="@mantine/core/InputError";const aF={labelElement:"label"},iie=(t,{size:e})=>({label:{"--input-label-size":Rr(e),"--input-asterisk-color":void 0}}),dy=Me((t,e)=>{const n=Te("InputLabel",aF,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,labelElement:d,size:f,required:p,htmlFor:m,onMouseDown:g,children:b,__staticSelector:S,variant:y,mod:E,...T}=Te("InputLabel",aF,n),x=ot({name:["InputWrapper",S],props:n,classes:co,className:i,style:a,classNames:r,styles:s,unstyled:o,rootSelector:"label",vars:c,varsResolver:iie}),O=pm(),C=(O==null?void 0:O.getStyles)||x;return l.jsxs(ve,{...C("label",O!=null&&O.getStyles?{className:i,style:a}:void 0),component:d,variant:y,size:f,ref:e,htmlFor:d==="label"?m:void 0,mod:[{required:p},E],onMouseDown:N=>{g==null||g(N),!N.defaultPrevented&&N.detail>1&&N.preventDefault()},...T,children:[b,p&&l.jsx("span",{...C("required"),"aria-hidden":!0,children:" *"})]})});dy.classes=co;dy.displayName="@mantine/core/InputLabel";const sF={},pM=Me((t,e)=>{const n=Te("InputPlaceholder",sF,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,__staticSelector:d,variant:f,error:p,mod:m,...g}=Te("InputPlaceholder",sF,n),b=ot({name:["InputPlaceholder",d],props:n,classes:co,className:i,style:a,classNames:r,styles:s,unstyled:o,rootSelector:"placeholder"});return l.jsx(ve,{...b("placeholder"),mod:[{error:!!p},m],component:"span",variant:f,ref:e,...g})});pM.classes=co;pM.displayName="@mantine/core/InputPlaceholder";function aie(t,{hasDescription:e,hasError:n}){const r=t.findIndex(c=>c==="input"),i=t.slice(0,r),a=t.slice(r+1),s=e&&i.includes("description")||n&&i.includes("error");return{offsetBottom:e&&a.includes("description")||n&&a.includes("error"),offsetTop:s}}const sie={labelElement:"label",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},oie=(t,{size:e})=>({label:{"--input-label-size":Rr(e),"--input-asterisk-color":void 0},error:{"--input-error-size":e===void 0?void 0:`calc(${Rr(e)} - ${he(2)})`},description:{"--input-description-size":e===void 0?void 0:`calc(${Rr(e)} - ${he(2)})`}}),mM=Me((t,e)=>{const n=Te("InputWrapper",sie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,size:d,variant:f,__staticSelector:p,inputContainer:m,inputWrapperOrder:g,label:b,error:S,description:y,labelProps:E,descriptionProps:T,errorProps:x,labelElement:O,children:C,withAsterisk:N,id:w,required:D,__stylesApiProps:L,mod:U,...M}=n,B=ot({name:["InputWrapper",p],props:L||n,classes:co,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:oie}),Y={size:d,variant:f,__staticSelector:p},H=ja(w),F=typeof N=="boolean"?N:D,k=(x==null?void 0:x.id)||`${H}-error`,P=(T==null?void 0:T.id)||`${H}-description`,z=H,V=!!S&&typeof S!="boolean",G=!!y,Q=`${V?k:""} ${G?P:""}`,Z=Q.trim().length>0?Q.trim():void 0,X=(E==null?void 0:E.id)||`${H}-label`,ue=b&&l.jsx(dy,{labelElement:O,id:X,htmlFor:z,required:F,...Y,...E,children:b},"label"),fe=G&&l.jsx(cy,{...T,...Y,size:(T==null?void 0:T.size)||Y.size,id:(T==null?void 0:T.id)||P,children:y},"description"),be=l.jsx(I.Fragment,{children:m(C)},"input"),ye=V&&I.createElement(uy,{...x,...Y,size:(x==null?void 0:x.size)||Y.size,key:"error",id:(x==null?void 0:x.id)||k},S),Ne=g.map(ke=>{switch(ke){case"label":return ue;case"input":return be;case"description":return fe;case"error":return ye;default:return null}});return l.jsx(eie,{value:{getStyles:B,describedBy:Z,inputId:z,labelId:X,...aie(g,{hasDescription:G,hasError:V})},children:l.jsx(ve,{ref:e,variant:f,size:d,mod:[{error:!!S},U],...B("root"),...M,children:Ne})})});mM.classes=co;mM.displayName="@mantine/core/InputWrapper";const lie={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},cie=(t,e,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Ut(e.size,"input-height"),"--input-fz":Rr(e.size),"--input-radius":e.radius===void 0?void 0:Yn(e.radius),"--input-left-section-width":e.leftSectionWidth!==void 0?he(e.leftSectionWidth):void 0,"--input-right-section-width":e.rightSectionWidth!==void 0?he(e.rightSectionWidth):void 0,"--input-padding-y":e.multiline?Ut(e.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":e.leftSectionPointerEvents,"--input-right-section-pointer-events":e.rightSectionPointerEvents}}),Sr=Sa((t,e)=>{const n=Te("Input",lie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,required:c,__staticSelector:d,__stylesApiProps:f,size:p,wrapperProps:m,error:g,disabled:b,leftSection:S,leftSectionProps:y,leftSectionWidth:E,rightSection:T,rightSectionProps:x,rightSectionWidth:O,rightSectionPointerEvents:C,leftSectionPointerEvents:N,variant:w,vars:D,pointer:L,multiline:U,radius:M,id:B,withAria:Y,withErrorStyles:H,mod:F,inputSize:k,__clearSection:P,__clearable:z,__defaultRightSection:V,...G}=n,{styleProps:Q,rest:Z}=p0(G),X=pm(),ue={offsetBottom:X==null?void 0:X.offsetBottom,offsetTop:X==null?void 0:X.offsetTop},fe=ot({name:["Input",d],props:f||n,classes:co,className:i,style:a,classNames:r,styles:s,unstyled:o,stylesCtx:ue,rootSelector:"wrapper",vars:D,varsResolver:cie}),be=Y?{required:c,disabled:b,"aria-invalid":!!g,"aria-describedby":X==null?void 0:X.describedBy,id:(X==null?void 0:X.inputId)||B}:{},ye=T||z&&P||V;return l.jsx(Xre,{value:{size:p||"sm"},children:l.jsxs(ve,{...fe("wrapper"),...Q,...m,mod:[{error:!!g&&H,pointer:L,disabled:b,multiline:U,"data-with-right-section":!!ye,"data-with-left-section":!!S},F],variant:w,size:p,children:[S&&l.jsx("div",{...y,"data-position":"left",...fe("section",{className:y==null?void 0:y.className,style:y==null?void 0:y.style}),children:S}),l.jsx(ve,{component:"input",...Z,...be,ref:e,required:c,mod:{disabled:b,error:!!g&&H},variant:w,__size:k,...fe("input")}),ye&&l.jsx("div",{...x,"data-position":"right",...fe("section",{className:x==null?void 0:x.className,style:x==null?void 0:x.style}),children:ye})]})})});Sr.classes=co;Sr.Wrapper=mM;Sr.Label=dy;Sr.Error=uy;Sr.Description=cy;Sr.Placeholder=pM;Sr.ClearButton=vY;Sr.displayName="@mantine/core/Input";function SY(t,e,n){const r=Te(t,e,n),{label:i,description:a,error:s,required:o,classNames:c,styles:d,className:f,unstyled:p,__staticSelector:m,__stylesApiProps:g,errorProps:b,labelProps:S,descriptionProps:y,wrapperProps:E,id:T,size:x,style:O,inputContainer:C,inputWrapperOrder:N,withAsterisk:w,variant:D,vars:L,mod:U,...M}=r,{styleProps:B,rest:Y}=p0(M),H={label:i,description:a,error:s,required:o,classNames:c,className:f,__staticSelector:m,__stylesApiProps:g||r,errorProps:b,labelProps:S,descriptionProps:y,unstyled:p,styles:d,size:x,style:O,inputContainer:C,inputWrapperOrder:N,withAsterisk:w,variant:D,id:T,mod:U,...E};return{...Y,classNames:c,styles:d,unstyled:p,wrapperProps:{...H,...B},inputProps:{required:o,classNames:c,styles:d,unstyled:p,size:x,__staticSelector:m,__stylesApiProps:g||r,error:s,variant:D,id:T}}}const uie={__staticSelector:"InputBase",withAria:!0},as=Sa((t,e)=>{const{inputProps:n,wrapperProps:r,...i}=SY("InputBase",uie,t);return l.jsx(Sr.Wrapper,{...r,children:l.jsx(Sr,{...n,...i,ref:e})})});as.classes={...Sr.classes,...Sr.Wrapper.classes};as.displayName="@mantine/core/InputBase";function die(t,e){if(!e||!t)return!1;let n=e.parentNode;for(;n!=null;){if(n===t)return!0;n=n.parentNode}return!1}function fie({target:t,parent:e,ref:n,displayAfterTransitionEnd:r}){const i=I.useRef(-1),[a,s]=I.useState(!1),[o,c]=I.useState(typeof r=="boolean"?r:!1),d=()=>{if(!t||!e||!n.current)return;const g=t.getBoundingClientRect(),b=e.getBoundingClientRect(),S=window.getComputedStyle(t),y=window.getComputedStyle(e),E=Ju(S.borderTopWidth)+Ju(y.borderTopWidth),T=Ju(S.borderLeftWidth)+Ju(y.borderLeftWidth),x={top:g.top-b.top-E,left:g.left-b.left-T,width:g.width,height:g.height};n.current.style.transform=`translateY(${x.top}px) translateX(${x.left}px)`,n.current.style.width=`${x.width}px`,n.current.style.height=`${x.height}px`},f=()=>{window.clearTimeout(i.current),n.current&&(n.current.style.transitionDuration="0ms"),d(),i.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},p=I.useRef(null),m=I.useRef(null);return I.useEffect(()=>{if(d(),t)return p.current=new ResizeObserver(f),p.current.observe(t),e&&(m.current=new ResizeObserver(f),m.current.observe(e)),()=>{var g,b;(g=p.current)==null||g.disconnect(),(b=m.current)==null||b.disconnect()}},[e,t]),I.useEffect(()=>{if(e){const g=b=>{die(b.target,e)&&(f(),c(!1))};return e.addEventListener("transitionend",g),()=>{e.removeEventListener("transitionend",g)}}},[e]),vee(()=>{xee()!=="test"&&s(!0)},20,{autoInvoke:!0}),Eee(g=>{g.forEach(b=>{b.type==="attributes"&&b.attributeName==="dir"&&f()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:a,hidden:o}}var EY={root:"m_96b553a6"};const hie={},pie=(t,{transitionDuration:e})=>({root:{"--transition-duration":typeof e=="number"?`${e}ms`:e}}),gM=Me((t,e)=>{const n=Te("FloatingIndicator",hie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,target:d,parent:f,transitionDuration:p,mod:m,displayAfterTransitionEnd:g,...b}=n,S=ot({name:"FloatingIndicator",classes:EY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:pie}),y=I.useRef(null),{initialized:E,hidden:T}=fie({target:d,parent:f,ref:y,displayAfterTransitionEnd:g}),x=$r(e,y);return!d||!f?null:l.jsx(ve,{ref:x,mod:[{initialized:E,hidden:T},m],...S("root"),...b})});gM.displayName="@mantine/core/FloatingIndicator";gM.classes=EY;const[mie,_M]=va("Accordion component was not found in the tree");function R_({style:t,size:e=16,...n}){return l.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:he(e),height:he(e),display:"block"},...n,children:l.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}R_.displayName="@mantine/core/AccordionChevron";const[gie,yY]=va("Accordion.Item component was not found in the tree");var g0={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};const _ie={},bM=Me((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,chevron:o,icon:c,onClick:d,onKeyDown:f,children:p,disabled:m,mod:g,...b}=Te("AccordionControl",_ie,t),{value:S}=yY(),y=_M(),E=y.isItemActive(S),T=typeof y.order=="number",x=`h${y.order}`,O=l.jsxs(bi,{...b,...y.getStyles("control",{className:r,classNames:n,style:i,styles:a,variant:y.variant}),unstyled:y.unstyled,mod:["accordion-control",{active:E,"chevron-position":y.chevronPosition,disabled:m},g],ref:e,onClick:C=>{d==null||d(C),y.onChange(S)},type:"button",disabled:m,"aria-expanded":E,"aria-controls":y.getRegionId(S),id:y.getControlId(S),onKeyDown:PD({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:y.loop,orientation:"vertical",onKeyDown:f}),children:[l.jsx(ve,{component:"span",mod:{rotate:!y.disableChevronRotation&&E,position:y.chevronPosition},...y.getStyles("chevron",{classNames:n,styles:a}),children:o||y.chevron}),l.jsx("span",{...y.getStyles("label",{classNames:n,styles:a}),children:p}),c&&l.jsx(ve,{component:"span",mod:{"chevron-position":y.chevronPosition},...y.getStyles("icon",{classNames:n,styles:a}),children:c})]});return T?l.jsx(x,{...y.getStyles("itemTitle",{classNames:n,styles:a}),children:O}):O});bM.displayName="@mantine/core/AccordionControl";bM.classes=g0;const bie={},vM=Me((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,value:o,mod:c,...d}=Te("AccordionItem",bie,t),f=_M();return l.jsx(gie,{value:{value:o},children:l.jsx(ve,{ref:e,mod:[{active:f.isItemActive(o)},c],...f.getStyles("item",{className:r,classNames:n,styles:a,style:i,variant:f.variant}),...d})})});vM.displayName="@mantine/core/AccordionItem";vM.classes=g0;const vie={},SM=Me((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,children:o,...c}=Te("AccordionPanel",vie,t),{value:d}=yY(),f=_M();return l.jsx(HD,{ref:e,...f.getStyles("panel",{className:r,classNames:n,style:i,styles:a}),...c,in:f.isItemActive(d),transitionDuration:f.transitionDuration??200,role:"region",id:f.getRegionId(d),"aria-labelledby":f.getControlId(d),children:l.jsx("div",{...f.getStyles("content",{classNames:n,styles:a}),children:o})})});SM.displayName="@mantine/core/AccordionPanel";SM.classes=g0;const Sie={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevron:l.jsx(R_,{})},Eie=(t,{transitionDuration:e,chevronSize:n,radius:r})=>({root:{"--accordion-transition-duration":e===void 0?void 0:`${e}ms`,"--accordion-chevron-size":n===void 0?void 0:he(n),"--accordion-radius":r===void 0?void 0:Yn(r)}});function mr(t){const e=Te("Accordion",Sie,t),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:o,children:c,multiple:d,value:f,defaultValue:p,onChange:m,id:g,loop:b,transitionDuration:S,disableChevronRotation:y,chevronPosition:E,chevronSize:T,order:x,chevron:O,variant:C,radius:N,...w}=e,D=ja(g),[L,U]=na({value:f,defaultValue:p,finalValue:d?[]:null,onChange:m}),M=H=>Array.isArray(L)?L.includes(H):H===L,B=H=>{const F=Array.isArray(L)?L.includes(H)?L.filter(k=>k!==H):[...L,H]:H===L?null:H;U(F)},Y=ot({name:"Accordion",classes:g0,props:e,className:r,style:i,classNames:n,styles:a,unstyled:s,vars:o,varsResolver:Eie});return l.jsx(mie,{value:{isItemActive:M,onChange:B,getControlId:MS(`${D}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:MS(`${D}-panel`,"Accordion.Item component was rendered with invalid value or without value"),transitionDuration:S,disableChevronRotation:y,chevronPosition:E,order:x,chevron:O,loop:b,getStyles:Y,variant:C,unstyled:s},children:l.jsx(ve,{...Y("root"),id:D,...w,variant:C,"data-accordion":!0,children:c})})}const yie=t=>t;mr.extend=yie;mr.withProps=pz(mr);mr.classes=g0;mr.displayName="@mantine/core/Accordion";mr.Item=vM;mr.Panel=SM;mr.Control=bM;mr.Chevron=R_;var TY={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const Tie={},xie=(t,{radius:e,color:n,variant:r,autoContrast:i})=>{const a=t.variantColorResolver({color:n||t.primaryColor,theme:t,variant:r||"light",autoContrast:i});return{root:{"--alert-radius":e===void 0?void 0:Yn(e),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}},Ft=Me((t,e)=>{const n=Te("Alert",Tie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,radius:d,color:f,title:p,children:m,id:g,icon:b,withCloseButton:S,onClose:y,closeButtonLabel:E,variant:T,autoContrast:x,...O}=n,C=ot({name:"Alert",classes:TY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:xie}),N=ja(g),w=p&&`${N}-title`||void 0,D=`${N}-body`;return l.jsx(ve,{id:N,...C("root",{variant:T}),variant:T,ref:e,...O,role:"alert","aria-describedby":D,"aria-labelledby":w,children:l.jsxs("div",{...C("wrapper"),children:[b&&l.jsx("div",{...C("icon"),children:b}),l.jsxs("div",{...C("body"),children:[p&&l.jsx("div",{...C("title"),"data-with-close-button":S||void 0,children:l.jsx("span",{id:w,...C("label"),children:p})}),m&&l.jsx("div",{id:D,...C("message"),"data-variant":T,children:m})]}),S&&l.jsx(Xc,{...C("closeButton"),onClick:y,variant:"transparent",size:16,iconSize:16,"aria-label":E,unstyled:o})]})})});Ft.classes=TY;Ft.displayName="@mantine/core/Alert";var xY={root:"m_b6d8b162"};function Cie(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const Oie={inherit:!1},Rie=(t,{variant:e,lineClamp:n,gradient:r,size:i,color:a})=>({root:{"--text-fz":Rr(i),"--text-lh":V5(i),"--text-gradient":e==="gradient"?Sw(r,t):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":a?tr(a,t):void 0}}),ft=Sa((t,e)=>{const n=Te("Text",Oie,t),{lineClamp:r,truncate:i,inline:a,inherit:s,gradient:o,span:c,__staticSelector:d,vars:f,className:p,style:m,classNames:g,styles:b,unstyled:S,variant:y,mod:E,size:T,...x}=n,O=ot({name:["Text",d],props:n,classes:xY,className:p,style:m,classNames:g,styles:b,unstyled:S,vars:f,varsResolver:Rie});return l.jsx(ve,{...O("root",{focusable:!0}),ref:e,component:c?"span":"p",variant:y,mod:[{"data-truncate":Cie(i),"data-line-clamp":typeof r=="number","data-inline":a,"data-inherit":s},E],size:T,...x})});ft.classes=xY;ft.displayName="@mantine/core/Text";var CY={root:"m_849cf0da"};const Nie={underline:"hover"},vi=Sa((t,e)=>{const{underline:n,className:r,unstyled:i,mod:a,...s}=Te("Anchor",Nie,t);return l.jsx(ft,{component:"a",ref:e,className:Tr({[CY.root]:!i},r),...s,mod:[{underline:n},a],__staticSelector:"Anchor",unstyled:i})});vi.classes=CY;vi.displayName="@mantine/core/Anchor";const[Aie,mm]=va("AppShell was not found in tree");var Cd={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const wie={},EM=Me((t,e)=>{const n=Te("AppShellAside",wie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,withBorder:d,zIndex:f,mod:p,...m}=n,g=mm();return g.disabled?null:l.jsx(ve,{component:"aside",ref:e,mod:[{"with-border":d??g.withBorder},p],...g.getStyles("aside",{className:i,classNames:r,styles:s,style:a}),...m,__vars:{"--app-shell-aside-z-index":`calc(${f??g.zIndex} + 1)`}})});EM.classes=Cd;EM.displayName="@mantine/core/AppShellAside";const Iie={},yM=Me((t,e)=>{var b;const n=Te("AppShellFooter",Iie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,withBorder:d,zIndex:f,mod:p,...m}=n,g=mm();return g.disabled?null:l.jsx(ve,{component:"footer",ref:e,mod:[{"with-border":d??g.withBorder},p],...g.getStyles("footer",{className:Tr({[Bp.classNames.zeroRight]:g.offsetScrollbars},i),classNames:r,styles:s,style:a}),...m,__vars:{"--app-shell-footer-z-index":(b=f??g.zIndex)==null?void 0:b.toString()}})});yM.classes=Cd;yM.displayName="@mantine/core/AppShellFooter";const Die={},TM=Me((t,e)=>{var b;const n=Te("AppShellHeader",Die,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,withBorder:d,zIndex:f,mod:p,...m}=n,g=mm();return g.disabled?null:l.jsx(ve,{component:"header",ref:e,mod:[{"with-border":d??g.withBorder},p],...g.getStyles("header",{className:Tr({[Bp.classNames.zeroRight]:g.offsetScrollbars},i),classNames:r,styles:s,style:a}),...m,__vars:{"--app-shell-header-z-index":(b=f??g.zIndex)==null?void 0:b.toString()}})});TM.classes=Cd;TM.displayName="@mantine/core/AppShellHeader";const Mie={},xM=Me((t,e)=>{const n=Te("AppShellMain",Mie,t),{classNames:r,className:i,style:a,styles:s,vars:o,...c}=n,d=mm();return l.jsx(ve,{component:"main",ref:e,...d.getStyles("main",{className:i,style:a,classNames:r,styles:s}),...c})});xM.classes=Cd;xM.displayName="@mantine/core/AppShellMain";function _0(t){return typeof t=="object"?t.base:t}function b0(t){const e=typeof t=="object"&&t!==null&&typeof t.base<"u"&&Object.keys(t).length===1;return typeof t=="number"||typeof t=="string"||e}function v0(t){return!(typeof t!="object"||t===null||Object.keys(t).length===1&&"base"in t)}function Lie({baseStyles:t,minMediaStyles:e,maxMediaStyles:n,aside:r,theme:i}){var c,d,f;const a=r==null?void 0:r.width,s="translateX(var(--app-shell-aside-width))",o="translateX(calc(var(--app-shell-aside-width) * -1))";if(r!=null&&r.breakpoint&&!((c=r==null?void 0:r.collapsed)!=null&&c.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px"),b0(a)){const p=he(_0(a));t["--app-shell-aside-width"]=p,t["--app-shell-aside-offset"]=p}if(v0(a)&&(typeof a.base<"u"&&(t["--app-shell-aside-width"]=he(a.base),t["--app-shell-aside-offset"]=he(a.base)),ki(a).forEach(p=>{p!=="base"&&(e[p]=e[p]||{},e[p]["--app-shell-aside-width"]=he(a[p]),e[p]["--app-shell-aside-offset"]=he(a[p]))})),(d=r==null?void 0:r.collapsed)!=null&&d.desktop){const p=r.breakpoint;e[p]=e[p]||{},e[p]["--app-shell-aside-transform"]=s,e[p]["--app-shell-aside-transform-rtl"]=o,e[p]["--app-shell-aside-offset"]="0px !important"}if((f=r==null?void 0:r.collapsed)!=null&&f.mobile){const p=FD(r.breakpoint,i.breakpoints)-.1;n[p]=n[p]||{},n[p]["--app-shell-aside-width"]="100%",n[p]["--app-shell-aside-offset"]="0px",n[p]["--app-shell-aside-transform"]=s,n[p]["--app-shell-aside-transform-rtl"]=o}}function kie({baseStyles:t,minMediaStyles:e,footer:n}){const r=n==null?void 0:n.height,i="translateY(var(--app-shell-footer-height))",a=(n==null?void 0:n.offset)??!0;if(b0(r)){const s=he(_0(r));t["--app-shell-footer-height"]=s,a&&(t["--app-shell-footer-offset"]=s)}v0(r)&&(typeof r.base<"u"&&(t["--app-shell-footer-height"]=he(r.base),a&&(t["--app-shell-footer-offset"]=he(r.base))),ki(r).forEach(s=>{s!=="base"&&(e[s]=e[s]||{},e[s]["--app-shell-footer-height"]=he(r[s]),a&&(e[s]["--app-shell-footer-offset"]=he(r[s])))})),n!=null&&n.collapsed&&(t["--app-shell-footer-transform"]=i,t["--app-shell-footer-offset"]="0px !important")}function Pie({baseStyles:t,minMediaStyles:e,header:n}){const r=n==null?void 0:n.height,i="translateY(calc(var(--app-shell-header-height) * -1))",a=(n==null?void 0:n.offset)??!0;if(b0(r)){const s=he(_0(r));t["--app-shell-header-height"]=s,a&&(t["--app-shell-header-offset"]=s)}v0(r)&&(typeof r.base<"u"&&(t["--app-shell-header-height"]=he(r.base),a&&(t["--app-shell-header-offset"]=he(r.base))),ki(r).forEach(s=>{s!=="base"&&(e[s]=e[s]||{},e[s]["--app-shell-header-height"]=he(r[s]),a&&(e[s]["--app-shell-header-offset"]=he(r[s])))})),n!=null&&n.collapsed&&(t["--app-shell-header-transform"]=i,t["--app-shell-header-offset"]="0px !important")}function Bie({baseStyles:t,minMediaStyles:e,maxMediaStyles:n,navbar:r,theme:i}){var c,d,f;const a=r==null?void 0:r.width,s="translateX(calc(var(--app-shell-navbar-width) * -1))",o="translateX(var(--app-shell-navbar-width))";if(r!=null&&r.breakpoint&&!((c=r==null?void 0:r.collapsed)!=null&&c.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-navbar-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-navbar-offset"]="0px"),b0(a)){const p=he(_0(a));t["--app-shell-navbar-width"]=p,t["--app-shell-navbar-offset"]=p}if(v0(a)&&(typeof a.base<"u"&&(t["--app-shell-navbar-width"]=he(a.base),t["--app-shell-navbar-offset"]=he(a.base)),ki(a).forEach(p=>{p!=="base"&&(e[p]=e[p]||{},e[p]["--app-shell-navbar-width"]=he(a[p]),e[p]["--app-shell-navbar-offset"]=he(a[p]))})),(d=r==null?void 0:r.collapsed)!=null&&d.desktop){const p=r.breakpoint;e[p]=e[p]||{},e[p]["--app-shell-navbar-transform"]=s,e[p]["--app-shell-navbar-transform-rtl"]=o,e[p]["--app-shell-navbar-offset"]="0px !important"}if((f=r==null?void 0:r.collapsed)!=null&&f.mobile){const p=FD(r.breakpoint,i.breakpoints)-.1;n[p]=n[p]||{},n[p]["--app-shell-navbar-width"]="100%",n[p]["--app-shell-navbar-offset"]="0px",n[p]["--app-shell-navbar-transform"]=s,n[p]["--app-shell-navbar-transform-rtl"]=o}}function XC(t){return Number(t)===0?"0px":zl(t)}function Fie({padding:t,baseStyles:e,minMediaStyles:n}){b0(t)&&(e["--app-shell-padding"]=XC(_0(t))),v0(t)&&(t.base&&(e["--app-shell-padding"]=XC(t.base)),ki(t).forEach(r=>{r!=="base"&&(n[r]=n[r]||{},n[r]["--app-shell-padding"]=XC(t[r]))}))}function Uie({navbar:t,header:e,footer:n,aside:r,padding:i,theme:a}){const s={},o={},c={};Bie({baseStyles:c,minMediaStyles:s,maxMediaStyles:o,navbar:t,theme:a}),Lie({baseStyles:c,minMediaStyles:s,maxMediaStyles:o,aside:r,theme:a}),Pie({baseStyles:c,minMediaStyles:s,header:e}),kie({baseStyles:c,minMediaStyles:s,footer:n}),Fie({baseStyles:c,minMediaStyles:s,padding:i});const d=RB(ki(s),a.breakpoints).map(m=>({query:`(min-width: ${ns(m.px)})`,styles:s[m.value]})),f=RB(ki(o),a.breakpoints).map(m=>({query:`(max-width: ${ns(m.px)})`,styles:o[m.value]})),p=[...d,...f];return{baseStyles:c,media:p}}function jie({navbar:t,header:e,aside:n,footer:r,padding:i}){const a=Fi(),s=Wc(),{media:o,baseStyles:c}=Uie({navbar:t,header:e,footer:r,aside:n,padding:i,theme:a});return l.jsx(cz,{media:o,styles:c,selector:s.cssVariablesSelector})}const Gie={},CM=Me((t,e)=>{const n=Te("AppShellNavbar",Gie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,withBorder:d,zIndex:f,mod:p,...m}=n,g=mm();return g.disabled?null:l.jsx(ve,{component:"nav",ref:e,mod:[{"with-border":d??g.withBorder},p],...g.getStyles("navbar",{className:i,classNames:r,styles:s,style:a}),...m,__vars:{"--app-shell-navbar-z-index":`calc(${f??g.zIndex} + 1)`}})});CM.classes=Cd;CM.displayName="@mantine/core/AppShellNavbar";const qie={},OM=Sa((t,e)=>{const n=Te("AppShellSection",qie,t),{classNames:r,className:i,style:a,styles:s,vars:o,grow:c,mod:d,...f}=n,p=mm();return l.jsx(ve,{ref:e,mod:[{grow:c},d],...p.getStyles("section",{className:i,style:a,classNames:r,styles:s}),...f})});OM.classes=Cd;OM.displayName="@mantine/core/AppShellSection";function $ie({transitionDuration:t,disabled:e}){const[n,r]=I.useState(!0),i=I.useRef(-1),a=I.useRef(-1);return PS("resize",()=>{r(!0),clearTimeout(i.current),i.current=window.setTimeout(()=>I.startTransition(()=>{r(!1)}),200)}),lm(()=>{r(!0),clearTimeout(a.current),a.current=window.setTimeout(()=>I.startTransition(()=>{r(!1)}),t||0)},[e,t]),n}const zie={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:so("app")},Yie=(t,{transitionDuration:e,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${e}ms`,"--app-shell-transition-timing-function":n}}),Zs=Me((t,e)=>{const n=Te("AppShell",zie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,navbar:d,withBorder:f,padding:p,transitionDuration:m,transitionTimingFunction:g,header:b,zIndex:S,layout:y,disabled:E,aside:T,footer:x,offsetScrollbars:O=y!=="alt",mod:C,...N}=n,w=ot({name:"AppShell",classes:Cd,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Yie}),D=$ie({disabled:E,transitionDuration:m});return l.jsxs(Aie,{value:{getStyles:w,withBorder:f,zIndex:S,disabled:E,offsetScrollbars:O},children:[l.jsx(jie,{navbar:d,header:b,aside:T,footer:x,padding:p}),l.jsx(ve,{ref:e,...w("root"),mod:[{resizing:D,layout:y,disabled:E},C],...N})]})});Zs.classes=Cd;Zs.displayName="@mantine/core/AppShell";Zs.Navbar=CM;Zs.Header=TM;Zs.Main=xM;Zs.Aside=EM;Zs.Footer=yM;Zs.Section=OM;function OY(t){return typeof t=="string"?{value:t,label:t}:"value"in t&&!("label"in t)?{value:t.value,label:t.value,disabled:t.disabled}:typeof t=="number"?{value:t.toString(),label:t.toString()}:"group"in t?{group:t.group,items:t.items.map(e=>OY(e))}:t}function RY(t){return t?t.map(e=>OY(e)):[]}function RM(t){return t.reduce((e,n)=>"group"in n?{...e,...RM(n.items)}:(e[n.value]=n,e),{})}var rs={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const Hie={error:null},Vie=(t,{size:e,color:n})=>({chevron:{"--combobox-chevron-size":Ut(e,"combobox-chevron-size"),"--combobox-chevron-color":n?tr(n,t):void 0}}),fy=Me((t,e)=>{const n=Te("ComboboxChevron",Hie,t),{size:r,error:i,style:a,className:s,classNames:o,styles:c,unstyled:d,vars:f,mod:p,...m}=n,g=ot({name:"ComboboxChevron",classes:rs,props:n,style:a,className:s,classNames:o,styles:c,unstyled:d,vars:f,varsResolver:Vie,rootSelector:"chevron"});return l.jsx(ve,{component:"svg",...m,...g("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:i},p],ref:e,children:l.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});fy.classes=rs;fy.displayName="@mantine/core/ComboboxChevron";const[Wie,uo]=va("Combobox component was not found in tree"),NM=I.forwardRef(({size:t,onMouseDown:e,onClick:n,onClear:r,...i},a)=>l.jsx(Sr.ClearButton,{ref:a,tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:s=>{s.preventDefault(),e==null||e(s)},onClick:s=>{r(),n==null||n(s)}}));NM.displayName="@mantine/core/ComboboxClearButton";const Qie={},AM=Me((t,e)=>{const{classNames:n,styles:r,className:i,style:a,hidden:s,...o}=Te("ComboboxDropdown",Qie,t),c=uo();return l.jsx(ai.Dropdown,{...o,ref:e,role:"presentation","data-hidden":s||void 0,...c.getStyles("dropdown",{className:i,style:a,classNames:n,styles:r})})});AM.classes=rs;AM.displayName="@mantine/core/ComboboxDropdown";const Kie={refProp:"ref"},NY=Me((t,e)=>{const{children:n,refProp:r}=Te("ComboboxDropdownTarget",Kie,t);if(uo(),!yd(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return l.jsx(ai.Target,{ref:e,refProp:r,children:n})});NY.displayName="@mantine/core/ComboboxDropdownTarget";const Xie={},wM=Me((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,...o}=Te("ComboboxEmpty",Xie,t),c=uo();return l.jsx(ve,{ref:e,...c.getStyles("empty",{className:r,classNames:n,styles:a,style:i}),...o})});wM.classes=rs;wM.displayName="@mantine/core/ComboboxEmpty";function IM({onKeyDown:t,withKeyboardNavigation:e,withAriaAttributes:n,withExpandedAttribute:r,targetType:i,autoComplete:a}){const s=uo(),[o,c]=I.useState(null),d=p=>{if(t==null||t(p),!s.readOnly&&e){if(p.nativeEvent.isComposing)return;if(p.nativeEvent.code==="ArrowDown"&&(p.preventDefault(),s.store.dropdownOpened?c(s.store.selectNextOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),p.nativeEvent.code==="ArrowUp"&&(p.preventDefault(),s.store.dropdownOpened?c(s.store.selectPreviousOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),p.nativeEvent.code==="Enter"||p.nativeEvent.code==="NumpadEnter"){if(p.nativeEvent.keyCode===229)return;const m=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&m!==-1?(p.preventDefault(),s.store.clickSelectedOption()):i==="button"&&(p.preventDefault(),s.store.openDropdown("keyboard"))}p.key==="Escape"&&s.store.closeDropdown("keyboard"),p.nativeEvent.code==="Space"&&i==="button"&&(p.preventDefault(),s.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":r&&!!(s.store.listId&&s.store.dropdownOpened)||void 0,"aria-controls":s.store.dropdownOpened?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&o||void 0,autoComplete:a,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},onKeyDown:d}}const Zie={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},AY=Me((t,e)=>{const{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:a,withExpandedAttribute:s,targetType:o,autoComplete:c,...d}=Te("ComboboxEventsTarget",Zie,t);if(!yd(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const f=uo(),p=IM({targetType:o,withAriaAttributes:a,withKeyboardNavigation:i,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c});return I.cloneElement(n,{...p,...d,[r]:$r(e,f.store.targetRef,KE(n))})});AY.displayName="@mantine/core/ComboboxEventsTarget";const Jie={},DM=Me((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,...o}=Te("ComboboxFooter",Jie,t),c=uo();return l.jsx(ve,{ref:e,...c.getStyles("footer",{className:r,classNames:n,style:i,styles:a}),...o,onMouseDown:d=>{d.preventDefault()}})});DM.classes=rs;DM.displayName="@mantine/core/ComboboxFooter";const eae={},MM=Me((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,children:o,label:c,...d}=Te("ComboboxGroup",eae,t),f=uo();return l.jsxs(ve,{ref:e,...f.getStyles("group",{className:r,classNames:n,style:i,styles:a}),...d,children:[c&&l.jsx("div",{...f.getStyles("groupLabel",{classNames:n,styles:a}),children:c}),o]})});MM.classes=rs;MM.displayName="@mantine/core/ComboboxGroup";const tae={},LM=Me((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,...o}=Te("ComboboxHeader",tae,t),c=uo();return l.jsx(ve,{ref:e,...c.getStyles("header",{className:r,classNames:n,style:i,styles:a}),...o,onMouseDown:d=>{d.preventDefault()}})});LM.classes=rs;LM.displayName="@mantine/core/ComboboxHeader";function wY({value:t,valuesDivider:e=",",...n}){return l.jsx("input",{type:"hidden",value:Array.isArray(t)?t.join(e):t||"",...n})}wY.displayName="@mantine/core/ComboboxHiddenInput";const nae={},kM=Me((t,e)=>{const n=Te("ComboboxOption",nae,t),{classNames:r,className:i,style:a,styles:s,vars:o,onClick:c,id:d,active:f,onMouseDown:p,onMouseOver:m,disabled:g,selected:b,mod:S,...y}=n,E=uo(),T=I.useId(),x=d||T;return l.jsx(ve,{...E.getStyles("option",{className:i,classNames:r,styles:s,style:a}),...y,ref:e,id:x,mod:["combobox-option",{"combobox-active":f,"combobox-disabled":g,"combobox-selected":b},S],role:"option",onClick:O=>{var C;g?O.preventDefault():((C=E.onOptionSubmit)==null||C.call(E,n.value,n),c==null||c(O))},onMouseDown:O=>{O.preventDefault(),p==null||p(O)},onMouseOver:O=>{E.resetSelectionOnOptionHover&&E.store.resetSelectedOption(),m==null||m(O)}})});kM.classes=rs;kM.displayName="@mantine/core/ComboboxOption";const rae={},PM=Me((t,e)=>{const n=Te("ComboboxOptions",rae,t),{classNames:r,className:i,style:a,styles:s,id:o,onMouseDown:c,labelledBy:d,...f}=n,p=uo(),m=ja(o);return I.useEffect(()=>{p.store.setListId(m)},[m]),l.jsx(ve,{ref:e,...p.getStyles("options",{className:i,style:a,classNames:r,styles:s}),...f,id:m,role:"listbox","aria-labelledby":d,onMouseDown:g=>{g.preventDefault(),c==null||c(g)}})});PM.classes=rs;PM.displayName="@mantine/core/ComboboxOptions";const iae={withAriaAttributes:!0,withKeyboardNavigation:!0},BM=Me((t,e)=>{const n=Te("ComboboxSearch",iae,t),{classNames:r,styles:i,unstyled:a,vars:s,withAriaAttributes:o,onKeyDown:c,withKeyboardNavigation:d,size:f,...p}=n,m=uo(),g=m.getStyles("search"),b=IM({targetType:"input",withAriaAttributes:o,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return l.jsx(Sr,{ref:$r(e,m.store.searchRef),classNames:[{input:g.className},r],styles:[{input:g.style},i],size:f||m.size,...b,...p,__staticSelector:"Combobox"})});BM.classes=rs;BM.displayName="@mantine/core/ComboboxSearch";const aae={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},IY=Me((t,e)=>{const{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:a,withExpandedAttribute:s,targetType:o,autoComplete:c,...d}=Te("ComboboxTarget",aae,t);if(!yd(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const f=uo(),p=IM({targetType:o,withAriaAttributes:a,withKeyboardNavigation:i,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c}),m=I.cloneElement(n,{...p,...d});return l.jsx(ai.Target,{ref:$r(e,f.store.targetRef),children:m})});IY.displayName="@mantine/core/ComboboxTarget";function sae(t,e,n){for(let r=t-1;r>=0;r-=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=e.length-1;r>-1;r-=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r}return t}function oae(t,e,n){for(let r=t+1;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=0;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r}return t}function lae(t){for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return-1}function hy({defaultOpened:t,opened:e,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:i,loop:a=!0,scrollBehavior:s="instant"}={}){const[o,c]=na({value:e,defaultValue:t,finalValue:!1,onChange:n}),d=I.useRef(null),f=I.useRef(-1),p=I.useRef(null),m=I.useRef(null),g=I.useRef(-1),b=I.useRef(-1),S=I.useRef(-1),y=I.useCallback((k="unknown")=>{o||(c(!0),i==null||i(k))},[c,i,o]),E=I.useCallback((k="unknown")=>{o&&(c(!1),r==null||r(k))},[c,r,o]),T=I.useCallback((k="unknown")=>{o?E(k):y(k)},[E,y,o]),x=I.useCallback(()=>{const k=document.querySelector(`#${d.current} [data-combobox-selected]`);k==null||k.removeAttribute("data-combobox-selected"),k==null||k.removeAttribute("aria-selected")},[]),O=I.useCallback(k=>{const P=document.getElementById(d.current),z=P==null?void 0:P.querySelectorAll("[data-combobox-option]");if(!z)return null;const V=k>=z.length?0:k<0?z.length-1:k;return f.current=V,z!=null&&z[V]&&!z[V].hasAttribute("data-combobox-disabled")?(x(),z[V].setAttribute("data-combobox-selected","true"),z[V].setAttribute("aria-selected","true"),z[V].scrollIntoView({block:"nearest",behavior:s}),z[V].id):null},[s,x]),C=I.useCallback(()=>{const k=document.querySelector(`#${d.current} [data-combobox-active]`);if(k){const P=document.querySelectorAll(`#${d.current} [data-combobox-option]`),z=Array.from(P).findIndex(V=>V===k);return O(z)}return O(0)},[O]),N=I.useCallback(()=>O(oae(f.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),a)),[O,a]),w=I.useCallback(()=>O(sae(f.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),a)),[O,a]),D=I.useCallback(()=>O(lae(document.querySelectorAll(`#${d.current} [data-combobox-option]`))),[O]),L=I.useCallback((k="selected",P)=>{S.current=window.setTimeout(()=>{var G;const z=document.querySelectorAll(`#${d.current} [data-combobox-option]`),V=Array.from(z).findIndex(Q=>Q.hasAttribute(`data-combobox-${k}`));f.current=V,P!=null&&P.scrollIntoView&&((G=z[V])==null||G.scrollIntoView({block:"nearest",behavior:s}))},0)},[]),U=I.useCallback(()=>{f.current=-1,x()},[x]),M=I.useCallback(()=>{const k=document.querySelectorAll(`#${d.current} [data-combobox-option]`),P=k==null?void 0:k[f.current];P==null||P.click()},[]),B=I.useCallback(k=>{d.current=k},[]),Y=I.useCallback(()=>{g.current=window.setTimeout(()=>p.current.focus(),0)},[]),H=I.useCallback(()=>{b.current=window.setTimeout(()=>m.current.focus(),0)},[]),F=I.useCallback(()=>f.current,[]);return I.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(S.current)},[]),{dropdownOpened:o,openDropdown:y,closeDropdown:E,toggleDropdown:T,selectedOptionIndex:f.current,getSelectedOptionIndex:F,selectOption:O,selectFirstOption:D,selectActiveOption:C,selectNextOption:N,selectPreviousOption:w,resetSelectedOption:U,updateSelectedOptionIndex:L,listId:d.current,setListId:B,clickSelectedOption:M,searchRef:p,focusSearchInput:Y,targetRef:m,focusTarget:H}}const cae={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},uae=(t,{size:e,dropdownPadding:n})=>({options:{"--combobox-option-fz":Rr(e),"--combobox-option-padding":Ut(e,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:he(n),"--combobox-option-fz":Rr(e),"--combobox-option-padding":Ut(e,"combobox-option-padding")}});function nn(t){const e=Te("Combobox",cae,t),{classNames:n,styles:r,unstyled:i,children:a,store:s,vars:o,onOptionSubmit:c,onClose:d,size:f,dropdownPadding:p,resetSelectionOnOptionHover:m,__staticSelector:g,readOnly:b,...S}=e,y=hy(),E=s||y,T=ot({name:g||"Combobox",classes:rs,props:e,classNames:n,styles:r,unstyled:i,vars:o,varsResolver:uae}),x=()=>{d==null||d(),E.closeDropdown()};return l.jsx(Wie,{value:{getStyles:T,store:E,onOptionSubmit:c,size:f,resetSelectionOnOptionHover:m,readOnly:b},children:l.jsx(ai,{opened:E.dropdownOpened,...S,onChange:O=>!O&&x(),withRoles:!1,unstyled:i,children:a})})}const dae=t=>t;nn.extend=dae;nn.classes=rs;nn.displayName="@mantine/core/Combobox";nn.Target=IY;nn.Dropdown=AM;nn.Options=PM;nn.Option=kM;nn.Search=BM;nn.Empty=wM;nn.Chevron=fy;nn.Footer=DM;nn.Header=LM;nn.EventsTarget=AY;nn.DropdownTarget=NY;nn.Group=MM;nn.ClearButton=NM;nn.HiddenInput=wY;var DY={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const MY=DY,FM=I.forwardRef(({__staticSelector:t,__stylesApiProps:e,className:n,classNames:r,styles:i,unstyled:a,children:s,label:o,description:c,id:d,disabled:f,error:p,size:m,labelPosition:g="left",bodyElement:b="div",labelElement:S="label",variant:y,style:E,vars:T,mod:x,...O},C)=>{const N=ot({name:t,props:e,className:n,style:E,classes:DY,classNames:r,styles:i,unstyled:a});return l.jsx(ve,{...N("root"),ref:C,__vars:{"--label-fz":Rr(m),"--label-lh":Ut(m,"label-lh")},mod:[{"label-position":g},x],variant:y,size:m,...O,children:l.jsxs(ve,{component:b,htmlFor:b==="label"?d:void 0,...N("body"),children:[s,l.jsxs("div",{...N("labelWrapper"),"data-disabled":f||void 0,children:[o&&l.jsx(ve,{component:S,htmlFor:S==="label"?d:void 0,...N("label"),"data-disabled":f||void 0,children:o}),c&&l.jsx(Sr.Description,{size:m,__inheritStyles:!1,...N("description"),children:c}),p&&typeof p!="boolean"&&l.jsx(Sr.Error,{size:m,__inheritStyles:!1,...N("error"),children:p})]})]})})});FM.displayName="@mantine/core/InlineInput";const LY=I.createContext(null),fae=LY.Provider,kY=()=>I.useContext(LY),[hae,pae]=om();var PY={card:"m_26775b0a"};const mae={withBorder:!0},gae=(t,{radius:e})=>({card:{"--card-radius":Yn(e)}}),UM=Me((t,e)=>{const n=Te("CheckboxCard",mae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,checked:d,mod:f,withBorder:p,value:m,onClick:g,defaultChecked:b,onChange:S,...y}=n,E=ot({name:"CheckboxCard",classes:PY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:gae,rootSelector:"card"}),T=kY(),x=typeof d=="boolean"?d:T?T.value.includes(m||""):void 0,[O,C]=na({value:x,defaultValue:b,finalValue:!1,onChange:S});return l.jsx(hae,{value:{checked:O},children:l.jsx(bi,{ref:e,mod:[{"with-border":p,checked:O},f],...E("card"),...y,role:"checkbox","aria-checked":O,onClick:N=>{g==null||g(N),T==null||T.onChange(m||""),C(!O)}})})});UM.displayName="@mantine/core/CheckboxCard";UM.classes=PY;function BY({children:t,role:e}){const n=pm();return n?l.jsx("div",{role:e,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:t}):l.jsx(l.Fragment,{children:t})}const _ae={},jM=Me((t,e)=>{const{value:n,defaultValue:r,onChange:i,size:a,wrapperProps:s,children:o,readOnly:c,...d}=Te("CheckboxGroup",_ae,t),[f,p]=na({value:n,defaultValue:r,finalValue:[],onChange:i}),m=g=>{const b=typeof g=="string"?g:g.currentTarget.value;!c&&p(f.includes(b)?f.filter(S=>S!==b):[...f,b])};return l.jsx(fae,{value:{value:f,onChange:m,size:a},children:l.jsx(Sr.Wrapper,{size:a,ref:e,...s,...d,labelElement:"div",__staticSelector:"CheckboxGroup",children:l.jsx(BY,{role:"group",children:o})})})});jM.classes=Sr.Wrapper.classes;jM.displayName="@mantine/core/CheckboxGroup";function py({size:t,style:e,...n}){const r=t!==void 0?{width:he(t),height:he(t),...e}:e;return l.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:l.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function FY({indeterminate:t,...e}){return t?l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...e,children:l.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):l.jsx(py,{...e})}var UY={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const bae={icon:FY},vae=(t,{radius:e,color:n,size:r,iconColor:i,variant:a,autoContrast:s})=>{const o=Td({color:n||t.primaryColor,theme:t}),c=o.isThemeColor&&o.shade===void 0?`var(--mantine-color-${o.color}-outline)`:o.color;return{indicator:{"--checkbox-size":Ut(r,"checkbox-size"),"--checkbox-radius":e===void 0?void 0:Yn(e),"--checkbox-color":a==="outline"?c:tr(n,t),"--checkbox-icon-color":i?tr(i,t):cm(s,t)?xd({color:n,theme:t,autoContrast:s}):void 0}}},GM=Me((t,e)=>{const n=Te("CheckboxIndicator",bae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,icon:d,indeterminate:f,radius:p,color:m,iconColor:g,autoContrast:b,checked:S,mod:y,variant:E,disabled:T,...x}=n,O=d,C=ot({name:"CheckboxIndicator",classes:UY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:vae,rootSelector:"indicator"}),N=pae(),w=typeof S=="boolean"||typeof f=="boolean"?S||f:(N==null?void 0:N.checked)||!1;return l.jsx(ve,{ref:e,...C("indicator",{variant:E}),variant:E,mod:[{checked:w,disabled:T},y],...x,children:l.jsx(O,{indeterminate:f,...C("icon")})})});GM.displayName="@mantine/core/CheckboxIndicator";GM.classes=UY;var jY={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const Sae={labelPosition:"right",icon:FY},Eae=(t,{radius:e,color:n,size:r,iconColor:i,variant:a,autoContrast:s})=>{const o=Td({color:n||t.primaryColor,theme:t}),c=o.isThemeColor&&o.shade===void 0?`var(--mantine-color-${o.color}-outline)`:o.color;return{root:{"--checkbox-size":Ut(r,"checkbox-size"),"--checkbox-radius":e===void 0?void 0:Yn(e),"--checkbox-color":a==="outline"?c:tr(n,t),"--checkbox-icon-color":i?tr(i,t):cm(s,t)?xd({color:n,theme:t,autoContrast:s}):void 0}}},Vo=Me((t,e)=>{const n=Te("Checkbox",Sae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,color:d,label:f,id:p,size:m,radius:g,wrapperProps:b,checked:S,labelPosition:y,description:E,error:T,disabled:x,variant:O,indeterminate:C,icon:N,rootRef:w,iconColor:D,onChange:L,autoContrast:U,mod:M,...B}=n,Y=kY(),H=m||(Y==null?void 0:Y.size),F=N,k=ot({name:"Checkbox",props:n,classes:jY,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Eae}),{styleProps:P,rest:z}=p0(B),V=ja(p),G=Y?{checked:Y.value.includes(z.value),onChange:X=>{Y.onChange(X),L==null||L(X)}}:{},Q=I.useRef(null),Z=e||Q;return I.useEffect(()=>{Z&&"current"in Z&&Z.current&&(Z.current.indeterminate=C||!1)},[C,Z]),l.jsx(FM,{...k("root"),__staticSelector:"Checkbox",__stylesApiProps:n,id:V,size:H,labelPosition:y,label:f,description:E,error:T,disabled:x,classNames:r,styles:s,unstyled:o,"data-checked":G.checked||S||void 0,variant:O,ref:w,mod:M,...P,...b,children:l.jsxs(ve,{...k("inner"),mod:{"data-label-position":y},children:[l.jsx(ve,{component:"input",id:V,ref:Z,checked:S,disabled:x,mod:{error:!!T,indeterminate:C},...k("input",{focusable:!0,variant:O}),onChange:L,...z,...G,type:"checkbox"}),l.jsx(F,{indeterminate:C,...k("icon")})]})})});Vo.classes={...jY,...MY};Vo.displayName="@mantine/core/Checkbox";Vo.Group=jM;Vo.Indicator=GM;Vo.Card=UM;function N_(t){return"group"in t}function GY({options:t,search:e,limit:n}){const r=e.trim().toLowerCase(),i=[];for(let a=0;a<t.length;a+=1){const s=t[a];if(i.length===n)return i;N_(s)&&i.push({group:s.group,items:GY({options:s.items,search:e,limit:n-i.length})}),N_(s)||s.label.toLowerCase().includes(r)&&i.push(s)}return i}function yae(t){if(t.length===0)return!0;for(const e of t)if(!("group"in e)||e.items.length>0)return!1;return!0}function qY(t,e=new Set){if(Array.isArray(t))for(const n of t)if(N_(n))qY(n.items,e);else{if(typeof n.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof n.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(e.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);e.add(n.value)}}function Tae(t,e){return Array.isArray(t)?t.includes(e):t===e}function $Y({data:t,withCheckIcon:e,value:n,checkIconPosition:r,unstyled:i,renderOption:a}){if(!N_(t)){const o=Tae(n,t.value),c=e&&o&&l.jsx(py,{className:rs.optionsDropdownCheckIcon}),d=l.jsxs(l.Fragment,{children:[r==="left"&&c,l.jsx("span",{children:t.label}),r==="right"&&c]});return l.jsx(nn.Option,{value:t.value,disabled:t.disabled,className:Tr({[rs.optionsDropdownOption]:!i}),"data-reverse":r==="right"||void 0,"data-checked":o||void 0,"aria-selected":o,active:o,children:typeof a=="function"?a({option:t,checked:o}):d})}const s=t.items.map(o=>l.jsx($Y,{data:o,value:n,unstyled:i,withCheckIcon:e,checkIconPosition:r,renderOption:a},o.value));return l.jsx(nn.Group,{label:t.group,children:s})}function zY({data:t,hidden:e,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:s,withScrollArea:o=!0,filterOptions:c=!0,withCheckIcon:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:g,labelId:b,renderOption:S,scrollAreaProps:y,"aria-label":E}){qY(t);const x=typeof i=="string"?(r||GY)({options:t,search:c?i:"",limit:a??1/0}):t,O=yae(x),C=x.map(N=>l.jsx($Y,{data:N,withCheckIcon:d,value:f,checkIconPosition:p,unstyled:g,renderOption:S},N_(N)?N.group:N.value));return l.jsx(nn.Dropdown,{hidden:e||n&&O,"data-composed":!0,children:l.jsxs(nn.Options,{labelledBy:b,"aria-label":E,children:[o?l.jsx(Qc.Autosize,{mah:s??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...y,children:C}):C,O&&m&&l.jsx(nn.Empty,{children:m})]})})}const xae={},qM=Me((t,e)=>{const n=Te("Autocomplete",xae,t),{classNames:r,styles:i,unstyled:a,vars:s,dropdownOpened:o,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:f,onFocus:p,onBlur:m,onClick:g,onChange:b,data:S,value:y,defaultValue:E,selectFirstOptionOnChange:T,onOptionSubmit:x,comboboxProps:O,readOnly:C,disabled:N,filter:w,limit:D,withScrollArea:L,maxDropdownHeight:U,size:M,id:B,renderOption:Y,autoComplete:H,scrollAreaProps:F,onClear:k,clearButtonProps:P,error:z,clearable:V,rightSection:G,...Q}=n,Z=ja(B),X=RY(S),ue=RM(X),[fe,be]=na({value:y,defaultValue:E,finalValue:"",onChange:b}),ye=hy({opened:o,defaultOpened:c,onDropdownOpen:f,onDropdownClose:()=>{d==null||d(),ye.resetSelectedOption()}}),Ne=Se=>{be(Se),ye.resetSelectedOption()},{resolvedClassNames:ke,resolvedStyles:Oe}=oo({props:n,styles:i,classNames:r});I.useEffect(()=>{T&&ye.selectFirstOption()},[T,fe]);const oe=l.jsx(nn.ClearButton,{...P,onClear:()=>{Ne(""),k==null||k()}});return l.jsxs(nn,{store:ye,__staticSelector:"Autocomplete",classNames:ke,styles:Oe,unstyled:a,readOnly:C,onOptionSubmit:Se=>{x==null||x(Se),Ne(ue[Se].label),ye.closeDropdown()},size:M,...O,children:[l.jsx(nn.Target,{autoComplete:H,children:l.jsx(as,{ref:e,...Q,size:M,__staticSelector:"Autocomplete",__clearSection:oe,__clearable:V&&!!fe&&!N&&!C,rightSection:G,disabled:N,readOnly:C,value:fe,error:z,onChange:Se=>{Ne(Se.currentTarget.value),ye.openDropdown(),T&&ye.selectFirstOption()},onFocus:Se=>{ye.openDropdown(),p==null||p(Se)},onBlur:Se=>{ye.closeDropdown(),m==null||m(Se)},onClick:Se=>{ye.openDropdown(),g==null||g(Se)},classNames:ke,styles:Oe,unstyled:a,id:Z})}),l.jsx(zY,{data:X,hidden:C||N,filter:w,search:fe,limit:D,hiddenWhenEmpty:!0,withScrollArea:L,maxDropdownHeight:U,unstyled:a,labelId:Q.label?`${Z}-label`:void 0,"aria-label":Q.label?void 0:Q["aria-label"],renderOption:Y,scrollAreaProps:F})]})});qM.classes={...as.classes,...nn.classes};qM.displayName="@mantine/core/Autocomplete";var YY={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const Cae={},Oae=(t,{radius:e,color:n,gradient:r,variant:i,size:a,autoContrast:s})=>{const o=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:i||"filled",autoContrast:s});return{root:{"--badge-height":Ut(a,"badge-height"),"--badge-padding-x":Ut(a,"badge-padding-x"),"--badge-fz":Ut(a,"badge-fz"),"--badge-radius":e===void 0?void 0:Yn(e),"--badge-bg":n||i?o.background:void 0,"--badge-color":n||i?o.color:void 0,"--badge-bd":n||i?o.border:void 0,"--badge-dot-color":i==="dot"?tr(n,t):void 0}}},ni=Sa((t,e)=>{const n=Te("Badge",Cae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,radius:d,color:f,gradient:p,leftSection:m,rightSection:g,children:b,variant:S,fullWidth:y,autoContrast:E,circle:T,mod:x,...O}=n,C=ot({name:"Badge",props:n,classes:YY,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Oae});return l.jsxs(ve,{variant:S,mod:[{block:y,circle:T,"with-right-section":!!g,"with-left-section":!!m},x],...C("root",{variant:S}),ref:e,...O,children:[m&&l.jsx("span",{...C("section"),"data-position":"left",children:m}),l.jsx("span",{...C("label"),children:b}),g&&l.jsx("span",{...C("section"),"data-position":"right",children:g})]})});ni.classes=YY;ni.displayName="@mantine/core/Badge";var HY={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const Rae={},Nae=(t,{color:e,size:n,lineSize:r,transitionDuration:i,transitionTimingFunction:a})=>({root:{"--burger-color":e?tr(e,t):void 0,"--burger-size":Ut(n,"burger-size"),"--burger-line-size":r?he(r):void 0,"--burger-transition-duration":i===void 0?void 0:`${i}ms`,"--burger-transition-timing-function":a}}),$M=Me((t,e)=>{const n=Te("Burger",Rae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,opened:d,children:f,transitionDuration:p,transitionTimingFunction:m,lineSize:g,...b}=n,S=ot({name:"Burger",classes:HY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Nae});return l.jsxs(bi,{...S("root"),ref:e,...b,children:[l.jsx(ve,{mod:["reduce-motion",{opened:d}],...S("burger")}),f]})});$M.classes=HY;$M.displayName="@mantine/core/Burger";var gm={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const oF={orientation:"horizontal"},Aae=(t,{borderWidth:e})=>({group:{"--button-border-width":he(e)}}),zM=Me((t,e)=>{const n=Te("ButtonGroup",oF,t),{className:r,style:i,classNames:a,styles:s,unstyled:o,orientation:c,vars:d,borderWidth:f,variant:p,mod:m,...g}=Te("ButtonGroup",oF,t),b=ot({name:"ButtonGroup",props:n,classes:gm,className:r,style:i,classNames:a,styles:s,unstyled:o,vars:d,varsResolver:Aae,rootSelector:"group"});return l.jsx(ve,{...b("group"),ref:e,variant:p,mod:[{"data-orientation":c},m],role:"group",...g})});zM.classes=gm;zM.displayName="@mantine/core/ButtonGroup";const lF={},wae=(t,{radius:e,color:n,gradient:r,variant:i,autoContrast:a,size:s})=>{const o=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:i||"filled",autoContrast:a});return{groupSection:{"--section-height":Ut(s,"section-height"),"--section-padding-x":Ut(s,"section-padding-x"),"--section-fz":s!=null&&s.includes("compact")?Rr(s.replace("compact-","")):Rr(s),"--section-radius":e===void 0?void 0:Yn(e),"--section-bg":n||i?o.background:void 0,"--section-color":o.color,"--section-bd":n||i?o.border:void 0}}},YM=Me((t,e)=>{const n=Te("ButtonGroupSection",lF,t),{className:r,style:i,classNames:a,styles:s,unstyled:o,vars:c,variant:d,gradient:f,radius:p,autoContrast:m,...g}=Te("ButtonGroupSection",lF,t),b=ot({name:"ButtonGroupSection",props:n,classes:gm,className:r,style:i,classNames:a,styles:s,unstyled:o,vars:c,varsResolver:wae,rootSelector:"groupSection"});return l.jsx(ve,{...b("groupSection"),ref:e,variant:d,...g})});YM.classes=gm;YM.displayName="@mantine/core/ButtonGroupSection";const Iae={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${he(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},Dae={},Mae=(t,{radius:e,color:n,gradient:r,variant:i,size:a,justify:s,autoContrast:o})=>{const c=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:i||"filled",autoContrast:o});return{root:{"--button-justify":s,"--button-height":Ut(a,"button-height"),"--button-padding-x":Ut(a,"button-padding-x"),"--button-fz":a!=null&&a.includes("compact")?Rr(a.replace("compact-","")):Rr(a),"--button-radius":e===void 0?void 0:Yn(e),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}},_a=Sa((t,e)=>{const n=Te("Button",Dae,t),{style:r,vars:i,className:a,color:s,disabled:o,children:c,leftSection:d,rightSection:f,fullWidth:p,variant:m,radius:g,loading:b,loaderProps:S,gradient:y,classNames:E,styles:T,unstyled:x,"data-disabled":O,autoContrast:C,mod:N,...w}=n,D=ot({name:"Button",props:n,classes:gm,className:a,style:r,classNames:E,styles:T,unstyled:x,vars:i,varsResolver:Mae}),L=!!d,U=!!f;return l.jsxs(bi,{ref:e,...D("root",{active:!o&&!b&&!O}),unstyled:x,variant:m,disabled:o||b,mod:[{disabled:o||O,loading:b,block:p,"with-left-section":L,"with-right-section":U},N],...w,children:[l.jsx(Kc,{mounted:!!b,transition:Iae,duration:150,children:M=>l.jsx(ve,{component:"span",...D("loader",{style:M}),"aria-hidden":!0,children:l.jsx(Yl,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...S})})}),l.jsxs("span",{...D("inner"),children:[d&&l.jsx(ve,{component:"span",...D("section"),mod:{position:"left"},children:d}),l.jsx(ve,{component:"span",mod:{loading:b},...D("label"),children:c}),f&&l.jsx(ve,{component:"span",...D("section"),mod:{position:"right"},children:f})]})]})});_a.classes=gm;_a.displayName="@mantine/core/Button";_a.Group=zM;_a.GroupSection=YM;const[Lae,kae]=va("Card component was not found in tree");var HM={root:"m_e615b15f",section:"m_599a2148"};const Pae={},my=Sa((t,e)=>{const n=Te("CardSection",Pae,t),{classNames:r,className:i,style:a,styles:s,vars:o,withBorder:c,inheritPadding:d,mod:f,...p}=n,m=kae();return l.jsx(ve,{ref:e,mod:[{"with-border":c,"inherit-padding":d},f],...m.getStyles("section",{className:i,style:a,styles:s,classNames:r}),...p})});my.classes=HM;my.displayName="@mantine/core/CardSection";const Bae={},Fae=(t,{padding:e})=>({root:{"--card-padding":zl(e)}}),kr=Sa((t,e)=>{const n=Te("Card",Bae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,children:d,padding:f,...p}=n,m=ot({name:"Card",props:n,classes:HM,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Fae}),g=I.Children.toArray(d),b=g.map((S,y)=>typeof S=="object"&&S&&"type"in S&&S.type===my?I.cloneElement(S,{"data-first-section":y===0||void 0,"data-last-section":y===g.length-1||void 0}):S);return l.jsx(Lae,{value:{getStyles:m},children:l.jsx(oy,{ref:e,unstyled:o,...m("root"),...p,children:b})})});kr.classes=HM;kr.displayName="@mantine/core/Card";kr.Section=my;var VY={root:"m_4451eb3a"};const Uae={},A_=Sa((t,e)=>{const n=Te("Center",Uae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,inline:d,mod:f,...p}=n,m=ot({name:"Center",props:n,classes:VY,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c});return l.jsx(ve,{ref:e,mod:[{inline:d},f],...m("root"),...p})});A_.classes=VY;A_.displayName="@mantine/core/Center";var WY={root:"m_b183c0a2"};const jae={},Gae=(t,{color:e})=>({root:{"--code-bg":e?tr(e,t):void 0}}),VM=Me((t,e)=>{const n=Te("Code",jae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,color:d,block:f,variant:p,mod:m,...g}=n,b=ot({name:"Code",props:n,classes:WY,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Gae});return l.jsx(ve,{component:f?"pre":"code",variant:p,ref:e,mod:[{block:f},m],...b("root"),...g,dir:"ltr"})});VM.classes=WY;VM.displayName="@mantine/core/Code";const qae={timeout:1e3};function gy(t){const{children:e,timeout:n,value:r,...i}=Te("CopyButton",qae,t),a=QJ({timeout:n}),s=()=>a.copy(r);return l.jsx(l.Fragment,{children:e({copy:s,copied:a.copied,...i})})}gy.displayName="@mantine/core/CopyButton";var QY={root:"m_3eebeb36",label:"m_9e365f20"};const $ae={orientation:"horizontal"},zae=(t,{color:e,variant:n,size:r})=>({root:{"--divider-color":e?tr(e,t):void 0,"--divider-border-style":n,"--divider-size":Ut(r,"divider-size")}}),_y=Me((t,e)=>{const n=Te("Divider",$ae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,color:d,orientation:f,label:p,labelPosition:m,mod:g,...b}=n,S=ot({name:"Divider",classes:QY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:zae});return l.jsx(ve,{ref:e,mod:[{orientation:f,"with-label":!!p},g],...S("root"),...b,role:"separator",children:p&&l.jsx(ve,{component:"span",mod:{position:m},...S("label"),children:p})})});_y.classes=QY;_y.displayName="@mantine/core/Divider";var KY={root:"m_e9408a47","root--default":"m_84c9523a","root--filled":"m_ef274e49","root--unstyled":"m_eda993d3",legend:"m_90794832","legend--unstyled":"m_74ca27fe"};const Yae={variant:"default"},Hae=(t,{radius:e})=>({root:{"--fieldset-radius":e===void 0?void 0:Yn(e)}}),Xh=Me((t,e)=>{const n=Te("Fieldset",Yae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,legend:d,variant:f,children:p,...m}=n,g=ot({name:"Fieldset",classes:KY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Hae});return l.jsxs(ve,{component:"fieldset",ref:e,variant:f,...g("root",{variant:f}),...m,children:[d&&l.jsx("legend",{...g("legend",{variant:f}),children:d}),p]})});Xh.classes=KY;Xh.displayName="@mantine/core/Fieldset";function Vae({open:t,close:e,openDelay:n,closeDelay:r}){const i=I.useRef(-1),a=I.useRef(-1),s=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)},o=()=>{s(),n===0||n===void 0?t():i.current=window.setTimeout(t,n)},c=()=>{s(),r===0||r===void 0?e():a.current=window.setTimeout(e,r)};return I.useEffect(()=>s,[]),{openDropdown:o,closeDropdown:c}}function Wae(t="top-end",e=0){const n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=he(e),[i,a]=t.split("-");return i==="top"&&(n["--indicator-top"]=r,n["--indicator-translate-y"]="-50%"),i==="middle"&&(n["--indicator-top"]="50%",n["--indicator-translate-y"]="-50%"),i==="bottom"&&(n["--indicator-bottom"]=r,n["--indicator-translate-y"]="50%"),a==="start"&&(n["--indicator-left"]=r,n["--indicator-translate-x"]="-50%"),a==="center"&&(n["--indicator-left"]="50%",n["--indicator-translate-x"]="-50%"),a==="end"&&(n["--indicator-right"]=r,n["--indicator-translate-x"]="50%"),n}var XY={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};const Qae={position:"top-end",offset:0,inline:!1,withBorder:!1,disabled:!1,processing:!1},Kae=(t,{color:e,position:n,offset:r,size:i,radius:a,zIndex:s,autoContrast:o})=>({root:{"--indicator-color":e?tr(e,t):void 0,"--indicator-text-color":cm(o,t)?xd({color:e,theme:t,autoContrast:o}):void 0,"--indicator-size":he(i),"--indicator-radius":a===void 0?void 0:Yn(a),"--indicator-z-index":s==null?void 0:s.toString(),...Wae(n,r)}}),WM=Me((t,e)=>{const n=Te("Indicator",Qae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,children:d,position:f,offset:p,inline:m,label:g,radius:b,color:S,withBorder:y,disabled:E,processing:T,zIndex:x,autoContrast:O,mod:C,...N}=n,w=ot({name:"Indicator",classes:XY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Kae});return l.jsxs(ve,{ref:e,...w("root"),mod:[{inline:m},C],...N,children:[!E&&l.jsx(ve,{mod:{"with-label":!!g,"with-border":y,processing:T},...w("indicator"),children:g}),d]})});WM.classes=XY;WM.displayName="@mantine/core/Indicator";function $S(){return $S=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$S.apply(null,arguments)}function QM(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}const[Xae,Zae]=va("List component was not found in tree");var KM={root:"m_abbac491",item:"m_abb6bec2",itemWrapper:"m_75cd9f71",itemIcon:"m_60f83e5b"};const Jae={},XM=Me((t,e)=>{const n=Te("ListItem",Jae,t),{classNames:r,className:i,style:a,styles:s,vars:o,icon:c,children:d,mod:f,...p}=n,m=Zae(),g=c||m.icon,b={classNames:r,styles:s};return l.jsx(ve,{...m.getStyles("item",{...b,className:i,style:a}),component:"li",mod:[{"with-icon":!!g,centered:m.center},f],ref:e,...p,children:l.jsxs("div",{...m.getStyles("itemWrapper",b),children:[g&&l.jsx("span",{...m.getStyles("itemIcon",b),children:g}),l.jsx("span",{...m.getStyles("itemLabel",b),children:d})]})})});XM.classes=KM;XM.displayName="@mantine/core/ListItem";const ese={type:"unordered"},tse=(t,{size:e,spacing:n})=>({root:{"--list-fz":Rr(e),"--list-lh":V5(e),"--list-spacing":zl(n)}}),hr=Me((t,e)=>{const n=Te("List",ese,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,children:d,type:f,withPadding:p,icon:m,spacing:g,center:b,listStyleType:S,mod:y,...E}=n,T=ot({name:"List",classes:KM,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:tse});return l.jsx(Xae,{value:{center:b,icon:m,getStyles:T},children:l.jsx(ve,{...T("root",{style:{listStyleType:S}}),component:f==="unordered"?"ul":"ol",mod:[{"with-padding":p},y],ref:e,...E,children:d})})});hr.classes=KM;hr.displayName="@mantine/core/List";hr.Item=XM;var ZY={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const cF={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:so("overlay")},nse=(t,{zIndex:e})=>({root:{"--lo-z-index":e==null?void 0:e.toString()}}),ZM=Me((t,e)=>{const n=Te("LoadingOverlay",cF,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,transitionProps:d,loaderProps:f,overlayProps:p,visible:m,zIndex:g,...b}=n,S=Fi(),y=ot({name:"LoadingOverlay",classes:ZY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:nse}),E={...cF.overlayProps,...p};return l.jsx(Kc,{transition:"fade",...d,mounted:!!m,children:T=>l.jsxs(ve,{...y("root",{style:T}),ref:e,...b,children:[l.jsx(Yl,{...y("loader"),unstyled:o,...f}),l.jsx(jp,{...E,...y("overlay"),darkHidden:!0,unstyled:o,color:(p==null?void 0:p.color)||S.white}),l.jsx(jp,{...E,...y("overlay"),lightHidden:!0,unstyled:o,color:(p==null?void 0:p.color)||S.colors.dark[5]})]})})});ZM.classes=ZY;ZM.displayName="@mantine/core/LoadingOverlay";const[rse,S0]=va("Menu component was not found in the tree");var _m={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504"};const ise={},JM=Me((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,...o}=Te("MenuDivider",ise,t),c=S0();return l.jsx(ve,{ref:e,...c.getStyles("divider",{className:r,style:i,styles:a,classNames:n}),...o})});JM.classes=_m;JM.displayName="@mantine/core/MenuDivider";const ase={},eL=Me((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,onMouseEnter:o,onMouseLeave:c,onKeyDown:d,children:f,...p}=Te("MenuDropdown",ase,t),m=I.useRef(null),g=S0(),b=Ja(d,E=>{var T,x;(E.key==="ArrowUp"||E.key==="ArrowDown")&&(E.preventDefault(),(x=(T=m.current)==null?void 0:T.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||x.focus())}),S=Ja(o,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.openDropdown()),y=Ja(c,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.closeDropdown());return l.jsxs(ai.Dropdown,{...p,onMouseEnter:S,onMouseLeave:y,role:"menu","aria-orientation":"vertical",ref:$r(e,m),...g.getStyles("dropdown",{className:r,style:i,styles:a,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:b,children:[g.withInitialFocusPlaceholder&&l.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),f]})});eL.classes=_m;eL.displayName="@mantine/core/MenuDropdown";const sse={},tL=Sa((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,color:o,closeMenuOnClick:c,leftSection:d,rightSection:f,children:p,disabled:m,"data-disabled":g,...b}=Te("MenuItem",sse,t),S=S0(),y=Fi(),{dir:E}=um(),T=I.useRef(null),x=S.getItemIndex(T.current),O=b,C=Ja(O.onMouseLeave,()=>S.setHovered(-1)),N=Ja(O.onMouseEnter,()=>S.setHovered(S.getItemIndex(T.current))),w=Ja(O.onClick,()=>{g||(typeof c=="boolean"?c&&S.closeDropdownImmediately():S.closeOnItemClick&&S.closeDropdownImmediately())}),D=Ja(O.onFocus,()=>S.setHovered(S.getItemIndex(T.current))),L=o?y.variantColorResolver({color:o,theme:y,variant:"light"}):void 0,U=o?Td({color:o,theme:y}):null;return l.jsxs(bi,{...b,unstyled:S.unstyled,tabIndex:S.menuItemTabIndex,onFocus:D,...S.getStyles("item",{className:r,style:i,styles:a,classNames:n}),ref:$r(T,e),role:"menuitem",disabled:m,"data-menu-item":!0,"data-disabled":m||g||void 0,"data-hovered":S.hovered===x?!0:void 0,"data-mantine-stop-propagation":!0,onMouseEnter:N,onMouseLeave:C,onClick:w,onKeyDown:PD({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:S.loop,dir:E,orientation:"vertical",onKeyDown:O.onKeyDown}),__vars:{"--menu-item-color":U!=null&&U.isThemeColor&&(U==null?void 0:U.shade)===void 0?`var(--mantine-color-${U.color}-6)`:L==null?void 0:L.color,"--menu-item-hover":L==null?void 0:L.hover},children:[d&&l.jsx("div",{...S.getStyles("itemSection",{styles:a,classNames:n}),"data-position":"left",children:d}),p&&l.jsx("div",{...S.getStyles("itemLabel",{styles:a,classNames:n}),children:p}),f&&l.jsx("div",{...S.getStyles("itemSection",{styles:a,classNames:n}),"data-position":"right",children:f})]})});tL.classes=_m;tL.displayName="@mantine/core/MenuItem";const ose={},nL=Me((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,...o}=Te("MenuLabel",ose,t),c=S0();return l.jsx(ve,{ref:e,...c.getStyles("label",{className:r,style:i,styles:a,classNames:n}),...o})});nL.classes=_m;nL.displayName="@mantine/core/MenuLabel";const lse={refProp:"ref"},JY=I.forwardRef((t,e)=>{const{children:n,refProp:r,...i}=Te("MenuTarget",lse,t);if(!yd(n))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=S0(),s=n.props,o=Ja(s.onClick,()=>{a.trigger==="click"?a.toggleDropdown():a.trigger==="click-hover"&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=Ja(s.onMouseEnter,()=>(a.trigger==="hover"||a.trigger==="click-hover")&&a.openDropdown()),d=Ja(s.onMouseLeave,()=>{(a.trigger==="hover"||a.trigger==="click-hover"&&!a.openedViaClick)&&a.closeDropdown()});return l.jsx(ai.Target,{refProp:r,popupType:"menu",ref:e,...i,children:I.cloneElement(n,{onClick:o,onMouseEnter:c,onMouseLeave:d,"data-expanded":a.opened?!0:void 0})})});JY.displayName="@mantine/core/MenuTarget";const cse={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function Kn(t){const e=Te("Menu",cse,t),{children:n,onOpen:r,onClose:i,opened:a,defaultOpened:s,trapFocus:o,onChange:c,closeOnItemClick:d,loop:f,closeOnEscape:p,trigger:m,openDelay:g,closeDelay:b,classNames:S,styles:y,unstyled:E,variant:T,vars:x,menuItemTabIndex:O,keepMounted:C,withInitialFocusPlaceholder:N,...w}=e,D=ot({name:"Menu",classes:_m,props:e,classNames:S,styles:y,unstyled:E}),[L,{setHovered:U,resetHovered:M}]=YJ(),[B,Y]=na({value:a,defaultValue:s,finalValue:!1,onChange:c}),[H,F]=I.useState(!1),k=()=>{Y(!1),F(!1),B&&(i==null||i())},P=()=>{Y(!0),!B&&(r==null||r())},z=()=>{B?k():P()},{openDropdown:V,closeDropdown:G}=Vae({open:P,close:k,closeDelay:b,openDelay:g}),Q=ue=>zJ("[data-menu-item]","[data-menu-dropdown]",ue),{resolvedClassNames:Z,resolvedStyles:X}=oo({classNames:S,styles:y,props:e});return ro(()=>{M()},[B]),l.jsx(rse,{value:{getStyles:D,opened:B,toggleDropdown:z,getItemIndex:Q,hovered:L,setHovered:U,openedViaClick:H,setOpenedViaClick:F,closeOnItemClick:d,closeDropdown:m==="click"?k:G,openDropdown:m==="click"?P:V,closeDropdownImmediately:k,loop:f,trigger:m,unstyled:E,menuItemTabIndex:O,withInitialFocusPlaceholder:N},children:l.jsx(ai,{...w,opened:B,onChange:z,defaultOpened:s,trapFocus:C?!1:o,closeOnEscape:p,__staticSelector:"Menu",classNames:Z,styles:X,unstyled:E,variant:T,keepMounted:C,children:n})})}Kn.extend=t=>t;Kn.withProps=pz(Kn);Kn.classes=_m;Kn.displayName="@mantine/core/Menu";Kn.Item=tL;Kn.Label=nL;Kn.Dropdown=eL;Kn.Target=JY;Kn.Divider=JM;const[use,bm]=va("Modal component was not found in tree");var Jc={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const dse={},by=Me((t,e)=>{const n=Te("ModalBody",dse,t),{classNames:r,className:i,style:a,styles:s,vars:o,...c}=n,d=bm();return l.jsx(hY,{ref:e,...d.getStyles("body",{classNames:r,style:a,styles:s,className:i}),...c})});by.classes=Jc;by.displayName="@mantine/core/ModalBody";const fse={},vy=Me((t,e)=>{const n=Te("ModalCloseButton",fse,t),{classNames:r,className:i,style:a,styles:s,vars:o,...c}=n,d=bm();return l.jsx(pY,{ref:e,...d.getStyles("close",{classNames:r,style:a,styles:s,className:i}),...c})});vy.classes=Jc;vy.displayName="@mantine/core/ModalCloseButton";const hse={},Sy=Me((t,e)=>{const n=Te("ModalContent",hse,t),{classNames:r,className:i,style:a,styles:s,vars:o,children:c,__hidden:d,...f}=n,p=bm(),m=p.scrollAreaComponent||Kre;return l.jsx(mY,{...p.getStyles("content",{className:i,style:a,styles:s,classNames:r}),innerProps:p.getStyles("inner",{className:i,style:a,styles:s,classNames:r}),"data-full-screen":p.fullScreen||void 0,"data-modal-content":!0,"data-hidden":d||void 0,ref:e,...f,children:l.jsx(m,{style:{maxHeight:p.fullScreen?"100dvh":`calc(100dvh - (${he(p.yOffset)} * 2))`},children:c})})});Sy.classes=Jc;Sy.displayName="@mantine/core/ModalContent";const pse={},Ey=Me((t,e)=>{const n=Te("ModalHeader",pse,t),{classNames:r,className:i,style:a,styles:s,vars:o,...c}=n,d=bm();return l.jsx(gY,{ref:e,...d.getStyles("header",{classNames:r,style:a,styles:s,className:i}),...c})});Ey.classes=Jc;Ey.displayName="@mantine/core/ModalHeader";const mse={},yy=Me((t,e)=>{const n=Te("ModalOverlay",mse,t),{classNames:r,className:i,style:a,styles:s,vars:o,...c}=n,d=bm();return l.jsx(_Y,{ref:e,...d.getStyles("overlay",{classNames:r,style:a,styles:s,className:i}),...c})});yy.classes=Jc;yy.displayName="@mantine/core/ModalOverlay";const gse={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:so("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},_se=(t,{radius:e,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":e===void 0?void 0:Yn(e),"--modal-size":Ut(n,"modal-size"),"--modal-y-offset":he(r),"--modal-x-offset":he(i)}}),Ty=Me((t,e)=>{const n=Te("ModalRoot",gse,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,yOffset:d,scrollAreaComponent:f,radius:p,fullScreen:m,centered:g,xOffset:b,__staticSelector:S,...y}=n,E=ot({name:S,classes:Jc,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:_se});return l.jsx(use,{value:{yOffset:d,scrollAreaComponent:f,getStyles:E,fullScreen:m},children:l.jsx(fY,{ref:e,...E("root"),"data-full-screen":m||void 0,"data-centered":g||void 0,unstyled:o,...y})})});Ty.classes=Jc;Ty.displayName="@mantine/core/ModalRoot";const[bse,vse]=om();function eH({children:t}){const[e,n]=I.useState([]),[r,i]=I.useState(so("modal"));return l.jsx(bse,{value:{stack:e,addModal:(a,s)=>{n(o=>[...new Set([...o,a])]),i(o=>typeof s=="number"&&typeof o=="number"?Math.max(o,s):o)},removeModal:a=>n(s=>s.filter(o=>o!==a)),getZIndex:a=>`calc(${r} + ${e.indexOf(a)} + 1)`,currentId:e[e.length-1],maxZIndex:r},children:t})}eH.displayName="@mantine/core/ModalStack";const Sse={},xy=Me((t,e)=>{const n=Te("ModalTitle",Sse,t),{classNames:r,className:i,style:a,styles:s,vars:o,...c}=n,d=bm();return l.jsx(bY,{ref:e,...d.getStyles("title",{classNames:r,style:a,styles:s,className:i}),...c})});xy.classes=Jc;xy.displayName="@mantine/core/ModalTitle";const Ese={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:so("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},fo=Me((t,e)=>{const{title:n,withOverlay:r,overlayProps:i,withCloseButton:a,closeButtonProps:s,children:o,radius:c,opened:d,stackId:f,zIndex:p,...m}=Te("Modal",Ese,t),g=vse(),b=!!n||a,S=g&&f?{closeOnEscape:g.currentId===f,trapFocus:g.currentId===f,zIndex:g.getZIndex(f)}:{},y=r===!1?!1:f&&g?g.currentId===f:d;return I.useEffect(()=>{g&&f&&(d?g.addModal(f,p||so("modal")):g.removeModal(f))},[d,f,p]),l.jsxs(Ty,{ref:e,radius:c,opened:d,zIndex:g&&f?g.getZIndex(f):p,...m,...S,children:[r&&l.jsx(yy,{visible:y,transitionProps:g&&f?{duration:0}:void 0,...i}),l.jsxs(Sy,{radius:c,__hidden:g&&f&&d?f!==g.currentId:!1,children:[b&&l.jsxs(Ey,{children:[n&&l.jsx(xy,{children:n}),a&&l.jsx(vy,{...s})]}),l.jsx(by,{children:o})]})]})});fo.classes=Jc;fo.displayName="@mantine/core/Modal";fo.Root=Ty;fo.Overlay=yy;fo.Content=Sy;fo.Body=by;fo.Header=Ey;fo.Title=xy;fo.CloseButton=vy;fo.Stack=eH;const[yse,rL]=om(),[Tse,xse]=om();var Cy={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const Cse={},Ose=(t,{gap:e},{size:n})=>({group:{"--pg-gap":e!==void 0?Ut(e):Ut(n,"pg-gap")}}),iL=Me((t,e)=>{const n=Te("PillGroup",Cse,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,size:d,disabled:f,...p}=n,m=rL(),g=(m==null?void 0:m.size)||d||void 0,b=ot({name:"PillGroup",classes:Cy,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Ose,stylesCtx:{size:g},rootSelector:"group"});return l.jsx(Tse,{value:{size:g,disabled:f},children:l.jsx(ve,{ref:e,size:g,...b("group"),...p})})});iL.classes=Cy;iL.displayName="@mantine/core/PillGroup";const Rse={variant:"default"},Nse=(t,{radius:e},{size:n})=>({root:{"--pill-fz":Ut(n,"pill-fz"),"--pill-height":Ut(n,"pill-height"),"--pill-radius":e===void 0?void 0:Yn(e)}}),Mc=Me((t,e)=>{const n=Te("Pill",Rse,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,variant:d,children:f,withRemoveButton:p,onRemove:m,removeButtonProps:g,radius:b,size:S,disabled:y,mod:E,...T}=n,x=xse(),O=rL(),C=S||(x==null?void 0:x.size)||void 0,N=(O==null?void 0:O.variant)==="filled"?"contrast":d||"default",w=ot({name:"Pill",classes:Cy,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Nse,stylesCtx:{size:C}});return l.jsxs(ve,{component:"span",ref:e,variant:N,size:C,...w("root",{variant:N}),mod:[{"with-remove":p&&!y,disabled:y||(x==null?void 0:x.disabled)},E],...T,children:[l.jsx("span",{...w("label"),children:f}),p&&l.jsx(Xc,{variant:"transparent",radius:b,tabIndex:-1,"aria-hidden":!0,unstyled:o,...g,...w("remove",{className:g==null?void 0:g.className,style:g==null?void 0:g.style}),onMouseDown:D=>{var L;D.preventDefault(),D.stopPropagation(),(L=g==null?void 0:g.onMouseDown)==null||L.call(g,D)},onClick:D=>{var L;D.stopPropagation(),m==null||m(),(L=g==null?void 0:g.onClick)==null||L.call(g,D)}})]})});Mc.classes=Cy;Mc.displayName="@mantine/core/Pill";Mc.Group=iL;var tH={field:"m_45c4369d"};const Ase={type:"visible"},aL=Me((t,e)=>{const n=Te("PillsInputField",Ase,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,type:d,disabled:f,id:p,pointer:m,mod:g,...b}=n,S=rL(),y=pm(),E=ot({name:"PillsInputField",classes:tH,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,rootSelector:"field"}),T=f||(S==null?void 0:S.disabled);return l.jsx(ve,{component:"input",ref:$r(e,S==null?void 0:S.fieldRef),"data-type":d,disabled:T,mod:[{disabled:T,pointer:m},g],...E("field"),...b,id:(y==null?void 0:y.inputId)||p,"aria-invalid":S==null?void 0:S.hasError,"aria-describedby":y==null?void 0:y.describedBy,type:"text",onMouseDown:x=>!m&&x.stopPropagation()})});aL.classes=tH;aL.displayName="@mantine/core/PillsInputField";const wse={},h_=Me((t,e)=>{const n=Te("PillsInput",wse,t),{children:r,onMouseDown:i,onClick:a,size:s,disabled:o,__staticSelector:c,error:d,variant:f,...p}=n,m=I.useRef(null);return l.jsx(yse,{value:{fieldRef:m,size:s,disabled:o,hasError:!!d,variant:f},children:l.jsx(as,{size:s,error:d,variant:f,component:"div",ref:e,onMouseDown:g=>{var b;g.preventDefault(),i==null||i(g),(b=m.current)==null||b.focus()},onClick:g=>{var S;g.preventDefault();const b=g.currentTarget.closest("fieldset");b!=null&&b.disabled||((S=m.current)==null||S.focus(),a==null||a(g))},...p,multiline:!0,disabled:o,__staticSelector:c||"PillsInput",withAria:!1,children:r})})});h_.displayName="@mantine/core/PillsInput";h_.Field=aL;var nH={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const Ise={withCloseButton:!0},Dse=(t,{radius:e,color:n})=>({root:{"--notification-radius":e===void 0?void 0:Yn(e),"--notification-color":n?tr(n,t):void 0}}),sL=Me((t,e)=>{const n=Te("Notification",Ise,t),{className:r,color:i,radius:a,loading:s,withCloseButton:o,withBorder:c,title:d,icon:f,children:p,onClose:m,closeButtonProps:g,classNames:b,style:S,styles:y,unstyled:E,variant:T,vars:x,mod:O,loaderProps:C,role:N,...w}=n,D=ot({name:"Notification",classes:nH,props:n,className:r,style:S,classNames:b,styles:y,unstyled:E,vars:x,varsResolver:Dse});return l.jsxs(ve,{...D("root"),mod:[{"data-with-icon":!!f||s,"data-with-border":c},O],ref:e,variant:T,role:N||"alert",...w,children:[f&&!s&&l.jsx("div",{...D("icon"),children:f}),s&&l.jsx(Yl,{size:28,color:i,...C,...D("loader")}),l.jsxs("div",{...D("body"),children:[d&&l.jsx("div",{...D("title"),children:d}),l.jsx(ve,{...D("description"),mod:{"data-with-title":!!d},children:p})]}),o&&l.jsx(Xc,{iconSize:16,color:"gray",...g,unstyled:E,onClick:m,...D("closeButton")})]})});sL.classes=nH;sL.displayName="@mantine/core/Notification";function rH(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var w_;(function(t){t.event="event",t.props="prop"})(w_||(w_={}));function qu(){}function Mse(t){var e,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return e&&r.length===e.length&&r.every(function(a,s){return a===e[s]})||(e=r,n=t.apply(void 0,r)),n}}function I_(t){return!!(t||"").match(/\d/)}function ip(t){return t==null}function Lse(t){return typeof t=="number"&&isNaN(t)}function iH(t){return ip(t)||Lse(t)||typeof t=="number"&&!isFinite(t)}function aH(t){return t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function kse(t){switch(t){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 Pse(t,e,n){var r=kse(n),i=t.search(/[1-9]/);return i=i===-1?t.length:i,t.substring(0,i)+t.substring(i,t.length).replace(r,"$1"+e)}function Bse(t){var e=I.useRef(t);e.current=t;var n=I.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return e.current.apply(e,r)});return n.current}function oL(t,e){e===void 0&&(e=!0);var n=t[0]==="-",r=n&&e;t=t.replace("-","");var i=t.split("."),a=i[0],s=i[1]||"";return{beforeDecimal:a,afterDecimal:s,hasNegation:n,addNegation:r}}function Fse(t){if(!t)return t;var e=t[0]==="-";e&&(t=t.substring(1,t.length));var n=t.split("."),r=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(e?"-":"")+r+(i?"."+i:"")}function sH(t,e,n){for(var r="",i=n?"0":"",a=0;a<=e-1;a++)r+=t[a]||i;return r}function uF(t,e){return Array(e+1).join(t)}function oH(t){var e=t+"",n=e[0]==="-"?"-":"";n&&(e=e.substring(1));var r=e.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(".","");var s=1+a,o=i.length;return s<0?i="0."+uF("0",Math.abs(s))+i:s>=o?i=i+uF("0",s-o):i=(i.substring(0,s)||"0")+"."+i.substring(s),n+i}function dF(t,e,n){if(["","-"].indexOf(t)!==-1)return t;var r=(t.indexOf(".")!==-1||n)&&e,i=oL(t),a=i.beforeDecimal,s=i.afterDecimal,o=i.hasNegation,c=parseFloat("0."+(s||"0")),d=s.length<=e?"0."+s:c.toFixed(e),f=d.split("."),p=a;a&&Number(f[0])&&(p=a.split("").reverse().reduce(function(S,y,E){return S.length>E?(Number(S[0])+Number(y)).toString()+S.substring(1,S.length):y+S},f[0]));var m=sH(f[1]||"",e,n),g=o?"-":"",b=r?".":"";return""+g+p+b+m}function cf(t,e){if(t.value=t.value,t!==null){if(t.createTextRange){var n=t.createTextRange();return n.move("character",e),n.select(),!0}return t.selectionStart||t.selectionStart===0?(t.focus(),t.setSelectionRange(e,e),!0):(t.focus(),!1)}}var lH=Mse(function(t,e){for(var n=0,r=0,i=t.length,a=e.length;t[n]===e[n]&&n<i;)n++;for(;t[i-1-r]===e[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),Use=function(t,e){var n=Math.min(t.selectionStart,e);return{from:{start:n,end:t.selectionEnd},to:{start:n,end:e}}};function jse(t,e,n){return Math.min(Math.max(t,e),n)}function ZC(t){return Math.max(t.selectionStart,t.selectionEnd)}function Gse(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function qse(t){return{from:{start:0,end:0},to:{start:0,end:t.length},lastValue:""}}function $se(t){var e=t.currentValue,n=t.formattedValue,r=t.currentValueIndex,i=t.formattedValueIndex;return e[r]===n[i]}function zse(t,e,n,r,i,a,s){s===void 0&&(s=$se);var o=i.findIndex(function(O){return O}),c=t.slice(0,o);!e&&!n.startsWith(c)&&(e=c,n=c+n,r=r+c.length);for(var d=n.length,f=t.length,p={},m=new Array(d),g=0;g<d;g++){m[g]=-1;for(var b=0,S=f;b<S;b++){var y=s({currentValue:n,lastValue:e,formattedValue:t,currentValueIndex:g,formattedValueIndex:b});if(y&&p[b]!==!0){m[g]=b,p[b]=!0;break}}}for(var E=r;E<d&&(m[E]===-1||!a(n[E]));)E++;var T=E===d||m[E]===-1?f:m[E];for(E=r-1;E>0&&m[E]===-1;)E--;var x=E===-1||m[E]===-1?0:m[E]+1;return x>T?T:r-x<T-r?x:T}function fF(t,e,n,r){var i=t.length;if(e=jse(e,0,i),r==="left"){for(;e>=0&&!n[e];)e--;e===-1&&(e=n.indexOf(!0))}else{for(;e<=i&&!n[e];)e++;e>i&&(e=n.lastIndexOf(!0))}return e===-1&&(e=i),e}function Yse(t){for(var e=Array.from({length:t.length+1}).map(function(){return!0}),n=0,r=e.length;n<r;n++)e[n]=!!(I_(t[n])||I_(t[n-1]));return e}function cH(t,e,n,r,i,a){a===void 0&&(a=qu);var s=Bse(function(b,S){var y,E;return iH(b)?(E="",y=""):typeof b=="number"||S?(E=typeof b=="number"?oH(b):b,y=r(E)):(E=i(b,void 0),y=r(E)),{formattedValue:y,numAsString:E}}),o=I.useState(function(){return s(ip(t)?e:t,n)}),c=o[0],d=o[1],f=function(b,S){b.formattedValue!==c.formattedValue&&d({formattedValue:b.formattedValue,numAsString:b.value}),a(b,S)},p=t,m=n;ip(t)&&(p=c.numAsString,m=!0);var g=s(p,m);return I.useMemo(function(){d(g)},[g.formattedValue]),[c,f]}function Hse(t){return t.replace(/[^0-9]/g,"")}function Vse(t){return t}function Wse(t){var e=t.type;e===void 0&&(e="text");var n=t.displayType;n===void 0&&(n="input");var r=t.customInput,i=t.renderText,a=t.getInputRef,s=t.format;s===void 0&&(s=Vse);var o=t.removeFormatting;o===void 0&&(o=Hse);var c=t.defaultValue,d=t.valueIsNumericString,f=t.onValueChange,p=t.isAllowed,m=t.onChange;m===void 0&&(m=qu);var g=t.onKeyDown;g===void 0&&(g=qu);var b=t.onMouseUp;b===void 0&&(b=qu);var S=t.onFocus;S===void 0&&(S=qu);var y=t.onBlur;y===void 0&&(y=qu);var E=t.value,T=t.getCaretBoundary;T===void 0&&(T=Yse);var x=t.isValidInputCharacter;x===void 0&&(x=I_);var O=t.isCharacterSame,C=rH(t,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),N=cH(E,c,!!d,s,o,f),w=N[0],D=w.formattedValue,L=w.numAsString,U=N[1],M=I.useRef(),B=I.useRef({formattedValue:D,numAsString:L}),Y=function(Ae,Be){B.current={formattedValue:Ae.formattedValue,numAsString:Ae.value},U(Ae,Be)},H=I.useState(!1),F=H[0],k=H[1],P=I.useRef(null),z=I.useRef({setCaretTimeout:null,focusTimeout:null});I.useEffect(function(){return k(!0),function(){clearTimeout(z.current.setCaretTimeout),clearTimeout(z.current.focusTimeout)}},[]);var V=s,G=function(Ae,Be){var Xe=parseFloat(Be);return{formattedValue:Ae,value:Be,floatValue:isNaN(Xe)?void 0:Xe}},Q=function(Ae,Be,Xe){Ae.selectionStart===0&&Ae.selectionEnd===Ae.value.length||(cf(Ae,Be),z.current.setCaretTimeout=setTimeout(function(){Ae.value===Xe&&Ae.selectionStart!==Be&&cf(Ae,Be)},0))},Z=function(Ae,Be,Xe){return fF(Ae,Be,T(Ae),Xe)},X=function(Ae,Be,Xe){var je=T(Be),Ze=zse(Be,D,Ae,Xe,je,x,O);return Ze=fF(Be,Ze,je),Ze},ue=function(Ae){var Be=Ae.formattedValue;Be===void 0&&(Be="");var Xe=Ae.input,je=Ae.source,Ze=Ae.event,Et=Ae.numAsString,vt;if(Xe){var xe=Ae.inputValue||Xe.value,Re=ZC(Xe);Xe.value=Be,vt=X(xe,Be,Re),vt!==void 0&&Q(Xe,vt,Be)}Be!==D&&Y(G(Be,Et),{event:Ze,source:je})};I.useEffect(function(){var Ae=B.current,Be=Ae.formattedValue,Xe=Ae.numAsString;(D!==Be||L!==Xe)&&Y(G(D,L),{event:void 0,source:w_.props})},[D,L]);var fe=P.current?ZC(P.current):void 0,be=typeof window<"u"?I.useLayoutEffect:I.useEffect;be(function(){var Ae=P.current;if(D!==B.current.formattedValue&&Ae){var Be=X(B.current.formattedValue,D,fe);Ae.value=D,Q(Ae,Be,D)}},[D]);var ye=function(Ae,Be,Xe){var je=Be.target,Ze=M.current?Use(M.current,je.selectionEnd):lH(D,Ae),Et=Object.assign(Object.assign({},Ze),{lastValue:D}),vt=o(Ae,Et),xe=V(vt);if(vt=o(xe,void 0),p&&!p(G(xe,vt))){var Re=Be.target,et=ZC(Re),yt=X(Ae,D,et);return Re.value=D,Q(Re,yt,D),!1}return ue({formattedValue:xe,numAsString:vt,inputValue:Ae,event:Be,source:Xe,input:Be.target}),!0},Ne=function(Ae,Be){Be===void 0&&(Be=0);var Xe=Ae.selectionStart,je=Ae.selectionEnd;M.current={selectionStart:Xe,selectionEnd:je+Be}},ke=function(Ae){var Be=Ae.target,Xe=Be.value,je=ye(Xe,Ae,w_.event);je&&m(Ae),M.current=void 0},Oe=function(Ae){var Be=Ae.target,Xe=Ae.key,je=Be.selectionStart,Ze=Be.selectionEnd,Et=Be.value;Et===void 0&&(Et="");var vt;Xe==="ArrowLeft"||Xe==="Backspace"?vt=Math.max(je-1,0):Xe==="ArrowRight"?vt=Math.min(je+1,Et.length):Xe==="Delete"&&(vt=je);var xe=0;Xe==="Delete"&&je===Ze&&(xe=1);var Re=Xe==="ArrowLeft"||Xe==="ArrowRight";if(vt===void 0||je!==Ze&&!Re){g(Ae),Ne(Be,xe);return}var et=vt;if(Re){var yt=Xe==="ArrowLeft"?"left":"right";et=Z(Et,vt,yt),et!==vt&&Ae.preventDefault()}else Xe==="Delete"&&!x(Et[vt])?et=Z(Et,vt,"right"):Xe==="Backspace"&&!x(Et[vt])&&(et=Z(Et,vt,"left"));et!==vt&&Q(Be,et,Et),g(Ae),Ne(Be,xe)},oe=function(Ae){var Be=Ae.target,Xe=function(){var je=Be.selectionStart,Ze=Be.selectionEnd,Et=Be.value;if(Et===void 0&&(Et=""),je===Ze){var vt=Z(Et,je);vt!==je&&Q(Be,vt,Et)}};Xe(),requestAnimationFrame(function(){Xe()}),b(Ae),Ne(Be)},Se=function(Ae){Ae.persist&&Ae.persist();var Be=Ae.target,Xe=Ae.currentTarget;P.current=Be,z.current.focusTimeout=setTimeout(function(){var je=Be.selectionStart,Ze=Be.selectionEnd,Et=Be.value;Et===void 0&&(Et="");var vt=Z(Et,je);vt!==je&&!(je===0&&Ze===Et.length)&&Q(Be,vt,Et),S(Object.assign(Object.assign({},Ae),{currentTarget:Xe}))},0)},le=function(Ae){P.current=null,clearTimeout(z.current.focusTimeout),clearTimeout(z.current.setCaretTimeout),y(Ae)},Ge=F&&Gse()?"numeric":void 0,lt=Object.assign({inputMode:Ge},C,{type:e,value:D,onChange:ke,onKeyDown:Oe,onMouseUp:oe,onFocus:Se,onBlur:le});if(n==="text")return i?On.createElement(On.Fragment,null,i(D,C)||null):On.createElement("span",Object.assign({},C,{ref:a}),D);if(r){var xt=r;return On.createElement(xt,Object.assign({},lt,{ref:a}))}return On.createElement("input",Object.assign({},lt,{ref:a}))}function hF(t,e){var n=e.decimalScale,r=e.fixedDecimalScale,i=e.prefix;i===void 0&&(i="");var a=e.suffix;a===void 0&&(a="");var s=e.allowNegative,o=e.thousandsGroupStyle;if(o===void 0&&(o="thousand"),t===""||t==="-")return t;var c=Oy(e),d=c.thousandSeparator,f=c.decimalSeparator,p=n!==0&&t.indexOf(".")!==-1||n&&r,m=oL(t,s),g=m.beforeDecimal,b=m.afterDecimal,S=m.addNegation;return n!==void 0&&(b=sH(b,n,!!r)),d&&(g=Pse(g,d,o)),i&&(g=i+g),a&&(b=b+a),S&&(g="-"+g),t=g+(p&&f||"")+b,t}function Oy(t){var e=t.decimalSeparator;e===void 0&&(e=".");var n=t.thousandSeparator,r=t.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:r}}function Qse(t,e){t===void 0&&(t="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(t),a=r.test(t);return t=t.replace(/-/g,""),i&&!a&&e&&(t="-"+t),t}function Kse(t,e){return new RegExp("(^-)|[0-9]|"+aH(t),"g")}function Xse(t,e,n){return t===""?!0:!(e!=null&&e.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof t=="string"&&!isNaN(Number(t))}function Zse(t,e,n){var r;e===void 0&&(e=qse(t));var i=n.allowNegative,a=n.prefix;a===void 0&&(a="");var s=n.suffix;s===void 0&&(s="");var o=n.decimalScale,c=e.from,d=e.to,f=d.start,p=d.end,m=Oy(n),g=m.allowedDecimalSeparators,b=m.decimalSeparator,S=t[p]===b;if(I_(t)&&(t===a||t===s)&&e.lastValue==="")return t;if(p-f===1&&g.indexOf(t[f])!==-1){var y=o===0?"":b;t=t.substring(0,f)+y+t.substring(f+1,t.length)}var E=function(P,z,V){var G=!1,Q=!1;a.startsWith("-")?G=!1:P.startsWith("--")?(G=!1,Q=!0):s.startsWith("-")&&P.length===s.length?G=!1:P[0]==="-"&&(G=!0);var Z=G?1:0;return Q&&(Z=2),Z&&(P=P.substring(Z),z-=Z,V-=Z),{value:P,start:z,end:V,hasNegation:G}},T=E(t,f,p),x=T.hasNegation;r=T,t=r.value,f=r.start,p=r.end;var O=E(e.lastValue,c.start,c.end),C=O.start,N=O.end,w=O.value,D=t.substring(f,p);t.length&&w.length&&(C>w.length-s.length||N<a.length)&&!(D&&s.startsWith(D))&&(t=w);var L=0;t.startsWith(a)?L+=a.length:f<a.length&&(L=f),t=t.substring(L),p-=L;var U=t.length,M=t.length-s.length;t.endsWith(s)?U=M:(p>M||p>t.length-s.length)&&(U=p),t=t.substring(0,U),t=Qse(x?"-"+t:t,i),t=(t.match(Kse(b))||[]).join("");var B=t.indexOf(b);t=t.replace(new RegExp(aH(b),"g"),function(P,z){return z===B?".":""});var Y=oL(t,i),H=Y.beforeDecimal,F=Y.afterDecimal,k=Y.addNegation;return d.end-d.start<c.end-c.start&&H===""&&S&&!parseFloat(F)&&(t=k?"-":""),t}function Jse(t,e){var n=e.prefix;n===void 0&&(n="");var r=e.suffix;r===void 0&&(r="");var i=Array.from({length:t.length+1}).map(function(){return!0}),a=t[0]==="-";i.fill(!1,0,n.length+(a?1:0));var s=t.length;return i.fill(!1,s-r.length+1,s+1),i}function eoe(t){var e=Oy(t),n=e.thousandSeparator,r=e.decimalSeparator,i=t.prefix;i===void 0&&(i="");var a=t.allowNegative;if(a===void 0&&(a=!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 i.startsWith("-")&&a&&(console.error(`
      Prefix can't start with '-' when allowNegative is true.
      prefix: `+i+`
      allowNegative: `+a+`
    `),a=!1),Object.assign(Object.assign({},t),{allowNegative:a})}function toe(t){t=eoe(t),t.decimalSeparator,t.allowedDecimalSeparators,t.thousandsGroupStyle;var e=t.suffix,n=t.allowNegative,r=t.allowLeadingZeros,i=t.onKeyDown;i===void 0&&(i=qu);var a=t.onBlur;a===void 0&&(a=qu);var s=t.thousandSeparator,o=t.decimalScale,c=t.fixedDecimalScale,d=t.prefix;d===void 0&&(d="");var f=t.defaultValue,p=t.value,m=t.valueIsNumericString,g=t.onValueChange,b=rH(t,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),S=Oy(t),y=S.decimalSeparator,E=S.allowedDecimalSeparators,T=function(k){return hF(k,t)},x=function(k,P){return Zse(k,P,t)},O=ip(p)?f:p,C=m??Xse(O,d,e);ip(p)?ip(f)||(C=C||typeof f=="number"):C=C||typeof p=="number";var N=function(k){return iH(k)?k:(typeof k=="number"&&(k=oH(k)),C&&typeof o=="number"?dF(k,o,!!c):k)},w=cH(N(p),N(f),!!C,T,x,g),D=w[0],L=D.numAsString,U=D.formattedValue,M=w[1],B=function(k){var P=k.target,z=k.key,V=P.selectionStart,G=P.selectionEnd,Q=P.value;if(Q===void 0&&(Q=""),(z==="Backspace"||z==="Delete")&&G<d.length){k.preventDefault();return}if(V!==G){i(k);return}z==="Backspace"&&Q[0]==="-"&&V===d.length+1&&n&&cf(P,1),o&&c&&(z==="Backspace"&&Q[V-1]===y?(cf(P,V-1),k.preventDefault()):z==="Delete"&&Q[V]===y&&k.preventDefault()),E!=null&&E.includes(z)&&Q[V]===y&&cf(P,V+1);var Z=s===!0?",":s;z==="Backspace"&&Q[V-1]===Z&&cf(P,V-1),z==="Delete"&&Q[V]===Z&&cf(P,V+1),i(k)},Y=function(k){var P=L;if(P.match(/\d/g)||(P=""),r||(P=Fse(P)),c&&o&&(P=dF(P,o,c)),P!==L){var z=hF(P,t);M({formattedValue:z,value:P,floatValue:parseFloat(P)},{event:k,source:w_.event})}a(k)},H=function(k){return k===y?!0:I_(k)},F=function(k){var P=k.currentValue,z=k.lastValue,V=k.formattedValue,G=k.currentValueIndex,Q=k.formattedValueIndex,Z=P[G],X=V[Q],ue=lH(z,P),fe=ue.to,be=function(ye){return x(ye).indexOf(".")+d.length};return p===0&&c&&o&&P[fe.start]===y&&be(P)<G&&be(V)>Q?!1:G>=fe.start&&G<fe.end&&E&&E.includes(Z)&&X===y?!0:Z===X};return Object.assign(Object.assign({},b),{value:U,valueIsNumericString:!1,isValidInputCharacter:H,isCharacterSame:F,onValueChange:M,format:T,removeFormatting:x,getCaretBoundary:function(k){return Jse(k,t)},onKeyDown:B,onBlur:Y})}function noe(t){var e=toe(t);return On.createElement(Wse,Object.assign({},e))}function pF({direction:t,style:e,...n}){return l.jsx("svg",{style:{width:"var(--ni-chevron-size)",height:"var(--ni-chevron-size)",transform:t==="up"?"rotate(180deg)":void 0,...e},viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:l.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var Iw={root:"m_e2f5cd4e",controls:"m_95e17d22",control:"m_80b4b171"};const roe=/^(0\.0*|-0(\.0*)?)$/,ioe=/^-?0\d+(\.\d+)?\.?$/;function Dw(t){return typeof t=="string"&&t!==""&&!Number.isNaN(Number(t))}function JC(t){return typeof t=="number"?t<Number.MAX_SAFE_INTEGER:t===""||Dw(t)&&Number(t)<Number.MAX_SAFE_INTEGER}function aoe(t){return t.toString().replace(".","").length}function soe(t,e){return(typeof t=="number"?t<Number.MAX_SAFE_INTEGER:!Number.isNaN(Number(t)))&&!Number.isNaN(t)&&aoe(e)<14&&e!==""}function mF(t,e,n){if(t===void 0)return!0;const r=e===void 0||t>=e,i=n===void 0||t<=n;return r&&i}const ooe={step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0},loe=(t,{size:e})=>({controls:{"--ni-chevron-size":Ut(e,"ni-chevron-size")}}),zS=Me((t,e)=>{const n=Te("NumberInput",ooe,t),{className:r,classNames:i,styles:a,unstyled:s,vars:o,onChange:c,onValueChange:d,value:f,defaultValue:p,max:m,min:g,step:b,hideControls:S,rightSection:y,isAllowed:E,clampBehavior:T,onBlur:x,allowDecimal:O,decimalScale:C,onKeyDown:N,onKeyDownCapture:w,handlersRef:D,startValue:L,disabled:U,rightSectionPointerEvents:M,allowNegative:B,readOnly:Y,size:H,rightSectionWidth:F,stepHoldInterval:k,stepHoldDelay:P,allowLeadingZeros:z,withKeyboardEvents:V,trimLeadingZeroesOnBlur:G,...Q}=n,Z=ot({name:"NumberInput",classes:Iw,props:n,classNames:i,styles:a,unstyled:s,vars:o,varsResolver:loe}),{resolvedClassNames:X,resolvedStyles:ue}=oo({classNames:i,styles:a,props:n}),[fe,be]=na({value:f,defaultValue:p,finalValue:"",onChange:c}),ye=P!==void 0&&k!==void 0,Ne=I.useRef(null),ke=I.useRef(null),Oe=I.useRef(0),oe=(xe,Re)=>{Re.source==="event"&&be(soe(xe.floatValue,xe.value)&&!roe.test(xe.value)&&!(z&&ioe.test(xe.value))?xe.floatValue:xe.value),d==null||d(xe,Re)},Se=xe=>{const Re=String(xe).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return Re?Math.max(0,(Re[1]?Re[1].length:0)-(Re[2]?+Re[2]:0)):0},le=xe=>{Ne.current&&typeof xe<"u"&&Ne.current.setSelectionRange(xe,xe)},Ge=I.useRef(kS);Ge.current=()=>{if(!JC(fe))return;let xe;const Re=Se(fe),et=Se(b),yt=Math.max(Re,et),Mt=10**yt;if(!Dw(fe)&&(typeof fe!="number"||Number.isNaN(fe)))xe=Qg(L,g,m);else if(m!==void 0){const Zt=(Math.round(Number(fe)*Mt)+Math.round(b*Mt))/Mt;xe=Zt<=m?Zt:m}else xe=(Math.round(Number(fe)*Mt)+Math.round(b*Mt))/Mt;const kt=xe.toFixed(yt);be(parseFloat(kt)),d==null||d({floatValue:parseFloat(kt),formattedValue:kt,value:kt},{source:"increment"}),setTimeout(()=>{var Zt;return le((Zt=Ne.current)==null?void 0:Zt.value.length)},0)};const lt=I.useRef(kS);lt.current=()=>{if(!JC(fe))return;let xe;const Re=g!==void 0?g:B?Number.MIN_SAFE_INTEGER:0,et=Se(fe),yt=Se(b),Mt=Math.max(et,yt),kt=10**Mt;if(!Dw(fe)&&typeof fe!="number"||Number.isNaN(fe))xe=Qg(L,Re,m);else{const zt=(Math.round(Number(fe)*kt)-Math.round(b*kt))/kt;xe=Re!==void 0&&zt<Re?Re:zt}const Zt=xe.toFixed(Mt);be(parseFloat(Zt)),d==null||d({floatValue:parseFloat(Zt),formattedValue:Zt,value:Zt},{source:"decrement"}),setTimeout(()=>{var zt;return le((zt=Ne.current)==null?void 0:zt.value.length)},0)};const xt=xe=>{N==null||N(xe),!(Y||!V)&&(xe.key==="ArrowUp"&&(xe.preventDefault(),Ge.current()),xe.key==="ArrowDown"&&(xe.preventDefault(),lt.current()))},Ae=xe=>{if(w==null||w(xe),xe.key==="Backspace"){const Re=Ne.current;Re.selectionStart===0&&Re.selectionStart===Re.selectionEnd&&(xe.preventDefault(),window.setTimeout(()=>le(0),0))}},Be=xe=>{let Re=fe;if(T==="blur"&&typeof Re=="number"&&(Re=Qg(Re,g,m)),G&&typeof Re=="string"&&Se(Re)<15){const et=Re.toString().replace(/^0+/,""),yt=parseFloat(et);Re=Number.isNaN(yt)||yt>Number.MAX_SAFE_INTEGER?et:Qg(yt,g,m)}fe!==Re&&be(Re),x==null||x(xe)};BS(D,{increment:Ge.current,decrement:lt.current});const Xe=xe=>{xe?Ge.current():lt.current(),Oe.current+=1},je=xe=>{if(Xe(xe),ye){const Re=typeof k=="number"?k:k(Oe.current);ke.current=window.setTimeout(()=>je(xe),Re)}},Ze=(xe,Re)=>{var et;xe.preventDefault(),(et=Ne.current)==null||et.focus(),Xe(Re),ye&&(ke.current=window.setTimeout(()=>je(Re),P))},Et=()=>{ke.current&&window.clearTimeout(ke.current),ke.current=null,Oe.current=0},vt=l.jsxs("div",{...Z("controls"),children:[l.jsx(bi,{...Z("control"),tabIndex:-1,"aria-hidden":!0,disabled:U||typeof fe=="number"&&m!==void 0&&fe>=m,mod:{direction:"up"},onMouseDown:xe=>xe.preventDefault(),onPointerDown:xe=>{Ze(xe,!0)},onPointerUp:Et,onPointerLeave:Et,children:l.jsx(pF,{direction:"up"})}),l.jsx(bi,{...Z("control"),tabIndex:-1,"aria-hidden":!0,disabled:U||typeof fe=="number"&&g!==void 0&&fe<=g,mod:{direction:"down"},onMouseDown:xe=>xe.preventDefault(),onPointerDown:xe=>{Ze(xe,!1)},onPointerUp:Et,onPointerLeave:Et,children:l.jsx(pF,{direction:"down"})})]});return l.jsx(as,{component:noe,allowNegative:B,className:Tr(Iw.root,r),size:H,...Q,readOnly:Y,disabled:U,value:fe,getInputRef:$r(e,Ne),onValueChange:oe,rightSection:S||Y||!JC(fe)?y:y||vt,classNames:X,styles:ue,unstyled:s,__staticSelector:"NumberInput",decimalScale:O?C:0,onKeyDown:xt,onKeyDownCapture:Ae,rightSectionPointerEvents:M??(U?"none":void 0),rightSectionWidth:F??`var(--ni-right-section-width-${H||"sm"})`,allowLeadingZeros:z,onBlur:Be,isAllowed:xe=>T==="strict"?E?E(xe)&&mF(xe.floatValue,g,m):mF(xe.floatValue,g,m):E?E(xe):!0})});zS.classes={...as.classes,...Iw};zS.displayName="@mantine/core/NumberInput";const[coe,Ry]=va("Pagination.Root component was not found in tree");var E0={root:"m_4addd315",control:"m_326d024a",dots:"m_4ad7767d"};const uoe={withPadding:!0},y0=Me((t,e)=>{const n=Te("PaginationControl",uoe,t),{classNames:r,className:i,style:a,styles:s,vars:o,active:c,disabled:d,withPadding:f,mod:p,...m}=n,g=Ry(),b=d||g.disabled;return l.jsx(bi,{ref:e,disabled:b,mod:[{active:c,disabled:b,"with-padding":f},p],...g.getStyles("control",{className:i,style:a,classNames:r,styles:s,active:!b}),...m})});y0.classes=E0;y0.displayName="@mantine/core/PaginationControl";function T0({style:t,children:e,path:n,...r}){return l.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)",...t},...r,children:l.jsx("path",{d:n,fill:"currentColor"})})}const doe=t=>l.jsx(T0,{...t,path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"}),foe=t=>l.jsx(T0,{...t,path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"}),hoe=t=>l.jsx(T0,{...t,path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"}),poe=t=>l.jsx(T0,{...t,path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"}),moe=t=>l.jsx(T0,{...t,path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"}),goe={icon:moe},Ny=Me((t,e)=>{const n=Te("PaginationDots",goe,t),{classNames:r,className:i,style:a,styles:s,vars:o,icon:c,...d}=n,f=Ry(),p=c;return l.jsx(ve,{ref:e,...f.getStyles("dots",{className:i,style:a,styles:s,classNames:r}),...d,children:l.jsx(p,{style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});Ny.classes=E0;Ny.displayName="@mantine/core/PaginationDots";function Ay({icon:t,name:e,action:n,type:r}){const i={icon:t},a=I.forwardRef((s,o)=>{const{icon:c,...d}=Te(e,i,s),f=c,p=Ry(),m=r==="next"?p.active===p.total:p.active===1;return l.jsx(y0,{disabled:p.disabled||m,ref:o,onClick:p[n],withPadding:!1,...d,children:l.jsx(f,{className:"mantine-rotate-rtl",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});return a.displayName=`@mantine/core/${e}`,a}const uH=Ay({icon:doe,name:"PaginationNext",action:"onNext",type:"next"}),dH=Ay({icon:foe,name:"PaginationPrevious",action:"onPrevious",type:"previous"}),fH=Ay({icon:hoe,name:"PaginationFirst",action:"onFirst",type:"previous"}),hH=Ay({icon:poe,name:"PaginationLast",action:"onLast",type:"next"});function lL({dotsIcon:t}){const e=Ry(),n=e.range.map((r,i)=>{var a,s,o;return r==="dots"?l.jsx(Ny,{icon:t},i):l.jsx(y0,{active:r===e.active,"aria-current":r===e.active?"page":void 0,onClick:()=>e.onChange(r),disabled:e.disabled,...(a=e.getItemProps)==null?void 0:a.call(e,r),children:((o=(s=e.getItemProps)==null?void 0:s.call(e,r))==null?void 0:o.children)??r},i)});return l.jsx(l.Fragment,{children:n})}lL.displayName="@mantine/core/PaginationItems";const _oe={siblings:1,boundaries:1},boe=(t,{size:e,radius:n,color:r,autoContrast:i})=>({root:{"--pagination-control-radius":n===void 0?void 0:Yn(n),"--pagination-control-size":Ut(e,"pagination-control-size"),"--pagination-control-fz":Rr(e),"--pagination-active-bg":r?tr(r,t):void 0,"--pagination-active-color":cm(i,t)?xd({color:r,theme:t,autoContrast:i}):void 0}}),wy=Me((t,e)=>{const n=Te("PaginationRoot",_oe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,total:d,value:f,defaultValue:p,onChange:m,disabled:g,siblings:b,boundaries:S,color:y,radius:E,onNextPage:T,onPreviousPage:x,onFirstPage:O,onLastPage:C,getItemProps:N,autoContrast:w,...D}=n,L=ot({name:"Pagination",classes:E0,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:boe}),{range:U,setPage:M,next:B,previous:Y,active:H,first:F,last:k}=fee({page:f,initialPage:p,onChange:m,total:d,siblings:b,boundaries:S}),P=Ja(T,B),z=Ja(x,Y),V=Ja(O,F),G=Ja(C,k);return l.jsx(coe,{value:{total:d,range:U,active:H,disabled:g,getItemProps:N,onChange:M,onNext:P,onPrevious:z,onFirst:V,onLast:G,getStyles:L},children:l.jsx(ve,{ref:e,...L("root"),...D})})});wy.classes=E0;wy.displayName="@mantine/core/PaginationRoot";const voe={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8},ho=Me((t,e)=>{const n=Te("Pagination",voe,t),{withEdges:r,withControls:i,getControlProps:a,nextIcon:s,previousIcon:o,lastIcon:c,firstIcon:d,dotsIcon:f,total:p,gap:m,hideWithOnePage:g,withPages:b,...S}=n;return p<=0||g&&p===1?null:l.jsx(wy,{ref:e,total:p,...S,children:l.jsxs(pt,{gap:m,children:[r&&l.jsx(fH,{icon:d,...a==null?void 0:a("first")}),i&&l.jsx(dH,{icon:o,...a==null?void 0:a("previous")}),b&&l.jsx(lL,{dotsIcon:f}),i&&l.jsx(uH,{icon:s,...a==null?void 0:a("next")}),r&&l.jsx(hH,{icon:c,...a==null?void 0:a("last")})]})})});ho.classes=E0;ho.displayName="@mantine/core/Pagination";ho.Root=wy;ho.Control=y0;ho.Dots=Ny;ho.First=fH;ho.Last=hH;ho.Next=uH;ho.Previous=dH;ho.Items=lL;const[Soe,pH]=va("Progress.Root component was not found in tree");var x0={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd",label:"m_91e40b74"};const Eoe={},cL=Me((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,...o}=Te("ProgressLabel",Eoe,t),c=pH();return l.jsx(ve,{ref:e,...c.getStyles("label",{className:r,style:i,classNames:n,styles:a}),...o})});cL.classes=x0;cL.displayName="@mantine/core/ProgressLabel";const yoe={},Toe=(t,{size:e,radius:n,transitionDuration:r})=>({root:{"--progress-size":Ut(e,"progress-size"),"--progress-radius":n===void 0?void 0:Yn(n),"--progress-transition-duration":typeof r=="number"?`${r}ms`:void 0}}),Iy=Me((t,e)=>{const n=Te("ProgressRoot",yoe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,autoContrast:d,transitionDuration:f,...p}=n,m=ot({name:"Progress",classes:x0,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Toe});return l.jsx(Soe,{value:{getStyles:m,autoContrast:d},children:l.jsx(ve,{ref:e,...m("root"),...p})})});Iy.classes=x0;Iy.displayName="@mantine/core/ProgressRoot";const xoe={withAria:!0},Dy=Me((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,value:o,withAria:c,color:d,striped:f,animated:p,mod:m,...g}=Te("ProgressSection",xoe,t),b=pH(),S=Fi(),y=c?{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o,"aria-valuetext":`${o}%`}:{};return l.jsx(ve,{ref:e,...b.getStyles("section",{className:r,classNames:n,styles:a,style:i}),...g,...y,mod:[{striped:f||p,animated:p},m],__vars:{"--progress-section-width":`${o}%`,"--progress-section-color":tr(d,S),"--progress-label-color":cm(b.autoContrast,S)?xd({color:d,theme:S,autoContrast:b.autoContrast}):void 0}})});Dy.classes=x0;Dy.displayName="@mantine/core/ProgressSection";const Coe={},vm=Me((t,e)=>{const n=Te("Progress",Coe,t),{value:r,classNames:i,styles:a,vars:s,color:o,striped:c,animated:d,"aria-label":f,...p}=n,{resolvedClassNames:m,resolvedStyles:g}=oo({classNames:i,styles:a,props:n});return l.jsx(Iy,{ref:e,classNames:m,styles:g,vars:s,...p,children:l.jsx(Dy,{value:r,color:o,striped:c,animated:d,"aria-label":f})})});vm.classes=x0;vm.displayName="@mantine/core/Progress";vm.Section=Dy;vm.Root=Iy;vm.Label=cL;const Ooe={duration:100,transition:"fade"};function Roe(t,e){return{...Ooe,...e,...t}}function Noe({offset:t,position:e,defaultOpened:n}){const[r,i]=I.useState(n),a=I.useRef(null),{x:s,y:o,elements:c,refs:d,update:f,placement:p}=aM({placement:e,middleware:[tM({crossAxis:!0,padding:5,rootBoundary:"document"})]}),m=p.includes("right")?t:e.includes("left")?t*-1:0,g=p.includes("bottom")?t:e.includes("top")?t*-1:0,b=I.useCallback(({clientX:S,clientY:y})=>{d.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:S,y,left:S+m,top:y+g,right:S,bottom:y}}})},[c.reference]);return I.useEffect(()=>{if(d.floating.current){const S=a.current;S.addEventListener("mousemove",b);const y=Lc(d.floating.current);return y.forEach(E=>{E.addEventListener("scroll",f)}),()=>{S.removeEventListener("mousemove",b),y.forEach(E=>{E.removeEventListener("scroll",f)})}}},[c.reference,d.floating.current,f,b,r]),{handleMouseMove:b,x:s,y:o,opened:r,setOpened:i,boundaryRef:a,floating:d.setFloating}}var My={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const Aoe={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:so("popover")},woe=(t,{radius:e,color:n})=>({tooltip:{"--tooltip-radius":e===void 0?void 0:Yn(e),"--tooltip-bg":n?tr(n,t):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),uL=Me((t,e)=>{const n=Te("TooltipFloating",Aoe,t),{children:r,refProp:i,withinPortal:a,style:s,className:o,classNames:c,styles:d,unstyled:f,radius:p,color:m,label:g,offset:b,position:S,multiline:y,zIndex:E,disabled:T,defaultOpened:x,variant:O,vars:C,portalProps:N,...w}=n,D=Fi(),L=ot({name:"TooltipFloating",props:n,classes:My,className:o,style:s,classNames:c,styles:d,unstyled:f,rootSelector:"tooltip",vars:C,varsResolver:woe}),{handleMouseMove:U,x:M,y:B,opened:Y,boundaryRef:H,floating:F,setOpened:k}=Noe({offset:b,position:S,defaultOpened:x});if(!yd(r))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const P=$r(H,KE(r),e),z=r.props,V=Q=>{var Z;(Z=z.onMouseEnter)==null||Z.call(z,Q),U(Q),k(!0)},G=Q=>{var Z;(Z=z.onMouseLeave)==null||Z.call(z,Q),k(!1)};return l.jsxs(l.Fragment,{children:[l.jsx(Xf,{...N,withinPortal:a,children:l.jsx(ve,{...w,...L("tooltip",{style:{...YD(s,D),zIndex:E,display:!T&&Y?"block":"none",top:(B&&Math.round(B))??"",left:(M&&Math.round(M))??""}}),variant:O,ref:F,mod:{multiline:y},children:g})}),I.cloneElement(r,{...z,[i]:P,onMouseEnter:V,onMouseLeave:G})]})});uL.classes=My;uL.displayName="@mantine/core/TooltipFloating";const mH=I.createContext(!1),Ioe=mH.Provider,Doe=()=>I.useContext(mH),Moe={openDelay:0,closeDelay:0};function dL(t){const{openDelay:e,closeDelay:n,children:r}=Te("TooltipGroup",Moe,t);return l.jsx(Ioe,{value:!0,children:l.jsx(Yne,{delay:{open:e,close:n},children:r})})}dL.displayName="@mantine/core/TooltipGroup";dL.extend=t=>t;function Loe(t){if(t===void 0)return{shift:!0,flip:!0};const e={...t};return t.shift===void 0&&(e.shift=!0),t.flip===void 0&&(e.flip=!0),e}function koe(t){const e=Loe(t.middlewares),n=[Iz(t.offset)];return e.shift&&n.push(tM(typeof e.shift=="boolean"?{padding:8}:{padding:8,...e.shift})),e.flip&&n.push(typeof e.flip=="boolean"?qS():qS(e.flip)),n.push(Dz({element:t.arrowRef,padding:t.arrowOffset})),e.inline?n.push(typeof e.inline=="boolean"?f_():f_(e.inline)):t.inline&&n.push(f_()),n}function Poe(t){var N,w,D;const[e,n]=I.useState(t.defaultOpened),i=typeof t.opened=="boolean"?t.opened:e,a=Doe(),s=ja(),o=I.useCallback(L=>{n(L),L&&T(s)},[s]),{x:c,y:d,context:f,refs:p,update:m,placement:g,middlewareData:{arrow:{x:b,y:S}={}}}=aM({strategy:t.strategy,placement:t.position,open:i,onOpenChange:o,middleware:koe(t)}),{delay:y,currentId:E,setCurrentId:T}=Hne(f,{id:s}),{getReferenceProps:x,getFloatingProps:O}=Jne([$ne(f,{enabled:(N=t.events)==null?void 0:N.hover,delay:a?y:{open:t.openDelay,close:t.closeDelay},mouseOnly:!((w=t.events)!=null&&w.touch)}),Zne(f,{enabled:(D=t.events)==null?void 0:D.focus,visibleOnly:!0}),tre(f,{role:"tooltip"}),Kne(f,{enabled:typeof t.opened>"u"})]);iY({opened:i,position:t.position,positionDependencies:t.positionDependencies,floating:{refs:p,update:m}}),ro(()=>{var L;(L=t.onPositionChange)==null||L.call(t,g)},[g]);const C=i&&E&&E!==s;return{x:c,y:d,arrowX:b,arrowY:S,reference:p.setReference,floating:p.setFloating,getFloatingProps:O,getReferenceProps:x,isGroupPhase:C,opened:i,placement:g}}const gF={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:so("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},Boe=(t,{radius:e,color:n})=>({tooltip:{"--tooltip-radius":e===void 0?void 0:Yn(e),"--tooltip-bg":n?tr(n,t):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),gi=Me((t,e)=>{const n=Te("Tooltip",gF,t),{children:r,position:i,refProp:a,label:s,openDelay:o,closeDelay:c,onPositionChange:d,opened:f,defaultOpened:p,withinPortal:m,radius:g,color:b,classNames:S,styles:y,unstyled:E,style:T,className:x,withArrow:O,arrowSize:C,arrowOffset:N,arrowRadius:w,arrowPosition:D,offset:L,transitionProps:U,multiline:M,events:B,zIndex:Y,disabled:H,positionDependencies:F,onClick:k,onMouseEnter:P,onMouseLeave:z,inline:V,variant:G,keepMounted:Q,vars:Z,portalProps:X,mod:ue,floatingStrategy:fe,middlewares:be,...ye}=Te("Tooltip",gF,n),{dir:Ne}=um(),ke=I.useRef(null),Oe=Poe({position:Xz(Ne,i),closeDelay:c,openDelay:o,onPositionChange:d,opened:f,defaultOpened:p,events:B,arrowRef:ke,arrowOffset:N,offset:typeof L=="number"?L+(O?C/2:0):L,positionDependencies:[...F,r],inline:V,strategy:fe,middlewares:be}),oe=ot({name:"Tooltip",props:n,classes:My,className:x,style:T,classNames:S,styles:y,unstyled:E,rootSelector:"tooltip",vars:Z,varsResolver:Boe});if(!yd(r))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const Se=$r(Oe.reference,KE(r),e),le=Roe(U,{duration:100,transition:"fade"}),Ge=r.props;return l.jsxs(l.Fragment,{children:[l.jsx(Xf,{...X,withinPortal:m,children:l.jsx(Kc,{...le,keepMounted:Q,mounted:!H&&!!Oe.opened,duration:Oe.isGroupPhase?10:le.duration,children:lt=>l.jsxs(ve,{...ye,"data-fixed":fe==="fixed"||void 0,variant:G,mod:[{multiline:M},ue],...Oe.getFloatingProps({ref:Oe.floating,className:oe("tooltip").className,style:{...oe("tooltip").style,...lt,zIndex:Y,top:Oe.y??0,left:Oe.x??0}}),children:[s,l.jsx(uM,{ref:ke,arrowX:Oe.arrowX,arrowY:Oe.arrowY,visible:O,position:Oe.placement,arrowSize:C,arrowOffset:N,arrowRadius:w,arrowPosition:D,...oe("arrow")})]})})}),I.cloneElement(r,Oe.getReferenceProps({onClick:k,onMouseEnter:P,onMouseLeave:z,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:Tr(x,Ge.className),...Ge,[a]:Se}))]})});gi.classes=My;gi.displayName="@mantine/core/Tooltip";gi.Floating=uL;gi.Group=dL;function Foe({size:t,thickness:e,sum:n,value:r,root:i,offset:a}){const s=(t*.9-e*2)/2,o=Math.PI*s*2/100,c=i||r===void 0?`${(100-n)*o}, ${n*o}`:`${r*o}, ${(100-r)*o}`;return{strokeWidth:Number.isNaN(e)?12:e,cx:t/2||0,cy:t/2||0,r:s||0,transform:i?`scale(1, -1) translate(0, -${t})`:void 0,strokeDasharray:c,strokeDashoffset:i?0:a||0}}function gH({size:t,value:e,offset:n,sum:r,thickness:i,root:a,color:s,lineRoundCaps:o,tooltip:c,getStyles:d,display:f,...p}){const m=Fi();return l.jsx(gi.Floating,{disabled:!c,label:c,children:l.jsx(ve,{component:"circle",...p,...d("curve"),__vars:{"--curve-color":s?tr(s,m):void 0},fill:"none",strokeLinecap:o?"round":"butt",...Foe({sum:r,size:t,thickness:i,value:e,offset:n,root:a})})})}gH.displayName="@mantine/core/Curve";function Uoe({size:t,thickness:e,sections:n,renderRoundedLineCaps:r,rootColor:i}){const a=n.reduce((f,p)=>f+p.value,0),s=Math.PI*((t*.9-e*2)/2)*2;let o=s;const c=[],d=[];for(let f=0;f<n.length;f+=1)c.push({sum:a,offset:o,data:n[f],root:!1}),o-=n[f].value/100*s;if(c.push({sum:a,offset:o,data:{color:i},root:!0}),d.push({...c[c.length-1],lineRoundCaps:!1}),c.length>2){d.push({...c[0],lineRoundCaps:r}),d.push({...c[c.length-2],lineRoundCaps:r});for(let f=1;f<=c.length-3;f+=1)d.push({...c[f],lineRoundCaps:!1})}else d.push({...c[0],lineRoundCaps:r});return d}var _H={root:"m_b32e4812",svg:"m_d43b5134",curve:"m_b1ca1fbf",label:"m_b23f9dc4"};function joe(t,e){return Math.min(t||12,(e||120)/4)}const Goe={size:120,thickness:12},qoe=(t,{size:e,thickness:n,transitionDuration:r})=>({root:{"--rp-size":he(e),"--rp-label-offset":he(n*2),"--rp-transition-duration":r?`${r}ms`:void 0}}),Ly=Me((t,e)=>{const n=Te("RingProgress",Goe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,label:d,sections:f,size:p,thickness:m,roundCaps:g,rootColor:b,transitionDuration:S,...y}=n,E=ot({name:"RingProgress",classes:_H,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:qoe}),T=joe(m,p),x=Uoe({size:p,thickness:T,sections:f,renderRoundedLineCaps:g,rootColor:b}).map(({data:O,sum:C,root:N,lineRoundCaps:w,offset:D},L)=>I.createElement(gH,{...O,key:L,size:p,thickness:T,sum:C,offset:D,color:O==null?void 0:O.color,root:N,lineRoundCaps:w,getStyles:E}));return l.jsxs(ve,{...E("root"),size:p,ref:e,...y,children:[l.jsx("svg",{...E("svg"),children:x}),d&&l.jsx("div",{...E("label"),children:d})]})});Ly.classes=_H;Ly.displayName="@mantine/core/RingProgress";var bH={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const $oe={withItemsBorders:!0},zoe=(t,{radius:e,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":e===void 0?void 0:Yn(e),"--sc-color":n?tr(n,t):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":Ut(i,"sc-padding"),"--sc-font-size":Rr(i)}}),C0=Me((t,e)=>{var Ne,ke;const n=Te("SegmentedControl",$oe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,data:d,value:f,defaultValue:p,onChange:m,size:g,name:b,disabled:S,readOnly:y,fullWidth:E,orientation:T,radius:x,color:O,transitionDuration:C,transitionTimingFunction:N,variant:w,autoContrast:D,withItemsBorders:L,mod:U,...M}=n,B=ot({name:"SegmentedControl",props:n,classes:bH,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:zoe}),Y=Fi(),H=d.map(Oe=>typeof Oe=="string"?{label:Oe,value:Oe}:Oe),F=yee(),[k,P]=I.useState(x_()),[z,V]=I.useState(null),[G,Q]=I.useState({}),Z=(Oe,oe)=>{G[oe]=Oe,Q(G)},[X,ue]=na({value:f,defaultValue:p,finalValue:Array.isArray(d)?((Ne=H.find(Oe=>!Oe.disabled))==null?void 0:Ne.value)??((ke=d[0])==null?void 0:ke.value)??null:null,onChange:m}),fe=ja(b),be=H.map(Oe=>I.createElement(ve,{...B("control"),mod:{active:X===Oe.value,orientation:T},key:Oe.value},I.createElement("input",{...B("input"),disabled:S||Oe.disabled,type:"radio",name:fe,value:Oe.value,id:`${fe}-${Oe.value}`,checked:X===Oe.value,onChange:()=>!y&&ue(Oe.value),"data-focus-ring":Y.focusRing,key:`${Oe.value}-input`}),I.createElement(ve,{component:"label",...B("label"),mod:{active:X===Oe.value&&!(S||Oe.disabled),disabled:S||Oe.disabled,"read-only":y},htmlFor:`${fe}-${Oe.value}`,ref:oe=>Z(oe,Oe.value),__vars:{"--sc-label-color":O!==void 0?xd({color:O,theme:Y,autoContrast:D}):void 0},key:`${Oe.value}-label`},l.jsx("span",{...B("innerLabel"),children:Oe.label})))),ye=$r(e,Oe=>V(Oe));return bee(()=>{P(x_())},[d.length]),d.length===0?null:l.jsxs(ve,{...B("root"),variant:w,size:g,ref:ye,mod:[{"full-width":E,orientation:T,initialized:F,"with-items-borders":L},U],...M,role:"radiogroup","data-disabled":S,children:[typeof X=="string"&&l.jsx(gM,{target:G[X],parent:z,component:"span",transitionDuration:"var(--sc-transition-duration)",...B("indicator")},k),be]})});C0.classes=bH;C0.displayName="@mantine/core/SegmentedControl";const Yoe={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},Sm=Me((t,e)=>{const n=Te("Select",Yoe,t),{classNames:r,styles:i,unstyled:a,vars:s,dropdownOpened:o,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:f,onFocus:p,onBlur:m,onClick:g,onChange:b,data:S,value:y,defaultValue:E,selectFirstOptionOnChange:T,onOptionSubmit:x,comboboxProps:O,readOnly:C,disabled:N,filter:w,limit:D,withScrollArea:L,maxDropdownHeight:U,size:M,searchable:B,rightSection:Y,checkIconPosition:H,withCheckIcon:F,nothingFoundMessage:k,name:P,form:z,searchValue:V,defaultSearchValue:G,onSearchChange:Q,allowDeselect:Z,error:X,rightSectionPointerEvents:ue,id:fe,clearable:be,clearButtonProps:ye,hiddenInputProps:Ne,renderOption:ke,onClear:Oe,autoComplete:oe,scrollAreaProps:Se,__defaultRightSection:le,__clearSection:Ge,__clearable:lt,chevronColor:xt,...Ae}=n,Be=I.useMemo(()=>RY(S),[S]),Xe=I.useMemo(()=>RM(Be),[Be]),je=ja(fe),[Ze,Et,vt]=na({value:y,defaultValue:E,finalValue:null,onChange:b}),xe=typeof Ze=="string"?Xe[Ze]:void 0,Re=See(xe),[et,yt]=na({value:V,defaultValue:G,finalValue:xe?xe.label:"",onChange:Q}),Mt=hy({opened:o,defaultOpened:c,onDropdownOpen:()=>{f==null||f(),Mt.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{d==null||d(),Mt.resetSelectedOption()}}),kt=Lt=>{yt(Lt),Mt.resetSelectedOption()},{resolvedClassNames:Zt,resolvedStyles:zt}=oo({props:n,styles:i,classNames:r});I.useEffect(()=>{T&&Mt.selectFirstOption()},[T,et]),I.useEffect(()=>{y===null&&kt(""),typeof y=="string"&&xe&&((Re==null?void 0:Re.value)!==xe.value||(Re==null?void 0:Re.label)!==xe.label)&&kt(xe.label)},[y,xe]);const Fn=l.jsx(nn.ClearButton,{...ye,onClear:()=>{Et(null,null),kt(""),Oe==null||Oe()}}),Hn=be&&!!Ze&&!N&&!C;return l.jsxs(l.Fragment,{children:[l.jsxs(nn,{store:Mt,__staticSelector:"Select",classNames:Zt,styles:zt,unstyled:a,readOnly:C,onOptionSubmit:Lt=>{x==null||x(Lt);const Jt=Z&&Xe[Lt].value===Ze?null:Xe[Lt],si=Jt?Jt.value:null;si!==Ze&&Et(si,Jt),!vt&&kt(typeof si=="string"&&(Jt==null?void 0:Jt.label)||""),Mt.closeDropdown()},size:M,...O,children:[l.jsx(nn.Target,{targetType:B?"input":"button",autoComplete:oe,children:l.jsx(as,{id:je,ref:e,__defaultRightSection:l.jsx(nn.Chevron,{size:M,error:X,unstyled:a,color:xt}),__clearSection:Fn,__clearable:Hn,rightSection:Y,rightSectionPointerEvents:ue||(Hn?"all":"none"),...Ae,size:M,__staticSelector:"Select",disabled:N,readOnly:C||!B,value:et,onChange:Lt=>{kt(Lt.currentTarget.value),Mt.openDropdown(),T&&Mt.selectFirstOption()},onFocus:Lt=>{B&&Mt.openDropdown(),p==null||p(Lt)},onBlur:Lt=>{var Jt;B&&Mt.closeDropdown(),kt(Ze!=null&&((Jt=Xe[Ze])==null?void 0:Jt.label)||""),m==null||m(Lt)},onClick:Lt=>{B?Mt.openDropdown():Mt.toggleDropdown(),g==null||g(Lt)},classNames:Zt,styles:zt,unstyled:a,pointer:!B,error:X})}),l.jsx(zY,{data:Be,hidden:C||N,filter:w,search:et,limit:D,hiddenWhenEmpty:!k,withScrollArea:L,maxDropdownHeight:U,filterOptions:B&&(xe==null?void 0:xe.label)!==et,value:Ze,checkIconPosition:H,withCheckIcon:F,nothingFoundMessage:k,unstyled:a,labelId:Ae.label?`${je}-label`:void 0,"aria-label":Ae.label?void 0:Ae["aria-label"],renderOption:ke,scrollAreaProps:Se})]}),l.jsx(nn.HiddenInput,{value:Ze,name:P,form:z,disabled:N,...Ne})]})});Sm.classes={...as.classes,...nn.classes};Sm.displayName="@mantine/core/Select";var vH={root:"m_18320242","skeleton-fade":"m_299c329c"};const Hoe={visible:!0,animate:!0},Voe=(t,{width:e,height:n,radius:r,circle:i})=>({root:{"--skeleton-height":he(n),"--skeleton-width":he(i?n:e),"--skeleton-radius":i?"1000px":r===void 0?void 0:Yn(r)}}),nl=Me((t,e)=>{const n=Te("Skeleton",Hoe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,width:d,height:f,circle:p,visible:m,radius:g,animate:b,mod:S,...y}=n,E=ot({name:"Skeleton",classes:vH,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Voe});return l.jsx(ve,{ref:e,...E("root"),mod:[{visible:m,animate:b},S],...y})});nl.classes=vH;nl.displayName="@mantine/core/Skeleton";const Woe={},SH=Me((t,e)=>{const{w:n,h:r,miw:i,mih:a,...s}=Te("Space",Woe,t);return l.jsx(ve,{ref:e,...s,w:n,miw:i??n,h:r,mih:a??r})});SH.displayName="@mantine/core/Space";var EH={root:"m_6d731127"};const Qoe={gap:"md",align:"stretch",justify:"flex-start"},Koe=(t,{gap:e,align:n,justify:r})=>({root:{"--stack-gap":zl(e),"--stack-align":n,"--stack-justify":r}}),Bn=Me((t,e)=>{const n=Te("Stack",Qoe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,align:d,justify:f,gap:p,variant:m,...g}=n,b=ot({name:"Stack",props:n,classes:EH,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Koe});return l.jsx(ve,{ref:e,...b("root"),variant:m,...g})});Bn.classes=EH;Bn.displayName="@mantine/core/Stack";const yH=I.createContext(null),Xoe=yH.Provider,Zoe=()=>I.useContext(yH),Joe={},fL=Me((t,e)=>{const{value:n,defaultValue:r,onChange:i,size:a,wrapperProps:s,children:o,readOnly:c,...d}=Te("SwitchGroup",Joe,t),[f,p]=na({value:n,defaultValue:r,finalValue:[],onChange:i}),m=g=>{const b=g.currentTarget.value;!c&&p(f.includes(b)?f.filter(S=>S!==b):[...f,b])};return l.jsx(Xoe,{value:{value:f,onChange:m,size:a},children:l.jsx(Sr.Wrapper,{size:a,ref:e,...s,...d,labelElement:"div",__staticSelector:"SwitchGroup",children:l.jsx(BY,{role:"group",children:o})})})});fL.classes=Sr.Wrapper.classes;fL.displayName="@mantine/core/SwitchGroup";var TH={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const ele={labelPosition:"right"},tle=(t,{radius:e,color:n,size:r})=>({root:{"--switch-radius":e===void 0?void 0:Yn(e),"--switch-height":Ut(r,"switch-height"),"--switch-width":Ut(r,"switch-width"),"--switch-thumb-size":Ut(r,"switch-thumb-size"),"--switch-label-font-size":Ut(r,"switch-label-font-size"),"--switch-track-label-padding":Ut(r,"switch-track-label-padding"),"--switch-color":n?tr(n,t):void 0}}),ky=Me((t,e)=>{const n=Te("Switch",ele,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,color:d,label:f,offLabel:p,onLabel:m,id:g,size:b,radius:S,wrapperProps:y,thumbIcon:E,checked:T,defaultChecked:x,onChange:O,labelPosition:C,description:N,error:w,disabled:D,variant:L,rootRef:U,mod:M,...B}=n,Y=Zoe(),H=b||(Y==null?void 0:Y.size),F=ot({name:"Switch",props:n,classes:TH,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:tle}),{styleProps:k,rest:P}=p0(B),z=ja(g),V=Y?{checked:Y.value.includes(P.value),onChange:Y.onChange}:{},[G,Q]=na({value:V.checked??T,defaultValue:x,finalValue:!1});return l.jsxs(FM,{...F("root"),__staticSelector:"Switch",__stylesApiProps:n,id:z,size:H,labelPosition:C,label:f,description:N,error:w,disabled:D,bodyElement:"label",labelElement:"span",classNames:r,styles:s,unstyled:o,"data-checked":V.checked||T||void 0,variant:L,ref:U,mod:M,...k,...y,children:[l.jsx("input",{...P,disabled:D,checked:G,"data-checked":V.checked||T||void 0,onChange:Z=>{var X;Y?(X=V.onChange)==null||X.call(V,Z):O==null||O(Z),Q(Z.currentTarget.checked)},id:z,ref:e,type:"checkbox",role:"switch",...F("input")}),l.jsxs(ve,{"aria-hidden":"true",mod:{error:w,"label-position":C,"without-labels":!m&&!p},...F("track"),children:[l.jsx(ve,{component:"span",mod:"reduce-motion",...F("thumb"),children:E}),l.jsx("span",{...F("trackLabel"),children:G?m:p})]})]})});ky.classes={...TH,...MY};ky.displayName="@mantine/core/Switch";ky.Group=fL;const[nle,rle]=va("Table component was not found in the tree");var O0={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function ile(t,e){if(!e)return;const n={};return e.columnBorder&&t.withColumnBorders&&(n["data-with-column-border"]=!0),e.rowBorder&&t.withRowBorders&&(n["data-with-row-border"]=!0),e.striped&&t.striped&&(n["data-striped"]=t.striped),e.highlightOnHover&&t.highlightOnHover&&(n["data-hover"]=!0),e.captionSide&&t.captionSide&&(n["data-side"]=t.captionSide),e.stickyHeader&&t.stickyHeader&&(n["data-sticky"]=!0),n}function Zf(t,e){const n=`Table${t.charAt(0).toUpperCase()}${t.slice(1)}`,r=Me((i,a)=>{const s=Te(n,{},i),{classNames:o,className:c,style:d,styles:f,...p}=s,m=rle();return l.jsx(ve,{component:t,ref:a,...ile(m,e),...m.getStyles(t,{className:c,classNames:o,style:d,styles:f,props:s}),...p})});return r.displayName=`@mantine/core/${n}`,r.classes=O0,r}const Mw=Zf("th",{columnBorder:!0}),xH=Zf("td",{columnBorder:!0}),rS=Zf("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),CH=Zf("thead",{stickyHeader:!0}),OH=Zf("tbody"),RH=Zf("tfoot"),NH=Zf("caption",{captionSide:!0});function hL({data:t}){return l.jsxs(l.Fragment,{children:[t.caption&&l.jsx(NH,{children:t.caption}),t.head&&l.jsx(CH,{children:l.jsx(rS,{children:t.head.map((e,n)=>l.jsx(Mw,{children:e},n))})}),t.body&&l.jsx(OH,{children:t.body.map((e,n)=>l.jsx(rS,{children:e.map((r,i)=>l.jsx(xH,{children:r},i))},n))}),t.foot&&l.jsx(RH,{children:l.jsx(rS,{children:t.foot.map((e,n)=>l.jsx(Mw,{children:e},n))})})]})}hL.displayName="@mantine/core/TableDataRenderer";const ale={type:"scrollarea"},sle=(t,{minWidth:e,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":he(e),"--table-max-height":he(n),"--table-overflow":r==="native"?"auto":void 0}}),pL=Me((t,e)=>{const n=Te("TableScrollContainer",ale,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,children:d,minWidth:f,maxHeight:p,type:m,...g}=n,b=ot({name:"TableScrollContainer",classes:O0,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:sle,rootSelector:"scrollContainer"});return l.jsx(ve,{component:m==="scrollarea"?Qc:"div",...m==="scrollarea"?p?{offsetScrollbars:"xy"}:{offsetScrollbars:"x"}:{},ref:e,...b("scrollContainer"),...g,children:l.jsx("div",{...b("scrollContainerInner"),children:d})})});pL.classes=O0;pL.displayName="@mantine/core/TableScrollContainer";const ole={withRowBorders:!0,verticalSpacing:7},lle=(t,{layout:e,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:s,highlightOnHoverColor:o,striped:c,highlightOnHover:d,stickyHeaderOffset:f,stickyHeader:p})=>({table:{"--table-layout":e,"--table-caption-side":n,"--table-horizontal-spacing":zl(r),"--table-vertical-spacing":zl(i),"--table-border-color":a?tr(a,t):void 0,"--table-striped-color":c&&s?tr(s,t):void 0,"--table-highlight-on-hover-color":d&&o?tr(o,t):void 0,"--table-sticky-header-offset":p?he(f):void 0}}),ie=Me((t,e)=>{const n=Te("Table",ole,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,horizontalSpacing:d,verticalSpacing:f,captionSide:p,stripedColor:m,highlightOnHoverColor:g,striped:b,highlightOnHover:S,withColumnBorders:y,withRowBorders:E,withTableBorder:T,borderColor:x,layout:O,variant:C,data:N,children:w,stickyHeader:D,stickyHeaderOffset:L,mod:U,tabularNums:M,...B}=n,Y=ot({name:"Table",props:n,className:i,style:a,classes:O0,classNames:r,styles:s,unstyled:o,rootSelector:"table",vars:c,varsResolver:lle});return l.jsx(nle,{value:{getStyles:Y,stickyHeader:D,striped:b===!0?"odd":b||void 0,highlightOnHover:S,withColumnBorders:y,withRowBorders:E,captionSide:p||"bottom"},children:l.jsx(ve,{component:"table",variant:C,ref:e,mod:[{"data-with-table-border":T,"data-tabular-nums":M},U],...Y("table"),...B,children:w||!!N&&l.jsx(hL,{data:N})})})});ie.classes=O0;ie.displayName="@mantine/core/Table";ie.Td=xH;ie.Th=Mw;ie.Tr=rS;ie.Thead=CH;ie.Tbody=OH;ie.Tfoot=RH;ie.Caption=NH;ie.ScrollContainer=pL;ie.DataRenderer=hL;const[cle,mL]=va("Tabs component was not found in the tree");var R0={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",panel:"m_b0c91715",tab:"m_4ec4dce6",tabSection:"m_fc420b1f","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const ule={},gL=Me((t,e)=>{const n=Te("TabsList",ule,t),{children:r,className:i,grow:a,justify:s,classNames:o,styles:c,style:d,mod:f,...p}=n,m=mL();return l.jsx(ve,{...p,...m.getStyles("list",{className:i,style:d,classNames:o,styles:c,props:n,variant:m.variant}),ref:e,role:"tablist",variant:m.variant,mod:[{grow:a,orientation:m.orientation,placement:m.orientation==="vertical"&&m.placement,inverted:m.inverted},f],"aria-orientation":m.orientation,__vars:{"--tabs-justify":s},children:r})});gL.classes=R0;gL.displayName="@mantine/core/TabsList";const dle={},_L=Me((t,e)=>{const n=Te("TabsPanel",dle,t),{children:r,className:i,value:a,classNames:s,styles:o,style:c,mod:d,keepMounted:f,...p}=n,m=mL(),g=m.value===a,b=m.keepMounted||f||g?r:null;return l.jsx(ve,{...p,...m.getStyles("panel",{className:i,classNames:s,styles:o,style:[c,g?void 0:{display:"none"}],props:n}),ref:e,mod:[{orientation:m.orientation},d],role:"tabpanel",id:m.getPanelId(a),"aria-labelledby":m.getTabId(a),children:b})});_L.classes=R0;_L.displayName="@mantine/core/TabsPanel";const fle={},bL=Me((t,e)=>{const n=Te("TabsTab",fle,t),{className:r,children:i,rightSection:a,leftSection:s,value:o,onClick:c,onKeyDown:d,disabled:f,color:p,style:m,classNames:g,styles:b,vars:S,mod:y,tabIndex:E,...T}=n,x=Fi(),{dir:O}=um(),C=mL(),N=o===C.value,w=L=>{C.onChange(C.allowTabDeactivation&&o===C.value?null:o),c==null||c(L)},D={classNames:g,styles:b,props:n};return l.jsxs(bi,{...T,...C.getStyles("tab",{className:r,style:m,variant:C.variant,...D}),disabled:f,unstyled:C.unstyled,variant:C.variant,mod:[{active:N,disabled:f,orientation:C.orientation,inverted:C.inverted,placement:C.orientation==="vertical"&&C.placement},y],ref:e,role:"tab",id:C.getTabId(o),"aria-selected":N,tabIndex:E!==void 0?E:N||C.value===null?0:-1,"aria-controls":C.getPanelId(o),onClick:w,__vars:{"--tabs-color":p?tr(p,x):void 0},onKeyDown:PD({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:C.activateTabWithKeyboard,loop:C.loop,orientation:C.orientation||"horizontal",dir:O,onKeyDown:d}),children:[s&&l.jsx("span",{...C.getStyles("tabSection",D),"data-position":"left",children:s}),i&&l.jsx("span",{...C.getStyles("tabLabel",D),children:i}),a&&l.jsx("span",{...C.getStyles("tabSection",D),"data-position":"right",children:a})]})});bL.classes=R0;bL.displayName="@mantine/core/TabsTab";const _F="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",hle={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},ple=(t,{radius:e,color:n,autoContrast:r})=>({root:{"--tabs-radius":Yn(e),"--tabs-color":tr(n,t),"--tabs-text-color":cm(r,t)?xd({color:n,theme:t,autoContrast:r}):void 0}}),Ts=Me((t,e)=>{const n=Te("Tabs",hle,t),{defaultValue:r,value:i,onChange:a,orientation:s,children:o,loop:c,id:d,activateTabWithKeyboard:f,allowTabDeactivation:p,variant:m,color:g,radius:b,inverted:S,placement:y,keepMounted:E,classNames:T,styles:x,unstyled:O,className:C,style:N,vars:w,autoContrast:D,mod:L,...U}=n,M=ja(d),[B,Y]=na({value:i,defaultValue:r,finalValue:null,onChange:a}),H=ot({name:"Tabs",props:n,classes:R0,className:C,style:N,classNames:T,styles:x,unstyled:O,vars:w,varsResolver:ple});return l.jsx(cle,{value:{placement:y,value:B,orientation:s,id:M,loop:c,activateTabWithKeyboard:f,getTabId:MS(`${M}-tab`,_F),getPanelId:MS(`${M}-panel`,_F),onChange:Y,allowTabDeactivation:p,variant:m,color:g,radius:b,inverted:S,keepMounted:E,unstyled:O,getStyles:H},children:l.jsx(ve,{ref:e,id:M,variant:m,mod:[{orientation:s,inverted:s==="horizontal"&&S,placement:s==="vertical"&&y},L],...H("root"),...U,children:o})})});Ts.classes=R0;Ts.displayName="@mantine/core/Tabs";Ts.Tab=bL;Ts.Panel=_L;Ts.List=gL;const mle={},eu=Me((t,e)=>{const n=Te("TextInput",mle,t);return l.jsx(as,{component:"input",ref:e,...n,__staticSelector:"TextInput"})});eu.classes=as.classes;eu.displayName="@mantine/core/TextInput";/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var gle={outline:{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"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nt=(t,e,n,r)=>{const i=I.forwardRef(({color:a="currentColor",size:s=24,stroke:o=2,title:c,className:d,children:f,...p},m)=>I.createElement("svg",{ref:m,...gle[t],width:s,height:s,className:["tabler-icon",`tabler-icon-${e}`,d].join(" "),...t==="filled"?{fill:a}:{strokeWidth:o,stroke:a},...p},[c&&I.createElement("title",{key:"svg-title"},c),...r.map(([g,b])=>I.createElement(g,b)),...Array.isArray(f)?f:[f]]));return i.displayName=`${n}`,i};/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var _le=Nt("outline","alert-circle","IconAlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var ta=Nt("outline","alert-triangle","IconAlertTriangle",[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var ble=Nt("outline","align-justified","IconAlignJustified",[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 12l16 0",key:"svg-1"}],["path",{d:"M4 18l12 0",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var vle=Nt("outline","arrow-left","IconArrowLeft",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Sle=Nt("outline","bell-off","IconBellOff",[["path",{d:"M9.346 5.353c.21 -.129 .428 -.246 .654 -.353a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3m-1 3h-13a4 4 0 0 0 2 -3v-3a6.996 6.996 0 0 1 1.273 -3.707",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}],["path",{d:"M3 3l18 18",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var vL=Nt("outline","bell","IconBell",[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ele=Nt("outline","binary-tree","IconBinaryTree",[["path",{d:"M6 20a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-0"}],["path",{d:"M16 4a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-1"}],["path",{d:"M16 20a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-2"}],["path",{d:"M11 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-3"}],["path",{d:"M21 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-4"}],["path",{d:"M5.058 18.306l2.88 -4.606",key:"svg-5"}],["path",{d:"M10.061 10.303l2.877 -4.604",key:"svg-6"}],["path",{d:"M10.065 13.705l2.876 4.6",key:"svg-7"}],["path",{d:"M15.063 5.7l2.881 4.61",key:"svg-8"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var yle=Nt("outline","book","IconBook",[["path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-0"}],["path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-1"}],["path",{d:"M3 6l0 13",key:"svg-2"}],["path",{d:"M12 6l0 13",key:"svg-3"}],["path",{d:"M21 6l0 13",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Tle=Nt("outline","chart-line","IconChartLine",[["path",{d:"M4 19l16 0",key:"svg-0"}],["path",{d:"M4 15l4 -6l4 2l4 -5l4 4",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var AH=Nt("outline","check","IconCheck",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var YS=Nt("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var xle=Nt("outline","chevron-left","IconChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var wH=Nt("outline","chevron-right","IconChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var IH=Nt("outline","chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Cle=Nt("outline","clock-pause","IconClockPause",[["path",{d:"M20.942 13.018a9 9 0 1 0 -7.909 7.922",key:"svg-0"}],["path",{d:"M12 7v5l2 2",key:"svg-1"}],["path",{d:"M17 17v5",key:"svg-2"}],["path",{d:"M21 17v5",key:"svg-3"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ole=Nt("outline","clock-play","IconClockPlay",[["path",{d:"M12 7v5l2 2",key:"svg-0"}],["path",{d:"M17 22l5 -3l-5 -3z",key:"svg-1"}],["path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Rle=Nt("outline","cloud-data-connection","IconCloudDataConnection",[["path",{d:"M5 9.897c0 -1.714 1.46 -3.104 3.26 -3.104c.275 -1.22 1.255 -2.215 2.572 -2.611c1.317 -.397 2.77 -.134 3.811 .69c1.042 .822 1.514 2.08 1.239 3.3h.693a2.42 2.42 0 0 1 2.425 2.414a2.42 2.42 0 0 1 -2.425 2.414h-8.315c-1.8 0 -3.26 -1.39 -3.26 -3.103z",key:"svg-0"}],["path",{d:"M12 13v3",key:"svg-1"}],["path",{d:"M12 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M14 18h7",key:"svg-3"}],["path",{d:"M3 18h7",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var DH=Nt("outline","code-plus","IconCodePlus",[["path",{d:"M9 12h6",key:"svg-0"}],["path",{d:"M12 9v6",key:"svg-1"}],["path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2",key:"svg-2"}],["path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2",key:"svg-3"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var MH=Nt("outline","copy","IconCopy",[["path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Nle=Nt("outline","database","IconDatabase",[["path",{d:"M12 6m-8 0a8 3 0 1 0 16 0a8 3 0 1 0 -16 0",key:"svg-0"}],["path",{d:"M4 6v6a8 3 0 0 0 16 0v-6",key:"svg-1"}],["path",{d:"M4 12v6a8 3 0 0 0 16 0v-6",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ale=Nt("outline","device-desktop-analytics","IconDeviceDesktopAnalytics",[["path",{d:"M3 4m0 1a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M7 20h10",key:"svg-1"}],["path",{d:"M9 16v4",key:"svg-2"}],["path",{d:"M15 16v4",key:"svg-3"}],["path",{d:"M9 12v-4",key:"svg-4"}],["path",{d:"M12 12v-1",key:"svg-5"}],["path",{d:"M15 12v-2",key:"svg-6"}],["path",{d:"M12 12v-1",key:"svg-7"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var wle=Nt("outline","dots-vertical","IconDotsVertical",[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ile=Nt("outline","flag","IconFlag",[["path",{d:"M5 5a5 5 0 0 1 7 0a5 5 0 0 0 7 0v9a5 5 0 0 1 -7 0a5 5 0 0 0 -7 0v-9z",key:"svg-0"}],["path",{d:"M5 21v-7",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Dle=Nt("outline","graph","IconGraph",[["path",{d:"M4 18v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M7 14l3 -3l2 2l3 -3l2 2",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var LH=Nt("outline","heart-rate-monitor","IconHeartRateMonitor",[["path",{d:"M3 4m0 1a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M7 20h10",key:"svg-1"}],["path",{d:"M9 16v4",key:"svg-2"}],["path",{d:"M15 16v4",key:"svg-3"}],["path",{d:"M7 10h2l2 3l2 -6l1 3h3",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Lw=Nt("outline","hourglass","IconHourglass",[["path",{d:"M6.5 7h11",key:"svg-0"}],["path",{d:"M6.5 17h11",key:"svg-1"}],["path",{d:"M6 20v-2a6 6 0 1 1 12 0v2a1 1 0 0 1 -1 1h-10a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M6 4v2a6 6 0 1 0 12 0v-2a1 1 0 0 0 -1 -1h-10a1 1 0 0 0 -1 1z",key:"svg-3"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var pr=Nt("outline","info-circle","IconInfoCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var kH=Nt("outline","layout-navbar-collapse","IconLayoutNavbarCollapse",[["path",{d:"M4 18v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 9h16",key:"svg-1"}],["path",{d:"M10 16l2 -2l2 2",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var PH=Nt("outline","layout-navbar-expand","IconLayoutNavbarExpand",[["path",{d:"M4 18v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 9h16",key:"svg-1"}],["path",{d:"M10 14l2 2l2 -2",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Mle=Nt("outline","message-exclamation","IconMessageExclamation",[["path",{d:"M8 9h8",key:"svg-0"}],["path",{d:"M8 13h6",key:"svg-1"}],["path",{d:"M15 18h-2l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v5.5",key:"svg-2"}],["path",{d:"M19 16v3",key:"svg-3"}],["path",{d:"M19 22v.01",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Lle=Nt("outline","minus","IconMinus",[["path",{d:"M5 12l14 0",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var kle=Nt("outline","network-off","IconNetworkOff",[["path",{d:"M6.528 6.536a6 6 0 0 0 7.942 7.933m2.247 -1.76a6 6 0 0 0 -8.427 -8.425",key:"svg-0"}],["path",{d:"M12 3c1.333 .333 2 2.333 2 6c0 .337 -.006 .66 -.017 .968m-.55 3.473c-.333 .884 -.81 1.403 -1.433 1.559",key:"svg-1"}],["path",{d:"M12 3c-.936 .234 -1.544 1.29 -1.822 3.167m-.16 3.838c.116 3.029 .776 4.695 1.982 4.995",key:"svg-2"}],["path",{d:"M6 9h3m4 0h5",key:"svg-3"}],["path",{d:"M3 20h7",key:"svg-4"}],["path",{d:"M14 20h7",key:"svg-5"}],["path",{d:"M10 20a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-6"}],["path",{d:"M12 15v3",key:"svg-7"}],["path",{d:"M3 3l18 18",key:"svg-8"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var BH=Nt("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var kw=Nt("outline","refresh","IconRefresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ple=Nt("outline","repeat","IconRepeat",[["path",{d:"M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3",key:"svg-0"}],["path",{d:"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ble=Nt("outline","run","IconRun",[["path",{d:"M13 4m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M4 17l5 1l.75 -1.5",key:"svg-1"}],["path",{d:"M15 21l0 -4l-4 -3l1 -6",key:"svg-2"}],["path",{d:"M7 12l0 -3l5 -1l3 3l3 1",key:"svg-3"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Jf=Nt("outline","search","IconSearch",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Fle=Nt("outline","selector","IconSelector",[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ule=Nt("outline","server-cog","IconServerCog",[["path",{d:"M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z",key:"svg-0"}],["path",{d:"M12 20h-6a3 3 0 0 1 -3 -3v-2a3 3 0 0 1 3 -3h10.5",key:"svg-1"}],["path",{d:"M18 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M18 14.5v1.5",key:"svg-3"}],["path",{d:"M18 20v1.5",key:"svg-4"}],["path",{d:"M21.032 16.25l-1.299 .75",key:"svg-5"}],["path",{d:"M16.27 19l-1.3 .75",key:"svg-6"}],["path",{d:"M14.97 16.25l1.3 .75",key:"svg-7"}],["path",{d:"M19.733 19l1.3 .75",key:"svg-8"}],["path",{d:"M7 8v.01",key:"svg-9"}],["path",{d:"M7 16v.01",key:"svg-10"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var jle=Nt("outline","server","IconServer",[["path",{d:"M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z",key:"svg-0"}],["path",{d:"M3 12m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z",key:"svg-1"}],["path",{d:"M7 8l0 .01",key:"svg-2"}],["path",{d:"M7 16l0 .01",key:"svg-3"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Gle=Nt("outline","settings","IconSettings",[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var qle=Nt("outline","spy","IconSpy",[["path",{d:"M3 11h18",key:"svg-0"}],["path",{d:"M5 11v-4a3 3 0 0 1 3 -3h8a3 3 0 0 1 3 3v4",key:"svg-1"}],["path",{d:"M7 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-2"}],["path",{d:"M17 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-3"}],["path",{d:"M10 17h4",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var FH=Nt("outline","table","IconTable",[["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z",key:"svg-0"}],["path",{d:"M3 10h18",key:"svg-1"}],["path",{d:"M10 3v18",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var $le=Nt("outline","terminal","IconTerminal",[["path",{d:"M5 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M12 19l7 0",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var zle=Nt("outline","timeline","IconTimeline",[["path",{d:"M4 16l6 -7l5 5l5 -6",key:"svg-0"}],["path",{d:"M15 14m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M10 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M4 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M20 8m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Yle=Nt("outline","trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Hle=Nt("outline","wall","IconWall",[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 8h16",key:"svg-1"}],["path",{d:"M20 12h-16",key:"svg-2"}],["path",{d:"M4 16h16",key:"svg-3"}],["path",{d:"M9 4v4",key:"svg-4"}],["path",{d:"M14 8v4",key:"svg-5"}],["path",{d:"M8 12v4",key:"svg-6"}],["path",{d:"M16 12v4",key:"svg-7"}],["path",{d:"M11 16v4",key:"svg-8"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Vle=Nt("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Wle=Nt("outline","zoom-code","IconZoomCode",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}],["path",{d:"M8 8l-2 2l2 2",key:"svg-2"}],["path",{d:"M12 8l2 2l-2 2",key:"svg-3"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Qle=Nt("filled","bell-filled","IconBellFilled",[["path",{d:"M14.235 19c.865 0 1.322 1.024 .745 1.668a3.992 3.992 0 0 1 -2.98 1.332a3.992 3.992 0 0 1 -2.98 -1.332c-.552 -.616 -.158 -1.579 .634 -1.661l.11 -.006h4.471z",key:"svg-0"}],["path",{d:"M12 2c1.358 0 2.506 .903 2.875 2.141l.046 .171l.008 .043a8.013 8.013 0 0 1 4.024 6.069l.028 .287l.019 .289v2.931l.021 .136a3 3 0 0 0 1.143 1.847l.167 .117l.162 .099c.86 .487 .56 1.766 -.377 1.864l-.116 .006h-16c-1.028 0 -1.387 -1.364 -.493 -1.87a3 3 0 0 0 1.472 -2.063l.021 -.143l.001 -2.97a8 8 0 0 1 3.821 -6.454l.248 -.146l.01 -.043a3.003 3.003 0 0 1 2.562 -2.29l.182 -.017l.176 -.004z",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Kle=Nt("filled","brightness-filled","IconBrightnessFilled",[["path",{d:"M17 3.34a10 10 0 1 1 -15 8.66l.005 -.324a10 10 0 0 1 14.995 -8.336m-9 1.732a8 8 0 0 0 4.001 14.928l-.001 -16a8 8 0 0 0 -4 1.072",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Xle=Nt("filled","chart-area-filled","IconChartAreaFilled",[["path",{d:"M20 18a1 1 0 0 1 .117 1.993l-.117 .007h-16a1 1 0 0 1 -.117 -1.993l.117 -.007h16z",key:"svg-0"}],["path",{d:"M15.22 5.375a1 1 0 0 1 1.393 -.165l.094 .083l4 4a1 1 0 0 1 .284 .576l.009 .131v5a1 1 0 0 1 -.883 .993l-.117 .007h-16.022l-.11 -.009l-.11 -.02l-.107 -.034l-.105 -.046l-.1 -.059l-.094 -.07l-.06 -.055l-.072 -.082l-.064 -.089l-.054 -.096l-.016 -.035l-.04 -.103l-.027 -.106l-.015 -.108l-.004 -.11l.009 -.11l.019 -.105c.01 -.04 .022 -.077 .035 -.112l.046 -.105l.059 -.1l4 -6a1 1 0 0 1 1.165 -.39l.114 .05l3.277 1.638l3.495 -4.369z",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Zle=Nt("filled","moon-filled","IconMoonFilled",[["path",{d:"M12 1.992a10 10 0 1 0 9.236 13.838c.341 -.82 -.476 -1.644 -1.298 -1.31a6.5 6.5 0 0 1 -6.864 -10.787l.077 -.08c.551 -.63 .113 -1.653 -.758 -1.653h-.266l-.068 -.006l-.06 -.002z",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var eO=Nt("filled","point-filled","IconPointFilled",[["path",{d:"M12 7a5 5 0 1 1 -4.995 5.217l-.005 -.217l.005 -.217a5 5 0 0 1 4.995 -4.783z",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Jle=Nt("filled","sun-filled","IconSunFilled",[["path",{d:"M12 19a1 1 0 0 1 .993 .883l.007 .117v1a1 1 0 0 1 -1.993 .117l-.007 -.117v-1a1 1 0 0 1 1 -1z",key:"svg-0"}],["path",{d:"M18.313 16.91l.094 .083l.7 .7a1 1 0 0 1 -1.32 1.497l-.094 -.083l-.7 -.7a1 1 0 0 1 1.218 -1.567l.102 .07z",key:"svg-1"}],["path",{d:"M7.007 16.993a1 1 0 0 1 .083 1.32l-.083 .094l-.7 .7a1 1 0 0 1 -1.497 -1.32l.083 -.094l.7 -.7a1 1 0 0 1 1.414 0z",key:"svg-2"}],["path",{d:"M4 11a1 1 0 0 1 .117 1.993l-.117 .007h-1a1 1 0 0 1 -.117 -1.993l.117 -.007h1z",key:"svg-3"}],["path",{d:"M21 11a1 1 0 0 1 .117 1.993l-.117 .007h-1a1 1 0 0 1 -.117 -1.993l.117 -.007h1z",key:"svg-4"}],["path",{d:"M6.213 4.81l.094 .083l.7 .7a1 1 0 0 1 -1.32 1.497l-.094 -.083l-.7 -.7a1 1 0 0 1 1.217 -1.567l.102 .07z",key:"svg-5"}],["path",{d:"M19.107 4.893a1 1 0 0 1 .083 1.32l-.083 .094l-.7 .7a1 1 0 0 1 -1.497 -1.32l.083 -.094l.7 -.7a1 1 0 0 1 1.414 0z",key:"svg-6"}],["path",{d:"M12 2a1 1 0 0 1 .993 .883l.007 .117v1a1 1 0 0 1 -1.993 .117l-.007 -.117v-1a1 1 0 0 1 1 -1z",key:"svg-7"}],["path",{d:"M12 7a5 5 0 1 1 -4.995 5.217l-.005 -.217l.005 -.217a5 5 0 0 1 4.995 -4.783z",key:"svg-8"}]]),Dg={},bF;function ece(){if(bF)return Dg;bF=1,Object.defineProperty(Dg,"__esModule",{value:!0}),Dg.parse=s,Dg.serialize=d;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,e=/^[\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]*$/,i=Object.prototype.toString,a=(()=>{const m=function(){};return m.prototype=Object.create(null),m})();function s(m,g){const b=new a,S=m.length;if(S<2)return b;const y=(g==null?void 0:g.decode)||f;let E=0;do{const T=m.indexOf("=",E);if(T===-1)break;const x=m.indexOf(";",E),O=x===-1?S:x;if(T>O){E=m.lastIndexOf(";",T-1)+1;continue}const C=o(m,E,T),N=c(m,T,C),w=m.slice(C,N);if(b[w]===void 0){let D=o(m,T+1,O),L=c(m,O,D);const U=y(m.slice(D,L));b[w]=U}E=O+1}while(E<S);return b}function o(m,g,b){do{const S=m.charCodeAt(g);if(S!==32&&S!==9)return g}while(++g<b);return b}function c(m,g,b){for(;g>b;){const S=m.charCodeAt(--g);if(S!==32&&S!==9)return g+1}return b}function d(m,g,b){const S=(b==null?void 0:b.encode)||encodeURIComponent;if(!t.test(m))throw new TypeError(`argument name is invalid: ${m}`);const y=S(g);if(!e.test(y))throw new TypeError(`argument val is invalid: ${g}`);let E=m+"="+y;if(!b)return E;if(b.maxAge!==void 0){if(!Number.isInteger(b.maxAge))throw new TypeError(`option maxAge is invalid: ${b.maxAge}`);E+="; Max-Age="+b.maxAge}if(b.domain){if(!n.test(b.domain))throw new TypeError(`option domain is invalid: ${b.domain}`);E+="; Domain="+b.domain}if(b.path){if(!r.test(b.path))throw new TypeError(`option path is invalid: ${b.path}`);E+="; Path="+b.path}if(b.expires){if(!p(b.expires)||!Number.isFinite(b.expires.valueOf()))throw new TypeError(`option expires is invalid: ${b.expires}`);E+="; Expires="+b.expires.toUTCString()}if(b.httpOnly&&(E+="; HttpOnly"),b.secure&&(E+="; Secure"),b.partitioned&&(E+="; Partitioned"),b.priority)switch(typeof b.priority=="string"?b.priority.toLowerCase():void 0){case"low":E+="; Priority=Low";break;case"medium":E+="; Priority=Medium";break;case"high":E+="; 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":E+="; SameSite=Strict";break;case"lax":E+="; SameSite=Lax";break;case"none":E+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${b.sameSite}`)}return E}function f(m){if(m.indexOf("%")===-1)return m;try{return decodeURIComponent(m)}catch{return m}}function p(m){return i.call(m)==="[object Date]"}return Dg}ece();var vF="popstate";function tce(t={}){function e(r,i){let{pathname:a,search:s,hash:o}=r.location;return Pw("",{pathname:a,search:s,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:D_(i)}return rce(e,n,null,t)}function yr(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function rl(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function nce(){return Math.random().toString(36).substring(2,10)}function SF(t,e){return{usr:t.state,key:t.key,idx:e}}function Pw(t,e,n=null,r){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Em(e):e,state:n,key:e&&e.key||r||nce()}}function D_({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Em(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function rce(t,e,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o="POP",c=null,d=f();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function f(){return(s.state||{idx:null}).idx}function p(){o="POP";let y=f(),E=y==null?null:y-d;d=y,c&&c({action:o,location:S.location,delta:E})}function m(y,E){o="PUSH";let T=Pw(S.location,y,E);d=f()+1;let x=SF(T,d),O=S.createHref(T);try{s.pushState(x,"",O)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(O)}a&&c&&c({action:o,location:S.location,delta:1})}function g(y,E){o="REPLACE";let T=Pw(S.location,y,E);d=f();let x=SF(T,d),O=S.createHref(T);s.replaceState(x,"",O),a&&c&&c({action:o,location:S.location,delta:0})}function b(y){let E=i.location.origin!=="null"?i.location.origin:i.location.href,T=typeof y=="string"?y:D_(y);return T=T.replace(/ $/,"%20"),yr(E,`No window.location.(origin|href) available to create URL for href: ${T}`),new URL(T,E)}let S={get action(){return o},get location(){return t(i,s)},listen(y){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(vF,p),c=y,()=>{i.removeEventListener(vF,p),c=null}},createHref(y){return e(i,y)},createURL:b,encodeLocation(y){let E=b(y);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:m,replace:g,go(y){return s.go(y)}};return S}function UH(t,e,n="/"){return ice(t,e,n,!1)}function ice(t,e,n,r){let i=typeof e=="string"?Em(e):e,a=$c(i.pathname||"/",n);if(a==null)return null;let s=jH(t);ace(s);let o=null;for(let c=0;o==null&&c<s.length;++c){let d=gce(a);o=pce(s[c],d,r)}return o}function jH(t,e=[],n=[],r=""){let i=(a,s,o)=>{let c={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};c.relativePath.startsWith("/")&&(yr(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length));let d=kc([r,c.relativePath]),f=n.concat(c);a.children&&a.children.length>0&&(yr(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),jH(a.children,e,f,d)),!(a.path==null&&!a.index)&&e.push({path:d,score:fce(d,a.index),routesMeta:f})};return t.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let c of GH(a.path))i(a,s,c)}),e}function GH(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=GH(r.join("/")),o=[];return o.push(...s.map(c=>c===""?a:[a,c].join("/"))),i&&o.push(...s),o.map(c=>t.startsWith("/")&&c===""?"/":c)}function ace(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:hce(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var sce=/^:[\w-]+$/,oce=3,lce=2,cce=1,uce=10,dce=-2,EF=t=>t==="*";function fce(t,e){let n=t.split("/"),r=n.length;return n.some(EF)&&(r+=dce),e&&(r+=lce),n.filter(i=>!EF(i)).reduce((i,a)=>i+(sce.test(a)?oce:a===""?cce:uce),r)}function hce(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function pce(t,e,n=!1){let{routesMeta:r}=t,i={},a="/",s=[];for(let o=0;o<r.length;++o){let c=r[o],d=o===r.length-1,f=a==="/"?e:e.slice(a.length)||"/",p=HS({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},f),m=c.route;if(!p&&d&&n&&!r[r.length-1].route.index&&(p=HS({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},f)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:kc([a,p.pathname]),pathnameBase:Sce(kc([a,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(a=kc([a,p.pathnameBase]))}return s}function HS(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=mce(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((d,{paramName:f,isOptional:p},m)=>{if(f==="*"){let b=o[m]||"";s=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const g=o[m];return p&&!g?d[f]=void 0:d[f]=(g||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:s,pattern:t}}function mce(t,e=!1,n=!0){rl(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,c)=>(r.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function gce(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return rl(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function $c(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function _ce(t,e="/"){let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Em(t):t;return{pathname:n?n.startsWith("/")?n:bce(n,e):e,search:Ece(r),hash:yce(i)}}function bce(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function tO(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` 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 vce(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function SL(t){let e=vce(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function EL(t,e,n,r=!1){let i;typeof t=="string"?i=Em(t):(i={...t},yr(!i.pathname||!i.pathname.includes("?"),tO("?","pathname","search",i)),yr(!i.pathname||!i.pathname.includes("#"),tO("#","pathname","hash",i)),yr(!i.search||!i.search.includes("#"),tO("#","search","hash",i)));let a=t===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let p=e.length-1;if(!r&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),p-=1;i.pathname=m.join("/")}o=p>=0?e[p]:"/"}let c=_ce(i,o),d=s&&s!=="/"&&s.endsWith("/"),f=(a||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}var kc=t=>t.join("/").replace(/\/\/+/g,"/"),Sce=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Ece=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,yce=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Tce(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var qH=["POST","PUT","PATCH","DELETE"];new Set(qH);var xce=["GET",...qH];new Set(xce);var eh=I.createContext(null);eh.displayName="DataRouter";var Py=I.createContext(null);Py.displayName="DataRouterState";var $H=I.createContext({isTransitioning:!1});$H.displayName="ViewTransition";var Cce=I.createContext(new Map);Cce.displayName="Fetchers";var Oce=I.createContext(null);Oce.displayName="Await";var po=I.createContext(null);po.displayName="Navigation";var N0=I.createContext(null);N0.displayName="Location";var Wl=I.createContext({outlet:null,matches:[],isDataRoute:!1});Wl.displayName="Route";var yL=I.createContext(null);yL.displayName="RouteError";function Rce(t,{relative:e}={}){yr(ym(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=I.useContext(po),{hash:i,pathname:a,search:s}=A0(t,{relative:e}),o=a;return n!=="/"&&(o=a==="/"?n:kc([n,a])),r.createHref({pathname:o,search:s,hash:i})}function ym(){return I.useContext(N0)!=null}function Ql(){return yr(ym(),"useLocation() may be used only in the context of a <Router> component."),I.useContext(N0).location}var zH="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function YH(t){I.useContext(po).static||I.useLayoutEffect(t)}function TL(){let{isDataRoute:t}=I.useContext(Wl);return t?jce():Nce()}function Nce(){yr(ym(),"useNavigate() may be used only in the context of a <Router> component.");let t=I.useContext(eh),{basename:e,navigator:n}=I.useContext(po),{matches:r}=I.useContext(Wl),{pathname:i}=Ql(),a=JSON.stringify(SL(r)),s=I.useRef(!1);return YH(()=>{s.current=!0}),I.useCallback((c,d={})=>{if(rl(s.current,zH),!s.current)return;if(typeof c=="number"){n.go(c);return}let f=EL(c,JSON.parse(a),i,d.relative==="path");t==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:kc([e,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[e,n,a,i,t])}I.createContext(null);function A0(t,{relative:e}={}){let{matches:n}=I.useContext(Wl),{pathname:r}=Ql(),i=JSON.stringify(SL(n));return I.useMemo(()=>EL(t,JSON.parse(i),r,e==="path"),[t,i,r,e])}function Ace(t,e){return HH(t,e)}function HH(t,e,n,r){var T;yr(ym(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i,static:a}=I.useContext(po),{matches:s}=I.useContext(Wl),o=s[s.length-1],c=o?o.params:{},d=o?o.pathname:"/",f=o?o.pathnameBase:"/",p=o&&o.route;{let x=p&&p.path||"";VH(d,!p||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${x}">) 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="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let m=Ql(),g;if(e){let x=typeof e=="string"?Em(e):e;yr(f==="/"||((T=x.pathname)==null?void 0:T.startsWith(f)),`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 "${f}" but pathname "${x.pathname}" was given in the \`location\` prop.`),g=x}else g=m;let b=g.pathname||"/",S=b;if(f!=="/"){let x=f.replace(/^\//,"").split("/");S="/"+b.replace(/^\//,"").split("/").slice(x.length).join("/")}let y=!a&&n&&n.matches&&n.matches.length>0?n.matches:UH(t,{pathname:S});rl(p||y!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),rl(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.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 E=Lce(y&&y.map(x=>Object.assign({},x,{params:Object.assign({},c,x.params),pathname:kc([f,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?f:kc([f,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return e&&E?I.createElement(N0.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},E):E}function wce(){let t=Uce(),e=Tce(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=I.createElement(I.Fragment,null,I.createElement("p",null,"💿 Hey developer 👋"),I.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",I.createElement("code",{style:a},"ErrorBoundary")," or"," ",I.createElement("code",{style:a},"errorElement")," prop on your route.")),I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},e),n?I.createElement("pre",{style:i},n):null,s)}var Ice=I.createElement(wce,null),Dce=class extends I.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?I.createElement(Wl.Provider,{value:this.props.routeContext},I.createElement(yL.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Mce({routeContext:t,match:e,children:n}){let r=I.useContext(eh);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),I.createElement(Wl.Provider,{value:t},n)}function Lce(t,e=[],n=null,r=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let i=t,a=n==null?void 0:n.errors;if(a!=null){let c=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);yr(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let s=!1,o=-1;if(n)for(let c=0;c<i.length;c++){let d=i[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(o=c),d.route.id){let{loaderData:f,errors:p}=n,m=d.route.loader&&!f.hasOwnProperty(d.route.id)&&(!p||p[d.route.id]===void 0);if(d.route.lazy||m){s=!0,o>=0?i=i.slice(0,o+1):i=[i[0]];break}}}return i.reduceRight((c,d,f)=>{let p,m=!1,g=null,b=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||Ice,s&&(o<0&&f===0?(VH("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,b=null):o===f&&(m=!0,b=d.route.hydrateFallbackElement||null)));let S=e.concat(i.slice(0,f+1)),y=()=>{let E;return p?E=g:m?E=b:d.route.Component?E=I.createElement(d.route.Component,null):d.route.element?E=d.route.element:E=c,I.createElement(Mce,{match:d,routeContext:{outlet:c,matches:S,isDataRoute:n!=null},children:E})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?I.createElement(Dce,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:y(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):y()},null)}function xL(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function kce(t){let e=I.useContext(eh);return yr(e,xL(t)),e}function Pce(t){let e=I.useContext(Py);return yr(e,xL(t)),e}function Bce(t){let e=I.useContext(Wl);return yr(e,xL(t)),e}function CL(t){let e=Bce(t),n=e.matches[e.matches.length-1];return yr(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function Fce(){return CL("useRouteId")}function Uce(){var r;let t=I.useContext(yL),e=Pce("useRouteError"),n=CL("useRouteError");return t!==void 0?t:(r=e.errors)==null?void 0:r[n]}function jce(){let{router:t}=kce("useNavigate"),e=CL("useNavigate"),n=I.useRef(!1);return YH(()=>{n.current=!0}),I.useCallback(async(i,a={})=>{rl(n.current,zH),n.current&&(typeof i=="number"?t.navigate(i):await t.navigate(i,{fromRouteId:e,...a}))},[t,e])}var yF={};function VH(t,e,n){!e&&!yF[t]&&(yF[t]=!0,rl(!1,n))}I.memo(Gce);function Gce({routes:t,future:e,state:n}){return HH(t,void 0,n,e)}function qce({to:t,replace:e,state:n,relative:r}){yr(ym(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=I.useContext(po);rl(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=I.useContext(Wl),{pathname:s}=Ql(),o=TL(),c=EL(t,SL(a),s,r==="path"),d=JSON.stringify(c);return I.useEffect(()=>{o(JSON.parse(d),{replace:e,state:n,relative:r})},[o,d,r,e,n]),null}function Du(t){yr(!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 $ce({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){yr(!ym(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=t.replace(/^\/*/,"/"),o=I.useMemo(()=>({basename:s,navigator:i,static:a,future:{}}),[s,i,a]);typeof n=="string"&&(n=Em(n));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:m="default"}=n,g=I.useMemo(()=>{let b=$c(c,s);return b==null?null:{location:{pathname:b,search:d,hash:f,state:p,key:m},navigationType:r}},[s,c,d,f,p,m,r]);return rl(g!=null,`<Router basename="${s}"> is not able to match the URL "${c}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:I.createElement(po.Provider,{value:o},I.createElement(N0.Provider,{children:e,value:g}))}function TF({children:t,location:e}){return Ace(Bw(t),e)}function Bw(t,e=[]){let n=[];return I.Children.forEach(t,(r,i)=>{if(!I.isValidElement(r))return;let a=[...e,i];if(r.type===I.Fragment){n.push.apply(n,Bw(r.props.children,a));return}yr(r.type===Du,`[${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>`),yr(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||a.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&&(s.children=Bw(r.props.children,a)),n.push(s)}),n}var iS="get",aS="application/x-www-form-urlencoded";function By(t){return t!=null&&typeof t.tagName=="string"}function zce(t){return By(t)&&t.tagName.toLowerCase()==="button"}function Yce(t){return By(t)&&t.tagName.toLowerCase()==="form"}function Hce(t){return By(t)&&t.tagName.toLowerCase()==="input"}function Vce(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Wce(t,e){return t.button===0&&(!e||e==="_self")&&!Vce(t)}var cv=null;function Qce(){if(cv===null)try{new FormData(document.createElement("form"),0),cv=!1}catch{cv=!0}return cv}var Kce=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nO(t){return t!=null&&!Kce.has(t)?(rl(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${aS}"`),null):t}function Xce(t,e){let n,r,i,a,s;if(Yce(t)){let o=t.getAttribute("action");r=o?$c(o,e):null,n=t.getAttribute("method")||iS,i=nO(t.getAttribute("enctype"))||aS,a=new FormData(t)}else if(zce(t)||Hce(t)&&(t.type==="submit"||t.type==="image")){let o=t.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=t.getAttribute("formaction")||o.getAttribute("action");if(r=c?$c(c,e):null,n=t.getAttribute("formmethod")||o.getAttribute("method")||iS,i=nO(t.getAttribute("formenctype"))||nO(o.getAttribute("enctype"))||aS,a=new FormData(o,t),!Qce()){let{name:d,type:f,value:p}=t;if(f==="image"){let m=d?`${d}.`:"";a.append(`${m}x`,"0"),a.append(`${m}y`,"0")}else d&&a.append(d,p)}}else{if(By(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=iS,r=null,i=aS,s=t}return a&&i==="text/plain"&&(s=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:s}}function OL(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}async function Zce(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Jce(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function eue(t,e,n){let r=await Promise.all(t.map(async i=>{let a=e.routes[i.route.id];if(a){let s=await Zce(a,n);return s.links?s.links():[]}return[]}));return iue(r.flat(1).filter(Jce).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function xF(t,e,n,r,i,a){let s=(c,d)=>n[d]?c.route.id!==n[d].route.id:!0,o=(c,d)=>{var f;return n[d].pathname!==c.pathname||((f=n[d].route.path)==null?void 0:f.endsWith("*"))&&n[d].params["*"]!==c.params["*"]};return a==="assets"?e.filter((c,d)=>s(c,d)||o(c,d)):a==="data"?e.filter((c,d)=>{var p;let f=r.routes[c.route.id];if(!f||!f.hasLoader)return!1;if(s(c,d)||o(c,d))return!0;if(c.route.shouldRevalidate){let m=c.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(t,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function tue(t,e,{includeHydrateFallback:n}={}){return nue(t.map(r=>{let i=e.routes[r.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function nue(t){return[...new Set(t)]}function rue(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function iue(t,e){let n=new Set;return new Set(e),t.reduce((r,i)=>{let a=JSON.stringify(rue(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}var aue=new Set([100,101,204,205]);function sue(t,e){let n=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n.pathname==="/"?n.pathname="_root.data":e&&$c(n.pathname,e)==="/"?n.pathname=`${e.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function WH(){let t=I.useContext(eh);return OL(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function oue(){let t=I.useContext(Py);return OL(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var RL=I.createContext(void 0);RL.displayName="FrameworkContext";function QH(){let t=I.useContext(RL);return OL(t,"You must render this element inside a <HydratedRouter> element"),t}function lue(t,e){let n=I.useContext(RL),[r,i]=I.useState(!1),[a,s]=I.useState(!1),{onFocus:o,onBlur:c,onMouseEnter:d,onMouseLeave:f,onTouchStart:p}=e,m=I.useRef(null);I.useEffect(()=>{if(t==="render"&&s(!0),t==="viewport"){let S=E=>{E.forEach(T=>{s(T.isIntersecting)})},y=new IntersectionObserver(S,{threshold:.5});return m.current&&y.observe(m.current),()=>{y.disconnect()}}},[t]),I.useEffect(()=>{if(r){let S=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(S)}}},[r]);let g=()=>{i(!0)},b=()=>{i(!1),s(!1)};return n?t!=="intent"?[a,m,{}]:[a,m,{onFocus:Mg(o,g),onBlur:Mg(c,b),onMouseEnter:Mg(d,g),onMouseLeave:Mg(f,b),onTouchStart:Mg(p,g)}]:[!1,m,{}]}function Mg(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function cue({page:t,...e}){let{router:n}=WH(),r=I.useMemo(()=>UH(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?I.createElement(due,{page:t,matches:r,...e}):null}function uue(t){let{manifest:e,routeModules:n}=QH(),[r,i]=I.useState([]);return I.useEffect(()=>{let a=!1;return eue(t,e,n).then(s=>{a||i(s)}),()=>{a=!0}},[t,e,n]),r}function due({page:t,matches:e,...n}){let r=Ql(),{manifest:i,routeModules:a}=QH(),{basename:s}=WH(),{loaderData:o,matches:c}=oue(),d=I.useMemo(()=>xF(t,e,c,i,r,"data"),[t,e,c,i,r]),f=I.useMemo(()=>xF(t,e,c,i,r,"assets"),[t,e,c,i,r]),p=I.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let b=new Set,S=!1;if(e.forEach(E=>{var x;let T=i.routes[E.route.id];!T||!T.hasLoader||(!d.some(O=>O.route.id===E.route.id)&&E.route.id in o&&((x=a[E.route.id])!=null&&x.shouldRevalidate)||T.hasClientLoader?S=!0:b.add(E.route.id))}),b.size===0)return[];let y=sue(t,s);return S&&b.size>0&&y.searchParams.set("_routes",e.filter(E=>b.has(E.route.id)).map(E=>E.route.id).join(",")),[y.pathname+y.search]},[s,o,r,i,d,e,t,a]),m=I.useMemo(()=>tue(f,i),[f,i]),g=uue(f);return I.createElement(I.Fragment,null,p.map(b=>I.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),m.map(b=>I.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),g.map(({key:b,link:S})=>I.createElement("link",{key:b,...S})))}function fue(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var KH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{KH&&(window.__reactRouterVersion="7.5.2")}catch{}function hue({basename:t,children:e,window:n}){let r=I.useRef();r.current==null&&(r.current=tce({window:n,v5Compat:!0}));let i=r.current,[a,s]=I.useState({action:i.action,location:i.location}),o=I.useCallback(c=>{I.startTransition(()=>s(c))},[s]);return I.useLayoutEffect(()=>i.listen(o),[i,o]),I.createElement($ce,{basename:t,children:e,location:a.location,navigationType:a.action,navigator:i})}var XH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,NL=I.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:s,state:o,target:c,to:d,preventScrollReset:f,viewTransition:p,...m},g){let{basename:b}=I.useContext(po),S=typeof d=="string"&&XH.test(d),y,E=!1;if(typeof d=="string"&&S&&(y=d,KH))try{let L=new URL(window.location.href),U=d.startsWith("//")?new URL(L.protocol+d):new URL(d),M=$c(U.pathname,b);U.origin===L.origin&&M!=null?d=M+U.search+U.hash:E=!0}catch{rl(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=Rce(d,{relative:i}),[x,O,C]=lue(r,m),N=gue(d,{replace:s,state:o,target:c,preventScrollReset:f,relative:i,viewTransition:p});function w(L){e&&e(L),L.defaultPrevented||N(L)}let D=I.createElement("a",{...m,...C,href:y||T,onClick:E||a?e:w,ref:fue(g,O),target:c,"data-discover":!S&&n==="render"?"true":void 0});return x&&!S?I.createElement(I.Fragment,null,D,I.createElement(cue,{page:T})):D});NL.displayName="Link";var Hh=I.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:s,viewTransition:o,children:c,...d},f){let p=A0(s,{relative:d.relative}),m=Ql(),g=I.useContext(Py),{navigator:b,basename:S}=I.useContext(po),y=g!=null&&Eue(p)&&o===!0,E=b.encodeLocation?b.encodeLocation(p).pathname:p.pathname,T=m.pathname,x=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(T=T.toLowerCase(),x=x?x.toLowerCase():null,E=E.toLowerCase()),x&&S&&(x=$c(x,S)||x);const O=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let C=T===E||!i&&T.startsWith(E)&&T.charAt(O)==="/",N=x!=null&&(x===E||!i&&x.startsWith(E)&&x.charAt(E.length)==="/"),w={isActive:C,isPending:N,isTransitioning:y},D=C?e:void 0,L;typeof r=="function"?L=r(w):L=[r,C?"active":null,N?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let U=typeof a=="function"?a(w):a;return I.createElement(NL,{...d,"aria-current":D,className:L,ref:f,style:U,to:s,viewTransition:o},typeof c=="function"?c(w):c)});Hh.displayName="NavLink";var pue=I.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:i,state:a,method:s=iS,action:o,onSubmit:c,relative:d,preventScrollReset:f,viewTransition:p,...m},g)=>{let b=vue(),S=Sue(o,{relative:d}),y=s.toLowerCase()==="get"?"get":"post",E=typeof o=="string"&&XH.test(o),T=x=>{if(c&&c(x),x.defaultPrevented)return;x.preventDefault();let O=x.nativeEvent.submitter,C=(O==null?void 0:O.getAttribute("formmethod"))||s;b(O||x.currentTarget,{fetcherKey:e,method:C,navigate:n,replace:i,state:a,relative:d,preventScrollReset:f,viewTransition:p})};return I.createElement("form",{ref:g,method:y,action:S,onSubmit:r?c:T,...m,"data-discover":!E&&t==="render"?"true":void 0})});pue.displayName="Form";function mue(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ZH(t){let e=I.useContext(eh);return yr(e,mue(t)),e}function gue(t,{target:e,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:s}={}){let o=TL(),c=Ql(),d=A0(t,{relative:a});return I.useCallback(f=>{if(Wce(f,e)){f.preventDefault();let p=n!==void 0?n:D_(c)===D_(d);o(t,{replace:p,state:r,preventScrollReset:i,relative:a,viewTransition:s})}},[c,o,d,n,r,e,t,i,a,s])}var _ue=0,bue=()=>`__${String(++_ue)}__`;function vue(){let{router:t}=ZH("useSubmit"),{basename:e}=I.useContext(po),n=Fce();return I.useCallback(async(r,i={})=>{let{action:a,method:s,encType:o,formData:c,body:d}=Xce(r,e);if(i.navigate===!1){let f=i.fetcherKey||bue();await t.fetch(f,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:d,formMethod:i.method||s,formEncType:i.encType||o,flushSync:i.flushSync})}else await t.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:d,formMethod:i.method||s,formEncType:i.encType||o,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[t,e,n])}function Sue(t,{relative:e}={}){let{basename:n}=I.useContext(po),r=I.useContext(Wl);yr(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...A0(t||".",{relative:e})},s=Ql();if(t==null){a.search=s.search;let o=new URLSearchParams(a.search),c=o.getAll("index");if(c.some(f=>f==="")){o.delete("index"),c.filter(p=>p).forEach(p=>o.append("index",p));let f=o.toString();a.search=f?`?${f}`:""}}return(!t||t===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:kc([n,a.pathname])),D_(a)}function Eue(t,e={}){let n=I.useContext($H);yr(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ZH("useViewTransitionState"),i=A0(t,{relative:e.relative});if(!n.isTransitioning)return!1;let a=$c(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=$c(n.nextLocation.pathname,r)||n.nextLocation.pathname;return HS(i.pathname,s)!=null||HS(i.pathname,a)!=null}new TextEncoder;[...aue];var w0=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jf=typeof window>"u"||"Deno"in globalThis;function Qs(){}function yue(t,e){return typeof t=="function"?t(e):t}function Fw(t){return typeof t=="number"&&t>=0&&t!==1/0}function JH(t,e){return Math.max(t+(e||0)-Date.now(),0)}function ap(t,e){return typeof t=="function"?t(e):t}function Wo(t,e){return typeof t=="function"?t(e):t}function CF(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=t;if(s){if(r){if(e.queryHash!==AL(s,e.options))return!1}else if(!L_(e.queryKey,s))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||i&&i!==e.state.fetchStatus||a&&!a(e))}function OF(t,e){const{exact:n,status:r,predicate:i,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;if(n){if(M_(e.options.mutationKey)!==M_(a))return!1}else if(!L_(e.options.mutationKey,a))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function AL(t,e){return((e==null?void 0:e.queryKeyHashFn)||M_)(t)}function M_(t){return JSON.stringify(t,(e,n)=>jw(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function L_(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>L_(t[n],e[n])):!1}function e9(t,e){if(t===e)return t;const n=RF(t)&&RF(e);if(n||jw(t)&&jw(e)){const r=n?t:Object.keys(t),i=r.length,a=n?e:Object.keys(e),s=a.length,o=n?[]:{};let c=0;for(let d=0;d<s;d++){const f=n?d:a[d];(!n&&r.includes(f)||n)&&t[f]===void 0&&e[f]===void 0?(o[f]=void 0,c++):(o[f]=e9(t[f],e[f]),o[f]===t[f]&&t[f]!==void 0&&c++)}return i===s&&c===i?t:o}return e}function Uw(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function RF(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function jw(t){if(!NF(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!NF(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function NF(t){return Object.prototype.toString.call(t)==="[object Object]"}function Tue(t){return new Promise(e=>{setTimeout(e,t)})}function Gw(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?e9(t,e):e}function xue(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function Cue(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var wL=Symbol();function t9(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===wL?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Sf,zu,vp,x5,Oue=(x5=class extends w0{constructor(){super();Je(this,Sf);Je(this,zu);Je(this,vp);Pe(this,vp,e=>{if(!jf&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){$(this,zu)||this.setEventListener($(this,vp))}onUnsubscribe(){var e;this.hasListeners()||((e=$(this,zu))==null||e.call(this),Pe(this,zu,void 0))}setEventListener(e){var n;Pe(this,vp,e),(n=$(this,zu))==null||n.call(this),Pe(this,zu,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){$(this,Sf)!==e&&(Pe(this,Sf,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof $(this,Sf)=="boolean"?$(this,Sf):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Sf=new WeakMap,zu=new WeakMap,vp=new WeakMap,x5),IL=new Oue,Sp,Yu,Ep,C5,Rue=(C5=class extends w0{constructor(){super();Je(this,Sp,!0);Je(this,Yu);Je(this,Ep);Pe(this,Ep,e=>{if(!jf&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){$(this,Yu)||this.setEventListener($(this,Ep))}onUnsubscribe(){var e;this.hasListeners()||((e=$(this,Yu))==null||e.call(this),Pe(this,Yu,void 0))}setEventListener(e){var n;Pe(this,Ep,e),(n=$(this,Yu))==null||n.call(this),Pe(this,Yu,e(this.setOnline.bind(this)))}setOnline(e){$(this,Sp)!==e&&(Pe(this,Sp,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return $(this,Sp)}},Sp=new WeakMap,Yu=new WeakMap,Ep=new WeakMap,C5),VS=new Rue;function qw(){let t,e;const n=new Promise((i,a)=>{t=i,e=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},n.reject=i=>{r({status:"rejected",reason:i}),e(i)},n}function Nue(t){return Math.min(1e3*2**t,3e4)}function n9(t){return(t??"online")==="online"?VS.isOnline():!0}var r9=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function rO(t){return t instanceof r9}function i9(t){let e=!1,n=0,r=!1,i;const a=qw(),s=S=>{var y;r||(m(new r9(S)),(y=t.abort)==null||y.call(t))},o=()=>{e=!0},c=()=>{e=!1},d=()=>IL.isFocused()&&(t.networkMode==="always"||VS.isOnline())&&t.canRun(),f=()=>n9(t.networkMode)&&t.canRun(),p=S=>{var y;r||(r=!0,(y=t.onSuccess)==null||y.call(t,S),i==null||i(),a.resolve(S))},m=S=>{var y;r||(r=!0,(y=t.onError)==null||y.call(t,S),i==null||i(),a.reject(S))},g=()=>new Promise(S=>{var y;i=E=>{(r||d())&&S(E)},(y=t.onPause)==null||y.call(t)}).then(()=>{var S;i=void 0,r||(S=t.onContinue)==null||S.call(t)}),b=()=>{if(r)return;let S;const y=n===0?t.initialPromise:void 0;try{S=y??t.fn()}catch(E){S=Promise.reject(E)}Promise.resolve(S).then(p).catch(E=>{var N;if(r)return;const T=t.retry??(jf?0:3),x=t.retryDelay??Nue,O=typeof x=="function"?x(n,E):x,C=T===!0||typeof T=="number"&&n<T||typeof T=="function"&&T(n,E);if(e||!C){m(E);return}n++,(N=t.onFail)==null||N.call(t,n,E),Tue(O).then(()=>d()?void 0:g()).then(()=>{e?m(E):b()})})};return{promise:a,cancel:s,continue:()=>(i==null||i(),a),cancelRetry:o,continueRetry:c,canStart:f,start:()=>(f()?b():g().then(b),a)}}var Aue=t=>setTimeout(t,0);function wue(){let t=[],e=0,n=o=>{o()},r=o=>{o()},i=Aue;const a=o=>{e?t.push(o):i(()=>{n(o)})},s=()=>{const o=t;t=[],o.length&&i(()=>{r(()=>{o.forEach(c=>{n(c)})})})};return{batch:o=>{let c;e++;try{c=o()}finally{e--,e||s()}return c},batchCalls:o=>(...c)=>{a(()=>{o(...c)})},schedule:a,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{i=o}}}var Xi=wue(),Ef,O5,a9=(O5=class{constructor(){Je(this,Ef)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fw(this.gcTime)&&Pe(this,Ef,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(jf?1/0:5*60*1e3))}clearGcTimeout(){$(this,Ef)&&(clearTimeout($(this,Ef)),Pe(this,Ef,void 0))}},Ef=new WeakMap,O5),yp,Tp,Ws,yf,ha,o0,Tf,Po,Oc,R5,Iue=(R5=class extends a9{constructor(e){super();Je(this,Po);Je(this,yp);Je(this,Tp);Je(this,Ws);Je(this,yf);Je(this,ha);Je(this,o0);Je(this,Tf);Pe(this,Tf,!1),Pe(this,o0,e.defaultOptions),this.setOptions(e.options),this.observers=[],Pe(this,yf,e.client),Pe(this,Ws,$(this,yf).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Pe(this,yp,Due(this.options)),this.state=e.state??$(this,yp),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=$(this,ha))==null?void 0:e.promise}setOptions(e){this.options={...$(this,o0),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&$(this,Ws).remove(this)}setData(e,n){const r=Gw(this.state.data,e,this.options);return $e(this,Po,Oc).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){$e(this,Po,Oc).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,i;const n=(r=$(this,ha))==null?void 0:r.promise;return(i=$(this,ha))==null||i.cancel(e),n?n.then(Qs).catch(Qs):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState($(this,yp))}isActive(){return this.observers.some(e=>Wo(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===wL||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!JH(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=$(this,ha))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=$(this,ha))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),$(this,Ws).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||($(this,ha)&&($(this,Tf)?$(this,ha).cancel({revert:!0}):$(this,ha).cancelRetry()),this.scheduleGc()),$(this,Ws).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$e(this,Po,Oc).call(this,{type:"invalidate"})}fetch(e,n){var c,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if($(this,ha))return $(this,ha).continueRetry(),$(this,ha).promise}if(e&&this.setOptions(e),!this.options.queryFn){const p=this.observers.find(m=>m.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,i=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(Pe(this,Tf,!0),r.signal)})},a=()=>{const p=t9(this.options,n),m={client:$(this,yf),queryKey:this.queryKey,meta:this.meta};return i(m),Pe(this,Tf,!1),this.options.persister?this.options.persister(p,m,this):p(m)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:$(this,yf),state:this.state,fetchFn:a};i(s),(c=this.options.behavior)==null||c.onFetch(s,this),Pe(this,Tp,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&$e(this,Po,Oc).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta});const o=p=>{var m,g,b,S;rO(p)&&p.silent||$e(this,Po,Oc).call(this,{type:"error",error:p}),rO(p)||((g=(m=$(this,Ws).config).onError)==null||g.call(m,p,this),(S=(b=$(this,Ws).config).onSettled)==null||S.call(b,this.state.data,p,this)),this.scheduleGc()};return Pe(this,ha,i9({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var m,g,b,S;if(p===void 0){o(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(y){o(y);return}(g=(m=$(this,Ws).config).onSuccess)==null||g.call(m,p,this),(S=(b=$(this,Ws).config).onSettled)==null||S.call(b,p,this.state.error,this),this.scheduleGc()},onError:o,onFail:(p,m)=>{$e(this,Po,Oc).call(this,{type:"failed",failureCount:p,error:m})},onPause:()=>{$e(this,Po,Oc).call(this,{type:"pause"})},onContinue:()=>{$e(this,Po,Oc).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),$(this,ha).start()}},yp=new WeakMap,Tp=new WeakMap,Ws=new WeakMap,yf=new WeakMap,ha=new WeakMap,o0=new WeakMap,Tf=new WeakMap,Po=new WeakSet,Oc=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...s9(r.data,this.options),fetchMeta:e.meta??null};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return rO(i)&&i.revert&&$(this,Tp)?{...$(this,Tp),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Xi.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),$(this,Ws).notify({query:this,type:"updated",action:e})})},R5);function s9(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:n9(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Due(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Al,N5,Mue=(N5=class extends w0{constructor(e={}){super();Je(this,Al);this.config=e,Pe(this,Al,new Map)}build(e,n,r){const i=n.queryKey,a=n.queryHash??AL(i,n);let s=this.get(a);return s||(s=new Iue({client:e,queryKey:i,queryHash:a,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){$(this,Al).has(e.queryHash)||($(this,Al).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=$(this,Al).get(e.queryHash);n&&(e.destroy(),n===e&&$(this,Al).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Xi.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return $(this,Al).get(e)}getAll(){return[...$(this,Al).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>CF(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>CF(e,r)):n}notify(e){Xi.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Xi.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Xi.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Al=new WeakMap,N5),wl,wa,xf,Il,Mu,A5,Lue=(A5=class extends a9{constructor(e){super();Je(this,Il);Je(this,wl);Je(this,wa);Je(this,xf);this.mutationId=e.mutationId,Pe(this,wa,e.mutationCache),Pe(this,wl,[]),this.state=e.state||kue(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){$(this,wl).includes(e)||($(this,wl).push(e),this.clearGcTimeout(),$(this,wa).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Pe(this,wl,$(this,wl).filter(n=>n!==e)),this.scheduleGc(),$(this,wa).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){$(this,wl).length||(this.state.status==="pending"?this.scheduleGc():$(this,wa).remove(this))}continue(){var e;return((e=$(this,xf))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var a,s,o,c,d,f,p,m,g,b,S,y,E,T,x,O,C,N,w,D;const n=()=>{$e(this,Il,Mu).call(this,{type:"continue"})};Pe(this,xf,i9({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(L,U)=>{$e(this,Il,Mu).call(this,{type:"failed",failureCount:L,error:U})},onPause:()=>{$e(this,Il,Mu).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>$(this,wa).canRun(this)}));const r=this.state.status==="pending",i=!$(this,xf).canStart();try{if(r)n();else{$e(this,Il,Mu).call(this,{type:"pending",variables:e,isPaused:i}),await((s=(a=$(this,wa).config).onMutate)==null?void 0:s.call(a,e,this));const U=await((c=(o=this.options).onMutate)==null?void 0:c.call(o,e));U!==this.state.context&&$e(this,Il,Mu).call(this,{type:"pending",context:U,variables:e,isPaused:i})}const L=await $(this,xf).start();return await((f=(d=$(this,wa).config).onSuccess)==null?void 0:f.call(d,L,e,this.state.context,this)),await((m=(p=this.options).onSuccess)==null?void 0:m.call(p,L,e,this.state.context)),await((b=(g=$(this,wa).config).onSettled)==null?void 0:b.call(g,L,null,this.state.variables,this.state.context,this)),await((y=(S=this.options).onSettled)==null?void 0:y.call(S,L,null,e,this.state.context)),$e(this,Il,Mu).call(this,{type:"success",data:L}),L}catch(L){try{throw await((T=(E=$(this,wa).config).onError)==null?void 0:T.call(E,L,e,this.state.context,this)),await((O=(x=this.options).onError)==null?void 0:O.call(x,L,e,this.state.context)),await((N=(C=$(this,wa).config).onSettled)==null?void 0:N.call(C,void 0,L,this.state.variables,this.state.context,this)),await((D=(w=this.options).onSettled)==null?void 0:D.call(w,void 0,L,e,this.state.context)),L}finally{$e(this,Il,Mu).call(this,{type:"error",error:L})}}finally{$(this,wa).runNext(this)}}},wl=new WeakMap,wa=new WeakMap,xf=new WeakMap,Il=new WeakSet,Mu=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Xi.batch(()=>{$(this,wl).forEach(r=>{r.onMutationUpdate(e)}),$(this,wa).notify({mutation:this,type:"updated",action:e})})},A5);function kue(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Nc,Bo,l0,w5,Pue=(w5=class extends w0{constructor(e={}){super();Je(this,Nc);Je(this,Bo);Je(this,l0);this.config=e,Pe(this,Nc,new Set),Pe(this,Bo,new Map),Pe(this,l0,0)}build(e,n,r){const i=new Lue({mutationCache:this,mutationId:++Qd(this,l0)._,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){$(this,Nc).add(e);const n=uv(e);if(typeof n=="string"){const r=$(this,Bo).get(n);r?r.push(e):$(this,Bo).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if($(this,Nc).delete(e)){const n=uv(e);if(typeof n=="string"){const r=$(this,Bo).get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&$(this,Bo).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=uv(e);if(typeof n=="string"){const r=$(this,Bo).get(n),i=r==null?void 0:r.find(a=>a.state.status==="pending");return!i||i===e}else return!0}runNext(e){var r;const n=uv(e);if(typeof n=="string"){const i=(r=$(this,Bo).get(n))==null?void 0:r.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Xi.batch(()=>{$(this,Nc).forEach(e=>{this.notify({type:"removed",mutation:e})}),$(this,Nc).clear(),$(this,Bo).clear()})}getAll(){return Array.from($(this,Nc))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>OF(n,r))}findAll(e={}){return this.getAll().filter(n=>OF(e,n))}notify(e){Xi.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Xi.batch(()=>Promise.all(e.map(n=>n.continue().catch(Qs))))}},Nc=new WeakMap,Bo=new WeakMap,l0=new WeakMap,w5);function uv(t){var e;return(e=t.options.scope)==null?void 0:e.id}function AF(t){return{onFetch:(e,n)=>{var f,p,m,g,b;const r=e.options,i=(m=(p=(f=e.fetchOptions)==null?void 0:f.meta)==null?void 0:p.fetchMore)==null?void 0:m.direction,a=((g=e.state.data)==null?void 0:g.pages)||[],s=((b=e.state.data)==null?void 0:b.pageParams)||[];let o={pages:[],pageParams:[]},c=0;const d=async()=>{let S=!1;const y=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(e.signal.aborted?S=!0:e.signal.addEventListener("abort",()=>{S=!0}),e.signal)})},E=t9(e.options,e.fetchOptions),T=async(x,O,C)=>{if(S)return Promise.reject();if(O==null&&x.pages.length)return Promise.resolve(x);const N={client:e.client,queryKey:e.queryKey,pageParam:O,direction:C?"backward":"forward",meta:e.options.meta};y(N);const w=await E(N),{maxPages:D}=e.options,L=C?Cue:xue;return{pages:L(x.pages,w,D),pageParams:L(x.pageParams,O,D)}};if(i&&a.length){const x=i==="backward",O=x?Bue:wF,C={pages:a,pageParams:s},N=O(r,C);o=await T(C,N,x)}else{const x=t??a.length;do{const O=c===0?s[0]??r.initialPageParam:wF(r,o);if(c>0&&O==null)break;o=await T(o,O),c++}while(c<x)}return o};e.options.persister?e.fetchFn=()=>{var S,y;return(y=(S=e.options).persister)==null?void 0:y.call(S,d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=d}}}function wF(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function Bue(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var Lr,Hu,Vu,xp,Cp,Wu,Op,Rp,I5,Fue=(I5=class{constructor(t={}){Je(this,Lr);Je(this,Hu);Je(this,Vu);Je(this,xp);Je(this,Cp);Je(this,Wu);Je(this,Op);Je(this,Rp);Pe(this,Lr,t.queryCache||new Mue),Pe(this,Hu,t.mutationCache||new Pue),Pe(this,Vu,t.defaultOptions||{}),Pe(this,xp,new Map),Pe(this,Cp,new Map),Pe(this,Wu,0)}mount(){Qd(this,Wu)._++,$(this,Wu)===1&&(Pe(this,Op,IL.subscribe(async t=>{t&&(await this.resumePausedMutations(),$(this,Lr).onFocus())})),Pe(this,Rp,VS.subscribe(async t=>{t&&(await this.resumePausedMutations(),$(this,Lr).onOnline())})))}unmount(){var t,e;Qd(this,Wu)._--,$(this,Wu)===0&&((t=$(this,Op))==null||t.call(this),Pe(this,Op,void 0),(e=$(this,Rp))==null||e.call(this),Pe(this,Rp,void 0))}isFetching(t){return $(this,Lr).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return $(this,Hu).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=$(this,Lr).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=$(this,Lr).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(ap(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return $(this,Lr).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=$(this,Lr).get(r.queryHash),a=i==null?void 0:i.state.data,s=yue(e,a);if(s!==void 0)return $(this,Lr).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(t,e,n){return Xi.batch(()=>$(this,Lr).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=$(this,Lr).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=$(this,Lr);Xi.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=$(this,Lr);return Xi.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=Xi.batch(()=>$(this,Lr).findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(Qs).catch(Qs)}invalidateQueries(t,e={}){return Xi.batch(()=>($(this,Lr).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=Xi.batch(()=>$(this,Lr).findAll(t).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Qs)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Qs)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=$(this,Lr).build(this,e);return n.isStaleByTime(ap(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Qs).catch(Qs)}fetchInfiniteQuery(t){return t.behavior=AF(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Qs).catch(Qs)}ensureInfiniteQueryData(t){return t.behavior=AF(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return VS.isOnline()?$(this,Hu).resumePausedMutations():Promise.resolve()}getQueryCache(){return $(this,Lr)}getMutationCache(){return $(this,Hu)}getDefaultOptions(){return $(this,Vu)}setDefaultOptions(t){Pe(this,Vu,t)}setQueryDefaults(t,e){$(this,xp).set(M_(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...$(this,xp).values()],n={};return e.forEach(r=>{L_(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){$(this,Cp).set(M_(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...$(this,Cp).values()],n={};return e.forEach(r=>{L_(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...$(this,Vu).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=AL(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===wL&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...$(this,Vu).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){$(this,Lr).clear(),$(this,Hu).clear()}},Lr=new WeakMap,Hu=new WeakMap,Vu=new WeakMap,xp=new WeakMap,Cp=new WeakMap,Wu=new WeakMap,Op=new WeakMap,Rp=new WeakMap,I5),Qa,hn,c0,Ia,Cf,Np,Qu,Ku,u0,Ap,wp,Of,Rf,Xu,Ip,wn,Xg,$w,zw,Yw,Hw,Vw,Ww,Qw,l9,D5,o9=(D5=class extends w0{constructor(e,n){super();Je(this,wn);Je(this,Qa);Je(this,hn);Je(this,c0);Je(this,Ia);Je(this,Cf);Je(this,Np);Je(this,Qu);Je(this,Ku);Je(this,u0);Je(this,Ap);Je(this,wp);Je(this,Of);Je(this,Rf);Je(this,Xu);Je(this,Ip,new Set);this.options=n,Pe(this,Qa,e),Pe(this,Ku,null),Pe(this,Qu,qw()),this.options.experimental_prefetchInRender||$(this,Qu).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&($(this,hn).addObserver(this),IF($(this,hn),this.options)?$e(this,wn,Xg).call(this):this.updateResult(),$e(this,wn,Hw).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Kw($(this,hn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Kw($(this,hn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$e(this,wn,Vw).call(this),$e(this,wn,Ww).call(this),$(this,hn).removeObserver(this)}setOptions(e){const n=this.options,r=$(this,hn);if(this.options=$(this,Qa).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Wo(this.options.enabled,$(this,hn))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$e(this,wn,Qw).call(this),$(this,hn).setOptions(this.options),n._defaulted&&!Uw(this.options,n)&&$(this,Qa).getQueryCache().notify({type:"observerOptionsUpdated",query:$(this,hn),observer:this});const i=this.hasListeners();i&&DF($(this,hn),r,this.options,n)&&$e(this,wn,Xg).call(this),this.updateResult(),i&&($(this,hn)!==r||Wo(this.options.enabled,$(this,hn))!==Wo(n.enabled,$(this,hn))||ap(this.options.staleTime,$(this,hn))!==ap(n.staleTime,$(this,hn)))&&$e(this,wn,$w).call(this);const a=$e(this,wn,zw).call(this);i&&($(this,hn)!==r||Wo(this.options.enabled,$(this,hn))!==Wo(n.enabled,$(this,hn))||a!==$(this,Xu))&&$e(this,wn,Yw).call(this,a)}getOptimisticResult(e){const n=$(this,Qa).getQueryCache().build($(this,Qa),e),r=this.createResult(n,e);return jue(this,r)&&(Pe(this,Ia,r),Pe(this,Np,this.options),Pe(this,Cf,$(this,hn).state)),r}getCurrentResult(){return $(this,Ia)}trackResult(e,n){const r={};return Object.keys(e).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),e[i])})}),r}trackProp(e){$(this,Ip).add(e)}getCurrentQuery(){return $(this,hn)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=$(this,Qa).defaultQueryOptions(e),r=$(this,Qa).getQueryCache().build($(this,Qa),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){return $e(this,wn,Xg).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),$(this,Ia)))}createResult(e,n){var L;const r=$(this,hn),i=this.options,a=$(this,Ia),s=$(this,Cf),o=$(this,Np),d=e!==r?e.state:$(this,c0),{state:f}=e;let p={...f},m=!1,g;if(n._optimisticResults){const U=this.hasListeners(),M=!U&&IF(e,n),B=U&&DF(e,r,n,i);(M||B)&&(p={...p,...s9(f.data,e.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:S,status:y}=p;g=p.data;let E=!1;if(n.placeholderData!==void 0&&g===void 0&&y==="pending"){let U;a!=null&&a.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(U=a.data,E=!0):U=typeof n.placeholderData=="function"?n.placeholderData((L=$(this,wp))==null?void 0:L.state.data,$(this,wp)):n.placeholderData,U!==void 0&&(y="success",g=Gw(a==null?void 0:a.data,U,n),m=!0)}if(n.select&&g!==void 0&&!E)if(a&&g===(s==null?void 0:s.data)&&n.select===$(this,u0))g=$(this,Ap);else try{Pe(this,u0,n.select),g=n.select(g),g=Gw(a==null?void 0:a.data,g,n),Pe(this,Ap,g),Pe(this,Ku,null)}catch(U){Pe(this,Ku,U)}$(this,Ku)&&(b=$(this,Ku),g=$(this,Ap),S=Date.now(),y="error");const T=p.fetchStatus==="fetching",x=y==="pending",O=y==="error",C=x&&T,N=g!==void 0,D={status:y,fetchStatus:p.fetchStatus,isPending:x,isSuccess:y==="success",isError:O,isInitialLoading:C,isLoading:C,data:g,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:S,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:T,isRefetching:T&&!x,isLoadingError:O&&!N,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:O&&N,isStale:DL(e,n),refetch:this.refetch,promise:$(this,Qu)};if(this.options.experimental_prefetchInRender){const U=Y=>{D.status==="error"?Y.reject(D.error):D.data!==void 0&&Y.resolve(D.data)},M=()=>{const Y=Pe(this,Qu,D.promise=qw());U(Y)},B=$(this,Qu);switch(B.status){case"pending":e.queryHash===r.queryHash&&U(B);break;case"fulfilled":(D.status==="error"||D.data!==B.value)&&M();break;case"rejected":(D.status!=="error"||D.error!==B.reason)&&M();break}}return D}updateResult(){const e=$(this,Ia),n=this.createResult($(this,hn),this.options);if(Pe(this,Cf,$(this,hn).state),Pe(this,Np,this.options),$(this,Cf).data!==void 0&&Pe(this,wp,$(this,hn)),Uw(n,e))return;Pe(this,Ia,n);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!$(this,Ip).size)return!0;const s=new Set(a??$(this,Ip));return this.options.throwOnError&&s.add("error"),Object.keys($(this,Ia)).some(o=>{const c=o;return $(this,Ia)[c]!==e[c]&&s.has(c)})};$e(this,wn,l9).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$e(this,wn,Hw).call(this)}},Qa=new WeakMap,hn=new WeakMap,c0=new WeakMap,Ia=new WeakMap,Cf=new WeakMap,Np=new WeakMap,Qu=new WeakMap,Ku=new WeakMap,u0=new WeakMap,Ap=new WeakMap,wp=new WeakMap,Of=new WeakMap,Rf=new WeakMap,Xu=new WeakMap,Ip=new WeakMap,wn=new WeakSet,Xg=function(e){$e(this,wn,Qw).call(this);let n=$(this,hn).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Qs)),n},$w=function(){$e(this,wn,Vw).call(this);const e=ap(this.options.staleTime,$(this,hn));if(jf||$(this,Ia).isStale||!Fw(e))return;const r=JH($(this,Ia).dataUpdatedAt,e)+1;Pe(this,Of,setTimeout(()=>{$(this,Ia).isStale||this.updateResult()},r))},zw=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval($(this,hn)):this.options.refetchInterval)??!1},Yw=function(e){$e(this,wn,Ww).call(this),Pe(this,Xu,e),!(jf||Wo(this.options.enabled,$(this,hn))===!1||!Fw($(this,Xu))||$(this,Xu)===0)&&Pe(this,Rf,setInterval(()=>{(this.options.refetchIntervalInBackground||IL.isFocused())&&$e(this,wn,Xg).call(this)},$(this,Xu)))},Hw=function(){$e(this,wn,$w).call(this),$e(this,wn,Yw).call(this,$e(this,wn,zw).call(this))},Vw=function(){$(this,Of)&&(clearTimeout($(this,Of)),Pe(this,Of,void 0))},Ww=function(){$(this,Rf)&&(clearInterval($(this,Rf)),Pe(this,Rf,void 0))},Qw=function(){const e=$(this,Qa).getQueryCache().build($(this,Qa),this.options);if(e===$(this,hn))return;const n=$(this,hn);Pe(this,hn,e),Pe(this,c0,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},l9=function(e){Xi.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n($(this,Ia))}),$(this,Qa).getQueryCache().notify({query:$(this,hn),type:"observerResultsUpdated"})})},D5);function Uue(t,e){return Wo(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function IF(t,e){return Uue(t,e)||t.state.data!==void 0&&Kw(t,e,e.refetchOnMount)}function Kw(t,e,n){if(Wo(e.enabled,t)!==!1){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&DL(t,e)}return!1}function DF(t,e,n,r){return(t!==e||Wo(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&DL(t,n)}function DL(t,e){return Wo(e.enabled,t)!==!1&&t.isStaleByTime(ap(e.staleTime,t))}function jue(t,e){return!Uw(t.getCurrentResult(),e)}var c9=I.createContext(void 0),Gue=t=>{const e=I.useContext(c9);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},que=({client:t,children:e})=>(I.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),l.jsx(c9.Provider,{value:t,children:e})),u9=I.createContext(!1),$ue=()=>I.useContext(u9);u9.Provider;function zue(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Yue=I.createContext(zue()),Hue=()=>I.useContext(Yue);function Vue(t,e){return typeof t=="function"?t(...e):!!t}function MF(){}var Wue=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},Que=t=>{I.useEffect(()=>{t.clearReset()},[t])},Kue=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||Vue(n,[t.error,r])),Xue=(t,e)=>e.state.data===void 0,Zue=t=>{const e=t.staleTime;t.suspense&&(t.staleTime=typeof e=="function"?(...n)=>Math.max(e(...n),1e3):Math.max(e??1e3,1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},Jue=(t,e)=>t.isLoading&&t.isFetching&&!e,ede=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,LF=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function d9(t,e,n){var p,m,g,b,S;const r=Gue(),i=$ue(),a=Hue(),s=r.defaultQueryOptions(t);(m=(p=r.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||m.call(p,s),s._optimisticResults=i?"isRestoring":"optimistic",Zue(s),Wue(s,a),Que(a);const o=!r.getQueryCache().get(s.queryHash),[c]=I.useState(()=>new e(r,s)),d=c.getOptimisticResult(s),f=!i&&t.subscribed!==!1;if(I.useSyncExternalStore(I.useCallback(y=>{const E=f?c.subscribe(Xi.batchCalls(y)):MF;return c.updateResult(),E},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),I.useEffect(()=>{c.setOptions(s)},[s,c]),ede(s,d))throw LF(s,c,a);if(Kue({result:d,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw d.error;if((b=(g=r.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||b.call(g,s,d),s.experimental_prefetchInRender&&!jf&&Jue(d,i)){const y=o?LF(s,c,a):(S=r.getQueryCache().get(s.queryHash))==null?void 0:S.promise;y==null||y.catch(MF).finally(()=>{c.updateResult()})}return s.notifyOnChangeProps?d:c.trackResult(d)}function tde(t,e){return d9(t,o9)}function f9(t,e){return d9({...t,enabled:!0,suspense:!0,throwOnError:Xue,placeholderData:void 0},o9)}var iO={exports:{}},aO={};/**
 * @license React
 * use-sync-external-store-with-selector.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 kF;function nde(){if(kF)return aO;kF=1;var t=h0();function e(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}var n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,o=t.useDebugValue;return aO.useSyncExternalStoreWithSelector=function(c,d,f,p,m){var g=i(null);if(g.current===null){var b={hasValue:!1,value:null};g.current=b}else b=g.current;g=s(function(){function y(C){if(!E){if(E=!0,T=C,C=p(C),m!==void 0&&b.hasValue){var N=b.value;if(m(N,C))return x=N}return x=C}if(N=x,n(T,C))return N;var w=p(C);return m!==void 0&&m(N,w)?(T=C,N):(T=C,x=w)}var E=!1,T,x,O=f===void 0?null:f;return[function(){return y(d())},O===null?void 0:function(){return y(O())}]},[d,f,p,m]);var S=r(c,g[0],g[1]);return a(function(){b.hasValue=!0,b.value=S},[S]),o(S),S},aO}var PF;function rde(){return PF||(PF=1,iO.exports=nde()),iO.exports}var ide=rde();function ade(t){t()}function sde(){let t=null,e=null;return{clear(){t=null,e=null},notify(){ade(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=t;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=e={callback:n,next:null,prev:e};return i.prev?i.prev.next=i:t=i,function(){!r||t===null||(r=!1,i.next?i.next.prev=i.prev:e=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var BF={notify(){},get:()=>[]};function ode(t,e){let n,r=BF,i=0,a=!1;function s(S){f();const y=r.subscribe(S);let E=!1;return()=>{E||(E=!0,y(),p())}}function o(){r.notify()}function c(){b.onStateChange&&b.onStateChange()}function d(){return a}function f(){i++,n||(n=t.subscribe(c),r=sde())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=BF)}function m(){a||(a=!0,f())}function g(){a&&(a=!1,p())}const b={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:c,isSubscribed:d,trySubscribe:m,tryUnsubscribe:g,getListeners:()=>r};return b}var lde=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cde=lde(),ude=()=>typeof navigator<"u"&&navigator.product==="ReactNative",dde=ude(),fde=()=>cde||dde?I.useLayoutEffect:I.useEffect,hde=fde(),sO=Symbol.for("react-redux-context"),oO=typeof globalThis<"u"?globalThis:{};function pde(){if(!I.createContext)return{};const t=oO[sO]??(oO[sO]=new Map);let e=t.get(I.createContext);return e||(e=I.createContext(null),t.set(I.createContext,e)),e}var ud=pde();function mde(t){const{children:e,context:n,serverState:r,store:i}=t,a=I.useMemo(()=>{const c=ode(i);return{store:i,subscription:c,getServerState:r?()=>r:void 0}},[i,r]),s=I.useMemo(()=>i.getState(),[i]);hde(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const o=n||ud;return I.createElement(o.Provider,{value:a},e)}var gde=mde;function ML(t=ud){return function(){return I.useContext(t)}}var h9=ML();function p9(t=ud){const e=t===ud?h9:ML(t),n=()=>{const{store:r}=e();return r};return Object.assign(n,{withTypes:()=>n}),n}var _de=p9();function bde(t=ud){const e=t===ud?_de:p9(t),n=()=>e().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var vde=bde(),Sde=(t,e)=>t===e;function Ede(t=ud){const e=t===ud?h9:ML(t),n=(r,i={})=>{const{equalityFn:a=Sde}=typeof i=="function"?{equalityFn:i}:i,s=e(),{store:o,subscription:c,getServerState:d}=s;I.useRef(!0);const f=I.useCallback({[r.name](m){return r(m)}}[r.name],[r]),p=ide.useSyncExternalStoreWithSelector(c.addNestedSub,o.getState,d||o.getState,f,a);return I.useDebugValue(p),p};return Object.assign(n,{withTypes:()=>n}),n}var yde=Ede();const tu=vde.withTypes(),Kl=yde.withTypes();function Vi(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Tde=typeof Symbol=="function"&&Symbol.observable||"@@observable",FF=Tde,lO=()=>Math.random().toString(36).substring(7).split("").join("."),xde={INIT:`@@redux/INIT${lO()}`,REPLACE:`@@redux/REPLACE${lO()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${lO()}`},WS=xde;function LL(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function m9(t,e,n){if(typeof t!="function")throw new Error(Vi(2));if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Vi(0));if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Vi(1));return n(m9)(t,e)}let r=t,i=e,a=new Map,s=a,o=0,c=!1;function d(){s===a&&(s=new Map,a.forEach((y,E)=>{s.set(E,y)}))}function f(){if(c)throw new Error(Vi(3));return i}function p(y){if(typeof y!="function")throw new Error(Vi(4));if(c)throw new Error(Vi(5));let E=!0;d();const T=o++;return s.set(T,y),function(){if(E){if(c)throw new Error(Vi(6));E=!1,d(),s.delete(T),a=null}}}function m(y){if(!LL(y))throw new Error(Vi(7));if(typeof y.type>"u")throw new Error(Vi(8));if(typeof y.type!="string")throw new Error(Vi(17));if(c)throw new Error(Vi(9));try{c=!0,i=r(i,y)}finally{c=!1}return(a=s).forEach(T=>{T()}),y}function g(y){if(typeof y!="function")throw new Error(Vi(10));r=y,m({type:WS.REPLACE})}function b(){const y=p;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(Vi(11));function T(){const O=E;O.next&&O.next(f())}return T(),{unsubscribe:y(T)}},[FF](){return this}}}return m({type:WS.INIT}),{dispatch:m,subscribe:p,getState:f,replaceReducer:g,[FF]:b}}function Cde(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:WS.INIT})>"u")throw new Error(Vi(12));if(typeof n(void 0,{type:WS.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Vi(13))})}function Ode(t){const e=Object.keys(t),n={};for(let a=0;a<e.length;a++){const s=e[a];typeof t[s]=="function"&&(n[s]=t[s])}const r=Object.keys(n);let i;try{Cde(n)}catch(a){i=a}return function(s={},o){if(i)throw i;let c=!1;const d={};for(let f=0;f<r.length;f++){const p=r[f],m=n[p],g=s[p],b=m(g,o);if(typeof b>"u")throw o&&o.type,new Error(Vi(14));d[p]=b,c=c||b!==g}return c=c||r.length!==Object.keys(s).length,c?d:s}}function QS(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...r)=>e(n(...r)))}function Rde(...t){return e=>(n,r)=>{const i=e(n,r);let a=()=>{throw new Error(Vi(15))};const s={getState:i.getState,dispatch:(c,...d)=>a(c,...d)},o=t.map(c=>c(s));return a=QS(...o)(i.dispatch),{...i,dispatch:a}}}function g9(t){return LL(t)&&"type"in t&&typeof t.type=="string"}var _9=Symbol.for("immer-nothing"),UF=Symbol.for("immer-draftable"),ws=Symbol.for("immer-state");function Qo(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var qp=Object.getPrototypeOf;function Gf(t){return!!t&&!!t[ws]}function zc(t){var e;return t?b9(t)||Array.isArray(t)||!!t[UF]||!!((e=t.constructor)!=null&&e[UF])||Uy(t)||jy(t):!1}var Nde=Object.prototype.constructor.toString();function b9(t){if(!t||typeof t!="object")return!1;const e=qp(t);if(e===null)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Nde}function KS(t,e){Fy(t)===0?Reflect.ownKeys(t).forEach(n=>{e(n,t[n],t)}):t.forEach((n,r)=>e(r,n,t))}function Fy(t){const e=t[ws];return e?e.type_:Array.isArray(t)?1:Uy(t)?2:jy(t)?3:0}function Xw(t,e){return Fy(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function v9(t,e,n){const r=Fy(t);r===2?t.set(e,n):r===3?t.add(n):t[e]=n}function Ade(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function Uy(t){return t instanceof Map}function jy(t){return t instanceof Set}function ef(t){return t.copy_||t.base_}function Zw(t,e){if(Uy(t))return new Map(t);if(jy(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const n=b9(t);if(e===!0||e==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(t);delete r[ws];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const s=i[a],o=r[s];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[s]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[s]})}return Object.create(qp(t),r)}else{const r=qp(t);if(r!==null&&n)return{...t};const i=Object.create(r);return Object.assign(i,t)}}function kL(t,e=!1){return Gy(t)||Gf(t)||!zc(t)||(Fy(t)>1&&(t.set=t.add=t.clear=t.delete=wde),Object.freeze(t),e&&Object.entries(t).forEach(([n,r])=>kL(r,!0))),t}function wde(){Qo(2)}function Gy(t){return Object.isFrozen(t)}var Ide={};function qf(t){const e=Ide[t];return e||Qo(0,t),e}var k_;function S9(){return k_}function Dde(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function jF(t,e){e&&(qf("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Jw(t){eI(t),t.drafts_.forEach(Mde),t.drafts_=null}function eI(t){t===k_&&(k_=t.parent_)}function GF(t){return k_=Dde(k_,t)}function Mde(t){const e=t[ws];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function qF(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return t!==void 0&&t!==n?(n[ws].modified_&&(Jw(e),Qo(4)),zc(t)&&(t=XS(e,t),e.parent_||ZS(e,t)),e.patches_&&qf("Patches").generateReplacementPatches_(n[ws].base_,t,e.patches_,e.inversePatches_)):t=XS(e,n,[]),Jw(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==_9?t:void 0}function XS(t,e,n){if(Gy(e))return e;const r=e[ws];if(!r)return KS(e,(i,a)=>$F(t,r,e,i,a,n)),e;if(r.scope_!==t)return e;if(!r.modified_)return ZS(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),KS(a,(o,c)=>$F(t,r,i,o,c,n,s)),ZS(t,i,!1),n&&t.patches_&&qf("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function $F(t,e,n,r,i,a,s){if(Gf(i)){const o=a&&e&&e.type_!==3&&!Xw(e.assigned_,r)?a.concat(r):void 0,c=XS(t,i,o);if(v9(n,r,c),Gf(c))t.canAutoFreeze_=!1;else return}else s&&n.add(i);if(zc(i)&&!Gy(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;XS(t,i),(!e||!e.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&ZS(t,i)}}function ZS(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&kL(e,n)}function Lde(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:S9(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=PL;n&&(i=[r],a=P_);const{revoke:s,proxy:o}=Proxy.revocable(i,a);return r.draft_=o,r.revoke_=s,o}var PL={get(t,e){if(e===ws)return t;const n=ef(t);if(!Xw(n,e))return kde(t,n,e);const r=n[e];return t.finalized_||!zc(r)?r:r===cO(t.base_,e)?(uO(t),t.copy_[e]=nI(r,t)):r},has(t,e){return e in ef(t)},ownKeys(t){return Reflect.ownKeys(ef(t))},set(t,e,n){const r=E9(ef(t),e);if(r!=null&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const i=cO(ef(t),e),a=i==null?void 0:i[ws];if(a&&a.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(Ade(n,i)&&(n!==void 0||Xw(t.base_,e)))return!0;uO(t),tI(t)}return t.copy_[e]===n&&(n!==void 0||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty(t,e){return cO(t.base_,e)!==void 0||e in t.base_?(t.assigned_[e]=!1,uO(t),tI(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const n=ef(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.type_!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty(){Qo(11)},getPrototypeOf(t){return qp(t.base_)},setPrototypeOf(){Qo(12)}},P_={};KS(PL,(t,e)=>{P_[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}});P_.deleteProperty=function(t,e){return P_.set.call(this,t,e,void 0)};P_.set=function(t,e,n){return PL.set.call(this,t[0],e,n,t[0])};function cO(t,e){const n=t[ws];return(n?ef(n):t)[e]}function kde(t,e,n){var i;const r=E9(e,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(t.draft_):void 0}function E9(t,e){if(!(e in t))return;let n=qp(t);for(;n;){const r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=qp(n)}}function tI(t){t.modified_||(t.modified_=!0,t.parent_&&tI(t.parent_))}function uO(t){t.copy_||(t.copy_=Zw(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Pde=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,n,r)=>{if(typeof e=="function"&&typeof n!="function"){const a=n;n=e;const s=this;return function(c=a,...d){return s.produce(c,f=>n.call(this,f,...d))}}typeof n!="function"&&Qo(6),r!==void 0&&typeof r!="function"&&Qo(7);let i;if(zc(e)){const a=GF(this),s=nI(e,void 0);let o=!0;try{i=n(s),o=!1}finally{o?Jw(a):eI(a)}return jF(a,r),qF(i,a)}else if(!e||typeof e!="object"){if(i=n(e),i===void 0&&(i=e),i===_9&&(i=void 0),this.autoFreeze_&&kL(i,!0),r){const a=[],s=[];qf("Patches").generateReplacementPatches_(e,i,a,s),r(a,s)}return i}else Qo(1,e)},this.produceWithPatches=(e,n)=>{if(typeof e=="function")return(s,...o)=>this.produceWithPatches(s,c=>e(c,...o));let r,i;return[this.produce(e,n,(s,o)=>{r=s,i=o}),r,i]},typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof(t==null?void 0:t.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){zc(t)||Qo(8),Gf(t)&&(t=Bde(t));const e=GF(this),n=nI(t,void 0);return n[ws].isManual_=!0,eI(e),n}finishDraft(t,e){const n=t&&t[ws];(!n||!n.isManual_)&&Qo(9);const{scope_:r}=n;return jF(r,e),qF(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const i=e[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(e=e.slice(n+1));const r=qf("Patches").applyPatches_;return Gf(t)?r(t,e):this.produce(t,i=>r(i,e))}};function nI(t,e){const n=Uy(t)?qf("MapSet").proxyMap_(t,e):jy(t)?qf("MapSet").proxySet_(t,e):Lde(t,e);return(e?e.scope_:S9()).drafts_.push(n),n}function Bde(t){return Gf(t)||Qo(10,t),y9(t)}function y9(t){if(!zc(t)||Gy(t))return t;const e=t[ws];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=Zw(t,e.scope_.immer_.useStrictShallowCopy_)}else n=Zw(t,!0);return KS(n,(r,i)=>{v9(n,r,y9(i))}),e&&(e.finalized_=!1),n}var Is=new Pde,T9=Is.produce;Is.produceWithPatches.bind(Is);Is.setAutoFreeze.bind(Is);Is.setUseStrictShallowCopy.bind(Is);Is.applyPatches.bind(Is);Is.createDraft.bind(Is);Is.finishDraft.bind(Is);function x9(t){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,t):i(a)}var Fde=x9(),Ude=x9,jde=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?QS:QS.apply(null,arguments)};function $p(t,e){function n(...r){if(e){let i=e(...r);if(!i)throw new Error(Rs(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:r[0]}}return n.toString=()=>`${t}`,n.type=t,n.match=r=>g9(r)&&r.type===t,n}var C9=class Zg extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Zg.prototype)}static get[Symbol.species](){return Zg}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Zg(...e[0].concat(this)):new Zg(...e.concat(this))}};function zF(t){return zc(t)?T9(t,()=>{}):t}function dv(t,e,n){return t.has(e)?t.get(e):t.set(e,n(e)).get(e)}function Gde(t){return typeof t=="boolean"}var qde=()=>function(e){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{};let s=new C9;return n&&(Gde(n)?s.push(Fde):s.push(Ude(n.extraArgument))),s},$de="RTK_autoBatch",YF=t=>e=>{setTimeout(e,t)},zde=(t={type:"raf"})=>e=>(...n)=>{const r=e(...n);let i=!0,a=!1,s=!1;const o=new Set,c=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:YF(10):t.type==="callback"?t.queueNotification:YF(t.timeout),d=()=>{s=!1,a&&(a=!1,o.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const p=()=>i&&f(),m=r.subscribe(p);return o.add(f),()=>{m(),o.delete(f)}},dispatch(f){var p;try{return i=!((p=f==null?void 0:f.meta)!=null&&p[$de]),a=!i,a&&(s||(s=!0,c(d))),r.dispatch(f)}finally{i=!0}}})},Yde=t=>function(n){const{autoBatch:r=!0}=n??{};let i=new C9(t);return r&&i.push(zde(typeof r=="object"?r:void 0)),i};function Hde(t){const e=qde(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=t||{};let o;if(typeof n=="function")o=n;else if(LL(n))o=Ode(n);else throw new Error(Rs(1));let c;typeof r=="function"?c=r(e):c=e();let d=QS;i&&(d=jde({trace:!1,...typeof i=="object"&&i}));const f=Rde(...c),p=Yde(f);let m=typeof s=="function"?s(p):p();const g=d(...m);return m9(o,a,g)}function O9(t){const e={},n=[];let r;const i={addCase(a,s){const o=typeof a=="string"?a:a.type;if(!o)throw new Error(Rs(28));if(o in e)throw new Error(Rs(29));return e[o]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return t(i),[e,n,r]}function Vde(t){return typeof t=="function"}function Wde(t,e){let[n,r,i]=O9(e),a;if(Vde(t))a=()=>zF(t());else{const o=zF(t);a=()=>o}function s(o=a(),c){let d=[n[c.type],...r.filter(({matcher:f})=>f(c)).map(({reducer:f})=>f)];return d.filter(f=>!!f).length===0&&(d=[i]),d.reduce((f,p)=>{if(p)if(Gf(f)){const g=p(f,c);return g===void 0?f:g}else{if(zc(f))return T9(f,m=>p(m,c));{const m=p(f,c);if(m===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return f},o)}return s.getInitialState=a,s}var Qde="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Kde=(t=21)=>{let e="",n=t;for(;n--;)e+=Qde[Math.random()*64|0];return e},Xde=Symbol.for("rtk-slice-createasyncthunk");function Zde(t,e){return`${t}/${e}`}function Jde({creators:t}={}){var n;const e=(n=t==null?void 0:t.asyncThunk)==null?void 0:n[Xde];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(Rs(11));const o=(typeof i.reducers=="function"?i.reducers(tfe()):i.reducers)||{},c=Object.keys(o),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(O,C){const N=typeof O=="string"?O:O.type;if(!N)throw new Error(Rs(12));if(N in d.sliceCaseReducersByType)throw new Error(Rs(13));return d.sliceCaseReducersByType[N]=C,f},addMatcher(O,C){return d.sliceMatchers.push({matcher:O,reducer:C}),f},exposeAction(O,C){return d.actionCreators[O]=C,f},exposeCaseReducer(O,C){return d.sliceCaseReducersByName[O]=C,f}};c.forEach(O=>{const C=o[O],N={reducerName:O,type:Zde(a,O),createNotation:typeof i.reducers=="function"};rfe(C)?afe(N,C,f,e):nfe(N,C,f)});function p(){const[O={},C=[],N=void 0]=typeof i.extraReducers=="function"?O9(i.extraReducers):[i.extraReducers],w={...O,...d.sliceCaseReducersByType};return Wde(i.initialState,D=>{for(let L in w)D.addCase(L,w[L]);for(let L of d.sliceMatchers)D.addMatcher(L.matcher,L.reducer);for(let L of C)D.addMatcher(L.matcher,L.reducer);N&&D.addDefaultCase(N)})}const m=O=>O,g=new Map,b=new WeakMap;let S;function y(O,C){return S||(S=p()),S(O,C)}function E(){return S||(S=p()),S.getInitialState()}function T(O,C=!1){function N(D){let L=D[O];return typeof L>"u"&&C&&(L=dv(b,N,E)),L}function w(D=m){const L=dv(g,C,()=>new WeakMap);return dv(L,D,()=>{const U={};for(const[M,B]of Object.entries(i.selectors??{}))U[M]=efe(B,D,()=>dv(b,D,E),C);return U})}return{reducerPath:O,getSelectors:w,get selectors(){return w(N)},selectSlice:N}}const x={name:a,reducer:y,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...T(s),injectInto(O,{reducerPath:C,...N}={}){const w=C??s;return O.inject({reducerPath:w,reducer:y},N),{...x,...T(w,!0)}}};return x}}function efe(t,e,n,r){function i(a,...s){let o=e(a);return typeof o>"u"&&r&&(o=n()),t(o,...s)}return i.unwrapped=t,i}var qy=Jde();function tfe(){function t(e,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...n}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...n){return e(...n)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:n}},asyncThunk:t}}function nfe({type:t,reducerName:e,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!ife(r))throw new Error(Rs(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?$p(t,s):$p(t))}function rfe(t){return t._reducerDefinitionType==="asyncThunk"}function ife(t){return t._reducerDefinitionType==="reducerWithPrepare"}function afe({type:t,reducerName:e},n,r,i){if(!i)throw new Error(Rs(18));const{payloadCreator:a,fulfilled:s,pending:o,rejected:c,settled:d,options:f}=n,p=i(t,a,f);r.exposeAction(e,p),s&&r.addCase(p.fulfilled,s),o&&r.addCase(p.pending,o),c&&r.addCase(p.rejected,c),d&&r.addMatcher(p.settled,d),r.exposeCaseReducer(e,{fulfilled:s||fv,pending:o||fv,rejected:c||fv,settled:d||fv})}function fv(){}var sfe="task",R9="listener",N9="completed",BL="cancelled",ofe=`task-${BL}`,lfe=`task-${N9}`,rI=`${R9}-${BL}`,cfe=`${R9}-${N9}`,$y=class{constructor(t){Pn(this,"name","TaskAbortError");Pn(this,"message");this.code=t,this.message=`${sfe} ${BL} (reason: ${t})`}},FL=(t,e)=>{if(typeof t!="function")throw new TypeError(Rs(32))},JS=()=>{},A9=(t,e=JS)=>(t.catch(e),t),w9=(t,e)=>(t.addEventListener("abort",e,{once:!0}),()=>t.removeEventListener("abort",e)),Df=(t,e)=>{const n=t.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:e,configurable:!0,writable:!0}),t.abort(e))},Mf=t=>{if(t.aborted){const{reason:e}=t;throw new $y(e)}};function I9(t,e){let n=JS;return new Promise((r,i)=>{const a=()=>i(new $y(t.reason));if(t.aborted){a();return}n=w9(t,a),e.finally(()=>n()).then(r,i)}).finally(()=>{n=JS})}var ufe=async(t,e)=>{try{return await Promise.resolve(),{status:"ok",value:await t()}}catch(n){return{status:n instanceof $y?"cancelled":"rejected",error:n}}finally{e==null||e()}},eE=t=>e=>A9(I9(t,e).then(n=>(Mf(t),n))),D9=t=>{const e=eE(t);return n=>e(new Promise(r=>setTimeout(r,n)))},{assign:sp}=Object,HF={},zy="listenerMiddleware",dfe=(t,e)=>{const n=r=>w9(t,()=>Df(r,t.reason));return(r,i)=>{FL(r);const a=new AbortController;n(a);const s=ufe(async()=>{Mf(t),Mf(a.signal);const o=await r({pause:eE(a.signal),delay:D9(a.signal),signal:a.signal});return Mf(a.signal),o},()=>Df(a,lfe));return i!=null&&i.autoJoin&&e.push(s.catch(JS)),{result:eE(t)(s),cancel(){Df(a,ofe)}}}},ffe=(t,e)=>{const n=async(r,i)=>{Mf(e);let a=()=>{};const o=[new Promise((c,d)=>{let f=t({predicate:r,effect:(p,m)=>{m.unsubscribe(),c([p,m.getState(),m.getOriginalState()])}});a=()=>{f(),d()}})];i!=null&&o.push(new Promise(c=>setTimeout(c,i,null)));try{const c=await I9(e,Promise.race(o));return Mf(e),c}finally{a()}};return(r,i)=>A9(n(r,i))},M9=t=>{let{type:e,actionCreator:n,matcher:r,predicate:i,effect:a}=t;if(e)i=$p(e).match;else if(n)e=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Rs(21));return FL(a),{predicate:i,type:e,effect:a}},L9=sp(t=>{const{type:e,predicate:n,effect:r}=M9(t);return{id:Kde(),effect:r,type:e,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Rs(22))}}},{withTypes:()=>L9}),VF=(t,e)=>{const{type:n,effect:r,predicate:i}=M9(e);return Array.from(t.values()).find(a=>(typeof n=="string"?a.type===n:a.predicate===i)&&a.effect===r)},iI=t=>{t.pending.forEach(e=>{Df(e,rI)})},hfe=t=>()=>{t.forEach(iI),t.clear()},WF=(t,e,n)=>{try{t(e,n)}catch(r){setTimeout(()=>{throw r},0)}},k9=sp($p(`${zy}/add`),{withTypes:()=>k9}),pfe=$p(`${zy}/removeAll`),P9=sp($p(`${zy}/remove`),{withTypes:()=>P9}),mfe=(...t)=>{console.error(`${zy}/error`,...t)},gfe=(t={})=>{const e=new Map,{extra:n,onError:r=mfe}=t;FL(r);const i=f=>(f.unsubscribe=()=>e.delete(f.id),e.set(f.id,f),p=>{f.unsubscribe(),p!=null&&p.cancelActive&&iI(f)}),a=f=>{const p=VF(e,f)??L9(f);return i(p)};sp(a,{withTypes:()=>a});const s=f=>{const p=VF(e,f);return p&&(p.unsubscribe(),f.cancelActive&&iI(p)),!!p};sp(s,{withTypes:()=>s});const o=async(f,p,m,g)=>{const b=new AbortController,S=ffe(a,b.signal),y=[];try{f.pending.add(b),await Promise.resolve(f.effect(p,sp({},m,{getOriginalState:g,condition:(E,T)=>S(E,T).then(Boolean),take:S,delay:D9(b.signal),pause:eE(b.signal),extra:n,signal:b.signal,fork:dfe(b.signal,y),unsubscribe:f.unsubscribe,subscribe:()=>{e.set(f.id,f)},cancelActiveListeners:()=>{f.pending.forEach((E,T,x)=>{E!==b&&(Df(E,rI),x.delete(E))})},cancel:()=>{Df(b,rI),f.pending.delete(b)},throwIfCancelled:()=>{Mf(b.signal)}})))}catch(E){E instanceof $y||WF(r,E,{raisedBy:"effect"})}finally{await Promise.all(y),Df(b,cfe),f.pending.delete(b)}},c=hfe(e);return{middleware:f=>p=>m=>{if(!g9(m))return p(m);if(k9.match(m))return a(m.payload);if(pfe.match(m)){c();return}if(P9.match(m))return s(m.payload);let g=f.getState();const b=()=>{if(g===HF)throw new Error(Rs(23));return g};let S;try{if(S=p(m),e.size>0){const y=f.getState(),E=Array.from(e.values());for(const T of E){let x=!1;try{x=T.predicate(m,y,g)}catch(O){x=!1,WF(r,O,{raisedBy:"predicate"})}x&&o(T,m,f,b)}}}finally{g=HF}return S},startListening:a,stopListening:s,clearListeners:c}};function Rs(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var sS={exports:{}},_fe=sS.exports,QF;function bfe(){return QF||(QF=1,function(t,e){(function(n,r){t.exports=r()})(_fe,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",o="minute",c="hour",d="day",f="week",p="month",m="quarter",g="year",b="date",S="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|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,T={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(H){var F=["th","st","nd","rd"],k=H%100;return"["+H+(F[(k-20)%10]||F[k]||F[0])+"]"}},x=function(H,F,k){var P=String(H);return!P||P.length>=F?H:""+Array(F+1-P.length).join(k)+H},O={s:x,z:function(H){var F=-H.utcOffset(),k=Math.abs(F),P=Math.floor(k/60),z=k%60;return(F<=0?"+":"-")+x(P,2,"0")+":"+x(z,2,"0")},m:function H(F,k){if(F.date()<k.date())return-H(k,F);var P=12*(k.year()-F.year())+(k.month()-F.month()),z=F.clone().add(P,p),V=k-z<0,G=F.clone().add(P+(V?-1:1),p);return+(-(P+(k-z)/(V?z-G:G-z))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:p,y:g,w:f,d,D:b,h:c,m:o,s,ms:a,Q:m}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},C="en",N={};N[C]=T;var w="$isDayjsObject",D=function(H){return H instanceof B||!(!H||!H[w])},L=function H(F,k,P){var z;if(!F)return C;if(typeof F=="string"){var V=F.toLowerCase();N[V]&&(z=V),k&&(N[V]=k,z=V);var G=F.split("-");if(!z&&G.length>1)return H(G[0])}else{var Q=F.name;N[Q]=F,z=Q}return!P&&z&&(C=z),z||!P&&C},U=function(H,F){if(D(H))return H.clone();var k=typeof F=="object"?F:{};return k.date=H,k.args=arguments,new B(k)},M=O;M.l=L,M.i=D,M.w=function(H,F){return U(H,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var B=function(){function H(k){this.$L=L(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[w]=!0}var F=H.prototype;return F.parse=function(k){this.$d=function(P){var z=P.date,V=P.utc;if(z===null)return new Date(NaN);if(M.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var G=z.match(y);if(G){var Q=G[2]-1||0,Z=(G[7]||"0").substring(0,3);return V?new Date(Date.UTC(G[1],Q,G[3]||1,G[4]||0,G[5]||0,G[6]||0,Z)):new Date(G[1],Q,G[3]||1,G[4]||0,G[5]||0,G[6]||0,Z)}}return new Date(z)}(k),this.init()},F.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},F.$utils=function(){return M},F.isValid=function(){return this.$d.toString()!==S},F.isSame=function(k,P){var z=U(k);return this.startOf(P)<=z&&z<=this.endOf(P)},F.isAfter=function(k,P){return U(k)<this.startOf(P)},F.isBefore=function(k,P){return this.endOf(P)<U(k)},F.$g=function(k,P,z){return M.u(k)?this[P]:this.set(z,k)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(k,P){var z=this,V=!!M.u(P)||P,G=M.p(k),Q=function(ke,Oe){var oe=M.w(z.$u?Date.UTC(z.$y,Oe,ke):new Date(z.$y,Oe,ke),z);return V?oe:oe.endOf(d)},Z=function(ke,Oe){return M.w(z.toDate()[ke].apply(z.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(Oe)),z)},X=this.$W,ue=this.$M,fe=this.$D,be="set"+(this.$u?"UTC":"");switch(G){case g:return V?Q(1,0):Q(31,11);case p:return V?Q(1,ue):Q(0,ue+1);case f:var ye=this.$locale().weekStart||0,Ne=(X<ye?X+7:X)-ye;return Q(V?fe-Ne:fe+(6-Ne),ue);case d:case b:return Z(be+"Hours",0);case c:return Z(be+"Minutes",1);case o:return Z(be+"Seconds",2);case s:return Z(be+"Milliseconds",3);default:return this.clone()}},F.endOf=function(k){return this.startOf(k,!1)},F.$set=function(k,P){var z,V=M.p(k),G="set"+(this.$u?"UTC":""),Q=(z={},z[d]=G+"Date",z[b]=G+"Date",z[p]=G+"Month",z[g]=G+"FullYear",z[c]=G+"Hours",z[o]=G+"Minutes",z[s]=G+"Seconds",z[a]=G+"Milliseconds",z)[V],Z=V===d?this.$D+(P-this.$W):P;if(V===p||V===g){var X=this.clone().set(b,1);X.$d[Q](Z),X.init(),this.$d=X.set(b,Math.min(this.$D,X.daysInMonth())).$d}else Q&&this.$d[Q](Z);return this.init(),this},F.set=function(k,P){return this.clone().$set(k,P)},F.get=function(k){return this[M.p(k)]()},F.add=function(k,P){var z,V=this;k=Number(k);var G=M.p(P),Q=function(ue){var fe=U(V);return M.w(fe.date(fe.date()+Math.round(ue*k)),V)};if(G===p)return this.set(p,this.$M+k);if(G===g)return this.set(g,this.$y+k);if(G===d)return Q(1);if(G===f)return Q(7);var Z=(z={},z[o]=r,z[c]=i,z[s]=n,z)[G]||1,X=this.$d.getTime()+k*Z;return M.w(X,this)},F.subtract=function(k,P){return this.add(-1*k,P)},F.format=function(k){var P=this,z=this.$locale();if(!this.isValid())return z.invalidDate||S;var V=k||"YYYY-MM-DDTHH:mm:ssZ",G=M.z(this),Q=this.$H,Z=this.$m,X=this.$M,ue=z.weekdays,fe=z.months,be=z.meridiem,ye=function(Oe,oe,Se,le){return Oe&&(Oe[oe]||Oe(P,V))||Se[oe].slice(0,le)},Ne=function(Oe){return M.s(Q%12||12,Oe,"0")},ke=be||function(Oe,oe,Se){var le=Oe<12?"AM":"PM";return Se?le.toLowerCase():le};return V.replace(E,function(Oe,oe){return oe||function(Se){switch(Se){case"YY":return String(P.$y).slice(-2);case"YYYY":return M.s(P.$y,4,"0");case"M":return X+1;case"MM":return M.s(X+1,2,"0");case"MMM":return ye(z.monthsShort,X,fe,3);case"MMMM":return ye(fe,X);case"D":return P.$D;case"DD":return M.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return ye(z.weekdaysMin,P.$W,ue,2);case"ddd":return ye(z.weekdaysShort,P.$W,ue,3);case"dddd":return ue[P.$W];case"H":return String(Q);case"HH":return M.s(Q,2,"0");case"h":return Ne(1);case"hh":return Ne(2);case"a":return ke(Q,Z,!0);case"A":return ke(Q,Z,!1);case"m":return String(Z);case"mm":return M.s(Z,2,"0");case"s":return String(P.$s);case"ss":return M.s(P.$s,2,"0");case"SSS":return M.s(P.$ms,3,"0");case"Z":return G}return null}(Oe)||G.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(k,P,z){var V,G=this,Q=M.p(P),Z=U(k),X=(Z.utcOffset()-this.utcOffset())*r,ue=this-Z,fe=function(){return M.m(G,Z)};switch(Q){case g:V=fe()/12;break;case p:V=fe();break;case m:V=fe()/3;break;case f:V=(ue-X)/6048e5;break;case d:V=(ue-X)/864e5;break;case c:V=ue/i;break;case o:V=ue/r;break;case s:V=ue/n;break;default:V=ue}return z?V:M.a(V)},F.daysInMonth=function(){return this.endOf(p).$D},F.$locale=function(){return N[this.$L]},F.locale=function(k,P){if(!k)return this.$L;var z=this.clone(),V=L(k,P,!0);return V&&(z.$L=V),z},F.clone=function(){return M.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},H}(),Y=B.prototype;return U.prototype=Y,[["$ms",a],["$s",s],["$m",o],["$H",c],["$W",d],["$M",p],["$y",g],["$D",b]].forEach(function(H){Y[H[1]]=function(F){return this.$g(F,H[0],H[1])}}),U.extend=function(H,F){return H.$i||(H(F,B,U),H.$i=!0),U},U.locale=L,U.isDayjs=D,U.unix=function(H){return U(1e3*H)},U.en=N[C],U.Ls=N,U.p={},U})}(sS)),sS.exports}var vfe=bfe();const Ve=sl(vfe);var oS={exports:{}},Sfe=oS.exports,KF;function Efe(){return KF||(KF=1,function(t,e){(function(n,r){t.exports=r()})(Sfe,function(){var n,r,i=1e3,a=6e4,s=36e5,o=864e5,c=/\[([^\]]+)]|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,d=31536e6,f=2628e6,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,m={years:d,months:f,days:o,hours:s,minutes:a,seconds:i,milliseconds:1,weeks:6048e5},g=function(N){return N instanceof O},b=function(N,w,D){return new O(N,D,w.$l)},S=function(N){return r.p(N)+"s"},y=function(N){return N<0},E=function(N){return y(N)?Math.ceil(N):Math.floor(N)},T=function(N){return Math.abs(N)},x=function(N,w){return N?y(N)?{negative:!0,format:""+T(N)+w}:{negative:!1,format:""+N+w}:{negative:!1,format:""}},O=function(){function N(D,L,U){var M=this;if(this.$d={},this.$l=U,D===void 0&&(this.$ms=0,this.parseFromMilliseconds()),L)return b(D*m[S(L)],this);if(typeof D=="number")return this.$ms=D,this.parseFromMilliseconds(),this;if(typeof D=="object")return Object.keys(D).forEach(function(H){M.$d[S(H)]=D[H]}),this.calMilliseconds(),this;if(typeof D=="string"){var B=D.match(p);if(B){var Y=B.slice(2).map(function(H){return H!=null?Number(H):0});return this.$d.years=Y[0],this.$d.months=Y[1],this.$d.weeks=Y[2],this.$d.days=Y[3],this.$d.hours=Y[4],this.$d.minutes=Y[5],this.$d.seconds=Y[6],this.calMilliseconds(),this}}return this}var w=N.prototype;return w.calMilliseconds=function(){var D=this;this.$ms=Object.keys(this.$d).reduce(function(L,U){return L+(D.$d[U]||0)*m[U]},0)},w.parseFromMilliseconds=function(){var D=this.$ms;this.$d.years=E(D/d),D%=d,this.$d.months=E(D/f),D%=f,this.$d.days=E(D/o),D%=o,this.$d.hours=E(D/s),D%=s,this.$d.minutes=E(D/a),D%=a,this.$d.seconds=E(D/i),D%=i,this.$d.milliseconds=D},w.toISOString=function(){var D=x(this.$d.years,"Y"),L=x(this.$d.months,"M"),U=+this.$d.days||0;this.$d.weeks&&(U+=7*this.$d.weeks);var M=x(U,"D"),B=x(this.$d.hours,"H"),Y=x(this.$d.minutes,"M"),H=this.$d.seconds||0;this.$d.milliseconds&&(H+=this.$d.milliseconds/1e3,H=Math.round(1e3*H)/1e3);var F=x(H,"S"),k=D.negative||L.negative||M.negative||B.negative||Y.negative||F.negative,P=B.format||Y.format||F.format?"T":"",z=(k?"-":"")+"P"+D.format+L.format+M.format+P+B.format+Y.format+F.format;return z==="P"||z==="-P"?"P0D":z},w.toJSON=function(){return this.toISOString()},w.format=function(D){var L=D||"YYYY-MM-DDTHH:mm:ss",U={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return L.replace(c,function(M,B){return B||String(U[M])})},w.as=function(D){return this.$ms/m[S(D)]},w.get=function(D){var L=this.$ms,U=S(D);return U==="milliseconds"?L%=1e3:L=U==="weeks"?E(L/m[U]):this.$d[U],L||0},w.add=function(D,L,U){var M;return M=L?D*m[S(L)]:g(D)?D.$ms:b(D,this).$ms,b(this.$ms+M*(U?-1:1),this)},w.subtract=function(D,L){return this.add(D,L,!0)},w.locale=function(D){var L=this.clone();return L.$l=D,L},w.clone=function(){return b(this.$ms,this)},w.humanize=function(D){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!D)},w.valueOf=function(){return this.asMilliseconds()},w.milliseconds=function(){return this.get("milliseconds")},w.asMilliseconds=function(){return this.as("milliseconds")},w.seconds=function(){return this.get("seconds")},w.asSeconds=function(){return this.as("seconds")},w.minutes=function(){return this.get("minutes")},w.asMinutes=function(){return this.as("minutes")},w.hours=function(){return this.get("hours")},w.asHours=function(){return this.as("hours")},w.days=function(){return this.get("days")},w.asDays=function(){return this.as("days")},w.weeks=function(){return this.get("weeks")},w.asWeeks=function(){return this.as("weeks")},w.months=function(){return this.get("months")},w.asMonths=function(){return this.as("months")},w.years=function(){return this.get("years")},w.asYears=function(){return this.as("years")},N}(),C=function(N,w,D){return N.add(w.years()*D,"y").add(w.months()*D,"M").add(w.days()*D,"d").add(w.hours()*D,"h").add(w.minutes()*D,"m").add(w.seconds()*D,"s").add(w.milliseconds()*D,"ms")};return function(N,w,D){n=D,r=D().$utils(),D.duration=function(M,B){var Y=D.locale();return b(M,{$l:Y},B)},D.isDuration=g;var L=w.prototype.add,U=w.prototype.subtract;w.prototype.add=function(M,B){return g(M)?C(this,M,1):L.bind(this)(M,B)},w.prototype.subtract=function(M,B){return g(M)?C(this,M,-1):U.bind(this)(M,B)}}})}(oS)),oS.exports}var yfe=Efe();const Tfe=sl(yfe);var lS={exports:{}},xfe=lS.exports,XF;function Cfe(){return XF||(XF=1,function(t,e){(function(n,r){t.exports=r()})(xfe,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,s,o){var c=s.prototype;o.utc=function(S){var y={date:S,utc:!0,args:arguments};return new s(y)},c.utc=function(S){var y=o(this.toDate(),{locale:this.$L,utc:!0});return S?y.add(this.utcOffset(),n):y},c.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var d=c.parse;c.parse=function(S){S.utc&&(this.$u=!0),this.$utils().u(S.$offset)||(this.$offset=S.$offset),d.call(this,S)};var f=c.init;c.init=function(){if(this.$u){var S=this.$d;this.$y=S.getUTCFullYear(),this.$M=S.getUTCMonth(),this.$D=S.getUTCDate(),this.$W=S.getUTCDay(),this.$H=S.getUTCHours(),this.$m=S.getUTCMinutes(),this.$s=S.getUTCSeconds(),this.$ms=S.getUTCMilliseconds()}else f.call(this)};var p=c.utcOffset;c.utcOffset=function(S,y){var E=this.$utils().u;if(E(S))return this.$u?0:E(this.$offset)?p.call(this):this.$offset;if(typeof S=="string"&&(S=function(C){C===void 0&&(C="");var N=C.match(r);if(!N)return null;var w=(""+N[0]).match(i)||["-",0,0],D=w[0],L=60*+w[1]+ +w[2];return L===0?0:D==="+"?L:-L}(S),S===null))return this;var T=Math.abs(S)<=16?60*S:S,x=this;if(y)return x.$offset=T,x.$u=S===0,x;if(S!==0){var O=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(x=this.local().add(T+O,n)).$offset=T,x.$x.$localOffset=O}else x=this.utc();return x};var m=c.format;c.format=function(S){var y=S||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,y)},c.valueOf=function(){var S=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*S},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var g=c.toDate;c.toDate=function(S){return S==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var b=c.diff;c.diff=function(S,y,E){if(S&&this.$u===S.$u)return b.call(this,S,y,E);var T=this.local(),x=o(S).local();return b.call(T,x,y,E)}}})}(lS)),lS.exports}var Ofe=Cfe();const B9=sl(Ofe);Ve.extend(Tfe);Ve.extend(B9);const UL=t=>{if(t==="")return null;if(t==="0")return 0;const e=new RegExp("^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$"),n=t.match(e);if(!n)return null;let r=0;const i=(a,s)=>{if(n[a]===void 0)return;const o=parseInt(n[a]);r+=o*s};return i(2,1e3*60*60*24*365),i(4,1e3*60*60*24*7),i(6,1e3*60*60*24),i(8,1e3*60*60),i(10,1e3*60),i(12,1e3),i(14,1),r},F9=(t,e,n)=>{if(t===0)return"0s";const r=t<0?"-":"";let i=Math.abs(t);const a=[];for(const{unit:s,mult:o,exact:c}of[{unit:"y",mult:1e3*60*60*24*365,exact:!0},{unit:"w",mult:1e3*60*60*24*7,exact:!0},{unit:"d",mult:1e3*60*60*24,exact:!1},{unit:"h",mult:1e3*60*60,exact:!1},{unit:"m",mult:1e3*60,exact:!1},{unit:"s",mult:1e3,exact:!1},{unit:"ms",mult:1,exact:!1}]){if(c&&i%o!==0)continue;const d=Math.floor(i/o);if(d>0)if(i-=d*o,n&&s==="s"&&i>0){a.push(`${parseFloat((d+i/1e3).toFixed(3))}s`);break}else a.push(`${d}${s}`);a.length==0&&s=="ms"&&a.push(`${Math.round(i)}ms`)}return r+a.join(e||"")},An=t=>F9(t);function Rfe(t){return Ve.utc(t).valueOf()}const tE=()=>Ve().valueOf(),op=t=>F9(t," ",!0),nE=(t,e,n=" ago")=>{const r=Rfe(t);return r<0?"never":op(e-r)+n},Lf=(t,e)=>e?Ve.unix(t).tz(Ve.tz.guess()).format():Ve.unix(t).utc().format();function ZF(t){return Ve.utc(t).valueOf()}const Nfe=t=>{const e=new URLSearchParams(t),n=[];for(let r=0;e.has(`g${r}.expr`);r++){const i=Yy(),a=(s,o)=>{const c=`g${r}.${s}`;e.has(c)&&o(e.get(c))};a("expr",s=>{i.expr=s}),a("show_tree",s=>{i.showTree=s==="1"}),a("tab",s=>{switch(s){case"0":case"graph":i.visualizer.activeTab="graph";break;case"1":case"table":i.visualizer.activeTab="table";break;case"explain":i.visualizer.activeTab="explain";break;default:console.log("Unknown tab",s)}}),a("display_mode",s=>{i.visualizer.displayMode=s}),a("stacked",s=>{i.visualizer.displayMode=s==="1"?zp.Stacked:zp.Lines}),a("show_exemplars",s=>{i.visualizer.showExemplars=s==="1"}),a("range_input",s=>{i.visualizer.range=UL(s)||i.visualizer.range}),a("end_input",s=>{i.visualizer.endTime=ZF(s)}),a("step_input",s=>{parseInt(s)>0&&(i.visualizer.resolution={type:"custom",step:parseInt(s)*1e3})}),a("res_type",s=>{switch(s){case"auto":a("res_density",o=>{["low","medium","high"].includes(o)&&(i.visualizer.resolution={type:"auto",density:o})});break;case"fixed":a("res_step",o=>{i.visualizer.resolution={type:"fixed",step:parseFloat(o)*1e3}});break;case"custom":a("res_step",o=>{i.visualizer.resolution={type:"custom",step:parseFloat(o)*1e3}});break;default:console.log("Unknown resolution type",s)}}),a("moment_input",s=>{i.visualizer.endTime=ZF(s)}),n.push(i)}return n};function JF(t){return Ve.utc(t).format("YYYY-MM-DD HH:mm:ss")}const Afe=t=>{const e=new URLSearchParams,n=(r,i,a)=>e.append(`g${r}.${i}`,a);return t.forEach((r,i)=>{switch(n(i,"expr",r.expr),n(i,"show_tree",r.showTree?"1":"0"),n(i,"tab",r.visualizer.activeTab),r.visualizer.endTime!==null&&(n(i,"end_input",JF(r.visualizer.endTime)),n(i,"moment_input",JF(r.visualizer.endTime))),n(i,"range_input",An(r.visualizer.range)),r.visualizer.resolution.type){case"auto":n(i,"res_type","auto"),n(i,"res_density",r.visualizer.resolution.density);break;case"fixed":n(i,"res_type","fixed"),n(i,"res_step",(r.visualizer.resolution.step/1e3).toString());break;case"custom":n(i,"res_type","custom"),n(i,"res_step",(r.visualizer.resolution.step/1e3).toString());break}n(i,"display_mode",r.visualizer.displayMode),n(i,"show_exemplars",r.visualizer.showExemplars?"1":"0")}),e},Lo=(t,e)=>{const n=localStorage.getItem(t);return n===null?e:JSON.parse(n)},U9="queryPage.queryHistory";var zp=(t=>(t.Lines="lines",t.Stacked="stacked",t.Heatmap="heatmap",t))(zp||{});const cS=(t,e)=>{switch(t.type){case"auto":{const n=t.density==="high"?750:t.density==="medium"?250:100;return Math.max(Math.floor(e/n/1e3)*1e3,1e3)}case"fixed":return t.step;case"custom":return t.step}},Yy=()=>({id:x_(),expr:"",showTree:!1,showMetricsExplorer:!1,visualizer:{activeTab:"table",endTime:null,range:3600*1e3,resolution:{type:"auto",density:"medium"},displayMode:"lines",showExemplars:!1}}),wfe={panels:[Yy()],queryHistory:Lo(U9,[])},Lg=t=>{const e="?"+Afe(t).toString();window.history.pushState({},"",e)},j9=qy({name:"queryPage",initialState:wfe,reducers:{setPanels:(t,{payload:e})=>{t.panels=e},addPanel:t=>{t.panels.push(Yy()),Lg(t.panels)},removePanel:(t,{payload:e})=>{t.panels.splice(e,1),Lg(t.panels)},setExpr:(t,{payload:e})=>{t.panels[e.idx].expr=e.expr,Lg(t.panels)},addQueryToHistory:(t,{payload:e})=>{t.queryHistory=[e,...t.queryHistory.filter(n=>n!==e)].slice(0,50)},setShowTree:(t,{payload:e})=>{t.panels[e.idx].showTree=e.showTree,Lg(t.panels)},setVisualizer:(t,{payload:e})=>{t.panels[e.idx].visualizer=e.visualizer,Lg(t.panels)}}}),{setPanels:eU,addPanel:Ife,removePanel:Dfe,setExpr:Mfe,addQueryToHistory:G9,setShowTree:dO,setVisualizer:tf}=j9.actions,Lfe=j9.reducer;function kfe({direction:t,levelIndex:e,rowIndex:n,cellIndex:r,size:i}){switch(t){case"up":return e===0&&n===0?null:n===0?{levelIndex:e-1,rowIndex:r<=i[e-1][i[e-1].length-1]-1?i[e-1].length-1:i[e-1].length-2,cellIndex:r}:{levelIndex:e,rowIndex:n-1,cellIndex:r};case"down":return n===i[e].length-1?{levelIndex:e+1,rowIndex:0,cellIndex:r}:n===i[e].length-2&&r>=i[e][i[e].length-1]?{levelIndex:e+1,rowIndex:0,cellIndex:r}:{levelIndex:e,rowIndex:n+1,cellIndex:r};case"left":return e===0&&n===0&&r===0?null:n===0&&r===0?{levelIndex:e-1,rowIndex:i[e-1].length-1,cellIndex:i[e-1][i[e-1].length-1]-1}:r===0?{levelIndex:e,rowIndex:n-1,cellIndex:i[e][n-1]-1}:{levelIndex:e,rowIndex:n,cellIndex:r-1};case"right":return n===i[e].length-1&&r===i[e][n]-1?{levelIndex:e+1,rowIndex:0,cellIndex:0}:r===i[e][n]-1?{levelIndex:e,rowIndex:n+1,cellIndex:0}:{levelIndex:e,rowIndex:n,cellIndex:r+1};default:return{levelIndex:e,rowIndex:n,cellIndex:r}}}function q9({controlsRef:t,direction:e,levelIndex:n,rowIndex:r,cellIndex:i,size:a}){var c,d,f;const s=kfe({direction:e,size:a,rowIndex:r,cellIndex:i,levelIndex:n});if(!s)return;const o=(f=(d=(c=t.current)==null?void 0:c[s.levelIndex])==null?void 0:d[s.rowIndex])==null?void 0:f[s.cellIndex];o&&(o.disabled||o.getAttribute("data-hidden")||o.getAttribute("data-outside")?q9({controlsRef:t,direction:e,levelIndex:s.levelIndex,cellIndex:s.cellIndex,rowIndex:s.rowIndex,size:a}):o.focus())}function Pfe(t){switch(t){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function Bfe(t){var e;return(e=t.current)==null?void 0:e.map(n=>n.map(r=>r.length))}function jL({controlsRef:t,levelIndex:e,rowIndex:n,cellIndex:r,event:i}){const a=Pfe(i.key);if(a){i.preventDefault();const s=Bfe(t);q9({controlsRef:t,direction:a,levelIndex:e,rowIndex:n,cellIndex:r,size:s})}}function tU(t,e){if(!t||!e)return e;const n=t.getHours(),r=t.getMinutes(),i=t.getSeconds(),a=t.getMilliseconds(),s=new Date(e);return s.setHours(n),s.setMinutes(r),s.setSeconds(i),s.setMilliseconds(a),s}var uS={exports:{}},Ffe=uS.exports,nU;function Ufe(){return nU||(nU=1,function(t,e){(function(n,r){t.exports=r()})(Ffe,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,a,s){var o,c=function(m,g,b){b===void 0&&(b={});var S=new Date(m),y=function(E,T){T===void 0&&(T={});var x=T.timeZoneName||"short",O=E+"|"+x,C=r[O];return C||(C=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:E,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:x}),r[O]=C),C}(g,b);return y.formatToParts(S)},d=function(m,g){for(var b=c(m,g),S=[],y=0;y<b.length;y+=1){var E=b[y],T=E.type,x=E.value,O=n[T];O>=0&&(S[O]=parseInt(x,10))}var C=S[3],N=C===24?0:C,w=S[0]+"-"+S[1]+"-"+S[2]+" "+N+":"+S[4]+":"+S[5]+":000",D=+m;return(s.utc(w).valueOf()-(D-=D%1e3))/6e4},f=a.prototype;f.tz=function(m,g){m===void 0&&(m=o);var b,S=this.utcOffset(),y=this.toDate(),E=y.toLocaleString("en-US",{timeZone:m}),T=Math.round((y-new Date(E))/1e3/60),x=15*-Math.round(y.getTimezoneOffset()/15)-T;if(!Number(x))b=this.utcOffset(0,g);else if(b=s(E,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(x,!0),g){var O=b.utcOffset();b=b.add(S-O,"minute")}return b.$x.$timezone=m,b},f.offsetName=function(m){var g=this.$x.$timezone||s.tz.guess(),b=c(this.valueOf(),g,{timeZoneName:m}).find(function(S){return S.type.toLowerCase()==="timezonename"});return b&&b.value};var p=f.startOf;f.startOf=function(m,g){if(!this.$x||!this.$x.$timezone)return p.call(this,m,g);var b=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return p.call(b,m,g).tz(this.$x.$timezone,!0)},s.tz=function(m,g,b){var S=b&&g,y=b||g||o,E=d(+s(),y);if(typeof m!="string")return s(m).tz(y);var T=function(N,w,D){var L=N-60*w*1e3,U=d(L,D);if(w===U)return[L,w];var M=d(L-=60*(U-w)*1e3,D);return U===M?[L,U]:[N-60*Math.min(U,M)*1e3,Math.max(U,M)]}(s.utc(m,S).valueOf(),E,y),x=T[0],O=T[1],C=s(x).utcOffset(O);return C.$x.$timezone=y,C},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(m){o=m}}})}(uS)),uS.exports}var jfe=Ufe();const GL=sl(jfe);Ve.extend(B9);Ve.extend(GL);function Gfe(t,e){return e?Ve(t).tz(e).utcOffset()+t.getTimezoneOffset():0}const rU=(t,e,n)=>{if(!t)return null;if(!e)return t;let r=Gfe(t,e);return n==="remove"&&(r*=-1),Ve(t).add(r,"minutes").toDate()};function Pc(t,e,n,r){return r||!e?e:Array.isArray(e)?e.map(i=>rU(i,n,t)):rU(e,n,t)}const $9={locale:"en",timezone:null,firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},z9=I.createContext($9);function qfe({settings:t,children:e}){return l.jsx(z9.Provider,{value:{...$9,...t},children:e})}function Ds(){const t=I.useContext(z9),e=I.useCallback(s=>s||t.locale,[t.locale]),n=I.useCallback(s=>s||t.timezone||void 0,[t.timezone]),r=I.useCallback(s=>typeof s=="number"?s:t.firstDayOfWeek,[t.firstDayOfWeek]),i=I.useCallback(s=>Array.isArray(s)?s:t.weekendDays,[t.weekendDays]),a=I.useCallback(s=>typeof s=="string"?s:t.labelSeparator,[t.labelSeparator]);return{...t,getLocale:e,getTimezone:n,getFirstDayOfWeek:r,getWeekendDays:i,getLabelSeparator:a}}function $fe(t,e){const n=Ds(),r=i=>Pc("remove",i,n.getTimezone()).toISOString();if(e==="range"&&Array.isArray(t)){const[i,a]=t;return i?a?`${r(i)} – ${r(a)}`:`${r(i)} –`:""}return e==="multiple"&&Array.isArray(t)?t.map(i=>i&&r(i)).filter(Boolean).join(", "):!Array.isArray(t)&&t?r(t):""}function Y9({value:t,type:e,name:n,form:r}){return l.jsx("input",{type:"hidden",value:$fe(t,e),name:n,form:r})}Y9.displayName="@mantine/dates/HiddenDatesInput";var zfe={input:"m_468e7eda"};const Yfe={},qL=Me((t,e)=>{const n=Te("TimeInput",Yfe,t),{classNames:r,styles:i,unstyled:a,vars:s,withSeconds:o,minTime:c,maxTime:d,value:f,onChange:p,...m}=n,{resolvedClassNames:g,resolvedStyles:b}=oo({classNames:r,styles:i,props:n}),S=E=>{if(c!==void 0||d!==void 0){const[T,x,O]=E.split(":").map(Number);if(c){const[C,N,w]=c.split(":").map(Number);if(T<C||T===C&&x<N||o&&T===C&&x===N&&O<w)return-1}if(d){const[C,N,w]=d.split(":").map(Number);if(T>C||T===C&&x>N||o&&T===C&&x===N&&O>w)return 1}}return 0},y=E=>{var T,x,O;if((T=n.onBlur)==null||T.call(n,E),c!==void 0||d!==void 0){const C=E.currentTarget.value;if(C){const N=S(C);N===1?(E.currentTarget.value=d,(x=n.onChange)==null||x.call(n,E)):N===-1&&(E.currentTarget.value=c,(O=n.onChange)==null||O.call(n,E))}}};return l.jsx(as,{classNames:{...g,input:Tr(zfe.input,g==null?void 0:g.input)},styles:b,unstyled:a,ref:e,value:f,...m,step:o?1:60,onChange:p,onBlur:y,type:"time",__staticSelector:"TimeInput"})});qL.classes=as.classes;qL.displayName="@mantine/dates/TimeInput";var H9={day:"m_396ce5cb"};const Hfe={},Vfe=(t,{size:e})=>({day:{"--day-size":Ut(e,"day-size")}}),$L=Me((t,e)=>{const n=Te("Day",Hfe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,date:d,disabled:f,__staticSelector:p,weekend:m,outside:g,selected:b,renderDay:S,inRange:y,firstInRange:E,lastInRange:T,hidden:x,static:O,highlightToday:C,...N}=n,w=ot({name:p||"Day",classes:H9,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Vfe,rootSelector:"day"}),D=Ds();return l.jsx(bi,{...w("day",{style:x?{display:"none"}:void 0}),component:O?"div":"button",ref:e,disabled:f,"data-today":Ve(d).isSame(Pc("add",new Date,D.getTimezone()),"day")||void 0,"data-hidden":x||void 0,"data-highlight-today":C||void 0,"data-disabled":f||void 0,"data-weekend":!f&&!g&&m||void 0,"data-outside":!f&&g||void 0,"data-selected":!f&&b||void 0,"data-in-range":y&&!f||void 0,"data-first-in-range":E&&!f||void 0,"data-last-in-range":T&&!f||void 0,"data-static":O||void 0,unstyled:o,...N,children:(S==null?void 0:S(d))||Ve(d).date()})});$L.classes=H9;$L.displayName="@mantine/dates/Day";function Wfe({locale:t,format:e="dd",firstDayOfWeek:n=1}){const r=Ve().day(n),i=[];for(let a=0;a<7;a+=1)typeof e=="string"?i.push(Ve(r).add(a,"days").locale(t).format(e)):i.push(e(Ve(r).add(a,"days").toDate()));return i}var V9={weekday:"m_18a3eca"};const Qfe={},Kfe=(t,{size:e})=>({weekdaysRow:{"--wr-fz":Rr(e),"--wr-spacing":zl(e)}}),zL=Me((t,e)=>{const n=Te("WeekdaysRow",Qfe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,locale:d,firstDayOfWeek:f,weekdayFormat:p,cellComponent:m="th",__staticSelector:g,withWeekNumbers:b,...S}=n,y=ot({name:g||"WeekdaysRow",classes:V9,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Kfe,rootSelector:"weekdaysRow"}),E=Ds(),T=Wfe({locale:E.getLocale(d),format:p,firstDayOfWeek:E.getFirstDayOfWeek(f)}).map((x,O)=>l.jsx(m,{...y("weekday"),children:x},O));return l.jsxs(ve,{component:"tr",ref:e,...y("weekdaysRow"),...S,children:[b&&l.jsx(m,{...y("weekday"),children:"#"}),T]})});zL.classes=V9;zL.displayName="@mantine/dates/WeekdaysRow";function Xfe(t,e=1){let n=Ve(t);const r=e===0?6:e-1;for(;n.day()!==r;)n=n.add(1,"day");return n.toDate()}function Zfe(t,e=1){let n=Ve(t);for(;n.day()!==e;)n=n.subtract(1,"day");return n.toDate()}function Jfe({month:t,firstDayOfWeek:e=1,consistentWeeks:n}){const r=Ve(t).subtract(Ve(t).date()-1,"day"),i=Ve(r).startOf("day"),a=i.toDate(),s=i.add(+i.daysInMonth()-1,"day").toDate(),o=Xfe(s,e),c=Zfe(a,e),d=[];for(;c<=o;){const f=[];for(let p=0;p<7;p+=1)f.push(new Date(c)),c.setDate(c.getDate()+1);d.push(f)}if(n&&d.length<6){const f=d[d.length-1],p=f[f.length-1],m=new Date(p);for(m.setDate(m.getDate()+1);d.length<6;){const g=[];for(let b=0;b<7;b+=1)g.push(new Date(m)),m.setDate(m.getDate()+1);d.push(g)}}return d}function W9(t,e){return Ve(t).format("YYYY-MM")===Ve(e).format("YYYY-MM")}function Q9(t,e){return e instanceof Date?Ve(t).isAfter(Ve(e).subtract(1,"day"),"day"):!0}function K9(t,e){return e instanceof Date?Ve(t).isBefore(Ve(e).add(1,"day"),"day"):!0}function ehe(t,e,n,r,i,a,s){const o=t.flat().filter(f=>{var p;return K9(f,n)&&Q9(f,e)&&!(i!=null&&i(f))&&!((p=r==null?void 0:r(f))!=null&&p.disabled)&&(!a||W9(f,s))}),c=o.find(f=>{var p;return(p=r==null?void 0:r(f))==null?void 0:p.selected});if(c)return c;const d=o.find(f=>Ve().isSame(f,"date"));return d||o[0]}var dS={exports:{}},the=dS.exports,iU;function nhe(){return iU||(iU=1,function(t,e){(function(n,r){t.exports=r()})(the,function(){var n="day";return function(r,i,a){var s=function(d){return d.add(4-d.isoWeekday(),n)},o=i.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(d){if(!this.$utils().u(d))return this.add(7*(d-this.isoWeek()),n);var f,p,m,g,b=s(this),S=(f=this.isoWeekYear(),p=this.$u,m=(p?a.utc:a)().year(f).startOf("year"),g=4-m.isoWeekday(),m.isoWeekday()>4&&(g+=7),m.add(g,n));return b.diff(S,"week")+1},o.isoWeekday=function(d){return this.$utils().u(d)?this.day()||7:this.day(this.day()%7?d:d-7)};var c=o.startOf;o.startOf=function(d,f){var p=this.$utils(),m=!!p.u(f)||f;return p.p(d)==="isoweek"?m?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(d,f)}}})}(dS)),dS.exports}var rhe=nhe();const ihe=sl(rhe);Ve.extend(ihe);function ahe(t){const e=t.find(n=>Ve(n).day()===1);return Ve(e).isoWeek()}var X9={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const she={withCellSpacing:!0},ohe=(t,{size:e})=>({weekNumber:{"--wn-fz":Rr(e),"--wn-size":Ut(e,"wn-size")}}),Hy=Me((t,e)=>{const n=Te("Month",she,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,__staticSelector:d,locale:f,firstDayOfWeek:p,weekdayFormat:m,month:g,weekendDays:b,getDayProps:S,excludeDate:y,minDate:E,maxDate:T,renderDay:x,hideOutsideDates:O,hideWeekdays:C,getDayAriaLabel:N,static:w,__getDayRef:D,__onDayKeyDown:L,__onDayClick:U,__onDayMouseEnter:M,__preventFocus:B,__stopPropagation:Y,withCellSpacing:H,size:F,highlightToday:k,withWeekNumbers:P,...z}=n,V=ot({name:d||"Month",classes:X9,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:ohe,rootSelector:"month"}),G=Ds(),Q=Jfe({month:g,firstDayOfWeek:G.getFirstDayOfWeek(p),consistentWeeks:G.consistentWeeks}),Z=ehe(Q,E,T,S,y,O,g),{resolvedClassNames:X,resolvedStyles:ue}=oo({classNames:r,styles:s,props:n}),fe=Q.map((be,ye)=>{const Ne=be.map((ke,Oe)=>{const oe=!W9(ke,g),Se=(N==null?void 0:N(ke))||Ve(ke).locale(f||G.locale).format("D MMMM YYYY"),le=S==null?void 0:S(ke),Ge=Ve(ke).isSame(Z,"date");return l.jsx("td",{...V("monthCell"),"data-with-spacing":H||void 0,children:l.jsx($L,{__staticSelector:d||"Month",classNames:X,styles:ue,unstyled:o,"data-mantine-stop-propagation":Y||void 0,highlightToday:k,renderDay:x,date:ke,size:F,weekend:G.getWeekendDays(b).includes(ke.getDay()),outside:oe,hidden:O?oe:!1,"aria-label":Se,static:w,disabled:(y==null?void 0:y(ke))||!K9(ke,T)||!Q9(ke,E),ref:lt=>D==null?void 0:D(ye,Oe,lt),...le,onKeyDown:lt=>{var xt;(xt=le==null?void 0:le.onKeyDown)==null||xt.call(le,lt),L==null||L(lt,{rowIndex:ye,cellIndex:Oe,date:ke})},onMouseEnter:lt=>{var xt;(xt=le==null?void 0:le.onMouseEnter)==null||xt.call(le,lt),M==null||M(lt,ke)},onClick:lt=>{var xt;(xt=le==null?void 0:le.onClick)==null||xt.call(le,lt),U==null||U(lt,ke)},onMouseDown:lt=>{var xt;(xt=le==null?void 0:le.onMouseDown)==null||xt.call(le,lt),B&&lt.preventDefault()},tabIndex:B||!Ge?-1:0})},ke.toString())});return l.jsxs("tr",{...V("monthRow"),children:[P&&l.jsx("td",{...V("weekNumber"),children:ahe(be)}),Ne]},ye)});return l.jsxs(ve,{component:"table",...V("month"),size:F,ref:e,...z,children:[!C&&l.jsx("thead",{...V("monthThead"),children:l.jsx(zL,{__staticSelector:d||"Month",locale:f,firstDayOfWeek:p,weekdayFormat:m,size:F,classNames:X,styles:ue,unstyled:o,withWeekNumbers:P})}),l.jsx("tbody",{...V("monthTbody"),children:fe})]})});Hy.classes=X9;Hy.displayName="@mantine/dates/Month";var Z9={pickerControl:"m_dc6a3c71"};const lhe={},che=(t,{size:e})=>({pickerControl:{"--dpc-fz":Rr(e),"--dpc-size":Ut(e,"dpc-size")}}),Vy=Me((t,e)=>{const n=Te("PickerControl",lhe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,firstInRange:d,lastInRange:f,inRange:p,__staticSelector:m,selected:g,disabled:b,...S}=n,y=ot({name:m||"PickerControl",classes:Z9,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:che,rootSelector:"pickerControl"});return l.jsx(bi,{...y("pickerControl"),ref:e,unstyled:o,"data-picker-control":!0,"data-selected":g&&!b||void 0,"data-disabled":b||void 0,"data-in-range":p&&!b&&!g||void 0,"data-first-in-range":d&&!b||void 0,"data-last-in-range":f&&!b||void 0,disabled:b,...S})});Vy.classes=Z9;Vy.displayName="@mantine/dates/PickerControl";function J9(t,e,n){return!e&&!n?!1:!!(e&&Ve(t).isBefore(e,"year")||n&&Ve(t).isAfter(n,"year"))}function uhe(t,e,n,r){const i=t.flat().filter(o=>{var c;return!J9(o,e,n)&&!((c=r==null?void 0:r(o))!=null&&c.disabled)}),a=i.find(o=>{var c;return(c=r==null?void 0:r(o))==null?void 0:c.selected});if(a)return a;const s=i.find(o=>Ve().isSame(o,"year"));return s||i[0]}function eV(t){const e=t.getFullYear(),n=e-e%10;let r=0;const i=[[],[],[],[]];for(let a=0;a<4;a+=1){const s=a===3?1:3;for(let o=0;o<s;o+=1)i[a].push(new Date(n+r,0)),r+=1}return i}var tV={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const dhe={yearsListFormat:"YYYY",withCellSpacing:!0},Wy=Me((t,e)=>{const n=Te("YearsList",dhe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,decade:d,yearsListFormat:f,locale:p,minDate:m,maxDate:g,getYearControlProps:b,__staticSelector:S,__getControlRef:y,__onControlKeyDown:E,__onControlClick:T,__onControlMouseEnter:x,__preventFocus:O,__stopPropagation:C,withCellSpacing:N,size:w,...D}=n,L=ot({name:S||"YearsList",classes:tV,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,rootSelector:"yearsList"}),U=Ds(),M=eV(d),B=uhe(M,m,g,b),Y=M.map((H,F)=>{const k=H.map((P,z)=>{const V=b==null?void 0:b(P),G=Ve(P).isSame(B,"year");return l.jsx("td",{...L("yearsListCell"),"data-with-spacing":N||void 0,children:l.jsx(Vy,{...L("yearsListControl"),size:w,unstyled:o,"data-mantine-stop-propagation":C||void 0,disabled:J9(P,m,g),ref:Q=>y==null?void 0:y(F,z,Q),...V,onKeyDown:Q=>{var Z;(Z=V==null?void 0:V.onKeyDown)==null||Z.call(V,Q),E==null||E(Q,{rowIndex:F,cellIndex:z,date:P})},onClick:Q=>{var Z;(Z=V==null?void 0:V.onClick)==null||Z.call(V,Q),T==null||T(Q,P)},onMouseEnter:Q=>{var Z;(Z=V==null?void 0:V.onMouseEnter)==null||Z.call(V,Q),x==null||x(Q,P)},onMouseDown:Q=>{var Z;(Z=V==null?void 0:V.onMouseDown)==null||Z.call(V,Q),O&&Q.preventDefault()},tabIndex:O||!G?-1:0,children:Ve(P).locale(U.getLocale(p)).format(f)})},z)});return l.jsx("tr",{...L("yearsListRow"),children:k},F)});return l.jsx(ve,{component:"table",ref:e,size:w,...L("yearsList"),...D,children:l.jsx("tbody",{children:Y})})});Wy.classes=tV;Wy.displayName="@mantine/dates/YearsList";function nV(t,e,n){return!e&&!n?!1:!!(e&&Ve(t).isBefore(e,"month")||n&&Ve(t).isAfter(n,"month"))}function fhe(t,e,n,r){const i=t.flat().filter(o=>{var c;return!nV(o,e,n)&&!((c=r==null?void 0:r(o))!=null&&c.disabled)}),a=i.find(o=>{var c;return(c=r==null?void 0:r(o))==null?void 0:c.selected});if(a)return a;const s=i.find(o=>Ve().isSame(o,"month"));return s||i[0]}function hhe(t){const e=Ve(t).startOf("year").toDate(),n=[[],[],[],[]];let r=0;for(let i=0;i<4;i+=1)for(let a=0;a<3;a+=1)n[i].push(Ve(e).add(r,"months").toDate()),r+=1;return n}var rV={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const phe={monthsListFormat:"MMM",withCellSpacing:!0},Qy=Me((t,e)=>{const n=Te("MonthsList",phe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,__staticSelector:d,year:f,monthsListFormat:p,locale:m,minDate:g,maxDate:b,getMonthControlProps:S,__getControlRef:y,__onControlKeyDown:E,__onControlClick:T,__onControlMouseEnter:x,__preventFocus:O,__stopPropagation:C,withCellSpacing:N,size:w,...D}=n,L=ot({name:d||"MonthsList",classes:rV,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,rootSelector:"monthsList"}),U=Ds(),M=hhe(f),B=fhe(M,g,b,S),Y=M.map((H,F)=>{const k=H.map((P,z)=>{const V=S==null?void 0:S(P),G=Ve(P).isSame(B,"month");return l.jsx("td",{...L("monthsListCell"),"data-with-spacing":N||void 0,children:l.jsx(Vy,{...L("monthsListControl"),size:w,unstyled:o,__staticSelector:d||"MonthsList","data-mantine-stop-propagation":C||void 0,disabled:nV(P,g,b),ref:Q=>y==null?void 0:y(F,z,Q),...V,onKeyDown:Q=>{var Z;(Z=V==null?void 0:V.onKeyDown)==null||Z.call(V,Q),E==null||E(Q,{rowIndex:F,cellIndex:z,date:P})},onClick:Q=>{var Z;(Z=V==null?void 0:V.onClick)==null||Z.call(V,Q),T==null||T(Q,P)},onMouseEnter:Q=>{var Z;(Z=V==null?void 0:V.onMouseEnter)==null||Z.call(V,Q),x==null||x(Q,P)},onMouseDown:Q=>{var Z;(Z=V==null?void 0:V.onMouseDown)==null||Z.call(V,Q),O&&Q.preventDefault()},tabIndex:O||!G?-1:0,children:Ve(P).locale(U.getLocale(m)).format(p)})},z)});return l.jsx("tr",{...L("monthsListRow"),children:k},F)});return l.jsx(ve,{component:"table",ref:e,size:w,...L("monthsList"),...D,children:l.jsx("tbody",{children:Y})})});Qy.classes=rV;Qy.displayName="@mantine/dates/MonthsList";var iV={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const mhe={nextDisabled:!1,previousDisabled:!1,hasNextLevel:!0,withNext:!0,withPrevious:!0},ghe=(t,{size:e})=>({calendarHeader:{"--dch-control-size":Ut(e,"dch-control-size"),"--dch-fz":Rr(e)}}),Od=Me((t,e)=>{const n=Te("CalendarHeader",mhe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,nextIcon:d,previousIcon:f,nextLabel:p,previousLabel:m,onNext:g,onPrevious:b,onLevelClick:S,label:y,nextDisabled:E,previousDisabled:T,hasNextLevel:x,levelControlAriaLabel:O,withNext:C,withPrevious:N,__staticSelector:w,__preventFocus:D,__stopPropagation:L,...U}=n,M=ot({name:w||"CalendarHeader",classes:iV,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:ghe,rootSelector:"calendarHeader"}),B=D?Y=>Y.preventDefault():void 0;return l.jsxs(ve,{...M("calendarHeader"),ref:e,...U,children:[N&&l.jsx(bi,{...M("calendarHeaderControl"),"data-direction":"previous","aria-label":m,onClick:b,unstyled:o,onMouseDown:B,disabled:T,"data-disabled":T||void 0,tabIndex:D||T?-1:0,"data-mantine-stop-propagation":L||void 0,children:f||l.jsx(R_,{...M("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})}),l.jsx(bi,{component:x?"button":"div",...M("calendarHeaderLevel"),onClick:x?S:void 0,unstyled:o,onMouseDown:x?B:void 0,disabled:!x,"data-static":!x||void 0,"aria-label":O,tabIndex:D||!x?-1:0,"data-mantine-stop-propagation":L||void 0,children:y}),C&&l.jsx(bi,{...M("calendarHeaderControl"),"data-direction":"next","aria-label":p,onClick:g,unstyled:o,onMouseDown:B,disabled:E,"data-disabled":E||void 0,tabIndex:D||E?-1:0,"data-mantine-stop-propagation":L||void 0,children:d||l.jsx(R_,{...M("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})})]})});Od.classes=iV;Od.displayName="@mantine/dates/CalendarHeader";function _he(t){const e=eV(t);return[e[0][0],e[3][0]]}const bhe={decadeLabelFormat:"YYYY"},Ky=Me((t,e)=>{const n=Te("DecadeLevel",bhe,t),{decade:r,locale:i,minDate:a,maxDate:s,yearsListFormat:o,getYearControlProps:c,__getControlRef:d,__onControlKeyDown:f,__onControlClick:p,__onControlMouseEnter:m,withCellSpacing:g,__preventFocus:b,nextIcon:S,previousIcon:y,nextLabel:E,previousLabel:T,onNext:x,onPrevious:O,nextDisabled:C,previousDisabled:N,levelControlAriaLabel:w,withNext:D,withPrevious:L,decadeLabelFormat:U,classNames:M,styles:B,unstyled:Y,__staticSelector:H,__stopPropagation:F,size:k,...P}=n,z=Ds(),[V,G]=_he(r),Q={__staticSelector:H||"DecadeLevel",classNames:M,styles:B,unstyled:Y,size:k},Z=typeof C=="boolean"?C:s?!Ve(G).endOf("year").isBefore(s):!1,X=typeof N=="boolean"?N:a?!Ve(V).startOf("year").isAfter(a):!1,ue=(fe,be)=>Ve(fe).locale(i||z.locale).format(be);return l.jsxs(ve,{"data-decade-level":!0,size:k,ref:e,...P,children:[l.jsx(Od,{label:typeof U=="function"?U(V,G):`${ue(V,U)} – ${ue(G,U)}`,__preventFocus:b,__stopPropagation:F,nextIcon:S,previousIcon:y,nextLabel:E,previousLabel:T,onNext:x,onPrevious:O,nextDisabled:Z,previousDisabled:X,hasNextLevel:!1,levelControlAriaLabel:w,withNext:D,withPrevious:L,...Q}),l.jsx(Wy,{decade:r,locale:i,minDate:a,maxDate:s,yearsListFormat:o,getYearControlProps:c,__getControlRef:d,__onControlKeyDown:f,__onControlClick:p,__onControlMouseEnter:m,__preventFocus:b,__stopPropagation:F,withCellSpacing:g,...Q})]})});Ky.classes={...Wy.classes,...Od.classes};Ky.displayName="@mantine/dates/DecadeLevel";const vhe={yearLabelFormat:"YYYY"},Xy=Me((t,e)=>{const n=Te("YearLevel",vhe,t),{year:r,locale:i,minDate:a,maxDate:s,monthsListFormat:o,getMonthControlProps:c,__getControlRef:d,__onControlKeyDown:f,__onControlClick:p,__onControlMouseEnter:m,withCellSpacing:g,__preventFocus:b,nextIcon:S,previousIcon:y,nextLabel:E,previousLabel:T,onNext:x,onPrevious:O,onLevelClick:C,nextDisabled:N,previousDisabled:w,hasNextLevel:D,levelControlAriaLabel:L,withNext:U,withPrevious:M,yearLabelFormat:B,__staticSelector:Y,__stopPropagation:H,size:F,classNames:k,styles:P,unstyled:z,...V}=n,G=Ds(),Q={__staticSelector:Y||"YearLevel",classNames:k,styles:P,unstyled:z,size:F},Z=typeof N=="boolean"?N:s?!Ve(r).endOf("year").isBefore(s):!1,X=typeof w=="boolean"?w:a?!Ve(r).startOf("year").isAfter(a):!1;return l.jsxs(ve,{"data-year-level":!0,size:F,ref:e,...V,children:[l.jsx(Od,{label:typeof B=="function"?B(r):Ve(r).locale(i||G.locale).format(B),__preventFocus:b,__stopPropagation:H,nextIcon:S,previousIcon:y,nextLabel:E,previousLabel:T,onNext:x,onPrevious:O,onLevelClick:C,nextDisabled:Z,previousDisabled:X,hasNextLevel:D,levelControlAriaLabel:L,withNext:U,withPrevious:M,...Q}),l.jsx(Qy,{year:r,locale:i,minDate:a,maxDate:s,monthsListFormat:o,getMonthControlProps:c,__getControlRef:d,__onControlKeyDown:f,__onControlClick:p,__onControlMouseEnter:m,__preventFocus:b,__stopPropagation:H,withCellSpacing:g,...Q})]})});Xy.classes={...Od.classes,...Qy.classes};Xy.displayName="@mantine/dates/YearLevel";const She={monthLabelFormat:"MMMM YYYY"},Zy=Me((t,e)=>{const n=Te("MonthLevel",She,t),{month:r,locale:i,firstDayOfWeek:a,weekdayFormat:s,weekendDays:o,getDayProps:c,excludeDate:d,minDate:f,maxDate:p,renderDay:m,hideOutsideDates:g,hideWeekdays:b,getDayAriaLabel:S,__getDayRef:y,__onDayKeyDown:E,__onDayClick:T,__onDayMouseEnter:x,withCellSpacing:O,highlightToday:C,withWeekNumbers:N,__preventFocus:w,__stopPropagation:D,nextIcon:L,previousIcon:U,nextLabel:M,previousLabel:B,onNext:Y,onPrevious:H,onLevelClick:F,nextDisabled:k,previousDisabled:P,hasNextLevel:z,levelControlAriaLabel:V,withNext:G,withPrevious:Q,monthLabelFormat:Z,classNames:X,styles:ue,unstyled:fe,__staticSelector:be,size:ye,static:Ne,...ke}=n,Oe=Ds(),oe={__staticSelector:be||"MonthLevel",classNames:X,styles:ue,unstyled:fe,size:ye},Se=typeof k=="boolean"?k:p?!Ve(r).endOf("month").isBefore(p):!1,le=typeof P=="boolean"?P:f?!Ve(r).startOf("month").isAfter(f):!1;return l.jsxs(ve,{"data-month-level":!0,size:ye,ref:e,...ke,children:[l.jsx(Od,{label:typeof Z=="function"?Z(r):Ve(r).locale(i||Oe.locale).format(Z),__preventFocus:w,__stopPropagation:D,nextIcon:L,previousIcon:U,nextLabel:M,previousLabel:B,onNext:Y,onPrevious:H,onLevelClick:F,nextDisabled:Se,previousDisabled:le,hasNextLevel:z,levelControlAriaLabel:V,withNext:G,withPrevious:Q,...oe}),l.jsx(Hy,{month:r,locale:i,firstDayOfWeek:a,weekdayFormat:s,weekendDays:o,getDayProps:c,excludeDate:d,minDate:f,maxDate:p,renderDay:m,hideOutsideDates:g,hideWeekdays:b,getDayAriaLabel:S,__getDayRef:y,__onDayKeyDown:E,__onDayClick:T,__onDayMouseEnter:x,__preventFocus:w,__stopPropagation:D,static:Ne,withCellSpacing:O,highlightToday:C,withWeekNumbers:N,...oe})]})});Zy.classes={...Hy.classes,...Od.classes};Zy.displayName="@mantine/dates/MonthLevel";var aV={levelsGroup:"m_30b26e33"};const Ehe={},Rd=Me((t,e)=>{const n=Te("LevelsGroup",Ehe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,__staticSelector:d,...f}=n,p=ot({name:d||"LevelsGroup",classes:aV,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,rootSelector:"levelsGroup"});return l.jsx(ve,{ref:e,...p("levelsGroup"),...f})});Rd.classes=aV;Rd.displayName="@mantine/dates/LevelsGroup";const yhe={numberOfColumns:1},Jy=Me((t,e)=>{const n=Te("DecadeLevelGroup",yhe,t),{decade:r,locale:i,minDate:a,maxDate:s,yearsListFormat:o,getYearControlProps:c,__onControlClick:d,__onControlMouseEnter:f,withCellSpacing:p,__preventFocus:m,nextIcon:g,previousIcon:b,nextLabel:S,previousLabel:y,onNext:E,onPrevious:T,nextDisabled:x,previousDisabled:O,classNames:C,styles:N,unstyled:w,__staticSelector:D,__stopPropagation:L,numberOfColumns:U,levelControlAriaLabel:M,decadeLabelFormat:B,size:Y,vars:H,...F}=n,k=I.useRef([]),P=Array(U).fill(0).map((z,V)=>{const G=Ve(r).add(V*10,"years").toDate();return l.jsx(Ky,{size:Y,yearsListFormat:o,decade:G,withNext:V===U-1,withPrevious:V===0,decadeLabelFormat:B,__onControlClick:d,__onControlMouseEnter:f,__onControlKeyDown:(Q,Z)=>jL({levelIndex:V,rowIndex:Z.rowIndex,cellIndex:Z.cellIndex,event:Q,controlsRef:k}),__getControlRef:(Q,Z,X)=>{Array.isArray(k.current[V])||(k.current[V]=[]),Array.isArray(k.current[V][Q])||(k.current[V][Q]=[]),k.current[V][Q][Z]=X},levelControlAriaLabel:typeof M=="function"?M(G):M,locale:i,minDate:a,maxDate:s,__preventFocus:m,__stopPropagation:L,nextIcon:g,previousIcon:b,nextLabel:S,previousLabel:y,onNext:E,onPrevious:T,nextDisabled:x,previousDisabled:O,getYearControlProps:c,__staticSelector:D||"DecadeLevelGroup",classNames:C,styles:N,unstyled:w,withCellSpacing:p},V)});return l.jsx(Rd,{classNames:C,styles:N,__staticSelector:D||"DecadeLevelGroup",ref:e,size:Y,unstyled:w,...F,children:P})});Jy.classes={...Rd.classes,...Ky.classes};Jy.displayName="@mantine/dates/DecadeLevelGroup";const The={numberOfColumns:1},eT=Me((t,e)=>{const n=Te("YearLevelGroup",The,t),{year:r,locale:i,minDate:a,maxDate:s,monthsListFormat:o,getMonthControlProps:c,__onControlClick:d,__onControlMouseEnter:f,withCellSpacing:p,__preventFocus:m,nextIcon:g,previousIcon:b,nextLabel:S,previousLabel:y,onNext:E,onPrevious:T,onLevelClick:x,nextDisabled:O,previousDisabled:C,hasNextLevel:N,classNames:w,styles:D,unstyled:L,__staticSelector:U,__stopPropagation:M,numberOfColumns:B,levelControlAriaLabel:Y,yearLabelFormat:H,size:F,vars:k,...P}=n,z=I.useRef([]),V=Array(B).fill(0).map((G,Q)=>{const Z=Ve(r).add(Q,"years").toDate();return l.jsx(Xy,{size:F,monthsListFormat:o,year:Z,withNext:Q===B-1,withPrevious:Q===0,yearLabelFormat:H,__stopPropagation:M,__onControlClick:d,__onControlMouseEnter:f,__onControlKeyDown:(X,ue)=>jL({levelIndex:Q,rowIndex:ue.rowIndex,cellIndex:ue.cellIndex,event:X,controlsRef:z}),__getControlRef:(X,ue,fe)=>{Array.isArray(z.current[Q])||(z.current[Q]=[]),Array.isArray(z.current[Q][X])||(z.current[Q][X]=[]),z.current[Q][X][ue]=fe},levelControlAriaLabel:typeof Y=="function"?Y(Z):Y,locale:i,minDate:a,maxDate:s,__preventFocus:m,nextIcon:g,previousIcon:b,nextLabel:S,previousLabel:y,onNext:E,onPrevious:T,onLevelClick:x,nextDisabled:O,previousDisabled:C,hasNextLevel:N,getMonthControlProps:c,classNames:w,styles:D,unstyled:L,__staticSelector:U||"YearLevelGroup",withCellSpacing:p},Q)});return l.jsx(Rd,{classNames:w,styles:D,__staticSelector:U||"YearLevelGroup",ref:e,size:F,unstyled:L,...P,children:V})});eT.classes={...Xy.classes,...Rd.classes};eT.displayName="@mantine/dates/YearLevelGroup";const xhe={numberOfColumns:1},tT=Me((t,e)=>{const n=Te("MonthLevelGroup",xhe,t),{month:r,locale:i,firstDayOfWeek:a,weekdayFormat:s,weekendDays:o,getDayProps:c,excludeDate:d,minDate:f,maxDate:p,renderDay:m,hideOutsideDates:g,hideWeekdays:b,getDayAriaLabel:S,__onDayClick:y,__onDayMouseEnter:E,withCellSpacing:T,highlightToday:x,withWeekNumbers:O,__preventFocus:C,nextIcon:N,previousIcon:w,nextLabel:D,previousLabel:L,onNext:U,onPrevious:M,onLevelClick:B,nextDisabled:Y,previousDisabled:H,hasNextLevel:F,classNames:k,styles:P,unstyled:z,numberOfColumns:V,levelControlAriaLabel:G,monthLabelFormat:Q,__staticSelector:Z,__stopPropagation:X,size:ue,static:fe,vars:be,...ye}=n,Ne=I.useRef([]),ke=Array(V).fill(0).map((Oe,oe)=>{const Se=Ve(r).add(oe,"months").toDate();return l.jsx(Zy,{month:Se,withNext:oe===V-1,withPrevious:oe===0,monthLabelFormat:Q,__stopPropagation:X,__onDayClick:y,__onDayMouseEnter:E,__onDayKeyDown:(le,Ge)=>jL({levelIndex:oe,rowIndex:Ge.rowIndex,cellIndex:Ge.cellIndex,event:le,controlsRef:Ne}),__getDayRef:(le,Ge,lt)=>{Array.isArray(Ne.current[oe])||(Ne.current[oe]=[]),Array.isArray(Ne.current[oe][le])||(Ne.current[oe][le]=[]),Ne.current[oe][le][Ge]=lt},levelControlAriaLabel:typeof G=="function"?G(Se):G,locale:i,firstDayOfWeek:a,weekdayFormat:s,weekendDays:o,getDayProps:c,excludeDate:d,minDate:f,maxDate:p,renderDay:m,hideOutsideDates:g,hideWeekdays:b,getDayAriaLabel:S,__preventFocus:C,nextIcon:N,previousIcon:w,nextLabel:D,previousLabel:L,onNext:U,onPrevious:M,onLevelClick:B,nextDisabled:Y,previousDisabled:H,hasNextLevel:F,classNames:k,styles:P,unstyled:z,__staticSelector:Z||"MonthLevelGroup",size:ue,static:fe,withCellSpacing:T,highlightToday:x,withWeekNumbers:O},oe)});return l.jsx(Rd,{classNames:k,styles:P,__staticSelector:Z||"MonthLevelGroup",ref:e,size:ue,...ye,children:ke})});tT.classes={...Rd.classes,...Zy.classes};tT.displayName="@mantine/dates/MonthLevelGroup";var sV={input:"m_6fa5e2aa"};const Che={},nT=Me((t,e)=>{const{inputProps:n,wrapperProps:r,placeholder:i,classNames:a,styles:s,unstyled:o,popoverProps:c,modalProps:d,dropdownType:f,children:p,formattedValue:m,dropdownHandlers:g,dropdownOpened:b,onClick:S,clearable:y,onClear:E,clearButtonProps:T,rightSection:x,shouldClear:O,readOnly:C,disabled:N,value:w,name:D,form:L,type:U,...M}=SY("PickerInputBase",Che,t),B=l.jsx(Sr.ClearButton,{onClick:E,unstyled:o,...T}),Y=()=>{U==="range"&&Array.isArray(w)&&w[0]&&!w[1]&&E(),g.close()};return l.jsxs(l.Fragment,{children:[f==="modal"&&!C&&l.jsx(fo,{opened:b,onClose:Y,withCloseButton:!1,size:"auto","data-dates-modal":!0,unstyled:o,...d,children:p}),l.jsx(Sr.Wrapper,{...r,children:l.jsxs(ai,{position:"bottom-start",opened:b,trapFocus:!0,returnFocus:!1,unstyled:o,...c,disabled:(c==null?void 0:c.disabled)||f==="modal"||C,onChange:H=>{var F;H||((F=c==null?void 0:c.onClose)==null||F.call(c),Y())},children:[l.jsx(ai.Target,{children:l.jsx(Sr,{"data-dates-input":!0,"data-read-only":C||void 0,disabled:N,component:"button",type:"button",multiline:!0,onClick:H=>{S==null||S(H),g.toggle()},__clearSection:B,__clearable:y&&O&&!C&&!N,rightSection:x,...n,ref:e,classNames:{...a,input:Tr(sV.input,a==null?void 0:a.input)},...M,children:m||l.jsx(Sr.Placeholder,{error:n.error,unstyled:o,className:a==null?void 0:a.placeholder,style:s==null?void 0:s.placeholder,children:i})})}),l.jsx(ai.Dropdown,{"data-dates-dropdown":!0,children:p})]})}),l.jsx(Y9,{value:w,name:D,form:L,type:U})]})});nT.classes=sV;nT.displayName="@mantine/dates/PickerInputBase";const aU=t=>t==="range"?[null,null]:t==="multiple"?[]:null;function YL({type:t,value:e,defaultValue:n,onChange:r,applyTimezone:i=!0}){const a=I.useRef(t),s=Ds(),[o,c,d]=na({value:Pc("add",e,s.getTimezone(),!i),defaultValue:Pc("add",n,s.getTimezone(),!i),finalValue:aU(t),onChange:p=>{r==null||r(Pc("remove",p,s.getTimezone(),!i))}});let f=o;return a.current!==t&&(a.current=t,e===void 0&&(f=n!==void 0?n:aU(t),c(f))),[f,c,d]}function fO(t,e){return t?t==="month"?0:t==="year"?1:2:e||0}function Ohe(t){return t===0?"month":t===1?"year":"decade"}function kg(t,e,n){return Ohe(Qg(fO(t,0),fO(e,0),fO(n,2)))}const Rhe={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0},rT=Me((t,e)=>{const n=Te("Calendar",Rhe,t),{vars:r,maxLevel:i,minLevel:a,defaultLevel:s,level:o,onLevelChange:c,date:d,defaultDate:f,onDateChange:p,numberOfColumns:m,columnsToScroll:g,ariaLabels:b,nextLabel:S,previousLabel:y,onYearSelect:E,onMonthSelect:T,onYearMouseEnter:x,onMonthMouseEnter:O,__updateDateOnYearSelect:C,__updateDateOnMonthSelect:N,firstDayOfWeek:w,weekdayFormat:D,weekendDays:L,getDayProps:U,excludeDate:M,renderDay:B,hideOutsideDates:Y,hideWeekdays:H,getDayAriaLabel:F,monthLabelFormat:k,nextIcon:P,previousIcon:z,__onDayClick:V,__onDayMouseEnter:G,withCellSpacing:Q,highlightToday:Z,withWeekNumbers:X,monthsListFormat:ue,getMonthControlProps:fe,yearLabelFormat:be,yearsListFormat:ye,getYearControlProps:Ne,decadeLabelFormat:ke,classNames:Oe,styles:oe,unstyled:Se,minDate:le,maxDate:Ge,locale:lt,__staticSelector:xt,size:Ae,__preventFocus:Be,__stopPropagation:Xe,onNextDecade:je,onPreviousDecade:Ze,onNextYear:Et,onPreviousYear:vt,onNextMonth:xe,onPreviousMonth:Re,static:et,__timezoneApplied:yt,...Mt}=n,{resolvedClassNames:kt,resolvedStyles:Zt}=oo({classNames:Oe,styles:oe,props:n}),[zt,Fn]=na({value:o?kg(o,a,i):void 0,defaultValue:s?kg(s,a,i):void 0,finalValue:kg(void 0,a,i),onChange:c}),[Hn,Lt]=YL({type:"default",value:d,defaultValue:f,onChange:p,applyTimezone:!yt}),Jt={__staticSelector:xt||"Calendar",styles:Zt,classNames:kt,unstyled:Se,size:Ae},si=Ds(),Nr=g||m||1,$t=new Date,Fr=le&&le>$t?le:$t,Vn=Hn||Pc("add",Fr,si.getTimezone()),xr=()=>{const ct=Ve(Vn).add(Nr,"month").toDate();xe==null||xe(ct),Lt(ct)},ya=()=>{const ct=Ve(Vn).subtract(Nr,"month").toDate();Re==null||Re(ct),Lt(ct)},Ga=()=>{const ct=Ve(Vn).add(Nr,"year").toDate();Et==null||Et(ct),Lt(ct)},ne=()=>{const ct=Ve(Vn).subtract(Nr,"year").toDate();vt==null||vt(ct),Lt(ct)},we=()=>{const ct=Ve(Vn).add(10*Nr,"year").toDate();je==null||je(ct),Lt(ct)},Ke=()=>{const ct=Ve(Vn).subtract(10*Nr,"year").toDate();Ze==null||Ze(ct),Lt(ct)};return l.jsxs(ve,{ref:e,size:Ae,"data-calendar":!0,...Mt,children:[zt==="month"&&l.jsx(tT,{month:Vn,minDate:le,maxDate:Ge,firstDayOfWeek:w,weekdayFormat:D,weekendDays:L,getDayProps:U,excludeDate:M,renderDay:B,hideOutsideDates:Y,hideWeekdays:H,getDayAriaLabel:F,onNext:xr,onPrevious:ya,hasNextLevel:i!=="month",onLevelClick:()=>Fn("year"),numberOfColumns:m,locale:lt,levelControlAriaLabel:b==null?void 0:b.monthLevelControl,nextLabel:(b==null?void 0:b.nextMonth)??S,nextIcon:P,previousLabel:(b==null?void 0:b.previousMonth)??y,previousIcon:z,monthLabelFormat:k,__onDayClick:V,__onDayMouseEnter:G,__preventFocus:Be,__stopPropagation:Xe,static:et,withCellSpacing:Q,highlightToday:Z,withWeekNumbers:X,...Jt}),zt==="year"&&l.jsx(eT,{year:Vn,numberOfColumns:m,minDate:le,maxDate:Ge,monthsListFormat:ue,getMonthControlProps:fe,locale:lt,onNext:Ga,onPrevious:ne,hasNextLevel:i!=="month"&&i!=="year",onLevelClick:()=>Fn("decade"),levelControlAriaLabel:b==null?void 0:b.yearLevelControl,nextLabel:(b==null?void 0:b.nextYear)??S,nextIcon:P,previousLabel:(b==null?void 0:b.previousYear)??y,previousIcon:z,yearLabelFormat:be,__onControlMouseEnter:O,__onControlClick:(ct,gn)=>{N&&Lt(gn),Fn(kg("month",a,i)),T==null||T(gn)},__preventFocus:Be,__stopPropagation:Xe,withCellSpacing:Q,...Jt}),zt==="decade"&&l.jsx(Jy,{decade:Vn,minDate:le,maxDate:Ge,yearsListFormat:ye,getYearControlProps:Ne,locale:lt,onNext:we,onPrevious:Ke,numberOfColumns:m,nextLabel:(b==null?void 0:b.nextDecade)??S,nextIcon:P,previousLabel:(b==null?void 0:b.previousDecade)??y,previousIcon:z,decadeLabelFormat:ke,__onControlMouseEnter:x,__onControlClick:(ct,gn)=>{C&&Lt(gn),Fn(kg("year",a,i)),E==null||E(gn)},__preventFocus:Be,__stopPropagation:Xe,withCellSpacing:Q,...Jt})]})});rT.classes={...Jy.classes,...eT.classes,...tT.classes};rT.displayName="@mantine/dates/Calendar";function Nhe(t){const{maxLevel:e,minLevel:n,defaultLevel:r,level:i,onLevelChange:a,nextIcon:s,previousIcon:o,date:c,defaultDate:d,onDateChange:f,numberOfColumns:p,columnsToScroll:m,ariaLabels:g,nextLabel:b,previousLabel:S,onYearSelect:y,onMonthSelect:E,onYearMouseEnter:T,onMonthMouseEnter:x,onNextMonth:O,onPreviousMonth:C,onNextYear:N,onPreviousYear:w,onNextDecade:D,onPreviousDecade:L,withCellSpacing:U,highlightToday:M,__updateDateOnYearSelect:B,__updateDateOnMonthSelect:Y,withWeekNumbers:H,firstDayOfWeek:F,weekdayFormat:k,weekendDays:P,getDayProps:z,excludeDate:V,renderDay:G,hideOutsideDates:Q,hideWeekdays:Z,getDayAriaLabel:X,monthLabelFormat:ue,monthsListFormat:fe,getMonthControlProps:be,yearLabelFormat:ye,yearsListFormat:Ne,getYearControlProps:ke,decadeLabelFormat:Oe,allowSingleDateInRange:oe,allowDeselect:Se,minDate:le,maxDate:Ge,locale:lt,...xt}=t;return{calendarProps:{maxLevel:e,minLevel:n,defaultLevel:r,level:i,onLevelChange:a,nextIcon:s,previousIcon:o,date:c,defaultDate:d,onDateChange:f,numberOfColumns:p,columnsToScroll:m,ariaLabels:g,nextLabel:b,previousLabel:S,onYearSelect:y,onMonthSelect:E,onYearMouseEnter:T,onMonthMouseEnter:x,onNextMonth:O,onPreviousMonth:C,onNextYear:N,onPreviousYear:w,onNextDecade:D,onPreviousDecade:L,withCellSpacing:U,highlightToday:M,__updateDateOnYearSelect:B,__updateDateOnMonthSelect:Y,withWeekNumbers:H,firstDayOfWeek:F,weekdayFormat:k,weekendDays:P,getDayProps:z,excludeDate:V,renderDay:G,hideOutsideDates:Q,hideWeekdays:Z,getDayAriaLabel:X,monthLabelFormat:ue,monthsListFormat:fe,getMonthControlProps:be,yearLabelFormat:ye,yearsListFormat:Ne,getYearControlProps:ke,decadeLabelFormat:Oe,allowSingleDateInRange:oe,allowDeselect:Se,minDate:le,maxDate:Ge,locale:lt},others:xt}}function sU(t,e){const n=[...e].sort((r,i)=>r.getTime()-i.getTime());return Ve(n[0]).startOf("day").subtract(1,"ms").isBefore(t)&&Ve(n[1]).endOf("day").add(1,"ms").isAfter(t)}function Ahe({type:t,level:e,value:n,defaultValue:r,onChange:i,allowSingleDateInRange:a,allowDeselect:s,onMouseLeave:o,applyTimezone:c=!0}){const[d,f]=YL({type:t,value:n,defaultValue:r,onChange:i,applyTimezone:c}),[p,m]=I.useState(t==="range"&&d[0]&&!d[1]?d[0]:null),[g,b]=I.useState(null),S=N=>{if(t==="range"){if(p instanceof Date&&!d[1]){if(Ve(N).isSame(p,e)&&!a){m(null),b(null),f([null,null]);return}const w=[N,p];w.sort((D,L)=>D.getTime()-L.getTime()),f(w),b(null),m(null);return}if(d[0]&&!d[1]&&Ve(N).isSame(d[0],e)&&!a){m(null),b(null),f([null,null]);return}f([N,null]),b(null),m(N);return}if(t==="multiple"){d.some(w=>Ve(w).isSame(N,e))?f(d.filter(w=>!Ve(w).isSame(N,e))):f([...d,N]);return}d&&s&&Ve(N).isSame(d,e)?f(null):f(N)},y=N=>p instanceof Date&&g instanceof Date?sU(N,[g,p]):d[0]instanceof Date&&d[1]instanceof Date?sU(N,d):!1,E=t==="range"?N=>{o==null||o(N),b(null)}:o,T=N=>d[0]instanceof Date&&Ve(N).isSame(d[0],e)?!(g&&Ve(g).isBefore(d[0])):!1,x=N=>d[1]instanceof Date?Ve(N).isSame(d[1],e):!(d[0]instanceof Date)||!g?!1:Ve(g).isBefore(d[0])&&Ve(N).isSame(d[0],e),O=N=>{if(t==="range")return{selected:d.some(D=>D&&Ve(D).isSame(N,e)),inRange:y(N),firstInRange:T(N),lastInRange:x(N),"data-autofocus":!!d[0]&&Ve(d[0]).isSame(N,e)||void 0};if(t==="multiple")return{selected:d.some(D=>D&&Ve(D).isSame(N,e)),"data-autofocus":!!d[0]&&Ve(d[0]).isSame(N,e)||void 0};const w=Ve(d).isSame(N,e);return{selected:w,"data-autofocus":w||void 0}},C=t==="range"&&p?b:()=>{};return I.useEffect(()=>{if(t==="range")if(d[0]&&!d[1]&&(p==null?void 0:p.getTime())!==d[0].getTime())m(d[0]);else{const N=d[0]==null&&d[1]==null,w=d[0]!=null&&d[1]!=null;(N||w)&&(m(null),b(null))}},[d]),{onDateChange:S,onRootMouseLeave:E,onHoveredDateChange:C,getControlProps:O,_value:d,setValue:f}}const whe={type:"default",defaultLevel:"month",numberOfColumns:1},iT=Me((t,e)=>{const n=Te("DatePicker",whe,t),{classNames:r,styles:i,vars:a,type:s,defaultValue:o,value:c,onChange:d,__staticSelector:f,getDayProps:p,allowSingleDateInRange:m,allowDeselect:g,onMouseLeave:b,numberOfColumns:S,hideOutsideDates:y,__onDayMouseEnter:E,__onDayClick:T,__timezoneApplied:x,...O}=n,{onDateChange:C,onRootMouseLeave:N,onHoveredDateChange:w,getControlProps:D}=Ahe({type:s,level:"day",allowDeselect:g,allowSingleDateInRange:m,value:c,defaultValue:o,onChange:d,onMouseLeave:b,applyTimezone:!x}),{resolvedClassNames:L,resolvedStyles:U}=oo({classNames:r,styles:i,props:n}),M=Ds();return l.jsx(rT,{ref:e,minLevel:"month",classNames:L,styles:U,__staticSelector:f||"DatePicker",onMouseLeave:N,numberOfColumns:S,hideOutsideDates:y??S!==1,__onDayMouseEnter:(B,Y)=>{w(Y),E==null||E(B,Y)},__onDayClick:(B,Y)=>{C(Y),T==null||T(B,Y)},getDayProps:B=>({...D(B),...p==null?void 0:p(B)}),...O,date:Pc("add",O.date,M.getTimezone(),x),__timezoneApplied:!0})});iT.classes=rT.classes;iT.displayName="@mantine/dates/DatePicker";var oV={timeWrapper:"m_208d2562",timeInput:"m_62ee059"};const Ihe={dropdownType:"popover"},HL=Me((t,e)=>{const n=Te("DateTimePicker",Ihe,t),{value:r,defaultValue:i,onChange:a,valueFormat:s,locale:o,classNames:c,styles:d,unstyled:f,timeInputProps:p,submitButtonProps:m,withSeconds:g,level:b,defaultLevel:S,size:y,variant:E,dropdownType:T,vars:x,minDate:O,maxDate:C,...N}=n,w=ot({name:"DateTimePicker",classes:oV,props:n,classNames:c,styles:d,unstyled:f,vars:x}),{resolvedClassNames:D,resolvedStyles:L}=oo({classNames:c,styles:d,props:n}),U=s||(g?"DD/MM/YYYY HH:mm:ss":"DD/MM/YYYY HH:mm"),M=I.useRef(null),B=$r(M,p==null?void 0:p.ref),{calendarProps:{allowSingleDateInRange:Y,...H},others:F}=Nhe(N),k=Ds(),[P,z]=YL({type:"default",value:r,defaultValue:i,onChange:a}),V=le=>le?Ve(le).format(g?"HH:mm:ss":"HH:mm"):"",[G,Q]=I.useState(V(P)),[Z,X]=I.useState(b||S||"month"),[ue,fe]=UD(!1),be=P?Ve(P).locale(k.getLocale(o)).tz(k.getTimezone(),!0).format(U):"",ye=le=>{var lt;(lt=p==null?void 0:p.onChange)==null||lt.call(p,le);const Ge=le.currentTarget.value;if(Q(Ge),Ge){const[xt,Ae,Be]=Ge.split(":").map(Number),Xe=Pc("add",new Date,k.getTimezone());Xe.setHours(xt),Xe.setMinutes(Ae),Xe.setSeconds(Be||0),Xe.setMilliseconds(0),z(tU(Xe,P||Pc("add",new Date,k.getTimezone())))}},Ne=le=>{var Ge;le&&z(tU(P,le)),(Ge=M.current)==null||Ge.focus()},ke=le=>{var Ge;(Ge=p==null?void 0:p.onKeyDown)==null||Ge.call(p,le),le.key==="Enter"&&(le.preventDefault(),fe.close())};ro(()=>{ue||Q(V(P))},[P,ue]),ro(()=>{ue&&X("month")},[ue]);const Oe=O?Ve(O).format("HH:mm:ss"):null,oe=C?Ve(C).format("HH:mm:ss"):null,Se=T==="popover";return l.jsxs(nT,{formattedValue:be,dropdownOpened:N.disabled?!1:ue,dropdownHandlers:fe,classNames:D,styles:L,unstyled:f,ref:e,onClear:()=>z(null),shouldClear:!!P,value:P,size:y,variant:E,dropdownType:T,...F,type:"default",__staticSelector:"DateTimePicker",children:[l.jsx(iT,{...H,maxDate:C,minDate:O,size:y,variant:E,type:"default",value:P,defaultDate:P,onChange:Ne,locale:o,classNames:D,styles:L,unstyled:f,__staticSelector:"DateTimePicker",__stopPropagation:Se,level:b,defaultLevel:S,onLevelChange:le=>{var Ge;X(le),(Ge=H.onLevelChange)==null||Ge.call(H,le)},__timezoneApplied:!0}),Z==="month"&&l.jsxs("div",{...w("timeWrapper"),children:[l.jsx(qL,{value:G,withSeconds:g,ref:B,unstyled:f,minTime:P&&O&&P.toDateString()===O.toDateString()?Oe??void 0:void 0,maxTime:P&&C&&P.toDateString()===C.toDateString()?oe??void 0:void 0,...p,...w("timeInput",{className:p==null?void 0:p.className,style:p==null?void 0:p.style}),onChange:ye,onKeyDown:ke,size:y,"data-mantine-stop-propagation":Se||void 0}),l.jsx(Pr,{variant:"default",size:`input-${y||"sm"}`,...w("submitButton",{className:m==null?void 0:m.className,style:m==null?void 0:m.style}),unstyled:f,"data-mantine-stop-propagation":Se||void 0,children:l.jsx(py,{size:"30%"}),...m,onClick:le=>{var Ge;(Ge=m==null?void 0:m.onClick)==null||Ge.call(m,le),fe.close()}})]})]})});HL.classes={...oV,...nT.classes,...iT.classes};HL.displayName="@mantine/dates/DateTimePicker";const Dhe="settings.useLocalTime",Mhe="settings.enableQueryHistory",Lhe="settings.enableAutocomplete",khe="settings.enableSyntaxHighlighting",Phe="settings.enableLinter",Bhe="settings.showAnnotations",Fhe="settings.ruleGroupsPerPage",Uhe="settings.alertGroupsPerPage",jhe=t=>{t.endsWith("/")&&(t=t.slice(0,-1));const n=["/query","/alerts","/targets","/rules","/service-discovery","/status","/tsdb-status","/flags","/config","/alertmanager-discovery","/agent"].find(r=>t.endsWith(r));return t.slice(0,t.length-(n||"").length)},Ghe={consolesLink:GLOBAL_CONSOLES_LINK==="CONSOLES_LINK_PLACEHOLDER"||GLOBAL_CONSOLES_LINK===""||GLOBAL_CONSOLES_LINK===null?null:GLOBAL_CONSOLES_LINK,agentMode:GLOBAL_AGENT_MODE==="true",ready:GLOBAL_READY==="true",lookbackDelta:GLOBAL_LOOKBACKDELTA==="LOOKBACKDELTA_PLACEHOLDER"||GLOBAL_LOOKBACKDELTA===null?"":GLOBAL_LOOKBACKDELTA,pathPrefix:jhe(window.location.pathname),useLocalTime:Lo(Dhe,!1),enableQueryHistory:Lo(Mhe,!1),enableAutocomplete:Lo(Lhe,!0),enableSyntaxHighlighting:Lo(khe,!0),enableLinter:Lo(Phe,!0),showAnnotations:Lo(Bhe,!0),ruleGroupsPerPage:Lo(Fhe,10),alertGroupsPerPage:Lo(Uhe,10)},lV=qy({name:"settings",initialState:Ghe,reducers:{updateSettings:(t,{payload:e})=>{Object.assign(t,e)}}}),{updateSettings:Nl}=lV.actions,Si=()=>Kl(t=>t.settings),qhe=lV.reducer,oU={width:"0.9rem",height:"0.9rem"},cV=({time:t,range:e,description:n,onChangeTime:r})=>{const i=()=>t!==null?t:Date.now().valueOf(),{useLocalTime:a}=Si();return l.jsx(pt,{gap:5,children:l.jsx(qfe,{settings:{timezone:a?void 0:"UTC"},children:l.jsx(HL,{title:"End time",w:230,valueFormat:"YYYY-MM-DD HH:mm:ss",withSeconds:!0,value:t!==null?new Date(t):void 0,onChange:s=>r(s?s.getTime():null),"aria-label":n,placeholder:n,onClick:()=>{t===null&&r(i())},leftSection:l.jsx(Pr,{size:"lg",color:"gray",variant:"transparent",title:"Decrease time","aria-label":"Decrease time",onClick:()=>r(i()-e/2),children:l.jsx(xle,{style:oU})}),styles:{section:{width:"unset"}},rightSection:l.jsxs(l.Fragment,{children:[t&&l.jsx(Xc,{variant:"transparent",color:"gray",onMouseDown:s=>s.preventDefault(),tabIndex:-1,onClick:()=>{r(null)},size:"xs"}),l.jsx(Pr,{size:"lg",color:"gray",variant:"transparent",title:"Increase time","aria-label":"Increase time",onClick:()=>r(i()+e/2),children:l.jsx(wH,{style:oU})})]})})})})},lU={width:"0.9rem",height:"0.9rem"},cU=[1,10,60,5*60,15*60,30*60,60*60,2*60*60,6*60*60,12*60*60,24*60*60,48*60*60,7*24*60*60,14*24*60*60,28*24*60*60,56*24*60*60,112*24*60*60,182*24*60*60,365*24*60*60,730*24*60*60].map(t=>t*1e3),$he=({range:t,onChangeRange:e})=>{const[n,r]=I.useState(An(t));I.useEffect(()=>{r(An(t))},[t]);const i=o=>{const c=UL(o);c===null?r(An(t)):e(c)},a=()=>{for(const o of cU)if(t<o){r(An(o)),e(o);return}},s=()=>{for(const o of cU.slice().reverse())if(t>o){r(An(o)),e(o);return}};return l.jsx(pt,{gap:5,children:l.jsx(eu,{title:"Range",value:n,onChange:o=>r(o.currentTarget.value),onBlur:()=>i(n),onKeyDown:o=>o.key==="Enter"&&i(n),"aria-label":"Range",style:{width:`calc(44px + ${n.length+3}ch)`},leftSection:l.jsx(Pr,{size:"lg",variant:"transparent",color:"gray","aria-label":"Decrease range",onClick:s,children:l.jsx(Lle,{style:lU})}),rightSection:l.jsx(Pr,{size:"lg",variant:"transparent",color:"gray","aria-label":"Increase range",onClick:a,children:l.jsx(BH,{style:lU})}),leftSectionPointerEvents:"all",rightSectionPointerEvents:"all"})})},uV=1024;let zhe=0,hO=class{constructor(e,n){this.from=e,this.to=n}};class rn{constructor(e={}){this.id=zhe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=is.match(e)),n=>{let r=e(n);return r===void 0?null:[this,r]}}}rn.closedBy=new rn({deserialize:t=>t.split(" ")});rn.openedBy=new rn({deserialize:t=>t.split(" ")});rn.group=new rn({deserialize:t=>t.split(" ")});rn.isolate=new rn({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});rn.contextHash=new rn({perNode:!0});rn.lookAhead=new rn({perNode:!0});rn.mounted=new rn({perNode:!0});class rE{constructor(e,n,r){this.tree=e,this.overlay=n,this.parser=r}static get(e){return e&&e.props&&e.props[rn.mounted.id]}}const Yhe=Object.create(null);class is{constructor(e,n,r,i=0){this.name=e,this.props=n,this.id=r,this.flags=i}static define(e){let n=e.props&&e.props.length?Object.create(null):Yhe,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new is(e.name||"",n,e.id,r);if(e.props){for(let a of e.props)if(Array.isArray(a)||(a=a(i)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[a[0].id]=a[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(rn.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let r in e)for(let i of r.split(" "))n[i]=e[r];return r=>{for(let i=r.prop(rn.group),a=-1;a<(i?i.length:0);a++){let s=n[a<0?r.name:i[a]];if(s)return s}}}}is.none=new is("",Object.create(null),0,8);class VL{constructor(e){this.types=e;for(let n=0;n<e.length;n++)if(e[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let n=[];for(let r of this.types){let i=null;for(let a of e){let s=a(r);s&&(i||(i=Object.assign({},r.props)),i[s[0].id]=s[1])}n.push(i?new is(r.name,i,r.id,r.flags):r)}return new VL(n)}}const hv=new WeakMap,uU=new WeakMap;var Mi;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(Mi||(Mi={}));class ri{constructor(e,n,r,i,a){if(this.type=e,this.children=n,this.positions=r,this.length=i,this.props=null,a&&a.length){this.props=Object.create(null);for(let[s,o]of a)this.props[typeof s=="number"?s:s.id]=o}}toString(){let e=rE.get(this);if(e&&!e.overlay)return e.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(e=0){return new sI(this.topNode,e)}cursorAt(e,n=0,r=0){let i=hv.get(this)||this.topNode,a=new sI(i);return a.moveTo(e,n),hv.set(this,a._tree),a}get topNode(){return new fd(this,0,0,null)}resolve(e,n=0){let r=B_(hv.get(this)||this.topNode,e,n,!1);return hv.set(this,r),r}resolveInner(e,n=0){let r=B_(uU.get(this)||this.topNode,e,n,!0);return uU.set(this,r),r}resolveStack(e,n=0){return Whe(this,e,n)}iterate(e){let{enter:n,leave:r,from:i=0,to:a=this.length}=e,s=e.mode||0,o=(s&Mi.IncludeAnonymous)>0;for(let c=this.cursor(s|Mi.IncludeAnonymous);;){let d=!1;if(c.from<=a&&c.to>=i&&(!o&&c.type.isAnonymous||n(c)!==!1)){if(c.firstChild())continue;d=!0}for(;d&&r&&(o||!c.type.isAnonymous)&&r(c),!c.nextSibling();){if(!c.parent())return;d=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:KL(is.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new ri(this.type,n,r,i,this.propValues),e.makeTree||((n,r,i)=>new ri(is.none,n,r,i)))}static build(e){return Qhe(e)}}ri.empty=new ri(is.none,[],[],0);class WL{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new WL(this.buffer,this.index)}}class dd{constructor(e,n,r){this.buffer=e,this.length=n,this.set=r}get type(){return is.none}toString(){let e=[];for(let n=0;n<this.buffer.length;)e.push(this.childString(n)),n=this.buffer[n+3];return e.join(",")}childString(e){let n=this.buffer[e],r=this.buffer[e+3],i=this.set.types[n],a=i.name;if(/\W/.test(a)&&!i.isError&&(a=JSON.stringify(a)),e+=4,r==e)return a;let s=[];for(;e<r;)s.push(this.childString(e)),e=this.buffer[e+3];return a+"("+s.join(",")+")"}findChild(e,n,r,i,a){let{buffer:s}=this,o=-1;for(let c=e;c!=n&&!(dV(a,i,s[c+1],s[c+2])&&(o=c,r>0));c=s[c+3]);return o}slice(e,n,r){let i=this.buffer,a=new Uint16Array(n-e),s=0;for(let o=e,c=0;o<n;){a[c++]=i[o++],a[c++]=i[o++]-r;let d=a[c++]=i[o++]-r;a[c++]=i[o++]-e,s=Math.max(s,d)}return new dd(a,s,this.set)}}function dV(t,e,n,r){switch(t){case-2:return n<e;case-1:return r>=e&&n<e;case 0:return n<e&&r>e;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function B_(t,e,n,r){for(var i;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let s=!r&&t instanceof fd&&t.index<0?null:t.parent;if(!s)return t;t=s}let a=r?0:Mi.IgnoreOverlays;if(r)for(let s=t,o=s.parent;o;s=o,o=s.parent)s instanceof fd&&s.index<0&&((i=o.enter(e,n,a))===null||i===void 0?void 0:i.from)!=s.from&&(t=o);for(;;){let s=t.enter(e,n,a);if(!s)return t;t=s}}class fV{cursor(e=0){return new sI(this,e)}getChild(e,n=null,r=null){let i=dU(this,e,n,r);return i.length?i[0]:null}getChildren(e,n=null,r=null){return dU(this,e,n,r)}resolve(e,n=0){return B_(this,e,n,!1)}resolveInner(e,n=0){return B_(this,e,n,!0)}matchContext(e){return aI(this.parent,e)}enterUnfinishedNodesBefore(e){let n=this.childBefore(e),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}let fd=class fS extends fV{constructor(e,n,r,i){super(),this._tree=e,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,n,r,i,a=0){for(let s=this;;){for(let{children:o,positions:c}=s._tree,d=n>0?o.length:-1;e!=d;e+=n){let f=o[e],p=c[e]+s.from;if(dV(i,r,p,p+f.length)){if(f instanceof dd){if(a&Mi.ExcludeBuffers)continue;let m=f.findChild(0,f.buffer.length,n,r-p,i);if(m>-1)return new ed(new Hhe(s,f,e,p),null,m)}else if(a&Mi.IncludeAnonymous||!f.type.isAnonymous||QL(f)){let m;if(!(a&Mi.IgnoreMounts)&&(m=rE.get(f))&&!m.overlay)return new fS(m.tree,p,e,s);let g=new fS(f,p,e,s);return a&Mi.IncludeAnonymous||!g.type.isAnonymous?g:g.nextChild(n<0?f.children.length-1:0,n,r,i)}}}if(a&Mi.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+n:e=n<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,r=0){let i;if(!(r&Mi.IgnoreOverlays)&&(i=rE.get(this._tree))&&i.overlay){let a=e-this.from;for(let{from:s,to:o}of i.overlay)if((n>0?s<=a:s<a)&&(n<0?o>=a:o>a))return new fS(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function dU(t,e,n,r){let i=t.cursor(),a=[];if(!i.firstChild())return a;if(n!=null){for(let s=!1;!s;)if(s=i.type.is(n),!i.nextSibling())return a}for(;;){if(r!=null&&i.type.is(r))return a;if(i.type.is(e)&&a.push(i.node),!i.nextSibling())return r==null?a:[]}}function aI(t,e,n=e.length-1){for(let r=t;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class Hhe{constructor(e,n,r,i){this.parent=e,this.buffer=n,this.index=r,this.start=i}}class ed extends fV{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,r){super(),this.context=e,this._parent=n,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,n,r){let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.context.start,r);return a<0?null:new ed(this.context,this,a)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,r=0){if(r&Mi.ExcludeBuffers)return null;let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return a<0?null:new ed(this.context,this,a)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new ed(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new ed(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:r}=this.context,i=this.index+4,a=r.buffer[this.index+3];if(a>i){let s=r.buffer[this.index+1];e.push(r.slice(i,a,s)),n.push(0)}return new ri(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function hV(t){if(!t.length)return null;let e=0,n=t[0];for(let a=1;a<t.length;a++){let s=t[a];(s.from>n.from||s.to<n.to)&&(n=s,e=a)}let r=n instanceof fd&&n.index<0?null:n.parent,i=t.slice();return r?i[e]=r:i.splice(e,1),new Vhe(i,n)}class Vhe{constructor(e,n){this.heads=e,this.node=n}get next(){return hV(this.heads)}}function Whe(t,e,n){let r=t.resolveInner(e,n),i=null;for(let a=r instanceof fd?r:r.context.parent;a;a=a.parent)if(a.index<0){let s=a.parent;(i||(i=[r])).push(s.resolve(e,n)),a=s}else{let s=rE.get(a.tree);if(s&&s.overlay&&s.overlay[0].from<=e&&s.overlay[s.overlay.length-1].to>=e){let o=new fd(s.tree,s.overlay[0].from+a.from,-1,a);(i||(i=[r])).push(B_(o,e,n,!1))}}return i?hV(i):r}class sI{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof fd)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let r=e._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[e]],this.from=r+i.buffer[e+1],this.to=r+i.buffer[e+2],!0}yield(e){return e?e instanceof fd?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,r,this.mode));let{buffer:i}=this.buffer,a=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.buffer.start,r);return a<0?!1:(this.stack.push(this.index),this.yieldBuf(a))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,r=this.mode){return this.buffer?r&Mi.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Mi.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Mi.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(e<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,r,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let a=0;a<this.index;a++)if(i.buffer.buffer[a+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let a=n+e,s=e<0?-1:r._tree.children.length;a!=s;a+=e){let o=r._tree.children[a];if(this.mode&Mi.IncludeAnonymous||o instanceof dd||!o.type.isAnonymous||QL(o))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,n););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,n=null,r=0;if(e&&e.context==this.buffer)e:for(let i=this.index,a=this.stack.length;a>=0;){for(let s=e;s;s=s._parent)if(s.index==i){if(i==this.index)return s;n=s,r=a+1;break e}i=this.stack[--a]}for(let i=r;i<this.stack.length;i++)n=new ed(this.buffer,n,this.stack[i]);return this.bufferNode=new ed(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&n&&n(this),i=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,i=!0}}}matchContext(e){if(!this.buffer)return aI(this.node.parent,e);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=e.length-1,a=this.stack.length-1;i>=0;a--){if(a<0)return aI(this._tree,e,i);let s=r[n.buffer[this.stack[a]]];if(!s.isAnonymous){if(e[i]&&e[i]!=s.name)return!1;i--}}return!0}}function QL(t){return t.children.some(e=>e instanceof dd||!e.type.isAnonymous||QL(e))}function Qhe(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:i=uV,reused:a=[],minRepeatType:s=r.types.length}=t,o=Array.isArray(n)?new WL(n,n.length):n,c=r.types,d=0,f=0;function p(C,N,w,D,L,U){let{id:M,start:B,end:Y,size:H}=o,F=f,k=d;for(;H<0;)if(o.next(),H==-1){let Q=a[M];w.push(Q),D.push(B-C);return}else if(H==-3){d=M;return}else if(H==-4){f=M;return}else throw new RangeError(`Unrecognized record size: ${H}`);let P=c[M],z,V,G=B-C;if(Y-B<=i&&(V=y(o.pos-N,L))){let Q=new Uint16Array(V.size-V.skip),Z=o.pos-V.size,X=Q.length;for(;o.pos>Z;)X=E(V.start,Q,X);z=new dd(Q,Y-V.start,r),G=V.start-C}else{let Q=o.pos-H;o.next();let Z=[],X=[],ue=M>=s?M:-1,fe=0,be=Y;for(;o.pos>Q;)ue>=0&&o.id==ue&&o.size>=0?(o.end<=be-i&&(b(Z,X,B,fe,o.end,be,ue,F,k),fe=Z.length,be=o.end),o.next()):U>2500?m(B,Q,Z,X):p(B,Q,Z,X,ue,U+1);if(ue>=0&&fe>0&&fe<Z.length&&b(Z,X,B,fe,B,be,ue,F,k),Z.reverse(),X.reverse(),ue>-1&&fe>0){let ye=g(P,k);z=KL(P,Z,X,0,Z.length,0,Y-B,ye,ye)}else z=S(P,Z,X,Y-B,F-Y,k)}w.push(z),D.push(G)}function m(C,N,w,D){let L=[],U=0,M=-1;for(;o.pos>N;){let{id:B,start:Y,end:H,size:F}=o;if(F>4)o.next();else{if(M>-1&&Y<M)break;M<0&&(M=H-i),L.push(B,Y,H),U++,o.next()}}if(U){let B=new Uint16Array(U*4),Y=L[L.length-2];for(let H=L.length-3,F=0;H>=0;H-=3)B[F++]=L[H],B[F++]=L[H+1]-Y,B[F++]=L[H+2]-Y,B[F++]=F;w.push(new dd(B,L[2]-Y,r)),D.push(Y-C)}}function g(C,N){return(w,D,L)=>{let U=0,M=w.length-1,B,Y;if(M>=0&&(B=w[M])instanceof ri){if(!M&&B.type==C&&B.length==L)return B;(Y=B.prop(rn.lookAhead))&&(U=D[M]+B.length+Y)}return S(C,w,D,L,U,N)}}function b(C,N,w,D,L,U,M,B,Y){let H=[],F=[];for(;C.length>D;)H.push(C.pop()),F.push(N.pop()+w-L);C.push(S(r.types[M],H,F,U-L,B-U,Y)),N.push(L-w)}function S(C,N,w,D,L,U,M){if(U){let B=[rn.contextHash,U];M=M?[B].concat(M):[B]}if(L>25){let B=[rn.lookAhead,L];M=M?[B].concat(M):[B]}return new ri(C,N,w,D,M)}function y(C,N){let w=o.fork(),D=0,L=0,U=0,M=w.end-i,B={size:0,start:0,skip:0};e:for(let Y=w.pos-C;w.pos>Y;){let H=w.size;if(w.id==N&&H>=0){B.size=D,B.start=L,B.skip=U,U+=4,D+=4,w.next();continue}let F=w.pos-H;if(H<0||F<Y||w.start<M)break;let k=w.id>=s?4:0,P=w.start;for(w.next();w.pos>F;){if(w.size<0)if(w.size==-3)k+=4;else break e;else w.id>=s&&(k+=4);w.next()}L=P,D+=H,U+=k}return(N<0||D==C)&&(B.size=D,B.start=L,B.skip=U),B.size>4?B:void 0}function E(C,N,w){let{id:D,start:L,end:U,size:M}=o;if(o.next(),M>=0&&D<s){let B=w;if(M>4){let Y=o.pos-(M-4);for(;o.pos>Y;)w=E(C,N,w)}N[--w]=B,N[--w]=U-C,N[--w]=L-C,N[--w]=D}else M==-3?d=D:M==-4&&(f=D);return w}let T=[],x=[];for(;o.pos>0;)p(t.start||0,t.bufferStart||0,T,x,-1,0);let O=(e=t.length)!==null&&e!==void 0?e:T.length?x[0]+T[0].length:0;return new ri(c[t.topID],T.reverse(),x.reverse(),O)}const fU=new WeakMap;function hS(t,e){if(!t.isAnonymous||e instanceof dd||e.type!=t)return 1;let n=fU.get(e);if(n==null){n=1;for(let r of e.children){if(r.type!=t||!(r instanceof ri)){n=1;break}n+=hS(t,r)}fU.set(e,n)}return n}function KL(t,e,n,r,i,a,s,o,c){let d=0;for(let b=r;b<i;b++)d+=hS(t,e[b]);let f=Math.ceil(d*1.5/8),p=[],m=[];function g(b,S,y,E,T){for(let x=y;x<E;){let O=x,C=S[x],N=hS(t,b[x]);for(x++;x<E;x++){let w=hS(t,b[x]);if(N+w>=f)break;N+=w}if(x==O+1){if(N>f){let w=b[O];g(w.children,w.positions,0,w.children.length,S[O]+T);continue}p.push(b[O])}else{let w=S[x-1]+b[x-1].length-C;p.push(KL(t,b,S,O,x,C,w,null,c))}m.push(C+T-a)}}return g(e,n,r,i,0),(o||c)(p,m,s)}class kf{constructor(e,n,r,i,a=!1,s=!1){this.from=e,this.to=n,this.tree=r,this.offset=i,this.open=(a?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],r=!1){let i=[new kf(0,e.length,e,0,!1,r)];for(let a of n)a.to>e.length&&i.push(a);return i}static applyChanges(e,n,r=128){if(!n.length)return e;let i=[],a=1,s=e.length?e[0]:null;for(let o=0,c=0,d=0;;o++){let f=o<n.length?n[o]:null,p=f?f.fromA:1e9;if(p-c>=r)for(;s&&s.from<p;){let m=s;if(c>=m.from||p<=m.to||d){let g=Math.max(m.from,c)-d,b=Math.min(m.to,p)-d;m=g>=b?null:new kf(g,b,m.tree,m.offset+d,o>0,!!f)}if(m&&i.push(m),s.to>p)break;s=a<e.length?e[a++]:null}if(!f)break;c=f.toA,d=f.toA-f.toB}return i}}let pV=class{startParse(e,n,r){return typeof e=="string"&&(e=new Khe(e)),r=r?r.length?r.map(i=>new hO(i.from,i.to)):[new hO(0,0)]:[new hO(0,e.length)],this.createParse(e,n||[],r)}parse(e,n,r){let i=this.startParse(e,n,r);for(;;){let a=i.advance();if(a)return a}}};class Khe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}new rn({perNode:!0});var hU={};let Xhe=class oI{constructor(e,n,r,i,a,s,o,c,d,f=0,p){this.p=e,this.stack=n,this.state=r,this.reducePos=i,this.pos=a,this.score=s,this.buffer=o,this.bufferBase=c,this.curContext=d,this.lookAhead=f,this.parent=p}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,r=0){let i=e.parser.context;return new oI(e,[],n,r,r,0,[],0,i?new pU(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let r=e>>19,i=e&65535,{parser:a}=this.p,s=this.reducePos<this.pos-25;s&&this.setLookAhead(this.pos);let o=a.dynamicPrecedence(i);if(o&&(this.score+=o),r==0){this.pushState(a.getGoto(this.state,i,!0),this.reducePos),i<a.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,s?8:4,!0),this.reduceContext(i,this.reducePos);return}let c=this.stack.length-(r-1)*3-(e&262144?6:0),d=c?this.stack[c-2]:this.p.ranges[0].from,f=this.reducePos-d;f>=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(d==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=f):this.p.lastBigReductionSize<f&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=d,this.p.lastBigReductionSize=f));let p=c?this.stack[c-1]:0,m=this.bufferBase+this.buffer.length-p;if(i<a.minRepeatTerm||e&131072){let g=a.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,d,g,m+4,!0)}if(e&262144)this.state=this.stack[c];else{let g=this.stack[c-3];this.state=a.getGoto(g,i,!0)}for(;this.stack.length>c;)this.stack.pop();this.reduceContext(i,d)}storeNode(e,n,r,i=4,a=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let s=this,o=this.buffer.length;if(o==0&&s.parent&&(o=s.bufferBase-s.parent.bufferBase,s=s.parent),o>0&&s.buffer[o-4]==0&&s.buffer[o-1]>-1){if(n==r)return;if(s.buffer[o-2]>=n){s.buffer[o-2]=r;return}}}if(!a||this.pos==r)this.buffer.push(e,n,r,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0){let o=!1;for(let c=s;c>0&&this.buffer[c-2]>r;c-=4)if(this.buffer[c-1]>=0){o=!0;break}if(o)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4)}this.buffer[s]=e,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(e,n,r,i){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let a=e,{parser:s}=this.p;(i>this.pos||n<=s.maxNode)&&(this.pos=i,s.stateFlag(a,1)||(this.reducePos=i)),this.pushState(a,r),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,i,4)}else this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4)}apply(e,n,r,i){e&65536?this.reduce(e):this.shift(e,n,r,i)}useNode(e,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let r=e.buffer.slice(n),i=e.bufferBase+n;for(;e&&i==e.bufferBase;)e=e.parent;return new oI(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new Zhe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let a=0,s;a<n.length;a+=2)(s=n[a+1])!=this.state&&this.p.parser.hasAction(s,e)&&i.push(n[a],s);if(this.stack.length<120)for(let a=0;i.length<8&&a<n.length;a+=2){let s=n[a+1];i.some((o,c)=>c&1&&o==s)||i.push(n[a],s)}n=i}let r=[];for(let i=0;i<n.length&&r.length<4;i+=2){let a=n[i+1];if(a==this.state)continue;let s=this.split();s.pushState(a,this.pos),s.storeNode(0,s.pos,s.pos,4,!0),s.shiftContext(n[i],this.pos),s.reducePos=this.pos,s.score-=200,r.push(s)}return r}forceReduce(){let{parser:e}=this.p,n=e.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!e.validAction(this.state,n)){let r=n>>19,i=n&65535,a=this.stack.length-r*3;if(a<0||e.getGoto(this.stack[a],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],r=(i,a)=>{if(!n.includes(i))return n.push(i),e.allActions(i,s=>{if(!(s&393216))if(s&65536){let o=(s>>19)-a;if(o>1){let c=s&65535,d=this.stack.length-o*3;if(d>=0&&e.getGoto(this.stack[d],c,!1)>=0)return o<<19|65536|c}}else{let o=r(s,a+1);if(o!=null)return o}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=e.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(n)))}reduceContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(n)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let n=new pU(this.curContext.tracker,e);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}};class pU{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class Zhe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,r=e>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class iE{constructor(e,n,r){this.stack=e,this.pos=n,this.index=r,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new iE(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new iE(this.stack,this.pos,this.index)}}function pv(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let r=0,i=0;r<t.length;){let a=0;for(;;){let s=t.charCodeAt(r++),o=!1;if(s==126){a=65535;break}s>=92&&s--,s>=34&&s--;let c=s-32;if(c>=46&&(c-=46,o=!0),a+=c,o)break;a*=46}n?n[i++]=a:n=new e(a)}return n}class pS{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const mU=new pS;class Jhe{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=mU,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let r=this.range,i=this.rangeIndex,a=this.pos+e;for(;a<r.from;){if(!i)return null;let s=this.ranges[--i];a-=r.from-s.to,r=s}for(;n<0?a>r.to:a>=r.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];a+=s.from-r.to,r=s}return a}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let n of this.ranges)if(n.to>e)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,r,i;if(n>=0&&n<this.chunk.length)r=this.pos+e,i=this.chunk.charCodeAt(n);else{let a=this.resolveOffset(e,1);if(a==null)return-1;if(r=a,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let s=this.rangeIndex,o=this.range;for(;o.to<=r;)o=this.ranges[++s];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>o.to&&(this.chunk2=this.chunk2.slice(0,o.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(e,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=r}acceptTokenTo(e,n){this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),n=this.pos+e.length;this.chunk=n>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=mU,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,n){if(e>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>e&&(r+=this.input.read(Math.max(i.from,e),Math.min(i.to,n)))}return r}}class lp{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:r}=n.p;epe(this.data,e,n,this.id,r.data,r.tokenPrecTable)}}lp.prototype.contextual=lp.prototype.fallback=lp.prototype.extend=!1;lp.prototype.fallback=lp.prototype.extend=!1;function epe(t,e,n,r,i,a){let s=0,o=1<<r,{dialect:c}=n.p.parser;e:for(;(o&t[s])!=0;){let d=t[s+1];for(let g=s+3;g<d;g+=2)if((t[g+1]&o)>0){let b=t[g];if(c.allows(b)&&(e.token.value==-1||e.token.value==b||tpe(b,e.token.value,i,a))){e.acceptToken(b);break}}let f=e.next,p=0,m=t[s+2];if(e.next<0&&m>p&&t[d+m*3-3]==65535){s=t[d+m*3-1];continue e}for(;p<m;){let g=p+m>>1,b=d+g+(g<<1),S=t[b],y=t[b+1]||65536;if(f<S)m=g;else if(f>=y)p=g+1;else{s=t[b+2],e.advance();continue e}}break}}function gU(t,e,n){for(let r=e,i;(i=t[r])!=65535;r++)if(i==n)return r-e;return-1}function tpe(t,e,n,r){let i=gU(n,r,e);return i<0||gU(n,r,t)<i}const ms=typeof process<"u"&&hU&&/\bparse\b/.test(hU.LOG);let pO=null;function _U(t,e,n){let r=t.cursor(Mi.IncludeAnonymous);for(r.moveTo(e);;)if(!(n<0?r.childBefore(e):r.childAfter(e)))for(;;){if((n<0?r.to<e:r.from>e)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,e-25)):Math.min(t.length,Math.max(r.from+1,e+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:t.length}}class npe{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?_U(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?_U(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],i=this.index[n];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let a=r.children[i],s=this.start[n]+r.positions[i];if(s>e)return this.nextStart=s,null;if(a instanceof ri){if(s==e){if(s<this.safeFrom)return null;let o=s+a.length;if(o<=this.safeTo){let c=a.prop(rn.lookAhead);if(!c||o+c<this.fragment.to)return a}}this.index[n]++,s+a.length>=Math.max(this.safeFrom,e)&&(this.trees.push(a),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+a.length}}}class rpe{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(r=>new pS)}getActions(e){let n=0,r=null,{parser:i}=e.p,{tokenizers:a}=i,s=i.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,c=0;for(let d=0;d<a.length;d++){if((1<<d&s)==0)continue;let f=a[d],p=this.tokens[d];if(!(r&&!f.fallback)&&((f.contextual||p.start!=e.pos||p.mask!=s||p.context!=o)&&(this.updateCachedToken(p,f,e),p.mask=s,p.context=o),p.lookAhead>p.end+25&&(c=Math.max(p.lookAhead,c)),p.value!=0)){let m=n;if(p.extended>-1&&(n=this.addActions(e,p.extended,p.end,n)),n=this.addActions(e,p.value,p.end,n),!f.extend&&(r=p,n>m))break}}for(;this.actions.length>n;)this.actions.pop();return c&&e.setLookAhead(c),!r&&e.pos==this.stream.end&&(r=new pS,r.value=e.p.parser.eofTerm,r.start=r.end=e.pos,n=this.addActions(e,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new pS,{pos:r,p:i}=e;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(e,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,e),r),e.value>-1){let{parser:a}=r.p;for(let s=0;s<a.specialized.length;s++)if(a.specialized[s]==e.value){let o=a.specializers[s](this.stream.read(e.start,e.end),r);if(o>=0&&r.p.parser.dialect.allows(o>>1)){(o&1)==0?e.value=o>>1:e.extended=o>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,n,r,i){for(let a=0;a<i;a+=3)if(this.actions[a]==e)return i;return this.actions[i++]=e,this.actions[i++]=n,this.actions[i++]=r,i}addActions(e,n,r,i){let{state:a}=e,{parser:s}=e.p,{data:o}=s;for(let c=0;c<2;c++)for(let d=s.stateSlot(a,c?2:1);;d+=3){if(o[d]==65535)if(o[d+1]==1)d=Rc(o,d+2);else{i==0&&o[d+1]==2&&(i=this.putAction(Rc(o,d+2),n,r,i));break}o[d]==n&&(i=this.putAction(Rc(o,d+1),n,r,i))}return i}}class ipe{constructor(e,n,r,i){this.parser=e,this.input=n,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Jhe(n,i),this.tokens=new rpe(e,this.stream),this.topTerm=e.top[1];let{from:a}=i[0];this.stacks=[Xhe.start(this,e.top[0],a)],this.fragments=r.length&&this.stream.end-a>e.bufferLength*4?new npe(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,r=this.stacks=[],i,a;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<e.length;s++){let o=e[s];for(;;){if(this.tokens.mainToken=null,o.pos>n)r.push(o);else{if(this.advanceStack(o,r,e))continue;{i||(i=[],a=[]),i.push(o);let c=this.tokens.getMainToken(o);a.push(c.value,c.end)}}break}}if(!r.length){let s=i&&spe(i);if(s)return ms&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw ms&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,a,r);if(s)return ms&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((o,c)=>c.score-o.score);r.length>s;)r.pop();r.some(o=>o.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s<r.length-1;s++){let o=r[s];for(let c=s+1;c<r.length;c++){let d=r[c];if(o.sameState(d)||o.buffer.length>500&&d.buffer.length>500)if((o.score-d.score||o.buffer.length-d.buffer.length)>0)r.splice(c--,1);else{r.splice(s--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let s=1;s<r.length;s++)r[s].pos<this.minStackPos&&(this.minStackPos=r[s].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,n,r){let i=e.pos,{parser:a}=this,s=ms?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let d=e.curContext&&e.curContext.tracker.strict,f=d?e.curContext.hash:0;for(let p=this.fragments.nodeAt(i);p;){let m=this.parser.nodeSet.types[p.type.id]==p.type?a.getGoto(e.state,p.type.id):-1;if(m>-1&&p.length&&(!d||(p.prop(rn.contextHash)||0)==f))return e.useNode(p,m),ms&&console.log(s+this.stackID(e)+` (via reuse of ${a.getName(p.type.id)})`),!0;if(!(p instanceof ri)||p.children.length==0||p.positions[0]>0)break;let g=p.children[0];if(g instanceof ri&&p.positions[0]==0)p=g;else break}}let o=a.stateSlot(e.state,4);if(o>0)return e.reduce(o),ms&&console.log(s+this.stackID(e)+` (via always-reduce ${a.getName(o&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let d=0;d<c.length;){let f=c[d++],p=c[d++],m=c[d++],g=d==c.length||!r,b=g?e:e.split(),S=this.tokens.mainToken;if(b.apply(f,p,S?S.start:b.pos,m),ms&&console.log(s+this.stackID(b)+` (via ${(f&65536)==0?"shift":`reduce of ${a.getName(f&65535)}`} for ${a.getName(p)} @ ${i}${b==e?"":", split"})`),g)return!0;b.pos>i?n.push(b):r.push(b)}return!1}advanceFully(e,n){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return bU(e,n),!0}}runRecovery(e,n,r){let i=null,a=!1;for(let s=0;s<e.length;s++){let o=e[s],c=n[s<<1],d=n[(s<<1)+1],f=ms?this.stackID(o)+" -> ":"";if(o.deadEnd&&(a||(a=!0,o.restart(),ms&&console.log(f+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))))continue;let p=o.split(),m=f;for(let g=0;p.forceReduce()&&g<10&&(ms&&console.log(m+this.stackID(p)+" (via force-reduce)"),!this.advanceFully(p,r));g++)ms&&(m=this.stackID(p)+" -> ");for(let g of o.recoverByInsert(c))ms&&console.log(f+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,r);this.stream.end>o.pos?(d==o.pos&&(d++,c=0),o.recoverByDelete(c,d),ms&&console.log(f+this.stackID(o)+` (via recover-delete ${this.parser.getName(c)})`),bU(o,r)):(!i||i.score<o.score)&&(i=o)}return i}stackToTree(e){return e.close(),ri.build({buffer:iE.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let n=(pO||(pO=new WeakMap)).get(e);return n||pO.set(e,n=String.fromCodePoint(this.nextStackID++)),n+e}}function bU(t,e){for(let n=0;n<e.length;n++){let r=e[n];if(r.pos==t.pos&&r.sameState(t)){e[n].score<t.score&&(e[n]=t);return}}e.push(t)}class ape{constructor(e,n,r){this.source=e,this.flags=n,this.disabled=r}allows(e){return!this.disabled||this.disabled[e]==0}}class aE extends pV{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let n=e.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let o=0;o<e.repeatNodeCount;o++)n.push("");let r=Object.keys(e.topRules).map(o=>e.topRules[o][1]),i=[];for(let o=0;o<n.length;o++)i.push([]);function a(o,c,d){i[o].push([c,c.deserialize(String(d))])}if(e.nodeProps)for(let o of e.nodeProps){let c=o[0];typeof c=="string"&&(c=rn[c]);for(let d=1;d<o.length;){let f=o[d++];if(f>=0)a(f,c,o[d++]);else{let p=o[d+-f];for(let m=-f;m>0;m--)a(o[d++],c,p);d++}}}this.nodeSet=new VL(n.map((o,c)=>is.define({name:c>=this.minRepeatTerm?void 0:o,id:c,props:i[c],top:r.indexOf(c)>-1,error:c==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(c)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=uV;let s=pv(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;o<this.specializerSpecs.length;o++)this.specialized[o]=this.specializerSpecs[o].term;this.specializers=this.specializerSpecs.map(vU),this.states=pv(e.states,Uint32Array),this.data=pv(e.stateData),this.goto=pv(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(o=>typeof o=="number"?new lp(s,o):o),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,r){let i=new ipe(this,e,n,r);for(let a of this.wrappers)i=a(i,e,n,r);return i}getGoto(e,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let a=i[n+1];;){let s=i[a++],o=s&1,c=i[a++];if(o&&r)return c;for(let d=a+(s>>1);a<d;a++)if(i[a]==e)return c;if(o)return-1}}hasAction(e,n){let r=this.data;for(let i=0;i<2;i++)for(let a=this.stateSlot(e,i?2:1),s;;a+=3){if((s=r[a])==65535)if(r[a+1]==1)s=r[a=Rc(r,a+2)];else{if(r[a+1]==2)return Rc(r,a+2);break}if(s==n||s==0)return Rc(r,a+1)}return 0}stateSlot(e,n){return this.states[e*6+n]}stateFlag(e,n){return(this.stateSlot(e,0)&n)>0}validAction(e,n){return!!this.allActions(e,r=>r==n?!0:null)}allActions(e,n){let r=this.stateSlot(e,4),i=r?n(r):void 0;for(let a=this.stateSlot(e,1);i==null;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=Rc(this.data,a+2);else break;i=n(Rc(this.data,a+1))}return i}nextStates(e){let n=[];for(let r=this.stateSlot(e,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Rc(this.data,r+2);else break;if((this.data[r+2]&1)==0){let i=this.data[r+1];n.some((a,s)=>s&1&&a==i)||n.push(this.data[r],i)}}return n}configure(e){let n=Object.assign(Object.create(aE.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=r}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=e.tokenizers.find(a=>a.from==r);return i?i.to:r})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let a=e.specializers.find(o=>o.from==r.external);if(!a)return r;let s=Object.assign(Object.assign({},r),{external:a.to});return n.specializers[i]=vU(s),s})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(e)for(let a of e.split(" ")){let s=n.indexOf(a);s>=0&&(r[s]=!0)}let i=null;for(let a=0;a<n.length;a++)if(!r[a])for(let s=this.dialects[n[a]],o;(o=this.data[s++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[o]=1;return new ape(e,r,i)}static deserialize(e){return new aE(e)}}function Rc(t,e){return t[e]|t[e+1]<<16}function spe(t){let e=null;for(let n of t){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.score<n.score)&&(e=n)}return e}function vU(t){if(t.external){let e=t.extend?1:0;return(n,r)=>t.external(n,r)<<1|e}return t.get}let ope=0;class Xs{constructor(e,n,r,i){this.name=e,this.set=n,this.base=r,this.modified=i,this.id=ope++}toString(){let{name:e}=this;for(let n of this.modified)n.name&&(e=`${n.name}(${e})`);return e}static define(e,n){let r=typeof e=="string"?e:"?";if(e instanceof Xs&&(n=e),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let i=new Xs(r,[],null,[]);if(i.set.push(i),n)for(let a of n.set)i.set.push(a);return i}static defineModifier(e){let n=new sE(e);return r=>r.modified.indexOf(n)>-1?r:sE.get(r.base||r,r.modified.concat(n).sort((i,a)=>i.id-a.id))}}let lpe=0;class sE{constructor(e){this.name=e,this.instances=[],this.id=lpe++}static get(e,n){if(!n.length)return e;let r=n[0].instances.find(o=>o.base==e&&cpe(n,o.modified));if(r)return r;let i=[],a=new Xs(e.name,i,e,n);for(let o of n)o.instances.push(a);let s=upe(n);for(let o of e.set)if(!o.modified.length)for(let c of s)i.push(sE.get(o,c));return a}}function cpe(t,e){return t.length==e.length&&t.every((n,r)=>n==e[r])}function upe(t){let e=[[]];for(let n=0;n<t.length;n++)for(let r=0,i=e.length;r<i;r++)e.push(e[r].concat(t[n]));return e.sort((n,r)=>r.length-n.length)}function mV(t){let e=Object.create(null);for(let n in t){let r=t[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let a=[],s=2,o=i;for(let p=0;;){if(o=="..."&&p>0&&p+3==i.length){s=1;break}let m=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!m)throw new RangeError("Invalid path: "+i);if(a.push(m[0]=="*"?"":m[0][0]=='"'?JSON.parse(m[0]):m[0]),p+=m[0].length,p==i.length)break;let g=i[p++];if(p==i.length&&g=="!"){s=0;break}if(g!="/")throw new RangeError("Invalid path: "+i);o=i.slice(p)}let c=a.length-1,d=a[c];if(!d)throw new RangeError("Invalid path: "+i);let f=new oE(r,s,c>0?a.slice(0,c):null);e[d]=f.sort(e[d])}}return gV.add(e)}const gV=new rn;class oE{constructor(e,n,r,i){this.tags=e,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}oE.empty=new oE([],2,null);function _V(t,e){let n=Object.create(null);for(let a of t)if(!Array.isArray(a.tag))n[a.tag.id]=a.class;else for(let s of a.tag)n[s.id]=a.class;let{scope:r,all:i=null}=e||{};return{style:a=>{let s=i;for(let o of a)for(let c of o.set){let d=n[c.id];if(d){s=s?s+" "+d:d;break}}return s},scope:r}}function dpe(t,e){let n=null;for(let r of t){let i=r.style(e);i&&(n=n?n+" "+i:i)}return n}function fpe(t,e,n,r=0,i=t.length){let a=new hpe(r,Array.isArray(e)?e:[e],n);a.highlightRange(t.cursor(),r,i,"",a.highlighters),a.flush(i)}class hpe{constructor(e,n,r){this.at=e,this.highlighters=n,this.span=r,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,r,i,a){let{type:s,from:o,to:c}=e;if(o>=r||c<=n)return;s.isTop&&(a=this.highlighters.filter(g=>!g.scope||g.scope(s)));let d=i,f=ppe(e)||oE.empty,p=dpe(a,f.tags);if(p&&(d&&(d+=" "),d+=p,f.mode==1&&(i+=(i?" ":"")+p)),this.startSpan(Math.max(n,o),d),f.opaque)return;let m=e.tree&&e.tree.prop(rn.mounted);if(m&&m.overlay){let g=e.node.enter(m.overlay[0].from+o,1),b=this.highlighters.filter(y=>!y.scope||y.scope(m.tree.type)),S=e.firstChild();for(let y=0,E=o;;y++){let T=y<m.overlay.length?m.overlay[y]:null,x=T?T.from+o:c,O=Math.max(n,E),C=Math.min(r,x);if(O<C&&S)for(;e.from<C&&(this.highlightRange(e,O,C,i,a),this.startSpan(Math.min(C,e.to),d),!(e.to>=x||!e.nextSibling())););if(!T||x>r)break;E=T.to+o,E>n&&(this.highlightRange(g.cursor(),Math.max(n,T.from+o),Math.min(r,E),"",b),this.startSpan(Math.min(r,E),d))}S&&e.parent()}else if(e.firstChild()){m&&(i="");do if(!(e.to<=n)){if(e.from>=r)break;this.highlightRange(e,n,r,i,a),this.startSpan(Math.min(r,e.to),d)}while(e.nextSibling());e.parent()}}}function ppe(t){let e=t.type.prop(gV);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const nt=Xs.define,mv=nt(),Fu=nt(),SU=nt(Fu),EU=nt(Fu),Uu=nt(),gv=nt(Uu),mO=nt(Uu),Ol=nt(),Kd=nt(Ol),yl=nt(),Tl=nt(),lI=nt(),Pg=nt(lI),_v=nt(),pe={comment:mv,lineComment:nt(mv),blockComment:nt(mv),docComment:nt(mv),name:Fu,variableName:nt(Fu),typeName:SU,tagName:nt(SU),propertyName:EU,attributeName:nt(EU),className:nt(Fu),labelName:nt(Fu),namespace:nt(Fu),macroName:nt(Fu),literal:Uu,string:gv,docString:nt(gv),character:nt(gv),attributeValue:nt(gv),number:mO,integer:nt(mO),float:nt(mO),bool:nt(Uu),regexp:nt(Uu),escape:nt(Uu),color:nt(Uu),url:nt(Uu),keyword:yl,self:nt(yl),null:nt(yl),atom:nt(yl),unit:nt(yl),modifier:nt(yl),operatorKeyword:nt(yl),controlKeyword:nt(yl),definitionKeyword:nt(yl),moduleKeyword:nt(yl),operator:Tl,derefOperator:nt(Tl),arithmeticOperator:nt(Tl),logicOperator:nt(Tl),bitwiseOperator:nt(Tl),compareOperator:nt(Tl),updateOperator:nt(Tl),definitionOperator:nt(Tl),typeOperator:nt(Tl),controlOperator:nt(Tl),punctuation:lI,separator:nt(lI),bracket:Pg,angleBracket:nt(Pg),squareBracket:nt(Pg),paren:nt(Pg),brace:nt(Pg),content:Ol,heading:Kd,heading1:nt(Kd),heading2:nt(Kd),heading3:nt(Kd),heading4:nt(Kd),heading5:nt(Kd),heading6:nt(Kd),contentSeparator:nt(Ol),list:nt(Ol),quote:nt(Ol),emphasis:nt(Ol),strong:nt(Ol),link:nt(Ol),monospace:nt(Ol),strikethrough:nt(Ol),inserted:nt(),deleted:nt(),changed:nt(),invalid:nt(),meta:_v,documentMeta:nt(_v),annotation:nt(_v),processingInstruction:nt(_v),definition:Xs.defineModifier("definition"),constant:Xs.defineModifier("constant"),function:Xs.defineModifier("function"),standard:Xs.defineModifier("standard"),local:Xs.defineModifier("local"),special:Xs.defineModifier("special")};for(let t in pe){let e=pe[t];e instanceof Xs&&(e.name=t)}_V([{tag:pe.link,class:"tok-link"},{tag:pe.heading,class:"tok-heading"},{tag:pe.emphasis,class:"tok-emphasis"},{tag:pe.strong,class:"tok-strong"},{tag:pe.keyword,class:"tok-keyword"},{tag:pe.atom,class:"tok-atom"},{tag:pe.bool,class:"tok-bool"},{tag:pe.url,class:"tok-url"},{tag:pe.labelName,class:"tok-labelName"},{tag:pe.inserted,class:"tok-inserted"},{tag:pe.deleted,class:"tok-deleted"},{tag:pe.literal,class:"tok-literal"},{tag:pe.string,class:"tok-string"},{tag:pe.number,class:"tok-number"},{tag:[pe.regexp,pe.escape,pe.special(pe.string)],class:"tok-string2"},{tag:pe.variableName,class:"tok-variableName"},{tag:pe.local(pe.variableName),class:"tok-variableName tok-local"},{tag:pe.definition(pe.variableName),class:"tok-variableName tok-definition"},{tag:pe.special(pe.variableName),class:"tok-variableName2"},{tag:pe.definition(pe.propertyName),class:"tok-propertyName tok-definition"},{tag:pe.typeName,class:"tok-typeName"},{tag:pe.namespace,class:"tok-namespace"},{tag:pe.className,class:"tok-className"},{tag:pe.macroName,class:"tok-macroName"},{tag:pe.propertyName,class:"tok-propertyName"},{tag:pe.operator,class:"tok-operator"},{tag:pe.comment,class:"tok-comment"},{tag:pe.meta,class:"tok-meta"},{tag:pe.invalid,class:"tok-invalid"},{tag:pe.punctuation,class:"tok-punctuation"}]);const mpe=158,gpe=159,_pe=1,bpe=2,vpe=3,Spe=4,Epe=5,ype=6,Tpe=7,xpe=8,Cpe=9,Ope=10,Rpe=11,Npe=12,Ape=13,wpe=14,Ipe=15,Dpe=16,Mpe=17,Lpe=18,kpe=19,Ppe=20,Bpe=21,Fpe=22,Upe=23,jpe=24,Gpe=25,qpe=26,$pe=27,zpe=28,Ype={inf:mpe,nan:gpe,bool:_pe,ignoring:bpe,on:vpe,group_left:Spe,group_right:Epe,offset:ype},yU=(t,e)=>Ype[t.toLowerCase()]||-1,Hpe={avg:xpe,atan2:Tpe,bottomk:Cpe,count:Ope,count_values:Rpe,group:Npe,max:Ape,min:wpe,quantile:Ipe,limitk:Dpe,limit_ratio:Mpe,stddev:Lpe,stdvar:kpe,sum:Ppe,topk:Bpe,by:Fpe,without:Upe,and:jpe,or:Gpe,unless:qpe,start:$pe,end:zpe},TU=(t,e)=>Hpe[t.toLowerCase()]||-1,Vpe=mV({LineComment:pe.comment,LabelName:pe.labelName,StringLiteral:pe.string,NumberDurationLiteral:pe.number,NumberDurationLiteralInDurationContext:pe.number,Identifier:pe.variableName,"Abs Absent AbsentOverTime Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramAvg HistogramCount HistogramFraction HistogramQuantile HistogramSum DoubleExponentialSmoothing Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Time Timestamp Vector Year":pe.function(pe.variableName),"Avg Bottomk Count Count_values Group LimitK LimitRatio Max Min Quantile Stddev Stdvar Sum Topk":pe.operatorKeyword,"By Without Bool On Ignoring GroupLeft GroupRight Offset Start End":pe.modifier,"And Unless Or":pe.logicOperator,"Sub Add Mul Mod Div Atan2 Eql Neq Lte Lss Gte Gtr EqlRegex EqlSingle NeqRegex Pow At":pe.operator,UnaryOp:pe.arithmeticOperator,"( )":pe.paren,"[ ]":pe.squareBracket,"{ }":pe.brace,"⚠":pe.invalid}),Wpe={__proto__:null,absent_over_time:335,absent:337,abs:339,acos:341,acosh:343,asin:345,asinh:347,atan:349,atanh:351,avg_over_time:353,ceil:355,changes:357,clamp:359,clamp_max:361,clamp_min:363,cos:365,cosh:367,count_over_time:369,days_in_month:371,day_of_month:373,day_of_week:375,day_of_year:377,deg:379,delta:381,deriv:383,exp:385,floor:387,histogram_count:389,histogram_fraction:391,histogram_quantile:393,histogram_stddev:395,histogram_stdvar:397,histogram_sum:399,histogram_avg:401,double_exponential_smoothing:403,hour:405,idelta:407,increase:409,info:411,irate:413,label_replace:415,label_join:417,last_over_time:419,ln:421,log10:423,log2:425,mad_over_time:427,max_over_time:429,min_over_time:431,minute:433,month:435,pi:437,predict_linear:439,present_over_time:441,quantile_over_time:443,rad:445,rate:447,resets:449,round:451,scalar:453,sgn:455,sin:457,sinh:459,sort:461,sort_desc:463,sort_by_label:465,sort_by_label_desc:467,sqrt:469,stddev_over_time:471,stdvar_over_time:473,sum_over_time:475,tan:477,tanh:479,timestamp:481,time:483,vector:485,year:487},Qpe=aE.deserialize({version:14,states:"9bOYQPOOO'tQPOOOOQO'#C|'#C|O'yQPO'#C{Q(UQQOOOOQO'#De'#DeO(PQPO'#DdOOQO'#FY'#FYO)cQPO'#F_OYQPO'#F[OYQPO'#F^O0WQSO'#FaO0cQQO'#F`OOQO'#F`'#F`OOQO'#Ft'#FtOOQO'#Df'#DfOOQO'#Dh'#DhOOQO'#Di'#DiOOQO'#Dj'#DjOOQO'#Dk'#DkOOQO'#Dl'#DlOOQO'#Dm'#DmOOQO'#Dn'#DnOOQO'#Do'#DoOOQO'#Dp'#DpOOQO'#Dq'#DqOOQO'#Dr'#DrOOQO'#Ds'#DsOOQO'#Dt'#DtOOQO'#Du'#DuOOQO'#Dv'#DvOOQO'#Dw'#DwOOQO'#Dx'#DxOOQO'#Dy'#DyOOQO'#Dz'#DzOOQO'#D{'#D{OOQO'#D|'#D|OOQO'#D}'#D}OOQO'#EO'#EOOOQO'#EP'#EPOOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETOOQO'#EU'#EUOOQO'#EV'#EVOOQO'#EW'#EWOOQO'#EX'#EXOOQO'#EY'#EYOOQO'#EZ'#EZOOQO'#E['#E[OOQO'#E]'#E]OOQO'#E^'#E^OOQO'#E_'#E_OOQO'#E`'#E`OOQO'#Ea'#EaOOQO'#Eb'#EbOOQO'#Ec'#EcOOQO'#Ed'#EdOOQO'#Ee'#EeOOQO'#Ef'#EfOOQO'#Eg'#EgOOQO'#Eh'#EhOOQO'#Ei'#EiOOQO'#Ej'#EjOOQO'#Ek'#EkOOQO'#El'#ElOOQO'#Em'#EmOOQO'#En'#EnOOQO'#Eo'#EoOOQO'#Ep'#EpOOQO'#Eq'#EqOOQO'#Er'#ErOOQO'#Es'#EsOOQO'#Et'#EtOOQO'#Eu'#EuOOQO'#Ev'#EvOOQO'#Ew'#EwOOQO'#Ex'#ExOOQO'#Ey'#EyOOQO'#Ez'#EzOOQO'#E{'#E{OOQO'#E|'#E|OOQO'#E}'#E}OOQO'#FO'#FOOOQO'#FP'#FPOOQO'#FQ'#FQOOQO'#FR'#FROOQO'#FS'#FSOOQO'#FT'#FTOOQO'#FU'#FUOOQO'#FV'#FVQOQPOOO1|QPO'#C}O2RQPO'#DSO(PQPO,59gO2YQQO,59gO3vQPO,59oO3vQPO,59oO3vQPO,59oO3vQPO,59oO3vQPO,59oO:kQPO,5;rO:kQPO,5;uO:|QPO,5<SOOQO,5:O,5:OOOQO,5;t,5;tO;eQQO,5;vO;lQQO,5;xOOQO'#DQ'#DQO=SQPO'#FbO=bQPO,5;{OOQO,5;{,5;{O=nQPO,5;{OOQO,5;z,5;zO=vQSO'#DOOOQO,59i,59iOOQO,59n,59nO>RQQO,59nOOQO1G/R1G/ROOQO'#DV'#DVO1|QPO'#DWOOQO'#Fx'#FxO>]QPO'#FxOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOOQO'#FX'#FXOD}QPO'#FXOEYQSO1G1^OOQO1G1a1G1aOEbQPO'#FYOOQO'#Fj'#FjOOQO1G1n1G1nOEmQPO1G1nOOQO1G1b1G1bOOQO'#Fc'#FcOErQPO,5;|OEwQPO,5<ROE|QSO1G1gOFXQPO1G1gOOQO1G1g1G1gOOQO,59j,59jOFaQPO,59jOYQPO'#FmOFiQPO1G/YOOQO1G/Y1G/YOFqQPO,59rOOQO,5<d,5<dONmQQO7+$uON}QQO7+$uO!!cQQO7+$uO!!yQQO7+$uO!$bQQO7+$uOOQO,5;s,5;sOOQO7+&x7+&xO!${QPO7+&}O!%SQPO7+'YOOQO1G1h1G1hOOQO1G1m1G1mO!%XQPO,5<YOOQO,5<Y,5<YOOQO7+'R7+'RO!%mQSO7+'ROOQO-E9l-E9lO!%xQSO1G/UO!&TQPO1G/UOOQO1G/U1G/UO!&]QQO,5<XOOQO-E9k-E9kOOQO7+$t7+$tO!&gQPO1G/^OOQO<<Ji<<JiO!-RQPO<<JiOOQO<<Jt<<JtOOQO<<Jm<<JmP!-WQSO'#FnOOQO,5<W,5<WOOQO7+$p7+$pO!-`QSO7+$pOOQO-E9j-E9jOOQO7+$x7+$xOOQOAN@TAN@TOOQO<<H[<<H[P!-kQSO'#Fl",stateData:"!-s~O$gOSmOS~OWQOXQOYQOZQO[QO]QO^QO_QO`QOaQObQOcQOdQOeQOu^O!Z[O$dVO$eVO$iXO$m_O$n`O$oaO$pbO$qcO$rdO$seO$tfO$ugO$vhO$wiO$xjO$ykO$zlO${mO$|nO$}oO%OpO%PqO%QrO%RsO%StO%TuO%UvO%VwO%WxO%XyO%YzO%Z{O%[|O%]}O%^!OO%_!PO%`!QO%a!RO%b!SO%c!TO%d!UO%e!VO%f!WO%g!XO%h!YO%i!ZO%j![O%k!]O%l!^O%m!_O%n!`O%o!aO%p!bO%q!cO%r!dO%s!eO%t!fO%u!gO%v!hO%w!iO%x!jO%y!kO%z!lO%{!mO%|!nO%}!oO&O!pO&P!qO&Q!rO&R!sO&S!tO&T!uO&U!vO&V!wO&W!xO&X!yO&Y!zO&Z!{O&[!|O&]!}O&_WO&`WO&aVO&dZO~O!Z#OO~Of#POg#PO$i#QO~OU#ZOV#TOh#WOi#XOj#WOx#TO{#TO|#TO}#TO!O#UO!P#UO!Q#VO!R#VO!S#VO!T#VO!U#VO!V#VO$]#[O&^#YO~O$d#^O$e#^O&a#^OW$RXX$RXY$RXZ$RX[$RX]$RX^$RX_$RX`$RXa$RXb$RXc$RXd$RXe$RXu$RX!Z$RX$d$RX$e$RX$i$RX$m$RX$n$RX$o$RX$p$RX$q$RX$r$RX$s$RX$t$RX$u$RX$v$RX$w$RX$x$RX$y$RX$z$RX${$RX$|$RX$}$RX%O$RX%P$RX%Q$RX%R$RX%S$RX%T$RX%U$RX%V$RX%W$RX%X$RX%Y$RX%Z$RX%[$RX%]$RX%^$RX%_$RX%`$RX%a$RX%b$RX%c$RX%d$RX%e$RX%f$RX%g$RX%h$RX%i$RX%j$RX%k$RX%l$RX%m$RX%n$RX%o$RX%p$RX%q$RX%r$RX%s$RX%t$RX%u$RX%v$RX%w$RX%x$RX%y$RX%z$RX%{$RX%|$RX%}$RX&O$RX&P$RX&Q$RX&R$RX&S$RX&T$RX&U$RX&V$RX&W$RX&X$RX&Y$RX&Z$RX&[$RX&]$RX&_$RX&`$RX&a$RX&d$RX~Os#bOu#aO&e#dO~O&dZOU$SXV$SXh$SXi$SXj$SXx$SX{$SX|$SX}$SX!O$SX!P$SX!Q$SX!R$SX!S$SX!T$SX!U$SX!V$SX$]$SX$c$SX&^$SX$k$SX$j$SX~O$i#gO~O$k#iO~PYOf#POg#POUoaVoahoaioajoaxoa{oa|oa}oa!Ooa!Poa!Qoa!Roa!Soa!Toa!Uoa!Voa$]oa$coa&^oa$koa$joa~OP#lOQ#mOR#mOW$lPX$lPY$lPZ$lP[$lP]$lP^$lP_$lP`$lPa$lPb$lPc$lPd$lPe$lPu$lP!Z$lP$d$lP$e$lP$i$lP$m$lP$n$lP$o$lP$p$lP$q$lP$r$lP$s$lP$t$lP$u$lP$v$lP$w$lP$x$lP$y$lP$z$lP${$lP$|$lP$}$lP%O$lP%P$lP%Q$lP%R$lP%S$lP%T$lP%U$lP%V$lP%W$lP%X$lP%Y$lP%Z$lP%[$lP%]$lP%^$lP%_$lP%`$lP%a$lP%b$lP%c$lP%d$lP%e$lP%f$lP%g$lP%h$lP%i$lP%j$lP%k$lP%l$lP%m$lP%n$lP%o$lP%p$lP%q$lP%r$lP%s$lP%t$lP%u$lP%v$lP%w$lP%x$lP%y$lP%z$lP%{$lP%|$lP%}$lP&O$lP&P$lP&Q$lP&R$lP&S$lP&T$lP&U$lP&V$lP&W$lP&X$lP&Y$lP&Z$lP&[$lP&]$lP&_$lP&`$lP&a$lP&d$lP~O$d#uO$e#uO&_#vO&`#vO&a#uO~Ok#zOl#zO$dVO$eVO&_#yO&`#yO&aVO~O$k#}O~P(UOx#TOU$QaV$Qah$Qai$Qaj$Qa{$Qa|$Qa}$Qa!O$Qa!P$Qa!Q$Qa!R$Qa!S$Qa!T$Qa!U$Qa!V$Qa$]$Qa$c$Qa&^$Qa$k$Qa$j$Qa~O!V$OO$W$OO$X$OO$Y$OO~O!V$OO$W$OO$X$OO$Y$OO$j$RO&e$TO~Os$VOu#aO$k$UO~O$j$WO$k$YO~P(UOQ#mOR#mOW$lXX$lXY$lXZ$lX[$lX]$lX^$lX_$lX`$lXa$lXb$lXc$lXd$lXe$lXu$lX!Z$lX$d$lX$e$lX$i$lX$m$lX$n$lX$o$lX$p$lX$q$lX$r$lX$s$lX$t$lX$u$lX$v$lX$w$lX$x$lX$y$lX$z$lX${$lX$|$lX$}$lX%O$lX%P$lX%Q$lX%R$lX%S$lX%T$lX%U$lX%V$lX%W$lX%X$lX%Y$lX%Z$lX%[$lX%]$lX%^$lX%_$lX%`$lX%a$lX%b$lX%c$lX%d$lX%e$lX%f$lX%g$lX%h$lX%i$lX%j$lX%k$lX%l$lX%m$lX%n$lX%o$lX%p$lX%q$lX%r$lX%s$lX%t$lX%u$lX%v$lX%w$lX%x$lX%y$lX%z$lX%{$lX%|$lX%}$lX&O$lX&P$lX&Q$lX&R$lX&S$lX&T$lX&U$lX&V$lX&W$lX&X$lX&Y$lX&Z$lX&[$lX&]$lX&_$lX&`$lX&a$lX&d$lX~O$d$bO$e$bO&a$bO~O&b$cO&c$dO~O$d#^O$e#^O&a#^O~O$i$eO~Ou$fO~Ou$gO~Os#bOu#aO&e$jO~O$j$kO&e$jO~O$j$mO$k$oO~O$j$WO$k$rO~OS$sOT$sOWzaXzaYzaZza[za]za^za_za`zaazabzaczadzaezauza!Zza$dza$eza$iza$mza$nza$oza$pza$qza$rza$sza$tza$uza$vza$wza$xza$yza$zza${za$|za$}za%Oza%Pza%Qza%Rza%Sza%Tza%Uza%Vza%Wza%Xza%Yza%Zza%[za%]za%^za%_za%`za%aza%bza%cza%dza%eza%fza%gza%hza%iza%jza%kza%lza%mza%nza%oza%pza%qza%rza%sza%tza%uza%vza%wza%xza%yza%zza%{za%|za%}za&Oza&Pza&Qza&Rza&Sza&Tza&Uza&Vza&Wza&Xza&Yza&Zza&[za&]za&_za&`za&aza&dza~Ox#TOUwqhwqiwqjwq!Owq!Pwq!Qwq!Rwq!Swq!Twq!Uwq!Vwq$]wq$cwq&^wq$kwq$jwq~OVwq{wq|wq}wq~PMcOV#TO{#TO|#TO}#TO~PMcOV#TOx#TO{#TO|#TO}#TO!O#UO!P#UOUwqhwqiwqjwq$]wq$cwq&^wq$kwq$jwq~O!Qwq!Rwq!Swq!Twq!Uwq!Vwq~P! _O!Q#VO!R#VO!S#VO!T#VO!U#VO!V#VO~P! _OV#TOh#WOj#WOx#TO{#TO|#TO}#TO!O#UO!P#UO!Q#VO!R#VO!S#VO!T#VO!U#VO!V#VO~OUwqiwq$]wq$cwq&^wq$kwq$jwq~P!#aO&b$tO~P:kO$k$vO~O!V$OO$W$OO$X$OO$Y$OO$j$ba&e$ba~Os#bOu#aO&e$wO~Os$yOu#aO$k$zO~O$j${O$k$zO~O$j$aa$k$aa~P(UO$i#gOWziXziYziZzi[zi]zi^zi_zi`ziazibziczidzieziuzi!Zzi$dzi$ezi$mzi$nzi$ozi$pzi$qzi$rzi$szi$tzi$uzi$vzi$wzi$xzi$yzi$zzi${zi$|zi$}zi%Ozi%Pzi%Qzi%Rzi%Szi%Tzi%Uzi%Vzi%Wzi%Xzi%Yzi%Zzi%[zi%]zi%^zi%_zi%`zi%azi%bzi%czi%dzi%ezi%fzi%gzi%hzi%izi%jzi%kzi%lzi%mzi%nzi%ozi%pzi%qzi%rzi%szi%tzi%uzi%vzi%wzi%xzi%yzi%zzi%{zi%|zi%}zi&Ozi&Pzi&Qzi&Rzi&Szi&Tzi&Uzi&Vzi&Wzi&Xzi&Yzi&Zzi&[zi&]zi&_zi&`zi&azi&dzi~O&b%OO~Os#bOu#aO~Os$yOu#aO$k%PO~Os$yOu#aO~O",goto:")v$mPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP$n$z%W%^P%gP%w$nP&Q&XPPPPPPPPPPP$n&c&oP&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o$n&{'U$n$n$n$n'e$n'q(Q(YPPP(Q$nP(aP(d(j(pPPPPP(wPPP)ge^OXY#Q#p#q#r#s#t$WeROXY#Q#p#q#r#s#t$WQ#RRR#k#SQ#h#PQ$Z#mR$}$sQ#cZQ$V#gU$h$R$k$xV$y$m${%QQ#SRQ#]UR#k#RZ#o#T#U#V#W#XY#n#T#U#V#W#XR$[#oeUOXY#Q#p#q#r#s#t$WeTOXY#Q#p#q#r#s#t$WQ#w#YQ#x#ZR$u$dd^OXY#Q#p#q#r#s#t$WR#{#[eYOXY#Q#p#q#r#s#t$Wd]OXY#Q#p#q#r#s#t$WR#f[Q#eZV$i$R$k$xQ$P#bT$Q#c$hR#|#[Q$n$VR$|$nQ$X#jR$q$XS$S#c#eR$l$SQSOQ#_XQ#`YQ#j#QQ$]#pQ$^#qQ$_#rQ$`#sQ$a#tR$p$WQ#p#TQ#q#UQ#r#VQ#s#WR#t#X",nodeNames:"⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",maxTerm:251,nodeProps:[["group",-12,31,37,39,54,134,136,137,138,139,140,142,150,"Expr"]],propSources:[Vpe],skippedNodes:[0,29],repeatNodeCount:3,tokenData:"4k~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*u!Q!R*z!R![+u![!]1O!^!_1z!_!`2X!`!a2n!b!c2{!c!}3Q!}#O3h#P#Q3m#Q#R3r#R#S3Q#S#T3w#T#o3Q#o#p4a#q#r4f#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~#qY$g~X^#lpq#l#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~$dQ!_!`$j#r#s$o~$oO!V~~$tO$Y~~$yWu~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f<%lO$t~%hOu~~%kRO;'S$t;'S;=`%t;=`O$t~%yXu~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f;=`<%l$t<%lO$t~&iP;=`<%l$t~&qSm~OY&lZ;'S&l;'S;=`&}<%lO&l~'QP;=`<%l&l~'YO}~~'_Wu~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u<%lO'Y~'zRO;'S'Y;'S;=`(T;=`O'Y~(YXu~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u;=`<%l'Y<%lO'Y~(xP;=`<%l'Y~)QO$i~~)VO$k~~)[O{~R)cO&`P!OQ~)hO$j~R)oO&_P!PQ~)rP!Q![)u~)zS&a~!Q![)u!g!h*W#R#S)o#X#Y*W~*ZR{|*d}!O*d!Q![*j~*gP!Q![*j~*oQ&a~!Q![*j#R#S*d~*zO|~~+P[&a~!O!P)o!Q![+u!g!h*W#R#S,m#W#X-X#X#Y*W#[#]-p#a#b.U#g#h.x#k#l/Z#l#m0d#m#n/u~+zZ&a~!O!P)o!Q![+u!g!h*W#R#S,m#W#X-X#X#Y*W#[#]-p#a#b.U#g#h.x#k#l/Z#m#n/u~,pP!Q![,s~,xT&a~!O!P)o!Q![,s!g!h*W#R#S,m#X#Y*W~-^P&a~!Q![-a~-dS!Q![-a#[#]-p#a#b.U#g#h.x~-uP&a~!Q![-x~-{R!Q![-x#a#b.U#g#h.x~.ZQ&a~!Q![.a#g#h.s~.dR!Q![.a#a#b.m#g#h.x~.pP#g#h.s~.xO&a~~.}P&a~!Q![/Q~/TQ!Q![/Q#a#b.m~/`P&a~!Q![/c~/fT!Q![/c#W#X-X#[#]-p#a#b.U#g#h.x~/zP&a~!Q![/}~0QU!Q![/}#W#X-X#[#]-p#a#b.U#g#h.x#k#l/Z~0gR!Q![0p!c!i0p#T#Z0p~0uR&a~!Q![0p!c!i0p#T#Z0pV1VT&cS!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1fR1kT!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PP!U~!_!`2S~2XO!T~~2^Q$WP!_!`2d#r#s2iQ2iO!QQ~2nO$X~~2sP!S~!_!`2v~2{O!R~~3QO$]~V3XT!ZRsS!Q![3Q![!]1f!c!}3Q#R#S3Q#T#o3Q~3mO&^~~3rO&b~~3wOx~~3zTO#S3w#S#T%c#T;'S3w;'S;=`4Z<%lO3w~4^P;=`<%l3w~4fO&d~~4kO&e~",tokenizers:[0,1,2],topRules:{PromQL:[0,30],MetricName:[1,153]},specialized:[{term:57,get:(t,e)=>yU(t)<<1,external:yU},{term:57,get:(t,e)=>TU(t)<<1|1,external:TU,extend:!0},{term:57,get:t=>Wpe[t]||-1}],tokenPrec:0}),Kpe=3,Xpe=4,Zpe=5,bV=9,vV=11,Jpe=15,SV=16,EV=17,yV=21,XL=24,ZL=25,JL=26,eme=30,aT=31,tme=32,p_=34,F_=35,U_=36,j_=37,Pf=38,cp=39,nme=40,TV=41,rme=42,ime=43,ame=44,sme=45,ome=46,lme=47,cI=48,uI=49,dI=50,fI=51,hI=52,G_=53,xV=54,cme=56,lE=57,ume=58,dme=59,fme=60,hme=61,pme=62,mme=63,gme=64,_me=65,bme=66,vme=67,Sme=68,Eme=69,yme=70,Tme=71,xme=72,Cme=73,Ome=74,Rme=75,Nme=76,Ame=77,wme=78,Ime=79,Dme=80,Mme=81,Lme=82,kme=83,Pme=84,Bme=85,Fme=86,Ume=87,jme=88,Gme=89,qme=90,$me=91,zme=92,Yme=93,Hme=94,Vme=95,Wme=96,Qme=97,Kme=98,Xme=99,Zme=100,Jme=101,ege=102,tge=103,nge=104,rge=105,ige=106,age=107,sge=108,oge=109,lge=110,cge=111,uge=112,dge=113,fge=114,hge=115,pge=116,mge=117,gge=118,_ge=119,bge=120,vge=121,Sge=122,Ege=123,yge=124,Tge=125,xge=126,Cge=127,Oge=128,Rge=129,Nge=130,Age=131,wge=132,Ige=133,q_=134,cE=135,ek=136,$_=137,CV=138,Yp=139,OV=140,I0=142,m_=143,mf=144,uE=145,D0=146,RV=147,NV=148,up=149,tk=150;var re;(function(t){t.none="none",t.vector="vector",t.scalar="scalar",t.matrix="matrix",t.string="string"})(re||(re={}));const Dge={[dme]:{name:"abs",argTypes:[re.vector],variadic:0,returnType:re.vector},[ume]:{name:"absent",argTypes:[re.vector],variadic:0,returnType:re.vector},[cme]:{name:"absent_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[fme]:{name:"acos",argTypes:[re.vector],variadic:0,returnType:re.vector},[hme]:{name:"acosh",argTypes:[re.vector],variadic:0,returnType:re.vector},[pme]:{name:"asin",argTypes:[re.vector],variadic:0,returnType:re.vector},[mme]:{name:"asinh",argTypes:[re.vector],variadic:0,returnType:re.vector},[gme]:{name:"atan",argTypes:[re.vector],variadic:0,returnType:re.vector},[_me]:{name:"atanh",argTypes:[re.vector],variadic:0,returnType:re.vector},[bme]:{name:"avg_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[vme]:{name:"ceil",argTypes:[re.vector],variadic:0,returnType:re.vector},[Sme]:{name:"changes",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Eme]:{name:"clamp",argTypes:[re.vector,re.scalar,re.scalar],variadic:0,returnType:re.vector},[yme]:{name:"clamp_max",argTypes:[re.vector,re.scalar],variadic:0,returnType:re.vector},[Tme]:{name:"clamp_min",argTypes:[re.vector,re.scalar],variadic:0,returnType:re.vector},[xme]:{name:"cos",argTypes:[re.vector],variadic:0,returnType:re.vector},[Cme]:{name:"Cosh",argTypes:[re.vector],variadic:0,returnType:re.vector},[Ome]:{name:"count_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Rme]:{name:"days_in_month",argTypes:[re.vector],variadic:1,returnType:re.vector},[Nme]:{name:"day_of_month",argTypes:[re.vector],variadic:1,returnType:re.vector},[Ame]:{name:"day_of_week",argTypes:[re.vector],variadic:1,returnType:re.vector},[wme]:{name:"day_of_year",argTypes:[re.vector],variadic:1,returnType:re.vector},[Ime]:{name:"deg",argTypes:[re.vector],variadic:0,returnType:re.vector},[Dme]:{name:"delta",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Mme]:{name:"deriv",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Lme]:{name:"exp",argTypes:[re.vector],variadic:0,returnType:re.vector},[kme]:{name:"floor",argTypes:[re.vector],variadic:0,returnType:re.vector},[qme]:{name:"histogram_avg",argTypes:[re.vector],variadic:0,returnType:re.vector},[Pme]:{name:"histogram_count",argTypes:[re.vector],variadic:0,returnType:re.vector},[Bme]:{name:"histogram_fraction",argTypes:[re.scalar,re.scalar,re.vector],variadic:0,returnType:re.vector},[Fme]:{name:"histogram_quantile",argTypes:[re.scalar,re.vector],variadic:0,returnType:re.vector},[Ume]:{name:"histogram_stddev",argTypes:[re.vector],variadic:0,returnType:re.vector},[jme]:{name:"histogram_stdvar",argTypes:[re.vector],variadic:0,returnType:re.vector},[Gme]:{name:"histogram_sum",argTypes:[re.vector],variadic:0,returnType:re.vector},[$me]:{name:"double_exponential_smoothing",argTypes:[re.matrix,re.scalar,re.scalar],variadic:0,returnType:re.vector},[zme]:{name:"hour",argTypes:[re.vector],variadic:1,returnType:re.vector},[Yme]:{name:"idelta",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Hme]:{name:"increase",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Vme]:{name:"info",argTypes:[re.vector,re.vector],variadic:1,returnType:re.vector},[Wme]:{name:"irate",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Qme]:{name:"label_replace",argTypes:[re.vector,re.string,re.string,re.string,re.string],variadic:0,returnType:re.vector},[Kme]:{name:"label_join",argTypes:[re.vector,re.string,re.string,re.string],variadic:-1,returnType:re.vector},[Xme]:{name:"last_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Zme]:{name:"ln",argTypes:[re.vector],variadic:0,returnType:re.vector},[Jme]:{name:"log10",argTypes:[re.vector],variadic:0,returnType:re.vector},[ege]:{name:"log2",argTypes:[re.vector],variadic:0,returnType:re.vector},[tge]:{name:"mad_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[nge]:{name:"max_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[rge]:{name:"min_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[ige]:{name:"minute",argTypes:[re.vector],variadic:1,returnType:re.vector},[age]:{name:"month",argTypes:[re.vector],variadic:1,returnType:re.vector},[sge]:{name:"pi",argTypes:[],variadic:0,returnType:re.vector},[oge]:{name:"predict_linear",argTypes:[re.matrix,re.scalar],variadic:0,returnType:re.vector},[lge]:{name:"present_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[cge]:{name:"quantile_over_time",argTypes:[re.scalar,re.matrix],variadic:0,returnType:re.vector},[uge]:{name:"rad",argTypes:[re.vector],variadic:0,returnType:re.vector},[dge]:{name:"rate",argTypes:[re.matrix],variadic:0,returnType:re.vector},[fge]:{name:"resets",argTypes:[re.matrix],variadic:0,returnType:re.vector},[hge]:{name:"round",argTypes:[re.vector,re.scalar],variadic:1,returnType:re.vector},[pge]:{name:"scalar",argTypes:[re.vector],variadic:0,returnType:re.scalar},[mge]:{name:"sgn",argTypes:[re.vector],variadic:0,returnType:re.vector},[gge]:{name:"sin",argTypes:[re.vector],variadic:0,returnType:re.vector},[_ge]:{name:"Sinh",argTypes:[re.vector],variadic:0,returnType:re.vector},[bge]:{name:"sort",argTypes:[re.vector],variadic:0,returnType:re.vector},[vge]:{name:"sort_desc",argTypes:[re.vector],variadic:0,returnType:re.vector},[Sge]:{name:"sort_by_label",argTypes:[re.vector,re.string],variadic:-1,returnType:re.vector},[Ege]:{name:"sort_by_label_desc",argTypes:[re.vector,re.string],variadic:-1,returnType:re.vector},[yge]:{name:"sqrt",argTypes:[re.vector],variadic:0,returnType:re.vector},[Tge]:{name:"stddev_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[xge]:{name:"stdvar_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Cge]:{name:"sum_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Oge]:{name:"tan",argTypes:[re.vector],variadic:0,returnType:re.vector},[Rge]:{name:"tanh",argTypes:[re.vector],variadic:0,returnType:re.vector},[Age]:{name:"time",argTypes:[],variadic:0,returnType:re.scalar},[Nge]:{name:"timestamp",argTypes:[re.vector],variadic:0,returnType:re.vector},[wge]:{name:"vector",argTypes:[re.scalar],variadic:0,returnType:re.vector},[Ige]:{name:"year",argTypes:[re.vector],variadic:1,returnType:re.vector}};function AV(t){return Dge[t]}class wV{constructor(e,n,r){this.type=e,this.name=n,this.value=r}matchesEmpty(){switch(this.type){case D0:return this.value==="";case G_:return this.value!=="";default:return!1}}}var Ml;(function(t){t.CardOneToOne="one-to-one",t.CardManyToOne="many-to-one",t.CardOneToMany="one-to-many",t.CardManyToMany="many-to-many"})(Ml||(Ml={}));function Mge(t,e){const n=new wV(0,"",""),r=t.cursor();switch(r.type.id){case up:if(!r.next())return n;do switch(r.type.id){case U_:n.name=e.sliceDoc(r.from,r.to).slice(1,-1);break;case uE:{const i=r.node.firstChild;i&&(n.type=i.type.id);break}case j_:n.value=e.sliceDoc(r.from,r.to).slice(1,-1);break}while(r.nextSibling());break;case mf:if(!r.next())return n;do switch(r.type.id){case F_:n.name=e.sliceDoc(r.from,r.to);break;case uE:{const i=r.node.firstChild;i&&(n.type=i.type.id);break}case j_:n.value=e.sliceDoc(r.from,r.to).slice(1,-1);break}while(r.nextSibling());break;case U_:n.name="__name__",n.value=e.sliceDoc(r.from,r.to).slice(1,-1),n.type=D0;break}return n}function IV(t,e){const n=[];return t.forEach(r=>{n.push(Mge(r,e))}),n}function Lge(t,e,n){if(!e||e.length===0)return t;let r="";for(const i of e){if(i.name===n||i.value==="")continue;let a="";switch(i.type){case D0:a="=";break;case G_:a="!=";break;case NV:a="!~";break;case RV:a="=~";break;default:a="="}const s=`${i.name}${a}"${i.value}"`;r===""?r=s:r=`${r},${s}`}return`${t}{${r}}`}function nk(t,e){for(;;){if(!t||t.type.id===e)return t;t=t.parent}return null}function td(t,...e){const n=t.cursor();if(!n.next())return!1;let r=!1;do r=e.some(i=>n.type.id===i||n.type.name===i);while(!r&&n.nextSibling());return r}function xU(t,...e){const n=t.cursor();if(!n.next())return!1;let r=0;do n.type.is(e[r])&&r++;while(r<e.length&&n.nextSibling());return r>=e.length}function nf(t){var e;if(!t)return re.none;switch(t.type.id){case aT:return re.vector;case I0:return re.vector;case $_:return nf(t.firstChild);case j_:return re.string;case ek:return re.scalar;case q_:return re.matrix;case Yp:return re.matrix;case CV:return nf(t.getChild("Expr"));case OV:return nf(t.getChild("Expr"));case cp:{const n=nf(t.firstChild),r=nf(t.lastChild);return n===re.scalar&&r===re.scalar?re.scalar:re.vector}case xV:{const n=(e=t.firstChild)===null||e===void 0?void 0:e.firstChild;return n?AV(n.type.id).returnType:re.none}case tk:return nf(t.getChild("Expr"));default:return re.none}}let pI=[],DV=[];(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,n=0;e<t.length;e++)(e%2?DV:pI).push(n=n+t[e])})();function kge(t){if(t<768)return!1;for(let e=0,n=pI.length;;){let r=e+n>>1;if(t<pI[r])n=r;else if(t>=DV[r])e=r+1;else return!0;if(e==n)return!1}}function CU(t){return t>=127462&&t<=127487}const OU=8205;function Pge(t,e,n=!0,r=!0){return(n?MV:Bge)(t,e,r)}function MV(t,e,n){if(e==t.length)return e;e&&LV(t.charCodeAt(e))&&kV(t.charCodeAt(e-1))&&e--;let r=gO(t,e);for(e+=RU(r);e<t.length;){let i=gO(t,e);if(r==OU||i==OU||n&&kge(i))e+=RU(i),r=i;else if(CU(i)){let a=0,s=e-2;for(;s>=0&&CU(gO(t,s));)a++,s-=2;if(a%2==0)break;e+=2}else break}return e}function Bge(t,e,n){for(;e>0;){let r=MV(t,e-2,n);if(r<e)return r;e--}return 0}function gO(t,e){let n=t.charCodeAt(e);if(!kV(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return LV(r)?(n-55296<<10)+(r-56320)+65536:n}function LV(t){return t>=56320&&t<57344}function kV(t){return t>=55296&&t<56320}function RU(t){return t<65536?1:2}class mn{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,r){[e,n]=Hp(this,e,n);let i=[];return this.decompose(0,e,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),Ll.from(i,this.length-(n-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=Hp(this,e,n);let r=[];return this.decompose(e,n,r,0),Ll.from(r,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),i=new g_(this),a=new g_(e);for(let s=n,o=n;;){if(i.next(s),a.next(s),s=0,i.lineBreak!=a.lineBreak||i.done!=a.done||i.value!=a.value)return!1;if(o+=i.value.length,i.done||o>=r)return!0}}iter(e=1){return new g_(this,e)}iterRange(e,n=this.length){return new PV(this,e,n)}iterLines(e,n){let r;if(e==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(e).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new BV(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?mn.empty:e.length<=32?new Gr(e):Ll.from(Gr.split(e,[]))}}class Gr extends mn{constructor(e,n=Fge(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,r,i){for(let a=0;;a++){let s=this.text[a],o=i+s.length;if((n?r:o)>=e)return new Uge(i,o,r,s);i=o+1,r++}}decompose(e,n,r,i){let a=e<=0&&n>=this.length?this:new Gr(NU(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(i&1){let s=r.pop(),o=mS(a.text,s.text.slice(),0,a.length);if(o.length<=32)r.push(new Gr(o,s.length+a.length));else{let c=o.length>>1;r.push(new Gr(o.slice(0,c)),new Gr(o.slice(c)))}}else r.push(a)}replace(e,n,r){if(!(r instanceof Gr))return super.replace(e,n,r);[e,n]=Hp(this,e,n);let i=mS(this.text,mS(r.text,NU(this.text,0,e)),n),a=this.length+r.length-(n-e);return i.length<=32?new Gr(i,a):Ll.from(Gr.split(i,[]),a)}sliceString(e,n=this.length,r=`
`){[e,n]=Hp(this,e,n);let i="";for(let a=0,s=0;a<=n&&s<this.text.length;s++){let o=this.text[s],c=a+o.length;a>e&&s&&(i+=r),e<c&&n>a&&(i+=o.slice(Math.max(0,e-a),n-a)),a=c+1}return i}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let r=[],i=-1;for(let a of e)r.push(a),i+=a.length+1,r.length==32&&(n.push(new Gr(r,i)),r=[],i=-1);return i>-1&&n.push(new Gr(r,i)),n}}class Ll extends mn{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let r of e)this.lines+=r.lines}lineInner(e,n,r,i){for(let a=0;;a++){let s=this.children[a],o=i+s.length,c=r+s.lines-1;if((n?c:o)>=e)return s.lineInner(e,n,r,i);i=o+1,r=c+1}}decompose(e,n,r,i){for(let a=0,s=0;s<=n&&a<this.children.length;a++){let o=this.children[a],c=s+o.length;if(e<=c&&n>=s){let d=i&((s<=e?1:0)|(c>=n?2:0));s>=e&&c<=n&&!d?r.push(o):o.decompose(e-s,n-s,r,d)}s=c+1}}replace(e,n,r){if([e,n]=Hp(this,e,n),r.lines<this.lines)for(let i=0,a=0;i<this.children.length;i++){let s=this.children[i],o=a+s.length;if(e>=a&&n<=o){let c=s.replace(e-a,n-a,r),d=this.lines-s.lines+c.lines;if(c.lines<d>>4&&c.lines>d>>6){let f=this.children.slice();return f[i]=c,new Ll(f,this.length-(n-e)+r.length)}return super.replace(a,o,c)}a=o+1}return super.replace(e,n,r)}sliceString(e,n=this.length,r=`
`){[e,n]=Hp(this,e,n);let i="";for(let a=0,s=0;a<this.children.length&&s<=n;a++){let o=this.children[a],c=s+o.length;s>e&&a&&(i+=r),e<c&&n>s&&(i+=o.sliceString(e-s,n-s,r)),s=c+1}return i}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof Ll))return 0;let r=0,[i,a,s,o]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==s||a==o)return r;let c=this.children[i],d=e.children[a];if(c!=d)return r+c.scanIdentical(d,n);r+=c.length+1}}static from(e,n=e.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let g of e)r+=g.lines;if(r<32){let g=[];for(let b of e)b.flatten(g);return new Gr(g,n)}let i=Math.max(32,r>>5),a=i<<1,s=i>>1,o=[],c=0,d=-1,f=[];function p(g){let b;if(g.lines>a&&g instanceof Ll)for(let S of g.children)p(S);else g.lines>s&&(c>s||!c)?(m(),o.push(g)):g instanceof Gr&&c&&(b=f[f.length-1])instanceof Gr&&g.lines+b.lines<=32?(c+=g.lines,d+=g.length+1,f[f.length-1]=new Gr(b.text.concat(g.text),b.length+1+g.length)):(c+g.lines>i&&m(),c+=g.lines,d+=g.length+1,f.push(g))}function m(){c!=0&&(o.push(f.length==1?f[0]:Ll.from(f,d)),d=-1,c=f.length=0)}for(let g of e)p(g);return m(),o.length==1?o[0]:new Ll(o,n)}}mn.empty=new Gr([""],0);function Fge(t){let e=-1;for(let n of t)e+=n.length+1;return e}function mS(t,e,n=0,r=1e9){for(let i=0,a=0,s=!0;a<t.length&&i<=r;a++){let o=t[a],c=i+o.length;c>=n&&(c>r&&(o=o.slice(0,r-i)),i<n&&(o=o.slice(n-i)),s?(e[e.length-1]+=o,s=!1):e.push(o)),i=c+1}return e}function NU(t,e,n){return mS(t,[""],e,n)}class g_{constructor(e,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?1:(e instanceof Gr?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],a=this.offsets[r],s=a>>1,o=i instanceof Gr?i.text.length:i.children.length;if(s==(n>0?o:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((a&1)==(n>0?0:1)){if(this.offsets[r]+=n,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(i instanceof Gr){let c=i.text[s+(n<0?-1:0)];if(this.offsets[r]+=n,c.length>Math.max(0,e))return this.value=e==0?c:n>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=i.children[s+(n<0?-1:0)];e>c.length?(e-=c.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(c),this.offsets.push(n>0?1:(c instanceof Gr?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class PV{constructor(e,n,r){this.value="",this.done=!1,this.cursor=new g_(e,n>r?-1:1),this.pos=n>r?e.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class BV{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:r,value:i}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(mn.prototype[Symbol.iterator]=function(){return this.iter()},g_.prototype[Symbol.iterator]=PV.prototype[Symbol.iterator]=BV.prototype[Symbol.iterator]=function(){return this});class Uge{constructor(e,n,r,i){this.from=e,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}}function Hp(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}function ea(t,e,n=!0,r=!0){return Pge(t,e,n,r)}function jge(t){return t>=56320&&t<57344}function Gge(t){return t>=55296&&t<56320}function Ka(t,e){let n=t.charCodeAt(e);if(!Gge(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return jge(r)?(n-55296<<10)+(r-56320)+65536:n}function rk(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function kl(t){return t<65536?1:2}const mI=/\r\n?|\n/;var Ji=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Ji||(Ji={}));class ql{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;n<this.sections.length;n+=2)e+=this.sections[n];return e}get newLength(){let e=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];e+=r<0?this.sections[n]:r}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let n=0,r=0,i=0;n<this.sections.length;){let a=this.sections[n++],s=this.sections[n++];s<0?(e(r,i,a),i+=a):i+=s,r+=a}}iterChangedRanges(e,n=!1){gI(this,e,n)}get invertedDesc(){let e=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];i<0?e.push(r,i):e.push(i,r)}return new ql(e)}composeDesc(e){return this.empty?e:e.empty?this:FV(this,e)}mapDesc(e,n=!1){return e.empty?this:_I(this,e,n)}mapPos(e,n=-1,r=Ji.Simple){let i=0,a=0;for(let s=0;s<this.sections.length;){let o=this.sections[s++],c=this.sections[s++],d=i+o;if(c<0){if(d>e)return a+(e-i);a+=o}else{if(r!=Ji.Simple&&d>=e&&(r==Ji.TrackDel&&i<e&&d>e||r==Ji.TrackBefore&&i<e||r==Ji.TrackAfter&&d>e))return null;if(d>e||d==e&&n<0&&!o)return e==i||n<0?a:a+c;a+=c}i=d}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return a}touchesRange(e,n=e){for(let r=0,i=0;r<this.sections.length&&i<=n;){let a=this.sections[r++],s=this.sections[r++],o=i+a;if(s>=0&&i<=n&&o>=e)return i<e&&o>n?"cover":!0;i=o}return!1}toString(){let e="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];e+=(e?" ":"")+r+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new ql(e)}static create(e){return new ql(e)}}class _i extends ql{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return gI(this,(n,r,i,a,s)=>e=e.replace(i,i+(r-n),s),!1),e}mapDesc(e,n=!1){return _I(this,e,n,!0)}invert(e){let n=this.sections.slice(),r=[];for(let i=0,a=0;i<n.length;i+=2){let s=n[i],o=n[i+1];if(o>=0){n[i]=o,n[i+1]=s;let c=i>>1;for(;r.length<c;)r.push(mn.empty);r.push(s?e.slice(a,a+s):mn.empty)}a+=s}return new _i(n,r)}compose(e){return this.empty?e:e.empty?this:FV(this,e,!0)}map(e,n=!1){return e.empty?this:_I(this,e,n,!0)}iterChanges(e,n=!1){gI(this,e,n)}get desc(){return ql.create(this.sections)}filter(e){let n=[],r=[],i=[],a=new z_(this);e:for(let s=0,o=0;;){let c=s==e.length?1e9:e[s++];for(;o<c||o==c&&a.len==0;){if(a.done)break e;let f=Math.min(a.len,c-o);ma(i,f,-1);let p=a.ins==-1?-1:a.off==0?a.ins:0;ma(n,f,p),p>0&&nd(r,n,a.text),a.forward(f),o+=f}let d=e[s++];for(;o<d;){if(a.done)break e;let f=Math.min(a.len,d-o);ma(n,f,-1),ma(i,f,a.ins==-1?-1:a.off==0?a.ins:0),a.forward(f),o+=f}}return{changes:new _i(n,r),filtered:ql.create(i)}}toJSON(){let e=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],i=this.sections[n+1];i<0?e.push(r):i==0?e.push([r]):e.push([r].concat(this.inserted[n>>1].toJSON()))}return e}static of(e,n,r){let i=[],a=[],s=0,o=null;function c(f=!1){if(!f&&!i.length)return;s<n&&ma(i,n-s,-1);let p=new _i(i,a);o=o?o.compose(p.map(o)):p,i=[],a=[],s=0}function d(f){if(Array.isArray(f))for(let p of f)d(p);else if(f instanceof _i){if(f.length!=n)throw new RangeError(`Mismatched change set length (got ${f.length}, expected ${n})`);c(),o=o?o.compose(f.map(o)):f}else{let{from:p,to:m=p,insert:g}=f;if(p>m||p<0||m>n)throw new RangeError(`Invalid change range ${p} to ${m} (in doc of length ${n})`);let b=g?typeof g=="string"?mn.of(g.split(r||mI)):g:mn.empty,S=b.length;if(p==m&&S==0)return;p<s&&c(),p>s&&ma(i,p-s,-1),ma(i,m-p,S),nd(a,i,b),s=m}}return d(e),c(!o),o}static empty(e){return new _i(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i];if(typeof a=="number")n.push(a,-1);else{if(!Array.isArray(a)||typeof a[0]!="number"||a.some((s,o)=>o&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(a.length==1)n.push(a[0],0);else{for(;r.length<i;)r.push(mn.empty);r[i]=mn.of(a.slice(1)),n.push(a[0],r[i].length)}}}return new _i(n,r)}static createSet(e,n){return new _i(e,n)}}function ma(t,e,n,r=!1){if(e==0&&n<=0)return;let i=t.length-2;i>=0&&n<=0&&n==t[i+1]?t[i]+=e:i>=0&&e==0&&t[i]==0?t[i+1]+=n:r?(t[i]+=e,t[i+1]+=n):t.push(e,n)}function nd(t,e,n){if(n.length==0)return;let r=e.length-2>>1;if(r<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<r;)t.push(mn.empty);t.push(n)}}function gI(t,e,n){let r=t.inserted;for(let i=0,a=0,s=0;s<t.sections.length;){let o=t.sections[s++],c=t.sections[s++];if(c<0)i+=o,a+=o;else{let d=i,f=a,p=mn.empty;for(;d+=o,f+=c,c&&r&&(p=p.append(r[s-2>>1])),!(n||s==t.sections.length||t.sections[s+1]<0);)o=t.sections[s++],c=t.sections[s++];e(i,d,a,f,p),i=d,a=f}}}function _I(t,e,n,r=!1){let i=[],a=r?[]:null,s=new z_(t),o=new z_(e);for(let c=-1;;){if(s.done&&o.len||o.done&&s.len)throw new Error("Mismatched change set lengths");if(s.ins==-1&&o.ins==-1){let d=Math.min(s.len,o.len);ma(i,d,-1),s.forward(d),o.forward(d)}else if(o.ins>=0&&(s.ins<0||c==s.i||s.off==0&&(o.len<s.len||o.len==s.len&&!n))){let d=o.len;for(ma(i,o.ins,-1);d;){let f=Math.min(s.len,d);s.ins>=0&&c<s.i&&s.len<=f&&(ma(i,0,s.ins),a&&nd(a,i,s.text),c=s.i),s.forward(f),d-=f}o.next()}else if(s.ins>=0){let d=0,f=s.len;for(;f;)if(o.ins==-1){let p=Math.min(f,o.len);d+=p,f-=p,o.forward(p)}else if(o.ins==0&&o.len<f)f-=o.len,o.next();else break;ma(i,d,c<s.i?s.ins:0),a&&c<s.i&&nd(a,i,s.text),c=s.i,s.forward(s.len-f)}else{if(s.done&&o.done)return a?_i.createSet(i,a):ql.create(i);throw new Error("Mismatched change set lengths")}}}function FV(t,e,n=!1){let r=[],i=n?[]:null,a=new z_(t),s=new z_(e);for(let o=!1;;){if(a.done&&s.done)return i?_i.createSet(r,i):ql.create(r);if(a.ins==0)ma(r,a.len,0,o),a.next();else if(s.len==0&&!s.done)ma(r,0,s.ins,o),i&&nd(i,r,s.text),s.next();else{if(a.done||s.done)throw new Error("Mismatched change set lengths");{let c=Math.min(a.len2,s.len),d=r.length;if(a.ins==-1){let f=s.ins==-1?-1:s.off?0:s.ins;ma(r,c,f,o),i&&f&&nd(i,r,s.text)}else s.ins==-1?(ma(r,a.off?0:a.len,c,o),i&&nd(i,r,a.textBit(c))):(ma(r,a.off?0:a.len,s.off?0:s.ins,o),i&&!s.off&&nd(i,r,s.text));o=(a.ins>c||s.ins>=0&&s.len>c)&&(o||r.length>d),a.forward2(c),s.forward(c)}}}}class z_{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length?mn.empty:e[n]}textBit(e){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!e?mn.empty:n[r].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class gf{constructor(e,n,r){this.from=e,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,n=-1){let r,i;return this.empty?r=i=e.mapPos(this.from,n):(r=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new gf(r,i,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return Fe.range(e,n);let r=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return Fe.range(this.anchor,r)}eq(e,n=!1){return this.anchor==e.anchor&&this.head==e.head&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Fe.range(e.anchor,e.head)}static create(e,n,r){return new gf(e,n,r)}}class Fe{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:Fe.create(this.ranges.map(r=>r.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(e.ranges[r],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Fe([this.main],0)}addRange(e,n=!0){return Fe.create([e].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(e,n=this.mainIndex){let r=this.ranges.slice();return r[n]=e,Fe.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Fe(e.ranges.map(n=>gf.fromJSON(n)),e.main)}static single(e,n=e){return new Fe([Fe.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;i<e.length;i++){let a=e[i];if(a.empty?a.from<=r:a.from<r)return Fe.normalized(e.slice(),n);r=a.to}return new Fe(e,n)}static cursor(e,n=0,r,i){return gf.create(e,e,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r))|(i??16777215)<<6)}static range(e,n,r,i){let a=(r??16777215)<<6|(i==null?7:Math.min(6,i));return n<e?gf.create(n,e,48|a):gf.create(e,n,(n>e?8:0)|a)}static normalized(e,n=0){let r=e[n];e.sort((i,a)=>i.from-a.from),n=e.indexOf(r);for(let i=1;i<e.length;i++){let a=e[i],s=e[i-1];if(a.empty?a.from<=s.to:a.from<s.to){let o=s.from,c=Math.max(a.to,s.to);i<=n&&n--,e.splice(--i,2,a.anchor>a.head?Fe.range(c,o):Fe.range(o,c))}}return new Fe(e,n)}}function UV(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let ik=0;class ut{constructor(e,n,r,i,a){this.combine=e,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=ik++,this.default=e([]),this.extensions=typeof a=="function"?a(this):a}get reader(){return this}static define(e={}){return new ut(e.combine||(n=>n),e.compareInput||((n,r)=>n===r),e.compare||(e.combine?(n,r)=>n===r:ak),!!e.static,e.enables)}of(e){return new gS([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new gS(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new gS(e,this,2,n)}from(e,n){return n||(n=r=>r),this.compute([e],r=>n(r.field(e)))}}function ak(t,e){return t==e||t.length==e.length&&t.every((n,r)=>n===e[r])}class gS{constructor(e,n,r,i){this.dependencies=e,this.facet=n,this.type=r,this.value=i,this.id=ik++}dynamicSlot(e){var n;let r=this.value,i=this.facet.compareInput,a=this.id,s=e[a]>>1,o=this.type==2,c=!1,d=!1,f=[];for(let p of this.dependencies)p=="doc"?c=!0:p=="selection"?d=!0:(((n=e[p.id])!==null&&n!==void 0?n:1)&1)==0&&f.push(e[p.id]);return{create(p){return p.values[s]=r(p),1},update(p,m){if(c&&m.docChanged||d&&(m.docChanged||m.selection)||bI(p,f)){let g=r(p);if(o?!AU(g,p.values[s],i):!i(g,p.values[s]))return p.values[s]=g,1}return 0},reconfigure:(p,m)=>{let g,b=m.config.address[a];if(b!=null){let S=fE(m,b);if(this.dependencies.every(y=>y instanceof ut?m.facet(y)===p.facet(y):y instanceof Ui?m.field(y,!1)==p.field(y,!1):!0)||(o?AU(g=r(p),S,i):i(g=r(p),S)))return p.values[s]=S,0}else g=r(p);return p.values[s]=g,1}}}}function AU(t,e,n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1;return!0}function bI(t,e){let n=!1;for(let r of e)__(t,r)&1&&(n=!0);return n}function qge(t,e,n){let r=n.map(c=>t[c.id]),i=n.map(c=>c.type),a=r.filter(c=>!(c&1)),s=t[e.id]>>1;function o(c){let d=[];for(let f=0;f<r.length;f++){let p=fE(c,r[f]);if(i[f]==2)for(let m of p)d.push(m);else d.push(p)}return e.combine(d)}return{create(c){for(let d of r)__(c,d);return c.values[s]=o(c),1},update(c,d){if(!bI(c,a))return 0;let f=o(c);return e.compare(f,c.values[s])?0:(c.values[s]=f,1)},reconfigure(c,d){let f=bI(c,r),p=d.config.facets[e.id],m=d.facet(e);if(p&&!f&&ak(n,p))return c.values[s]=m,0;let g=o(c);return e.compare(g,m)?(c.values[s]=m,0):(c.values[s]=g,1)}}}const bv=ut.define({static:!0});class Ui{constructor(e,n,r,i,a){this.id=e,this.createF=n,this.updateF=r,this.compareF=i,this.spec=a,this.provides=void 0}static define(e){let n=new Ui(ik++,e.create,e.update,e.compare||((r,i)=>r===i),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(bv).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let a=r.values[n],s=this.updateF(a,i);return this.compareF(a,s)?0:(r.values[n]=s,1)},reconfigure:(r,i)=>{let a=r.facet(bv),s=i.facet(bv),o;return(o=a.find(c=>c.field==this))&&o!=s.find(c=>c.field==this)?(r.values[n]=o.create(r),1):i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}}init(e){return[this,bv.of({field:this,create:e})]}get extension(){return this}}const uf={lowest:4,low:3,default:2,high:1,highest:0};function Bg(t){return e=>new jV(e,t)}const nu={highest:Bg(uf.highest),high:Bg(uf.high),default:Bg(uf.default),low:Bg(uf.low),lowest:Bg(uf.lowest)};class jV{constructor(e,n){this.inner=e,this.prec=n}}class sT{of(e){return new vI(this,e)}reconfigure(e){return sT.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class vI{constructor(e,n){this.compartment=e,this.inner=n}}class dE{constructor(e,n,r,i,a,s){for(this.base=e,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=a,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(e){let n=this.address[e.id];return n==null?e.default:this.staticValues[n>>1]}static resolve(e,n,r){let i=[],a=Object.create(null),s=new Map;for(let m of $ge(e,n,s))m instanceof Ui?i.push(m):(a[m.facet.id]||(a[m.facet.id]=[])).push(m);let o=Object.create(null),c=[],d=[];for(let m of i)o[m.id]=d.length<<1,d.push(g=>m.slot(g));let f=r==null?void 0:r.config.facets;for(let m in a){let g=a[m],b=g[0].facet,S=f&&f[m]||[];if(g.every(y=>y.type==0))if(o[b.id]=c.length<<1|1,ak(S,g))c.push(r.facet(b));else{let y=b.combine(g.map(E=>E.value));c.push(r&&b.compare(y,r.facet(b))?r.facet(b):y)}else{for(let y of g)y.type==0?(o[y.id]=c.length<<1|1,c.push(y.value)):(o[y.id]=d.length<<1,d.push(E=>y.dynamicSlot(E)));o[b.id]=d.length<<1,d.push(y=>qge(y,b,g))}}let p=d.map(m=>m(o));return new dE(e,s,p,o,c,a)}}function $ge(t,e,n){let r=[[],[],[],[],[]],i=new Map;function a(s,o){let c=i.get(s);if(c!=null){if(c<=o)return;let d=r[c].indexOf(s);d>-1&&r[c].splice(d,1),s instanceof vI&&n.delete(s.compartment)}if(i.set(s,o),Array.isArray(s))for(let d of s)a(d,o);else if(s instanceof vI){if(n.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let d=e.get(s.compartment)||s.inner;n.set(s.compartment,d),a(d,o)}else if(s instanceof jV)a(s.inner,s.prec);else if(s instanceof Ui)r[o].push(s),s.provides&&a(s.provides,o);else if(s instanceof gS)r[o].push(s),s.facet.extensions&&a(s.facet.extensions,uf.default);else{let d=s.extension;if(!d)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(d,o)}}return a(t,uf.default),r.reduce((s,o)=>s.concat(o))}function __(t,e){if(e&1)return 2;let n=e>>1,r=t.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;t.status[n]=4;let i=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|i}function fE(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const GV=ut.define(),SI=ut.define({combine:t=>t.some(e=>e),static:!0}),qV=ut.define({combine:t=>t.length?t[0]:void 0,static:!0}),$V=ut.define(),zV=ut.define(),YV=ut.define(),HV=ut.define({combine:t=>t.length?t[0]:!1});class Xl{constructor(e,n){this.type=e,this.value=n}static define(){return new zge}}class zge{of(e){return new Xl(this,e)}}class Yge{constructor(e){this.map=e}of(e){return new jt(this,e)}}class jt{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new jt(this.type,n)}is(e){return this.type==e}static define(e={}){return new Yge(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let r=[];for(let i of e){let a=i.map(n);a&&r.push(a)}return r}}jt.reconfigure=jt.define();jt.appendConfig=jt.define();class ii{constructor(e,n,r,i,a,s){this.startState=e,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=s,this._doc=null,this._state=null,r&&UV(r,n.newLength),a.some(o=>o.type==ii.time)||(this.annotations=a.concat(ii.time.of(Date.now())))}static create(e,n,r,i,a,s){return new ii(e,n,r,i,a,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(ii.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}ii.time=Xl.define();ii.userEvent=Xl.define();ii.addToHistory=Xl.define();ii.remote=Xl.define();function Hge(t,e){let n=[];for(let r=0,i=0;;){let a,s;if(r<t.length&&(i==e.length||e[i]>=t[r]))a=t[r++],s=t[r++];else if(i<e.length)a=e[i++],s=e[i++];else return n;!n.length||n[n.length-1]<a?n.push(a,s):n[n.length-1]<s&&(n[n.length-1]=s)}}function VV(t,e,n){var r;let i,a,s;return n?(i=e.changes,a=_i.empty(e.changes.length),s=t.changes.compose(e.changes)):(i=e.changes.map(t.changes),a=t.changes.mapDesc(e.changes,!0),s=t.changes.compose(i)),{changes:s,selection:e.selection?e.selection.map(a):(r=t.selection)===null||r===void 0?void 0:r.map(i),effects:jt.mapEffects(t.effects,i).concat(jt.mapEffects(e.effects,a)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function EI(t,e,n){let r=e.selection,i=dp(e.annotations);return e.userEvent&&(i=i.concat(ii.userEvent.of(e.userEvent))),{changes:e.changes instanceof _i?e.changes:_i.of(e.changes||[],n,t.facet(qV)),selection:r&&(r instanceof Fe?r:Fe.single(r.anchor,r.head)),effects:dp(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function WV(t,e,n){let r=EI(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(n=!1);for(let a=1;a<e.length;a++){e[a].filter===!1&&(n=!1);let s=!!e[a].sequential;r=VV(r,EI(t,e[a],s?r.changes.newLength:t.doc.length),s)}let i=ii.create(t,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return Wge(n?Vge(i):i)}function Vge(t){let e=t.startState,n=!0;for(let i of e.facet($V)){let a=i(t);if(a===!1){n=!1;break}Array.isArray(a)&&(n=n===!0?a:Hge(n,a))}if(n!==!0){let i,a;if(n===!1)a=t.changes.invertedDesc,i=_i.empty(e.doc.length);else{let s=t.changes.filter(n);i=s.changes,a=s.filtered.mapDesc(s.changes).invertedDesc}t=ii.create(e,i,t.selection&&t.selection.map(a),jt.mapEffects(t.effects,a),t.annotations,t.scrollIntoView)}let r=e.facet(zV);for(let i=r.length-1;i>=0;i--){let a=r[i](t);a instanceof ii?t=a:Array.isArray(a)&&a.length==1&&a[0]instanceof ii?t=a[0]:t=WV(e,dp(a),!1)}return t}function Wge(t){let e=t.startState,n=e.facet(YV),r=t;for(let i=n.length-1;i>=0;i--){let a=n[i](t);a&&Object.keys(a).length&&(r=VV(r,EI(e,a,t.changes.newLength),!0))}return r==t?t:ii.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}const Qge=[];function dp(t){return t==null?Qge:Array.isArray(t)?t:[t]}var Er=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Er||(Er={}));const Kge=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let yI;try{yI=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Xge(t){if(yI)return yI.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Kge.test(n)))return!0}return!1}function Zge(t){return e=>{if(!/\S/.test(e))return Er.Space;if(Xge(e))return Er.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return Er.Word;return Er.Other}}class un{constructor(e,n,r,i,a,s){this.config=e,this.doc=n,this.selection=r,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=a,s&&(s._state=this);for(let o=0;o<this.config.dynamicSlots.length;o++)__(this,o<<1);this.computeSlot=null}field(e,n=!0){let r=this.config.address[e.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return __(this,r),fE(this,r)}update(...e){return WV(this,e,!0)}applyTransaction(e){let n=this.config,{base:r,compartments:i}=n;for(let o of e.effects)o.is(sT.reconfigure)?(n&&(i=new Map,n.compartments.forEach((c,d)=>i.set(d,c)),n=null),i.set(o.value.compartment,o.value.extension)):o.is(jt.reconfigure)?(n=null,r=o.value):o.is(jt.appendConfig)&&(n=null,r=dp(r).concat(o.value));let a;n?a=e.startState.values.slice():(n=dE.resolve(r,i,this),a=new un(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(c,d)=>d.reconfigure(c,this),null).values);let s=e.startState.facet(SI)?e.newSelection:e.newSelection.asSingle();new un(n,e.newDoc,s,a,(o,c)=>c.update(o,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:Fe.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,r=e(n.ranges[0]),i=this.changes(r.changes),a=[r.range],s=dp(r.effects);for(let o=1;o<n.ranges.length;o++){let c=e(n.ranges[o]),d=this.changes(c.changes),f=d.map(i);for(let m=0;m<o;m++)a[m]=a[m].map(f);let p=i.mapDesc(d,!0);a.push(c.range.map(p)),i=i.compose(f),s=jt.mapEffects(s,f).concat(jt.mapEffects(dp(c.effects),p))}return{changes:i,selection:Fe.create(a,n.mainIndex),effects:s}}changes(e=[]){return e instanceof _i?e:_i.of(e,this.doc.length,this.facet(un.lineSeparator))}toText(e){return mn.of(e.split(this.facet(un.lineSeparator)||mI))}sliceDoc(e=0,n=this.doc.length){return this.doc.sliceString(e,n,this.lineBreak)}facet(e){let n=this.config.address[e.id];return n==null?e.default:(__(this,n),fE(this,n))}toJSON(e){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let i=e[r];i instanceof Ui&&this.config.address[i.id]!=null&&(n[r]=i.spec.toJSON(this.field(e[r]),this))}return n}static fromJSON(e,n={},r){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(r){for(let a in r)if(Object.prototype.hasOwnProperty.call(e,a)){let s=r[a],o=e[a];i.push(s.init(c=>s.spec.fromJSON(o,c)))}}return un.create({doc:e.doc,selection:Fe.fromJSON(e.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(e={}){let n=dE.resolve(e.extensions||[],new Map),r=e.doc instanceof mn?e.doc:mn.of((e.doc||"").split(n.staticFacet(un.lineSeparator)||mI)),i=e.selection?e.selection instanceof Fe?e.selection:Fe.single(e.selection.anchor,e.selection.head):Fe.single(0);return UV(i,r.length),n.staticFacet(SI)||(i=i.asSingle()),new un(n,r,i,n.dynamicSlots.map(()=>null),(a,s)=>s.create(a),null)}get tabSize(){return this.facet(un.tabSize)}get lineBreak(){return this.facet(un.lineSeparator)||`
`}get readOnly(){return this.facet(HV)}phrase(e,...n){for(let r of this.facet(un.phrases))if(Object.prototype.hasOwnProperty.call(r,e)){e=r[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let a=+(i||1);return!a||a>n.length?r:n[a-1]})),e}languageDataAt(e,n,r=-1){let i=[];for(let a of this.facet(GV))for(let s of a(this,n,r))Object.prototype.hasOwnProperty.call(s,e)&&i.push(s[e]);return i}charCategorizer(e){return Zge(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:r,length:i}=this.doc.lineAt(e),a=this.charCategorizer(e),s=e-r,o=e-r;for(;s>0;){let c=ea(n,s,!1);if(a(n.slice(c,s))!=Er.Word)break;s=c}for(;o<i;){let c=ea(n,o);if(a(n.slice(o,c))!=Er.Word)break;o=c}return s==o?null:Fe.range(s+r,o+r)}}un.allowMultipleSelections=SI;un.tabSize=ut.define({combine:t=>t.length?t[0]:4});un.lineSeparator=qV;un.readOnly=HV;un.phrases=ut.define({compare(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length==r.length&&n.every(i=>t[i]==e[i])}});un.languageData=GV;un.changeFilter=$V;un.transactionFilter=zV;un.transactionExtender=YV;sT.reconfigure=jt.define();function Zl(t,e,n={}){let r={};for(let i of t)for(let a of Object.keys(i)){let s=i[a],o=r[a];if(o===void 0)r[a]=s;else if(!(o===s||s===void 0))if(Object.hasOwnProperty.call(n,a))r[a]=n[a](o,s);else throw new Error("Config merge conflict for field "+a)}for(let i in e)r[i]===void 0&&(r[i]=e[i]);return r}class $f{eq(e){return this==e}range(e,n=e){return Y_.create(e,n,this)}}$f.prototype.startSide=$f.prototype.endSide=0;$f.prototype.point=!1;$f.prototype.mapMode=Ji.TrackDel;class Y_{constructor(e,n,r){this.from=e,this.to=n,this.value=r}static create(e,n,r){return new Y_(e,n,r)}}function TI(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class sk{constructor(e,n,r,i){this.from=e,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,n,r,i=0){let a=r?this.to:this.from;for(let s=i,o=a.length;;){if(s==o)return s;let c=s+o>>1,d=a[c]-e||(r?this.value[c].endSide:this.value[c].startSide)-n;if(c==s)return d>=0?s:o;d>=0?o=c:s=c+1}}between(e,n,r,i){for(let a=this.findIndex(n,-1e9,!0),s=this.findIndex(r,1e9,!1,a);a<s;a++)if(i(this.from[a]+e,this.to[a]+e,this.value[a])===!1)return!1}map(e,n){let r=[],i=[],a=[],s=-1,o=-1;for(let c=0;c<this.value.length;c++){let d=this.value[c],f=this.from[c]+e,p=this.to[c]+e,m,g;if(f==p){let b=n.mapPos(f,d.startSide,d.mapMode);if(b==null||(m=g=b,d.startSide!=d.endSide&&(g=n.mapPos(f,d.endSide),g<m)))continue}else if(m=n.mapPos(f,d.startSide),g=n.mapPos(p,d.endSide),m>g||m==g&&d.startSide>0&&d.endSide<=0)continue;(g-m||d.endSide-d.startSide)<0||(s<0&&(s=m),d.point&&(o=Math.max(o,g-m)),r.push(d),i.push(m-s),a.push(g-s))}return{mapped:r.length?new sk(i,a,r,o):null,pos:s}}}class bn{constructor(e,n,r,i){this.chunkPos=e,this.chunk=n,this.nextLayer=r,this.maxPoint=i}static create(e,n,r,i){return new bn(e,n,r,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:a=this.length}=e,s=e.filter;if(n.length==0&&!s)return this;if(r&&(n=n.slice().sort(TI)),this.isEmpty)return n.length?bn.of(n):this;let o=new QV(this,null,-1).goto(0),c=0,d=[],f=new Yc;for(;o.value||c<n.length;)if(c<n.length&&(o.from-n[c].from||o.startSide-n[c].value.startSide)>=0){let p=n[c++];f.addInner(p.from,p.to,p.value)||d.push(p)}else o.rangeIndex==1&&o.chunkIndex<this.chunk.length&&(c==n.length||this.chunkEnd(o.chunkIndex)<n[c].from)&&(!s||i>this.chunkEnd(o.chunkIndex)||a<this.chunkPos[o.chunkIndex])&&f.addChunk(this.chunkPos[o.chunkIndex],this.chunk[o.chunkIndex])?o.nextChunk():((!s||i>o.to||a<o.from||s(o.from,o.to,o.value))&&(f.addInner(o.from,o.to,o.value)||d.push(Y_.create(o.from,o.to,o.value))),o.next());return f.finishInner(this.nextLayer.isEmpty&&!d.length?bn.empty:this.nextLayer.update({add:d,filter:s,filterFrom:i,filterTo:a}))}map(e){if(e.empty||this.isEmpty)return this;let n=[],r=[],i=-1;for(let s=0;s<this.chunk.length;s++){let o=this.chunkPos[s],c=this.chunk[s],d=e.touchesRange(o,o+c.length);if(d===!1)i=Math.max(i,c.maxPoint),n.push(c),r.push(e.mapPos(o));else if(d===!0){let{mapped:f,pos:p}=c.map(o,e);f&&(i=Math.max(i,f.maxPoint),n.push(f),r.push(p))}}let a=this.nextLayer.map(e);return n.length==0?a:new bn(r,n,a||bn.empty,i)}between(e,n,r){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let a=this.chunkPos[i],s=this.chunk[i];if(n>=a&&e<=a+s.length&&s.between(a,e-a,n-a,r)===!1)return}this.nextLayer.between(e,n,r)}}iter(e=0){return H_.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return H_.from(e).goto(n)}static compare(e,n,r,i,a=-1){let s=e.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=a),o=n.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=a),c=wU(s,o,r),d=new Fg(s,c,a),f=new Fg(o,c,a);r.iterGaps((p,m,g)=>IU(d,p,f,m,g,i)),r.empty&&r.length==0&&IU(d,0,f,0,0,i)}static eq(e,n,r=0,i){i==null&&(i=999999999);let a=e.filter(f=>!f.isEmpty&&n.indexOf(f)<0),s=n.filter(f=>!f.isEmpty&&e.indexOf(f)<0);if(a.length!=s.length)return!1;if(!a.length)return!0;let o=wU(a,s),c=new Fg(a,o,0).goto(r),d=new Fg(s,o,0).goto(r);for(;;){if(c.to!=d.to||!xI(c.active,d.active)||c.point&&(!d.point||!c.point.eq(d.point)))return!1;if(c.to>i)return!0;c.next(),d.next()}}static spans(e,n,r,i,a=-1){let s=new Fg(e,null,a).goto(n),o=n,c=s.openStart;for(;;){let d=Math.min(s.to,r);if(s.point){let f=s.activeForPoint(s.to),p=s.pointFrom<n?f.length+1:s.point.startSide<0?f.length:Math.min(f.length,c);i.point(o,d,s.point,f,p,s.pointRank),c=Math.min(s.openEnd(d),f.length)}else d>o&&(i.span(o,d,s.active,c),c=s.openEnd(d));if(s.to>r)return c+(s.point&&s.to>r?1:0);o=s.to,s.next()}}static of(e,n=!1){let r=new Yc;for(let i of e instanceof Y_?[e]:n?Jge(e):e)r.add(i.from,i.to,i.value);return r.finish()}static join(e){if(!e.length)return bn.empty;let n=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let i=e[r];i!=bn.empty;i=i.nextLayer)n=new bn(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}bn.empty=new bn([],[],null,-1);function Jge(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let r=t[n];if(TI(e,r)>0)return t.slice().sort(TI);e=r}return t}bn.empty.nextLayer=bn.empty;class Yc{finishChunk(e){this.chunks.push(new sk(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,r){this.addInner(e,n,r)||(this.nextLayer||(this.nextLayer=new Yc)).add(e,n,r)}addInner(e,n,r){let i=e-this.lastTo||r.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),!0)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+e,this.lastTo=n.to[r]+e,!0}finish(){return this.finishInner(bn.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=bn.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function wU(t,e,n){let r=new Map;for(let a of t)for(let s=0;s<a.chunk.length;s++)a.chunk[s].maxPoint<=0&&r.set(a.chunk[s],a.chunkPos[s]);let i=new Set;for(let a of e)for(let s=0;s<a.chunk.length;s++){let o=r.get(a.chunk[s]);o!=null&&(n?n.mapPos(o):o)==a.chunkPos[s]&&!(n!=null&&n.touchesRange(o,o+a.chunk[s].length))&&i.add(a.chunk[s])}return i}class QV{constructor(e,n,r,i=0){this.layer=e,this.skip=n,this.minPoint=r,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,n,!1),this}gotoInner(e,n,r){for(;this.chunkIndex<this.layer.chunk.length;){let i=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(i)||this.layer.chunkEnd(this.chunkIndex)<e||i.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],n,!0);(!r||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(e,n){(this.to-e||this.endSide-n)<0&&this.gotoInner(e,n,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],r=e+n.from[this.rangeIndex];if(this.from=r,this.to=e+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class H_{constructor(e){this.heap=e}static from(e,n=null,r=-1){let i=[];for(let a=0;a<e.length;a++)for(let s=e[a];!s.isEmpty;s=s.nextLayer)s.maxPoint>=r&&i.push(new QV(s,n,r,a));return i.length==1?i[0]:new H_(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let r of this.heap)r.goto(e,n);for(let r=this.heap.length>>1;r>=0;r--)_O(this.heap,r);return this.next(),this}forward(e,n){for(let r of this.heap)r.forward(e,n);for(let r=this.heap.length>>1;r>=0;r--)_O(this.heap,r);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),_O(this.heap,0)}}}function _O(t,e){for(let n=t[e];;){let r=(e<<1)+1;if(r>=t.length)break;let i=t[r];if(r+1<t.length&&i.compare(t[r+1])>=0&&(i=t[r+1],r++),n.compare(i)<0)break;t[r]=n,t[e]=i,e=r}}class Fg{constructor(e,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=H_.from(e,n,r)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){vv(this.active,e),vv(this.activeTo,e),vv(this.activeRank,e),this.minActive=DU(this.active,this.activeTo)}addActive(e){let n=0,{value:r,to:i,rank:a}=this.cursor;for(;n<this.activeRank.length&&(a-this.activeRank[n]||i-this.activeTo[n])>0;)n++;Sv(this.active,n,r),Sv(this.activeTo,n,i),Sv(this.activeRank,n,a),e&&Sv(e,n,this.cursor.from),this.minActive=DU(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),r&&vv(r,i)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let a=this.cursor.value;if(!a.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=a,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=a.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let i=r.length-1;i>=0&&r[i]<e;i--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let n=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(e){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)n++;return n}}function IU(t,e,n,r,i,a){t.goto(e),n.goto(r);let s=r+i,o=r,c=r-e;for(;;){let d=t.to+c-n.to,f=d||t.endSide-n.endSide,p=f<0?t.to+c:n.to,m=Math.min(p,s);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&xI(t.activeForPoint(t.to),n.activeForPoint(n.to))||a.comparePoint(o,m,t.point,n.point):m>o&&!xI(t.active,n.active)&&a.compareRange(o,m,t.active,n.active),p>s)break;(d||t.openEnd!=n.openEnd)&&a.boundChange&&a.boundChange(p),o=p,f<=0&&t.next(),f>=0&&n.next()}}function xI(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].eq(e[n]))return!1;return!0}function vv(t,e){for(let n=e,r=t.length-1;n<r;n++)t[n]=t[n+1];t.pop()}function Sv(t,e,n){for(let r=t.length-1;r>=e;r--)t[r+1]=t[r];t[e]=n}function DU(t,e){let n=-1,r=1e9;for(let i=0;i<e.length;i++)(e[i]-r||t[i].endSide-t[n].endSide)<0&&(n=i,r=e[i]);return n}function Tm(t,e,n=t.length){let r=0;for(let i=0;i<n&&i<t.length;)t.charCodeAt(i)==9?(r+=e-r%e,i++):(r++,i=ea(t,i));return r}function CI(t,e,n,r){for(let i=0,a=0;;){if(a>=e)return i;if(i==t.length)break;a+=t.charCodeAt(i)==9?n-a%n:1,i=ea(t,i)}return r===!0?-1:t.length}const OI="ͼ",MU=typeof Symbol>"u"?"__"+OI:Symbol.for(OI),RI=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),LU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class hd{constructor(e,n){this.rules=[];let{finish:r}=n||{};function i(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function a(s,o,c,d){let f=[],p=/^@(\w+)\b/.exec(s[0]),m=p&&p[1]=="keyframes";if(p&&o==null)return c.push(s[0]+";");for(let g in o){let b=o[g];if(/&/.test(g))a(g.split(/,\s*/).map(S=>s.map(y=>S.replace(/&/,y))).reduce((S,y)=>S.concat(y)),b,c);else if(b&&typeof b=="object"){if(!p)throw new RangeError("The value of a property ("+g+") should be a primitive value.");a(i(g),b,f,m)}else b!=null&&f.push(g.replace(/_.*/,"").replace(/[A-Z]/g,S=>"-"+S.toLowerCase())+": "+b+";")}(f.length||m)&&c.push((r&&!p&&!d?s.map(r):s).join(", ")+" {"+f.join(" ")+"}")}for(let s in e)a(i(s),e[s],this.rules)}getRules(){return this.rules.join(`
`)}static newName(){let e=LU[MU]||1;return LU[MU]=e+1,OI+e.toString(36)}static mount(e,n,r){let i=e[RI],a=r&&r.nonce;i?a&&i.setNonce(a):i=new e_e(e,a),i.mount(Array.isArray(n)?n:[n],e)}}let kU=new Map;class e_e{constructor(e,n){let r=e.ownerDocument||e,i=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let a=kU.get(r);if(a)return e[RI]=a;this.sheet=new i.CSSStyleSheet,kU.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[RI]=this}mount(e,n){let r=this.sheet,i=0,a=0;for(let s=0;s<e.length;s++){let o=e[s],c=this.modules.indexOf(o);if(c<a&&c>-1&&(this.modules.splice(c,1),a--,c=-1),c==-1){if(this.modules.splice(a++,0,o),r)for(let d=0;d<o.rules.length;d++)r.insertRule(o.rules[d],i++)}else{for(;a<c;)i+=this.modules[a++].rules.length;i+=o.rules.length,a++}}if(r)n.adoptedStyleSheets.indexOf(this.sheet)<0&&(n.adoptedStyleSheets=[this.sheet,...n.adoptedStyleSheets]);else{let s="";for(let c=0;c<this.modules.length;c++)s+=this.modules[c].getRules()+`
`;this.styleTag.textContent=s;let o=n.head||n;this.styleTag.parentNode!=o&&o.insertBefore(this.styleTag,o.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var pd={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},V_={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},t_e=typeof navigator<"u"&&/Mac/.test(navigator.platform),n_e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Zi=0;Zi<10;Zi++)pd[48+Zi]=pd[96+Zi]=String(Zi);for(var Zi=1;Zi<=24;Zi++)pd[Zi+111]="F"+Zi;for(var Zi=65;Zi<=90;Zi++)pd[Zi]=String.fromCharCode(Zi+32),V_[Zi]=String.fromCharCode(Zi);for(var bO in pd)V_.hasOwnProperty(bO)||(V_[bO]=pd[bO]);function r_e(t){var e=t_e&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||n_e&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?V_:pd)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function W_(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function NI(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function _S(t,e){if(!e.anchorNode)return!1;try{return NI(t,e.anchorNode)}catch{return!1}}function Vp(t){return t.nodeType==3?Yf(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function b_(t,e,n,r){return n?PU(t,e,n,r,-1)||PU(t,e,n,r,1):!1}function zf(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function hE(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function PU(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:Hl(t))){if(t.nodeName=="DIV")return!1;let a=t.parentNode;if(!a||a.nodeType!=1)return!1;e=zf(t)+(i<0?0:1),t=a}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=i<0?Hl(t):0}else return!1}}function Hl(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function M0(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function i_e(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function KV(t,e){let n=e.width/t.offsetWidth,r=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(e.height-t.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function a_e(t,e,n,r,i,a,s,o){let c=t.ownerDocument,d=c.defaultView||window;for(let f=t,p=!1;f&&!p;)if(f.nodeType==1){let m,g=f==c.body,b=1,S=1;if(g)m=i_e(d);else{if(/^(fixed|sticky)$/.test(getComputedStyle(f).position)&&(p=!0),f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let T=f.getBoundingClientRect();({scaleX:b,scaleY:S}=KV(f,T)),m={left:T.left,right:T.left+f.clientWidth*b,top:T.top,bottom:T.top+f.clientHeight*S}}let y=0,E=0;if(i=="nearest")e.top<m.top?(E=e.top-(m.top+s),n>0&&e.bottom>m.bottom+E&&(E=e.bottom-m.bottom+s)):e.bottom>m.bottom&&(E=e.bottom-m.bottom+s,n<0&&e.top-E<m.top&&(E=e.top-(m.top+s)));else{let T=e.bottom-e.top,x=m.bottom-m.top;E=(i=="center"&&T<=x?e.top+T/2-x/2:i=="start"||i=="center"&&n<0?e.top-s:e.bottom-x+s)-m.top}if(r=="nearest"?e.left<m.left?(y=e.left-(m.left+a),n>0&&e.right>m.right+y&&(y=e.right-m.right+a)):e.right>m.right&&(y=e.right-m.right+a,n<0&&e.left<m.left+y&&(y=e.left-(m.left+a))):y=(r=="center"?e.left+(e.right-e.left)/2-(m.right-m.left)/2:r=="start"==o?e.left-a:e.right-(m.right-m.left)+a)-m.left,y||E)if(g)d.scrollBy(y,E);else{let T=0,x=0;if(E){let O=f.scrollTop;f.scrollTop+=E/S,x=(f.scrollTop-O)*S}if(y){let O=f.scrollLeft;f.scrollLeft+=y/b,T=(f.scrollLeft-O)*b}e={left:e.left-T,top:e.top-x,right:e.right-T,bottom:e.bottom-x},T&&Math.abs(T-y)<1&&(r="nearest"),x&&Math.abs(x-E)<1&&(i="nearest")}if(g)break;(e.top<m.top||e.bottom>m.bottom||e.left<m.left||e.right>m.right)&&(e={left:Math.max(e.left,m.left),right:Math.min(e.right,m.right),top:Math.max(e.top,m.top),bottom:Math.min(e.bottom,m.bottom)}),f=f.assignedSlot||f.parentNode}else if(f.nodeType==11)f=f.host;else break}function s_e(t){let e=t.ownerDocument,n,r;for(let i=t.parentNode;i&&!(i==e.body||n&&r);)if(i.nodeType==1)!r&&i.scrollHeight>i.clientHeight&&(r=i),!n&&i.scrollWidth>i.clientWidth&&(n=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return{x:n,y:r}}class o_e{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:r}=e;this.set(n,Math.min(e.anchorOffset,n?Hl(n):0),r,Math.min(e.focusOffset,r?Hl(r):0))}set(e,n,r,i){this.anchorNode=e,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let jh=null;function XV(t){if(t.setActive)return t.setActive();if(jh)return t.focus(jh);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(jh==null?{get preventScroll(){return jh={preventScroll:!0},!0}}:void 0),!jh){jh=!1;for(let n=0;n<e.length;){let r=e[n++],i=e[n++],a=e[n++];r.scrollTop!=i&&(r.scrollTop=i),r.scrollLeft!=a&&(r.scrollLeft=a)}}}let BU;function Yf(t,e,n=e){let r=BU||(BU=document.createRange());return r.setEnd(t,n),r.setStart(t,e),r}function fp(t,e,n,r){let i={key:e,code:e,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let a=new KeyboardEvent("keydown",i);a.synthetic=!0,t.dispatchEvent(a);let s=new KeyboardEvent("keyup",i);return s.synthetic=!0,t.dispatchEvent(s),a.defaultPrevented||s.defaultPrevented}function l_e(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function ZV(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function c_e(t,e){let n=e.focusNode,r=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=r)return!1;for(r=Math.min(r,Hl(n));;)if(r){if(n.nodeType!=1)return!1;let i=n.childNodes[r-1];i.contentEditable=="false"?r--:(n=i,r=Hl(n))}else{if(n==t)return!0;r=zf(n),n=n.parentNode}}function JV(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function e7(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&r>0)return{node:n,offset:r};if(n.nodeType==1&&r>0){if(n.contentEditable=="false")return null;n=n.childNodes[r-1],r=Hl(n)}else if(n.parentNode&&!hE(n))r=zf(n),n=n.parentNode;else return null}}function t7(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&r<n.nodeValue.length)return{node:n,offset:r};if(n.nodeType==1&&r<n.childNodes.length){if(n.contentEditable=="false")return null;n=n.childNodes[r],r=0}else if(n.parentNode&&!hE(n))r=zf(n)+1,n=n.parentNode;else return null}}class ba{constructor(e,n,r=!0){this.node=e,this.offset=n,this.precise=r}static before(e,n){return new ba(e.parentNode,zf(e),n)}static after(e,n){return new ba(e.parentNode,zf(e)+1,n)}}const ok=[];class er{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let n=this.posAtStart;for(let r of this.children){if(r==e)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,n){if(this.flags&2){let r=this.dom,i=null,a;for(let s of this.children){if(s.flags&7){if(!s.dom&&(a=i?i.nextSibling:r.firstChild)){let o=er.get(a);(!o||!o.parent&&o.canReuseDOM(s))&&s.reuseDOM(a)}s.sync(e,n),s.flags&=-8}if(a=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&a!=s.dom&&(n.written=!0),s.dom.parentNode==r)for(;a&&a!=s.dom;)a=FU(a);else r.insertBefore(s.dom,a);i=s.dom}for(a=i?i.nextSibling:r.firstChild,a&&n&&n.node==r&&(n.written=!0);a;)a=FU(a)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(e,n),r.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,n){let r;if(e==this.dom)r=this.dom.childNodes[n];else{let i=Hl(e)==0?0:n==0?-1:1;for(;;){let a=e.parentNode;if(a==this.dom)break;i==0&&a.firstChild!=a.lastChild&&(e==a.firstChild?i=-1:i=1),e=a}i<0?r=e:r=e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!er.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,a=0;;i++){let s=this.children[i];if(s.dom==r)return a;a+=s.length+s.breakAfter}}domBoundsAround(e,n,r=0){let i=-1,a=-1,s=-1,o=-1;for(let c=0,d=r,f=r;c<this.children.length;c++){let p=this.children[c],m=d+p.length;if(d<e&&m>n)return p.domBoundsAround(e,n,d);if(m>=e&&i==-1&&(i=c,a=d),d>n&&p.dom.parentNode==this.dom){s=c,o=f;break}f=m,d=m+p.breakAfter}return{from:a,to:o<0?r+this.length:o,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s<this.children.length&&s>=0?this.children[s].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,r=ok){this.markDirty();for(let i=e;i<n;i++){let a=this.children[i];a.parent==this&&r.indexOf(a)<0&&a.destroy()}r.length<250?this.children.splice(e,n-e,...r):this.children=[].concat(this.children.slice(0,e),r,this.children.slice(n));for(let i=0;i<r.length;i++)r[i].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new n7(this.children,e,this.children.length)}childPos(e,n=1){return this.childCursor().findPos(e,n)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,n,r,i,a,s){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}er.prototype.breakAfter=0;function FU(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class n7{constructor(e,n,r){this.children=e,this.pos=n,this.i=r,this.off=0}findPos(e,n=1){for(;;){if(e>this.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function r7(t,e,n,r,i,a,s,o,c){let{children:d}=t,f=d.length?d[e]:null,p=a.length?a[a.length-1]:null,m=p?p.breakAfter:s;if(!(e==r&&f&&!s&&!m&&a.length<2&&f.merge(n,i,a.length?p:null,n==0,o,c))){if(r<d.length){let g=d[r];g&&(i<g.length||g.breakAfter&&(p!=null&&p.breakAfter))?(e==r&&(g=g.split(i),i=0),!m&&p&&g.merge(0,i,p,!0,0,c)?a[a.length-1]=g:((i||g.children.length&&!g.children[0].length)&&g.merge(0,i,null,!1,0,c),a.push(g))):g!=null&&g.breakAfter&&(p?p.breakAfter=1:s=1),r++}for(f&&(f.breakAfter=s,n>0&&(!s&&a.length&&f.merge(n,f.length,a[0],!1,o,0)?f.breakAfter=a.shift().breakAfter:(n<f.length||f.children.length&&f.children[f.children.length-1].length==0)&&f.merge(n,f.length,null,!1,o,0),e++));e<r&&a.length;)if(d[r-1].become(a[a.length-1]))r--,a.pop(),c=a.length?0:o;else if(d[e].become(a[0]))e++,a.shift(),o=a.length?0:c;else break;!a.length&&e&&r<d.length&&!d[e-1].breakAfter&&d[r].merge(0,0,d[e-1],!1,o,c)&&e--,(e<r||a.length)&&t.replaceChildren(e,r,a)}}function i7(t,e,n,r,i,a){let s=t.childCursor(),{i:o,off:c}=s.findPos(n,1),{i:d,off:f}=s.findPos(e,-1),p=e-n;for(let m of r)p+=m.length;t.length+=p,r7(t,d,f,o,c,r,0,i,a)}let Xa=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},AI=typeof document<"u"?document:{documentElement:{style:{}}};const wI=/Edge\/(\d+)/.exec(Xa.userAgent),a7=/MSIE \d/.test(Xa.userAgent),II=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Xa.userAgent),oT=!!(a7||II||wI),UU=!oT&&/gecko\/(\d+)/i.test(Xa.userAgent),vO=!oT&&/Chrome\/(\d+)/.exec(Xa.userAgent),u_e="webkitFontSmoothing"in AI.documentElement.style,s7=!oT&&/Apple Computer/.test(Xa.vendor),jU=s7&&(/Mobile\/\w+/.test(Xa.userAgent)||Xa.maxTouchPoints>2);var gt={mac:jU||/Mac/.test(Xa.platform),windows:/Win/.test(Xa.platform),linux:/Linux|X11/.test(Xa.platform),ie:oT,ie_version:a7?AI.documentMode||6:II?+II[1]:wI?+wI[1]:0,gecko:UU,gecko_version:UU?+(/Firefox\/(\d+)/.exec(Xa.userAgent)||[0,0])[1]:0,chrome:!!vO,chrome_version:vO?+vO[1]:0,ios:jU,android:/Android\b/.test(Xa.userAgent),safari:s7,webkit_version:u_e?+(/\bAppleWebKit\/(\d+)/.exec(Xa.userAgent)||[0,0])[1]:0,tabSize:AI.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const d_e=256;class il extends er{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,n,r){return this.flags&8||r&&(!(r instanceof il)||this.length-(n-e)+r.length>d_e||r.flags&8)?!1:(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(e){let n=new il(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new ba(this.dom,e)}domBoundsAround(e,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return f_e(this.dom,e,n)}}class Hc extends er{constructor(e,n=[],r=0){super(),this.mark=e,this.children=n,this.length=r;for(let i of n)i.setParent(this)}setAttrs(e){if(ZV(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,r,i,a,s){return r&&(!(r instanceof Hc&&r.mark.eq(this.mark))||e&&a<=0||n<this.length&&s<=0)?!1:(i7(this,e,n,r?r.children.slice():[],a-1,s-1),this.markDirty(),!0)}split(e){let n=[],r=0,i=-1,a=0;for(let o of this.children){let c=r+o.length;c>e&&n.push(r<e?o.split(e-r):o),i<0&&r>=e&&(i=a),r=c,a++}let s=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new Hc(this.mark,n,s)}domAtPos(e){return o7(this,e)}coordsAt(e,n){return c7(this,e,n)}}function f_e(t,e,n){let r=t.nodeValue.length;e>r&&(e=r);let i=e,a=e,s=0;e==0&&n<0||e==r&&n>=0?gt.chrome||gt.gecko||(e?(i--,s=1):a<r&&(a++,s=-1)):n<0?i--:a<r&&a++;let o=Yf(t,i,a).getClientRects();if(!o.length)return null;let c=o[(s?s<0:n>=0)?0:o.length-1];return gt.safari&&!s&&c.width==0&&(c=Array.prototype.find.call(o,d=>d.width)||c),s?M0(c,s<0):c||null}class rd extends er{static create(e,n,r){return new rd(e,n,r)}constructor(e,n,r){super(),this.widget=e,this.length=n,this.side=r,this.prevWidget=null}split(e){let n=rd.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,r,i,a,s){return r&&(!(r instanceof rd)||!this.widget.compare(r.widget)||e>0&&a<=0||n<this.length&&s<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-n),!0)}become(e){return e instanceof rd&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return mn.empty;let e=this;for(;e.parent;)e=e.parent;let{view:n}=e,r=n&&n.state.doc,i=this.posAtStart;return r?r.slice(i,i+this.length):mn.empty}domAtPos(e){return(this.length?e==0:this.side>0)?ba.before(this.dom):ba.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let r=this.widget.coordsAt(this.dom,e,n);if(r)return r;let i=this.dom.getClientRects(),a=null;if(!i.length)return null;let s=this.side?this.side<0:e>0;for(let o=s?i.length-1:0;a=i[o],!(e>0?o==0:o==i.length-1||a.top<a.bottom);o+=s?-1:1);return M0(a,!s)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Wp extends er{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Wp&&e.side==this.side}split(){return new Wp(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?ba.before(this.dom):ba.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return mn.empty}get isHidden(){return!0}}il.prototype.children=rd.prototype.children=Wp.prototype.children=ok;function o7(t,e){let n=t.dom,{children:r}=t,i=0;for(let a=0;i<r.length;i++){let s=r[i],o=a+s.length;if(!(o==a&&s.getSide()<=0)){if(e>a&&e<o&&s.dom.parentNode==n)return s.domAtPos(e-a);if(e<=a)break;a=o}}for(let a=i;a>0;a--){let s=r[a-1];if(s.dom.parentNode==n)return s.domAtPos(s.length)}for(let a=i;a<r.length;a++){let s=r[a];if(s.dom.parentNode==n)return s.domAtPos(0)}return new ba(n,0)}function l7(t,e,n){let r,{children:i}=t;n>0&&e instanceof Hc&&i.length&&(r=i[i.length-1])instanceof Hc&&r.mark.eq(e.mark)?l7(r,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length}function c7(t,e,n){let r=null,i=-1,a=null,s=-1;function o(d,f){for(let p=0,m=0;p<d.children.length&&m<=f;p++){let g=d.children[p],b=m+g.length;b>=f&&(g.children.length?o(g,f-m):(!a||a.isHidden&&(n>0||p_e(a,g)))&&(b>f||m==b&&g.getSide()>0)?(a=g,s=f-m):(m<f||m==b&&g.getSide()<0&&!g.isHidden)&&(r=g,i=f-m)),m=b}}o(t,e);let c=(n<0?r:a)||r||a;return c?c.coordsAt(Math.max(0,c==r?i:s),n):h_e(t)}function h_e(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=Vp(e);return n[n.length-1]||null}function p_e(t,e){let n=t.coordsAt(0,1),r=e.coordsAt(0,1);return n&&r&&r.top<n.bottom}function DI(t,e){for(let n in t)n=="class"&&e.class?e.class+=" "+t.class:n=="style"&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}const GU=Object.create(null);function pE(t,e,n){if(t==e)return!0;t||(t=GU),e||(e=GU);let r=Object.keys(t),i=Object.keys(e);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let a of r)if(a!=n&&(i.indexOf(a)==-1||t[a]!==e[a]))return!1;return!0}function MI(t,e,n){let r=!1;if(e)for(let i in e)n&&i in n||(r=!0,i=="style"?t.style.cssText="":t.removeAttribute(i));if(n)for(let i in n)e&&e[i]==n[i]||(r=!0,i=="style"?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r}function m_e(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let r=t.attributes[n];e[r.name]=r.value}return e}class Jl{eq(e){return!1}updateDOM(e,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Fa=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(Fa||(Fa={}));class Rt extends $f{constructor(e,n,r,i){super(),this.startSide=e,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(e){return new L0(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;return n+=r&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new md(e,n,n,r,e.widget||null,!1)}static replace(e){let n=!!e.block,r,i;if(e.isBlockGap)r=-5e8,i=4e8;else{let{start:a,end:s}=u7(e,n);r=(a?n?-3e8:-1:5e8)-1,i=(s?n?2e8:1:-6e8)+1}return new md(e,r,i,n,e.widget||null,!0)}static line(e){return new k0(e)}static set(e,n=!1){return bn.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Rt.none=bn.empty;class L0 extends Rt{constructor(e){let{start:n,end:r}=u7(e);super(n?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,r;return this==e||e instanceof L0&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((r=e.attrs)===null||r===void 0?void 0:r.class))&&pE(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}L0.prototype.point=!1;class k0 extends Rt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof k0&&this.spec.class==e.spec.class&&pE(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}k0.prototype.mapMode=Ji.TrackBefore;k0.prototype.point=!0;class md extends Rt{constructor(e,n,r,i,a,s){super(n,r,a,e),this.block=i,this.isReplace=s,this.mapMode=i?n<=0?Ji.TrackBefore:Ji.TrackAfter:Ji.TrackDel}get type(){return this.startSide!=this.endSide?Fa.WidgetRange:this.startSide<=0?Fa.WidgetBefore:Fa.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof md&&g_e(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}md.prototype.point=!0;function u7(t,e=!1){let{inclusiveStart:n,inclusiveEnd:r}=t;return n==null&&(n=t.inclusive),r==null&&(r=t.inclusive),{start:n??e,end:r??e}}function g_e(t,e){return t==e||!!(t&&e&&t.compare(e))}function bS(t,e,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=t?n[i]=Math.max(n[i],e):n.push(t,e)}class ei extends er{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,n,r,i,a,s){if(r){if(!(r instanceof ei))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),i7(this,e,n,r?r.children.slice():[],a,s),!0}split(e){let n=new ei;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i:r,off:i}=this.childPos(e);i&&(n.append(this.children[r].split(i),0),this.children[r].merge(i,this.children[r].length,null,!1,0,0),r++);for(let a=r;a<this.children.length;a++)n.append(this.children[a],0);for(;r>0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){pE(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){l7(this,e,n)}addLineDeco(e){let n=e.spec.attributes,r=e.spec.class;n&&(this.attrs=DI(n,this.attrs||{})),r&&(this.attrs=DI({class:r},this.attrs||{}))}domAtPos(e){return o7(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var r;this.dom?this.flags&4&&(ZV(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(MI(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let i=this.dom.lastChild;for(;i&&er.get(i)instanceof Hc;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=er.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!gt.ios||!this.children.some(a=>a instanceof il))){let a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let r of this.children){if(!(r instanceof il)||/[^ -~]/.test(r.text))return null;let i=Vp(r.dom);if(i.length!=1)return null;e+=i[0].width,n=i[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let r=c7(this,e,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,a=r.bottom-r.top;if(Math.abs(a-i.lineHeight)<2&&i.textHeight<a){let s=(a-i.textHeight)/2;return{top:r.top+s,bottom:r.bottom-s,left:r.left,right:r.left}}}return r}become(e){return e instanceof ei&&this.children.length==0&&e.children.length==0&&pE(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,n){for(let r=0,i=0;r<e.children.length;r++){let a=e.children[r],s=i+a.length;if(s>=n){if(a instanceof ei)return a;if(s>n)break}i=s+a.breakAfter}return null}}class Bc extends er{constructor(e,n,r){super(),this.widget=e,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(e,n,r,i,a,s){return r&&(!(r instanceof Bc)||!this.widget.compare(r.widget)||e>0&&a<=0||n<this.length&&s<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-n),!0)}domAtPos(e){return e==0?ba.before(this.dom):ba.after(this.dom,e==this.length)}split(e){let n=this.length-e;this.length=e;let r=new Bc(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return ok}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):mn.empty}domBoundsAround(){return null}become(e){return e instanceof Bc&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,n){let r=this.widget.coordsAt(this.dom,e,n);return r||(this.widget instanceof LI?null:M0(this.dom.getBoundingClientRect(),this.length?e==0:n<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:n,endSide:r}=this.deco;return n==r?!1:e<0?n<0:r>0}}class LI extends Jl{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class v_{constructor(e,n,r,i){this.doc=e,this.pos=n,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Bc&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new ei),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Ev(new Wp(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Bc)&&this.getLine()}buildText(e,n,r){for(;e>0;){if(this.textOff==this.text.length){let{value:a,lineBreak:s,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=a,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(Ev(new il(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,e-=i,r=0}}span(e,n,r,i){this.buildText(n-e,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(e,n,r,i,a,s){if(this.disallowBlockEffectsFor[s]&&r instanceof md){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=n-e;if(r instanceof md)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Bc(r.widget||Qp.block,o,r));else{let c=rd.create(r.widget||Qp.inline,o,o?0:r.startSide),d=this.atCursorPos&&!c.isEditable&&a<=i.length&&(e<n||r.startSide>0),f=!c.isEditable&&(e<n||a>i.length||r.startSide<=0),p=this.getLine();this.pendingBuffer==2&&!d&&!c.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),d&&(p.append(Ev(new Wp(1),i),a),a=i.length+Math.max(0,a-i.length)),p.append(Ev(c,i),a),this.atCursorPos=f,this.pendingBuffer=f?e<n||a>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=a)}static build(e,n,r,i,a){let s=new v_(e,n,r,a);return s.openEnd=bn.spans(i,n,r,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function Ev(t,e){for(let n of e)t=new Hc(n,[t],t.length);return t}class Qp extends Jl{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Qp.inline=new Qp("span");Qp.block=new Qp("div");var gr=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(gr||(gr={}));const Hf=gr.LTR,lk=gr.RTL;function d7(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const __e=d7("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),b_e=d7("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),kI=Object.create(null),xl=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);kI[e]=n,kI[n]=-e}function f7(t){return t<=247?__e[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?b_e[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const v_e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class id{get dir(){return this.level%2?lk:Hf}constructor(e,n,r){this.from=e,this.to=n,this.level=r}side(e,n){return this.dir==n==e?this.to:this.from}forward(e,n){return e==(this.dir==n)}static find(e,n,r,i){let a=-1;for(let s=0;s<e.length;s++){let o=e[s];if(o.from<=n&&o.to>=n){if(o.level==r)return s;(a<0||(i!=0?i<0?o.from<n:o.to>n:e[a].level>o.level))&&(a=s)}}if(a<0)throw new RangeError("Index out of range");return a}}function h7(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],i=e[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!h7(r.inner,i.inner))return!1}return!0}const Xn=[];function S_e(t,e,n,r,i){for(let a=0;a<=r.length;a++){let s=a?r[a-1].to:e,o=a<r.length?r[a].from:n,c=a?256:i;for(let d=s,f=c,p=c;d<o;d++){let m=f7(t.charCodeAt(d));m==512?m=f:m==8&&p==4&&(m=16),Xn[d]=m==4?2:m,m&7&&(p=m),f=m}for(let d=s,f=c,p=c;d<o;d++){let m=Xn[d];if(m==128)d<o-1&&f==Xn[d+1]&&f&24?m=Xn[d]=f:Xn[d]=256;else if(m==64){let g=d+1;for(;g<o&&Xn[g]==64;)g++;let b=d&&f==8||g<n&&Xn[g]==8?p==1?1:8:256;for(let S=d;S<g;S++)Xn[S]=b;d=g-1}else m==8&&p==1&&(Xn[d]=1);f=m,m&7&&(p=m)}}}function E_e(t,e,n,r,i){let a=i==1?2:1;for(let s=0,o=0,c=0;s<=r.length;s++){let d=s?r[s-1].to:e,f=s<r.length?r[s].from:n;for(let p=d,m,g,b;p<f;p++)if(g=kI[m=t.charCodeAt(p)])if(g<0){for(let S=o-3;S>=0;S-=3)if(xl[S+1]==-g){let y=xl[S+2],E=y&2?i:y&4?y&1?a:i:0;E&&(Xn[p]=Xn[xl[S]]=E),o=S;break}}else{if(xl.length==189)break;xl[o++]=p,xl[o++]=m,xl[o++]=c}else if((b=Xn[p])==2||b==1){let S=b==i;c=S?0:1;for(let y=o-3;y>=0;y-=3){let E=xl[y+2];if(E&2)break;if(S)xl[y+2]|=2;else{if(E&4)break;xl[y+2]|=4}}}}}function y_e(t,e,n,r){for(let i=0,a=r;i<=n.length;i++){let s=i?n[i-1].to:t,o=i<n.length?n[i].from:e;for(let c=s;c<o;){let d=Xn[c];if(d==256){let f=c+1;for(;;)if(f==o){if(i==n.length)break;f=n[i++].to,o=i<n.length?n[i].from:e}else if(Xn[f]==256)f++;else break;let p=a==1,m=(f<e?Xn[f]:r)==1,g=p==m?p?1:2:r;for(let b=f,S=i,y=S?n[S-1].to:t;b>c;)b==y&&(b=n[--S].from,y=S?n[S-1].to:t),Xn[--b]=g;c=f}else a=d,c++}}}function PI(t,e,n,r,i,a,s){let o=r%2?2:1;if(r%2==i%2)for(let c=e,d=0;c<n;){let f=!0,p=!1;if(d==a.length||c<a[d].from){let S=Xn[c];S!=o&&(f=!1,p=S==16)}let m=!f&&o==1?[]:null,g=f?r:r+1,b=c;e:for(;;)if(d<a.length&&b==a[d].from){if(p)break e;let S=a[d];if(!f)for(let y=S.to,E=d+1;;){if(y==n)break e;if(E<a.length&&a[E].from==y)y=a[E++].to;else{if(Xn[y]==o)break e;break}}if(d++,m)m.push(S);else{S.from>c&&s.push(new id(c,S.from,g));let y=S.direction==Hf!=!(g%2);BI(t,y?r+1:r,i,S.inner,S.from,S.to,s),c=S.to}b=S.to}else{if(b==n||(f?Xn[b]!=o:Xn[b]==o))break;b++}m?PI(t,c,b,r+1,i,m,s):c<b&&s.push(new id(c,b,g)),c=b}else for(let c=n,d=a.length;c>e;){let f=!0,p=!1;if(!d||c>a[d-1].to){let S=Xn[c-1];S!=o&&(f=!1,p=S==16)}let m=!f&&o==1?[]:null,g=f?r:r+1,b=c;e:for(;;)if(d&&b==a[d-1].to){if(p)break e;let S=a[--d];if(!f)for(let y=S.from,E=d;;){if(y==e)break e;if(E&&a[E-1].to==y)y=a[--E].from;else{if(Xn[y-1]==o)break e;break}}if(m)m.push(S);else{S.to<c&&s.push(new id(S.to,c,g));let y=S.direction==Hf!=!(g%2);BI(t,y?r+1:r,i,S.inner,S.from,S.to,s),c=S.from}b=S.from}else{if(b==e||(f?Xn[b-1]!=o:Xn[b-1]==o))break;b--}m?PI(t,b,c,r+1,i,m,s):b<c&&s.push(new id(b,c,g)),c=b}}function BI(t,e,n,r,i,a,s){let o=e%2?2:1;S_e(t,i,a,r,o),E_e(t,i,a,r,o),y_e(i,a,r,o),PI(t,i,a,e,n,r,s)}function T_e(t,e,n){if(!t)return[new id(0,0,e==lk?1:0)];if(e==Hf&&!n.length&&!v_e.test(t))return p7(t.length);if(n.length)for(;t.length>Xn.length;)Xn[Xn.length]=256;let r=[],i=e==Hf?0:1;return BI(t,i,i,n,0,t.length,r),r}function p7(t){return[new id(0,t,0)]}let m7="";function x_e(t,e,n,r,i){var a;let s=r.head-t.from,o=id.find(e,s,(a=r.bidiLevel)!==null&&a!==void 0?a:-1,r.assoc),c=e[o],d=c.side(i,n);if(s==d){let m=o+=i?1:-1;if(m<0||m>=e.length)return null;c=e[o=m],s=c.side(!i,n),d=c.side(i,n)}let f=ea(t.text,s,c.forward(i,n));(f<c.from||f>c.to)&&(f=d),m7=t.text.slice(Math.min(s,f),Math.max(s,f));let p=o==(i?e.length-1:0)?null:e[o+(i?1:-1)];return p&&f==d&&p.level+(i?0:1)<c.level?Fe.cursor(p.side(!i,n)+t.from,p.forward(i,n)?1:-1,p.level):Fe.cursor(f+t.from,c.forward(i,n)?-1:1,c.level)}function C_e(t,e,n){for(let r=e;r<n;r++){let i=f7(t.charCodeAt(r));if(i==1)return Hf;if(i==2||i==4)return lk}return Hf}const g7=ut.define(),_7=ut.define(),b7=ut.define(),v7=ut.define(),FI=ut.define(),S7=ut.define(),E7=ut.define(),ck=ut.define(),uk=ut.define(),y7=ut.define({combine:t=>t.some(e=>e)}),T7=ut.define({combine:t=>t.some(e=>e)}),x7=ut.define();class hp{constructor(e,n="nearest",r="nearest",i=5,a=5,s=!1){this.range=e,this.y=n,this.x=r,this.yMargin=i,this.xMargin=a,this.isSnapshot=s}map(e){return e.empty?this:new hp(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new hp(Fe.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const yv=jt.define({map:(t,e)=>t.map(e)}),C7=jt.define();function Pa(t,e,n){let r=t.facet(v7);r.length?r[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const Ic=ut.define({combine:t=>t.length?t[0]:!0});let O_e=0;const Jg=ut.define();class Br{constructor(e,n,r,i,a){this.id=e,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=a(this)}static define(e,n){const{eventHandlers:r,eventObservers:i,provide:a,decorations:s}=n||{};return new Br(O_e++,e,r,i,o=>{let c=[Jg.of(o)];return s&&c.push(Q_.of(d=>{let f=d.plugin(o);return f?s(f):Rt.none})),a&&c.push(a(o)),c})}static fromClass(e,n){return Br.define(r=>new e(r),n)}}class SO{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(Pa(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){Pa(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){Pa(e.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const O7=ut.define(),dk=ut.define(),Q_=ut.define(),R7=ut.define(),fk=ut.define(),N7=ut.define();function qU(t,e){let n=t.state.facet(N7);if(!n.length)return n;let r=n.map(a=>a instanceof Function?a(t):a),i=[];return bn.spans(r,e.from,e.to,{point(){},span(a,s,o,c){let d=a-e.from,f=s-e.from,p=i;for(let m=o.length-1;m>=0;m--,c--){let g=o[m].spec.bidiIsolate,b;if(g==null&&(g=C_e(e.text,d,f)),c>0&&p.length&&(b=p[p.length-1]).to==d&&b.direction==g)b.to=f,p=b.inner;else{let S={from:d,to:f,direction:g,inner:[]};p.push(S),p=S.inner}}}}),i}const A7=ut.define();function hk(t){let e=0,n=0,r=0,i=0;for(let a of t.state.facet(A7)){let s=a(t);s&&(s.left!=null&&(e=Math.max(e,s.left)),s.right!=null&&(n=Math.max(n,s.right)),s.top!=null&&(r=Math.max(r,s.top)),s.bottom!=null&&(i=Math.max(i,s.bottom)))}return{left:e,right:n,top:r,bottom:i}}const e_=ut.define();class no{constructor(e,n,r,i){this.fromA=e,this.toA=n,this.fromB=r,this.toB=i}join(e){return new no(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,r=this;for(;n>0;n--){let i=e[n-1];if(!(i.fromA>r.toA)){if(i.toA<r.fromA)break;r=r.join(i),e.splice(n-1,1)}}return e.splice(n,0,r),e}static extendWithRanges(e,n){if(n.length==0)return e;let r=[];for(let i=0,a=0,s=0,o=0;;i++){let c=i==e.length?null:e[i],d=s-o,f=c?c.fromB:1e9;for(;a<n.length&&n[a]<f;){let p=n[a],m=n[a+1],g=Math.max(o,p),b=Math.min(f,m);if(g<=b&&new no(g+d,b+d,g,b).addToSet(r),m>f)break;a+=2}if(!c)return r;new no(c.fromA,c.toA,c.fromB,c.toB).addToSet(r),s=c.toA,o=c.toB}}}class mE{constructor(e,n,r){this.view=e,this.state=n,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=_i.empty(this.startState.doc.length);for(let a of r)this.changes=this.changes.compose(a.changes);let i=[];this.changes.iterChangedRanges((a,s,o,c)=>i.push(new no(a,s,o,c))),this.changedRanges=i}static create(e,n,r){return new mE(e,n,r)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class $U extends er{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=Rt.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new ei],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new no(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let r=e.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:d,toA:f})=>f<this.minWidthFrom||d>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!M_e(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let a=i>-1?N_e(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:d,to:f}=this.hasComposition;r=new no(d,f,e.changes.mapPos(d,-1),e.changes.mapPos(f,1)).addToSet(r.slice())}this.hasComposition=a?{from:a.range.fromB,to:a.range.toB}:null,(gt.ie||gt.chrome)&&!a&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,o=this.updateDeco(),c=I_e(s,o,e.changes);return r=no.extendWithRanges(r,c),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,e.startState.doc.length,a),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=gt.chrome||gt.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||i.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let a=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let s of this.children)s instanceof Bc&&s.widget instanceof LI&&a.push(s.dom);i.updateGaps(a)}updateChildren(e,n,r){let i=r?r.range.addToSet(e.slice()):e,a=this.childCursor(n);for(let s=i.length-1;;s--){let o=s>=0?i[s]:null;if(!o)break;let{fromA:c,toA:d,fromB:f,toB:p}=o,m,g,b,S;if(r&&r.range.fromB<p&&r.range.toB>f){let O=v_.build(this.view.state.doc,f,r.range.fromB,this.decorations,this.dynamicDecorationMap),C=v_.build(this.view.state.doc,r.range.toB,p,this.decorations,this.dynamicDecorationMap);g=O.breakAtStart,b=O.openStart,S=C.openEnd;let N=this.compositionView(r);C.breakAtStart?N.breakAfter=1:C.content.length&&N.merge(N.length,N.length,C.content[0],!1,C.openStart,0)&&(N.breakAfter=C.content[0].breakAfter,C.content.shift()),O.content.length&&N.merge(0,0,O.content[O.content.length-1],!0,0,O.openEnd)&&O.content.pop(),m=O.content.concat(N).concat(C.content)}else({content:m,breakAtStart:g,openStart:b,openEnd:S}=v_.build(this.view.state.doc,f,p,this.decorations,this.dynamicDecorationMap));let{i:y,off:E}=a.findPos(d,1),{i:T,off:x}=a.findPos(c,-1);r7(this,T,x,y,E,m,g,b,S)}r&&this.fixCompositionDOM(r)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let n of e.transactions)for(let r of n.effects)r.is(C7)&&(this.editContextFormatting=r.value)}compositionView(e){let n=new il(e.text.nodeValue);n.flags|=8;for(let{deco:i}of e.marks)n=new Hc(i,[n],n.length);let r=new ei;return r.append(n,0),r}fixCompositionDOM(e){let n=(a,s)=>{s.flags|=8|(s.children.some(c=>c.flags&7)?1:0),this.markedForComposition.add(s);let o=er.get(a);o&&o!=s&&(o.dom=null),s.setDOM(a)},r=this.childPos(e.range.fromB,1),i=this.children[r.i];n(e.line,i);for(let a=e.marks.length-1;a>=-1;a--)r=i.childPos(r.off,1),i=i.children[r.i],n(a>=0?e.marks[a].node:e.text,i)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,a=!i&&!(this.view.state.facet(Ic)||this.dom.tabIndex>-1)&&_S(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||a))return;let s=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,c=this.moveToLine(this.domAtPos(o.anchor)),d=o.empty?c:this.moveToLine(this.domAtPos(o.head));if(gt.gecko&&o.empty&&!this.hasComposition&&R_e(c)){let p=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(p,c.node.childNodes[c.offset]||null)),c=d=new ba(p,0),s=!0}let f=this.view.observer.selectionRange;(s||!f.focusNode||(!b_(c.node,c.offset,f.anchorNode,f.anchorOffset)||!b_(d.node,d.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,o))&&(this.view.observer.ignore(()=>{gt.android&&gt.chrome&&this.dom.contains(f.focusNode)&&D_e(f.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let p=W_(this.view.root);if(p)if(o.empty){if(gt.gecko){let m=A_e(c.node,c.offset);if(m&&m!=3){let g=(m==1?e7:t7)(c.node,c.offset);g&&(c=new ba(g.node,g.offset))}}p.collapse(c.node,c.offset),o.bidiLevel!=null&&p.caretBidiLevel!==void 0&&(p.caretBidiLevel=o.bidiLevel)}else if(p.extend){p.collapse(c.node,c.offset);try{p.extend(d.node,d.offset)}catch{}}else{let m=document.createRange();o.anchor>o.head&&([c,d]=[d,c]),m.setEnd(d.node,d.offset),m.setStart(c.node,c.offset),p.removeAllRanges(),p.addRange(m)}a&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(c,d)),this.impreciseAnchor=c.precise?null:new ba(f.anchorNode,f.anchorOffset),this.impreciseHead=d.precise?null:new ba(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&b_(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,r=W_(e.root),{anchorNode:i,anchorOffset:a}=e.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let s=ei.find(this,n.head);if(!s)return;let o=s.posAtStart;if(n.head==o||n.head==o+s.length)return;let c=this.coordsAt(n.head,-1),d=this.coordsAt(n.head,1);if(!c||!d||c.bottom>d.top)return;let f=this.domAtPos(n.head+n.assoc);r.collapse(f.node,f.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let p=e.observer.selectionRange;e.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=n.from&&r.collapse(i,a)}moveToLine(e){let n=this.dom,r;if(e.node!=n)return e;for(let i=e.offset;!r&&i<n.childNodes.length;i++){let a=er.get(n.childNodes[i]);a instanceof ei&&(r=a.domAtPos(0))}for(let i=e.offset-1;!r&&i>=0;i--){let a=er.get(n.childNodes[i]);a instanceof ei&&(r=a.domAtPos(a.length))}return r?new ba(r.node,r.offset,!0):e}nearest(e){for(let n=e;n;){let r=er.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(e,n){let r=this.nearest(e);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(e,n)+r.posAtStart}domAtPos(e){let{i:n,off:r}=this.childCursor().findPos(e,-1);for(;n<this.children.length-1;){let i=this.children[n];if(r<i.length||i instanceof ei)break;n++,r=0}return this.children[n].domAtPos(r)}coordsAt(e,n){let r=null,i=0;for(let a=this.length,s=this.children.length-1;s>=0;s--){let o=this.children[s],c=a-o.breakAfter,d=c-o.length;if(c<e)break;if(d<=e&&(d<e||o.covers(-1))&&(c>e||o.covers(1))&&(!r||o instanceof ei&&!(r instanceof ei&&n>=0)))r=o,i=d;else if(r&&d==e&&c==e&&o instanceof Bc&&Math.abs(n)<2){if(o.deco.startSide<0)break;s&&(r=null)}a=d}return r?r.coordsAt(e-i,n):null}coordsForChar(e){let{i:n,off:r}=this.childPos(e,1),i=this.children[n];if(!(i instanceof ei))return null;for(;i.children.length;){let{i:o,off:c}=i.childPos(r,1);for(;;o++){if(o==i.children.length)return null;if((i=i.children[o]).length)break}r=c}if(!(i instanceof il))return null;let a=ea(i.text,r);if(a==r)return null;let s=Yf(i.dom,r,a).getClientRects();for(let o=0;o<s.length;o++){let c=s[o];if(o==s.length-1||c.top<c.bottom&&c.left<c.right)return c}return null}measureVisibleLineHeights(e){let n=[],{from:r,to:i}=e,a=this.view.contentDOM.clientWidth,s=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,c=this.view.textDirection==gr.LTR;for(let d=0,f=0;f<this.children.length;f++){let p=this.children[f],m=d+p.length;if(m>i)break;if(d>=r){let g=p.dom.getBoundingClientRect();if(n.push(g.height),s){let b=p.dom.lastChild,S=b?Vp(b):[];if(S.length){let y=S[S.length-1],E=c?y.right-g.left:g.right-y.left;E>o&&(o=E,this.minWidth=a,this.minWidthFrom=d,this.minWidthTo=m)}}}d=m+p.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?gr.RTL:gr.LTR}measureTextSize(){for(let a of this.children)if(a instanceof ei){let s=a.measureTextSize();if(s)return s}let e=document.createElement("div"),n,r,i;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let a=Vp(e.firstChild)[0];n=e.getBoundingClientRect().height,r=a?a.width/27:7,i=a?a.height:n,e.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new n7(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let r=0,i=0;;i++){let a=i==n.viewports.length?null:n.viewports[i],s=a?a.from-1:this.length;if(s>r){let o=(n.lineBlockAt(s).bottom-n.lineBlockAt(r).top)/this.view.scaleY;e.push(Rt.replace({widget:new LI(o),block:!0,inclusive:!0,isBlockGap:!0}).range(r,s))}if(!a)break;r=a.to+1}return Rt.set(e)}updateDeco(){let e=1,n=this.view.state.facet(Q_).map(a=>(this.dynamicDecorationMap[e++]=typeof a=="function")?a(this.view):a),r=!1,i=this.view.state.facet(R7).map((a,s)=>{let o=typeof a=="function";return o&&(r=!0),o?a(this.view):a});for(i.length&&(this.dynamicDecorationMap[e++]=r,n.push(bn.join(i))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let d=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=d.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let d of this.view.state.facet(x7))try{if(d(this.view,e.range,e))return!0}catch(f){Pa(this.view.state,f,"scroll handler")}let{range:n}=e,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let a=hk(this.view),s={left:r.left-a.left,top:r.top-a.top,right:r.right+a.right,bottom:r.bottom+a.bottom},{offsetWidth:o,offsetHeight:c}=this.view.scrollDOM;a_e(this.view.scrollDOM,s,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,o),-o),Math.max(Math.min(e.yMargin,c),-c),this.view.textDirection==gr.LTR)}}function R_e(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}function w7(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let r=e7(n.focusNode,n.focusOffset),i=t7(n.focusNode,n.focusOffset),a=r||i;if(i&&r&&i.node!=r.node){let o=er.get(i.node);if(!o||o instanceof il&&o.text!=i.node.nodeValue)a=i;else if(t.docView.lastCompositionAfterCursor){let c=er.get(r.node);!c||c instanceof il&&c.text!=r.node.nodeValue||(a=i)}}if(t.docView.lastCompositionAfterCursor=a!=r,!a)return null;let s=e-a.offset;return{from:s,to:s+a.node.nodeValue.length,node:a.node}}function N_e(t,e,n){let r=w7(t,n);if(!r)return null;let{node:i,from:a,to:s}=r,o=i.nodeValue;if(/[\n\r]/.test(o)||t.state.doc.sliceString(r.from,r.to)!=o)return null;let c=e.invertedDesc,d=new no(c.mapPos(a),c.mapPos(s),a,s),f=[];for(let p=i.parentNode;;p=p.parentNode){let m=er.get(p);if(m instanceof Hc)f.push({node:p,deco:m.mark});else{if(m instanceof ei||p.nodeName=="DIV"&&p.parentNode==t.contentDOM)return{range:d,text:i,marks:f,line:p};if(p!=t.contentDOM)f.push({node:p,deco:new L0({inclusive:!0,attributes:m_e(p),tagName:p.tagName.toLowerCase()})});else return null}}}function A_e(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}let w_e=class{constructor(){this.changes=[]}compareRange(e,n){bS(e,n,this.changes)}comparePoint(e,n){bS(e,n,this.changes)}boundChange(e){bS(e,e,this.changes)}};function I_e(t,e,n){let r=new w_e;return bn.compare(t,e,n,r),r.changes}function D_e(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function M_e(t,e){let n=!1;return e&&t.iterChangedRanges((r,i)=>{r<e.to&&i>e.from&&(n=!0)}),n}function L_e(t,e,n=1){let r=t.charCategorizer(e),i=t.doc.lineAt(e),a=e-i.from;if(i.length==0)return Fe.cursor(e);a==0?n=1:a==i.length&&(n=-1);let s=a,o=a;n<0?s=ea(i.text,a,!1):o=ea(i.text,a);let c=r(i.text.slice(s,o));for(;s>0;){let d=ea(i.text,s,!1);if(r(i.text.slice(d,s))!=c)break;s=d}for(;o<i.length;){let d=ea(i.text,o);if(r(i.text.slice(o,d))!=c)break;o=d}return Fe.range(s+i.from,o+i.from)}function k_e(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function P_e(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function EO(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function zU(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function YU(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function UI(t,e,n){let r,i,a,s,o=!1,c,d,f,p;for(let b=t.firstChild;b;b=b.nextSibling){let S=Vp(b);for(let y=0;y<S.length;y++){let E=S[y];i&&EO(i,E)&&(E=zU(YU(E,i.bottom),i.top));let T=k_e(e,E),x=P_e(n,E);if(T==0&&x==0)return b.nodeType==3?HU(b,e,n):UI(b,e,n);if(!r||s>x||s==x&&a>T){r=b,i=E,a=T,s=x;let O=x?n<E.top?-1:1:T?e<E.left?-1:1:0;o=!O||(O>0?y<S.length-1:y>0)}T==0?n>E.bottom&&(!f||f.bottom<E.bottom)?(c=b,f=E):n<E.top&&(!p||p.top>E.top)&&(d=b,p=E):f&&EO(f,E)?f=YU(f,E.bottom):p&&EO(p,E)&&(p=zU(p,E.top))}}if(f&&f.bottom>=n?(r=c,i=f):p&&p.top<=n&&(r=d,i=p),!r)return{node:t,offset:0};let m=Math.max(i.left,Math.min(i.right,e));if(r.nodeType==3)return HU(r,m,n);if(o&&r.contentEditable!="false")return UI(r,m,n);let g=Array.prototype.indexOf.call(t.childNodes,r)+(e>=(i.left+i.right)/2?1:0);return{node:t,offset:g}}function HU(t,e,n){let r=t.nodeValue.length,i=-1,a=1e9,s=0;for(let o=0;o<r;o++){let c=Yf(t,o,o+1).getClientRects();for(let d=0;d<c.length;d++){let f=c[d];if(f.top==f.bottom)continue;s||(s=e-f.left);let p=(f.top>n?f.top-n:n-f.bottom)-1;if(f.left-1<=e&&f.right+1>=e&&p<a){let m=e>=(f.left+f.right)/2,g=m;if((gt.chrome||gt.gecko)&&Yf(t,o).getBoundingClientRect().left==f.right&&(g=!m),p<=0)return{node:t,offset:o+(g?1:0)};i=o+(g?1:0),a=p}}}return{node:t,offset:i>-1?i:s>0?t.nodeValue.length:0}}function I7(t,e,n,r=-1){var i,a;let s=t.contentDOM.getBoundingClientRect(),o=s.top+t.viewState.paddingTop,c,{docHeight:d}=t.viewState,{x:f,y:p}=e,m=p-o;if(m<0)return 0;if(m>d)return t.state.doc.length;for(let O=t.viewState.heightOracle.textHeight/2,C=!1;c=t.elementAtHeight(m),c.type!=Fa.Text;)for(;m=r>0?c.bottom+O:c.top-O,!(m>=0&&m<=d);){if(C)return n?null:0;C=!0,r=-r}p=o+m;let g=c.from;if(g<t.viewport.from)return t.viewport.from==0?0:n?null:VU(t,s,c,f,p);if(g>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:VU(t,s,c,f,p);let b=t.dom.ownerDocument,S=t.root.elementFromPoint?t.root:b,y=S.elementFromPoint(f,p);y&&!t.contentDOM.contains(y)&&(y=null),y||(f=Math.max(s.left+1,Math.min(s.right-1,f)),y=S.elementFromPoint(f,p),y&&!t.contentDOM.contains(y)&&(y=null));let E,T=-1;if(y&&((i=t.docView.nearest(y))===null||i===void 0?void 0:i.isEditable)!=!1){if(b.caretPositionFromPoint){let O=b.caretPositionFromPoint(f,p);O&&({offsetNode:E,offset:T}=O)}else if(b.caretRangeFromPoint){let O=b.caretRangeFromPoint(f,p);O&&({startContainer:E,startOffset:T}=O,(!t.contentDOM.contains(E)||gt.safari&&B_e(E,T,f)||gt.chrome&&F_e(E,T,f))&&(E=void 0))}E&&(T=Math.min(Hl(E),T))}if(!E||!t.docView.dom.contains(E)){let O=ei.find(t.docView,g);if(!O)return m>c.top+c.height/2?c.to:c.from;({node:E,offset:T}=UI(O.dom,f,p))}let x=t.docView.nearest(E);if(!x)return null;if(x.isWidget&&((a=x.dom)===null||a===void 0?void 0:a.nodeType)==1){let O=x.dom.getBoundingClientRect();return e.y<O.top||e.y<=O.bottom&&e.x<=(O.left+O.right)/2?x.posAtStart:x.posAtEnd}else return x.localPosFromDOM(E,T)+x.posAtStart}function VU(t,e,n,r,i){let a=Math.round((r-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let o=t.viewState.heightOracle.textHeight,c=Math.floor((i-n.top-(t.defaultLineHeight-o)*.5)/o);a+=c*t.viewState.heightOracle.lineLength}let s=t.state.sliceDoc(n.from,n.to);return n.from+CI(s,a,t.state.tabSize)}function B_e(t,e,n){let r;if(t.nodeType!=3||e!=(r=t.nodeValue.length))return!1;for(let i=t.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return Yf(t,r-1,r).getBoundingClientRect().left>n}function F_e(t,e,n){if(e!=0)return!1;for(let i=t;;){let a=i.parentNode;if(!a||a.nodeType!=1||a.firstChild!=i)return!1;if(a.classList.contains("cm-line"))break;i=a}let r=t.nodeType==1?t.getBoundingClientRect():Yf(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function jI(t,e,n){let r=t.lineBlockAt(e);if(Array.isArray(r.type)){let i;for(let a of r.type){if(a.from>e)break;if(!(a.to<e)){if(a.from<e&&a.to>e)return a;(!i||a.type==Fa.Text&&(i.type!=a.type||(n<0?a.from<e:a.to>e)))&&(i=a)}}return i||r}return r}function U_e(t,e,n,r){let i=jI(t,e.head,e.assoc||-1),a=!r||i.type!=Fa.Text||!(t.lineWrapping||i.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(a){let s=t.dom.getBoundingClientRect(),o=t.textDirectionAt(i.from),c=t.posAtCoords({x:n==(o==gr.LTR)?s.right-1:s.left+1,y:(a.top+a.bottom)/2});if(c!=null)return Fe.cursor(c,n?-1:1)}return Fe.cursor(n?i.to:i.from,n?-1:1)}function WU(t,e,n,r){let i=t.state.doc.lineAt(e.head),a=t.bidiSpans(i),s=t.textDirectionAt(i.from);for(let o=e,c=null;;){let d=x_e(i,a,s,o,n),f=m7;if(!d){if(i.number==(n?t.state.doc.lines:1))return o;f=`
`,i=t.state.doc.line(i.number+(n?1:-1)),a=t.bidiSpans(i),d=t.visualLineSide(i,!n)}if(c){if(!c(f))return o}else{if(!r)return d;c=r(f)}o=d}}function j_e(t,e,n){let r=t.state.charCategorizer(e),i=r(n);return a=>{let s=r(a);return i==Er.Space&&(i=s),i==s}}function G_e(t,e,n,r){let i=e.head,a=n?1:-1;if(i==(n?t.state.doc.length:0))return Fe.cursor(i,e.assoc);let s=e.goalColumn,o,c=t.contentDOM.getBoundingClientRect(),d=t.coordsAtPos(i,e.assoc||-1),f=t.documentTop;if(d)s==null&&(s=d.left-c.left),o=a<0?d.top:d.bottom;else{let g=t.viewState.lineBlockAt(i);s==null&&(s=Math.min(c.right-c.left,t.defaultCharacterWidth*(i-g.from))),o=(a<0?g.top:g.bottom)+f}let p=c.left+s,m=r??t.viewState.heightOracle.textHeight>>1;for(let g=0;;g+=10){let b=o+(m+g)*a,S=I7(t,{x:p,y:b},!1,a);if(b<c.top||b>c.bottom||(a<0?S<i:S>i)){let y=t.docView.coordsForChar(S),E=!y||b<y.top?-1:1;return Fe.cursor(S,E,void 0,s)}}}function vS(t,e,n){for(;;){let r=0;for(let i of t)i.between(e-1,e+1,(a,s,o)=>{if(e>a&&e<s){let c=r||n||(e-a<s-e?-1:1);e=c<0?a:s,r=c}});if(!r)return e}}function yO(t,e,n){let r=vS(t.state.facet(fk).map(i=>i(t)),n.from,e.head>n.from?-1:1);return r==n.from?n:Fe.cursor(r,r<n.from?1:-1)}const t_="";class q_e{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(un.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=t_}readRange(e,n){if(!e)return this;let r=e.parentNode;for(let i=e;;){this.findPointBefore(r,i);let a=this.text.length;this.readNode(i);let s=i.nextSibling;if(s==n)break;let o=er.get(i),c=er.get(s);(o&&c?o.breakAfter:(o?o.breakAfter:hE(i))||hE(s)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>a)&&this.lineBreak(),i=s}return this.findPointBefore(r,n),this}readTextNode(e){let n=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let a=-1,s=1,o;if(this.lineSeparator?(a=n.indexOf(this.lineSeparator,r),s=this.lineSeparator.length):(o=i.exec(n))&&(a=o.index,s=o[0].length),this.append(n.slice(r,a<0?n.length:a)),a<0)break;if(this.lineBreak(),s>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=s-1);r=a+s}}readNode(e){if(e.cmIgnore)return;let n=er.get(e),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(e,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(e,n){for(let r of this.points)(e.nodeType==3?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+($_e(e,r.node,r.offset)?n:0))}}function $_e(t,e,n){for(;;){if(!e||n<Hl(e))return!1;if(e==t)return!0;n=zf(e)+1,e=e.parentNode}}class QU{constructor(e,n){this.node=e,this.offset=n,this.pos=-1}}class z_e{constructor(e,n,r,i){this.typeOver=i,this.bounds=null,this.text="",this.domChanged=n>-1;let{impreciseHead:a,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,r,0))){let o=a||s?[]:V_e(e),c=new q_e(o,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=W_e(o,this.bounds.from)}else{let o=e.observer.selectionRange,c=a&&a.node==o.focusNode&&a.offset==o.focusOffset||!NI(e.contentDOM,o.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(o.focusNode,o.focusOffset),d=s&&s.node==o.anchorNode&&s.offset==o.anchorOffset||!NI(e.contentDOM,o.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(o.anchorNode,o.anchorOffset),f=e.viewport;if((gt.ios||gt.chrome)&&e.state.selection.main.empty&&c!=d&&(f.from>0||f.to<e.state.doc.length)){let p=Math.min(c,d),m=Math.max(c,d),g=f.from-p,b=f.to-m;(g==0||g==1||p==0)&&(b==0||b==-1||m==e.state.doc.length)&&(c=0,d=e.state.doc.length)}this.newSel=Fe.single(d,c)}}}function D7(t,e){let n,{newSel:r}=e,i=t.state.selection.main,a=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:o}=e.bounds,c=i.from,d=null;(a===8||gt.android&&e.text.length<o-s)&&(c=i.to,d="end");let f=H_e(t.state.doc.sliceString(s,o,t_),e.text,c-s,d);f&&(gt.chrome&&a==13&&f.toB==f.from+2&&e.text.slice(f.from,f.toB)==t_+t_&&f.toB--,n={from:s+f.from,to:s+f.toA,insert:mn.of(e.text.slice(f.from,f.toB).split(t_))})}else r&&(!t.hasFocus&&t.state.facet(Ic)||r.main.eq(i))&&(r=null);if(!n&&!r)return!1;if(!n&&e.typeOver&&!i.empty&&r&&r.main.empty?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,i.to)}:(gt.mac||gt.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=Fe.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:mn.of([n.insert.toString().replace("."," ")])}):n&&n.from>=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,i.to))}:gt.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==`
 `&&t.lineWrapping&&(r&&(r=Fe.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:mn.of([" "])}),n)return pk(t,n,r,a);if(r&&!r.main.eq(i)){let s=!1,o="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(s=!0),o=t.inputState.lastSelectionOrigin),t.dispatch({selection:r,scrollIntoView:s,userEvent:o}),!0}else return!1}function pk(t,e,n,r=-1){if(gt.ios&&t.inputState.flushIOSKey(e))return!0;let i=t.state.selection.main;if(gt.android&&(e.to==i.to&&(e.from==i.from||e.from==i.from-1&&t.state.sliceDoc(e.from,i.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&fp(t.contentDOM,"Enter",13)||(e.from==i.from-1&&e.to==i.to&&e.insert.length==0||r==8&&e.insert.length<e.to-e.from&&e.to>i.head)&&fp(t.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&e.insert.length==0&&fp(t.contentDOM,"Delete",46)))return!0;let a=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let s,o=()=>s||(s=Y_e(t,e,n));return t.state.facet(S7).some(c=>c(t,e.from,e.to,a,o))||t.dispatch(o()),!0}function Y_e(t,e,n){let r,i=t.state,a=i.selection.main;if(e.from>=a.from&&e.to<=a.to&&e.to-e.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let o=a.from<e.from?i.sliceDoc(a.from,e.from):"",c=a.to>e.to?i.sliceDoc(e.to,a.to):"";r=i.replaceSelection(t.state.toText(o+e.insert.sliceString(0,void 0,t.state.lineBreak)+c))}else{let o=i.changes(e),c=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=a.to&&e.to>=a.to-10){let d=t.state.sliceDoc(e.from,e.to),f,p=n&&w7(t,n.main.head);if(p){let b=e.insert.length-(e.to-e.from);f={from:p.from,to:p.to-b}}else f=t.state.doc.lineAt(a.head);let m=a.to-e.to,g=a.to-a.from;r=i.changeByRange(b=>{if(b.from==a.from&&b.to==a.to)return{changes:o,range:c||b.map(o)};let S=b.to-m,y=S-d.length;if(b.to-b.from!=g||t.state.sliceDoc(y,S)!=d||b.to>=f.from&&b.from<=f.to)return{range:b};let E=i.changes({from:y,to:S,insert:e.insert}),T=b.to-a.to;return{changes:E,range:c?Fe.range(Math.max(0,c.anchor+T),Math.max(0,c.head+T)):b.map(E)}})}else r={changes:o,selection:c&&i.selection.replaceRange(c)}}let s="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,s+=".compose",t.inputState.compositionFirstChange&&(s+=".start",t.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function H_e(t,e,n,r){let i=Math.min(t.length,e.length),a=0;for(;a<i&&t.charCodeAt(a)==e.charCodeAt(a);)a++;if(a==i&&t.length==e.length)return null;let s=t.length,o=e.length;for(;s>0&&o>0&&t.charCodeAt(s-1)==e.charCodeAt(o-1);)s--,o--;if(r=="end"){let c=Math.max(0,a-Math.min(s,o));n-=s+c-a}if(s<a&&t.length<e.length){let c=n<=a&&n>=s?a-n:0;a-=c,o=a+(o-s),s=a}else if(o<a){let c=n<=a&&n>=o?a-n:0;a-=c,s=a+(s-o),o=a}return{from:a,toA:s,toB:o}}function V_e(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=t.observer.selectionRange;return n&&(e.push(new QU(n,r)),(i!=n||a!=r)&&e.push(new QU(i,a))),e}function W_e(t,e){if(t.length==0)return null;let n=t[0].pos,r=t.length==2?t[1].pos:n;return n>-1&&r>-1?Fe.single(n+e,r+e):null}class Q_e{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,gt.safari&&e.contentDOM.addEventListener("input",()=>null),gt.gecko&&d0e(e.contentDOM.ownerDocument)}handleEvent(e){!r0e(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,n){let r=this.handlers[e];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=K_e(e),r=this.handlers,i=this.view.contentDOM;for(let a in n)if(a!="scroll"){let s=!n[a].handlers.length,o=r[a];o&&s!=!o.handlers.length&&(i.removeEventListener(a,this.handleEvent),o=null),o||i.addEventListener(a,this.handleEvent,{passive:s})}for(let a in r)a!="scroll"&&!n[a]&&i.removeEventListener(a,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&L7.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),gt.android&&gt.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return gt.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=M7.find(r=>r.keyCode==e.keyCode))&&!e.ctrlKey||X_e.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,fp(this.view.contentDOM,n.key,n.keyCode,n instanceof KeyboardEvent?n:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:gt.safari&&!gt.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function KU(t,e){return(n,r)=>{try{return e.call(t,r,n)}catch(i){Pa(n.state,i)}}}function K_e(t){let e=Object.create(null);function n(r){return e[r]||(e[r]={observers:[],handlers:[]})}for(let r of t){let i=r.spec;if(i&&i.domEventHandlers)for(let a in i.domEventHandlers){let s=i.domEventHandlers[a];s&&n(a).handlers.push(KU(r.value,s))}if(i&&i.domEventObservers)for(let a in i.domEventObservers){let s=i.domEventObservers[a];s&&n(a).observers.push(KU(r.value,s))}}for(let r in al)n(r).handlers.push(al[r]);for(let r in ao)n(r).observers.push(ao[r]);return e}const M7=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],X_e="dthko",L7=[16,17,18,20,91,92,224,225],Tv=6;function xv(t){return Math.max(0,t)*.7+8}function Z_e(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class J_e{constructor(e,n,r,i){this.view=e,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParents=s_e(e.contentDOM),this.atoms=e.state.facet(fk).map(s=>s(e));let a=e.contentDOM.ownerDocument;a.addEventListener("mousemove",this.move=this.move.bind(this)),a.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(un.allowMultipleSelections)&&e0e(e,n),this.dragging=n0e(e,n)&&B7(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Z_e(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,r=0,i=0,a=0,s=this.view.win.innerWidth,o=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:s}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:a,bottom:o}=this.scrollParents.y.getBoundingClientRect());let c=hk(this.view);e.clientX-c.left<=i+Tv?n=-xv(i-e.clientX):e.clientX+c.right>=s-Tv&&(n=xv(e.clientX-s)),e.clientY-c.top<=a+Tv?r=-xv(a-e.clientY):e.clientY+c.bottom>=o-Tv&&(r=xv(e.clientY-o)),this.setScrollSpeed(n,r)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:n}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),n&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=n,n=0),(e||n)&&this.view.win.scrollBy(e,n),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let r=0;r<e.ranges.length;r++){let i=e.ranges[r],a=null;if(i.empty){let s=vS(this.atoms,i.from,0);s!=i.from&&(a=Fe.cursor(s,-1))}else{let s=vS(this.atoms,i.from,-1),o=vS(this.atoms,i.to,1);(s!=i.from||o!=i.to)&&(a=Fe.range(i.from==i.anchor?s:o,i.from==i.head?s:o))}a&&(n||(n=e.ranges.slice()),n[r]=a)}return n?Fe.create(n,e.mainIndex):e}select(e){let{view:n}=this,r=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(n=>n.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function e0e(t,e){let n=t.state.facet(g7);return n.length?n[0](e):gt.mac?e.metaKey:e.ctrlKey}function t0e(t,e){let n=t.state.facet(_7);return n.length?n[0](e):gt.mac?!e.altKey:!e.ctrlKey}function n0e(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let r=W_(t.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let a=0;a<i.length;a++){let s=i[a];if(s.left<=e.clientX&&s.right>=e.clientX&&s.top<=e.clientY&&s.bottom>=e.clientY)return!0}return!1}function r0e(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,r;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=er.get(n))&&r.ignoreEvent(e))return!1;return!0}const al=Object.create(null),ao=Object.create(null),k7=gt.ie&&gt.ie_version<15||gt.ios&&gt.webkit_version<604;function i0e(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),P7(t,n.value)},50)}function lT(t,e,n){for(let r of t.facet(e))n=r(n,t);return n}function P7(t,e){e=lT(t.state,ck,e);let{state:n}=t,r,i=1,a=n.toText(e),s=a.lines==n.selection.ranges.length;if(GI!=null&&n.selection.ranges.every(c=>c.empty)&&GI==a.toString()){let c=-1;r=n.changeByRange(d=>{let f=n.doc.lineAt(d.from);if(f.from==c)return{range:d};c=f.from;let p=n.toText((s?a.line(i++).text:e)+n.lineBreak);return{changes:{from:f.from,insert:p},range:Fe.cursor(d.from+p.length)}})}else s?r=n.changeByRange(c=>{let d=a.line(i++);return{changes:{from:c.from,to:c.to,insert:d.text},range:Fe.cursor(c.from+d.length)}}):r=n.replaceSelection(a);t.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}ao.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};al.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);ao.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};ao.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};al.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of t.state.facet(b7))if(n=r(t,e),n)break;if(!n&&e.button==0&&(n=o0e(t,e)),n){let r=!t.hasFocus;t.inputState.startMouseSelection(new J_e(t,e,n,r)),r&&t.observer.ignore(()=>{XV(t.contentDOM);let a=t.root.activeElement;a&&!a.contains(t.contentDOM)&&a.blur()});let i=t.inputState.mouseSelection;if(i)return i.start(e),i.dragging===!1}return!1};function XU(t,e,n,r){if(r==1)return Fe.cursor(e,n);if(r==2)return L_e(t.state,e,n);{let i=ei.find(t.docView,e),a=t.state.doc.lineAt(i?i.posAtEnd:e),s=i?i.posAtStart:a.from,o=i?i.posAtEnd:a.to;return o<t.state.doc.length&&o==a.to&&o++,Fe.range(s,o)}}let ZU=(t,e,n)=>e>=n.top&&e<=n.bottom&&t>=n.left&&t<=n.right;function a0e(t,e,n,r){let i=ei.find(t.docView,e);if(!i)return 1;let a=e-i.posAtStart;if(a==0)return 1;if(a==i.length)return-1;let s=i.coordsAt(a,-1);if(s&&ZU(n,r,s))return-1;let o=i.coordsAt(a,1);return o&&ZU(n,r,o)?1:s&&s.bottom>=r?-1:1}function JU(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:a0e(t,n,e.clientX,e.clientY)}}const s0e=gt.ie&&gt.ie_version<=11;let ej=null,tj=0,nj=0;function B7(t){if(!s0e)return t.detail;let e=ej,n=nj;return ej=t,nj=Date.now(),tj=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(tj+1)%3:1}function o0e(t,e){let n=JU(t,e),r=B7(e),i=t.state.selection;return{update(a){a.docChanged&&(n.pos=a.changes.mapPos(n.pos),i=i.map(a.changes))},get(a,s,o){let c=JU(t,a),d,f=XU(t,c.pos,c.bias,r);if(n.pos!=c.pos&&!s){let p=XU(t,n.pos,n.bias,r),m=Math.min(p.from,f.from),g=Math.max(p.to,f.to);f=m<f.from?Fe.range(m,g):Fe.range(g,m)}return s?i.replaceRange(i.main.extend(f.from,f.to)):o&&r==1&&i.ranges.length>1&&(d=l0e(i,c.pos))?d:o?i.addRange(f):Fe.create([f])}}}function l0e(t,e){for(let n=0;n<t.ranges.length;n++){let{from:r,to:i}=t.ranges[n];if(r<=e&&i>=e)return Fe.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}al.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let i=t.docView.nearest(e.target);if(i&&i.isWidget){let a=i.posAtStart,s=a+i.length;(a>=n.to||s<=n.from)&&(n=Fe.range(a,s))}}let{inputState:r}=t;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",lT(t.state,uk,t.state.sliceDoc(n.from,n.to))),e.dataTransfer.effectAllowed="copyMove"),!1};al.dragend=t=>(t.inputState.draggedContent=null,!1);function rj(t,e,n,r){if(n=lT(t.state,ck,n),!n)return;let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:a}=t.inputState,s=r&&a&&t0e(t,e)?{from:a.from,to:a.to}:null,o={from:i,insert:n},c=t.state.changes(s?[s,o]:o);t.focus(),t.dispatch({changes:c,selection:{anchor:c.mapPos(i,-1),head:c.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),t.inputState.draggedContent=null}al.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,a=()=>{++i==n.length&&rj(t,e,r.filter(s=>s!=null).join(t.state.lineBreak),!1)};for(let s=0;s<n.length;s++){let o=new FileReader;o.onerror=a,o.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(r[s]=o.result),a()},o.readAsText(n[s])}return!0}else{let r=e.dataTransfer.getData("Text");if(r)return rj(t,e,r,!0),!0}return!1};al.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=k7?null:e.clipboardData;return n?(P7(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(i0e(t),!1)};function c0e(t,e){let n=t.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=e,r.focus(),r.selectionEnd=e.length,r.selectionStart=0,setTimeout(()=>{r.remove(),t.focus()},50)}function u0e(t){let e=[],n=[],r=!1;for(let i of t.selection.ranges)i.empty||(e.push(t.sliceDoc(i.from,i.to)),n.push(i));if(!e.length){let i=-1;for(let{from:a}of t.selection.ranges){let s=t.doc.lineAt(a);s.number>i&&(e.push(s.text),n.push({from:s.from,to:Math.min(t.doc.length,s.to+1)})),i=s.number}r=!0}return{text:lT(t,uk,e.join(t.lineBreak)),ranges:n,linewise:r}}let GI=null;al.copy=al.cut=(t,e)=>{let{text:n,ranges:r,linewise:i}=u0e(t.state);if(!n&&!i)return!1;GI=i?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let a=k7?null:e.clipboardData;return a?(a.clearData(),a.setData("text/plain",n),!0):(c0e(t,n),!1)};const F7=Xl.define();function U7(t,e){let n=[];for(let r of t.facet(E7)){let i=r(t,e);i&&n.push(i)}return n.length?t.update({effects:n,annotations:F7.of(!0)}):null}function j7(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=U7(t.state,e);n?t.dispatch(n):t.update([])}},10)}ao.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),j7(t)};ao.blur=t=>{t.observer.clearSelectionRange(),j7(t)};ao.compositionstart=ao.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))};ao.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,gt.chrome&&gt.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};ao.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};al.beforeinput=(t,e)=>{var n,r;if(e.inputType=="insertReplacementText"&&t.observer.editContext){let a=(n=e.dataTransfer)===null||n===void 0?void 0:n.getData("text/plain"),s=e.getTargetRanges();if(a&&s.length){let o=s[0],c=t.posAtDOM(o.startContainer,o.startOffset),d=t.posAtDOM(o.endContainer,o.endOffset);return pk(t,{from:c,to:d,insert:t.state.toText(a)},null),!0}}let i;if(gt.chrome&&gt.android&&(i=M7.find(a=>a.inputType==e.inputType))&&(t.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let a=((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>a+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return gt.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),gt.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>ao.compositionend(t,e),20),!1};const ij=new Set;function d0e(t){ij.has(t)||(ij.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const aj=["pre-wrap","normal","pre-line","break-spaces"];let Kp=!1;function sj(){Kp=!1}class f0e{constructor(e){this.lineWrapping=e,this.doc=mn.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return aj.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let r=0;r<e.length;r++){let i=e[r];i<0?r++:this.heightSamples[Math.floor(i*10)]||(n=!0,this.heightSamples[Math.floor(i*10)]=!0)}return n}refresh(e,n,r,i,a,s){let o=aj.indexOf(e)>-1,c=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=a,c){this.heightSamples={};for(let d=0;d<s.length;d++){let f=s[d];f<0?d++:this.heightSamples[Math.floor(f*10)]=!0}}return c}}class h0e{constructor(e,n){this.from=e,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class Pl{constructor(e,n,r,i,a){this.from=e,this.length=n,this.top=r,this.height=i,this._content=a}get type(){return typeof this._content=="number"?Fa.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof md?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new Pl(this.from,this.length+e.length,this.top,this.height+e.height,n)}}var dr=function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t}(dr||(dr={}));const SS=.001;class Ua{constructor(e,n,r=2){this.length=e,this.height=n,this.flags=r}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>SS&&(Kp=!0),this.height=e)}replace(e,n,r){return Ua.of(r)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,r,i){let a=this,s=r.doc;for(let o=i.length-1;o>=0;o--){let{fromA:c,toA:d,fromB:f,toB:p}=i[o],m=a.lineAt(c,dr.ByPosNoHeight,r.setDoc(n),0,0),g=m.to>=d?m:a.lineAt(d,dr.ByPosNoHeight,r,0,0);for(p+=g.to-d,d=g.to;o>0&&m.from<=i[o-1].toA;)c=i[o-1].fromA,f=i[o-1].fromB,o--,c<m.from&&(m=a.lineAt(c,dr.ByPosNoHeight,r,0,0));f+=m.from-c,c=m.from;let b=mk.build(r.setDoc(s),e,f,p);a=gE(a,a.replace(c,d,b))}return a.updateHeight(r,0)}static empty(){return new xs(0,0)}static of(e){if(e.length==1)return e[0];let n=0,r=e.length,i=0,a=0;for(;;)if(n==r)if(i>a*2){let o=e[n-1];o.break?e.splice(--n,1,o.left,null,o.right):e.splice(--n,1,o.left,o.right),r+=1+o.break,i-=o.size}else if(a>i*2){let o=e[r];o.break?e.splice(r,1,o.left,null,o.right):e.splice(r,1,o.left,o.right),r+=2+o.break,a-=o.size}else break;else if(i<a){let o=e[n++];o&&(i+=o.size)}else{let o=e[--r];o&&(a+=o.size)}let s=0;return e[n-1]==null?(s=1,n--):e[n]==null&&(s=1,r++),new p0e(Ua.of(e.slice(0,n)),s,Ua.of(e.slice(r)))}}function gE(t,e){return t==e?t:(t.constructor!=e.constructor&&(Kp=!0),e)}Ua.prototype.size=1;class G7 extends Ua{constructor(e,n,r){super(e,n),this.deco=r}blockAt(e,n,r,i){return new Pl(i,this.length,r,this.height,this.deco||0)}lineAt(e,n,r,i,a){return this.blockAt(0,r,i,a)}forEachLine(e,n,r,i,a,s){e<=a+this.length&&n>=a&&s(this.blockAt(0,r,i,a))}updateHeight(e,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class xs extends G7{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,r,i){return new Pl(i,this.length,r,this.height,this.breaks)}replace(e,n,r){let i=r[0];return r.length==1&&(i instanceof xs||i instanceof Wi&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Wi?i=new xs(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Ua.of(r)}updateHeight(e,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(i.heights[i.index++]):(r||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Wi extends Ua{constructor(e){super(e,0)}heightMetrics(e,n){let r=e.doc.lineAt(n).number,i=e.doc.lineAt(n+this.length).number,a=i-r+1,s,o=0;if(e.lineWrapping){let c=Math.min(this.height,e.lineHeight*a);s=c/a,this.length>a+1&&(o=(this.height-c)/(this.length-a-1))}else s=this.height/a;return{firstLine:r,lastLine:i,perLine:s,perChar:o}}blockAt(e,n,r,i){let{firstLine:a,lastLine:s,perLine:o,perChar:c}=this.heightMetrics(n,i);if(n.lineWrapping){let d=i+(e<n.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length)),f=n.doc.lineAt(d),p=o+f.length*c,m=Math.max(r,e-p/2);return new Pl(f.from,f.length,m,p,0)}else{let d=Math.max(0,Math.min(s-a,Math.floor((e-r)/o))),{from:f,length:p}=n.doc.line(a+d);return new Pl(f,p,r+o*d,o,0)}}lineAt(e,n,r,i,a){if(n==dr.ByHeight)return this.blockAt(e,r,i,a);if(n==dr.ByPosNoHeight){let{from:g,to:b}=r.doc.lineAt(e);return new Pl(g,b-g,0,0,0)}let{firstLine:s,perLine:o,perChar:c}=this.heightMetrics(r,a),d=r.doc.lineAt(e),f=o+d.length*c,p=d.number-s,m=i+o*p+c*(d.from-a-p);return new Pl(d.from,d.length,Math.max(i,Math.min(m,i+this.height-f)),f,0)}forEachLine(e,n,r,i,a,s){e=Math.max(e,a),n=Math.min(n,a+this.length);let{firstLine:o,perLine:c,perChar:d}=this.heightMetrics(r,a);for(let f=e,p=i;f<=n;){let m=r.doc.lineAt(f);if(f==e){let b=m.number-o;p+=c*b+d*(e-a-b)}let g=c+d*m.length;s(new Pl(m.from,m.length,p,g,0)),p+=g,f=m.to+1}}replace(e,n,r){let i=this.length-n;if(i>0){let a=r[r.length-1];a instanceof Wi?r[r.length-1]=new Wi(a.length+i):r.push(null,new Wi(i-1))}if(e>0){let a=r[0];a instanceof Wi?r[0]=new Wi(e+a.length):r.unshift(new Wi(e-1),null)}return Ua.of(r)}decomposeLeft(e,n){n.push(new Wi(e-1),null)}decomposeRight(e,n){n.push(null,new Wi(this.length-e-1))}updateHeight(e,n=0,r=!1,i){let a=n+this.length;if(i&&i.from<=n+this.length&&i.more){let s=[],o=Math.max(n,i.from),c=-1;for(i.from>n&&s.push(new Wi(i.from-n-1).updateHeight(e,n));o<=a&&i.more;){let f=e.doc.lineAt(o).length;s.length&&s.push(null);let p=i.heights[i.index++];c==-1?c=p:Math.abs(p-c)>=SS&&(c=-2);let m=new xs(f,p);m.outdated=!1,s.push(m),o+=f+1}o<=a&&s.push(null,new Wi(a-o).updateHeight(e,o));let d=Ua.of(s);return(c<0||Math.abs(d.height-this.height)>=SS||Math.abs(c-this.heightMetrics(e,n).perLine)>=SS)&&(Kp=!0),gE(this,d)}else(r||this.outdated)&&(this.setHeight(e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class p0e extends Ua{constructor(e,n,r){super(e.length+n+r.length,e.height+r.height,n|(e.outdated||r.outdated?2:0)),this.left=e,this.right=r,this.size=e.size+r.size}get break(){return this.flags&1}blockAt(e,n,r,i){let a=r+this.left.height;return e<a?this.left.blockAt(e,n,r,i):this.right.blockAt(e,n,a,i+this.left.length+this.break)}lineAt(e,n,r,i,a){let s=i+this.left.height,o=a+this.left.length+this.break,c=n==dr.ByHeight?e<s:e<o,d=c?this.left.lineAt(e,n,r,i,a):this.right.lineAt(e,n,r,s,o);if(this.break||(c?d.to<o:d.from>o))return d;let f=n==dr.ByPosNoHeight?dr.ByPosNoHeight:dr.ByPos;return c?d.join(this.right.lineAt(o,f,r,s,o)):this.left.lineAt(o,f,r,i,a).join(d)}forEachLine(e,n,r,i,a,s){let o=i+this.left.height,c=a+this.left.length+this.break;if(this.break)e<c&&this.left.forEachLine(e,n,r,i,a,s),n>=c&&this.right.forEachLine(e,n,r,o,c,s);else{let d=this.lineAt(c,dr.ByPos,r,i,a);e<d.from&&this.left.forEachLine(e,d.from-1,r,i,a,s),d.to>=e&&d.from<=n&&s(d),n>d.to&&this.right.forEachLine(d.to+1,n,r,o,c,s)}}replace(e,n,r){let i=this.left.length+this.break;if(n<i)return this.balanced(this.left.replace(e,n,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,n-i,r));let a=[];e>0&&this.decomposeLeft(e,a);let s=a.length;for(let o of r)a.push(o);if(e>0&&oj(a,s-1),n<this.length){let o=a.length;this.decomposeRight(n,a),oj(a,o)}return Ua.of(a)}decomposeLeft(e,n){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,n);n.push(this.left),this.break&&(r++,e>=r&&n.push(null)),e>r&&this.right.decomposeLeft(e-r,n)}decomposeRight(e,n){let r=this.left.length,i=r+this.break;if(e>=i)return this.right.decomposeRight(e-i,n);e<r&&this.left.decomposeRight(e,n),this.break&&e<i&&n.push(null),n.push(this.right)}balanced(e,n){return e.size>2*n.size||n.size>2*e.size?Ua.of(this.break?[e,null,n]:[e,n]):(this.left=gE(this.left,e),this.right=gE(this.right,n),this.setHeight(e.height+n.height),this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,r=!1,i){let{left:a,right:s}=this,o=n+a.length+this.break,c=null;return i&&i.from<=n+a.length&&i.more?c=a=a.updateHeight(e,n,r,i):a.updateHeight(e,n,r),i&&i.from<=o+s.length&&i.more?c=s=s.updateHeight(e,o,r,i):s.updateHeight(e,o,r),c?this.balanced(a,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function oj(t,e){let n,r;t[e]==null&&(n=t[e-1])instanceof Wi&&(r=t[e+1])instanceof Wi&&t.splice(e-1,3,new Wi(n.length+1+r.length))}const m0e=5;class mk{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof xs?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new xs(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,r){if(e<n||r.heightRelevant){let i=r.widget?r.widget.estimatedHeight:0,a=r.widget?r.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let s=n-e;r.block?this.addBlock(new G7(s,i,r)):(s||a||i>=m0e)&&this.addLineDeco(i,a,s)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new xs(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let r=new Wi(n-e);return this.oracle.doc.lineAt(e).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof xs)return e;let n=new xs(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof xs)&&!this.isCovered?this.nodes.push(new xs(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=e;for(let i of this.nodes)i instanceof xs&&i.updateHeight(this.oracle,r),r+=i?i.length:1;return this.nodes}static build(e,n,r,i){let a=new mk(r,e);return bn.spans(n,r,i,a,0),a.finish(r)}}function g0e(t,e,n){let r=new _0e;return bn.compare(t,e,n,r,0),r.changes}class _0e{constructor(){this.changes=[]}compareRange(){}comparePoint(e,n,r,i){(e<n||r&&r.heightRelevant||i&&i.heightRelevant)&&bS(e,n,this.changes,5)}}function b0e(t,e){let n=t.getBoundingClientRect(),r=t.ownerDocument,i=r.defaultView||window,a=Math.max(0,n.left),s=Math.min(i.innerWidth,n.right),o=Math.max(0,n.top),c=Math.min(i.innerHeight,n.bottom);for(let d=t.parentNode;d&&d!=r.body;)if(d.nodeType==1){let f=d,p=window.getComputedStyle(f);if((f.scrollHeight>f.clientHeight||f.scrollWidth>f.clientWidth)&&p.overflow!="visible"){let m=f.getBoundingClientRect();a=Math.max(a,m.left),s=Math.min(s,m.right),o=Math.max(o,m.top),c=Math.min(d==t.parentNode?i.innerHeight:c,m.bottom)}d=p.position=="absolute"||p.position=="fixed"?f.offsetParent:f.parentNode}else if(d.nodeType==11)d=d.host;else break;return{left:a-n.left,right:Math.max(a,s)-n.left,top:o-(n.top+e),bottom:Math.max(o,c)-(n.top+e)}}function v0e(t){let e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView||window;return e.left<n.innerWidth&&e.right>0&&e.top<n.innerHeight&&e.bottom>0}function S0e(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class TO{constructor(e,n,r,i){this.from=e,this.to=n,this.size=r,this.displaySize=i}static same(e,n){if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],a=n[r];if(i.from!=a.from||i.to!=a.to||i.size!=a.size)return!1}return!0}draw(e,n){return Rt.replace({widget:new E0e(this.displaySize*(n?e.scaleY:e.scaleX),n)}).range(this.from,this.to)}}class E0e extends Jl{constructor(e,n){super(),this.size=e,this.vertical=n}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class lj{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=cj,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=gr.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=e.facet(dk).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new f0e(n),this.stateDeco=e.facet(Q_).filter(r=>typeof r!="function"),this.heightMap=Ua.empty().applyChanges(this.stateDeco,mn.empty,this.heightOracle.setDoc(e.doc),[new no(0,0,0,e.doc.length)]);for(let r=0;r<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());r++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Rt.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!e.some(({from:a,to:s})=>i>=a&&i<=s)){let{from:a,to:s}=this.lineBlockAt(i);e.push(new Cv(a,s))}}return this.viewports=e.sort((r,i)=>r.from-i.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?cj:new gk(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(n_(e,this.scaler))})}update(e,n=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Q_).filter(f=>typeof f!="function");let i=e.changedRanges,a=no.extendWithRanges(i,g0e(r,this.stateDeco,e?e.changes:_i.empty(this.state.doc.length))),s=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);sj(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),a),(this.heightMap.height!=s||Kp)&&(e.flags|=2),o?(this.scrollAnchorPos=e.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=s);let c=a.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.head<c.from||n.range.head>c.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,n));let d=c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,e.flags|=this.updateForViewport(),(d||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(T7)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,a=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?gr.RTL:gr.LTR;let s=this.heightOracle.mustRefreshForWrapping(a),o=n.getBoundingClientRect(),c=s||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let d=0,f=0;if(o.width&&o.height){let{scaleX:O,scaleY:C}=KV(n,o);(O>.005&&Math.abs(this.scaleX-O)>.005||C>.005&&Math.abs(this.scaleY-C)>.005)&&(this.scaleX=O,this.scaleY=C,d|=16,s=c=!0)}let p=(parseInt(r.paddingTop)||0)*this.scaleY,m=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=p||this.paddingBottom!=m)&&(this.paddingTop=p,this.paddingBottom=m,d|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(c=!0),this.editorWidth=e.scrollDOM.clientWidth,d|=16);let g=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=g&&(this.scrollAnchorHeight=-1,this.scrollTop=g),this.scrolledToBottom=JV(e.scrollDOM);let b=(this.printing?S0e:b0e)(n,this.paddingTop),S=b.top-this.pixelViewport.top,y=b.bottom-this.pixelViewport.bottom;this.pixelViewport=b;let E=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(E!=this.inView&&(this.inView=E,E&&(c=!0)),!this.inView&&!this.scrollTarget&&!v0e(e.dom))return 0;let T=o.width;if((this.contentDOMWidth!=T||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=e.scrollDOM.clientHeight,d|=16),c){let O=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(O)&&(s=!0),s||i.lineWrapping&&Math.abs(T-this.contentDOMWidth)>i.charWidth){let{lineHeight:C,charWidth:N,textHeight:w}=e.docView.measureTextSize();s=C>0&&i.refresh(a,C,N,w,T/N,O),s&&(e.docView.minWidth=0,d|=16)}S>0&&y>0?f=Math.max(S,y):S<0&&y<0&&(f=Math.min(S,y)),sj();for(let C of this.viewports){let N=C.from==this.viewport.from?O:e.docView.measureVisibleLineHeights(C);this.heightMap=(s?Ua.empty().applyChanges(this.stateDeco,mn.empty,this.heightOracle,[new no(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new h0e(C.from,N))}Kp&&(d|=2)}let x=!this.viewportIsAppropriate(this.viewport,f)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return x&&(d&2&&(d|=this.updateScaler()),this.viewport=this.getViewport(f,this.scrollTarget),d|=this.updateForViewport()),(d&2||x)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),d|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),d}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,a=this.heightOracle,{visibleTop:s,visibleBottom:o}=this,c=new Cv(i.lineAt(s-r*1e3,dr.ByHeight,a,0,0).from,i.lineAt(o+(1-r)*1e3,dr.ByHeight,a,0,0).to);if(n){let{head:d}=n.range;if(d<c.from||d>c.to){let f=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),p=i.lineAt(d,dr.ByPos,a,0,0),m;n.y=="center"?m=(p.top+p.bottom)/2-f/2:n.y=="start"||n.y=="nearest"&&d<c.from?m=p.top:m=p.bottom-f,c=new Cv(i.lineAt(m-1e3/2,dr.ByHeight,a,0,0).from,i.lineAt(m+f+1e3/2,dr.ByHeight,a,0,0).to)}}return c}mapViewport(e,n){let r=n.mapPos(e.from,-1),i=n.mapPos(e.to,1);return new Cv(this.heightMap.lineAt(r,dr.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,dr.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:n},r=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(e,dr.ByPos,this.heightOracle,0,0),{bottom:a}=this.heightMap.lineAt(n,dr.ByPos,this.heightOracle,0,0),{visibleTop:s,visibleBottom:o}=this;return(e==0||i<=s-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||a>=o+Math.max(10,Math.min(r,250)))&&i>s-2*1e3&&a<o+2*1e3}mapLineGaps(e,n){if(!e.length||n.empty)return e;let r=[];for(let i of e)n.touchesRange(i.from,i.to)||r.push(new TO(n.mapPos(i.from),n.mapPos(i.to),i.size,i.displaySize));return r}ensureLineGaps(e,n){let r=this.heightOracle.lineWrapping,i=r?1e4:2e3,a=i>>1,s=i<<1;if(this.defaultTextDirection!=gr.LTR&&!r)return[];let o=[],c=(f,p,m,g)=>{if(p-f<a)return;let b=this.state.selection.main,S=[b.from];b.empty||S.push(b.to);for(let E of S)if(E>f&&E<p){c(f,E-10,m,g),c(E+10,p,m,g);return}let y=T0e(e,E=>E.from>=m.from&&E.to<=m.to&&Math.abs(E.from-f)<a&&Math.abs(E.to-p)<a&&!S.some(T=>E.from<T&&E.to>T));if(!y){if(p<m.to&&n&&r&&n.visibleRanges.some(x=>x.from<=p&&x.to>=p)){let x=n.moveToLineBoundary(Fe.cursor(p),!1,!0).head;x>f&&(p=x)}let E=this.gapSize(m,f,p,g),T=r||E<2e6?E:2e6;y=new TO(f,p,E,T)}o.push(y)},d=f=>{if(f.length<s||f.type!=Fa.Text)return;let p=y0e(f.from,f.to,this.stateDeco);if(p.total<s)return;let m=this.scrollTarget?this.scrollTarget.range.head:null,g,b;if(r){let S=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,y,E;if(m!=null){let T=Rv(p,m),x=((this.visibleBottom-this.visibleTop)/2+S)/f.height;y=T-x,E=T+x}else y=(this.visibleTop-f.top-S)/f.height,E=(this.visibleBottom-f.top+S)/f.height;g=Ov(p,y),b=Ov(p,E)}else{let S=p.total*this.heightOracle.charWidth,y=i*this.heightOracle.charWidth,E=0;if(S>2e6)for(let N of e)N.from>=f.from&&N.from<f.to&&N.size!=N.displaySize&&N.from*this.heightOracle.charWidth+E<this.pixelViewport.left&&(E=N.size-N.displaySize);let T=this.pixelViewport.left+E,x=this.pixelViewport.right+E,O,C;if(m!=null){let N=Rv(p,m),w=((x-T)/2+y)/S;O=N-w,C=N+w}else O=(T-y)/S,C=(x+y)/S;g=Ov(p,O),b=Ov(p,C)}g>f.from&&c(f.from,g,f,p),b<f.to&&c(b,f.to,f,p)};for(let f of this.viewportLines)Array.isArray(f.type)?f.type.forEach(d):d(f);return o}gapSize(e,n,r,i){let a=Rv(i,r)-Rv(i,n);return this.heightOracle.lineWrapping?e.height*a:i.total*this.heightOracle.charWidth*a}updateLineGaps(e){TO.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Rt.set(e.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let n=this.stateDeco;this.lineGaps.length&&(n=n.concat(this.lineGapDeco));let r=[];bn.spans(n,this.viewport.from,this.viewport.to,{span(a,s){r.push({from:a,to:s})},point(){}},20);let i=0;if(r.length!=this.visibleRanges.length)i=12;else for(let a=0;a<r.length&&!(i&8);a++){let s=this.visibleRanges[a],o=r[a];(s.from!=o.from||s.to!=o.to)&&(i|=4,e&&e.mapPos(s.from,-1)==o.from&&e.mapPos(s.to,1)==o.to||(i|=8))}return this.visibleRanges=r,i}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||n_(this.heightMap.lineAt(e,dr.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=e&&n.bottom>=e)||n_(this.heightMap.lineAt(this.scaler.fromDOM(e),dr.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return n_(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Cv{constructor(e,n){this.from=e,this.to=n}}function y0e(t,e,n){let r=[],i=t,a=0;return bn.spans(n,t,e,{span(){},point(s,o){s>i&&(r.push({from:i,to:s}),a+=s-i),i=o}},20),i<e&&(r.push({from:i,to:e}),a+=e-i),{total:a,ranges:r}}function Ov({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let r=Math.floor(t*n);for(let i=0;;i++){let{from:a,to:s}=e[i],o=s-a;if(r<=o)return a+r;r-=o}}function Rv(t,e){let n=0;for(let{from:r,to:i}of t.ranges){if(e<=i){n+=e-r;break}n+=i-r}return n/t.total}function T0e(t,e){for(let n of t)if(e(n))return n}const cj={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class gk{constructor(e,n,r){let i=0,a=0,s=0;this.viewports=r.map(({from:o,to:c})=>{let d=n.lineAt(o,dr.ByPos,e,0,0).top,f=n.lineAt(c,dr.ByPos,e,0,0).bottom;return i+=f-d,{from:o,to:c,top:d,bottom:f,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let o of this.viewports)o.domTop=s+(o.top-a)*this.scale,s=o.domBottom=o.domTop+(o.bottom-o.top),a=o.bottom}toDOM(e){for(let n=0,r=0,i=0;;n++){let a=n<this.viewports.length?this.viewports[n]:null;if(!a||e<a.top)return i+(e-r)*this.scale;if(e<=a.bottom)return a.domTop+(e-a.top);r=a.bottom,i=a.domBottom}}fromDOM(e){for(let n=0,r=0,i=0;;n++){let a=n<this.viewports.length?this.viewports[n]:null;if(!a||e<a.domTop)return r+(e-i)/this.scale;if(e<=a.domBottom)return a.top+(e-a.domTop);r=a.bottom,i=a.domBottom}}eq(e){return e instanceof gk?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((n,r)=>n.from==e.viewports[r].from&&n.to==e.viewports[r].to):!1}}function n_(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),r=e.toDOM(t.bottom);return new Pl(t.from,t.length,n,r-n,Array.isArray(t._content)?t._content.map(i=>n_(i,e)):t._content)}const Nv=ut.define({combine:t=>t.join(" ")}),qI=ut.define({combine:t=>t.indexOf(!0)>-1}),$I=hd.newName(),q7=hd.newName(),$7=hd.newName(),z7={"&light":"."+q7,"&dark":"."+$7};function zI(t,e,n){return new hd(e,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return t;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):t+" "+r}})}const x0e=zI("."+$I,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},z7),C0e={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},xO=gt.ie&&gt.ie_version<=11;class O0e{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new o_e,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(gt.ie&&gt.ie_version<=11||gt.ios&&e.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(gt.chrome&&gt.chrome_version<126)&&(this.editContext=new N0e(e),e.state.facet(Ic)&&(e.contentDOM.editContext=this.editContext.editContext)),xO&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,r)=>n!=e[r]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(Ic)?r.root.activeElement!=this.dom:!_S(this.dom,i))return;let a=i.anchorNode&&r.docView.nearest(i.anchorNode);if(a&&a.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(gt.ie&&gt.ie_version<=11||gt.android&&gt.chrome)&&!r.state.selection.main.empty&&i.focusNode&&b_(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=W_(e.root);if(!n)return!1;let r=gt.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&R0e(this.view,n)||n;if(!r||this.selectionRange.eq(r))return!1;let i=_S(this.dom,r);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&c_e(this.dom,r)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(r),i&&(this.selectionChanged=!0),!0)}setSelectionRange(e,n){this.selectionRange.set(e.node,e.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,n=null;for(let r=this.dom;r;)if(r.nodeType==1)!n&&e<this.scrollTargets.length&&this.scrollTargets[e]==r?e++:n||(n=this.scrollTargets.slice(0,e)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(e<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,e)),n){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=n)r.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,C0e),xO&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),xO&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,n){var r;if(!this.delayedAndroidKey){let i=()=>{let a=this.delayedAndroidKey;a&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=a.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&a.force&&fp(this.dom,a.key,a.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let a of e){let s=this.readMutation(a);s&&(s.typeOver&&(i=!0),n==-1?{from:n,to:r}=s:(n=Math.min(s.from,n),r=Math.max(s.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:e,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&_S(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let a=new z_e(this.view,e,n,r);return this.view.docView.domChanged={newSel:a.newSel?a.newSel.main:null},a}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=D7(this.view,n);return this.view.state==r&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),i}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let r=uj(n,e.previousSibling||e.target.previousSibling,-1),i=uj(n,e.nextSibling||e.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Ic)!=e.state.facet(Ic)&&(e.view.contentDOM.editContext=e.state.facet(Ic)?this.editContext.editContext:null))}destroy(){var e,n,r;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function uj(t,e,n){for(;e;){let r=er.get(e);if(r&&r.parent==t)return r;let i=e.parentNode;e=i!=t.dom?i:n>0?e.nextSibling:e.previousSibling}return null}function dj(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,a=e.endOffset,s=t.docView.domAtPos(t.state.selection.main.anchor);return b_(s.node,s.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function R0e(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return dj(t,i)}let n=null;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",r,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",r,!0),n?dj(t,n):null}class N0e{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let n=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=r=>{let i=e.state.selection.main,{anchor:a,head:s}=i,o=this.toEditorPos(r.updateRangeStart),c=this.toEditorPos(r.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:r.updateRangeStart,editorBase:o,drifted:!1});let d={from:o,to:c,insert:mn.of(r.text.split(`
`))};if(d.from==this.from&&a<this.from?d.from=a:d.to==this.to&&a>this.to&&(d.to=a),d.from==d.to&&!d.insert.length){let f=Fe.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd));f.main.eq(i)||e.dispatch({selection:f,userEvent:"select"});return}if((gt.mac||gt.android)&&d.from==s-1&&/^\. ?$/.test(r.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(d={from:o,to:c,insert:mn.of([r.text.replace("."," ")])}),this.pendingContextChange=d,!e.state.readOnly){let f=this.to-this.from+(d.to-d.from+d.insert.length);pk(e,d,Fe.single(this.toEditorPos(r.selectionStart,f),this.toEditorPos(r.selectionEnd,f)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=r=>{let i=[],a=null;for(let s=this.toEditorPos(r.rangeStart),o=this.toEditorPos(r.rangeEnd);s<o;s++){let c=e.coordsForChar(s);a=c&&new DOMRect(c.left,c.top,c.right-c.left,c.bottom-c.top)||a||new DOMRect,i.push(a)}n.updateCharacterBounds(r.rangeStart,i)},this.handlers.textformatupdate=r=>{let i=[];for(let a of r.getTextFormats()){let s=a.underlineStyle,o=a.underlineThickness;if(s!="None"&&o!="None"){let c=this.toEditorPos(a.rangeStart),d=this.toEditorPos(a.rangeEnd);if(c<d){let f=`text-decoration: underline ${s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${o=="Thin"?1:2}px`;i.push(Rt.mark({attributes:{style:f}}).range(c,d))}}}e.dispatch({effects:C7.of(Rt.set(i))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:r}=this.composing;this.composing=null,r&&this.reset(e.state)}};for(let r in this.handlers)n.addEventListener(r,this.handlers[r]);this.measureReq={read:r=>{this.editContext.updateControlBounds(r.contentDOM.getBoundingClientRect());let i=W_(r.root);i&&i.rangeCount&&this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let n=0,r=!1,i=this.pendingContextChange;return e.changes.iterChanges((a,s,o,c,d)=>{if(r)return;let f=d.length-(s-a);if(i&&s>=i.to)if(i.from==a&&i.to==s&&i.insert.eq(d)){i=this.pendingContextChange=null,n+=f,this.to+=f;return}else i=null,this.revertPending(e.state);if(a+=n,s+=n,s<=this.from)this.from+=f,this.to+=f;else if(a<this.to){if(a<this.from||s>this.to||this.to-this.from+d.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(a),this.toContextPos(s),d.toString()),this.to+=f}n+=f}),i&&!r&&this.revertPending(e.state),!r}update(e){let n=this.pendingContextChange,r=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(r.from,r.to)&&e.transactions.some(i=>!i.isUserEvent("input.type")&&i.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||n)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:n}=e.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(e.doc.length,n+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.from+n.insert.length),e.doc.sliceString(n.from,n.to))}setSelection(e){let{main:n}=e.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),i=this.toContextPos(n.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=i)&&this.editContext.updateSelection(r,i)}rangeIsValid(e){let{head:n}=e.selection.main;return!(this.from>0&&n-this.from<500||this.to<e.doc.length&&this.to-n<500||this.to-this.from>1e4*3)}toEditorPos(e,n=this.to-this.from){e=Math.min(e,n);let r=this.composing;return r&&r.drifted?r.editorBase+(e-r.contextBase):e+this.from}toContextPos(e){let n=this.composing;return n&&n.drifted?n.contextBase+(e-n.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class tt{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var n;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:r}=e;this.dispatchTransactions=e.dispatchTransactions||r&&(i=>i.forEach(a=>r(a,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||l_e(e.parent)||document,this.viewState=new lj(e.state||un.create(e)),e.scrollTo&&e.scrollTo.is(yv)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Jg).map(i=>new SO(i));for(let i of this.plugins)i.update(this);this.observer=new O0e(this),this.inputState=new Q_e(this),this.inputState.ensureHandlers(this.plugins),this.docView=new $U(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((n=document.fonts)===null||n===void 0)&&n.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let n=e.length==1&&e[0]instanceof ii?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,a=this.state;for(let m of e){if(m.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=m.state}if(this.destroyed){this.viewState.state=a;return}let s=this.hasFocus,o=0,c=null;e.some(m=>m.annotation(F7))?(this.inputState.notifiedFocused=s,o=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,c=U7(a,s),c||(o=1));let d=this.observer.delayedAndroidKey,f=null;if(d?(this.observer.clearDelayedAndroidKey(),f=this.observer.readChange(),(f&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(f=null)):this.observer.clear(),a.facet(un.phrases)!=this.state.facet(un.phrases))return this.setState(a);i=mE.create(this,a,e),i.flags|=o;let p=this.viewState.scrollTarget;try{this.updateState=2;for(let m of e){if(p&&(p=p.map(m.changes)),m.scrollIntoView){let{main:g}=m.state.selection;p=new hp(g.empty?g:Fe.cursor(g.head,g.head>g.anchor?-1:1))}for(let g of m.effects)g.is(yv)&&(p=g.value.clip(this.state))}this.viewState.update(i,p),this.bidiCache=_E.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(e_)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(m=>m.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(Nv)!=i.state.facet(Nv)&&(this.viewState.mustMeasureContent=!0),(n||r||p||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!i.empty)for(let m of this.state.facet(FI))try{m(i)}catch(g){Pa(this.state,g,"update listener")}(c||f)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),f&&!D7(this,f)&&d.force&&fp(this.contentDOM,d.key,d.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new lj(e),this.plugins=e.facet(Jg).map(r=>new SO(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new $U(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(Jg),r=e.state.facet(Jg);if(n!=r){let i=[];for(let a of r){let s=n.indexOf(a);if(s<0)i.push(new SO(a));else{let o=this.plugins[s];o.mustUpdate=e,i.push(o)}}for(let a of this.plugins)a.mustUpdate!=e&&a.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this);n!=r&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let n=e.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(r){Pa(this.state,r,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:a,scrollAnchorHeight:s}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let o=0;;o++){if(s<0)if(JV(r))a=-1,s=this.viewState.heightMap.height;else{let g=this.viewState.scrollAnchorAt(i);a=g.from,s=g.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(o>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let d=[];c&4||([this.measureRequests,d]=[d,this.measureRequests]);let f=d.map(g=>{try{return g.read(this)}catch(b){return Pa(this.state,b),fj}}),p=mE.create(this,this.state,[]),m=!1;p.flags|=c,n?n.flags|=c:n=p,this.updateState=2,p.empty||(this.updatePlugins(p),this.inputState.update(p),this.updateAttrs(),m=this.docView.update(p),m&&this.docViewUpdate());for(let g=0;g<d.length;g++)if(f[g]!=fj)try{let b=d[g];b.write&&b.write(f[g],this)}catch(b){Pa(this.state,b)}if(m&&this.docView.updateSelection(!0),!p.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,s=-1;continue}else{let b=(a<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(a).top)-s;if(b>1||b<-1){i=i+b,r.scrollTop=i/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let o of this.state.facet(FI))o(n)}get themeClasses(){return $I+" "+(this.state.facet(qI)?$7:q7)+" "+this.state.facet(Nv)}updateAttrs(){let e=hj(this,O7,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Ic)?"true":"false",class:"cm-content",style:`${gt.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),hj(this,dk,n);let r=this.observer.ignore(()=>{let i=MI(this.contentDOM,this.contentAttrs,n),a=MI(this.dom,this.editorAttrs,e);return i||a});return this.editorAttrs=e,this.contentAttrs=n,r}showAnnouncements(e){let n=!0;for(let r of e)for(let i of r.effects)if(i.is(tt.announce)){n&&(this.announceDOM.textContent=""),n=!1;let a=this.announceDOM.appendChild(document.createElement("div"));a.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(e_);let e=this.state.facet(tt.cspNonce);hd.mount(this.root,this.styleModules.concat(x0e).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key){this.measureRequests[n]=e;return}}this.measureRequests.push(e)}}plugin(e){let n=this.pluginMap.get(e);return(n===void 0||n&&n.spec!=e)&&this.pluginMap.set(e,n=this.plugins.find(r=>r.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,r){return yO(this,e,WU(this,e,n,r))}moveByGroup(e,n){return yO(this,e,WU(this,e,n,r=>j_e(this,e.head,r)))}visualLineSide(e,n){let r=this.bidiSpans(e),i=this.textDirectionAt(e.from),a=r[n?r.length-1:0];return Fe.cursor(a.side(n,i)+e.from,a.forward(!n,i)?1:-1)}moveToLineBoundary(e,n,r=!0){return U_e(this,e,n,r)}moveVertically(e,n,r){return yO(this,e,G_e(this,e,n,r))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){return this.readMeasured(),I7(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let r=this.docView.coordsAt(e,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(e),a=this.bidiSpans(i),s=a[id.find(a,e-i.from,-1,n)];return M0(r,s.dir==gr.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(y7)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>A0e)return p7(e.length);let n=this.textDirectionAt(e.from),r;for(let a of this.bidiCache)if(a.from==e.from&&a.dir==n&&(a.fresh||h7(a.isolates,r=qU(this,e))))return a.order;r||(r=qU(this,e));let i=T_e(e.text,n,r);return this.bidiCache.push(new _E(e.from,e.to,n,r,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||gt.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{XV(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return yv.of(new hp(typeof e=="number"?Fe.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return yv.of(new hp(Fe.cursor(r.from),"start","start",r.top-e,n,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Br.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Br.define(()=>({}),{eventObservers:e})}static theme(e,n){let r=hd.newName(),i=[Nv.of(r),e_.of(zI(`.${r}`,e))];return n&&n.dark&&i.push(qI.of(!0)),i}static baseTheme(e){return nu.lowest(e_.of(zI("."+$I,e,z7)))}static findFromDOM(e){var n;let r=e.querySelector(".cm-content"),i=r&&er.get(r)||er.get(e);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}tt.styleModule=e_;tt.inputHandler=S7;tt.clipboardInputFilter=ck;tt.clipboardOutputFilter=uk;tt.scrollHandler=x7;tt.focusChangeEffect=E7;tt.perLineTextDirection=y7;tt.exceptionSink=v7;tt.updateListener=FI;tt.editable=Ic;tt.mouseSelectionStyle=b7;tt.dragMovesSelection=_7;tt.clickAddsSelectionRange=g7;tt.decorations=Q_;tt.outerDecorations=R7;tt.atomicRanges=fk;tt.bidiIsolatedRanges=N7;tt.scrollMargins=A7;tt.darkTheme=qI;tt.cspNonce=ut.define({combine:t=>t.length?t[0]:""});tt.contentAttributes=dk;tt.editorAttributes=O7;tt.lineWrapping=tt.contentAttributes.of({class:"cm-lineWrapping"});tt.announce=jt.define();const A0e=4096,fj={};class _E{constructor(e,n,r,i,a,s){this.from=e,this.to=n,this.dir=r,this.isolates=i,this.fresh=a,this.order=s}static update(e,n){if(n.empty&&!e.some(a=>a.fresh))return e;let r=[],i=e.length?e[e.length-1].dir:gr.LTR;for(let a=Math.max(0,e.length-10);a<e.length;a++){let s=e[a];s.dir==i&&!n.touchesRange(s.from,s.to)&&r.push(new _E(n.mapPos(s.from,1),n.mapPos(s.to,-1),s.dir,s.isolates,!1,s.order))}return r}}function hj(t,e,n){for(let r=t.state.facet(e),i=r.length-1;i>=0;i--){let a=r[i],s=typeof a=="function"?a(t):a;s&&DI(s,n)}return n}const w0e=gt.mac?"mac":gt.windows?"win":gt.linux?"linux":"key";function I0e(t,e){const n=t.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,a,s,o;for(let c=0;c<n.length-1;++c){const d=n[c];if(/^(cmd|meta|m)$/i.test(d))o=!0;else if(/^a(lt)?$/i.test(d))i=!0;else if(/^(c|ctrl|control)$/i.test(d))a=!0;else if(/^s(hift)?$/i.test(d))s=!0;else if(/^mod$/i.test(d))e=="mac"?o=!0:a=!0;else throw new Error("Unrecognized modifier name: "+d)}return i&&(r="Alt-"+r),a&&(r="Ctrl-"+r),o&&(r="Meta-"+r),s&&(r="Shift-"+r),r}function Av(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n!==!1&&e.shiftKey&&(t="Shift-"+t),t}const D0e=nu.default(tt.domEventHandlers({keydown(t,e){return H7(Y7(e.state),t,e,"editor")}})),ad=ut.define({enables:D0e}),pj=new WeakMap;function Y7(t){let e=t.facet(ad),n=pj.get(e);return n||pj.set(e,n=k0e(e.reduce((r,i)=>r.concat(i),[]))),n}function M0e(t,e,n){return H7(Y7(t.state),e,t,n)}let $u=null;const L0e=4e3;function k0e(t,e=w0e){let n=Object.create(null),r=Object.create(null),i=(s,o)=>{let c=r[s];if(c==null)r[s]=o;else if(c!=o)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},a=(s,o,c,d,f)=>{var p,m;let g=n[s]||(n[s]=Object.create(null)),b=o.split(/ (?!$)/).map(E=>I0e(E,e));for(let E=1;E<b.length;E++){let T=b.slice(0,E).join(" ");i(T,!0),g[T]||(g[T]={preventDefault:!0,stopPropagation:!1,run:[x=>{let O=$u={view:x,prefix:T,scope:s};return setTimeout(()=>{$u==O&&($u=null)},L0e),!0}]})}let S=b.join(" ");i(S,!1);let y=g[S]||(g[S]={preventDefault:!1,stopPropagation:!1,run:((m=(p=g._any)===null||p===void 0?void 0:p.run)===null||m===void 0?void 0:m.slice())||[]});c&&y.run.push(c),d&&(y.preventDefault=!0),f&&(y.stopPropagation=!0)};for(let s of t){let o=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let d of o){let f=n[d]||(n[d]=Object.create(null));f._any||(f._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:p}=s;for(let m in f)f[m].run.push(g=>p(g,YI))}let c=s[e]||s.key;if(c)for(let d of o)a(d,c,s.run,s.preventDefault,s.stopPropagation),s.shift&&a(d,"Shift-"+c,s.shift,s.preventDefault,s.stopPropagation)}return n}let YI=null;function H7(t,e,n,r){YI=e;let i=r_e(e),a=Ka(i,0),s=kl(a)==i.length&&i!=" ",o="",c=!1,d=!1,f=!1;$u&&$u.view==n&&$u.scope==r&&(o=$u.prefix+" ",L7.indexOf(e.keyCode)<0&&(d=!0,$u=null));let p=new Set,m=y=>{if(y){for(let E of y.run)if(!p.has(E)&&(p.add(E),E(n)))return y.stopPropagation&&(f=!0),!0;y.preventDefault&&(y.stopPropagation&&(f=!0),d=!0)}return!1},g=t[r],b,S;return g&&(m(g[o+Av(i,e,!s)])?c=!0:s&&(e.altKey||e.metaKey||e.ctrlKey)&&!(gt.windows&&e.ctrlKey&&e.altKey)&&(b=pd[e.keyCode])&&b!=i?(m(g[o+Av(b,e,!0)])||e.shiftKey&&(S=V_[e.keyCode])!=i&&S!=b&&m(g[o+Av(S,e,!1)]))&&(c=!0):s&&e.shiftKey&&m(g[o+Av(i,e,!0)])&&(c=!0),!c&&m(g._any)&&(c=!0)),d&&(c=!0),c&&f&&e.stopPropagation(),YI=null,c}class P0{constructor(e,n,r,i,a){this.className=e,this.left=n,this.top=r,this.width=i,this.height=a}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,r){if(r.empty){let i=e.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let a=V7(e);return[new P0(n,i.left-a.left,i.top-a.top,null,i.bottom-i.top)]}else return P0e(e,n,r)}}function V7(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==gr.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function mj(t,e,n,r){let i=t.coordsAtPos(e,n*2);if(!i)return r;let a=t.dom.getBoundingClientRect(),s=(i.top+i.bottom)/2,o=t.posAtCoords({x:a.left+1,y:s}),c=t.posAtCoords({x:a.right-1,y:s});return o==null||c==null?r:{from:Math.max(r.from,Math.min(o,c)),to:Math.min(r.to,Math.max(o,c))}}function P0e(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let r=Math.max(n.from,t.viewport.from),i=Math.min(n.to,t.viewport.to),a=t.textDirection==gr.LTR,s=t.contentDOM,o=s.getBoundingClientRect(),c=V7(t),d=s.querySelector(".cm-line"),f=d&&window.getComputedStyle(d),p=o.left+(f?parseInt(f.paddingLeft)+Math.min(0,parseInt(f.textIndent)):0),m=o.right-(f?parseInt(f.paddingRight):0),g=jI(t,r,1),b=jI(t,i,-1),S=g.type==Fa.Text?g:null,y=b.type==Fa.Text?b:null;if(S&&(t.lineWrapping||g.widgetLineBreaks)&&(S=mj(t,r,1,S)),y&&(t.lineWrapping||b.widgetLineBreaks)&&(y=mj(t,i,-1,y)),S&&y&&S.from==y.from&&S.to==y.to)return T(x(n.from,n.to,S));{let C=S?x(n.from,null,S):O(g,!1),N=y?x(null,n.to,y):O(b,!0),w=[];return(S||g).to<(y||b).from-(S&&y?1:0)||g.widgetLineBreaks>1&&C.bottom+t.defaultLineHeight/2<N.top?w.push(E(p,C.bottom,m,N.top)):C.bottom<N.top&&t.elementAtHeight((C.bottom+N.top)/2).type==Fa.Text&&(C.bottom=N.top=(C.bottom+N.top)/2),T(C).concat(w).concat(T(N))}function E(C,N,w,D){return new P0(e,C-c.left,N-c.top,w-C,D-N)}function T({top:C,bottom:N,horizontal:w}){let D=[];for(let L=0;L<w.length;L+=2)D.push(E(w[L],C,w[L+1],N));return D}function x(C,N,w){let D=1e9,L=-1e9,U=[];function M(H,F,k,P,z){let V=t.coordsAtPos(H,H==w.to?-2:2),G=t.coordsAtPos(k,k==w.from?2:-2);!V||!G||(D=Math.min(V.top,G.top,D),L=Math.max(V.bottom,G.bottom,L),z==gr.LTR?U.push(a&&F?p:V.left,a&&P?m:G.right):U.push(!a&&P?p:G.left,!a&&F?m:V.right))}let B=C??w.from,Y=N??w.to;for(let H of t.visibleRanges)if(H.to>B&&H.from<Y)for(let F=Math.max(H.from,B),k=Math.min(H.to,Y);;){let P=t.state.doc.lineAt(F);for(let z of t.bidiSpans(P)){let V=z.from+P.from,G=z.to+P.from;if(V>=k)break;G>F&&M(Math.max(V,F),C==null&&V<=B,Math.min(G,k),N==null&&G>=Y,z.dir)}if(F=P.to+1,F>=k)break}return U.length==0&&M(B,C==null,Y,N==null,t.textDirection),{top:D,bottom:L,horizontal:U}}function O(C,N){let w=o.top+(N?C.top:C.bottom);return{top:w,bottom:w,horizontal:[]}}}function B0e(t,e){return t.constructor==e.constructor&&t.eq(e)}class F0e{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet(ES)!=e.state.facet(ES)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let n=0,r=e.facet(ES);for(;n<r.length&&r[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:n}=this.view;(e!=this.scaleX||n!=this.scaleY)&&(this.scaleX=e,this.scaleY=n,this.dom.style.transform=`scale(${1/e}, ${1/n})`)}draw(e){if(e.length!=this.drawn.length||e.some((n,r)=>!B0e(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let i of e)i.update&&n&&i.constructor&&this.drawn[r].constructor&&i.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(i.draw(),n);for(;n;){let i=n.nextSibling;n.remove(),n=i}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const ES=ut.define();function W7(t){return[Br.define(e=>new F0e(e,t)),ES.of(t)]}const K_=ut.define({combine(t){return Zl(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function U0e(t={}){return[K_.of(t),j0e,G0e,q0e,T7.of(!0)]}function Q7(t){return t.startState.facet(K_)!=t.state.facet(K_)}const j0e=W7({above:!0,markers(t){let{state:e}=t,n=e.facet(K_),r=[];for(let i of e.selection.ranges){let a=i==e.selection.main;if(i.empty||n.drawRangeCursor){let s=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",o=i.empty?i:Fe.cursor(i.head,i.head>i.anchor?-1:1);for(let c of P0.forRange(t,s,o))r.push(c)}}return r},update(t,e){t.transactions.some(r=>r.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=Q7(t);return n&&gj(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){gj(e.state,t)},class:"cm-cursorLayer"});function gj(t,e){e.style.animationDuration=t.facet(K_).cursorBlinkRate+"ms"}const G0e=W7({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:P0.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||Q7(t)},class:"cm-selectionLayer"}),q0e=nu.highest(tt.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),K7=jt.define({map(t,e){return t==null?null:e.mapPos(t)}}),r_=Ui.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,r)=>r.is(K7)?r.value:n,t)}}),$0e=Br.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(r_);n==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(r_)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(r_),n=e!=null&&t.coordsAtPos(e);if(!n)return null;let r=t.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-r.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(r_)!=t&&this.view.dispatch({effects:K7.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function z0e(){return[r_,$0e]}function _j(t,e,n,r,i){e.lastIndex=0;for(let a=t.iterRange(n,r),s=n,o;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=e.exec(a.value);)i(s+o.index,o)}function Y0e(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let r=[];for(let{from:i,to:a}of n)i=Math.max(t.state.doc.lineAt(i).from,i-e),a=Math.min(t.state.doc.lineAt(a).to,a+e),r.length&&r[r.length-1].to>=i?r[r.length-1].to=a:r.push({from:i,to:a});return r}class H0e{constructor(e){const{regexp:n,decoration:r,decorate:i,boundary:a,maxLength:s=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(o,c,d,f)=>i(f,d,d+o[0].length,o,c);else if(typeof r=="function")this.addMatch=(o,c,d,f)=>{let p=r(o,c,d);p&&f(d,d+o[0].length,p)};else if(r)this.addMatch=(o,c,d,f)=>f(d,d+o[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=a,this.maxLength=s}createDeco(e){let n=new Yc,r=n.add.bind(n);for(let{from:i,to:a}of Y0e(e,this.maxLength))_j(e.state.doc,this.regexp,i,a,(s,o)=>this.addMatch(o,e,s,r));return n.finish()}updateDeco(e,n){let r=1e9,i=-1;return e.docChanged&&e.changes.iterChanges((a,s,o,c)=>{c>=e.view.viewport.from&&o<=e.view.viewport.to&&(r=Math.min(o,r),i=Math.max(c,i))}),e.viewportMoved||i-r>1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,n.map(e.changes),r,i):n}updateRange(e,n,r,i){for(let a of e.visibleRanges){let s=Math.max(a.from,r),o=Math.min(a.to,i);if(o>s){let c=e.state.doc.lineAt(s),d=c.to<o?e.state.doc.lineAt(o):c,f=Math.max(a.from,c.from),p=Math.min(a.to,d.to);if(this.boundary){for(;s>c.from;s--)if(this.boundary.test(c.text[s-1-c.from])){f=s;break}for(;o<d.to;o++)if(this.boundary.test(d.text[o-d.from])){p=o;break}}let m=[],g,b=(S,y,E)=>m.push(E.range(S,y));if(c==d)for(this.regexp.lastIndex=f-c.from;(g=this.regexp.exec(c.text))&&g.index<p-c.from;)this.addMatch(g,e,g.index+c.from,b);else _j(e.state.doc,this.regexp,f,p,(S,y)=>this.addMatch(y,e,S,b));n=n.update({filterFrom:f,filterTo:p,filter:(S,y)=>S<f||y>p,add:m})}}return n}}const HI=/x/.unicode!=null?"gu":"g",V0e=new RegExp(`[\0-\b
--­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF￹-￼]`,HI),W0e={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let CO=null;function Q0e(){var t;if(CO==null&&typeof document<"u"&&document.body){let e=document.body.style;CO=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return CO||!1}const yS=ut.define({combine(t){let e=Zl(t,{render:null,specialChars:V0e,addSpecialChars:null});return(e.replaceTabs=!Q0e())&&(e.specialChars=new RegExp("	|"+e.specialChars.source,HI)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,HI)),e}});function X7(t={}){return[yS.of(t),K0e()]}let bj=null;function K0e(){return bj||(bj=Br.fromClass(class{constructor(t){this.view=t,this.decorations=Rt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(yS)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new H0e({regexp:t.specialChars,decoration:(e,n,r)=>{let{doc:i}=n.state,a=Ka(e[0],0);if(a==9){let s=i.lineAt(r),o=n.state.tabSize,c=Tm(s.text,o,r-s.from);return Rt.replace({widget:new ebe((o-c%o)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=Rt.replace({widget:new J0e(t,a)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(yS);t.startState.facet(yS)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const X0e="•";function Z0e(t){return t>=32?X0e:t==10?"␤":String.fromCharCode(9216+t)}class J0e extends Jl{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=Z0e(this.code),r=e.state.phrase("Control character")+" "+(W0e[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let a=document.createElement("span");return a.textContent=n,a.title=r,a.setAttribute("aria-label",r),a.className="cm-specialChar",a}ignoreEvent(){return!1}}class ebe extends Jl{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="	",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function tbe(){return rbe}const nbe=Rt.line({class:"cm-activeLine"}),rbe=Br.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let r of t.state.selection.ranges){let i=t.lineBlockAt(r.head);i.from>e&&(n.push(nbe.range(i.from)),e=i.from)}return Rt.set(n)}},{decorations:t=>t.decorations});class ibe extends Jl{constructor(e){super(),this.content=e}toDOM(e){let n=document.createElement("span");return n.className="cm-placeholder",n.style.pointerEvents="none",n.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(e):this.content.cloneNode(!0)),typeof this.content=="string"?n.setAttribute("aria-label","placeholder "+this.content):n.setAttribute("aria-hidden","true"),n}coordsAt(e){let n=e.firstChild?Vp(e.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(e.parentNode),i=M0(n[0],r.direction!="rtl"),a=parseInt(r.lineHeight);return i.bottom-i.top>a*1.5?{left:i.left,right:i.right,top:i.top,bottom:i.top+a}:i}ignoreEvent(){return!1}}function Z7(t){return Br.fromClass(class{constructor(e){this.view=e,this.placeholder=t?Rt.set([Rt.widget({widget:new ibe(t),side:1}).range(0)]):Rt.none}get decorations(){return this.view.state.doc.length?Rt.none:this.placeholder}},{decorations:e=>e.decorations})}const VI=2e3;function abe(t,e,n){let r=Math.min(e.line,n.line),i=Math.max(e.line,n.line),a=[];if(e.off>VI||n.off>VI||e.col<0||n.col<0){let s=Math.min(e.off,n.off),o=Math.max(e.off,n.off);for(let c=r;c<=i;c++){let d=t.doc.line(c);d.length<=o&&a.push(Fe.range(d.from+s,d.to+o))}}else{let s=Math.min(e.col,n.col),o=Math.max(e.col,n.col);for(let c=r;c<=i;c++){let d=t.doc.line(c),f=CI(d.text,s,t.tabSize,!0);if(f<0)a.push(Fe.cursor(d.to));else{let p=CI(d.text,o,t.tabSize);a.push(Fe.range(d.from+f,d.from+p))}}}return a}function sbe(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function vj(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),r=t.state.doc.lineAt(n),i=n-r.from,a=i>VI?-1:i==r.length?sbe(t,e.clientX):Tm(r.text,t.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function obe(t,e){let n=vj(t,e),r=t.state.selection;return n?{update(i){if(i.docChanged){let a=i.changes.mapPos(i.startState.doc.line(n.line).from),s=i.state.doc.lineAt(a);n={line:s.number,col:n.col,off:Math.min(n.off,s.length)},r=r.map(i.changes)}},get(i,a,s){let o=vj(t,i);if(!o)return r;let c=abe(t.state,n,o);return c.length?s?Fe.create(c.concat(r.ranges)):Fe.create(c):r}}:null}function lbe(t){let e=n=>n.altKey&&n.button==0;return tt.mouseSelectionStyle.of((n,r)=>e(r)?obe(n,r):null)}const cbe={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},ube={style:"cursor: crosshair"};function dbe(t={}){let[e,n]=cbe[t.key||"Alt"],r=Br.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==e||n(i))},keyup(i){(i.keyCode==e||!n(i))&&this.set(!1)},mousemove(i){this.set(n(i))}}});return[r,tt.contentAttributes.of(i=>{var a;return!((a=i.plugin(r))===null||a===void 0)&&a.isDown?ube:null})]}const Ug="-10000px";class J7{constructor(e,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=e.state.facet(n),this.tooltips=this.input.filter(s=>s);let a=null;this.tooltipViews=this.tooltips.map(s=>a=r(s,a))}update(e,n){var r;let i=e.state.facet(this.facet),a=i.filter(c=>c);if(i===this.input){for(let c of this.tooltipViews)c.update&&c.update(e);return!1}let s=[],o=n?[]:null;for(let c=0;c<a.length;c++){let d=a[c],f=-1;if(d){for(let p=0;p<this.tooltips.length;p++){let m=this.tooltips[p];m&&m.create==d.create&&(f=p)}if(f<0)s[c]=this.createTooltipView(d,c?s[c-1]:null),o&&(o[c]=!!d.above);else{let p=s[c]=this.tooltipViews[f];o&&(o[c]=n[f]),p.update&&p.update(e)}}}for(let c of this.tooltipViews)s.indexOf(c)<0&&(this.removeTooltipView(c),(r=c.destroy)===null||r===void 0||r.call(c));return n&&(o.forEach((c,d)=>n[d]=c),n.length=o.length),this.input=i,this.tooltips=a,this.tooltipViews=s,!0}}function fbe(t){let e=t.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const OO=ut.define({combine:t=>{var e,n,r;return{position:gt.ios?"absolute":((e=t.find(i=>i.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=t.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||fbe}}}),Sj=new WeakMap,_k=Br.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(OO);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new J7(t,bk,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,r=t.state.facet(OO);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),r=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",n.dom.appendChild(i)}return n.dom.style.position=this.position,n.dom.style.top=Ug,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(t=r.destroy)===null||t===void 0||t.call(r);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=1,e=1,n=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:a}=this.manager.tooltipViews[0];if(gt.gecko)n=a.offsetParent!=this.container.ownerDocument.body;else if(a.style.top==Ug&&a.style.left=="0px"){let s=a.getBoundingClientRect();n=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(n||this.position=="absolute")if(this.parent){let a=this.parent.getBoundingClientRect();a.width&&a.height&&(t=a.width/this.parent.offsetWidth,e=a.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:e}=this.view.viewState);let r=this.view.scrollDOM.getBoundingClientRect(),i=hk(this.view);return{visible:{left:r.left+i.left,top:r.top+i.top,right:r.right-i.right,bottom:r.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((a,s)=>{let o=this.manager.tooltipViews[s];return o.getCoords?o.getCoords(a.pos):this.view.coordsAtPos(a.pos)}),size:this.manager.tooltipViews.map(({dom:a})=>a.getBoundingClientRect()),space:this.view.state.facet(OO).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:n}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let o of this.manager.tooltipViews)o.dom.style.position="absolute"}let{visible:n,space:r,scaleX:i,scaleY:a}=t,s=[];for(let o=0;o<this.manager.tooltips.length;o++){let c=this.manager.tooltips[o],d=this.manager.tooltipViews[o],{dom:f}=d,p=t.pos[o],m=t.size[o];if(!p||c.clip!==!1&&(p.bottom<=Math.max(n.top,r.top)||p.top>=Math.min(n.bottom,r.bottom)||p.right<Math.max(n.left,r.left)-.1||p.left>Math.min(n.right,r.right)+.1)){f.style.top=Ug;continue}let g=c.arrow?d.dom.querySelector(".cm-tooltip-arrow"):null,b=g?7:0,S=m.right-m.left,y=(e=Sj.get(d))!==null&&e!==void 0?e:m.bottom-m.top,E=d.offset||pbe,T=this.view.textDirection==gr.LTR,x=m.width>r.right-r.left?T?r.left:r.right-m.width:T?Math.max(r.left,Math.min(p.left-(g?14:0)+E.x,r.right-S)):Math.min(Math.max(r.left,p.left-S+(g?14:0)-E.x),r.right-S),O=this.above[o];!c.strictSide&&(O?p.top-y-b-E.y<r.top:p.bottom+y+b+E.y>r.bottom)&&O==r.bottom-p.bottom>p.top-r.top&&(O=this.above[o]=!O);let C=(O?p.top-r.top:r.bottom-p.bottom)-b;if(C<y&&d.resize!==!1){if(C<this.view.defaultLineHeight){f.style.top=Ug;continue}Sj.set(d,y),f.style.height=(y=C)/a+"px"}else f.style.height&&(f.style.height="");let N=O?p.top-y-b-E.y:p.bottom+b+E.y,w=x+S;if(d.overlap!==!0)for(let D of s)D.left<w&&D.right>x&&D.top<N+y&&D.bottom>N&&(N=O?D.top-y-2-b:D.bottom+b+2);if(this.position=="absolute"?(f.style.top=(N-t.parent.top)/a+"px",Ej(f,(x-t.parent.left)/i)):(f.style.top=N/a+"px",Ej(f,x/i)),g){let D=p.left+(T?E.x:-E.x)-(x+14-7);g.style.left=D/i+"px"}d.overlap!==!0&&s.push({left:x,top:N,right:w,bottom:N+y}),f.classList.toggle("cm-tooltip-above",O),f.classList.toggle("cm-tooltip-below",!O),d.positioned&&d.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=Ug}},{eventObservers:{scroll(){this.maybeMeasure()}}});function Ej(t,e){let n=parseInt(t.style.left,10);(isNaN(n)||Math.abs(e-n)>1)&&(t.style.left=e+"px")}const hbe=tt.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),pbe={x:0,y:0},bk=ut.define({enables:[_k,hbe]}),bE=ut.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class cT{static create(e){return new cT(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new J7(e,bE,(n,r)=>this.createHostedView(n,r),n=>n.dom.remove())}createHostedView(e,n){let r=e.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)(e=n.destroy)===null||e===void 0||e.call(n)}passProp(e){let n;for(let r of this.manager.tooltipViews){let i=r[e];if(i!==void 0){if(n===void 0)n=i;else if(n!==i)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const mbe=bk.compute([bE],t=>{let e=t.facet(bE);return e.length===0?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:cT.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class gbe{constructor(e,n,r,i,a){this.view=e,this.source=n,this.field=r,this.setHover=i,this.hoverTime=a,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:n}=this,r=e.docView.nearest(n.target);if(!r)return;let i,a=1;if(r instanceof rd)i=r.posAtStart;else{if(i=e.posAtCoords(n),i==null)return;let o=e.coordsAtPos(i);if(!o||n.y<o.top||n.y>o.bottom||n.x<o.left-e.defaultCharacterWidth||n.x>o.right+e.defaultCharacterWidth)return;let c=e.bidiSpans(e.state.doc.lineAt(i)).find(f=>f.from<=i&&f.to>=i),d=c&&c.dir==gr.RTL?-1:1;a=n.x<o.left?-d:d}let s=this.source(e,i,a);if(s!=null&&s.then){let o=this.pending={pos:i};s.then(c=>{this.pending==o&&(this.pending=null,c&&!(Array.isArray(c)&&!c.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(c)?c:[c])}))},c=>Pa(e.state,c,"hover tooltip"))}else s&&!(Array.isArray(s)&&!s.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(s)?s:[s])})}get tooltip(){let e=this.view.plugin(_k),n=e?e.manager.tooltips.findIndex(r=>r.create==cT.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,r;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:i,tooltip:a}=this;if(i.length&&a&&!_be(a.dom,e)||this.pending){let{pos:s}=i[0]||this.pending,o=(r=(n=i[0])===null||n===void 0?void 0:n.end)!==null&&r!==void 0?r:s;(s==o?this.view.posAtCoords(this.lastMove)!=s:!bbe(this.view,s,o,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:r}=this;r&&r.dom.contains(e.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let n=r=>{e.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const wv=4;function _be(t,e){let{left:n,right:r,top:i,bottom:a}=t.getBoundingClientRect(),s;if(s=t.querySelector(".cm-tooltip-arrow")){let o=s.getBoundingClientRect();i=Math.min(o.top,i),a=Math.max(o.bottom,a)}return e.clientX>=n-wv&&e.clientX<=r+wv&&e.clientY>=i-wv&&e.clientY<=a+wv}function bbe(t,e,n,r,i,a){let s=t.scrollDOM.getBoundingClientRect(),o=t.documentTop+t.documentPadding.top+t.contentHeight;if(s.left>r||s.right<r||s.top>i||Math.min(s.bottom,o)<i)return!1;let c=t.posAtCoords({x:r,y:i},!1);return c>=e&&c<=n}function vbe(t,e={}){let n=jt.define(),r=Ui.define({create(){return[]},update(i,a){if(i.length&&(e.hideOnChange&&(a.docChanged||a.selection)?i=[]:e.hideOn&&(i=i.filter(s=>!e.hideOn(a,s))),a.docChanged)){let s=[];for(let o of i){let c=a.changes.mapPos(o.pos,-1,Ji.TrackDel);if(c!=null){let d=Object.assign(Object.create(null),o);d.pos=c,d.end!=null&&(d.end=a.changes.mapPos(d.end)),s.push(d)}}i=s}for(let s of a.effects)s.is(n)&&(i=s.value),s.is(Sbe)&&(i=[]);return i},provide:i=>bE.from(i)});return{active:r,extension:[r,Br.define(i=>new gbe(i,t,r,n,e.hoverTime||300)),mbe]}}function eW(t,e){let n=t.plugin(_k);if(!n)return null;let r=n.manager.tooltips.indexOf(e);return r<0?null:n.manager.tooltipViews[r]}const Sbe=jt.define(),yj=ut.define({combine(t){let e,n;for(let r of t)e=e||r.topContainer,n=n||r.bottomContainer;return{topContainer:e,bottomContainer:n}}});function X_(t,e){let n=t.plugin(tW),r=n?n.specs.indexOf(e):-1;return r>-1?n.panels[r]:null}const tW=Br.fromClass(class{constructor(t){this.input=t.state.facet(Z_),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(yj);this.top=new Iv(t,!0,e.topContainer),this.bottom=new Iv(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(yj);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Iv(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Iv(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(Z_);if(n!=this.input){let r=n.filter(c=>c),i=[],a=[],s=[],o=[];for(let c of r){let d=this.specs.indexOf(c),f;d<0?(f=c(t.view),o.push(f)):(f=this.panels[d],f.update&&f.update(t)),i.push(f),(f.top?a:s).push(f)}this.specs=r,this.panels=i,this.top.sync(a),this.bottom.sync(s);for(let c of o)c.dom.classList.add("cm-panel"),c.mount&&c.mount()}else for(let r of this.panels)r.update&&r.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>tt.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Iv{constructor(e,n,r){this.view=e,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=Tj(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=Tj(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Tj(t){let e=t.nextSibling;return t.remove(),e}const Z_=ut.define({enables:tW});class Vc extends $f{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Vc.prototype.elementClass="";Vc.prototype.toDOM=void 0;Vc.prototype.mapMode=Ji.TrackBefore;Vc.prototype.startSide=Vc.prototype.endSide=-1;Vc.prototype.point=!0;const TS=ut.define(),Ebe=ut.define(),ybe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>bn.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},S_=ut.define();function Tbe(t){return[nW(),S_.of(Object.assign(Object.assign({},ybe),t))]}const xj=ut.define({combine:t=>t.some(e=>e)});function nW(t){return[xbe]}const xbe=Br.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(S_).map(e=>new Oj(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(xj),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,r=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(xj)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=bn.iter(this.view.state.facet(TS),this.view.viewport.from),r=[],i=this.gutters.map(a=>new Cbe(a,this.view.viewport,-this.view.documentPadding.top));for(let a of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(a.type)){let s=!0;for(let o of a.type)if(o.type==Fa.Text&&s){WI(n,r,o.from);for(let c of i)c.line(this.view,o,r);s=!1}else if(o.widget)for(let c of i)c.widget(this.view,o)}else if(a.type==Fa.Text){WI(n,r,a.from);for(let s of i)s.line(this.view,a,r)}else if(a.widget)for(let s of i)s.widget(this.view,a);for(let a of i)a.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(S_),n=t.state.facet(S_),r=t.docChanged||t.heightChanged||t.viewportChanged||!bn.eq(t.startState.facet(TS),t.state.facet(TS),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let i of this.gutters)i.update(t)&&(r=!0);else{r=!0;let i=[];for(let a of n){let s=e.indexOf(a);s<0?i.push(new Oj(this.view,a)):(this.gutters[s].update(t),i.push(this.gutters[s]))}for(let a of this.gutters)a.dom.remove(),i.indexOf(a)<0&&a.destroy();for(let a of i)this.dom.appendChild(a.dom);this.gutters=i}return r}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>tt.scrollMargins.of(e=>{let n=e.plugin(t);return!n||n.gutters.length==0||!n.fixed?null:e.textDirection==gr.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}})});function Cj(t){return Array.isArray(t)?t:[t]}function WI(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class Cbe{constructor(e,n,r){this.gutter=e,this.height=r,this.i=0,this.cursor=bn.iter(e.markers,n.from)}addElement(e,n,r){let{gutter:i}=this,a=(n.top-this.height)/e.scaleY,s=n.height/e.scaleY;if(this.i==i.elements.length){let o=new rW(e,s,a,r);i.elements.push(o),i.dom.appendChild(o.dom)}else i.elements[this.i].update(e,s,a,r);this.height=n.bottom,this.i++}line(e,n,r){let i=[];WI(this.cursor,i,n.from),r.length&&(i=i.concat(r));let a=this.gutter.config.lineMarker(e,n,i);a&&i.unshift(a);let s=this.gutter;i.length==0&&!s.config.renderEmptyElements||this.addElement(e,n,i)}widget(e,n){let r=this.gutter.config.widgetMarker(e,n.widget,n),i=r?[r]:null;for(let a of e.state.facet(Ebe)){let s=a(e,n.widget,n);s&&(i||(i=[])).push(s)}i&&this.addElement(e,n,i)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class Oj{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let a=i.target,s;if(a!=this.dom&&this.dom.contains(a)){for(;a.parentNode!=this.dom;)a=a.parentNode;let c=a.getBoundingClientRect();s=(c.top+c.bottom)/2}else s=i.clientY;let o=e.lineBlockAtHeight(s-e.documentTop);n.domEventHandlers[r](e,o,i)&&i.preventDefault()});this.markers=Cj(n.markers(e)),n.initialSpacer&&(this.spacer=new rW(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=Cj(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let r=e.view.viewport;return!bn.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class rW{constructor(e,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,r,i)}update(e,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),Obe(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let a=0,s=0;;){let o=s,c=a<n.length?n[a++]:null,d=!1;if(c){let f=c.elementClass;f&&(r+=" "+f);for(let p=s;p<this.markers.length;p++)if(this.markers[p].compare(c)){o=p,d=!0;break}}else o=this.markers.length;for(;s<o;){let f=this.markers[s++];if(f.toDOM){f.destroy(i);let p=i.nextSibling;i.remove(),i=p}}if(!c)break;c.toDOM&&(d?i=i.nextSibling:this.dom.insertBefore(c.toDOM(e),i)),d&&s++}this.dom.className=r,this.markers=n}destroy(){this.setMarkers(null,[])}}function Obe(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return!1;return!0}const Rbe=ut.define(),Nbe=ut.define(),Zh=ut.define({combine(t){return Zl(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let r=Object.assign({},e);for(let i in n){let a=r[i],s=n[i];r[i]=a?(o,c,d)=>a(o,c,d)||s(o,c,d):s}return r}})}});class RO extends Vc{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function NO(t,e){return t.state.facet(Zh).formatNumber(e,t.state)}const Abe=S_.compute([Zh],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(Rbe)},lineMarker(e,n,r){return r.some(i=>i.toDOM)?null:new RO(NO(e,e.state.doc.lineAt(n.from).number))},widgetMarker:(e,n,r)=>{for(let i of e.state.facet(Nbe)){let a=i(e,n,r);if(a)return a}return null},lineMarkerChange:e=>e.startState.facet(Zh)!=e.state.facet(Zh),initialSpacer(e){return new RO(NO(e,Rj(e.state.doc.lines)))},updateSpacer(e,n){let r=NO(n.view,Rj(n.view.state.doc.lines));return r==e.number?e:new RO(r)},domEventHandlers:t.facet(Zh).domEventHandlers}));function wbe(t={}){return[Zh.of(t),nW(),Abe]}function Rj(t){let e=9;for(;e<t;)e=e*10+9;return e}const Ibe=new class extends Vc{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},Dbe=TS.compute(["selection"],t=>{let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.head).from;i>n&&(n=i,e.push(Ibe.range(i)))}return bn.of(e)});function Mbe(){return Dbe}var AO;const Jh=new rn;function Lbe(t){return ut.define({combine:t?e=>e.concat(t):void 0})}const kbe=new rn;class Zo{constructor(e,n,r=[],i=""){this.data=e,this.name=i,un.prototype.hasOwnProperty("tree")||Object.defineProperty(un.prototype,"tree",{get(){return Ei(this)}}),this.parser=n,this.extension=[gd.of(this),un.languageData.of((a,s,o)=>{let c=Nj(a,s,o),d=c.type.prop(Jh);if(!d)return[];let f=a.facet(d),p=c.type.prop(kbe);if(p){let m=c.resolve(s-c.from,o);for(let g of p)if(g.test(m,a)){let b=a.facet(g.facet);return g.type=="replace"?b:b.concat(f)}}return f})].concat(r)}isActiveAt(e,n,r=-1){return Nj(e,n,r).type.prop(Jh)==this.data}findRegions(e){let n=e.facet(gd);if((n==null?void 0:n.data)==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(a,s)=>{if(a.prop(Jh)==this.data){r.push({from:s,to:s+a.length});return}let o=a.prop(rn.mounted);if(o){if(o.tree.prop(Jh)==this.data){if(o.overlay)for(let c of o.overlay)r.push({from:c.from+s,to:c.to+s});else r.push({from:s,to:s+a.length});return}else if(o.overlay){let c=r.length;if(i(o.tree,o.overlay[0].from+s),r.length>c)return}}for(let c=0;c<a.children.length;c++){let d=a.children[c];d instanceof ri&&i(d,a.positions[c]+s)}};return i(Ei(e),0),r}get allowsNesting(){return!0}}Zo.setState=jt.define();function Nj(t,e,n){let r=t.facet(gd),i=Ei(t).topNode;if(!r||r.allowsNesting)for(let a=i;a;a=a.enter(e,n,Mi.ExcludeBuffers))a.type.isTop&&(i=a);return i}class vE extends Zo{constructor(e,n,r){super(e,n,[],r),this.parser=n}static define(e){let n=Lbe(e.languageData);return new vE(n,e.parser.configure({props:[Jh.add(r=>r.isTop?n:void 0)]}),e.name)}configure(e,n){return new vE(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ei(t){let e=t.field(Zo.state,!1);return e?e.tree:ri.empty}class Pbe{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let r=this.cursorPos-this.string.length;return e<r||n>=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-r,n-r)}}let jg=null;class SE{constructor(e,n,r=[],i,a,s,o,c){this.parser=e,this.state=n,this.fragments=r,this.tree=i,this.treeLen=a,this.viewport=s,this.skipped=o,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}static create(e,n,r){return new SE(e,n,[],ri.empty,0,r,[],null)}startParse(){return this.parser.startParse(new Pbe(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=ri.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(kf.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,n;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(kf.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=jg;jg=this;try{return e()}finally{jg=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=Aj(e,n.from,n.to);return e}changes(e,n){let{fragments:r,tree:i,treeLen:a,viewport:s,skipped:o}=this;if(this.takeTree(),!e.empty){let c=[];if(e.iterChangedRanges((d,f,p,m)=>c.push({fromA:d,toA:f,fromB:p,toB:m})),r=kf.applyChanges(r,c),i=ri.empty,a=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){o=[];for(let d of this.skipped){let f=e.mapPos(d.from,1),p=e.mapPos(d.to,-1);f<p&&o.push({from:f,to:p})}}}return new SE(this.parser,n,r,i,a,s,o,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:a}=this.skipped[r];i<e.to&&a>e.from&&(this.fragments=Aj(this.fragments,i,a),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends pV{createParse(n,r,i){let a=i[0].from,s=i[i.length-1].to;return{parsedPos:a,advance(){let c=jg;if(c){for(let d of i)c.tempSkipped.push(d);e&&(c.scheduleOn=c.scheduleOn?Promise.all([c.scheduleOn,e]):e)}return this.parsedPos=s,new ri(is.none,[],[],s-a)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return jg}}function Aj(t,e,n){return kf.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class Xp{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new Xp(n)}static init(e){let n=Math.min(3e3,e.doc.length),r=SE.create(e.facet(gd).parser,e,{from:0,to:n});return r.work(20,n)||r.takeTree(),new Xp(r)}}Zo.state=Ui.define({create:Xp.init,update(t,e){for(let n of e.effects)if(n.is(Zo.setState))return n.value;return e.startState.facet(gd)!=e.state.facet(gd)?Xp.init(e.state):t.apply(e)}});let iW=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(iW=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const wO=typeof navigator<"u"&&(!((AO=navigator.scheduling)===null||AO===void 0)&&AO.isInputPending)?()=>navigator.scheduling.isInputPending():null,Bbe=Br.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(Zo.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(Zo.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=iW(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:i}}=this.view,a=r.field(Zo.state);if(a.tree==a.context.tree&&a.context.isDone(i+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!wO?Math.max(25,e.timeRemaining()-5):1e9),o=a.context.treeLen<i&&r.doc.length>i+1e3,c=a.context.work(()=>wO&&wO()||Date.now()>s,i+(o?0:1e5));this.chunkBudget-=Date.now()-n,(c||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:Zo.setState.of(new Xp(a.context))})),this.chunkBudget>0&&!(c&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Pa(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),gd=ut.define({combine(t){return t.length?t[0]:null},enables:t=>[Zo.state,Bbe,tt.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]}),Fbe=ut.define(),B0=ut.define({combine:t=>{if(!t.length)return"  ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function EE(t){let e=t.facet(B0);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function J_(t,e){let n="",r=t.tabSize,i=t.facet(B0)[0];if(i=="	"){for(;e>=r;)n+="	",e-=r;i=" "}for(let a=0;a<e;a++)n+=i;return n}function vk(t,e){t instanceof un&&(t=new uT(t));for(let r of t.state.facet(Fbe)){let i=r(t,e);if(i!==void 0)return i}let n=Ei(t.state);return n.length>=e?jbe(t,n,e):null}class uT{constructor(e,n={}){this.state=e,this.options=n,this.unit=EE(e)}lineAt(e,n=1){let r=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:a}=this.options;return i!=null&&i>=r.from&&i<=r.to?a&&i==e?{text:"",from:e}:(n<0?i<e:i<=e)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(e,n=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(e,n);return r.slice(e-i,Math.min(r.length,e+100-i))}column(e,n=1){let{text:r,from:i}=this.lineAt(e,n),a=this.countColumn(r,e-i),s=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return s>-1&&(a+=s-this.countColumn(r,r.search(/\S|$/))),a}countColumn(e,n=e.length){return Tm(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:r,from:i}=this.lineAt(e,n),a=this.options.overrideIndentation;if(a){let s=a(i);if(s>-1)return s}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Ube=new rn;function jbe(t,e,n){let r=e.resolveStack(n),i=e.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let a=[];for(let s=i;s&&!(s.from==r.node.from&&s.type==r.node.type);s=s.parent)a.push(s);for(let s=a.length-1;s>=0;s--)r={node:a[s],next:r}}return aW(r,t,n)}function aW(t,e,n){for(let r=t;r;r=r.next){let i=qbe(r.node);if(i)return i(Sk.create(e,n,r))}return 0}function Gbe(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function qbe(t){let e=t.type.prop(Ube);if(e)return e;let n=t.firstChild,r;if(n&&(r=n.type.prop(rn.closedBy))){let i=t.lastChild,a=i&&r.indexOf(i.name)>-1;return s=>Hbe(s,!0,1,void 0,a&&!Gbe(s)?i.from:void 0)}return t.parent==null?$be:null}function $be(){return 0}class Sk extends uT{constructor(e,n,r){super(e.state,e.options),this.base=e,this.pos=n,this.context=r}get node(){return this.context.node}static create(e,n,r){return new Sk(e,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(zbe(r,e))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return aW(this.context.next,this.base,this.pos)}}function zbe(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function Ybe(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let i=t.options.simulateBreak,a=t.state.doc.lineAt(n.from),s=i==null||i<=a.from?a.to:Math.min(a.to,i);for(let o=n.to;;){let c=e.childAfter(o);if(!c||c==r)return null;if(!c.type.isSkipped){if(c.from>=s)return null;let d=/^ */.exec(a.text.slice(n.to-a.from))[0].length;return{from:n.from,to:n.to+d}}o=c.to}}function Hbe(t,e,n,r,i){let a=t.textAfter,s=a.match(/^\s*/)[0].length,o=r&&a.slice(s,s+r.length)==r||i==t.pos+s,c=Ybe(t);return c?o?t.column(c.from):t.column(c.to):t.baseIndent+(o?0:t.unit*n)}const Vbe=200;function sW(){return un.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,i=n.lineAt(r);if(r>i.from+Vbe)return t;let a=n.sliceString(i.from,r);if(!e.some(d=>d.test(a)))return t;let{state:s}=t,o=-1,c=[];for(let{head:d}of s.selection.ranges){let f=s.doc.lineAt(d);if(f.from==o)continue;o=f.from;let p=vk(s,f.from);if(p==null)continue;let m=/^\s*/.exec(f.text)[0],g=J_(s,p);m!=g&&c.push({from:f.from,to:f.from+m.length,insert:g})}return c.length?[t,{changes:c,sequential:!0}]:t})}const Wbe=ut.define(),Qbe=new rn;function Kbe(t,e,n){let r=Ei(t);if(r.length<n)return null;let i=r.resolveStack(n,1),a=null;for(let s=i;s;s=s.next){let o=s.node;if(o.to<=n||o.from>n)continue;if(a&&o.from<e)break;let c=o.type.prop(Qbe);if(c&&(o.to<r.length-50||r.length==t.doc.length||!Xbe(o))){let d=c(o,t);d&&d.from<=n&&d.from>=e&&d.to>n&&(a=d)}}return a}function Xbe(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function yE(t,e,n){for(let r of t.facet(Wbe)){let i=r(t,e,n);if(i)return i}return Kbe(t,e,n)}function oW(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}const dT=jt.define({map:oW}),F0=jt.define({map:oW});function lW(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(r=>r.from<=n&&r.to>=n)||e.push(t.lineBlockAt(n));return e}const Vf=Ui.define({create(){return Rt.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(dT)&&!Zbe(t,n.value.from,n.value.to)){let{preparePlaceholder:r}=e.state.facet(dW),i=r?Rt.replace({widget:new ave(r(e.state,n.value))}):wj;t=t.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(F0)&&(t=t.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:r}=e.selection.main;t.between(r,r,(i,a)=>{i<r&&a>r&&(n=!0)}),n&&(t=t.update({filterFrom:r,filterTo:r,filter:(i,a)=>a<=r||i>=r}))}return t},provide:t=>tt.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let r=t[n++],i=t[n++];if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(wj.range(r,i))}return Rt.set(e,!0)}});function TE(t,e,n){var r;let i=null;return(r=t.field(Vf,!1))===null||r===void 0||r.between(e,n,(a,s)=>{(!i||i.from>a)&&(i={from:a,to:s})}),i}function Zbe(t,e,n){let r=!1;return t.between(e,e,(i,a)=>{i==e&&a==n&&(r=!0)}),r}function cW(t,e){return t.field(Vf,!1)?e:e.concat(jt.appendConfig.of(fW()))}const Jbe=t=>{for(let e of lW(t)){let n=yE(t.state,e.from,e.to);if(n)return t.dispatch({effects:cW(t.state,[dT.of(n),uW(t,n)])}),!0}return!1},eve=t=>{if(!t.state.field(Vf,!1))return!1;let e=[];for(let n of lW(t)){let r=TE(t.state,n.from,n.to);r&&e.push(F0.of(r),uW(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function uW(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return tt.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`)}const tve=t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let i=t.lineBlockAt(r),a=yE(e,i.from,i.to);a&&n.push(dT.of(a)),r=(a?t.lineBlockAt(a.to):i).to+1}return n.length&&t.dispatch({effects:cW(t.state,n)}),!!n.length},nve=t=>{let e=t.state.field(Vf,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(r,i)=>{n.push(F0.of({from:r,to:i}))}),t.dispatch({effects:n}),!0},rve=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Jbe},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:eve},{key:"Ctrl-Alt-[",run:tve},{key:"Ctrl-Alt-]",run:nve}],ive={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},dW=ut.define({combine(t){return Zl(t,ive)}});function fW(t){return[Vf,lve]}function hW(t,e){let{state:n}=t,r=n.facet(dW),i=s=>{let o=t.lineBlockAt(t.posAtDOM(s.target)),c=TE(t.state,o.from,o.to);c&&t.dispatch({effects:F0.of(c)}),s.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,i,e);let a=document.createElement("span");return a.textContent=r.placeholderText,a.setAttribute("aria-label",n.phrase("folded code")),a.title=n.phrase("unfold"),a.className="cm-foldPlaceholder",a.onclick=i,a}const wj=Rt.replace({widget:new class extends Jl{toDOM(t){return hW(t,null)}}});class ave extends Jl{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return hW(e,this.value)}}const sve={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class IO extends Vc{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function ove(t={}){let e=Object.assign(Object.assign({},sve),t),n=new IO(e,!0),r=new IO(e,!1),i=Br.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(gd)!=s.state.facet(gd)||s.startState.field(Vf,!1)!=s.state.field(Vf,!1)||Ei(s.startState)!=Ei(s.state)||e.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let o=new Yc;for(let c of s.viewportLineBlocks){let d=TE(s.state,c.from,c.to)?r:yE(s.state,c.from,c.to)?n:null;d&&o.add(c.from,c.from,d)}return o.finish()}}),{domEventHandlers:a}=e;return[i,Tbe({class:"cm-foldGutter",markers(s){var o;return((o=s.plugin(i))===null||o===void 0?void 0:o.markers)||bn.empty},initialSpacer(){return new IO(e,!1)},domEventHandlers:Object.assign(Object.assign({},a),{click:(s,o,c)=>{if(a.click&&a.click(s,o,c))return!0;let d=TE(s.state,o.from,o.to);if(d)return s.dispatch({effects:F0.of(d)}),!0;let f=yE(s.state,o.from,o.to);return f?(s.dispatch({effects:dT.of(f)}),!0):!1}})}),fW()]}const lve=tt.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class th{constructor(e,n){this.specs=e;let r;function i(o){let c=hd.newName();return(r||(r=Object.create(null)))["."+c]=o,c}const a=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,s=n.scope;this.scope=s instanceof Zo?o=>o.prop(Jh)==s.data:s?o=>o==s:void 0,this.style=_V(e.map(o=>({tag:o.tag,class:o.class||i(Object.assign({},o,{tag:null}))})),{all:a}).style,this.module=r?new hd(r):null,this.themeType=n.themeType}static define(e,n){return new th(e,n||{})}}const QI=ut.define(),pW=ut.define({combine(t){return t.length?[t[0]]:null}});function DO(t){let e=t.facet(QI);return e.length?e:t.facet(pW)}function fT(t,e){let n=[uve],r;return t instanceof th&&(t.module&&n.push(tt.styleModule.of(t.module)),r=t.themeType),e!=null&&e.fallback?n.push(pW.of(t)):r?n.push(QI.computeN([tt.darkTheme],i=>i.facet(tt.darkTheme)==(r=="dark")?[t]:[])):n.push(QI.of(t)),n}class cve{constructor(e){this.markCache=Object.create(null),this.tree=Ei(e.state),this.decorations=this.buildDeco(e,DO(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=Ei(e.state),r=DO(e.state),i=r!=DO(e.startState),{viewport:a}=e.view,s=e.changes.mapPos(this.decoratedTo,1);n.length<a.to&&!i&&n.type==this.tree.type&&s>=a.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=s):(n!=this.tree||e.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=a.to)}buildDeco(e,n){if(!n||!this.tree.length)return Rt.none;let r=new Yc;for(let{from:i,to:a}of e.visibleRanges)fpe(this.tree,n,(s,o,c)=>{r.add(s,o,this.markCache[c]||(this.markCache[c]=Rt.mark({class:c})))},i,a);return r.finish()}}const uve=nu.high(Br.fromClass(cve,{decorations:t=>t.decorations})),dve=th.define([{tag:pe.meta,color:"#404740"},{tag:pe.link,textDecoration:"underline"},{tag:pe.heading,textDecoration:"underline",fontWeight:"bold"},{tag:pe.emphasis,fontStyle:"italic"},{tag:pe.strong,fontWeight:"bold"},{tag:pe.strikethrough,textDecoration:"line-through"},{tag:pe.keyword,color:"#708"},{tag:[pe.atom,pe.bool,pe.url,pe.contentSeparator,pe.labelName],color:"#219"},{tag:[pe.literal,pe.inserted],color:"#164"},{tag:[pe.string,pe.deleted],color:"#a11"},{tag:[pe.regexp,pe.escape,pe.special(pe.string)],color:"#e40"},{tag:pe.definition(pe.variableName),color:"#00f"},{tag:pe.local(pe.variableName),color:"#30a"},{tag:[pe.typeName,pe.namespace],color:"#085"},{tag:pe.className,color:"#167"},{tag:[pe.special(pe.variableName),pe.macroName],color:"#256"},{tag:pe.definition(pe.propertyName),color:"#00c"},{tag:pe.comment,color:"#940"},{tag:pe.invalid,color:"#f00"}]),fve=tt.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),mW=1e4,gW="()[]{}",_W=ut.define({combine(t){return Zl(t,{afterCursor:!0,brackets:gW,maxScanDistance:mW,renderMatch:mve})}}),hve=Rt.mark({class:"cm-matchingBracket"}),pve=Rt.mark({class:"cm-nonmatchingBracket"});function mve(t){let e=[],n=t.matched?hve:pve;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const gve=Ui.define({create(){return Rt.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],r=e.state.facet(_W);for(let i of e.state.selection.ranges){if(!i.empty)continue;let a=Bl(e.state,i.head,-1,r)||i.head>0&&Bl(e.state,i.head-1,1,r)||r.afterCursor&&(Bl(e.state,i.head,1,r)||i.head<e.state.doc.length&&Bl(e.state,i.head+1,-1,r));a&&(n=n.concat(r.renderMatch(a,e.state)))}return Rt.set(n,!0)},provide:t=>tt.decorations.from(t)}),_ve=[gve,fve];function bW(t={}){return[_W.of(t),_ve]}const bve=new rn;function KI(t,e,n){let r=t.prop(e<0?rn.openedBy:rn.closedBy);if(r)return r;if(t.name.length==1){let i=n.indexOf(t.name);if(i>-1&&i%2==(e<0?1:0))return[n[i+e]]}return null}function XI(t){let e=t.type.prop(bve);return e?e(t.node):t}function Bl(t,e,n,r={}){let i=r.maxScanDistance||mW,a=r.brackets||gW,s=Ei(t),o=s.resolveInner(e,n);for(let c=o;c;c=c.parent){let d=KI(c.type,n,a);if(d&&c.from<c.to){let f=XI(c);if(f&&(n>0?e>=f.from&&e<f.to:e>f.from&&e<=f.to))return vve(t,e,n,c,f,d,a)}}return Sve(t,e,n,s,o.type,i,a)}function vve(t,e,n,r,i,a,s){let o=r.parent,c={from:i.from,to:i.to},d=0,f=o==null?void 0:o.cursor();if(f&&(n<0?f.childBefore(r.from):f.childAfter(r.to)))do if(n<0?f.to<=r.from:f.from>=r.to){if(d==0&&a.indexOf(f.type.name)>-1&&f.from<f.to){let p=XI(f);return{start:c,end:p?{from:p.from,to:p.to}:void 0,matched:!0}}else if(KI(f.type,n,s))d++;else if(KI(f.type,-n,s)){if(d==0){let p=XI(f);return{start:c,end:p&&p.from<p.to?{from:p.from,to:p.to}:void 0,matched:!1}}d--}}while(n<0?f.prevSibling():f.nextSibling());return{start:c,matched:!1}}function Sve(t,e,n,r,i,a,s){let o=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),c=s.indexOf(o);if(c<0||c%2==0!=n>0)return null;let d={from:n<0?e-1:e,to:n>0?e+1:e},f=t.doc.iterRange(e,n>0?t.doc.length:0),p=0;for(let m=0;!f.next().done&&m<=a;){let g=f.value;n<0&&(m+=g.length);let b=e+m*n;for(let S=n>0?0:g.length-1,y=n>0?g.length:-1;S!=y;S+=n){let E=s.indexOf(g[S]);if(!(E<0||r.resolveInner(b+S,1).type!=i))if(E%2==0==n>0)p++;else{if(p==1)return{start:d,end:{from:b+S,to:b+S+1},matched:E>>1==c>>1};p--}}n>0&&(m+=g.length)}return f.done?{start:d,matched:!1}:null}const Eve=Object.create(null),Ij=[is.none],Dj=[],Mj=Object.create(null),yve=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])yve[t]=Tve(Eve,e);function MO(t,e){Dj.indexOf(t)>-1||(Dj.push(t),console.warn(e))}function Tve(t,e){let n=[];for(let o of e.split(" ")){let c=[];for(let d of o.split(".")){let f=t[d]||pe[d];f?typeof f=="function"?c.length?c=c.map(f):MO(d,`Modifier ${d} used at start of tag`):c.length?MO(d,`Tag ${d} used as modifier`):c=Array.isArray(f)?f:[f]:MO(d,`Unknown highlighting tag ${d}`)}for(let d of c)n.push(d)}if(!n.length)return 0;let r=e.replace(/ /g,"_"),i=r+" "+n.map(o=>o.id),a=Mj[i];if(a)return a.id;let s=Mj[i]=is.define({id:Ij.length,name:r,props:[mV({[r]:n})]});return Ij.push(s),s.id}gr.RTL,gr.LTR;function xve(t,e){if(!e||e.type.id!==cp)return null;const n={card:Ml.CardOneToOne,matchingLabels:[],on:!1,include:[]},r=e.getChild(rme);if(r){n.on=r.getChild(Kpe)!==null;const a=r.getChild(p_),s=a?a.getChildren(F_):[];for(const f of s)n.matchingLabels.push(t.sliceDoc(f.from,f.to));const o=r.getChild(Xpe),c=r.getChild(Zpe),d=o||c;if(d){n.card=o?Ml.CardManyToOne:Ml.CardOneToMany;const f=d.nextSibling,p=(f==null?void 0:f.getChildren(F_))||[];for(const m of p)n.include.push(t.sliceDoc(m.from,m.to))}}return td(e,XL,ZL,JL)&&n.card===Ml.CardOneToOne&&(n.card=Ml.CardManyToMany),n}let Cve=class{constructor(e){this.tree=Ei(e),this.state=e,this.diagnostics=[]}getDiagnostics(){return this.diagnostics.sort((e,n)=>e.from-n.from)}analyze(){this.checkAST(this.tree.topNode.firstChild),this.diagnoseAllErrorNodes()}diagnoseAllErrorNodes(){const e=this.tree.cursor();for(;e.next();)if(e.type.id===0&&e.to!==this.tree.topNode.to){const n=e.node.parent;this.diagnostics.push({severity:"error",message:"unexpected expression",from:n?n.from:e.from,to:n?n.to:e.to})}}checkAST(e){if(!e)return re.none;switch(e.type.id){case aT:this.checkAggregationExpr(e);break;case cp:this.checkBinaryExpr(e);break;case xV:this.checkCallFunction(e);break;case CV:this.checkAST(e.getChild("Expr"));break;case OV:{const n=this.checkAST(e.getChild("Expr"));n!==re.scalar&&n!==re.vector&&this.addDiagnostic(e,`unary expression only allowed on expressions of type scalar or instant vector, got ${n}`);break}case Yp:{const n=this.checkAST(e.getChild("Expr"));n!==re.vector&&this.addDiagnostic(e,`subquery is only allowed on instant vector, got ${n} in ${e.name} instead`);break}case q_:this.checkAST(e.getChild("Expr"));break;case I0:this.checkVectorSelector(e);break;case tk:{const n=this.checkAST(e.getChild("Expr"));n!==re.vector&&n!==re.matrix&&this.addDiagnostic(e,"@ modifier must be preceded by an instant selector vector or range vector selector or a subquery");break}}return nf(e)}checkAggregationExpr(e){var n;const r=(n=e.firstChild)===null||n===void 0?void 0:n.firstChild;if(!r){this.addDiagnostic(e,"aggregation operator expected in aggregation expression but got nothing");return}const i=e.getChild(Pf),a=i?i.getChildren("Expr"):[];if(!a.length){this.addDiagnostic(e,"unable to find the parameter for the expression");return}this.expectType(a[a.length-1],re.vector,"aggregation expression"),(r.type.id===yV||r.type.id===bV||r.type.id===SV||r.type.id===EV||r.type.id===Jpe)&&this.expectType(a[0],re.scalar,"aggregation parameter"),r.type.id===vV&&this.expectType(a[0],re.string,"aggregation parameter")}checkBinaryExpr(e){const n=e.firstChild,r=e.lastChild;if(!n||!r){this.addDiagnostic(e,"left or right expression is missing in binary expression");return}const i=this.checkAST(n),a=this.checkAST(r),s=e.getChild(TV),o=td(e,cI,G_,fI,hI,uI,dI),c=td(e,XL,ZL,JL);s?o||this.addDiagnostic(e,"bool modifier can only be used on comparison operators"):o&&i===re.scalar&&a===re.scalar&&this.addDiagnostic(e,"comparisons between scalars must use BOOL modifier");const d=xve(this.state,e);if(d!==null&&d.on)for(const f of d.matchingLabels)for(const p of d.include)f===p&&this.addDiagnostic(e,`label "${f}" must not occur in ON and GROUP clause at once`);i!==re.scalar&&i!==re.vector&&this.addDiagnostic(n,"binary expression must contain only scalar and instant vector types"),a!==re.scalar&&a!==re.vector&&this.addDiagnostic(r,"binary expression must contain only scalar and instant vector types"),(i!==re.vector||a!==re.vector)&&d!==null?d.matchingLabels.length>0&&this.addDiagnostic(e,"vector matching only allowed between instant vectors"):c&&(((d==null?void 0:d.card)===Ml.CardOneToMany||(d==null?void 0:d.card)===Ml.CardManyToOne)&&this.addDiagnostic(e,"no grouping allowed for set operations"),(d==null?void 0:d.card)!==Ml.CardManyToMany&&this.addDiagnostic(e,"set operations must always be many-to-many")),(i===re.scalar||a===re.scalar)&&c&&this.addDiagnostic(e,"set operator not allowed in binary scalar expression")}checkCallFunction(e){var n;const r=(n=e.firstChild)===null||n===void 0?void 0:n.firstChild;if(!r){this.addDiagnostic(e,"function not defined");return}const i=e.getChild(Pf),a=i?i.getChildren("Expr"):[],s=AV(r.type.id),o=s.argTypes.length;if(s.variadic===0)a.length!==o&&this.addDiagnostic(e,`expected ${o} argument(s) in call to "${s.name}", got ${a.length}`);else{const d=o-1;if(d>a.length)this.addDiagnostic(e,`expected at least ${d} argument(s) in call to "${s.name}", got ${a.length}`);else{const f=d+s.variadic;s.variadic>0&&f<a.length&&this.addDiagnostic(e,`expected at most ${f} argument(s) in call to "${s.name}", got ${a.length}`)}}s.name==="info"&&a.length>1&&a[1].getChild(lE)&&this.addDiagnostic(e,`expected label selectors as the second argument to "info" function, got ${a[1].type}`);let c=0;for(let d=0;d<a.length;d++){if(c=d,c>=s.argTypes.length){if(s.variadic===0)break;c=s.argTypes.length-1}this.expectType(a[d],s.argTypes[c],`call to function "${s.name}"`)}}checkVectorSelector(e){const n=e.getChild(m_),r=[U_,up,mf];let i=[];for(const c of r)i=i.concat(IV(n?n.getChildren(c):[],this.state));let a="";const s=e.getChild(lE);if(s&&(a=this.state.sliceDoc(s.from,s.to)),a!==""){const c=i.find(d=>d.name==="__name__");c&&this.addDiagnostic(e,`metric name must not be set twice: ${a} or ${c.value}`),i.push(new wV(D0,"__name__",a))}else{const c=i.filter(d=>d.name==="__name__");c.length>1&&this.addDiagnostic(e,`metric name must not be set twice: ${c[0].value} or ${c[1].value}`)}i.every(c=>c.matchesEmpty())&&this.addDiagnostic(e,"vector selector must contain at least one non-empty matcher")}expectType(e,n,r){const i=this.checkAST(e);i!==n&&this.addDiagnostic(e,`expected type ${n} in ${r}, got ${i}`)}addDiagnostic(e,n){this.diagnostics.push({severity:"error",message:n,from:e.from,to:e.to})}};class vW{constructor(e,n,r,i){this.state=e,this.pos=n,this.explicit=r,this.view=i,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let n=Ei(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),a=i.search(SW(e,!1));return a<0?null:{from:r+a,to:this.pos,text:i.slice(a)}}get aborted(){return this.abortListeners==null}addEventListener(e,n,r){e=="abort"&&this.abortListeners&&(this.abortListeners.push(n),r&&r.onDocChange&&(this.abortOnDocChange=!0))}}function Lj(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function Ove(t){let e=Object.create(null),n=Object.create(null);for(let{label:i}of t){e[i[0]]=!0;for(let a=1;a<i.length;a++)n[i[a]]=!0}let r=Lj(e)+Lj(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function Rve(t){let e=t.map(i=>typeof i=="string"?{label:i}:i),[n,r]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:Ove(e);return i=>{let a=i.matchBefore(r);return a||i.explicit?{from:a?a.from:i.pos,options:e,validFor:n}:null}}class kj{constructor(e,n,r,i){this.completion=e,this.source=n,this.match=r,this.score=i}}function Bf(t){return t.selection.main.from}function SW(t,e){var n;let{source:r}=t,i=e&&r[0]!="^",a=r[r.length-1]!="$";return!i&&!a?t:new RegExp(`${i?"^":""}(?:${r})${a?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const Ek=Xl.define();function Nve(t,e,n,r){let{main:i}=t.selection,a=n-i.from,s=r-i.from;return Object.assign(Object.assign({},t.changeByRange(o=>{if(o!=i&&n!=r&&t.sliceDoc(o.from+a,o.from+s)!=t.sliceDoc(n,r))return{range:o};let c=t.toText(e);return{changes:{from:o.from+a,to:r==i.from?o.to:o.from+s,insert:c},range:Fe.cursor(o.from+a+c.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}const Pj=new WeakMap;function Ave(t){if(!Array.isArray(t))return t;let e=Pj.get(t);return e||Pj.set(t,e=Rve(t)),e}const xE=jt.define(),e0=jt.define();class wve{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<e.length;){let r=Ka(e,n),i=kl(r);this.chars.push(r);let a=e.slice(n,n+i),s=a.toUpperCase();this.folded.push(Ka(s==a?a.toLowerCase():s,0)),n+=i}this.astral=e.length!=this.chars.length}ret(e,n){return this.score=e,this.matched=n,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:n,folded:r,any:i,precise:a,byWord:s}=this;if(n.length==1){let T=Ka(e,0),x=kl(T),O=x==e.length?0:-100;if(T!=n[0])if(T==r[0])O+=-200;else return null;return this.ret(O,[0,x])}let o=e.indexOf(this.pattern);if(o==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let c=n.length,d=0;if(o<0){for(let T=0,x=Math.min(e.length,200);T<x&&d<c;){let O=Ka(e,T);(O==n[d]||O==r[d])&&(i[d++]=T),T+=kl(O)}if(d<c)return null}let f=0,p=0,m=!1,g=0,b=-1,S=-1,y=/[a-z]/.test(e),E=!0;for(let T=0,x=Math.min(e.length,200),O=0;T<x&&p<c;){let C=Ka(e,T);o<0&&(f<c&&C==n[f]&&(a[f++]=T),g<c&&(C==n[g]||C==r[g]?(g==0&&(b=T),S=T+1,g++):g=0));let N,w=C<255?C>=48&&C<=57||C>=97&&C<=122?2:C>=65&&C<=90?1:0:(N=rk(C))!=N.toLowerCase()?1:N!=N.toUpperCase()?2:0;(!T||w==1&&y||O==0&&w!=0)&&(n[p]==C||r[p]==C&&(m=!0)?s[p++]=T:s.length&&(E=!1)),O=w,T+=kl(C)}return p==c&&s[0]==0&&E?this.result(-100+(m?-200:0),s,e):g==c&&b==0?this.ret(-200-e.length+(S==e.length?0:-100),[0,S]):o>-1?this.ret(-700-e.length,[o,o+this.pattern.length]):g==c?this.ret(-900-e.length,[b,S]):p==c?this.result(-100+(m?-200:0)+-700+(E?0:-1100),s,e):n.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,n,r){let i=[],a=0;for(let s of n){let o=s+(this.astral?kl(Ka(r,s)):1);a&&i[a-1]==s?i[a-1]=o:(i[a++]=s,i[a++]=o)}return this.ret(e-r.length,i)}}class Ive{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let n=e.slice(0,this.pattern.length),r=n==this.pattern?0:n.toLowerCase()==this.folded?-200:null;return r==null?null:(this.matched=[0,n.length],this.score=r+(e.length==this.pattern.length?0:-100),this)}}const Li=ut.define({combine(t){return Zl(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:Dve,filterStrict:!1,compareCompletions:(e,n)=>e.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>r=>Bj(e(r),n(r)),optionClass:(e,n)=>r=>Bj(e(r),n(r)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})}});function Bj(t,e){return t?e?t+" "+e:t:e}function Dve(t,e,n,r,i,a){let s=t.textDirection==gr.RTL,o=s,c=!1,d="top",f,p,m=e.left-i.left,g=i.right-e.right,b=r.right-r.left,S=r.bottom-r.top;if(o&&m<Math.min(b,g)?o=!1:!o&&g<Math.min(b,m)&&(o=!0),b<=(o?m:g))f=Math.max(i.top,Math.min(n.top,i.bottom-S))-e.top,p=Math.min(400,o?m:g);else{c=!0,p=Math.min(400,(s?e.right:i.right-e.left)-30);let T=i.bottom-e.bottom;T>=S||T>e.top?f=n.bottom-e.top:(d="bottom",f=e.bottom-n.top)}let y=(e.bottom-e.top)/a.offsetHeight,E=(e.right-e.left)/a.offsetWidth;return{style:`${d}: ${f/y}px; max-width: ${p/E}px`,class:"cm-completionInfo-"+(c?s?"left-narrow":"right-narrow":o?"left":"right")}}function Mve(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),e.push({render(n,r,i,a){let s=document.createElement("span");s.className="cm-completionLabel";let o=n.displayLabel||n.label,c=0;for(let d=0;d<a.length;){let f=a[d++],p=a[d++];f>c&&s.appendChild(document.createTextNode(o.slice(c,f)));let m=s.appendChild(document.createElement("span"));m.appendChild(document.createTextNode(o.slice(f,p))),m.className="cm-completionMatchedText",c=p}return c<o.length&&s.appendChild(document.createTextNode(o.slice(c))),s},position:50},{render(n){if(!n.detail)return null;let r=document.createElement("span");return r.className="cm-completionDetail",r.textContent=n.detail,r},position:80}),e.sort((n,r)=>n.position-r.position).map(n=>n.render)}function LO(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let i=Math.floor(e/n);return{from:i*n,to:(i+1)*n}}let r=Math.floor((t-e)/n);return{from:t-(r+1)*n,to:t-r*n}}class Lve{constructor(e,n,r){this.view=e,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:c=>this.placeInfo(c),key:this},this.space=null,this.currentClass="";let i=e.state.field(n),{options:a,selected:s}=i.open,o=e.state.facet(Li);this.optionContent=Mve(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=LO(a.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",c=>{let{options:d}=e.state.field(n).open;for(let f=c.target,p;f&&f!=this.dom;f=f.parentNode)if(f.nodeName=="LI"&&(p=/-(\d+)$/.exec(f.id))&&+p[1]<d.length){this.applyCompletion(e,d[+p[1]]),c.preventDefault();return}}),this.dom.addEventListener("focusout",c=>{let d=e.state.field(this.stateField,!1);d&&d.tooltip&&e.state.facet(Li).closeOnBlur&&c.relatedTarget!=e.contentDOM&&e.dispatch({effects:e0.of(null)})}),this.showOptions(a,i.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let r=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),r!=i){let{options:a,selected:s,disabled:o}=r.open;(!i.open||i.open.options!=a)&&(this.range=LO(a.length,s,e.state.facet(Li).maxRenderedOptions),this.showOptions(a,r.id)),this.updateSel(),o!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;if((n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=LO(n.options.length,n.selected,this.view.state.facet(Li).maxRenderedOptions),this.showOptions(n.options,e.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let a=typeof i=="string"?document.createTextNode(i):i(r);if(!a)return;"then"in a?a.then(s=>{s&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(s,r)}).catch(s=>Pa(this.view.state,s,"completion info")):this.addInfoPane(a,r)}}addInfoPane(e,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",e.nodeType!=null)r.appendChild(e),this.infoDestroy=null;else{let{dom:i,destroy:a}=e;r.appendChild(i),this.infoDestroy=a||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==e?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&Pve(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),a=this.space;if(!a){let s=this.dom.ownerDocument.documentElement;a={left:0,top:0,right:s.clientWidth,bottom:s.clientHeight}}return i.top>Math.min(a.bottom,n.bottom)-10||i.bottom<Math.max(a.top,n.top)+10?null:this.view.state.facet(Li).positionInfo(this.view,n,i,r,a,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,n,r){const i=document.createElement("ul");i.id=n,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions")),i.addEventListener("mousedown",s=>{s.target==i&&s.preventDefault()});let a=null;for(let s=r.from;s<r.to;s++){let{completion:o,match:c}=e[s],{section:d}=o;if(d){let m=typeof d=="string"?d:d.name;if(m!=a&&(s>r.from||r.from==0))if(a=m,typeof d!="string"&&d.header)i.appendChild(d.header(d));else{let g=i.appendChild(document.createElement("completion-section"));g.textContent=m}}const f=i.appendChild(document.createElement("li"));f.id=n+"-"+s,f.setAttribute("role","option");let p=this.optionClass(o);p&&(f.className=p);for(let m of this.optionContent){let g=m(o,this.view.state,this.view,c);g&&f.appendChild(g)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.to<e.length&&i.classList.add("cm-completionListIncompleteBottom"),i}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function kve(t,e){return n=>new Lve(n,t,e)}function Pve(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=n.height/t.offsetHeight;r.top<n.top?t.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(t.scrollTop+=(r.bottom-n.bottom)/i)}function Fj(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function Bve(t,e){let n=[],r=null,i=d=>{n.push(d);let{section:f}=d.completion;if(f){r||(r=[]);let p=typeof f=="string"?f:f.name;r.some(m=>m.name==p)||r.push(typeof f=="string"?{name:p}:f)}},a=e.facet(Li);for(let d of t)if(d.hasResult()){let f=d.result.getMatch;if(d.result.filter===!1)for(let p of d.result.options)i(new kj(p,d.source,f?f(p):[],1e9-n.length));else{let p=e.sliceDoc(d.from,d.to),m,g=a.filterStrict?new Ive(p):new wve(p);for(let b of d.result.options)if(m=g.match(b.label)){let S=b.displayLabel?f?f(b,m.matched):[]:m.matched;i(new kj(b,d.source,S,m.score+(b.boost||0)))}}}if(r){let d=Object.create(null),f=0,p=(m,g)=>{var b,S;return((b=m.rank)!==null&&b!==void 0?b:1e9)-((S=g.rank)!==null&&S!==void 0?S:1e9)||(m.name<g.name?-1:1)};for(let m of r.sort(p))f-=1e5,d[m.name]=f;for(let m of n){let{section:g}=m.completion;g&&(m.score+=d[typeof g=="string"?g:g.name])}}let s=[],o=null,c=a.compareCompletions;for(let d of n.sort((f,p)=>p.score-f.score||c(f.completion,p.completion))){let f=d.completion;!o||o.label!=f.label||o.detail!=f.detail||o.type!=null&&f.type!=null&&o.type!=f.type||o.apply!=f.apply||o.boost!=f.boost?s.push(d):Fj(d.completion)>Fj(o)&&(s[s.length-1]=d),o=d.completion}return s}class ep{constructor(e,n,r,i,a,s){this.options=e,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=a,this.disabled=s}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new ep(this.options,Uj(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,r,i,a,s){if(i&&!s&&e.some(d=>d.isPending))return i.setDisabled();let o=Bve(e,n);if(!o.length)return i&&e.some(d=>d.isPending)?i.setDisabled():null;let c=n.facet(Li).selectOnOpen?0:-1;if(i&&i.selected!=c&&i.selected!=-1){let d=i.options[i.selected].completion;for(let f=0;f<o.length;f++)if(o[f].completion==d){c=f;break}}return new ep(o,Uj(r,c),{pos:e.reduce((d,f)=>f.hasResult()?Math.min(d,f.from):d,1e8),create:$ve,above:a.aboveCursor},i?i.timestamp:Date.now(),c,!1)}map(e){return new ep(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new ep(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class CE{constructor(e,n,r){this.active=e,this.id=n,this.open=r}static start(){return new CE(Gve,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,r=n.facet(Li),a=(r.override||n.languageDataAt("autocomplete",Bf(n)).map(Ave)).map(c=>(this.active.find(f=>f.source==c)||new Js(c,this.active.some(f=>f.state!=0)?1:0)).update(e,r));a.length==this.active.length&&a.every((c,d)=>c==this.active[d])&&(a=this.active);let s=this.open,o=e.effects.some(c=>c.is(yk));s&&e.docChanged&&(s=s.map(e.changes)),e.selection||a.some(c=>c.hasResult()&&e.changes.touchesRange(c.from,c.to))||!Fve(a,this.active)||o?s=ep.build(a,n,this.id,s,r,o):s&&s.disabled&&!a.some(c=>c.isPending)&&(s=null),!s&&a.every(c=>!c.isPending)&&a.some(c=>c.hasResult())&&(a=a.map(c=>c.hasResult()?new Js(c.source,0):c));for(let c of e.effects)c.is(yW)&&(s=s&&s.setSelected(c.value,this.id));return a==this.active&&s==this.open?this:new CE(a,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?Uve:jve}}function Fve(t,e){if(t==e)return!0;for(let n=0,r=0;;){for(;n<t.length&&!t[n].hasResult();)n++;for(;r<e.length&&!e[r].hasResult();)r++;let i=n==t.length,a=r==e.length;if(i||a)return i==a;if(t[n++].result!=e[r++].result)return!1}}const Uve={"aria-autocomplete":"list"},jve={};function Uj(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const Gve=[];function EW(t,e){if(t.isUserEvent("input.complete")){let r=t.annotation(Ek);if(r&&e.activateOnCompletion(r))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class Js{constructor(e,n,r=!1){this.source=e,this.state=n,this.explicit=r}hasResult(){return!1}get isPending(){return this.state==1}update(e,n){let r=EW(e,n),i=this;(r&8||r&16&&this.touches(e))&&(i=new Js(i.source,0)),r&4&&i.state==0&&(i=new Js(this.source,1)),i=i.updateFor(e,r);for(let a of e.effects)if(a.is(xE))i=new Js(i.source,1,a.value);else if(a.is(e0))i=new Js(i.source,0);else if(a.is(yk))for(let s of a.value)s.source==i.source&&(i=s);return i}updateFor(e,n){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(Bf(e.state))}}class pp extends Js{constructor(e,n,r,i,a,s){super(e,3,n),this.limit=r,this.result=i,this.from=a,this.to=s}hasResult(){return!0}updateFor(e,n){var r;if(!(n&3))return this.map(e.changes);let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let a=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),o=Bf(e.state);if(o>s||!i||n&2&&(Bf(e.startState)==this.from||o<this.limit))return new Js(this.source,n&4?1:0);let c=e.changes.mapPos(this.limit);return qve(i.validFor,e.state,a,s)?new pp(this.source,this.explicit,c,i,a,s):i.update&&(i=i.update(i,a,s,new vW(e.state,o,!1)))?new pp(this.source,this.explicit,c,i,i.from,(r=i.to)!==null&&r!==void 0?r:Bf(e.state)):new Js(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new pp(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Js(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function qve(t,e,n,r){if(!t)return!1;let i=e.sliceDoc(n,r);return typeof t=="function"?t(i,n,r,e):SW(t,!0).test(i)}const yk=jt.define({map(t,e){return t.map(n=>n.map(e))}}),yW=jt.define(),Za=Ui.define({create(){return CE.start()},update(t,e){return t.update(e)},provide:t=>[bk.from(t,e=>e.tooltip),tt.contentAttributes.from(t,e=>e.attrs)]});function Tk(t,e){const n=e.completion.apply||e.completion.label;let r=t.state.field(Za).active.find(i=>i.source==e.source);return r instanceof pp?(typeof n=="string"?t.dispatch(Object.assign(Object.assign({},Nve(t.state,n,r.from,r.to)),{annotations:Ek.of(e.completion)})):n(t,e.completion,r.from,r.to),!0):!1}const $ve=kve(Za,Tk);function Dv(t,e="option"){return n=>{let r=n.state.field(Za,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(Li).interactionDelay)return!1;let i=1,a;e=="page"&&(a=eW(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector("li").offsetHeight)-1));let{length:s}=r.open.options,o=r.open.selected>-1?r.open.selected+i*(t?1:-1):t?0:s-1;return o<0?o=e=="page"?0:s-1:o>=s&&(o=e=="page"?s-1:0),n.dispatch({effects:yW.of(o)}),!0}}const zve=t=>{let e=t.state.field(Za,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(Li).interactionDelay?!1:Tk(t,e.open.options[e.open.selected])},jj=t=>t.state.field(Za,!1)?(t.dispatch({effects:xE.of(!0)}),!0):!1,Yve=t=>{let e=t.state.field(Za,!1);return!e||!e.active.some(n=>n.state!=0)?!1:(t.dispatch({effects:e0.of(null)}),!0)};class Hve{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const Vve=50,Wve=1e3,Qve=Br.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(Za).active)e.isPending&&this.startQuery(e)}update(t){let e=t.state.field(Za),n=t.state.facet(Li);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Za)==e)return;let r=t.transactions.some(a=>{let s=EW(a,n);return s&8||(a.selection||a.docChanged)&&!(s&3)});for(let a=0;a<this.running.length;a++){let s=this.running[a];if(r||s.context.abortOnDocChange&&t.docChanged||s.updates.length+t.transactions.length>Vve&&Date.now()-s.time>Wve){for(let o of s.context.abortListeners)try{o()}catch(c){Pa(this.view.state,c)}s.context.abortListeners=null,this.running.splice(a--,1)}else s.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(a=>a.effects.some(s=>s.is(xE)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(a=>a.isPending&&!this.running.some(s=>s.active.source==a.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let a of t.transactions)a.isUserEvent("input.type")?this.composing=2:this.composing==2&&a.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(Za);for(let n of e.active)n.isPending&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Li).updateSyncTime))}startQuery(t){let{state:e}=this.view,n=Bf(e),r=new vW(e,n,t.explicit,this.view),i=new Hve(t,r);this.running.push(i),Promise.resolve(t.source(r)).then(a=>{i.context.aborted||(i.done=a||null,this.scheduleAccept())},a=>{this.view.dispatch({effects:e0.of(null)}),Pa(this.view.state,a)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Li).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(Li),r=this.view.state.field(Za);for(let i=0;i<this.running.length;i++){let a=this.running[i];if(a.done===void 0)continue;if(this.running.splice(i--,1),a.done){let o=Bf(a.updates.length?a.updates[0].startState:this.view.state),c=Math.min(o,a.done.from+(a.active.explicit?0:1)),d=new pp(a.active.source,a.active.explicit,c,a.done,a.done.from,(t=a.done.to)!==null&&t!==void 0?t:o);for(let f of a.updates)d=d.update(f,n);if(d.hasResult()){e.push(d);continue}}let s=r.active.find(o=>o.source==a.active.source);if(s&&s.isPending)if(a.done==null){let o=new Js(a.active.source,0);for(let c of a.updates)o=o.update(c,n);o.isPending||e.push(o)}else this.startQuery(s)}(e.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:yk.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Za,!1);if(e&&e.tooltip&&this.view.state.facet(Li).closeOnBlur){let n=e.open&&eW(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:e0.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:xE.of(!1)}),20),this.composing=0}}}),Kve=typeof navigator=="object"&&/Win/.test(navigator.platform),Xve=nu.highest(tt.domEventHandlers({keydown(t,e){let n=e.state.field(Za,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(Kve&&t.altKey)||t.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(s=>s.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(t.key)>-1&&Tk(e,r),!1}})),TW=tt.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Zve{constructor(e,n,r,i){this.field=e,this.line=n,this.from=r,this.to=i}}class xk{constructor(e,n,r){this.field=e,this.from=n,this.to=r}map(e){let n=e.mapPos(this.from,-1,Ji.TrackDel),r=e.mapPos(this.to,1,Ji.TrackDel);return n==null||r==null?null:new xk(this.field,n,r)}}class Ck{constructor(e,n){this.lines=e,this.fieldPositions=n}instantiate(e,n){let r=[],i=[n],a=e.doc.lineAt(n),s=/^\s*/.exec(a.text)[0];for(let c of this.lines){if(r.length){let d=s,f=/^\t*/.exec(c)[0].length;for(let p=0;p<f;p++)d+=e.facet(B0);i.push(n+d.length-f),c=d+c.slice(f)}r.push(c),n+=c.length+1}let o=this.fieldPositions.map(c=>new xk(c.field,i[c.line]+c.from,i[c.line]+c.to));return{text:r,ranges:o}}static parse(e){let n=[],r=[],i=[],a;for(let s of e.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(s);){let o=a[1]?+a[1]:null,c=a[2]||a[3]||"",d=-1,f=c.replace(/\\[{}]/g,p=>p[1]);for(let p=0;p<n.length;p++)(o!=null?n[p].seq==o:f&&n[p].name==f)&&(d=p);if(d<0){let p=0;for(;p<n.length&&(o==null||n[p].seq!=null&&n[p].seq<o);)p++;n.splice(p,0,{seq:o,name:f}),d=p;for(let m of i)m.field>=d&&m.field++}i.push(new Zve(d,r.length,a.index,a.index+f.length)),s=s.slice(0,a.index)+c+s.slice(a.index+a[0].length)}s=s.replace(/\\([{}])/g,(o,c,d)=>{for(let f of i)f.line==r.length&&f.from>d&&(f.from--,f.to--);return c}),r.push(s)}return new Ck(r,i)}}let Jve=Rt.widget({widget:new class extends Jl{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),eSe=Rt.mark({class:"cm-snippetField"});class xm{constructor(e,n){this.ranges=e,this.active=n,this.deco=Rt.set(e.map(r=>(r.from==r.to?Jve:eSe).range(r.from,r.to)))}map(e){let n=[];for(let r of this.ranges){let i=r.map(e);if(!i)return null;n.push(i)}return new xm(n,this.active)}selectionInsideField(e){return e.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const U0=jt.define({map(t,e){return t&&t.map(e)}}),tSe=jt.define(),t0=Ui.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(U0))return n.value;if(n.is(tSe)&&t)return new xm(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>tt.decorations.from(t,e=>e?e.deco:Rt.none)});function Ok(t,e){return Fe.create(t.filter(n=>n.field==e).map(n=>Fe.range(n.from,n.to)))}function Gh(t){let e=Ck.parse(t);return(n,r,i,a)=>{let{text:s,ranges:o}=e.instantiate(n.state,i),{main:c}=n.state.selection,d={changes:{from:i,to:a==c.from?c.to:a,insert:mn.of(s)},scrollIntoView:!0,annotations:r?[Ek.of(r),ii.userEvent.of("input.complete")]:void 0};if(o.length&&(d.selection=Ok(o,0)),o.some(f=>f.field>0)){let f=new xm(o,0),p=d.effects=[U0.of(f)];n.state.field(t0,!1)===void 0&&p.push(jt.appendConfig.of([t0,sSe,oSe,TW]))}n.dispatch(n.state.update(d))}}function xW(t){return({state:e,dispatch:n})=>{let r=e.field(t0,!1);if(!r||t<0&&r.active==0)return!1;let i=r.active+t,a=t>0&&!r.ranges.some(s=>s.field==i+t);return n(e.update({selection:Ok(r.ranges,i),effects:U0.of(a?null:new xm(r.ranges,i)),scrollIntoView:!0})),!0}}const nSe=({state:t,dispatch:e})=>t.field(t0,!1)?(e(t.update({effects:U0.of(null)})),!0):!1,rSe=xW(1),iSe=xW(-1),aSe=[{key:"Tab",run:rSe,shift:iSe},{key:"Escape",run:nSe}],Gj=ut.define({combine(t){return t.length?t[0]:aSe}}),sSe=nu.highest(ad.compute([Gj],t=>t.facet(Gj))),oSe=tt.domEventHandlers({mousedown(t,e){let n=e.state.field(t0,!1),r;if(!n||(r=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let i=n.ranges.find(a=>a.from<=r&&a.to>=r);return!i||i.field==n.active?!1:(e.dispatch({selection:Ok(n.ranges,i.field),effects:U0.of(n.ranges.some(a=>a.field>i.field)?new xm(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),n0={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},_f=jt.define({map(t,e){let n=e.mapPos(t,-1,Ji.TrackAfter);return n??void 0}}),Rk=new class extends $f{};Rk.startSide=1;Rk.endSide=-1;const CW=Ui.define({create(){return bn.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of e.effects)n.is(_f)&&(t=t.update({add:[Rk.range(n.value,n.value+1)]}));return t}});function OW(){return[cSe,CW]}const kO="()[]{}<>«»»«［］｛｝";function RW(t){for(let e=0;e<kO.length;e+=2)if(kO.charCodeAt(e)==t)return kO.charAt(e+1);return rk(t<128?t:t+1)}function NW(t,e){return t.languageDataAt("closeBrackets",e)[0]||n0}const lSe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),cSe=tt.inputHandler.of((t,e,n,r)=>{if((lSe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let i=t.state.selection.main;if(r.length>2||r.length==2&&kl(Ka(r,0))==1||e!=i.from||n!=i.to)return!1;let a=dSe(t.state,r);return a?(t.dispatch(a),!0):!1}),uSe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=NW(t,t.selection.main.head).brackets||n0.brackets,i=null,a=t.changeByRange(s=>{if(s.empty){let o=fSe(t.doc,s.head);for(let c of r)if(c==o&&hT(t.doc,s.head)==RW(Ka(c,0)))return{changes:{from:s.head-c.length,to:s.head+c.length},range:Fe.cursor(s.head-c.length)}}return{range:i=s}});return i||e(t.update(a,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},AW=[{key:"Backspace",run:uSe}];function dSe(t,e){let n=NW(t,t.selection.main.head),r=n.brackets||n0.brackets;for(let i of r){let a=RW(Ka(i,0));if(e==i)return a==i?mSe(t,i,r.indexOf(i+i+i)>-1,n):hSe(t,i,a,n.before||n0.before);if(e==a&&wW(t,t.selection.main.from))return pSe(t,i,a)}return null}function wW(t,e){let n=!1;return t.field(CW).between(0,t.doc.length,r=>{r==e&&(n=!0)}),n}function hT(t,e){let n=t.sliceString(e,e+2);return n.slice(0,kl(Ka(n,0)))}function fSe(t,e){let n=t.sliceString(e-2,e);return kl(Ka(n,0))==n.length?n:n.slice(1)}function hSe(t,e,n,r){let i=null,a=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:n,from:s.to}],effects:_f.of(s.to+e.length),range:Fe.range(s.anchor+e.length,s.head+e.length)};let o=hT(t.doc,s.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:e+n,from:s.head},effects:_f.of(s.head+e.length),range:Fe.cursor(s.head+e.length)}:{range:i=s}});return i?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function pSe(t,e,n){let r=null,i=t.changeByRange(a=>a.empty&&hT(t.doc,a.head)==n?{changes:{from:a.head,to:a.head+n.length,insert:n},range:Fe.cursor(a.head+n.length)}:r={range:a});return r?null:t.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function mSe(t,e,n,r){let i=r.stringPrefixes||n0.stringPrefixes,a=null,s=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:e,from:o.to}],effects:_f.of(o.to+e.length),range:Fe.range(o.anchor+e.length,o.head+e.length)};let c=o.head,d=hT(t.doc,c),f;if(d==e){if(qj(t,c))return{changes:{insert:e+e,from:c},effects:_f.of(c+e.length),range:Fe.cursor(c+e.length)};if(wW(t,c)){let m=n&&t.sliceDoc(c,c+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+m.length,insert:m},range:Fe.cursor(c+m.length)}}}else{if(n&&t.sliceDoc(c-2*e.length,c)==e+e&&(f=$j(t,c-2*e.length,i))>-1&&qj(t,f))return{changes:{insert:e+e+e+e,from:c},effects:_f.of(c+e.length),range:Fe.cursor(c+e.length)};if(t.charCategorizer(c)(d)!=Er.Word&&$j(t,c,i)>-1&&!gSe(t,c,e,i))return{changes:{insert:e+e,from:c},effects:_f.of(c+e.length),range:Fe.cursor(c+e.length)}}return{range:a=o}});return a?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function qj(t,e){let n=Ei(t).resolveInner(e+1);return n.parent&&n.from==e}function gSe(t,e,n,r){let i=Ei(t).resolveInner(e,-1),a=r.reduce((s,o)=>Math.max(s,o.length),0);for(let s=0;s<5;s++){let o=t.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),c=o.indexOf(n);if(!c||c>-1&&r.indexOf(o.slice(0,c))>-1){let f=i.firstChild;for(;f&&f.from==i.from&&f.to-f.from>n.length+c;){if(t.sliceDoc(f.to-n.length,f.to)==n)return!1;f=f.firstChild}return!0}let d=i.to==e&&i.parent;if(!d)break;i=d}return!1}function $j(t,e,n){let r=t.charCategorizer(e);if(r(t.sliceDoc(e-1,e))!=Er.Word)return e;for(let i of n){let a=e-i.length;if(t.sliceDoc(a,e)==i&&r(t.sliceDoc(a-1,a))!=Er.Word)return a}return-1}function IW(t={}){return[Xve,Za,Li.of(t),Qve,_Se,TW]}const Nk=[{key:"Ctrl-Space",run:jj},{mac:"Alt-`",run:jj},{key:"Escape",run:Yve},{key:"ArrowDown",run:Dv(!0)},{key:"ArrowUp",run:Dv(!1)},{key:"PageDown",run:Dv(!0,"page")},{key:"PageUp",run:Dv(!1,"page")},{key:"Enter",run:zve}],_Se=nu.highest(ad.computeN([Li],t=>t.facet(Li).defaultKeymap?[Nk]:[])),DW=[{label:"y"},{label:"w"},{label:"d"},{label:"h"},{label:"m"},{label:"s"},{label:"ms"}],bSe=[{label:"="},{label:"!="},{label:"=~"},{label:"!~"}],MW=[{label:"^"},{label:"*"},{label:"/"},{label:"%"},{label:"+"},{label:"-"},{label:"=="},{label:">="},{label:">"},{label:"<"},{label:"<="},{label:"!="},{label:"atan2"},{label:"and"},{label:"or"},{label:"unless"}],vSe=[{label:"on",info:"Match only on specified labels",type:"keyword"},{label:"ignoring",info:"Ignore specified labels for matching",type:"keyword"},{label:"group_left",info:"Allow many-to-one matching",type:"keyword"},{label:"group_right",info:"Allow one-to-many matching",type:"keyword"}],SSe=[{label:"start()",info:"resolve to the start of the query",type:"keyword"},{label:"end()",info:"resolve to the end of the query",type:"keyword"}],ESe=[{label:"abs",detail:"function",info:"Return absolute values of input series",type:"function"},{label:"absent",detail:"function",info:"Determine whether input vector is empty",type:"function"},{label:"absent_over_time",detail:"function",info:"Determine whether input range vector is empty",type:"function"},{label:"acos",detail:"function",info:"Calculate the arccosine, in radians, for input series",type:"function"},{label:"acosh",detail:"function",info:"Calculate the inverse hyperbolic cosine, in radians, for input series",type:"function"},{label:"asin",detail:"function",info:"Calculate the arcsine, in radians, for input series",type:"function"},{label:"asinh",detail:"function",info:"Calculate the inverse hyperbolic sine, in radians, for input series",type:"function"},{label:"atan",detail:"function",info:"Calculate the arctangent, in radians, for input series",type:"function"},{label:"atanh",detail:"function",info:"Calculate the inverse hyperbolic tangent, in radians, for input series",type:"function"},{label:"avg_over_time",detail:"function",info:"Average series values over time",type:"function"},{label:"ceil",detail:"function",info:"Round up values of input series to nearest integer",type:"function"},{label:"changes",detail:"function",info:"Return number of value changes in input series over time",type:"function"},{label:"clamp",detail:"function",info:"Limit the value of input series between a minimum and a maximum",type:"function"},{label:"clamp_max",detail:"function",info:"Limit the value of input series to a maximum",type:"function"},{label:"clamp_min",detail:"function",info:"Limit the value of input series to a minimum",type:"function"},{label:"cos",detail:"function",info:"Calculate the cosine, in radians, for input series",type:"function",boost:-1},{label:"cosh",detail:"function",info:"Calculate the hyperbolic cosine, in radians, for input series",type:"function",boost:-1},{label:"count_over_time",detail:"function",info:"Count the number of values for each input series",type:"function"},{label:"days_in_month",detail:"function",info:"Return the number of days in current month for provided timestamps",type:"function"},{label:"day_of_month",detail:"function",info:"Return the day of the month for provided timestamps",type:"function"},{label:"day_of_week",detail:"function",info:"Return the day of the week for provided timestamps",type:"function"},{label:"day_of_year",detail:"function",info:"Return the day of the year for provided timestamps",type:"function"},{label:"deg",detail:"function",info:"Convert radians to degrees for input series",type:"function",boost:-1},{label:"delta",detail:"function",info:"Calculate the difference between beginning and end of a range vector (for gauges)",type:"function"},{label:"deriv",detail:"function",info:"Calculate the per-second derivative over series in a range vector (for gauges)",type:"function"},{label:"exp",detail:"function",info:"Calculate exponential function for input vector values",type:"function"},{label:"floor",detail:"function",info:"Round down values of input series to nearest integer",type:"function"},{label:"histogram_avg",detail:"function",info:"Return the average of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_count",detail:"function",info:"Return the count of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_fraction",detail:"function",info:"Calculate fractions of observations within an interval from a native histogram (experimental feature)",type:"function"},{label:"histogram_quantile",detail:"function",info:"Calculate quantiles from native histograms (experimental) and from conventional histogram buckets",type:"function"},{label:"histogram_sum",detail:"function",info:"Return the sum of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_stddev",detail:"function",info:"Estimate the standard deviation of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_stdvar",detail:"function",info:"Estimate the standard variance of observations from a native histogram (experimental feature)",type:"function"},{label:"double_exponential_smoothing",detail:"function",info:"Calculate smoothed value of input series",type:"function"},{label:"hour",detail:"function",info:"Return the hour of the day for provided timestamps",type:"function"},{label:"idelta",detail:"function",info:"Calculate the difference between the last two samples of a range vector (for counters)",type:"function"},{label:"increase",detail:"function",info:"Calculate the increase in value over a range of time (for counters)",type:"function"},{label:"info",detail:"function",info:"Add data labels from corresponding info metrics",type:"function"},{label:"irate",detail:"function",info:"Calculate the per-second increase over the last two samples of a range vector (for counters)",type:"function"},{label:"label_replace",detail:"function",info:"Set or replace label values",type:"function"},{label:"label_join",detail:"function",info:"Join together label values into new label",type:"function"},{label:"last_over_time",detail:"function",info:"The most recent point value in specified interval.",type:"function"},{label:"ln",detail:"function",info:"Calculate natural logarithm of input series",type:"function"},{label:"log10",detail:"function",info:"Calulcate base-10 logarithm of input series",type:"function"},{label:"log2",detail:"function",info:"Calculate base-2 logarithm of input series",type:"function"},{label:"mad_over_time",detail:"function",info:"Return the median absolute deviation over time for input series",type:"function"},{label:"max_over_time",detail:"function",info:"Return the maximum value over time for input series",type:"function"},{label:"min_over_time",detail:"function",info:"Return the minimum value over time for input series",type:"function"},{label:"minute",detail:"function",info:"Return the minute of the hour for provided timestamps",type:"function"},{label:"month",detail:"function",info:"Return the month for provided timestamps",type:"function"},{label:"pi",detail:"function",info:"Return pi",type:"function"},{label:"predict_linear",detail:"function",info:"Predict the value of a gauge into the future",type:"function"},{label:"present_over_time",detail:"function",info:"the value 1 for any series in the specified interval",type:"function"},{label:"quantile_over_time",detail:"function",info:"Calculate value quantiles over time for input series",type:"function"},{label:"rad",detail:"function",info:"Convert degrees to radians for input series",type:"function",boost:-1},{label:"rate",detail:"function",info:"Calculate per-second increase over a range vector (for counters)",type:"function"},{label:"resets",detail:"function",info:"Return number of value decreases (resets) in input series of time",type:"function"},{label:"round",detail:"function",info:"Round values of input series to nearest integer",type:"function"},{label:"scalar",detail:"function",info:"Convert single-element series vector into scalar value",type:"function"},{label:"sgn",detail:"function",info:"Returns the sign of the instant vector",type:"function"},{label:"sin",detail:"function",info:"Calculate the sine, in radians, for input series",type:"function"},{label:"sinh",detail:"function",info:"Calculate the hyperbolic sine, in radians, for input series",type:"function"},{label:"sort",detail:"function",info:"Sort input series ascendingly by value",type:"function"},{label:"sort_desc",detail:"function",info:"Sort input series descendingly by value",type:"function"},{label:"sort_by_label",detail:"function",info:"Sort input series ascendingly by label value",type:"function"},{label:"sort_by_label_desc",detail:"function",info:"Sort input series descendingly by value value",type:"function"},{label:"sqrt",detail:"function",info:"Return the square root for input series",type:"function"},{label:"stddev_over_time",detail:"function",info:"Calculate the standard deviation within input series over time",type:"function"},{label:"stdvar_over_time",detail:"function",info:"Calculate the standard variance within input series over time",type:"function"},{label:"sum_over_time",detail:"function",info:"Calculate the sum over the values of input series over time",type:"function"},{label:"tan",detail:"function",info:"Calculate the tangent, in radians, for input series",type:"function"},{label:"tanh",detail:"function",info:"Calculate the hyperbolic tangent, in radians, for input series",type:"function"},{label:"time",detail:"function",info:"Return the Unix timestamp at the current evaluation time",type:"function"},{label:"timestamp",detail:"function",info:"Return the Unix timestamp for the samples in the input vector",type:"function"},{label:"vector",detail:"function",info:"Convert a scalar value into a single-element series vector",type:"function"},{label:"year",detail:"function",info:"Return the year for provided timestamps",type:"function"}],LW=[{label:"avg",detail:"aggregation",info:"Calculate the average over dimensions",type:"keyword"},{label:"bottomk",detail:"aggregation",info:"Smallest k elements by sample value",type:"keyword"},{label:"count",detail:"aggregation",info:"Count number of elements in the vector",type:"keyword"},{label:"count_values",detail:"aggregation",info:"Count number of elements with the same value",type:"keyword"},{label:"group",detail:"aggregation",info:"Group series, while setting the sample value to 1",type:"keyword"},{label:"limitk",detail:"aggregation",info:"Sample k elements",type:"keyword"},{label:"limit_ratio",detail:"aggregation",info:"Sample given ratio of elements",type:"keyword"},{label:"max",detail:"aggregation",info:"Select maximum over dimensions",type:"keyword"},{label:"min",detail:"aggregation",info:"Select minimum over dimensions",type:"keyword"},{label:"quantile",detail:"aggregation",info:"Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions",type:"keyword"},{label:"stddev",detail:"aggregation",info:"Calculate population standard deviation over dimensions",type:"keyword"},{label:"stdvar",detail:"aggregation",info:"Calculate population standard variance over dimensions",type:"keyword"},{label:"sum",detail:"aggregation",info:"Calculate sum over dimensions",type:"keyword"},{label:"topk",detail:"aggregation",info:"Largest k elements by sample value",type:"keyword"}],ySe=[{label:"by",info:"Keep the listed labels, remove all others.",type:"keyword"},{label:"without",info:"Remove the listed labels, preserve all others.",type:"keyword"}],TSe=[{label:"nan",info:"Floating-point NaN value",type:"constant"},{label:"inf",info:"Floating-point infinity",type:"constant"}],xSe=[{label:"sum(rate(__input_vector__[5m]))",type:"function",detail:"snippet",info:"Sum over rates of increase",apply:Gh("sum(rate(${__input_vector__}[5m]))")},{label:"histogram_quantile(__quantile__, sum by(le) (rate(__histogram_metric__[5m])))",type:"function",detail:"snippet",info:"Approximate a quantile value from an aggregated histogram",apply:Gh("histogram_quantile(${__quantile__}, sum by(le) (rate(${__histogram_metric__}[5m])))")},{label:'label_replace(__input_vector__, "__dst__", "__replacement__", "__src__", "__regex__")',type:"function",detail:"snippet",info:"Set or replace a label value in an input vector",apply:Gh('label_replace(${__input_vector__}, "${__dst__}", "${__replacement__}", "${__src__}", "${__regex__}")')},{label:"topk(__rank_number__, __input_vector__)",type:"function",detail:"snippet",info:"Largest k elements by sample value",apply:Gh("topk(${__rank_number__}, ${__input_vector__})")},{label:"bottomk(__rank_number__, __input_vector__)",type:"function",detail:"snippet",info:"Smallest k elements by sample value",apply:Gh("bottomk(${__rank_number__}, ${__input_vector__})")},{label:'count_values("__label_name__", __input_vector__)',type:"function",detail:"snippet",info:"Count the number of series per distinct sample value",apply:Gh('count_values("${__label_name__}", ${__metric__})')}],xc={matchOp:bSe,binOp:MW,duration:DW,binOpModifier:vSe,atModifier:SSe,functionIdentifier:ESe,aggregateOp:LW,aggregateOpModifier:ySe,number:TSe};var bt;(function(t){t[t.MetricName=0]="MetricName",t[t.LabelName=1]="LabelName",t[t.LabelValue=2]="LabelValue",t[t.Function=3]="Function",t[t.Aggregation=4]="Aggregation",t[t.BinOpModifier=5]="BinOpModifier",t[t.BinOp=6]="BinOp",t[t.MatchOp=7]="MatchOp",t[t.AggregateOpModifier=8]="AggregateOpModifier",t[t.Duration=9]="Duration",t[t.Offset=10]="Offset",t[t.Bool=11]="Bool",t[t.AtModifiers=12]="AtModifiers",t[t.Number=13]="Number"})(bt||(bt={}));function CSe(t,e){const n=nk(t,aT);if(!n)return"";let r="";return n.cursor().iterate(i=>{if(i.type.id===I0&&(r=i_(i.node,e),r))return!1}),r}function i_(t,e){let n=nk(t,I0);return!n||(n=n.getChild(lE),!n)?"":e.sliceDoc(n.from,n.to)}function OSe(t,e,n,r=!1,i=!0){const a=t;return r&&a.push(...xSe),{from:e,to:n,options:a,validFor:i?/^[a-zA-Z0-9_:]+$/:void 0}}function RSe(t,e){let n=t.from+1;return t.firstChild!==null&&(n=e),n}function NSe(t,e,n){var r,i,a,s,o,c,d;const f=t.doc.slice(e.from,n).toString();let p=e.from;return e.type.id===m_||e.type.id===p_?p=RSe(e,n):e.type.id===Pf&&e.firstChild===null||e.type.id===j_&&(((r=e.parent)===null||r===void 0?void 0:r.type.id)===mf||((i=e.parent)===null||i===void 0?void 0:i.type.id)===up)?p++:(e.type.id===$_||e.type.id===cE&&!DW.map(m=>m.label).includes(f[f.length-1])||e.type.id===ek&&((a=e.parent)===null||a===void 0?void 0:a.type.id)===0&&((s=e.parent.parent)===null||s===void 0?void 0:s.type.id)===Yp||e.type.id===Pf&&kW(e)&&e.firstChild!==null||e.type.id===0&&(((o=e.parent)===null||o===void 0?void 0:o.type.id)===$_||((c=e.parent)===null||c===void 0?void 0:c.type.id)===q_||((d=e.parent)===null||d===void 0?void 0:d.type.id)===Yp&&td(e.parent,cE)))&&(p=n),p}function kW(t){var e;const n=t.parent;if(n!==null&&((e=n.firstChild)===null||e===void 0?void 0:e.type.id)===tme){const r=n.firstChild.firstChild;if(r!==null&&[yV,bV,SV,EV,vV].includes(r.type.id))return!0}return!1}function ASe(t,e,n){var r,i,a,s,o,c,d,f,p,m,g,b,S,y,E,T,x,O,C,N,w;const D=[];switch(e.type.id){case 0:{if(((r=e.parent)===null||r===void 0?void 0:r.type.id)===$_){D.push({kind:bt.Duration});break}if(((i=e.parent)===null||i===void 0?void 0:i.type.id)===mf||((a=e.parent)===null||a===void 0?void 0:a.type.id)===up){D.push({kind:bt.MatchOp});break}if(((s=e.parent)===null||s===void 0?void 0:s.type.id)===q_){D.push({kind:bt.Duration});break}if(((o=e.parent)===null||o===void 0?void 0:o.type.id)===Yp&&td(e.parent,cE)){D.push({kind:bt.Duration});break}const L=t.sliceDoc(e.from,e.to);MW.filter(U=>U.label.includes(L)).length>0&&D.push({kind:bt.BinOp});break}case lE:{if(((c=e.parent)===null||c===void 0?void 0:c.type.id)===0){const M=e.parent.parent;if((M==null?void 0:M.type.id)===tk){D.push({kind:bt.AtModifiers});break}if((M==null?void 0:M.type.id)===aT){D.push({kind:bt.AggregateOpModifier},{kind:bt.BinOp});break}if((M==null?void 0:M.type.id)===I0){const B=i_(e,t);LW.filter(Y=>Y.label===B).length>0&&D.push({kind:bt.AggregateOpModifier}),D.push({kind:bt.BinOp},{kind:bt.Offset});break}if(M&&xU(M,"Expr")){D.push({kind:bt.BinOp},{kind:bt.Offset});break}}const L=(d=e.parent)===null||d===void 0?void 0:d.parent;if(!L){D.push({kind:bt.MetricName,metricName:t.sliceDoc(e.from,e.to)});break}xU(L,"Expr","Expr")&&L.type.id!==Pf?L.type.id===cp&&!td(L,0)&&(D.push({kind:bt.MetricName,metricName:t.sliceDoc(e.from,e.to)},{kind:bt.Function},{kind:bt.Aggregation},{kind:bt.BinOpModifier},{kind:bt.Number}),td(L,cI,uI,dI,fI,hI,G_)&&!td(L,TV)&&D.push({kind:bt.Bool})):(D.push({kind:bt.MetricName,metricName:t.sliceDoc(e.from,e.to)},{kind:bt.Function},{kind:bt.Aggregation}),L.type.id!==Pf&&L.type.id!==q_&&D.push({kind:bt.Number}));break}case eme:e.firstChild!==null&&e.firstChild.type.id===0&&D.push({kind:bt.MetricName,metricName:""},{kind:bt.Function},{kind:bt.Aggregation},{kind:bt.Number});break;case p_:D.push({kind:bt.LabelName,metricName:CSe(e,t)});break;case m_:D.push({kind:bt.LabelName,metricName:i_(e,t)});break;case F_:((f=e.parent)===null||f===void 0?void 0:f.type.id)===p_?D.push({kind:bt.LabelName}):((p=e.parent)===null||p===void 0?void 0:p.type.id)===mf&&D.push({kind:bt.LabelName,metricName:i_(e,t)});break;case j_:if(((m=e.parent)===null||m===void 0?void 0:m.type.id)===mf||((g=e.parent)===null||g===void 0?void 0:g.type.id)===up){let L="";((b=e.parent.firstChild)===null||b===void 0?void 0:b.type.id)===F_?L=t.sliceDoc(e.parent.firstChild.from,e.parent.firstChild.to):((S=e.parent.firstChild)===null||S===void 0?void 0:S.type.id)===U_&&(L=t.sliceDoc(e.parent.firstChild.from,e.parent.firstChild.to).slice(1,-1));const U=i_(e,t),M=nk(e,m_),B=[U_,up,mf];let Y=[];for(const H of B)Y=Y.concat(IV(M?M.getChildren(H):[],t));D.push({kind:bt.LabelValue,metricName:U,labelName:L,matchers:Y})}else((E=(y=e.parent)===null||y===void 0?void 0:y.parent)===null||E===void 0?void 0:E.type.id)===p_?D.push({kind:bt.LabelName}):((x=(T=e.parent)===null||T===void 0?void 0:T.parent)===null||x===void 0?void 0:x.type.id)===m_&&D.push({kind:bt.MetricName,metricName:t.sliceDoc(e.from,e.to).slice(1,-1)});break;case ek:((O=e.parent)===null||O===void 0?void 0:O.type.id)===0&&((C=e.parent.parent)===null||C===void 0?void 0:C.type.id)===Yp?D.push({kind:bt.Duration}):D.push({kind:bt.Number});break;case cE:case $_:D.push({kind:bt.Duration});break;case Pf:if(kW(e)){if(e.firstChild===null||e.firstChild.from<=n&&e.firstChild.to>=n){D.push({kind:bt.Number});break}D.push({kind:bt.MetricName,metricName:""},{kind:bt.Function},{kind:bt.Aggregation});break}D.push({kind:bt.MetricName,metricName:""},{kind:bt.Function},{kind:bt.Aggregation});break;case G_:((N=e.parent)===null||N===void 0?void 0:N.type.id)===uE?D.push({kind:bt.MatchOp}):((w=e.parent)===null||w===void 0?void 0:w.type.id)===cp&&D.push({kind:bt.BinOp});break;case D0:case RV:case NV:case uE:D.push({kind:bt.MatchOp});break;case nme:case ime:case ame:case sme:case ome:case lme:case cI:case uI:case dI:case fI:case hI:case XL:case JL:case ZL:case cp:D.push({kind:bt.BinOp});break}return D}class PO{constructor(e,n=1e4){this.prometheusClient=e,this.maxMetricsMetadata=n}getPrometheusClient(){return this.prometheusClient}promQL(e){const{state:n,pos:r}=e,i=Ei(n).resolve(r,-1),a=ASe(n,i,r);let s=Promise.resolve([]),o=!1,c=!0;for(const d of a)switch(d.kind){case bt.Aggregation:o=!0,s=s.then(f=>f.concat(xc.aggregateOp));break;case bt.Function:o=!0,s=s.then(f=>f.concat(xc.functionIdentifier));break;case bt.BinOpModifier:s=s.then(f=>f.concat(xc.binOpModifier));break;case bt.BinOp:s=s.then(f=>f.concat(xc.binOp));break;case bt.MatchOp:s=s.then(f=>f.concat(xc.matchOp));break;case bt.AggregateOpModifier:s=s.then(f=>f.concat(xc.aggregateOpModifier));break;case bt.Duration:c=!1,s=s.then(f=>f.concat(xc.duration));break;case bt.Offset:s=s.then(f=>f.concat([{label:"offset"}]));break;case bt.Bool:s=s.then(f=>f.concat([{label:"bool"}]));break;case bt.AtModifiers:s=s.then(f=>f.concat(xc.atModifier));break;case bt.Number:s=s.then(f=>f.concat(xc.number));break;case bt.MetricName:s=s.then(f=>this.autocompleteMetricName(f,d));break;case bt.LabelName:s=s.then(f=>this.autocompleteLabelName(f,d));break;case bt.LabelValue:s=s.then(f=>this.autocompleteLabelValue(f,d))}return s.then(d=>OSe(d,NSe(n,i,r),r,o,c))}autocompleteMetricName(e,n){if(!this.prometheusClient)return e;const r=new Map;return this.prometheusClient.metricNames(n.metricName).then(i=>{var a;for(const s of i)r.set(s,{label:s,type:"constant"});if(i.length<=this.maxMetricsMetadata)return(a=this.prometheusClient)===null||a===void 0?void 0:a.metricMetadata()}).then(i=>{if(i)for(const[a,s]of r){const o=i[a.replace(/(_count|_sum|_bucket)$/,"")];if(o){if(o.length>1)for(const c of o)s.detail===""?s.detail=c.type:s.detail!==c.type&&(s.detail="unknown",s.info="multiple different definitions for this metric"),s.info===""?s.info=c.help:s.info!==c.help&&(s.info="multiple different definitions for this metric");else if(o.length===1){let{type:c,help:d}=o[0];(c==="histogram"||c==="summary")&&(a.endsWith("_count")&&(c="counter",d=`The total number of observations for: ${d}`),a.endsWith("_sum")&&(c="counter",d=`The total sum of observations for: ${d}`),a.endsWith("_bucket")&&(c="counter",d=`The total count of observations for a bucket in the histogram: ${d}`)),s.detail=c,s.info=d}}}return e.concat(Array.from(r.values()))})}autocompleteLabelName(e,n){return this.prometheusClient?this.prometheusClient.labelNames(n.metricName).then(r=>e.concat(r.map(i=>({label:i,type:"constant"})))):e}autocompleteLabelValue(e,n){return!this.prometheusClient||!n.labelName?e:this.prometheusClient.labelValues(n.labelName,n.metricName,n.matchers).then(r=>e.concat(r.map(i=>({label:i,type:"text"}))))}}const qh=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,PW=new Set,ZI=typeof process=="object"&&process?process:{},BW=(t,e,n,r)=>{typeof ZI.emitWarning=="function"?ZI.emitWarning(t,e,n,r):console.error(`[${n}] ${e}: ${t}`)};let OE=globalThis.AbortController,zj=globalThis.AbortSignal;var M5;if(typeof OE>"u"){zj=class{constructor(){Pn(this,"onabort");Pn(this,"_onabort",[]);Pn(this,"reason");Pn(this,"aborted",!1)}addEventListener(r,i){this._onabort.push(i)}},OE=class{constructor(){Pn(this,"signal",new zj);e()}abort(r){var i,a;if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(const s of this.signal._onabort)s(r);(a=(i=this.signal).onabort)==null||a.call(i,r)}}};let t=((M5=ZI.env)==null?void 0:M5.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,BW("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const wSe=t=>!PW.has(t),Lu=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),FW=t=>Lu(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?xS:null:null;class xS extends Array{constructor(e){super(e),this.fill(0)}}var Dp;const hf=class hf{constructor(e,n){Pn(this,"heap");Pn(this,"length");if(!$(hf,Dp))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=FW(e);if(!n)return[];Pe(hf,Dp,!0);const r=new hf(e,n);return Pe(hf,Dp,!1),r}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};Dp=new WeakMap,Je(hf,Dp,!1);let JI=hf;var L5,k5,Fo,vs,Uo,Nf,jo,Mp,Lp,hi,Go,Jr,cr,qt,Da,Ss,pa,Ii,qo,Di,$o,zo,Es,Yo,Zu,Ma,kp,rt,eD,Af,Ac,d0,ys,UW,wf,Pp,f0,ku,Pu,tD,CS,OS,lr,nD,a_,Bu,rD;const mP=class mP{constructor(e){Je(this,rt);Je(this,Fo);Je(this,vs);Je(this,Uo);Je(this,Nf);Je(this,jo);Je(this,Mp);Je(this,Lp);Pn(this,"ttl");Pn(this,"ttlResolution");Pn(this,"ttlAutopurge");Pn(this,"updateAgeOnGet");Pn(this,"updateAgeOnHas");Pn(this,"allowStale");Pn(this,"noDisposeOnSet");Pn(this,"noUpdateTTL");Pn(this,"maxEntrySize");Pn(this,"sizeCalculation");Pn(this,"noDeleteOnFetchRejection");Pn(this,"noDeleteOnStaleGet");Pn(this,"allowStaleOnFetchAbort");Pn(this,"allowStaleOnFetchRejection");Pn(this,"ignoreFetchAbort");Je(this,hi);Je(this,Go);Je(this,Jr);Je(this,cr);Je(this,qt);Je(this,Da);Je(this,Ss);Je(this,pa);Je(this,Ii);Je(this,qo);Je(this,Di);Je(this,$o);Je(this,zo);Je(this,Es);Je(this,Yo);Je(this,Zu);Je(this,Ma);Je(this,kp);Je(this,Af,()=>{});Je(this,Ac,()=>{});Je(this,d0,()=>{});Je(this,ys,()=>!1);Je(this,wf,e=>{});Je(this,Pp,(e,n,r)=>{});Je(this,f0,(e,n,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Pn(this,L5,"LRUCache");const{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:a,updateAgeOnGet:s,updateAgeOnHas:o,allowStale:c,dispose:d,onInsert:f,disposeAfter:p,noDisposeOnSet:m,noUpdateTTL:g,maxSize:b=0,maxEntrySize:S=0,sizeCalculation:y,fetchMethod:E,memoMethod:T,noDeleteOnFetchRejection:x,noDeleteOnStaleGet:O,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:N,ignoreFetchAbort:w}=e;if(n!==0&&!Lu(n))throw new TypeError("max option must be a nonnegative integer");const D=n?FW(n):Array;if(!D)throw new Error("invalid max value: "+n);if(Pe(this,Fo,n),Pe(this,vs,b),this.maxEntrySize=S||$(this,vs),this.sizeCalculation=y,this.sizeCalculation){if(!$(this,vs)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(T!==void 0&&typeof T!="function")throw new TypeError("memoMethod must be a function if defined");if(Pe(this,Lp,T),E!==void 0&&typeof E!="function")throw new TypeError("fetchMethod must be a function if specified");if(Pe(this,Mp,E),Pe(this,Zu,!!E),Pe(this,Jr,new Map),Pe(this,cr,new Array(n).fill(void 0)),Pe(this,qt,new Array(n).fill(void 0)),Pe(this,Da,new D(n)),Pe(this,Ss,new D(n)),Pe(this,pa,0),Pe(this,Ii,0),Pe(this,qo,JI.create(n)),Pe(this,hi,0),Pe(this,Go,0),typeof d=="function"&&Pe(this,Uo,d),typeof f=="function"&&Pe(this,Nf,f),typeof p=="function"?(Pe(this,jo,p),Pe(this,Di,[])):(Pe(this,jo,void 0),Pe(this,Di,void 0)),Pe(this,Yo,!!$(this,Uo)),Pe(this,kp,!!$(this,Nf)),Pe(this,Ma,!!$(this,jo)),this.noDisposeOnSet=!!m,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!x,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!N,this.ignoreFetchAbort=!!w,this.maxEntrySize!==0){if($(this,vs)!==0&&!Lu($(this,vs)))throw new TypeError("maxSize must be a positive integer if specified");if(!Lu(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");$e(this,rt,UW).call(this)}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!O,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!o,this.ttlResolution=Lu(i)||i===0?i:1,this.ttlAutopurge=!!a,this.ttl=r||0,this.ttl){if(!Lu(this.ttl))throw new TypeError("ttl must be a positive integer if specified");$e(this,rt,eD).call(this)}if($(this,Fo)===0&&this.ttl===0&&$(this,vs)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!$(this,Fo)&&!$(this,vs)){const L="LRU_CACHE_UNBOUNDED";wSe(L)&&(PW.add(L),BW("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",L,mP))}}static unsafeExposeInternals(e){return{starts:$(e,zo),ttls:$(e,Es),sizes:$(e,$o),keyMap:$(e,Jr),keyList:$(e,cr),valList:$(e,qt),next:$(e,Da),prev:$(e,Ss),get head(){return $(e,pa)},get tail(){return $(e,Ii)},free:$(e,qo),isBackgroundFetch:n=>{var r;return $e(r=e,rt,lr).call(r,n)},backgroundFetch:(n,r,i,a)=>{var s;return $e(s=e,rt,OS).call(s,n,r,i,a)},moveToTail:n=>{var r;return $e(r=e,rt,a_).call(r,n)},indexes:n=>{var r;return $e(r=e,rt,ku).call(r,n)},rindexes:n=>{var r;return $e(r=e,rt,Pu).call(r,n)},isStale:n=>{var r;return $(r=e,ys).call(r,n)}}}get max(){return $(this,Fo)}get maxSize(){return $(this,vs)}get calculatedSize(){return $(this,Go)}get size(){return $(this,hi)}get fetchMethod(){return $(this,Mp)}get memoMethod(){return $(this,Lp)}get dispose(){return $(this,Uo)}get onInsert(){return $(this,Nf)}get disposeAfter(){return $(this,jo)}getRemainingTTL(e){return $(this,Jr).has(e)?1/0:0}*entries(){for(const e of $e(this,rt,ku).call(this))$(this,qt)[e]!==void 0&&$(this,cr)[e]!==void 0&&!$e(this,rt,lr).call(this,$(this,qt)[e])&&(yield[$(this,cr)[e],$(this,qt)[e]])}*rentries(){for(const e of $e(this,rt,Pu).call(this))$(this,qt)[e]!==void 0&&$(this,cr)[e]!==void 0&&!$e(this,rt,lr).call(this,$(this,qt)[e])&&(yield[$(this,cr)[e],$(this,qt)[e]])}*keys(){for(const e of $e(this,rt,ku).call(this)){const n=$(this,cr)[e];n!==void 0&&!$e(this,rt,lr).call(this,$(this,qt)[e])&&(yield n)}}*rkeys(){for(const e of $e(this,rt,Pu).call(this)){const n=$(this,cr)[e];n!==void 0&&!$e(this,rt,lr).call(this,$(this,qt)[e])&&(yield n)}}*values(){for(const e of $e(this,rt,ku).call(this))$(this,qt)[e]!==void 0&&!$e(this,rt,lr).call(this,$(this,qt)[e])&&(yield $(this,qt)[e])}*rvalues(){for(const e of $e(this,rt,Pu).call(this))$(this,qt)[e]!==void 0&&!$e(this,rt,lr).call(this,$(this,qt)[e])&&(yield $(this,qt)[e])}[(k5=Symbol.iterator,L5=Symbol.toStringTag,k5)](){return this.entries()}find(e,n={}){for(const r of $e(this,rt,ku).call(this)){const i=$(this,qt)[r],a=$e(this,rt,lr).call(this,i)?i.__staleWhileFetching:i;if(a!==void 0&&e(a,$(this,cr)[r],this))return this.get($(this,cr)[r],n)}}forEach(e,n=this){for(const r of $e(this,rt,ku).call(this)){const i=$(this,qt)[r],a=$e(this,rt,lr).call(this,i)?i.__staleWhileFetching:i;a!==void 0&&e.call(n,a,$(this,cr)[r],this)}}rforEach(e,n=this){for(const r of $e(this,rt,Pu).call(this)){const i=$(this,qt)[r],a=$e(this,rt,lr).call(this,i)?i.__staleWhileFetching:i;a!==void 0&&e.call(n,a,$(this,cr)[r],this)}}purgeStale(){let e=!1;for(const n of $e(this,rt,Pu).call(this,{allowStale:!0}))$(this,ys).call(this,n)&&($e(this,rt,Bu).call(this,$(this,cr)[n],"expire"),e=!0);return e}info(e){const n=$(this,Jr).get(e);if(n===void 0)return;const r=$(this,qt)[n],i=$e(this,rt,lr).call(this,r)?r.__staleWhileFetching:r;if(i===void 0)return;const a={value:i};if($(this,Es)&&$(this,zo)){const s=$(this,Es)[n],o=$(this,zo)[n];if(s&&o){const c=s-(qh.now()-o);a.ttl=c,a.start=Date.now()}}return $(this,$o)&&(a.size=$(this,$o)[n]),a}dump(){const e=[];for(const n of $e(this,rt,ku).call(this,{allowStale:!0})){const r=$(this,cr)[n],i=$(this,qt)[n],a=$e(this,rt,lr).call(this,i)?i.__staleWhileFetching:i;if(a===void 0||r===void 0)continue;const s={value:a};if($(this,Es)&&$(this,zo)){s.ttl=$(this,Es)[n];const o=qh.now()-$(this,zo)[n];s.start=Math.floor(Date.now()-o)}$(this,$o)&&(s.size=$(this,$o)[n]),e.unshift([r,s])}return e}load(e){this.clear();for(const[n,r]of e){if(r.start){const i=Date.now()-r.start;r.start=qh.now()-i}this.set(n,r.value,r)}}set(e,n,r={}){var m,g,b,S,y,E,T;if(n===void 0)return this.delete(e),this;const{ttl:i=this.ttl,start:a,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:c}=r;let{noUpdateTTL:d=this.noUpdateTTL}=r;const f=$(this,f0).call(this,e,n,r.size||0,o);if(this.maxEntrySize&&f>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),$e(this,rt,Bu).call(this,e,"set"),this;let p=$(this,hi)===0?void 0:$(this,Jr).get(e);if(p===void 0)p=$(this,hi)===0?$(this,Ii):$(this,qo).length!==0?$(this,qo).pop():$(this,hi)===$(this,Fo)?$e(this,rt,CS).call(this,!1):$(this,hi),$(this,cr)[p]=e,$(this,qt)[p]=n,$(this,Jr).set(e,p),$(this,Da)[$(this,Ii)]=p,$(this,Ss)[p]=$(this,Ii),Pe(this,Ii,p),Qd(this,hi)._++,$(this,Pp).call(this,p,f,c),c&&(c.set="add"),d=!1,$(this,kp)&&((m=$(this,Nf))==null||m.call(this,n,e,"add"));else{$e(this,rt,a_).call(this,p);const x=$(this,qt)[p];if(n!==x){if($(this,Zu)&&$e(this,rt,lr).call(this,x)){x.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:O}=x;O!==void 0&&!s&&($(this,Yo)&&((g=$(this,Uo))==null||g.call(this,O,e,"set")),$(this,Ma)&&((b=$(this,Di))==null||b.push([O,e,"set"])))}else s||($(this,Yo)&&((S=$(this,Uo))==null||S.call(this,x,e,"set")),$(this,Ma)&&((y=$(this,Di))==null||y.push([x,e,"set"])));if($(this,wf).call(this,p),$(this,Pp).call(this,p,f,c),$(this,qt)[p]=n,c){c.set="replace";const O=x&&$e(this,rt,lr).call(this,x)?x.__staleWhileFetching:x;O!==void 0&&(c.oldValue=O)}}else c&&(c.set="update");$(this,kp)&&((E=this.onInsert)==null||E.call(this,n,e,n===x?"update":"replace"))}if(i!==0&&!$(this,Es)&&$e(this,rt,eD).call(this),$(this,Es)&&(d||$(this,d0).call(this,p,i,a),c&&$(this,Ac).call(this,c,p)),!s&&$(this,Ma)&&$(this,Di)){const x=$(this,Di);let O;for(;O=x==null?void 0:x.shift();)(T=$(this,jo))==null||T.call(this,...O)}return this}pop(){var e;try{for(;$(this,hi);){const n=$(this,qt)[$(this,pa)];if($e(this,rt,CS).call(this,!0),$e(this,rt,lr).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if($(this,Ma)&&$(this,Di)){const n=$(this,Di);let r;for(;r=n==null?void 0:n.shift();)(e=$(this,jo))==null||e.call(this,...r)}}}has(e,n={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=n,a=$(this,Jr).get(e);if(a!==void 0){const s=$(this,qt)[a];if($e(this,rt,lr).call(this,s)&&s.__staleWhileFetching===void 0)return!1;if($(this,ys).call(this,a))i&&(i.has="stale",$(this,Ac).call(this,i,a));else return r&&$(this,Af).call(this,a),i&&(i.has="hit",$(this,Ac).call(this,i,a)),!0}else i&&(i.has="miss");return!1}peek(e,n={}){const{allowStale:r=this.allowStale}=n,i=$(this,Jr).get(e);if(i===void 0||!r&&$(this,ys).call(this,i))return;const a=$(this,qt)[i];return $e(this,rt,lr).call(this,a)?a.__staleWhileFetching:a}async fetch(e,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:c=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:g=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:S,forceRefresh:y=!1,status:E,signal:T}=n;if(!$(this,Zu))return E&&(E.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:a,status:E});const x={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:a,ttl:s,noDisposeOnSet:o,size:c,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:b,ignoreFetchAbort:g,status:E,signal:T};let O=$(this,Jr).get(e);if(O===void 0){E&&(E.fetch="miss");const C=$e(this,rt,OS).call(this,e,O,x,S);return C.__returned=C}else{const C=$(this,qt)[O];if($e(this,rt,lr).call(this,C)){const U=r&&C.__staleWhileFetching!==void 0;return E&&(E.fetch="inflight",U&&(E.returnedStale=!0)),U?C.__staleWhileFetching:C.__returned=C}const N=$(this,ys).call(this,O);if(!y&&!N)return E&&(E.fetch="hit"),$e(this,rt,a_).call(this,O),i&&$(this,Af).call(this,O),E&&$(this,Ac).call(this,E,O),C;const w=$e(this,rt,OS).call(this,e,O,x,S),L=w.__staleWhileFetching!==void 0&&r;return E&&(E.fetch=N?"stale":"refresh",L&&N&&(E.returnedStale=!0)),L?w.__staleWhileFetching:w.__returned=w}}async forceFetch(e,n={}){const r=await this.fetch(e,n);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(e,n={}){const r=$(this,Lp);if(!r)throw new Error("no memoMethod provided to constructor");const{context:i,forceRefresh:a,...s}=n,o=this.get(e,s);if(!a&&o!==void 0)return o;const c=r(e,o,{options:s,context:i});return this.set(e,c,s),c}get(e,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:s}=n,o=$(this,Jr).get(e);if(o!==void 0){const c=$(this,qt)[o],d=$e(this,rt,lr).call(this,c);return s&&$(this,Ac).call(this,s,o),$(this,ys).call(this,o)?(s&&(s.get="stale"),d?(s&&r&&c.__staleWhileFetching!==void 0&&(s.returnedStale=!0),r?c.__staleWhileFetching:void 0):(a||$e(this,rt,Bu).call(this,e,"expire"),s&&r&&(s.returnedStale=!0),r?c:void 0)):(s&&(s.get="hit"),d?c.__staleWhileFetching:($e(this,rt,a_).call(this,o),i&&$(this,Af).call(this,o),c))}else s&&(s.get="miss")}delete(e){return $e(this,rt,Bu).call(this,e,"delete")}clear(){return $e(this,rt,rD).call(this,"delete")}};Fo=new WeakMap,vs=new WeakMap,Uo=new WeakMap,Nf=new WeakMap,jo=new WeakMap,Mp=new WeakMap,Lp=new WeakMap,hi=new WeakMap,Go=new WeakMap,Jr=new WeakMap,cr=new WeakMap,qt=new WeakMap,Da=new WeakMap,Ss=new WeakMap,pa=new WeakMap,Ii=new WeakMap,qo=new WeakMap,Di=new WeakMap,$o=new WeakMap,zo=new WeakMap,Es=new WeakMap,Yo=new WeakMap,Zu=new WeakMap,Ma=new WeakMap,kp=new WeakMap,rt=new WeakSet,eD=function(){const e=new xS($(this,Fo)),n=new xS($(this,Fo));Pe(this,Es,e),Pe(this,zo,n),Pe(this,d0,(a,s,o=qh.now())=>{if(n[a]=s!==0?o:0,e[a]=s,s!==0&&this.ttlAutopurge){const c=setTimeout(()=>{$(this,ys).call(this,a)&&$e(this,rt,Bu).call(this,$(this,cr)[a],"expire")},s+1);c.unref&&c.unref()}}),Pe(this,Af,a=>{n[a]=e[a]!==0?qh.now():0}),Pe(this,Ac,(a,s)=>{if(e[s]){const o=e[s],c=n[s];if(!o||!c)return;a.ttl=o,a.start=c,a.now=r||i();const d=a.now-c;a.remainingTTL=o-d}});let r=0;const i=()=>{const a=qh.now();if(this.ttlResolution>0){r=a;const s=setTimeout(()=>r=0,this.ttlResolution);s.unref&&s.unref()}return a};this.getRemainingTTL=a=>{const s=$(this,Jr).get(a);if(s===void 0)return 0;const o=e[s],c=n[s];if(!o||!c)return 1/0;const d=(r||i())-c;return o-d},Pe(this,ys,a=>{const s=n[a],o=e[a];return!!o&&!!s&&(r||i())-s>o})},Af=new WeakMap,Ac=new WeakMap,d0=new WeakMap,ys=new WeakMap,UW=function(){const e=new xS($(this,Fo));Pe(this,Go,0),Pe(this,$o,e),Pe(this,wf,n=>{Pe(this,Go,$(this,Go)-e[n]),e[n]=0}),Pe(this,f0,(n,r,i,a)=>{if($e(this,rt,lr).call(this,r))return 0;if(!Lu(i))if(a){if(typeof a!="function")throw new TypeError("sizeCalculation must be a function");if(i=a(r,n),!Lu(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),Pe(this,Pp,(n,r,i)=>{if(e[n]=r,$(this,vs)){const a=$(this,vs)-e[n];for(;$(this,Go)>a;)$e(this,rt,CS).call(this,!0)}Pe(this,Go,$(this,Go)+e[n]),i&&(i.entrySize=r,i.totalCalculatedSize=$(this,Go))})},wf=new WeakMap,Pp=new WeakMap,f0=new WeakMap,ku=function*({allowStale:e=this.allowStale}={}){if($(this,hi))for(let n=$(this,Ii);!(!$e(this,rt,tD).call(this,n)||((e||!$(this,ys).call(this,n))&&(yield n),n===$(this,pa)));)n=$(this,Ss)[n]},Pu=function*({allowStale:e=this.allowStale}={}){if($(this,hi))for(let n=$(this,pa);!(!$e(this,rt,tD).call(this,n)||((e||!$(this,ys).call(this,n))&&(yield n),n===$(this,Ii)));)n=$(this,Da)[n]},tD=function(e){return e!==void 0&&$(this,Jr).get($(this,cr)[e])===e},CS=function(e){var a,s;const n=$(this,pa),r=$(this,cr)[n],i=$(this,qt)[n];return $(this,Zu)&&$e(this,rt,lr).call(this,i)?i.__abortController.abort(new Error("evicted")):($(this,Yo)||$(this,Ma))&&($(this,Yo)&&((a=$(this,Uo))==null||a.call(this,i,r,"evict")),$(this,Ma)&&((s=$(this,Di))==null||s.push([i,r,"evict"]))),$(this,wf).call(this,n),e&&($(this,cr)[n]=void 0,$(this,qt)[n]=void 0,$(this,qo).push(n)),$(this,hi)===1?(Pe(this,pa,Pe(this,Ii,0)),$(this,qo).length=0):Pe(this,pa,$(this,Da)[n]),$(this,Jr).delete(r),Qd(this,hi)._--,n},OS=function(e,n,r,i){const a=n===void 0?void 0:$(this,qt)[n];if($e(this,rt,lr).call(this,a))return a;const s=new OE,{signal:o}=r;o==null||o.addEventListener("abort",()=>s.abort(o.reason),{signal:s.signal});const c={signal:s.signal,options:r,context:i},d=(S,y=!1)=>{const{aborted:E}=s.signal,T=r.ignoreFetchAbort&&S!==void 0;if(r.status&&(E&&!y?(r.status.fetchAborted=!0,r.status.fetchError=s.signal.reason,T&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),E&&!T&&!y)return p(s.signal.reason);const x=g;return $(this,qt)[n]===g&&(S===void 0?x.__staleWhileFetching?$(this,qt)[n]=x.__staleWhileFetching:$e(this,rt,Bu).call(this,e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,S,c.options))),S},f=S=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=S),p(S)),p=S=>{const{aborted:y}=s.signal,E=y&&r.allowStaleOnFetchAbort,T=E||r.allowStaleOnFetchRejection,x=T||r.noDeleteOnFetchRejection,O=g;if($(this,qt)[n]===g&&(!x||O.__staleWhileFetching===void 0?$e(this,rt,Bu).call(this,e,"fetch"):E||($(this,qt)[n]=O.__staleWhileFetching)),T)return r.status&&O.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),O.__staleWhileFetching;if(O.__returned===O)throw S},m=(S,y)=>{var T;const E=(T=$(this,Mp))==null?void 0:T.call(this,e,a,c);E&&E instanceof Promise&&E.then(x=>S(x===void 0?void 0:x),y),s.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(S(void 0),r.allowStaleOnFetchAbort&&(S=x=>d(x,!0)))})};r.status&&(r.status.fetchDispatched=!0);const g=new Promise(m).then(d,f),b=Object.assign(g,{__abortController:s,__staleWhileFetching:a,__returned:void 0});return n===void 0?(this.set(e,b,{...c.options,status:void 0}),n=$(this,Jr).get(e)):$(this,qt)[n]=b,b},lr=function(e){if(!$(this,Zu))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof OE},nD=function(e,n){$(this,Ss)[n]=e,$(this,Da)[e]=n},a_=function(e){e!==$(this,Ii)&&(e===$(this,pa)?Pe(this,pa,$(this,Da)[e]):$e(this,rt,nD).call(this,$(this,Ss)[e],$(this,Da)[e]),$e(this,rt,nD).call(this,$(this,Ii),e),Pe(this,Ii,e))},Bu=function(e,n){var i,a,s,o;let r=!1;if($(this,hi)!==0){const c=$(this,Jr).get(e);if(c!==void 0)if(r=!0,$(this,hi)===1)$e(this,rt,rD).call(this,n);else{$(this,wf).call(this,c);const d=$(this,qt)[c];if($e(this,rt,lr).call(this,d)?d.__abortController.abort(new Error("deleted")):($(this,Yo)||$(this,Ma))&&($(this,Yo)&&((i=$(this,Uo))==null||i.call(this,d,e,n)),$(this,Ma)&&((a=$(this,Di))==null||a.push([d,e,n]))),$(this,Jr).delete(e),$(this,cr)[c]=void 0,$(this,qt)[c]=void 0,c===$(this,Ii))Pe(this,Ii,$(this,Ss)[c]);else if(c===$(this,pa))Pe(this,pa,$(this,Da)[c]);else{const f=$(this,Ss)[c];$(this,Da)[f]=$(this,Da)[c];const p=$(this,Da)[c];$(this,Ss)[p]=$(this,Ss)[c]}Qd(this,hi)._--,$(this,qo).push(c)}}if($(this,Ma)&&((s=$(this,Di))!=null&&s.length)){const c=$(this,Di);let d;for(;d=c==null?void 0:c.shift();)(o=$(this,jo))==null||o.call(this,...d)}return r},rD=function(e){var n,r,i;for(const a of $e(this,rt,Pu).call(this,{allowStale:!0})){const s=$(this,qt)[a];if($e(this,rt,lr).call(this,s))s.__abortController.abort(new Error("deleted"));else{const o=$(this,cr)[a];$(this,Yo)&&((n=$(this,Uo))==null||n.call(this,s,o,e)),$(this,Ma)&&((r=$(this,Di))==null||r.push([s,o,e]))}}if($(this,Jr).clear(),$(this,qt).fill(void 0),$(this,cr).fill(void 0),$(this,Es)&&$(this,zo)&&($(this,Es).fill(0),$(this,zo).fill(0)),$(this,$o)&&$(this,$o).fill(0),Pe(this,pa,0),Pe(this,Ii,0),$(this,qo).length=0,Pe(this,Go,0),Pe(this,hi,0),$(this,Ma)&&$(this,Di)){const a=$(this,Di);let s;for(;s=a==null?void 0:a.shift();)(i=$(this,jo))==null||i.call(this,...s)}};let RE=mP;const ISe=400,DSe=422,MSe=503;class LSe{constructor(e){this.lookbackInterval=60*60*1e3*12,this.httpMethod="POST",this.apiPrefix="/api/v1",this.fetchFn=(n,r)=>fetch(n,r),this.requestHeaders=new Headers,this.url=e.url?e.url:"",this.errorHandler=e.httpErrorHandler,e.lookbackInterval&&(this.lookbackInterval=e.lookbackInterval),e.fetchFn&&(this.fetchFn=e.fetchFn),e.httpMethod&&(this.httpMethod=e.httpMethod),e.apiPrefix&&(this.apiPrefix=e.apiPrefix),e.requestHeaders&&(this.requestHeaders=e.requestHeaders)}labelNames(e){const n=new Date,r=new Date(n.getTime()-this.lookbackInterval);if(e===void 0||e===""){const i=this.buildRequest(this.labelsEndpoint(),new URLSearchParams({start:r.toISOString(),end:n.toISOString()}));return this.fetchAPI(i.uri,{method:this.httpMethod,body:i.body}).catch(a=>(this.errorHandler&&this.errorHandler(a),[]))}return this.series(e).then(i=>{const a=new Set;for(const s of i)for(const[o]of Object.entries(s))o!=="__name__"&&a.add(o);return Array.from(a)})}labelValues(e,n,r){const i=new Date,a=new Date(i.getTime()-this.lookbackInterval);if(!n||n.length===0){const s=new URLSearchParams({start:a.toISOString(),end:i.toISOString()});return this.fetchAPI(`${this.labelValuesEndpoint().replace(/:name/gi,e)}?${s}`).catch(o=>(this.errorHandler&&this.errorHandler(o),[]))}return this.series(n,r,e).then(s=>{const o=new Set;for(const c of s)for(const[d,f]of Object.entries(c))d!=="__name__"&&d===e&&o.add(f);return Array.from(o)})}metricMetadata(){return this.fetchAPI(this.metricMetadataEndpoint()).catch(e=>(this.errorHandler&&this.errorHandler(e),{}))}series(e,n,r){const i=new Date,a=new Date(i.getTime()-this.lookbackInterval),s=this.buildRequest(this.seriesEndpoint(),new URLSearchParams({start:a.toISOString(),end:i.toISOString(),"match[]":Lge(e,n,r)}));return this.fetchAPI(s.uri,{method:this.httpMethod,body:s.body}).catch(o=>(this.errorHandler&&this.errorHandler(o),[]))}metricNames(){return this.labelValues("__name__")}flags(){return this.fetchAPI(this.flagsEndpoint()).catch(e=>(this.errorHandler&&this.errorHandler(e),{}))}fetchAPI(e,n){return n?n.headers=this.requestHeaders:n={headers:this.requestHeaders},this.fetchFn(this.url+e,n).then(r=>{if(!r.ok&&![ISe,DSe,MSe].includes(r.status))throw new Error(r.statusText);return r}).then(r=>r.json()).then(r=>{if(r.status==="error")throw new Error(r.error!==void 0?r.error:'missing "error" field in response JSON');if(r.data===void 0)throw new Error('missing "data" field in response JSON');return r.data})}buildRequest(e,n){let r=e,i=n;return this.httpMethod==="GET"&&(r=`${r}?${n}`,i=null),{uri:r,body:i}}labelsEndpoint(){return`${this.apiPrefix}/labels`}labelValuesEndpoint(){return`${this.apiPrefix}/label/:name/values`}seriesEndpoint(){return`${this.apiPrefix}/series`}metricMetadataEndpoint(){return`${this.apiPrefix}/metadata`}flagsEndpoint(){return`${this.apiPrefix}/status/flags`}}class kSe{constructor(e){const n={ttl:e&&e.maxAge?e.maxAge:3e5,ttlAutopurge:!0};this.completeAssociation=new RE(n),this.metricMetadata={},this.labelValues=new RE(n),this.labelNames=[],this.flags={},e!=null&&e.initialMetricList&&this.setLabelValues("__name__",e.initialMetricList)}setAssociations(e,n){n.forEach(r=>{let i=this.completeAssociation.get(e);i||(i=new Map,this.completeAssociation.set(e,i));for(const[a,s]of Object.entries(r)){if(a==="__name__")continue;const o=i.get(a);o===void 0?i.set(a,new Set([s])):o.add(s)}})}setFlags(e){this.flags=e}getFlags(){return this.flags}setMetricMetadata(e){this.metricMetadata=e}getMetricMetadata(){return this.metricMetadata}setLabelNames(e){this.labelNames=e}getLabelNames(e){if(!e||e.length===0)return this.labelNames;const n=this.completeAssociation.get(e);return n?Array.from(n.keys()):[]}setLabelValues(e,n){this.labelValues.set(e,n)}getLabelValues(e,n){if(!n||n.length===0){const i=this.labelValues.get(e);return i||[]}const r=this.completeAssociation.get(n);if(r){const i=r.get(e);return i?Array.from(i):[]}return[]}}class PSe{constructor(e,n){this.client=e,this.cache=new kSe(n)}labelNames(e){const n=this.cache.getLabelNames(e);return n&&n.length>0?Promise.resolve(n):e===void 0||e===""?this.client.labelNames().then(r=>(this.cache.setLabelNames(r),r)):this.series(e).then(()=>this.cache.getLabelNames(e))}labelValues(e,n){const r=this.cache.getLabelValues(e,n);return r&&r.length>0?Promise.resolve(r):n===void 0||n===""?this.client.labelValues(e).then(i=>(this.cache.setLabelValues(e,i),i)):this.series(n).then(()=>this.cache.getLabelValues(e,n))}metricMetadata(){const e=this.cache.getMetricMetadata();return e&&Object.keys(e).length>0?Promise.resolve(e):this.client.metricMetadata().then(n=>(this.cache.setMetricMetadata(n),n))}series(e){return this.client.series(e).then(n=>(this.cache.setAssociations(e,n),n))}metricNames(){return this.labelValues("__name__")}flags(){const e=this.cache.getFlags();return e&&Object.keys(e).length>0?Promise.resolve(e):this.client.flags().then(n=>(this.cache.setFlags(n),n))}}function BSe(t){const e=t;return typeof e.labelNames=="function"&&typeof e.labelValues=="function"&&typeof e.metricMetadata=="function"&&typeof e.series=="function"&&typeof e.metricNames=="function"}function iD(t){return t!=null&&t.completeStrategy?t.completeStrategy:t!=null&&t.remote?BSe(t.remote)?new PO(t.remote,t.maxMetricsMetadata):new PO(new PSe(new LSe(t.remote),t.remote.cache),t.maxMetricsMetadata):new PO}function sr(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i=="string"?t.setAttribute(r,i):i!=null&&(t[r]=i)}e++}for(;e<arguments.length;e++)jW(t,arguments[e]);return t}function jW(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var n=0;n<e.length;n++)jW(t,e[n]);else throw new RangeError("Unsupported child node: "+e)}class Yj{constructor(e,n,r){this.from=e,this.to=n,this.diagnostic=r}}class df{constructor(e,n,r){this.diagnostics=e,this.panel=n,this.selected=r}static init(e,n,r){let i=r.facet(Fl).markerFilter;i&&(e=i(e,r));let a=e.slice().sort((f,p)=>f.from-p.from||f.to-p.to),s=new Yc,o=[],c=0;for(let f=0;;){let p=f==a.length?null:a[f];if(!p&&!o.length)break;let m,g;for(o.length?(m=c,g=o.reduce((S,y)=>Math.min(S,y.to),p&&p.from>m?p.from:1e8)):(m=p.from,g=p.to,o.push(p),f++);f<a.length;){let S=a[f];if(S.from==m&&(S.to>S.from||S.to==m))o.push(S),f++,g=Math.min(S.to,g);else{g=Math.min(S.from,g);break}}let b=ZSe(o);if(o.some(S=>S.from==S.to||S.from==S.to-1&&r.doc.lineAt(S.from).to==S.from))s.add(m,m,Rt.widget({widget:new WSe(b),diagnostics:o.slice()}));else{let S=o.reduce((y,E)=>E.markClass?y+" "+E.markClass:y,"");s.add(m,g,Rt.mark({class:"cm-lintRange cm-lintRange-"+b+S,diagnostics:o.slice(),inclusiveEnd:o.some(y=>y.to>g)}))}c=g;for(let S=0;S<o.length;S++)o[S].to<=c&&o.splice(S--,1)}let d=s.finish();return new df(d,n,Zp(d))}}function Zp(t,e=null,n=0){let r=null;return t.between(n,1e9,(i,a,{spec:s})=>{if(!(e&&s.diagnostics.indexOf(e)<0))if(!r)r=new Yj(i,a,e||s.diagnostics[0]);else{if(s.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new Yj(r.from,a,r.diagnostic)}}),r}function FSe(t,e){let n=e.pos,r=e.end||n,i=t.state.facet(Fl).hideOn(t,n,r);if(i!=null)return i;let a=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(s=>s.is(Ak))||t.changes.touchesRange(a.from,Math.max(a.to,r)))}function GW(t,e){return t.field(Os,!1)?e:e.concat(jt.appendConfig.of(HW))}function USe(t,e){return{effects:GW(t,[Ak.of(e)])}}const Ak=jt.define(),wk=jt.define(),qW=jt.define(),Os=Ui.define({create(){return new df(Rt.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),r=null,i=t.panel;if(t.selected){let a=e.changes.mapPos(t.selected.from,1);r=Zp(n,t.selected.diagnostic,a)||Zp(n,null,a)}!n.size&&i&&e.state.facet(Fl).autoPanel&&(i=null),t=new df(n,i,r)}for(let n of e.effects)if(n.is(Ak)){let r=e.state.facet(Fl).autoPanel?n.value.length?r0.open:null:t.panel;t=df.init(n.value,r,e.state)}else n.is(wk)?t=new df(t.diagnostics,n.value?r0.open:null,t.selected):n.is(qW)&&(t=new df(t.diagnostics,t.panel,n.value));return t},provide:t=>[Z_.from(t,e=>e.panel),tt.decorations.from(t,e=>e.diagnostics)]}),jSe=Rt.mark({class:"cm-lintRange cm-lintRange-active"});function GSe(t,e,n){let{diagnostics:r}=t.state.field(Os),i,a=-1,s=-1;r.between(e-(n<0?1:0),e+(n>0?1:0),(c,d,{spec:f})=>{if(e>=c&&e<=d&&(c==d||(e>c||n>0)&&(e<d||n<0)))return i=f.diagnostics,a=c,s=d,!1});let o=t.state.facet(Fl).tooltipFilter;return i&&o&&(i=o(i,t.state)),i?{pos:a,end:s,above:t.state.doc.lineAt(a).to<s,create(){return{dom:qSe(t,i)}}}:null}function qSe(t,e){return sr("ul",{class:"cm-tooltip-lint"},e.map(n=>YW(t,n,!1)))}const $Se=t=>{let e=t.state.field(Os,!1);(!e||!e.panel)&&t.dispatch({effects:GW(t.state,[wk.of(!0)])});let n=X_(t,r0.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},Hj=t=>{let e=t.state.field(Os,!1);return!e||!e.panel?!1:(t.dispatch({effects:wk.of(!1)}),!0)},zSe=t=>{let e=t.state.field(Os,!1);if(!e)return!1;let n=t.state.selection.main,r=e.diagnostics.iter(n.to+1);return!r.value&&(r=e.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},$W=[{key:"Mod-Shift-m",run:$Se,preventDefault:!0},{key:"F8",run:zSe}],YSe=Br.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet(Fl);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){clearTimeout(this.timeout);let t=Date.now();if(t<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-t);else{this.set=!1;let{state:e}=this.view,{sources:n}=e.facet(Fl);n.length&&HSe(n.map(r=>Promise.resolve(r(this.view))),r=>{this.view.state.doc==e.doc&&this.view.dispatch(USe(this.view.state,r.reduce((i,a)=>i.concat(a))))},r=>{Pa(this.view.state,r)})}}update(t){let e=t.state.facet(Fl);(t.docChanged||e!=t.startState.facet(Fl)||e.needsRefresh&&e.needsRefresh(t))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}});function HSe(t,e,n){let r=[],i=-1;for(let a of t)a.then(s=>{r.push(s),clearTimeout(i),r.length==t.length?e(r):i=setTimeout(()=>e(r),200)},n)}const Fl=ut.define({combine(t){return Object.assign({sources:t.map(e=>e.source).filter(e=>e!=null)},Zl(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,n)=>e?n?r=>e(r)||n(r):e:n}))}});function VSe(t,e={}){return[Fl.of({source:t,config:e}),YSe,HW]}function zW(t){let e=[];if(t)e:for(let{name:n}of t){for(let r=0;r<n.length;r++){let i=n[r];if(/[a-zA-Z]/.test(i)&&!e.some(a=>a.toLowerCase()==i.toLowerCase())){e.push(i);continue e}}e.push("")}return e}function YW(t,e,n){var r;let i=n?zW(e.actions):[];return sr("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},sr("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(r=e.actions)===null||r===void 0?void 0:r.map((a,s)=>{let o=!1,c=m=>{if(m.preventDefault(),o)return;o=!0;let g=Zp(t.state.field(Os).diagnostics,e);g&&a.apply(t,g.from,g.to)},{name:d}=a,f=i[s]?d.indexOf(i[s]):-1,p=f<0?d:[d.slice(0,f),sr("u",d.slice(f,f+1)),d.slice(f+1)];return sr("button",{type:"button",class:"cm-diagnosticAction",onclick:c,onmousedown:c,"aria-label":` Action: ${d}${f<0?"":` (access key "${i[s]})"`}.`},p)}),e.source&&sr("div",{class:"cm-diagnosticSource"},e.source))}class WSe extends Jl{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return sr("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Vj{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=YW(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class r0{constructor(e){this.view=e,this.items=[];let n=i=>{if(i.keyCode==27)Hj(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:a}=this.items[this.selectedIndex],s=zW(a.actions);for(let o=0;o<s.length;o++)if(s[o].toUpperCase().charCodeAt(0)==i.keyCode){let c=Zp(this.view.state.field(Os).diagnostics,a);c&&a.actions[o].apply(e,c.from,c.to)}}else return;i.preventDefault()},r=i=>{for(let a=0;a<this.items.length;a++)this.items[a].dom.contains(i.target)&&this.moveSelection(a)};this.list=sr("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:r}),this.dom=sr("div",{class:"cm-panel-lint"},this.list,sr("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Hj(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Os).selected;if(!e)return-1;for(let n=0;n<this.items.length;n++)if(this.items[n].diagnostic==e.diagnostic)return n;return-1}update(){let{diagnostics:e,selected:n}=this.view.state.field(Os),r=0,i=!1,a=null,s=new Set;for(e.between(0,this.view.state.doc.length,(o,c,{spec:d})=>{for(let f of d.diagnostics){if(s.has(f))continue;s.add(f);let p=-1,m;for(let g=r;g<this.items.length;g++)if(this.items[g].diagnostic==f){p=g;break}p<0?(m=new Vj(this.view,f),this.items.splice(r,0,m),i=!0):(m=this.items[p],p>r&&(this.items.splice(r,p-r),i=!0)),n&&m.diagnostic==n.diagnostic?m.dom.hasAttribute("aria-selected")||(m.dom.setAttribute("aria-selected","true"),a=m):m.dom.hasAttribute("aria-selected")&&m.dom.removeAttribute("aria-selected"),r++}});r<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)i=!0,this.items.pop();this.items.length==0&&(this.items.push(new Vj(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),a?(this.list.setAttribute("aria-activedescendant",a.id),this.view.requestMeasure({key:this,read:()=>({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:o,panel:c})=>{let d=c.height/this.list.offsetHeight;o.top<c.top?this.list.scrollTop-=(c.top-o.top)/d:o.bottom>c.bottom&&(this.list.scrollTop+=(o.bottom-c.bottom)/d)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function n(){let r=e;e=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;e!=r.dom;)n();e=r.dom.nextSibling}else this.list.insertBefore(r.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(Os),r=Zp(n.diagnostics,this.items[e].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:qW.of(r)})}static open(e){return new r0(e)}}function QSe(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function Mv(t){return QSe(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const KSe=tt.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Mv("#d11")},".cm-lintRange-warning":{backgroundImage:Mv("orange")},".cm-lintRange-info":{backgroundImage:Mv("#999")},".cm-lintRange-hint":{backgroundImage:Mv("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function XSe(t){return t=="error"?4:t=="warning"?3:t=="info"?2:1}function ZSe(t){let e="hint",n=1;for(let r of t){let i=XSe(r.severity);i>n&&(n=i,e=r.severity)}return e}const HW=[Os,tt.decorations.compute([Os],t=>{let{selected:e,panel:n}=t.field(Os);return!e||!n||e.from==e.to?Rt.none:Rt.set([jSe.range(e.from,e.to)])}),vbe(GSe,{hideOn:FSe}),KSe];class JSe{promQL(){return e=>{const n=new Cve(e.state);return n.analyze(),n.getDiagnostics()}}}function eEe(){return new JSe}function tEe(t,e){return VSe(t.call(e))}var aD;(function(t){t.PromQL="PromQL",t.MetricName="MetricName"})(aD||(aD={}));function nEe(t){return vE.define({parser:Qpe.configure({top:t}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}})}class VW{constructor(){this.complete=iD(),this.lint=eEe(),this.enableLinter=!0,this.enableCompletion=!0}setComplete(e){return this.complete=iD(e),this}getComplete(){return this.complete}activateCompletion(e){return this.enableCompletion=e,this}setLinter(e){return this.lint=e,this}getLinter(){return this.lint}activateLinter(e){return this.enableLinter=e,this}asExtension(e=aD.PromQL){const n=nEe(e);let r=[n];if(this.enableCompletion){const i=n.data.of({autocomplete:a=>this.complete.promQL(a)});r=r.concat(i)}return this.enableLinter&&(r=r.concat(tEe(this.lint.promQL,this.lint))),r}}const rEe=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=Dk(t.state,n.from);return r.line?iEe(t):r.block?sEe(t):!1};function Ik(t,e){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=t(e,n);return i?(r(n.update(i)),!0):!1}}const iEe=Ik(cEe,0),aEe=Ik(WW,0),sEe=Ik((t,e)=>WW(t,e,lEe(e)),0);function Dk(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const Gg=50;function oEe(t,{open:e,close:n},r,i){let a=t.sliceDoc(r-Gg,r),s=t.sliceDoc(i,i+Gg),o=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(s)[0].length,d=a.length-o;if(a.slice(d-e.length,d)==e&&s.slice(c,c+n.length)==n)return{open:{pos:r-o,margin:o&&1},close:{pos:i+c,margin:c&&1}};let f,p;i-r<=2*Gg?f=p=t.sliceDoc(r,i):(f=t.sliceDoc(r,r+Gg),p=t.sliceDoc(i-Gg,i));let m=/^\s*/.exec(f)[0].length,g=/\s*$/.exec(p)[0].length,b=p.length-g-n.length;return f.slice(m,m+e.length)==e&&p.slice(b,b+n.length)==n?{open:{pos:r+m+e.length,margin:/\s/.test(f.charAt(m+e.length))?1:0},close:{pos:i-g-n.length,margin:/\s/.test(p.charAt(b-1))?1:0}}:null}function lEe(t){let e=[];for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),i=n.to<=r.to?r:t.doc.lineAt(n.to),a=e.length-1;a>=0&&e[a].to>r.from?e[a].to=i.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return e}function WW(t,e,n=e.selection.ranges){let r=n.map(a=>Dk(e,a.from).block);if(!r.every(a=>a))return null;let i=n.map((a,s)=>oEe(e,r[s],a.from,a.to));if(t!=2&&!i.every(a=>a))return{changes:e.changes(n.map((a,s)=>i[s]?[]:[{from:a.from,insert:r[s].open+" "},{from:a.to,insert:" "+r[s].close}]))};if(t!=1&&i.some(a=>a)){let a=[];for(let s=0,o;s<i.length;s++)if(o=i[s]){let c=r[s],{open:d,close:f}=o;a.push({from:d.pos-c.open.length,to:d.pos+d.margin},{from:f.pos-f.margin,to:f.pos+c.close.length})}return{changes:a}}return null}function cEe(t,e,n=e.selection.ranges){let r=[],i=-1;for(let{from:a,to:s}of n){let o=r.length,c=1e9,d=Dk(e,a).line;if(d){for(let f=a;f<=s;){let p=e.doc.lineAt(f);if(p.from>i&&(a==s||s>p.from)){i=p.from;let m=/^\s*/.exec(p.text)[0].length,g=m==p.length,b=p.text.slice(m,m+d.length)==d?m:-1;m<p.text.length&&m<c&&(c=m),r.push({line:p,comment:b,token:d,indent:m,empty:g,single:!1})}f=p.to+1}if(c<1e9)for(let f=o;f<r.length;f++)r[f].indent<r[f].line.text.length&&(r[f].indent=c);r.length==o+1&&(r[o].single=!0)}}if(t!=2&&r.some(a=>a.comment<0&&(!a.empty||a.single))){let a=[];for(let{line:o,token:c,indent:d,empty:f,single:p}of r)(p||!f)&&a.push({from:o.from+d,insert:c+" "});let s=e.changes(a);return{changes:s,selection:e.selection.map(s,1)}}else if(t!=1&&r.some(a=>a.comment>=0)){let a=[];for(let{line:s,comment:o,token:c}of r)if(o>=0){let d=s.from+o,f=d+c.length;s.text[f-s.from]==" "&&f++,a.push({from:d,to:f})}return{changes:a}}return null}const sD=Xl.define(),uEe=Xl.define(),dEe=ut.define(),QW=ut.define({combine(t){return Zl(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(r,i)=>e(r,i)||n(r,i)})}}),KW=Ui.define({create(){return Ul.empty},update(t,e){let n=e.state.facet(QW),r=e.annotation(sD);if(r){let c=es.fromTransaction(e,r.selection),d=r.side,f=d==0?t.undone:t.done;return c?f=NE(f,f.length,n.minDepth,c):f=eQ(f,e.startState.selection),new Ul(d==0?r.rest:f,d==0?f:r.rest)}let i=e.annotation(uEe);if((i=="full"||i=="before")&&(t=t.isolate()),e.annotation(ii.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let a=es.fromTransaction(e),s=e.annotation(ii.time),o=e.annotation(ii.userEvent);return a?t=t.addChanges(a,s,o,n,e):e.selection&&(t=t.addSelection(e.startState.selection,s,o,n.newGroupDelay)),(i=="full"||i=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new Ul(t.done.map(es.fromJSON),t.undone.map(es.fromJSON))}});function XW(t={}){return[KW,QW.of(t),tt.domEventHandlers({beforeinput(e,n){let r=e.inputType=="historyUndo"?ZW:e.inputType=="historyRedo"?oD:null;return r?(e.preventDefault(),r(n)):!1}})]}function pT(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return!1;let i=n.field(KW,!1);if(!i)return!1;let a=i.pop(t,n,e);return a?(r(a),!0):!1}}const ZW=pT(0,!1),oD=pT(1,!1),fEe=pT(0,!0),hEe=pT(1,!0);class es{constructor(e,n,r,i,a){this.changes=e,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=a}setSelAfter(e){return new es(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,r;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new es(e.changes&&_i.fromJSON(e.changes),[],e.mapped&&ql.fromJSON(e.mapped),e.startSelection&&Fe.fromJSON(e.startSelection),e.selectionsAfter.map(Fe.fromJSON))}static fromTransaction(e,n){let r=eo;for(let i of e.startState.facet(dEe)){let a=i(e);a.length&&(r=r.concat(a))}return!r.length&&e.changes.empty?null:new es(e.changes.invert(e.startState.doc),r,void 0,n||e.startState.selection,eo)}static selection(e){return new es(void 0,eo,void 0,void 0,e)}}function NE(t,e,n,r){let i=e+1>n+20?e-n-1:0,a=t.slice(i,e);return a.push(r),a}function pEe(t,e){let n=[],r=!1;return t.iterChangedRanges((i,a)=>n.push(i,a)),e.iterChangedRanges((i,a,s,o)=>{for(let c=0;c<n.length;){let d=n[c++],f=n[c++];o>=d&&s<=f&&(r=!0)}}),r}function mEe(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,r)=>n.empty!=e.ranges[r].empty).length===0}function JW(t,e){return t.length?e.length?t.concat(e):t:e}const eo=[],gEe=200;function eQ(t,e){if(t.length){let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-gEe));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),NE(t,t.length-1,1e9,n.setSelAfter(r)))}else return[es.selection([e])]}function _Ee(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function BO(t,e){if(!t.length)return t;let n=t.length,r=eo;for(;n;){let i=bEe(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){let a=t.slice(0,n);return a[n-1]=i,a}else e=i.mapped,n--,r=i.selectionsAfter}return r.length?[es.selection(r)]:eo}function bEe(t,e,n){let r=JW(t.selectionsAfter.length?t.selectionsAfter.map(o=>o.map(e)):eo,n);if(!t.changes)return es.selection(r);let i=t.changes.map(e),a=e.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(a):a;return new es(i,jt.mapEffects(t.effects,e),s,t.startSelection.map(a),r)}const vEe=/^(input\.type|delete)($|\.)/;class Ul{constructor(e,n,r=0,i=void 0){this.done=e,this.undone=n,this.prevTime=r,this.prevUserEvent=i}isolate(){return this.prevTime?new Ul(this.done,this.undone):this}addChanges(e,n,r,i,a){let s=this.done,o=s[s.length-1];return o&&o.changes&&!o.changes.empty&&e.changes&&(!r||vEe.test(r))&&(!o.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(a,pEe(o.changes,e.changes))||r=="input.type.compose")?s=NE(s,s.length-1,i.minDepth,new es(e.changes.compose(o.changes),JW(jt.mapEffects(e.effects,o.changes),o.effects),o.mapped,o.startSelection,eo)):s=NE(s,s.length,i.minDepth,e),new Ul(s,eo,n,r)}addSelection(e,n,r,i){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:eo;return a.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&mEe(a[a.length-1],e)?this:new Ul(eQ(this.done,e),this.undone,n,r)}addMapping(e){return new Ul(BO(this.done,e),BO(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,n,r){let i=e==0?this.done:this.undone;if(i.length==0)return null;let a=i[i.length-1],s=a.selectionsAfter[0]||n.selection;if(r&&a.selectionsAfter.length)return n.update({selection:a.selectionsAfter[a.selectionsAfter.length-1],annotations:sD.of({side:e,rest:_Ee(i),selection:s}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(a.changes){let o=i.length==1?eo:i.slice(0,i.length-1);return a.mapped&&(o=BO(o,a.mapped)),n.update({changes:a.changes,selection:a.startSelection,effects:a.effects,annotations:sD.of({side:e,rest:o,selection:s}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}Ul.empty=new Ul(eo,eo);const tQ=[{key:"Mod-z",run:ZW,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:oD,preventDefault:!0},{linux:"Ctrl-Shift-z",run:oD,preventDefault:!0},{key:"Mod-u",run:fEe,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:hEe,preventDefault:!0}];function Cm(t,e){return Fe.create(t.ranges.map(e),t.mainIndex)}function ec(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function ol({state:t,dispatch:e},n){let r=Cm(t.selection,n);return r.eq(t.selection,!0)?!1:(e(ec(t,r)),!0)}function mT(t,e){return Fe.cursor(e?t.to:t.from)}function nQ(t,e){return ol(t,n=>n.empty?t.moveByChar(n,e):mT(n,e))}function Ea(t){return t.textDirectionAt(t.state.selection.main.head)==gr.LTR}const rQ=t=>nQ(t,!Ea(t)),iQ=t=>nQ(t,Ea(t));function aQ(t,e){return ol(t,n=>n.empty?t.moveByGroup(n,e):mT(n,e))}const SEe=t=>aQ(t,!Ea(t)),EEe=t=>aQ(t,Ea(t));function yEe(t,e,n){if(e.type.prop(n))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function gT(t,e,n){let r=Ei(t).resolveInner(e.head),i=n?rn.closedBy:rn.openedBy;for(let c=e.head;;){let d=n?r.childAfter(c):r.childBefore(c);if(!d)break;yEe(t,d,i)?r=d:c=n?d.to:d.from}let a=r.type.prop(i),s,o;return a&&(s=n?Bl(t,r.from,1):Bl(t,r.to,-1))&&s.matched?o=n?s.end.to:s.end.from:o=n?r.to:r.from,Fe.cursor(o,n?-1:1)}const TEe=t=>ol(t,e=>gT(t.state,e,!Ea(t))),xEe=t=>ol(t,e=>gT(t.state,e,Ea(t)));function sQ(t,e){return ol(t,n=>{if(!n.empty)return mT(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)})}const oQ=t=>sQ(t,!1),lQ=t=>sQ(t,!0);function cQ(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,r=0,i;if(e){for(let a of t.state.facet(tt.scrollMargins)){let s=a(t);s!=null&&s.top&&(n=Math.max(s==null?void 0:s.top,n)),s!=null&&s.bottom&&(r=Math.max(s==null?void 0:s.bottom,r))}i=t.scrollDOM.clientHeight-n-r}else i=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:e,height:Math.max(t.defaultLineHeight,i-5)}}function uQ(t,e){let n=cQ(t),{state:r}=t,i=Cm(r.selection,s=>s.empty?t.moveVertically(s,e,n.height):mT(s,e));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let s=t.coordsAtPos(r.selection.main.head),o=t.scrollDOM.getBoundingClientRect(),c=o.top+n.marginTop,d=o.bottom-n.marginBottom;s&&s.top>c&&s.bottom<d&&(a=tt.scrollIntoView(i.main.head,{y:"start",yMargin:s.top-c}))}return t.dispatch(ec(r,i),{effects:a}),!0}const Wj=t=>uQ(t,!1),lD=t=>uQ(t,!0);function Nd(t,e,n){let r=t.lineBlockAt(e.head),i=t.moveToLineBoundary(e,n);if(i.head==e.head&&i.head!=(n?r.to:r.from)&&(i=t.moveToLineBoundary(e,n,!1)),!n&&i.head==r.from&&r.length){let a=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;a&&e.head!=r.from+a&&(i=Fe.cursor(r.from+a))}return i}const CEe=t=>ol(t,e=>Nd(t,e,!0)),OEe=t=>ol(t,e=>Nd(t,e,!1)),REe=t=>ol(t,e=>Nd(t,e,!Ea(t))),NEe=t=>ol(t,e=>Nd(t,e,Ea(t))),AEe=t=>ol(t,e=>Fe.cursor(t.lineBlockAt(e.head).from,1)),wEe=t=>ol(t,e=>Fe.cursor(t.lineBlockAt(e.head).to,-1));function IEe(t,e,n){let r=!1,i=Cm(t.selection,a=>{let s=Bl(t,a.head,-1)||Bl(t,a.head,1)||a.head>0&&Bl(t,a.head-1,1)||a.head<t.doc.length&&Bl(t,a.head+1,-1);if(!s||!s.end)return a;r=!0;let o=s.start.from==a.head?s.end.to:s.end.from;return Fe.cursor(o)});return r?(e(ec(t,i)),!0):!1}const DEe=({state:t,dispatch:e})=>IEe(t,e);function mo(t,e){let n=Cm(t.state.selection,r=>{let i=e(r);return Fe.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(t.state.selection)?!1:(t.dispatch(ec(t.state,n)),!0)}function dQ(t,e){return mo(t,n=>t.moveByChar(n,e))}const fQ=t=>dQ(t,!Ea(t)),hQ=t=>dQ(t,Ea(t));function pQ(t,e){return mo(t,n=>t.moveByGroup(n,e))}const MEe=t=>pQ(t,!Ea(t)),LEe=t=>pQ(t,Ea(t)),kEe=t=>mo(t,e=>gT(t.state,e,!Ea(t))),PEe=t=>mo(t,e=>gT(t.state,e,Ea(t)));function mQ(t,e){return mo(t,n=>t.moveVertically(n,e))}const gQ=t=>mQ(t,!1),_Q=t=>mQ(t,!0);function bQ(t,e){return mo(t,n=>t.moveVertically(n,e,cQ(t).height))}const Qj=t=>bQ(t,!1),Kj=t=>bQ(t,!0),BEe=t=>mo(t,e=>Nd(t,e,!0)),FEe=t=>mo(t,e=>Nd(t,e,!1)),UEe=t=>mo(t,e=>Nd(t,e,!Ea(t))),jEe=t=>mo(t,e=>Nd(t,e,Ea(t))),GEe=t=>mo(t,e=>Fe.cursor(t.lineBlockAt(e.head).from)),qEe=t=>mo(t,e=>Fe.cursor(t.lineBlockAt(e.head).to)),Xj=({state:t,dispatch:e})=>(e(ec(t,{anchor:0})),!0),Zj=({state:t,dispatch:e})=>(e(ec(t,{anchor:t.doc.length})),!0),Jj=({state:t,dispatch:e})=>(e(ec(t,{anchor:t.selection.main.anchor,head:0})),!0),e6=({state:t,dispatch:e})=>(e(ec(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),$Ee=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),zEe=({state:t,dispatch:e})=>{let n=_T(t).map(({from:r,to:i})=>Fe.range(r,Math.min(i+1,t.doc.length)));return e(t.update({selection:Fe.create(n),userEvent:"select"})),!0},YEe=({state:t,dispatch:e})=>{let n=Cm(t.selection,r=>{var i;let a=Ei(t).resolveStack(r.from,1);for(let s=a;s;s=s.next){let{node:o}=s;if((o.from<r.from&&o.to>=r.to||o.to>r.to&&o.from<=r.from)&&(!((i=o.parent)===null||i===void 0)&&i.parent))return Fe.range(o.to,o.from)}return r});return e(ec(t,n)),!0},HEe=({state:t,dispatch:e})=>{let n=t.selection,r=null;return n.ranges.length>1?r=Fe.create([n.main]):n.main.empty||(r=Fe.create([Fe.cursor(n.main.head)])),r?(e(ec(t,r)),!0):!1};function j0(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:r}=t,i=r.changeByRange(a=>{let{from:s,to:o}=a;if(s==o){let c=e(a);c<s?(n="delete.backward",c=Lv(t,c,!1)):c>s&&(n="delete.forward",c=Lv(t,c,!0)),s=Math.min(s,c),o=Math.max(o,c)}else s=Lv(t,s,!1),o=Lv(t,o,!0);return s==o?{range:a}:{changes:{from:s,to:o},range:Fe.cursor(s,s<a.head?-1:1)}});return i.changes.empty?!1:(t.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?tt.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function Lv(t,e,n){if(t instanceof tt)for(let r of t.state.facet(tt.atomicRanges).map(i=>i(t)))r.between(e,e,(i,a)=>{i<e&&a>e&&(e=n?a:i)});return e}const vQ=(t,e,n)=>j0(t,r=>{let i=r.from,{state:a}=t,s=a.doc.lineAt(i),o,c;if(n&&!e&&i>s.from&&i<s.from+200&&!/[^ \t]/.test(o=s.text.slice(0,i-s.from))){if(o[o.length-1]=="	")return i-1;let d=Tm(o,a.tabSize),f=d%EE(a)||EE(a);for(let p=0;p<f&&o[o.length-1-p]==" ";p++)i--;c=i}else c=ea(s.text,i-s.from,e,e)+s.from,c==i&&s.number!=(e?a.doc.lines:1)?c+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(s.text.slice(c-s.from,i-s.from))&&(c=ea(s.text,c-s.from,!1,!1)+s.from);return c}),cD=t=>vQ(t,!1,!0),SQ=t=>vQ(t,!0,!1),EQ=(t,e)=>j0(t,n=>{let r=n.head,{state:i}=t,a=i.doc.lineAt(r),s=i.charCategorizer(r);for(let o=null;;){if(r==(e?a.to:a.from)){r==n.head&&a.number!=(e?i.doc.lines:1)&&(r+=e?1:-1);break}let c=ea(a.text,r-a.from,e)+a.from,d=a.text.slice(Math.min(r,c)-a.from,Math.max(r,c)-a.from),f=s(d);if(o!=null&&f!=o)break;(d!=" "||r!=n.head)&&(o=f),r=c}return r}),yQ=t=>EQ(t,!1),VEe=t=>EQ(t,!0),WEe=t=>j0(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),QEe=t=>j0(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),KEe=t=>j0(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),XEe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:mn.of(["",""])},range:Fe.cursor(r.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},ZEe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>{if(!r.empty||r.from==0||r.from==t.doc.length)return{range:r};let i=r.from,a=t.doc.lineAt(i),s=i==a.from?i-1:ea(a.text,i-a.from,!1)+a.from,o=i==a.to?i+1:ea(a.text,i-a.from,!0)+a.from;return{changes:{from:s,to:o,insert:t.doc.slice(i,o).append(t.doc.slice(s,i))},range:Fe.cursor(o)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function _T(t){let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.from),a=t.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=t.doc.lineAt(r.to-1)),n>=i.number){let s=e[e.length-1];s.to=a.to,s.ranges.push(r)}else e.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return e}function TQ(t,e,n){if(t.readOnly)return!1;let r=[],i=[];for(let a of _T(t)){if(n?a.to==t.doc.length:a.from==0)continue;let s=t.doc.lineAt(n?a.to+1:a.from-1),o=s.length+1;if(n){r.push({from:a.to,to:s.to},{from:a.from,insert:s.text+t.lineBreak});for(let c of a.ranges)i.push(Fe.range(Math.min(t.doc.length,c.anchor+o),Math.min(t.doc.length,c.head+o)))}else{r.push({from:s.from,to:a.from},{from:a.to,insert:t.lineBreak+s.text});for(let c of a.ranges)i.push(Fe.range(c.anchor-o,c.head-o))}}return r.length?(e(t.update({changes:r,scrollIntoView:!0,selection:Fe.create(i,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const JEe=({state:t,dispatch:e})=>TQ(t,e,!1),eye=({state:t,dispatch:e})=>TQ(t,e,!0);function xQ(t,e,n){if(t.readOnly)return!1;let r=[];for(let i of _T(t))n?r.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):r.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});return e(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const tye=({state:t,dispatch:e})=>xQ(t,e,!1),nye=({state:t,dispatch:e})=>xQ(t,e,!0),rye=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(_T(e).map(({from:i,to:a})=>(i>0?i--:a<e.doc.length&&a++,{from:i,to:a}))),r=Cm(e.selection,i=>{let a;if(t.lineWrapping){let s=t.lineBlockAt(i.head),o=t.coordsAtPos(i.head,i.assoc||1);o&&(a=s.bottom+t.documentTop-o.bottom+t.defaultLineHeight/2)}return t.moveVertically(i,!0,a)}).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function iye(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=Ei(t).resolveInner(e),r=n.childBefore(e),i=n.childAfter(e),a;return r&&i&&r.to<=e&&i.from>=e&&(a=r.type.prop(rn.closedBy))&&a.indexOf(i.name)>-1&&t.doc.lineAt(r.to).from==t.doc.lineAt(i.from).from&&!/\S/.test(t.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const CQ=OQ(!1),aye=OQ(!0);function OQ(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let r=e.changeByRange(i=>{let{from:a,to:s}=i,o=e.doc.lineAt(a),c=!t&&a==s&&iye(e,a);t&&(a=s=(s<=o.to?o:e.doc.lineAt(s)).to);let d=new uT(e,{simulateBreak:a,simulateDoubleBreak:!!c}),f=vk(d,a);for(f==null&&(f=Tm(/^\s*/.exec(e.doc.lineAt(a).text)[0],e.tabSize));s<o.to&&/\s/.test(o.text[s-o.from]);)s++;c?{from:a,to:s}=c:a>o.from&&a<o.from+100&&!/\S/.test(o.text.slice(0,a))&&(a=o.from);let p=["",J_(e,f)];return c&&p.push(J_(e,d.lineIndent(o.from,-1))),{changes:{from:a,to:s,insert:mn.of(p)},range:Fe.cursor(a+1+p[1].length)}});return n(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function Mk(t,e){let n=-1;return t.changeByRange(r=>{let i=[];for(let s=r.from;s<=r.to;){let o=t.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(e(o,i,r),n=o.number),s=o.to+1}let a=t.changes(i);return{changes:i,range:Fe.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}const sye=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),r=new uT(t,{overrideIndentation:a=>{let s=n[a];return s??-1}}),i=Mk(t,(a,s,o)=>{let c=vk(r,a.from);if(c==null)return;/\S/.test(a.text)||(c=0);let d=/^\s*/.exec(a.text)[0],f=J_(t,c);(d!=f||o.from<a.from+d.length)&&(n[a.from]=c,s.push({from:a.from,to:a.from+d.length,insert:f}))});return i.changes.empty||e(t.update(i,{userEvent:"indent"})),!0},RQ=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Mk(t,(n,r)=>{r.push({from:n.from,insert:t.facet(B0)})}),{userEvent:"input.indent"})),!0),NQ=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Mk(t,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let a=Tm(i,t.tabSize),s=0,o=J_(t,Math.max(0,a-EE(t)));for(;s<i.length&&s<o.length&&i.charCodeAt(s)==o.charCodeAt(s);)s++;r.push({from:n.from+s,to:n.from+i.length,insert:o.slice(s)})}),{userEvent:"delete.dedent"})),!0),oye=t=>(t.setTabFocusMode(),!0),lye=[{key:"Ctrl-b",run:rQ,shift:fQ,preventDefault:!0},{key:"Ctrl-f",run:iQ,shift:hQ},{key:"Ctrl-p",run:oQ,shift:gQ},{key:"Ctrl-n",run:lQ,shift:_Q},{key:"Ctrl-a",run:AEe,shift:GEe},{key:"Ctrl-e",run:wEe,shift:qEe},{key:"Ctrl-d",run:SQ},{key:"Ctrl-h",run:cD},{key:"Ctrl-k",run:WEe},{key:"Ctrl-Alt-h",run:yQ},{key:"Ctrl-o",run:XEe},{key:"Ctrl-t",run:ZEe},{key:"Ctrl-v",run:lD}],cye=[{key:"ArrowLeft",run:rQ,shift:fQ,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:SEe,shift:MEe,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:REe,shift:UEe,preventDefault:!0},{key:"ArrowRight",run:iQ,shift:hQ,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:EEe,shift:LEe,preventDefault:!0},{mac:"Cmd-ArrowRight",run:NEe,shift:jEe,preventDefault:!0},{key:"ArrowUp",run:oQ,shift:gQ,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Xj,shift:Jj},{mac:"Ctrl-ArrowUp",run:Wj,shift:Qj},{key:"ArrowDown",run:lQ,shift:_Q,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Zj,shift:e6},{mac:"Ctrl-ArrowDown",run:lD,shift:Kj},{key:"PageUp",run:Wj,shift:Qj},{key:"PageDown",run:lD,shift:Kj},{key:"Home",run:OEe,shift:FEe,preventDefault:!0},{key:"Mod-Home",run:Xj,shift:Jj},{key:"End",run:CEe,shift:BEe,preventDefault:!0},{key:"Mod-End",run:Zj,shift:e6},{key:"Enter",run:CQ},{key:"Mod-a",run:$Ee},{key:"Backspace",run:cD,shift:cD},{key:"Delete",run:SQ},{key:"Mod-Backspace",mac:"Alt-Backspace",run:yQ},{key:"Mod-Delete",mac:"Alt-Delete",run:VEe},{mac:"Mod-Backspace",run:QEe},{mac:"Mod-Delete",run:KEe}].concat(lye.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),AQ=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:TEe,shift:kEe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:xEe,shift:PEe},{key:"Alt-ArrowUp",run:JEe},{key:"Shift-Alt-ArrowUp",run:tye},{key:"Alt-ArrowDown",run:eye},{key:"Shift-Alt-ArrowDown",run:nye},{key:"Escape",run:HEe},{key:"Mod-Enter",run:aye},{key:"Alt-l",mac:"Ctrl-l",run:zEe},{key:"Mod-i",run:YEe,preventDefault:!0},{key:"Mod-[",run:NQ},{key:"Mod-]",run:RQ},{key:"Mod-Alt-\\",run:sye},{key:"Shift-Mod-k",run:rye},{key:"Shift-Mod-\\",run:DEe},{key:"Mod-/",run:rEe},{key:"Alt-A",run:aEe},{key:"Ctrl-m",mac:"Shift-Alt-m",run:oye}].concat(cye),uye={key:"Tab",run:RQ,shift:NQ},t6=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class Jp{constructor(e,n,r=0,i=e.length,a,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,i),this.bufferStart=r,this.normalize=a?o=>a(t6(o)):t6,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Ka(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=rk(e),r=this.bufferStart+this.bufferPos;this.bufferPos+=kl(e);let i=this.normalize(n);for(let a=0,s=r;;a++){let o=i.charCodeAt(a),c=this.match(o,s,this.bufferPos+this.bufferStart);if(a==i.length-1){if(c)return this.value=c,this;break}s==r&&a<n.length&&n.charCodeAt(a)==o&&s++}}}match(e,n,r){let i=null;for(let a=0;a<this.matches.length;a+=2){let s=this.matches[a],o=!1;this.query.charCodeAt(s)==e&&(s==this.query.length-1?i={from:this.matches[a+1],to:r}:(this.matches[a]++,o=!0)),o||(this.matches.splice(a,2),a-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?i={from:n,to:r}:this.matches.push(1,n)),i&&this.test&&!this.test(i.from,i.to,this.buffer,this.bufferStart)&&(i=null),i}}typeof Symbol<"u"&&(Jp.prototype[Symbol.iterator]=function(){return this});const wQ={from:-1,to:-1,match:/.*/.exec("")},Lk="gm"+(/x/.unicode==null?"":"u");class IQ{constructor(e,n,r,i=0,a=e.length){if(this.text=e,this.to=a,this.curLine="",this.done=!1,this.value=wQ,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new DQ(e,n,r,i,a);this.re=new RegExp(n,Lk+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.iter=e.iter();let s=e.lineAt(i);this.curLineStart=s.from,this.matchPos=AE(e,i),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=AE(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(r<i||r>this.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const FO=new WeakMap;class mp{constructor(e,n){this.from=e,this.text=n}get to(){return this.from+this.text.length}static get(e,n,r){let i=FO.get(e);if(!i||i.from>=r||i.to<=n){let o=new mp(n,e.sliceString(n,r));return FO.set(e,o),o}if(i.from==n&&i.to==r)return i;let{text:a,from:s}=i;return s>n&&(a=e.sliceString(n,s)+a,s=n),i.to<r&&(a+=e.sliceString(i.to,r)),FO.set(e,new mp(s,a)),new mp(n,a.slice(n-s,r-s))}}class DQ{constructor(e,n,r,i,a){this.text=e,this.to=a,this.done=!1,this.value=wQ,this.matchPos=AE(e,i),this.re=new RegExp(n,Lk+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.flat=mp.get(e,i,this.chunkEnd(i+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=AE(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=mp.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(IQ.prototype[Symbol.iterator]=DQ.prototype[Symbol.iterator]=function(){return this});function dye(t){try{return new RegExp(t,Lk),!0}catch{return!1}}function AE(t,e){if(e>=t.length)return e;let n=t.lineAt(e),r;for(;e<n.to&&(r=n.text.charCodeAt(e-n.from))>=56320&&r<57344;)e++;return e}function uD(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=sr("input",{class:"cm-textfield",name:"line",value:e}),r=sr("form",{class:"cm-gotoLine",onkeydown:a=>{a.keyCode==27?(a.preventDefault(),t.dispatch({effects:wE.of(!1)}),t.focus()):a.keyCode==13&&(a.preventDefault(),i())},onsubmit:a=>{a.preventDefault(),i()}},sr("label",t.state.phrase("Go to line"),": ",n)," ",sr("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function i(){let a=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!a)return;let{state:s}=t,o=s.doc.lineAt(s.selection.main.head),[,c,d,f,p]=a,m=f?+f.slice(1):0,g=d?+d:o.number;if(d&&p){let y=g/100;c&&(y=y*(c=="-"?-1:1)+o.number/s.doc.lines),g=Math.round(s.doc.lines*y)}else d&&c&&(g=g*(c=="-"?-1:1)+o.number);let b=s.doc.line(Math.max(1,Math.min(s.doc.lines,g))),S=Fe.cursor(b.from+Math.max(0,Math.min(m,b.length)));t.dispatch({effects:[wE.of(!1),tt.scrollIntoView(S.from,{y:"center"})],selection:S}),t.focus()}return{dom:r}}const wE=jt.define(),n6=Ui.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(wE)&&(t=n.value);return t},provide:t=>Z_.from(t,e=>e?uD:null)}),fye=t=>{let e=X_(t,uD);if(!e){let n=[wE.of(!0)];t.state.field(n6,!1)==null&&n.push(jt.appendConfig.of([n6,hye])),t.dispatch({effects:n}),e=X_(t,uD)}return e&&e.dom.querySelector("input").select(),!0},hye=tt.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),pye={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},mye=ut.define({combine(t){return Zl(t,pye,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function MQ(t){return[Sye,vye]}const gye=Rt.mark({class:"cm-selectionMatch"}),_ye=Rt.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function r6(t,e,n,r){return(n==0||t(e.sliceDoc(n-1,n))!=Er.Word)&&(r==e.doc.length||t(e.sliceDoc(r,r+1))!=Er.Word)}function bye(t,e,n,r){return t(e.sliceDoc(n,n+1))==Er.Word&&t(e.sliceDoc(r-1,r))==Er.Word}const vye=Br.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(mye),{state:n}=t,r=n.selection;if(r.ranges.length>1)return Rt.none;let i=r.main,a,s=null;if(i.empty){if(!e.highlightWordAroundCursor)return Rt.none;let c=n.wordAt(i.head);if(!c)return Rt.none;s=n.charCategorizer(i.head),a=n.sliceDoc(c.from,c.to)}else{let c=i.to-i.from;if(c<e.minSelectionLength||c>200)return Rt.none;if(e.wholeWords){if(a=n.sliceDoc(i.from,i.to),s=n.charCategorizer(i.head),!(r6(s,n,i.from,i.to)&&bye(s,n,i.from,i.to)))return Rt.none}else if(a=n.sliceDoc(i.from,i.to),!a)return Rt.none}let o=[];for(let c of t.visibleRanges){let d=new Jp(n.doc,a,c.from,c.to);for(;!d.next().done;){let{from:f,to:p}=d.value;if((!s||r6(s,n,f,p))&&(i.empty&&f<=i.from&&p>=i.to?o.push(_ye.range(f,p)):(f>=i.to||p<=i.from)&&o.push(gye.range(f,p)),o.length>e.maxMatches))return Rt.none}}return Rt.set(o)}},{decorations:t=>t.decorations}),Sye=tt.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Eye=({state:t,dispatch:e})=>{let{selection:n}=t,r=Fe.create(n.ranges.map(i=>t.wordAt(i.head)||Fe.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(e(t.update({selection:r})),!0)};function yye(t,e){let{main:n,ranges:r}=t.selection,i=t.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let s=!1,o=new Jp(t.doc,e,r[r.length-1].to);;)if(o.next(),o.done){if(s)return null;o=new Jp(t.doc,e,0,Math.max(0,r[r.length-1].from-1)),s=!0}else{if(s&&r.some(c=>c.from==o.value.from))continue;if(a){let c=t.wordAt(o.value.from);if(!c||c.from!=o.value.from||c.to!=o.value.to)continue}return o.value}}const Tye=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(a=>a.from===a.to))return Eye({state:t,dispatch:e});let r=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(a=>t.sliceDoc(a.from,a.to)!=r))return!1;let i=yye(t,r);return i?(e(t.update({selection:t.selection.addRange(Fe.range(i.from,i.to),!1),effects:tt.scrollIntoView(i.to)})),!0):!1},Om=ut.define({combine(t){return Zl(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new kye(e),scrollToMatch:e=>tt.scrollIntoView(e)})}});class LQ{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||dye(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?`
`:r=="r"?"\r":r=="t"?"	":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Rye(this):new Cye(this)}getCursor(e,n=0,r){let i=e.doc?e:un.create({doc:e});return r==null&&(r=i.doc.length),this.regexp?Wh(this,i,n,r):Vh(this,i,n,r)}}class kQ{constructor(e){this.spec=e}}function Vh(t,e,n,r){return new Jp(e.doc,t.unquoted,n,r,t.caseSensitive?void 0:i=>i.toLowerCase(),t.wholeWord?xye(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function xye(t,e){return(n,r,i,a)=>((a>n||a+i.length<r)&&(a=Math.max(0,n-2),i=t.sliceString(a,Math.min(t.length,r+2))),(e(IE(i,n-a))!=Er.Word||e(DE(i,n-a))!=Er.Word)&&(e(DE(i,r-a))!=Er.Word||e(IE(i,r-a))!=Er.Word))}class Cye extends kQ{constructor(e){super(e)}nextMatch(e,n,r){let i=Vh(this.spec,e,r,e.doc.length).nextOverlapping();return i.done&&(i=Vh(this.spec,e,0,n).nextOverlapping()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=r;;){let a=Math.max(n,i-1e4-this.spec.unquoted.length),s=Vh(this.spec,e,a,i),o=null;for(;!s.nextOverlapping().done;)o=s.value;if(o)return o;if(a==n)return null;i-=1e4}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,n){let r=Vh(this.spec,e,0,e.doc.length),i=[];for(;!r.next().done;){if(i.length>=n)return null;i.push(r.value)}return i}highlight(e,n,r,i){let a=Vh(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,e.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}function Wh(t,e,n,r){return new IQ(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?Oye(e.charCategorizer(e.selection.main.head)):void 0},n,r)}function IE(t,e){return t.slice(ea(t,e,!1),e)}function DE(t,e){return t.slice(e,ea(t,e))}function Oye(t){return(e,n,r)=>!r[0].length||(t(IE(r.input,r.index))!=Er.Word||t(DE(r.input,r.index))!=Er.Word)&&(t(DE(r.input,r.index+r[0].length))!=Er.Word||t(IE(r.input,r.index+r[0].length))!=Er.Word)}class Rye extends kQ{nextMatch(e,n,r){let i=Wh(this.spec,e,r,e.doc.length).next();return i.done&&(i=Wh(this.spec,e,0,n).next()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=1;;i++){let a=Math.max(n,r-i*1e4),s=Wh(this.spec,e,a,r),o=null;for(;!s.next().done;)o=s.value;if(o&&(a==n||o.from>a+10))return o;if(a==n)return null}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?e.match[0]:r!="0"&&+r<e.match.length?e.match[r]:n)}matchAll(e,n){let r=Wh(this.spec,e,0,e.doc.length),i=[];for(;!r.next().done;){if(i.length>=n)return null;i.push(r.value)}return i}highlight(e,n,r,i){let a=Wh(this.spec,e,Math.max(0,n-250),Math.min(r+250,e.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}const i0=jt.define(),kk=jt.define(),sd=Ui.define({create(t){return new UO(dD(t).create(),null)},update(t,e){for(let n of e.effects)n.is(i0)?t=new UO(n.value.create(),t.panel):n.is(kk)&&(t=new UO(t.query,n.value?Pk:null));return t},provide:t=>Z_.from(t,e=>e.panel)});class UO{constructor(e,n){this.query=e,this.panel=n}}const Nye=Rt.mark({class:"cm-searchMatch"}),Aye=Rt.mark({class:"cm-searchMatch cm-searchMatch-selected"}),wye=Br.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(sd))}update(t){let e=t.state.field(sd);(e!=t.startState.field(sd)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Rt.none;let{view:n}=this,r=new Yc;for(let i=0,a=n.visibleRanges,s=a.length;i<s;i++){let{from:o,to:c}=a[i];for(;i<s-1&&c>a[i+1].from-2*250;)c=a[++i].to;t.highlight(n.state,o,c,(d,f)=>{let p=n.state.selection.ranges.some(m=>m.from==d&&m.to==f);r.add(d,f,p?Aye:Nye)})}return r.finish()}},{decorations:t=>t.decorations});function G0(t){return e=>{let n=e.state.field(sd,!1);return n&&n.query.spec.valid?t(e,n):FQ(e)}}const ME=G0((t,{query:e})=>{let{to:n}=t.state.selection.main,r=e.nextMatch(t.state,n,n);if(!r)return!1;let i=Fe.single(r.from,r.to),a=t.state.facet(Om);return t.dispatch({selection:i,effects:[Bk(t,r),a.scrollToMatch(i.main,t)],userEvent:"select.search"}),BQ(t),!0}),LE=G0((t,{query:e})=>{let{state:n}=t,{from:r}=n.selection.main,i=e.prevMatch(n,r,r);if(!i)return!1;let a=Fe.single(i.from,i.to),s=t.state.facet(Om);return t.dispatch({selection:a,effects:[Bk(t,i),s.scrollToMatch(a.main,t)],userEvent:"select.search"}),BQ(t),!0}),Iye=G0((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:Fe.create(n.map(r=>Fe.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),Dye=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],s=0;for(let o=new Jp(t.doc,t.sliceDoc(r,i));!o.next().done;){if(a.length>1e3)return!1;o.value.from==r&&(s=a.length),a.push(Fe.range(o.value.from,o.value.to))}return e(t.update({selection:Fe.create(a,s),userEvent:"select.search.matches"})),!0},i6=G0((t,{query:e})=>{let{state:n}=t,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=e.nextMatch(n,r,r);if(!a)return!1;let s=[],o,c,d=[];if(a.from==r&&a.to==i&&(c=n.toText(e.getReplacement(a)),s.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(n,a.from,a.to),d.push(tt.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),a){let f=s.length==0||s[0].from>=a.to?0:a.to-a.from-c.length;o=Fe.single(a.from-f,a.to-f),d.push(Bk(t,a)),d.push(n.facet(Om).scrollToMatch(o.main,t))}return t.dispatch({changes:s,selection:o,effects:d,userEvent:"input.replace"}),!0}),Mye=G0((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(i=>{let{from:a,to:s}=i;return{from:a,to:s,insert:e.getReplacement(i)}});if(!n.length)return!1;let r=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:tt.announce.of(r),userEvent:"input.replace.all"}),!0});function Pk(t){return t.state.facet(Om).createPanel(t)}function dD(t,e){var n,r,i,a,s;let o=t.selection.main,c=o.empty||o.to>o.from+100?"":t.sliceDoc(o.from,o.to);if(e&&!c)return e;let d=t.facet(Om);return new LQ({search:((n=e==null?void 0:e.literal)!==null&&n!==void 0?n:d.literal)?c:c.replace(/\n/g,"\\n"),caseSensitive:(r=e==null?void 0:e.caseSensitive)!==null&&r!==void 0?r:d.caseSensitive,literal:(i=e==null?void 0:e.literal)!==null&&i!==void 0?i:d.literal,regexp:(a=e==null?void 0:e.regexp)!==null&&a!==void 0?a:d.regexp,wholeWord:(s=e==null?void 0:e.wholeWord)!==null&&s!==void 0?s:d.wholeWord})}function PQ(t){let e=X_(t,Pk);return e&&e.dom.querySelector("[main-field]")}function BQ(t){let e=PQ(t);e&&e==t.root.activeElement&&e.select()}const FQ=t=>{let e=t.state.field(sd,!1);if(e&&e.panel){let n=PQ(t);if(n&&n!=t.root.activeElement){let r=dD(t.state,e.query.spec);r.valid&&t.dispatch({effects:i0.of(r)}),n.focus(),n.select()}}else t.dispatch({effects:[kk.of(!0),e?i0.of(dD(t.state,e.query.spec)):jt.appendConfig.of(Bye)]});return!0},UQ=t=>{let e=t.state.field(sd,!1);if(!e||!e.panel)return!1;let n=X_(t,Pk);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:kk.of(!1)}),!0},Lye=[{key:"Mod-f",run:FQ,scope:"editor search-panel"},{key:"F3",run:ME,shift:LE,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:ME,shift:LE,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:UQ,scope:"editor search-panel"},{key:"Mod-Shift-l",run:Dye},{key:"Mod-Alt-g",run:fye},{key:"Mod-d",run:Tye,preventDefault:!0}];class kye{constructor(e){this.view=e;let n=this.query=e.state.field(sd).query.spec;this.commit=this.commit.bind(this),this.searchField=sr("input",{value:n.search,placeholder:gs(e,"Find"),"aria-label":gs(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=sr("input",{value:n.replace,placeholder:gs(e,"Replace"),"aria-label":gs(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=sr("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=sr("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=sr("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,a,s){return sr("button",{class:"cm-button",name:i,onclick:a,type:"button"},s)}this.dom=sr("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>ME(e),[gs(e,"next")]),r("prev",()=>LE(e),[gs(e,"previous")]),r("select",()=>Iye(e),[gs(e,"all")]),sr("label",null,[this.caseField,gs(e,"match case")]),sr("label",null,[this.reField,gs(e,"regexp")]),sr("label",null,[this.wordField,gs(e,"by word")]),...e.state.readOnly?[]:[sr("br"),this.replaceField,r("replace",()=>i6(e),[gs(e,"replace")]),r("replaceAll",()=>Mye(e),[gs(e,"replace all")])],sr("button",{name:"close",onclick:()=>UQ(e),"aria-label":gs(e,"close"),type:"button"},["×"])])}commit(){let e=new LQ({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:i0.of(e)}))}keydown(e){M0e(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?LE:ME)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),i6(this.view))}update(e){for(let n of e.transactions)for(let r of n.effects)r.is(i0)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Om).top}}function gs(t,e){return t.state.phrase(e)}const kv=30,Pv=/[\s\.,:;?!]/;function Bk(t,{from:e,to:n}){let r=t.state.doc.lineAt(e),i=t.state.doc.lineAt(n).to,a=Math.max(r.from,e-kv),s=Math.min(i,n+kv),o=t.state.sliceDoc(a,s);if(a!=r.from){for(let c=0;c<kv;c++)if(!Pv.test(o[c+1])&&Pv.test(o[c])){o=o.slice(c);break}}if(s!=i){for(let c=o.length-1;c>o.length-kv;c--)if(!Pv.test(o[c-1])&&Pv.test(o[c])){o=o.slice(0,c);break}}return tt.announce.of(`${t.state.phrase("current match")}. ${o} ${t.state.phrase("on line")} ${r.number}.`)}const Pye=tt.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Bye=[sd,nu.low(wye),Pye];var a6=function(e){e===void 0&&(e={});var{crosshairCursor:n=!1}=e,r=[];e.closeBracketsKeymap!==!1&&(r=r.concat(AW)),e.defaultKeymap!==!1&&(r=r.concat(AQ)),e.searchKeymap!==!1&&(r=r.concat(Lye)),e.historyKeymap!==!1&&(r=r.concat(tQ)),e.foldKeymap!==!1&&(r=r.concat(rve)),e.completionKeymap!==!1&&(r=r.concat(Nk)),e.lintKeymap!==!1&&(r=r.concat($W));var i=[];return e.lineNumbers!==!1&&i.push(wbe()),e.highlightActiveLineGutter!==!1&&i.push(Mbe()),e.highlightSpecialChars!==!1&&i.push(X7()),e.history!==!1&&i.push(XW()),e.foldGutter!==!1&&i.push(ove()),e.drawSelection!==!1&&i.push(U0e()),e.dropCursor!==!1&&i.push(z0e()),e.allowMultipleSelections!==!1&&i.push(un.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&i.push(sW()),e.syntaxHighlighting!==!1&&i.push(fT(dve,{fallback:!0})),e.bracketMatching!==!1&&i.push(bW()),e.closeBrackets!==!1&&i.push(OW()),e.autocompletion!==!1&&i.push(IW()),e.rectangularSelection!==!1&&i.push(lbe()),n!==!1&&i.push(dbe()),e.highlightActiveLine!==!1&&i.push(tbe()),e.highlightSelectionMatches!==!1&&i.push(MQ()),e.tabSize&&typeof e.tabSize=="number"&&i.push(B0.of(" ".repeat(e.tabSize))),i.concat([ad.of(r.flat())]).filter(Boolean)};const Fye="#e5c07b",s6="#e06c75",Uye="#56b6c2",jye="#ffffff",RS="#abb2bf",fD="#7d8799",Gye="#61afef",qye="#98c379",o6="#d19a66",$ye="#c678dd",zye="#21252b",l6="#2c313a",c6="#282c34",jO="#353a42",Yye="#3E4451",u6="#528bff",Hye=tt.theme({"&":{color:RS,backgroundColor:c6},".cm-content":{caretColor:u6},".cm-cursor, .cm-dropCursor":{borderLeftColor:u6},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Yye},".cm-panels":{backgroundColor:zye,color:RS},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:c6,color:fD,border:"none"},".cm-activeLineGutter":{backgroundColor:l6},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:jO},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:jO,borderBottomColor:jO},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:l6,color:RS}}},{dark:!0}),Vye=th.define([{tag:pe.keyword,color:$ye},{tag:[pe.name,pe.deleted,pe.character,pe.propertyName,pe.macroName],color:s6},{tag:[pe.function(pe.variableName),pe.labelName],color:Gye},{tag:[pe.color,pe.constant(pe.name),pe.standard(pe.name)],color:o6},{tag:[pe.definition(pe.name),pe.separator],color:RS},{tag:[pe.typeName,pe.className,pe.number,pe.changed,pe.annotation,pe.modifier,pe.self,pe.namespace],color:Fye},{tag:[pe.operator,pe.operatorKeyword,pe.url,pe.escape,pe.regexp,pe.link,pe.special(pe.string)],color:Uye},{tag:[pe.meta,pe.comment],color:fD},{tag:pe.strong,fontWeight:"bold"},{tag:pe.emphasis,fontStyle:"italic"},{tag:pe.strikethrough,textDecoration:"line-through"},{tag:pe.link,color:fD,textDecoration:"underline"},{tag:pe.heading,fontWeight:"bold",color:s6},{tag:[pe.atom,pe.bool,pe.special(pe.variableName)],color:o6},{tag:[pe.processingInstruction,pe.string,pe.inserted],color:qye},{tag:pe.invalid,color:jye}]),Wye=[Hye,fT(Vye)];var Qye=tt.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),Kye=function(e){e===void 0&&(e={});var{indentWithTab:n=!0,editable:r=!0,readOnly:i=!1,theme:a="light",placeholder:s="",basicSetup:o=!0}=e,c=[];switch(n&&c.unshift(ad.of([uye])),o&&(typeof o=="boolean"?c.unshift(a6()):c.unshift(a6(o))),s&&c.unshift(Z7(s)),a){case"light":c.push(Qye);break;case"dark":c.push(Wye);break;case"none":break;default:c.push(a);break}return r===!1&&c.push(tt.editable.of(!1)),i&&c.push(un.readOnly.of(!0)),[...c]},Xye=t=>({line:t.state.doc.lineAt(t.state.selection.main.from),lineCount:t.state.doc.lines,lineBreak:t.state.lineBreak,length:t.state.doc.length,readOnly:t.state.readOnly,tabSize:t.state.tabSize,selection:t.state.selection,selectionAsSingle:t.state.selection.asSingle().main,ranges:t.state.selection.ranges,selectionCode:t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to),selections:t.state.selection.ranges.map(e=>t.state.sliceDoc(e.from,e.to)),selectedText:t.state.selection.ranges.some(e=>!e.empty)}),d6=Xl.define(),Zye=[];function Jye(t){var{value:e,selection:n,onChange:r,onStatistics:i,onCreateEditor:a,onUpdate:s,extensions:o=Zye,autoFocus:c,theme:d="light",height:f=null,minHeight:p=null,maxHeight:m=null,width:g=null,minWidth:b=null,maxWidth:S=null,placeholder:y="",editable:E=!0,readOnly:T=!1,indentWithTab:x=!0,basicSetup:O=!0,root:C,initialState:N}=t,[w,D]=I.useState(),[L,U]=I.useState(),[M,B]=I.useState(),Y=tt.theme({"&":{height:f,minHeight:p,maxHeight:m,width:g,minWidth:b,maxWidth:S},"& .cm-scroller":{height:"100% !important"}}),H=tt.updateListener.of(P=>{if(P.docChanged&&typeof r=="function"&&!P.transactions.some(G=>G.annotation(d6))){var z=P.state.doc,V=z.toString();r(V,P)}i&&i(Xye(P))}),F=Kye({theme:d,editable:E,readOnly:T,placeholder:y,indentWithTab:x,basicSetup:O}),k=[H,Y,...F];return s&&typeof s=="function"&&k.push(tt.updateListener.of(s)),k=k.concat(o),I.useLayoutEffect(()=>{if(w&&!M){var P={doc:e,selection:n,extensions:k},z=N?un.fromJSON(N.json,P,N.fields):un.create(P);if(B(z),!L){var V=new tt({state:z,parent:w,root:C});U(V),a&&a(V,z)}}return()=>{L&&(B(void 0),U(void 0))}},[w,M]),I.useEffect(()=>{t.container&&D(t.container)},[t.container]),I.useEffect(()=>()=>{L&&(L.destroy(),U(void 0))},[L]),I.useEffect(()=>{c&&L&&L.focus()},[c,L]),I.useEffect(()=>{L&&L.dispatch({effects:jt.reconfigure.of(k)})},[d,o,f,p,m,g,b,S,y,E,T,x,O,r,s]),I.useEffect(()=>{if(e!==void 0){var P=L?L.state.doc.toString():"";L&&e!==P&&L.dispatch({changes:{from:0,to:P.length,insert:e||""},annotations:[d6.of(!0)]})}},[e,L]),{state:M,setState:B,view:L,setView:U,container:w,setContainer:D}}var eTe=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],Fk=I.forwardRef((t,e)=>{var{className:n,value:r="",selection:i,extensions:a=[],onChange:s,onStatistics:o,onCreateEditor:c,onUpdate:d,autoFocus:f,theme:p="light",height:m,minHeight:g,maxHeight:b,width:S,minWidth:y,maxWidth:E,basicSetup:T,placeholder:x,indentWithTab:O,editable:C,readOnly:N,root:w,initialState:D}=t,L=QM(t,eTe),U=I.useRef(null),{state:M,view:B,container:Y,setContainer:H}=Jye({root:w,value:r,autoFocus:f,theme:p,height:m,minHeight:g,maxHeight:b,width:S,minWidth:y,maxWidth:E,basicSetup:T,placeholder:x,indentWithTab:O,editable:C,readOnly:N,selection:i,onChange:s,onStatistics:o,onCreateEditor:c,onUpdate:d,extensions:a,initialState:D});I.useImperativeHandle(e,()=>({editor:U.current,state:M,view:B}),[U,Y,M,B]);var F=I.useCallback(P=>{U.current=P,H(P)},[H]);if(typeof r!="string")throw new Error("value must be typeof string but got "+typeof r);var k=typeof p=="string"?"cm-theme-"+p:"cm-theme";return l.jsx("div",$S({ref:F,className:""+k+(n?" "+n:"")},L))});Fk.displayName="CodeMirror";const jQ=tt.theme({".cm-content":{paddingTop:"3px",paddingBottom:"0px"},"&.cm-editor":{"&.cm-focused":{outline:"none",outline_fallback:"none"},backgroundColor:"transparent"},".cm-scroller":{overflow:"hidden",fontFamily:'"DejaVu Sans Mono", monospace'},".cm-placeholder":{fontFamily:'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'},".cm-matchingBracket":{fontWeight:"bold",outline:"1px dashed transparent"},".cm-nonmatchingBracket":{borderColor:"red"},".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{maxHeight:"350px",fontFamily:'"DejaVu Sans Mono", monospace',maxWidth:"unset"},"& > ul > li":{padding:"2px 1em 2px 3px"},minWidth:"30%"},".cm-completionDetail":{float:"right",color:"#999"},".cm-tooltip.cm-completionInfo":{padding:"10px",fontFamily:"'Open Sans', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;",border:"none",minWidth:"250px",maxWidth:"min-content"},".cm-completionInfo.cm-completionInfo-right":{"&:before":{content:"' '",height:"0",position:"absolute",width:"0",left:"-20px",borderWidth:"10px",borderStyle:"solid",borderColor:"transparent"},marginTop:"-11px",marginLeft:"12px"},".cm-completionInfo.cm-completionInfo-left":{"&:before":{content:"' '",height:"0",position:"absolute",width:"0",right:"-20px",borderWidth:"10px",borderStyle:"solid",borderColor:"transparent"},marginTop:"-11px",marginRight:"12px"},".cm-completionInfo.cm-completionInfo-right-narrow":{"&:before":{content:"' '",height:"0",position:"absolute",width:"0",top:"-20px",borderWidth:"10px",borderStyle:"solid",borderColor:"transparent"},marginTop:"10px",marginLeft:"150px"},".cm-completionMatchedText":{textDecoration:"none",fontWeight:"bold"},".cm-selectionMatch":{backgroundColor:"#e6f3ff"},".cm-diagnostic":{"&.cm-diagnostic-error":{borderLeft:"3px solid #e65013"}},".cm-completionIcon":{boxSizing:"content-box",fontSize:"16px",lineHeight:"1",marginRight:"10px",verticalAlign:"top","&:after":{content:"'\\ea88'"},fontFamily:"codicon",paddingRight:"0",opacity:"1"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\\ea8c'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'\\eb5f'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\\eb62'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'\\ea95'"},color:"#ee9d28"}}),GQ=tt.theme({".cm-tooltip":{backgroundColor:"#f8f8f8",borderColor:"rgba(52, 79, 113, 0.2)"},".cm-tooltip.cm-tooltip-autocomplete":{"& li:hover":{backgroundColor:"#ddd"},"& > ul > li[aria-selected]":{backgroundColor:"#d6ebff",color:"unset"}},".cm-tooltip.cm-completionInfo":{backgroundColor:"#d6ebff"},".cm-tooltip > .cm-completionInfo.cm-completionInfo-right":{"&:before":{borderRightColor:"#d6ebff"}},".cm-tooltip > .cm-completionInfo.cm-completionInfo-right-narrow":{"&:before":{borderBottomColor:"#d6ebff"}},".cm-tooltip > .cm-completionInfo.cm-completionInfo-left":{"&:before":{borderLeftColor:"#d6ebff"}},".cm-line":{"&::selection":{backgroundColor:"#add6ff"},"& > span::selection":{backgroundColor:"#add6ff"}},".cm-matchingBracket":{color:"#000",backgroundColor:"#dedede"},".cm-completionMatchedText":{color:"#0066bf"},".cm-completionIcon":{color:"#007acc"},".cm-completionIcon-constant":{color:"#007acc"},".cm-completionIcon-function, .cm-completionIcon-method":{color:"#652d90"},".cm-completionIcon-keyword":{color:"#616161"}},{dark:!1}),tTe=tt.theme({".cm-content":{caretColor:"#fff"},".cm-tooltip.cm-completionInfo":{backgroundColor:"#333338"},".cm-tooltip > .cm-completionInfo.cm-completionInfo-right":{"&:before":{borderRightColor:"#333338"}},".cm-tooltip > .cm-completionInfo.cm-completionInfo-right-narrow":{"&:before":{borderBottomColor:"#333338"}},".cm-tooltip > .cm-completionInfo.cm-completionInfo-left":{"&:before":{borderLeftColor:"#333338"}},".cm-line":{"&::selection":{backgroundColor:"#767676"},"& > span::selection":{backgroundColor:"#767676"}},".cm-matchingBracket, &.cm-focused .cm-matchingBracket":{backgroundColor:"#616161"},".cm-completionMatchedText":{color:"#7dd3fc"},".cm-completionIcon, .cm-completionIcon-constant":{color:"#7dd3fc"},".cm-completionIcon-function, .cm-completionIcon-method":{color:"#d8b4fe"},".cm-completionIcon-keyword":{color:"#cbd5e1 !important"}},{dark:!0}),qQ=th.define([{tag:pe.number,color:"#09885a"},{tag:pe.string,color:"#a31515"},{tag:pe.keyword,color:"#008080"},{tag:pe.function(pe.variableName),color:"#008080"},{tag:pe.labelName,color:"#800000"},{tag:pe.operator},{tag:pe.modifier,color:"#008080"},{tag:pe.paren},{tag:pe.squareBracket},{tag:pe.brace},{tag:pe.invalid,color:"red"},{tag:pe.comment,color:"#888",fontStyle:"italic"}]),$Q=th.define([{tag:pe.number,color:"#22c55e"},{tag:pe.string,color:"#fca5a5"},{tag:pe.keyword,color:"#14bfad"},{tag:pe.function(pe.variableName),color:"#14bfad"},{tag:pe.labelName,color:"#ff8585"},{tag:pe.operator},{tag:pe.modifier,color:"#14bfad"},{tag:pe.paren},{tag:pe.squareBracket},{tag:pe.brace},{tag:pe.invalid,color:"#ff3d3d"},{tag:pe.comment,color:"#9ca3af",fontStyle:"italic"}]),nTe="_input_k0obd_1",rTe={input:nTe},iTe="api/v1",zQ=({pathPrefix:t,path:e,params:n,recordResponseTime:r})=>async({signal:i})=>{var s;const a=n?`?${new URLSearchParams(n).toString()}`:"";try{const o=Date.now(),c=await fetch(`${t}/${iTe}${e}${a}`,{cache:"no-store",credentials:"same-origin",signal:i});if(!c.ok&&!((s=c.headers.get("content-type"))!=null&&s.startsWith("application/json")))throw new Error(c.statusText);const d=await c.json();if(r&&r(Date.now()-o),d.status==="error")throw new Error(d.error!==void 0?d.error:'missing "error" field in response JSON');return d}catch(o){if(!(o instanceof Error))throw new Error("Unknown error");switch(o.name){case"TypeError":throw new Error("Network error or unable to reach the server");case"SyntaxError":throw new Error("Invalid JSON response");default:throw o}}},_d=({key:t,path:e,params:n,enabled:r,recordResponseTime:i,refetchInterval:a})=>{const{pathPrefix:s}=Si();return tde({queryKey:t!==void 0?t:[e,n],retry:!1,refetchOnWindowFocus:!1,refetchInterval:a,gcTime:0,enabled:r,queryFn:zQ({pathPrefix:s,path:e,params:n,recordResponseTime:i})})},Bi=({key:t,path:e,params:n})=>{const{pathPrefix:r}=Si();return f9({queryKey:t!==void 0?t:[e,n],retry:!1,refetchOnWindowFocus:!1,gcTime:0,queryFn:zQ({pathPrefix:r,path:e,params:n})})};function aTe(t){let e=t,n=!1;const r=new Set;return{getState(){return e},updateState(i){e=typeof i=="function"?i(e):i},setState(i){this.updateState(i),r.forEach(a=>a(e))},initialize(i){n||(e=i,n=!0)},subscribe(i){return r.add(i),()=>r.delete(i)}}}function sTe(t){return I.useSyncExternalStore(t.subscribe,()=>t.getState(),()=>t.getState())}function oTe(t,e,n){const r=[],i=[],a={};for(const s of t){const o=s.position||e;a[o]=a[o]||0,a[o]+=1,a[o]<=n?i.push(s):r.push(s)}return{notifications:i,queue:r}}const lTe=()=>aTe({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),nh=lTe(),cTe=(t=nh)=>sTe(t);function Rm(t,e){const n=t.getState(),r=e([...n.notifications,...n.queue]),i=oTe(r,n.defaultPosition,n.limit);t.setState({notifications:i.notifications,queue:i.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function uTe(t,e=nh){const n=t.id||x_();return Rm(e,r=>t.id&&r.some(i=>i.id===t.id)?r:[...r,{...t,id:n}]),n}function YQ(t,e=nh){return Rm(e,n=>n.filter(r=>{var i;return r.id===t?((i=r.onClose)==null||i.call(r,r),!1):!0})),t}function dTe(t,e=nh){return Rm(e,n=>n.map(r=>r.id===t.id?{...r,...t}:r)),t.id}function fTe(t=nh){Rm(t,()=>[])}function hTe(t=nh){Rm(t,e=>e.slice(0,t.getState().limit))}const el={show:uTe,hide:YQ,update:dTe,clean:fTe,cleanQueue:hTe,updateState:Rm};function hD(t,e){return hD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hD(t,e)}function HQ(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,hD(t,e)}const f6={disabled:!1},kE=On.createContext(null);var pTe=function(e){return e.scrollTop},s_="unmounted",rf="exited",af="entering",Qh="entered",pD="exiting",ru=function(t){HQ(e,t);function e(r,i){var a;a=t.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,c;return a.appearStatus=null,r.in?o?(c=rf,a.appearStatus=af):c=Qh:r.unmountOnExit||r.mountOnEnter?c=s_:c=rf,a.state={status:c},a.nextCallback=null,a}e.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===s_?{status:rf}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==af&&s!==Qh&&(a=af):(s===af||s===Qh)&&(a=pD)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===af){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Kg.findDOMNode(this);s&&pTe(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rf&&this.setState({status:s_})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,c=this.props.nodeRef?[o]:[Kg.findDOMNode(this),o],d=c[0],f=c[1],p=this.getTimeouts(),m=o?p.appear:p.enter;if(!i&&!s||f6.disabled){this.safeSetState({status:Qh},function(){a.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:af},function(){a.props.onEntering(d,f),a.onTransitionEnd(m,function(){a.safeSetState({status:Qh},function(){a.props.onEntered(d,f)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Kg.findDOMNode(this);if(!a||f6.disabled){this.safeSetState({status:rf},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:pD},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:rf},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Kg.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===s_)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=QM(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return On.createElement(kE.Provider,{value:null},typeof s=="function"?s(i,o):On.cloneElement(On.Children.only(s),o))},e}(On.Component);ru.contextType=kE;ru.propTypes={};function $h(){}ru.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$h,onEntering:$h,onEntered:$h,onExit:$h,onExiting:$h,onExited:$h};ru.UNMOUNTED=s_;ru.EXITED=rf;ru.ENTERING=af;ru.ENTERED=Qh;ru.EXITING=pD;function mTe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uk(t,e){var n=function(a){return e&&I.isValidElement(a)?e(a):a},r=Object.create(null);return t&&I.Children.map(t,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function gTe(t,e){t=t||{},e=e||{};function n(f){return f in e?e[f]:t[f]}var r=Object.create(null),i=[];for(var a in t)a in e?i.length&&(r[a]=i,i=[]):i.push(a);var s,o={};for(var c in e){if(r[c])for(s=0;s<r[c].length;s++){var d=r[c][s];o[r[c][s]]=n(d)}o[c]=n(c)}for(s=0;s<i.length;s++)o[i[s]]=n(i[s]);return o}function bf(t,e,n){return n[e]!=null?n[e]:t.props[e]}function _Te(t,e){return Uk(t.children,function(n){return I.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:bf(n,"appear",t),enter:bf(n,"enter",t),exit:bf(n,"exit",t)})})}function bTe(t,e,n){var r=Uk(t.children),i=gTe(e,r);return Object.keys(i).forEach(function(a){var s=i[a];if(I.isValidElement(s)){var o=a in e,c=a in r,d=e[a],f=I.isValidElement(d)&&!d.props.in;c&&(!o||f)?i[a]=I.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:bf(s,"exit",t),enter:bf(s,"enter",t)}):!c&&o&&!f?i[a]=I.cloneElement(s,{in:!1}):c&&o&&I.isValidElement(d)&&(i[a]=I.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:bf(s,"exit",t),enter:bf(s,"enter",t)}))}}),i}var vTe=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},STe={component:"div",childFactory:function(e){return e}},ju=function(t){HQ(e,t);function e(r,i){var a;a=t.call(this,r,i)||this;var s=a.handleExited.bind(mTe(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(i,a){var s=a.children,o=a.handleExited,c=a.firstRender;return{children:c?_Te(i,o):bTe(i,s,o),firstRender:!1}},n.handleExited=function(i,a){var s=Uk(this.props.children);i.key in s||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(o){var c=$S({},o.children);return delete c[i.key],{children:c}}))},n.render=function(){var i=this.props,a=i.component,s=i.childFactory,o=QM(i,["component","childFactory"]),c=this.state.contextValue,d=vTe(this.state.children).map(s);return delete o.appear,delete o.enter,delete o.exit,a===null?On.createElement(kE.Provider,{value:c},d):On.createElement(kE.Provider,{value:c},On.createElement(a,o,d))},e}(On.Component);ju.propTypes={};ju.defaultProps=STe;const VQ=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function ETe(t,e){return t.reduce((n,r)=>(n[r.position||e].push(r),n),VQ.reduce((n,r)=>(n[r]=[],n),{}))}const h6={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},yTe={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function TTe({state:t,maxHeight:e,position:n,transitionDuration:r}){const[i,a]=n.split("-"),s=a==="center"?`${i}-center`:a,o={opacity:0,maxHeight:e,transform:h6[s],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},c={opacity:1,transform:yTe[s]},d={opacity:0,maxHeight:0,transform:h6[s]};return{...o,...{entering:c,entered:c,exiting:d,exited:d}[t]}}function xTe(t,e){return typeof e=="number"?e:e===!1||t===!1?!1:t}const WQ=I.forwardRef(({data:t,onHide:e,autoClose:n,...r},i)=>{const{autoClose:a,message:s,...o}=t,c=xTe(n,t.autoClose),d=I.useRef(-1),f=()=>window.clearTimeout(d.current),p=()=>{e(t.id),f()},m=()=>{typeof c=="number"&&(d.current=window.setTimeout(p,c))};return I.useEffect(()=>{var g;(g=t.onOpen)==null||g.call(t,t)},[]),I.useEffect(()=>(m(),f),[c]),l.jsx(sL,{...r,...o,onClose:p,ref:i,onMouseEnter:f,onMouseLeave:m,children:s})});WQ.displayName="@mantine/notifications/NotificationContainer";var QQ={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const CTe=ru,OTe={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:so("overlay"),store:nh,withinPortal:!0},RTe=(t,{zIndex:e,containerWidth:n})=>({root:{"--notifications-z-index":e==null?void 0:e.toString(),"--notifications-container-width":he(n)}}),iu=Me((t,e)=>{const n=Te("Notifications",OTe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,position:d,autoClose:f,transitionDuration:p,containerWidth:m,notificationMaxHeight:g,limit:b,zIndex:S,store:y,portalProps:E,withinPortal:T,...x}=n,O=Fi(),C=cTe(y),N=aee(),w=QE(),D=I.useRef({}),L=I.useRef(0),M=(O.respectReducedMotion?w:!1)?1:p,B=ot({name:"Notifications",classes:QQ,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:RTe});I.useEffect(()=>{y==null||y.updateState(F=>({...F,limit:b||5,defaultPosition:d}))},[b,d]),ro(()=>{C.notifications.length>L.current&&setTimeout(()=>N(),0),L.current=C.notifications.length},[C.notifications]);const Y=ETe(C.notifications,d),H=VQ.reduce((F,k)=>(F[k]=Y[k].map(({style:P,...z})=>l.jsx(CTe,{timeout:M,onEnter:()=>D.current[z.id].offsetHeight,nodeRef:{current:D.current[z.id]},children:V=>l.jsx(WQ,{ref:G=>{D.current[z.id]=G},data:z,onHide:G=>YQ(G,y),autoClose:f,...B("notification",{style:{...TTe({state:V,position:k,transitionDuration:M,maxHeight:g}),...P}})})},z.id)),F),{});return l.jsxs(Xf,{withinPortal:T,...E,children:[l.jsx(ve,{...B("root"),"data-position":"top-center",ref:e,...x,children:l.jsx(ju,{children:H["top-center"]})}),l.jsx(ve,{...B("root"),"data-position":"top-left",...x,children:l.jsx(ju,{children:H["top-left"]})}),l.jsx(ve,{...B("root",{className:Bp.classNames.fullWidth}),"data-position":"top-right",...x,children:l.jsx(ju,{children:H["top-right"]})}),l.jsx(ve,{...B("root",{className:Bp.classNames.fullWidth}),"data-position":"bottom-right",...x,children:l.jsx(ju,{children:H["bottom-right"]})}),l.jsx(ve,{...B("root"),"data-position":"bottom-left",...x,children:l.jsx(ju,{children:H["bottom-left"]})}),l.jsx(ve,{...B("root"),"data-position":"bottom-center",...x,children:l.jsx(ju,{children:H["bottom-center"]})})]})});iu.classes=QQ;iu.displayName="@mantine/notifications/Notifications";iu.show=el.show;iu.hide=el.hide;iu.update=el.update;iu.clean=el.clean;iu.cleanQueue=el.cleanQueue;iu.updateState=el.updateState;function NTe(t){return t.replace(/[&<>"']/g,e=>{switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return"&#039;"}})}function mD(t){return t.to-t.from+1}function KQ(t,e){const n=t[e];let r=null;return e===0&&n.from!==0&&(r={from:0,to:n.from-1}),e>0&&(r={from:t[e-1].to+1,to:n.from-1}),r}function ATe(t,e){let n=0;for(let r=0;r<t.length;r++){const i=t[r],a=KQ(t,r);a!==null&&(n=n-mD(a)/e),n=n+mD(i)**2}return n}class XQ{constructor(e){this.conf={caseSensitive:(e==null?void 0:e.caseSensitive)===void 0?!1:e.caseSensitive,excludedChars:(e==null?void 0:e.excludedChars)===void 0?[]:e.excludedChars,includeMatches:(e==null?void 0:e.includeMatches)===void 0?!1:e.includeMatches,shouldSort:(e==null?void 0:e.shouldSort)===void 0?!1:e.shouldSort,shouldRender:(e==null?void 0:e.shouldRender)===void 0?!0:e.shouldRender,escapeHTML:(e==null?void 0:e.escapeHTML)===void 0?!1:e.escapeHTML,pre:(e==null?void 0:e.pre)===void 0?"":e.pre,post:(e==null?void 0:e.post)===void 0?"":e.post}}filter(e,n,r){const i=(r==null?void 0:r.shouldSort)!==void 0?r.shouldSort:this.conf.shouldSort;let a=[];for(let s=0;s<n.length;s++){const o=this.match(e,n[s],r);o!==null&&(o.index=s,a.push(o))}return i&&(a=a.sort((s,o)=>o.score-s.score)),a}match(e,n,r){let i=e,a=n;const s=(r==null?void 0:r.caseSensitive)!==void 0?r.caseSensitive:this.conf.caseSensitive,o=(r==null?void 0:r.includeMatches)!==void 0?r.includeMatches:this.conf.includeMatches,c=(r==null?void 0:r.shouldRender)!==void 0?r.shouldRender:this.conf.shouldRender;if(s||(i=i.toLowerCase(),a=a.toLowerCase()),i===a){const m=[{from:0,to:e.length-1}],g={original:n,rendered:c?this.render(n,m,r):n,score:1/0};return o&&(g.intervals=m),g}let d=[],f=0;for(let m=0;m<a.length-i.length+1;m++)if(a[m]===i[0]){const g=this.generateMatchingInterval(i,a,m,r);if(g===null)break;g.score>f&&(f=g.score,d=g.intervals)}if(d.length===0)return null;const p={original:n,rendered:c?this.render(n,d,r):n,score:f};return o&&(p.intervals=d),p}render(e,n,r){if(n.length==0)return e;let i="";const a=r!=null&&r.pre?r.pre:this.conf.pre,s=r!=null&&r.post?r.post:this.conf.post;for(let c=0;c<n.length;c++){const d=n[c],f=KQ(n,c);let p="";f!==null&&(p=this.extractSubString(e,f,r));const m=this.extractSubString(e,d,r);i=`${i}${p}${a}${m}${s}`}const o=n[n.length-1];return o.to<e.length-1&&(i=i+this.extractSubString(e,{from:o.to+1,to:e.length},r)),i}extractSubString(e,n,r){const i=(r==null?void 0:r.escapeHTML)!==void 0?r.escapeHTML:this.conf.escapeHTML;let a=e.substr(n.from,mD(n));return i&&(a=NTe(a)),a}generateMatchingInterval(e,n,r,i){let a=[];(i==null?void 0:i.excludedChars)!==void 0?a=i.excludedChars:this.conf.excludedChars!==void 0&&(a=this.conf.excludedChars);let s=0;const o=[];for(let c=r;c<n.length&&s<e.length;){if(a.includes(n[c])){c++;continue}if(a.includes(e[s])){s++;continue}if(n[c]===e[s]){const d={from:c,to:c};s++,c++;for(let f=c;f<n.length&&s<e.length&&n[f]===e[s];f++)d.to=f,s++,c=f;o.push(d)}c++}return o.length===0||s!==e.length?null:{score:ATe(o,n.length),intervals:o}}}const ZQ=new XQ;function wTe(t,e,n){return ZQ.match(t,e,n)}function p6(t,e,n){return ZQ.render(t,e,n)}var wo={},Io={},GO={},Do={},Bv={},m6;function ITe(){return m6||(m6=1,Object.defineProperty(Bv,"__esModule",{value:!0}),Bv.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}))),Bv}var Fv={},g6;function DTe(){return g6||(g6=1,Object.defineProperty(Fv,"__esModule",{value:!0}),Fv.default=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}))),Fv}var qO={},_6;function b6(){return _6||(_6=1,function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(a){var s="";return a>65535&&(a-=65536,s+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),s+=String.fromCharCode(a),s};function r(a){var s;return a>=55296&&a<=57343||a>1114111?65533:(s=n.get(a))!==null&&s!==void 0?s:a}t.replaceCodePoint=r;function i(a){return(0,t.fromCodePoint)(r(a))}t.default=i}(qO)),qO}var v6;function PE(){return v6||(v6=1,function(t){var e=Do&&Do.__createBinding||(Object.create?function(M,B,Y,H){H===void 0&&(H=Y);var F=Object.getOwnPropertyDescriptor(B,Y);(!F||("get"in F?!B.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return B[Y]}}),Object.defineProperty(M,H,F)}:function(M,B,Y,H){H===void 0&&(H=Y),M[H]=B[Y]}),n=Do&&Do.__setModuleDefault||(Object.create?function(M,B){Object.defineProperty(M,"default",{enumerable:!0,value:B})}:function(M,B){M.default=B}),r=Do&&Do.__importStar||function(M){if(M&&M.__esModule)return M;var B={};if(M!=null)for(var Y in M)Y!=="default"&&Object.prototype.hasOwnProperty.call(M,Y)&&e(B,M,Y);return n(B,M),B},i=Do&&Do.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var a=i(ITe());t.htmlDecodeTree=a.default;var s=i(DTe());t.xmlDecodeTree=s.default;var o=r(b6());t.decodeCodePoint=o.default;var c=b6();Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return c.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return c.fromCodePoint}});var d;(function(M){M[M.NUM=35]="NUM",M[M.SEMI=59]="SEMI",M[M.EQUALS=61]="EQUALS",M[M.ZERO=48]="ZERO",M[M.NINE=57]="NINE",M[M.LOWER_A=97]="LOWER_A",M[M.LOWER_F=102]="LOWER_F",M[M.LOWER_X=120]="LOWER_X",M[M.LOWER_Z=122]="LOWER_Z",M[M.UPPER_A=65]="UPPER_A",M[M.UPPER_F=70]="UPPER_F",M[M.UPPER_Z=90]="UPPER_Z"})(d||(d={}));var f=32,p;(function(M){M[M.VALUE_LENGTH=49152]="VALUE_LENGTH",M[M.BRANCH_LENGTH=16256]="BRANCH_LENGTH",M[M.JUMP_TABLE=127]="JUMP_TABLE"})(p=t.BinTrieFlags||(t.BinTrieFlags={}));function m(M){return M>=d.ZERO&&M<=d.NINE}function g(M){return M>=d.UPPER_A&&M<=d.UPPER_F||M>=d.LOWER_A&&M<=d.LOWER_F}function b(M){return M>=d.UPPER_A&&M<=d.UPPER_Z||M>=d.LOWER_A&&M<=d.LOWER_Z||m(M)}function S(M){return M===d.EQUALS||b(M)}var y;(function(M){M[M.EntityStart=0]="EntityStart",M[M.NumericStart=1]="NumericStart",M[M.NumericDecimal=2]="NumericDecimal",M[M.NumericHex=3]="NumericHex",M[M.NamedEntity=4]="NamedEntity"})(y||(y={}));var E;(function(M){M[M.Legacy=0]="Legacy",M[M.Strict=1]="Strict",M[M.Attribute=2]="Attribute"})(E=t.DecodingMode||(t.DecodingMode={}));var T=function(){function M(B,Y,H){this.decodeTree=B,this.emitCodePoint=Y,this.errors=H,this.state=y.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=E.Strict}return M.prototype.startEntity=function(B){this.decodeMode=B,this.state=y.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},M.prototype.write=function(B,Y){switch(this.state){case y.EntityStart:return B.charCodeAt(Y)===d.NUM?(this.state=y.NumericStart,this.consumed+=1,this.stateNumericStart(B,Y+1)):(this.state=y.NamedEntity,this.stateNamedEntity(B,Y));case y.NumericStart:return this.stateNumericStart(B,Y);case y.NumericDecimal:return this.stateNumericDecimal(B,Y);case y.NumericHex:return this.stateNumericHex(B,Y);case y.NamedEntity:return this.stateNamedEntity(B,Y)}},M.prototype.stateNumericStart=function(B,Y){return Y>=B.length?-1:(B.charCodeAt(Y)|f)===d.LOWER_X?(this.state=y.NumericHex,this.consumed+=1,this.stateNumericHex(B,Y+1)):(this.state=y.NumericDecimal,this.stateNumericDecimal(B,Y))},M.prototype.addToNumericResult=function(B,Y,H,F){if(Y!==H){var k=H-Y;this.result=this.result*Math.pow(F,k)+parseInt(B.substr(Y,k),F),this.consumed+=k}},M.prototype.stateNumericHex=function(B,Y){for(var H=Y;Y<B.length;){var F=B.charCodeAt(Y);if(m(F)||g(F))Y+=1;else return this.addToNumericResult(B,H,Y,16),this.emitNumericEntity(F,3)}return this.addToNumericResult(B,H,Y,16),-1},M.prototype.stateNumericDecimal=function(B,Y){for(var H=Y;Y<B.length;){var F=B.charCodeAt(Y);if(m(F))Y+=1;else return this.addToNumericResult(B,H,Y,10),this.emitNumericEntity(F,2)}return this.addToNumericResult(B,H,Y,10),-1},M.prototype.emitNumericEntity=function(B,Y){var H;if(this.consumed<=Y)return(H=this.errors)===null||H===void 0||H.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(B===d.SEMI)this.consumed+=1;else if(this.decodeMode===E.Strict)return 0;return this.emitCodePoint((0,o.replaceCodePoint)(this.result),this.consumed),this.errors&&(B!==d.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},M.prototype.stateNamedEntity=function(B,Y){for(var H=this.decodeTree,F=H[this.treeIndex],k=(F&p.VALUE_LENGTH)>>14;Y<B.length;Y++,this.excess++){var P=B.charCodeAt(Y);if(this.treeIndex=O(H,F,this.treeIndex+Math.max(1,k),P),this.treeIndex<0)return this.result===0||this.decodeMode===E.Attribute&&(k===0||S(P))?0:this.emitNotTerminatedNamedEntity();if(F=H[this.treeIndex],k=(F&p.VALUE_LENGTH)>>14,k!==0){if(P===d.SEMI)return this.emitNamedEntityData(this.treeIndex,k,this.consumed+this.excess);this.decodeMode!==E.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},M.prototype.emitNotTerminatedNamedEntity=function(){var B,Y=this,H=Y.result,F=Y.decodeTree,k=(F[H]&p.VALUE_LENGTH)>>14;return this.emitNamedEntityData(H,k,this.consumed),(B=this.errors)===null||B===void 0||B.missingSemicolonAfterCharacterReference(),this.consumed},M.prototype.emitNamedEntityData=function(B,Y,H){var F=this.decodeTree;return this.emitCodePoint(Y===1?F[B]&~p.VALUE_LENGTH:F[B+1],H),Y===3&&this.emitCodePoint(F[B+2],H),H},M.prototype.end=function(){var B;switch(this.state){case y.NamedEntity:return this.result!==0&&(this.decodeMode!==E.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case y.NumericDecimal:return this.emitNumericEntity(0,2);case y.NumericHex:return this.emitNumericEntity(0,3);case y.NumericStart:return(B=this.errors)===null||B===void 0||B.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case y.EntityStart:return 0}},M}();t.EntityDecoder=T;function x(M){var B="",Y=new T(M,function(H){return B+=(0,o.fromCodePoint)(H)});return function(F,k){for(var P=0,z=0;(z=F.indexOf("&",z))>=0;){B+=F.slice(P,z),Y.startEntity(k);var V=Y.write(F,z+1);if(V<0){P=z+Y.end();break}P=z+V,z=V===0?P+1:P}var G=B+F.slice(P);return B="",G}}function O(M,B,Y,H){var F=(B&p.BRANCH_LENGTH)>>7,k=B&p.JUMP_TABLE;if(F===0)return k!==0&&H===k?Y:-1;if(k){var P=H-k;return P<0||P>=F?-1:M[Y+P]-1}for(var z=Y,V=z+F-1;z<=V;){var G=z+V>>>1,Q=M[G];if(Q<H)z=G+1;else if(Q>H)V=G-1;else return M[G+F]}return-1}t.determineBranch=O;var C=x(a.default),N=x(s.default);function w(M,B){return B===void 0&&(B=E.Legacy),C(M,B)}t.decodeHTML=w;function D(M){return C(M,E.Attribute)}t.decodeHTMLAttribute=D;function L(M){return C(M,E.Strict)}t.decodeHTMLStrict=L;function U(M){return N(M,E.Strict)}t.decodeXML=U}(Do)),Do}var S6;function JQ(){return S6||(S6=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=PE(),n;(function(m){m[m.Tab=9]="Tab",m[m.NewLine=10]="NewLine",m[m.FormFeed=12]="FormFeed",m[m.CarriageReturn=13]="CarriageReturn",m[m.Space=32]="Space",m[m.ExclamationMark=33]="ExclamationMark",m[m.Number=35]="Number",m[m.Amp=38]="Amp",m[m.SingleQuote=39]="SingleQuote",m[m.DoubleQuote=34]="DoubleQuote",m[m.Dash=45]="Dash",m[m.Slash=47]="Slash",m[m.Zero=48]="Zero",m[m.Nine=57]="Nine",m[m.Semi=59]="Semi",m[m.Lt=60]="Lt",m[m.Eq=61]="Eq",m[m.Gt=62]="Gt",m[m.Questionmark=63]="Questionmark",m[m.UpperA=65]="UpperA",m[m.LowerA=97]="LowerA",m[m.UpperF=70]="UpperF",m[m.LowerF=102]="LowerF",m[m.UpperZ=90]="UpperZ",m[m.LowerZ=122]="LowerZ",m[m.LowerX=120]="LowerX",m[m.OpeningSquareBracket=91]="OpeningSquareBracket"})(n||(n={}));var r;(function(m){m[m.Text=1]="Text",m[m.BeforeTagName=2]="BeforeTagName",m[m.InTagName=3]="InTagName",m[m.InSelfClosingTag=4]="InSelfClosingTag",m[m.BeforeClosingTagName=5]="BeforeClosingTagName",m[m.InClosingTagName=6]="InClosingTagName",m[m.AfterClosingTagName=7]="AfterClosingTagName",m[m.BeforeAttributeName=8]="BeforeAttributeName",m[m.InAttributeName=9]="InAttributeName",m[m.AfterAttributeName=10]="AfterAttributeName",m[m.BeforeAttributeValue=11]="BeforeAttributeValue",m[m.InAttributeValueDq=12]="InAttributeValueDq",m[m.InAttributeValueSq=13]="InAttributeValueSq",m[m.InAttributeValueNq=14]="InAttributeValueNq",m[m.BeforeDeclaration=15]="BeforeDeclaration",m[m.InDeclaration=16]="InDeclaration",m[m.InProcessingInstruction=17]="InProcessingInstruction",m[m.BeforeComment=18]="BeforeComment",m[m.CDATASequence=19]="CDATASequence",m[m.InSpecialComment=20]="InSpecialComment",m[m.InCommentLike=21]="InCommentLike",m[m.BeforeSpecialS=22]="BeforeSpecialS",m[m.SpecialStartSequence=23]="SpecialStartSequence",m[m.InSpecialTag=24]="InSpecialTag",m[m.BeforeEntity=25]="BeforeEntity",m[m.BeforeNumericEntity=26]="BeforeNumericEntity",m[m.InNamedEntity=27]="InNamedEntity",m[m.InNumericEntity=28]="InNumericEntity",m[m.InHexEntity=29]="InHexEntity"})(r||(r={}));function i(m){return m===n.Space||m===n.NewLine||m===n.Tab||m===n.FormFeed||m===n.CarriageReturn}function a(m){return m===n.Slash||m===n.Gt||i(m)}function s(m){return m>=n.Zero&&m<=n.Nine}function o(m){return m>=n.LowerA&&m<=n.LowerZ||m>=n.UpperA&&m<=n.UpperZ}function c(m){return m>=n.UpperA&&m<=n.UpperF||m>=n.LowerA&&m<=n.LowerF}var d;(function(m){m[m.NoValue=0]="NoValue",m[m.Unquoted=1]="Unquoted",m[m.Single=2]="Single",m[m.Double=3]="Double"})(d=t.QuoteType||(t.QuoteType={}));var f={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},p=function(){function m(g,b){var S=g.xmlMode,y=S===void 0?!1:S,E=g.decodeEntities,T=E===void 0?!0:E;this.cbs=b,this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=y,this.decodeEntities=T,this.entityTrie=y?e.xmlDecodeTree:e.htmlDecodeTree}return m.prototype.reset=function(){this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},m.prototype.write=function(g){this.offset+=this.buffer.length,this.buffer=g,this.parse()},m.prototype.end=function(){this.running&&this.finish()},m.prototype.pause=function(){this.running=!1},m.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},m.prototype.getIndex=function(){return this.index},m.prototype.getSectionStart=function(){return this.sectionStart},m.prototype.stateText=function(g){g===n.Lt||!this.decodeEntities&&this.fastForwardTo(n.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=r.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&g===n.Amp&&(this.state=r.BeforeEntity)},m.prototype.stateSpecialStartSequence=function(g){var b=this.sequenceIndex===this.currentSequence.length,S=b?a(g):(g|32)===this.currentSequence[this.sequenceIndex];if(!S)this.isSpecial=!1;else if(!b){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=r.InTagName,this.stateInTagName(g)},m.prototype.stateInSpecialTag=function(g){if(this.sequenceIndex===this.currentSequence.length){if(g===n.Gt||i(g)){var b=this.index-this.currentSequence.length;if(this.sectionStart<b){var S=this.index;this.index=b,this.cbs.ontext(this.sectionStart,b),this.index=S}this.isSpecial=!1,this.sectionStart=b+2,this.stateInClosingTagName(g);return}this.sequenceIndex=0}(g|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===f.TitleEnd?this.decodeEntities&&g===n.Amp&&(this.state=r.BeforeEntity):this.fastForwardTo(n.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(g===n.Lt)},m.prototype.stateCDATASequence=function(g){g===f.Cdata[this.sequenceIndex]?++this.sequenceIndex===f.Cdata.length&&(this.state=r.InCommentLike,this.currentSequence=f.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=r.InDeclaration,this.stateInDeclaration(g))},m.prototype.fastForwardTo=function(g){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===g)return!0;return this.index=this.buffer.length+this.offset-1,!1},m.prototype.stateInCommentLike=function(g){g===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===f.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=r.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):g!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},m.prototype.isTagStartChar=function(g){return this.xmlMode?!a(g):o(g)},m.prototype.startSpecial=function(g,b){this.isSpecial=!0,this.currentSequence=g,this.sequenceIndex=b,this.state=r.SpecialStartSequence},m.prototype.stateBeforeTagName=function(g){if(g===n.ExclamationMark)this.state=r.BeforeDeclaration,this.sectionStart=this.index+1;else if(g===n.Questionmark)this.state=r.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(g)){var b=g|32;this.sectionStart=this.index,!this.xmlMode&&b===f.TitleEnd[2]?this.startSpecial(f.TitleEnd,3):this.state=!this.xmlMode&&b===f.ScriptEnd[2]?r.BeforeSpecialS:r.InTagName}else g===n.Slash?this.state=r.BeforeClosingTagName:(this.state=r.Text,this.stateText(g))},m.prototype.stateInTagName=function(g){a(g)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(g))},m.prototype.stateBeforeClosingTagName=function(g){i(g)||(g===n.Gt?this.state=r.Text:(this.state=this.isTagStartChar(g)?r.InClosingTagName:r.InSpecialComment,this.sectionStart=this.index))},m.prototype.stateInClosingTagName=function(g){(g===n.Gt||i(g))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterClosingTagName,this.stateAfterClosingTagName(g))},m.prototype.stateAfterClosingTagName=function(g){(g===n.Gt||this.fastForwardTo(n.Gt))&&(this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1)},m.prototype.stateBeforeAttributeName=function(g){g===n.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=r.InSpecialTag,this.sequenceIndex=0):this.state=r.Text,this.baseState=this.state,this.sectionStart=this.index+1):g===n.Slash?this.state=r.InSelfClosingTag:i(g)||(this.state=r.InAttributeName,this.sectionStart=this.index)},m.prototype.stateInSelfClosingTag=function(g){g===n.Gt?(this.cbs.onselfclosingtag(this.index),this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1,this.isSpecial=!1):i(g)||(this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(g))},m.prototype.stateInAttributeName=function(g){(g===n.Eq||a(g))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterAttributeName,this.stateAfterAttributeName(g))},m.prototype.stateAfterAttributeName=function(g){g===n.Eq?this.state=r.BeforeAttributeValue:g===n.Slash||g===n.Gt?(this.cbs.onattribend(d.NoValue,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(g)):i(g)||(this.cbs.onattribend(d.NoValue,this.index),this.state=r.InAttributeName,this.sectionStart=this.index)},m.prototype.stateBeforeAttributeValue=function(g){g===n.DoubleQuote?(this.state=r.InAttributeValueDq,this.sectionStart=this.index+1):g===n.SingleQuote?(this.state=r.InAttributeValueSq,this.sectionStart=this.index+1):i(g)||(this.sectionStart=this.index,this.state=r.InAttributeValueNq,this.stateInAttributeValueNoQuotes(g))},m.prototype.handleInAttributeValue=function(g,b){g===b||!this.decodeEntities&&this.fastForwardTo(b)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(b===n.DoubleQuote?d.Double:d.Single,this.index),this.state=r.BeforeAttributeName):this.decodeEntities&&g===n.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},m.prototype.stateInAttributeValueDoubleQuotes=function(g){this.handleInAttributeValue(g,n.DoubleQuote)},m.prototype.stateInAttributeValueSingleQuotes=function(g){this.handleInAttributeValue(g,n.SingleQuote)},m.prototype.stateInAttributeValueNoQuotes=function(g){i(g)||g===n.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(d.Unquoted,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(g)):this.decodeEntities&&g===n.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},m.prototype.stateBeforeDeclaration=function(g){g===n.OpeningSquareBracket?(this.state=r.CDATASequence,this.sequenceIndex=0):this.state=g===n.Dash?r.BeforeComment:r.InDeclaration},m.prototype.stateInDeclaration=function(g){(g===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},m.prototype.stateInProcessingInstruction=function(g){(g===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},m.prototype.stateBeforeComment=function(g){g===n.Dash?(this.state=r.InCommentLike,this.currentSequence=f.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=r.InDeclaration},m.prototype.stateInSpecialComment=function(g){(g===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=r.Text,this.sectionStart=this.index+1)},m.prototype.stateBeforeSpecialS=function(g){var b=g|32;b===f.ScriptEnd[3]?this.startSpecial(f.ScriptEnd,4):b===f.StyleEnd[3]?this.startSpecial(f.StyleEnd,4):(this.state=r.InTagName,this.stateInTagName(g))},m.prototype.stateBeforeEntity=function(g){this.entityExcess=1,this.entityResult=0,g===n.Number?this.state=r.BeforeNumericEntity:g===n.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=r.InNamedEntity,this.stateInNamedEntity(g))},m.prototype.stateInNamedEntity=function(g){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,g),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var b=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(b){var S=(b>>14)-1;if(!this.allowLegacyEntity()&&g!==n.Semi)this.trieIndex+=S;else{var y=this.index-this.entityExcess+1;y>this.sectionStart&&this.emitPartial(this.sectionStart,y),this.entityResult=this.trieIndex,this.trieIndex+=S,this.entityExcess=0,this.sectionStart=this.index+1,S===0&&this.emitNamedEntity()}}},m.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var g=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(g){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},m.prototype.stateBeforeNumericEntity=function(g){(g|32)===n.LowerX?(this.entityExcess++,this.state=r.InHexEntity):(this.state=r.InNumericEntity,this.stateInNumericEntity(g))},m.prototype.emitNumericEntity=function(g){var b=this.index-this.entityExcess-1,S=b+2+ +(this.state===r.InHexEntity);S!==this.index&&(b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.sectionStart=this.index+Number(g),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},m.prototype.stateInNumericEntity=function(g){g===n.Semi?this.emitNumericEntity(!0):s(g)?(this.entityResult=this.entityResult*10+(g-n.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.stateInHexEntity=function(g){g===n.Semi?this.emitNumericEntity(!0):s(g)?(this.entityResult=this.entityResult*16+(g-n.Zero),this.entityExcess++):c(g)?(this.entityResult=this.entityResult*16+((g|32)-n.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===r.Text||this.baseState===r.InSpecialTag)},m.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===r.Text||this.state===r.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===r.InAttributeValueDq||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},m.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},m.prototype.parse=function(){for(;this.shouldContinue();){var g=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case r.Text:{this.stateText(g);break}case r.SpecialStartSequence:{this.stateSpecialStartSequence(g);break}case r.InSpecialTag:{this.stateInSpecialTag(g);break}case r.CDATASequence:{this.stateCDATASequence(g);break}case r.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(g);break}case r.InAttributeName:{this.stateInAttributeName(g);break}case r.InCommentLike:{this.stateInCommentLike(g);break}case r.InSpecialComment:{this.stateInSpecialComment(g);break}case r.BeforeAttributeName:{this.stateBeforeAttributeName(g);break}case r.InTagName:{this.stateInTagName(g);break}case r.InClosingTagName:{this.stateInClosingTagName(g);break}case r.BeforeTagName:{this.stateBeforeTagName(g);break}case r.AfterAttributeName:{this.stateAfterAttributeName(g);break}case r.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(g);break}case r.BeforeAttributeValue:{this.stateBeforeAttributeValue(g);break}case r.BeforeClosingTagName:{this.stateBeforeClosingTagName(g);break}case r.AfterClosingTagName:{this.stateAfterClosingTagName(g);break}case r.BeforeSpecialS:{this.stateBeforeSpecialS(g);break}case r.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(g);break}case r.InSelfClosingTag:{this.stateInSelfClosingTag(g);break}case r.InDeclaration:{this.stateInDeclaration(g);break}case r.BeforeDeclaration:{this.stateBeforeDeclaration(g);break}case r.BeforeComment:{this.stateBeforeComment(g);break}case r.InProcessingInstruction:{this.stateInProcessingInstruction(g);break}case r.InNamedEntity:{this.stateInNamedEntity(g);break}case r.BeforeEntity:{this.stateBeforeEntity(g);break}case r.InHexEntity:{this.stateInHexEntity(g);break}case r.InNumericEntity:{this.stateInNumericEntity(g);break}default:this.stateBeforeNumericEntity(g)}this.index++}this.cleanup()},m.prototype.finish=function(){this.state===r.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},m.prototype.handleTrailingData=function(){var g=this.buffer.length+this.offset;this.state===r.InCommentLike?this.currentSequence===f.CdataEnd?this.cbs.oncdata(this.sectionStart,g,0):this.cbs.oncomment(this.sectionStart,g,0):this.state===r.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InTagName||this.state===r.BeforeAttributeName||this.state===r.BeforeAttributeValue||this.state===r.AfterAttributeName||this.state===r.InAttributeName||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueDq||this.state===r.InAttributeValueNq||this.state===r.InClosingTagName||this.cbs.ontext(this.sectionStart,g)},m.prototype.emitPartial=function(g,b){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribdata(g,b):this.cbs.ontext(g,b)},m.prototype.emitCodePoint=function(g){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribentity(g):this.cbs.ontextentity(g)},m}();t.default=p}(GO)),GO}var E6;function y6(){if(E6)return Io;E6=1;var t=Io&&Io.__createBinding||(Object.create?function(y,E,T,x){x===void 0&&(x=T);var O=Object.getOwnPropertyDescriptor(E,T);(!O||("get"in O?!E.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return E[T]}}),Object.defineProperty(y,x,O)}:function(y,E,T,x){x===void 0&&(x=T),y[x]=E[T]}),e=Io&&Io.__setModuleDefault||(Object.create?function(y,E){Object.defineProperty(y,"default",{enumerable:!0,value:E})}:function(y,E){y.default=E}),n=Io&&Io.__importStar||function(y){if(y&&y.__esModule)return y;var E={};if(y!=null)for(var T in y)T!=="default"&&Object.prototype.hasOwnProperty.call(y,T)&&t(E,y,T);return e(E,y),E};Object.defineProperty(Io,"__esModule",{value:!0}),Io.Parser=void 0;var r=n(JQ()),i=PE(),a=new Set(["input","option","optgroup","select","button","datalist","textarea"]),s=new Set(["p"]),o=new Set(["thead","tbody"]),c=new Set(["dd","dt"]),d=new Set(["rt","rp"]),f=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",s],["h1",s],["h2",s],["h3",s],["h4",s],["h5",s],["h6",s],["select",a],["input",a],["output",a],["button",a],["datalist",a],["textarea",a],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",c],["dt",c],["address",s],["article",s],["aside",s],["blockquote",s],["details",s],["div",s],["dl",s],["fieldset",s],["figcaption",s],["figure",s],["footer",s],["form",s],["header",s],["hr",s],["main",s],["nav",s],["ol",s],["pre",s],["section",s],["table",s],["ul",s],["rt",d],["rp",d],["tbody",o],["tfoot",o]]),p=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),m=new Set(["math","svg"]),g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),b=/\s|\//,S=function(){function y(E,T){T===void 0&&(T={});var x,O,C,N,w;this.options=T,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=E??{},this.lowerCaseTagNames=(x=T.lowerCaseTags)!==null&&x!==void 0?x:!T.xmlMode,this.lowerCaseAttributeNames=(O=T.lowerCaseAttributeNames)!==null&&O!==void 0?O:!T.xmlMode,this.tokenizer=new((C=T.Tokenizer)!==null&&C!==void 0?C:r.default)(this.options,this),(w=(N=this.cbs).onparserinit)===null||w===void 0||w.call(N,this)}return y.prototype.ontext=function(E,T){var x,O,C=this.getSlice(E,T);this.endIndex=T-1,(O=(x=this.cbs).ontext)===null||O===void 0||O.call(x,C),this.startIndex=T},y.prototype.ontextentity=function(E){var T,x,O=this.tokenizer.getSectionStart();this.endIndex=O-1,(x=(T=this.cbs).ontext)===null||x===void 0||x.call(T,(0,i.fromCodePoint)(E)),this.startIndex=O},y.prototype.isVoidElement=function(E){return!this.options.xmlMode&&p.has(E)},y.prototype.onopentagname=function(E,T){this.endIndex=T;var x=this.getSlice(E,T);this.lowerCaseTagNames&&(x=x.toLowerCase()),this.emitOpenTag(x)},y.prototype.emitOpenTag=function(E){var T,x,O,C;this.openTagStart=this.startIndex,this.tagname=E;var N=!this.options.xmlMode&&f.get(E);if(N)for(;this.stack.length>0&&N.has(this.stack[this.stack.length-1]);){var w=this.stack.pop();(x=(T=this.cbs).onclosetag)===null||x===void 0||x.call(T,w,!0)}this.isVoidElement(E)||(this.stack.push(E),m.has(E)?this.foreignContext.push(!0):g.has(E)&&this.foreignContext.push(!1)),(C=(O=this.cbs).onopentagname)===null||C===void 0||C.call(O,E),this.cbs.onopentag&&(this.attribs={})},y.prototype.endOpenTag=function(E){var T,x;this.startIndex=this.openTagStart,this.attribs&&((x=(T=this.cbs).onopentag)===null||x===void 0||x.call(T,this.tagname,this.attribs,E),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},y.prototype.onopentagend=function(E){this.endIndex=E,this.endOpenTag(!1),this.startIndex=E+1},y.prototype.onclosetag=function(E,T){var x,O,C,N,w,D;this.endIndex=T;var L=this.getSlice(E,T);if(this.lowerCaseTagNames&&(L=L.toLowerCase()),(m.has(L)||g.has(L))&&this.foreignContext.pop(),this.isVoidElement(L))!this.options.xmlMode&&L==="br"&&((O=(x=this.cbs).onopentagname)===null||O===void 0||O.call(x,"br"),(N=(C=this.cbs).onopentag)===null||N===void 0||N.call(C,"br",{},!0),(D=(w=this.cbs).onclosetag)===null||D===void 0||D.call(w,"br",!1));else{var U=this.stack.lastIndexOf(L);if(U!==-1)if(this.cbs.onclosetag)for(var M=this.stack.length-U;M--;)this.cbs.onclosetag(this.stack.pop(),M!==0);else this.stack.length=U;else!this.options.xmlMode&&L==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=T+1},y.prototype.onselfclosingtag=function(E){this.endIndex=E,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=E+1):this.onopentagend(E)},y.prototype.closeCurrentTag=function(E){var T,x,O=this.tagname;this.endOpenTag(E),this.stack[this.stack.length-1]===O&&((x=(T=this.cbs).onclosetag)===null||x===void 0||x.call(T,O,!E),this.stack.pop())},y.prototype.onattribname=function(E,T){this.startIndex=E;var x=this.getSlice(E,T);this.attribname=this.lowerCaseAttributeNames?x.toLowerCase():x},y.prototype.onattribdata=function(E,T){this.attribvalue+=this.getSlice(E,T)},y.prototype.onattribentity=function(E){this.attribvalue+=(0,i.fromCodePoint)(E)},y.prototype.onattribend=function(E,T){var x,O;this.endIndex=T,(O=(x=this.cbs).onattribute)===null||O===void 0||O.call(x,this.attribname,this.attribvalue,E===r.QuoteType.Double?'"':E===r.QuoteType.Single?"'":E===r.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},y.prototype.getInstructionName=function(E){var T=E.search(b),x=T<0?E:E.substr(0,T);return this.lowerCaseTagNames&&(x=x.toLowerCase()),x},y.prototype.ondeclaration=function(E,T){this.endIndex=T;var x=this.getSlice(E,T);if(this.cbs.onprocessinginstruction){var O=this.getInstructionName(x);this.cbs.onprocessinginstruction("!".concat(O),"!".concat(x))}this.startIndex=T+1},y.prototype.onprocessinginstruction=function(E,T){this.endIndex=T;var x=this.getSlice(E,T);if(this.cbs.onprocessinginstruction){var O=this.getInstructionName(x);this.cbs.onprocessinginstruction("?".concat(O),"?".concat(x))}this.startIndex=T+1},y.prototype.oncomment=function(E,T,x){var O,C,N,w;this.endIndex=T,(C=(O=this.cbs).oncomment)===null||C===void 0||C.call(O,this.getSlice(E,T-x)),(w=(N=this.cbs).oncommentend)===null||w===void 0||w.call(N),this.startIndex=T+1},y.prototype.oncdata=function(E,T,x){var O,C,N,w,D,L,U,M,B,Y;this.endIndex=T;var H=this.getSlice(E,T-x);this.options.xmlMode||this.options.recognizeCDATA?((C=(O=this.cbs).oncdatastart)===null||C===void 0||C.call(O),(w=(N=this.cbs).ontext)===null||w===void 0||w.call(N,H),(L=(D=this.cbs).oncdataend)===null||L===void 0||L.call(D)):((M=(U=this.cbs).oncomment)===null||M===void 0||M.call(U,"[CDATA[".concat(H,"]]")),(Y=(B=this.cbs).oncommentend)===null||Y===void 0||Y.call(B)),this.startIndex=T+1},y.prototype.onend=function(){var E,T;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var x=this.stack.length;x>0;this.cbs.onclosetag(this.stack[--x],!0));}(T=(E=this.cbs).onend)===null||T===void 0||T.call(E)},y.prototype.reset=function(){var E,T,x,O;(T=(E=this.cbs).onreset)===null||T===void 0||T.call(E),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(O=(x=this.cbs).onparserinit)===null||O===void 0||O.call(x,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},y.prototype.parseComplete=function(E){this.reset(),this.end(E)},y.prototype.getSlice=function(E,T){for(;E-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var x=this.buffers[0].slice(E-this.bufferOffset,T-this.bufferOffset);T-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),x+=this.buffers[0].slice(0,T-this.bufferOffset);return x},y.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},y.prototype.write=function(E){var T,x;if(this.ended){(x=(T=this.cbs).onerror)===null||x===void 0||x.call(T,new Error(".write() after done!"));return}this.buffers.push(E),this.tokenizer.running&&(this.tokenizer.write(E),this.writeIndex++)},y.prototype.end=function(E){var T,x;if(this.ended){(x=(T=this.cbs).onerror)===null||x===void 0||x.call(T,new Error(".end() after done!"));return}E&&this.write(E),this.ended=!0,this.tokenizer.end()},y.prototype.pause=function(){this.tokenizer.pause()},y.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},y.prototype.parseChunk=function(E){this.write(E)},y.prototype.done=function(E){this.end(E)},y}();return Io.Parser=S,Io}var Xd={},$O={},T6;function q0(){return T6||(T6=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function n(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}t.isTag=n,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype}($O)),$O}var Ht={},x6;function C6(){if(x6)return Ht;x6=1;var t=Ht&&Ht.__extends||function(){var C=function(N,w){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,L){D.__proto__=L}||function(D,L){for(var U in L)Object.prototype.hasOwnProperty.call(L,U)&&(D[U]=L[U])},C(N,w)};return function(N,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");C(N,w);function D(){this.constructor=N}N.prototype=w===null?Object.create(w):(D.prototype=w.prototype,new D)}}(),e=Ht&&Ht.__assign||function(){return e=Object.assign||function(C){for(var N,w=1,D=arguments.length;w<D;w++){N=arguments[w];for(var L in N)Object.prototype.hasOwnProperty.call(N,L)&&(C[L]=N[L])}return C},e.apply(this,arguments)};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.cloneNode=Ht.hasChildren=Ht.isDocument=Ht.isDirective=Ht.isComment=Ht.isText=Ht.isCDATA=Ht.isTag=Ht.Element=Ht.Document=Ht.CDATA=Ht.NodeWithChildren=Ht.ProcessingInstruction=Ht.Comment=Ht.Text=Ht.DataNode=Ht.Node=void 0;var n=q0(),r=function(){function C(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(C.prototype,"parentNode",{get:function(){return this.parent},set:function(N){this.parent=N},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"previousSibling",{get:function(){return this.prev},set:function(N){this.prev=N},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"nextSibling",{get:function(){return this.next},set:function(N){this.next=N},enumerable:!1,configurable:!0}),C.prototype.cloneNode=function(N){return N===void 0&&(N=!1),x(this,N)},C}();Ht.Node=r;var i=function(C){t(N,C);function N(w){var D=C.call(this)||this;return D.data=w,D}return Object.defineProperty(N.prototype,"nodeValue",{get:function(){return this.data},set:function(w){this.data=w},enumerable:!1,configurable:!0}),N}(r);Ht.DataNode=i;var a=function(C){t(N,C);function N(){var w=C!==null&&C.apply(this,arguments)||this;return w.type=n.ElementType.Text,w}return Object.defineProperty(N.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),N}(i);Ht.Text=a;var s=function(C){t(N,C);function N(){var w=C!==null&&C.apply(this,arguments)||this;return w.type=n.ElementType.Comment,w}return Object.defineProperty(N.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),N}(i);Ht.Comment=s;var o=function(C){t(N,C);function N(w,D){var L=C.call(this,D)||this;return L.name=w,L.type=n.ElementType.Directive,L}return Object.defineProperty(N.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),N}(i);Ht.ProcessingInstruction=o;var c=function(C){t(N,C);function N(w){var D=C.call(this)||this;return D.children=w,D}return Object.defineProperty(N.prototype,"firstChild",{get:function(){var w;return(w=this.children[0])!==null&&w!==void 0?w:null},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"childNodes",{get:function(){return this.children},set:function(w){this.children=w},enumerable:!1,configurable:!0}),N}(r);Ht.NodeWithChildren=c;var d=function(C){t(N,C);function N(){var w=C!==null&&C.apply(this,arguments)||this;return w.type=n.ElementType.CDATA,w}return Object.defineProperty(N.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),N}(c);Ht.CDATA=d;var f=function(C){t(N,C);function N(){var w=C!==null&&C.apply(this,arguments)||this;return w.type=n.ElementType.Root,w}return Object.defineProperty(N.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),N}(c);Ht.Document=f;var p=function(C){t(N,C);function N(w,D,L,U){L===void 0&&(L=[]),U===void 0&&(U=w==="script"?n.ElementType.Script:w==="style"?n.ElementType.Style:n.ElementType.Tag);var M=C.call(this,L)||this;return M.name=w,M.attribs=D,M.type=U,M}return Object.defineProperty(N.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"tagName",{get:function(){return this.name},set:function(w){this.name=w},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"attributes",{get:function(){var w=this;return Object.keys(this.attribs).map(function(D){var L,U;return{name:D,value:w.attribs[D],namespace:(L=w["x-attribsNamespace"])===null||L===void 0?void 0:L[D],prefix:(U=w["x-attribsPrefix"])===null||U===void 0?void 0:U[D]}})},enumerable:!1,configurable:!0}),N}(c);Ht.Element=p;function m(C){return(0,n.isTag)(C)}Ht.isTag=m;function g(C){return C.type===n.ElementType.CDATA}Ht.isCDATA=g;function b(C){return C.type===n.ElementType.Text}Ht.isText=b;function S(C){return C.type===n.ElementType.Comment}Ht.isComment=S;function y(C){return C.type===n.ElementType.Directive}Ht.isDirective=y;function E(C){return C.type===n.ElementType.Root}Ht.isDocument=E;function T(C){return Object.prototype.hasOwnProperty.call(C,"children")}Ht.hasChildren=T;function x(C,N){N===void 0&&(N=!1);var w;if(b(C))w=new a(C.data);else if(S(C))w=new s(C.data);else if(m(C)){var D=N?O(C.children):[],L=new p(C.name,e({},C.attribs),D);D.forEach(function(Y){return Y.parent=L}),C.namespace!=null&&(L.namespace=C.namespace),C["x-attribsNamespace"]&&(L["x-attribsNamespace"]=e({},C["x-attribsNamespace"])),C["x-attribsPrefix"]&&(L["x-attribsPrefix"]=e({},C["x-attribsPrefix"])),w=L}else if(g(C)){var D=N?O(C.children):[],U=new d(D);D.forEach(function(H){return H.parent=U}),w=U}else if(E(C)){var D=N?O(C.children):[],M=new f(D);D.forEach(function(H){return H.parent=M}),C["x-mode"]&&(M["x-mode"]=C["x-mode"]),w=M}else if(y(C)){var B=new o(C.name,C.data);C["x-name"]!=null&&(B["x-name"]=C["x-name"],B["x-publicId"]=C["x-publicId"],B["x-systemId"]=C["x-systemId"]),w=B}else throw new Error("Not implemented yet: ".concat(C.type));return w.startIndex=C.startIndex,w.endIndex=C.endIndex,C.sourceCodeLocation!=null&&(w.sourceCodeLocation=C.sourceCodeLocation),w}Ht.cloneNode=x;function O(C){for(var N=C.map(function(D){return x(D,!0)}),w=1;w<N.length;w++)N[w].prev=N[w-1],N[w-1].next=N[w];return N}return Ht}var O6;function bd(){return O6||(O6=1,function(t){var e=Xd&&Xd.__createBinding||(Object.create?function(o,c,d,f){f===void 0&&(f=d);var p=Object.getOwnPropertyDescriptor(c,d);(!p||("get"in p?!c.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(o,f,p)}:function(o,c,d,f){f===void 0&&(f=d),o[f]=c[d]}),n=Xd&&Xd.__exportStar||function(o,c){for(var d in o)d!=="default"&&!Object.prototype.hasOwnProperty.call(c,d)&&e(c,o,d)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=q0(),i=C6();n(C6(),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function o(c,d,f){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof d=="function"&&(f=d,d=a),typeof c=="object"&&(d=c,c=void 0),this.callback=c??null,this.options=d??a,this.elementCB=f??null}return o.prototype.onparserinit=function(c){this.parser=c},o.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},o.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},o.prototype.onerror=function(c){this.handleCallback(c)},o.prototype.onclosetag=function(){this.lastNode=null;var c=this.tagStack.pop();this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(c)},o.prototype.onopentag=function(c,d){var f=this.options.xmlMode?r.ElementType.Tag:void 0,p=new i.Element(c,d,void 0,f);this.addNode(p),this.tagStack.push(p)},o.prototype.ontext=function(c){var d=this.lastNode;if(d&&d.type===r.ElementType.Text)d.data+=c,this.options.withEndIndices&&(d.endIndex=this.parser.endIndex);else{var f=new i.Text(c);this.addNode(f),this.lastNode=f}},o.prototype.oncomment=function(c){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=c;return}var d=new i.Comment(c);this.addNode(d),this.lastNode=d},o.prototype.oncommentend=function(){this.lastNode=null},o.prototype.oncdatastart=function(){var c=new i.Text(""),d=new i.CDATA([c]);this.addNode(d),c.parent=d,this.lastNode=c},o.prototype.oncdataend=function(){this.lastNode=null},o.prototype.onprocessinginstruction=function(c,d){var f=new i.ProcessingInstruction(c,d);this.addNode(f)},o.prototype.handleCallback=function(c){if(typeof this.callback=="function")this.callback(c,this.dom);else if(c)throw c},o.prototype.addNode=function(c){var d=this.tagStack[this.tagStack.length-1],f=d.children[d.children.length-1];this.options.withStartIndices&&(c.startIndex=this.parser.startIndex),this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),d.children.push(c),f&&(c.prev=f,f.next=c),c.parent=d,this.lastNode=null},o}();t.DomHandler=s,t.default=s}(Xd)),Xd}var Zd={},Ra={},Wa={},zO={},Cc={},Uv={},R6;function MTe(){if(R6)return Uv;R6=1,Object.defineProperty(Uv,"__esModule",{value:!0});function t(e){for(var n=1;n<e.length;n++)e[n][0]+=e[n-1][0]+1;return e}return Uv.default=new Map(t([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(t([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(t([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(t([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]])),Uv}var YO={},N6;function gD(){return N6||(N6=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(i,a){return i.codePointAt(a)}:function(i,a){return(i.charCodeAt(a)&64512)===55296?(i.charCodeAt(a)-55296)*1024+i.charCodeAt(a+1)-56320+65536:i.charCodeAt(a)};function n(i){for(var a="",s=0,o;(o=t.xmlReplacer.exec(i))!==null;){var c=o.index,d=i.charCodeAt(c),f=e.get(d);f!==void 0?(a+=i.substring(s,c)+f,s=c+1):(a+="".concat(i.substring(s,c),"&#x").concat((0,t.getCodePoint)(i,c).toString(16),";"),s=t.xmlReplacer.lastIndex+=+((d&64512)===55296))}return a+i.substr(s)}t.encodeXML=n,t.escape=n;function r(i,a){return function(o){for(var c,d=0,f="";c=i.exec(o);)d!==c.index&&(f+=o.substring(d,c.index)),f+=a.get(c[0].charCodeAt(0)),d=c.index+1;return f+o.substring(d)}}t.escapeUTF8=r(/[&<>'"]/g,e),t.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))}(YO)),YO}var A6;function w6(){if(A6)return Cc;A6=1;var t=Cc&&Cc.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.encodeNonAsciiHTML=Cc.encodeHTML=void 0;var e=t(MTe()),n=gD(),r=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function i(o){return s(r,o)}Cc.encodeHTML=i;function a(o){return s(n.xmlReplacer,o)}Cc.encodeNonAsciiHTML=a;function s(o,c){for(var d="",f=0,p;(p=o.exec(c))!==null;){var m=p.index;d+=c.substring(f,m);var g=c.charCodeAt(m),b=e.default.get(g);if(typeof b=="object"){if(m+1<c.length){var S=c.charCodeAt(m+1),y=typeof b.n=="number"?b.n===S?b.o:void 0:b.n.get(S);if(y!==void 0){d+=y,f=o.lastIndex+=1;continue}}b=b.v}if(b!==void 0)d+=b,f=m+1;else{var E=(0,n.getCodePoint)(c,m);d+="&#x".concat(E.toString(16),";"),f=o.lastIndex+=+(E!==g)}}return d+c.substr(f)}return Cc}var I6;function LTe(){return I6||(I6=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=PE(),n=w6(),r=gD(),i;(function(m){m[m.XML=0]="XML",m[m.HTML=1]="HTML"})(i=t.EntityLevel||(t.EntityLevel={}));var a;(function(m){m[m.UTF8=0]="UTF8",m[m.ASCII=1]="ASCII",m[m.Extensive=2]="Extensive",m[m.Attribute=3]="Attribute",m[m.Text=4]="Text"})(a=t.EncodingMode||(t.EncodingMode={}));function s(m,g){g===void 0&&(g=i.XML);var b=typeof g=="number"?g:g.level;if(b===i.HTML){var S=typeof g=="object"?g.mode:void 0;return(0,e.decodeHTML)(m,S)}return(0,e.decodeXML)(m)}t.decode=s;function o(m,g){var b;g===void 0&&(g=i.XML);var S=typeof g=="number"?{level:g}:g;return(b=S.mode)!==null&&b!==void 0||(S.mode=e.DecodingMode.Strict),s(m,S)}t.decodeStrict=o;function c(m,g){g===void 0&&(g=i.XML);var b=typeof g=="number"?{level:g}:g;return b.mode===a.UTF8?(0,r.escapeUTF8)(m):b.mode===a.Attribute?(0,r.escapeAttribute)(m):b.mode===a.Text?(0,r.escapeText)(m):b.level===i.HTML?b.mode===a.ASCII?(0,n.encodeNonAsciiHTML)(m):(0,n.encodeHTML)(m):(0,r.encodeXML)(m)}t.encode=c;var d=gD();Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return d.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return d.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return d.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return d.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return d.escapeText}});var f=w6();Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var p=PE();Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return p.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return p.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return p.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return p.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return p.decodeXML}})}(zO)),zO}var Jd={},D6;function kTe(){return D6||(D6=1,Object.defineProperty(Jd,"__esModule",{value:!0}),Jd.attributeNames=Jd.elementNames=void 0,Jd.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]})),Jd.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}))),Jd}var M6;function PTe(){if(M6)return Wa;M6=1;var t=Wa&&Wa.__assign||function(){return t=Object.assign||function(O){for(var C,N=1,w=arguments.length;N<w;N++){C=arguments[N];for(var D in C)Object.prototype.hasOwnProperty.call(C,D)&&(O[D]=C[D])}return O},t.apply(this,arguments)},e=Wa&&Wa.__createBinding||(Object.create?function(O,C,N,w){w===void 0&&(w=N);var D=Object.getOwnPropertyDescriptor(C,N);(!D||("get"in D?!C.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return C[N]}}),Object.defineProperty(O,w,D)}:function(O,C,N,w){w===void 0&&(w=N),O[w]=C[N]}),n=Wa&&Wa.__setModuleDefault||(Object.create?function(O,C){Object.defineProperty(O,"default",{enumerable:!0,value:C})}:function(O,C){O.default=C}),r=Wa&&Wa.__importStar||function(O){if(O&&O.__esModule)return O;var C={};if(O!=null)for(var N in O)N!=="default"&&Object.prototype.hasOwnProperty.call(O,N)&&e(C,O,N);return n(C,O),C};Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.render=void 0;var i=r(q0()),a=LTe(),s=kTe(),o=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function c(O){return O.replace(/"/g,"&quot;")}function d(O,C){var N;if(O){var w=((N=C.encodeEntities)!==null&&N!==void 0?N:C.decodeEntities)===!1?c:C.xmlMode||C.encodeEntities!=="utf8"?a.encodeXML:a.escapeAttribute;return Object.keys(O).map(function(D){var L,U,M=(L=O[D])!==null&&L!==void 0?L:"";return C.xmlMode==="foreign"&&(D=(U=s.attributeNames.get(D))!==null&&U!==void 0?U:D),!C.emptyAttrs&&!C.xmlMode&&M===""?D:"".concat(D,'="').concat(w(M),'"')}).join(" ")}}var f=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function p(O,C){C===void 0&&(C={});for(var N=("length"in O)?O:[O],w="",D=0;D<N.length;D++)w+=m(N[D],C);return w}Wa.render=p,Wa.default=p;function m(O,C){switch(O.type){case i.Root:return p(O.children,C);case i.Doctype:case i.Directive:return y(O);case i.Comment:return x(O);case i.CDATA:return T(O);case i.Script:case i.Style:case i.Tag:return S(O,C);case i.Text:return E(O,C)}}var g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),b=new Set(["svg","math"]);function S(O,C){var N;C.xmlMode==="foreign"&&(O.name=(N=s.elementNames.get(O.name))!==null&&N!==void 0?N:O.name,O.parent&&g.has(O.parent.name)&&(C=t(t({},C),{xmlMode:!1}))),!C.xmlMode&&b.has(O.name)&&(C=t(t({},C),{xmlMode:"foreign"}));var w="<".concat(O.name),D=d(O.attribs,C);return D&&(w+=" ".concat(D)),O.children.length===0&&(C.xmlMode?C.selfClosingTags!==!1:C.selfClosingTags&&f.has(O.name))?(C.xmlMode||(w+=" "),w+="/>"):(w+=">",O.children.length>0&&(w+=p(O.children,C)),(C.xmlMode||!f.has(O.name))&&(w+="</".concat(O.name,">"))),w}function y(O){return"<".concat(O.data,">")}function E(O,C){var N,w=O.data||"";return((N=C.encodeEntities)!==null&&N!==void 0?N:C.decodeEntities)!==!1&&!(!C.xmlMode&&O.parent&&o.has(O.parent.name))&&(w=C.xmlMode||C.encodeEntities!=="utf8"?(0,a.encodeXML)(w):(0,a.escapeText)(w)),w}function T(O){return"<![CDATA[".concat(O.children[0].data,"]]>")}function x(O){return"<!--".concat(O.data,"-->")}return Wa}var L6;function eK(){if(L6)return Ra;L6=1;var t=Ra&&Ra.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.innerText=Ra.textContent=Ra.getText=Ra.getInnerHTML=Ra.getOuterHTML=void 0;var e=bd(),n=t(PTe()),r=q0();function i(d,f){return(0,n.default)(d,f)}Ra.getOuterHTML=i;function a(d,f){return(0,e.hasChildren)(d)?d.children.map(function(p){return i(p,f)}).join(""):""}Ra.getInnerHTML=a;function s(d){return Array.isArray(d)?d.map(s).join(""):(0,e.isTag)(d)?d.name==="br"?`
`:s(d.children):(0,e.isCDATA)(d)?s(d.children):(0,e.isText)(d)?d.data:""}Ra.getText=s;function o(d){return Array.isArray(d)?d.map(o).join(""):(0,e.hasChildren)(d)&&!(0,e.isComment)(d)?o(d.children):(0,e.isText)(d)?d.data:""}Ra.textContent=o;function c(d){return Array.isArray(d)?d.map(c).join(""):(0,e.hasChildren)(d)&&(d.type===r.ElementType.Tag||(0,e.isCDATA)(d))?c(d.children):(0,e.isText)(d)?d.data:""}return Ra.innerText=c,Ra}var fi={},k6;function BTe(){if(k6)return fi;k6=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.prevElementSibling=fi.nextElementSibling=fi.getName=fi.hasAttrib=fi.getAttributeValue=fi.getSiblings=fi.getParent=fi.getChildren=void 0;var t=bd();function e(d){return(0,t.hasChildren)(d)?d.children:[]}fi.getChildren=e;function n(d){return d.parent||null}fi.getParent=n;function r(d){var f,p,m=n(d);if(m!=null)return e(m);for(var g=[d],b=d.prev,S=d.next;b!=null;)g.unshift(b),f=b,b=f.prev;for(;S!=null;)g.push(S),p=S,S=p.next;return g}fi.getSiblings=r;function i(d,f){var p;return(p=d.attribs)===null||p===void 0?void 0:p[f]}fi.getAttributeValue=i;function a(d,f){return d.attribs!=null&&Object.prototype.hasOwnProperty.call(d.attribs,f)&&d.attribs[f]!=null}fi.hasAttrib=a;function s(d){return d.name}fi.getName=s;function o(d){for(var f,p=d.next;p!==null&&!(0,t.isTag)(p);)f=p,p=f.next;return p}fi.nextElementSibling=o;function c(d){for(var f,p=d.prev;p!==null&&!(0,t.isTag)(p);)f=p,p=f.prev;return p}return fi.prevElementSibling=c,fi}var Na={},P6;function FTe(){if(P6)return Na;P6=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.prepend=Na.prependChild=Na.append=Na.appendChild=Na.replaceElement=Na.removeElement=void 0;function t(s){if(s.prev&&(s.prev.next=s.next),s.next&&(s.next.prev=s.prev),s.parent){var o=s.parent.children,c=o.lastIndexOf(s);c>=0&&o.splice(c,1)}s.next=null,s.prev=null,s.parent=null}Na.removeElement=t;function e(s,o){var c=o.prev=s.prev;c&&(c.next=o);var d=o.next=s.next;d&&(d.prev=o);var f=o.parent=s.parent;if(f){var p=f.children;p[p.lastIndexOf(s)]=o,s.parent=null}}Na.replaceElement=e;function n(s,o){if(t(o),o.next=null,o.parent=s,s.children.push(o)>1){var c=s.children[s.children.length-2];c.next=o,o.prev=c}else o.prev=null}Na.appendChild=n;function r(s,o){t(o);var c=s.parent,d=s.next;if(o.next=d,o.prev=s,s.next=o,o.parent=c,d){if(d.prev=o,c){var f=c.children;f.splice(f.lastIndexOf(d),0,o)}}else c&&c.children.push(o)}Na.append=r;function i(s,o){if(t(o),o.parent=s,o.prev=null,s.children.unshift(o)!==1){var c=s.children[1];c.prev=o,o.next=c}else o.next=null}Na.prependChild=i;function a(s,o){t(o);var c=s.parent;if(c){var d=c.children;d.splice(d.indexOf(s),0,o)}s.prev&&(s.prev.next=o),o.parent=c,o.prev=s.prev,o.next=s,s.prev=o}return Na.prepend=a,Na}var Aa={},B6;function tK(){if(B6)return Aa;B6=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.findAll=Aa.existsOne=Aa.findOne=Aa.findOneChild=Aa.find=Aa.filter=void 0;var t=bd();function e(o,c,d,f){return d===void 0&&(d=!0),f===void 0&&(f=1/0),n(o,Array.isArray(c)?c:[c],d,f)}Aa.filter=e;function n(o,c,d,f){for(var p=[],m=[c],g=[0];;){if(g[0]>=m[0].length){if(g.length===1)return p;m.shift(),g.shift();continue}var b=m[0][g[0]++];if(o(b)&&(p.push(b),--f<=0))return p;d&&(0,t.hasChildren)(b)&&b.children.length>0&&(g.unshift(0),m.unshift(b.children))}}Aa.find=n;function r(o,c){return c.find(o)}Aa.findOneChild=r;function i(o,c,d){d===void 0&&(d=!0);for(var f=null,p=0;p<c.length&&!f;p++){var m=c[p];if((0,t.isTag)(m))o(m)?f=m:d&&m.children.length>0&&(f=i(o,m.children,!0));else continue}return f}Aa.findOne=i;function a(o,c){return c.some(function(d){return(0,t.isTag)(d)&&(o(d)||a(o,d.children))})}Aa.existsOne=a;function s(o,c){for(var d=[],f=[c],p=[0];;){if(p[0]>=f[0].length){if(f.length===1)return d;f.shift(),p.shift();continue}var m=f[0][p[0]++];(0,t.isTag)(m)&&(o(m)&&d.push(m),m.children.length>0&&(p.unshift(0),f.unshift(m.children)))}}return Aa.findAll=s,Aa}var _s={},F6;function nK(){if(F6)return _s;F6=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.getElementsByTagType=_s.getElementsByTagName=_s.getElementById=_s.getElements=_s.testElement=void 0;var t=bd(),e=tK(),n={tag_name:function(p){return typeof p=="function"?function(m){return(0,t.isTag)(m)&&p(m.name)}:p==="*"?t.isTag:function(m){return(0,t.isTag)(m)&&m.name===p}},tag_type:function(p){return typeof p=="function"?function(m){return p(m.type)}:function(m){return m.type===p}},tag_contains:function(p){return typeof p=="function"?function(m){return(0,t.isText)(m)&&p(m.data)}:function(m){return(0,t.isText)(m)&&m.data===p}}};function r(p,m){return typeof m=="function"?function(g){return(0,t.isTag)(g)&&m(g.attribs[p])}:function(g){return(0,t.isTag)(g)&&g.attribs[p]===m}}function i(p,m){return function(g){return p(g)||m(g)}}function a(p){var m=Object.keys(p).map(function(g){var b=p[g];return Object.prototype.hasOwnProperty.call(n,g)?n[g](b):r(g,b)});return m.length===0?null:m.reduce(i)}function s(p,m){var g=a(p);return g?g(m):!0}_s.testElement=s;function o(p,m,g,b){b===void 0&&(b=1/0);var S=a(p);return S?(0,e.filter)(S,m,g,b):[]}_s.getElements=o;function c(p,m,g){return g===void 0&&(g=!0),Array.isArray(m)||(m=[m]),(0,e.findOne)(r("id",p),m,g)}_s.getElementById=c;function d(p,m,g,b){return g===void 0&&(g=!0),b===void 0&&(b=1/0),(0,e.filter)(n.tag_name(p),m,g,b)}_s.getElementsByTagName=d;function f(p,m,g,b){return g===void 0&&(g=!0),b===void 0&&(b=1/0),(0,e.filter)(n.tag_type(p),m,g,b)}return _s.getElementsByTagType=f,_s}var HO={},U6;function UTe(){return U6||(U6=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var e=bd();function n(s){for(var o=s.length;--o>=0;){var c=s[o];if(o>0&&s.lastIndexOf(c,o-1)>=0){s.splice(o,1);continue}for(var d=c.parent;d;d=d.parent)if(s.includes(d)){s.splice(o,1);break}}return s}t.removeSubsets=n;var r;(function(s){s[s.DISCONNECTED=1]="DISCONNECTED",s[s.PRECEDING=2]="PRECEDING",s[s.FOLLOWING=4]="FOLLOWING",s[s.CONTAINS=8]="CONTAINS",s[s.CONTAINED_BY=16]="CONTAINED_BY"})(r=t.DocumentPosition||(t.DocumentPosition={}));function i(s,o){var c=[],d=[];if(s===o)return 0;for(var f=(0,e.hasChildren)(s)?s:s.parent;f;)c.unshift(f),f=f.parent;for(f=(0,e.hasChildren)(o)?o:o.parent;f;)d.unshift(f),f=f.parent;for(var p=Math.min(c.length,d.length),m=0;m<p&&c[m]===d[m];)m++;if(m===0)return r.DISCONNECTED;var g=c[m-1],b=g.children,S=c[m],y=d[m];return b.indexOf(S)>b.indexOf(y)?g===o?r.FOLLOWING|r.CONTAINED_BY:r.FOLLOWING:g===s?r.PRECEDING|r.CONTAINS:r.PRECEDING}t.compareDocumentPosition=i;function a(s){return s=s.filter(function(o,c,d){return!d.includes(o,c+1)}),s.sort(function(o,c){var d=i(o,c);return d&r.PRECEDING?-1:d&r.FOLLOWING?1:0}),s}t.uniqueSort=a}(HO)),HO}var qg={},j6;function jTe(){if(j6)return qg;j6=1,Object.defineProperty(qg,"__esModule",{value:!0}),qg.getFeed=void 0;var t=eK(),e=nK();function n(m){var g=c(p,m);return g?g.name==="feed"?r(g):i(g):null}qg.getFeed=n;function r(m){var g,b=m.children,S={type:"atom",items:(0,e.getElementsByTagName)("entry",b).map(function(T){var x,O=T.children,C={media:o(O)};f(C,"id","id",O),f(C,"title","title",O);var N=(x=c("link",O))===null||x===void 0?void 0:x.attribs.href;N&&(C.link=N);var w=d("summary",O)||d("content",O);w&&(C.description=w);var D=d("updated",O);return D&&(C.pubDate=new Date(D)),C})};f(S,"id","id",b),f(S,"title","title",b);var y=(g=c("link",b))===null||g===void 0?void 0:g.attribs.href;y&&(S.link=y),f(S,"description","subtitle",b);var E=d("updated",b);return E&&(S.updated=new Date(E)),f(S,"author","email",b,!0),S}function i(m){var g,b,S=(b=(g=c("channel",m.children))===null||g===void 0?void 0:g.children)!==null&&b!==void 0?b:[],y={type:m.name.substr(0,3),id:"",items:(0,e.getElementsByTagName)("item",m.children).map(function(T){var x=T.children,O={media:o(x)};f(O,"id","guid",x),f(O,"title","title",x),f(O,"link","link",x),f(O,"description","description",x);var C=d("pubDate",x)||d("dc:date",x);return C&&(O.pubDate=new Date(C)),O})};f(y,"title","title",S),f(y,"link","link",S),f(y,"description","description",S);var E=d("lastBuildDate",S);return E&&(y.updated=new Date(E)),f(y,"author","managingEditor",S,!0),y}var a=["url","type","lang"],s=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function o(m){return(0,e.getElementsByTagName)("media:content",m).map(function(g){for(var b=g.attribs,S={medium:b.medium,isDefault:!!b.isDefault},y=0,E=a;y<E.length;y++){var T=E[y];b[T]&&(S[T]=b[T])}for(var x=0,O=s;x<O.length;x++){var T=O[x];b[T]&&(S[T]=parseInt(b[T],10))}return b.expression&&(S.expression=b.expression),S})}function c(m,g){return(0,e.getElementsByTagName)(m,g,!0,1)[0]}function d(m,g,b){return b===void 0&&(b=!1),(0,t.textContent)((0,e.getElementsByTagName)(m,g,b,1)).trim()}function f(m,g,b,S,y){y===void 0&&(y=!1);var E=d(b,S,y);E&&(m[g]=E)}function p(m){return m==="rss"||m==="feed"||m==="rdf:RDF"}return qg}var G6;function VO(){return G6||(G6=1,function(t){var e=Zd&&Zd.__createBinding||(Object.create?function(i,a,s,o){o===void 0&&(o=s);var c=Object.getOwnPropertyDescriptor(a,s);(!c||("get"in c?!a.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(i,o,c)}:function(i,a,s,o){o===void 0&&(o=s),i[o]=a[s]}),n=Zd&&Zd.__exportStar||function(i,a){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,i,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,n(eK(),t),n(BTe(),t),n(FTe(),t),n(tK(),t),n(nK(),t),n(UTe(),t),n(jTe(),t);var r=bd();Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return r.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return r.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return r.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return r.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return r.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return r.hasChildren}})}(Zd)),Zd}var q6;function GTe(){return q6||(q6=1,function(t){var e=wo&&wo.__createBinding||(Object.create?function(E,T,x,O){O===void 0&&(O=x);var C=Object.getOwnPropertyDescriptor(T,x);(!C||("get"in C?!T.__esModule:C.writable||C.configurable))&&(C={enumerable:!0,get:function(){return T[x]}}),Object.defineProperty(E,O,C)}:function(E,T,x,O){O===void 0&&(O=x),E[O]=T[x]}),n=wo&&wo.__setModuleDefault||(Object.create?function(E,T){Object.defineProperty(E,"default",{enumerable:!0,value:T})}:function(E,T){E.default=T}),r=wo&&wo.__importStar||function(E){if(E&&E.__esModule)return E;var T={};if(E!=null)for(var x in E)x!=="default"&&Object.prototype.hasOwnProperty.call(E,x)&&e(T,E,x);return n(T,E),T},i=wo&&wo.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var a=y6(),s=y6();Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return s.Parser}});var o=bd(),c=bd();Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return c.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return c.DomHandler}});function d(E,T){var x=new o.DomHandler(void 0,T);return new a.Parser(x,T).end(E),x.root}t.parseDocument=d;function f(E,T){return d(E,T).children}t.parseDOM=f;function p(E,T,x){var O=new o.DomHandler(E,T,x);return new a.Parser(O,T)}t.createDomStream=p;var m=JQ();Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return i(m).default}}),t.ElementType=r(q0());var g=VO(),b=VO();Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return b.getFeed}});var S={xmlMode:!0};function y(E,T){return T===void 0&&(T=S),(0,g.getFeed)(f(E,T))}t.parseFeed=y,t.DomUtils=r(VO())}(wo)),wo}var WO,$6;function qTe(){return $6||($6=1,WO=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),WO}var jv={},z6;function $Te(){if(z6)return jv;z6=1,Object.defineProperty(jv,"__esModule",{value:!0});/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function t(n){return Object.prototype.toString.call(n)==="[object Object]"}function e(n){var r,i;return t(n)===!1?!1:(r=n.constructor,r===void 0?!0:(i=r.prototype,!(t(i)===!1||i.hasOwnProperty("isPrototypeOf")===!1)))}return jv.isPlainObject=e,jv}var QO,Y6;function zTe(){if(Y6)return QO;Y6=1;var t=function(T){return e(T)&&!n(T)};function e(E){return!!E&&typeof E=="object"}function n(E){var T=Object.prototype.toString.call(E);return T==="[object RegExp]"||T==="[object Date]"||a(E)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a(E){return E.$$typeof===i}function s(E){return Array.isArray(E)?[]:{}}function o(E,T){return T.clone!==!1&&T.isMergeableObject(E)?S(s(E),E,T):E}function c(E,T,x){return E.concat(T).map(function(O){return o(O,x)})}function d(E,T){if(!T.customMerge)return S;var x=T.customMerge(E);return typeof x=="function"?x:S}function f(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(T){return Object.propertyIsEnumerable.call(E,T)}):[]}function p(E){return Object.keys(E).concat(f(E))}function m(E,T){try{return T in E}catch{return!1}}function g(E,T){return m(E,T)&&!(Object.hasOwnProperty.call(E,T)&&Object.propertyIsEnumerable.call(E,T))}function b(E,T,x){var O={};return x.isMergeableObject(E)&&p(E).forEach(function(C){O[C]=o(E[C],x)}),p(T).forEach(function(C){g(E,C)||(m(E,C)&&x.isMergeableObject(T[C])?O[C]=d(C,x)(E[C],T[C],x):O[C]=o(T[C],x))}),O}function S(E,T,x){x=x||{},x.arrayMerge=x.arrayMerge||c,x.isMergeableObject=x.isMergeableObject||t,x.cloneUnlessOtherwiseSpecified=o;var O=Array.isArray(T),C=Array.isArray(E),N=O===C;return N?O?x.arrayMerge(E,T,x):b(E,T,x):o(T,x)}S.all=function(T,x){if(!Array.isArray(T))throw new Error("first argument should be an array");return T.reduce(function(O,C){return S(O,C,x)},{})};var y=S;return QO=y,QO}var NS={exports:{}},YTe=NS.exports,H6;function HTe(){return H6||(H6=1,function(t){(function(e,n){t.exports?t.exports=n():e.parseSrcset=n()})(YTe,function(){return function(e){function n(O){return O===" "||O==="	"||O===`
`||O==="\f"||O==="\r"}function r(O){var C,N=O.exec(e.substring(y));if(N)return C=N[0],y+=C.length,C}for(var i=e.length,a=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,o=/^[^ \t\n\r\u000c]+/,c=/[,]+$/,d=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,p,m,g,b,S,y=0,E=[];;){if(r(s),y>=i)return E;p=r(o),m=[],p.slice(-1)===","?(p=p.replace(c,""),x()):T()}function T(){for(r(a),g="",b="in descriptor";;){if(S=e.charAt(y),b==="in descriptor")if(n(S))g&&(m.push(g),g="",b="after descriptor");else if(S===","){y+=1,g&&m.push(g),x();return}else if(S==="(")g=g+S,b="in parens";else if(S===""){g&&m.push(g),x();return}else g=g+S;else if(b==="in parens")if(S===")")g=g+S,b="in descriptor";else if(S===""){m.push(g),x();return}else g=g+S;else if(b==="after descriptor"&&!n(S))if(S===""){x();return}else b="in descriptor",y-=1;y+=1}}function x(){var O=!1,C,N,w,D,L={},U,M,B,Y,H;for(D=0;D<m.length;D++)U=m[D],M=U[U.length-1],B=U.substring(0,U.length-1),Y=parseInt(B,10),H=parseFloat(B),d.test(B)&&M==="w"?((C||N)&&(O=!0),Y===0?O=!0:C=Y):f.test(B)&&M==="x"?((C||N||w)&&(O=!0),H<0?O=!0:N=H):d.test(B)&&M==="h"?((w||N)&&(O=!0),Y===0?O=!0:w=Y):O=!0;O?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+U+"'."):(L.url=p,C&&(L.w=C),N&&(L.d=N),w&&(L.h=w),E.push(L))}}})}(NS)),NS.exports}var Gv={exports:{}},V6;function VTe(){if(V6)return Gv.exports;V6=1;var t=String,e=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};return Gv.exports=e(),Gv.exports.createColors=e,Gv.exports}const WTe={},QTe=Object.freeze(Object.defineProperty({__proto__:null,default:WTe},Symbol.toStringTag,{value:"Module"})),Jo=P5(QTe);var KO,W6;function jk(){if(W6)return KO;W6=1;let t=VTe(),e=Jo;class n extends Error{constructor(i,a,s,o,c,d){super(i),this.name="CssSyntaxError",this.reason=i,c&&(this.file=c),o&&(this.source=o),d&&(this.plugin=d),typeof a<"u"&&typeof s<"u"&&(typeof a=="number"?(this.line=a,this.column=s):(this.line=a.line,this.column=a.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let a=this.source;i==null&&(i=t.isColorSupported);let s=g=>g,o=g=>g,c=g=>g;if(i){let{bold:g,gray:b,red:S}=t.createColors(!0);o=y=>g(S(y)),s=y=>b(y),e&&(c=y=>e(y))}let d=a.split(/\r?\n/),f=Math.max(this.line-3,0),p=Math.min(this.line+2,d.length),m=String(p).length;return d.slice(f,p).map((g,b)=>{let S=f+1+b,y=" "+(" "+S).slice(-m)+" | ";if(S===this.line){if(g.length>160){let T=20,x=Math.max(0,this.column-T),O=Math.max(this.column+T,this.endColumn+T),C=g.slice(x,O),N=s(y.replace(/\d/g," "))+g.slice(0,Math.min(this.column-1,T-1)).replace(/[^\t]/g," ");return o(">")+s(y)+c(C)+`
 `+N+o("^")}let E=s(y.replace(/\d/g," "))+g.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+s(y)+c(g)+`
 `+E+o("^")}return" "+s(y)+c(g)}).join(`
`)}toString(){let i=this.showSourceCode();return i&&(i=`

`+i+`
`),this.name+": "+this.message+i}}return KO=n,n.default=n,KO}var XO,Q6;function rK(){if(Q6)return XO;Q6=1;const t={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function e(r){return r[0].toUpperCase()+r.slice(1)}class n{constructor(i){this.builder=i}atrule(i,a){let s="@"+i.name,o=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName<"u"?s+=i.raws.afterName:o&&(s+=" "),i.nodes)this.block(i,s+o);else{let c=(i.raws.between||"")+(a?";":"");this.builder(s+o+c,i)}}beforeAfter(i,a){let s;i.type==="decl"?s=this.raw(i,null,"beforeDecl"):i.type==="comment"?s=this.raw(i,null,"beforeComment"):a==="before"?s=this.raw(i,null,"beforeRule"):s=this.raw(i,null,"beforeClose");let o=i.parent,c=0;for(;o&&o.type!=="root";)c+=1,o=o.parent;if(s.includes(`
`)){let d=this.raw(i,null,"indent");if(d.length)for(let f=0;f<c;f++)s+=d}return s}block(i,a){let s=this.raw(i,"between","beforeOpen");this.builder(a+s+"{",i,"start");let o;i.nodes&&i.nodes.length?(this.body(i),o=this.raw(i,"after")):o=this.raw(i,"after","emptyBody"),o&&this.builder(o),this.builder("}",i,"end")}body(i){let a=i.nodes.length-1;for(;a>0&&i.nodes[a].type==="comment";)a-=1;let s=this.raw(i,"semicolon");for(let o=0;o<i.nodes.length;o++){let c=i.nodes[o],d=this.raw(c,"before");d&&this.builder(d),this.stringify(c,a!==o||s)}}comment(i){let a=this.raw(i,"left","commentLeft"),s=this.raw(i,"right","commentRight");this.builder("/*"+a+i.text+s+"*/",i)}decl(i,a){let s=this.raw(i,"between","colon"),o=i.prop+s+this.rawValue(i,"value");i.important&&(o+=i.raws.important||" !important"),a&&(o+=";"),this.builder(o,i)}document(i){this.body(i)}raw(i,a,s){let o;if(s||(s=a),a&&(o=i.raws[a],typeof o<"u"))return o;let c=i.parent;if(s==="before"&&(!c||c.type==="root"&&c.first===i||c&&c.type==="document"))return"";if(!c)return t[s];let d=i.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[s]<"u")return d.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(i,s);{let f="raw"+e(s);this[f]?o=this[f](d,i):d.walk(p=>{if(o=p.raws[a],typeof o<"u")return!1})}return typeof o>"u"&&(o=t[s]),d.rawCache[s]=o,o}rawBeforeClose(i){let a;return i.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return a=s.raws.after,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(i,a){let s;return i.walkComments(o=>{if(typeof o.raws.before<"u")return s=o.raws.before,s.includes(`
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(a,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(i,a){let s;return i.walkDecls(o=>{if(typeof o.raws.before<"u")return s=o.raws.before,s.includes(`
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(a,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(i){let a;return i.walk(s=>{if(s.type!=="decl"&&(a=s.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(i){let a;return i.walk(s=>{if(s.nodes&&(s.parent!==i||i.first!==s)&&typeof s.raws.before<"u")return a=s.raws.before,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(s=>{if(typeof s.raws.between<"u")return a=s.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(s=>{if(s.nodes&&s.nodes.length===0&&(a=s.raws.after,typeof a<"u"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(s=>{let o=s.parent;if(o&&o!==i&&o.parent&&o.parent===i&&typeof s.raws.before<"u"){let c=s.raws.before.split(`
`);return a=c[c.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(a=s.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(i,a){let s=i[a],o=i.raws[a];return o&&o.value===s?o.raw:s}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return XO=n,n.default=n,XO}var ZO,K6;function bT(){if(K6)return ZO;K6=1;let t=rK();function e(n,r){new t(r).stringify(n)}return ZO=e,e.default=e,ZO}var qv={},X6;function Gk(){return X6||(X6=1,qv.isClean=Symbol("isClean"),qv.my=Symbol("my")),qv}var JO,Z6;function vT(){if(Z6)return JO;Z6=1;let t=jk(),e=rK(),n=bT(),{isClean:r,my:i}=Gk();function a(c,d){let f=new c.constructor;for(let p in c){if(!Object.prototype.hasOwnProperty.call(c,p)||p==="proxyCache")continue;let m=c[p],g=typeof m;p==="parent"&&g==="object"?d&&(f[p]=d):p==="source"?f[p]=m:Array.isArray(m)?f[p]=m.map(b=>a(b,f)):(g==="object"&&m!==null&&(m=a(m)),f[p]=m)}return f}function s(c,d){if(d&&typeof d.offset<"u")return d.offset;let f=1,p=1,m=0;for(let g=0;g<c.length;g++){if(p===d.line&&f===d.column){m=g;break}c[g]===`
`?(f=1,p+=1):f+=1}return m}class o{get proxyOf(){return this}constructor(d={}){this.raws={},this[r]=!1,this[i]=!0;for(let f in d)if(f==="nodes"){this.nodes=[];for(let p of d[f])typeof p.clone=="function"?this.append(p.clone()):this.append(p)}else this[f]=d[f]}addToError(d){if(d.postcssNode=this,d.stack&&this.source&&/\n\s{4}at /.test(d.stack)){let f=this.source;d.stack=d.stack.replace(/\n\s{4}at /,`$&${f.input.from}:${f.start.line}:${f.start.column}$&`)}return d}after(d){return this.parent.insertAfter(this,d),this}assign(d={}){for(let f in d)this[f]=d[f];return this}before(d){return this.parent.insertBefore(this,d),this}cleanRaws(d){delete this.raws.before,delete this.raws.after,d||delete this.raws.between}clone(d={}){let f=a(this);for(let p in d)f[p]=d[p];return f}cloneAfter(d={}){let f=this.clone(d);return this.parent.insertAfter(this,f),f}cloneBefore(d={}){let f=this.clone(d);return this.parent.insertBefore(this,f),f}error(d,f={}){if(this.source){let{end:p,start:m}=this.rangeBy(f);return this.source.input.error(d,{column:m.column,line:m.line},{column:p.column,line:p.line},f)}return new t(d)}getProxyProcessor(){return{get(d,f){return f==="proxyOf"?d:f==="root"?()=>d.root().toProxy():d[f]},set(d,f,p){return d[f]===p||(d[f]=p,(f==="prop"||f==="value"||f==="name"||f==="params"||f==="important"||f==="text")&&d.markDirty()),!0}}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let d=this;for(;d=d.parent;)d[r]=!1}}next(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d+1]}positionBy(d){let f=this.source.start;if(d.index)f=this.positionInside(d.index);else if(d.word){let p="document"in this.source.input?this.source.input.document:this.source.input.css,g=p.slice(s(p,this.source.start),s(p,this.source.end)).indexOf(d.word);g!==-1&&(f=this.positionInside(g))}return f}positionInside(d){let f=this.source.start.column,p=this.source.start.line,m="document"in this.source.input?this.source.input.document:this.source.input.css,g=s(m,this.source.start),b=g+d;for(let S=g;S<b;S++)m[S]===`
`?(f=1,p+=1):f+=1;return{column:f,line:p}}prev(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d-1]}rangeBy(d){let f={column:this.source.start.column,line:this.source.start.line},p=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:f.column+1,line:f.line};if(d.word){let m="document"in this.source.input?this.source.input.document:this.source.input.css,b=m.slice(s(m,this.source.start),s(m,this.source.end)).indexOf(d.word);b!==-1&&(f=this.positionInside(b),p=this.positionInside(b+d.word.length))}else d.start?f={column:d.start.column,line:d.start.line}:d.index&&(f=this.positionInside(d.index)),d.end?p={column:d.end.column,line:d.end.line}:typeof d.endIndex=="number"?p=this.positionInside(d.endIndex):d.index&&(p=this.positionInside(d.index+1));return(p.line<f.line||p.line===f.line&&p.column<=f.column)&&(p={column:f.column+1,line:f.line}),{end:p,start:f}}raw(d,f){return new e().raw(this,d,f)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...d){if(this.parent){let f=this,p=!1;for(let m of d)m===this?p=!0:p?(this.parent.insertAfter(f,m),f=m):this.parent.insertBefore(f,m);p||this.remove()}return this}root(){let d=this;for(;d.parent&&d.parent.type!=="document";)d=d.parent;return d}toJSON(d,f){let p={},m=f==null;f=f||new Map;let g=0;for(let b in this){if(!Object.prototype.hasOwnProperty.call(this,b)||b==="parent"||b==="proxyCache")continue;let S=this[b];if(Array.isArray(S))p[b]=S.map(y=>typeof y=="object"&&y.toJSON?y.toJSON(null,f):y);else if(typeof S=="object"&&S.toJSON)p[b]=S.toJSON(null,f);else if(b==="source"){let y=f.get(S.input);y==null&&(y=g,f.set(S.input,g),g++),p[b]={end:S.end,inputId:y,start:S.start}}else p[b]=S}return m&&(p.inputs=[...f.keys()].map(b=>b.toJSON())),p}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(d=n){d.stringify&&(d=d.stringify);let f="";return d(this,p=>{f+=p}),f}warn(d,f,p){let m={node:this};for(let g in p)m[g]=p[g];return d.warn(f,m)}}return JO=o,o.default=o,JO}var eR,J6;function ST(){if(J6)return eR;J6=1;let t=vT();class e extends t{constructor(r){super(r),this.type="comment"}}return eR=e,e.default=e,eR}var tR,e4;function ET(){if(e4)return tR;e4=1;let t=vT();class e extends t{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(r){r&&typeof r.value<"u"&&typeof r.value!="string"&&(r={...r,value:String(r.value)}),super(r),this.type="decl"}}return tR=e,e.default=e,tR}var nR,t4;function rh(){if(t4)return nR;t4=1;let t=ST(),e=ET(),n=vT(),{isClean:r,my:i}=Gk(),a,s,o,c;function d(m){return m.map(g=>(g.nodes&&(g.nodes=d(g.nodes)),delete g.source,g))}function f(m){if(m[r]=!1,m.proxyOf.nodes)for(let g of m.proxyOf.nodes)f(g)}class p extends n{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...g){for(let b of g){let S=this.normalize(b,this.last);for(let y of S)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(g){if(super.cleanRaws(g),this.nodes)for(let b of this.nodes)b.cleanRaws(g)}each(g){if(!this.proxyOf.nodes)return;let b=this.getIterator(),S,y;for(;this.indexes[b]<this.proxyOf.nodes.length&&(S=this.indexes[b],y=g(this.proxyOf.nodes[S],S),y!==!1);)this.indexes[b]+=1;return delete this.indexes[b],y}every(g){return this.nodes.every(g)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let g=this.lastEach;return this.indexes[g]=0,g}getProxyProcessor(){return{get(g,b){return b==="proxyOf"?g:g[b]?b==="each"||typeof b=="string"&&b.startsWith("walk")?(...S)=>g[b](...S.map(y=>typeof y=="function"?(E,T)=>y(E.toProxy(),T):y)):b==="every"||b==="some"?S=>g[b]((y,...E)=>S(y.toProxy(),...E)):b==="root"?()=>g.root().toProxy():b==="nodes"?g.nodes.map(S=>S.toProxy()):b==="first"||b==="last"?g[b].toProxy():g[b]:g[b]},set(g,b,S){return g[b]===S||(g[b]=S,(b==="name"||b==="params"||b==="selector")&&g.markDirty()),!0}}}index(g){return typeof g=="number"?g:(g.proxyOf&&(g=g.proxyOf),this.proxyOf.nodes.indexOf(g))}insertAfter(g,b){let S=this.index(g),y=this.normalize(b,this.proxyOf.nodes[S]).reverse();S=this.index(g);for(let T of y)this.proxyOf.nodes.splice(S+1,0,T);let E;for(let T in this.indexes)E=this.indexes[T],S<E&&(this.indexes[T]=E+y.length);return this.markDirty(),this}insertBefore(g,b){let S=this.index(g),y=S===0?"prepend":!1,E=this.normalize(b,this.proxyOf.nodes[S],y).reverse();S=this.index(g);for(let x of E)this.proxyOf.nodes.splice(S,0,x);let T;for(let x in this.indexes)T=this.indexes[x],S<=T&&(this.indexes[x]=T+E.length);return this.markDirty(),this}normalize(g,b){if(typeof g=="string")g=d(s(g).nodes);else if(typeof g>"u")g=[];else if(Array.isArray(g)){g=g.slice(0);for(let y of g)y.parent&&y.parent.removeChild(y,"ignore")}else if(g.type==="root"&&this.type!=="document"){g=g.nodes.slice(0);for(let y of g)y.parent&&y.parent.removeChild(y,"ignore")}else if(g.type)g=[g];else if(g.prop){if(typeof g.value>"u")throw new Error("Value field is missed in node creation");typeof g.value!="string"&&(g.value=String(g.value)),g=[new e(g)]}else if(g.selector||g.selectors)g=[new c(g)];else if(g.name)g=[new a(g)];else if(g.text)g=[new t(g)];else throw new Error("Unknown node type in node creation");return g.map(y=>(y[i]||p.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[r]&&f(y),y.raws||(y.raws={}),typeof y.raws.before>"u"&&b&&typeof b.raws.before<"u"&&(y.raws.before=b.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...g){g=g.reverse();for(let b of g){let S=this.normalize(b,this.first,"prepend").reverse();for(let y of S)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+S.length}return this.markDirty(),this}push(g){return g.parent=this,this.proxyOf.nodes.push(g),this}removeAll(){for(let g of this.proxyOf.nodes)g.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(g){g=this.index(g),this.proxyOf.nodes[g].parent=void 0,this.proxyOf.nodes.splice(g,1);let b;for(let S in this.indexes)b=this.indexes[S],b>=g&&(this.indexes[S]=b-1);return this.markDirty(),this}replaceValues(g,b,S){return S||(S=b,b={}),this.walkDecls(y=>{b.props&&!b.props.includes(y.prop)||b.fast&&!y.value.includes(b.fast)||(y.value=y.value.replace(g,S))}),this.markDirty(),this}some(g){return this.nodes.some(g)}walk(g){return this.each((b,S)=>{let y;try{y=g(b,S)}catch(E){throw b.addToError(E)}return y!==!1&&b.walk&&(y=b.walk(g)),y})}walkAtRules(g,b){return b?g instanceof RegExp?this.walk((S,y)=>{if(S.type==="atrule"&&g.test(S.name))return b(S,y)}):this.walk((S,y)=>{if(S.type==="atrule"&&S.name===g)return b(S,y)}):(b=g,this.walk((S,y)=>{if(S.type==="atrule")return b(S,y)}))}walkComments(g){return this.walk((b,S)=>{if(b.type==="comment")return g(b,S)})}walkDecls(g,b){return b?g instanceof RegExp?this.walk((S,y)=>{if(S.type==="decl"&&g.test(S.prop))return b(S,y)}):this.walk((S,y)=>{if(S.type==="decl"&&S.prop===g)return b(S,y)}):(b=g,this.walk((S,y)=>{if(S.type==="decl")return b(S,y)}))}walkRules(g,b){return b?g instanceof RegExp?this.walk((S,y)=>{if(S.type==="rule"&&g.test(S.selector))return b(S,y)}):this.walk((S,y)=>{if(S.type==="rule"&&S.selector===g)return b(S,y)}):(b=g,this.walk((S,y)=>{if(S.type==="rule")return b(S,y)}))}}return p.registerParse=m=>{s=m},p.registerRule=m=>{c=m},p.registerAtRule=m=>{a=m},p.registerRoot=m=>{o=m},nR=p,p.default=p,p.rebuild=m=>{m.type==="atrule"?Object.setPrototypeOf(m,a.prototype):m.type==="rule"?Object.setPrototypeOf(m,c.prototype):m.type==="decl"?Object.setPrototypeOf(m,e.prototype):m.type==="comment"?Object.setPrototypeOf(m,t.prototype):m.type==="root"&&Object.setPrototypeOf(m,o.prototype),m[i]=!0,m.nodes&&m.nodes.forEach(g=>{p.rebuild(g)})},nR}var rR,n4;function qk(){if(n4)return rR;n4=1;let t=rh();class e extends t{constructor(r){super(r),this.type="atrule"}append(...r){return this.proxyOf.nodes||(this.nodes=[]),super.append(...r)}prepend(...r){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...r)}}return rR=e,e.default=e,t.registerAtRule(e),rR}var iR,r4;function $k(){if(r4)return iR;r4=1;let t=rh(),e,n;class r extends t{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new e(new n,this,a).stringify()}}return r.registerLazyResult=i=>{e=i},r.registerProcessor=i=>{n=i},iR=r,r.default=r,iR}var aR,i4;function KTe(){if(i4)return aR;i4=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return aR={nanoid:(r=21)=>{let i="",a=r|0;for(;a--;)i+=t[Math.random()*64|0];return i},customAlphabet:(r,i=21)=>(a=i)=>{let s="",o=a|0;for(;o--;)s+=r[Math.random()*r.length|0];return s}},aR}var sR,a4;function iK(){if(a4)return sR;a4=1;let{existsSync:t,readFileSync:e}=Jo,{dirname:n,join:r}=Jo,{SourceMapConsumer:i,SourceMapGenerator:a}=Jo;function s(c){return Buffer?Buffer.from(c,"base64").toString():window.atob(c)}class o{constructor(d,f){if(f.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let p=f.map?f.map.prev:void 0,m=this.loadMap(f.from,p);!this.mapFile&&f.from&&(this.mapFile=f.from),this.mapFile&&(this.root=n(this.mapFile)),m&&(this.text=m)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(d){let f=/^data:application\/json;charset=utf-?8;base64,/,p=/^data:application\/json;base64,/,m=/^data:application\/json;charset=utf-?8,/,g=/^data:application\/json,/,b=d.match(m)||d.match(g);if(b)return decodeURIComponent(d.substr(b[0].length));let S=d.match(f)||d.match(p);if(S)return s(d.substr(S[0].length));let y=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+y)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let f=d.match(/\/\*\s*# sourceMappingURL=/g);if(!f)return;let p=d.lastIndexOf(f.pop()),m=d.indexOf("*/",p);p>-1&&m>-1&&(this.annotation=this.getAnnotationURL(d.substring(p,m)))}loadFile(d){if(this.root=n(d),t(d))return this.mapFile=d,e(d,"utf-8").toString().trim()}loadMap(d,f){if(f===!1)return!1;if(f){if(typeof f=="string")return f;if(typeof f=="function"){let p=f(d);if(p){let m=this.loadFile(p);if(!m)throw new Error("Unable to load previous source map: "+p.toString());return m}}else{if(f instanceof i)return a.fromSourceMap(f).toString();if(f instanceof a)return f.toString();if(this.isMap(f))return JSON.stringify(f);throw new Error("Unsupported previous source map format: "+f.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let p=this.annotation;return d&&(p=r(n(d),p)),this.loadFile(p)}}}startWith(d,f){return d?d.substr(0,f.length)===f:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return sR=o,o.default=o,sR}var oR,s4;function yT(){if(s4)return oR;s4=1;let{nanoid:t}=KTe(),{isAbsolute:e,resolve:n}=Jo,{SourceMapConsumer:r,SourceMapGenerator:i}=Jo,{fileURLToPath:a,pathToFileURL:s}=Jo,o=jk(),c=iK(),d=Jo,f=Symbol("fromOffsetCache"),p=!!(r&&i),m=!!(n&&e);class g{get from(){return this.file||this.id}constructor(S,y={}){if(S===null||typeof S>"u"||typeof S=="object"&&!S.toString)throw new Error(`PostCSS received ${S} instead of CSS string`);if(this.css=S.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,y.document&&(this.document=y.document.toString()),y.from&&(!m||/^\w+:\/\//.test(y.from)||e(y.from)?this.file=y.from:this.file=n(y.from)),m&&p){let E=new c(this.css,y);if(E.text){this.map=E;let T=E.consumer().file;!this.file&&T&&(this.file=this.mapResolve(T))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(S,y,E,T={}){let x,O,C;if(y&&typeof y=="object"){let w=y,D=E;if(typeof w.offset=="number"){let L=this.fromOffset(w.offset);y=L.line,E=L.col}else y=w.line,E=w.column;if(typeof D.offset=="number"){let L=this.fromOffset(D.offset);O=L.line,x=L.col}else O=D.line,x=D.column}else if(!E){let w=this.fromOffset(y);y=w.line,E=w.col}let N=this.origin(y,E,O,x);return N?C=new o(S,N.endLine===void 0?N.line:{column:N.column,line:N.line},N.endLine===void 0?N.column:{column:N.endColumn,line:N.endLine},N.source,N.file,T.plugin):C=new o(S,O===void 0?y:{column:E,line:y},O===void 0?E:{column:x,line:O},this.css,this.file,T.plugin),C.input={column:E,endColumn:x,endLine:O,line:y,source:this.css},this.file&&(s&&(C.input.url=s(this.file).toString()),C.input.file=this.file),C}fromOffset(S){let y,E;if(this[f])E=this[f];else{let x=this.css.split(`
`);E=new Array(x.length);let O=0;for(let C=0,N=x.length;C<N;C++)E[C]=O,O+=x[C].length+1;this[f]=E}y=E[E.length-1];let T=0;if(S>=y)T=E.length-1;else{let x=E.length-2,O;for(;T<x;)if(O=T+(x-T>>1),S<E[O])x=O-1;else if(S>=E[O+1])T=O+1;else{T=O;break}}return{col:S-E[T]+1,line:T+1}}mapResolve(S){return/^\w+:\/\//.test(S)?S:n(this.map.consumer().sourceRoot||this.map.root||".",S)}origin(S,y,E,T){if(!this.map)return!1;let x=this.map.consumer(),O=x.originalPositionFor({column:y,line:S});if(!O.source)return!1;let C;typeof E=="number"&&(C=x.originalPositionFor({column:T,line:E}));let N;e(O.source)?N=s(O.source):N=new URL(O.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let w={column:O.column,endColumn:C&&C.column,endLine:C&&C.line,line:O.line,url:N.toString()};if(N.protocol==="file:")if(a)w.file=a(N);else throw new Error("file: protocol is not available in this PostCSS build");let D=x.sourceContentFor(O.source);return D&&(w.source=D),w}toJSON(){let S={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(S[y]=this[y]);return this.map&&(S.map={...this.map},S.map.consumerCache&&(S.map.consumerCache=void 0)),S}}return oR=g,g.default=g,d&&d.registerInput&&d.registerInput(g),oR}var lR,o4;function $0(){if(o4)return lR;o4=1;let t=rh(),e,n;class r extends t{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,s,o){let c=super.normalize(a);if(s){if(o==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let d of c)d.raws.before=s.raws.before}return c}removeChild(a,s){let o=this.index(a);return!s&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),super.removeChild(a)}toResult(a={}){return new e(new n,this,a).stringify()}}return r.registerLazyResult=i=>{e=i},r.registerProcessor=i=>{n=i},lR=r,r.default=r,t.registerRoot(r),lR}var cR,l4;function aK(){if(l4)return cR;l4=1;let t={comma(e){return t.split(e,[","],!0)},space(e){let n=[" ",`
`,"	"];return t.split(e,n)},split(e,n,r){let i=[],a="",s=!1,o=0,c=!1,d="",f=!1;for(let p of e)f?f=!1:p==="\\"?f=!0:c?p===d&&(c=!1):p==='"'||p==="'"?(c=!0,d=p):p==="("?o+=1:p===")"?o>0&&(o-=1):o===0&&n.includes(p)&&(s=!0),s?(a!==""&&i.push(a.trim()),a="",s=!1):a+=p;return(r||a!=="")&&i.push(a.trim()),i}};return cR=t,t.default=t,cR}var uR,c4;function zk(){if(c4)return uR;c4=1;let t=rh(),e=aK();class n extends t{get selectors(){return e.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,s=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(s)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return uR=n,n.default=n,t.registerRule(n),uR}var dR,u4;function XTe(){if(u4)return dR;u4=1;let t=qk(),e=ST(),n=ET(),r=yT(),i=iK(),a=$0(),s=zk();function o(c,d){if(Array.isArray(c))return c.map(m=>o(m));let{inputs:f,...p}=c;if(f){d=[];for(let m of f){let g={...m,__proto__:r.prototype};g.map&&(g.map={...g.map,__proto__:i.prototype}),d.push(g)}}if(p.nodes&&(p.nodes=c.nodes.map(m=>o(m,d))),p.source){let{inputId:m,...g}=p.source;p.source=g,m!=null&&(p.source.input=d[m])}if(p.type==="root")return new a(p);if(p.type==="decl")return new n(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new e(p);if(p.type==="atrule")return new t(p);throw new Error("Unknown node type: "+c.type)}return dR=o,o.default=o,dR}var fR,d4;function sK(){if(d4)return fR;d4=1;let{dirname:t,relative:e,resolve:n,sep:r}=Jo,{SourceMapConsumer:i,SourceMapGenerator:a}=Jo,{pathToFileURL:s}=Jo,o=yT(),c=!!(i&&a),d=!!(t&&n&&e&&r);class f{constructor(m,g,b,S){this.stringify=m,this.mapOpts=b.map||{},this.root=g,this.opts=b,this.css=S,this.originalCSS=S,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let m;this.isInline()?m="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?m=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?m=this.mapOpts.annotation(this.opts.to,this.root):m=this.outputFile()+".map";let g=`
`;this.css.includes(`\r
`)&&(g=`\r
`),this.css+=g+"/*# sourceMappingURL="+m+" */"}applyPrevMaps(){for(let m of this.previous()){let g=this.toUrl(this.path(m.file)),b=m.root||t(m.file),S;this.mapOpts.sourcesContent===!1?(S=new i(m.text),S.sourcesContent&&(S.sourcesContent=null)):S=m.consumer(),this.map.applySourceMap(S,g,this.toUrl(this.path(b)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let m;for(let g=this.root.nodes.length-1;g>=0;g--)m=this.root.nodes[g],m.type==="comment"&&m.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(g)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&c&&this.isMap())return this.generateMap();{let m="";return this.stringify(this.root,g=>{m+=g}),[m]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let m=this.previous()[0].consumer();m.file=this.outputFile(),this.map=a.fromSourceMap(m,{ignoreInvalidMapping:!0})}else this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0});let m=1,g=1,b="<no source>",S={generated:{column:0,line:0},original:{column:0,line:0},source:""},y,E;this.stringify(this.root,(T,x,O)=>{if(this.css+=T,x&&O!=="end"&&(S.generated.line=m,S.generated.column=g-1,x.source&&x.source.start?(S.source=this.sourcePath(x),S.original.line=x.source.start.line,S.original.column=x.source.start.column-1,this.map.addMapping(S)):(S.source=b,S.original.line=1,S.original.column=0,this.map.addMapping(S))),E=T.match(/\n/g),E?(m+=E.length,y=T.lastIndexOf(`
`),g=T.length-y):g+=T.length,x&&O!=="start"){let C=x.parent||{raws:{}};(!(x.type==="decl"||x.type==="atrule"&&!x.nodes)||x!==C.last||C.raws.semicolon)&&(x.source&&x.source.end?(S.source=this.sourcePath(x),S.original.line=x.source.end.line,S.original.column=x.source.end.column-1,S.generated.line=m,S.generated.column=g-2,this.map.addMapping(S)):(S.source=b,S.original.line=1,S.original.column=0,S.generated.line=m,S.generated.column=g-1,this.map.addMapping(S)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(m=>m.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let m=this.mapOpts.annotation;return typeof m<"u"&&m!==!0?!1:this.previous().length?this.previous().some(g=>g.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(m=>m.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(m){if(this.mapOpts.absolute||m.charCodeAt(0)===60||/^\w+:\/\//.test(m))return m;let g=this.memoizedPaths.get(m);if(g)return g;let b=this.opts.to?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(b=t(n(b,this.mapOpts.annotation)));let S=e(b,m);return this.memoizedPaths.set(m,S),S}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(m=>{if(m.source&&m.source.input.map){let g=m.source.input.map;this.previousMaps.includes(g)||this.previousMaps.push(g)}});else{let m=new o(this.originalCSS,this.opts);m.map&&this.previousMaps.push(m.map)}return this.previousMaps}setSourcesContent(){let m={};if(this.root)this.root.walk(g=>{if(g.source){let b=g.source.input.from;if(b&&!m[b]){m[b]=!0;let S=this.usesFileUrls?this.toFileUrl(b):this.toUrl(this.path(b));this.map.setSourceContent(S,g.source.input.css)}}});else if(this.css){let g=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(g,this.css)}}sourcePath(m){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(m.source.input.from):this.toUrl(this.path(m.source.input.from))}toBase64(m){return Buffer?Buffer.from(m).toString("base64"):window.btoa(unescape(encodeURIComponent(m)))}toFileUrl(m){let g=this.memoizedFileURLs.get(m);if(g)return g;if(s){let b=s(m).toString();return this.memoizedFileURLs.set(m,b),b}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(m){let g=this.memoizedURLs.get(m);if(g)return g;r==="\\"&&(m=m.replace(/\\/g,"/"));let b=encodeURI(m).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(m,b),b}}return fR=f,fR}var hR,f4;function ZTe(){if(f4)return hR;f4=1;const t=39,e=34,n=92,r=47,i=10,a=32,s=12,o=9,c=13,d=91,f=93,p=40,m=41,g=123,b=125,S=59,y=42,E=58,T=64,x=/[\t\n\f\r "#'()/;[\\\]{}]/g,O=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,C=/.[\r\n"'(/\\]/,N=/[\da-f]/i;return hR=function(D,L={}){let U=D.css.valueOf(),M=L.ignoreErrors,B,Y,H,F,k,P,z,V,G,Q,Z=U.length,X=0,ue=[],fe=[];function be(){return X}function ye(oe){throw D.error("Unclosed "+oe,X)}function Ne(){return fe.length===0&&X>=Z}function ke(oe){if(fe.length)return fe.pop();if(X>=Z)return;let Se=oe?oe.ignoreUnclosed:!1;switch(B=U.charCodeAt(X),B){case i:case a:case o:case c:case s:{F=X;do F+=1,B=U.charCodeAt(F);while(B===a||B===i||B===o||B===c||B===s);P=["space",U.slice(X,F)],X=F-1;break}case d:case f:case g:case b:case E:case S:case m:{let le=String.fromCharCode(B);P=[le,le,X];break}case p:{if(Q=ue.length?ue.pop()[1]:"",G=U.charCodeAt(X+1),Q==="url"&&G!==t&&G!==e&&G!==a&&G!==i&&G!==o&&G!==s&&G!==c){F=X;do{if(z=!1,F=U.indexOf(")",F+1),F===-1)if(M||Se){F=X;break}else ye("bracket");for(V=F;U.charCodeAt(V-1)===n;)V-=1,z=!z}while(z);P=["brackets",U.slice(X,F+1),X,F],X=F}else F=U.indexOf(")",X+1),Y=U.slice(X,F+1),F===-1||C.test(Y)?P=["(","(",X]:(P=["brackets",Y,X,F],X=F);break}case t:case e:{k=B===t?"'":'"',F=X;do{if(z=!1,F=U.indexOf(k,F+1),F===-1)if(M||Se){F=X+1;break}else ye("string");for(V=F;U.charCodeAt(V-1)===n;)V-=1,z=!z}while(z);P=["string",U.slice(X,F+1),X,F],X=F;break}case T:{x.lastIndex=X+1,x.test(U),x.lastIndex===0?F=U.length-1:F=x.lastIndex-2,P=["at-word",U.slice(X,F+1),X,F],X=F;break}case n:{for(F=X,H=!0;U.charCodeAt(F+1)===n;)F+=1,H=!H;if(B=U.charCodeAt(F+1),H&&B!==r&&B!==a&&B!==i&&B!==o&&B!==c&&B!==s&&(F+=1,N.test(U.charAt(F)))){for(;N.test(U.charAt(F+1));)F+=1;U.charCodeAt(F+1)===a&&(F+=1)}P=["word",U.slice(X,F+1),X,F],X=F;break}default:{B===r&&U.charCodeAt(X+1)===y?(F=U.indexOf("*/",X+2)+1,F===0&&(M||Se?F=U.length:ye("comment")),P=["comment",U.slice(X,F+1),X,F],X=F):(O.lastIndex=X+1,O.test(U),O.lastIndex===0?F=U.length-1:F=O.lastIndex-2,P=["word",U.slice(X,F+1),X,F],ue.push(P),X=F);break}}return X++,P}function Oe(oe){fe.push(oe)}return{back:Oe,endOfFile:Ne,nextToken:ke,position:be}},hR}var pR,h4;function JTe(){if(h4)return pR;h4=1;let t=qk(),e=ST(),n=ET(),r=$0(),i=zk(),a=ZTe();const s={empty:!0,space:!0};function o(d){for(let f=d.length-1;f>=0;f--){let p=d[f],m=p[3]||p[2];if(m)return m}}class c{constructor(f){this.input=f,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:f,start:{column:1,line:1,offset:0}}}atrule(f){let p=new t;p.name=f[1].slice(1),p.name===""&&this.unnamedAtrule(p,f),this.init(p,f[2]);let m,g,b,S=!1,y=!1,E=[],T=[];for(;!this.tokenizer.endOfFile();){if(f=this.tokenizer.nextToken(),m=f[0],m==="("||m==="["?T.push(m==="("?")":"]"):m==="{"&&T.length>0?T.push("}"):m===T[T.length-1]&&T.pop(),T.length===0)if(m===";"){p.source.end=this.getPosition(f[2]),p.source.end.offset++,this.semicolon=!0;break}else if(m==="{"){y=!0;break}else if(m==="}"){if(E.length>0){for(b=E.length-1,g=E[b];g&&g[0]==="space";)g=E[--b];g&&(p.source.end=this.getPosition(g[3]||g[2]),p.source.end.offset++)}this.end(f);break}else E.push(f);else E.push(f);if(this.tokenizer.endOfFile()){S=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(E),E.length?(p.raws.afterName=this.spacesAndCommentsFromStart(E),this.raw(p,"params",E),S&&(f=E[E.length-1],p.source.end=this.getPosition(f[3]||f[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),y&&(p.nodes=[],this.current=p)}checkMissedSemicolon(f){let p=this.colon(f);if(p===!1)return;let m=0,g;for(let b=p-1;b>=0&&(g=f[b],!(g[0]!=="space"&&(m+=1,m===2)));b--);throw this.input.error("Missed semicolon",g[0]==="word"?g[3]+1:g[2])}colon(f){let p=0,m,g,b;for(let[S,y]of f.entries()){if(g=y,b=g[0],b==="("&&(p+=1),b===")"&&(p-=1),p===0&&b===":")if(!m)this.doubleColon(g);else{if(m[0]==="word"&&m[1]==="progid")continue;return S}m=g}return!1}comment(f){let p=new e;this.init(p,f[2]),p.source.end=this.getPosition(f[3]||f[2]),p.source.end.offset++;let m=f[1].slice(2,-2);if(/^\s*$/.test(m))p.text="",p.raws.left=m,p.raws.right="";else{let g=m.match(/^(\s*)([^]*\S)(\s*)$/);p.text=g[2],p.raws.left=g[1],p.raws.right=g[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(f,p){let m=new n;this.init(m,f[0][2]);let g=f[f.length-1];for(g[0]===";"&&(this.semicolon=!0,f.pop()),m.source.end=this.getPosition(g[3]||g[2]||o(f)),m.source.end.offset++;f[0][0]!=="word";)f.length===1&&this.unknownWord(f),m.raws.before+=f.shift()[1];for(m.source.start=this.getPosition(f[0][2]),m.prop="";f.length;){let T=f[0][0];if(T===":"||T==="space"||T==="comment")break;m.prop+=f.shift()[1]}m.raws.between="";let b;for(;f.length;)if(b=f.shift(),b[0]===":"){m.raws.between+=b[1];break}else b[0]==="word"&&/\w/.test(b[1])&&this.unknownWord([b]),m.raws.between+=b[1];(m.prop[0]==="_"||m.prop[0]==="*")&&(m.raws.before+=m.prop[0],m.prop=m.prop.slice(1));let S=[],y;for(;f.length&&(y=f[0][0],!(y!=="space"&&y!=="comment"));)S.push(f.shift());this.precheckMissedSemicolon(f);for(let T=f.length-1;T>=0;T--){if(b=f[T],b[1].toLowerCase()==="!important"){m.important=!0;let x=this.stringFrom(f,T);x=this.spacesFromEnd(f)+x,x!==" !important"&&(m.raws.important=x);break}else if(b[1].toLowerCase()==="important"){let x=f.slice(0),O="";for(let C=T;C>0;C--){let N=x[C][0];if(O.trim().startsWith("!")&&N!=="space")break;O=x.pop()[1]+O}O.trim().startsWith("!")&&(m.important=!0,m.raws.important=O,f=x)}if(b[0]!=="space"&&b[0]!=="comment")break}f.some(T=>T[0]!=="space"&&T[0]!=="comment")&&(m.raws.between+=S.map(T=>T[1]).join(""),S=[]),this.raw(m,"value",S.concat(f),p),m.value.includes(":")&&!p&&this.checkMissedSemicolon(f)}doubleColon(f){throw this.input.error("Double colon",{offset:f[2]},{offset:f[2]+f[1].length})}emptyRule(f){let p=new i;this.init(p,f[2]),p.selector="",p.raws.between="",this.current=p}end(f){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(f[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(f)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(f){if(this.spaces+=f[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="",p.source.end=this.getPosition(f[2]),p.source.end.offset+=p.raws.ownSemicolon.length)}}getPosition(f){let p=this.input.fromOffset(f);return{column:p.col,line:p.line,offset:f}}init(f,p){this.current.push(f),f.source={input:this.input,start:this.getPosition(p)},f.raws.before=this.spaces,this.spaces="",f.type!=="comment"&&(this.semicolon=!1)}other(f){let p=!1,m=null,g=!1,b=null,S=[],y=f[1].startsWith("--"),E=[],T=f;for(;T;){if(m=T[0],E.push(T),m==="("||m==="[")b||(b=T),S.push(m==="("?")":"]");else if(y&&g&&m==="{")b||(b=T),S.push("}");else if(S.length===0)if(m===";")if(g){this.decl(E,y);return}else break;else if(m==="{"){this.rule(E);return}else if(m==="}"){this.tokenizer.back(E.pop()),p=!0;break}else m===":"&&(g=!0);else m===S[S.length-1]&&(S.pop(),S.length===0&&(b=null));T=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),S.length>0&&this.unclosedBracket(b),p&&g){if(!y)for(;E.length&&(T=E[E.length-1][0],!(T!=="space"&&T!=="comment"));)this.tokenizer.back(E.pop());this.decl(E,y)}else this.unknownWord(E)}parse(){let f;for(;!this.tokenizer.endOfFile();)switch(f=this.tokenizer.nextToken(),f[0]){case"space":this.spaces+=f[1];break;case";":this.freeSemicolon(f);break;case"}":this.end(f);break;case"comment":this.comment(f);break;case"at-word":this.atrule(f);break;case"{":this.emptyRule(f);break;default:this.other(f);break}this.endFile()}precheckMissedSemicolon(){}raw(f,p,m,g){let b,S,y=m.length,E="",T=!0,x,O;for(let C=0;C<y;C+=1)b=m[C],S=b[0],S==="space"&&C===y-1&&!g?T=!1:S==="comment"?(O=m[C-1]?m[C-1][0]:"empty",x=m[C+1]?m[C+1][0]:"empty",!s[O]&&!s[x]?E.slice(-1)===","?T=!1:E+=b[1]:T=!1):E+=b[1];if(!T){let C=m.reduce((N,w)=>N+w[1],"");f.raws[p]={raw:C,value:E}}f[p]=E}rule(f){f.pop();let p=new i;this.init(p,f[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(f),this.raw(p,"selector",f),this.current=p}spacesAndCommentsFromEnd(f){let p,m="";for(;f.length&&(p=f[f.length-1][0],!(p!=="space"&&p!=="comment"));)m=f.pop()[1]+m;return m}spacesAndCommentsFromStart(f){let p,m="";for(;f.length&&(p=f[0][0],!(p!=="space"&&p!=="comment"));)m+=f.shift()[1];return m}spacesFromEnd(f){let p,m="";for(;f.length&&(p=f[f.length-1][0],p==="space");)m=f.pop()[1]+m;return m}stringFrom(f,p){let m="";for(let g=p;g<f.length;g++)m+=f[g][1];return f.splice(p,f.length-p),m}unclosedBlock(){let f=this.current.source.start;throw this.input.error("Unclosed block",f.line,f.column)}unclosedBracket(f){throw this.input.error("Unclosed bracket",{offset:f[2]},{offset:f[2]+1})}unexpectedClose(f){throw this.input.error("Unexpected }",{offset:f[2]},{offset:f[2]+1})}unknownWord(f){throw this.input.error("Unknown word "+f[0][1],{offset:f[0][2]},{offset:f[0][2]+f[0][1].length})}unnamedAtrule(f,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return pR=c,pR}var mR,p4;function Yk(){if(p4)return mR;p4=1;let t=rh(),e=yT(),n=JTe();function r(i,a){let s=new e(i,a),o=new n(s);try{o.parse()}catch(c){throw c}return o.root}return mR=r,r.default=r,t.registerParse(r),mR}var gR,m4;function oK(){if(m4)return gR;m4=1;class t{constructor(n,r={}){if(this.type="warning",this.text=n,r.node&&r.node.source){let i=r.node.rangeBy(r);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in r)this[i]=r[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return gR=t,t.default=t,gR}var _R,g4;function Hk(){if(g4)return _R;g4=1;let t=oK();class e{get content(){return this.css}constructor(r,i,a){this.processor=r,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(r,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new t(r,i);return this.messages.push(a),a}warnings(){return this.messages.filter(r=>r.type==="warning")}}return _R=e,e.default=e,_R}var bR,_4;function lK(){if(_4)return bR;_4=1;let t=rh(),e=$k(),n=sK(),r=Yk(),i=Hk(),a=$0(),s=bT(),{isClean:o,my:c}=Gk();const d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0},m=0;function g(x){return typeof x=="object"&&typeof x.then=="function"}function b(x){let O=!1,C=d[x.type];return x.type==="decl"?O=x.prop.toLowerCase():x.type==="atrule"&&(O=x.name.toLowerCase()),O&&x.append?[C,C+"-"+O,m,C+"Exit",C+"Exit-"+O]:O?[C,C+"-"+O,C+"Exit",C+"Exit-"+O]:x.append?[C,m,C+"Exit"]:[C,C+"Exit"]}function S(x){let O;return x.type==="document"?O=["Document",m,"DocumentExit"]:x.type==="root"?O=["Root",m,"RootExit"]:O=b(x),{eventIndex:0,events:O,iterator:0,node:x,visitorIndex:0,visitors:[]}}function y(x){return x[o]=!1,x.nodes&&x.nodes.forEach(O=>y(O)),x}let E={};class T{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(O,C,N){this.stringified=!1,this.processed=!1;let w;if(typeof C=="object"&&C!==null&&(C.type==="root"||C.type==="document"))w=y(C);else if(C instanceof T||C instanceof i)w=y(C.root),C.map&&(typeof N.map>"u"&&(N.map={}),N.map.inline||(N.map.inline=!1),N.map.prev=C.map);else{let D=r;N.syntax&&(D=N.syntax.parse),N.parser&&(D=N.parser),D.parse&&(D=D.parse);try{w=D(C,N)}catch(L){this.processed=!0,this.error=L}w&&!w[c]&&t.rebuild(w)}this.result=new i(O,w,N),this.helpers={...E,postcss:E,result:this.result},this.plugins=this.processor.plugins.map(D=>typeof D=="object"&&D.prepare?{...D,...D.prepare(this.result)}:D)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(O){return this.async().catch(O)}finally(O){return this.async().then(O,O)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(O,C){let N=this.result.lastPlugin;try{C&&C.addToError(O),this.error=O,O.name==="CssSyntaxError"&&!O.plugin?(O.plugin=N.postcssPlugin,O.setMessage()):N.postcssVersion}catch(w){console&&console.error&&console.error(w)}return O}prepareVisitors(){this.listeners={};let O=(C,N,w)=>{this.listeners[N]||(this.listeners[N]=[]),this.listeners[N].push([C,w])};for(let C of this.plugins)if(typeof C=="object")for(let N in C){if(!f[N]&&/^[A-Z]/.test(N))throw new Error(`Unknown event ${N} in ${C.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[N])if(typeof C[N]=="object")for(let w in C[N])w==="*"?O(C,N,C[N][w]):O(C,N+"-"+w.toLowerCase(),C[N][w]);else typeof C[N]=="function"&&O(C,N,C[N])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let O=0;O<this.plugins.length;O++){let C=this.plugins[O],N=this.runOnRoot(C);if(g(N))try{await N}catch(w){throw this.handleError(w)}}if(this.prepareVisitors(),this.hasListener){let O=this.result.root;for(;!O[o];){O[o]=!0;let C=[S(O)];for(;C.length>0;){let N=this.visitTick(C);if(g(N))try{await N}catch(w){let D=C[C.length-1].node;throw this.handleError(w,D)}}}if(this.listeners.OnceExit)for(let[C,N]of this.listeners.OnceExit){this.result.lastPlugin=C;try{if(O.type==="document"){let w=O.nodes.map(D=>N(D,this.helpers));await Promise.all(w)}else await N(O,this.helpers)}catch(w){throw this.handleError(w)}}}return this.processed=!0,this.stringify()}runOnRoot(O){this.result.lastPlugin=O;try{if(typeof O=="object"&&O.Once){if(this.result.root.type==="document"){let C=this.result.root.nodes.map(N=>O.Once(N,this.helpers));return g(C[0])?Promise.all(C):C}return O.Once(this.result.root,this.helpers)}else if(typeof O=="function")return O(this.result.root,this.result)}catch(C){throw this.handleError(C)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let O=this.result.opts,C=s;O.syntax&&(C=O.syntax.stringify),O.stringifier&&(C=O.stringifier),C.stringify&&(C=C.stringify);let w=new n(C,this.result.root,this.result.opts).generate();return this.result.css=w[0],this.result.map=w[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let O of this.plugins){let C=this.runOnRoot(O);if(g(C))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let O=this.result.root;for(;!O[o];)O[o]=!0,this.walkSync(O);if(this.listeners.OnceExit)if(O.type==="document")for(let C of O.nodes)this.visitSync(this.listeners.OnceExit,C);else this.visitSync(this.listeners.OnceExit,O)}return this.result}then(O,C){return this.async().then(O,C)}toString(){return this.css}visitSync(O,C){for(let[N,w]of O){this.result.lastPlugin=N;let D;try{D=w(C,this.helpers)}catch(L){throw this.handleError(L,C.proxyOf)}if(C.type!=="root"&&C.type!=="document"&&!C.parent)return!0;if(g(D))throw this.getAsyncError()}}visitTick(O){let C=O[O.length-1],{node:N,visitors:w}=C;if(N.type!=="root"&&N.type!=="document"&&!N.parent){O.pop();return}if(w.length>0&&C.visitorIndex<w.length){let[L,U]=w[C.visitorIndex];C.visitorIndex+=1,C.visitorIndex===w.length&&(C.visitors=[],C.visitorIndex=0),this.result.lastPlugin=L;try{return U(N.toProxy(),this.helpers)}catch(M){throw this.handleError(M,N)}}if(C.iterator!==0){let L=C.iterator,U;for(;U=N.nodes[N.indexes[L]];)if(N.indexes[L]+=1,!U[o]){U[o]=!0,O.push(S(U));return}C.iterator=0,delete N.indexes[L]}let D=C.events;for(;C.eventIndex<D.length;){let L=D[C.eventIndex];if(C.eventIndex+=1,L===m){N.nodes&&N.nodes.length&&(N[o]=!0,C.iterator=N.getIterator());return}else if(this.listeners[L]){C.visitors=this.listeners[L];return}}O.pop()}walkSync(O){O[o]=!0;let C=b(O);for(let N of C)if(N===m)O.nodes&&O.each(w=>{w[o]||this.walkSync(w)});else{let w=this.listeners[N];if(w&&this.visitSync(w,O.toProxy()))return}}warnings(){return this.sync().warnings()}}return T.registerPostcss=x=>{E=x},bR=T,T.default=T,a.registerLazyResult(T),e.registerLazyResult(T),bR}var vR,b4;function exe(){if(b4)return vR;b4=1;let t=sK(),e=Yk();const n=Hk();let r=bT();class i{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let s,o=e;try{s=o(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(s,o,c){o=o.toString(),this.stringified=!1,this._processor=s,this._css=o,this._opts=c,this._map=void 0;let d,f=r;this.result=new n(this._processor,d,this._opts),this.result.css=o;let p=this;Object.defineProperty(this.result,"root",{get(){return p.root}});let m=new t(f,d,this._opts,o);if(m.isMap()){let[g,b]=m.generate();g&&(this.result.css=g),b&&(this.result.map=b)}else m.clearAnnotation(),this.result.css=m.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,o){return this.async().then(s,o)}toString(){return this._css}warnings(){return[]}}return vR=i,i.default=i,vR}var SR,v4;function txe(){if(v4)return SR;v4=1;let t=$k(),e=lK(),n=exe(),r=$0();class i{constructor(s=[]){this.version="8.5.3",this.plugins=this.normalize(s)}normalize(s){let o=[];for(let c of s)if(c.postcss===!0?c=c():c.postcss&&(c=c.postcss),typeof c=="object"&&Array.isArray(c.plugins))o=o.concat(c.plugins);else if(typeof c=="object"&&c.postcssPlugin)o.push(c);else if(typeof c=="function")o.push(c);else if(!(typeof c=="object"&&(c.parse||c.stringify)))throw new Error(c+" is not a PostCSS plugin");return o}process(s,o={}){return!this.plugins.length&&!o.parser&&!o.stringifier&&!o.syntax?new n(this,s,o):new e(this,s,o)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return SR=i,i.default=i,r.registerProcessor(i),t.registerProcessor(i),SR}var ER,S4;function nxe(){if(S4)return ER;S4=1;var t={};let e=qk(),n=ST(),r=rh(),i=jk(),a=ET(),s=$k(),o=XTe(),c=yT(),d=lK(),f=aK(),p=vT(),m=Yk(),g=txe(),b=Hk(),S=$0(),y=zk(),E=bT(),T=oK();function x(...O){return O.length===1&&Array.isArray(O[0])&&(O=O[0]),new g(O)}return x.plugin=function(C,N){let w=!1;function D(...U){console&&console.warn&&!w&&(w=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),t.LANG&&t.LANG.startsWith("cn")&&console.warn(C+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let M=N(...U);return M.postcssPlugin=C,M.postcssVersion=new g().version,M}let L;return Object.defineProperty(D,"postcss",{get(){return L||(L=D()),L}}),D.process=function(U,M,B){return x([D(B)]).process(U,M)},D},x.stringify=E,x.parse=m,x.fromJSON=o,x.list=f,x.comment=O=>new n(O),x.atRule=O=>new e(O),x.decl=O=>new a(O),x.rule=O=>new y(O),x.root=O=>new S(O),x.document=O=>new s(O),x.CssSyntaxError=i,x.Declaration=a,x.Container=r,x.Processor=g,x.Document=s,x.Comment=n,x.Warning=T,x.AtRule=e,x.Result=b,x.Input=c,x.Rule=y,x.Root=S,x.Node=p,d.registerPostcss(x),ER=x,x.default=x,ER}var yR,E4;function rxe(){if(E4)return yR;E4=1;const t=GTe(),e=qTe(),{isPlainObject:n}=$Te(),r=zTe(),i=HTe(),{parse:a}=nxe(),s=["img","audio","video","picture","svg","object","map","iframe","embed"],o=["script","style"];function c(y,E){y&&Object.keys(y).forEach(function(T){E(y[T],T)})}function d(y,E){return{}.hasOwnProperty.call(y,E)}function f(y,E){const T=[];return c(y,function(x){E(x)&&T.push(x)}),T}function p(y){for(const E in y)if(d(y,E))return!1;return!0}function m(y){return y.map(function(E){if(!E.url)throw new Error("URL missing");return E.url+(E.w?` ${E.w}w`:"")+(E.h?` ${E.h}h`:"")+(E.d?` ${E.d}x`:"")}).join(", ")}yR=b;const g=/^[^\0\t\n\f\r /<=>]+$/;function b(y,E,T){if(y==null)return"";typeof y=="number"&&(y=y.toString());let x="",O="";function C(oe,Se){const le=this;this.tag=oe,this.attribs=Se||{},this.tagPosition=x.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(k.length){const Ge=k[k.length-1];Ge.text+=le.text}},this.updateParentNodeMediaChildren=function(){k.length&&s.includes(this.tag)&&k[k.length-1].mediaChildren.push(this.tag)}}E=Object.assign({},b.defaults,E),E.parser=Object.assign({},S,E.parser);const N=function(oe){return E.allowedTags===!1||(E.allowedTags||[]).indexOf(oe)>-1};o.forEach(function(oe){N(oe)&&!E.allowVulnerableTags&&console.warn(`

⚠️ Your \`allowedTags\` option includes, \`${oe}\`, which is inherently
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
Or, to disable this warning, add the \`allowVulnerableTags\` option
and ensure you are accounting for this risk.

`)});const w=E.nonTextTags||["script","style","textarea","option"];let D,L;E.allowedAttributes&&(D={},L={},c(E.allowedAttributes,function(oe,Se){D[Se]=[];const le=[];oe.forEach(function(Ge){typeof Ge=="string"&&Ge.indexOf("*")>=0?le.push(e(Ge).replace(/\\\*/g,".*")):D[Se].push(Ge)}),le.length&&(L[Se]=new RegExp("^("+le.join("|")+")$"))}));const U={},M={},B={};c(E.allowedClasses,function(oe,Se){if(D&&(d(D,Se)||(D[Se]=[]),D[Se].push("class")),U[Se]=oe,Array.isArray(oe)){const le=[];U[Se]=[],B[Se]=[],oe.forEach(function(Ge){typeof Ge=="string"&&Ge.indexOf("*")>=0?le.push(e(Ge).replace(/\\\*/g,".*")):Ge instanceof RegExp?B[Se].push(Ge):U[Se].push(Ge)}),le.length&&(M[Se]=new RegExp("^("+le.join("|")+")$"))}});const Y={};let H;c(E.transformTags,function(oe,Se){let le;typeof oe=="function"?le=oe:typeof oe=="string"&&(le=b.simpleTransform(oe)),Se==="*"?H=le:Y[Se]=le});let F,k,P,z,V,G,Q=!1;X();const Z=new t.Parser({onopentag:function(oe,Se){if(E.onOpenTag&&E.onOpenTag(oe,Se),E.enforceHtmlBoundary&&oe==="html"&&X(),V){G++;return}const le=new C(oe,Se);k.push(le);let Ge=!1;const lt=!!le.text;let xt;if(d(Y,oe)&&(xt=Y[oe](oe,Se),le.attribs=Se=xt.attribs,xt.text!==void 0&&(le.innerText=xt.text),oe!==xt.tagName&&(le.name=oe=xt.tagName,z[F]=xt.tagName)),H&&(xt=H(oe,Se),le.attribs=Se=xt.attribs,oe!==xt.tagName&&(le.name=oe=xt.tagName,z[F]=xt.tagName)),(!N(oe)||E.disallowedTagsMode==="recursiveEscape"&&!p(P)||E.nestingLimit!=null&&F>=E.nestingLimit)&&(Ge=!0,P[F]=!0,(E.disallowedTagsMode==="discard"||E.disallowedTagsMode==="completelyDiscard")&&w.indexOf(oe)!==-1&&(V=!0,G=1)),F++,Ge){if(E.disallowedTagsMode==="discard"||E.disallowedTagsMode==="completelyDiscard"){if(le.innerText&&!lt){const Ae=ue(le.innerText);E.textFilter?x+=E.textFilter(Ae,oe):x+=Ae,Q=!0}return}O=x,x=""}x+="<"+oe,oe==="script"&&(E.allowedScriptHostnames||E.allowedScriptDomains)&&(le.innerText=""),(!D||d(D,oe)||D["*"])&&c(Se,function(Ae,Be){if(!g.test(Be)){delete le.attribs[Be];return}if(Ae===""&&!E.allowedEmptyAttributes.includes(Be)&&(E.nonBooleanAttributes.includes(Be)||E.nonBooleanAttributes.includes("*"))){delete le.attribs[Be];return}let Xe=!1;if(!D||d(D,oe)&&D[oe].indexOf(Be)!==-1||D["*"]&&D["*"].indexOf(Be)!==-1||d(L,oe)&&L[oe].test(Be)||L["*"]&&L["*"].test(Be))Xe=!0;else if(D&&D[oe]){for(const je of D[oe])if(n(je)&&je.name&&je.name===Be){Xe=!0;let Ze="";if(je.multiple===!0){const Et=Ae.split(" ");for(const vt of Et)je.values.indexOf(vt)!==-1&&(Ze===""?Ze=vt:Ze+=" "+vt)}else je.values.indexOf(Ae)>=0&&(Ze=Ae);Ae=Ze}}if(Xe){if(E.allowedSchemesAppliedToAttributes.indexOf(Be)!==-1&&fe(oe,Ae)){delete le.attribs[Be];return}if(oe==="script"&&Be==="src"){let je=!0;try{const Ze=be(Ae);if(E.allowedScriptHostnames||E.allowedScriptDomains){const Et=(E.allowedScriptHostnames||[]).find(function(xe){return xe===Ze.url.hostname}),vt=(E.allowedScriptDomains||[]).find(function(xe){return Ze.url.hostname===xe||Ze.url.hostname.endsWith(`.${xe}`)});je=Et||vt}}catch{je=!1}if(!je){delete le.attribs[Be];return}}if(oe==="iframe"&&Be==="src"){let je=!0;try{const Ze=be(Ae);if(Ze.isRelativeUrl)je=d(E,"allowIframeRelativeUrls")?E.allowIframeRelativeUrls:!E.allowedIframeHostnames&&!E.allowedIframeDomains;else if(E.allowedIframeHostnames||E.allowedIframeDomains){const Et=(E.allowedIframeHostnames||[]).find(function(xe){return xe===Ze.url.hostname}),vt=(E.allowedIframeDomains||[]).find(function(xe){return Ze.url.hostname===xe||Ze.url.hostname.endsWith(`.${xe}`)});je=Et||vt}}catch{je=!1}if(!je){delete le.attribs[Be];return}}if(Be==="srcset")try{let je=i(Ae);if(je.forEach(function(Ze){fe("srcset",Ze.url)&&(Ze.evil=!0)}),je=f(je,function(Ze){return!Ze.evil}),je.length)Ae=m(f(je,function(Ze){return!Ze.evil})),le.attribs[Be]=Ae;else{delete le.attribs[Be];return}}catch{delete le.attribs[Be];return}if(Be==="class"){const je=U[oe],Ze=U["*"],Et=M[oe],vt=B[oe],xe=B["*"],Re=M["*"],et=[Et,Re].concat(vt,xe).filter(function(yt){return yt});if(je&&Ze?Ae=Oe(Ae,r(je,Ze),et):Ae=Oe(Ae,je||Ze,et),!Ae.length){delete le.attribs[Be];return}}if(Be==="style"){if(E.parseStyleAttributes)try{const je=a(oe+" {"+Ae+"}",{map:!1}),Ze=ye(je,E.allowedStyles);if(Ae=Ne(Ze),Ae.length===0){delete le.attribs[Be];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+oe+" {"+Ae+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete le.attribs[Be];return}else if(E.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}x+=" "+Be,Ae&&Ae.length?x+='="'+ue(Ae,!0)+'"':E.allowedEmptyAttributes.includes(Be)&&(x+='=""')}else delete le.attribs[Be]}),E.selfClosing.indexOf(oe)!==-1?x+=" />":(x+=">",le.innerText&&!lt&&!E.textFilter&&(x+=ue(le.innerText),Q=!0)),Ge&&(x=O+ue(x),O=""),le.openingTagLength=x.length-le.tagPosition},ontext:function(oe){if(V)return;const Se=k[k.length-1];let le;if(Se&&(le=Se.tag,oe=Se.innerText!==void 0?Se.innerText:oe),E.disallowedTagsMode==="completelyDiscard"&&!N(le))oe="";else if((E.disallowedTagsMode==="discard"||E.disallowedTagsMode==="completelyDiscard")&&(le==="script"||le==="style"))x+=oe;else if(!Q){const Ge=ue(oe,!1);E.textFilter?x+=E.textFilter(Ge,le):x+=Ge}if(k.length){const Ge=k[k.length-1];Ge.text+=oe}},onclosetag:function(oe,Se){if(E.onCloseTag&&E.onCloseTag(oe,Se),V)if(G--,!G)V=!1;else return;const le=k.pop();if(!le)return;if(le.tag!==oe){k.push(le);return}V=E.enforceHtmlBoundary?oe==="html":!1,F--;const Ge=P[F];if(Ge){if(delete P[F],E.disallowedTagsMode==="discard"||E.disallowedTagsMode==="completelyDiscard"){le.updateParentNodeText();return}O=x,x=""}if(z[F]&&(oe=z[F],delete z[F]),E.exclusiveFilter){const lt=E.exclusiveFilter(le);if(lt==="excludeTag"){Ge&&(x=O,O=""),x=x.substring(0,le.tagPosition)+x.substring(le.tagPosition+le.openingTagLength);return}else if(lt){x=x.substring(0,le.tagPosition);return}}if(le.updateParentNodeMediaChildren(),le.updateParentNodeText(),E.selfClosing.indexOf(oe)!==-1||Se&&!N(oe)&&["escape","recursiveEscape"].indexOf(E.disallowedTagsMode)>=0){Ge&&(x=O,O="");return}x+="</"+oe+">",Ge&&(x=O+ue(x),O=""),Q=!1}},E.parser);return Z.write(y),Z.end(),x;function X(){x="",F=0,k=[],P={},z={},V=!1,G=0}function ue(oe,Se){return typeof oe!="string"&&(oe=oe+""),E.parser.decodeEntities&&(oe=oe.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),Se&&(oe=oe.replace(/"/g,"&quot;"))),oe=oe.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),Se&&(oe=oe.replace(/"/g,"&quot;")),oe}function fe(oe,Se){for(Se=Se.replace(/[\x00-\x20]+/g,"");;){const lt=Se.indexOf("<!--");if(lt===-1)break;const xt=Se.indexOf("-->",lt+4);if(xt===-1)break;Se=Se.substring(0,lt)+Se.substring(xt+3)}const le=Se.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!le)return Se.match(/^[/\\]{2}/)?!E.allowProtocolRelative:!1;const Ge=le[1].toLowerCase();return d(E.allowedSchemesByTag,oe)?E.allowedSchemesByTag[oe].indexOf(Ge)===-1:!E.allowedSchemes||E.allowedSchemes.indexOf(Ge)===-1}function be(oe){if(oe=oe.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),oe.startsWith("relative:"))throw new Error("relative: exploit attempt");let Se="relative://relative-site";for(let lt=0;lt<100;lt++)Se+=`/${lt}`;const le=new URL(oe,Se);return{isRelativeUrl:le&&le.hostname==="relative-site"&&le.protocol==="relative:",url:le}}function ye(oe,Se){if(!Se)return oe;const le=oe.nodes[0];let Ge;return Se[le.selector]&&Se["*"]?Ge=r(Se[le.selector],Se["*"]):Ge=Se[le.selector]||Se["*"],Ge&&(oe.nodes[0].nodes=le.nodes.reduce(ke(Ge),[])),oe}function Ne(oe){return oe.nodes[0].nodes.reduce(function(Se,le){return Se.push(`${le.prop}:${le.value}${le.important?" !important":""}`),Se},[]).join(";")}function ke(oe){return function(Se,le){return d(oe,le.prop)&&oe[le.prop].some(function(lt){return lt.test(le.value)})&&Se.push(le),Se}}function Oe(oe,Se,le){return Se?(oe=oe.split(/\s+/),oe.filter(function(Ge){return Se.indexOf(Ge)!==-1||le.some(function(lt){return lt.test(Ge)})}).join(" ")):oe}}const S={decodeEntities:!0};return b.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},b.simpleTransform=function(y,E,T){return T=T===void 0?!0:T,E=E||{},function(x,O){let C;if(T)for(C in E)O[C]=E[C];else O=E;return{tagName:y,attribs:O}}},yR}var ixe=rxe();const axe=sl(ixe);var ht=(t=>(t.aggregation="aggregation",t.binaryExpr="binaryExpr",t.call="call",t.matrixSelector="matrixSelector",t.subquery="subquery",t.numberLiteral="numberLiteral",t.parenExpr="parenExpr",t.stringLiteral="stringLiteral",t.unaryExpr="unaryExpr",t.vectorSelector="vectorSelector",t.placeholder="placeholder",t))(ht||{}),Vt=(t=>(t.add="+",t.sub="-",t.mul="*",t.div="/",t.mod="%",t.pow="^",t.eql="==",t.neq="!=",t.gtr=">",t.lss="<",t.gte=">=",t.lte="<=",t.and="and",t.or="or",t.unless="unless",t.atan2="atan2",t))(Vt||{});const sxe=["==","!=",">","<",">=","<="],oxe=["and","or","unless"];var qr=(t=>(t.oneToOne="one-to-one",t.manyToOne="many-to-one",t.oneToMany="one-to-many",t.manyToMany="many-to-many",t))(qr||{}),ce=(t=>(t.none="none",t.vector="vector",t.scalar="scalar",t.matrix="matrix",t.string="string",t))(ce||{}),to=(t=>(t.equal="=",t.notEqual="!=",t.matchRegexp="=~",t.matchNotRegexp="!~",t))(to||{});const od=t=>t.replace(/([\\"])/g,"\\$1"),Vk=t=>sxe.includes(t),_D=t=>oxe.includes(t),y4={[Vt.add]:3,[Vt.sub]:3,[Vt.mul]:2,[Vt.div]:2,[Vt.mod]:2,[Vt.pow]:1,[Vt.eql]:4,[Vt.neq]:4,[Vt.gtr]:4,[Vt.lss]:4,[Vt.gte]:4,[Vt.lte]:4,[Vt.and]:5,[Vt.or]:6,[Vt.unless]:5,[Vt.atan2]:2},BE=(t,e)=>e.type!==ht.binaryExpr||y4[t]>y4[e.op]?e:{type:ht.parenExpr,expr:e},lxe=t=>{switch(t.type){case ht.aggregation:return t.param===null?[t.expr]:[t.param,t.expr];case ht.subquery:return[t.expr];case ht.parenExpr:return[t.expr];case ht.call:return t.args;case ht.matrixSelector:case ht.vectorSelector:case ht.numberLiteral:case ht.stringLiteral:return[];case ht.placeholder:return t.children;case ht.unaryExpr:return[t.expr];case ht.binaryExpr:return[t.lhs,t.rhs];default:throw new Error("unsupported node type")}},tp=t=>{switch(t.type){case ht.aggregation:return ce.vector;case ht.binaryExpr:{const e=[tp(t.lhs),tp(t.rhs)];return e.includes(null)?null:e.includes(ce.vector)?ce.vector:ce.scalar}case ht.call:return t.func.returnType;case ht.matrixSelector:return ce.matrix;case ht.numberLiteral:return ce.scalar;case ht.parenExpr:return tp(t.expr);case ht.placeholder:return null;case ht.stringLiteral:return ce.string;case ht.subquery:return ce.matrix;case ht.unaryExpr:return tp(t.expr);case ht.vectorSelector:return ce.vector;default:throw new Error("invalid node type")}},cxe=["topk","bottomk","quantile","count_values","limitk","limit_ratio"];ce.scalar,ce.string,ce.matrix,ce.vector;ce.none+"",ce.string+"",ce.scalar+"",ce.vector+"",ce.matrix+"";const uxe=/^[a-zA-Z_:][a-zA-Z0-9_:]*$/,dxe=/^[a-zA-Z_][a-zA-Z0-9_]*$/,TT=t=>t!==""&&!uxe.test(t),fxe=t=>!dxe.test(t),Ki=t=>t.replace(/([\\"])/g,"\\$1"),vd=t=>fxe(t)?`"${Ki(t)}"`:t,$g=t=>t.map(e=>vd(e)).join(", "),cK=(t,e,n)=>`${t!==null?` @ ${(t/1e3).toFixed(3)}`:e!==null?` @ ${e}()`:""}${n===0?"":n>0?` offset ${An(n)}`:` offset -${An(-n)}`}`,T4=t=>{var s;const e=t.matchers.filter(o=>!(o.name==="__name__"&&o.type===to.equal)).map(o=>`${vd(o.name)}${o.type}"${Ki(o.value)}"`),n=t.name||((s=t.matchers.find(o=>o.name==="__name__"&&o.type===to.equal))==null?void 0:s.value)||"",r=TT(n);r&&e.unshift(`"${Ki(n)}"`);const i=t.type===ht.matrixSelector?`[${An(t.range)}]`:"",a=cK(t.timestamp,t.startOrEnd,t.offset);return`${r?"":n}${e.length>0?`{${e.join(",")}}`:""}${i}${a}`},Qi=(t,e=0,n=!1,r=!0)=>{const i=n?`
`:"",a=n?`
`:" ",s=e+2,o=n?" ".repeat(e):"",c=r?o:"";switch(t.type){case ht.aggregation:return`${c}${t.op}${t.without?` without(${$g(t.grouping)}) `:t.grouping.length>0?` by(${$g(t.grouping)}) `:""}(${i}${cxe.includes(t.op)&&t.param!==null?`${Qi(t.param,s,n)},${a}`:""}${Qi(t.expr,s,n)}${i}${o})`;case ht.subquery:return`${c}${Qi(t.expr,e,n)}[${An(t.range)}:${t.step!==0?An(t.step):""}]${cK(t.timestamp,t.startOrEnd,t.offset)}`;case ht.parenExpr:return`${c}(${i}${Qi(t.expr,s,n)}${i}${o})`;case ht.call:{const d=t.args.length>0?i:"";return`${c}${t.func.name}(${d}${t.args.map(f=>Qi(f,s,n)).join(","+a)}${d}${t.args.length>0?o:""})`}case ht.matrixSelector:return`${c}${T4(t)}`;case ht.vectorSelector:return`${c}${T4(t)}`;case ht.numberLiteral:return`${c}${t.val}`;case ht.stringLiteral:return`${c}"${Ki(t.val)}"`;case ht.unaryExpr:return`${c}${t.op}${Qi(t.expr,e,n,!1)}`;case ht.binaryExpr:{let d="",f="";const p=t.matching;return p!==null&&(p.labels.length>0||p.on)&&(p.on?d=` on(${$g(p.labels)})`:d=` ignoring(${$g(p.labels)})`,(p.card===qr.manyToOne||p.card===qr.oneToMany)&&(f=` group_${p.card===qr.manyToOne?"left":"right"}(${$g(p.include)})`)),`${Qi(BE(t.op,t.lhs),s,n)}${a}${o}${t.op}${t.bool?" bool":""}${d}${f}${a}${Qi(BE(t.op,t.rhs),s,n)}`}case ht.placeholder:return`${c}…${t.children.length>0?`(${i}${t.children.map(d=>Qi(d,s,n)).join(","+a)}${i}${o})`:""}`;default:throw new Error("unsupported node type")}},La=t=>t.map((e,n)=>l.jsxs("span",{children:[n!==0&&", ",l.jsx("span",{className:"promql-code promql-label-name",children:vd(e)})]},n)),uK=(t,e,n)=>l.jsxs(l.Fragment,{children:[t!==null?l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-operator",children:"@"})," ",l.jsx("span",{className:"promql-number",children:(t/1e3).toFixed(3)})]}):e!==null?l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-operator",children:"@"})," ",l.jsx("span",{className:"promql-keyword",children:e}),l.jsx("span",{className:"promql-paren",children:"("}),l.jsx("span",{className:"promql-paren",children:")"})]}):l.jsx(l.Fragment,{}),n===0?l.jsx(l.Fragment,{}):n>0?l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"offset"})," ",l.jsx("span",{className:"promql-duration",children:An(n)})]}):l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"offset"})," ",l.jsxs("span",{className:"promql-duration",children:["-",An(-n)]})]})]}),x4=t=>{var i;const e=[],n=t.name||((i=t.matchers.find(a=>a.name==="__name__"&&a.type===to.equal))==null?void 0:i.value)||"",r=TT(n);return r&&e.push(l.jsx("span",{children:l.jsxs("span",{className:"promql-string",children:['"',Ki(n),'"']})},"__name__")),e.push(...t.matchers.filter(a=>!(a.name==="__name__"&&a.type===to.equal)).map((a,s)=>l.jsxs("span",{children:[(s!==0||r)&&",",l.jsx("span",{className:"promql-label-name",children:vd(a.name)}),a.type,l.jsxs("span",{className:"promql-string",children:['"',Ki(a.value),'"']})]},s))),l.jsxs(l.Fragment,{children:[!r&&l.jsx("span",{className:"promql-metric-name",children:n}),e.length>0&&l.jsxs(l.Fragment,{children:["{",l.jsx("span",{className:"promql-metric-name",children:e}),"}"]}),t.type===ht.matrixSelector&&l.jsxs(l.Fragment,{children:["[",l.jsx("span",{className:"promql-duration",children:An(t.range)}),"]"]}),uK(t.timestamp,t.startOrEnd,t.offset)]})},TR=l.jsx("span",{className:"promql-ellipsis",children:"…"}),hxe=(t,e,n)=>{if(n===0)return TR;const r=n===void 0?void 0:n-1;switch(t.type){case ht.aggregation:return l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"promql-keyword",children:t.op}),t.without?l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"without"}),l.jsx("span",{className:"promql-paren",children:"("}),La(t.grouping),l.jsx("span",{className:"promql-paren",children:")"})," "]}):t.grouping.length>0&&l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"by"}),l.jsx("span",{className:"promql-paren",children:"("}),La(t.grouping),l.jsx("span",{className:"promql-paren",children:")"})," "]}),e&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"promql-paren",children:"("}),t.param!==null&&l.jsxs(l.Fragment,{children:[ko(t.param,e,r),", "]}),ko(t.expr,e,r),l.jsx("span",{className:"promql-paren",children:")"})]})]});case ht.subquery:return l.jsxs(l.Fragment,{children:[e&&ko(t.expr,e,r),"[",l.jsx("span",{className:"promql-duration",children:An(t.range)}),":",t.step!==0&&l.jsx("span",{className:"promql-duration",children:An(t.step)}),"]",uK(t.timestamp,t.startOrEnd,t.offset)]});case ht.parenExpr:return l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"promql-paren",children:"("}),e&&ko(t.expr,e,r),l.jsx("span",{className:"promql-paren",children:")"})]});case ht.call:{const i=r===void 0||r>0?t.args.map((a,s)=>l.jsxs("span",{children:[s!==0&&", ",ko(a,e)]},s)):t.args.length>0?TR:"";return l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"promql-keyword",children:t.func.name}),e&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"promql-paren",children:"("}),i,l.jsx("span",{className:"promql-paren",children:")"})]})]})}case ht.matrixSelector:return x4(t);case ht.vectorSelector:return x4(t);case ht.numberLiteral:return l.jsx("span",{className:"promql-number",children:t.val});case ht.stringLiteral:return l.jsxs("span",{className:"promql-string",children:['"',Ki(t.val),'"']});case ht.unaryExpr:return l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"promql-operator",children:t.op}),e&&ko(t.expr,e,r)]});case ht.binaryExpr:{let i=l.jsx(l.Fragment,{}),a=l.jsx(l.Fragment,{});const s=t.matching;return s!==null&&(s.labels.length>0||s.on)&&(s.on?i=l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"on"}),l.jsx("span",{className:"promql-paren",children:"("}),La(s.labels),l.jsx("span",{className:"promql-paren",children:")"})]}):i=l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"ignoring"}),l.jsx("span",{className:"promql-paren",children:"("}),La(s.labels),l.jsx("span",{className:"promql-paren",children:")"})]}),(s.card===qr.manyToOne||s.card===qr.oneToMany)&&(a=l.jsxs(l.Fragment,{children:[l.jsxs("span",{className:"promql-keyword",children:[" ","group_",s.card===qr.manyToOne?"left":"right"]}),l.jsx("span",{className:"promql-paren",children:"("}),La(s.include),l.jsx("span",{className:"promql-paren",children:")"})]}))),l.jsxs(l.Fragment,{children:[e&&ko(BE(t.op,t.lhs),e,r)," ",["atan2","and","or","unless"].includes(t.op)?l.jsx("span",{className:"promql-keyword",children:t.op}):l.jsx("span",{className:"promql-operator",children:t.op}),t.bool&&l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"bool"})]}),i,a," ",e&&ko(BE(t.op,t.rhs),e,r)]})}case ht.placeholder:return TR;default:throw new Error("unsupported node type")}},ko=(t,e,n)=>l.jsx("span",{className:"promql-code",children:hxe(t,e,n)}),pxe="_labelValue_1cwwq_1",mxe="_promqlPill_1cwwq_13",xR={labelValue:pxe,promqlPill:mxe},ka={width:he(16),height:he(16)},$v={width:he(14),height:he(14)},Dc={width:ns(17),height:ns(17)},em={width:"70%",height:"70%"},Nm={width:ns(16),height:ns(16)},o_={width:ns(20),height:ns(20)},gxe={width:ns(17.5),height:ns(17.5)},FE={width:ns(16),height:ns(16)};he(20),he(20);const _xe=({metricName:t,insertText:e,hideLabelsExplorer:n})=>{const[r,i]=I.useState([]),[a,s]=I.useState([]),[o,c]=I.useState(null),[d,f]=I.useState(!0),p=C=>{s(a.filter(N=>N.name!==C))},m=()=>{if(o===null)throw new Error("tried to add null label matcher");s([...a,o]),c(null)},g=C=>l.jsx(Mc,{size:"md",withRemoveButton:!0,onRemove:()=>{p(C.name)},className:xR.promqlPill,children:l.jsxs("span",{className:"promql-code",children:[l.jsx("span",{className:"promql-label-name",children:C.name}),C.type,l.jsxs("span",{className:"promql-string",children:['"',od(C.value),'"']})]})},C.name),b={type:ht.vectorSelector,name:t,matchers:a,offset:0,timestamp:null,startOrEnd:null},{data:S,error:y,isLoading:E}=_d({path:"/series",params:{"match[]":Qi(b)}}),[T,x,O]=I.useMemo(()=>{const C={},N={},w={};S!==void 0&&(S.data.forEach(L=>{Object.entries(L).forEach(([U,M])=>{U!=="__name__"&&(U in w?M in w[U]?w[U][M]++:w[U][M]=1:w[U]={[M]:1})})}),Object.entries(w).forEach(([L,U])=>{C[L]=Object.keys(U).length,N[L]=Object.entries(U).sort(([,M],[,B])=>B-M).map(([M,B])=>({value:M,count:B}))}));const D=Object.entries(C).sort((L,U)=>d?U[1]-L[1]:0);return[S==null?void 0:S.data.length,D,N]},[S,d]);return y?l.jsxs(Ft,{color:"red",title:"Error querying series",icon:l.jsx(ta,{}),children:[l.jsx("strong",{children:"Error:"})," ",y.message]}):l.jsxs(Bn,{fz:"sm",children:[l.jsxs(Bn,{style:{overflow:"auto"},children:[l.jsxs(pt,{align:"center",mt:"lg",wrap:"nowrap",children:[l.jsx(ve,{w:70,fw:700,style:{flexShrink:0},children:"Selector:"}),l.jsx(Mc.Group,{children:l.jsx(Mc,{size:"md",className:xR.promqlPill,children:l.jsx("span",{style:{wordBreak:"break-word",whiteSpace:"pre"},children:ko(b,!1)})})}),l.jsxs(pt,{wrap:"nowrap",children:[l.jsx(_a,{variant:"light",size:"xs",onClick:()=>e(Qi(b)),leftSection:l.jsx(DH,{style:o_}),title:"Insert selector at cursor and close explorer",children:"Insert"}),l.jsx(gy,{value:Qi(b),children:({copied:C,copy:N})=>l.jsx(_a,{variant:"light",size:"xs",leftSection:C?l.jsx(AH,{style:o_}):l.jsx(MH,{style:o_}),onClick:N,title:"Copy selector to clipboard",children:"Copy"})})]})]}),l.jsxs(pt,{align:"center",children:[l.jsx(ve,{w:70,fw:700,style:{flexShrink:0},children:"Filters:"}),a.length>0?l.jsx(Mc.Group,{children:a.map(C=>g(C))}):l.jsx(l.Fragment,{children:"No label filters"})]}),l.jsxs(pt,{style:{display:"flex",alignItems:"center",marginBottom:25},children:[l.jsx(ve,{w:70,fw:700,style:{flexShrink:0},children:"Results:"}),l.jsx(l.Fragment,{children:T!==void 0?`${T} series`:"loading..."})]})]}),l.jsxs(pt,{justify:"space-between",children:[l.jsx(ve,{children:l.jsx(_a,{variant:"light",size:"xs",onClick:n,leftSection:l.jsx(vle,{style:o_}),children:"Back to all metrics"})}),l.jsx(C0,{w:"fit-content",size:"xs",value:d?"cardinality":"alphabetic",onChange:C=>f(C==="cardinality"),data:[{label:"By cardinality",value:"cardinality"},{label:"Alphabetic",value:"alphabetic"}]})]}),E?l.jsx(ve,{mt:"lg",children:Array.from(Array(10),(C,N)=>l.jsx(nl,{height:40,mb:15,width:"100%"},N))}):l.jsxs(ie,{fz:"sm",children:[l.jsx(ie.Thead,{children:l.jsxs(ie.Tr,{children:[l.jsx(ie.Th,{children:"Label"}),l.jsx(ie.Th,{children:"Values"})]})}),l.jsx(ie.Tbody,{children:x.map(([C,N])=>l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{w:"50%",children:l.jsx("form",{onSubmit:w=>{w.preventDefault()},children:l.jsxs(pt,{justify:"space-between",align:"baseline",children:[l.jsx("span",{className:"promql-code promql-label-name",children:C}),a.some(w=>w.name===C)?g(a.find(w=>w.name===C)):(o==null?void 0:o.name)===C?l.jsxs(pt,{wrap:"nowrap",gap:"xs",children:[l.jsx(Sm,{size:"xs",w:50,style:{width:"auto"},value:o.type,data:Object.values(to).map(w=>({value:w,label:w})),onChange:(w,D)=>c({...o,type:D.value})}),l.jsx(qM,{value:o.value,size:"xs",placeholder:"label value",onChange:w=>c({...o,value:w}),data:O[C].map(w=>w.value),autoFocus:!0}),l.jsx(_a,{variant:"secondary",size:"xs",onClick:()=>m(),style:{flexShrink:0},children:"Apply"}),l.jsx(_a,{variant:"light",w:40,size:"xs",onClick:()=>c(null),title:"Cancel",style:{flexShrink:0},children:l.jsx(Vle,{style:{width:he(18),height:he(18)}})})]}):l.jsx(_a,{variant:"light",size:"xs",mr:"xs",onClick:()=>c({name:C,type:to.equal,value:""}),children:"Filter..."})]})})}),l.jsxs(ie.Td,{w:"50%",children:[l.jsxs(ft,{fw:700,fz:"sm",my:"xs",children:[N," value",N>1&&"s"]}),l.jsxs(hr,{size:"sm",listStyleType:"none",children:[(r.includes(C)?O[C]:O[C].slice(0,5)).map(({value:w,count:D})=>l.jsxs(hr.Item,{children:[l.jsxs("span",{className:`${xR.labelValue} promql-code promql-string`,onClick:()=>{s([...a.filter(L=>L.name!==C),{name:C,type:to.equal,value:w}]),c(null)},title:"Click to filter by value",children:['"',od(w),'"']})," ","(",D," series)"]},w)),r.includes(C)?l.jsx(hr.Item,{my:"xs",children:l.jsx(vi,{size:"sm",href:"#",onClick:w=>{w.preventDefault(),i(r.filter(D=>D!=C))},children:"Hide full values"})}):O[C].length>5&&l.jsx(hr.Item,{my:"xs",children:l.jsxs(vi,{size:"sm",href:"#",onClick:w=>{w.preventDefault(),i([...r,C])},children:["Show ",O[C].length-5," more values..."]})})]})]})]},C))})]})]})},bxe="_typeLabel_u9odf_1",vxe="_helpLabel_u9odf_5",C4={typeLabel:bxe,helpLabel:vxe};/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var bD=function(t,e){return bD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},bD(t,e)};function Sxe(t,e){bD(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var E_=function(){return E_=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},E_.apply(this,arguments)};function Exe(t,e,n,r){var i,a=!1,s=0;function o(){i&&clearTimeout(i)}function c(){o(),a=!0}typeof e!="boolean"&&(r=n,n=e,e=void 0);function d(){var f=this,p=Date.now()-s,m=arguments;if(a)return;function g(){s=Date.now(),n.apply(f,m)}function b(){i=void 0}r&&!i&&g(),o(),r===void 0&&p>t?g():e!==!0&&(i=setTimeout(r?b:g,r===void 0?t-p:t))}return d.cancel=c,d}var gp={Pixel:"Pixel",Percent:"Percent"},O4={unit:gp.Percent,value:.8};function R4(t){return typeof t=="number"?{unit:gp.Percent,value:t*100}:typeof t=="string"?t.match(/^(\d*(\.\d+)?)px$/)?{unit:gp.Pixel,value:parseFloat(t)}:t.match(/^(\d*(\.\d+)?)%$/)?{unit:gp.Percent,value:parseFloat(t)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),O4):(console.warn("scrollThreshold should be string or number"),O4)}var yxe=function(t){Sxe(e,t);function e(n){var r=t.call(this,n)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:typeof r.props.scrollableTarget=="string"?document.getElementById(r.props.scrollableTarget):(r.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might
        happen because the element may not have been added to DOM yet.
        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.
      `),null)},r.onStart=function(i){r.lastScrollTop||(r.dragging=!0,i instanceof MouseEvent?r.startY=i.pageY:i instanceof TouchEvent&&(r.startY=i.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(i){r.dragging&&(i instanceof MouseEvent?r.currentY=i.pageY:i instanceof TouchEvent&&(r.currentY=i.touches[0].pageY),!(r.currentY<r.startY)&&(r.currentY-r.startY>=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),!(r.currentY-r.startY>r.maxPullDownDistance*1.5)&&r._infScroll&&(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)")))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="unset")})},r.onScrollListener=function(i){typeof r.props.onScroll=="function"&&setTimeout(function(){return r.props.onScroll&&r.props.onScroll(i)},0);var a=r.props.height||r._scrollableNode?i.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!r.actionTriggered){var s=r.props.inverse?r.isElementAtTop(a,r.props.scrollThreshold):r.isElementAtBottom(a,r.props.scrollThreshold);s&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=a.scrollTop}},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},r.throttledOnScrollListener=Exe(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return e.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing.
          Pull Down To Refresh functionality will not work
          as expected. Check README.md for usage'`)},e.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},e.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},e.getDerivedStateFromProps=function(n,r){var i=n.dataLength!==r.prevDataLength;return i?E_(E_({},r),{prevDataLength:n.dataLength}):null},e.prototype.isElementAtTop=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=R4(r);return a.unit===gp.Pixel?n.scrollTop<=a.value+i-n.scrollHeight+1:n.scrollTop<=a.value/100+i-n.scrollHeight+1},e.prototype.isElementAtBottom=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=R4(r);return a.unit===gp.Pixel?n.scrollTop+i>=n.scrollHeight-a.value:n.scrollTop+i>=a.value/100*n.scrollHeight},e.prototype.render=function(){var n=this,r=E_({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),i=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),a=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return On.createElement("div",{style:a,className:"infinite-scroll-component__outerdiv"},On.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(s){return n._infScroll=s},style:r},this.props.pullDownToRefresh&&On.createElement("div",{style:{position:"relative"},ref:function(s){return n._pullDown=s}},On.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!i&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},e}(I.Component);const zg=50,z0=({allItems:t,child:e})=>{const[n,r]=I.useState(t.slice(0,50)),[i,a]=I.useState(zg),[s,o]=I.useState(t.length>zg),c=e;I.useEffect(()=>{r(t.slice(0,zg)),o(t.length>zg)},[t]);const d=()=>{if(n.length===t.length)o(!1);else{const f=i+zg;a(f),r(t.slice(0,f))}};return l.jsx(yxe,{next:d,hasMore:s,loader:l.jsx("h4",{children:"loading..."}),dataLength:n.length,height:n.length>25?"75vh":"",children:l.jsx(c,{items:n})})},Txe=new XQ({pre:'<b style="color: rgb(0, 102, 191)">',post:"</b>",shouldSort:!0}),xxe={allowedTags:["b"],allowedAttributes:{b:["style"]}},Cxe=(t,e)=>Txe.filter(t.replace(/ /g,""),e,{pre:'<b style="color: rgb(0, 102, 191)">',post:"</b>"}),Oxe=({metricNames:t,insertText:e,close:n})=>{const{data:r}=Bi({path:"/metadata"}),[i,a]=I.useState(null),[s,o]=I.useState(""),[c]=VE(s,250),d=I.useMemo(()=>c===""?t.map(p=>({original:p,rendered:p})):Cxe(c,t),[c,t]),f=p=>r.data[p.replace(/(_count|_sum|_bucket)$/,"")]||[{help:"unknown",type:"unknown",unit:"unknown"}];return i!==null?l.jsx(_xe,{metricName:i,insertText:p=>{e(p),n()},hideLabelsExplorer:()=>a(null)}):l.jsxs(Bn,{children:[l.jsx(eu,{title:"Filter by text",placeholder:"Enter text to filter metric names by...",value:s,onChange:p=>o(p.target.value),autoFocus:!0}),l.jsx(z0,{allItems:d,child:({items:p})=>l.jsxs(ie,{children:[l.jsx(ie.Thead,{children:l.jsxs(ie.Tr,{children:[l.jsx(ie.Th,{children:"Metric"}),l.jsx(ie.Th,{children:"Type"}),l.jsx(ie.Th,{children:"Help"})]})}),l.jsx(ie.Tbody,{children:p.map(m=>l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{children:l.jsxs(pt,{justify:"space-between",wrap:"nowrap",children:[c===""?m.original:l.jsx("div",{dangerouslySetInnerHTML:{__html:axe(m.rendered,xxe)}}),l.jsxs(pt,{gap:"xs",children:[l.jsx(Pr,{size:"sm",color:"gray",variant:"light",title:"Explore metric",onClick:()=>{a(m.original)},children:l.jsx(Wle,{style:{width:"70%",height:"70%"},stroke:1.5})}),l.jsx(Pr,{size:"sm",color:"gray",variant:"light",title:"Insert at cursor and close explorer",onClick:()=>{e(m.original),n()},children:l.jsx(DH,{style:{width:"70%",height:"70%"},stroke:1.5})}),l.jsx(gy,{value:m.original,children:({copied:g,copy:b})=>l.jsx(Pr,{size:"sm",color:"gray",variant:"light",title:"Copy to clipboard",onClick:b,children:g?l.jsx(AH,{style:{width:"70%",height:"70%"},stroke:1.5}):l.jsx(MH,{style:{width:"70%",height:"70%"},stroke:1.5})})})]})]})}),l.jsx(ie.Td,{px:"lg",children:f(m.original).map((g,b)=>l.jsxs(On.Fragment,{children:[l.jsx("span",{className:C4.typeLabel,children:g.type}),l.jsx("br",{})]},b))}),l.jsx(ie.Td,{children:f(m.original).map((g,b)=>l.jsxs(On.Fragment,{children:[l.jsx("span",{className:C4.helpLabel,children:g.help}),l.jsx("br",{})]},b))})]},m.original))})]})})]})};class Rxe extends I.Component{constructor(){super(...arguments);Pn(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){return this.state.error!==null?l.jsxs(Ft,{color:"red",title:this.props.title||"Error querying page data",icon:l.jsx(ta,{}),maw:500,mx:"auto",mt:"lg",children:[l.jsx("strong",{children:"Error:"})," ",this.state.error.message]}):this.props.children}}const tm=t=>{const e=Ql();return l.jsx(Rxe,{title:t.title,children:t.children},e.pathname)},N4=new VW;class Nxe{constructor(e,n){Pn(this,"complete");Pn(this,"queryHistory");this.complete=e,this.queryHistory=n}promQL(e){return Promise.resolve(this.complete.promQL(e)).then(n=>{const{state:r,pos:i}=e,a=Ei(r).resolve(i,-1),s=n!=null?n.from:a.from;if(s!==0)return n;const o={from:s,to:i,options:this.queryHistory.map(c=>({label:c.length<80?c:c.slice(0,76).concat("..."),detail:"past query",apply:c,info:c.length<80?void 0:c})),validFor:/^[a-zA-Z0-9_:]+$/};return n!==null&&(o.options=o.options.concat(n.options)),o})}}const Axe=({initialExpr:t,metricNames:e,executeQuery:n,removePanel:r,treeShown:i,setShowTree:a})=>{const s=$D(),{queryHistory:o}=Kl(N=>N.queryPage),{pathPrefix:c,enableAutocomplete:d,enableSyntaxHighlighting:f,enableLinter:p,enableQueryHistory:m}=Si(),[g,b]=I.useState(t);I.useEffect(()=>{b(t)},[t]);const{data:S,error:y,isFetching:E,refetch:T}=_d({path:"/format_query",params:{query:g},enabled:!1});I.useEffect(()=>{if(y){el.show({color:"red",title:"Error formatting query",message:y.message});return}S&&(b(S.data),el.show({title:"Expression formatted",message:"Expression formatted successfully!"}))},[S,y]);const x=I.useRef(null),[O,C]=I.useState(!1);return I.useEffect(()=>{N4.activateCompletion(d).activateLinter(p).setComplete({completeStrategy:new Nxe(iD({remote:{url:c,cache:{initialMetricList:e}}}),m?o:[])})},[c,e,d,p,m,o]),l.jsxs(pt,{align:"flex-start",wrap:"nowrap",gap:"xs",children:[l.jsx(as,{leftSection:E?l.jsx(Yl,{size:"xs",color:"gray.5"}):l.jsx($le,{}),rightSection:l.jsxs(Kn,{shadow:"md",width:200,children:[l.jsx(Kn.Target,{children:l.jsx(Pr,{size:"lg",variant:"transparent",color:"gray","aria-label":"Show query options",children:l.jsx(wle,{style:Nm})})}),l.jsxs(Kn.Dropdown,{children:[l.jsx(Kn.Label,{children:"Query options"}),l.jsx(Kn.Item,{leftSection:l.jsx(Jf,{style:$v}),onClick:()=>C(!0),children:"Explore metrics"}),l.jsx(Kn.Item,{leftSection:l.jsx(ble,{style:$v}),onClick:()=>T(),disabled:E||g===""||g===(S==null?void 0:S.data),children:"Format expression"}),l.jsxs(Kn.Item,{leftSection:l.jsx(Ele,{style:$v}),onClick:()=>a(!i),children:[i?"Hide":"Show"," tree view"]}),l.jsx(Kn.Item,{color:"red",leftSection:l.jsx(Yle,{style:$v}),onClick:r,children:"Remove query"})]})]}),component:Fk,className:rTe.input,basicSetup:!1,value:g,onChange:b,autoFocus:!0,ref:x,extensions:[jQ,X7(),XW(),un.allowMultipleSelections.of(!0),sW(),bW(),OW(),IW(),MQ(),tt.lineWrapping,ad.of([...AW,...AQ,...tQ,...Nk,...$W]),Z7("Enter expression (press Shift+Enter for newlines)"),f?fT(s==="light"?qQ:$Q):[],N4.asExtension(),s==="light"?GQ:tTe,ad.of([{key:"Escape",run:N=>(N.contentDOM.blur(),!1)}]),nu.highest(ad.of([{key:"Enter",run:()=>(n(g),!0)},{key:"Shift-Enter",run:CQ}]))],multiline:!0}),l.jsx(_a,{variant:"primary",onClick:()=>n(g),style:{flexShrink:0},children:"Execute"}),l.jsx(fo,{size:"95%",opened:O,onClose:()=>C(!1),title:"Explore metrics",children:l.jsx(tm,{title:"Error showing metrics",children:l.jsx(I.Suspense,{fallback:l.jsx(ve,{mt:"lg",children:Array.from(Array(20),(N,w)=>l.jsx(nl,{height:30,mb:15,width:"100%"},w))}),children:l.jsx(Oxe,{metricNames:e,insertText:N=>{if(x.current&&x.current.view){const w=x.current.view;w.dispatch(w.state.update({changes:{from:w.state.selection.ranges[0].from,to:w.state.selection.ranges[0].to,insert:N}}))}},close:()=>C(!1)})})},location.pathname)})]})},wxe="_chartWrapper_apsqz_1",Ixe="_uplotChart_apsqz_7",dK={chartWrapper:wxe,uplotChart:Ixe};var AS={exports:{}};const Dxe=!0,yi="u-",Mxe="uplot",Lxe=yi+"hz",kxe=yi+"vt",Pxe=yi+"title",Bxe=yi+"wrap",Fxe=yi+"under",Uxe=yi+"over",jxe=yi+"axis",ff=yi+"off",Gxe=yi+"select",qxe=yi+"cursor-x",$xe=yi+"cursor-y",zxe=yi+"cursor-pt",Yxe=yi+"legend",Hxe=yi+"live",Vxe=yi+"inline",Wxe=yi+"series",Qxe=yi+"marker",A4=yi+"label",Kxe=yi+"value",l_="width",c_="height",Yg="top",w4="bottom",zh="left",CR="right",Wk="#000",I4=Wk+"0",OR="mousemove",D4="mousedown",RR="mouseup",M4="mouseenter",L4="mouseleave",k4="dblclick",Xxe="resize",Zxe="scroll",P4="change",UE="dppxchange",Qk="--",Am=typeof window<"u",vD=Am?document:null,_p=Am?window:null,Jxe=Am?navigator:null;let Cn,zv;function SD(){let t=devicePixelRatio;Cn!=t&&(Cn=t,zv&&yD(P4,zv,SD),zv=matchMedia(`(min-resolution: ${Cn-.001}dppx) and (max-resolution: ${Cn+.001}dppx)`),Ff(P4,zv,SD),_p.dispatchEvent(new CustomEvent(UE)))}function bs(t,e){if(e!=null){let n=t.classList;!n.contains(e)&&n.add(e)}}function ED(t,e){let n=t.classList;n.contains(e)&&n.remove(e)}function ur(t,e,n){t.style[e]=n+"px"}function Mo(t,e,n,r){let i=vD.createElement(t);return e!=null&&bs(i,e),n!=null&&n.insertBefore(i,r),i}function Vs(t,e){return Mo("div",t,e)}const B4=new WeakMap;function Cl(t,e,n,r,i){let a="translate("+e+"px,"+n+"px)",s=B4.get(t);a!=s&&(t.style.transform=a,B4.set(t,a),e<0||n<0||e>r||n>i?bs(t,ff):ED(t,ff))}const F4=new WeakMap;function U4(t,e,n){let r=e+n,i=F4.get(t);r!=i&&(F4.set(t,r),t.style.background=e,t.style.borderColor=n)}const j4=new WeakMap;function G4(t,e,n,r){let i=e+""+n,a=j4.get(t);i!=a&&(j4.set(t,i),t.style.height=n+"px",t.style.width=e+"px",t.style.marginLeft=r?-e/2+"px":0,t.style.marginTop=r?-n/2+"px":0)}const Kk={passive:!0},eCe={...Kk,capture:!0};function Ff(t,e,n,r){e.addEventListener(t,n,r?eCe:Kk)}function yD(t,e,n,r){e.removeEventListener(t,n,Kk)}Am&&SD();function Ho(t,e,n,r){let i;n=n||0,r=r||e.length-1;let a=r<=2147483647;for(;r-n>1;)i=a?n+r>>1:Ns((n+r)/2),e[i]<t?n=i:r=i;return t-e[n]<=e[r]-t?n:r}function fK(t){return(n,r,i)=>{let a=-1,s=-1;for(let o=r;o<=i;o++)if(t(n[o])){a=o;break}for(let o=i;o>=r;o--)if(t(n[o])){s=o;break}return[a,s]}}const hK=t=>t!=null,pK=t=>t!=null&&t>0,xT=fK(hK),tCe=fK(pK);function nCe(t,e,n,r=0,i=!1){let a=i?tCe:xT,s=i?pK:hK;[e,n]=a(t,e,n);let o=t[e],c=t[e];if(e>-1)if(r==1)o=t[e],c=t[n];else if(r==-1)o=t[n],c=t[e];else for(let d=e;d<=n;d++){let f=t[d];s(f)&&(f<o?o=f:f>c&&(c=f))}return[o??Zn,c??-Zn]}function CT(t,e,n,r){let i=z4(t),a=z4(e);t==e&&(i==-1?(t*=n,e/=n):(t/=n,e*=n));let s=n==10?Fc:mK,o=i==1?Ns:Ks,c=a==1?Ks:Ns,d=o(s(mi(t))),f=c(s(mi(e))),p=nm(n,d),m=nm(n,f);return n==10&&(d<0&&(p=Jn(p,-d)),f<0&&(m=Jn(m,-f))),r||n==2?(t=p*i,e=m*a):(t=vK(t,p),e=OT(e,m)),[t,e]}function Xk(t,e,n,r){let i=CT(t,e,n,r);return t==0&&(i[0]=0),e==0&&(i[1]=0),i}const Zk=.1,q4={mode:3,pad:Zk},y_={pad:0,soft:null,mode:0},rCe={min:y_,max:y_};function jE(t,e,n,r){return RT(n)?$4(t,e,n):(y_.pad=n,y_.soft=r?0:null,y_.mode=r?3:0,$4(t,e,rCe))}function Tn(t,e){return t??e}function iCe(t,e,n){for(e=Tn(e,0),n=Tn(n,t.length-1);e<=n;){if(t[e]!=null)return!0;e++}return!1}function $4(t,e,n){let r=n.min,i=n.max,a=Tn(r.pad,0),s=Tn(i.pad,0),o=Tn(r.hard,-Zn),c=Tn(i.hard,Zn),d=Tn(r.soft,Zn),f=Tn(i.soft,-Zn),p=Tn(r.mode,0),m=Tn(i.mode,0),g=e-t,b=Fc(g),S=Ba(mi(t),mi(e)),y=Fc(S),E=mi(y-b);(g<1e-24||E>10)&&(g=0,(t==0||e==0)&&(g=1e-24,p==2&&d!=Zn&&(a=0),m==2&&f!=-Zn&&(s=0)));let T=g||S||1e3,x=Fc(T),O=nm(10,Ns(x)),C=T*(g==0?t==0?.1:1:a),N=Jn(vK(t-C,O/10),24),w=t>=d&&(p==1||p==3&&N<=d||p==2&&N>=d)?d:Zn,D=Ba(o,N<w&&t>=w?w:Ko(w,N)),L=T*(g==0?e==0?.1:1:s),U=Jn(OT(e+L,O/10),24),M=e<=f&&(m==1||m==3&&U>=f||m==2&&U<=f)?f:-Zn,B=Ko(c,U>M&&e<=M?M:Ba(M,U));return D==B&&D==0&&(B=100),[D,B]}const aCe=new Intl.NumberFormat(Am?Jxe.language:"en-US"),Jk=t=>aCe.format(t),Ms=Math,wS=Ms.PI,mi=Ms.abs,Ns=Ms.floor,pi=Ms.round,Ks=Ms.ceil,Ko=Ms.min,Ba=Ms.max,nm=Ms.pow,z4=Ms.sign,Fc=Ms.log10,mK=Ms.log2,sCe=(t,e=1)=>Ms.sinh(t)*e,NR=(t,e=1)=>Ms.asinh(t/e),Zn=1/0;function Y4(t){return(Fc((t^t>>31)-(t>>31))|0)+1}function TD(t,e,n){return Ko(Ba(t,e),n)}function gK(t){return typeof t=="function"}function cn(t){return gK(t)?t:()=>t}const oCe=()=>{},_K=t=>t,bK=(t,e)=>e,lCe=t=>null,H4=t=>!0,V4=(t,e)=>t==e,cCe=/\.\d*?(?=9{6,}|0{6,})/gm,Wf=t=>{if(EK(t)||Sd.has(t))return t;const e=`${t}`,n=e.match(cCe);if(n==null)return t;let r=n[0].length-1;if(e.indexOf("e-")!=-1){let[i,a]=e.split("e");return+`${Wf(i)}e${a}`}return Jn(t,r)};function sf(t,e){return Wf(Jn(Wf(t/e))*e)}function OT(t,e){return Wf(Ks(Wf(t/e))*e)}function vK(t,e){return Wf(Ns(Wf(t/e))*e)}function Jn(t,e=0){if(EK(t))return t;let n=10**e,r=t*n*(1+Number.EPSILON);return pi(r)/n}const Sd=new Map;function SK(t){return((""+t).split(".")[1]||"").length}function a0(t,e,n,r){let i=[],a=r.map(SK);for(let s=e;s<n;s++){let o=mi(s),c=Jn(nm(t,s),o);for(let d=0;d<r.length;d++){let f=t==10?+`${r[d]}e${s}`:r[d]*c,p=(s>=0?0:o)+(s>=a[d]?0:a[d]),m=t==10?f:Jn(f,p);i.push(m),Sd.set(m,p)}}return i}const T_={},eP=[],rm=[null,null],Gu=Array.isArray,EK=Number.isInteger,uCe=t=>t===void 0;function W4(t){return typeof t=="string"}function RT(t){let e=!1;if(t!=null){let n=t.constructor;e=n==null||n==Object}return e}function dCe(t){return t!=null&&typeof t=="object"}const fCe=Object.getPrototypeOf(Uint8Array),yK="__proto__";function im(t,e=RT){let n;if(Gu(t)){let r=t.find(i=>i!=null);if(Gu(r)||e(r)){n=Array(t.length);for(let i=0;i<t.length;i++)n[i]=im(t[i],e)}else n=t.slice()}else if(t instanceof fCe)n=t.slice();else if(e(t)){n={};for(let r in t)r!=yK&&(n[r]=im(t[r],e))}else n=t;return n}function ti(t){let e=arguments;for(let n=1;n<e.length;n++){let r=e[n];for(let i in r)i!=yK&&(RT(t[i])?ti(t[i],im(r[i])):t[i]=im(r[i]))}return t}const hCe=0,pCe=1,mCe=2;function gCe(t,e,n){for(let r=0,i,a=-1;r<e.length;r++){let s=e[r];if(s>a){for(i=s-1;i>=0&&t[i]==null;)t[i--]=null;for(i=s+1;i<n&&t[i]==null;)t[a=i++]=null}}}function _Ce(t,e){if(SCe(t)){let s=t[0].slice();for(let o=1;o<t.length;o++)s.push(...t[o].slice(1));return ECe(s[0])||(s=vCe(s)),s}let n=new Set;for(let s=0;s<t.length;s++){let c=t[s][0],d=c.length;for(let f=0;f<d;f++)n.add(c[f])}let r=[Array.from(n).sort((s,o)=>s-o)],i=r[0].length,a=new Map;for(let s=0;s<i;s++)a.set(r[0][s],s);for(let s=0;s<t.length;s++){let o=t[s],c=o[0];for(let d=1;d<o.length;d++){let f=o[d],p=Array(i).fill(void 0),m=e?e[s][d]:pCe,g=[];for(let b=0;b<f.length;b++){let S=f[b],y=a.get(c[b]);S===null?m!=hCe&&(p[y]=S,m==mCe&&g.push(y)):p[y]=S}gCe(p,g,i),r.push(p)}}return r}const bCe=typeof queueMicrotask>"u"?t=>Promise.resolve().then(t):queueMicrotask;function vCe(t){let e=t[0],n=e.length,r=Array(n);for(let a=0;a<r.length;a++)r[a]=a;r.sort((a,s)=>e[a]-e[s]);let i=[];for(let a=0;a<t.length;a++){let s=t[a],o=Array(n);for(let c=0;c<n;c++)o[c]=s[r[c]];i.push(o)}return i}function SCe(t){let e=t[0][0],n=e.length;for(let r=1;r<t.length;r++){let i=t[r][0];if(i.length!=n)return!1;if(i!=e){for(let a=0;a<n;a++)if(i[a]!=e[a])return!1}}return!0}function ECe(t,e=100){const n=t.length;if(n<=1)return!0;let r=0,i=n-1;for(;r<=i&&t[r]==null;)r++;for(;i>=r&&t[i]==null;)i--;if(i<=r)return!0;const a=Ba(1,Ns((i-r+1)/e));for(let s=t[r],o=r+a;o<=i;o+=a){const c=t[o];if(c!=null){if(c<=s)return!1;s=c}}return!0}const TK=["January","February","March","April","May","June","July","August","September","October","November","December"],xK=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function CK(t){return t.slice(0,3)}const yCe=xK.map(CK),TCe=TK.map(CK),xCe={MMMM:TK,MMM:TCe,WWWW:xK,WWW:yCe};function Hg(t){return(t<10?"0":"")+t}function CCe(t){return(t<10?"00":t<100?"0":"")+t}const OCe={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,e)=>e.MMMM[t.getMonth()],MMM:(t,e)=>e.MMM[t.getMonth()],MM:t=>Hg(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>Hg(t.getDate()),D:t=>t.getDate(),WWWW:(t,e)=>e.WWWW[t.getDay()],WWW:(t,e)=>e.WWW[t.getDay()],HH:t=>Hg(t.getHours()),H:t=>t.getHours(),h:t=>{let e=t.getHours();return e==0?12:e>12?e-12:e},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>Hg(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>Hg(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>CCe(t.getMilliseconds())};function tP(t,e){e=e||xCe;let n=[],r=/\{([a-z]+)\}|[^{]+/gi,i;for(;i=r.exec(t);)n.push(i[0][0]=="{"?OCe[i[1]]:i[0]);return a=>{let s="";for(let o=0;o<n.length;o++)s+=typeof n[o]=="string"?n[o]:n[o](a,e);return s}}const RCe=new Intl.DateTimeFormat().resolvedOptions().timeZone;function NCe(t,e){let n;return e=="UTC"||e=="Etc/UTC"?n=new Date(+t+t.getTimezoneOffset()*6e4):e==RCe?n=t:(n=new Date(t.toLocaleString("en-US",{timeZone:e})),n.setMilliseconds(t.getMilliseconds())),n}const OK=t=>t%1==0,GE=[1,2,2.5,5],ACe=a0(10,-32,0,GE),RK=a0(10,0,32,GE),wCe=RK.filter(OK),of=ACe.concat(RK),nP=`
`,NK="{YYYY}",Q4=nP+NK,AK="{M}/{D}",u_=nP+AK,Yv=u_+"/{YY}",wK="{aa}",ICe="{h}:{mm}",Kh=ICe+wK,K4=nP+Kh,X4=":{ss}",Rn=null;function IK(t){let e=t*1e3,n=e*60,r=n*60,i=r*24,a=i*30,s=i*365,c=(t==1?a0(10,0,3,GE).filter(OK):a0(10,-3,0,GE)).concat([e,e*5,e*10,e*15,e*30,n,n*5,n*10,n*15,n*30,r,r*2,r*3,r*4,r*6,r*8,r*12,i,i*2,i*3,i*4,i*5,i*6,i*7,i*8,i*9,i*10,i*15,a,a*2,a*3,a*4,a*6,s,s*2,s*5,s*10,s*25,s*50,s*100]);const d=[[s,NK,Rn,Rn,Rn,Rn,Rn,Rn,1],[i*28,"{MMM}",Q4,Rn,Rn,Rn,Rn,Rn,1],[i,AK,Q4,Rn,Rn,Rn,Rn,Rn,1],[r,"{h}"+wK,Yv,Rn,u_,Rn,Rn,Rn,1],[n,Kh,Yv,Rn,u_,Rn,Rn,Rn,1],[e,X4,Yv+" "+Kh,Rn,u_+" "+Kh,Rn,K4,Rn,1],[t,X4+".{fff}",Yv+" "+Kh,Rn,u_+" "+Kh,Rn,K4,Rn,1]];function f(p){return(m,g,b,S,y,E)=>{let T=[],x=y>=s,O=y>=a&&y<s,C=p(b),N=Jn(C*t,3),w=AR(C.getFullYear(),x?0:C.getMonth(),O||x?1:C.getDate()),D=Jn(w*t,3);if(O||x){let L=O?y/a:0,U=x?y/s:0,M=N==D?N:Jn(AR(w.getFullYear()+U,w.getMonth()+L,1)*t,3),B=new Date(pi(M/t)),Y=B.getFullYear(),H=B.getMonth();for(let F=0;M<=S;F++){let k=AR(Y+U*F,H+L*F,1),P=k-p(Jn(k*t,3));M=Jn((+k+P)*t,3),M<=S&&T.push(M)}}else{let L=y>=i?i:y,U=Ns(b)-Ns(N),M=D+U+OT(N-D,L);T.push(M);let B=p(M),Y=B.getHours()+B.getMinutes()/n+B.getSeconds()/r,H=y/r,F=m.axes[g]._space,k=E/F;for(;M=Jn(M+y,t==1?0:3),!(M>S);)if(H>1){let P=Ns(Jn(Y+H,6))%24,G=p(M).getHours()-P;G>1&&(G=-1),M-=G*r,Y=(Y+H)%24;let Q=T[T.length-1];Jn((M-Q)/y,3)*k>=.7&&T.push(M)}else T.push(M)}return T}}return[c,d,f]}const[DCe,MCe,LCe]=IK(1),[kCe,PCe,BCe]=IK(.001);a0(2,-53,53,[1]);function Z4(t,e){return t.map(n=>n.map((r,i)=>i==0||i==8||r==null?r:e(i==1||n[8]==0?r:n[1]+r)))}function J4(t,e){return(n,r,i,a,s)=>{let o=e.find(b=>s>=b[0])||e[e.length-1],c,d,f,p,m,g;return r.map(b=>{let S=t(b),y=S.getFullYear(),E=S.getMonth(),T=S.getDate(),x=S.getHours(),O=S.getMinutes(),C=S.getSeconds(),N=y!=c&&o[2]||E!=d&&o[3]||T!=f&&o[4]||x!=p&&o[5]||O!=m&&o[6]||C!=g&&o[7]||o[1];return c=y,d=E,f=T,p=x,m=O,g=C,N(S)})}}function FCe(t,e){let n=tP(e);return(r,i,a,s,o)=>i.map(c=>n(t(c)))}function AR(t,e,n){return new Date(t,e,n)}function eG(t,e){return e(t)}const UCe="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function tG(t,e){return(n,r,i,a)=>a==null?Qk:e(t(r))}function jCe(t,e){let n=t.series[e];return n.width?n.stroke(t,e):n.points.width?n.points.stroke(t,e):null}function GCe(t,e){return t.series[e].fill(t,e)}const qCe={show:!0,live:!0,isolate:!1,mount:oCe,markers:{show:!0,width:2,stroke:jCe,fill:GCe,dash:"solid"},idx:null,idxs:null,values:[]};function $Ce(t,e){let n=t.cursor.points,r=Vs(),i=n.size(t,e);ur(r,l_,i),ur(r,c_,i);let a=i/-2;ur(r,"marginLeft",a),ur(r,"marginTop",a);let s=n.width(t,e,i);return s&&ur(r,"borderWidth",s),r}function zCe(t,e){let n=t.series[e].points;return n._fill||n._stroke}function YCe(t,e){let n=t.series[e].points;return n._stroke||n._fill}function HCe(t,e){return t.series[e].points.size}const wR=[0,0];function VCe(t,e,n){return wR[0]=e,wR[1]=n,wR}function Hv(t,e,n,r=!0){return i=>{i.button==0&&(!r||i.target==e)&&n(i)}}function IR(t,e,n,r=!0){return i=>{(!r||i.target==e)&&n(i)}}const WCe={show:!0,x:!0,y:!0,lock:!1,move:VCe,points:{one:!1,show:$Ce,size:HCe,width:0,stroke:YCe,fill:zCe},bind:{mousedown:Hv,mouseup:Hv,click:Hv,dblclick:Hv,mousemove:IR,mouseleave:IR,mouseenter:IR},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,e)=>{e.stopPropagation(),e.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,e,n,r,i)=>r-i,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},DK={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},rP=ti({},DK,{filter:bK}),MK=ti({},rP,{size:10}),LK=ti({},DK,{show:!1}),iP='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',kK="bold "+iP,PK=1.5,nG={show:!0,scale:"x",stroke:Wk,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:kK,side:2,grid:rP,ticks:MK,border:LK,font:iP,lineGap:PK,rotate:0},QCe="Value",KCe="Time",rG={show:!0,scale:"x",auto:!1,sorted:1,min:Zn,max:-Zn,idxs:[]};function XCe(t,e,n,r,i){return e.map(a=>a==null?"":Jk(a))}function ZCe(t,e,n,r,i,a,s){let o=[],c=Sd.get(i)||0;n=s?n:Jn(OT(n,i),c);for(let d=n;d<=r;d=Jn(d+i,c))o.push(Object.is(d,-0)?0:d);return o}function xD(t,e,n,r,i,a,s){const o=[],c=t.scales[t.axes[e].scale].log,d=c==10?Fc:mK,f=Ns(d(n));i=nm(c,f),c==10&&(i=of[Ho(i,of)]);let p=n,m=i*c;c==10&&(m=of[Ho(m,of)]);do o.push(p),p=p+i,c==10&&!Sd.has(p)&&(p=Jn(p,Sd.get(i))),p>=m&&(i=p,m=i*c,c==10&&(m=of[Ho(m,of)]));while(p<=r);return o}function JCe(t,e,n,r,i,a,s){let c=t.scales[t.axes[e].scale].asinh,d=r>c?xD(t,e,Ba(c,n),r,i):[c],f=r>=0&&n<=0?[0]:[];return(n<-c?xD(t,e,Ba(c,-r),-n,i):[c]).reverse().map(m=>-m).concat(f,d)}const BK=/./,eOe=/[12357]/,tOe=/[125]/,iG=/1/,CD=(t,e,n,r)=>t.map((i,a)=>e==4&&i==0||a%r==0&&n.test(i.toExponential()[i<0?1:0])?i:null);function nOe(t,e,n,r,i){let a=t.axes[n],s=a.scale,o=t.scales[s],c=t.valToPos,d=a._space,f=c(10,s),p=c(9,s)-f>=d?BK:c(7,s)-f>=d?eOe:c(5,s)-f>=d?tOe:iG;if(p==iG){let m=mi(c(1,s)-f);if(m<d)return CD(e.slice().reverse(),o.distr,p,Ks(d/m)).reverse()}return CD(e,o.distr,p,1)}function rOe(t,e,n,r,i){let a=t.axes[n],s=a.scale,o=a._space,c=t.valToPos,d=mi(c(1,s)-c(2,s));return d<o?CD(e.slice().reverse(),3,BK,Ks(o/d)).reverse():e}function iOe(t,e,n,r){return r==null?Qk:e==null?"":Jk(e)}const aG={show:!0,scale:"y",stroke:Wk,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:kK,side:3,grid:rP,ticks:MK,border:LK,font:iP,lineGap:PK,rotate:0};function aOe(t,e){let n=3+(t||1)*2;return Jn(n*e,3)}function sOe(t,e){let{scale:n,idxs:r}=t.series[0],i=t._data[0],a=t.valToPos(i[r[0]],n,!0),s=t.valToPos(i[r[1]],n,!0),o=mi(s-a),c=t.series[e],d=o/(c.points.space*Cn);return r[1]-r[0]<=d}const sG={scale:null,auto:!0,sorted:0,min:Zn,max:-Zn},FK=(t,e,n,r,i)=>i,oG={show:!0,auto:!0,sorted:0,gaps:FK,alpha:1,facets:[ti({},sG,{scale:"x"}),ti({},sG,{scale:"y"})]},lG={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:FK,alpha:1,points:{show:sOe,filter:null},values:null,min:Zn,max:-Zn,idxs:[],path:null,clip:null};function oOe(t,e,n,r,i){return n/10}const UK={time:Dxe,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},lOe=ti({},UK,{time:!1,ori:1}),cG={};function jK(t,e){let n=cG[t];return n||(n={key:t,plots:[],sub(r){n.plots.push(r)},unsub(r){n.plots=n.plots.filter(i=>i!=r)},pub(r,i,a,s,o,c,d){for(let f=0;f<n.plots.length;f++)n.plots[f]!=i&&n.plots[f].pub(r,i,a,s,o,c,d)}},t!=null&&(cG[t]=n)),n}const am=1,OD=2;function ih(t,e,n){const r=t.mode,i=t.series[e],a=r==2?t._data[e]:t._data,s=t.scales,o=t.bbox;let c=a[0],d=r==2?a[1]:a[e],f=r==2?s[i.facets[0].scale]:s[t.series[0].scale],p=r==2?s[i.facets[1].scale]:s[i.scale],m=o.left,g=o.top,b=o.width,S=o.height,y=t.valToPosH,E=t.valToPosV;return f.ori==0?n(i,c,d,f,p,y,E,m,g,b,S,AT,wm,IT,qK,zK):n(i,c,d,f,p,E,y,g,m,S,b,wT,Im,oP,$K,YK)}function aP(t,e){let n=0,r=0,i=Tn(t.bands,eP);for(let a=0;a<i.length;a++){let s=i[a];s.series[0]==e?n=s.dir:s.series[1]==e&&(s.dir==1?r|=1:r|=2)}return[n,r==1?-1:r==2?1:r==3?2:0]}function cOe(t,e,n,r,i){let a=t.mode,s=t.series[e],o=a==2?s.facets[1].scale:s.scale,c=t.scales[o];return i==-1?c.min:i==1?c.max:c.distr==3?c.dir==1?c.min:c.max:0}function Uc(t,e,n,r,i,a){return ih(t,e,(s,o,c,d,f,p,m,g,b,S,y)=>{let E=s.pxRound;const T=d.dir*(d.ori==0?1:-1),x=d.ori==0?wm:Im;let O,C;T==1?(O=n,C=r):(O=r,C=n);let N=E(p(o[O],d,S,g)),w=E(m(c[O],f,y,b)),D=E(p(o[C],d,S,g)),L=E(m(a==1?f.max:f.min,f,y,b)),U=new Path2D(i);return x(U,D,L),x(U,N,L),x(U,N,w),U})}function NT(t,e,n,r,i,a){let s=null;if(t.length>0){s=new Path2D;const o=e==0?IT:oP;let c=n;for(let p=0;p<t.length;p++){let m=t[p];if(m[1]>m[0]){let g=m[0]-c;g>0&&o(s,c,r,g,r+a),c=m[1]}}let d=n+i-c,f=10;d>0&&o(s,c,r-f/2,d,r+a+f)}return s}function uOe(t,e,n){let r=t[t.length-1];r&&r[0]==e?r[1]=n:t.push([e,n])}function sP(t,e,n,r,i,a,s){let o=[],c=t.length;for(let d=i==1?n:r;d>=n&&d<=r;d+=i)if(e[d]===null){let p=d,m=d;if(i==1)for(;++d<=r&&e[d]===null;)m=d;else for(;--d>=n&&e[d]===null;)m=d;let g=a(t[p]),b=m==p?g:a(t[m]),S=p-i;g=s<=0&&S>=0&&S<c?a(t[S]):g;let E=m+i;b=s>=0&&E>=0&&E<c?a(t[E]):b,b>=g&&o.push([g,b])}return o}function uG(t){return t==0?_K:t==1?pi:e=>sf(e,t)}function GK(t){let e=t==0?AT:wT,n=t==0?(i,a,s,o,c,d)=>{i.arcTo(a,s,o,c,d)}:(i,a,s,o,c,d)=>{i.arcTo(s,a,c,o,d)},r=t==0?(i,a,s,o,c)=>{i.rect(a,s,o,c)}:(i,a,s,o,c)=>{i.rect(s,a,c,o)};return(i,a,s,o,c,d=0,f=0)=>{d==0&&f==0?r(i,a,s,o,c):(d=Ko(d,o/2,c/2),f=Ko(f,o/2,c/2),e(i,a+d,s),n(i,a+o,s,a+o,s+c,d),n(i,a+o,s+c,a,s+c,f),n(i,a,s+c,a,s,f),n(i,a,s,a+o,s,d),i.closePath())}}const AT=(t,e,n)=>{t.moveTo(e,n)},wT=(t,e,n)=>{t.moveTo(n,e)},wm=(t,e,n)=>{t.lineTo(e,n)},Im=(t,e,n)=>{t.lineTo(n,e)},IT=GK(0),oP=GK(1),qK=(t,e,n,r,i,a)=>{t.arc(e,n,r,i,a)},$K=(t,e,n,r,i,a)=>{t.arc(n,e,r,i,a)},zK=(t,e,n,r,i,a,s)=>{t.bezierCurveTo(e,n,r,i,a,s)},YK=(t,e,n,r,i,a,s)=>{t.bezierCurveTo(n,e,i,r,s,a)};function HK(t){return(e,n,r,i,a)=>ih(e,n,(s,o,c,d,f,p,m,g,b,S,y)=>{let{pxRound:E,points:T}=s,x,O;d.ori==0?(x=AT,O=qK):(x=wT,O=$K);const C=Jn(T.width*Cn,3);let N=(T.size-T.width)/2*Cn,w=Jn(N*2,3),D=new Path2D,L=new Path2D,{left:U,top:M,width:B,height:Y}=e.bbox;IT(L,U-w,M-w,B+w*2,Y+w*2);const H=F=>{if(c[F]!=null){let k=E(p(o[F],d,S,g)),P=E(m(c[F],f,y,b));x(D,k+N,P),O(D,k,P,N,0,wS*2)}};if(a)a.forEach(H);else for(let F=r;F<=i;F++)H(F);return{stroke:C>0?D:null,fill:D,clip:L,flags:am|OD}})}function VK(t){return(e,n,r,i,a,s)=>{r!=i&&(a!=r&&s!=r&&t(e,n,r),a!=i&&s!=i&&t(e,n,i),t(e,n,s))}}const dOe=VK(wm),fOe=VK(Im);function WK(t){const e=Tn(t==null?void 0:t.alignGaps,0);return(n,r,i,a)=>ih(n,r,(s,o,c,d,f,p,m,g,b,S,y)=>{[i,a]=xT(c,i,a);let E=s.pxRound,T=Y=>E(p(Y,d,S,g)),x=Y=>E(m(Y,f,y,b)),O,C;d.ori==0?(O=wm,C=dOe):(O=Im,C=fOe);const N=d.dir*(d.ori==0?1:-1),w={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:am},D=w.stroke;let L=!1;if(a-i>=S*4){let Y=X=>n.posToVal(X,d.key,!0),H=null,F=null,k,P,z,V=T(o[N==1?i:a]),G=T(o[i]),Q=T(o[a]),Z=Y(N==1?G+1:Q-1);for(let X=N==1?i:a;X>=i&&X<=a;X+=N){let ue=o[X],be=(N==1?ue<Z:ue>Z)?V:T(ue),ye=c[X];be==V?ye!=null?(P=ye,H==null?(O(D,be,x(P)),k=H=F=P):P<H?H=P:P>F&&(F=P)):ye===null&&(L=!0):(H!=null&&C(D,V,x(H),x(F),x(k),x(P)),ye!=null?(P=ye,O(D,be,x(P)),H=F=k=P):(H=F=null,ye===null&&(L=!0)),V=be,Z=Y(V+N))}H!=null&&H!=F&&z!=V&&C(D,V,x(H),x(F),x(k),x(P))}else for(let Y=N==1?i:a;Y>=i&&Y<=a;Y+=N){let H=c[Y];H===null?L=!0:H!=null&&O(D,T(o[Y]),x(H))}let[M,B]=aP(n,r);if(s.fill!=null||M!=0){let Y=w.fill=new Path2D(D),H=s.fillTo(n,r,s.min,s.max,M),F=x(H),k=T(o[i]),P=T(o[a]);N==-1&&([P,k]=[k,P]),O(Y,P,F),O(Y,k,F)}if(!s.spanGaps){let Y=[];L&&Y.push(...sP(o,c,i,a,N,T,e)),w.gaps=Y=s.gaps(n,r,i,a,Y),w.clip=NT(Y,d.ori,g,b,S,y)}return B!=0&&(w.band=B==2?[Uc(n,r,i,a,D,-1),Uc(n,r,i,a,D,1)]:Uc(n,r,i,a,D,B)),w})}function hOe(t){const e=Tn(t.align,1),n=Tn(t.ascDesc,!1),r=Tn(t.alignGaps,0),i=Tn(t.extend,!1);return(a,s,o,c)=>ih(a,s,(d,f,p,m,g,b,S,y,E,T,x)=>{[o,c]=xT(p,o,c);let O=d.pxRound,{left:C,width:N}=a.bbox,w=G=>O(b(G,m,T,y)),D=G=>O(S(G,g,x,E)),L=m.ori==0?wm:Im;const U={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:am},M=U.stroke,B=m.dir*(m.ori==0?1:-1);let Y=D(p[B==1?o:c]),H=w(f[B==1?o:c]),F=H,k=H;i&&e==-1&&(k=C,L(M,k,Y)),L(M,H,Y);for(let G=B==1?o:c;G>=o&&G<=c;G+=B){let Q=p[G];if(Q==null)continue;let Z=w(f[G]),X=D(Q);e==1?L(M,Z,Y):L(M,F,X),L(M,Z,X),Y=X,F=Z}let P=F;i&&e==1&&(P=C+N,L(M,P,Y));let[z,V]=aP(a,s);if(d.fill!=null||z!=0){let G=U.fill=new Path2D(M),Q=d.fillTo(a,s,d.min,d.max,z),Z=D(Q);L(G,P,Z),L(G,k,Z)}if(!d.spanGaps){let G=[];G.push(...sP(f,p,o,c,B,w,r));let Q=d.width*Cn/2,Z=n||e==1?Q:-Q,X=n||e==-1?-Q:Q;G.forEach(ue=>{ue[0]+=Z,ue[1]+=X}),U.gaps=G=d.gaps(a,s,o,c,G),U.clip=NT(G,m.ori,y,E,T,x)}return V!=0&&(U.band=V==2?[Uc(a,s,o,c,M,-1),Uc(a,s,o,c,M,1)]:Uc(a,s,o,c,M,V)),U})}function dG(t,e,n,r,i,a,s=Zn){if(t.length>1){let o=null;for(let c=0,d=1/0;c<t.length;c++)if(e[c]!==void 0){if(o!=null){let f=mi(t[c]-t[o]);f<d&&(d=f,s=mi(n(t[c],r,i,a)-n(t[o],r,i,a)))}o=c}}return s}function pOe(t){t=t||T_;const e=Tn(t.size,[.6,Zn,1]),n=t.align||0,r=t.gap||0;let i=t.radius;i=i==null?[0,0]:typeof i=="number"?[i,0]:i;const a=cn(i),s=1-e[0],o=Tn(e[1],Zn),c=Tn(e[2],1),d=Tn(t.disp,T_),f=Tn(t.each,g=>{}),{fill:p,stroke:m}=d;return(g,b,S,y)=>ih(g,b,(E,T,x,O,C,N,w,D,L,U,M)=>{let B=E.pxRound,Y=n,H=r*Cn,F=o*Cn,k=c*Cn,P,z;O.ori==0?[P,z]=a(g,b):[z,P]=a(g,b);const V=O.dir*(O.ori==0?1:-1);let G=O.ori==0?IT:oP,Q=O.ori==0?f:(Re,et,yt,Mt,kt,Zt,zt)=>{f(Re,et,yt,kt,Mt,zt,Zt)},Z=Tn(g.bands,eP).find(Re=>Re.series[0]==b),X=Z!=null?Z.dir:0,ue=E.fillTo(g,b,E.min,E.max,X),fe=B(w(ue,C,M,L)),be,ye,Ne,ke=U,Oe=B(E.width*Cn),oe=!1,Se=null,le=null,Ge=null,lt=null;p!=null&&(Oe==0||m!=null)&&(oe=!0,Se=p.values(g,b,S,y),le=new Map,new Set(Se).forEach(Re=>{Re!=null&&le.set(Re,new Path2D)}),Oe>0&&(Ge=m.values(g,b,S,y),lt=new Map,new Set(Ge).forEach(Re=>{Re!=null&&lt.set(Re,new Path2D)})));let{x0:xt,size:Ae}=d;if(xt!=null&&Ae!=null){Y=1,T=xt.values(g,b,S,y),xt.unit==2&&(T=T.map(yt=>g.posToVal(D+yt*U,O.key,!0)));let Re=Ae.values(g,b,S,y);Ae.unit==2?ye=Re[0]*U:ye=N(Re[0],O,U,D)-N(0,O,U,D),ke=dG(T,x,N,O,U,D,ke),Ne=ke-ye+H}else ke=dG(T,x,N,O,U,D,ke),Ne=ke*s+H,ye=ke-Ne;Ne<1&&(Ne=0),Oe>=ye/2&&(Oe=0),Ne<5&&(B=_K);let Be=Ne>0,Xe=ke-Ne-(Be?Oe:0);ye=B(TD(Xe,k,F)),be=(Y==0?ye/2:Y==V?0:ye)-Y*V*((Y==0?H/2:0)+(Be?Oe/2:0));const je={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Ze=oe?null:new Path2D;let Et=null;if(Z!=null)Et=g.data[Z.series[1]];else{let{y0:Re,y1:et}=d;Re!=null&&et!=null&&(x=et.values(g,b,S,y),Et=Re.values(g,b,S,y))}let vt=P*ye,xe=z*ye;for(let Re=V==1?S:y;Re>=S&&Re<=y;Re+=V){let et=x[Re];if(et==null)continue;if(Et!=null){let Lt=Et[Re]??0;if(et-Lt==0)continue;fe=w(Lt,C,M,L)}let yt=O.distr!=2||d!=null?T[Re]:Re,Mt=N(yt,O,U,D),kt=w(Tn(et,ue),C,M,L),Zt=B(Mt-be),zt=B(Ba(kt,fe)),Fn=B(Ko(kt,fe)),Hn=zt-Fn;if(et!=null){let Lt=et<0?xe:vt,Jt=et<0?vt:xe;oe?(Oe>0&&Ge[Re]!=null&&G(lt.get(Ge[Re]),Zt,Fn+Ns(Oe/2),ye,Ba(0,Hn-Oe),Lt,Jt),Se[Re]!=null&&G(le.get(Se[Re]),Zt,Fn+Ns(Oe/2),ye,Ba(0,Hn-Oe),Lt,Jt)):G(Ze,Zt,Fn+Ns(Oe/2),ye,Ba(0,Hn-Oe),Lt,Jt),Q(g,b,Re,Zt-Oe/2,Fn,ye+Oe,Hn)}}return Oe>0?je.stroke=oe?lt:Ze:oe||(je._fill=E.width==0?E._fill:E._stroke??E._fill,je.width=0),je.fill=oe?le:Ze,je})}function mOe(t,e){const n=Tn(e==null?void 0:e.alignGaps,0);return(r,i,a,s)=>ih(r,i,(o,c,d,f,p,m,g,b,S,y,E)=>{[a,s]=xT(d,a,s);let T=o.pxRound,x=P=>T(m(P,f,y,b)),O=P=>T(g(P,p,E,S)),C,N,w;f.ori==0?(C=AT,w=wm,N=zK):(C=wT,w=Im,N=YK);const D=f.dir*(f.ori==0?1:-1);let L=x(c[D==1?a:s]),U=L,M=[],B=[];for(let P=D==1?a:s;P>=a&&P<=s;P+=D)if(d[P]!=null){let V=c[P],G=x(V);M.push(U=G),B.push(O(d[P]))}const Y={stroke:t(M,B,C,w,N,T),fill:null,clip:null,band:null,gaps:null,flags:am},H=Y.stroke;let[F,k]=aP(r,i);if(o.fill!=null||F!=0){let P=Y.fill=new Path2D(H),z=o.fillTo(r,i,o.min,o.max,F),V=O(z);w(P,U,V),w(P,L,V)}if(!o.spanGaps){let P=[];P.push(...sP(c,d,a,s,D,x,n)),Y.gaps=P=o.gaps(r,i,a,s,P),Y.clip=NT(P,f.ori,b,S,y,E)}return k!=0&&(Y.band=k==2?[Uc(r,i,a,s,H,-1),Uc(r,i,a,s,H,1)]:Uc(r,i,a,s,H,k)),Y})}function gOe(t){return mOe(_Oe,t)}function _Oe(t,e,n,r,i,a){const s=t.length;if(s<2)return null;const o=new Path2D;if(n(o,t[0],e[0]),s==2)r(o,t[1],e[1]);else{let c=Array(s),d=Array(s-1),f=Array(s-1),p=Array(s-1);for(let m=0;m<s-1;m++)f[m]=e[m+1]-e[m],p[m]=t[m+1]-t[m],d[m]=f[m]/p[m];c[0]=d[0];for(let m=1;m<s-1;m++)d[m]===0||d[m-1]===0||d[m-1]>0!=d[m]>0?c[m]=0:(c[m]=3*(p[m-1]+p[m])/((2*p[m]+p[m-1])/d[m-1]+(p[m]+2*p[m-1])/d[m]),isFinite(c[m])||(c[m]=0));c[s-1]=d[s-2];for(let m=0;m<s-1;m++)i(o,t[m]+p[m]/3,e[m]+c[m]*p[m]/3,t[m+1]-p[m]/3,e[m+1]-c[m+1]*p[m]/3,t[m+1],e[m+1])}return o}const RD=new Set;function fG(){for(let t of RD)t.syncRect(!0)}Am&&(Ff(Xxe,_p,fG),Ff(Zxe,_p,fG,!0),Ff(UE,_p,()=>{Pi.pxRatio=Cn}));const bOe=WK(),vOe=HK();function hG(t,e,n,r){return(r?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((a,s)=>ND(a,s,e,n))}function SOe(t,e){return t.map((n,r)=>r==0?{}:ti({},e,n))}function ND(t,e,n,r){return ti({},e==0?n:r,t)}function QK(t,e,n){return e==null?rm:[e,n]}const EOe=QK;function yOe(t,e,n){return e==null?rm:jE(e,n,Zk,!0)}function KK(t,e,n,r){return e==null?rm:CT(e,n,t.scales[r].log,!1)}const TOe=KK;function XK(t,e,n,r){return e==null?rm:Xk(e,n,t.scales[r].log,!1)}const xOe=XK;function COe(t,e,n,r,i){let a=Ba(Y4(t),Y4(e)),s=e-t,o=Ho(i/r*s,n);do{let c=n[o],d=r*c/s;if(d>=i&&a+(c<5?Sd.get(c):0)<=17)return[c,d]}while(++o<n.length);return[0,0]}function pG(t){let e,n;return t=t.replace(/(\d+)px/,(r,i)=>(e=pi((n=+i)*Cn))+"px"),[t,e,n]}function OOe(t){t.show&&[t.font,t.labelFont].forEach(e=>{let n=Jn(e[2]*Cn,1);e[0]=e[0].replace(/[0-9.]+px/,n+"px"),e[1]=n})}function Pi(t,e,n){const r={mode:Tn(t.mode,1)},i=r.mode;function a(j,W,J,ee){let ae=W.valToPct(j);return ee+J*(W.dir==-1?1-ae:ae)}function s(j,W,J,ee){let ae=W.valToPct(j);return ee+J*(W.dir==-1?ae:1-ae)}function o(j,W,J,ee){return W.ori==0?a(j,W,J,ee):s(j,W,J,ee)}r.valToPosH=a,r.valToPosV=s;let c=!1;r.status=0;const d=r.root=Vs(Mxe);if(t.id!=null&&(d.id=t.id),bs(d,t.class),t.title){let j=Vs(Pxe,d);j.textContent=t.title}const f=Mo("canvas"),p=r.ctx=f.getContext("2d"),m=Vs(Bxe,d);Ff("click",m,j=>{j.target===b&&(jn!=yo||Kt!=ac)&&wr.click(r,j)},!0);const g=r.under=Vs(Fxe,m);m.appendChild(f);const b=r.over=Vs(Uxe,m);t=im(t);const S=+Tn(t.pxAlign,1),y=uG(S);(t.plugins||[]).forEach(j=>{j.opts&&(t=j.opts(r,t)||t)});const E=t.ms||.001,T=r.series=i==1?hG(t.series||[],rG,lG,!1):SOe(t.series||[null],oG),x=r.axes=hG(t.axes||[],nG,aG,!0),O=r.scales={},C=r.bands=t.bands||[];C.forEach(j=>{j.fill=cn(j.fill||null),j.dir=Tn(j.dir,-1)});const N=i==2?T[1].facets[0].scale:T[0].scale,w={axes:Sn,series:Gi},D=(t.drawOrder||["axes","series"]).map(j=>w[j]);function L(j){const W=j.distr==3?J=>Fc(J>0?J:j.clamp(r,J,j.min,j.max,j.key)):j.distr==4?J=>NR(J,j.asinh):j.distr==100?J=>j.fwd(J):J=>J;return J=>{let ee=W(J),{_min:ae,_max:ge}=j,De=ge-ae;return(ee-ae)/De}}function U(j){let W=O[j];if(W==null){let J=(t.scales||T_)[j]||T_;if(J.from!=null){U(J.from);let ee=ti({},O[J.from],J,{key:j});ee.valToPct=L(ee),O[j]=ee}else{W=O[j]=ti({},j==N?UK:lOe,J),W.key=j;let ee=W.time,ae=W.range,ge=Gu(ae);if((j!=N||i==2&&!ee)&&(ge&&(ae[0]==null||ae[1]==null)&&(ae={min:ae[0]==null?q4:{mode:1,hard:ae[0],soft:ae[0]},max:ae[1]==null?q4:{mode:1,hard:ae[1],soft:ae[1]}},ge=!1),!ge&&RT(ae))){let De=ae;ae=(qe,He,at)=>He==null?rm:jE(He,at,De)}W.range=cn(ae||(ee?EOe:j==N?W.distr==3?TOe:W.distr==4?xOe:QK:W.distr==3?KK:W.distr==4?XK:yOe)),W.auto=cn(ge?!1:W.auto),W.clamp=cn(W.clamp||oOe),W._min=W._max=null,W.valToPct=L(W)}}}U("x"),U("y"),i==1&&T.forEach(j=>{U(j.scale)}),x.forEach(j=>{U(j.scale)});for(let j in t.scales)U(j);const M=O[N],B=M.distr;let Y,H;M.ori==0?(bs(d,Lxe),Y=a,H=s):(bs(d,kxe),Y=s,H=a);const F={};for(let j in O){let W=O[j];(W.min!=null||W.max!=null)&&(F[j]={min:W.min,max:W.max},W.min=W.max=null)}const k=t.tzDate||(j=>new Date(pi(j/E))),P=t.fmtDate||tP,z=E==1?LCe(k):BCe(k),V=J4(k,Z4(E==1?MCe:PCe,P)),G=tG(k,eG(UCe,P)),Q=[],Z=r.legend=ti({},qCe,t.legend),X=r.cursor=ti({},WCe,{drag:{y:i==2}},t.cursor),ue=Z.show,fe=X.show,be=Z.markers;Z.idxs=Q,be.width=cn(be.width),be.dash=cn(be.dash),be.stroke=cn(be.stroke),be.fill=cn(be.fill);let ye,Ne,ke,Oe=[],oe=[],Se,le=!1,Ge={};if(Z.live){const j=T[1]?T[1].values:null;le=j!=null,Se=le?j(r,1,0):{_:0};for(let W in Se)Ge[W]=Qk}if(ue)if(ye=Mo("table",Yxe,d),ke=Mo("tbody",null,ye),Z.mount(r,ye),le){Ne=Mo("thead",null,ye,ke);let j=Mo("tr",null,Ne);Mo("th",null,j);for(var lt in Se)Mo("th",A4,j).textContent=lt}else bs(ye,Vxe),Z.live&&bs(ye,Hxe);const xt={show:!0},Ae={show:!1};function Be(j,W){if(W==0&&(le||!Z.live||i==2))return rm;let J=[],ee=Mo("tr",Wxe,ke,ke.childNodes[W]);bs(ee,j.class),j.show||bs(ee,ff);let ae=Mo("th",null,ee);if(be.show){let qe=Vs(Qxe,ae);if(W>0){let He=be.width(r,W);He&&(qe.style.border=He+"px "+be.dash(r,W)+" "+be.stroke(r,W)),qe.style.background=be.fill(r,W)}}let ge=Vs(A4,ae);j.label instanceof HTMLElement?ge.appendChild(j.label):ge.textContent=j.label,W>0&&(be.show||(ge.style.color=j.width>0?be.stroke(r,W):be.fill(r,W)),je("click",ae,qe=>{if(X._lock)return;vn(qe);let He=T.indexOf(j);if((qe.ctrlKey||qe.metaKey)!=Z.isolate){let at=T.some((st,mt)=>mt>0&&mt!=He&&st.show);T.forEach((st,mt)=>{mt>0&&Fs(mt,at?mt==He?xt:Ae:xt,!0,Ir.setSeries)})}else Fs(He,{show:!j.show},!0,Ir.setSeries)},!1),dt&&je(M4,ae,qe=>{X._lock||(vn(qe),Fs(T.indexOf(j),ou,!0,Ir.setSeries))},!1));for(var De in Se){let qe=Mo("td",Kxe,ee);qe.textContent="--",J.push(qe)}return[ee,J]}const Xe=new Map;function je(j,W,J,ee=!0){const ae=Xe.get(W)||{},ge=X.bind[j](r,W,J,ee);ge&&(Ff(j,W,ae[j]=ge),Xe.set(W,ae))}function Ze(j,W,J){const ee=Xe.get(W)||{};for(let ae in ee)(j==null||ae==j)&&(yD(ae,W,ee[ae]),delete ee[ae]);j==null&&Xe.delete(W)}let Et=0,vt=0,xe=0,Re=0,et=0,yt=0,Mt=et,kt=yt,Zt=xe,zt=Re,Fn=0,Hn=0,Lt=0,Jt=0;r.bbox={};let si=!1,Nr=!1,$t=!1,Fr=!1,Vn=!1,xr=!1;function ya(j,W,J){(J||j!=r.width||W!=r.height)&&Ga(j,W),sa(!1),$t=!0,Nr=!0,it()}function Ga(j,W){r.width=Et=xe=j,r.height=vt=Re=W,et=yt=0,ct(),gn();let J=r.bbox;Fn=J.left=sf(et*Cn,.5),Hn=J.top=sf(yt*Cn,.5),Lt=J.width=sf(xe*Cn,.5),Jt=J.height=sf(Re*Cn,.5)}const ne=3;function we(){let j=!1,W=0;for(;!j;){W++;let J=ic(W),ee=rr(W);j=W==ne||J&&ee,j||(Ga(r.width,r.height),Nr=!0)}}function Ke({width:j,height:W}){ya(j,W)}r.setSize=Ke;function ct(){let j=!1,W=!1,J=!1,ee=!1;x.forEach((ae,ge)=>{if(ae.show&&ae._show){let{side:De,_size:qe}=ae,He=De%2,at=ae.label!=null?ae.labelSize:0,st=qe+at;st>0&&(He?(xe-=st,De==3?(et+=st,ee=!0):J=!0):(Re-=st,De==0?(yt+=st,j=!0):W=!0))}}),ji[0]=j,ji[1]=J,ji[2]=W,ji[3]=ee,xe-=qa[1]+qa[3],et+=qa[3],Re-=qa[2]+qa[0],yt+=qa[0]}function gn(){let j=et+xe,W=yt+Re,J=et,ee=yt;function ae(ge,De){switch(ge){case 1:return j+=De,j-De;case 2:return W+=De,W-De;case 3:return J-=De,J+De;case 0:return ee-=De,ee+De}}x.forEach((ge,De)=>{if(ge.show&&ge._show){let qe=ge.side;ge._pos=ae(qe,ge._size),ge.label!=null&&(ge._lpos=ae(qe,ge.labelSize))}})}if(X.dataIdx==null){let j=X.hover,W=j.skip=new Set(j.skip??[]);W.add(void 0);let J=j.prox=cn(j.prox),ee=j.bias??(j.bias=0);X.dataIdx=(ae,ge,De,qe)=>{if(ge==0)return De;let He=De,at=J(ae,ge,De,qe)??Zn,st=at>=0&&at<Zn,mt=M.ori==0?xe:Re,Ct=X.left,sn=e[0],fn=e[ge];if(W.has(fn[De])){He=null;let Wt=null,wt=null,Tt;if(ee==0||ee==-1)for(Tt=De;Wt==null&&Tt-- >0;)W.has(fn[Tt])||(Wt=Tt);if(ee==0||ee==1)for(Tt=De;wt==null&&Tt++<fn.length;)W.has(fn[Tt])||(wt=Tt);if(Wt!=null||wt!=null)if(st){let Mn=Wt==null?-1/0:Y(sn[Wt],M,mt,0),br=wt==null?1/0:Y(sn[wt],M,mt,0),or=Ct-Mn,En=br-Ct;or<=En?or<=at&&(He=Wt):En<=at&&(He=wt)}else He=wt==null?Wt:Wt==null?wt:De-Wt<=wt-De?Wt:wt}else st&&mi(Ct-Y(sn[De],M,mt,0))>at&&(He=null);return He}}const vn=j=>{X.event=j};X.idxs=Q,X._lock=!1;let We=X.points;We.show=cn(We.show),We.size=cn(We.size),We.stroke=cn(We.stroke),We.width=cn(We.width),We.fill=cn(We.fill);const ze=r.focus=ti({},t.focus||{alpha:.3},X.focus),dt=ze.prox>=0,_n=dt&&We.one;let en=[],Ta=[],ss=[];function ll(j,W){let J=We.show(r,W);if(J instanceof HTMLElement)return bs(J,zxe),bs(J,j.class),Cl(J,-10,-10,xe,Re),b.insertBefore(J,en[W]),J}function go(j,W){if(i==1||W>0){let J=i==1&&O[j.scale].time,ee=j.value;j.value=J?W4(ee)?tG(k,eG(ee,P)):ee||G:ee||iOe,j.label=j.label||(J?KCe:QCe)}if(_n||W>0){j.width=j.width==null?1:j.width,j.paths=j.paths||bOe||lCe,j.fillTo=cn(j.fillTo||cOe),j.pxAlign=+Tn(j.pxAlign,S),j.pxRound=uG(j.pxAlign),j.stroke=cn(j.stroke||null),j.fill=cn(j.fill||null),j._stroke=j._fill=j._paths=j._focus=null;let J=aOe(Ba(1,j.width),1),ee=j.points=ti({},{size:J,width:Ba(1,J*.2),stroke:j.stroke,space:J*2,paths:vOe,_stroke:null,_fill:null},j.points);ee.show=cn(ee.show),ee.filter=cn(ee.filter),ee.fill=cn(ee.fill),ee.stroke=cn(ee.stroke),ee.paths=cn(ee.paths),ee.pxAlign=j.pxAlign}if(ue){let J=Be(j,W);Oe.splice(W,0,J[0]),oe.splice(W,0,J[1]),Z.values.push(null)}if(fe){Q.splice(W,0,null);let J=null;_n?W==0&&(J=ll(j,W)):W>0&&(J=ll(j,W)),en.splice(W,0,J),Ta.splice(W,0,0),ss.splice(W,0,0)}Wr("addSeries",W)}function cl(j,W){W=W??T.length,j=i==1?ND(j,W,rG,lG):ND(j,W,{},oG),T.splice(W,0,j),go(T[W],W)}r.addSeries=cl;function _o(j){if(T.splice(j,1),ue){Z.values.splice(j,1),oe.splice(j,1);let W=Oe.splice(j,1)[0];Ze(null,W.firstChild),W.remove()}fe&&(Q.splice(j,1),en.splice(j,1)[0].remove(),Ta.splice(j,1),ss.splice(j,1)),Wr("delSeries",j)}r.delSeries=_o;const ji=[!1,!1,!1,!1];function ul(j,W){if(j._show=j.show,j.show){let J=j.side%2,ee=O[j.scale];ee==null&&(j.scale=J?T[1].scale:N,ee=O[j.scale]);let ae=ee.time;j.size=cn(j.size),j.space=cn(j.space),j.rotate=cn(j.rotate),Gu(j.incrs)&&j.incrs.forEach(De=>{!Sd.has(De)&&Sd.set(De,SK(De))}),j.incrs=cn(j.incrs||(ee.distr==2?wCe:ae?E==1?DCe:kCe:of)),j.splits=cn(j.splits||(ae&&ee.distr==1?z:ee.distr==3?xD:ee.distr==4?JCe:ZCe)),j.stroke=cn(j.stroke),j.grid.stroke=cn(j.grid.stroke),j.ticks.stroke=cn(j.ticks.stroke),j.border.stroke=cn(j.border.stroke);let ge=j.values;j.values=Gu(ge)&&!Gu(ge[0])?cn(ge):ae?Gu(ge)?J4(k,Z4(ge,P)):W4(ge)?FCe(k,ge):ge||V:ge||XCe,j.filter=cn(j.filter||(ee.distr>=3&&ee.log==10?nOe:ee.distr==3&&ee.log==2?rOe:bK)),j.font=pG(j.font),j.labelFont=pG(j.labelFont),j._size=j.size(r,null,W,0),j._space=j._rotate=j._incrs=j._found=j._splits=j._values=null,j._size>0&&(ji[W]=!0,j._el=Vs(jxe,m))}}function ra(j,W,J,ee){let[ae,ge,De,qe]=J,He=W%2,at=0;return He==0&&(qe||ge)&&(at=W==0&&!ae||W==2&&!De?pi(nG.size/3):0),He==1&&(ae||De)&&(at=W==1&&!ge||W==3&&!qe?pi(aG.size/2):0),at}const Wn=r.padding=(t.padding||[ra,ra,ra,ra]).map(j=>cn(Tn(j,ra))),qa=r._padding=Wn.map((j,W)=>j(r,W,ji,0));let Cr,In=null,Un=null;const ia=i==1?T[0].idxs:null;let Ti=null,Ls=!1;function Ad(j,W){if(e=j??[],r.data=r._data=e,i==2){Cr=0;for(let J=1;J<T.length;J++)Cr+=e[J][0].length}else{e.length==0&&(r.data=r._data=e=[[]]),Ti=e[0],Cr=Ti.length;let J=e;if(B==2){J=e.slice();let ee=J[0]=Array(Cr);for(let ae=0;ae<Cr;ae++)ee[ae]=ae}r._data=e=J}if(sa(!0),Wr("setData"),B==2&&($t=!0),W!==!1){let J=M;J.auto(r,Ls)?bo():To(N,J.min,J.max),Fr=Fr||X.left>=0,xr=!0,it()}}r.setData=Ad;function bo(){Ls=!0;let j,W;i==1&&(Cr>0?(In=ia[0]=0,Un=ia[1]=Cr-1,j=e[0][In],W=e[0][Un],B==2?(j=In,W=Un):j==W&&(B==3?[j,W]=CT(j,j,M.log,!1):B==4?[j,W]=Xk(j,j,M.log,!1):M.time?W=j+pi(86400/E):[j,W]=jE(j,W,Zk,!0))):(In=ia[0]=j=null,Un=ia[1]=W=null)),To(N,j,W)}let ks,Ar,dl,Ye,_t,Gt,dn,nr,oi,an;function vo(j,W,J,ee,ae,ge){j??(j=I4),J??(J=eP),ee??(ee="butt"),ae??(ae=I4),ge??(ge="round"),j!=ks&&(p.strokeStyle=ks=j),ae!=Ar&&(p.fillStyle=Ar=ae),W!=dl&&(p.lineWidth=dl=W),ge!=_t&&(p.lineJoin=_t=ge),ee!=Gt&&(p.lineCap=Gt=ee),J!=Ye&&p.setLineDash(Ye=J)}function li(j,W,J,ee){W!=Ar&&(p.fillStyle=Ar=W),j!=dn&&(p.font=dn=j),J!=nr&&(p.textAlign=nr=J),ee!=oi&&(p.textBaseline=oi=ee)}function zr(j,W,J,ee,ae=0){if(ee.length>0&&j.auto(r,Ls)&&(W==null||W.min==null)){let ge=Tn(In,0),De=Tn(Un,ee.length-1),qe=J.min==null?nCe(ee,ge,De,ae,j.distr==3):[J.min,J.max];j.min=Ko(j.min,J.min=qe[0]),j.max=Ba(j.max,J.max=qe[1])}}const tc={min:null,max:null};function fl(){for(let ee in O){let ae=O[ee];F[ee]==null&&(ae.min==null||F[N]!=null&&ae.auto(r,Ls))&&(F[ee]=tc)}for(let ee in O){let ae=O[ee];F[ee]==null&&ae.from!=null&&F[ae.from]!=null&&(F[ee]=tc)}F[N]!=null&&sa(!0);let j={};for(let ee in F){let ae=F[ee];if(ae!=null){let ge=j[ee]=im(O[ee],dCe);if(ae.min!=null)ti(ge,ae);else if(ee!=N||i==2)if(Cr==0&&ge.from==null){let De=ge.range(r,null,null,ee);ge.min=De[0],ge.max=De[1]}else ge.min=Zn,ge.max=-Zn}}if(Cr>0){T.forEach((ee,ae)=>{if(i==1){let ge=ee.scale,De=F[ge];if(De==null)return;let qe=j[ge];if(ae==0){let He=qe.range(r,qe.min,qe.max,ge);qe.min=He[0],qe.max=He[1],In=Ho(qe.min,e[0]),Un=Ho(qe.max,e[0]),Un-In>1&&(e[0][In]<qe.min&&In++,e[0][Un]>qe.max&&Un--),ee.min=Ti[In],ee.max=Ti[Un]}else ee.show&&ee.auto&&zr(qe,De,ee,e[ae],ee.sorted);ee.idxs[0]=In,ee.idxs[1]=Un}else if(ae>0&&ee.show&&ee.auto){let[ge,De]=ee.facets,qe=ge.scale,He=De.scale,[at,st]=e[ae],mt=j[qe],Ct=j[He];mt!=null&&zr(mt,F[qe],ge,at,ge.sorted),Ct!=null&&zr(Ct,F[He],De,st,De.sorted),ee.min=De.min,ee.max=De.max}});for(let ee in j){let ae=j[ee],ge=F[ee];if(ae.from==null&&(ge==null||ge.min==null)){let De=ae.range(r,ae.min==Zn?null:ae.min,ae.max==-Zn?null:ae.max,ee);ae.min=De[0],ae.max=De[1]}}}for(let ee in j){let ae=j[ee];if(ae.from!=null){let ge=j[ae.from];if(ge.min==null)ae.min=ae.max=null;else{let De=ae.range(r,ge.min,ge.max,ee);ae.min=De[0],ae.max=De[1]}}}let W={},J=!1;for(let ee in j){let ae=j[ee],ge=O[ee];if(ge.min!=ae.min||ge.max!=ae.max){ge.min=ae.min,ge.max=ae.max;let De=ge.distr;ge._min=De==3?Fc(ge.min):De==4?NR(ge.min,ge.asinh):De==100?ge.fwd(ge.min):ge.min,ge._max=De==3?Fc(ge.max):De==4?NR(ge.max,ge.asinh):De==100?ge.fwd(ge.max):ge.max,W[ee]=J=!0}}if(J){T.forEach((ee,ae)=>{i==2?ae>0&&W.y&&(ee._paths=null):W[ee.scale]&&(ee._paths=null)});for(let ee in W)$t=!0,Wr("setScale",ee);fe&&X.left>=0&&(Fr=xr=!0)}for(let ee in F)F[ee]=null}function wd(j){let W=TD(In-1,0,Cr-1),J=TD(Un+1,0,Cr-1);for(;j[W]==null&&W>0;)W--;for(;j[J]==null&&J<Cr-1;)J++;return[W,J]}function Gi(){if(Cr>0){let j=T.some(W=>W._focus)&&an!=ze.alpha;j&&(p.globalAlpha=an=ze.alpha),T.forEach((W,J)=>{if(J>0&&W.show&&(nc(J,!1),nc(J,!0),W._paths==null)){let ee=an;an!=W.alpha&&(p.globalAlpha=an=W.alpha);let ae=i==2?[0,e[J][0].length-1]:wd(e[J]);W._paths=W.paths(r,J,ae[0],ae[1]),an!=ee&&(p.globalAlpha=an=ee)}}),T.forEach((W,J)=>{if(J>0&&W.show){let ee=an;an!=W.alpha&&(p.globalAlpha=an=W.alpha),W._paths!=null&&au(J,!1);{let ae=W._paths!=null?W._paths.gaps:null,ge=W.points.show(r,J,In,Un,ae),De=W.points.filter(r,J,ge,ae);(ge||De)&&(W.points._paths=W.points.paths(r,J,In,Un,De),au(J,!0))}an!=ee&&(p.globalAlpha=an=ee),Wr("drawSeries",J)}}),j&&(p.globalAlpha=an=1)}}function nc(j,W){let J=W?T[j].points:T[j];J._stroke=J.stroke(r,j),J._fill=J.fill(r,j)}function au(j,W){let J=W?T[j].points:T[j],{stroke:ee,fill:ae,clip:ge,flags:De,_stroke:qe=J._stroke,_fill:He=J._fill,_width:at=J.width}=J._paths;at=Jn(at*Cn,3);let st=null,mt=at%2/2;W&&He==null&&(He=at>0?"#fff":qe);let Ct=J.pxAlign==1&&mt>0;if(Ct&&p.translate(mt,mt),!W){let sn=Fn-at/2,fn=Hn-at/2,Wt=Lt+at,wt=Jt+at;st=new Path2D,st.rect(sn,fn,Wt,wt)}W?So(qe,at,J.dash,J.cap,He,ee,ae,De,ge):su(j,qe,at,J.dash,J.cap,He,ee,ae,De,st,ge),Ct&&p.translate(-mt,-mt)}function su(j,W,J,ee,ae,ge,De,qe,He,at,st){let mt=!1;He!=0&&C.forEach((Ct,sn)=>{if(Ct.series[0]==j){let fn=T[Ct.series[1]],Wt=e[Ct.series[1]],wt=(fn._paths||T_).band;Gu(wt)&&(wt=Ct.dir==1?wt[0]:wt[1]);let Tt,Mn=null;fn.show&&wt&&iCe(Wt,In,Un)?(Mn=Ct.fill(r,sn)||ge,Tt=fn._paths.clip):wt=null,So(W,J,ee,ae,Mn,De,qe,He,at,st,Tt,wt),mt=!0}}),mt||So(W,J,ee,ae,ge,De,qe,He,at,st)}const aa=am|OD;function So(j,W,J,ee,ae,ge,De,qe,He,at,st,mt){vo(j,W,J,ee,ae),(He||at||mt)&&(p.save(),He&&p.clip(He),at&&p.clip(at)),mt?(qe&aa)==aa?(p.clip(mt),st&&p.clip(st),xa(ae,De),Yr(j,ge,W)):qe&OD?(xa(ae,De),p.clip(mt),Yr(j,ge,W)):qe&am&&(p.save(),p.clip(mt),st&&p.clip(st),xa(ae,De),p.restore(),Yr(j,ge,W)):(xa(ae,De),Yr(j,ge,W)),(He||at||mt)&&p.restore()}function Yr(j,W,J){J>0&&(W instanceof Map?W.forEach((ee,ae)=>{p.strokeStyle=ks=ae,p.stroke(ee)}):W!=null&&j&&p.stroke(W))}function xa(j,W){W instanceof Map?W.forEach((J,ee)=>{p.fillStyle=Ar=ee,p.fill(J)}):W!=null&&j&&p.fill(W)}function rc(j,W,J,ee){let ae=x[j],ge;if(ee<=0)ge=[0,0];else{let De=ae._space=ae.space(r,j,W,J,ee),qe=ae._incrs=ae.incrs(r,j,W,J,ee,De);ge=COe(W,J,qe,ee,De)}return ae._found=ge}function At(j,W,J,ee,ae,ge,De,qe,He,at){let st=De%2/2;S==1&&p.translate(st,st),vo(qe,De,He,at,qe),p.beginPath();let mt,Ct,sn,fn,Wt=ae+(ee==0||ee==3?-ge:ge);J==0?(Ct=ae,fn=Wt):(mt=ae,sn=Wt);for(let wt=0;wt<j.length;wt++)W[wt]!=null&&(J==0?mt=sn=j[wt]:Ct=fn=j[wt],p.moveTo(mt,Ct),p.lineTo(sn,fn));p.stroke(),S==1&&p.translate(-st,-st)}function ic(j){let W=!0;return x.forEach((J,ee)=>{if(!J.show)return;let ae=O[J.scale];if(ae.min==null){J._show&&(W=!1,J._show=!1,sa(!1));return}else J._show||(W=!1,J._show=!0,sa(!1));let ge=J.side,De=ge%2,{min:qe,max:He}=ae,[at,st]=rc(ee,qe,He,De==0?xe:Re);if(st==0)return;let mt=ae.distr==2,Ct=J._splits=J.splits(r,ee,qe,He,at,st,mt),sn=ae.distr==2?Ct.map(Tt=>Ti[Tt]):Ct,fn=ae.distr==2?Ti[Ct[1]]-Ti[Ct[0]]:at,Wt=J._values=J.values(r,J.filter(r,sn,ee,st,fn),ee,st,fn);J._rotate=ge==2?J.rotate(r,Wt,ee,st):0;let wt=J._size;J._size=Ks(J.size(r,Wt,ee,j)),wt!=null&&J._size!=wt&&(W=!1)}),W}function rr(j){let W=!0;return Wn.forEach((J,ee)=>{let ae=J(r,ee,ji,j);ae!=qa[ee]&&(W=!1),qa[ee]=ae}),W}function Sn(){for(let j=0;j<x.length;j++){let W=x[j];if(!W.show||!W._show)continue;let J=W.side,ee=J%2,ae,ge,De=W.stroke(r,j),qe=J==0||J==3?-1:1,[He,at]=W._found;if(W.label!=null){let Oi=W.labelGap*qe,Ca=pi((W._lpos+Oi)*Cn);li(W.labelFont[0],De,"center",J==2?Yg:w4),p.save(),ee==1?(ae=ge=0,p.translate(Ca,pi(Hn+Jt/2)),p.rotate((J==3?-wS:wS)/2)):(ae=pi(Fn+Lt/2),ge=Ca);let uc=gK(W.label)?W.label(r,j,He,at):W.label;p.fillText(uc,ae,ge),p.restore()}if(at==0)continue;let st=O[W.scale],mt=ee==0?Lt:Jt,Ct=ee==0?Fn:Hn,sn=W._splits,fn=st.distr==2?sn.map(Oi=>Ti[Oi]):sn,Wt=st.distr==2?Ti[sn[1]]-Ti[sn[0]]:He,wt=W.ticks,Tt=W.border,Mn=wt.show?wt.size:0,br=pi(Mn*Cn),or=pi((W.alignTo==2?W._size-Mn-W.gap:W.gap)*Cn),En=W._rotate*-wS/180,Gn=y(W._pos*Cn),qi=(br+or)*qe,xi=Gn+qi;ge=ee==0?xi:0,ae=ee==1?xi:0;let Qr=W.font[0],Ci=W.align==1?zh:W.align==2?CR:En>0?zh:En<0?CR:ee==0?"center":J==3?CR:zh,$a=En||ee==1?"middle":J==2?Yg:w4;li(Qr,De,Ci,$a);let ua=W.font[1]*W.lineGap,Kr=sn.map(Oi=>y(o(Oi,st,mt,Ct))),za=W._values;for(let Oi=0;Oi<za.length;Oi++){let Ca=za[Oi];if(Ca!=null){ee==0?ae=Kr[Oi]:ge=Kr[Oi],Ca=""+Ca;let uc=Ca.indexOf(`
`)==-1?[Ca]:Ca.split(/\n/gm);for(let $i=0;$i<uc.length;$i++){let qm=uc[$i];En?(p.save(),p.translate(ae,ge+$i*ua),p.rotate(En),p.fillText(qm,0,0),p.restore()):p.fillText(qm,ae,ge+$i*ua)}}}wt.show&&At(Kr,wt.filter(r,fn,j,at,Wt),ee,J,Gn,br,Jn(wt.width*Cn,3),wt.stroke(r,j),wt.dash,wt.cap);let ls=W.grid;ls.show&&At(Kr,ls.filter(r,fn,j,at,Wt),ee,ee==0?2:1,ee==0?Hn:Fn,ee==0?Jt:Lt,Jn(ls.width*Cn,3),ls.stroke(r,j),ls.dash,ls.cap),Tt.show&&At([Gn],[1],ee==0?1:0,ee==0?1:2,ee==1?Hn:Fn,ee==1?Jt:Lt,Jn(Tt.width*Cn,3),Tt.stroke(r,j),Tt.dash,Tt.cap)}Wr("drawAxes")}function sa(j){T.forEach((W,J)=>{J>0&&(W._paths=null,j&&(i==1?(W.min=null,W.max=null):W.facets.forEach(ee=>{ee.min=null,ee.max=null})))})}let ci=!1,os=!1,oa=[];function Qe(){os=!1;for(let j=0;j<oa.length;j++)Wr(...oa[j]);oa.length=0}function it(){ci||(bCe(Qt),ci=!0)}function Bt(j,W=!1){ci=!0,os=W,j(r),Qt(),W&&oa.length>0&&queueMicrotask(Qe)}r.batch=Bt;function Qt(){if(si&&(fl(),si=!1),$t&&(we(),$t=!1),Nr){if(ur(g,zh,et),ur(g,Yg,yt),ur(g,l_,xe),ur(g,c_,Re),ur(b,zh,et),ur(b,Yg,yt),ur(b,l_,xe),ur(b,c_,Re),ur(m,l_,Et),ur(m,c_,vt),f.width=pi(Et*Cn),f.height=pi(vt*Cn),x.forEach(({_el:j,_show:W,_size:J,_pos:ee,side:ae})=>{if(j!=null)if(W){let ge=ae===3||ae===0?J:0,De=ae%2==1;ur(j,De?"left":"top",ee-ge),ur(j,De?"width":"height",J),ur(j,De?"top":"left",De?yt:et),ur(j,De?"height":"width",De?Re:xe),ED(j,ff)}else bs(j,ff)}),ks=Ar=dl=_t=Gt=dn=nr=oi=Ye=null,an=1,Ld(!0),et!=Mt||yt!=kt||xe!=Zt||Re!=zt){sa(!1);let j=xe/Zt,W=Re/zt;if(fe&&!Fr&&X.left>=0){X.left*=j,X.top*=W,Ps&&Cl(Ps,pi(X.left),0,xe,Re),Bs&&Cl(Bs,0,pi(X.top),xe,Re);for(let J=0;J<en.length;J++){let ee=en[J];ee!=null&&(Ta[J]*=j,ss[J]*=W,Cl(ee,Ks(Ta[J]),Ks(ss[J]),xe,Re))}}if(Dn.show&&!Vn&&Dn.left>=0&&Dn.width>0){Dn.left*=j,Dn.width*=j,Dn.top*=W,Dn.height*=W;for(let J in Pm)ur(hl,J,Dn[J])}Mt=et,kt=yt,Zt=xe,zt=Re}Wr("setSize"),Nr=!1}Et>0&&vt>0&&(p.clearRect(0,0,f.width,f.height),Wr("drawClear"),D.forEach(j=>j()),Wr("draw")),Dn.show&&Vn&&(pl(Dn),Vn=!1),fe&&Fr&&(lc(null,!0,!1),Fr=!1),Z.show&&Z.live&&xr&&(Lm(),xr=!1),c||(c=!0,r.status=1,Wr("ready")),Ls=!1,ci=!1}r.redraw=(j,W)=>{$t=W||!1,j!==!1?To(N,M.min,M.max):it()};function ir(j,W){let J=O[j];if(J.from==null){if(Cr==0){let ee=J.range(r,W.min,W.max,j);W.min=ee[0],W.max=ee[1]}if(W.min>W.max){let ee=W.min;W.min=W.max,W.max=ee}if(Cr>1&&W.min!=null&&W.max!=null&&W.max-W.min<1e-16)return;j==N&&J.distr==2&&Cr>0&&(W.min=Ho(W.min,e[0]),W.max=Ho(W.max,e[0]),W.min==W.max&&W.max++),F[j]=W,si=!0,it()}}r.setScale=ir;let Hr,la,Ps,Bs,Eo,ah,yo,ac,Id,Dd,jn,Kt,ca=!1;const wr=X.drag;let _r=wr.x,Vr=wr.y;fe&&(X.x&&(Hr=Vs(qxe,b)),X.y&&(la=Vs($xe,b)),M.ori==0?(Ps=Hr,Bs=la):(Ps=la,Bs=Hr),jn=X.left,Kt=X.top);const Dn=r.select=ti({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),hl=Dn.show?Vs(Gxe,Dn.over?b:g):null;function pl(j,W){if(Dn.show){for(let J in j)Dn[J]=j[J],J in Pm&&ur(hl,J,j[J]);W!==!1&&Wr("setSelect")}}r.setSelect=pl;function sh(j){if(T[j].show)ue&&ED(Oe[j],ff);else if(ue&&bs(Oe[j],ff),fe){let J=_n?en[0]:en[j];J!=null&&Cl(J,-10,-10,xe,Re)}}function To(j,W,J){ir(j,{min:W,max:J})}function Fs(j,W,J,ee){W.focus!=null&&H0(j),W.show!=null&&T.forEach((ae,ge)=>{ge>0&&(j==ge||j==null)&&(ae.show=W.show,sh(ge),i==2?(To(ae.facets[0].scale,null,null),To(ae.facets[1].scale,null,null)):To(ae.scale,null,null),it())}),J!==!1&&Wr("setSeries",j,W),ee&&Oo("setSeries",r,j,W)}r.setSeries=Fs;function kT(j,W){ti(C[j],W)}function PT(j,W){j.fill=cn(j.fill||null),j.dir=Tn(j.dir,-1),W=W??C.length,C.splice(W,0,j)}function Mm(j){j==null?C.length=0:C.splice(j,1)}r.addBand=PT,r.setBand=kT,r.delBand=Mm;function BT(j,W){T[j].alpha=W,fe&&en[j]!=null&&(en[j].style.opacity=W),ue&&Oe[j]&&(Oe[j].style.opacity=W)}let xo,ml,sc;const ou={focus:!0};function H0(j){if(j!=sc){let W=j==null,J=ze.alpha!=1;T.forEach((ee,ae)=>{if(i==1||ae>0){let ge=W||ae==0||ae==j;ee._focus=W?null:ge,J&&BT(ae,ge?1:ze.alpha)}}),sc=j,J&&it()}}ue&&dt&&je(L4,ye,j=>{X._lock||(vn(j),sc!=null&&Fs(null,ou,!0,Ir.setSeries))});function Us(j,W,J){let ee=O[W];J&&(j=j/Cn-(ee.ori==1?yt:et));let ae=xe;ee.ori==1&&(ae=Re,j=ae-j),ee.dir==-1&&(j=ae-j);let ge=ee._min,De=ee._max,qe=j/ae,He=ge+(De-ge)*qe,at=ee.distr;return at==3?nm(10,He):at==4?sCe(He,ee.asinh):at==100?ee.bwd(He):He}function FT(j,W){let J=Us(j,N,W);return Ho(J,e[0],In,Un)}r.valToIdx=j=>Ho(j,e[0]),r.posToIdx=FT,r.posToVal=Us,r.valToPos=(j,W,J)=>O[W].ori==0?a(j,O[W],J?Lt:xe,J?Fn:0):s(j,O[W],J?Jt:Re,J?Hn:0),r.setCursor=(j,W,J)=>{jn=j.left,Kt=j.top,lc(null,W,J)};function V0(j,W){ur(hl,zh,Dn.left=j),ur(hl,l_,Dn.width=W)}function W0(j,W){ur(hl,Yg,Dn.top=j),ur(hl,c_,Dn.height=W)}let oc=M.ori==0?V0:W0,Md=M.ori==1?V0:W0;function UT(){if(ue&&Z.live)for(let j=i==2?1:0;j<T.length;j++){if(j==0&&le)continue;let W=Z.values[j],J=0;for(let ee in W)oe[j][J++].firstChild.nodeValue=W[ee]}}function Lm(j,W){if(j!=null&&(j.idxs?j.idxs.forEach((J,ee)=>{Q[ee]=J}):uCe(j.idx)||Q.fill(j.idx),Z.idx=Q[0]),ue&&Z.live){for(let J=0;J<T.length;J++)(J>0||i==1&&!le)&&Q0(J,Q[J]);UT()}xr=!1,W!==!1&&Wr("setLegend")}r.setLegend=Lm;function Q0(j,W){let J=T[j],ee=j==0&&B==2?Ti:e[j],ae;le?ae=J.values(r,j,W)??Ge:(ae=J.value(r,W==null?null:ee[W],j,W),ae=ae==null?Ge:{_:ae}),Z.values[j]=ae}function lc(j,W,J){Id=jn,Dd=Kt,[jn,Kt]=X.move(r,jn,Kt),X.left=jn,X.top=Kt,fe&&(Ps&&Cl(Ps,pi(jn),0,xe,Re),Bs&&Cl(Bs,0,pi(Kt),xe,Re));let ee,ae=In>Un;xo=Zn,ml=null;let ge=M.ori==0?xe:Re,De=M.ori==1?xe:Re;if(jn<0||Cr==0||ae){ee=X.idx=null;for(let qe=0;qe<T.length;qe++){let He=en[qe];He!=null&&Cl(He,-10,-10,xe,Re)}dt&&Fs(null,ou,!0,j==null&&Ir.setSeries),Z.live&&(Q.fill(ee),xr=!0)}else{let qe,He,at;i==1&&(qe=M.ori==0?jn:Kt,He=Us(qe,N),ee=X.idx=Ho(He,e[0],In,Un),at=Y(e[0][ee],M,ge,0));let st=-10,mt=-10,Ct=0,sn=0,fn=!0,Wt="",wt="";for(let Tt=i==2?1:0;Tt<T.length;Tt++){let Mn=T[Tt],br=Q[Tt],or=br==null?null:i==1?e[Tt][br]:e[Tt][1][br],En=X.dataIdx(r,Tt,ee,He),Gn=En==null?null:i==1?e[Tt][En]:e[Tt][1][En];if(xr=xr||Gn!=or||En!=br,Q[Tt]=En,Tt>0&&Mn.show){let qi=En==null?-10:En==ee?at:Y(i==1?e[0][En]:e[Tt][0][En],M,ge,0),xi=Gn==null?-10:H(Gn,i==1?O[Mn.scale]:O[Mn.facets[1].scale],De,0);if(dt&&Gn!=null){let Qr=M.ori==1?jn:Kt,Ci=mi(ze.dist(r,Tt,En,xi,Qr));if(Ci<xo){let $a=ze.bias;if($a!=0){let ua=Us(Qr,Mn.scale),Kr=Gn>=0?1:-1,za=ua>=0?1:-1;za==Kr&&(za==1?$a==1?Gn>=ua:Gn<=ua:$a==1?Gn<=ua:Gn>=ua)&&(xo=Ci,ml=Tt)}else xo=Ci,ml=Tt}}if(xr||_n){let Qr,Ci;M.ori==0?(Qr=qi,Ci=xi):(Qr=xi,Ci=qi);let $a,ua,Kr,za,ls,Oi,Ca=!0,uc=We.bbox;if(uc!=null){Ca=!1;let $i=uc(r,Tt);Kr=$i.left,za=$i.top,$a=$i.width,ua=$i.height}else Kr=Qr,za=Ci,$a=ua=We.size(r,Tt);if(Oi=We.fill(r,Tt),ls=We.stroke(r,Tt),_n)Tt==ml&&xo<=ze.prox&&(st=Kr,mt=za,Ct=$a,sn=ua,fn=Ca,Wt=Oi,wt=ls);else{let $i=en[Tt];$i!=null&&(Ta[Tt]=Kr,ss[Tt]=za,G4($i,$a,ua,Ca),U4($i,Oi,ls),Cl($i,Ks(Kr),Ks(za),xe,Re))}}}}if(_n){let Tt=ze.prox,Mn=sc==null?xo<=Tt:xo>Tt||ml!=sc;if(xr||Mn){let br=en[0];br!=null&&(Ta[0]=st,ss[0]=mt,G4(br,Ct,sn,fn),U4(br,Wt,wt),Cl(br,Ks(st),Ks(mt),xe,Re))}}}if(Dn.show&&ca)if(j!=null){let[qe,He]=Ir.scales,[at,st]=Ir.match,[mt,Ct]=j.cursor.sync.scales,sn=j.cursor.drag;if(_r=sn._x,Vr=sn._y,_r||Vr){let{left:fn,top:Wt,width:wt,height:Tt}=j.select,Mn=j.scales[mt].ori,br=j.posToVal,or,En,Gn,qi,xi,Qr=qe!=null&&at(qe,mt),Ci=He!=null&&st(He,Ct);Qr&&_r?(Mn==0?(or=fn,En=wt):(or=Wt,En=Tt),Gn=O[qe],qi=Y(br(or,mt),Gn,ge,0),xi=Y(br(or+En,mt),Gn,ge,0),oc(Ko(qi,xi),mi(xi-qi))):oc(0,ge),Ci&&Vr?(Mn==1?(or=fn,En=wt):(or=Wt,En=Tt),Gn=O[He],qi=H(br(or,Ct),Gn,De,0),xi=H(br(or+En,Ct),Gn,De,0),Md(Ko(qi,xi),mi(xi-qi))):Md(0,De)}else Bm()}else{let qe=mi(Id-Eo),He=mi(Dd-ah);if(M.ori==1){let Ct=qe;qe=He,He=Ct}_r=wr.x&&qe>=wr.dist,Vr=wr.y&&He>=wr.dist;let at=wr.uni;at!=null?_r&&Vr&&(_r=qe>=at,Vr=He>=at,!_r&&!Vr&&(He>qe?Vr=!0:_r=!0)):wr.x&&wr.y&&(_r||Vr)&&(_r=Vr=!0);let st,mt;_r&&(M.ori==0?(st=yo,mt=jn):(st=ac,mt=Kt),oc(Ko(st,mt),mi(mt-st)),Vr||Md(0,De)),Vr&&(M.ori==1?(st=yo,mt=jn):(st=ac,mt=Kt),Md(Ko(st,mt),mi(mt-st)),_r||oc(0,ge)),!_r&&!Vr&&(oc(0,0),Md(0,0))}if(wr._x=_r,wr._y=Vr,j==null){if(J){if(Gm!=null){let[qe,He]=Ir.scales;Ir.values[0]=qe!=null?Us(M.ori==0?jn:Kt,qe):null,Ir.values[1]=He!=null?Us(M.ori==1?jn:Kt,He):null}Oo(OR,r,jn,Kt,xe,Re,ee)}if(dt){let qe=J&&Ir.setSeries,He=ze.prox;sc==null?xo<=He&&Fs(ml,ou,!0,qe):xo>He?Fs(null,ou,!0,qe):ml!=sc&&Fs(ml,ou,!0,qe)}}xr&&(Z.idx=ee,Lm()),W!==!1&&Wr("setCursor")}let gl=null;Object.defineProperty(r,"rect",{get(){return gl==null&&Ld(!1),gl}});function Ld(j=!1){j?gl=null:(gl=b.getBoundingClientRect(),Wr("syncRect",gl))}function K0(j,W,J,ee,ae,ge,De){X._lock||ca&&j!=null&&j.movementX==0&&j.movementY==0||(km(j,W,J,ee,ae,ge,De,!1,j!=null),j!=null?lc(null,!0,!0):lc(W,!0,!1))}function km(j,W,J,ee,ae,ge,De,qe,He){if(gl==null&&Ld(!1),vn(j),j!=null)J=j.clientX-gl.left,ee=j.clientY-gl.top;else{if(J<0||ee<0){jn=-10,Kt=-10;return}let[at,st]=Ir.scales,mt=W.cursor.sync,[Ct,sn]=mt.values,[fn,Wt]=mt.scales,[wt,Tt]=Ir.match,Mn=W.axes[0].side%2==1,br=M.ori==0?xe:Re,or=M.ori==1?xe:Re,En=Mn?ge:ae,Gn=Mn?ae:ge,qi=Mn?ee:J,xi=Mn?J:ee;if(fn!=null?J=wt(at,fn)?o(Ct,O[at],br,0):-10:J=br*(qi/En),Wt!=null?ee=Tt(st,Wt)?o(sn,O[st],or,0):-10:ee=or*(xi/Gn),M.ori==1){let Qr=J;J=ee,ee=Qr}}He&&(W==null||W.cursor.event.type==OR)&&((J<=1||J>=xe-1)&&(J=sf(J,xe)),(ee<=1||ee>=Re-1)&&(ee=sf(ee,Re))),qe?(Eo=J,ah=ee,[yo,ac]=X.move(r,J,ee)):(jn=J,Kt=ee)}const Pm={width:0,height:0,left:0,top:0};function Bm(){pl(Pm,!1)}let X0,Z0,oh,lu;function J0(j,W,J,ee,ae,ge,De){ca=!0,_r=Vr=wr._x=wr._y=!1,km(j,W,J,ee,ae,ge,De,!0,!1),j!=null&&(je(RR,vD,Fm,!1),Oo(D4,r,yo,ac,xe,Re,null));let{left:qe,top:He,width:at,height:st}=Dn;X0=qe,Z0=He,oh=at,lu=st}function Fm(j,W,J,ee,ae,ge,De){ca=wr._x=wr._y=!1,km(j,W,J,ee,ae,ge,De,!1,!0);let{left:qe,top:He,width:at,height:st}=Dn,mt=at>0||st>0,Ct=X0!=qe||Z0!=He||oh!=at||lu!=st;if(mt&&Ct&&pl(Dn),wr.setScale&&mt&&Ct){let sn=qe,fn=at,Wt=He,wt=st;if(M.ori==1&&(sn=He,fn=st,Wt=qe,wt=at),_r&&To(N,Us(sn,N),Us(sn+fn,N)),Vr)for(let Tt in O){let Mn=O[Tt];Tt!=N&&Mn.from==null&&Mn.min!=Zn&&To(Tt,Us(Wt+wt,Tt),Us(Wt,Tt))}Bm()}else X.lock&&(X._lock=!X._lock,lc(W,!0,j!=null));j!=null&&(Ze(RR,vD),Oo(RR,r,jn,Kt,xe,Re,null))}function eb(j,W,J,ee,ae,ge,De){if(X._lock)return;vn(j);let qe=ca;if(ca){let He=!0,at=!0,st=10,mt,Ct;M.ori==0?(mt=_r,Ct=Vr):(mt=Vr,Ct=_r),mt&&Ct&&(He=jn<=st||jn>=xe-st,at=Kt<=st||Kt>=Re-st),mt&&He&&(jn=jn<yo?0:xe),Ct&&at&&(Kt=Kt<ac?0:Re),lc(null,!0,!0),ca=!1}jn=-10,Kt=-10,Q.fill(null),lc(null,!0,!0),qe&&(ca=qe)}function Um(j,W,J,ee,ae,ge,De){X._lock||(vn(j),bo(),Bm(),j!=null&&Oo(k4,r,jn,Kt,xe,Re,null))}function jm(){x.forEach(OOe),ya(r.width,r.height,!0)}Ff(UE,_p,jm);const cc={};cc.mousedown=J0,cc.mousemove=K0,cc.mouseup=Fm,cc.dblclick=Um,cc.setSeries=(j,W,J,ee)=>{let ae=Ir.match[2];J=ae(r,W,J),J!=-1&&Fs(J,ee,!0,!1)},fe&&(je(D4,b,J0),je(OR,b,K0),je(M4,b,j=>{vn(j),Ld(!1)}),je(L4,b,eb),je(k4,b,Um),RD.add(r),r.syncRect=Ld);const Co=r.hooks=t.hooks||{};function Wr(j,W,J){os?oa.push([j,W,J]):j in Co&&Co[j].forEach(ee=>{ee.call(null,r,W,J)})}(t.plugins||[]).forEach(j=>{for(let W in j.hooks)Co[W]=(Co[W]||[]).concat(j.hooks[W])});const tb=(j,W,J)=>J,Ir=ti({key:null,setSeries:!1,filters:{pub:H4,sub:H4},scales:[N,T[1]?T[1].scale:null],match:[V4,V4,tb],values:[null,null]},X.sync);Ir.match.length==2&&Ir.match.push(tb),X.sync=Ir;const Gm=Ir.key,lh=jK(Gm);function Oo(j,W,J,ee,ae,ge,De){Ir.filters.pub(j,W,J,ee,ae,ge,De)&&lh.pub(j,W,J,ee,ae,ge,De)}lh.sub(r);function kd(j,W,J,ee,ae,ge,De){Ir.filters.sub(j,W,J,ee,ae,ge,De)&&cc[j](null,W,J,ee,ae,ge,De)}r.pub=kd;function jT(){lh.unsub(r),RD.delete(r),Xe.clear(),yD(UE,_p,jm),d.remove(),ye==null||ye.remove(),Wr("destroy")}r.destroy=jT;function cu(){Wr("init",t,e),Ad(e||t.data,!1),F[N]?ir(N,F[N]):bo(),Vn=Dn.show&&(Dn.width>0||Dn.height>0),Fr=xr=!0,ya(t.width,t.height)}return T.forEach(go),x.forEach(ul),n?n instanceof HTMLElement?(n.appendChild(d),cu()):n(r,cu):cu(),r}Pi.assign=ti;Pi.fmtNum=Jk;Pi.rangeNum=jE;Pi.rangeLog=CT;Pi.rangeAsinh=Xk;Pi.orient=ih;Pi.pxRatio=Cn;Pi.join=_Ce;Pi.fmtDate=tP,Pi.tzDate=NCe;Pi.sync=jK;{Pi.addGap=uOe,Pi.clipGaps=NT;let t=Pi.paths={points:HK};t.linear=WK,t.stepped=hOe,t.bars=pOe,t.spline=gOe}const ROe=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),NOe=P5(ROe);var AOe=AS.exports,mG;function wOe(){return mG||(mG=1,function(t,e){(function(r,i){t.exports=i(h0(),NOe)})(AOe,(n,r)=>(()=>{var i={"./common/index.ts":(c,d,f)=>{f.r(d),f.d(d,{dataMatch:()=>g,optionsUpdateState:()=>m});var p=function(b,S){var y={};for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&S.indexOf(E)<0&&(y[E]=b[E]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var T=0,E=Object.getOwnPropertySymbols(b);T<E.length;T++)S.indexOf(E[T])<0&&Object.prototype.propertyIsEnumerable.call(b,E[T])&&(y[E[T]]=b[E[T]]);return y};Object.is||Object.defineProperty(Object,"is",{value:function(S,y){return S===y&&(S!==0||1/S===1/y)||S!==S&&y!==y}});var m=function(S,y){var E=S.width,T=S.height,x=p(S,["width","height"]),O=y.width,C=y.height,N=p(y,["width","height"]),w="keep";if((T!==C||E!==O)&&(w="update"),Object.keys(x).length!==Object.keys(N).length)return"create";for(var D=0,L=Object.keys(x);D<L.length;D++){var U=L[D];if(!Object.is(x[U],N[U])){w="create";break}}return w},g=function(S,y){return S.length!==y.length?!1:S.every(function(E,T){var x=y[T];return E.length!==x.length?!1:E.every(function(O,C){return O===x[C]})})}},react:c=>{c.exports=n},uplot:c=>{c.exports=r}},a={};function s(c){var d=a[c];if(d!==void 0)return d.exports;var f=a[c]={exports:{}};return i[c](f,f.exports,s),f.exports}s.n=c=>{var d=c&&c.__esModule?()=>c.default:()=>c;return s.d(d,{a:d}),d},s.d=(c,d)=>{for(var f in d)s.o(d,f)&&!s.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:d[f]})},s.o=(c,d)=>Object.prototype.hasOwnProperty.call(c,d),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var o={};return(()=>{/*!*******************************!*\
  !*** ./react/uplot-react.tsx ***!
  \*******************************/s.r(o),s.d(o,{default:()=>g});var c=s("react"),d=s.n(c),f=s("uplot"),p=s.n(f),m=s("./common/index.ts");function g(b){var S=b.options,y=b.data,E=b.target,T=b.onDelete,x=b.onCreate,O=b.resetScales,C=O===void 0?!0:O,N=b.className,w=(0,c.useRef)(null),D=(0,c.useRef)(null),L=(0,c.useRef)(S),U=(0,c.useRef)(E),M=(0,c.useRef)(y),B=(0,c.useRef)(x),Y=(0,c.useRef)(T);(0,c.useEffect)(function(){B.current=x,Y.current=T});var H=(0,c.useCallback)(function(k){var P;k&&((P=Y.current)===null||P===void 0||P.call(Y,k),k.destroy(),w.current=null)},[]),F=(0,c.useCallback)(function(){var k,P=new(p())(L.current,M.current,U.current||D.current);w.current=P,(k=B.current)===null||k===void 0||k.call(B,P)},[]);return(0,c.useEffect)(function(){return F(),function(){H(w.current)}},[F,H]),(0,c.useEffect)(function(){if(L.current!==S){var k=(0,m.optionsUpdateState)(L.current,S);L.current=S,!w.current||k==="create"?(H(w.current),F()):k==="update"&&w.current.setSize({width:S.width,height:S.height})}},[S,F,H]),(0,c.useEffect)(function(){M.current!==y&&(w.current?(0,m.dataMatch)(M.current,y)||(C?w.current.setData(y,!0):(w.current.setData(y,!1),w.current.redraw())):(M.current=y,F()),M.current=y)},[y,C,F]),(0,c.useEffect)(function(){return U.current!==E&&(U.current=E,F()),function(){return H(w.current)}},[E,F,H]),E?null:d().createElement("div",{ref:D,className:N})}})(),o=o.default,o})())}(AS)),AS.exports}var IOe=wOe();const DOe=sl(IOe),ZK=t=>t===null?"scalar":TT(t.__name__||"")?`{"${od(t.__name__)}",${Object.entries(t).filter(([e])=>e!=="__name__").map(([e,n])=>`${vd(e)}="${od(n)}"`).join(", ")}}`:`${t.__name__||""}{${Object.entries(t).filter(([e])=>e!=="__name__").map(([e,n])=>`${vd(e)}="${od(n)}"`).join(", ")}}`,gG=(t,e)=>{const n=_G[t%_G.length];return e?n:oz(n,.4)},_G=["#008000","#008080","#800000","#800080","#808000","#808080","#0000c0","#008040","#0080c0","#800040","#8000c0","#808040","#8080c0","#00c000","#00c080","#804000","#804080","#80c000","#80c080","#0040c0","#00c040","#00c0c0","#804040","#8040c0","#80c040","#80c0c0","#408000","#408080","#c00000","#c00080","#c08000","#c08080","#4000c0","#408040","#4080c0","#c00040","#c000c0","#c08040","#c080c0","#404000","#404080","#40c000","#40c080","#c04000","#c04080","#c0c000","#c0c080","#404040","#4040c0","#40c040","#40c0c0","#c04040","#c040c0","#c0c040","#0000a0","#008020","#0080a0","#800020","#8000a0","#808020","#8080a0","#0000e0","#008060","#0080e0","#800060","#8000e0","#808060","#8080e0","#0040a0","#00c020","#00c0a0","#804020","#8040a0","#80c020","#80c0a0","#0040e0","#00c060","#00c0e0","#804060","#8040e0","#80c060","#80c0e0","#4000a0","#408020","#4080a0","#c00020","#c000a0","#c08020","#c080a0","#4000e0","#408060","#4080e0","#c00060","#c000e0","#c08060","#c080e0","#404020","#4040a0","#40c020","#40c0a0","#c04020","#c040a0","#c0c020","#c0c0a0","#404060","#4040e0","#40c060","#40c0e0","#c04060","#c040e0","#c0c060","#00a000","#00a080","#802000","#802080","#80a000","#80a080","#0020c0","#00a040","#00a0c0","#802040","#8020c0","#80a040","#80a0c0","#006000","#006080","#00e000","#00e080","#806000","#806080","#80e000","#80e080","#006040","#0060c0","#00e040","#00e0c0","#806040","#8060c0","#80e040","#80e0c0","#40a000","#40a080","#c02000","#c02080","#c0a000","#c0a080","#4020c0","#40a040","#40a0c0","#c02040","#c020c0","#c0a040","#c0a0c0","#406000","#406080","#40e000","#40e080","#c06000","#c06080","#c0e000","#c0e080","#406040","#4060c0","#40e040","#40e0c0","#c06040","#c060c0","#c0e040","#c0e0c0","#0020a0","#00a020","#00a0a0","#802020","#8020a0","#80a020","#80a0a0","#0020e0","#00a060","#00a0e0","#802060","#8020e0","#80a060","#80a0e0","#006020","#0060a0","#00e020","#00e0a0","#806020","#8060a0","#80e020","#80e0a0","#006060","#0060e0","#00e060","#00e0e0","#806060","#8060e0","#80e060","#80e0e0","#4020a0","#40a020","#40a0a0","#c02020","#c020a0","#c0a020","#c0a0a0","#4020e0","#40a060","#40a0e0","#c02060","#c020e0","#c0a060","#c0a0e0","#406020","#4060a0","#40e020","#40e0a0","#c06020","#c060a0","#c0e020","#c0e0a0","#406060","#4060e0","#40e060","#40e0e0","#c06060","#c060e0","#c0e060","#208000","#208080","#a00000","#a00080","#a08000","#a08080","#208040","#2080c0","#a00040","#a000c0","#a08040","#a080c0","#204080","#20c000","#20c080","#a04000","#a04080","#a0c000","#a0c080","#2040c0","#20c040","#20c0c0","#a04040","#a040c0","#a0c040","#a0c0c0","#608000","#608080","#e00000","#e00080","#e08000","#e08080","#6000c0","#608040","#6080c0","#e00040","#e000c0","#e08040","#e080c0","#604080","#60c000","#60c080","#e04000","#e04080","#e0c000","#e0c080","#604040","#6040c0","#60c040","#60c0c0","#e04040","#e040c0","#e0c040","#e0c0c0","#208020","#2080a0","#a00020","#a000a0","#a08020","#a080a0","#2000e0","#208060","#2080e0","#a00060","#a000e0","#a08060","#a080e0","#2040a0","#20c020","#20c0a0","#a04020","#a040a0","#a0c020","#2040e0","#20c060","#20c0e0","#a04060","#a040e0","#a0c060","#a0c0e0","#6000a0","#608020","#6080a0","#e00020","#e000a0","#e08020","#e080a0","#6000e0","#608060","#6080e0","#e00060","#e000e0","#e08060","#e080e0","#604020","#6040a0","#60c020","#60c0a0","#e04020","#e040a0","#e0c020","#e0c0a0","#604060","#6040e0","#60c060","#60c0e0","#e04060","#e040e0","#e0c060","#e0c0e0","#20a000","#20a080","#a02000","#a02080","#a0a000","#a0a080","#2020c0","#20a040","#20a0c0","#a02040","#a020c0","#a0a040","#a0a0c0","#206000","#206080","#20e000","#20e080","#a06000","#a06080","#a0e000","#a0e080","#206040","#2060c0","#20e040","#20e0c0","#a06040","#a060c0","#a0e040","#a0e0c0","#602080","#60a000","#60a080","#e02000","#e02080","#e0a000","#e0a080","#6020c0","#60a040","#60a0c0","#e02040","#e020c0","#e0a040","#e0a0c0","#606000","#606080","#60e000","#60e080","#e06000","#e06080","#e0e000","#e0e080","#606040","#6060c0","#60e040","#60e0c0","#e06040","#e060c0","#e0e040","#e0e0c0","#20a020","#20a0a0","#a02020","#a020a0","#a0a020","#a0a0a0","#2020e0","#20a060","#20a0e0","#a02060","#a020e0","#a0a060","#a0a0e0","#206020","#2060a0","#20e020","#20e0a0","#a06020","#a060a0","#a0e020","#a0e0a0","#206060","#2060e0","#20e060","#20e0e0","#a06060","#a060e0","#a0e060","#a0e0e0","#6020a0","#60a020","#60a0a0","#e02020","#e020a0","#e0a020","#e0a0a0","#602060","#6020e0","#60a060","#60a0e0","#e02060","#e020e0","#e0a060","#e0a0e0","#606020","#6060a0","#60e020","#60e0a0","#e06020","#e060a0","#e0e020","#e0e0a0","#606060","#6060e0","#60e060","#60e0e0","#e06060","#e060e0","#e0e060","#008010","#008090","#800010","#800090","#808010","#808090","#0000d0","#008050","#0080d0","#800050","#8000d0","#808050","#8080d0","#004010","#004090","#00c010","#00c090","#804010","#804090","#80c010","#80c090","#004050","#0040d0","#00c050","#00c0d0","#804050","#8040d0","#80c050","#80c0d0","#400090","#408010","#408090","#c00010","#c00090","#c08010","#c08090","#4000d0","#408050","#4080d0","#c00050","#c000d0","#c08050","#c080d0","#404010","#404090","#40c010","#40c090","#c04010","#c04090","#c0c010","#c0c090","#404050","#4040d0","#40c050","#40c0d0","#c04050","#c040d0","#c0c050","#0000b0","#008030","#0080b0","#800030","#8000b0","#808030","#8080b0","#0000f0","#008070","#0080f0","#800070","#8000f0","#808070","#8080f0","#004030","#0040b0","#00c030","#00c0b0","#804030","#8040b0","#80c030","#80c0b0","#004070","#0040f0","#00c070","#00c0f0","#804070","#8040f0","#80c070","#80c0f0","#4000b0","#408030","#4080b0","#c00030","#c000b0","#c08030","#c080b0","#400070","#4000f0","#408070","#4080f0","#c00070","#c000f0","#c08070","#c080f0","#404030","#4040b0","#40c030","#40c0b0","#c04030","#c040b0","#c0c030","#c0c0b0","#404070","#4040f0","#40c070","#40c0f0","#c04070","#c040f0","#c0c070","#c0c0f0","#002090","#00a010","#00a090","#802010","#802090","#80a010","#80a090","#0020d0","#00a050","#00a0d0","#802050","#8020d0","#80a050","#80a0d0","#006010","#006090","#00e010","#00e090","#806010","#806090","#80e010","#80e090","#006050","#0060d0","#00e050","#00e0d0","#806050","#8060d0","#80e050","#80e0d0","#402090","#40a010","#40a090","#c02010","#c02090","#c0a010","#c0a090","#402050","#4020d0","#40a050","#40a0d0","#c02050","#c020d0","#c0a050","#c0a0d0","#406010","#406090","#40e010","#40e090","#c06010","#c06090","#c0e010","#c0e090","#406050","#4060d0","#40e050","#40e0d0","#c06050","#c060d0","#c0e050","#c0e0d0","#0020b0","#00a030","#00a0b0","#802030","#8020b0","#80a030","#80a0b0","#0020f0","#00a070","#00a0f0","#802070","#8020f0","#80a070","#80a0f0","#006030","#0060b0","#00e030","#00e0b0","#806030","#8060b0","#80e030","#80e0b0","#006070","#0060f0","#00e070","#00e0f0","#806070","#8060f0","#80e070","#80e0f0","#4020b0","#40a030","#40a0b0","#c02030","#c020b0","#c0a030","#c0a0b0","#4020f0","#40a070","#40a0f0","#c02070","#c020f0","#c0a070","#c0a0f0","#406030","#4060b0","#40e030","#40e0b0","#c06030","#c060b0","#c0e030","#c0e0b0","#406070","#4060f0","#40e070","#40e0f0","#c06070","#c060f0","#c0e070","#208010","#208090","#a00010","#a00090","#a08010","#a08090","#2000d0","#208050","#2080d0","#a00050","#a000d0","#a08050","#a080d0","#204010","#204090","#20c010","#20c090","#a04010","#a04090","#a0c010","#a0c090","#204050","#2040d0","#20c050","#20c0d0","#a04050","#a040d0","#a0c050","#a0c0d0","#600090","#608010","#608090","#e00010","#e00090","#e08010","#e08090","#600050","#6000d0","#608050","#6080d0","#e00050","#e000d0","#e08050","#e080d0","#604010","#604090","#60c010","#60c090","#e04010","#e04090","#e0c010","#e0c090","#604050","#6040d0","#60c050","#60c0d0","#e04050","#e040d0","#e0c050","#e0c0d0","#2000b0","#208030","#2080b0","#a00030","#a000b0","#a08030","#a080b0","#2000f0","#208070","#2080f0","#a00070","#a000f0","#a08070","#a080f0","#204030","#2040b0","#20c030","#20c0b0","#a04030","#a040b0","#a0c030","#a0c0b0","#204070","#2040f0","#20c070","#20c0f0","#a04070","#a040f0","#a0c070","#a0c0f0","#6000b0","#608030","#6080b0","#e00030","#e000b0","#e08030","#e080b0","#600070","#6000f0","#608070","#e00070","#e000f0","#e08070","#e080f0","#604030","#6040b0","#60c030","#60c0b0","#e04030","#e040b0","#e0c030","#e0c0b0","#604070","#6040f0","#60c070","#60c0f0","#e04070","#e040f0","#e0c070","#e0c0f0","#20a010","#20a090","#a02010","#a02090","#a0a010","#a0a090","#2020d0","#20a050","#20a0d0","#a02050","#a020d0","#a0a050","#a0a0d0","#206010","#206090","#20e010","#20e090","#a06010","#a06090","#a0e010","#a0e090","#206050","#2060d0","#20e050","#20e0d0","#a06050","#a060d0","#a0e050","#a0e0d0","#602090","#60a010","#60a090","#e02010","#e02090","#e0a010","#e0a090","#602050","#6020d0","#60a050","#60a0d0","#e02050","#e020d0","#e0a050","#e0a0d0","#606010","#606090","#60e010","#60e090","#e06010","#e06090","#e0e010","#e0e090","#606050","#6060d0","#60e050","#60e0d0","#e06050","#e060d0","#e0e050","#2020b0","#20a030","#20a0b0","#a02030","#a020b0","#a0a030","#a0a0b0","#2020f0","#20a070","#20a0f0","#a02070","#a020f0","#a0a070","#a0a0f0","#206030","#2060b0","#20e030","#20e0b0","#a06030","#a060b0","#a0e030","#a0e0b0","#206070","#2060f0","#20e070","#20e0f0","#a06070","#a060f0","#a0e070","#a0e0f0","#6020b0","#60a030","#60a0b0","#e02030","#e020b0","#e0a030","#e0a0b0","#6020f0","#60a070","#60a0f0","#e02070","#e020f0","#e0a070","#e0a0f0","#606030","#6060b0","#60e030","#60e0b0","#e06030","#e060b0","#e0e030","#e0e0b0","#606070","#6060f0","#60e070","#60e0f0","#e06070","#e060f0","#e0e070"],MOe=t=>{if(t===null)return"null";const e=Math.abs(t);if(e>=1e24)return(t/1e24).toFixed(2)+"Y";if(e>=1e21)return(t/1e21).toFixed(2)+"Z";if(e>=1e18)return(t/1e18).toFixed(2)+"E";if(e>=1e15)return(t/1e15).toFixed(2)+"P";if(e>=1e12)return(t/1e12).toFixed(2)+"T";if(e>=1e9)return(t/1e9).toFixed(2)+"G";if(e>=1e6)return(t/1e6).toFixed(2)+"M";if(e>=1e3)return(t/1e3).toFixed(2)+"k";if(e>=1)return t.toFixed(2);if(e===0)return t.toFixed(2);if(e<1e-23)return(t/1e-24).toFixed(2)+"y";if(e<1e-20)return(t/1e-21).toFixed(2)+"z";if(e<1e-17)return(t/1e-18).toFixed(2)+"a";if(e<1e-14)return(t/1e-15).toFixed(2)+"f";if(e<1e-11)return(t/1e-12).toFixed(2)+"p";if(e<1e-8)return(t/1e-9).toFixed(2)+"n";if(e<1e-5)return(t/1e-6).toFixed(2)+"µ";if(e<.01)return(t/.001).toFixed(2)+"m";if(e<=1)return t.toFixed(2);throw Error("couldn't format a value, this is a bug")},DR=t=>{const e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};return String(t).replace(/[&<>"'/]/g,function(n){return e[n]})},LOe=t=>`
            <div class="labels">
              ${Object.keys(t).length===0?'<div class="no-labels">no labels</div>':""}
              ${t.__name__?`<div><strong>${DR(t.__name__)}</strong></div>`:""}
              ${Object.keys(t).filter(e=>e!=="__name__").map(e=>`<div><strong>${DR(e)}</strong>: ${DR(t[e])}</div>`).join("")}
            </div>`,kOe=(t,e)=>{let n,r,i,a=null;const s=document.createElement("div");return s.className="u-tooltip",s.style.display="none",{hooks:{init:o=>{n=o.over,n.addEventListener("mouseenter",()=>{s.style.display="block"}),n.addEventListener("mouseleave",()=>{s.style.display="none"}),document.body.appendChild(s)},destroy:()=>{s.remove()},setSize:()=>{const o=n.getBoundingClientRect();r=o.left,i=o.top},setSeries:(o,c,d)=>{a=c},setCursor:o=>{const{left:c,top:d,idx:f}=o.cursor;if(f==null||c===null||c===void 0||d===null||d===void 0||a===null)return;const p=o.data[0][f],m=e[a][f],g=o.series[a],b=g.labels;if(typeof g.stroke!="function")throw new Error("series.stroke is not a function");const S=g.stroke(o,a),y=c+r,E=d+i;s.innerHTML=`
            <div class="date">${Lf(p,t)}</div>
            <div class="series-value">
              <span class="detail-swatch" style="background-color: ${S}"></span>
              <span>${b.__name__?b.__name__+": ":" "}<strong>${m}</strong></span>
            </div>
            ${LOe(b)}
          `.trimEnd(),Az({getBoundingClientRect(){return{width:0,height:0,x:y,y:E,left:y,right:y,top:E,bottom:E}}},s,{placement:"right-start",middleware:[Oz(5),Nz(),Rz()]}).then(({x,y:O})=>{Object.assign(s.style,{top:`${O}px`,left:`${x}px`})})}}}},POe=(t,e,n,r)=>{const i=t.axes[n];if(r>1)return i._size;let a=i.ticks.size+i.gap;const s=(e??[]).reduce((o,c)=>c.length>o.length?c:o,"");return s!=""&&(t.ctx.font=i.font[0],a+=t.ctx.measureText(s).width/devicePixelRatio),Math.ceil(a)},BOe=(t,e,n,r)=>{const i=[],a=t.series[e];if(!n&&r&&r.length){const[s,o]=a.idxs,c=t.data[0],d=t.data[e],f=Math.round(t.valToPos(c[s],"x",!0)),p=Math.round(t.valToPos(c[o],"x",!0));r[0][0]===f&&i.push(s);for(let m=0;m<r.length;m++){const g=r[m],b=r[m+1];if(b&&g[1]===b[0]){let S=t.posToIdx(g[1],!0);if(d[S]==null)for(let y=1;y<100;y++){if(d[S+y]!=null){S+=y;break}if(d[S-y]!=null){S-=y;break}}i.push(S)}}r[r.length-1][1]===p&&i.push(o)}return i.length?i:null},FOe=(t,e,n,r,i,a)=>({width:e-30,height:550,cursor:{focus:{prox:1e3},drag:{x:!0,setScale:!1}},tzDate:r?void 0:s=>Pi.tzDate(new Date(s*1e3),"Etc/UTC"),plugins:[kOe(r,t)],legend:{show:!0,live:!1,isolate:!0,markers:{fill:(s,o)=>gG(o-1,i)}},drawOrder:["series","axes"],focus:{alpha:1},axes:[{space:80,labelSize:20,stroke:i?"#333":"#eee",ticks:{stroke:i?"#00000010":"#ffffff20"},grid:{show:!0,stroke:i?"#00000010":"#ffffff20",width:2,dash:[]},values:[[3600*24*365,"{YYYY}",null,null,null,null,null,null,1],[3600*24*28,"{MMM}",`
{YYYY}`,null,null,null,null,null,1],[3600*24,"{MMM} {D}",`
{YYYY}`,null,null,null,null,null,1],[3600,"{HH}:{mm}",`
{MMM} {D} '{YY}`,null,`
{MMM} {D}`,null,null,null,1],[60,"{HH}:{mm}",`
{MMM} {D} '{YY}`,null,`
{MMM} {D}`,null,null,null,1],[1,"{HH}:{mm}:{ss}",`
{MMM} {D} '{YY}`,null,`
{MMM} {D}`,null,null,null,1],[.001,"{HH}:{mm}:{ss}.{fff}",`
{MMM} {D} '{YY}`,null,`
{MMM} {D}`,null,null,null,1]]},{values:(s,o)=>o.map(MOe),ticks:{stroke:i?"#00000010":"#ffffff20"},grid:{show:!0,stroke:i?"#00000010":"#ffffff20",width:2,dash:[]},labelGap:8,labelSize:28,stroke:i?"#333":"#eee",size:POe}],series:[{},...n.map((s,o)=>({points:{filter:BOe},label:ZK(s.metric),width:1.5,labels:s.metric,stroke:gG(o,i)}))],hooks:{setSelect:[s=>{const o=s.posToVal(s.select.left,"x"),c=Math.max(s.posToVal(s.select.left+s.select.width,"x"),o+1);a(o,c)}]}}),bG=t=>{const e=parseFloat(t);return isNaN(e)?null:e},UOe=(t,e,n,r)=>{const i=[];for(let s=e;s<=n;s+=r)i.push(s);const a=t.map(({values:s,histograms:o})=>{const c=[];let d=0,f=0;for(let p=e;p<=n;p+=r){const m=s&&s[d],g=o&&o[f];m&&s.length>d&&m[0]<p+r/100?(c.push(bG(m[1])),d++):g&&o.length>f&&g[0]<p+r/100?(c.push(bG(g[1].sum)),f++):c.push(null)}return c});return[i,...a]};function vG(t,e){const n=[];let r=[];const i=t[0].length,a=Array(i);for(let s=0;s<i;s++)a[s]=0;for(let s=1;s<t.length;s++)n.push(e(s)?t[s]:t[s].map((o,c)=>a[c]+=+(o||0)));for(let s=1;s<t.length;s++)e(s)||r.push({series:[t.findIndex((o,c)=>c>s&&!e(c)),s]});return r=r.filter(s=>s.series[1]>-1),{data:[t[0]].concat(n),bands:r}}function jOe(t,e){const n=vG(e,r=>!1);return t.bands=n.bands,t.cursor=t.cursor||{},t.cursor.dataIdx=(r,i,a,s)=>e[i][a]==null?null:a,t.series.forEach(r=>{r.points=r.points||{},r.stroke&&(r.fill=oz(r.stroke,.6)),r.points.filter=(i,a,s,o)=>{if(s){const c=[];return e[a].forEach((d,f)=>{d!=null&&c.push(f)}),c}return null}}),t.scales=t.scales||{},t.scales.y={range:(r,i,a)=>[0,Pi.rangeNum(0,a,.1,!0)[1]]},t.hooks=t.hooks||{},t.hooks.setSeries=t.hooks.setSeries||[],t.hooks.setSeries.push((r,i)=>{const a=vG(e,s=>!r.series[s].show);r.delBand(null),a.bands.forEach(s=>r.addBand(s)),r.setData(a.data)}),{opts:t,data:n.data}}const GOe=({data:t,range:{startTime:e,endTime:n,resolution:r},width:i,displayMode:a,onSelectRange:s})=>{const[o,c]=I.useState(null),[d,f]=I.useState(null),{useLocalTime:p}=Si(),m=$D();if(I.useEffect(()=>{if(i===0)return;const g=UOe(t,e,n,r),b=FOe(g,i,t,p,m==="light",s);a===zp.Stacked?f(jOe(b,g).data):f(g),c(b)},[i,t,a,e,n,r,p,m,s]),!(o===null||d===null))return l.jsxs(l.Fragment,{children:[l.jsx(DOe,{options:o,data:d,className:dK.uplotChart}),l.jsxs(ft,{fz:"xs",c:"dimmed",ml:40,mt:-25,mb:"lg",children:["Click: show single series,"," ",navigator.userAgent.includes("Mac")?"⌘":"Ctrl"," + click: hide single series"]})]})},qOe=({expr:t,node:e,endTime:n,range:r,resolution:i,showExemplars:a,displayMode:s,retriggerIdx:o,onSelectRange:c})=>{const{ref:d,width:f}=mee(),[p,m]=I.useState(!0),g=e===null?t:Qi(e.type===ht.matrixSelector?{type:ht.vectorSelector,name:e.name,matchers:e.matchers,offset:e.offset,timestamp:e.timestamp,startOrEnd:e.startOrEnd}:e),b=(n!==null?n:Date.now())/1e3,S=b-r/1e3,y=cS(i,r)/1e3,{data:E,error:T,isFetching:x,isLoading:O,refetch:C}=_d({key:[I.useId()],path:"/query_range",params:{query:g,step:y.toString(),start:S.toString(),end:b.toString()},enabled:g!==""}),[N,w]=I.useState(null);if(I.useEffect(()=>{E!==void 0&&w({data:E,range:{startTime:S,endTime:b,resolution:y}})},[E]),I.useEffect(()=>{g!==""&&C()},[o,C,g,n,r,i]),I.useEffect(()=>{N!==null&&p&&m(!1)},[N,p,m]),O)return l.jsx(ve,{children:Array.from(Array(5),(L,U)=>l.jsx(nl,{height:30,mb:15},U))});if(T)return l.jsx(Ft,{color:"red",title:"Error executing query",icon:l.jsx(ta,{}),children:T.message});if(N===null)return l.jsx(Ft,{variant:"transparent",children:"No data queried yet"});const{result:D}=N.data.data;return D.length===0?l.jsx(Ft,{title:"Empty query result",icon:l.jsx(pr,{}),children:"This query returned no data."}):l.jsxs(Bn,{children:[e!==null&&e.type===ht.matrixSelector&&l.jsxs(Ft,{color:"orange",title:"Graphing modified expression",icon:l.jsx(ta,{}),children:[l.jsx("strong",{children:"Note:"})," Range vector selectors can't be graphed, so graphing the equivalent instant vector selector instead."]}),l.jsxs(ve,{pos:"relative",ref:d,className:dK.chartWrapper,children:[l.jsx(ZM,{visible:x,zIndex:1e3,h:570,overlayProps:{radius:"sm",blur:.5},loaderProps:{type:"dots",color:"gray.6"}}),l.jsx(GOe,{data:N.data.data.result,range:N.range,width:f,showExemplars:a,displayMode:s,onSelectRange:c})]})]})},$Oe=({resolution:t,range:e,onChangeResolution:n})=>{const[r,i]=I.useState(An(cS(t,e))),a=s=>{const o=UL(s);t.type==="custom"&&o===t.step||(o===null?i(An(cS(t,e))):n({type:"custom",step:o}))};return l.jsxs(l.Fragment,{children:[l.jsx(Sm,{title:"Resolution",placeholder:"Resolution",maxDropdownHeight:500,data:[{group:"Automatic resolution",items:[{label:"Low res.",value:"low"},{label:"Medium res.",value:"medium"},{label:"High res.",value:"high"}]},{group:"Fixed resolution",items:[{label:"10s",value:"10000"},{label:"30s",value:"30000"},{label:"1m",value:"60000"},{label:"5m",value:"300000"},{label:"15m",value:"900000"},{label:"1h",value:"3600000"}]},{group:"Custom resolution",items:[{label:"Enter value...",value:"custom"}]}],w:160,value:t.type==="auto"?t.density:t.type==="fixed"?t.step.toString():"custom",onChange:(s,o)=>{if(["low","medium","high"].includes(o.value)){n({type:"auto",density:o.value});return}if(o.value==="custom"){const d=cS(t,e);n({type:"custom",step:d}),i(An(d));return}const c=parseInt(o.value);if(!isNaN(c))n({type:"fixed",step:c});else throw new Error("Invalid resolution value")}}),t.type==="custom"&&l.jsx(eu,{placeholder:"Resolution",value:r,onChange:s=>i(s.currentTarget.value),onBlur:()=>a(r),onKeyDown:s=>s.key==="Enter"&&a(r),"aria-label":"Range",style:{width:`calc(44px + ${r.length+3}ch)`}})]})},zOe="_metricName_13uqi_1",YOe="_labelPair_13uqi_4",HOe="_labelName_13uqi_14",VOe="_labelValue_13uqi_18",Vg={metricName:zOe,labelPair:YOe,labelName:HOe,labelValue:VOe},WOe=t=>{"clipboard"in navigator?navigator.clipboard.writeText(t).then(()=>el.show({title:"Copied matcher!",message:`Label matcher ${t} copied to clipboard`})).catch(()=>el.show({color:"red",title:"Failed to copy matcher!",message:"Label matcher could not be copied to clipboard."})):el.show({color:"red",title:"Failed to copy matcher!",message:"Clipboard API is not supported in this context (most likely due to non-HTTPS origin)."})},bp=({labels:t,format:e})=>{const n=()=>{const r=t&&TT(t.__name__||""),i=[];let a=!0;r&&(i.push(l.jsx("span",{children:l.jsxs("span",{className:Vg.labelValue,children:['"',od(t.__name__),'"']})},"__name__")),a=!1);for(const s in t)s!=="__name__"&&(i.push(l.jsxs("span",{children:[!a&&", ",l.jsxs("span",{className:Vg.labelPair,onDoubleClick:o=>WOe(o.currentTarget.innerText),title:"Double click to copy label matcher",children:[l.jsx("span",{className:Vg.labelName,children:vd(s)}),"=",l.jsxs("span",{className:Vg.labelValue,children:['"',od(t[s]),'"']})]})]},s)),a&&(a=!1));return l.jsxs("span",{children:[!r&&l.jsx("span",{className:Vg.metricName,children:t?t.__name__:""}),"{",i,"}"]})};return t===null?l.jsx(l.Fragment,{children:"scalar"}):e?n():l.jsx(l.Fragment,{children:ZK(t)})},QOe="_tableWrapper_n77eh_1",KOe="_numberCell_n77eh_7",Vv={tableWrapper:QOe,numberCell:KOe};function XOe(t,e){if(parseFloat(t[2])===0||parseFloat(t[1])===0){if(e.length>1)return Math.abs(Math.log(Math.abs(parseFloat(e[e.length-2][2])))-Math.log(Math.abs(parseFloat(e[e.length-2][1]))));throw new Error("Only one bucket in histogram ([-0, 0]). Cannot calculate defaultExpBucketWidth.")}else return Math.abs(Math.log(Math.abs(parseFloat(t[2])))-Math.log(Math.abs(parseFloat(t[1]))))}function ZOe(t){if(!t||t.length===0)return 0;for(let e=0;e<t.length;e++){const n=parseFloat(t[e][2]),r=parseFloat(t[e][1]);if(r>0)return r;if(r<0&&n>0||e===t.length-1&&n>0)return n}return 0}function JOe(t){if(!t||t.length===0)return 0;for(let e=0;e<t.length;e++){const n=parseFloat(t[e][2]),r=parseFloat(t[e][1]),i=e>0?parseFloat(t[e-1][2]):0;if(n>=0)return e===0?r<0?r:0:i}return console.log("findmaxneg returning: ",t[t.length-1][2]),parseFloat(t[t.length-1][2])}function eRe(t,e,n,r,i,a,s,o,c){return t==="linear"?(0-e)/(n-e)*100+"%":i===0?"0%":r===0?"100%":a===-1?s/o*100+"%":(s+.5*c)/o>0?(s+.5*c)/o*100+"%":"0%"}function tRe(t){const e=parseFloat(t.slice(0,-1));return 5<e&&e<95}function nRe(t){for(let e=0;e<t.length;e++){const n=parseFloat(t[e][1]),r=parseFloat(t[e][2]);if(n<=0&&r>=0)return e}return-1}const rRe=t=>t===3||t===1?"[":"(",iRe=t=>t===3||t===0?"]":")",JK=([t,e,n,r])=>`${rRe(t)}${e} -> ${n}${iRe(t)}`,aRe="_histogramYWrapper_4ql1n_1",sRe="_histogramYLabels_4ql1n_10",oRe="_histogramYLabel_4ql1n_10",lRe="_histogramXWrapper_4ql1n_22",cRe="_histogramXLabels_4ql1n_29",uRe="_histogramXLabel_4ql1n_29",dRe="_histogramContainer_4ql1n_40",fRe="_histogramAxes_4ql1n_46",hRe="_histogramYGrid_4ql1n_55",pRe="_histogramYTick_4ql1n_61",mRe="_histogramXGrid_4ql1n_69",gRe="_histogramXTick_4ql1n_76",_Re="_histogramBucketSlot_4ql1n_84",bRe="_histogramBucket_4ql1n_84",wi={histogramYWrapper:aRe,histogramYLabels:sRe,histogramYLabel:oRe,histogramXWrapper:lRe,histogramXLabels:cRe,histogramXLabel:uRe,histogramContainer:dRe,histogramAxes:fRe,histogramYGrid:hRe,histogramYTick:pRe,histogramXGrid:mRe,histogramXTick:gRe,histogramBucketSlot:_Re,histogramBucket:bRe},vRe=({index:t,histogram:e,scale:n})=>{const{buckets:r}=e;if(!r||r.length===0)return l.jsx("div",{children:"No data"});const i=Intl.NumberFormat("en",{notation:"compact"}),a=[];for(const M of r){const B=parseFloat(M[1]),Y=parseFloat(M[2]),H=parseFloat(M[3]),F=Y-B;if(F===0){a.push(0);continue}a.push(H/F)}const s=Math.max(...a),o=r[0],c=r[r.length-1],d=parseFloat(c[2]),f=parseFloat(o[1]),p=Math.max(...r.map(M=>parseFloat(M[3]))),m=XOe(c,r),g=d>0?d:0,b=ZOe(r),S=JOe(r),y=parseFloat(o[1])<0?parseFloat(o[1]):0,E=y!==0?-Math.log(Math.abs(y)):0,T=S!==0?-Math.log(Math.abs(S)):0,x=b!==0?Math.log(b):0,O=g!==0?Math.log(g):0,C=T-E,N=O-x,w=C+m+N,D=nRe(r),L=eRe(n,f,d,b,S,D,C,w,m),U=tRe(L);return l.jsxs("div",{className:wi.histogramYWrapper,children:[l.jsxs("div",{className:wi.histogramYLabels,children:[[1,.75,.5,.25].map(M=>l.jsx("div",{className:wi.histogramYLabel,children:n==="linear"?"":i.format(p*M)},M)),l.jsx("div",{className:wi.histogramYLabel,style:{height:0},children:"0"},0)]}),l.jsxs("div",{className:wi.histogramXWrapper,children:[l.jsxs("div",{className:wi.histogramContainer,children:[[0,.25,.5,.75,1].map(M=>l.jsxs(On.Fragment,{children:[l.jsx("div",{className:wi.histogramYGrid,style:{bottom:M*100+"%"}}),l.jsx("div",{className:wi.histogramYTick,style:{bottom:M*100+"%"}}),l.jsx("div",{className:wi.histogramXGrid,style:{left:M*100+"%"}})]},M)),l.jsx("div",{className:wi.histogramXTick,style:{left:"0%"}}),l.jsx("div",{className:wi.histogramXTick,style:{left:L}}),l.jsx("div",{className:wi.histogramXGrid,style:{left:L}}),l.jsx("div",{className:wi.histogramXTick,style:{left:"100%"}}),l.jsx(SRe,{buckets:r,scale:n,rangeMin:f,rangeMax:d,index:t,fds:a,fdMax:s,countMax:p,defaultExpBucketWidth:m,minPositive:b,maxNegative:S,startPositive:x,startNegative:E,xWidthNegative:C,xWidthTotal:w}),l.jsx("div",{className:wi.histogramAxes})]}),l.jsx("div",{className:wi.histogramXLabels,children:l.jsx("div",{className:wi.histogramXLabel,children:l.jsxs(On.Fragment,{children:[l.jsx("div",{style:{position:"absolute",left:0},children:i.format(f)}),f<0&&U&&l.jsx("div",{style:{position:"absolute",left:L},children:"0"}),l.jsx("div",{style:{position:"absolute",right:0},children:i.format(d)})]})})})]})]})},SRe=({buckets:t,scale:e,rangeMin:n,rangeMax:r,index:i,fds:a,fdMax:s,countMax:o,defaultExpBucketWidth:c,minPositive:d,maxNegative:f,startPositive:p,startNegative:m,xWidthNegative:g,xWidthTotal:b})=>l.jsx(On.Fragment,{children:t.map((S,y)=>{const E=parseFloat(S[1]),T=parseFloat(S[2]),x=parseFloat(S[3]),O=`bucket-${i}-${y}-${Math.ceil(parseFloat(S[3])*100)}`,C=Math.abs(Math.log(Math.abs(T))-Math.log(Math.abs(E))),N=C===0?c:C;let w="",D="",L="";switch(e){case"linear":{w=(T-E)/(r-n)*100+"%",D=(E-n)/(r-n)*100+"%",E===0&&T===0&&(D="0%",w="0%"),L=a[y]/s*100+"%";break}case"exponential":{let U=0;(d===0||f===0)&&(U=c),w=N/(b-U)*100+"%",E<0?D=-(Math.log(Math.abs(E))+m)/(b-U)*100+"%":D=(Math.log(E)-p+c+g-U)/(b-U)*100+"%",E<0&&T>0&&(D=g/b*100+"%"),E===0&&T===0&&(D="0%",w="0%"),L=x/o*100+"%";break}default:throw new Error("Invalid scale")}return l.jsx(gi,{label:`range: ${JK(S)}`,children:l.jsx("div",{id:O,className:wi.histogramBucketSlot,style:{left:D,width:w},children:l.jsx("div",{id:O,className:wi.histogramBucket,style:{height:L}})})},y)})});Ve.extend(GL);const SG=1e3,qE=1e4,EG=(t,e)=>e&&t.length>qE?t.slice(0,qE):t,ERe=({data:t,limitResults:e,setLimitResults:n})=>{const[r,i]=I.useState("exponential"),{useLocalTime:a}=Si(),{result:s,resultType:o}=t,c=s.length<=SG;return l.jsxs(Bn,{gap:"lg",mt:0,children:[e&&["vector","matrix"].includes(o)&&s.length>qE&&l.jsxs(Ft,{color:"orange",icon:l.jsx(ta,{}),title:"Showing limited results",children:["Fetched ",t.result.length," metrics, only displaying first"," ",qE," for performance reasons.",l.jsx(vi,{ml:"md",fz:"1em",onClick:()=>n(!1),children:"Show all results"})]}),!c&&l.jsxs(Ft,{title:"Formatting turned off",icon:l.jsx(pr,{}),children:["Showing more than ",SG," series, turning off label formatting to improve rendering performance."]}),l.jsx(ve,{pos:"relative",className:Vv.tableWrapper,children:l.jsx(ie,{fz:"xs",children:l.jsx(ie.Tbody,{children:o==="vector"?EG(s,e).map((d,f)=>l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{children:l.jsx(bp,{labels:d.metric,format:c})}),l.jsxs(ie.Td,{className:Vv.numberCell,children:[d.value&&d.value[1],d.histogram&&l.jsxs(Bn,{children:[l.jsx(vRe,{histogram:d.histogram[1],index:f,scale:r}),l.jsxs(pt,{justify:"space-between",align:"center",p:10,children:[l.jsxs(pt,{align:"center",gap:"1rem",children:[l.jsxs("span",{children:[l.jsx("strong",{children:"Count:"})," ",d.histogram[1].count]}),l.jsxs("span",{children:[l.jsx("strong",{children:"Sum:"})," ",d.histogram[1].sum]})]}),l.jsxs(pt,{align:"center",gap:"1rem",children:[l.jsx("span",{children:"x-axis scale:"}),l.jsx(C0,{size:"xs",value:r,onChange:i,data:["exponential","linear"]})]})]}),yRe(d.histogram[1])]})]})]},f)):o==="matrix"?EG(s,e).map((d,f)=>l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{children:l.jsx(bp,{labels:d.metric,format:c})}),l.jsx(ie.Td,{className:Vv.numberCell,children:d.values&&d.values.map((p,m)=>l.jsxs("div",{children:[p[1]," ",l.jsxs(ft,{span:!0,c:"gray.7",size:"1em",title:Lf(p[0],a),children:["@ ",p[0]]})]},m))})]},f)):o==="scalar"?l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{children:"Scalar value"}),l.jsx(ie.Td,{className:Vv.numberCell,children:s[1]})]}):o==="string"?l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{children:"String value"}),l.jsx(ie.Td,{children:s[1]})]}):l.jsx(Ft,{color:"red",title:"Invalid query response",icon:l.jsx(ta,{}),children:"Invalid result value type"})})})})]})},yRe=t=>{var e;return l.jsx(ie,{withTableBorder:!0,fz:"xs",children:l.jsxs(ie.Tbody,{style:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[l.jsxs(ie.Tr,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[l.jsx(ie.Th,{children:"Bucket range"}),l.jsx(ie.Th,{children:"Count"})]}),l.jsx(Qc,{w:"100%",h:265,children:(e=t.buckets)==null?void 0:e.map((n,r)=>l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{style:{textAlign:"left"},children:JK(n)}),l.jsx(ie.Td,{children:n[3]})]},r))})]})})};Ve.extend(GL);const TRe=({panelIdx:t,retriggerIdx:e,expr:n})=>{var S,y;const[r,i]=I.useState(0),[a,s]=I.useState(!0),{visualizer:o}=Kl(E=>E.queryPage.panels[t]),c=tu(),{endTime:d,range:f}=o,{data:p,error:m,isFetching:g,refetch:b}=_d({key:[I.useId()],path:"/query",params:{query:n,time:`${(d!==null?d:Date.now())/1e3}`},enabled:n!=="",recordResponseTime:i});return I.useEffect(()=>{n!==""&&b()},[e,b,n,d]),I.useLayoutEffect(()=>{s(!0)},[p,g]),l.jsxs(Bn,{gap:"lg",mt:"sm",children:[l.jsxs(pt,{justify:"space-between",children:[l.jsx(cV,{time:d,range:f,description:"Evaluation time",onChangeTime:E=>c(tf({idx:t,visualizer:{...o,endTime:E}}))}),!g&&p!==void 0&&l.jsxs(ft,{size:"xs",c:"gray",children:["Load time: ",r,"ms   Result series:"," ",p.data.result.length]})]}),g?l.jsx(ve,{children:Array.from(Array(5),(E,T)=>l.jsx(nl,{height:30,mb:15},T))}):m!==null?l.jsx(Ft,{color:"red",title:"Error executing query",icon:l.jsx(ta,{}),children:m.message}):p===void 0?l.jsx(Ft,{variant:"transparent",children:"No data queried yet"}):l.jsxs(l.Fragment,{children:[p.data.result.length===0&&l.jsx(Ft,{title:"Empty query result",icon:l.jsx(pr,{}),children:"This query returned no data."}),(S=p.warnings)==null?void 0:S.map((E,T)=>l.jsx(Ft,{color:"red",title:"Query warning",icon:l.jsx(ta,{}),children:E},T)),(y=p.infos)==null?void 0:y.map((E,T)=>l.jsx(Ft,{color:"yellow",title:"Query notice",icon:l.jsx(pr,{}),children:E},T)),l.jsx(ERe,{data:p.data,limitResults:a,setLimitResults:s})]})]})},xRe="_nodeText_1076s_1",CRe="_nodeTextSelected_1076s_10",ORe="_nodeTextError_1076s_27",RRe="_errorText_1076s_34",Wv={nodeText:xRe,nodeTextSelected:CRe,nodeTextError:ORe,errorText:RRe},NRe={abs:{argTypes:[ce.vector],returnType:ce.vector},absent:{argTypes:[ce.vector],returnType:ce.vector},absent_over_time:{argTypes:[ce.matrix],returnType:ce.vector},acos:{argTypes:[ce.vector],returnType:ce.vector},acosh:{argTypes:[ce.vector],returnType:ce.vector},asin:{argTypes:[ce.vector],returnType:ce.vector},asinh:{argTypes:[ce.vector],returnType:ce.vector},atan:{argTypes:[ce.vector],returnType:ce.vector},atanh:{argTypes:[ce.vector],returnType:ce.vector},avg_over_time:{argTypes:[ce.matrix],returnType:ce.vector},ceil:{argTypes:[ce.vector],returnType:ce.vector},changes:{argTypes:[ce.matrix],returnType:ce.vector},clamp:{argTypes:[ce.vector,ce.scalar,ce.scalar],returnType:ce.vector},clamp_max:{argTypes:[ce.vector,ce.scalar],returnType:ce.vector},clamp_min:{argTypes:[ce.vector,ce.scalar],returnType:ce.vector},cos:{argTypes:[ce.vector],returnType:ce.vector},cosh:{argTypes:[ce.vector],returnType:ce.vector},count_over_time:{argTypes:[ce.matrix],returnType:ce.vector},day_of_month:{argTypes:[ce.vector],returnType:ce.vector},day_of_week:{argTypes:[ce.vector],returnType:ce.vector},day_of_year:{argTypes:[ce.vector],returnType:ce.vector},days_in_month:{argTypes:[ce.vector],returnType:ce.vector},deg:{argTypes:[ce.vector],returnType:ce.vector},delta:{argTypes:[ce.matrix],returnType:ce.vector},deriv:{argTypes:[ce.matrix],returnType:ce.vector},exp:{argTypes:[ce.vector],returnType:ce.vector},floor:{argTypes:[ce.vector],returnType:ce.vector},histogram_avg:{argTypes:[ce.vector],returnType:ce.vector},histogram_count:{argTypes:[ce.vector],returnType:ce.vector},histogram_fraction:{argTypes:[ce.scalar,ce.scalar,ce.vector],returnType:ce.vector},histogram_quantile:{argTypes:[ce.scalar,ce.vector],returnType:ce.vector},histogram_stddev:{argTypes:[ce.vector],returnType:ce.vector},histogram_stdvar:{argTypes:[ce.vector],returnType:ce.vector},histogram_sum:{argTypes:[ce.vector],returnType:ce.vector},double_exponential_smoothing:{argTypes:[ce.matrix,ce.scalar,ce.scalar],returnType:ce.vector},hour:{argTypes:[ce.vector],returnType:ce.vector},idelta:{argTypes:[ce.matrix],returnType:ce.vector},increase:{argTypes:[ce.matrix],returnType:ce.vector},irate:{argTypes:[ce.matrix],returnType:ce.vector},label_join:{argTypes:[ce.vector,ce.string,ce.string,ce.string],returnType:ce.vector},label_replace:{argTypes:[ce.vector,ce.string,ce.string,ce.string,ce.string],returnType:ce.vector},last_over_time:{name:"last_over_time",argTypes:[ce.matrix],variadic:0,returnType:ce.vector},ln:{argTypes:[ce.vector],returnType:ce.vector},log10:{argTypes:[ce.vector],returnType:ce.vector},log2:{argTypes:[ce.vector],returnType:ce.vector},mad_over_time:{argTypes:[ce.matrix],returnType:ce.vector},max_over_time:{argTypes:[ce.matrix],returnType:ce.vector},min_over_time:{argTypes:[ce.matrix],returnType:ce.vector},minute:{argTypes:[ce.vector],returnType:ce.vector},month:{argTypes:[ce.vector],returnType:ce.vector},pi:{returnType:ce.scalar},predict_linear:{argTypes:[ce.matrix,ce.scalar],returnType:ce.vector},present_over_time:{argTypes:[ce.matrix],returnType:ce.vector},quantile_over_time:{argTypes:[ce.scalar,ce.matrix],returnType:ce.vector},rad:{argTypes:[ce.vector],returnType:ce.vector},rate:{argTypes:[ce.matrix],returnType:ce.vector},resets:{argTypes:[ce.matrix],returnType:ce.vector},round:{argTypes:[ce.vector,ce.scalar],returnType:ce.vector},scalar:{argTypes:[ce.vector],returnType:ce.scalar},sgn:{argTypes:[ce.vector],returnType:ce.vector},sin:{argTypes:[ce.vector],returnType:ce.vector},sinh:{argTypes:[ce.vector],returnType:ce.vector},sort:{argTypes:[ce.vector],returnType:ce.vector},sort_by_label:{argTypes:[ce.vector,ce.string],returnType:ce.vector},sort_by_label_desc:{argTypes:[ce.vector,ce.string],returnType:ce.vector},sort_desc:{argTypes:[ce.vector],returnType:ce.vector},sqrt:{argTypes:[ce.vector],returnType:ce.vector},stddev_over_time:{argTypes:[ce.matrix],returnType:ce.vector},stdvar_over_time:{argTypes:[ce.matrix],returnType:ce.vector},sum_over_time:{argTypes:[ce.matrix],returnType:ce.vector},tan:{argTypes:[ce.vector],returnType:ce.vector},tanh:{argTypes:[ce.vector],returnType:ce.vector},time:{returnType:ce.scalar},timestamp:{argTypes:[ce.vector],returnType:ce.vector},vector:{argTypes:[ce.scalar],returnType:ce.vector},year:{argTypes:[ce.vector],returnType:ce.vector}},Qv=20,MR=10,yG=10,LR={width:he(18),height:he(18)},ARe=t=>t.includes("error")?"error":t.includes("waiting")?"waiting":t.includes("running")?"running":"success",IS=({node:t,selectedNode:e,setSelectedNode:n,parentEl:r,reportNodeState:i,reverse:a,childIdx:s})=>{const o=ja(),[c,d]=I.useState(null),f=I.useCallback(M=>d(M),[]),[p,m]=I.useState({borderColor:"light-dark(var(--mantine-color-gray-4), var(--mantine-color-dark-3))",borderLeftStyle:"solid",borderLeftWidth:2,width:Qv-7,left:-13}),[g,b]=I.useState(0),[S,y]=I.useState({numSeries:0,labelExamples:{},sortedLabelCards:[]});I.useEffect(()=>{r===void 0&&n({id:o,node:t})},[r,n,o,t]),I.useEffect(()=>()=>{n(null)},[n]);const E=lxe(t),[T,x]=I.useState(E.map(()=>"waiting")),O=I.useMemo(()=>ARe(T),[T]);let C=t;C.type===ht.matrixSelector&&(C={type:ht.call,func:NRe.last_over_time,args:[t]});const{data:N,error:w,isFetching:D}=_d({key:[ja()],path:"/query",params:{query:Qi(C)},recordResponseTime:b,enabled:O==="success"});I.useEffect(()=>{O==="error"&&i&&i(s,"error")},[O,i,s]),I.useEffect(()=>{w&&i&&i(s,"error")},[w,i,s]),I.useEffect(()=>{D&&i&&i(s,"running")},[D,i,s]);const L=I.useCallback((M,B)=>{x(Y=>{const H=[...Y];return H[M]=B,H})},[x]);I.useLayoutEffect(()=>{if(r===void 0||r===null||c===null)return;const M=r.getBoundingClientRect(),B=c.getBoundingClientRect();m(a?Y=>({...Y,top:"calc(50% - 1px)",bottom:B.bottom-M.top,borderTopLeftRadius:3,borderTopStyle:"solid",borderBottomLeftRadius:void 0}):Y=>({...Y,top:M.bottom-B.top,bottom:"calc(50% - 1px)",borderBottomLeftRadius:3,borderBottomStyle:"solid",borderTopLeftRadius:void 0}))},[r,c,a,f,m]),I.useEffect(()=>{if(!N)return;i&&i(s,"success");let M=0;const B={},{resultType:Y,result:H}=N.data;Y==="scalar"||Y==="string"?M=1:H&&H.length>0&&(M=H.length,H.forEach(P=>{Object.entries(P.metric).forEach(([z,V])=>{z!=="__name__"&&(B[z]||(B[z]={}),B[z][V]=(B[z][V]||0)+1)})}));const F={},k={};Object.entries(B).forEach(([P,z])=>{F[P]=Object.keys(z).length,k[P]=Object.entries(z).sort(([,V],[,G])=>G-V).slice(0,yG).map(([V,G])=>({value:V,count:G}))}),y({numSeries:M,sortedLabelCards:Object.entries(F).sort((P,z)=>z[1]-P[1]),labelExamples:k})},[N,i,s]);const U=l.jsxs(pt,{w:"fit-content",gap:"lg",my:"sm",wrap:"nowrap",pos:"relative",align:"center",children:[r!==void 0&&l.jsx(ve,{pos:"absolute",display:"inline-block",style:p}),l.jsx(ve,{ref:f,w:"fit-content",px:10,py:4,style:{borderRadius:4,flexShrink:0},className:Tr(Wv.nodeText,{[Wv.nodeTextError]:w,[Wv.nodeTextSelected]:(e==null?void 0:e.id)===o}),onClick:()=>{(e==null?void 0:e.id)===o?n(null):n({id:o,node:t})},children:ko(t,!1,1)}),O==="waiting"?l.jsx(pt,{c:"gray",children:l.jsx(eO,{style:LR})}):O==="running"?l.jsx(Yl,{size:14,color:"gray",type:"dots"}):O==="error"?l.jsxs(pt,{c:"orange.7",gap:5,fz:"xs",wrap:"nowrap",children:[l.jsx(eO,{style:LR})," Blocked on child query error"]}):D?l.jsx(Yl,{size:14,color:"gray"}):w?l.jsxs(pt,{gap:5,wrap:"nowrap",style:{flexShrink:0},className:Wv.errorText,children:[l.jsx(eO,{style:LR}),l.jsxs(ft,{fz:"xs",children:[l.jsx("strong",{children:"Error executing query:"})," ",w.message]})]}):l.jsxs(pt,{gap:0,wrap:"nowrap",children:[l.jsxs(ft,{c:"dimmed",fz:"xs",style:{whiteSpace:"nowrap"},children:[S.numSeries," result",S.numSeries!==1&&"s","  –  ",g,"ms",S.sortedLabelCards.length>0&&l.jsx(l.Fragment,{children:"  –  "})]}),l.jsxs(pt,{gap:"xs",wrap:"nowrap",children:[S.sortedLabelCards.slice(0,MR).map(([M,B])=>l.jsx(gi,{position:"bottom",withArrow:!0,color:"dark.6",label:l.jsx(ve,{p:"xs",children:l.jsxs(hr,{fz:"xs",children:[S.labelExamples[M].map(({value:Y,count:H})=>l.jsxs(hr.Item,{py:1,children:[l.jsx(VM,{c:"red.3",bg:"gray.8",children:Ki(Y)})," ","(",H,"x)"]},Y)),B>yG&&l.jsx("li",{children:"..."})]})}),children:l.jsxs("span",{style:{cursor:"pointer",whiteSpace:"nowrap"},children:[l.jsx(ft,{component:"span",fz:"xs",className:"promql-code promql-label-name",c:"light-dark(var(--mantine-color-green-9), var(--mantine-color-green-6))",children:M}),l.jsxs(ft,{component:"span",fz:"xs",c:"dimmed",children:[": ",B]})]})},M)),S.sortedLabelCards.length>MR?l.jsxs(ft,{component:"span",c:"dimmed",fz:"xs",style:{whiteSpace:"nowrap"},children:["...",S.sortedLabelCards.length-MR," more..."]}):null]})]})]});return t.type===ht.binaryExpr?l.jsxs("div",{children:[l.jsx(ve,{ml:Qv,children:l.jsx(IS,{node:E[0],selectedNode:e,setSelectedNode:n,parentEl:c,reverse:!0,childIdx:0,reportNodeState:L})}),U,l.jsx(ve,{ml:Qv,children:l.jsx(IS,{node:E[1],selectedNode:e,setSelectedNode:n,parentEl:c,reverse:!1,childIdx:1,reportNodeState:L})})]}):l.jsxs("div",{children:[U,E.map((M,B)=>l.jsx(ve,{ml:Qv,children:l.jsx(IS,{node:M,selectedNode:e,setSelectedNode:n,parentEl:c,reverse:!1,childIdx:B,reportNodeState:L})},B))]})},wRe=({panelIdx:t,selectedNode:e,setSelectedNode:n,closeTreeView:r})=>{const{expr:i}=Kl(s=>s.queryPage.panels[t]),{data:a}=Bi({path:"/parse_query",params:{query:i}});return l.jsxs(kr,{withBorder:!0,fz:"sm",style:{overflowX:"auto"},pl:"sm",children:[l.jsx(Xc,{"aria-label":"Close tree view",title:"Close tree view",pos:"absolute",top:7,size:"sm",right:7,onClick:r}),l.jsx(IS,{childIdx:0,node:a.data,selectedNode:e,setSelectedNode:n,reverse:!1})]})},IRe={abs:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"abs(v instant-vector)"})," returns the input vector with all sample values converted to their absolute value."]})}),absent:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"absent(v instant-vector)"})," returns an empty vector if the vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the vector passed to it has no elements."]}),l.jsx("p",{children:"This is useful for alerting on when no time series exist for a given metric name and label combination."}),l.jsx("pre",{children:l.jsxs("code",{children:["absent(nonexistent","{",'job="myjob"',"}",") # => ","{",'job="myjob"',"}","absent(nonexistent","{",'job="myjob",instance=~".*"',"}",") # => ","{",'job="myjob"',"}","absent(sum(nonexistent","{",'job="myjob"',"}",")) # => ","{","}"]})}),l.jsxs("p",{children:["In the first two examples, ",l.jsx("code",{children:"absent()"})," tries to be smart about deriving labels of the 1-element output vector from the input vector."]})]}),absent_over_time:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"absent_over_time(v range-vector)"})," returns an empty vector if the range vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the range vector passed to it has no elements."]}),l.jsx("p",{children:"This is useful for alerting on when no time series exist for a given metric name and label combination for a certain amount of time."}),l.jsx("pre",{children:l.jsxs("code",{children:["absent_over_time(nonexistent","{",'job="myjob"',"}","[1h]) # => ","{",'job="myjob"',"}","absent_over_time(nonexistent","{",'job="myjob",instance=~".*"',"}","[1h]) # => ","{",'job="myjob"',"}","absent_over_time(sum(nonexistent","{",'job="myjob"',"}",")[1h:]) # => ","{","}"]})}),l.jsxs("p",{children:["In the first two examples, ",l.jsx("code",{children:"absent_over_time()"})," tries to be smart about deriving labels of the 1-element output vector from the input vector."]})]}),acos:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),acosh:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),asin:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),asinh:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),atan:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),atanh:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),avg_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),ceil:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"ceil(v instant-vector)"})," rounds the sample values of all elements in ",l.jsx("code",{children:"v"})," up to the nearest integer value greater than or equal to v."]}),l.jsxs("ul",{children:[l.jsx("li",{children:l.jsx("code",{children:"ceil(+Inf) = +Inf"})}),l.jsx("li",{children:l.jsx("code",{children:"ceil(±0) = ±0"})}),l.jsx("li",{children:l.jsx("code",{children:"ceil(1.49) = 2.0"})}),l.jsx("li",{children:l.jsx("code",{children:"ceil(1.78) = 2.0"})})]})]}),changes:l.jsx(l.Fragment,{children:l.jsxs("p",{children:["For each input time series, ",l.jsx("code",{children:"changes(v range-vector)"})," returns the number of times its value has changed within the provided time range as an instant vector."]})}),clamp:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"clamp(v instant-vector, min scalar, max scalar)"}),"clamps the sample values of all elements in ",l.jsx("code",{children:"v"})," to have a lower limit of ",l.jsx("code",{children:"min"})," and an upper limit of ",l.jsx("code",{children:"max"}),"."]}),l.jsx("p",{children:"Special cases:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:["Return an empty vector if ",l.jsx("code",{children:"min > max"})]}),l.jsxs("li",{children:["Return ",l.jsx("code",{children:"NaN"})," if ",l.jsx("code",{children:"min"})," or ",l.jsx("code",{children:"max"})," is ",l.jsx("code",{children:"NaN"})]})]})]}),clamp_max:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"clamp_max(v instant-vector, max scalar)"})," clamps the sample values of all elements in ",l.jsx("code",{children:"v"})," to have an upper limit of ",l.jsx("code",{children:"max"}),"."]})}),clamp_min:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"clamp_min(v instant-vector, min scalar)"})," clamps the sample values of all elements in ",l.jsx("code",{children:"v"})," to have a lower limit of ",l.jsx("code",{children:"min"}),"."]})}),cos:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),cosh:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),count_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),day_of_month:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"day_of_month(v=vector(time()) instant-vector)"})," returns the day of the month for each of the given times in UTC. Returned values are from 1 to 31."]})}),day_of_week:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"day_of_week(v=vector(time()) instant-vector)"})," returns the day of the week for each of the given times in UTC. Returned values are from 0 to 6, where 0 means Sunday etc."]})}),day_of_year:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"day_of_year(v=vector(time()) instant-vector)"})," returns the day of the year for each of the given times in UTC. Returned values are from 1 to 365 for non-leap years, and 1 to 366 in leap years."]})}),days_in_month:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"days_in_month(v=vector(time()) instant-vector)"})," returns number of days in the month for each of the given times in UTC. Returned values are from 28 to 31."]})}),deg:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),delta:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"delta(v range-vector)"})," calculates the difference between the first and last value of each time series element in a range vector ",l.jsx("code",{children:"v"}),", returning an instant vector with the given deltas and equivalent labels. The delta is extrapolated to cover the full time range as specified in the range vector selector, so that it is possible to get a non-integer result even if the sample values are all integers."]}),l.jsx("p",{children:"The following example expression returns the difference in CPU temperature between now and 2 hours ago:"}),l.jsx("pre",{children:l.jsxs("code",{children:["delta(cpu_temp_celsius","{",'host="zeus"',"}","[2h])"]})}),l.jsxs("p",{children:[l.jsx("code",{children:"delta"})," acts on native histograms by calculating a new histogram where each component (sum and count of observations, buckets) is the difference between the respective component in the first and last native histogram in",l.jsx("code",{children:"v"}),". However, each element in ",l.jsx("code",{children:"v"})," that contains a mix of float and native histogram samples within the range, will be missing from the result vector."]}),l.jsxs("p",{children:[l.jsx("code",{children:"delta"})," should only be used with gauges and native histograms where the components behave like gauges (so-called gauge histograms)."]})]}),deriv:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"deriv(v range-vector)"})," calculates the per-second derivative of the time series in a range vector"," ",l.jsx("code",{children:"v"}),", using ",l.jsx("a",{href:"https://en.wikipedia.org/wiki/Simple_linear_regression",children:"simple linear regression"}),". The range vector must have at least two samples in order to perform the calculation. When ",l.jsx("code",{children:"+Inf"})," or",l.jsx("code",{children:"-Inf"})," are found in the range vector, the slope and offset value calculated will be ",l.jsx("code",{children:"NaN"}),"."]}),l.jsxs("p",{children:[l.jsx("code",{children:"deriv"})," should only be used with gauges."]})]}),exp:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"exp(v instant-vector)"})," calculates the exponential function for all elements in ",l.jsx("code",{children:"v"}),". Special cases are:"]}),l.jsxs("ul",{children:[l.jsx("li",{children:l.jsx("code",{children:"Exp(+Inf) = +Inf"})}),l.jsx("li",{children:l.jsx("code",{children:"Exp(NaN) = NaN"})})]})]}),floor:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"floor(v instant-vector)"})," rounds the sample values of all elements in ",l.jsx("code",{children:"v"})," down to the nearest integer value smaller than or equal to v."]}),l.jsxs("ul",{children:[l.jsx("li",{children:l.jsx("code",{children:"floor(+Inf) = +Inf"})}),l.jsx("li",{children:l.jsx("code",{children:"floor(±0) = ±0"})}),l.jsx("li",{children:l.jsx("code",{children:"floor(1.49) = 1.0"})}),l.jsx("li",{children:l.jsx("code",{children:"floor(1.78) = 1.0"})})]})]}),histogram_avg:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:l.jsx("em",{children:"This function only acts on native histograms, which are an experimental feature. The behavior of this function may change in future versions of Prometheus, including its removal from PromQL."})}),l.jsxs("p",{children:[l.jsx("code",{children:"histogram_avg(v instant-vector)"})," returns the arithmetic average of observed values stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector."]}),l.jsxs("p",{children:["Use ",l.jsx("code",{children:"histogram_avg"})," as demonstrated below to compute the average request duration over a 5-minute window from a native histogram:"]}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_avg(rate(http_request_duration_seconds[5m]))"})}),l.jsx("p",{children:"Which is equivalent to the following query:"}),l.jsx("pre",{children:l.jsxs("code",{children:[" ","histogram_sum(rate(http_request_duration_seconds[5m])) / histogram_count(rate(http_request_duration_seconds[5m]))"]})})]}),"histogram_count()` and `histogram_sum":l.jsxs(l.Fragment,{children:[l.jsx("p",{children:l.jsx("em",{children:"Both functions only act on native histograms, which are an experimental feature. The behavior of these functions may change in future versions of Prometheus, including their removal from PromQL."})}),l.jsxs("p",{children:[l.jsx("code",{children:"histogram_count(v instant-vector)"})," returns the count of observations stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector."]}),l.jsxs("p",{children:["Similarly, ",l.jsx("code",{children:"histogram_sum(v instant-vector)"})," returns the sum of observations stored in a native histogram."]}),l.jsxs("p",{children:["Use ",l.jsx("code",{children:"histogram_count"})," in the following way to calculate a rate of observations (in this case corresponding to “requests per second”) from a native histogram:"]}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_count(rate(http_request_duration_seconds[10m]))"})})]}),histogram_fraction:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:l.jsx("em",{children:"This function only acts on native histograms, which are an experimental feature. The behavior of this function may change in future versions of Prometheus, including its removal from PromQL."})}),l.jsxs("p",{children:["For a native histogram, ",l.jsx("code",{children:"histogram_fraction(lower scalar, upper scalar, v instant-vector)"})," returns the estimated fraction of observations between the provided lower and upper values. Samples that are not native histograms are ignored and do not show up in the returned vector."]}),l.jsx("p",{children:"For example, the following expression calculates the fraction of HTTP requests over the last hour that took 200ms or less:"}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_fraction(0, 0.2, rate(http_request_duration_seconds[1h]))"})}),l.jsx("p",{children:"The error of the estimation depends on the resolution of the underlying native histogram and how closely the provided boundaries are aligned with the bucket boundaries in the histogram."}),l.jsxs("p",{children:[l.jsx("code",{children:"+Inf"})," and ",l.jsx("code",{children:"-Inf"})," are valid boundary values. For example, if the histogram in the expression above included negative observations (which shouldn’t be the case for request durations), the appropriate lower boundary to include all observations less than or equal 0.2 would be ",l.jsx("code",{children:"-Inf"})," rather than ",l.jsx("code",{children:"0"}),"."]}),l.jsx("p",{children:"Whether the provided boundaries are inclusive or exclusive is only relevant if the provided boundaries are precisely aligned with bucket boundaries in the underlying native histogram. In this case, the behavior depends on the schema definition of the histogram. The currently supported schemas all feature inclusive upper boundaries and exclusive lower boundaries for positive values (and vice versa for negative values). Without a precise alignment of boundaries, the function uses linear interpolation to estimate the fraction. With the resulting uncertainty, it becomes irrelevant if the boundaries are inclusive or exclusive."})]}),histogram_quantile:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"histogram_quantile(φ scalar, b instant-vector)"})," calculates the φ-quantile (0 ≤ φ ≤ 1) from a"," ",l.jsx("a",{href:"https://prometheus.io/docs/concepts/metric_types/#histogram",children:"classic histogram"})," or from a native histogram. (See ",l.jsx("a",{href:"https://prometheus.io/docs/practices/histograms",children:"histograms and summaries"})," for a detailed explanation of φ-quantiles and the usage of the (classic) histogram metric type in general.)"]}),l.jsx("p",{children:l.jsx("em",{children:"Note that native histograms are an experimental feature. The behavior of this function when dealing with native histograms may change in future versions of Prometheus."})}),l.jsxs("p",{children:["The float samples in ",l.jsx("code",{children:"b"})," are considered the counts of observations in each bucket of one or more classic histograms. Each float sample must have a label",l.jsx("code",{children:"le"})," where the label value denotes the inclusive upper bound of the bucket. (Float samples without such a label are silently ignored.) The other labels and the metric name are used to identify the buckets belonging to each classic histogram. The"," ",l.jsx("a",{href:"https://prometheus.io/docs/concepts/metric_types/#histogram",children:"histogram metric type"}),"automatically provides time series with the ",l.jsx("code",{children:"_bucket"})," suffix and the appropriate labels."]}),l.jsxs("p",{children:["The native histogram samples in ",l.jsx("code",{children:"b"})," are treated each individually as a separate histogram to calculate the quantile from."]}),l.jsxs("p",{children:["As long as no naming collisions arise, ",l.jsx("code",{children:"b"})," may contain a mix of classic and native histograms."]}),l.jsxs("p",{children:["Use the ",l.jsx("code",{children:"rate()"})," function to specify the time window for the quantile calculation."]}),l.jsxs("p",{children:["Example: A histogram metric is called ",l.jsx("code",{children:"http_request_duration_seconds"})," (and therefore the metric name for the buckets of a classic histogram is",l.jsx("code",{children:"http_request_duration_seconds_bucket"}),"). To calculate the 90th percentile of request durations over the last 10m, use the following expression in case",l.jsx("code",{children:"http_request_duration_seconds"})," is a classic histogram:"]}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_quantile(0.9, rate(http_request_duration_seconds_bucket[10m]))"})}),l.jsx("p",{children:"For a native histogram, use the following expression instead:"}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_quantile(0.9, rate(http_request_duration_seconds[10m]))"})}),l.jsxs("p",{children:["The quantile is calculated for each label combination in",l.jsx("code",{children:"http_request_duration_seconds"}),". To aggregate, use the ",l.jsx("code",{children:"sum()"})," aggregator around the"," ",l.jsx("code",{children:"rate()"})," function. Since the ",l.jsx("code",{children:"le"})," label is required by",l.jsx("code",{children:"histogram_quantile()"})," to deal with classic histograms, it has to be included in the ",l.jsx("code",{children:"by"})," ","clause. The following expression aggregates the 90th percentile by ",l.jsx("code",{children:"job"})," for classic histograms:"]}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_quantile(0.9, sum by (job, le) (rate(http_request_duration_seconds_bucket[10m])))"})}),l.jsx("p",{children:"When aggregating native histograms, the expression simplifies to:"}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_quantile(0.9, sum by (job) (rate(http_request_duration_seconds[10m])))"})}),l.jsxs("p",{children:["To aggregate all classic histograms, specify only the ",l.jsx("code",{children:"le"})," label:"]}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_quantile(0.9, sum by (le) (rate(http_request_duration_seconds_bucket[10m])))"})}),l.jsxs("p",{children:["With native histograms, aggregating everything works as usual without any ",l.jsx("code",{children:"by"})," clause:"]}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_quantile(0.9, sum(rate(http_request_duration_seconds[10m])))"})}),l.jsxs("p",{children:["The ",l.jsx("code",{children:"histogram_quantile()"})," function interpolates quantile values by assuming a linear distribution within a bucket."]}),l.jsxs("p",{children:["If ",l.jsx("code",{children:"b"})," has 0 observations, ",l.jsx("code",{children:"NaN"})," is returned. For φ < 0, ",l.jsx("code",{children:"-Inf"})," is returned. For φ > 1, ",l.jsx("code",{children:"+Inf"})," is returned. For φ = ",l.jsx("code",{children:"NaN"}),", ",l.jsx("code",{children:"NaN"})," is returned."]}),l.jsxs("p",{children:["The following is only relevant for classic histograms: If ",l.jsx("code",{children:"b"})," contains fewer than two buckets,"," ",l.jsx("code",{children:"NaN"})," is returned. The highest bucket must have an upper bound of ",l.jsx("code",{children:"+Inf"}),". (Otherwise,"," ",l.jsx("code",{children:"NaN"})," is returned.) If a quantile is located in the highest bucket, the upper bound of the second highest bucket is returned. A lower limit of the lowest bucket is assumed to be 0 if the upper bound of that bucket is greater than 0. In that case, the usual linear interpolation is applied within that bucket. Otherwise, the upper bound of the lowest bucket is returned for quantiles located in the lowest bucket."]}),l.jsxs("p",{children:["You can use ",l.jsx("code",{children:"histogram_quantile(0, v instant-vector)"})," to get the estimated minimum value stored in a histogram."]}),l.jsxs("p",{children:["You can use ",l.jsx("code",{children:"histogram_quantile(1, v instant-vector)"})," to get the estimated maximum value stored in a histogram."]}),l.jsx("p",{children:"Buckets of classic histograms are cumulative. Therefore, the following should always be the case:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"The counts in the buckets are monotonically increasing (strictly non-decreasing)."}),l.jsx("li",{children:"A lack of observations between the upper limits of two consecutive buckets results in equal counts in those two buckets."})]}),l.jsxs("p",{children:["However, floating point precision issues (e.g. small discrepancies introduced by computing of buckets with"," ",l.jsx("code",{children:"sum(rate(...))"}),") or invalid data might violate these assumptions. In that case,",l.jsx("code",{children:"histogram_quantile"})," would be unable to return meaningful results. To mitigate the issue,",l.jsx("code",{children:"histogram_quantile"})," assumes that tiny relative differences between consecutive buckets are happening because of floating point precision errors and ignores them. (The threshold to ignore a difference between two buckets is a trillionth (1e-12) of the sum of both buckets.) Furthermore, if there are non-monotonic bucket counts even after this adjustment, they are increased to the value of the previous buckets to enforce monotonicity. The latter is evidence for an actual issue with the input data and is therefore flagged with an informational annotation reading ",l.jsx("code",{children:"input to histogram_quantile needed to be fixed for monotonicity"}),". If you encounter this annotation, you should find and remove the source of the invalid data."]})]}),"histogram_stddev()` and `histogram_stdvar":l.jsxs(l.Fragment,{children:[l.jsx("p",{children:l.jsx("em",{children:"Both functions only act on native histograms, which are an experimental feature. The behavior of these functions may change in future versions of Prometheus, including their removal from PromQL."})}),l.jsxs("p",{children:[l.jsx("code",{children:"histogram_stddev(v instant-vector)"})," returns the estimated standard deviation of observations in a native histogram. For this estimation, all observations in a bucket are assumed to have the value of the mean of the bucket boundaries. For the zero bucket and for buckets with custom boundaries, the arithmetic mean is used. For the usual exponential buckets, the geometric mean is used. Samples that are not native histograms are ignored and do not show up in the returned vector."]}),l.jsxs("p",{children:["Similarly, ",l.jsx("code",{children:"histogram_stdvar(v instant-vector)"})," returns the estimated standard variance of observations in a native histogram."]})]}),double_exponential_smoothing:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"double_exponential_smoothing(v range-vector, sf scalar, tf scalar)"})," produces a smoothed value for time series based on the range in ",l.jsx("code",{children:"v"}),". The lower the smoothing factor ",l.jsx("code",{children:"sf"}),", the more importance is given to old data. The higher the trend factor ",l.jsx("code",{children:"tf"}),", the more trends in the data is considered. Both ",l.jsx("code",{children:"sf"})," ","and ",l.jsx("code",{children:"tf"})," must be between 0 and 1."]}),l.jsxs("p",{children:[l.jsx("code",{children:"double_exponential_smoothing"})," should only be used with gauges."]})]}),hour:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"hour(v=vector(time()) instant-vector)"})," returns the hour of the day for each of the given times in UTC. Returned values are from 0 to 23."]})}),idelta:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"idelta(v range-vector)"})," calculates the difference between the last two samples in the range vector"," ",l.jsx("code",{children:"v"}),", returning an instant vector with the given deltas and equivalent labels."]}),l.jsxs("p",{children:[l.jsx("code",{children:"idelta"})," should only be used with gauges."]})]}),increase:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"increase(v range-vector)"})," calculates the increase in the time series in the range vector. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for. The increase is extrapolated to cover the full time range as specified in the range vector selector, so that it is possible to get a non-integer result even if a counter increases only by integer increments."]}),l.jsx("p",{children:"The following example expression returns the number of HTTP requests as measured over the last 5 minutes, per time series in the range vector:"}),l.jsx("pre",{children:l.jsxs("code",{children:["increase(http_requests_total","{",'job="api-server"',"}","[5m])"]})}),l.jsxs("p",{children:[l.jsx("code",{children:"increase"})," acts on native histograms by calculating a new histogram where each component (sum and count of observations, buckets) is the increase between the respective component in the first and last native histogram in",l.jsx("code",{children:"v"}),". However, each element in ",l.jsx("code",{children:"v"})," that contains a mix of float and native histogram samples within the range, will be missing from the result vector."]}),l.jsxs("p",{children:[l.jsx("code",{children:"increase"})," should only be used with counters and native histograms where the components behave like counters. It is syntactic sugar for ",l.jsx("code",{children:"rate(v)"})," multiplied by the number of seconds under the specified time range window, and should be used primarily for human readability. Use ",l.jsx("code",{children:"rate"})," in recording rules so that increases are tracked consistently on a per-second basis."]})]}),irate:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"irate(v range-vector)"})," calculates the per-second instant rate of increase of the time series in the range vector. This is based on the last two data points. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for."]}),l.jsx("p",{children:"The following example expression returns the per-second rate of HTTP requests looking up to 5 minutes back for the two most recent data points, per time series in the range vector:"}),l.jsx("pre",{children:l.jsxs("code",{children:["irate(http_requests_total","{",'job="api-server"',"}","[5m])"]})}),l.jsxs("p",{children:[l.jsx("code",{children:"irate"})," should only be used when graphing volatile, fast-moving counters. Use ",l.jsx("code",{children:"rate"})," for alerts and slow-moving counters, as brief changes in the rate can reset the ",l.jsx("code",{children:"FOR"})," clause and graphs consisting entirely of rare spikes are hard to read."]}),l.jsxs("p",{children:["Note that when combining ",l.jsx("code",{children:"irate()"})," with an",l.jsx("a",{href:"operators.md#aggregation-operators",children:"aggregation operator"})," (e.g. ",l.jsx("code",{children:"sum()"}),") or a function aggregating over time (any function ending in ",l.jsx("code",{children:"_over_time"}),"), always take a ",l.jsx("code",{children:"irate()"})," first, then aggregate. Otherwise ",l.jsx("code",{children:"irate()"})," cannot detect counter resets when your target restarts."]})]}),label_join:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:["For each timeseries in ",l.jsx("code",{children:"v"}),","," ",l.jsx("code",{children:"label_join(v instant-vector, dst_label string, separator string, src_label_1 string, src_label_2 string, ...)"})," ","joins all the values of all the ",l.jsx("code",{children:"src_labels"}),"using ",l.jsx("code",{children:"separator"})," and returns the timeseries with the label ",l.jsx("code",{children:"dst_label"})," containing the joined value. There can be any number of ",l.jsx("code",{children:"src_labels"})," in this function."]}),l.jsxs("p",{children:[l.jsx("code",{children:"label_join"})," acts on float and histogram samples in the same way."]}),l.jsxs("p",{children:["This example will return a vector with each time series having a ",l.jsx("code",{children:"foo"})," label with the value"," ",l.jsx("code",{children:"a,b,c"})," added to it:"]}),l.jsx("pre",{children:l.jsxs("code",{children:["label_join(up","{",'job="api-server",src1="a",src2="b",src3="c"',"}",', "foo", ",", "src1", "src2", "src3")']})})]}),label_replace:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:["For each timeseries in ",l.jsx("code",{children:"v"}),","," ",l.jsx("code",{children:"label_replace(v instant-vector, dst_label string, replacement string, src_label string, regex string)"}),"matches the ",l.jsx("a",{href:"https://github.com/google/re2/wiki/Syntax",children:"regular expression"})," ",l.jsx("code",{children:"regex"})," against the value of the label ",l.jsx("code",{children:"src_label"}),". If it matches, the value of the label ",l.jsx("code",{children:"dst_label"})," in the returned timeseries will be the expansion of ",l.jsx("code",{children:"replacement"}),", together with the original labels in the input. Capturing groups in the regular expression can be referenced with ",l.jsx("code",{children:"$1"}),", ",l.jsx("code",{children:"$2"}),", etc. Named capturing groups in the regular expression can be referenced with ",l.jsx("code",{children:"$name"})," (where ",l.jsx("code",{children:"name"})," is the capturing group name). If the regular expression doesn’t match then the timeseries is returned unchanged."]}),l.jsxs("p",{children:[l.jsx("code",{children:"label_replace"})," acts on float and histogram samples in the same way."]}),l.jsxs("p",{children:["This example will return timeseries with the values ",l.jsx("code",{children:"a:c"})," at label ",l.jsx("code",{children:"service"})," and ",l.jsx("code",{children:"a"})," ","at label ",l.jsx("code",{children:"foo"}),":"]}),l.jsx("pre",{children:l.jsxs("code",{children:["label_replace(up","{",'job="api-server",service="a:c"',"}",', "foo", "$1", "service", "(.*):.*")']})}),l.jsx("p",{children:"This second example has the same effect than the first example, and illustrates use of named capturing groups:"}),l.jsx("pre",{children:l.jsxs("code",{children:["label_replace(up","{",'job="api-server",service="a:c"',"}",', "foo", "$name", "service", "(?P<name>.*):(?P<version>.*)")']})})]}),last_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),ln:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"ln(v instant-vector)"})," calculates the natural logarithm for all elements in ",l.jsx("code",{children:"v"}),". Special cases are:"]}),l.jsxs("ul",{children:[l.jsx("li",{children:l.jsx("code",{children:"ln(+Inf) = +Inf"})}),l.jsx("li",{children:l.jsx("code",{children:"ln(0) = -Inf"})}),l.jsx("li",{children:l.jsx("code",{children:"ln(x < 0) = NaN"})}),l.jsx("li",{children:l.jsx("code",{children:"ln(NaN) = NaN"})})]})]}),log10:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"log10(v instant-vector)"})," calculates the decimal logarithm for all elements in ",l.jsx("code",{children:"v"}),". The special cases are equivalent to those in ",l.jsx("code",{children:"ln"}),"."]})}),log2:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"log2(v instant-vector)"})," calculates the binary logarithm for all elements in ",l.jsx("code",{children:"v"}),". The special cases are equivalent to those in ",l.jsx("code",{children:"ln"}),"."]})}),mad_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),max_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),min_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),minute:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"minute(v=vector(time()) instant-vector)"})," returns the minute of the hour for each of the given times in UTC. Returned values are from 0 to 59."]})}),month:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"month(v=vector(time()) instant-vector)"})," returns the month of the year for each of the given times in UTC. Returned values are from 1 to 12, where 1 means January etc."]})}),pi:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),predict_linear:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"predict_linear(v range-vector, t scalar)"})," predicts the value of time series",l.jsx("code",{children:"t"})," seconds from now, based on the range vector ",l.jsx("code",{children:"v"}),", using"," ",l.jsx("a",{href:"https://en.wikipedia.org/wiki/Simple_linear_regression",children:"simple linear regression"}),". The range vector must have at least two samples in order to perform the calculation. When ",l.jsx("code",{children:"+Inf"})," or ",l.jsx("code",{children:"-Inf"})," are found in the range vector, the slope and offset value calculated will be ",l.jsx("code",{children:"NaN"}),"."]}),l.jsxs("p",{children:[l.jsx("code",{children:"predict_linear"})," should only be used with gauges."]})]}),present_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),quantile_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),rad:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),rate:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"rate(v range-vector)"})," calculates the per-second average rate of increase of the time series in the range vector. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for. Also, the calculation extrapolates to the ends of the time range, allowing for missed scrapes or imperfect alignment of scrape cycles with the range’s time period."]}),l.jsx("p",{children:"The following example expression returns the per-second rate of HTTP requests as measured over the last 5 minutes, per time series in the range vector:"}),l.jsx("pre",{children:l.jsxs("code",{children:["rate(http_requests_total","{",'job="api-server"',"}","[5m])"]})}),l.jsxs("p",{children:[l.jsx("code",{children:"rate"})," acts on native histograms by calculating a new histogram where each component (sum and count of observations, buckets) is the rate of increase between the respective component in the first and last native histogram in",l.jsx("code",{children:"v"}),". However, each element in ",l.jsx("code",{children:"v"})," that contains a mix of float and native histogram samples within the range, will be missing from the result vector."]}),l.jsxs("p",{children:[l.jsx("code",{children:"rate"})," should only be used with counters and native histograms where the components behave like counters. It is best suited for alerting, and for graphing of slow-moving counters."]}),l.jsxs("p",{children:["Note that when combining ",l.jsx("code",{children:"rate()"})," with an aggregation operator (e.g. ",l.jsx("code",{children:"sum()"}),") or a function aggregating over time (any function ending in ",l.jsx("code",{children:"_over_time"}),"), always take a ",l.jsx("code",{children:"rate()"})," first, then aggregate. Otherwise ",l.jsx("code",{children:"rate()"})," cannot detect counter resets when your target restarts."]})]}),resets:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:["For each input time series, ",l.jsx("code",{children:"resets(v range-vector)"})," returns the number of counter resets within the provided time range as an instant vector. Any decrease in the value between two consecutive float samples is interpreted as a counter reset. A reset in a native histogram is detected in a more complex way: Any decrease in any bucket, including the zero bucket, or in the count of observation constitutes a counter reset, but also the disappearance of any previously populated bucket, an increase in bucket resolution, or a decrease of the zero-bucket width."]}),l.jsxs("p",{children:[l.jsx("code",{children:"resets"})," should only be used with counters and counter-like native histograms."]}),l.jsxs("p",{children:["If the range vector contains a mix of float and histogram samples for the same series, counter resets are detected separately and their numbers added up. The change from a float to a histogram sample is ",l.jsx("em",{children:"not"})," considered a counter reset. Each float sample is compared to the next float sample, and each histogram is comprared to the next histogram."]})]}),round:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"round(v instant-vector, to_nearest=1 scalar)"})," rounds the sample values of all elements in ",l.jsx("code",{children:"v"})," ","to the nearest integer. Ties are resolved by rounding up. The optional ",l.jsx("code",{children:"to_nearest"})," argument allows specifying the nearest multiple to which the sample values should be rounded. This multiple may also be a fraction."]})}),scalar:l.jsx(l.Fragment,{children:l.jsxs("p",{children:["Given a single-element input vector, ",l.jsx("code",{children:"scalar(v instant-vector)"})," returns the sample value of that single element as a scalar. If the input vector does not have exactly one element, ",l.jsx("code",{children:"scalar"})," will return"," ",l.jsx("code",{children:"NaN"}),"."]})}),sgn:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"sgn(v instant-vector)"})," returns a vector with all sample values converted to their sign, defined as this: 1 if v is positive, -1 if v is negative and 0 if v is equal to zero."]})}),sin:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),sinh:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),sort:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"sort(v instant-vector)"})," returns vector elements sorted by their sample values, in ascending order. Native histograms are sorted by their sum of observations."]}),l.jsxs("p",{children:["Please note that ",l.jsx("code",{children:"sort"})," only affects the results of instant queries, as range query results always have a fixed output ordering."]})]}),sort_by_label:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:l.jsxs("strong",{children:["This function has to be enabled via the"," ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"})," ",l.jsx("code",{children:"--enable-feature=promql-experimental-functions"}),"."]})}),l.jsxs("p",{children:[l.jsx("code",{children:"sort_by_label(v instant-vector, label string, ...)"})," returns vector elements sorted by the values of the given labels in ascending order. In case these label values are equal, elements are sorted by their full label sets."]}),l.jsx("p",{children:"Please note that the sort by label functions only affect the results of instant queries, as range query results always have a fixed output ordering."}),l.jsxs("p",{children:["This function uses ",l.jsx("a",{href:"https://en.wikipedia.org/wiki/Natural_sort_order",children:"natural sort order"}),"."]})]}),sort_by_label_desc:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:l.jsxs("strong",{children:["This function has to be enabled via the"," ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"})," ",l.jsx("code",{children:"--enable-feature=promql-experimental-functions"}),"."]})}),l.jsxs("p",{children:["Same as ",l.jsx("code",{children:"sort_by_label"}),", but sorts in descending order."]}),l.jsx("p",{children:"Please note that the sort by label functions only affect the results of instant queries, as range query results always have a fixed output ordering."}),l.jsxs("p",{children:["This function uses ",l.jsx("a",{href:"https://en.wikipedia.org/wiki/Natural_sort_order",children:"natural sort order"}),"."]})]}),sort_desc:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:["Same as ",l.jsx("code",{children:"sort"}),", but sorts in descending order."]}),l.jsxs("p",{children:["Like ",l.jsx("code",{children:"sort"}),", ",l.jsx("code",{children:"sort_desc"})," only affects the results of instant queries, as range query results always have a fixed output ordering."]})]}),sqrt:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"sqrt(v instant-vector)"})," calculates the square root of all elements in ",l.jsx("code",{children:"v"}),"."]})}),stddev_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),stdvar_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),sum_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),tan:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),tanh:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),time:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"time()"})," returns the number of seconds since January 1, 1970 UTC. Note that this does not actually return the current time, but the time at which the expression is to be evaluated."]})}),timestamp:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"timestamp(v instant-vector)"})," returns the timestamp of each of the samples of the given vector as the number of seconds since January 1, 1970 UTC. It also works with histogram samples."]})}),vector:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"vector(s scalar)"})," returns the scalar ",l.jsx("code",{children:"s"})," as a vector with no labels."]})}),year:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"year(v=vector(time()) instant-vector)"})," returns the year for each of the given times in UTC."]})})},DRe="_funcDoc_mrib5_1",MRe={funcDoc:DRe},LRe=(t,e)=>l.jsxs(hr,{fz:"sm",my:"md",withPadding:!0,children:[t.length>0&&l.jsxs(hr.Item,{children:["The metric name is"," ",l.jsx("span",{className:"promql-code promql-metric-name",children:t}),"."]}),e.filter(n=>n.name!=="__name__").map(n=>{switch(n.type){case to.equal:return l.jsxs(hr.Item,{children:[l.jsx("span",{className:"promql-code promql-label-name",children:n.name}),l.jsx("span",{className:"promql-code promql-operator",children:n.type}),l.jsxs("span",{className:"promql-code promql-string",children:['"',Ki(n.value),'"']}),": The label"," ",l.jsx("span",{className:"promql-code promql-label-name",children:n.name})," ","is exactly"," ",l.jsxs("span",{className:"promql-code promql-string",children:['"',Ki(n.value),'"']}),"."]});case to.notEqual:return l.jsxs(hr.Item,{children:[l.jsx("span",{className:"promql-code promql-label-name",children:n.name}),l.jsx("span",{className:"promql-code promql-operator",children:n.type}),l.jsxs("span",{className:"promql-code promql-string",children:['"',Ki(n.value),'"']}),": The label"," ",l.jsx("span",{className:"promql-code promql-label-name",children:n.name})," ","is not"," ",l.jsxs("span",{className:"promql-code promql-string",children:['"',Ki(n.value),'"']}),"."]});case to.matchRegexp:return l.jsxs(hr.Item,{children:[l.jsx("span",{className:"promql-code promql-label-name",children:n.name}),l.jsx("span",{className:"promql-code promql-operator",children:n.type}),l.jsxs("span",{className:"promql-code promql-string",children:['"',Ki(n.value),'"']}),": The label"," ",l.jsx("span",{className:"promql-code promql-label-name",children:n.name})," ","matches the regular expression"," ",l.jsxs("span",{className:"promql-code promql-string",children:['"',Ki(n.value),'"']}),"."]});case to.matchNotRegexp:return l.jsxs(hr.Item,{children:[l.jsx("span",{className:"promql-code promql-label-name",children:n.name}),l.jsx("span",{className:"promql-code promql-operator",children:n.type}),l.jsxs("span",{className:"promql-code promql-string",children:['"',Ki(n.value),'"']}),": The label"," ",l.jsx("span",{className:"promql-code promql-label-name",children:n.name})," ","does not match the regular expression"," ",l.jsxs("span",{className:"promql-code promql-string",children:['"',Ki(n.value),'"']}),"."]});default:throw new Error("invalid matcher type")}})]}),TG=({node:t})=>{const e=t.name.replace(/(_count|_sum|_bucket)$/,""),{lookbackDelta:n}=Si(),{data:r}=Bi({path:"/metadata",params:{metric:e}});return l.jsxs(kr,{withBorder:!0,children:[l.jsxs(ft,{fz:"lg",fw:600,mb:"md",children:[t.type===ht.vectorSelector?"Instant":"Range"," vector selector"]}),l.jsx(ft,{fz:"sm",children:r.data===void 0||r.data[e]===void 0||r.data[e].length<1?l.jsx(l.Fragment,{children:"No metric metadata found."}):l.jsxs(l.Fragment,{children:[l.jsx("strong",{children:"Metric help"}),":"," ",r.data[e][0].help,l.jsx("br",{}),l.jsx("strong",{children:"Metric type"}),":"," ",r.data[e][0].type]})}),l.jsx(_y,{my:"md"}),l.jsxs(ft,{fz:"sm",children:[t.type===ht.vectorSelector?l.jsxs(l.Fragment,{children:["This node selects the latest (non-stale) sample value within the last ",l.jsx("span",{className:"promql-code promql-duration",children:n})]}):l.jsxs(l.Fragment,{children:["This node selects"," ",l.jsx("span",{className:"promql-code promql-duration",children:An(t.range)})," ","of data going backward from the evaluation timestamp"]}),t.timestamp!==null?l.jsxs(l.Fragment,{children:[", evaluated relative to an absolute evaluation timestamp of"," ",l.jsx("span",{className:"promql-number",children:(t.timestamp/1e3).toFixed(3)})]}):t.startOrEnd!==null?l.jsxs(l.Fragment,{children:[", evaluated relative to the ",t.startOrEnd," of the query range"]}):l.jsx(l.Fragment,{}),t.offset===0?l.jsx(l.Fragment,{}):t.offset>0?l.jsxs(l.Fragment,{children:[", time-shifted"," ",l.jsx("span",{className:"promql-code promql-duration",children:An(t.offset)})," ","into the past,"]}):l.jsxs(l.Fragment,{children:[", time-shifted"," ",l.jsx("span",{className:"promql-code promql-duration",children:An(-t.offset)})," ","into the future,"]})," ","for any series that match all of the following criteria:"]}),LRe(t.name,t.matchers),l.jsxs(ft,{fz:"sm",children:["If a series has no values in the last"," ",l.jsx("span",{className:"promql-code promql-duration",children:t.type===ht.vectorSelector?n:An(t.range)}),t.offset>0&&l.jsxs(l.Fragment,{children:[" ","(relative to the time-shifted instant"," ",l.jsx("span",{className:"promql-code promql-duration",children:An(t.offset)})," ","in the past)"]}),", the series will not be returned."]})]})},Ed=t=>{switch(t){case"+Inf":return 1/0;case"-Inf":return-1/0;default:return parseFloat(t)}},lP=t=>{switch(t){case 1/0:return"+Inf";case-1/0:return"-Inf";default:return t.toString()}},kRe=(t,e)=>{switch(t){case"sum":return"sums over the sample values of the input series";case"min":return"takes the minimum of the sample values of the input series";case"max":return"takes the maximum of the sample values of the input series";case"avg":return"calculates the average of the sample values of the input series";case"stddev":return"calculates the population standard deviation of the sample values of the input series";case"stdvar":return"calculates the population standard variation of the sample values of the input series";case"count":return"counts the number of input series";case"group":return"groups the input series by the supplied grouping labels, while setting the sample value to 1";case"count_values":if(e===null)throw new Error("encountered count_values() node without label parameter");if(e.type!=="stringLiteral")throw new Error("encountered count_values() node without string literal label parameter");return l.jsxs(l.Fragment,{children:["outputs one time series for each unique sample value in the input series (each counting the number of occurrences of that value and indicating the original value in the ",La([e.val])," ","label)"]});case"bottomk":return e===null||e.type!=="numberLiteral"?l.jsxs(l.Fragment,{children:["returns the bottom"," ",l.jsx("span",{className:"promql-code promql-number",children:"K"})," series by value"]}):l.jsxs(l.Fragment,{children:["returns the bottom"," ",l.jsx("span",{className:"promql-code promql-number",children:e.val})," series by value"]});case"topk":return e===null||e.type!=="numberLiteral"?l.jsxs(l.Fragment,{children:["returns the top ",l.jsx("span",{className:"promql-code promql-number",children:"K"})," ","series by value"]}):l.jsxs(l.Fragment,{children:["returns the top"," ",l.jsx("span",{className:"promql-code promql-number",children:e.val})," series by value"]});case"quantile":if(e===null)throw new Error("encountered quantile() node without quantile parameter");return e.type==="numberLiteral"?`calculates the ${e.val}th quantile (${Ed(e.val)*100}th percentile) over the sample values of the input series`:"calculates a quantile over the sample values of the input series";case"limitk":return e===null||e.type!=="numberLiteral"?l.jsxs(l.Fragment,{children:["limits the output to"," ",l.jsx("span",{className:"promql-code promql-number",children:"K"})," series"]}):l.jsxs(l.Fragment,{children:["limits the output to"," ",l.jsx("span",{className:"promql-code promql-number",children:e.val})," series"]});case"limit_ratio":return e===null||e.type!=="numberLiteral"?"limits the output to a ratio of the input series":l.jsxs(l.Fragment,{children:["limits the output to a ratio of"," ",l.jsx("span",{className:"promql-code promql-number",children:e.val})," (",Ed(e.val)*100,"%) of the input series"]});default:throw new Error(`invalid aggregation type ${t}`)}},PRe=(t,e)=>e?l.jsxs(l.Fragment,{children:["aggregating away the [",La(t),"] label dimensions"]}):t.length===1?l.jsxs(l.Fragment,{children:["grouped by their ",La(t)," label dimension"]}):t.length>1?l.jsxs(l.Fragment,{children:["grouped by their [",La(t),"] label dimensions"]}):"aggregating away any label dimensions",BRe=({node:t})=>l.jsxs(kr,{withBorder:!0,children:[l.jsx(ft,{fz:"lg",fw:600,mb:"md",children:"Aggregation"}),l.jsxs(ft,{fz:"sm",children:["This node ",kRe(t.op,t.param),","," ",PRe(t.grouping,t.without),"."]})]}),eX="filtered";var d_=(t=>(t.multipleMatchesForOneToOneMatching="multipleMatchesForOneToOneMatching",t.multipleMatchesOnBothSides="multipleMatchesOnBothSides",t.multipleMatchesOnOneSide="multipleMatchesOnOneSide",t))(d_||{});const xG=16777619,FRe=2166136261,URe=55296,CG=t=>{let e=FRe;for(let n=0;n<t.length;n++){if(t[n]!==void 0)for(let r=0;r<t[n].length;r++)e^=t[n].charCodeAt(r),e*=xG;n<t.length-1&&(e^=URe,e*=xG)}return e.toString()},jRe=(t,e)=>(e.sort(),t?n=>CG(e.map(r=>n[r])):n=>CG(Object.keys(n).filter(r=>!e.includes(r)&&r!=="__name__").map(r=>n[r]))),OG=(t,e,n)=>{const r={};for(const i in t)n.includes(i)===e&&(e||i!=="__name__")&&(r[i]=t[i]);return r},GRe=(t,e,n)=>{const{value:r,keep:i}=$E(t,e,n);return Vk(t)?Number(i):r},$E=(t,e,n)=>{switch(t){case Vt.add:return{value:e+n,keep:!0};case Vt.sub:return{value:e-n,keep:!0};case Vt.mul:return{value:e*n,keep:!0};case Vt.div:return{value:e/n,keep:!0};case Vt.pow:return{value:Math.pow(e,n),keep:!0};case Vt.mod:return{value:e%n,keep:!0};case Vt.eql:return{value:e,keep:e===n};case Vt.neq:return{value:e,keep:e!==n};case Vt.gtr:return{value:e,keep:e>n};case Vt.lss:return{value:e,keep:e<n};case Vt.gte:return{value:e,keep:e>=n};case Vt.lte:return{value:e,keep:e<=n};case Vt.atan2:return{value:Math.atan2(e,n),keep:!0};default:throw new Error("invalid binop")}},qRe=t=>[Vt.add,Vt.sub,Vt.mul,Vt.div,Vt.pow,Vt.mod,Vt.atan2].includes(t),$Re=(t,e,n,r)=>{const i={};for(const a in t)i[a]=t[a];if(qRe(n)&&delete i.__name__,r.card===qr.oneToOne)if(r.on)for(const a in i)r.labels.includes(a)||delete i[a];else for(const a of r.labels)delete i[a];return r.include.forEach(a=>{a in e?i[a]=e[a]:delete i[a]}),i},zRe=(t,e,n,r,i,a)=>{[r,i]=e.card===qr.oneToMany?[i,r]:[r,i];const s={},o=jRe(e.on,e.labels),c=new Set;return i.forEach(d=>{const f=o(d.metric);if(!(f in s)){if(a!=null&&a.maxGroups&&Object.keys(s).length>=a.maxGroups){c.add(f);return}s[f]={groupLabels:OG(d.metric,e.on,e.labels),lhs:[],lhsCount:0,rhs:[],rhsCount:0,result:[],error:null}}(!(a!=null&&a.maxSeriesPerGroup)||s[f].rhsCount<a.maxSeriesPerGroup)&&s[f].rhs.push(d),s[f].rhsCount++}),r.forEach(d=>{const f=o(d.metric);if(!(f in s)){if(a!=null&&a.maxGroups&&Object.keys(s).length>=a.maxGroups){c.add(f);return}s[f]={groupLabels:OG(d.metric,e.on,e.labels),lhs:[],lhsCount:0,rhs:[],rhsCount:0,result:[],error:null}}(!(a!=null&&a.maxSeriesPerGroup)||s[f].lhsCount<a.maxSeriesPerGroup)&&s[f].lhs.push(d),s[f].lhsCount++}),Object.values(s).forEach(d=>{switch(e.card){case qr.oneToOne:d.lhs.length>1&&d.rhs.length>1?d.error={type:"multipleMatchesOnBothSides"}:(d.lhs.length>1||d.rhs.length>1)&&(d.error={type:"multipleMatchesForOneToOneMatching",dupeSide:d.lhs.length>1?"left":"right"});break;case qr.oneToMany:case qr.manyToOne:d.rhs.length>1&&(d.error={type:"multipleMatchesOnOneSide"});break;case qr.manyToMany:if(!_D(t))throw new Error("unexpected many-to-many matching for non-set operator");break;default:throw new Error("unknown vector matching cardinality")}d.error||(_D(t)?(d.lhs.forEach((f,p)=>{(t===Vt.and&&d.rhs.length>0||t===Vt.unless&&d.rhs.length===0||t===Vt.or)&&d.result.push({sample:{metric:f.metric,value:f.value},manySideIdx:p})}),t===Vt.or&&d.rhs.forEach((f,p)=>{d.lhs.length===0&&d.result.push({sample:{metric:f.metric,value:f.value},manySideIdx:p})})):d.rhs.forEach(f=>{d.lhs.forEach((p,m)=>{if(!p.value||!f.value)throw new Error("native histogram support not implemented yet");const[g,b]=e.card!==qr.oneToMany?[p.value[1],f.value[1]]:[f.value[1],p.value[1]];let{value:S,keep:y}=$E(t,Ed(g),Ed(b));const E=$Re(p.metric,f.metric,t,e);n&&(S=y?1:0,delete E.__name__),d.result.push({sample:{metric:E,value:[p.value[0],y||n?lP(S):eX]},manySideIdx:m})})}))}),e.card===qr.oneToMany&&Object.keys(s).forEach(d=>{[s[d].lhs,s[d].rhs]=[s[d].rhs,s[d].lhs],[s[d].lhsCount,s[d].rhsCount]=[s[d].rhsCount,s[d].lhsCount]}),{groups:s,numGroups:Object.keys(s).length+c.size}},RG=({node:t,scalar:e,vector:n,scalarLeft:r})=>n.length===0?l.jsx(Ft,{children:"One side of the binary operation produces 0 results, no matching information shown."}):l.jsxs(ie,{withTableBorder:!0,withRowBorders:!0,withColumnBorders:!0,fz:"xs",children:[l.jsx(ie.Thead,{children:l.jsxs(ie.Tr,{children:[!r&&l.jsx(ie.Th,{children:"Left labels"}),l.jsx(ie.Th,{children:"Left value"}),l.jsx(ie.Th,{children:"Operator"}),r&&l.jsx(ie.Th,{children:"Right labels"}),l.jsx(ie.Th,{children:"Right value"}),l.jsx(ie.Th,{}),l.jsx(ie.Th,{children:"Result"})]})}),l.jsx(ie.Tbody,{children:n.map((i,a)=>{if(!i.value)throw new Error("Native histograms are not supported yet");const s=Ed(i.value[1]),o=Ed(e[1]);let{value:c,keep:d}=r?$E(t.op,o,s):$E(t.op,s,o);Vk(t.op)&&r&&(c=s),t.bool&&(c=Number(d),d=!0);const f=l.jsx(ie.Td,{ta:"right",children:e[1]}),p=l.jsxs(l.Fragment,{children:[l.jsx(ie.Td,{children:l.jsx(bp,{labels:i.metric,format:!0})}),l.jsx(ie.Td,{ta:"right",children:i.value[1]})]});return l.jsxs(ie.Tr,{children:[r?f:p,l.jsxs(ie.Td,{ta:"center",children:[t.op,t.bool&&" bool"]}),r?p:f,l.jsx(ie.Td,{ta:"center",children:"="}),l.jsx(ie.Td,{ta:"right",children:d?lP(c):l.jsx(ft,{c:"dimmed",children:"dropped"})})]},a)})})]}),s0=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf","#393b79","#637939","#8c6d31","#843c39","#d6616b","#7b4173","#ce6dbd","#9c9ede","#c5b0d5","#c49c94","#f7b6d2","#c7c7c7","#dbdb8d","#9edae5","#393b79","#637939","#8c6d31","#843c39","#d6616b","#7b4173","#ce6dbd","#9c9ede","#c5b0d5","#c49c94","#f7b6d2","#c7c7c7","#dbdb8d","#9edae5","#17becf","#393b79","#637939","#8c6d31","#843c39","#d6616b","#7b4173","#ce6dbd","#9c9ede","#c5b0d5","#c49c94","#f7b6d2"],NG=s0.length/2+3,kR=(t,e)=>`${s0[(t+(e||0))%s0.length]}80`,PR=t=>l.jsx(ve,{display:"inline-block",w:12,h:12,bg:t,style:{borderRadius:2,flexShrink:0}}),YRe=(t,e,n)=>{const r={};for(const i in t)n.includes(i)===e&&(e||i!=="__name__")||(r[i]=t[i]);return r},HRe=t=>{const e=t.matching,[n,r]=e.card===qr.oneToMany?["left","right"]:["right","left"];return l.jsxs(l.Fragment,{children:[l.jsx(ft,{size:"sm",children:Vk(t.op)?l.jsxs(l.Fragment,{children:['This node filters the series from the left-hand side based on the result of a "',l.jsx("span",{className:"promql-code promql-operator",children:t.op}),'" comparison with matching series from the right-hand side.']}):l.jsxs(l.Fragment,{children:['This node calculates the result of applying the "',l.jsx("span",{className:"promql-code promql-operator",children:t.op}),'" operator between the sample values of matching series from two sets of time series.']})}),l.jsxs(hr,{my:"md",fz:"sm",withPadding:!0,children:[(e.labels.length>0||e.on)&&(e.on?l.jsxs(hr.Item,{children:[l.jsx("span",{className:"promql-code promql-keyword",children:"on"}),"(",La(e.labels),"):"," ",e.labels.length>0?l.jsxs(l.Fragment,{children:["series on both sides are matched on the labels"," ",La(e.labels)]}):l.jsx(l.Fragment,{children:"all series from one side are matched to all series on the other side."})]}):l.jsxs(hr.Item,{children:[l.jsx("span",{className:"promql-code promql-keyword",children:"ignoring"}),"(",La(e.labels),"): series on both sides are matched on all of their labels, except"," ",La(e.labels),"."]})),e.card===qr.oneToOne?l.jsx(hr.Item,{children:"One-to-one match. Each series from the left-hand side is allowed to match with at most one series on the right-hand side, and vice versa."}):l.jsxs(hr.Item,{children:[l.jsxs("span",{className:"promql-code promql-keyword",children:["group_",r,"(",La(e.include),")"]}),": ",e.card," match. Each series from the ",n,"-hand side is allowed to match with multiple series from the ",r,"-hand side.",e.include.length!==0&&l.jsxs(l.Fragment,{children:[" ","Any ",La(e.include)," labels found on the"," ",n,"-hand side are propagated into the result, in addition to the match group's labels."]})]}),t.bool&&l.jsxs(hr.Item,{children:[l.jsx("span",{className:"promql-code promql-keyword",children:"bool"}),": Instead of filtering series based on the outcome of the comparison for matched series, keep all series, but return the comparison outcome as a boolean ",l.jsx("span",{className:"promql-code promql-number",children:"0"})," or"," ",l.jsx("span",{className:"promql-code promql-number",children:"1"})," sample value."]})]})]})},VRe=(t,e,n)=>{const r=l.jsxs(l.Fragment,{children:[l.jsx(ft,{size:"sm",children:l.jsx("strong",{children:"Possible fixes:"})}),l.jsxs(hr,{withPadding:!0,my:"md",fz:"sm",children:[n.type===d_.multipleMatchesForOneToOneMatching&&l.jsxs(hr.Item,{children:[l.jsxs(ft,{size:"sm",children:[l.jsxs("strong",{children:["Allow ",n.dupeSide==="left"?"many-to-one":"one-to-many"," ","matching"]}),": If you want to allow"," ",n.dupeSide==="left"?"many-to-one":"one-to-many"," ","matching, you need to explicitly request it by adding a"," ",l.jsxs("span",{className:"promql-code promql-keyword",children:["group_",n.dupeSide,"()"]})," ","modifier to the operator:"]}),l.jsx(ft,{size:"sm",ta:"center",my:"md",children:ko({...t,matching:{...t.matching?t.matching:{labels:[],on:!1,include:[]},card:n.dupeSide==="left"?qr.manyToOne:qr.oneToMany}},!0,1)})]}),l.jsxs(hr.Item,{children:[l.jsx("strong",{children:"Update your matching parameters:"})," Consider including more differentiating labels in your matching modifiers (via"," ",l.jsx("span",{className:"promql-code promql-keyword",children:"on()"})," /"," ",l.jsx("span",{className:"promql-code promql-keyword",children:"ignoring()"}),") to split multiple series into distinct match groups."]}),l.jsxs(hr.Item,{children:[l.jsx("strong",{children:"Aggregate the input:"})," Consider aggregating away the extra labels that create multiple series per group before applying the binary operation."]})]})]});switch(n.type){case d_.multipleMatchesForOneToOneMatching:return l.jsxs(l.Fragment,{children:[l.jsxs(ft,{size:"sm",children:["Binary operators only allow ",l.jsx("strong",{children:"one-to-one"})," matching by default, but we found"," ",l.jsxs("strong",{children:["multiple series on the ",n.dupeSide," side"]})," for this match group."]}),r]});case d_.multipleMatchesOnBothSides:return l.jsxs(l.Fragment,{children:[l.jsxs(ft,{size:"sm",children:["We found ",l.jsx("strong",{children:"multiple series on both sides"})," for this match group. Since ",l.jsx("strong",{children:"many-to-many matching"})," is not supported, you need to ensure that at least one of the sides only yields a single series."]}),r]});case d_.multipleMatchesOnOneSide:{const[i,a]=t.matching.card===qr.oneToMany?["left","right"]:["right","left"];return l.jsxs(l.Fragment,{children:[l.jsxs(ft,{size:"sm",children:["You requested"," ",l.jsxs("strong",{children:[i==="right"?"many-to-one":"one-to-many"," matching"]})," ","via"," ",l.jsxs("span",{className:"promql-code promql-keyword",children:["group_",a,"()"]}),", but we also found"," ",l.jsxs("strong",{children:["multiple series on the ",i," side"]})," of the match group. Make sure that the ",i," side only contains a single series."]}),r]})}default:throw new Error("unknown match error")}},WRe=({node:t,lhs:e,rhs:n})=>{const[r,i]=WE({key:"queryPage.explain.binaryOperators.showSampleValues",defaultValue:!1}),[a,s]=I.useState(100),[o,c]=I.useState(100),{matching:d}=t;if(d===null)throw new Error("missing matching parameters in vector-to-vector binop");const{groups:f,numGroups:p}=zRe(t.op,d,t.bool,e,n,{maxGroups:a,maxSeriesPerGroup:o}),m=Object.values(f).filter(g=>g.error).length;return l.jsxs(l.Fragment,{children:[l.jsx(ft,{size:"sm",children:HRe(t)}),l.jsx(pt,{my:"lg",justify:"flex-end",gap:"xl",children:l.jsx(ky,{label:"Show sample values",checked:r,onChange:g=>i(g.currentTarget.checked)})}),p>Object.keys(f).length&&l.jsxs(Ft,{color:"yellow",mb:"md",icon:l.jsx(ta,{}),children:["Too many match groups to display, only showing"," ",Object.keys(f).length," out of ",p," groups.",l.jsx("br",{}),l.jsx("br",{}),l.jsx(vi,{fz:"sm",onClick:()=>s(void 0),children:"Show all groups"})]}),m>0&&l.jsxs(Ft,{color:"yellow",mb:"md",icon:l.jsx(ta,{}),children:["Found matching issues in ",m," match group",m>1?"s":"",". See below for per-group error details."]}),l.jsx(ie,{fz:"xs",withRowBorders:!1,children:l.jsx(ie.Tbody,{children:Object.values(f).map((g,b)=>{const{groupLabels:S,lhs:y,lhsCount:E,rhs:T,rhsCount:x,result:O,error:C}=g,N=B=>l.jsx(ie.Tr,{ta:"center",children:l.jsx(ie.Td,{colSpan:2,style:{backgroundColor:`${B}25`},children:l.jsx(bp,{labels:S,format:!0})})}),w=(B,Y,H,F)=>l.jsx(ve,{style:{borderRadius:3,border:"2px solid",borderColor:Y===0?"light-dark(var(--mantine-color-gray-4), var(--mantine-color-gray-7))":H},children:l.jsx(ie,{fz:"xs",withRowBorders:!1,verticalSpacing:5,children:l.jsxs(ie.Tbody,{children:[Y===0?l.jsx(ie.Tr,{children:l.jsx(ie.Td,{ta:"center",c:"light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-5))",py:"md",fw:"bold",children:"no matching series"})}):l.jsxs(l.Fragment,{children:[N(H),B.map((k,P)=>{if(k.value===void 0)throw new Error("Native histograms are not supported yet");return l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{children:l.jsxs(pt,{wrap:"nowrap",gap:7,align:"center",children:[PR(kR(P,F)),l.jsx(bp,{labels:YRe(k.metric,d.on,d.labels),format:!0})]})}),r&&l.jsx(ie.Td,{ta:"right",children:k.value[1]})]},P)})]}),Y>B.length&&l.jsx(ie.Tr,{children:l.jsxs(ie.Td,{ta:"center",py:"md",fw:"bold",c:"gray.6",children:[Y-B.length," more series omitted   –  ",l.jsx(vi,{size:"xs",onClick:()=>c(void 0),children:"Show all series"})]})})]})})}),D=s0[b%s0.length],L=w(y,E,D),U=w(T,x,D,NG),M=l.jsx(ve,{style:{borderRadius:3,border:"2px solid",borderColor:O.length===0||C!==null?"light-dark(var(--mantine-color-gray-4), var(--mantine-color-gray-7))":D},children:l.jsx(ie,{fz:"xs",withRowBorders:!1,verticalSpacing:5,children:l.jsx(ie.Tbody,{children:C!==null?l.jsx(ie.Tr,{children:l.jsx(ie.Td,{ta:"center",c:"light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-5))",py:"md",fw:"bold",children:"error, result omitted"})}):O.length===0?l.jsx(ie.Tr,{children:l.jsx(ie.Td,{ta:"center",c:"light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-5))",py:"md",fw:"bold",children:"dropped"})}):C!==null?l.jsx(ie.Tr,{children:l.jsx(ie.Td,{ta:"center",c:"light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-5))",py:"md",fw:"bold",children:"error, result omitted"})}):l.jsx(l.Fragment,{children:O.map(({sample:B,manySideIdx:Y},H)=>{if(B.value===void 0)throw new Error("Native histograms are not supported yet");const F=B.value[1]===eX,[k,P]=d.card===qr.oneToMany?[0,Y]:[Y,0];return l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{style:{opacity:F?.5:1},title:F?"Series has been filtered by comparison operator":void 0,children:l.jsxs(pt,{wrap:"nowrap",gap:"xs",align:"flex-start",children:[l.jsxs(pt,{wrap:"nowrap",gap:0,children:[PR(kR(k)),l.jsx("span",{style:{color:"#aaa"},children:"–"}),PR(kR(P,NG))]}),l.jsx(bp,{labels:B.metric,format:!0})]})}),r&&l.jsx(ie.Td,{ta:"right",children:F?l.jsx("span",{style:{color:"grey"},children:"filtered"}):l.jsx("span",{children:B.value[1]})})]},H)})})})})});return l.jsxs(On.Fragment,{children:[b!==0&&l.jsx("tr",{style:{height:30}}),l.jsx(ie.Tr,{children:l.jsx(ie.Td,{colSpan:5,children:C&&l.jsx(Ft,{color:"red",mb:"md",title:"Error in match group below",icon:l.jsx(ta,{}),children:VRe(t,g,C)})})}),l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{valign:"middle",p:0,children:L}),l.jsxs(ie.Td,{ta:"center",fw:_D(t.op)?"bold":void 0,children:[t.op,t.bool&&" bool"]}),l.jsx(ie.Td,{valign:"middle",p:0,children:U}),l.jsx(ie.Td,{ta:"center",children:"="}),l.jsx(ie.Td,{valign:"middle",p:0,children:M})]})]},b)})})})]})},QRe=({node:t,lhs:e,rhs:n})=>{const[r,i]=[Ed(e[1]),Ed(n[1])];return l.jsxs(ie,{withColumnBorders:!0,withTableBorder:!0,children:[l.jsx(ie.Thead,{children:l.jsxs(ie.Tr,{children:[l.jsx(ie.Th,{children:"Left value"}),l.jsx(ie.Th,{children:"Operator"}),l.jsx(ie.Th,{children:"Right value"}),l.jsx(ie.Th,{}),l.jsx(ie.Th,{children:"Result"})]})}),l.jsx(ie.Tbody,{children:l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{className:"number-cell",children:e[1]}),l.jsxs(ie.Td,{className:"op-cell",children:[t.op,t.bool&&" bool"]}),l.jsx(ie.Td,{className:"number-cell",children:n[1]}),l.jsx(ie.Td,{className:"op-cell",children:"="}),l.jsx(ie.Td,{className:"number-cell",children:lP(GRe(t.op,r,i))})]})})]})},KRe=({node:t})=>{const{data:e}=Bi({path:"/query",params:{query:Qi(t.lhs)}}),{data:n}=Bi({path:"/query",params:{query:Qi(t.rhs)}});if(e.data.resultType!==tp(t.lhs)||n.data.resultType!==tp(t.rhs))return null;if(e.data.resultType==="scalar"&&n.data.resultType==="scalar")return l.jsxs(kr,{withBorder:!0,children:[l.jsx(ft,{fz:"lg",fw:600,mb:"md",children:"Scalar-to-scalar binary operation"}),l.jsx(QRe,{node:t,lhs:e.data.result,rhs:n.data.result})]});if(e.data.resultType==="scalar"&&n.data.resultType==="vector")return l.jsxs(kr,{withBorder:!0,children:[l.jsx(ft,{fz:"lg",fw:600,mb:"md",children:"Scalar-to-vector binary operation"}),l.jsx(RG,{node:t,vector:n.data.result,scalar:e.data.result,scalarLeft:!0})]});if(e.data.resultType==="vector"&&n.data.resultType==="scalar")return l.jsxs(kr,{withBorder:!0,children:[l.jsx(ft,{fz:"lg",fw:600,mb:"md",children:"Vector-to-scalar binary operation"}),l.jsx(RG,{node:t,scalar:n.data.result,vector:e.data.result,scalarLeft:!1})]});if(e.data.resultType==="vector"&&n.data.resultType==="vector")return l.jsxs(kr,{withBorder:!0,children:[l.jsx(ft,{fz:"lg",fw:600,mb:"md",children:"Vector-to-vector binary operation"}),l.jsx(WRe,{node:t,lhs:e.data.result,rhs:n.data.result})]});throw new Error("invalid binary operator argument types")},XRe=({node:t,treeShown:e,showTree:n})=>{if(t===null)return l.jsxs(Ft,{title:"How to use the Explain view",icon:l.jsx(pr,{}),children:["This tab can help you understand the behavior of individual components of a query.",l.jsx("br",{}),l.jsx("br",{}),"To use the Explain view,"," ",!e&&l.jsxs(l.Fragment,{children:[l.jsx(vi,{fz:"unset",onClick:n,children:"enable the query tree view"})," ","(also available via the expression input menu) and then"]})," ","select a node in the tree above."]});switch(t.type){case ht.aggregation:return l.jsx(BRe,{node:t});case ht.binaryExpr:return l.jsx(KRe,{node:t});case ht.call:return l.jsxs(kr,{withBorder:!0,children:[l.jsx(ft,{fz:"lg",fw:600,mb:"md",children:"Function call"}),l.jsxs(ft,{fz:"sm",children:["This node calls the"," ",l.jsx(vi,{fz:"inherit",href:`https://prometheus.io/docs/prometheus/latest/querying/functions/#${t.func.name}`,target:"_blank",children:l.jsxs("span",{className:"promql-code promql-keyword",children:[t.func.name,"()"]})})," ","function",t.args.length>0?" on the provided inputs":"","."]}),l.jsx(_y,{my:"md"}),l.jsx(ft,{fz:"sm",className:MRe.funcDoc,children:IRe[t.func.name]})]});case ht.matrixSelector:return l.jsx(TG,{node:t});case ht.subquery:return l.jsxs(kr,{withBorder:!0,children:[l.jsx(ft,{fz:"lg",fw:600,mb:"md",children:"Subquery"}),l.jsxs(ft,{fz:"sm",children:["This node evaluates the passed expression as a subquery over the last"," ",l.jsx("span",{className:"promql-code promql-duration",children:An(t.range)})," ","at a query resolution"," ",t.step>0?l.jsxs(l.Fragment,{children:["of"," ",l.jsx("span",{className:"promql-code promql-duration",children:An(t.step)})]}):"equal to the default rule evaluation interval",t.timestamp!==null?l.jsxs(l.Fragment,{children:[", evaluated relative to an absolute evaluation timestamp of"," ",l.jsx("span",{className:"promql-number",children:(t.timestamp/1e3).toFixed(3)})]}):t.startOrEnd!==null?l.jsxs(l.Fragment,{children:[", evaluated relative to the ",t.startOrEnd," of the query range"]}):l.jsx(l.Fragment,{}),t.offset===0?l.jsx(l.Fragment,{}):t.offset>0?l.jsxs(l.Fragment,{children:[", time-shifted"," ",l.jsx("span",{className:"promql-code promql-duration",children:An(t.offset)})," ","into the past"]}):l.jsxs(l.Fragment,{children:[", time-shifted"," ",l.jsx("span",{className:"promql-code promql-duration",children:An(-t.offset)})," ","into the future"]}),"."]})]});case ht.numberLiteral:return l.jsxs(kr,{withBorder:!0,children:[l.jsx(ft,{fz:"lg",fw:600,mb:"md",children:"Number literal"}),l.jsxs(ft,{fz:"sm",children:["A scalar number literal with the value"," ",l.jsx("span",{className:"promql-code promql-number",children:t.val}),"."]})]});case ht.parenExpr:return l.jsxs(kr,{withBorder:!0,children:[l.jsx(ft,{fz:"lg",fw:600,mb:"md",children:"Parentheses"}),l.jsx(ft,{fz:"sm",children:"Parentheses that contain a sub-expression to be evaluated."})]});case ht.stringLiteral:return l.jsxs(kr,{withBorder:!0,children:[l.jsx(ft,{fz:"lg",fw:600,mb:"md",children:"String literal"}),l.jsxs(ft,{fz:"sm",children:["A string literal with the value"," ",l.jsxs("span",{className:"promql-code promql-string",children:['"',Ki(t.val),'"']}),"."]})]});case ht.unaryExpr:return l.jsxs(kr,{withBorder:!0,children:[l.jsx(ft,{fz:"lg",fw:600,mb:"md",children:"Unary expression"}),l.jsxs(ft,{fz:"sm",children:["A unary expression that"," ",t.op==="+"?"does not affect the expression it is applied to":"changes the sign of the expression it is applied to","."]})]});case ht.vectorSelector:return l.jsx(TG,{node:t});default:throw new Error("invalid node type")}},Wg={width:"0.9rem",height:"0.9rem"},ZRe=({idx:t,metricNames:e})=>{const[n,r]=I.useState(0),i=Kl(f=>f.queryPage.panels[t]),a=tu(),[s,o]=I.useState(null),c=I.useMemo(()=>s!==null?Qi(s.node):i.expr,[s,i.expr]),d=I.useCallback((f,p)=>a(tf({idx:t,visualizer:{...i.visualizer,range:(p-f)*1e3,endTime:p*1e3}})),[a,t,i.visualizer]);return l.jsxs(Bn,{gap:"lg",children:[l.jsx(Axe,{initialExpr:i.expr,metricNames:e,executeQuery:f=>{r(p=>p+1),a(Mfe({idx:t,expr:f})),!e.includes(f)&&f.trim()!==""&&a(G9(f))},treeShown:i.showTree,setShowTree:f=>{a(dO({idx:t,showTree:f})),f||o(null)},removePanel:()=>{a(Dfe(t))}}),i.expr.trim()!==""&&i.showTree&&l.jsx(tm,{title:"Error showing tree view",children:l.jsx(I.Suspense,{fallback:l.jsx(ve,{mt:"lg",children:Array.from(Array(20),(f,p)=>l.jsx(nl,{height:30,mb:15,width:"100%"},p))}),children:l.jsx(wRe,{panelIdx:t,selectedNode:s,setSelectedNode:o,closeTreeView:()=>{a(dO({idx:t,showTree:!1})),o(null)}})})},n),l.jsxs(Ts,{value:i.visualizer.activeTab,onChange:f=>a(tf({idx:t,visualizer:{...i.visualizer,activeTab:f}})),keepMounted:!1,children:[l.jsxs(Ts.List,{children:[l.jsx(Ts.Tab,{value:"table",leftSection:l.jsx(FH,{style:Wg}),children:"Table"}),l.jsx(Ts.Tab,{value:"graph",leftSection:l.jsx(Dle,{style:Wg}),children:"Graph"}),l.jsx(Ts.Tab,{value:"explain",leftSection:l.jsx(pr,{style:Wg}),children:"Explain"})]}),l.jsx(Ts.Panel,{pt:"sm",value:"table",children:l.jsx(TRe,{expr:c,panelIdx:t,retriggerIdx:n})}),l.jsxs(Ts.Panel,{pt:"sm",value:"graph",children:[l.jsxs(pt,{mt:"xs",justify:"space-between",children:[l.jsxs(pt,{children:[l.jsx($he,{range:i.visualizer.range,onChangeRange:f=>a(tf({idx:t,visualizer:{...i.visualizer,range:f}}))}),l.jsx(cV,{time:i.visualizer.endTime,range:i.visualizer.range,description:"End time",onChangeTime:f=>a(tf({idx:t,visualizer:{...i.visualizer,endTime:f}}))}),l.jsx($Oe,{resolution:i.visualizer.resolution,range:i.visualizer.range,onChangeResolution:f=>{a(tf({idx:t,visualizer:{...i.visualizer,resolution:f}}))}})]}),l.jsx(pt,{gap:"lg",children:l.jsx(C0,{onChange:f=>a(tf({idx:t,visualizer:{...i.visualizer,displayMode:f}})),value:i.visualizer.displayMode,data:[{value:zp.Lines,label:l.jsxs(A_,{children:[l.jsx(Tle,{style:Wg}),l.jsx(ve,{ml:10,children:"Unstacked"})]})},{value:zp.Stacked,label:l.jsxs(A_,{children:[l.jsx(Xle,{style:Wg}),l.jsx(ve,{ml:10,children:"Stacked"})]})}]})})]}),l.jsx(SH,{h:"lg"}),l.jsx(qOe,{expr:c,node:(s==null?void 0:s.node)??null,endTime:i.visualizer.endTime,range:i.visualizer.range,resolution:i.visualizer.resolution,showExemplars:i.visualizer.showExemplars,displayMode:i.visualizer.displayMode,retriggerIdx:n,onSelectRange:d})]}),l.jsx(Ts.Panel,{pt:"sm",value:"explain",children:l.jsx(tm,{title:"Error showing explain view",children:l.jsx(I.Suspense,{fallback:l.jsx(ve,{mt:"lg",children:Array.from(Array(20),(f,p)=>l.jsx(nl,{height:30,mb:15,width:"100%"},p))}),children:l.jsx(XRe,{node:(s==null?void 0:s.node)??null,treeShown:i.showTree,showTree:()=>{a(dO({idx:t,showTree:!0}))}})})},s==null?void 0:s.id)})]})]})};function tX(){const t=Kl(c=>c.queryPage.panels),e=tu(),[n,r]=I.useState(0);I.useEffect(()=>{const c=()=>{const d=Nfe(window.location.search);d.length>0&&e(eU(d))};return c(),window.addEventListener("popstate",c),()=>{window.removeEventListener("popstate",c)}},[e]),I.useEffect(()=>()=>{e(eU([Yy()]))},[e]);const{data:i,error:a}=_d({path:"/label/__name__/values"}),{data:s,error:o}=_d({path:"/query",params:{query:"time()"}});return I.useEffect(()=>{if(!s)return;if(s.data.resultType!=="scalar")throw new Error("Unexpected result type from time query");const c=new Date().getTime()/1e3,d=s.data.result[0];r(Math.abs(c-d))},[s]),l.jsxs(ve,{mt:"xs",children:[a&&l.jsxs(Ft,{mb:"sm",icon:l.jsx(ta,{}),color:"red",title:"Error fetching metrics list",children:["Unable to fetch list of metric names: ",a.message]}),o&&l.jsx(Ft,{mb:"sm",icon:l.jsx(ta,{}),color:"red",title:"Error fetching server time",children:o.message}),n>30&&l.jsxs(Ft,{mb:"sm",title:"Server time is out of sync",color:"red",icon:l.jsx(_le,{}),onClose:()=>r(0),children:["Detected a time difference of"," ",l.jsx("strong",{children:op(n*1e3)})," between your browser and the server. You may see unexpected time-shifted query results due to the time drift."]}),l.jsx(Bn,{gap:"xl",children:t.map((c,d)=>l.jsx(ZRe,{idx:d,metricNames:(i==null?void 0:i.data)||[]},c.id))}),l.jsx(_a,{variant:"light",mt:"xl",leftSection:l.jsx(BH,{style:o_}),onClick:()=>e(Ife()),children:"Add query"})]})}const JRe="_statsBadge_w76va_1",e1e="_labelBadge_w76va_9",t1e="_healthOk_w76va_35",n1e="_healthErr_w76va_43",r1e="_healthWarn_w76va_51",i1e="_healthInfo_w76va_62",a1e="_healthUnknown_w76va_70",Nn={statsBadge:JRe,labelBadge:e1e,healthOk:t1e,healthErr:n1e,healthWarn:r1e,healthInfo:i1e,healthUnknown:a1e},s1e="_panelHealthOk_p1xoy_1",o1e="_panelHealthErr_p1xoy_6",l1e="_panelHealthWarn_p1xoy_11",c1e="_panelHealthUnknown_p1xoy_16",vf={panelHealthOk:s1e,panelHealthErr:o1e,panelHealthWarn:l1e,panelHealthUnknown:c1e},u1e="_codebox_b9wnp_1",d1e="_queryButton_b9wnp_8",AG={codebox:u1e,queryButton:d1e},sm=({labels:t,wrapper:e=pt,style:n})=>l.jsx(e,{gap:"xs",children:Object.entries(t).map(([r,i])=>l.jsxs("span",{className:Nn.labelBadge,style:n,children:[vd(r),'="',od(i),'"']},r))}),f1e=new VW,nX=({rule:t})=>{const e=$D(),{pathPrefix:n}=Si();return l.jsxs(l.Fragment,{children:[l.jsxs(kr,{p:"xs",className:AG.codebox,fz:"sm",shadow:"none",children:[l.jsx(Fk,{basicSetup:!1,value:t.query,editable:!1,extensions:[jQ,GQ,fT(e==="light"?qQ:$Q),f1e.asExtension(),tt.lineWrapping]}),l.jsx(gi,{label:"Query rule expression",withArrow:!0,position:"top",children:l.jsx(Pr,{pos:"absolute",top:7,right:7,variant:"light",onClick:()=>{window.open(`${n}/query?g0.expr=${encodeURIComponent(t.query)}&g0.tab=1`,"_blank")},className:AG.queryButton,children:l.jsx(Jf,{style:em})})})]}),t.type==="alerting"&&l.jsxs(pt,{mt:"lg",gap:"xs",children:[t.duration&&l.jsxs(ni,{variant:"light",styles:{label:{textTransform:"none"}},leftSection:l.jsx(Cle,{style:Dc}),children:["for: ",An(t.duration*1e3)]}),t.keepFiringFor&&l.jsxs(ni,{variant:"light",styles:{label:{textTransform:"none"}},leftSection:l.jsx(Ole,{style:Dc}),children:["keep_firing_for: ",An(t.keepFiringFor*1e3)]})]}),t.labels&&Object.keys(t.labels).length>0&&l.jsx(ve,{mt:"lg",children:l.jsx(sm,{labels:t.labels})}),t.type==="alerting"&&Object.keys(t.annotations).length>0&&l.jsx(ie,{mt:"lg",fz:"sm",children:l.jsx(ie.Tbody,{children:Object.entries(t.annotations).map(([r,i])=>l.jsxs(ie.Tr,{children:[l.jsx(ie.Th,{c:"light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-4))",children:r}),l.jsx(ie.Td,{children:i})]},r))})})]})};function wG({value:t,onRemove:e,...n}){return l.jsx(Mc,{fw:600,style:{textTransform:"uppercase",fontWeight:600},onRemove:e,...n,withRemoveButton:!!e,children:t})}const cP=({options:t,optionClass:e,optionCount:n,placeholder:r,values:i,onChange:a})=>{const s=hy({onDropdownClose:()=>s.resetSelectedOption(),onDropdownOpen:()=>s.updateSelectedOptionIndex("active")}),o=f=>a(i.includes(f)?i.filter(p=>p!==f):[...i,f]),c=f=>a(i.filter(p=>p!==f)),d=i.map(f=>l.jsx(wG,{value:n?`${f} (${n(f)})`:f,className:e(f),onRemove:()=>c(f)},f));return l.jsxs(nn,{store:s,onOptionSubmit:o,withinPortal:!1,children:[l.jsx(nn.DropdownTarget,{children:l.jsx(h_,{pointer:!0,onClick:()=>s.toggleDropdown(),miw:200,leftSection:l.jsx(LH,{style:Nm}),rightSection:i.length>0?l.jsx(NM,{onClear:()=>a([])}):l.jsx(fy,{}),children:l.jsxs(Mc.Group,{children:[d.length>0?d:l.jsx(h_.Field,{placeholder:r,mt:1}),l.jsx(nn.EventsTarget,{children:l.jsx(h_.Field,{type:"hidden",onBlur:()=>s.closeDropdown(),onKeyDown:f=>{f.key==="Backspace"&&(f.preventDefault(),c(i[i.length-1]))}})})]})})}),l.jsx(nn.Dropdown,{children:l.jsx(nn.Options,{children:t.map(f=>l.jsx(nn.Option,{value:f,active:i.includes(f),children:l.jsxs(pt,{gap:"sm",children:[i.includes(f)?l.jsx(py,{size:12,color:"gray"}):null,l.jsx(wG,{value:n?`${f} (${n(f)})`:f,className:e(f)})]})},f))})})]})};function ld(t,e,n=!0){return{...t,default:e,decode:(...i)=>{const a=t.decode(...i);return a===void 0||n&&a===null?e:a}}}function rX(t,e){if(t==null)return t;if(t.length===0&&(!e||e&&t!==""))return null;const n=t instanceof Array?t[0]:t;return n==null?n:!e&&n===""?null:n}function h1e(t){return t==null||t instanceof Array?t:t===""?[]:[t]}function p1e(t){return t==null?t:String(t)}function m1e(t){const e=rX(t);return e==null?e:e===""?null:+e}function g1e(t){return t==null?t:String(t)}function _1e(t){const e=rX(t,!0);return e==null?e:String(e)}function b1e(t){return t==null,t}function v1e(t){const e=h1e(t);return e==null,e}const Qf={encode:g1e,decode:_1e},iX={encode:p1e,decode:m1e},uP={encode:b1e,decode:v1e};function S1e(t){const e=new URLSearchParams,n=Object.entries(t);for(const[r,i]of n)if(i!==void 0&&i!==null)if(Array.isArray(i))for(const a of i)e.append(r,a??"");else e.append(r,i);return e.toString()}'{}[],":'.split("").map(t=>[t,encodeURIComponent(t)]);function E1e(t,e){const n={},r=Object.keys(e);for(const i of r){const a=e[i];t[i]?n[i]=t[i].encode(e[i]):n[i]=a==null?a:String(a)}return n}function y1e(t){const e=new URLSearchParams(t),n={};for(let[r,i]of e)Object.prototype.hasOwnProperty.call(n,r)?Array.isArray(n[r])?n[r].push(i):n[r]=[n[r],i]:n[r]=i;return n}class T1e{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,n,r,i){this.paramsMap.set(e,{stringified:n,decoded:r,decode:i})}has(e,n,r){if(!this.paramsMap.has(e))return!1;const i=this.paramsMap.get(e);return i?i.stringified===n&&(r==null||i.decode===r):!1}get(e){var n;if(this.paramsMap.has(e))return(n=this.paramsMap.get(e))==null?void 0:n.decoded}registerParams(e){for(const n of e){const r=this.registeredParams.get(n)||0;this.registeredParams.set(n,r+1)}}unregisterParams(e){for(const n of e){const r=(this.registeredParams.get(n)||0)-1;r<=0?(this.registeredParams.delete(n),this.paramsMap.has(n)&&this.paramsMap.delete(n)):this.registeredParams.set(n,r)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}}const DS=new T1e;function x1e(t,e){var n,r,i;const a={};let s=!1;const o=Object.keys(t);let c=o;if(e.includeKnownParams||e.includeKnownParams!==!1&&o.length===0){const f=Object.keys((n=e.params)!=null?n:{});c.push(...f)}for(const f of c){const p=t[f];if(p!=null&&typeof p=="object"){a[f]=p;continue}s=!0,a[f]=(i=(r=e.params)==null?void 0:r[f])!=null?i:Qf}return s?a:t}function aX(t,e,n,r){var i;if(!n||!e.length)return t;let a={...t},s=!1;for(const o of e)Object.prototype.hasOwnProperty.call(a,o)||(a[o]=(i=n[o])!=null?i:r,s=!0);return s?a:t}const C1e=Object.prototype.hasOwnProperty;function IG(t,e){return t===e?t!==0||e!==0||1/t===1/e:t!==t&&e!==e}function sX(t,e,n){var r,i;if(IG(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const a=Object.keys(t),s=Object.keys(e);if(a.length!==s.length)return!1;for(let o=0;o<a.length;o++){const c=(i=(r=void 0)==null?void 0:r.equals)!=null?i:IG;if(!C1e.call(e,a[o])||!c(t[a[o]],e[a[o]]))return!1}return!0}function oX(t,e,n){const r={},i=Object.keys(e);for(const a of i){const s=e[a],o=t[a];let c;if(n.has(a,o,s.decode))c=n.get(a);else{if(c=s.decode(o),s.equals&&n.has(a,o)){const d=n.get(a);s.equals(c,d)&&(c=d)}c!==void 0&&n.set(a,o,c,s.decode)}c===void 0&&s.default!==void 0&&(c=s.default),r[a]=c}return r}function O1e(){let t;function e(n,r,i){const a=oX(n,r,i);return t!=null&&sX(t,a)?t:(t=a,a)}return e}function R1e(t){let e;for(const n in t)if(t[n].urlName){const i=`${t[n].urlName}\0${n}`;e?e.push(i):e=[i]}return e?e.join(`
`):void 0}function N1e(t){if(t)return Object.fromEntries(t.split(`
`).map(e=>e.split("\0")))}function A1e(t,e){var n;let r={};for(const i in t)((n=e[i])==null?void 0:n.urlName)!=null?r[e[i].urlName]=t[i]:r[i]=t[i];return r}let DG,MG,LG,BR={};const lX=(t,e,n)=>{if(DG===e&&LG===t&&MG===n)return BR;DG=e,LG=t;const r=t(e??"");MG=n;const i=N1e(n);for(let[a,s]of Object.entries(r)){i!=null&&i[a]&&(delete r[a],a=i[a],r[a]=s);const o=BR[a];sX(s,o)&&(r[a]=o)}return BR=r,r},w1e={searchStringToObject:y1e,objectToSearchString:S1e,updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0};function cX(t,e){e==null&&(e={});const n={...t,...e};return e.params&&t.params&&(n.params={...t.params,...e.params}),n}const uX={adapter:{},options:w1e},AD=I.createContext(uX);function I1e(){const t=I.useContext(AD);if(t===void 0||t===uX)throw new Error("useQueryParams must be used within a QueryParamProvider");return t}function kG({children:t,adapter:e,options:n}){const{adapter:r,options:i}=I.useContext(AD),a=I.useMemo(()=>({adapter:e??r,options:cX(i,n)}),[e,n,r,i]);return I.createElement(AD.Provider,{value:a},t)}function D1e({children:t,adapter:e,options:n}){const r=e;return r?I.createElement(r,null,i=>I.createElement(kG,{adapter:i,options:n},t)):I.createElement(kG,{options:n},t)}function M1e(t,e){var n;for(const r in t)((n=e[r])==null?void 0:n.default)!==void 0&&t[r]!==void 0&&e[r].encode(e[r].default)===t[r]&&(t[r]=void 0)}function L1e({changes:t,updateType:e,currentSearchString:n,paramConfigMap:r,options:i}){const{searchStringToObject:a,objectToSearchString:s}=i;e==null&&(e=i.updateType);let o;const c=lX(a,n),d=aX(r,Object.keys(t),i.params);let f;if(typeof t=="function"){const m=oX(c,d,DS);f=t(m)}else f=t;o=E1e(d,f),i.removeDefaultsFromUrl&&M1e(o,d),o=A1e(o,d);let p;return e==="push"||e==="replace"?p=s(o):p=s({...c,...o}),p!=null&&p.length&&p[0]!=="?"&&(p=`?${p}`),p??""}function k1e({searchString:t,adapter:e,navigate:n,updateType:r}){const a={...e.location,search:t};typeof r=="string"&&r.startsWith("replace")?e.replace(a):e.push(a)}const P1e=t=>t(),B1e=t=>setTimeout(()=>t(),0),Kv=[];function F1e(t,{immediate:e}={}){Kv.push(t);let n=e?P1e:B1e;Kv.length===1&&n(()=>{const r=Kv.slice();Kv.length=0;const i=r[0].currentSearchString;let a;for(let s=0;s<r.length;++s){const o=s===0?r[s]:{...r[s],currentSearchString:a};a=L1e(o)}t.options.skipUpdateWhenNoChange&&a===i||k1e({searchString:a??"",adapter:r[r.length-1].adapter,navigate:!0,updateType:r[r.length-1].updateType})})}function U1e(t,e){const{adapter:n,options:r}=I1e(),[i]=I.useState(O1e),{paramConfigMap:a,options:s}=G1e(t,e),o=I.useMemo(()=>cX(r,s),[r,s]);let c=x1e(a,o);const d=lX(o.searchStringToObject,n.location.search,R1e(c));o.includeAllParams&&(c=aX(c,Object.keys(d),o.params,Qf));const f=i(d,c,DS),p=Object.keys(c).join("\0");I.useEffect(()=>{const S=p.split("\0");return DS.registerParams(S),()=>{DS.unregisterParams(S)}},[p]);const m={adapter:n,paramConfigMap:c,options:o},g=I.useRef(m);g.current==null&&(g.current=m),I.useEffect(()=>{g.current.adapter=n,g.current.paramConfigMap=c,g.current.options=o},[n,c,o]);const[b]=I.useState(()=>(y,E)=>{const{adapter:T,paramConfigMap:x,options:O}=g.current;E==null&&(E=O.updateType),F1e({changes:y,updateType:E,currentSearchString:T.location.search,paramConfigMap:x,options:O,adapter:T},{immediate:!O.enableBatching})});return[f,b]}var j1e=U1e;function G1e(t,e){let n,r;return t===void 0?(n={},r=e):Array.isArray(t)?(n=Object.fromEntries(t.map(i=>[i,"inherit"])),r=e):(n=t,r=e),{paramConfigMap:n,options:r}}const $l=(t,e,n)=>{const r=I.useMemo(()=>({[t]:e??"inherit"}),[t,e]),[i,a]=j1e(r,n),s=i[t],o=I.useCallback((c,d)=>a(typeof c=="function"?f=>{const p=c(f[t]);return{[t]:p}}:{[t]:c},d),[t,a]);return[s,o]};function q1e(t,e,n,r){let i=[];for(const a of e){const s=dP(t,a,n,r.concat([]));s!==null&&(Array.isArray(s)?i=i.concat(s):i.push(s))}return i.length===0?null:i.length===1?i[0]:i}function dP(t,e,n=0,r=[]){let i=e;for(let a=n;a<t.length;a++){if(i==null||typeof i!="object")return null;if(Array.isArray(i))return q1e(t,i,a,r);const s=t[a];if(typeof s=="string")if(i[s]!==void 0)r.push(s),i=i[s];else return null;else{let o=[];for(const c of Object.keys(i))if(s.test(c)){const d=dP(t,i[c],a+1,r.concat([c]));d!==null&&(Array.isArray(d)?o=o.concat(d):o.push(d))}return o}}return{path:r,value:i}}function $1e(t){return t.right!==void 0}function z1e(t){return t.keyPath!==void 0}function zE(t,e){const n={original:t.original,rendered:t.rendered,score:t.score+e.score,index:t.index};let r;return t.matched&&e.matched?r=t.matched.concat(e.matched):t.matched?r=t.matched:e.matched&&(r=e.matched),r&&(n.matched=r),n}function Y1e(t,e){const n=t;for(const[r,i]of Object.entries(e)){const a=r;n[a]!==void 0?n[a]=zE(n[a],i):n[a]=i}}function H1e(t,e){const n={};for(const[r,i]of Object.entries(e)){const a=r;t[a]!==void 0&&(n[a]=zE(t[a],i))}return n}function V1e(t,e,n){return Dm(t,e,(r,i)=>r===i,n)}function W1e(t,e,n){return Dm(t,e,(r,i)=>r!==i,n)}function Q1e(t,e,n){return Dm(t,e,(r,i)=>r>i,n)}function K1e(t,e,n){return Dm(t,e,(r,i)=>r>=i,n)}function X1e(t,e,n){return Dm(t,e,(r,i)=>r<i,n)}function Z1e(t,e,n){return Dm(t,e,(r,i)=>r<=i,n)}function Dm(t,e,n,r){let i=t,a=e;return!r&&typeof i=="string"&&typeof a=="string"&&(i=i.toLocaleLowerCase(),a=a.toLocaleLowerCase()),n(a,i)}function PG(t,e){const n={match:"fuzzy",pattern:t,keyPath:[]};return Array.isArray(e)?n.keyPath=n.keyPath.concat(e):n.keyPath=[e],n}class DT{constructor(e){this.conf={caseSensitive:(e==null?void 0:e.caseSensitive)===void 0?!1:e.caseSensitive,excludedChars:(e==null?void 0:e.excludedChars)===void 0?[]:e.excludedChars,includeMatches:(e==null?void 0:e.includeMatches)===void 0?!1:e.includeMatches,shouldSort:(e==null?void 0:e.shouldSort)===void 0?!1:e.shouldSort,shouldRender:(e==null?void 0:e.shouldRender)===void 0?!0:e.shouldRender,escapeHTML:(e==null?void 0:e.escapeHTML)===void 0?!1:e.escapeHTML,findAllMatches:(e==null?void 0:e.findAllMatches)==null?!1:e.findAllMatches,pre:e==null?void 0:e.pre,post:e==null?void 0:e.post,indexedKeys:e==null?void 0:e.indexedKeys}}filter(e,n,r){const i=r!=null&&r.indexedKeys?r.indexedKeys:this.conf.indexedKeys;if(i===void 0)return[];const a=i.length,s=PG(e,i[0]);if(a===1)return this.filterWithQuery(s,n,r);const o={operator:"or",left:s,right:s};let c=o;for(let d=1;d<a;d++){const f=PG(e,i[d]);if(d+1<a){const p={operator:"or",left:f,right:f};c.right=p,c=p}else c.right=f}return this.filterWithQuery(o,n,r)}filterWithQuery(e,n,r){const i=(r==null?void 0:r.shouldSort)!==void 0?r.shouldSort:this.conf.shouldSort,a=(r==null?void 0:r.shouldRender)!==void 0?r.shouldRender:this.conf.shouldRender,s=(r==null?void 0:r.includeMatches)!==void 0?r.includeMatches:this.conf.includeMatches,o=(r==null?void 0:r.findAllMatches)!==void 0?r.findAllMatches:this.conf.findAllMatches,c=[{current:e,depth:0}],d=[];for(;c.length>0;){const p=c.shift();if(!p)break;const m=p.current;if($1e(m)){c.unshift({current:m.left,parent:m.operator,depth:p.depth+1},{current:m.right,parent:m.operator,depth:p.depth+1},{current:m.operator,parent:p.parent,depth:p.depth});continue}if(z1e(m)){let S;!o&&d.length>1&&d[d.length-1].depth===p.depth&&p.parent!==void 0&&(S={result:d[d.length-1].result,parent:p.parent}),d.push({result:this.executeQuery(m,n,S,r),depth:p.depth});continue}const g=d.pop(),b=d.pop();if(!g||!b)break;m==="or"?(Y1e(g.result,b.result),d.push({result:g.result,depth:p.depth})):d.push({result:H1e(g.result,b.result),depth:p.depth})}let f=Object.values(d[0].result);for(let p=0;p<f.length;p++)f[p].rendered=a?this.render(f[p].original,f[p].matched,r):f[p].original,s||(f[p].matched=void 0);return i&&(f=f.sort((p,m)=>m.score-p.score)),f||[]}match(e,n,r){const i=(r==null?void 0:r.includeMatches)!==void 0?r.includeMatches:this.conf.includeMatches,a=(r==null?void 0:r.shouldRender)!==void 0?r.shouldRender:this.conf.shouldRender,s=this.internalMatch(e,n,r);return s!==null&&(s.original=n,s.rendered=a?this.render(n,s.matched,r):n,i||(s.matched=void 0)),s}render(e,n,r){const i=r!=null&&r.pre?r.pre:this.conf.pre,a=r!=null&&r.post?r.post:this.conf.post;if(i===void 0&&a===void 0||n===void 0)return e;const s=JSON.parse(JSON.stringify(e)),o={};for(const c of n)this.renderingWalk(c,s,o,r);return s}renderingWalk(e,n,r,i){let a=n,s=0;const o=e.path;for(;s<o.length-1;)a[o[s]]!==void 0?a=a[o[s]]:a=a[r[o.slice(0,s).toString()]],s++;const c={pre:i!=null&&i.pre?i.pre:this.conf.pre,post:i!=null&&i.post?i.post:this.conf.post,escapeHTML:i!=null&&i.escapeHTML?i.escapeHTML:this.conf.escapeHTML};let d=o[s];if(typeof a[d]=="object"&&typeof e.value=="string"){a=a[d];const f=p6(e.value,e.intervals,c);a[f]=a[e.value],r[o.concat(e.value).toString()]=f,delete a[e.value]}else a[d]===void 0&&(d=r[o.toString()]),a[d]=p6(a[d],e.intervals,c)}executeQuery(e,n,r,i){const a={};for(let s=0;s<n.length;s++){const o=n[s];if(r){if(r.parent==="or"){if(r.result[s])continue}else if(!r.result[s])continue}const c=this.internalMatch(e,o,i);c!==null&&(c.index=s,c.original=o,a[s]=c)}return a}internalMatch(e,n,r){const i=dP(e.keyPath,n);return this.processWalkingPath(i,e,r)}processWalkingPath(e,n,r){let i=null;if(e===null)return null;if(Array.isArray(e))for(const a of e){const s=this.recursiveMatch(a.value,a.path,n,r);s!==null&&(i!=null?i=zE(s,i):i=s)}else i=this.recursiveMatch(e.value,e.path,n,r);return i}recursiveMatch(e,n,r,i){let a=null;if(typeof e=="string"||typeof e=="number")a=this.matchSingleStringOrNumber(e,n,r,i);else if(Array.isArray(e))for(const s of e){const o=this.recursiveMatch(s,n,r,i);o!==null&&(a!=null?a=zE(o,a):a=o)}else for(const s of Object.keys(e))if(a=this.matchSingleStringOrNumber(s,n,r,i),a!==null)break;return a}matchSingleStringOrNumber(e,n,r,i){const a=(i==null?void 0:i.caseSensitive)!==void 0?i.caseSensitive:this.conf.caseSensitive;let s=[];switch((i==null?void 0:i.excludedChars)!==void 0?s=i.excludedChars:this.conf.excludedChars!==void 0&&(s=this.conf.excludedChars),r.match){case"exact":return V1e(r.pattern,e,a)?{score:1/0,matched:[{path:n,value:e,intervals:typeof e=="string"?[{from:0,to:e.length-1}]:[]}]}:null;case"negative":return W1e(r.pattern,e,a)?{score:1,matched:[{path:n,value:e,intervals:[]}]}:null;case"fuzzy":{if(typeof r.pattern!="string"||typeof e!="string")return null;const o=wTe(r.pattern,e,{includeMatches:!0,caseSensitive:a,excludedChars:s});return o===null?null:{score:o.score,matched:[{path:n,value:e,intervals:o.intervals?o.intervals:[]}]}}case"greater":return Q1e(r.pattern,e,a)?{score:1,matched:[{path:n,value:e,intervals:[]}]}:null;case"greaterEqual":return K1e(r.pattern,e,a)?{score:1,matched:[{path:n,value:e,intervals:[]}]}:null;case"less":return X1e(r.pattern,e,a)?{score:1,matched:[{path:n,value:e,intervals:[]}]}:null;case"lessEqual":return Z1e(r.pattern,e,a)?{score:1,matched:[{path:n,value:e,intervals:[]}]}:null}}}const J1e=new DT({shouldSort:!0,indexedKeys:["name","labels",["labels",/.*/]]}),eNe=(t,e,n)=>{const r={globalCounts:{inactive:0,pending:0,firing:0},groups:[]};for(const i of t.groups){const a={total:0,inactive:0,pending:0,firing:0};for(const o of i.rules)switch(a.total++,o.state){case"inactive":r.globalCounts.inactive++,a.inactive++;break;case"firing":r.globalCounts.firing++,a.firing++;break;case"pending":r.globalCounts.pending++,a.pending++;break;default:throw new Error(`Unknown rule state: ${o.state}`)}const s=(e===""?i.rules:J1e.filter(e,i.rules).map(o=>o.original)).filter(o=>n.length===0||n.includes(o.state));r.groups.push({name:i.name,file:i.file,counts:a,rules:s.map(o=>({rule:o,counts:{firing:o.alerts.filter(c=>c.state==="firing").length,pending:o.alerts.filter(c=>c.state==="pending").length}}))})}return r},tNe=[];function dX(){const{data:t}=Bi({path:"/rules",params:{type:"alert"}}),{showAnnotations:e}=Si(),[n,r]=$l("state",ld(uP,tNe)),[i,a]=$l("search",ld(Qf,"")),[s]=VE(i.trim(),250),[o,c]=WE({key:"alertsPage.showEmptyGroups",defaultValue:!1}),{alertGroupsPerPage:d}=Si(),[f,p]=$l("page",ld(iX,1)),m=I.useMemo(()=>eNe(t.data,s,n),[t,n,s]),g=I.useMemo(()=>o?m.groups:m.groups.filter(T=>T.rules.length>0),[m.groups,o]),b=Math.ceil(g.length/d),S=Math.max(1,Math.min(f,b));I.useEffect(()=>{S!==f&&p(S)},[S,f,p]);const y=I.useMemo(()=>g.slice((S-1)*d,S*d),[g,S,d]),E=I.useMemo(()=>y.map(T=>l.jsxs(kr,{shadow:"xs",withBorder:!0,p:"md",children:[l.jsxs(pt,{mb:"sm",justify:"space-between",children:[l.jsxs(pt,{align:"baseline",children:[l.jsx(ft,{fz:"xl",fw:600,c:"var(--mantine-primary-color-filled)",children:T.name}),l.jsx(ft,{fz:"sm",c:"gray.6",children:T.file})]}),l.jsxs(pt,{children:[T.counts.firing>0&&l.jsxs(ni,{className:Nn.healthErr,children:["firing (",T.counts.firing,")"]}),T.counts.pending>0&&l.jsxs(ni,{className:Nn.healthWarn,children:["pending (",T.counts.pending,")"]}),T.counts.inactive>0&&l.jsxs(ni,{className:Nn.healthOk,children:["inactive (",T.counts.inactive,")"]})]})]}),T.counts.total===0?l.jsxs(Ft,{title:"No rules",icon:l.jsx(pr,{}),children:["No rules in this group.",l.jsx(vi,{ml:"md",fz:"1em",onClick:()=>c(!1),children:"Hide empty groups"})]}):T.rules.length===0?l.jsxs(Ft,{title:"No matching rules",icon:l.jsx(pr,{}),children:["No rules in this group match your filter criteria (omitted"," ",T.counts.total," filtered rules).",l.jsx(vi,{ml:"md",fz:"1em",onClick:()=>c(!1),children:"Hide empty groups"})]}):l.jsx(z0,{allItems:T.rules,child:({items:x})=>l.jsx(mr,{multiple:!0,variant:"separated",children:x.map((O,C)=>l.jsxs(mr.Item,{mt:he(5),styles:{item:{backgroundColor:"#c0c0c015"}},value:C.toString(),className:O.counts.firing>0?vf.panelHealthErr:O.counts.pending>0?vf.panelHealthWarn:vf.panelHealthOk,children:[l.jsx(mr.Control,{styles:{label:{paddingBlock:he(10)}},children:l.jsxs(pt,{wrap:"nowrap",justify:"space-between",mr:"lg",children:[l.jsx(ft,{children:O.rule.name}),l.jsxs(pt,{gap:"xs",children:[O.counts.firing>0&&l.jsxs(ni,{className:Nn.healthErr,children:["firing (",O.counts.firing,")"]}),O.counts.pending>0&&l.jsxs(ni,{className:Nn.healthWarn,children:["pending (",O.counts.pending,")"]})]})]})}),l.jsxs(mr.Panel,{children:[l.jsx(nX,{rule:O.rule}),O.rule.alerts.length>0&&l.jsxs(ie,{mt:"lg",children:[l.jsx(ie.Thead,{children:l.jsxs(ie.Tr,{style:{whiteSpace:"nowrap"},children:[l.jsx(ie.Th,{children:"Alert labels"}),l.jsx(ie.Th,{children:"State"}),l.jsx(ie.Th,{children:"Active Since"}),l.jsx(ie.Th,{children:"Value"})]})}),l.jsx(ie.Tbody,{children:O.rule.type==="alerting"&&O.rule.alerts.map((N,w)=>l.jsxs(I.Fragment,{children:[l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{children:l.jsx(sm,{labels:N.labels})}),l.jsx(ie.Td,{children:l.jsx(ni,{className:N.state==="firing"?Nn.healthErr:Nn.healthWarn,children:N.state})}),l.jsx(ie.Td,{style:{whiteSpace:"nowrap"},children:l.jsx(gi,{label:N.activeAt,children:l.jsx(ve,{children:nE(N.activeAt,tE(),"")})})}),l.jsx(ie.Td,{style:{whiteSpace:"nowrap"},children:isNaN(Number(N.value))?N.value:Number(N.value)})]}),e&&l.jsx(ie.Tr,{children:l.jsx(ie.Td,{colSpan:4,children:l.jsx(ie,{mt:"md",mb:"xl",children:l.jsx(ie.Tbody,{children:Object.entries(N.annotations).map(([D,L])=>l.jsxs(ie.Tr,{children:[l.jsx(ie.Th,{c:"light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-4))",children:D}),l.jsx(ie.Td,{children:L})]},D))})})})})]},w))})]})]})]},C))})})]},`${T.file}-${T.name}`)),[y,e,c]);return l.jsxs(Bn,{mt:"xs",children:[l.jsxs(pt,{children:[l.jsx(cP,{options:["inactive","pending","firing"],optionClass:T=>T==="inactive"?Nn.healthOk:T==="pending"?Nn.healthWarn:Nn.healthErr,optionCount:T=>m.globalCounts[T],placeholder:"Filter by rule group state",values:(n==null?void 0:n.filter(T=>T!==null))||[],onChange:T=>r(T)}),l.jsx(eu,{flex:1,leftSection:l.jsx(Jf,{style:Nm}),placeholder:"Filter by rule name or labels",value:i||"",onChange:T=>a(T.currentTarget.value||null)})]}),m.groups.length===0?l.jsx(Ft,{title:"No rules found",icon:l.jsx(pr,{}),children:"No rules found."}):!o&&m.groups.length!==g.length&&l.jsxs(Ft,{title:"Hiding groups with no matching rules",icon:l.jsx(pr,{}),children:["Hiding ",m.groups.length-g.length," empty groups due to filters or no rules.",l.jsx(vi,{ml:"md",fz:"1em",onClick:()=>c(!0),children:"Show empty groups"})]}),l.jsxs(Bn,{children:[l.jsx(ho,{total:b,value:S,onChange:p,hideWithOnePage:!0}),E]})]})}const nNe=t=>{switch(t){case"ok":return Nn.healthOk;case"err":return Nn.healthErr;case"unknown":return Nn.healthUnknown;default:throw new Error("Unknown rule health state")}};function rNe(){const{data:t}=Bi({path:"/rules"}),{ruleGroupsPerPage:e}=Si(),[n,r]=$l("page",ld(iX,1)),i=Math.ceil(t.data.groups.length/e),a=Math.max(1,Math.min(n,i));return I.useEffect(()=>{a!==n&&r(a)},[a,n,r]),l.jsxs(Bn,{mt:"xs",children:[t.data.groups.length===0&&l.jsx(Ft,{title:"No rule groups",icon:l.jsx(pr,{}),children:"No rule groups configured."}),l.jsx(ho,{total:i,value:a,onChange:r,hideWithOnePage:!0}),t.data.groups.slice((a-1)*e,a*e).map(s=>l.jsxs(kr,{shadow:"xs",withBorder:!0,p:"md",mb:"md",children:[l.jsxs(pt,{mb:"sm",justify:"space-between",children:[l.jsxs(pt,{align:"baseline",children:[l.jsx(ft,{fz:"xl",fw:600,c:"var(--mantine-primary-color-filled)",children:s.name}),l.jsx(ft,{fz:"sm",c:"gray.6",children:s.file})]}),l.jsxs(pt,{children:[l.jsx(gi,{label:"Last group evaluation",withArrow:!0,children:l.jsxs(ni,{variant:"light",className:Nn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(kw,{style:Dc}),children:["last run ",nE(s.lastEvaluation,tE())]})}),l.jsx(gi,{label:"Duration of last group evaluation",withArrow:!0,children:l.jsxs(ni,{variant:"light",className:Nn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(Lw,{style:Dc}),children:["took ",op(parseFloat(s.evaluationTime)*1e3)]})}),l.jsx(gi,{label:"Group evaluation interval",withArrow:!0,children:l.jsxs(ni,{variant:"transparent",className:Nn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(Ple,{style:Dc}),children:["every ",op(parseFloat(s.interval)*1e3)," "]})})]})]}),s.rules.length===0&&l.jsx(Ft,{title:"No rules",icon:l.jsx(pr,{}),children:"No rules in rule group."}),l.jsx(z0,{allItems:s.rules,child:({items:o})=>l.jsx(mr,{multiple:!0,variant:"separated",children:o.map((c,d)=>l.jsxs(mr.Item,{mt:he(5),styles:{item:{backgroundColor:"#c0c0c015"}},value:d.toString(),style:{borderLeft:c.health==="err"?"5px solid var(--mantine-color-red-4)":c.health==="unknown"?"5px solid var(--mantine-color-gray-5)":"5px solid var(--mantine-color-green-4)"},children:[l.jsx(mr.Control,{styles:{label:{paddingBlock:he(10)}},children:l.jsxs(pt,{justify:"space-between",mr:"lg",children:[l.jsxs(pt,{gap:"xs",wrap:"nowrap",children:[c.type==="alerting"?l.jsx(gi,{label:"Alerting rule",withArrow:!0,children:l.jsx(vL,{style:{width:he(15),height:he(15)}})}):l.jsx(gi,{label:"Recording rule",withArrow:!0,children:l.jsx(zle,{style:{width:he(15),height:he(15)}})}),l.jsx(ft,{children:c.name})]}),l.jsxs(pt,{gap:"xs",children:[l.jsxs(pt,{gap:"xs",wrap:"wrap",children:[l.jsx(gi,{label:"Last rule evaluation",withArrow:!0,children:l.jsx(ni,{variant:"light",className:Nn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(kw,{style:Dc}),children:nE(c.lastEvaluation,tE())})}),l.jsx(gi,{label:"Duration of last rule evaluation",withArrow:!0,children:l.jsx(ni,{variant:"light",className:Nn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(Lw,{style:Dc}),children:op(parseFloat(c.evaluationTime)*1e3)})})]}),l.jsx(ni,{className:nNe(c.health),children:c.health})]})]})}),l.jsxs(mr.Panel,{children:[l.jsx(nX,{rule:c}),c.lastError&&l.jsxs(Ft,{color:"red",mt:"sm",title:"Rule failed to evaluate",icon:l.jsx(ta,{}),children:[l.jsx("strong",{children:"Error:"})," ",c.lastError]})]})]},d))})})]},`${s.file}-${s.name}`))]})}const fX="targetsPage.collapsedPools",iNe={collapsedPools:Lo(fX,[]),showLimitAlert:!1},hX=qy({name:"targetsPage",initialState:iNe,reducers:{setCollapsedPools:(t,{payload:e})=>{t.collapsedPools=e},setShowLimitAlert:(t,{payload:e})=>{t.showLimitAlert=e}}}),{setCollapsedPools:fP,setShowLimitAlert:wD}=hX.actions,aNe=hX.reducer,ID=({endpoint:t,globalUrl:e})=>{let n,r="",i=!1;try{n=new URL(t)}catch{i=!0,t.indexOf("?")>-1&&(r=t.substring(t.indexOf("?"))),n=new URL("http://0.0.0.0"+r)}const{host:a,pathname:s,protocol:o,searchParams:c}=n,d=Array.from(c.entries()),f=i?t.replace(r,""):`${o}//${a}${s}`;return l.jsxs(Bn,{gap:0,children:[l.jsx(vi,{size:"sm",href:e,target:"_blank",children:f}),d.length>0&&l.jsx(pt,{gap:"xs",mt:"md",children:d.map(([p,m])=>l.jsx(ni,{size:"sm",variant:"light",color:"gray",style:{textTransform:"none"},children:`${p}="${m}"`},`${p}/${m}`))})]})},sNe=({discoveredLabels:t,labels:e})=>{const[n,{toggle:r}]=UD(!1);return l.jsxs(Bn,{children:[l.jsxs(pt,{wrap:"nowrap",align:"flex-start",children:[l.jsx(sm,{labels:e}),l.jsx(Pr,{size:"xs",color:"gray",variant:"light",onClick:r,title:`${n?"Hide":"Show"} discovered (pre-relabeling) labels`,children:n?l.jsx(IH,{style:em}):l.jsx(YS,{style:em})})]}),l.jsx(HD,{in:n,children:n&&l.jsxs(l.Fragment,{children:[l.jsx(ft,{fw:700,size:"1em",my:"lg",c:"gray.7",children:"Discovered labels:"}),l.jsx(sm,{labels:t,style:{color:"var(--mantine-color-blue-light-color)",backgroundColor:"var(--mantine-color-blue-light)"}})]})})]})},oNe=t=>t.count>0&&t.downCount===t.count?vf.panelHealthErr:t.downCount>=1?vf.panelHealthWarn:t.unknownCount===t.count?vf.panelHealthUnknown:vf.panelHealthOk,lNe=t=>{switch(t.toLowerCase()){case"up":return Nn.healthOk;case"down":return Nn.healthErr;case"unknown":return Nn.healthUnknown;default:return Nn.healthWarn}},cNe=new DT({shouldSort:!0,indexedKeys:["labels","scrapePool",["labels",/.*/]]}),uNe=(t,e,n,r)=>{const i={};for(const s of t)i[s]={targets:[],count:0,upCount:0,downCount:0,unknownCount:0};for(const s of e){if(!i[s.scrapePool])throw new Error("Received target information for an unknown scrape pool, likely the list of scrape pools has changed. Please reload the page.");switch(i[s.scrapePool].count++,s.health.toLowerCase()){case"up":i[s.scrapePool].upCount++;break;case"down":i[s.scrapePool].downCount++;break;case"unknown":i[s.scrapePool].unknownCount++;break}}const a=(n===""?e:cNe.filter(n,e).map(s=>s.original)).filter(s=>r.length===0||r.includes(s.health));for(const s of a)i[s.scrapePool].targets.push(s);return i},dNe=({poolNames:t,selectedPool:e,healthFilter:n,searchFilter:r})=>{const{data:{data:{activeTargets:i}}}=Bi({path:"/targets",params:{state:"active",scrapePool:e===null?"":e}}),a=tu(),[s,o]=WE({key:"targetsPage.showEmptyPools",defaultValue:!1}),{collapsedPools:c,showLimitAlert:d}=Kl(b=>b.targetsPage),[f]=VE(r.trim(),250),p=I.useMemo(()=>uNe(e?[e]:t,i,f,n),[e,t,i,f,n]),m=Object.keys(p),g=s?m:m.filter(b=>p[b].targets.length!==0);return l.jsxs(Bn,{children:[m.length===0?l.jsx(Ft,{title:"No scrape pools found",icon:l.jsx(pr,{}),children:"No scrape pools found."}):!s&&m.length!==g.length&&l.jsxs(Ft,{title:"Hiding pools with no matching targets",icon:l.jsx(pr,{}),children:["Hiding ",m.length-g.length," empty pools due to filters or no targets.",l.jsx(vi,{ml:"md",fz:"1em",onClick:()=>o(!0),children:"Show empty pools"})]}),d&&l.jsxs(Ft,{title:"Found many pools, showing only one",icon:l.jsx(pr,{}),withCloseButton:!0,onClose:()=>a(wD(!1)),children:["There are more than ",pX," scrape pools. Showing only the first one. Use the dropdown to select a different pool."]}),l.jsx(mr,{multiple:!0,variant:"separated",value:m.filter(b=>!c.includes(b)),onChange:b=>a(fP(m.filter(S=>!b.includes(S)))),children:g.map(b=>{const S=p[b];return l.jsxs(mr.Item,{value:b,className:oNe(S),children:[l.jsx(mr.Control,{children:l.jsxs(pt,{wrap:"nowrap",justify:"space-between",mr:"lg",children:[l.jsx(ft,{children:b}),l.jsxs(pt,{gap:"xs",children:[l.jsxs(ft,{c:"gray.6",children:[S.upCount," / ",S.count," up"]}),l.jsx(Ly,{size:25,thickness:5,sections:S.count===0?[]:[{value:S.upCount/S.count*100,color:"green.4"},{value:S.unknownCount/S.count*100,color:"gray.4"},{value:S.downCount/S.count*100,color:"red.5"}]})]})]})}),l.jsx(mr.Panel,{children:S.count===0?l.jsxs(Ft,{title:"No targets",icon:l.jsx(pr,{}),children:["No active targets in this scrape pool.",l.jsx(vi,{ml:"md",fz:"1em",onClick:()=>o(!1),children:"Hide empty pools"})]}):S.targets.length===0?l.jsxs(Ft,{title:"No matching targets",icon:l.jsx(pr,{}),children:["No targets in this pool match your filter criteria (omitted"," ",S.count," filtered targets).",l.jsx(vi,{ml:"md",fz:"1em",onClick:()=>o(!1),children:"Hide empty pools"})]}):l.jsx(z0,{allItems:S.targets,child:({items:y})=>l.jsxs(ie,{children:[l.jsx(ie.Thead,{children:l.jsxs(ie.Tr,{children:[l.jsx(ie.Th,{w:"25%",children:"Endpoint"}),l.jsx(ie.Th,{children:"Labels"}),l.jsx(ie.Th,{w:230,children:"Last scrape"}),l.jsx(ie.Th,{w:100,children:"State"})]})}),l.jsx(ie.Tbody,{children:y.map((E,T)=>l.jsxs(On.Fragment,{children:[l.jsxs(ie.Tr,{style:{borderBottom:E.lastError?"none":void 0},children:[l.jsx(ie.Td,{valign:"top",children:l.jsx(ID,{endpoint:E.scrapeUrl,globalUrl:E.globalUrl})}),l.jsx(ie.Td,{valign:"top",children:l.jsx(sNe,{labels:E.labels,discoveredLabels:E.discoveredLabels})}),l.jsx(ie.Td,{valign:"top",children:l.jsxs(pt,{gap:"xs",wrap:"wrap",children:[l.jsx(gi,{label:"Last target scrape",withArrow:!0,children:l.jsx(ni,{variant:"light",className:Nn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(kw,{style:Dc}),children:nE(E.lastScrape,tE())})}),l.jsx(gi,{label:"Duration of last target scrape",withArrow:!0,children:l.jsx(ni,{variant:"light",className:Nn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(Lw,{style:Dc}),children:op(E.lastScrapeDuration*1e3)})})]})}),l.jsx(ie.Td,{valign:"top",children:l.jsx(ni,{className:lNe(E.health),children:E.health})})]}),E.lastError&&l.jsx(ie.Tr,{children:l.jsx(ie.Td,{colSpan:5,valign:"top",children:l.jsxs(Ft,{color:"red",mb:"sm",icon:l.jsx(ta,{}),children:[l.jsx("strong",{children:"Error scraping target:"})," ",E.lastError]})})})]},T))})]})})})]},b)})})]})},pX=20;function fNe(){const{data:{data:{scrapePools:t}}}=Bi({path:"/scrape_pools"}),e=tu(),[n,r]=$l("pool",Qf),[i,a]=$l("health",ld(uP,[])),[s,o]=$l("search",ld(Qf,"")),{collapsedPools:c,showLimitAlert:d}=Kl(p=>p.targetsPage),f=t.length>pX&&n===void 0;return f&&(r(t[0]),e(wD(!0))),l.jsxs(l.Fragment,{children:[l.jsxs(pt,{mb:"md",mt:"xs",children:[l.jsx(Sm,{placeholder:"Select scrape pool",data:[{label:"All pools",value:""},...t],value:f&&t[0]||n||null,onChange:p=>{r(p),d&&e(wD(!1))},searchable:!0}),l.jsx(cP,{options:["unknown","up","down"],optionClass:p=>p==="unknown"?Nn.healthUnknown:p==="up"?Nn.healthOk:Nn.healthErr,placeholder:"Filter by target health",values:(i==null?void 0:i.filter(p=>p!==null))||[],onChange:p=>a(p)}),l.jsx(eu,{flex:1,leftSection:l.jsx(Jf,{style:Nm}),placeholder:"Filter by endpoint or labels",value:s||"",onChange:p=>o(p.currentTarget.value||null)}),l.jsx(Pr,{size:"input-sm",title:c.length>0?"Expand all pools":"Collapse all pools",variant:"light",onClick:()=>e(fP(c.length>0?[]:t)),children:c.length>0?l.jsx(PH,{style:FE}):l.jsx(kH,{style:FE})})]}),l.jsx(tm,{title:"Error showing target pools",children:l.jsx(I.Suspense,{fallback:l.jsx(ve,{mt:"lg",children:Array.from(Array(10),(p,m)=>l.jsx(nl,{height:40,mb:15,width:1e3,mx:"auto"},m))}),children:l.jsx(dNe,{poolNames:t,selectedPool:f&&t[0]||n||null,healthFilter:i,searchFilter:s})})},location.pathname)]})}const Kf=({children:t,title:e,icon:n})=>l.jsxs(kr,{shadow:"xs",withBorder:!0,p:"md",children:[e&&l.jsxs(pt,{wrap:"nowrap",align:"center",ml:"xs",mb:"sm",gap:"xs",fz:"xl",fw:600,children:[n&&l.jsx(n,{style:gxe}),e]}),t]}),Y0=({children:t})=>l.jsx(Bn,{gap:"lg",maw:1e3,mx:"auto",mt:"xs",children:t});function hNe(){const{data:t}=Bi({path:"/status/buildinfo"}),{data:e}=Bi({path:"/status/runtimeinfo"}),{useLocalTime:n}=Si(),r={startTime:{title:"Start time",formatValue:i=>Lf(new Date(i).valueOf()/1e3,n)},CWD:{title:"Working directory"},hostname:{title:"Hostname"},serverTime:{title:"Server Time",formatValue:i=>Lf(new Date(i).valueOf()/1e3,n)},reloadConfigSuccess:{title:"Configuration reload",formatValue:i=>i?"Successful":"Unsuccessful"},lastConfigTime:{title:"Last successful configuration reload",formatValue:i=>Lf(new Date(i).valueOf()/1e3,n)},corruptionCount:{title:"WAL corruptions"},goroutineCount:{title:"Goroutines"},storageRetention:{title:"Storage retention"}};return l.jsxs(Y0,{children:[l.jsx(Kf,{title:"Build information",icon:Hle,children:l.jsx(ie,{layout:"fixed",children:l.jsx(ie.Tbody,{children:Object.entries(t.data).map(([i,a])=>l.jsxs(ie.Tr,{children:[l.jsx(ie.Th,{style:{textTransform:"capitalize"},children:i}),l.jsx(ie.Td,{children:a})]},i))})})}),l.jsx(Kf,{title:"Runtime information",icon:Ble,children:l.jsx(ie,{layout:"fixed",children:l.jsx(ie.Tbody,{children:Object.entries(e.data).map(([i,a])=>{const{title:s=i,formatValue:o=c=>c}=r[i]||{};return l.jsxs(ie.Tr,{children:[l.jsx(ie.Th,{style:{textTransform:"capitalize"},children:s}),l.jsx(ie.Td,{children:o(a)})]},i)})})})})]})}function pNe(){const{data:{data:{headStats:t,labelValueCountByLabelName:e,seriesCountByMetricName:n,memoryInBytesByLabelName:r,seriesCountByLabelValuePair:i}}}=Bi({path:"/status/tsdb"}),{useLocalTime:a}=Si(),s=g=>{const b=Lf(g,a);return b==="Invalid Date"?c===0?"No datapoints yet":`Error parsing time (${g})`:b},{chunkCount:o,numSeries:c,numLabelPairs:d,minTime:f,maxTime:p}=t,m=[{name:"Number of Series",value:c},{name:"Number of Chunks",value:o},{name:"Number of Label Pairs",value:d},{name:"Current Min Time",value:`${s(f/1e3)}`},{name:"Current Max Time",value:`${s(p/1e3)}`}];return l.jsx(Y0,{children:[{title:"TSDB Head Status",stats:m,formatAsCode:!1},{title:"Top 10 label names with value count",stats:e,formatAsCode:!0},{title:"Top 10 series count by metric names",stats:n,formatAsCode:!0},{title:"Top 10 label names with high memory usage",unit:"Bytes",stats:r,formatAsCode:!0},{title:"Top 10 series count by label value pairs",stats:i,formatAsCode:!0}].map(({title:g,unit:b="Count",stats:S,formatAsCode:y})=>l.jsx(Kf,{title:g,children:l.jsxs(ie,{layout:"fixed",children:[l.jsx(ie.Thead,{children:l.jsxs(ie.Tr,{children:[l.jsx(ie.Th,{children:"Name"}),l.jsx(ie.Th,{children:b})]})}),l.jsx(ie.Tbody,{children:S.map(({name:E,value:T})=>l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{style:{wordBreak:"break-all"},children:y?l.jsx("code",{children:E}):E}),l.jsx(ie.Td,{children:T})]},E))})]})}))})}const mNe="_th_1w9xk_1",gNe="_control_1w9xk_5",_Ne="_icon_1w9xk_17",FR={th:mNe,control:gNe,icon:_Ne};function BG({children:t,reversed:e,sorted:n,onSort:r}){const i=n?e?IH:YS:Fle;return l.jsx(ie.Th,{className:FR.th,children:l.jsx(bi,{onClick:r,className:FR.control,children:l.jsxs(pt,{justify:"space-between",children:[l.jsx(ft,{fw:600,fz:"sm",children:t}),l.jsx(A_,{className:FR.icon,children:l.jsx(i,{style:{width:he(16),height:he(16)},stroke:1.5})})]})})})}function FG(t,e){const n=e.toLowerCase().trim();return t.filter(r=>ki(t[0]).some(i=>r[i].toLowerCase().includes(n)))}function UG(t,e){const{sortBy:n}=e;return FG(n?[...t].sort((r,i)=>e.reversed?i[n].localeCompare(r[n]):r[n].localeCompare(i[n])):t,e.search)}function bNe(){const{data:t}=Bi({path:"/status/flags"}),e=Object.entries(t.data).map(([g,b])=>({flag:g,value:b})),[n,r]=I.useState(""),[i,a]=I.useState(e),[s,o]=I.useState(null),[c,d]=I.useState(!1),f=g=>{const b=g===s?!c:!1;d(b),o(g),a(UG(e,{sortBy:g,reversed:b,search:n}))},p=g=>{const{value:b}=g.currentTarget;r(b),a(UG(e,{sortBy:s,reversed:c,search:b}))},m=i.map(g=>l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{children:l.jsxs("code",{children:["--",g.flag]})}),l.jsx(ie.Td,{children:l.jsx("code",{children:g.value})})]},g.flag));return l.jsx(Y0,{children:l.jsxs(Kf,{children:[l.jsx(eu,{placeholder:"Filter by flag name or value",mb:"md",autoFocus:!0,leftSection:l.jsx(Jf,{style:Nm}),value:n,onChange:p}),l.jsxs(ie,{horizontalSpacing:"md",verticalSpacing:"xs",miw:700,layout:"fixed",children:[l.jsx(ie.Tbody,{children:l.jsxs(ie.Tr,{children:[l.jsx(BG,{sorted:s==="flag",reversed:c,onSort:()=>f("flag"),children:"Flag"}),l.jsx(BG,{sorted:s==="value",reversed:c,onSort:()=>f("value"),children:"Value"})]})}),l.jsx(ie.Tbody,{children:m.length>0?m:l.jsx(ie.Tr,{children:l.jsx(ie.Td,{colSpan:2,children:l.jsx(ft,{fw:500,ta:"center",children:"Nothing found"})})})})]})]})})}var UR,jG;function vNe(){if(jG)return UR;jG=1;function t(ne){return ne instanceof Map?ne.clear=ne.delete=ne.set=function(){throw new Error("map is read-only")}:ne instanceof Set&&(ne.add=ne.clear=ne.delete=function(){throw new Error("set is read-only")}),Object.freeze(ne),Object.getOwnPropertyNames(ne).forEach(we=>{const Ke=ne[we],ct=typeof Ke;(ct==="object"||ct==="function")&&!Object.isFrozen(Ke)&&t(Ke)}),ne}class e{constructor(we){we.data===void 0&&(we.data={}),this.data=we.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(ne){return ne.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(ne,...we){const Ke=Object.create(null);for(const ct in ne)Ke[ct]=ne[ct];return we.forEach(function(ct){for(const gn in ct)Ke[gn]=ct[gn]}),Ke}const i="</span>",a=ne=>!!ne.scope,s=(ne,{prefix:we})=>{if(ne.startsWith("language:"))return ne.replace("language:","language-");if(ne.includes(".")){const Ke=ne.split(".");return[`${we}${Ke.shift()}`,...Ke.map((ct,gn)=>`${ct}${"_".repeat(gn+1)}`)].join(" ")}return`${we}${ne}`};class o{constructor(we,Ke){this.buffer="",this.classPrefix=Ke.classPrefix,we.walk(this)}addText(we){this.buffer+=n(we)}openNode(we){if(!a(we))return;const Ke=s(we.scope,{prefix:this.classPrefix});this.span(Ke)}closeNode(we){a(we)&&(this.buffer+=i)}value(){return this.buffer}span(we){this.buffer+=`<span class="${we}">`}}const c=(ne={})=>{const we={children:[]};return Object.assign(we,ne),we};class d{constructor(){this.rootNode=c(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(we){this.top.children.push(we)}openNode(we){const Ke=c({scope:we});this.add(Ke),this.stack.push(Ke)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(we){return this.constructor._walk(we,this.rootNode)}static _walk(we,Ke){return typeof Ke=="string"?we.addText(Ke):Ke.children&&(we.openNode(Ke),Ke.children.forEach(ct=>this._walk(we,ct)),we.closeNode(Ke)),we}static _collapse(we){typeof we!="string"&&we.children&&(we.children.every(Ke=>typeof Ke=="string")?we.children=[we.children.join("")]:we.children.forEach(Ke=>{d._collapse(Ke)}))}}class f extends d{constructor(we){super(),this.options=we}addText(we){we!==""&&this.add(we)}startScope(we){this.openNode(we)}endScope(){this.closeNode()}__addSublanguage(we,Ke){const ct=we.root;Ke&&(ct.scope=`language:${Ke}`),this.add(ct)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(ne){return ne?typeof ne=="string"?ne:ne.source:null}function m(ne){return S("(?=",ne,")")}function g(ne){return S("(?:",ne,")*")}function b(ne){return S("(?:",ne,")?")}function S(...ne){return ne.map(Ke=>p(Ke)).join("")}function y(ne){const we=ne[ne.length-1];return typeof we=="object"&&we.constructor===Object?(ne.splice(ne.length-1,1),we):{}}function E(...ne){return"("+(y(ne).capture?"":"?:")+ne.map(ct=>p(ct)).join("|")+")"}function T(ne){return new RegExp(ne.toString()+"|").exec("").length-1}function x(ne,we){const Ke=ne&&ne.exec(we);return Ke&&Ke.index===0}const O=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C(ne,{joinWith:we}){let Ke=0;return ne.map(ct=>{Ke+=1;const gn=Ke;let vn=p(ct),We="";for(;vn.length>0;){const ze=O.exec(vn);if(!ze){We+=vn;break}We+=vn.substring(0,ze.index),vn=vn.substring(ze.index+ze[0].length),ze[0][0]==="\\"&&ze[1]?We+="\\"+String(Number(ze[1])+gn):(We+=ze[0],ze[0]==="("&&Ke++)}return We}).map(ct=>`(${ct})`).join(we)}const N=/\b\B/,w="[a-zA-Z]\\w*",D="[a-zA-Z_]\\w*",L="\\b\\d+(\\.\\d+)?",U="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",M="\\b(0b[01]+)",B="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Y=(ne={})=>{const we=/^#![ ]*\//;return ne.binary&&(ne.begin=S(we,/.*\b/,ne.binary,/\b.*/)),r({scope:"meta",begin:we,end:/$/,relevance:0,"on:begin":(Ke,ct)=>{Ke.index!==0&&ct.ignoreMatch()}},ne)},H={begin:"\\\\[\\s\\S]",relevance:0},F={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[H]},k={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[H]},P={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},z=function(ne,we,Ke={}){const ct=r({scope:"comment",begin:ne,end:we,contains:[]},Ke);ct.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const gn=E("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return ct.contains.push({begin:S(/[ ]+/,"(",gn,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ct},V=z("//","$"),G=z("/\\*","\\*/"),Q=z("#","$"),Z={scope:"number",begin:L,relevance:0},X={scope:"number",begin:U,relevance:0},ue={scope:"number",begin:M,relevance:0},fe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[H,{begin:/\[/,end:/\]/,relevance:0,contains:[H]}]},be={scope:"title",begin:w,relevance:0},ye={scope:"title",begin:D,relevance:0},Ne={begin:"\\.\\s*"+D,relevance:0};var Oe=Object.freeze({__proto__:null,APOS_STRING_MODE:F,BACKSLASH_ESCAPE:H,BINARY_NUMBER_MODE:ue,BINARY_NUMBER_RE:M,COMMENT:z,C_BLOCK_COMMENT_MODE:G,C_LINE_COMMENT_MODE:V,C_NUMBER_MODE:X,C_NUMBER_RE:U,END_SAME_AS_BEGIN:function(ne){return Object.assign(ne,{"on:begin":(we,Ke)=>{Ke.data._beginMatch=we[1]},"on:end":(we,Ke)=>{Ke.data._beginMatch!==we[1]&&Ke.ignoreMatch()}})},HASH_COMMENT_MODE:Q,IDENT_RE:w,MATCH_NOTHING_RE:N,METHOD_GUARD:Ne,NUMBER_MODE:Z,NUMBER_RE:L,PHRASAL_WORDS_MODE:P,QUOTE_STRING_MODE:k,REGEXP_MODE:fe,RE_STARTERS_RE:B,SHEBANG:Y,TITLE_MODE:be,UNDERSCORE_IDENT_RE:D,UNDERSCORE_TITLE_MODE:ye});function oe(ne,we){ne.input[ne.index-1]==="."&&we.ignoreMatch()}function Se(ne,we){ne.className!==void 0&&(ne.scope=ne.className,delete ne.className)}function le(ne,we){we&&ne.beginKeywords&&(ne.begin="\\b("+ne.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ne.__beforeBegin=oe,ne.keywords=ne.keywords||ne.beginKeywords,delete ne.beginKeywords,ne.relevance===void 0&&(ne.relevance=0))}function Ge(ne,we){Array.isArray(ne.illegal)&&(ne.illegal=E(...ne.illegal))}function lt(ne,we){if(ne.match){if(ne.begin||ne.end)throw new Error("begin & end are not supported with match");ne.begin=ne.match,delete ne.match}}function xt(ne,we){ne.relevance===void 0&&(ne.relevance=1)}const Ae=(ne,we)=>{if(!ne.beforeMatch)return;if(ne.starts)throw new Error("beforeMatch cannot be used with starts");const Ke=Object.assign({},ne);Object.keys(ne).forEach(ct=>{delete ne[ct]}),ne.keywords=Ke.keywords,ne.begin=S(Ke.beforeMatch,m(Ke.begin)),ne.starts={relevance:0,contains:[Object.assign(Ke,{endsParent:!0})]},ne.relevance=0,delete Ke.beforeMatch},Be=["of","and","for","in","not","or","if","then","parent","list","value"],Xe="keyword";function je(ne,we,Ke=Xe){const ct=Object.create(null);return typeof ne=="string"?gn(Ke,ne.split(" ")):Array.isArray(ne)?gn(Ke,ne):Object.keys(ne).forEach(function(vn){Object.assign(ct,je(ne[vn],we,vn))}),ct;function gn(vn,We){we&&(We=We.map(ze=>ze.toLowerCase())),We.forEach(function(ze){const dt=ze.split("|");ct[dt[0]]=[vn,Ze(dt[0],dt[1])]})}}function Ze(ne,we){return we?Number(we):Et(ne)?0:1}function Et(ne){return Be.includes(ne.toLowerCase())}const vt={},xe=ne=>{console.error(ne)},Re=(ne,...we)=>{console.log(`WARN: ${ne}`,...we)},et=(ne,we)=>{vt[`${ne}/${we}`]||(console.log(`Deprecated as of ${ne}. ${we}`),vt[`${ne}/${we}`]=!0)},yt=new Error;function Mt(ne,we,{key:Ke}){let ct=0;const gn=ne[Ke],vn={},We={};for(let ze=1;ze<=we.length;ze++)We[ze+ct]=gn[ze],vn[ze+ct]=!0,ct+=T(we[ze-1]);ne[Ke]=We,ne[Ke]._emit=vn,ne[Ke]._multi=!0}function kt(ne){if(Array.isArray(ne.begin)){if(ne.skip||ne.excludeBegin||ne.returnBegin)throw xe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),yt;if(typeof ne.beginScope!="object"||ne.beginScope===null)throw xe("beginScope must be object"),yt;Mt(ne,ne.begin,{key:"beginScope"}),ne.begin=C(ne.begin,{joinWith:""})}}function Zt(ne){if(Array.isArray(ne.end)){if(ne.skip||ne.excludeEnd||ne.returnEnd)throw xe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),yt;if(typeof ne.endScope!="object"||ne.endScope===null)throw xe("endScope must be object"),yt;Mt(ne,ne.end,{key:"endScope"}),ne.end=C(ne.end,{joinWith:""})}}function zt(ne){ne.scope&&typeof ne.scope=="object"&&ne.scope!==null&&(ne.beginScope=ne.scope,delete ne.scope)}function Fn(ne){zt(ne),typeof ne.beginScope=="string"&&(ne.beginScope={_wrap:ne.beginScope}),typeof ne.endScope=="string"&&(ne.endScope={_wrap:ne.endScope}),kt(ne),Zt(ne)}function Hn(ne){function we(We,ze){return new RegExp(p(We),"m"+(ne.case_insensitive?"i":"")+(ne.unicodeRegex?"u":"")+(ze?"g":""))}class Ke{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(ze,dt){dt.position=this.position++,this.matchIndexes[this.matchAt]=dt,this.regexes.push([dt,ze]),this.matchAt+=T(ze)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const ze=this.regexes.map(dt=>dt[1]);this.matcherRe=we(C(ze,{joinWith:"|"}),!0),this.lastIndex=0}exec(ze){this.matcherRe.lastIndex=this.lastIndex;const dt=this.matcherRe.exec(ze);if(!dt)return null;const _n=dt.findIndex((Ta,ss)=>ss>0&&Ta!==void 0),en=this.matchIndexes[_n];return dt.splice(0,_n),Object.assign(dt,en)}}class ct{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(ze){if(this.multiRegexes[ze])return this.multiRegexes[ze];const dt=new Ke;return this.rules.slice(ze).forEach(([_n,en])=>dt.addRule(_n,en)),dt.compile(),this.multiRegexes[ze]=dt,dt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(ze,dt){this.rules.push([ze,dt]),dt.type==="begin"&&this.count++}exec(ze){const dt=this.getMatcher(this.regexIndex);dt.lastIndex=this.lastIndex;let _n=dt.exec(ze);if(this.resumingScanAtSamePosition()&&!(_n&&_n.index===this.lastIndex)){const en=this.getMatcher(0);en.lastIndex=this.lastIndex+1,_n=en.exec(ze)}return _n&&(this.regexIndex+=_n.position+1,this.regexIndex===this.count&&this.considerAll()),_n}}function gn(We){const ze=new ct;return We.contains.forEach(dt=>ze.addRule(dt.begin,{rule:dt,type:"begin"})),We.terminatorEnd&&ze.addRule(We.terminatorEnd,{type:"end"}),We.illegal&&ze.addRule(We.illegal,{type:"illegal"}),ze}function vn(We,ze){const dt=We;if(We.isCompiled)return dt;[Se,lt,Fn,Ae].forEach(en=>en(We,ze)),ne.compilerExtensions.forEach(en=>en(We,ze)),We.__beforeBegin=null,[le,Ge,xt].forEach(en=>en(We,ze)),We.isCompiled=!0;let _n=null;return typeof We.keywords=="object"&&We.keywords.$pattern&&(We.keywords=Object.assign({},We.keywords),_n=We.keywords.$pattern,delete We.keywords.$pattern),_n=_n||/\w+/,We.keywords&&(We.keywords=je(We.keywords,ne.case_insensitive)),dt.keywordPatternRe=we(_n,!0),ze&&(We.begin||(We.begin=/\B|\b/),dt.beginRe=we(dt.begin),!We.end&&!We.endsWithParent&&(We.end=/\B|\b/),We.end&&(dt.endRe=we(dt.end)),dt.terminatorEnd=p(dt.end)||"",We.endsWithParent&&ze.terminatorEnd&&(dt.terminatorEnd+=(We.end?"|":"")+ze.terminatorEnd)),We.illegal&&(dt.illegalRe=we(We.illegal)),We.contains||(We.contains=[]),We.contains=[].concat(...We.contains.map(function(en){return Jt(en==="self"?We:en)})),We.contains.forEach(function(en){vn(en,dt)}),We.starts&&vn(We.starts,ze),dt.matcher=gn(dt),dt}if(ne.compilerExtensions||(ne.compilerExtensions=[]),ne.contains&&ne.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return ne.classNameAliases=r(ne.classNameAliases||{}),vn(ne)}function Lt(ne){return ne?ne.endsWithParent||Lt(ne.starts):!1}function Jt(ne){return ne.variants&&!ne.cachedVariants&&(ne.cachedVariants=ne.variants.map(function(we){return r(ne,{variants:null},we)})),ne.cachedVariants?ne.cachedVariants:Lt(ne)?r(ne,{starts:ne.starts?r(ne.starts):null}):Object.isFrozen(ne)?r(ne):ne}var si="11.10.0";class Nr extends Error{constructor(we,Ke){super(we),this.name="HTMLInjectionError",this.html=Ke}}const $t=n,Fr=r,Vn=Symbol("nomatch"),xr=7,ya=function(ne){const we=Object.create(null),Ke=Object.create(null),ct=[];let gn=!0;const vn="Could not find the language '{}', did you forget to load/include a language module?",We={disableAutodetect:!0,name:"Plain text",contains:[]};let ze={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:f};function dt(Ye){return ze.noHighlightRe.test(Ye)}function _n(Ye){let _t=Ye.className+" ";_t+=Ye.parentNode?Ye.parentNode.className:"";const Gt=ze.languageDetectRe.exec(_t);if(Gt){const dn=ia(Gt[1]);return dn||(Re(vn.replace("{}",Gt[1])),Re("Falling back to no-highlight mode for this block.",Ye)),dn?Gt[1]:"no-highlight"}return _t.split(/\s+/).find(dn=>dt(dn)||ia(dn))}function en(Ye,_t,Gt){let dn="",nr="";typeof _t=="object"?(dn=Ye,Gt=_t.ignoreIllegals,nr=_t.language):(et("10.7.0","highlight(lang, code, ...args) has been deprecated."),et("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),nr=Ye,dn=_t),Gt===void 0&&(Gt=!0);const oi={code:dn,language:nr};Ar("before:highlight",oi);const an=oi.result?oi.result:Ta(oi.language,oi.code,Gt);return an.code=oi.code,Ar("after:highlight",an),an}function Ta(Ye,_t,Gt,dn){const nr=Object.create(null);function oi(Qe,it){return Qe.keywords[it]}function an(){if(!At.keywords){rr.addText(Sn);return}let Qe=0;At.keywordPatternRe.lastIndex=0;let it=At.keywordPatternRe.exec(Sn),Bt="";for(;it;){Bt+=Sn.substring(Qe,it.index);const Qt=Yr.case_insensitive?it[0].toLowerCase():it[0],ir=oi(At,Qt);if(ir){const[Hr,la]=ir;if(rr.addText(Bt),Bt="",nr[Qt]=(nr[Qt]||0)+1,nr[Qt]<=xr&&(sa+=la),Hr.startsWith("_"))Bt+=it[0];else{const Ps=Yr.classNameAliases[Hr]||Hr;zr(it[0],Ps)}}else Bt+=it[0];Qe=At.keywordPatternRe.lastIndex,it=At.keywordPatternRe.exec(Sn)}Bt+=Sn.substring(Qe),rr.addText(Bt)}function vo(){if(Sn==="")return;let Qe=null;if(typeof At.subLanguage=="string"){if(!we[At.subLanguage]){rr.addText(Sn);return}Qe=Ta(At.subLanguage,Sn,!0,ic[At.subLanguage]),ic[At.subLanguage]=Qe._top}else Qe=ll(Sn,At.subLanguage.length?At.subLanguage:null);At.relevance>0&&(sa+=Qe.relevance),rr.__addSublanguage(Qe._emitter,Qe.language)}function li(){At.subLanguage!=null?vo():an(),Sn=""}function zr(Qe,it){Qe!==""&&(rr.startScope(it),rr.addText(Qe),rr.endScope())}function tc(Qe,it){let Bt=1;const Qt=it.length-1;for(;Bt<=Qt;){if(!Qe._emit[Bt]){Bt++;continue}const ir=Yr.classNameAliases[Qe[Bt]]||Qe[Bt],Hr=it[Bt];ir?zr(Hr,ir):(Sn=Hr,an(),Sn=""),Bt++}}function fl(Qe,it){return Qe.scope&&typeof Qe.scope=="string"&&rr.openNode(Yr.classNameAliases[Qe.scope]||Qe.scope),Qe.beginScope&&(Qe.beginScope._wrap?(zr(Sn,Yr.classNameAliases[Qe.beginScope._wrap]||Qe.beginScope._wrap),Sn=""):Qe.beginScope._multi&&(tc(Qe.beginScope,it),Sn="")),At=Object.create(Qe,{parent:{value:At}}),At}function wd(Qe,it,Bt){let Qt=x(Qe.endRe,Bt);if(Qt){if(Qe["on:end"]){const ir=new e(Qe);Qe["on:end"](it,ir),ir.isMatchIgnored&&(Qt=!1)}if(Qt){for(;Qe.endsParent&&Qe.parent;)Qe=Qe.parent;return Qe}}if(Qe.endsWithParent)return wd(Qe.parent,it,Bt)}function Gi(Qe){return At.matcher.regexIndex===0?(Sn+=Qe[0],1):(oa=!0,0)}function nc(Qe){const it=Qe[0],Bt=Qe.rule,Qt=new e(Bt),ir=[Bt.__beforeBegin,Bt["on:begin"]];for(const Hr of ir)if(Hr&&(Hr(Qe,Qt),Qt.isMatchIgnored))return Gi(it);return Bt.skip?Sn+=it:(Bt.excludeBegin&&(Sn+=it),li(),!Bt.returnBegin&&!Bt.excludeBegin&&(Sn=it)),fl(Bt,Qe),Bt.returnBegin?0:it.length}function au(Qe){const it=Qe[0],Bt=_t.substring(Qe.index),Qt=wd(At,Qe,Bt);if(!Qt)return Vn;const ir=At;At.endScope&&At.endScope._wrap?(li(),zr(it,At.endScope._wrap)):At.endScope&&At.endScope._multi?(li(),tc(At.endScope,Qe)):ir.skip?Sn+=it:(ir.returnEnd||ir.excludeEnd||(Sn+=it),li(),ir.excludeEnd&&(Sn=it));do At.scope&&rr.closeNode(),!At.skip&&!At.subLanguage&&(sa+=At.relevance),At=At.parent;while(At!==Qt.parent);return Qt.starts&&fl(Qt.starts,Qe),ir.returnEnd?0:it.length}function su(){const Qe=[];for(let it=At;it!==Yr;it=it.parent)it.scope&&Qe.unshift(it.scope);Qe.forEach(it=>rr.openNode(it))}let aa={};function So(Qe,it){const Bt=it&&it[0];if(Sn+=Qe,Bt==null)return li(),0;if(aa.type==="begin"&&it.type==="end"&&aa.index===it.index&&Bt===""){if(Sn+=_t.slice(it.index,it.index+1),!gn){const Qt=new Error(`0 width match regex (${Ye})`);throw Qt.languageName=Ye,Qt.badRule=aa.rule,Qt}return 1}if(aa=it,it.type==="begin")return nc(it);if(it.type==="illegal"&&!Gt){const Qt=new Error('Illegal lexeme "'+Bt+'" for mode "'+(At.scope||"<unnamed>")+'"');throw Qt.mode=At,Qt}else if(it.type==="end"){const Qt=au(it);if(Qt!==Vn)return Qt}if(it.type==="illegal"&&Bt==="")return 1;if(os>1e5&&os>it.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Sn+=Bt,Bt.length}const Yr=ia(Ye);if(!Yr)throw xe(vn.replace("{}",Ye)),new Error('Unknown language: "'+Ye+'"');const xa=Hn(Yr);let rc="",At=dn||xa;const ic={},rr=new ze.__emitter(ze);su();let Sn="",sa=0,ci=0,os=0,oa=!1;try{if(Yr.__emitTokens)Yr.__emitTokens(_t,rr);else{for(At.matcher.considerAll();;){os++,oa?oa=!1:At.matcher.considerAll(),At.matcher.lastIndex=ci;const Qe=At.matcher.exec(_t);if(!Qe)break;const it=_t.substring(ci,Qe.index),Bt=So(it,Qe);ci=Qe.index+Bt}So(_t.substring(ci))}return rr.finalize(),rc=rr.toHTML(),{language:Ye,value:rc,relevance:sa,illegal:!1,_emitter:rr,_top:At}}catch(Qe){if(Qe.message&&Qe.message.includes("Illegal"))return{language:Ye,value:$t(_t),illegal:!0,relevance:0,_illegalBy:{message:Qe.message,index:ci,context:_t.slice(ci-100,ci+100),mode:Qe.mode,resultSoFar:rc},_emitter:rr};if(gn)return{language:Ye,value:$t(_t),illegal:!1,relevance:0,errorRaised:Qe,_emitter:rr,_top:At};throw Qe}}function ss(Ye){const _t={value:$t(Ye),illegal:!1,relevance:0,_top:We,_emitter:new ze.__emitter(ze)};return _t._emitter.addText(Ye),_t}function ll(Ye,_t){_t=_t||ze.languages||Object.keys(we);const Gt=ss(Ye),dn=_t.filter(ia).filter(Ls).map(li=>Ta(li,Ye,!1));dn.unshift(Gt);const nr=dn.sort((li,zr)=>{if(li.relevance!==zr.relevance)return zr.relevance-li.relevance;if(li.language&&zr.language){if(ia(li.language).supersetOf===zr.language)return 1;if(ia(zr.language).supersetOf===li.language)return-1}return 0}),[oi,an]=nr,vo=oi;return vo.secondBest=an,vo}function go(Ye,_t,Gt){const dn=_t&&Ke[_t]||Gt;Ye.classList.add("hljs"),Ye.classList.add(`language-${dn}`)}function cl(Ye){let _t=null;const Gt=_n(Ye);if(dt(Gt))return;if(Ar("before:highlightElement",{el:Ye,language:Gt}),Ye.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Ye);return}if(Ye.children.length>0&&(ze.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Ye)),ze.throwUnescapedHTML))throw new Nr("One of your code blocks includes unescaped HTML.",Ye.innerHTML);_t=Ye;const dn=_t.textContent,nr=Gt?en(dn,{language:Gt,ignoreIllegals:!0}):ll(dn);Ye.innerHTML=nr.value,Ye.dataset.highlighted="yes",go(Ye,Gt,nr.language),Ye.result={language:nr.language,re:nr.relevance,relevance:nr.relevance},nr.secondBest&&(Ye.secondBest={language:nr.secondBest.language,relevance:nr.secondBest.relevance}),Ar("after:highlightElement",{el:Ye,result:nr,text:dn})}function _o(Ye){ze=Fr(ze,Ye)}const ji=()=>{Wn(),et("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function ul(){Wn(),et("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let ra=!1;function Wn(){if(document.readyState==="loading"){ra=!0;return}document.querySelectorAll(ze.cssSelector).forEach(cl)}function qa(){ra&&Wn()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",qa,!1);function Cr(Ye,_t){let Gt=null;try{Gt=_t(ne)}catch(dn){if(xe("Language definition for '{}' could not be registered.".replace("{}",Ye)),gn)xe(dn);else throw dn;Gt=We}Gt.name||(Gt.name=Ye),we[Ye]=Gt,Gt.rawDefinition=_t.bind(null,ne),Gt.aliases&&Ti(Gt.aliases,{languageName:Ye})}function In(Ye){delete we[Ye];for(const _t of Object.keys(Ke))Ke[_t]===Ye&&delete Ke[_t]}function Un(){return Object.keys(we)}function ia(Ye){return Ye=(Ye||"").toLowerCase(),we[Ye]||we[Ke[Ye]]}function Ti(Ye,{languageName:_t}){typeof Ye=="string"&&(Ye=[Ye]),Ye.forEach(Gt=>{Ke[Gt.toLowerCase()]=_t})}function Ls(Ye){const _t=ia(Ye);return _t&&!_t.disableAutodetect}function Ad(Ye){Ye["before:highlightBlock"]&&!Ye["before:highlightElement"]&&(Ye["before:highlightElement"]=_t=>{Ye["before:highlightBlock"](Object.assign({block:_t.el},_t))}),Ye["after:highlightBlock"]&&!Ye["after:highlightElement"]&&(Ye["after:highlightElement"]=_t=>{Ye["after:highlightBlock"](Object.assign({block:_t.el},_t))})}function bo(Ye){Ad(Ye),ct.push(Ye)}function ks(Ye){const _t=ct.indexOf(Ye);_t!==-1&&ct.splice(_t,1)}function Ar(Ye,_t){const Gt=Ye;ct.forEach(function(dn){dn[Gt]&&dn[Gt](_t)})}function dl(Ye){return et("10.7.0","highlightBlock will be removed entirely in v12.0"),et("10.7.0","Please use highlightElement now."),cl(Ye)}Object.assign(ne,{highlight:en,highlightAuto:ll,highlightAll:Wn,highlightElement:cl,highlightBlock:dl,configure:_o,initHighlighting:ji,initHighlightingOnLoad:ul,registerLanguage:Cr,unregisterLanguage:In,listLanguages:Un,getLanguage:ia,registerAliases:Ti,autoDetection:Ls,inherit:Fr,addPlugin:bo,removePlugin:ks}),ne.debugMode=function(){gn=!1},ne.safeMode=function(){gn=!0},ne.versionString=si,ne.regex={concat:S,lookahead:m,either:E,optional:b,anyNumberOfTimes:g};for(const Ye in Oe)typeof Oe[Ye]=="object"&&t(Oe[Ye]);return Object.assign(ne,Oe),ne},Ga=ya({});return Ga.newInstance=()=>ya({}),UR=Ga,Ga.HighlightJS=Ga,Ga.default=Ga,UR}var jR,GG;function SNe(){if(GG)return jR;GG=1;function t(e){const n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",a="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",c="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",g="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",G="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",X="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",ue="null истина ложь неопределено",fe=e.inherit(e.NUMBER_MODE),be={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},ye={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},Ne={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},ke=e.inherit(e.C_LINE_COMMENT_MODE),Oe={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:n,keyword:a+c},contains:[ke]},oe={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},Se={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:n,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:n,keyword:"знач",literal:ue},contains:[fe,be,ye]},ke]},e.inherit(e.TITLE_MODE,{begin:n})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:n,keyword:a,built_in:g,class:G,type:X,literal:ue},contains:[Oe,Se,ke,oe,fe,be,ye,Ne]}}return jR=t,jR}var GR,qG;function ENe(){if(qG)return GR;qG=1;function t(e){const n=e.regex,r=/^[a-zA-Z][a-zA-Z0-9-]*/,i=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],a=e.COMMENT(/;/,/$/),s={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},o={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},c={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},d={scope:"symbol",match:/%[si](?=".*")/},f={scope:"attribute",match:n.concat(r,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:i,contains:[{scope:"operator",match:/=\/?/},f,a,s,o,c,d,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return GR=t,GR}var qR,$G;function yNe(){if($G)return qR;$G=1;function t(e){const n=e.regex,r=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:n.concat(/"/,n.either(...r)),end:/"/,keywords:r,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return qR=t,qR}var $R,zG;function TNe(){if(zG)return $R;zG=1;function t(e){const n=e.regex,r=/[a-zA-Z_$][a-zA-Z0-9_$]*/,i=n.concat(r,n.concat("(\\.",r,")*")),a=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,s={className:"rest_arg",begin:/[.]{3}/,end:r,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]},{begin:n.concat(/:\s*/,a)}]},e.METHOD_GUARD],illegal:/#/}}return $R=t,$R}var zR,YG;function xNe(){if(YG)return zR;YG=1;function t(e){const n="\\d(_|\\d)*",r="[eE][-+]?"+n,i=n+"(\\."+n+")?("+r+")?",a="\\w+",o="\\b("+(n+"#"+a+"(\\."+a+")?#("+r+")?")+"|"+i+")",c="[A-Za-z](_?[A-Za-z0-9.])*",d=`[]\\{\\}%#'"`,f=e.COMMENT("--","$"),p={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:d,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:c,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[f,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:o,relevance:0},{className:"symbol",begin:"'"+c},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:d},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[f,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:d},p,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:d}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:d},p]}}return zR=t,zR}var YR,HG;function CNe(){if(HG)return YR;HG=1;function t(e){const n={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},r={className:"symbol",begin:"[a-zA-Z0-9_]+@"},i={className:"keyword",begin:"<",end:">",contains:[n,r]};return n.contains=[i],r.contains=[i],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},n,r,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return YR=t,YR}var HR,VG;function ONe(){if(VG)return HR;VG=1;function t(e){const n={className:"number",begin:/[$%]\d+/},r={className:"number",begin:/\b\d+/},i={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},a={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[i,a,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",n]},i,r,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return HR=t,HR}var VR,WG;function RNe(){if(WG)return VR;WG=1;function t(e){const n=e.regex,r=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),i={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,r]},a=e.COMMENT(/--/,/$/),s=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",a]}),o=[a,s,e.HASH_COMMENT_MODE],c=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],d=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[r,e.C_NUMBER_MODE,{className:"built_in",begin:n.concat(/\b/,n.either(...d),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:n.concat(/\b/,n.either(...c),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,i]},...o],illegal:/\/\/|->|=>|\[\[/}}return VR=t,VR}var WR,QG;function NNe(){if(QG)return WR;QG=1;function t(e){const n=e.regex,r="[A-Za-z_][0-9A-Za-z_]*",i={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},a=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","value","view"],s={className:"symbol",begin:"\\$"+n.either(...a)},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},d={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]};c.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,o,e.REGEXP_MODE];const f=c.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:i,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:r+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:r,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+r+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:f}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:r}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:f}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return WR=t,WR}var QR,KG;function ANe(){if(KG)return QR;KG=1;function t(n){const r=n.regex,i=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",c="(?!struct)("+a+"|"+r.optional(s)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},i,n.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:r.optional(s)+n.IDENT_RE,relevance:0},S=r.optional(s)+n.IDENT_RE+"\\s*\\(",y=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],E=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],T=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],x=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],N={type:E,keyword:y,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:T},w={className:"function.dispatch",relevance:0,keywords:{_hint:x},begin:r.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,n.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},D=[w,g,d,i,n.C_BLOCK_COMMENT_MODE,m,p],L={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:N,contains:D.concat([{begin:/\(/,end:/\)/,keywords:N,contains:D.concat(["self"]),relevance:0}]),relevance:0},U={className:"function",begin:"("+c+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:N,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:N,relevance:0},{begin:S,returnBegin:!0,contains:[b],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:[i,n.C_BLOCK_COMMENT_MODE,p,m,d,{begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:["self",i,n.C_BLOCK_COMMENT_MODE,p,m,d]}]},d,i,n.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:N,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(L,U,w,D,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:N,contains:["self",d]},{begin:n.IDENT_RE+"::",keywords:N},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(n){const r={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},i=t(n),a=i.keywords;return a.type=[...a.type,...r.type],a.literal=[...a.literal,...r.literal],a.built_in=[...a.built_in,...r.built_in],a._hints=r._hints,i.name="Arduino",i.aliases=["ino"],i.supersetOf="cpp",i}return QR=e,QR}var KR,XG;function wNe(){if(XG)return KR;XG=1;function t(e){const n={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},n,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return KR=t,KR}var XR,ZG;function INe(){if(ZG)return XR;ZG=1;function t(e){const n=e.regex,r=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(s,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{className:"string"}),d=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),f={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[a]},{begin:/'/,end:/'/,contains:[a]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,d,c,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,o,d,c]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[d]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(/</,n.lookahead(n.concat(r,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:f}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return XR=t,XR}var ZR,JG;function DNe(){if(JG)return ZR;JG=1;function t(e){const n=e.regex,r={begin:"^'{3,}[ \\t]*$",relevance:10},i=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],a=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:n.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],s=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:n.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],o={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},c={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ 	].+?([ 	]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},c,o,...i,...a,...s,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},r,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return ZR=t,ZR}var JR,e8;function MNe(){if(e8)return JR;e8=1;function t(e){const n=e.regex,r=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],i=["get","set","args","call"];return{name:"AspectJ",keywords:r,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:r.concat(i),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:r,illegal:/["\[\]]/,contains:[{begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:r.concat(i),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:r,excludeEnd:!0,contains:[{begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return JR=t,JR}var e1,t8;function LNe(){if(t8)return e1;t8=1;function t(e){const n={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[n,e.inherit(e.QUOTE_STRING_MODE,{contains:[n]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return e1=t,e1}var t1,n8;function kNe(){if(n8)return t1;n8=1;function t(e){const n="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",r=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],i="True False And Null Not Or Default",a="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",s={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},o={begin:"\\$[A-z0-9_]+"},c={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},d={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},f={className:"meta",begin:"#",end:"$",keywords:{keyword:r},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[c,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},c,s]},p={className:"symbol",begin:"@[A-z0-9_]+"},m={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[o,c,d]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:n,built_in:a,literal:i},contains:[s,o,c,d,f,p,m]}}return t1=t,t1}var n1,r8;function PNe(){if(r8)return n1;r8=1;function t(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"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 eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return n1=t,n1}var r1,i8;function BNe(){if(i8)return r1;i8=1;function t(e){const n={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},r="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:r},contains:[n,i,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return r1=t,r1}var i1,a8;function FNe(){if(a8)return i1;a8=1;function t(e){const n=e.UNDERSCORE_IDENT_RE,s={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},o={variants:[{match:[/(class|interface)\s+/,n,/\s+(extends|implements)\s+/,n]},{match:[/class\s+/,n]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s};return{name:"X++",aliases:["x++"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},o]}}return i1=t,i1}var a1,s8;function UNe(){if(s8)return a1;s8=1;function t(e){const n=e.regex,r={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,a]};a.contains.push(c);const d={match:/\\"/},f={className:"string",begin:/'/,end:/'/},p={match:/\\'/},m={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},g=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],b=e.SHEBANG({binary:`(${g.join("|")})`,relevance:10}),S={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},y=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],E=["true","false"],T={match:/(\/[a-z._-]+)+/},x=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],O=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],C=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],N=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:y,literal:E,built_in:[...x,...O,"set","shopt",...C,...N]},contains:[b,e.SHEBANG(),S,m,s,o,T,c,d,f,p,r]}}return a1=t,a1}var s1,o8;function jNe(){if(o8)return s1;o8=1;function t(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return s1=t,s1}var o1,l8;function GNe(){if(l8)return o1;l8=1;function t(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return o1=t,o1}var l1,c8;function qNe(){if(c8)return l1;c8=1;function t(e){const n={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[n]},n]}}return l1=t,l1}var c1,u8;function $Ne(){if(u8)return c1;u8=1;function t(e){const n=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="("+i+"|"+n.optional(a)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},m={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(a)+e.IDENT_RE,relevance:0},b=n.optional(a)+e.IDENT_RE+"\\s*\\(",E={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},T=[m,c,r,e.C_BLOCK_COMMENT_MODE,p,f],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:T.concat([{begin:/\(/,end:/\)/,keywords:E,contains:T.concat(["self"]),relevance:0}]),relevance:0},O={begin:"("+o+"[\\*&\\s]+)+"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:E,relevance:0},{begin:b,returnBegin:!0,contains:[e.inherit(g,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,f,p,c,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,f,p,c]}]},c,r,e.C_BLOCK_COMMENT_MODE,m]};return{name:"C",aliases:["h"],keywords:E,disableAutodetect:!0,illegal:"</",contains:[].concat(x,O,T,[m,{begin:e.IDENT_RE+"::",keywords:E},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:m,strings:f,keywords:E}}}return c1=t,c1}var u1,d8;function zNe(){if(d8)return u1;d8=1;function t(e){const n=e.regex,r=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],i="false true",a=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"string",begin:/(#\d+)+/},c={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},d={className:"string",begin:'"',end:'"'},f={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[s,o,e.NUMBER_MODE]},...a]},p=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],m={match:[/OBJECT/,/\s+/,n.either(...p),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:r,literal:i},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},s,o,c,d,e.NUMBER_MODE,m,f]}}return u1=t,u1}var d1,f8;function YNe(){if(f8)return d1;f8=1;function t(e){const n=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],r=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],i=["true","false"],a={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:n,type:r,literal:i},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},a]}}return d1=t,d1}var f1,h8;function HNe(){if(h8)return f1;h8=1;function t(e){const n=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],r=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],i=["doc","by","license","see","throws","tagged"],a={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:n,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[a]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return a.contains=s,{name:"Ceylon",keywords:{keyword:n.concat(r),meta:i},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(s)}}return f1=t,f1}var h1,p8;function VNe(){if(p8)return h1;p8=1;function t(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return h1=t,h1}var p1,m8;function WNe(){if(m8)return p1;m8=1;function t(e){const n="a-zA-Z_\\-!.?+*=<>&'",r="[#]?["+n+"]["+n+"0-9/;:$#]*",i="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",a={$pattern:r,built_in:i+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},s={begin:r,relevance:0},o={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},c={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},d={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},f=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),p={scope:"punctuation",match:/,/,relevance:0},m=e.COMMENT(";","$",{relevance:0}),g={className:"literal",begin:/\b(true|false|nil)\b/},b={begin:"\\[|(#::?"+r+")?\\{",end:"[\\]\\}]",relevance:0},S={className:"symbol",begin:"[:]{1,2}"+r},y={begin:"\\(",end:"\\)"},E={endsWithParent:!0,relevance:0},T={keywords:a,className:"name",begin:r,relevance:0,starts:E},x=[p,y,c,d,f,m,S,b,o,g,s],O={beginKeywords:i,keywords:{$pattern:r,keyword:i},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:r,relevance:0,excludeEnd:!0,endsParent:!0}].concat(x)};return y.contains=[O,T,E],E.contains=x,b.contains=x,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[p,y,c,d,f,m,S,b,o,g]}}return p1=t,p1}var m1,g8;function QNe(){if(g8)return m1;g8=1;function t(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return m1=t,m1}var g1,_8;function KNe(){if(_8)return g1;_8=1;function t(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while 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 build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group 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 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 build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return g1=t,g1}var _1,b8;function XNe(){if(b8)return _1;b8=1;const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],e=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=[].concat(i,n,r);function s(o){const c=["npm","print"],d=["yes","no","on","off"],f=["then","unless","until","loop","by","when","and","or","is","isnt","not"],p=["var","const","let","function","static"],m=C=>N=>!C.includes(N),g={keyword:t.concat(f).filter(m(p)),literal:e.concat(d),built_in:a.concat(c)},b="[A-Za-z$_][0-9A-Za-z$_]*",S={className:"subst",begin:/#\{/,end:/\}/,keywords:g},y=[o.BINARY_NUMBER_MODE,o.inherit(o.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,S]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,S]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[S,o.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+b},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];S.contains=y;const E=o.inherit(o.TITLE_MODE,{begin:b}),T="(\\(.*\\)\\s*)?\\B[-=]>",x={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:g,contains:["self"].concat(y)}]},O={variants:[{match:[/class\s+/,b,/\s+extends\s+/,b]},{match:[/class\s+/,b]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:g};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:g,illegal:/\/\*/,contains:[...y,o.COMMENT("###","###"),o.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+b+"\\s*=\\s*"+T,end:"[-=]>",returnBegin:!0,contains:[E,x]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:T,end:"[-=]>",returnBegin:!0,contains:[x]}]},O,{begin:b+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return _1=s,_1}var b1,v8;function ZNe(){if(v8)return b1;v8=1;function t(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return b1=t,b1}var v1,S8;function JNe(){if(S8)return v1;S8=1;function t(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}return v1=t,v1}var S1,E8;function eAe(){if(E8)return S1;E8=1;function t(e){const n=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="(?!struct)("+i+"|"+n.optional(a)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},m={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(a)+e.IDENT_RE,relevance:0},b=n.optional(a)+e.IDENT_RE+"\\s*\\(",S=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],y=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],E=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],T=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:y,keyword:S,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:E},N={className:"function.dispatch",relevance:0,keywords:{_hint:T},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},w=[N,m,c,r,e.C_BLOCK_COMMENT_MODE,p,f],D={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:w.concat([{begin:/\(/,end:/\)/,keywords:C,contains:w.concat(["self"]),relevance:0}]),relevance:0},L={className:"function",begin:"("+o+"[\\*&\\s]+)+"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:C,relevance:0},{begin:b,returnBegin:!0,contains:[g],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[f,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,f,p,c,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,f,p,c]}]},c,r,e.C_BLOCK_COMMENT_MODE,m]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(D,L,N,w,[m,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:C,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return S1=t,S1}var E1,y8;function tAe(){if(y8)return E1;y8=1;function t(e){const n="primitive rsc_template",r="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:n,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+r.split(" ").join("|")+")\\s+",keywords:r,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}return E1=t,E1}var y1,T8;function nAe(){if(T8)return y1;T8=1;function t(e){const n="(_?[ui](8|16|32|64|128))?",r="(_?f(32|64))?",i="[a-zA-Z_]\\w*[!?=]?",a="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",s="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",o={$pattern:i,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},d={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},f={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function p(T,x){const O=[{begin:T,end:x}];return O[0].contains=O,O}const m={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:p("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:p("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:p(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:p("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},g={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:p("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:p("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:p(/\{/,/\}/)},{begin:"%q<",end:">",contains:p("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},b={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},S={className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:"%r\\(",end:"\\)",contains:p("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:p("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:p(/\{/,/\}/)},{begin:"%r<",end:">",contains:p("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},y={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},E=[f,m,g,S,b,y,d,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[m,{begin:a}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+n},{begin:"\\b0o([0-7_]+)"+n},{begin:"\\b0x([A-Fa-f0-9_]+)"+n},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+r+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+n}],relevance:0}];return c.contains=E,f.contains=E.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:E}}return y1=t,y1}var T1,x8;function rAe(){if(x8)return T1;x8=1;function t(e){const n=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],a=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:a.concat(s),built_in:n,literal:i},c=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),d={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},f={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},p={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},m=e.inherit(p,{illegal:/\n/}),g={className:"subst",begin:/\{/,end:/\}/,keywords:o},b=e.inherit(g,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,b]},y={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]},E=e.inherit(y,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},b]});g.contains=[y,S,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_BLOCK_COMMENT_MODE],b.contains=[E,S,m,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const T={variants:[f,y,S,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},x={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},O=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},T,d,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,x,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,x,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+O+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,x],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[T,d,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},C]}}return T1=t,T1}var x1,C8;function iAe(){if(C8)return x1;C8=1;function t(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return x1=t,x1}var C1,O8;function aAe(){if(O8)return C1;O8=1;const t=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...e,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const f=d.regex,p=t(d),m={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},g="and or not only",b=/@-?\w[\w]*(-\w+)*/,S="[a-zA-Z-][a-zA-Z0-9_-]*",y=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[p.BLOCK_COMMENT,m,p.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+S,relevance:0},p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+a.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[p.BLOCK_COMMENT,p.HEXCOLOR,p.IMPORTANT,p.CSS_NUMBER_MODE,...y,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...y,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},p.FUNCTION_DISPATCH]},{begin:f.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:b},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:g,attribute:i.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...y,p.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b"}]}}return C1=c,C1}var O1,R8;function sAe(){if(R8)return O1;R8=1;function t(e){const n={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},r="(0|[1-9][\\d_]*)",i="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",a="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+s,c="([eE][+-]?"+i+")",d="("+i+"(\\.\\d*|"+c+")|\\d+\\."+i+"|\\."+r+c+"?)",f="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+i+")",p="("+r+"|"+a+"|"+o+")",m="("+f+"|"+d+")",g=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,b={className:"number",begin:"\\b"+p+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},S={className:"number",begin:"\\b("+m+"([fF]|L|i|[fF]i|Li)?|"+p+"(i|[fF]i|Li))",relevance:0},y={className:"string",begin:"'("+g+"|.)",end:"'",illegal:"."},T={className:"string",begin:'"',contains:[{begin:g,relevance:0}],end:'"[cwd]?'},x={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},O={className:"string",begin:"`",end:"`[cwd]?"},C={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},N={className:"string",begin:'q"\\{',end:'\\}"'},w={className:"meta",begin:"^#!",end:"$",relevance:5},D={className:"meta",begin:"#(line)",end:"$",relevance:5},L={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},U=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,U,C,T,x,O,N,S,b,y,w,D,L]}}return O1=t,O1}var R1,N8;function oAe(){if(N8)return R1;N8=1;function t(e){const n=e.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},a={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ 	]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},c=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,c,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},f={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},p={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},m=e.inherit(f,{contains:[]}),g=e.inherit(p,{contains:[]});f.contains.push(g),p.contains.push(m);let b=[r,d];return[f,p,m,g].forEach(T=>{T.contains=T.contains.concat(b)}),b=b.concat(f,p),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:b},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:b}]}]},r,s,f,p,{className:"quote",begin:"^>\\s+",contains:b,end:"$"},a,i,d,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return R1=t,R1}var N1,A8;function lAe(){if(A8)return N1;A8=1;function t(e){const n={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},r={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},i={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,n,r]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,n,r]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n,r]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n,r]}]};r.contains=[e.C_NUMBER_MODE,i];const a=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],s=a.map(d=>`${d}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:a.concat(s).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return N1=t,N1}var A1,w8;function cAe(){if(w8)return A1;w8=1;function t(e){const n=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],r=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},a={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},c={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},d={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[a,o,i].concat(r)},i].concat(r)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:n,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[a,o,s,c,d,i].concat(r)}}return A1=t,A1}var w1,I8;function uAe(){if(I8)return w1;I8=1;function t(e){const n=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return w1=t,w1}var I1,D8;function dAe(){if(D8)return I1;D8=1;function t(e){const n={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[n],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[n]}]}}return I1=t,I1}var D1,M8;function fAe(){if(M8)return D1;M8=1;function t(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return D1=t,D1}var M1,L8;function hAe(){if(L8)return M1;L8=1;function t(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}return M1=t,M1}var L1,k8;function pAe(){if(k8)return L1;k8=1;function t(e){const n=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"],built_in:["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"]},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"}.begin,end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),n]},{className:"number",begin:"\\b\\d+",relevance:0},n]}}return L1=t,L1}var k1,P8;function mAe(){if(P8)return k1;P8=1;function t(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}return k1=t,k1}var P1,B8;function gAe(){if(B8)return P1;B8=1;function t(e){const n={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},r={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},i={className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[e.inherit(n,{className:"string"}),{className:"string",begin:"<",end:">",illegal:"\\n"}]},n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a={className:"variable",begin:/&[a-z\d_]*\b/},s={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},o={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},c={className:"params",relevance:0,begin:"<",end:">",contains:[r,a]},d={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},f={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},p={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},m={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},g={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[f,a,s,o,d,m,p,c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,n,i,g,{begin:e.IDENT_RE+"::",keywords:""}]}}return P1=t,P1}var B1,F8;function _Ae(){if(F8)return B1;F8=1;function t(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return B1=t,B1}var F1,U8;function bAe(){if(U8)return F1;U8=1;function t(e){const n=e.COMMENT(/\(\*/,/\*\)/),r={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},a={begin:/=/,end:/[.;]/,contains:[n,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[n,r,a]}}return F1=t,F1}var U1,j8;function vAe(){if(j8)return U1;j8=1;function t(e){const n=e.regex,r="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",o={$pattern:r,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},d={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},p={match:/\\[\s\S]/,scope:"char.escape",relevance:0},m=`[/|([{<"']`,g=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],b=N=>({scope:"char.escape",begin:n.concat(/\\/,N),relevance:0}),S={className:"string",begin:"~[a-z](?="+m+")",contains:g.map(N=>e.inherit(N,{contains:[b(N.end),p,c]}))},y={className:"string",begin:"~[A-Z](?="+m+")",contains:g.map(N=>e.inherit(N,{contains:[b(N.end)]}))},E={className:"regex",variants:[{begin:"~r(?="+m+")",contains:g.map(N=>e.inherit(N,{end:n.concat(N.end,/[uismxfU]{0,7}/),contains:[b(N.end),p,c]}))},{begin:"~R(?="+m+")",contains:g.map(N=>e.inherit(N,{end:n.concat(N.end,/[uismxfU]{0,7}/),contains:[b(N.end)]}))}]},T={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},x={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:r,endsParent:!0})]},O=e.inherit(x,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),C=[T,E,y,S,e.HASH_COMMENT_MODE,O,x,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[T,{begin:i}],relevance:0},{className:"symbol",begin:r+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},d,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return c.contains=C,{name:"Elixir",aliases:["ex","exs"],keywords:o,contains:C}}return U1=t,U1}var j1,G8;function SAe(){if(G8)return j1;G8=1;function t(e){const n={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},r={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},n]},a={begin:/\{/,end:/\}/,contains:i.contains},s={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,n],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,n],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[r,i,a,n]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,n]},{begin:"port",end:"$",keywords:"port",contains:[n]},s,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,r,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),n,{begin:"->|<-"}],illegal:/;/}}return j1=t,j1}var G1,q8;function EAe(){if(q8)return G1;q8=1;function t(e){const n=e.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),a=n.concat(i,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},c={className:"doctag",begin:"@[A-Za-z]+"},d={begin:"#<",end:">"},f=[e.COMMENT("#","$",{contains:[c]}),e.COMMENT("^=begin","^=end",{contains:[c],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],p={className:"subst",begin:/#\{/,end:/\}/,keywords:o},m={className:"string",contains:[e.BACKSLASH_ESCAPE,p],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,p]})]}]},g="[1-9](_?[0-9])*|0",b="[0-9](_?[0-9])*",S={className:"number",relevance:0,variants:[{begin:`\\b(${g})(\\.(${b}))?([eE][+-]?(${b})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},y={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},w=[m,{variants:[{match:[/class\s+/,a,/\s+<\s+/,a]},{match:[/\b(class|module)\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,a],scope:{2:"title.class"},keywords:o},{relevance:0,match:[a,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[y]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[m,{begin:r}],relevance:0},S,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,p],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(d,f),relevance:0}].concat(d,f);p.contains=w,y.contains=w;const M=[{begin:/^\s*=>/,starts:{end:"$",contains:w}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:w}}];return f.unshift(d),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(M).concat(f).concat(w)}}return G1=t,G1}var q1,$8;function yAe(){if($8)return q1;$8=1;function t(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return q1=t,q1}var $1,z8;function TAe(){if(z8)return $1;z8=1;function t(e){const n=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:n.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return $1=t,$1}var z1,Y8;function xAe(){if(Y8)return z1;Y8=1;function t(e){const n="[a-z'][a-zA-Z0-9_']*",r="("+n+":"+n+"|"+n+")",i={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},a=e.COMMENT("%","$"),s={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+n+"/\\d+"},c={begin:r+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:r,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},d={begin:/\{/,end:/\}/,relevance:0},f={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},p={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},m={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},g={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},b={beginKeywords:"fun receive if try case",end:"end",keywords:i};b.contains=[a,o,e.inherit(e.APOS_STRING_MODE,{className:""}),b,c,e.QUOTE_STRING_MODE,s,d,f,p,m,g];const S=[a,o,b,c,e.QUOTE_STRING_MODE,s,d,f,p,m,g];c.contains[1].contains=S,d.contains=S,m.contains[1].contains=S;const y=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],E={className:"params",begin:"\\(",end:"\\)",contains:S};return{name:"Erlang",aliases:["erl"],keywords:i,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+n+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[E,e.inherit(e.TITLE_MODE,{begin:n})],starts:{end:";|\\.",keywords:i,contains:S}},a,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:y.map(T=>`${T}|1.5`).join(" ")},contains:[E]},s,e.QUOTE_STRING_MODE,m,f,p,d,g,{begin:/\.$/}]}}return z1=t,z1}var Y1,H8;function CAe(){if(H8)return Y1;H8=1;function t(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return Y1=t,Y1}var H1,V8;function OAe(){if(V8)return H1;V8=1;function t(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return H1=t,H1}var V1,W8;function RAe(){if(W8)return V1;W8=1;function t(e){const n={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},r={className:"string",variants:[{begin:'"',end:'"'}]},a={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r,a,e.C_NUMBER_MODE]}}return V1=t,V1}var W1,Q8;function NAe(){if(Q8)return W1;Q8=1;function t(e){const n=e.regex,r={className:"params",begin:"\\(",end:"\\)"},i={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},a=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:n.concat(/\b\d+/,/\.(\d*)/,s,a)},{begin:n.concat(/\b\d+/,s,a)},{begin:n.concat(/\.\d+/,s,a)}],relevance:0},c={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,r]},d={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[d,c,{begin:/^C\s*=(?!=)/,relevance:0},i,o]}}return W1=t,W1}var Q1,K8;function AAe(){if(K8)return Q1;K8=1;function t(o){return new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(o){return o?typeof o=="string"?o:o.source:null}function n(o){return r("(?=",o,")")}function r(...o){return o.map(d=>e(d)).join("")}function i(o){const c=o[o.length-1];return typeof c=="object"&&c.constructor===Object?(o.splice(o.length-1,1),c):{}}function a(...o){return"("+(i(o).capture?"":"?:")+o.map(f=>e(f)).join("|")+")"}function s(o){const c=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],d={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},f=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],p=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],m=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],g=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],S={keyword:c,literal:p,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":m},E={variants:[o.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),o.C_LINE_COMMENT_MODE]},T=/[a-zA-Z_](\w|')*/,x={scope:"variable",begin:/``/,end:/``/},O=/\B('|\^)/,C={scope:"symbol",variants:[{match:r(O,/``.*?``/)},{match:r(O,o.UNDERSCORE_IDENT_RE)}],relevance:0},N=function({includeEqual:fe}){let be;fe?be="!%&*+-/<=>@^|~?":be="!%&*+-/<>@^|~?";const ye=Array.from(be),Ne=r("[",...ye.map(t),"]"),ke=a(Ne,/\./),Oe=r(ke,n(ke)),oe=a(r(Oe,ke,"*"),r(Ne,"+"));return{scope:"operator",match:a(oe,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},w=N({includeEqual:!0}),D=N({includeEqual:!1}),L=function(fe,be){return{begin:r(fe,n(r(/\s*/,a(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:be,end:n(a(/\n/,/=/)),relevance:0,keywords:o.inherit(S,{type:g}),contains:[E,C,o.inherit(x,{scope:null}),D]}},U=L(/:/,"operator"),M=L(/\bof\b/,"keyword"),B={begin:[/(^|\s+)/,/type/,/\s+/,T],beginScope:{2:"keyword",4:"title.class"},end:n(/\(|=|$/),keywords:S,contains:[E,o.inherit(x,{scope:null}),C,{scope:"operator",match:/<|>/},U]},Y={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},H={begin:[/^\s*/,r(/#/,a(...f)),/\b/],beginScope:{2:"meta"},end:n(/\s|$/)},F={variants:[o.BINARY_NUMBER_MODE,o.C_NUMBER_MODE]},k={scope:"string",begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE]},P={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},o.BACKSLASH_ESCAPE]},z={scope:"string",begin:/"""/,end:/"""/,relevance:2},V={scope:"subst",begin:/\{/,end:/\}/,keywords:S},G={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},o.BACKSLASH_ESCAPE,V]},Q={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},o.BACKSLASH_ESCAPE,V]},Z={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},V],relevance:2},X={scope:"string",match:r(/'/,a(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return V.contains=[Q,G,P,k,X,d,E,x,U,Y,H,F,C,w],{name:"F#",aliases:["fs","f#"],keywords:S,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[d,{variants:[Z,Q,G,z,P,k,X]},E,x,B,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[x,z,P,k,X,F]},M,U,Y,H,F,C,w]}}return Q1=s,Q1}var K1,X8;function wAe(){if(X8)return K1;X8=1;function t(e){const n=e.regex,r={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},i={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},a={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},s={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},o={begin:"/",end:"/",keywords:r,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},c=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,d={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[s,o,{className:"comment",begin:n.concat(c,n.anyNumberOfTimes(n.concat(/[ ]+/,c))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:r,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,d]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[d]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},i,a]},e.C_NUMBER_MODE,a]}}return K1=t,K1}var X1,Z8;function IAe(){if(Z8)return X1;Z8=1;function t(e){const n={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},r=e.COMMENT("@","@"),i={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r]},a={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},s=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,a]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},c=function(g,b,S){const y=e.inherit({className:"function",beginKeywords:g,end:b,excludeEnd:!0,contains:[].concat(s)},{});return y.contains.push(o),y.contains.push(e.C_NUMBER_MODE),y.contains.push(e.C_BLOCK_COMMENT_MODE),y.contains.push(r),y},d={className:"built_in",begin:"\\b("+n.built_in.split(" ").join("|")+")\\b"},f={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},p={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:n,relevance:0,contains:[{beginKeywords:n.keyword},d,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},m={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:n.built_in,literal:n.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,d,p,f,"self"]};return p.contains.push(m),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:n,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,f,i,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},c("proc keyword",";"),c("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,r,m]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},p,a]}}return X1=t,X1}var Z1,J8;function DAe(){if(J8)return Z1;J8=1;function t(e){const n="[A-Z_][A-Z0-9_.]*",r="%",i={$pattern:n,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},a={className:"meta",begin:"([O])([0-9]+)"},s=e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE}),o=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),s,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[s],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:r},a].concat(o)}}return Z1=t,Z1}var J1,eq;function MAe(){if(eq)return J1;eq=1;function t(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}return J1=t,J1}var eN,tq;function LAe(){if(tq)return eN;tq=1;function t(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return eN=t,eN}var tN,nq;function kAe(){if(nq)return tN;nq=1;function t(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return tN=t,tN}var nN,rq;function PAe(){if(rq)return nN;rq=1;function t(e){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,illegal:/["']/}]}]}}return nN=t,nN}var rN,iq;function BAe(){if(iq)return rN;iq=1;function t(e){return{name:"Golo",keywords:{keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}return rN=t,rN}var iN,aq;function FAe(){if(aq)return iN;aq=1;function t(e){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}return iN=t,iN}var aN,sq;function UAe(){if(sq)return aN;sq=1;function t(e){const n=e.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:n.concat(r,n.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return aN=t,aN}var sN,oq;function jAe(){if(oq)return sN;oq=1;function t(n,r={}){return r.variants=n,r}function e(n){const r=n.regex,i="[A-Za-z0-9_$]+",a=t([n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),s={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[n.BACKSLASH_ESCAPE]},o=t([n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE]),c=t([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE],{className:"string"}),d={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,n.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:["byte","short","char","int","long","boolean","float","double","void"],keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"]},contains:[n.SHEBANG({binary:"groovy",relevance:10}),a,c,s,o,d,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:i+"[ 	]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[a,c,s,o,"self"]},{className:"symbol",begin:"^[ 	]*"+r.lookahead(i+":"),excludeBegin:!0,end:i+":",relevance:0}],illegal:/#|<\//}}return sN=e,sN}var oN,lq;function GAe(){if(lq)return oN;lq=1;function t(e){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return oN=t,oN}var lN,cq;function qAe(){if(cq)return lN;cq=1;function t(e){const n=e.regex,r={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},i={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},a=/""|"[^"]+"/,s=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,c=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,d=/(\.|\/)/,f=n.either(a,s,o,c),p=n.concat(n.optional(/\.|\.\/|\//),f,n.anyNumberOfTimes(n.concat(d,f))),m=n.concat("(",o,"|",c,")(?==)"),g={begin:p},b=e.inherit(g,{keywords:i}),S={begin:/\(/,end:/\)/},y={className:"attr",begin:m,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,b,S]}}},E={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},T={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,E,y,b,S],returnEnd:!0},x=e.inherit(g,{className:"name",keywords:r,starts:e.inherit(T,{end:/\)/})});S.contains=[x];const O=e.inherit(g,{keywords:r,className:"name",starts:e.inherit(T,{end:/\}\}/})}),C=e.inherit(g,{keywords:r,className:"name"}),N=e.inherit(g,{className:"name",keywords:r,starts:e.inherit(T,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[O],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[C]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[O]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[C]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[N]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[N]}]}}return lN=t,lN}var cN,uq;function $Ae(){if(uq)return cN;uq=1;function t(e){const n="([0-9]_*)+",r="([0-9a-fA-F]_*)+",i="([01]_*)+",a="([0-7]_*)+",d="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",f={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},p={className:"meta",begin:/\{-#/,end:/#-\}/},m={className:"meta",begin:"^#",end:"$"},g={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},b={begin:"\\(",end:"\\)",illegal:'"',contains:[p,m,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),f]},S={begin:/\{/,end:/\}/,contains:b.contains},y={className:"number",relevance:0,variants:[{match:`\\b(${n})(\\.(${n}))?([eE][+-]?(${n}))?\\b`},{match:`\\b0[xX]_*(${r})(\\.(${r}))?([pP][+-]?(${n}))?\\b`},{match:`\\b0[oO](${a})\\b`},{match:`\\b0[bB](${i})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[b,f],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[b,f],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[g,b,f]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[p,g,b,S,f]},{beginKeywords:"default",end:"$",contains:[g,b,f]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,f]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[g,e.QUOTE_STRING_MODE,f]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},p,m,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,y,g,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${d}--+|--+(?!-)${d}`},f,{begin:"->|<-"}]}}return cN=t,cN}var uN,dq;function zAe(){if(dq)return uN;dq=1;function t(e){const n="[a-zA-Z_$][a-zA-Z0-9_$]*",r=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:r,relevance:0},{className:"variable",begin:"\\$"+n},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}return uN=t,uN}var dN,fq;function YAe(){if(fq)return dN;fq=1;function t(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}return dN=t,dN}var fN,hq;function HAe(){if(hq)return fN;hq=1;function t(e){const n=e.regex,r="HTTP/([32]|1\\.[01])",i=/[A-Za-z][A-Za-z0-9-]*/,a={className:"attribute",begin:n.concat("^",i,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[a,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+r+" \\d{3})",end:/$/,contains:[{className:"meta",begin:r},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+r+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:r},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},e.inherit(a,{relevance:0})]}}return fN=t,fN}var hN,pq;function VAe(){if(pq)return hN;pq=1;function t(e){const n="a-zA-Z_\\-!.?+*=<>&#'",r="["+n+"]["+n+"0-9/;:]*",i={$pattern:r,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},a="[-+]?\\d+(\\.\\d+)?",s={begin:r,relevance:0},o={className:"number",begin:a,relevance:0},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d=e.COMMENT(";","$",{relevance:0}),f={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},p={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},m={className:"comment",begin:"\\^"+r},g=e.COMMENT("\\^\\{","\\}"),b={className:"symbol",begin:"[:]{1,2}"+r},S={begin:"\\(",end:"\\)"},y={endsWithParent:!0,relevance:0},E={className:"name",relevance:0,keywords:i,begin:r,starts:y},T=[S,c,m,g,d,b,p,o,f,s];return S.contains=[e.COMMENT("comment",""),E,y],y.contains=T,p.contains=T,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),S,c,m,g,d,b,p,o,f]}}return hN=t,hN}var pN,mq;function WAe(){if(mq)return pN;mq=1;function t(e){const n="\\[",r="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:n,end:r}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:n,end:r,contains:["self"]}]}}return pN=t,pN}var mN,gq;function QAe(){if(gq)return mN;gq=1;function t(e){const n=e.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const a={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[i,s,a,o,r,"self"],relevance:0},d=/[A-Za-z0-9_-]+/,f=/"(\\"|[^"])*"/,p=/'[^']*'/,m=n.either(d,f,p),g=n.concat(m,"(\\s*\\.\\s*",m,")*",n.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:g,className:"attr",starts:{end:/$/,contains:[i,c,s,a,o,r]}}]}}return mN=t,mN}var gN,_q;function KAe(){if(_q)return gN;_q=1;function t(e){const n=e.regex,r={className:"params",begin:"\\(",end:"\\)"},i=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:n.concat(/\b\d+/,/\.(\d*)/,a,i)},{begin:n.concat(/\b\d+/,a,i)},{begin:n.concat(/\.\d+/,a,i)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated  c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,r]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),s]}}return gN=t,gN}var _N,bq;function XAe(){if(bq)return _N;bq=1;function t(e){const n="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",i="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",fe="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING  SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",aa="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",So="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",Yr="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",xa="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",rc=fe+aa,At=Yr,ic="null true false nil ",rr={className:"number",begin:e.NUMBER_RE,relevance:0},Sn={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},sa={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},ci={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,sa]},os={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,sa]},oa={variants:[ci,os]},Qe={$pattern:n,keyword:i,built_in:rc,class:At,literal:ic},it={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:Qe,relevance:0},Bt={className:"type",begin:":[ \\t]*("+xa.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Qt={className:"variable",keywords:Qe,begin:n,relevance:0,contains:[Bt,it]},ir=r+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:Qe,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:ir,end:"\\)$",returnBegin:!0,keywords:Qe,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:n,built_in:So},begin:ir,end:"\\(",returnBegin:!0,excludeEnd:!0},it,Qt,Sn,rr,oa]},Bt,it,Qt,Sn,rr,oa]}}return _N=t,_N}var bN,vq;function ZAe(){if(vq)return bN;vq=1;var t="[0-9](_*[0-9])*",e=`\\.(${t})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${t})((${e})|\\.)?|(${e}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(s,o,c){return c===-1?"":s.replace(o,d=>i(s,o,c-1))}function a(s){const o=s.regex,c="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",d=c+i("(?:<"+c+"~~~(?:\\s*,\\s*"+c+"~~~)*>)?",/~~~/g,2),b={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},S={className:"meta",begin:"@"+c,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},y={className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[s.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:b,illegal:/<\/|#/,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[s.BACKSLASH_ESCAPE]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,c],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[o.concat(/(?!else)/,c),/\s+/,c,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,c],className:{1:"keyword",3:"title.class"},contains:[y,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+d+"\\s+)",s.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:b,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[S,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,r,s.C_BLOCK_COMMENT_MODE]},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},r,S]}}return bN=a,bN}var vN,Sq;function JAe(){if(Sq)return vN;Sq=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(a,r,i);function c(d){const f=d.regex,p=(ye,{after:Ne})=>{const ke="</"+ye[0].slice(1);return ye.input.indexOf(ke,Ne)!==-1},m=t,g={begin:"<>",end:"</>"},b=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ye,Ne)=>{const ke=ye[0].length+ye.index,Oe=ye.input[ke];if(Oe==="<"||Oe===","){Ne.ignoreMatch();return}Oe===">"&&(p(ye,{after:ke})||Ne.ignoreMatch());let oe;const Se=ye.input.substring(ke);if(oe=Se.match(/^\s*=/)){Ne.ignoreMatch();return}if((oe=Se.match(/^\s+extends\s+/))&&oe.index===0){Ne.ignoreMatch();return}}},y={$pattern:t,keyword:e,literal:n,built_in:o,"variable.language":s},E="[0-9](_?[0-9])*",T=`\\.(${E})`,x="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",O={className:"number",variants:[{begin:`(\\b(${x})((${T})|\\.)?|(${T}))[eE][+-]?(${E})\\b`},{begin:`\\b(${x})\\b((${T})\\b|\\.)?|(${T})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},C={className:"subst",begin:"\\$\\{",end:"\\}",keywords:y,contains:[]},N={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,C],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,C],subLanguage:"css"}},D={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,C],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[d.BACKSLASH_ESCAPE,C]},M={className:"comment",variants:[d.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:m+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),d.C_BLOCK_COMMENT_MODE,d.C_LINE_COMMENT_MODE]},B=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,N,w,D,L,{match:/\$\d+/},O];C.contains=B.concat({begin:/\{/,end:/\}/,keywords:y,contains:["self"].concat(B)});const Y=[].concat(M,C.contains),H=Y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:y,contains:["self"].concat(Y)}]),F={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:H},k={variants:[{match:[/class/,/\s+/,m,/\s+/,/extends/,/\s+/,f.concat(m,"(",f.concat(/\./,m),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,m],scope:{1:"keyword",3:"title.class"}}]},P={relevance:0,match:f.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...i]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},V={variants:[{match:[/function/,/\s+/,m,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[F],illegal:/%/},G={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(ye){return f.concat("(?!",ye.join("|"),")")}const Z={match:f.concat(/\b/,Q([...a,"super","import"].map(ye=>`${ye}\\s*\\(`)),m,f.lookahead(/\s*\(/)),className:"title.function",relevance:0},X={begin:f.concat(/\./,f.lookahead(f.concat(m,/(?![0-9A-Za-z$_(])/))),end:m,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ue={match:[/get|set/,/\s+/,m,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},F]},fe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",be={match:[/const|var|let/,/\s+/,m,/\s*/,/=\s*/,/(async\s*)?/,f.lookahead(fe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[F]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:y,exports:{PARAMS_CONTAINS:H,CLASS_REFERENCE:P},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,N,w,D,L,M,{match:/\$\d+/},O,P,{className:"attr",begin:m+f.lookahead(":"),relevance:0},be,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[M,d.REGEXP_MODE,{className:"function",begin:fe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:d.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:H}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:b},{begin:S.begin,"on:begin":S.isTrulyOpeningTag,end:S.end}],subLanguage:"xml",contains:[{begin:S.begin,end:S.end,skip:!0,contains:["self"]}]}]},V,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+d.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[F,d.inherit(d.TITLE_MODE,{begin:m,className:"title.function"})]},{match:/\.\.\./,relevance:0},X,{match:"\\$"+m,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[F]},Z,G,k,ue,{match:/\$[(.]/}]}}return vN=c,vN}var SN,Eq;function ewe(){if(Eq)return SN;Eq=1;function t(e){const r={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},i={className:"function",begin:/:[\w\-.]+/,relevance:0},a={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},s={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,s,i,a,r]}}return SN=t,SN}var EN,yq;function twe(){if(yq)return EN;yq=1;function t(e){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],a={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[n,r,e.QUOTE_STRING_MODE,a,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return EN=t,EN}var yN,Tq;function nwe(){if(Tq)return yN;Tq=1;function t(e){const n="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",s={$pattern:n,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},o={keywords:s,illegal:/<\//},c={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},d={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},f={className:"subst",begin:/\$\(/,end:/\)/,keywords:s},p={className:"variable",begin:"\\$"+n},m={className:"string",contains:[e.BACKSLASH_ESCAPE,f,p],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},g={className:"string",contains:[e.BACKSLASH_ESCAPE,f,p],begin:"`",end:"`"},b={className:"meta",begin:"@"+n},S={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return o.name="Julia",o.contains=[c,d,m,g,b,S,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],f.contains=o.contains,o}return yN=t,yN}var TN,xq;function rwe(){if(xq)return TN;xq=1;function t(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return TN=t,TN}var xN,Cq;function iwe(){if(Cq)return xN;Cq=1;var t="[0-9](_*[0-9])*",e=`\\.(${t})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${t})((${e})|\\.)?|(${e}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(a){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},o={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},c={className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"@"},d={className:"subst",begin:/\$\{/,end:/\}/,contains:[a.C_NUMBER_MODE]},f={className:"variable",begin:"\\$"+a.UNDERSCORE_IDENT_RE},p={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[f,d]},{begin:"'",end:"'",illegal:/\n/,contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[a.BACKSLASH_ESCAPE,f,d]}]};d.contains.push(p);const m={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+a.UNDERSCORE_IDENT_RE+")?"},g={className:"meta",begin:"@"+a.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[a.inherit(p,{className:"string"}),"self"]}]},b=r,S=a.COMMENT("/\\*","\\*/",{contains:[a.C_BLOCK_COMMENT_MODE]}),y={variants:[{className:"type",begin:a.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},E=y;return E.variants[1].contains=[y],y.variants[1].contains=[E],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[a.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),a.C_LINE_COMMENT_MODE,S,o,c,m,g,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[a.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[y,a.C_LINE_COMMENT_MODE,S],relevance:0},a.C_LINE_COMMENT_MODE,S,m,g,p,a.C_NUMBER_MODE]},S]},{begin:[/class|interface|trait/,/\s+/,a.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},a.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},m,g]},p,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
`},b]}}return xN=i,xN}var CN,Oq;function awe(){if(Oq)return CN;Oq=1;function t(e){const n="[a-zA-Z_][\\w.]*",r="<\\?(lasso(script)?|=)",i="\\]|\\?>",a={$pattern:n+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=e.COMMENT("<!--","-->",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},c={className:"meta",begin:"\\[/noprocess|"+r},d={className:"symbol",begin:"'"+n+"'"},f=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+n},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:n,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+n,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[d]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:n+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:a,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[|"+r,returnEnd:!0,relevance:0,contains:[s]}},o,c,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:a,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[noprocess\\]|"+r,returnEnd:!0,contains:[s]}},o,c].concat(f)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(f)}}return CN=t,CN}var ON,Rq;function swe(){if(Rq)return ON;Rq=1;function t(e){const r=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(M=>M+"(?![a-zA-Z@:_])")),i=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(M=>M+"(?![a-zA-Z:_])").join("|")),a=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],s=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],o={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:r},{endsParent:!0,begin:i},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:a}]},c={className:"params",relevance:0,begin:/#+\d?/},d={variants:s},f={className:"built_in",relevance:0,begin:/[$&^_]/},p={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},m=e.COMMENT("%","$",{relevance:0}),g=[o,c,d,f,p,m],b={begin:/\{/,end:/\}/,relevance:0,contains:["self",...g]},S=e.inherit(b,{relevance:0,endsParent:!0,contains:[b,...g]}),y={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[b,...g]},E={begin:/\s+/,relevance:0},T=[S],x=[y],O=function(M,B){return{contains:[E],starts:{relevance:0,contains:M,starts:B}}},C=function(M,B){return{begin:"\\\\"+M+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+M},relevance:0,contains:[E],starts:B}},N=function(M,B){return e.inherit({begin:"\\\\begin(?=[ 	]*(\\r?\\n[ 	]*)?\\{"+M+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},O(T,B))},w=(M="string")=>e.END_SAME_AS_BEGIN({className:M,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),D=function(M){return{className:"string",end:"(?=\\\\end\\{"+M+"\\})"}},L=(M="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:M,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),U=[...["verb","lstinline"].map(M=>C(M,{contains:[w()]})),C("mint",O(T,{contains:[w()]})),C("mintinline",O(T,{contains:[L(),w()]})),C("url",{contains:[L("link"),L("link")]}),C("hyperref",{contains:[L("link")]}),C("href",O(x,{contains:[L("link")]})),...[].concat(...["","\\*"].map(M=>[N("verbatim"+M,D("verbatim"+M)),N("filecontents"+M,O(T,D("filecontents"+M))),...["","B","L"].map(B=>N(B+"Verbatim"+M,O(x,D(B+"Verbatim"+M))))])),N("minted",O(x,O(T,D("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...U,...g]}}return ON=t,ON}var RN,Nq;function owe(){if(Nq)return RN;Nq=1;function t(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return RN=t,RN}var NN,Aq;function lwe(){if(Aq)return NN;Aq=1;function t(e){const n=/([A-Za-z_][A-Za-z_0-9]*)?/,i={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},a={match:[n,/(?=\()/],scope:{1:"keyword"},contains:[i]};return i.contains.unshift(a),{name:"Leaf",contains:[{match:[/#+/,n,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[i]},{match:[/#+/,n,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return NN=t,NN}var AN,wq;function cwe(){if(wq)return AN;wq=1;const t=f=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:f.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:f.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...e,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse(),c=a.concat(s).sort().reverse();function d(f){const p=t(f),m=c,g="and or not only",b="[\\w-]+",S="("+b+"|@\\{"+b+"\\})",y=[],E=[],T=function(Y){return{className:"string",begin:"~?"+Y+".*?"+Y}},x=function(Y,H,F){return{className:Y,begin:H,relevance:F}},O={$pattern:/[a-z-]+/,keyword:g,attribute:i.join(" ")},C={begin:"\\(",end:"\\)",contains:E,keywords:O,relevance:0};E.push(f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,T("'"),T('"'),p.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},p.HEXCOLOR,C,x("variable","@@?"+b,10),x("variable","@\\{"+b+"\\}"),x("built_in","~?`[^`]*?`"),{className:"attribute",begin:b+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},p.IMPORTANT,{beginKeywords:"and not"},p.FUNCTION_DISPATCH);const N=E.concat({begin:/\{/,end:/\}/,contains:y}),w={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(E)},D={begin:S+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:E}}]},L={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:O,returnEnd:!0,contains:E,relevance:0}},U={className:"variable",variants:[{begin:"@"+b+"\\s*:",relevance:15},{begin:"@"+b}],starts:{end:"[;}]",returnEnd:!0,contains:N}},M={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:S,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,w,x("keyword","all\\b"),x("variable","@\\{"+b+"\\}"),{begin:"\\b("+r.join("|")+")\\b",className:"selector-tag"},p.CSS_NUMBER_MODE,x("selector-tag",S,0),x("selector-id","#"+S),x("selector-class","\\."+S,0),x("selector-tag","&",0),p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+a.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:N},{begin:"!important"},p.FUNCTION_DISPATCH]},B={begin:b+`:(:)?(${m.join("|")})`,returnBegin:!0,contains:[M]};return y.push(f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,L,U,B,D,M,w,p.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:y}}return AN=d,AN}var wN,Iq;function uwe(){if(Iq)return wN;Iq=1;function t(e){const n="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",r="\\|[^]*?\\|",i="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",a={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:i,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+i+" +"+i,end:"\\)"}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),c=e.COMMENT(";","$",{relevance:0}),d={begin:"\\*",end:"\\*"},f={className:"symbol",begin:"[:&]"+n},p={begin:n,relevance:0},m={begin:r},b={contains:[s,o,d,f,{begin:"\\(",end:"\\)",contains:["self",a,o,s,p]},p],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+r}]},S={variants:[{begin:"'"+n},{begin:"#'"+n+"(::"+n+")*"}]},y={begin:"\\(\\s*",end:"\\)"},E={endsWithParent:!0,relevance:0};return y.contains=[{className:"name",variants:[{begin:n,relevance:0},{begin:r}]},E],E.contains=[b,S,y,a,s,o,c,d,f,m,p],{name:"Lisp",illegal:/\S/,contains:[s,e.SHEBANG(),a,o,c,b,S,y,p]}}return wN=t,wN}var IN,Dq;function dwe(){if(Dq)return IN;Dq=1;function t(e){const n={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},r=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],i=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),a=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[n,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[n,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[a,i],relevance:0},{beginKeywords:"command on",end:"$",contains:[n,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i].concat(r),illegal:";$|^\\[|^=|&|\\{"}}return IN=t,IN}var DN,Mq;function fwe(){if(Mq)return DN;Mq=1;const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],e=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=[].concat(i,n,r);function s(o){const c=["npm","print"],d=["yes","no","on","off","it","that","void"],f=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],p={keyword:t.concat(f),literal:e.concat(d),built_in:a.concat(c)},m="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",g=o.inherit(o.TITLE_MODE,{begin:m}),b={className:"subst",begin:/#\{/,end:/\}/,keywords:p},S={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:p},y=[o.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,b,S]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,b,S]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[b,o.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+m},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];b.contains=y;const E={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:p,contains:["self"].concat(y)}]},T={begin:"(#=>|=>|\\|>>|-?->|!->)"},x={variants:[{match:[/class\s+/,m,/\s+extends\s+/,m]},{match:[/class\s+/,m]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:p};return{name:"LiveScript",aliases:["ls"],keywords:p,illegal:/\/\*/,contains:y.concat([o.COMMENT("\\/\\*","\\*\\/"),o.HASH_COMMENT_MODE,T,{className:"function",contains:[g,E],returnBegin:!0,variants:[{begin:"("+m+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+m+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+m+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},x,{begin:m+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return DN=s,DN}var MN,Lq;function hwe(){if(Lq)return MN;Lq=1;function t(e){const n=e.regex,r=/([-a-zA-Z$._][\w$.-]*)/,i={className:"type",begin:/\bi\d+(?=\s|\b)/},a={className:"operator",relevance:0,begin:/=/},s={className:"punctuation",relevance:0,begin:/,/},o={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},c={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},d={className:"variable",variants:[{begin:n.concat(/%/,r)},{begin:/%\d+/},{begin:/#\d+/}]},f={className:"title",variants:[{begin:n.concat(/@/,r)},{begin:/@\d+/},{begin:n.concat(/!/,r)},{begin:n.concat(/!\d+/,r)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[i,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},f,s,a,d,c,o]}}return MN=t,MN}var LN,kq;function pwe(){if(kq)return LN;kq=1;function t(e){const r={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},i={className:"number",relevance:0,begin:e.C_NUMBER_RE},a={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},s={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[r,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},i,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},s,a,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return LN=t,LN}var kN,Pq;function mwe(){if(Pq)return kN;Pq=1;function t(e){const n="\\[=*\\[",r="\\]=*\\]",i={begin:n,end:r,contains:["self"]},a=[e.COMMENT("--(?!"+n+")","$"),e.COMMENT("--"+n,r,{contains:[i],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:a.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:a}].concat(a)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:n,end:r,contains:[i],relevance:5}])}}return kN=t,kN}var PN,Bq;function gwe(){if(Bq)return PN;Bq=1;function t(e){const n={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[n]},a={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[n]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,n,r,i,a,s,o]}}return PN=t,PN}var BN,Fq;function _we(){if(Fq)return BN;Fq=1;const t=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function e(n){const r=n.regex,i=/([2-9]|[1-2]\d|[3][0-5])\^\^/,a=/(\w*\.\w+|\w+\.\w*|\w+)/,s=/(\d*\.\d+|\d+\.\d*|\d+)/,o=r.either(r.concat(i,a),s),c=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,d=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,f=r.either(c,d),p=/\*\^[+-]?\d+/,g={className:"number",relevance:0,begin:r.concat(o,r.optional(f),r.optional(p))},b=/[a-zA-Z$][a-zA-Z0-9$]*/,S=new Set(t),y={variants:[{className:"builtin-symbol",begin:b,"on:begin":(w,D)=>{S.has(w[0])||D.ignoreMatch()}},{className:"symbol",relevance:0,begin:b}]},E={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},T={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},x={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},O={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},C={className:"brace",relevance:0,begin:/[[\](){}]/},N={className:"message-name",relevance:0,begin:r.concat("::",b)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[n.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),x,O,N,y,E,n.QUOTE_STRING_MODE,g,T,C]}}return BN=e,BN}var FN,Uq;function bwe(){if(Uq)return FN;Uq=1;function t(e){const n="('|\\.')+",r={relevance:0,contains:[{begin:n}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:r},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+n,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:r},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:r},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:r},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return FN=t,FN}var UN,jq;function vwe(){if(jq)return UN;jq=1;function t(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return UN=t,UN}var jN,Gq;function Swe(){if(Gq)return jN;Gq=1;function t(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return 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 CBG 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 HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS 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 Mayatomr 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",illegal:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return jN=t,jN}var GN,qq;function Ewe(){if(qq)return GN;qq=1;function t(e){const n={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},r=e.COMMENT("%","$"),i={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},a=e.inherit(e.APOS_STRING_MODE,{relevance:0}),s=e.inherit(e.QUOTE_STRING_MODE,{relevance:0}),o={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return s.contains=s.contains.slice(),s.contains.push(o),{name:"Mercury",aliases:["m","moo"],keywords:n,contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},r,e.C_BLOCK_COMMENT_MODE,i,e.NUMBER_MODE,a,s,{begin:/:-/},{begin:/\.$/}]}}return GN=t,GN}var qN,$q;function ywe(){if($q)return qN;$q=1;function t(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return qN=t,qN}var $N,zq;function Twe(){if(zq)return $N;zq=1;function t(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}return $N=t,$N}var zN,Yq;function xwe(){if(Yq)return zN;Yq=1;function t(e){const n=e.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],i=/[dualxmsipngr]{0,12}/,a={$pattern:/[\w.]+/,keyword:r.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:a},o={begin:/->\{/,end:/\}/},c={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},d={scope:"variable",variants:[{begin:/\$\d/},{begin:n.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[c]},f={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},p=[e.BACKSLASH_ESCAPE,s,d],m=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],g=(y,E,T="\\1")=>{const x=T==="\\1"?T:n.concat(T,E);return n.concat(n.concat("(?:",y,")"),E,/(?:\\.|[^\\\/])*?/,x,/(?:\\.|[^\\\/])*?/,T,i)},b=(y,E,T)=>n.concat(n.concat("(?:",y,")"),E,/(?:\\.|[^\\\/])*?/,T,i),S=[d,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:p,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},f,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:g("s|tr|y",n.either(...m,{capture:!0}))},{begin:g("s|tr|y","\\(","\\)")},{begin:g("s|tr|y","\\[","\\]")},{begin:g("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:b("(?:m|qr)?",/\//,/\//)},{begin:b("m|qr",n.either(...m,{capture:!0}),/\1/)},{begin:b("m|qr",/\(/,/\)/)},{begin:b("m|qr",/\[/,/\]/)},{begin:b("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c,f]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=S,o.contains=S,{name:"Perl",aliases:["pl","pm"],keywords:a,contains:S}}return zN=t,zN}var YN,Hq;function Cwe(){if(Hq)return YN;Hq=1;function t(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return YN=t,YN}var HN,Vq;function Owe(){if(Vq)return HN;Vq=1;function t(e){const n={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},r={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},i={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),r,i,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,n]}}return HN=t,HN}var VN,Wq;function Rwe(){if(Wq)return VN;Wq=1;function t(e){const n={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},r="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/\}/,keywords:n},a=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];i.contains=a;const s=e.inherit(e.TITLE_MODE,{begin:r}),o="(\\(.*\\)\\s*)?\\B[-=]>",c={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:n,contains:["self"].concat(a)}]};return{name:"MoonScript",aliases:["moon"],keywords:n,illegal:/\/\*/,contains:a.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+r+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[s,c]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[c]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{className:"name",begin:r+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return VN=t,VN}var WN,Qq;function Nwe(){if(Qq)return WN;Qq=1;function t(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}return WN=t,WN}var QN,Kq;function Awe(){if(Kq)return QN;Kq=1;function t(e){const n={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},r={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},i={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},a={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),a,i,n,r]}}return QN=t,QN}var KN,Xq;function wwe(){if(Xq)return KN;Xq=1;function t(e){const n=e.regex,r={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:n.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},a={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[r]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},r]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:a.contains,keywords:{section:"upstream location"}},{className:"section",begin:n.concat(e.UNDERSCORE_IDENT_RE+n.lookahead(/\s+\{/)),relevance:0},{begin:n.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:a}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return KN=t,KN}var XN,Zq;function Iwe(){if(Zq)return XN;Zq=1;function t(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}return XN=t,XN}var ZN,Jq;function Dwe(){if(Jq)return ZN;Jq=1;function t(e){const n={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},r={className:"subst",begin:/\$\{/,end:/\}/,keywords:n},i={className:"char.escape",begin:/''\$/},a={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},s={className:"string",contains:[i,r],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},o=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,a];return r.contains=o,{name:"Nix",aliases:["nixos"],keywords:n,contains:o}}return ZN=t,ZN}var JN,e$;function Mwe(){if(e$)return JN;e$=1;function t(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return JN=t,JN}var eA,t$;function Lwe(){if(t$)return eA;t$=1;function t(e){const n=e.regex,r=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],i=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],a=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],s={className:"variable.constant",begin:n.concat(/\$/,n.either(...r))},o={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},c={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},d={className:"variable",begin:/\$+\([\w^.:!-]+\)/},f={className:"params",begin:n.either(...i)},p={className:"keyword",begin:n.concat(/!/,n.either(...a))},m={className:"char.escape",begin:/\$(\\[nrt]|\$)/},g={className:"title.function",begin:/\w+::\w+/},b={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[m,s,o,c,d]},S=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],y=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],E={match:[/Function/,/\s+/,n.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},x={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:S,literal:y},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),x,E,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},b,p,o,c,d,f,g,e.NUMBER_MODE]}}return eA=t,eA}var tA,n$;function kwe(){if(n$)return tA;n$=1;function t(e){const n={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,c={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},d={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:c,illegal:"</",contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+d.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:d,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return tA=t,tA}var nA,r$;function Pwe(){if(r$)return nA;r$=1;function t(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return nA=t,nA}var rA,i$;function Bwe(){if(i$)return rA;i$=1;function t(e){const n={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},r={className:"literal",begin:"false|true|PI|undef"},i={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},o={className:"params",begin:"\\(",end:"\\)",contains:["self",i,a,n,r]},c={begin:"[*!#%]",relevance:0},d={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[o,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,s,a,n,c,d]}}return rA=t,rA}var iA,a$;function Fwe(){if(a$)return iA;a$=1;function t(e){const n={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},r=e.COMMENT(/\{/,/\}/,{relevance:0}),i=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),a={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},s={className:"string",begin:"(#\\d+)+"},o={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:n,contains:[a,s]},r,i]},c={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:n,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[r,i,e.C_LINE_COMMENT_MODE,a,s,e.NUMBER_MODE,o,c]}}return iA=t,iA}var aA,s$;function Uwe(){if(s$)return aA;s$=1;function t(e){const n=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[n]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}return aA=t,aA}var sA,o$;function jwe(){if(o$)return sA;o$=1;function t(e){const n={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},r={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,n,r]}}return sA=t,sA}var oA,l$;function Gwe(){if(l$)return oA;l$=1;function t(e){const n=e.COMMENT("--","$"),r="[a-zA-Z_][a-zA-Z_0-9$]*",i="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",a="<<\\s*"+r+"\\s*>>",s="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",o="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",c="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",d="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",f=d.trim().split(" ").map(function(y){return y.split("|")[0]}).join("|"),p="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",m="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",g="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",S="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(y){return y.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:s+c+o,built_in:p+m+g},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+S+")\\s*\\("},{begin:"\\.("+f+")\\b"},{begin:"\\b("+f+")\\s+PATH\\b",keywords:{keyword:"PATH",type:d.replace("PATH ","")}},{className:"type",begin:"\\b("+f+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:i,end:i,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:a,relevance:10}]}}return oA=t,oA}var lA,c$;function qwe(){if(c$)return lA;c$=1;function t(e){const n=e.regex,r=/(?![A-Za-z0-9])(?![$])/,i=n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),a=n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),s={scope:"variable",match:"\\$+"+i},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},d=e.inherit(e.APOS_STRING_MODE,{illegal:null}),f=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),p={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(H,F)=>{F.data._beginMatch=H[1]||H[2]},"on:end":(H,F)=>{F.data._beginMatch!==H[1]&&F.ignoreMatch()}},m=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),g=`[ 	
]`,b={scope:"string",variants:[f,d,p,m]},S={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},y=["false","null","true"],E=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],T=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],O={keyword:E,literal:(H=>{const F=[];return H.forEach(k=>{F.push(k),k.toLowerCase()===k?F.push(k.toUpperCase()):F.push(k.toLowerCase())}),F})(y),built_in:T},C=H=>H.map(F=>F.replace(/\|\d+$/,"")),N={variants:[{match:[/new/,n.concat(g,"+"),n.concat("(?!",C(T).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},w=n.concat(i,"\\b(?!\\()"),D={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,n.concat(/::/,n.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[a,n.concat("::",n.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},L={scope:"attr",match:n.concat(i,n.lookahead(":"),n.lookahead(/(?!::)/))},U={relevance:0,begin:/\(/,end:/\)/,keywords:O,contains:[L,s,D,e.C_BLOCK_COMMENT_MODE,b,S,N]},M={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",C(E).join("\\b|"),"|",C(T).join("\\b|"),"\\b)"),i,n.concat(g,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[U]};U.contains.push(M);const B=[L,D,e.C_BLOCK_COMMENT_MODE,b,S,N],Y={begin:n.concat(/#\[\s*/,a),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:y,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:y,keyword:["new","array"]},contains:["self",...B]},...B,{scope:"meta",match:a}]};return{case_insensitive:!1,keywords:O,contains:[Y,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},s,M,D,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},N,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:O,contains:["self",s,D,e.C_BLOCK_COMMENT_MODE,b,S]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},b,S]}}return lA=t,lA}var cA,u$;function $we(){if(u$)return cA;u$=1;function t(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return cA=t,cA}var uA,d$;function zwe(){if(d$)return uA;d$=1;function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return uA=t,uA}var dA,f$;function Ywe(){if(f$)return dA;f$=1;function t(e){const n={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},r={className:"string",begin:'"""',end:'"""',relevance:10},i={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},a={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},s={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},o={begin:e.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:n,contains:[s,r,i,a,o,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return dA=t,dA}var fA,h$;function Hwe(){if(h$)return fA;h$=1;function t(e){const n=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],r="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",i="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",a={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},s=/\w[\w\d]*((-)[\w\d]+)*/,o={begin:"`[\\s\\S]",relevance:0},c={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},d={className:"literal",begin:/\$(null|true|false)\b/},f={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,c,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},p={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},m={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},g=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[m]}),b={className:"built_in",variants:[{begin:"(".concat(r,")+(-)[\\w\\d]+")}]},S={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},y={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:s,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[c]}]},E={begin:/using\s/,end:/$/,returnBegin:!0,contains:[f,p,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},T={variants:[{className:"operator",begin:"(".concat(i,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},x={className:"selector-tag",begin:/@\B/,relevance:0},O={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(a.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},C=[O,g,o,e.NUMBER_MODE,f,p,b,c,d,x],N={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",C,{begin:"("+n.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return O.contains.unshift(N),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:a,contains:C.concat(S,y,E,T,N)}}return fA=t,fA}var hA,p$;function Vwe(){if(p$)return hA;p$=1;function t(e){const n=e.regex,r=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],i=e.IDENT_RE,a={variants:[{match:n.concat(n.either(...r),n.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:n.concat(/\b(?!for|if|while)/,i,n.lookahead(/\s*\(/)),className:"title.function"}]},s={match:[/new\s+/,i],className:{1:"keyword",2:"class.title"}},o={relevance:0,match:[/\./,i],className:{2:"property"}},c={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,i]},{match:[/class/,/\s+/,i]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},d=["boolean","byte","char","color","double","float","int","long","short"],f=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...r,...f],type:d},contains:[c,s,a,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return hA=t,hA}var pA,m$;function Wwe(){if(m$)return pA;m$=1;function t(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return pA=t,pA}var mA,g$;function Qwe(){if(g$)return mA;g$=1;function t(e){const n={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},r={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},i={begin:/\(/,end:/\)/,relevance:0},a={begin:/\[/,end:/\]/},s={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},c={className:"string",begin:/0'(\\'|.)/},d={className:"string",begin:/0'\\s/},p=[n,r,i,{begin:/:-/},a,s,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,c,d,e.C_NUMBER_MODE];return i.contains=p,a.contains=p,{name:"Prolog",contains:p.concat([{begin:/\.$/}])}}return mA=t,mA}var gA,_$;function Kwe(){if(_$)return gA;_$=1;function t(e){const n="[ \\t\\f]*",r="[ \\t\\f]+",i=n+"[:=]"+n,a=r,s="("+i+"|"+a+")",o="([^\\\\:= \\t\\f\\n]|\\\\.)+",c={end:s,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:o+i},{begin:o+a}],contains:[{className:"attr",begin:o,endsParent:!0}],starts:c},{className:"attr",begin:o+n+"$"}]}}return gA=t,gA}var _A,b$;function Xwe(){if(b$)return _A;b$=1;function t(e){const n=["package","import","option","optional","required","repeated","group","oneof"],r=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],i={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:n,type:r,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return _A=t,_A}var bA,v$;function Zwe(){if(v$)return bA;v$=1;function t(e){const n={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},r=e.COMMENT("#","$"),i="([A-Za-z_]|::)(\\w|::)*",a=e.inherit(e.TITLE_MODE,{begin:i}),s={className:"variable",begin:"\\$"+i},o={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[r,s,o,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[a,r]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:n,relevance:0,contains:[o,r,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},s]}],relevance:0}]}}return bA=t,bA}var vA,S$;function Jwe(){if(S$)return vA;S$=1;function t(e){const n={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},r={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning 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 EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until  UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},n,r]}}return vA=t,vA}var SA,E$;function eIe(){if(E$)return SA;E$=1;function t(e){const n=e.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},d={className:"meta",begin:/^(>>>|\.\.\.) /},f={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},p={begin:/\{\{/,relevance:0},m={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d,p,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d,p,f]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,p,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,p,f]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",b=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,S=`\\b|${i.join("|")}`,y={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${b}))[eE][+-]?(${g})[jJ]?(?=${S})`},{begin:`(${b})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${S})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${S})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${S})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${S})`},{begin:`\\b(${g})[jJ](?=${S})`}]},E={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},T={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",d,y,m,e.HASH_COMMENT_MODE]}]};return f.contains=[m,y,d],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:c,illegal:/(<\/|\?)|=>/,contains:[d,y,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},m,E,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[T]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[y,T,m]}]}}return SA=t,SA}var EA,y$;function tIe(){if(y$)return EA;y$=1;function t(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return EA=t,EA}var yA,T$;function nIe(){if(T$)return yA;T$=1;function t(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return yA=t,yA}var TA,x$;function rIe(){if(x$)return TA;x$=1;function t(e){const n=e.regex,r={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},i="[a-zA-Z_][a-zA-Z0-9\\._]*",a={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},s={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:i,returnEnd:!1}},c={begin:i+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:i,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},d={begin:n.concat(i,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:i})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:r,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},s,a,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},o,c,d],illegal:/#/}}return TA=t,TA}var xA,C$;function iIe(){if(C$)return xA;C$=1;function t(e){const n=e.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=n.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),a=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=n.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:n.lookahead(n.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[a,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[s,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:a},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return xA=t,xA}var CA,O$;function aIe(){if(O$)return CA;O$=1;function t(e){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}return CA=t,CA}var OA,R$;function sIe(){if(R$)return OA;R$=1;function t(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}return OA=t,OA}var RA,N$;function oIe(){if(N$)return RA;N$=1;function t(e){const n="[a-zA-Z-_][^\\n{]+\\{",r={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+n,end:/\}/,keywords:"facet",contains:[r,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+n,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",r,e.HASH_COMMENT_MODE]},{begin:"^"+n,end:/\}/,contains:[r,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}return RA=t,RA}var NA,A$;function lIe(){if(A$)return NA;A$=1;function t(e){const n="foreach do while for if from to step else on-error and or not in",r="global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime",i="add remove enable disable set get print export edit find run debug error info warning",a="true false yes no nothing nil null",s="traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw",o={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},d={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:a,keyword:n+" :"+n.split(" ").join(" :")+" :"+r.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),c,d,o,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[c,d,o,{className:"literal",begin:"\\b("+a.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+i.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+s.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return NA=t,NA}var AA,w$;function cIe(){if(w$)return AA;w$=1;function t(e){const n=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],r=["matrix","float","color","point","normal","vector"],i=["while","for","if","do","return","else","break","extern","continue"],a={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:i,built_in:n,type:r},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},a,{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}return AA=t,AA}var wA,I$;function uIe(){if(I$)return wA;I$=1;function t(e){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}return wA=t,wA}var IA,D$;function dIe(){if(D$)return IA;D$=1;function t(e){const n=e.regex,r=/(r#)?/,i=n.concat(r,e.UNDERSCORE_IDENT_RE),a=n.concat(r,e.IDENT_RE),s={className:"title.function.invoke",relevance:0,begin:n.concat(/\b/,/(?!let|for|while|if|else|match\b)/,a,n.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",c=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],d=["true","false","Some","None","Ok","Err"],f=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],p=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:p,keyword:c,literal:d,built_in:f},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,i],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,i],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,i,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:f,type:p}},{className:"punctuation",begin:"->"},s]}}return IA=t,IA}var DA,M$;function fIe(){if(M$)return DA;M$=1;function t(e){const n=e.regex,r=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],i=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],a=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:r},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+n.either(...a)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:n.either(...i)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}return DA=t,DA}var MA,L$;function hIe(){if(L$)return MA;L$=1;function t(e){const n=e.regex,r={className:"meta",begin:"@[A-Za-z]+"},i={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},a={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,i]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[i],relevance:10}]},s={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},o={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},c={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o]},d={className:"function",beginKeywords:"def",end:n.lookahead(/[:={\[(\n;]/),contains:[o]},f={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},p={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},m=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],g={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,s,d,c,e.C_NUMBER_MODE,f,p,...m,g,r]}}return MA=t,MA}var LA,k$;function pIe(){if(k$)return LA;k$=1;function t(e){const n="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",r="(-|\\+)?\\d+([./]\\d+)?",i=r+"[+\\-]"+r+"i",a={$pattern:n,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},s={className:"literal",begin:"(#t|#f|#\\\\"+n+"|#\\\\.)"},o={className:"number",variants:[{begin:r,relevance:0},{begin:i,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},c=e.QUOTE_STRING_MODE,d=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],f={begin:n,relevance:0},p={className:"symbol",begin:"'"+n},m={endsWithParent:!0,relevance:0},g={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",s,c,o,f,p]}]},b={className:"name",relevance:0,begin:n,keywords:a},y={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[b,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[f]}]},b,m]};return m.contains=[s,o,c,f,p,g,y].concat(d),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),o,c,p,g,y].concat(d)}}return LA=t,LA}var kA,P$;function mIe(){if(P$)return kA;P$=1;function t(e){const n=[e.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:n},e.COMMENT("//","$")].concat(n)}}return kA=t,kA}var PA,B$;function gIe(){if(B$)return PA;B$=1;const t=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...e,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const f=t(d),p=s,m=a,g="@[a-z-]+",b="and or not only",y={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,f.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},f.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+m.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},y,{begin:/\(/,end:/\)/,contains:[f.CSS_NUMBER_MODE]},f.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[f.BLOCK_COMMENT,y,f.HEXCOLOR,f.CSS_NUMBER_MODE,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,f.IMPORTANT,f.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:g,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:b,attribute:i.join(" ")},contains:[{begin:g,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},y,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,f.HEXCOLOR,f.CSS_NUMBER_MODE]},f.FUNCTION_DISPATCH]}}return PA=c,PA}var BA,F$;function _Ie(){if(F$)return BA;F$=1;function t(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return BA=t,BA}var FA,U$;function bIe(){if(U$)return FA;U$=1;function t(e){const n=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],r=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],i=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+i.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+n.join("|")+")\\s"},{begin:"\\s("+n.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+r.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return FA=t,FA}var UA,j$;function vIe(){if(j$)return UA;j$=1;function t(e){const n="[a-z][a-zA-Z0-9_]*",r={className:"string",begin:"\\$.{1}"},i={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:n+":",relevance:0},e.C_NUMBER_MODE,i,r,{begin:"\\|[ ]*"+n+"([ ]+"+n+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+n}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,r,e.C_NUMBER_MODE,i]}]}}return UA=t,UA}var jA,G$;function SIe(){if(G$)return jA;G$=1;function t(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return jA=t,jA}var GA,q$;function EIe(){if(q$)return GA;q$=1;function t(e){const n={className:"variable",begin:/\b_+[a-zA-Z]\w*/},r={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},i={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},a=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],s=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],o=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","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","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","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","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","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","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","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","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","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_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","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","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","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","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","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","keys","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","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","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","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","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","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","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","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","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","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","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","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","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","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","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","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:a,built_in:o,literal:s},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,n,r,i,c],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return GA=t,GA}var qA,$$;function yIe(){if($$)return qA;$$=1;function t(e){const n=e.regex,r=e.COMMENT("--","$"),i={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},a={begin:/"/,end:/"/,contains:[{begin:/""/}]},s=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],c=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],d=["add","asc","collation","desc","final","first","last","view"],f=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],p=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],m=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],g=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],b=p,S=[...f,...d].filter(O=>!p.includes(O)),y={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},E={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},T={begin:n.concat(/\b/,n.either(...b),/\s*\(/),relevance:0,keywords:{built_in:b}};function x(O,{exceptions:C,when:N}={}){const w=N;return C=C||[],O.map(D=>D.match(/\|\d+$/)||C.includes(D)?D:w(D)?`${D}|0`:D)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(S,{when:O=>O.length<3}),literal:s,type:c,built_in:m},contains:[{begin:n.either(...g),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:S.concat(g),literal:s,type:c}},{className:"type",begin:n.either(...o)},T,y,i,a,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,E]}}return qA=t,qA}var $A,z$;function TIe(){if(z$)return $A;z$=1;function t(e){const n=e.regex,r=["functions","model","data","parameters","quantities","transformed","generated"],i=["for","in","if","else","while","break","continue","return"],a=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],s=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],o=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],c=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),d={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},f=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:r,type:a,keyword:i,built_in:s},contains:[e.C_LINE_COMMENT_MODE,d,e.HASH_COMMENT_MODE,c,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:n.concat(/[<,]\s*/,n.either(...f),/\s*=/),keywords:f},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,n.either(...o),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:o,begin:n.concat(/\w*/,n.either(...o),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,n.concat(n.either(...o),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+n.either(...o)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:n.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}return $A=t,$A}var zA,Y$;function xIe(){if(Y$)return zA;Y$=1;function t(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ 	]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return zA=t,zA}var YA,H$;function CIe(){if(H$)return YA;H$=1;function t(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return YA=t,YA}var HA,V$;function OIe(){if(V$)return HA;V$=1;const t=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...e,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const f=t(d),p="and or not only",m={className:"variable",begin:"\\$"+d.IDENT_RE},g=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],b="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,f.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+b,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+b,className:"selector-id"},{begin:"\\b("+r.join("|")+")"+b,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+a.join("|")+")"+b},{className:"selector-pseudo",begin:"&?:(:)?("+s.join("|")+")"+b},f.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:p,attribute:i.join(" ")},contains:[f.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+g.join("|")+"))\\b"},m,f.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[f.HEXCOLOR,m,d.APOS_STRING_MODE,f.CSS_NUMBER_MODE,d.QUOTE_STRING_MODE]}]},f.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",starts:{end:/;|$/,contains:[f.HEXCOLOR,m,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,f.CSS_NUMBER_MODE,d.C_BLOCK_COMMENT_MODE,f.IMPORTANT,f.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},f.FUNCTION_DISPATCH]}}return HA=c,HA}var VA,W$;function RIe(){if(W$)return VA;W$=1;function t(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return VA=t,VA}var WA,Q$;function NIe(){if(Q$)return WA;Q$=1;function t(D){return D?typeof D=="string"?D:D.source:null}function e(D){return n("(?=",D,")")}function n(...D){return D.map(U=>t(U)).join("")}function r(D){const L=D[D.length-1];return typeof L=="object"&&L.constructor===Object?(D.splice(D.length-1,1),L):{}}function i(...D){return"("+(r(D).capture?"":"?:")+D.map(M=>t(M)).join("|")+")"}const a=D=>n(/\b/,D,/\w$/.test(D)?/\b/:/\B/),s=["Protocol","Type"].map(a),o=["init","self"].map(a),c=["Any","Self"],d=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],f=["false","nil","true"],p=["assignment","associativity","higherThan","left","lowerThan","none","right"],m=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],g=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],b=i(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),S=i(b,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),y=n(b,S,"*"),E=i(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),T=i(E,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),x=n(E,T,"*"),O=n(/[A-Z]/,T,"*"),C=["attached","autoclosure",n(/convention\(/,i("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc\(/,x,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],N=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function w(D){const L={match:/\s+/,relevance:0},U=D.COMMENT("/\\*","\\*/",{contains:["self"]}),M=[D.C_LINE_COMMENT_MODE,U],B={match:[/\./,i(...s,...o)],className:{2:"keyword"}},Y={match:n(/\./,i(...d)),relevance:0},H=d.filter($t=>typeof $t=="string").concat(["_|0"]),F=d.filter($t=>typeof $t!="string").concat(c).map(a),k={variants:[{className:"keyword",match:i(...F,...o)}]},P={$pattern:i(/\b\w+/,/#\w+/),keyword:H.concat(m),literal:f},z=[B,Y,k],V={match:n(/\./,i(...g)),relevance:0},G={className:"built_in",match:n(/\b/,i(...g),/(?=\()/)},Q=[V,G],Z={match:/->/,relevance:0},X={className:"operator",relevance:0,variants:[{match:y},{match:`\\.(\\.|${S})+`}]},ue=[Z,X],fe="([0-9]_*)+",be="([0-9a-fA-F]_*)+",ye={className:"number",relevance:0,variants:[{match:`\\b(${fe})(\\.(${fe}))?([eE][+-]?(${fe}))?\\b`},{match:`\\b0x(${be})(\\.(${be}))?([pP][+-]?(${fe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Ne=($t="")=>({className:"subst",variants:[{match:n(/\\/,$t,/[0\\tnr"']/)},{match:n(/\\/,$t,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ke=($t="")=>({className:"subst",match:n(/\\/,$t,/[\t ]*(?:[\r\n]|\r\n)/)}),Oe=($t="")=>({className:"subst",label:"interpol",begin:n(/\\/,$t,/\(/),end:/\)/}),oe=($t="")=>({begin:n($t,/"""/),end:n(/"""/,$t),contains:[Ne($t),ke($t),Oe($t)]}),Se=($t="")=>({begin:n($t,/"/),end:n(/"/,$t),contains:[Ne($t),Oe($t)]}),le={className:"string",variants:[oe(),oe("#"),oe("##"),oe("###"),Se(),Se("#"),Se("##"),Se("###")]},Ge=[D.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[D.BACKSLASH_ESCAPE]}],lt={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ge},xt=$t=>{const Fr=n($t,/\//),Vn=n(/\//,$t);return{begin:Fr,end:Vn,contains:[...Ge,{scope:"comment",begin:`#(?!.*${Vn})`,end:/$/}]}},Ae={scope:"regexp",variants:[xt("###"),xt("##"),xt("#"),lt]},Be={match:n(/`/,x,/`/)},Xe={className:"variable",match:/\$\d+/},je={className:"variable",match:`\\$${T}+`},Ze=[Be,Xe,je],Et={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:N,contains:[...ue,ye,le]}]}},vt={scope:"keyword",match:n(/@/,i(...C),e(i(/\(/,/\s+/)))},xe={scope:"meta",match:n(/@/,x)},Re=[Et,vt,xe],et={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:n(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,T,"+")},{className:"type",match:O,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:n(/\s+&\s+/,e(O)),relevance:0}]},yt={begin:/</,end:/>/,keywords:P,contains:[...M,...z,...Re,Z,et]};et.contains.push(yt);const Mt={match:n(x,/\s*:/),keywords:"_|0",relevance:0},kt={begin:/\(/,end:/\)/,relevance:0,keywords:P,contains:["self",Mt,...M,Ae,...z,...Q,...ue,ye,le,...Ze,...Re,et]},Zt={begin:/</,end:/>/,keywords:"repeat each",contains:[...M,et]},zt={begin:i(e(n(x,/\s*:/)),e(n(x,/\s+/,x,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:x}]},Fn={begin:/\(/,end:/\)/,keywords:P,contains:[zt,...M,...z,...ue,ye,le,...Re,et,kt],endsParent:!0,illegal:/["']/},Hn={match:[/(func|macro)/,/\s+/,i(Be.match,x,y)],className:{1:"keyword",3:"title.function"},contains:[Zt,Fn,L],illegal:[/\[/,/%/]},Lt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Zt,Fn,L],illegal:/\[|%/},Jt={match:[/operator/,/\s+/,y],className:{1:"keyword",3:"title"}},si={begin:[/precedencegroup/,/\s+/,O],className:{1:"keyword",3:"title"},contains:[et],keywords:[...p,...f],end:/}/},Nr={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,x,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:P,contains:[Zt,...z,{begin:/:/,end:/\{/,keywords:P,contains:[{scope:"title.class.inherited",match:O},...z],relevance:0}]};for(const $t of le.variants){const Fr=$t.contains.find(xr=>xr.label==="interpol");Fr.keywords=P;const Vn=[...z,...Q,...ue,ye,le,...Ze];Fr.contains=[...Vn,{begin:/\(/,end:/\)/,contains:["self",...Vn]}]}return{name:"Swift",keywords:P,contains:[...M,Hn,Lt,Nr,Jt,si,{beginKeywords:"import",end:/$/,contains:[...M],relevance:0},Ae,...z,...Q,...ue,ye,le,...Ze,...Re,et,kt]}}return WA=w,WA}var QA,K$;function AIe(){if(K$)return QA;K$=1;function t(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}return QA=t,QA}var KA,X$;function wIe(){if(X$)return KA;X$=1;function t(e){const n="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/\w[\w :()\./-]*:(?=[ \t]|$)/},{begin:/"\w[\w :()\./-]*":(?=[ \t]|$)/},{begin:/'\w[\w :()\./-]*':(?=[ \t]|$)/}]},a={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,a]},o=e.inherit(s,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),m={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},g={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},b={begin:/\{/,end:/\}/,contains:[g],illegal:"\\n",relevance:0},S={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},y=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},m,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},b,S,s],E=[...y];return E.pop(),E.push(o),g.contains=E,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:y}}return KA=t,KA}var XA,Z$;function IIe(){if(Z$)return XA;Z$=1;function t(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return XA=t,XA}var ZA,J$;function DIe(){if(J$)return ZA;J$=1;function t(e){const n=e.regex,r=/[a-zA-Z_][a-zA-Z0-9_]*/,i={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:n.concat(/\$/,n.optional(/::/),r,"(::",r,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[i]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i]}}return ZA=t,ZA}var JA,e5;function MIe(){if(e5)return JA;e5=1;function t(e){const n=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:n,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...n,"set","list","map"]},end:">",contains:["self"]}]}}return JA=t,JA}var ew,t5;function LIe(){if(t5)return ew;t5=1;function t(e){const n={className:"number",begin:"[1-9][0-9]*",relevance:0},r={className:"symbol",begin:":[^\\]]+"},i={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",n,r]},a={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",n,e.QUOTE_STRING_MODE,r]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[i,a,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return ew=t,ew}var tw,n5;function kIe(){if(n5)return tw;n5=1;function t(e){const n=e.regex,r=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],i=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let a=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];a=a.concat(a.map(S=>`end${S}`));const s={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},o={scope:"number",match:/\d+/},c={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[s,o]},d={beginKeywords:r.join(" "),keywords:{name:r},relevance:0,contains:[c]},f={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:i}]},p=(S,{relevance:y})=>({beginScope:{1:"template-tag",3:"name"},relevance:y||2,endScope:"template-tag",begin:[/\{%/,/\s*/,n.either(...S)],end:/%\}/,keywords:"in",contains:[f,d,s,o]}),m=/[a-z_]+/,g=p(a,{relevance:2}),b=p([m],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),g,b,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",f,d,s,o]}]}}return tw=t,tw}var nw,r5;function PIe(){if(r5)return nw;r5=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(a,r,i);function c(f){const p=f.regex,m=(Ne,{after:ke})=>{const Oe="</"+Ne[0].slice(1);return Ne.input.indexOf(Oe,ke)!==-1},g=t,b={begin:"<>",end:"</>"},S=/<[A-Za-z0-9\\._:-]+\s*\/>/,y={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Ne,ke)=>{const Oe=Ne[0].length+Ne.index,oe=Ne.input[Oe];if(oe==="<"||oe===","){ke.ignoreMatch();return}oe===">"&&(m(Ne,{after:Oe})||ke.ignoreMatch());let Se;const le=Ne.input.substring(Oe);if(Se=le.match(/^\s*=/)){ke.ignoreMatch();return}if((Se=le.match(/^\s+extends\s+/))&&Se.index===0){ke.ignoreMatch();return}}},E={$pattern:t,keyword:e,literal:n,built_in:o,"variable.language":s},T="[0-9](_?[0-9])*",x=`\\.(${T})`,O="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",C={className:"number",variants:[{begin:`(\\b(${O})((${x})|\\.)?|(${x}))[eE][+-]?(${T})\\b`},{begin:`\\b(${O})\\b((${x})\\b|\\.)?|(${x})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},N={className:"subst",begin:"\\$\\{",end:"\\}",keywords:E,contains:[]},w={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,N],subLanguage:"xml"}},D={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,N],subLanguage:"css"}},L={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,N],subLanguage:"graphql"}},U={className:"string",begin:"`",end:"`",contains:[f.BACKSLASH_ESCAPE,N]},B={className:"comment",variants:[f.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),f.C_BLOCK_COMMENT_MODE,f.C_LINE_COMMENT_MODE]},Y=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,w,D,L,U,{match:/\$\d+/},C];N.contains=Y.concat({begin:/\{/,end:/\}/,keywords:E,contains:["self"].concat(Y)});const H=[].concat(B,N.contains),F=H.concat([{begin:/(\s*)\(/,end:/\)/,keywords:E,contains:["self"].concat(H)}]),k={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:F},P={variants:[{match:[/class/,/\s+/,g,/\s+/,/extends/,/\s+/,p.concat(g,"(",p.concat(/\./,g),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,g],scope:{1:"keyword",3:"title.class"}}]},z={relevance:0,match:p.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...i]}},V={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},G={variants:[{match:[/function/,/\s+/,g,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[k],illegal:/%/},Q={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Z(Ne){return p.concat("(?!",Ne.join("|"),")")}const X={match:p.concat(/\b/,Z([...a,"super","import"].map(Ne=>`${Ne}\\s*\\(`)),g,p.lookahead(/\s*\(/)),className:"title.function",relevance:0},ue={begin:p.concat(/\./,p.lookahead(p.concat(g,/(?![0-9A-Za-z$_(])/))),end:g,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},fe={match:[/get|set/,/\s+/,g,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},k]},be="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+f.UNDERSCORE_IDENT_RE+")\\s*=>",ye={match:[/const|var|let/,/\s+/,g,/\s*/,/=\s*/,/(async\s*)?/,p.lookahead(be)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[k]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:E,exports:{PARAMS_CONTAINS:F,CLASS_REFERENCE:z},illegal:/#(?![$_A-z])/,contains:[f.SHEBANG({label:"shebang",binary:"node",relevance:5}),V,f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,w,D,L,U,B,{match:/\$\d+/},C,z,{className:"attr",begin:g+p.lookahead(":"),relevance:0},ye,{begin:"("+f.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[B,f.REGEXP_MODE,{className:"function",begin:be,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:f.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:F}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:b.begin,end:b.end},{match:S},{begin:y.begin,"on:begin":y.isTrulyOpeningTag,end:y.end}],subLanguage:"xml",contains:[{begin:y.begin,end:y.end,skip:!0,contains:["self"]}]}]},G,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+f.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[k,f.inherit(f.TITLE_MODE,{begin:g,className:"title.function"})]},{match:/\.\.\./,relevance:0},ue,{match:"\\$"+g,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[k]},X,Q,P,fe,{match:/\$[(.]/}]}}function d(f){const p=c(f),m=t,g=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],b={begin:[/namespace/,/\s+/,f.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},S={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:g},contains:[p.exports.CLASS_REFERENCE]},y={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},E=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],T={$pattern:t,keyword:e.concat(E),literal:n,built_in:o.concat(g),"variable.language":s},x={className:"meta",begin:"@"+m},O=(w,D,L)=>{const U=w.contains.findIndex(M=>M.label===D);if(U===-1)throw new Error("can not find mode to replace");w.contains.splice(U,1,L)};Object.assign(p.keywords,T),p.exports.PARAMS_CONTAINS.push(x);const C=p.contains.find(w=>w.className==="attr");p.exports.PARAMS_CONTAINS.push([p.exports.CLASS_REFERENCE,C]),p.contains=p.contains.concat([x,b,S]),O(p,"shebang",f.SHEBANG()),O(p,"use_strict",y);const N=p.contains.find(w=>w.label==="func.def");return N.relevance=0,Object.assign(p,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),p}return nw=d,nw}var rw,i5;function BIe(){if(i5)return rw;i5=1;function t(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}return rw=t,rw}var iw,a5;function FIe(){if(a5)return iw;a5=1;function t(e){const n=e.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},a=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,c=/\d{1,2}(:\d{1,2}){1,2}/,d={className:"literal",variants:[{begin:n.concat(/# */,n.either(s,a),/ *#/)},{begin:n.concat(/# */,c,/ *#/)},{begin:n.concat(/# */,o,/ *#/)},{begin:n.concat(/# */,n.either(s,a),/ +/,n.either(o,c),/ *#/)}]},f={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},p={className:"label",begin:/^\w+:/},m=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),g=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,i,d,f,p,m,g,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[g]}]}}return iw=t,iw}var aw,s5;function UIe(){if(s5)return aw;s5=1;function t(e){const n=e.regex,r=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],i=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],a={begin:n.concat(n.either(...r),"\\s*\\("),relevance:0,keywords:{built_in:r}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:i,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[a,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return aw=t,aw}var sw,o5;function jIe(){if(o5)return sw;o5=1;function t(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return sw=t,sw}var ow,l5;function GIe(){if(l5)return ow;l5=1;function t(e){const n=e.regex,r={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","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","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},i=["__FILE__","__LINE__"],a=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:r,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:n.concat(/`/,n.either(...i))},{scope:"meta",begin:n.concat(/`/,n.either(...a)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:a}]}}return ow=t,ow}var lw,c5;function qIe(){if(c5)return lw;c5=1;function t(e){const n="\\d(_|\\d)*",r="[eE][-+]?"+n,i=n+"(\\."+n+")?("+r+")?",a="\\w+",o="\\b("+(n+"#"+a+"(\\."+a+")?#("+r+")?")+"|"+i+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:o,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}return lw=t,lw}var cw,u5;function $Ie(){if(u5)return cw;u5=1;function t(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return cw=t,cw}var uw,d5;function zIe(){if(d5)return uw;d5=1;function t(e){e.regex;const n=e.COMMENT(/\(;/,/;\)/);n.contains.push("self");const r=e.COMMENT(/;;/,/$/),i=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],a={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},c={className:"number",relevance:0,match:/[+-]?\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/},d={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},f={className:"keyword",match:/\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|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:i},contains:[r,n,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,o,a,e.QUOTE_STRING_MODE,d,f,c]}}return uw=t,uw}var dw,f5;function YIe(){if(f5)return dw;f5=1;function t(e){const n=e.regex,r=/[a-zA-Z]\w*/,i=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],a=["true","false","null"],s=["this","super"],o=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],c=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],d={relevance:0,match:n.concat(/\b(?!(if|while|for|else|super)\b)/,r,/(?=\s*[({])/),className:"title.function"},f={match:n.concat(n.either(n.concat(/\b(?!(if|while|for|else|super)\b)/,r),n.either(...c)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:r}]}]}},p={variants:[{match:[/class\s+/,r,/\s+is\s+/,r]},{match:[/class\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i},m={relevance:0,match:n.either(...c),className:"operator"},g={className:"string",begin:/"""/,end:/"""/},b={className:"property",begin:n.concat(/\./,n.lookahead(r)),end:r,excludeBegin:!0,relevance:0},S={relevance:0,match:n.concat(/\b_/,r),scope:"variable"},y={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:o}},E=e.C_NUMBER_MODE,T={match:[r,/\s*/,/=/,/\s*/,/\(/,r,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},x=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),O={scope:"subst",begin:/%\(/,end:/\)/,contains:[E,y,d,S,m]},C={scope:"string",begin:/"/,end:/"/,contains:[O,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};O.contains.push(C);const N=[...i,...s,...a],w={relevance:0,match:n.concat("\\b(?!",N.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:i,"variable.language":s,literal:a},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:a},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},E,C,g,x,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,p,T,f,d,m,S,b,w]}}return dw=t,dw}var fw,h5;function HIe(){if(h5)return fw;h5=1;function t(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0  xmm1  xmm2  xmm3  xmm4  xmm5  xmm6  xmm7  xmm8  xmm9 xmm10  xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0  ymm1  ymm2  ymm3  ymm4  ymm5  ymm6  ymm7  ymm8  ymm9 ymm10  ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0  zmm1  zmm2  zmm3  zmm4  zmm5  zmm6  zmm7  zmm8  zmm9 zmm10  zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__  __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__  __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return fw=t,fw}var hw,p5;function VIe(){if(p5)return hw;p5=1;function t(e){const n=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],r=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],i=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],s={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:n,literal:["true","false","nil"],built_in:r.concat(i)},o={className:"string",begin:'"',end:'"',illegal:"\\n"},c={className:"string",begin:"'",end:"'",illegal:"\\n"},d={className:"string",begin:"<<",end:">>"},f={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},p={beginKeywords:"import",end:"$",keywords:s,contains:[o]},m={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:s}})]};return{name:"XL",aliases:["tao"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,c,d,m,p,f,e.NUMBER_MODE]}}return hw=t,hw}var pw,m5;function WIe(){if(m5)return pw;m5=1;function t(e){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return pw=t,pw}var mw,g5;function QIe(){if(g5)return mw;g5=1;function t(e){const n={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r=e.UNDERSCORE_TITLE_MODE,i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},a="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:a,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[r,{className:"params",begin:/\(/,end:/\)/,keywords:a,contains:["self",e.C_BLOCK_COMMENT_MODE,n,i]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},r]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[r]},{beginKeywords:"use",end:/;/,contains:[r]},{begin:/=>/},n,i]}}return mw=t,mw}var gw,_5;function KIe(){if(_5)return gw;_5=1;var t=vNe();return t.registerLanguage("1c",SNe()),t.registerLanguage("abnf",ENe()),t.registerLanguage("accesslog",yNe()),t.registerLanguage("actionscript",TNe()),t.registerLanguage("ada",xNe()),t.registerLanguage("angelscript",CNe()),t.registerLanguage("apache",ONe()),t.registerLanguage("applescript",RNe()),t.registerLanguage("arcade",NNe()),t.registerLanguage("arduino",ANe()),t.registerLanguage("armasm",wNe()),t.registerLanguage("xml",INe()),t.registerLanguage("asciidoc",DNe()),t.registerLanguage("aspectj",MNe()),t.registerLanguage("autohotkey",LNe()),t.registerLanguage("autoit",kNe()),t.registerLanguage("avrasm",PNe()),t.registerLanguage("awk",BNe()),t.registerLanguage("axapta",FNe()),t.registerLanguage("bash",UNe()),t.registerLanguage("basic",jNe()),t.registerLanguage("bnf",GNe()),t.registerLanguage("brainfuck",qNe()),t.registerLanguage("c",$Ne()),t.registerLanguage("cal",zNe()),t.registerLanguage("capnproto",YNe()),t.registerLanguage("ceylon",HNe()),t.registerLanguage("clean",VNe()),t.registerLanguage("clojure",WNe()),t.registerLanguage("clojure-repl",QNe()),t.registerLanguage("cmake",KNe()),t.registerLanguage("coffeescript",XNe()),t.registerLanguage("coq",ZNe()),t.registerLanguage("cos",JNe()),t.registerLanguage("cpp",eAe()),t.registerLanguage("crmsh",tAe()),t.registerLanguage("crystal",nAe()),t.registerLanguage("csharp",rAe()),t.registerLanguage("csp",iAe()),t.registerLanguage("css",aAe()),t.registerLanguage("d",sAe()),t.registerLanguage("markdown",oAe()),t.registerLanguage("dart",lAe()),t.registerLanguage("delphi",cAe()),t.registerLanguage("diff",uAe()),t.registerLanguage("django",dAe()),t.registerLanguage("dns",fAe()),t.registerLanguage("dockerfile",hAe()),t.registerLanguage("dos",pAe()),t.registerLanguage("dsconfig",mAe()),t.registerLanguage("dts",gAe()),t.registerLanguage("dust",_Ae()),t.registerLanguage("ebnf",bAe()),t.registerLanguage("elixir",vAe()),t.registerLanguage("elm",SAe()),t.registerLanguage("ruby",EAe()),t.registerLanguage("erb",yAe()),t.registerLanguage("erlang-repl",TAe()),t.registerLanguage("erlang",xAe()),t.registerLanguage("excel",CAe()),t.registerLanguage("fix",OAe()),t.registerLanguage("flix",RAe()),t.registerLanguage("fortran",NAe()),t.registerLanguage("fsharp",AAe()),t.registerLanguage("gams",wAe()),t.registerLanguage("gauss",IAe()),t.registerLanguage("gcode",DAe()),t.registerLanguage("gherkin",MAe()),t.registerLanguage("glsl",LAe()),t.registerLanguage("gml",kAe()),t.registerLanguage("go",PAe()),t.registerLanguage("golo",BAe()),t.registerLanguage("gradle",FAe()),t.registerLanguage("graphql",UAe()),t.registerLanguage("groovy",jAe()),t.registerLanguage("haml",GAe()),t.registerLanguage("handlebars",qAe()),t.registerLanguage("haskell",$Ae()),t.registerLanguage("haxe",zAe()),t.registerLanguage("hsp",YAe()),t.registerLanguage("http",HAe()),t.registerLanguage("hy",VAe()),t.registerLanguage("inform7",WAe()),t.registerLanguage("ini",QAe()),t.registerLanguage("irpf90",KAe()),t.registerLanguage("isbl",XAe()),t.registerLanguage("java",ZAe()),t.registerLanguage("javascript",JAe()),t.registerLanguage("jboss-cli",ewe()),t.registerLanguage("json",twe()),t.registerLanguage("julia",nwe()),t.registerLanguage("julia-repl",rwe()),t.registerLanguage("kotlin",iwe()),t.registerLanguage("lasso",awe()),t.registerLanguage("latex",swe()),t.registerLanguage("ldif",owe()),t.registerLanguage("leaf",lwe()),t.registerLanguage("less",cwe()),t.registerLanguage("lisp",uwe()),t.registerLanguage("livecodeserver",dwe()),t.registerLanguage("livescript",fwe()),t.registerLanguage("llvm",hwe()),t.registerLanguage("lsl",pwe()),t.registerLanguage("lua",mwe()),t.registerLanguage("makefile",gwe()),t.registerLanguage("mathematica",_we()),t.registerLanguage("matlab",bwe()),t.registerLanguage("maxima",vwe()),t.registerLanguage("mel",Swe()),t.registerLanguage("mercury",Ewe()),t.registerLanguage("mipsasm",ywe()),t.registerLanguage("mizar",Twe()),t.registerLanguage("perl",xwe()),t.registerLanguage("mojolicious",Cwe()),t.registerLanguage("monkey",Owe()),t.registerLanguage("moonscript",Rwe()),t.registerLanguage("n1ql",Nwe()),t.registerLanguage("nestedtext",Awe()),t.registerLanguage("nginx",wwe()),t.registerLanguage("nim",Iwe()),t.registerLanguage("nix",Dwe()),t.registerLanguage("node-repl",Mwe()),t.registerLanguage("nsis",Lwe()),t.registerLanguage("objectivec",kwe()),t.registerLanguage("ocaml",Pwe()),t.registerLanguage("openscad",Bwe()),t.registerLanguage("oxygene",Fwe()),t.registerLanguage("parser3",Uwe()),t.registerLanguage("pf",jwe()),t.registerLanguage("pgsql",Gwe()),t.registerLanguage("php",qwe()),t.registerLanguage("php-template",$we()),t.registerLanguage("plaintext",zwe()),t.registerLanguage("pony",Ywe()),t.registerLanguage("powershell",Hwe()),t.registerLanguage("processing",Vwe()),t.registerLanguage("profile",Wwe()),t.registerLanguage("prolog",Qwe()),t.registerLanguage("properties",Kwe()),t.registerLanguage("protobuf",Xwe()),t.registerLanguage("puppet",Zwe()),t.registerLanguage("purebasic",Jwe()),t.registerLanguage("python",eIe()),t.registerLanguage("python-repl",tIe()),t.registerLanguage("q",nIe()),t.registerLanguage("qml",rIe()),t.registerLanguage("r",iIe()),t.registerLanguage("reasonml",aIe()),t.registerLanguage("rib",sIe()),t.registerLanguage("roboconf",oIe()),t.registerLanguage("routeros",lIe()),t.registerLanguage("rsl",cIe()),t.registerLanguage("ruleslanguage",uIe()),t.registerLanguage("rust",dIe()),t.registerLanguage("sas",fIe()),t.registerLanguage("scala",hIe()),t.registerLanguage("scheme",pIe()),t.registerLanguage("scilab",mIe()),t.registerLanguage("scss",gIe()),t.registerLanguage("shell",_Ie()),t.registerLanguage("smali",bIe()),t.registerLanguage("smalltalk",vIe()),t.registerLanguage("sml",SIe()),t.registerLanguage("sqf",EIe()),t.registerLanguage("sql",yIe()),t.registerLanguage("stan",TIe()),t.registerLanguage("stata",xIe()),t.registerLanguage("step21",CIe()),t.registerLanguage("stylus",OIe()),t.registerLanguage("subunit",RIe()),t.registerLanguage("swift",NIe()),t.registerLanguage("taggerscript",AIe()),t.registerLanguage("yaml",wIe()),t.registerLanguage("tap",IIe()),t.registerLanguage("tcl",DIe()),t.registerLanguage("thrift",MIe()),t.registerLanguage("tp",LIe()),t.registerLanguage("twig",kIe()),t.registerLanguage("typescript",PIe()),t.registerLanguage("vala",BIe()),t.registerLanguage("vbnet",FIe()),t.registerLanguage("vbscript",UIe()),t.registerLanguage("vbscript-html",jIe()),t.registerLanguage("verilog",GIe()),t.registerLanguage("vhdl",qIe()),t.registerLanguage("vim",$Ie()),t.registerLanguage("wasm",zIe()),t.registerLanguage("wren",YIe()),t.registerLanguage("x86asm",HIe()),t.registerLanguage("xl",VIe()),t.registerLanguage("xquery",WIe()),t.registerLanguage("zephir",QIe()),t.HighlightJS=t,t.default=t,gw=t,gw}var XIe=KIe();const b5=sl(XIe);function mX({copied:t,style:e,...n}){return l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:he(18),height:he(18),...e},viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...n,children:t?l.jsxs(l.Fragment,{children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M5 12l5 5l10 -10"})]}):l.jsxs(l.Fragment,{children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"}),l.jsx("path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"})]})})}mX.displayName="@mantine/code-highlight/CopyIcon";var v5={code:"m_5caae6d3",pre:"m_2c47c4fd",header:"m_e58679f3",controls:"m_be7e9c9c",copy:"m_5caae85b",control:"m_d498bab7",file:"m_5cac2e62",files:"m_38d99e51",codeWrapper:"m_9f507240",showCodeButton:"m_c9378bc2",root:"m_5cb1b9c8",fileIcon:"m_b46cddfb"},ZIe={theme:"m_1f5e827e"};function JIe({code:t,language:e,highlightOnClient:n}){const r=b5.getLanguage(e)?e:"plaintext",i=()=>b5.highlight(t.trim(),{language:r}).value,[a,s]=I.useState(!n),[o,c]=I.useState(n?t:i()),d=()=>a?{dangerouslySetInnerHTML:{__html:o}}:{children:t.trim()};return I.useEffect(()=>{n&&(c(i()),s(!0))},[]),I.useEffect(()=>{c(i())},[t]),d}const gX={...v5,root:Tr(v5.root,ZIe.theme)},eDe={copyLabel:"Copy code",copiedLabel:"Copied",language:"tsx",withCopyButton:!0},hP=Me((t,e)=>{const n=Te("CodeHighlight",eDe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,children:d,code:f,copiedLabel:p,copyLabel:m,language:g,withCopyButton:b,highlightOnClient:S,...y}=n,E=ot({name:"CodeHighlight",props:n,classes:gX,className:i,style:a,classNames:r,styles:s,unstyled:o}),T=JIe({code:f,language:g,highlightOnClient:S});return l.jsxs(ve,{...E("root"),ref:e,...y,dir:"ltr",children:[b&&l.jsx(gy,{value:f.trim(),children:({copied:x,copy:O})=>l.jsx(gi,{label:x?p:m,fz:"sm",position:"left",children:l.jsx(Pr,{onClick:O,variant:"none",...E("copy"),children:l.jsx(mX,{copied:x})})})}),l.jsx(Qc,{type:"hover",dir:"ltr",offsetScrollbars:!1,children:l.jsx("pre",{...E("pre"),children:l.jsx("code",{...E("code"),...T()})})})]})});hP.displayName="@mantine/core/CodeHighlight";hP.classes=gX;function tDe(){const{data:{data:{yaml:t}}}=Bi({path:"/status/config"});return l.jsx(hP,{code:t,language:"yaml",miw:"50vw",w:"fit-content",maw:"calc(100vw - 75px)",mx:"auto",mt:"xs"})}const nDe=()=>l.jsx(Y0,{children:l.jsxs(Kf,{title:"Prometheus Agent",icon:qle,children:[l.jsxs(ft,{p:"md",children:["This Prometheus instance is running in ",l.jsx("strong",{children:"agent mode"}),". In this mode, Prometheus is only used to scrape discovered targets and forward the scraped metrics to remote write endpoints."]}),l.jsx(ft,{p:"md",children:"Some features are not available in this mode, such as querying and alerting."})]})}),rDe=()=>{const{colorScheme:t,setColorScheme:e}=lz(),n={style:{width:he(20),height:he(20),display:"block"},stroke:1.5};return l.jsx(Pr,{color:"gray",title:`Switch to ${t==="light"?"dark":t==="dark"?"browser-preferred":"light"} theme`,"aria-label":`Switch to ${t==="light"?"dark":t==="dark"?"browser-preferred":"light"} theme`,size:32,onClick:()=>e(t==="light"?"dark":t==="dark"?"auto":"light"),children:t==="light"?l.jsx(Jle,{...n}):t==="dark"?l.jsx(Zle,{...n}):l.jsx(Kle,{...n})})},iDe=()=>{const{useLocalTime:t,enableQueryHistory:e,enableAutocomplete:n,enableSyntaxHighlighting:r,enableLinter:i,showAnnotations:a,ruleGroupsPerPage:s,alertGroupsPerPage:o}=Si(),c=tu();return l.jsxs(ai,{position:"bottom",withArrow:!0,shadow:"md",children:[l.jsx(ai.Target,{children:l.jsx(Pr,{color:"gray",title:"Settings","aria-label":"Settings",size:32,children:l.jsx(Gle,{style:em})})}),l.jsx(ai.Dropdown,{children:l.jsxs(pt,{align:"flex-start",children:[l.jsxs(Bn,{children:[l.jsx(Xh,{p:"md",legend:"Global settings",children:l.jsx(Vo,{checked:t,label:"Use local time",onChange:d=>c(Nl({useLocalTime:d.currentTarget.checked}))})}),l.jsx(Xh,{p:"md",legend:"Query page settings",children:l.jsxs(Bn,{children:[l.jsx(Vo,{checked:e,label:"Enable query history",onChange:d=>c(Nl({enableQueryHistory:d.currentTarget.checked}))}),l.jsx(Vo,{checked:n,label:"Enable autocomplete",onChange:d=>c(Nl({enableAutocomplete:d.currentTarget.checked}))}),l.jsx(Vo,{checked:r,label:"Enable syntax highlighting",onChange:d=>c(Nl({enableSyntaxHighlighting:d.currentTarget.checked}))}),l.jsx(Vo,{checked:i,label:"Enable linter",onChange:d=>c(Nl({enableLinter:d.currentTarget.checked}))})]})})]}),l.jsxs(Bn,{children:[l.jsx(Xh,{p:"md",legend:"Alerts page settings",children:l.jsxs(Bn,{children:[l.jsx(Vo,{checked:a,label:"Show expanded annotations",onChange:d=>c(Nl({showAnnotations:d.currentTarget.checked}))}),l.jsx(zS,{min:1,allowDecimal:!1,label:"Alert groups per page",value:o,onChange:d=>{typeof d=="number"&&c(Nl({alertGroupsPerPage:d}))}})]})}),l.jsx(Xh,{p:"md",legend:"Rules page settings",children:l.jsx(zS,{min:1,allowDecimal:!1,label:"Rule groups per page",value:s,onChange:d=>{typeof d=="number"&&c(Nl({ruleGroupsPerPage:d}))}})})]})]})})]})},S5="is starting up...",aDe="is shutting down...",sDe="is not ready...",oDe=()=>{const{pathPrefix:t,agentMode:e}=Si(),n=tu(),[r,i]=I.useState(0),[a,s]=I.useState(""),{data:o}=f9({queryKey:["ready",r],retry:!1,refetchOnWindowFocus:!1,gcTime:0,queryFn:async({signal:p})=>{try{const m=await fetch(`${t}/-/ready`,{cache:"no-store",credentials:"same-origin",signal:p});switch(m.status){case 200:return s(""),!0;case 503:return m.headers.get("X-Prometheus-Stopping")==="true"?s(aDe):s(S5),!1;default:throw new Error(m.statusText)}}catch{throw new Error("Unexpected error while fetching ready status")}}}),c=a===S5,{data:d,isSuccess:f}=Bi({path:"/status/walreplay",key:["walreplay",r]});return I.useEffect(()=>{o&&n(Nl({ready:o}))},[o,n]),I.useEffect(()=>{const p=setInterval(()=>i(m=>m+1),1e3);return()=>clearInterval(p)},[]),l.jsx(Ft,{color:"yellow",title:"Prometheus "+(e&&"Agent "||"")+(a||sDe),icon:l.jsx(ta,{}),maw:500,mx:"auto",mt:"lg",children:c&&f&&d&&l.jsxs(Bn,{children:[l.jsxs("strong",{children:["Replaying WAL (",d.data.current,"/",d.data.max,")"]}),l.jsx(vm,{size:"xl",animated:!0,color:"yellow",value:(d.data.current-d.data.min+1)/(d.data.max-d.data.min+1)*100})]})})},Xv=({children:t})=>{const{ready:e}=Si();return e?l.jsx(l.Fragment,{children:t}):l.jsx(oDe,{})},lDe={notifications:[],isConnectionError:!1},_X=I.createContext(lDe),cDe=()=>I.useContext(_X);async function uDe(t,e){const n=t.getReader();let r;for(;!(r=await n.read()).done;)e(r.value)}function dDe(t){let e,n,r,i=!1;return function(s){e===void 0?(e=s,n=0,r=-1):e=hDe(e,s);const o=e.length;let c=0;for(;n<o;){i&&(e[n]===10&&(c=++n),i=!1);let d=-1;for(;n<o&&d===-1;++n)switch(e[n]){case 58:r===-1&&(r=n-c);break;case 13:i=!0;case 10:d=n;break}if(d===-1)break;t(e.subarray(c,d),r),c=n,r=-1}c===o?e=void 0:c!==0&&(e=e.subarray(c),n-=c)}}function fDe(t,e,n){let r=E5();const i=new TextDecoder;return function(s,o){if(s.length===0)n==null||n(r),r=E5();else if(o>0){const c=i.decode(s.subarray(0,o)),d=o+(s[o+1]===32?2:1),f=i.decode(s.subarray(d));switch(c){case"data":r.data=r.data?r.data+`
`+f:f;break;case"event":r.event=f;break;case"id":t(r.id=f);break;case"retry":const p=parseInt(f,10);isNaN(p)||e(r.retry=p);break}}}}function hDe(t,e){const n=new Uint8Array(t.length+e.length);return n.set(t),n.set(e,t.length),n}function E5(){return{data:"",event:"",id:"",retry:void 0}}var pDe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const DD="text/event-stream",mDe=1e3,y5="last-event-id";function gDe(t,e){var{signal:n,headers:r,onopen:i,onmessage:a,onclose:s,onerror:o,openWhenHidden:c,fetch:d}=e,f=pDe(e,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((p,m)=>{const g=Object.assign({},r);g.accept||(g.accept=DD);let b;function S(){b.abort(),document.hidden||C()}c||document.addEventListener("visibilitychange",S);let y=mDe,E=0;function T(){document.removeEventListener("visibilitychange",S),window.clearTimeout(E),b.abort()}n==null||n.addEventListener("abort",()=>{T(),p()});const x=d??window.fetch,O=i??_De;async function C(){var N;b=new AbortController;try{const w=await x(t,Object.assign(Object.assign({},f),{headers:g,signal:b.signal}));await O(w),await uDe(w.body,dDe(fDe(D=>{D?g[y5]=D:delete g[y5]},D=>{y=D},a))),s==null||s(),T(),p()}catch(w){if(!b.signal.aborted)try{const D=(N=o==null?void 0:o(w))!==null&&N!==void 0?N:y;window.clearTimeout(E),E=window.setTimeout(C,D)}catch(D){T(),m(D)}}}C()})}function _De(t){const e=t.headers.get("content-type");if(!(e!=null&&e.startsWith(DD)))throw new Error(`Expected content-type to be ${DD}, Actual: ${e}`)}const bDe=({children:t})=>{const{pathPrefix:e}=Si(),[n,r]=I.useState([]),[i,a]=I.useState(!1),[s,o]=I.useState(!1),{data:c,isError:d}=_d({path:"/notifications",enabled:s,refetchInterval:1e4});return I.useEffect(()=>{c&&c.data&&r(c.data),a(d)},[c,d]),I.useEffect(()=>{const f=new AbortController;return gDe(`${e}/api/v1/notifications/live`,{signal:f.signal,async onopen(p){if(p.ok)p.status===200?(r([]),a(!1)):p.status===204&&(f.abort(),o(!0));else throw a(!0),new Error(`Unexpected response: ${p.status} ${p.statusText}`)},onmessage(p){const m=JSON.parse(p.data);r(g=>{const b=[...g.filter(S=>S.text!==m.text)];return m.active&&b.push(m),b})},onclose(){throw new Error("Server closed the connection")},onerror(){return a(!0),5e3}}),()=>{f.abort()}},[e]),l.jsx(_X.Provider,{value:{notifications:n,isConnectionError:i},children:t})},vDe=()=>{const{notifications:t,isConnectionError:e}=cDe(),{useLocalTime:n}=Si();return t.length===0&&!e?null:l.jsx(WM,{color:"red",size:16,label:e?"!":t.length,children:l.jsxs(ai,{position:"bottom-end",shadow:"md",withArrow:!0,children:[l.jsx(ai.Target,{children:l.jsx(Pr,{color:"gray",title:"Notifications","aria-label":"Notifications",size:32,children:l.jsx(Mle,{style:em})})}),l.jsx(ai.Dropdown,{children:l.jsxs(Bn,{gap:"xs",children:[l.jsx(ft,{fw:700,size:"xs",c:"dimmed",ta:"center",children:"Notifications"}),l.jsx(Qc.Autosize,{mah:200,children:e?l.jsx(kr,{p:"xs",color:"red",children:l.jsxs(pt,{wrap:"nowrap",children:[l.jsx(kle,{color:"red",style:{width:he(20),height:he(20)}}),l.jsxs(Bn,{gap:"0",children:[l.jsx(ft,{size:"sm",fw:500,children:"Real-time notifications interrupted."}),l.jsx(ft,{size:"xs",c:"dimmed",children:"Please refresh the page or check your connection."})]})]})}):t.length===0?l.jsx(ft,{ta:"center",c:"dimmed",children:"No notifications"}):t.map((r,i)=>l.jsx(kr,{p:"xs",children:l.jsxs(pt,{wrap:"nowrap",align:"flex-start",children:[l.jsx(ta,{color:"red",style:{width:he(20),height:he(20),marginTop:he(3)}}),l.jsxs(Bn,{maw:250,gap:5,children:[l.jsx(ft,{size:"sm",fw:500,children:r.text}),l.jsx(ft,{size:"xs",c:"dimmed",children:Lf(new Date(r.date).valueOf()/1e3,n)})]})]})},i))})]})})]})})},SDe=({children:t})=>{var e;const{navigator:n}=I.useContext(po),r=TL(),i=(e=I.useContext(eh))==null?void 0:e.router,a=Ql();return t({replace(o){r(o.search||"?",{replace:!0,state:o.state})},push(o){r(o.search||"?",{replace:!1,state:o.state})},get location(){var o,c,d;return(d=(c=(o=i==null?void 0:i.state)==null?void 0:o.location)!=null?c:n==null?void 0:n.location)!=null?d:a}})},bX="serviceDiscovery.collapsedPools",EDe={collapsedPools:Lo(bX,[]),showLimitAlert:!1},vX=qy({name:"serviceDiscoveryPage",initialState:EDe,reducers:{setCollapsedPools:(t,{payload:e})=>{t.collapsedPools=e},setShowLimitAlert:(t,{payload:e})=>{t.showLimitAlert=e}}}),{setCollapsedPools:pP,setShowLimitAlert:MD}=vX.actions,yDe=vX.reducer,TDe=new DT({shouldSort:!0,indexedKeys:["labels","discoveredLabels",["discoveredLabels",/.*/],["labels",/.*/]]}),xDe=new DT({shouldSort:!0,indexedKeys:["discoveredLabels",["discoveredLabels",/.*/]]}),CDe=(t,e,n,r,i)=>{const a={};for(const c of t)a[c]={targets:[],active:0,total:0};for(const c of e){const d=a[c.scrapePool];if(!d)throw new Error("Received target information for an unknown scrape pool, likely the list of scrape pools has changed. Please reload the page.");d.active++,d.total++}const s=i.length!==0&&!i.includes("active")?[]:r===""?e:TDe.filter(r,e).map(c=>c.original);for(const c of s)a[c.scrapePool].targets.push({discoveredLabels:c.discoveredLabels,labels:c.labels,isDropped:!1});for(const c of n){const d=a[c.scrapePool];if(!d)throw new Error("Received target information for an unknown scrape pool, likely the list of scrape pools has changed. Please reload the page.");d.total++}const o=i.length!==0&&!i.includes("dropped")?[]:r===""?n:xDe.filter(r,n).map(c=>c.original);for(const c of o)a[c.scrapePool].targets.push({discoveredLabels:c.discoveredLabels,isDropped:!0,labels:{}});return a},ODe=({poolNames:t,selectedPool:e,stateFilter:n,searchFilter:r})=>{const i=tu(),[a,s]=WE({key:"serviceDiscoveryPage.showEmptyPools",defaultValue:!1}),{data:{data:{activeTargets:o,droppedTargets:c}}}=Bi({path:"/targets",params:{scrapePool:e===null?"":e}}),{collapsedPools:d,showLimitAlert:f}=Kl(S=>S.serviceDiscoveryPage),[p]=VE(r,250),m=I.useMemo(()=>CDe(e?[e]:t,o,c,p,n),[e,t,o,c,p,n]),g=Object.keys(m),b=a?g:g.filter(S=>m[S].targets.length!==0);return l.jsxs(Bn,{children:[g.length===0?l.jsx(Ft,{title:"No scrape pools found",icon:l.jsx(pr,{}),children:"No scrape pools found."}):!a&&g.length!==b.length&&l.jsxs(Ft,{title:"Hiding pools with no matching targets",icon:l.jsx(pr,{}),children:["Hiding ",g.length-b.length," empty pools due to filters or no targets.",l.jsx(vi,{ml:"md",fz:"1em",onClick:()=>s(!0),children:"Show empty pools"})]}),f&&l.jsxs(Ft,{title:"Found many pools, showing only one",icon:l.jsx(pr,{}),withCloseButton:!0,onClose:()=>i(MD(!1)),children:["There are more than ",SX," scrape pools. Showing only the first one. Use the dropdown to select a different pool."]}),l.jsx(mr,{multiple:!0,variant:"separated",value:g.filter(S=>!d.includes(S)),onChange:S=>i(pP(g.filter(y=>!S.includes(y)))),children:b.map(S=>{const y=m[S];return l.jsxs(mr.Item,{value:S,children:[l.jsx(mr.Control,{children:l.jsxs(pt,{wrap:"nowrap",justify:"space-between",mr:"lg",children:[l.jsx(ft,{children:S}),l.jsxs(pt,{gap:"xs",children:[l.jsxs(ft,{c:"gray.6",children:[y.active," / ",y.total]}),l.jsx(Ly,{size:25,thickness:5,sections:y.total===0?[]:[{value:y.active/y.total*100,color:"green.4"},{value:(y.total-y.active)/y.total*100,color:"blue.6"}]})]})]})}),l.jsx(mr.Panel,{children:y.total===0?l.jsxs(Ft,{title:"No targets",icon:l.jsx(pr,{}),children:["No targets in this scrape pool.",l.jsx(vi,{ml:"md",fz:"1em",onClick:()=>s(!1),children:"Hide empty pools"})]}):y.targets.length===0?l.jsxs(Ft,{title:"No matching targets",icon:l.jsx(pr,{}),children:["No targets in this pool match your filter criteria (omitted"," ",y.total," filtered targets).",l.jsx(vi,{ml:"md",fz:"1em",onClick:()=>s(!1),children:"Hide empty pools"})]}):l.jsx(z0,{allItems:y.targets,child:({items:E})=>l.jsxs(ie,{children:[l.jsx(ie.Thead,{children:l.jsxs(ie.Tr,{children:[l.jsx(ie.Th,{w:"50%",children:"Discovered labels"}),l.jsx(ie.Th,{w:"50%",children:"Target labels"})]})}),l.jsx(ie.Tbody,{children:E.map((T,x)=>l.jsxs(ie.Tr,{children:[l.jsx(ie.Td,{py:"lg",valign:"top",children:l.jsx(sm,{labels:T.discoveredLabels,wrapper:Bn})}),l.jsx(ie.Td,{py:"lg",valign:T.isDropped?"middle":"top",children:T.isDropped?l.jsx(ft,{c:"blue.6",fw:"bold",children:"dropped due to relabeling rules"}):l.jsx(sm,{labels:T.labels,wrapper:Bn})})]},x))})]})})})]},S)})})]})},SX=20;function RDe(){const{data:{data:{scrapePools:t}}}=Bi({path:"/scrape_pools"}),e=tu(),[n,r]=$l("pool",Qf),[i,a]=$l("state",ld(uP,[])),[s,o]=$l("search",ld(Qf,"")),{collapsedPools:c,showLimitAlert:d}=Kl(p=>p.serviceDiscoveryPage),f=t.length>SX&&n===void 0;return f&&(r(t[0]),e(MD(!0))),l.jsxs(l.Fragment,{children:[l.jsxs(pt,{mb:"md",mt:"xs",children:[l.jsx(Sm,{placeholder:"Select scrape pool",data:[{label:"All pools",value:""},...t],value:f&&t[0]||n||null,onChange:p=>{r(p),d&&e(MD(!1))},searchable:!0}),l.jsx(cP,{options:["active","dropped"],optionClass:p=>p==="active"?Nn.healthOk:Nn.healthInfo,placeholder:"Filter by state",values:(i==null?void 0:i.filter(p=>p!==null))||[],onChange:p=>a(p)}),l.jsx(eu,{flex:1,leftSection:l.jsx(Jf,{style:Nm}),placeholder:"Filter by labels",value:s||"",onChange:p=>o(p.currentTarget.value)}),l.jsx(Pr,{size:"input-sm",title:c.length>0?"Expand all pools":"Collapse all pools",variant:"light",onClick:()=>e(pP(c.length>0?[]:t)),children:c.length>0?l.jsx(PH,{style:FE}):l.jsx(kH,{style:FE})})]}),l.jsx(tm,{title:"Error showing target pools",children:l.jsx(I.Suspense,{fallback:l.jsx(ve,{mt:"lg",children:Array.from(Array(10),(p,m)=>l.jsx(nl,{height:40,mb:15,width:1e3,mx:"auto"},m))}),children:l.jsx(ODe,{poolNames:t,selectedPool:f&&t[0]||n||null,stateFilter:i,searchFilter:s})})},location.pathname)]})}function NDe(){const{data:{data:{activeAlertmanagers:t,droppedAlertmanagers:e}}}=Bi({path:"/alertmanagers"});return l.jsxs(Y0,{children:[l.jsx(Kf,{title:"Active Alertmanagers",icon:vL,children:t.length===0?l.jsx(Ft,{title:"No active alertmanagers",icon:l.jsx(pr,{}),children:"No active alertmanagers found."}):l.jsx(ie,{layout:"fixed",children:l.jsx(ie.Tbody,{children:t.map(n=>l.jsx(ie.Tr,{children:l.jsx(ie.Td,{children:l.jsx(ID,{endpoint:n.url,globalUrl:n.url})})},n.url))})})}),l.jsx(Kf,{title:"Dropped Alertmanagers",icon:Sle,children:e.length===0?l.jsx(Ft,{title:"No dropped alertmanagers",icon:l.jsx(pr,{}),children:"No dropped alertmanagers found."}):l.jsx(ie,{layout:"fixed",children:l.jsx(ie.Tbody,{children:e.map(n=>l.jsx(ie.Tr,{children:l.jsx(ie.Td,{children:l.jsx(ID,{endpoint:n.url,globalUrl:n.url})})},n.url))})})})]})}const ADe=new Fue,wDe=[{title:"Query",path:"/query",icon:l.jsx(Jf,{style:ka}),element:l.jsx(tX,{}),inAgentMode:!1},{title:"Alerts",path:"/alerts",icon:l.jsx(Qle,{style:ka}),element:l.jsx(dX,{}),inAgentMode:!1}],EX=[{title:"Target health",path:"/targets",icon:l.jsx(LH,{style:ka}),element:l.jsx(fNe,{}),inAgentMode:!0},{title:"Rule health",path:"/rules",icon:l.jsx(FH,{style:ka}),element:l.jsx(rNe,{}),inAgentMode:!1},{title:"Service discovery",path:"/service-discovery",icon:l.jsx(Rle,{style:ka}),element:l.jsx(RDe,{}),inAgentMode:!0}],yX=[{title:"Runtime & build information",path:"/status",icon:l.jsx(pr,{style:ka}),element:l.jsx(hNe,{}),inAgentMode:!0},{title:"TSDB status",path:"/tsdb-status",icon:l.jsx(Nle,{style:ka}),element:l.jsx(pNe,{}),inAgentMode:!1},{title:"Command-line flags",path:"/flags",icon:l.jsx(Ile,{style:ka}),element:l.jsx(bNe,{}),inAgentMode:!0},{title:"Configuration",path:"/config",icon:l.jsx(Ule,{style:ka}),element:l.jsx(tDe,{}),inAgentMode:!0},{title:"Alertmanager discovery",path:"/alertmanager-discovery",icon:l.jsx(vL,{style:ka}),element:l.jsx(NDe,{}),inAgentMode:!1}],T5=[...EX,...yX],IDe={colors:{"codebox-bg":["#f5f5f5","#e7e7e7","#cdcdcd","#b2b2b2","#9a9a9a","#8b8b8b","#848484","#717171","#656565","#575757"]}},Zv="md";function DDe(){const[t,{toggle:e}]=UD(),{agentMode:n,consolesLink:r,pathPrefix:i}=Si(),a=l.jsxs(l.Fragment,{children:[r&&l.jsx(_a,{component:"a",href:r,className:tv.link,leftSection:l.jsx(Ale,{style:ka}),px:Zv,children:"Consoles"}),wDe.filter(o=>!n||o.inAgentMode).map(o=>l.jsx(_a,{component:Hh,to:o.path,className:tv.link,leftSection:o.icon,px:Zv,children:o.title},o.path)),l.jsxs(Kn,{shadow:"md",width:240,children:[l.jsxs(TF,{children:[T5.filter(o=>!n||o.inAgentMode).map(o=>l.jsx(Du,{path:o.path,element:l.jsx(Kn.Target,{children:l.jsxs(_a,{component:Hh,to:o.path,className:tv.link,leftSection:o.icon,rightSection:l.jsx(YS,{style:ka}),px:Zv,children:["Status ",l.jsx(wH,{style:ka})," ",o.title]})})},o.path)),l.jsx(Du,{path:"*",element:l.jsx(Kn.Target,{children:l.jsx(_a,{component:Hh,to:"/",className:tv.link,leftSection:l.jsx(jle,{style:ka}),rightSection:l.jsx(YS,{style:ka}),onClick:o=>{o.preventDefault()},px:Zv,children:"Status"})})})]}),l.jsxs(Kn.Dropdown,{children:[l.jsx(Kn.Label,{children:"Monitoring status"}),EX.filter(o=>!n||o.inAgentMode).map(o=>l.jsx(Kn.Item,{component:Hh,to:o.path,leftSection:o.icon,children:o.title},o.path)),l.jsx(Kn.Divider,{}),l.jsx(Kn.Label,{children:"Server status"}),yX.filter(o=>!n||o.inAgentMode).map(o=>l.jsx(Kn.Item,{component:Hh,to:o.path,leftSection:o.icon,children:o.title},o.path))]})]})]}),s=l.jsxs(l.Fragment,{children:[l.jsx(rDe,{}),l.jsx(vDe,{}),l.jsx(iDe,{}),l.jsx(Pr,{component:"a",href:"https://prometheus.io/docs/prometheus/latest/getting_started/",target:"_blank",color:"gray",title:"Documentation","aria-label":"Documentation",size:he(32),children:l.jsx(yle,{style:em})})]});return l.jsx(hue,{basename:i,children:l.jsx(D1e,{adapter:SDe,children:l.jsxs(sz,{defaultColorScheme:"auto",theme:IDe,children:[l.jsx(iu,{position:"top-right"}),l.jsx(que,{client:ADe,children:l.jsxs(Zs,{header:{height:56},navbar:{width:300,breakpoint:"sm",collapsed:{desktop:!0,mobile:!t}},padding:"md",children:[l.jsxs(bDe,{children:[l.jsx(Zs.Header,{bg:"rgb(65, 73, 81)",c:"#fff",children:l.jsxs(pt,{h:"100%",px:"md",wrap:"nowrap",children:[l.jsxs(pt,{style:{flex:1},justify:"space-between",wrap:"nowrap",children:[l.jsxs(pt,{gap:40,wrap:"nowrap",children:[l.jsx(NL,{to:"/",style:{textDecoration:"none",color:"white"},children:l.jsxs(pt,{gap:10,wrap:"nowrap",children:[l.jsx("img",{src:eJ,height:30}),l.jsx(ft,{hiddenFrom:"sm",fz:20,children:"Prometheus"}),l.jsx(ft,{visibleFrom:"md",fz:20,children:"Prometheus"}),l.jsx(ft,{fz:20,children:n&&"Agent"})]})}),l.jsx(pt,{gap:12,visibleFrom:"sm",wrap:"nowrap",children:a})]}),l.jsx(pt,{visibleFrom:"xs",wrap:"nowrap",gap:"xs",children:s})]}),l.jsx($M,{opened:t,onClick:e,hiddenFrom:"sm",size:"sm",color:"gray.2"})]})}),l.jsxs(Zs.Navbar,{py:"md",px:4,bg:"rgb(65, 73, 81)",c:"#fff",children:[a,l.jsx(pt,{mt:"md",hiddenFrom:"xs",justify:"center",children:s})]})]}),l.jsx(Zs.Main,{children:l.jsx(tm,{children:l.jsx(I.Suspense,{fallback:l.jsx(ve,{mt:"lg",children:Array.from(Array(10),(o,c)=>l.jsx(nl,{height:40,mb:15,width:1e3,mx:"auto"},c))}),children:l.jsxs(TF,{children:[l.jsx(Du,{path:"/",element:l.jsx(qce,{to:n?"/agent":"/query",replace:!0})}),n?l.jsx(Du,{path:"/agent",element:l.jsx(Xv,{children:l.jsx(nDe,{})})}):l.jsxs(l.Fragment,{children:[l.jsx(Du,{path:"/query",element:l.jsx(Xv,{children:l.jsx(tX,{})})}),l.jsx(Du,{path:"/alerts",element:l.jsx(Xv,{children:l.jsx(dX,{})})})]}),T5.map(o=>l.jsx(Du,{path:o.path,element:l.jsx(Xv,{children:o.element})},o.path))]})})},location.pathname)})]})})]})})})}const MT=(t,e)=>{localStorage.setItem(t,JSON.stringify(e))},TX=gfe(),LT=TX.startListening.withTypes();LT({actionCreator:fP,effect:({payload:t})=>{MT(fX,t)}});LT({actionCreator:pP,effect:({payload:t})=>{MT(bX,t)}});LT({actionCreator:G9,effect:(t,{getState:e})=>{MT(U9,e().queryPage.queryHistory)}});LT({actionCreator:Nl,effect:({payload:t})=>{Object.entries(t).forEach(([e,n])=>{switch(e){case"useLocalTime":case"enableQueryHistory":case"enableAutocomplete":case"enableSyntaxHighlighting":case"enableLinter":case"showAnnotations":case"alertGroupsPerPage":case"ruleGroupsPerPage":return MT(`settings.${e}`,n)}})}});const MDe=Hde({reducer:{settings:qhe,queryPage:Lfe,targetsPage:aNe,serviceDiscoveryPage:yDe},middleware:t=>t().prepend(TX.middleware)});ZZ.createRoot(document.getElementById("root")).render(l.jsx(On.StrictMode,{children:l.jsx(gde,{store:MDe,children:l.jsx(DDe,{})})}));
