@llamaindex/workflow-debugger 0.1.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.js DELETED
@@ -1,294 +0,0 @@
1
- var mA=t=>{throw TypeError(t)};var sh=(t,e,n)=>e.has(t)||mA("Cannot "+n);var ut=(t,e,n)=>(sh(t,e,"read from private field"),n?n.call(t):e.get(t)),Ar=(t,e,n)=>e.has(t)?mA("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),bn=(t,e,n,r)=>(sh(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),_r=(t,e,n)=>(sh(t,e,"access private method"),n);var bA=(t,e,n,r)=>({set _(i){bn(t,e,i,n)},get _(){return ut(t,e,r)}});function mB(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 o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).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)}})();var td=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var lh={exports:{}},Zs={},ch={exports:{}},$e={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var yA;function bB(){if(yA)return $e;yA=1;var t=Symbol.for("react.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.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;function g($){return $===null||typeof $!="object"?null:($=f&&$[f]||$["@@iterator"],typeof $=="function"?$:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,b={};function E($,V,X){this.props=$,this.context=V,this.refs=b,this.updater=X||m}E.prototype.isReactComponent={},E.prototype.setState=function($,V){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,V,"setState")},E.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function S(){}S.prototype=E.prototype;function _($,V,X){this.props=$,this.context=V,this.refs=b,this.updater=X||m}var w=_.prototype=new S;w.constructor=_,v(w,E.prototype),w.isPureReactComponent=!0;var A=Array.isArray,k=Object.prototype.hasOwnProperty,R={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function O($,V,X){var Q,te={},ie=null,W=null;if(V!=null)for(Q in V.ref!==void 0&&(W=V.ref),V.key!==void 0&&(ie=""+V.key),V)k.call(V,Q)&&!I.hasOwnProperty(Q)&&(te[Q]=V[Q]);var Z=arguments.length-2;if(Z===1)te.children=X;else if(1<Z){for(var ne=Array(Z),se=0;se<Z;se++)ne[se]=arguments[se+2];te.children=ne}if($&&$.defaultProps)for(Q in Z=$.defaultProps,Z)te[Q]===void 0&&(te[Q]=Z[Q]);return{$$typeof:t,type:$,key:ie,ref:W,props:te,_owner:R.current}}function L($,V){return{$$typeof:t,type:$.type,key:V,ref:$.ref,props:$.props,_owner:$._owner}}function F($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function j($){var V={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(X){return V[X]})}var H=/\/+/g;function G($,V){return typeof $=="object"&&$!==null&&$.key!=null?j(""+$.key):V.toString(36)}function D($,V,X,Q,te){var ie=typeof $;(ie==="undefined"||ie==="boolean")&&($=null);var W=!1;if($===null)W=!0;else switch(ie){case"string":case"number":W=!0;break;case"object":switch($.$$typeof){case t:case e:W=!0}}if(W)return W=$,te=te(W),$=Q===""?"."+G(W,0):Q,A(te)?(X="",$!=null&&(X=$.replace(H,"$&/")+"/"),D(te,V,X,"",function(se){return se})):te!=null&&(F(te)&&(te=L(te,X+(!te.key||W&&W.key===te.key?"":(""+te.key).replace(H,"$&/")+"/")+$)),V.push(te)),1;if(W=0,Q=Q===""?".":Q+":",A($))for(var Z=0;Z<$.length;Z++){ie=$[Z];var ne=Q+G(ie,Z);W+=D(ie,V,X,ne,te)}else if(ne=g($),typeof ne=="function")for($=ne.call($),Z=0;!(ie=$.next()).done;)ie=ie.value,ne=Q+G(ie,Z++),W+=D(ie,V,X,ne,te);else if(ie==="object")throw V=String($),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return W}function z($,V,X){if($==null)return $;var Q=[],te=0;return D($,Q,"","",function(ie){return V.call(X,ie,te++)}),Q}function B($){if($._status===-1){var V=$._result;V=V(),V.then(function(X){($._status===0||$._status===-1)&&($._status=1,$._result=X)},function(X){($._status===0||$._status===-1)&&($._status=2,$._result=X)}),$._status===-1&&($._status=0,$._result=V)}if($._status===1)return $._result.default;throw $._result}var U={current:null},M={transition:null},q={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:M,ReactCurrentOwner:R};function Y(){throw Error("act(...) is not supported in production builds of React.")}return $e.Children={map:z,forEach:function($,V,X){z($,function(){V.apply(this,arguments)},X)},count:function($){var V=0;return z($,function(){V++}),V},toArray:function($){return z($,function(V){return V})||[]},only:function($){if(!F($))throw Error("React.Children.only expected to receive a single React element child.");return $}},$e.Component=E,$e.Fragment=n,$e.Profiler=i,$e.PureComponent=_,$e.StrictMode=r,$e.Suspense=u,$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,$e.act=Y,$e.cloneElement=function($,V,X){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var Q=v({},$.props),te=$.key,ie=$.ref,W=$._owner;if(V!=null){if(V.ref!==void 0&&(ie=V.ref,W=R.current),V.key!==void 0&&(te=""+V.key),$.type&&$.type.defaultProps)var Z=$.type.defaultProps;for(ne in V)k.call(V,ne)&&!I.hasOwnProperty(ne)&&(Q[ne]=V[ne]===void 0&&Z!==void 0?Z[ne]:V[ne])}var ne=arguments.length-2;if(ne===1)Q.children=X;else if(1<ne){Z=Array(ne);for(var se=0;se<ne;se++)Z[se]=arguments[se+2];Q.children=Z}return{$$typeof:t,type:$.type,key:te,ref:ie,props:Q,_owner:W}},$e.createContext=function($){return $={$$typeof:o,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:a,_context:$},$.Consumer=$},$e.createElement=O,$e.createFactory=function($){var V=O.bind(null,$);return V.type=$,V},$e.createRef=function(){return{current:null}},$e.forwardRef=function($){return{$$typeof:l,render:$}},$e.isValidElement=F,$e.lazy=function($){return{$$typeof:p,_payload:{_status:-1,_result:$},_init:B}},$e.memo=function($,V){return{$$typeof:d,type:$,compare:V===void 0?null:V}},$e.startTransition=function($){var V=M.transition;M.transition={};try{$()}finally{M.transition=V}},$e.unstable_act=Y,$e.useCallback=function($,V){return U.current.useCallback($,V)},$e.useContext=function($){return U.current.useContext($)},$e.useDebugValue=function(){},$e.useDeferredValue=function($){return U.current.useDeferredValue($)},$e.useEffect=function($,V){return U.current.useEffect($,V)},$e.useId=function(){return U.current.useId()},$e.useImperativeHandle=function($,V,X){return U.current.useImperativeHandle($,V,X)},$e.useInsertionEffect=function($,V){return U.current.useInsertionEffect($,V)},$e.useLayoutEffect=function($,V){return U.current.useLayoutEffect($,V)},$e.useMemo=function($,V){return U.current.useMemo($,V)},$e.useReducer=function($,V,X){return U.current.useReducer($,V,X)},$e.useRef=function($){return U.current.useRef($)},$e.useState=function($){return U.current.useState($)},$e.useSyncExternalStore=function($,V,X){return U.current.useSyncExternalStore($,V,X)},$e.useTransition=function(){return U.current.useTransition()},$e.version="18.3.1",$e}var vA;function Bl(){return vA||(vA=1,ch.exports=bB()),ch.exports}/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var EA;function yB(){if(EA)return Zs;EA=1;var t=Bl(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(l,u,d){var p,f={},g=null,m=null;d!==void 0&&(g=""+d),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(m=u.ref);for(p in u)r.call(u,p)&&!a.hasOwnProperty(p)&&(f[p]=u[p]);if(l&&l.defaultProps)for(p in u=l.defaultProps,u)f[p]===void 0&&(f[p]=u[p]);return{$$typeof:e,type:l,key:g,ref:m,props:f,_owner:i.current}}return Zs.Fragment=n,Zs.jsx=o,Zs.jsxs=o,Zs}var wA;function vB(){return wA||(wA=1,lh.exports=yB()),lh.exports}var T=vB(),C=Bl();const Me=Fl(C),Tw=mB({__proto__:null,default:Me},[C]);var gu={},uh={exports:{}},yn={},dh={exports:{}},ph={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var SA;function EB(){return SA||(SA=1,function(t){function e(M,q){var Y=M.length;M.push(q);e:for(;0<Y;){var $=Y-1>>>1,V=M[$];if(0<i(V,q))M[$]=q,M[Y]=V,Y=$;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var q=M[0],Y=M.pop();if(Y!==q){M[0]=Y;e:for(var $=0,V=M.length,X=V>>>1;$<X;){var Q=2*($+1)-1,te=M[Q],ie=Q+1,W=M[ie];if(0>i(te,Y))ie<V&&0>i(W,te)?(M[$]=W,M[ie]=Y,$=ie):(M[$]=te,M[Q]=Y,$=Q);else if(ie<V&&0>i(W,Y))M[$]=W,M[ie]=Y,$=ie;else break e}}return q}function i(M,q){var Y=M.sortIndex-q.sortIndex;return Y!==0?Y:M.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var u=[],d=[],p=1,f=null,g=3,m=!1,v=!1,b=!1,E=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(M){for(var q=n(d);q!==null;){if(q.callback===null)r(d);else if(q.startTime<=M)r(d),q.sortIndex=q.expirationTime,e(u,q);else break;q=n(d)}}function A(M){if(b=!1,w(M),!v)if(n(u)!==null)v=!0,B(k);else{var q=n(d);q!==null&&U(A,q.startTime-M)}}function k(M,q){v=!1,b&&(b=!1,S(O),O=-1),m=!0;var Y=g;try{for(w(q),f=n(u);f!==null&&(!(f.expirationTime>q)||M&&!j());){var $=f.callback;if(typeof $=="function"){f.callback=null,g=f.priorityLevel;var V=$(f.expirationTime<=q);q=t.unstable_now(),typeof V=="function"?f.callback=V:f===n(u)&&r(u),w(q)}else r(u);f=n(u)}if(f!==null)var X=!0;else{var Q=n(d);Q!==null&&U(A,Q.startTime-q),X=!1}return X}finally{f=null,g=Y,m=!1}}var R=!1,I=null,O=-1,L=5,F=-1;function j(){return!(t.unstable_now()-F<L)}function H(){if(I!==null){var M=t.unstable_now();F=M;var q=!0;try{q=I(!0,M)}finally{q?G():(R=!1,I=null)}}else R=!1}var G;if(typeof _=="function")G=function(){_(H)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,z=D.port2;D.port1.onmessage=H,G=function(){z.postMessage(null)}}else G=function(){E(H,0)};function B(M){I=M,R||(R=!0,G())}function U(M,q){O=E(function(){M(t.unstable_now())},q)}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(M){M.callback=null},t.unstable_continueExecution=function(){v||m||(v=!0,B(k))},t.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<M?Math.floor(1e3/M):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_getFirstCallbackNode=function(){return n(u)},t.unstable_next=function(M){switch(g){case 1:case 2:case 3:var q=3;break;default:q=g}var Y=g;g=q;try{return M()}finally{g=Y}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(M,q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var Y=g;g=M;try{return q()}finally{g=Y}},t.unstable_scheduleCallback=function(M,q,Y){var $=t.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?$+Y:$):Y=$,M){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=Y+V,M={id:p++,callback:q,priorityLevel:M,startTime:Y,expirationTime:V,sortIndex:-1},Y>$?(M.sortIndex=Y,e(d,M),n(u)===null&&M===n(d)&&(b?(S(O),O=-1):b=!0,U(A,Y-$))):(M.sortIndex=V,e(u,M),v||m||(v=!0,B(k))),M},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(M){var q=g;return function(){var Y=g;g=q;try{return M.apply(this,arguments)}finally{g=Y}}}}(ph)),ph}var xA;function wB(){return xA||(xA=1,dh.exports=EB()),dh.exports}/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var AA;function SB(){if(AA)return yn;AA=1;var t=Bl(),e=wB();function n(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,h=1;h<arguments.length;h++)c+="&args[]="+encodeURIComponent(arguments[h]);return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function a(s,c){o(s,c),o(s+"Capture",c)}function o(s,c){for(i[s]=c,s=0;s<c.length;s++)r.add(c[s])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},f={};function g(s){return u.call(f,s)?!0:u.call(p,s)?!1:d.test(s)?f[s]=!0:(p[s]=!0,!1)}function m(s,c,h,y){if(h!==null&&h.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return y?!1:h!==null?!h.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function v(s,c,h,y){if(c===null||typeof c>"u"||m(s,c,h,y))return!0;if(y)return!1;if(h!==null)switch(h.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function b(s,c,h,y,x,N,P){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=y,this.attributeNamespace=x,this.mustUseProperty=h,this.propertyName=s,this.type=c,this.sanitizeURL=N,this.removeEmptyString=P}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){E[s]=new b(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];E[c]=new b(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){E[s]=new b(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){E[s]=new b(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){E[s]=new b(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){E[s]=new b(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){E[s]=new b(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){E[s]=new b(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){E[s]=new b(s,5,!1,s.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function _(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var c=s.replace(S,_);E[c]=new b(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(S,_);E[c]=new b(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(S,_);E[c]=new b(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){E[s]=new b(s,1,!1,s.toLowerCase(),null,!1,!1)}),E.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){E[s]=new b(s,1,!1,s.toLowerCase(),null,!0,!0)});function w(s,c,h,y){var x=E.hasOwnProperty(c)?E[c]:null;(x!==null?x.type!==0:y||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(v(c,h,x,y)&&(h=null),y||x===null?g(c)&&(h===null?s.removeAttribute(c):s.setAttribute(c,""+h)):x.mustUseProperty?s[x.propertyName]=h===null?x.type===3?!1:"":h:(c=x.attributeName,y=x.attributeNamespace,h===null?s.removeAttribute(c):(x=x.type,h=x===3||x===4&&h===!0?"":""+h,y?s.setAttributeNS(y,c,h):s.setAttribute(c,h))))}var A=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),R=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),j=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),M=Symbol.iterator;function q(s){return s===null||typeof s!="object"?null:(s=M&&s[M]||s["@@iterator"],typeof s=="function"?s:null)}var Y=Object.assign,$;function V(s){if($===void 0)try{throw Error()}catch(h){var c=h.stack.trim().match(/\n( *(at )?)/);$=c&&c[1]||""}return`
34
- `+$+s}var X=!1;function Q(s,c){if(!s||X)return"";X=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(oe){var y=oe}Reflect.construct(s,[],c)}else{try{c.call()}catch(oe){y=oe}s.call(c.prototype)}else{try{throw Error()}catch(oe){y=oe}s()}}catch(oe){if(oe&&y&&typeof oe.stack=="string"){for(var x=oe.stack.split(`
35
- `),N=y.stack.split(`
36
- `),P=x.length-1,K=N.length-1;1<=P&&0<=K&&x[P]!==N[K];)K--;for(;1<=P&&0<=K;P--,K--)if(x[P]!==N[K]){if(P!==1||K!==1)do if(P--,K--,0>K||x[P]!==N[K]){var J=`
37
- `+x[P].replace(" at new "," at ");return s.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",s.displayName)),J}while(1<=P&&0<=K);break}}}finally{X=!1,Error.prepareStackTrace=h}return(s=s?s.displayName||s.name:"")?V(s):""}function te(s){switch(s.tag){case 5:return V(s.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return s=Q(s.type,!1),s;case 11:return s=Q(s.type.render,!1),s;case 1:return s=Q(s.type,!0),s;default:return""}}function ie(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case I:return"Fragment";case R:return"Portal";case L:return"Profiler";case O:return"StrictMode";case G:return"Suspense";case D:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case j:return(s.displayName||"Context")+".Consumer";case F:return(s._context.displayName||"Context")+".Provider";case H:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case z:return c=s.displayName||null,c!==null?c:ie(s.type)||"Memo";case B:c=s._payload,s=s._init;try{return ie(s(c))}catch{}}return null}function W(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ie(c);case 8:return c===O?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function Z(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function ne(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function se(s){var c=ne(s)?"checked":"value",h=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),y=""+s[c];if(!s.hasOwnProperty(c)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var x=h.get,N=h.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return x.call(this)},set:function(P){y=""+P,N.call(this,P)}}),Object.defineProperty(s,c,{enumerable:h.enumerable}),{getValue:function(){return y},setValue:function(P){y=""+P},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function de(s){s._valueTracker||(s._valueTracker=se(s))}function ce(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var h=c.getValue(),y="";return s&&(y=ne(s)?s.checked?"true":"false":s.value),s=y,s!==h?(c.setValue(s),!0):!1}function le(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function he(s,c){var h=c.checked;return Y({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??s._wrapperState.initialChecked})}function Se(s,c){var h=c.defaultValue==null?"":c.defaultValue,y=c.checked!=null?c.checked:c.defaultChecked;h=Z(c.value!=null?c.value:h),s._wrapperState={initialChecked:y,initialValue:h,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function xe(s,c){c=c.checked,c!=null&&w(s,"checked",c,!1)}function Fe(s,c){xe(s,c);var h=Z(c.value),y=c.type;if(h!=null)y==="number"?(h===0&&s.value===""||s.value!=h)&&(s.value=""+h):s.value!==""+h&&(s.value=""+h);else if(y==="submit"||y==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?ft(s,c.type,h):c.hasOwnProperty("defaultValue")&&ft(s,c.type,Z(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function Be(s,c,h){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var y=c.type;if(!(y!=="submit"&&y!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,h||c===s.value||(s.value=c),s.defaultValue=c}h=s.name,h!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,h!==""&&(s.name=h)}function ft(s,c,h){(c!=="number"||le(s.ownerDocument)!==s)&&(h==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+h&&(s.defaultValue=""+h))}var Et=Array.isArray;function nt(s,c,h,y){if(s=s.options,c){c={};for(var x=0;x<h.length;x++)c["$"+h[x]]=!0;for(h=0;h<s.length;h++)x=c.hasOwnProperty("$"+s[h].value),s[h].selected!==x&&(s[h].selected=x),x&&y&&(s[h].defaultSelected=!0)}else{for(h=""+Z(h),c=null,x=0;x<s.length;x++){if(s[x].value===h){s[x].selected=!0,y&&(s[x].defaultSelected=!0);return}c!==null||s[x].disabled||(c=s[x])}c!==null&&(c.selected=!0)}}function St(s,c){if(c.dangerouslySetInnerHTML!=null)throw Error(n(91));return Y({},c,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function Xt(s,c){var h=c.value;if(h==null){if(h=c.children,c=c.defaultValue,h!=null){if(c!=null)throw Error(n(92));if(Et(h)){if(1<h.length)throw Error(n(93));h=h[0]}c=h}c==null&&(c=""),h=c}s._wrapperState={initialValue:Z(h)}}function Kt(s,c){var h=Z(c.value),y=Z(c.defaultValue);h!=null&&(h=""+h,h!==s.value&&(s.value=h),c.defaultValue==null&&s.defaultValue!==h&&(s.defaultValue=h)),y!=null&&(s.defaultValue=""+y)}function ht(s){var c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function kt(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function He(s,c){return s==null||s==="http://www.w3.org/1999/xhtml"?kt(c):s==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Ve,Nt=function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(c,h,y,x){MSApp.execUnsafeLocalFunction(function(){return s(c,h,y,x)})}:s}(function(s,c){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=c;else{for(Ve=Ve||document.createElement("div"),Ve.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=Ve.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function Ut(s,c){if(c){var h=s.firstChild;if(h&&h===s.lastChild&&h.nodeType===3){h.nodeValue=c;return}}s.textContent=c}var Kn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zn=["Webkit","ms","Moz","O"];Object.keys(Kn).forEach(function(s){Zn.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),Kn[c]=Kn[s]})});function mr(s,c,h){return c==null||typeof c=="boolean"||c===""?"":h||typeof c!="number"||c===0||Kn.hasOwnProperty(s)&&Kn[s]?(""+c).trim():c+"px"}function Bn(s,c){s=s.style;for(var h in c)if(c.hasOwnProperty(h)){var y=h.indexOf("--")===0,x=mr(h,c[h],y);h==="float"&&(h="cssFloat"),y?s.setProperty(h,x):s[h]=x}}var xn=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function di(s,c){if(c){if(xn[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(n(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(n(61))}if(c.style!=null&&typeof c.style!="object")throw Error(n(62))}}function Qn(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 br=null;function Zt(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var lt=null,dn=null,yr=null;function Zi(s){if(s=Ps(s)){if(typeof lt!="function")throw Error(n(280));var c=s.stateNode;c&&(c=Nc(c),lt(s.stateNode,s.type,c))}}function Qi(s){dn?yr?yr.push(s):yr=[s]:dn=s}function pi(){if(dn){var s=dn,c=yr;if(yr=dn=null,Zi(s),c)for(s=0;s<c.length;s++)Zi(c[s])}}function fi(s,c){return s(c)}function ac(){}var fs=!1;function oc(s,c,h){if(fs)return s(c,h);fs=!0;try{return fi(s,c,h)}finally{fs=!1,(dn!==null||yr!==null)&&(ac(),pi())}}function Ji(s,c){var h=s.stateNode;if(h===null)return null;var y=Nc(h);if(y===null)return null;h=y[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(s=s.type,y=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!y;break e;default:s=!1}if(s)return null;if(h&&typeof h!="function")throw Error(n(231,c,typeof h));return h}var hs=!1;if(l)try{var ea={};Object.defineProperty(ea,"passive",{get:function(){hs=!0}}),window.addEventListener("test",ea,ea),window.removeEventListener("test",ea,ea)}catch{hs=!1}function gp(s,c,h,y,x,N,P,K,J){var oe=Array.prototype.slice.call(arguments,3);try{c.apply(h,oe)}catch(pe){this.onError(pe)}}var ta=!1,Va=null,Wa=!1,gs=null,mp={onError:function(s){ta=!0,Va=s}};function bp(s,c,h,y,x,N,P,K,J){ta=!1,Va=null,gp.apply(mp,arguments)}function yp(s,c,h,y,x,N,P,K,J){if(bp.apply(this,arguments),ta){if(ta){var oe=Va;ta=!1,Va=null}else throw Error(n(198));Wa||(Wa=!0,gs=oe)}}function vr(s){var c=s,h=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(h=c.return),s=c.return;while(s)}return c.tag===3?h:null}function ms(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function bs(s){if(vr(s)!==s)throw Error(n(188))}function vp(s){var c=s.alternate;if(!c){if(c=vr(s),c===null)throw Error(n(188));return c!==s?null:s}for(var h=s,y=c;;){var x=h.return;if(x===null)break;var N=x.alternate;if(N===null){if(y=x.return,y!==null){h=y;continue}break}if(x.child===N.child){for(N=x.child;N;){if(N===h)return bs(x),s;if(N===y)return bs(x),c;N=N.sibling}throw Error(n(188))}if(h.return!==y.return)h=x,y=N;else{for(var P=!1,K=x.child;K;){if(K===h){P=!0,h=x,y=N;break}if(K===y){P=!0,y=x,h=N;break}K=K.sibling}if(!P){for(K=N.child;K;){if(K===h){P=!0,h=N,y=x;break}if(K===y){P=!0,y=N,h=x;break}K=K.sibling}if(!P)throw Error(n(189))}}if(h.alternate!==y)throw Error(n(190))}if(h.tag!==3)throw Error(n(188));return h.stateNode.current===h?s:c}function sc(s){return s=vp(s),s!==null?lc(s):null}function lc(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var c=lc(s);if(c!==null)return c;s=s.sibling}return null}var cc=e.unstable_scheduleCallback,uc=e.unstable_cancelCallback,Ep=e.unstable_shouldYield,dc=e.unstable_requestPaint,gt=e.unstable_now,wp=e.unstable_getCurrentPriorityLevel,ys=e.unstable_ImmediatePriority,pc=e.unstable_UserBlockingPriority,Ya=e.unstable_NormalPriority,Sp=e.unstable_LowPriority,fc=e.unstable_IdlePriority,na=null,Un=null;function xp(s){if(Un&&typeof Un.onCommitFiberRoot=="function")try{Un.onCommitFiberRoot(na,s,void 0,(s.current.flags&128)===128)}catch{}}var An=Math.clz32?Math.clz32:Tp,Ap=Math.log,_p=Math.LN2;function Tp(s){return s>>>=0,s===0?32:31-(Ap(s)/_p|0)|0}var Xa=64,Ka=4194304;function hi(s){switch(s&-s){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: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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Za(s,c){var h=s.pendingLanes;if(h===0)return 0;var y=0,x=s.suspendedLanes,N=s.pingedLanes,P=h&268435455;if(P!==0){var K=P&~x;K!==0?y=hi(K):(N&=P,N!==0&&(y=hi(N)))}else P=h&~x,P!==0?y=hi(P):N!==0&&(y=hi(N));if(y===0)return 0;if(c!==0&&c!==y&&(c&x)===0&&(x=y&-y,N=c&-c,x>=N||x===16&&(N&4194240)!==0))return c;if((y&4)!==0&&(y|=h&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=y;0<c;)h=31-An(c),x=1<<h,y|=s[h],c&=~x;return y}function Cp(s,c){switch(s){case 1:case 2:case 4:return c+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Rp(s,c){for(var h=s.suspendedLanes,y=s.pingedLanes,x=s.expirationTimes,N=s.pendingLanes;0<N;){var P=31-An(N),K=1<<P,J=x[P];J===-1?((K&h)===0||(K&y)!==0)&&(x[P]=Cp(K,c)):J<=c&&(s.expiredLanes|=K),N&=~K}}function ra(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function hc(){var s=Xa;return Xa<<=1,(Xa&4194240)===0&&(Xa=64),s}function vs(s){for(var c=[],h=0;31>h;h++)c.push(s);return c}function gi(s,c,h){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-An(c),s[c]=h}function FF(s,c){var h=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var y=s.eventTimes;for(s=s.expirationTimes;0<h;){var x=31-An(h),N=1<<x;c[x]=0,y[x]=-1,s[x]=-1,h&=~N}}function kp(s,c){var h=s.entangledLanes|=c;for(s=s.entanglements;h;){var y=31-An(h),x=1<<y;x&c|s[y]&c&&(s[y]|=c),h&=~x}}var Je=0;function YS(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var XS,Np,KS,ZS,QS,Ip=!1,gc=[],mi=null,bi=null,yi=null,Es=new Map,ws=new Map,vi=[],BF="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 submit".split(" ");function JS(s,c){switch(s){case"focusin":case"focusout":mi=null;break;case"dragenter":case"dragleave":bi=null;break;case"mouseover":case"mouseout":yi=null;break;case"pointerover":case"pointerout":Es.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":ws.delete(c.pointerId)}}function Ss(s,c,h,y,x,N){return s===null||s.nativeEvent!==N?(s={blockedOn:c,domEventName:h,eventSystemFlags:y,nativeEvent:N,targetContainers:[x]},c!==null&&(c=Ps(c),c!==null&&Np(c)),s):(s.eventSystemFlags|=y,c=s.targetContainers,x!==null&&c.indexOf(x)===-1&&c.push(x),s)}function UF(s,c,h,y,x){switch(c){case"focusin":return mi=Ss(mi,s,c,h,y,x),!0;case"dragenter":return bi=Ss(bi,s,c,h,y,x),!0;case"mouseover":return yi=Ss(yi,s,c,h,y,x),!0;case"pointerover":var N=x.pointerId;return Es.set(N,Ss(Es.get(N)||null,s,c,h,y,x)),!0;case"gotpointercapture":return N=x.pointerId,ws.set(N,Ss(ws.get(N)||null,s,c,h,y,x)),!0}return!1}function ex(s){var c=ia(s.target);if(c!==null){var h=vr(c);if(h!==null){if(c=h.tag,c===13){if(c=ms(h),c!==null){s.blockedOn=c,QS(s.priority,function(){KS(h)});return}}else if(c===3&&h.stateNode.current.memoizedState.isDehydrated){s.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}s.blockedOn=null}function mc(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var h=Lp(s.domEventName,s.eventSystemFlags,c[0],s.nativeEvent);if(h===null){h=s.nativeEvent;var y=new h.constructor(h.type,h);br=y,h.target.dispatchEvent(y),br=null}else return c=Ps(h),c!==null&&Np(c),s.blockedOn=h,!1;c.shift()}return!0}function tx(s,c,h){mc(s)&&h.delete(c)}function $F(){Ip=!1,mi!==null&&mc(mi)&&(mi=null),bi!==null&&mc(bi)&&(bi=null),yi!==null&&mc(yi)&&(yi=null),Es.forEach(tx),ws.forEach(tx)}function xs(s,c){s.blockedOn===c&&(s.blockedOn=null,Ip||(Ip=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,$F)))}function As(s){function c(x){return xs(x,s)}if(0<gc.length){xs(gc[0],s);for(var h=1;h<gc.length;h++){var y=gc[h];y.blockedOn===s&&(y.blockedOn=null)}}for(mi!==null&&xs(mi,s),bi!==null&&xs(bi,s),yi!==null&&xs(yi,s),Es.forEach(c),ws.forEach(c),h=0;h<vi.length;h++)y=vi[h],y.blockedOn===s&&(y.blockedOn=null);for(;0<vi.length&&(h=vi[0],h.blockedOn===null);)ex(h),h.blockedOn===null&&vi.shift()}var Qa=A.ReactCurrentBatchConfig,bc=!0;function zF(s,c,h,y){var x=Je,N=Qa.transition;Qa.transition=null;try{Je=1,Op(s,c,h,y)}finally{Je=x,Qa.transition=N}}function jF(s,c,h,y){var x=Je,N=Qa.transition;Qa.transition=null;try{Je=4,Op(s,c,h,y)}finally{Je=x,Qa.transition=N}}function Op(s,c,h,y){if(bc){var x=Lp(s,c,h,y);if(x===null)Kp(s,c,y,yc,h),JS(s,y);else if(UF(x,s,c,h,y))y.stopPropagation();else if(JS(s,y),c&4&&-1<BF.indexOf(s)){for(;x!==null;){var N=Ps(x);if(N!==null&&XS(N),N=Lp(s,c,h,y),N===null&&Kp(s,c,y,yc,h),N===x)break;x=N}x!==null&&y.stopPropagation()}else Kp(s,c,y,null,h)}}var yc=null;function Lp(s,c,h,y){if(yc=null,s=Zt(y),s=ia(s),s!==null)if(c=vr(s),c===null)s=null;else if(h=c.tag,h===13){if(s=ms(c),s!==null)return s;s=null}else if(h===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null);return yc=s,null}function nx(s){switch(s){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(wp()){case ys:return 1;case pc:return 4;case Ya:case Sp:return 16;case fc:return 536870912;default:return 16}default:return 16}}var Ei=null,Dp=null,vc=null;function rx(){if(vc)return vc;var s,c=Dp,h=c.length,y,x="value"in Ei?Ei.value:Ei.textContent,N=x.length;for(s=0;s<h&&c[s]===x[s];s++);var P=h-s;for(y=1;y<=P&&c[h-y]===x[N-y];y++);return vc=x.slice(s,1<y?1-y:void 0)}function Ec(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function wc(){return!0}function ix(){return!1}function _n(s){function c(h,y,x,N,P){this._reactName=h,this._targetInst=x,this.type=y,this.nativeEvent=N,this.target=P,this.currentTarget=null;for(var K in s)s.hasOwnProperty(K)&&(h=s[K],this[K]=h?h(N):N[K]);return this.isDefaultPrevented=(N.defaultPrevented!=null?N.defaultPrevented:N.returnValue===!1)?wc:ix,this.isPropagationStopped=ix,this}return Y(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=wc)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=wc)},persist:function(){},isPersistent:wc}),c}var Ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mp=_n(Ja),_s=Y({},Ja,{view:0,detail:0}),HF=_n(_s),Pp,Fp,Ts,Sc=Y({},_s,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Up,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Ts&&(Ts&&s.type==="mousemove"?(Pp=s.screenX-Ts.screenX,Fp=s.screenY-Ts.screenY):Fp=Pp=0,Ts=s),Pp)},movementY:function(s){return"movementY"in s?s.movementY:Fp}}),ax=_n(Sc),GF=Y({},Sc,{dataTransfer:0}),qF=_n(GF),VF=Y({},_s,{relatedTarget:0}),Bp=_n(VF),WF=Y({},Ja,{animationName:0,elapsedTime:0,pseudoElement:0}),YF=_n(WF),XF=Y({},Ja,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),KF=_n(XF),ZF=Y({},Ja,{data:0}),ox=_n(ZF),QF={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JF={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"},e2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t2(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=e2[s])?!!c[s]:!1}function Up(){return t2}var n2=Y({},_s,{key:function(s){if(s.key){var c=QF[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=Ec(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?JF[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Up,charCode:function(s){return s.type==="keypress"?Ec(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Ec(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),r2=_n(n2),i2=Y({},Sc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sx=_n(i2),a2=Y({},_s,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Up}),o2=_n(a2),s2=Y({},Ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),l2=_n(s2),c2=Y({},Sc,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),u2=_n(c2),d2=[9,13,27,32],$p=l&&"CompositionEvent"in window,Cs=null;l&&"documentMode"in document&&(Cs=document.documentMode);var p2=l&&"TextEvent"in window&&!Cs,lx=l&&(!$p||Cs&&8<Cs&&11>=Cs),cx=" ",ux=!1;function dx(s,c){switch(s){case"keyup":return d2.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function px(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var eo=!1;function f2(s,c){switch(s){case"compositionend":return px(c);case"keypress":return c.which!==32?null:(ux=!0,cx);case"textInput":return s=c.data,s===cx&&ux?null:s;default:return null}}function h2(s,c){if(eo)return s==="compositionend"||!$p&&dx(s,c)?(s=rx(),vc=Dp=Ei=null,eo=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return lx&&c.locale!=="ko"?null:c.data;default:return null}}var g2={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 fx(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!g2[s.type]:c==="textarea"}function hx(s,c,h,y){Qi(y),c=Cc(c,"onChange"),0<c.length&&(h=new Mp("onChange","change",null,h,y),s.push({event:h,listeners:c}))}var Rs=null,ks=null;function m2(s){Ox(s,0)}function xc(s){var c=ao(s);if(ce(c))return s}function b2(s,c){if(s==="change")return c}var gx=!1;if(l){var zp;if(l){var jp="oninput"in document;if(!jp){var mx=document.createElement("div");mx.setAttribute("oninput","return;"),jp=typeof mx.oninput=="function"}zp=jp}else zp=!1;gx=zp&&(!document.documentMode||9<document.documentMode)}function bx(){Rs&&(Rs.detachEvent("onpropertychange",yx),ks=Rs=null)}function yx(s){if(s.propertyName==="value"&&xc(ks)){var c=[];hx(c,ks,s,Zt(s)),oc(m2,c)}}function y2(s,c,h){s==="focusin"?(bx(),Rs=c,ks=h,Rs.attachEvent("onpropertychange",yx)):s==="focusout"&&bx()}function v2(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return xc(ks)}function E2(s,c){if(s==="click")return xc(c)}function w2(s,c){if(s==="input"||s==="change")return xc(c)}function S2(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var Jn=typeof Object.is=="function"?Object.is:S2;function Ns(s,c){if(Jn(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var h=Object.keys(s),y=Object.keys(c);if(h.length!==y.length)return!1;for(y=0;y<h.length;y++){var x=h[y];if(!u.call(c,x)||!Jn(s[x],c[x]))return!1}return!0}function vx(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Ex(s,c){var h=vx(s);s=0;for(var y;h;){if(h.nodeType===3){if(y=s+h.textContent.length,s<=c&&y>=c)return{node:h,offset:c-s};s=y}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=vx(h)}}function wx(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?wx(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function Sx(){for(var s=window,c=le();c instanceof s.HTMLIFrameElement;){try{var h=typeof c.contentWindow.location.href=="string"}catch{h=!1}if(h)s=c.contentWindow;else break;c=le(s.document)}return c}function Hp(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function x2(s){var c=Sx(),h=s.focusedElem,y=s.selectionRange;if(c!==h&&h&&h.ownerDocument&&wx(h.ownerDocument.documentElement,h)){if(y!==null&&Hp(h)){if(c=y.start,s=y.end,s===void 0&&(s=c),"selectionStart"in h)h.selectionStart=c,h.selectionEnd=Math.min(s,h.value.length);else if(s=(c=h.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var x=h.textContent.length,N=Math.min(y.start,x);y=y.end===void 0?N:Math.min(y.end,x),!s.extend&&N>y&&(x=y,y=N,N=x),x=Ex(h,N);var P=Ex(h,y);x&&P&&(s.rangeCount!==1||s.anchorNode!==x.node||s.anchorOffset!==x.offset||s.focusNode!==P.node||s.focusOffset!==P.offset)&&(c=c.createRange(),c.setStart(x.node,x.offset),s.removeAllRanges(),N>y?(s.addRange(c),s.extend(P.node,P.offset)):(c.setEnd(P.node,P.offset),s.addRange(c)))}}for(c=[],s=h;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<c.length;h++)s=c[h],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var A2=l&&"documentMode"in document&&11>=document.documentMode,to=null,Gp=null,Is=null,qp=!1;function xx(s,c,h){var y=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;qp||to==null||to!==le(y)||(y=to,"selectionStart"in y&&Hp(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),Is&&Ns(Is,y)||(Is=y,y=Cc(Gp,"onSelect"),0<y.length&&(c=new Mp("onSelect","select",null,c,h),s.push({event:c,listeners:y}),c.target=to)))}function Ac(s,c){var h={};return h[s.toLowerCase()]=c.toLowerCase(),h["Webkit"+s]="webkit"+c,h["Moz"+s]="moz"+c,h}var no={animationend:Ac("Animation","AnimationEnd"),animationiteration:Ac("Animation","AnimationIteration"),animationstart:Ac("Animation","AnimationStart"),transitionend:Ac("Transition","TransitionEnd")},Vp={},Ax={};l&&(Ax=document.createElement("div").style,"AnimationEvent"in window||(delete no.animationend.animation,delete no.animationiteration.animation,delete no.animationstart.animation),"TransitionEvent"in window||delete no.transitionend.transition);function _c(s){if(Vp[s])return Vp[s];if(!no[s])return s;var c=no[s],h;for(h in c)if(c.hasOwnProperty(h)&&h in Ax)return Vp[s]=c[h];return s}var _x=_c("animationend"),Tx=_c("animationiteration"),Cx=_c("animationstart"),Rx=_c("transitionend"),kx=new Map,Nx="abort auxClick 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(" ");function wi(s,c){kx.set(s,c),a(c,[s])}for(var Wp=0;Wp<Nx.length;Wp++){var Yp=Nx[Wp],_2=Yp.toLowerCase(),T2=Yp[0].toUpperCase()+Yp.slice(1);wi(_2,"on"+T2)}wi(_x,"onAnimationEnd"),wi(Tx,"onAnimationIteration"),wi(Cx,"onAnimationStart"),wi("dblclick","onDoubleClick"),wi("focusin","onFocus"),wi("focusout","onBlur"),wi(Rx,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Os="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(" "),C2=new Set("cancel close invalid load scroll toggle".split(" ").concat(Os));function Ix(s,c,h){var y=s.type||"unknown-event";s.currentTarget=h,yp(y,c,void 0,s),s.currentTarget=null}function Ox(s,c){c=(c&4)!==0;for(var h=0;h<s.length;h++){var y=s[h],x=y.event;y=y.listeners;e:{var N=void 0;if(c)for(var P=y.length-1;0<=P;P--){var K=y[P],J=K.instance,oe=K.currentTarget;if(K=K.listener,J!==N&&x.isPropagationStopped())break e;Ix(x,K,oe),N=J}else for(P=0;P<y.length;P++){if(K=y[P],J=K.instance,oe=K.currentTarget,K=K.listener,J!==N&&x.isPropagationStopped())break e;Ix(x,K,oe),N=J}}}if(Wa)throw s=gs,Wa=!1,gs=null,s}function at(s,c){var h=c[nf];h===void 0&&(h=c[nf]=new Set);var y=s+"__bubble";h.has(y)||(Lx(c,s,2,!1),h.add(y))}function Xp(s,c,h){var y=0;c&&(y|=4),Lx(h,s,y,c)}var Tc="_reactListening"+Math.random().toString(36).slice(2);function Ls(s){if(!s[Tc]){s[Tc]=!0,r.forEach(function(h){h!=="selectionchange"&&(C2.has(h)||Xp(h,!1,s),Xp(h,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[Tc]||(c[Tc]=!0,Xp("selectionchange",!1,c))}}function Lx(s,c,h,y){switch(nx(c)){case 1:var x=zF;break;case 4:x=jF;break;default:x=Op}h=x.bind(null,c,h,s),x=void 0,!hs||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(x=!0),y?x!==void 0?s.addEventListener(c,h,{capture:!0,passive:x}):s.addEventListener(c,h,!0):x!==void 0?s.addEventListener(c,h,{passive:x}):s.addEventListener(c,h,!1)}function Kp(s,c,h,y,x){var N=y;if((c&1)===0&&(c&2)===0&&y!==null)e:for(;;){if(y===null)return;var P=y.tag;if(P===3||P===4){var K=y.stateNode.containerInfo;if(K===x||K.nodeType===8&&K.parentNode===x)break;if(P===4)for(P=y.return;P!==null;){var J=P.tag;if((J===3||J===4)&&(J=P.stateNode.containerInfo,J===x||J.nodeType===8&&J.parentNode===x))return;P=P.return}for(;K!==null;){if(P=ia(K),P===null)return;if(J=P.tag,J===5||J===6){y=N=P;continue e}K=K.parentNode}}y=y.return}oc(function(){var oe=N,pe=Zt(h),fe=[];e:{var ue=kx.get(s);if(ue!==void 0){var me=Mp,ve=s;switch(s){case"keypress":if(Ec(h)===0)break e;case"keydown":case"keyup":me=r2;break;case"focusin":ve="focus",me=Bp;break;case"focusout":ve="blur",me=Bp;break;case"beforeblur":case"afterblur":me=Bp;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":me=ax;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":me=qF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":me=o2;break;case _x:case Tx:case Cx:me=YF;break;case Rx:me=l2;break;case"scroll":me=HF;break;case"wheel":me=u2;break;case"copy":case"cut":case"paste":me=KF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":me=sx}var Ae=(c&4)!==0,xt=!Ae&&s==="scroll",re=Ae?ue!==null?ue+"Capture":null:ue;Ae=[];for(var ee=oe,ae;ee!==null;){ae=ee;var ge=ae.stateNode;if(ae.tag===5&&ge!==null&&(ae=ge,re!==null&&(ge=Ji(ee,re),ge!=null&&Ae.push(Ds(ee,ge,ae)))),xt)break;ee=ee.return}0<Ae.length&&(ue=new me(ue,ve,null,h,pe),fe.push({event:ue,listeners:Ae}))}}if((c&7)===0){e:{if(ue=s==="mouseover"||s==="pointerover",me=s==="mouseout"||s==="pointerout",ue&&h!==br&&(ve=h.relatedTarget||h.fromElement)&&(ia(ve)||ve[jr]))break e;if((me||ue)&&(ue=pe.window===pe?pe:(ue=pe.ownerDocument)?ue.defaultView||ue.parentWindow:window,me?(ve=h.relatedTarget||h.toElement,me=oe,ve=ve?ia(ve):null,ve!==null&&(xt=vr(ve),ve!==xt||ve.tag!==5&&ve.tag!==6)&&(ve=null)):(me=null,ve=oe),me!==ve)){if(Ae=ax,ge="onMouseLeave",re="onMouseEnter",ee="mouse",(s==="pointerout"||s==="pointerover")&&(Ae=sx,ge="onPointerLeave",re="onPointerEnter",ee="pointer"),xt=me==null?ue:ao(me),ae=ve==null?ue:ao(ve),ue=new Ae(ge,ee+"leave",me,h,pe),ue.target=xt,ue.relatedTarget=ae,ge=null,ia(pe)===oe&&(Ae=new Ae(re,ee+"enter",ve,h,pe),Ae.target=ae,Ae.relatedTarget=xt,ge=Ae),xt=ge,me&&ve)t:{for(Ae=me,re=ve,ee=0,ae=Ae;ae;ae=ro(ae))ee++;for(ae=0,ge=re;ge;ge=ro(ge))ae++;for(;0<ee-ae;)Ae=ro(Ae),ee--;for(;0<ae-ee;)re=ro(re),ae--;for(;ee--;){if(Ae===re||re!==null&&Ae===re.alternate)break t;Ae=ro(Ae),re=ro(re)}Ae=null}else Ae=null;me!==null&&Dx(fe,ue,me,Ae,!1),ve!==null&&xt!==null&&Dx(fe,xt,ve,Ae,!0)}}e:{if(ue=oe?ao(oe):window,me=ue.nodeName&&ue.nodeName.toLowerCase(),me==="select"||me==="input"&&ue.type==="file")var _e=b2;else if(fx(ue))if(gx)_e=w2;else{_e=v2;var Re=y2}else(me=ue.nodeName)&&me.toLowerCase()==="input"&&(ue.type==="checkbox"||ue.type==="radio")&&(_e=E2);if(_e&&(_e=_e(s,oe))){hx(fe,_e,h,pe);break e}Re&&Re(s,ue,oe),s==="focusout"&&(Re=ue._wrapperState)&&Re.controlled&&ue.type==="number"&&ft(ue,"number",ue.value)}switch(Re=oe?ao(oe):window,s){case"focusin":(fx(Re)||Re.contentEditable==="true")&&(to=Re,Gp=oe,Is=null);break;case"focusout":Is=Gp=to=null;break;case"mousedown":qp=!0;break;case"contextmenu":case"mouseup":case"dragend":qp=!1,xx(fe,h,pe);break;case"selectionchange":if(A2)break;case"keydown":case"keyup":xx(fe,h,pe)}var ke;if($p)e:{switch(s){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else eo?dx(s,h)&&(Oe="onCompositionEnd"):s==="keydown"&&h.keyCode===229&&(Oe="onCompositionStart");Oe&&(lx&&h.locale!=="ko"&&(eo||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&eo&&(ke=rx()):(Ei=pe,Dp="value"in Ei?Ei.value:Ei.textContent,eo=!0)),Re=Cc(oe,Oe),0<Re.length&&(Oe=new ox(Oe,s,null,h,pe),fe.push({event:Oe,listeners:Re}),ke?Oe.data=ke:(ke=px(h),ke!==null&&(Oe.data=ke)))),(ke=p2?f2(s,h):h2(s,h))&&(oe=Cc(oe,"onBeforeInput"),0<oe.length&&(pe=new ox("onBeforeInput","beforeinput",null,h,pe),fe.push({event:pe,listeners:oe}),pe.data=ke))}Ox(fe,c)})}function Ds(s,c,h){return{instance:s,listener:c,currentTarget:h}}function Cc(s,c){for(var h=c+"Capture",y=[];s!==null;){var x=s,N=x.stateNode;x.tag===5&&N!==null&&(x=N,N=Ji(s,h),N!=null&&y.unshift(Ds(s,N,x)),N=Ji(s,c),N!=null&&y.push(Ds(s,N,x))),s=s.return}return y}function ro(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function Dx(s,c,h,y,x){for(var N=c._reactName,P=[];h!==null&&h!==y;){var K=h,J=K.alternate,oe=K.stateNode;if(J!==null&&J===y)break;K.tag===5&&oe!==null&&(K=oe,x?(J=Ji(h,N),J!=null&&P.unshift(Ds(h,J,K))):x||(J=Ji(h,N),J!=null&&P.push(Ds(h,J,K)))),h=h.return}P.length!==0&&s.push({event:c,listeners:P})}var R2=/\r\n?/g,k2=/\u0000|\uFFFD/g;function Mx(s){return(typeof s=="string"?s:""+s).replace(R2,`
38
- `).replace(k2,"")}function Rc(s,c,h){if(c=Mx(c),Mx(s)!==c&&h)throw Error(n(425))}function kc(){}var Zp=null,Qp=null;function Jp(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var ef=typeof setTimeout=="function"?setTimeout:void 0,N2=typeof clearTimeout=="function"?clearTimeout:void 0,Px=typeof Promise=="function"?Promise:void 0,I2=typeof queueMicrotask=="function"?queueMicrotask:typeof Px<"u"?function(s){return Px.resolve(null).then(s).catch(O2)}:ef;function O2(s){setTimeout(function(){throw s})}function tf(s,c){var h=c,y=0;do{var x=h.nextSibling;if(s.removeChild(h),x&&x.nodeType===8)if(h=x.data,h==="/$"){if(y===0){s.removeChild(x),As(c);return}y--}else h!=="$"&&h!=="$?"&&h!=="$!"||y++;h=x}while(h);As(c)}function Si(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return s}function Fx(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var h=s.data;if(h==="$"||h==="$!"||h==="$?"){if(c===0)return s;c--}else h==="/$"&&c++}s=s.previousSibling}return null}var io=Math.random().toString(36).slice(2),Er="__reactFiber$"+io,Ms="__reactProps$"+io,jr="__reactContainer$"+io,nf="__reactEvents$"+io,L2="__reactListeners$"+io,D2="__reactHandles$"+io;function ia(s){var c=s[Er];if(c)return c;for(var h=s.parentNode;h;){if(c=h[jr]||h[Er]){if(h=c.alternate,c.child!==null||h!==null&&h.child!==null)for(s=Fx(s);s!==null;){if(h=s[Er])return h;s=Fx(s)}return c}s=h,h=s.parentNode}return null}function Ps(s){return s=s[Er]||s[jr],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function ao(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function Nc(s){return s[Ms]||null}var rf=[],oo=-1;function xi(s){return{current:s}}function ot(s){0>oo||(s.current=rf[oo],rf[oo]=null,oo--)}function rt(s,c){oo++,rf[oo]=s.current,s.current=c}var Ai={},Qt=xi(Ai),pn=xi(!1),aa=Ai;function so(s,c){var h=s.type.contextTypes;if(!h)return Ai;var y=s.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===c)return y.__reactInternalMemoizedMaskedChildContext;var x={},N;for(N in h)x[N]=c[N];return y&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=x),x}function fn(s){return s=s.childContextTypes,s!=null}function Ic(){ot(pn),ot(Qt)}function Bx(s,c,h){if(Qt.current!==Ai)throw Error(n(168));rt(Qt,c),rt(pn,h)}function Ux(s,c,h){var y=s.stateNode;if(c=c.childContextTypes,typeof y.getChildContext!="function")return h;y=y.getChildContext();for(var x in y)if(!(x in c))throw Error(n(108,W(s)||"Unknown",x));return Y({},h,y)}function Oc(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Ai,aa=Qt.current,rt(Qt,s),rt(pn,pn.current),!0}function $x(s,c,h){var y=s.stateNode;if(!y)throw Error(n(169));h?(s=Ux(s,c,aa),y.__reactInternalMemoizedMergedChildContext=s,ot(pn),ot(Qt),rt(Qt,s)):ot(pn),rt(pn,h)}var Hr=null,Lc=!1,af=!1;function zx(s){Hr===null?Hr=[s]:Hr.push(s)}function M2(s){Lc=!0,zx(s)}function _i(){if(!af&&Hr!==null){af=!0;var s=0,c=Je;try{var h=Hr;for(Je=1;s<h.length;s++){var y=h[s];do y=y(!0);while(y!==null)}Hr=null,Lc=!1}catch(x){throw Hr!==null&&(Hr=Hr.slice(s+1)),cc(ys,_i),x}finally{Je=c,af=!1}}return null}var lo=[],co=0,Dc=null,Mc=0,$n=[],zn=0,oa=null,Gr=1,qr="";function sa(s,c){lo[co++]=Mc,lo[co++]=Dc,Dc=s,Mc=c}function jx(s,c,h){$n[zn++]=Gr,$n[zn++]=qr,$n[zn++]=oa,oa=s;var y=Gr;s=qr;var x=32-An(y)-1;y&=~(1<<x),h+=1;var N=32-An(c)+x;if(30<N){var P=x-x%5;N=(y&(1<<P)-1).toString(32),y>>=P,x-=P,Gr=1<<32-An(c)+x|h<<x|y,qr=N+s}else Gr=1<<N|h<<x|y,qr=s}function of(s){s.return!==null&&(sa(s,1),jx(s,1,0))}function sf(s){for(;s===Dc;)Dc=lo[--co],lo[co]=null,Mc=lo[--co],lo[co]=null;for(;s===oa;)oa=$n[--zn],$n[zn]=null,qr=$n[--zn],$n[zn]=null,Gr=$n[--zn],$n[zn]=null}var Tn=null,Cn=null,ct=!1,er=null;function Hx(s,c){var h=qn(5,null,null,0);h.elementType="DELETED",h.stateNode=c,h.return=s,c=s.deletions,c===null?(s.deletions=[h],s.flags|=16):c.push(h)}function Gx(s,c){switch(s.tag){case 5:var h=s.type;return c=c.nodeType!==1||h.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(s.stateNode=c,Tn=s,Cn=Si(c.firstChild),!0):!1;case 6:return c=s.pendingProps===""||c.nodeType!==3?null:c,c!==null?(s.stateNode=c,Tn=s,Cn=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(h=oa!==null?{id:Gr,overflow:qr}:null,s.memoizedState={dehydrated:c,treeContext:h,retryLane:1073741824},h=qn(18,null,null,0),h.stateNode=c,h.return=s,s.child=h,Tn=s,Cn=null,!0):!1;default:return!1}}function lf(s){return(s.mode&1)!==0&&(s.flags&128)===0}function cf(s){if(ct){var c=Cn;if(c){var h=c;if(!Gx(s,c)){if(lf(s))throw Error(n(418));c=Si(h.nextSibling);var y=Tn;c&&Gx(s,c)?Hx(y,h):(s.flags=s.flags&-4097|2,ct=!1,Tn=s)}}else{if(lf(s))throw Error(n(418));s.flags=s.flags&-4097|2,ct=!1,Tn=s}}}function qx(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;Tn=s}function Pc(s){if(s!==Tn)return!1;if(!ct)return qx(s),ct=!0,!1;var c;if((c=s.tag!==3)&&!(c=s.tag!==5)&&(c=s.type,c=c!=="head"&&c!=="body"&&!Jp(s.type,s.memoizedProps)),c&&(c=Cn)){if(lf(s))throw Vx(),Error(n(418));for(;c;)Hx(s,c),c=Si(c.nextSibling)}if(qx(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8){var h=s.data;if(h==="/$"){if(c===0){Cn=Si(s.nextSibling);break e}c--}else h!=="$"&&h!=="$!"&&h!=="$?"||c++}s=s.nextSibling}Cn=null}}else Cn=Tn?Si(s.stateNode.nextSibling):null;return!0}function Vx(){for(var s=Cn;s;)s=Si(s.nextSibling)}function uo(){Cn=Tn=null,ct=!1}function uf(s){er===null?er=[s]:er.push(s)}var P2=A.ReactCurrentBatchConfig;function Fs(s,c,h){if(s=h.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(h._owner){if(h=h._owner,h){if(h.tag!==1)throw Error(n(309));var y=h.stateNode}if(!y)throw Error(n(147,s));var x=y,N=""+s;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===N?c.ref:(c=function(P){var K=x.refs;P===null?delete K[N]:K[N]=P},c._stringRef=N,c)}if(typeof s!="string")throw Error(n(284));if(!h._owner)throw Error(n(290,s))}return s}function Fc(s,c){throw s=Object.prototype.toString.call(c),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s))}function Wx(s){var c=s._init;return c(s._payload)}function Yx(s){function c(re,ee){if(s){var ae=re.deletions;ae===null?(re.deletions=[ee],re.flags|=16):ae.push(ee)}}function h(re,ee){if(!s)return null;for(;ee!==null;)c(re,ee),ee=ee.sibling;return null}function y(re,ee){for(re=new Map;ee!==null;)ee.key!==null?re.set(ee.key,ee):re.set(ee.index,ee),ee=ee.sibling;return re}function x(re,ee){return re=Li(re,ee),re.index=0,re.sibling=null,re}function N(re,ee,ae){return re.index=ae,s?(ae=re.alternate,ae!==null?(ae=ae.index,ae<ee?(re.flags|=2,ee):ae):(re.flags|=2,ee)):(re.flags|=1048576,ee)}function P(re){return s&&re.alternate===null&&(re.flags|=2),re}function K(re,ee,ae,ge){return ee===null||ee.tag!==6?(ee=th(ae,re.mode,ge),ee.return=re,ee):(ee=x(ee,ae),ee.return=re,ee)}function J(re,ee,ae,ge){var _e=ae.type;return _e===I?pe(re,ee,ae.props.children,ge,ae.key):ee!==null&&(ee.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===B&&Wx(_e)===ee.type)?(ge=x(ee,ae.props),ge.ref=Fs(re,ee,ae),ge.return=re,ge):(ge=su(ae.type,ae.key,ae.props,null,re.mode,ge),ge.ref=Fs(re,ee,ae),ge.return=re,ge)}function oe(re,ee,ae,ge){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ae.containerInfo||ee.stateNode.implementation!==ae.implementation?(ee=nh(ae,re.mode,ge),ee.return=re,ee):(ee=x(ee,ae.children||[]),ee.return=re,ee)}function pe(re,ee,ae,ge,_e){return ee===null||ee.tag!==7?(ee=ga(ae,re.mode,ge,_e),ee.return=re,ee):(ee=x(ee,ae),ee.return=re,ee)}function fe(re,ee,ae){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=th(""+ee,re.mode,ae),ee.return=re,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case k:return ae=su(ee.type,ee.key,ee.props,null,re.mode,ae),ae.ref=Fs(re,null,ee),ae.return=re,ae;case R:return ee=nh(ee,re.mode,ae),ee.return=re,ee;case B:var ge=ee._init;return fe(re,ge(ee._payload),ae)}if(Et(ee)||q(ee))return ee=ga(ee,re.mode,ae,null),ee.return=re,ee;Fc(re,ee)}return null}function ue(re,ee,ae,ge){var _e=ee!==null?ee.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number")return _e!==null?null:K(re,ee,""+ae,ge);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case k:return ae.key===_e?J(re,ee,ae,ge):null;case R:return ae.key===_e?oe(re,ee,ae,ge):null;case B:return _e=ae._init,ue(re,ee,_e(ae._payload),ge)}if(Et(ae)||q(ae))return _e!==null?null:pe(re,ee,ae,ge,null);Fc(re,ae)}return null}function me(re,ee,ae,ge,_e){if(typeof ge=="string"&&ge!==""||typeof ge=="number")return re=re.get(ae)||null,K(ee,re,""+ge,_e);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case k:return re=re.get(ge.key===null?ae:ge.key)||null,J(ee,re,ge,_e);case R:return re=re.get(ge.key===null?ae:ge.key)||null,oe(ee,re,ge,_e);case B:var Re=ge._init;return me(re,ee,ae,Re(ge._payload),_e)}if(Et(ge)||q(ge))return re=re.get(ae)||null,pe(ee,re,ge,_e,null);Fc(ee,ge)}return null}function ve(re,ee,ae,ge){for(var _e=null,Re=null,ke=ee,Oe=ee=0,jt=null;ke!==null&&Oe<ae.length;Oe++){ke.index>Oe?(jt=ke,ke=null):jt=ke.sibling;var Xe=ue(re,ke,ae[Oe],ge);if(Xe===null){ke===null&&(ke=jt);break}s&&ke&&Xe.alternate===null&&c(re,ke),ee=N(Xe,ee,Oe),Re===null?_e=Xe:Re.sibling=Xe,Re=Xe,ke=jt}if(Oe===ae.length)return h(re,ke),ct&&sa(re,Oe),_e;if(ke===null){for(;Oe<ae.length;Oe++)ke=fe(re,ae[Oe],ge),ke!==null&&(ee=N(ke,ee,Oe),Re===null?_e=ke:Re.sibling=ke,Re=ke);return ct&&sa(re,Oe),_e}for(ke=y(re,ke);Oe<ae.length;Oe++)jt=me(ke,re,Oe,ae[Oe],ge),jt!==null&&(s&&jt.alternate!==null&&ke.delete(jt.key===null?Oe:jt.key),ee=N(jt,ee,Oe),Re===null?_e=jt:Re.sibling=jt,Re=jt);return s&&ke.forEach(function(Di){return c(re,Di)}),ct&&sa(re,Oe),_e}function Ae(re,ee,ae,ge){var _e=q(ae);if(typeof _e!="function")throw Error(n(150));if(ae=_e.call(ae),ae==null)throw Error(n(151));for(var Re=_e=null,ke=ee,Oe=ee=0,jt=null,Xe=ae.next();ke!==null&&!Xe.done;Oe++,Xe=ae.next()){ke.index>Oe?(jt=ke,ke=null):jt=ke.sibling;var Di=ue(re,ke,Xe.value,ge);if(Di===null){ke===null&&(ke=jt);break}s&&ke&&Di.alternate===null&&c(re,ke),ee=N(Di,ee,Oe),Re===null?_e=Di:Re.sibling=Di,Re=Di,ke=jt}if(Xe.done)return h(re,ke),ct&&sa(re,Oe),_e;if(ke===null){for(;!Xe.done;Oe++,Xe=ae.next())Xe=fe(re,Xe.value,ge),Xe!==null&&(ee=N(Xe,ee,Oe),Re===null?_e=Xe:Re.sibling=Xe,Re=Xe);return ct&&sa(re,Oe),_e}for(ke=y(re,ke);!Xe.done;Oe++,Xe=ae.next())Xe=me(ke,re,Oe,Xe.value,ge),Xe!==null&&(s&&Xe.alternate!==null&&ke.delete(Xe.key===null?Oe:Xe.key),ee=N(Xe,ee,Oe),Re===null?_e=Xe:Re.sibling=Xe,Re=Xe);return s&&ke.forEach(function(gB){return c(re,gB)}),ct&&sa(re,Oe),_e}function xt(re,ee,ae,ge){if(typeof ae=="object"&&ae!==null&&ae.type===I&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case k:e:{for(var _e=ae.key,Re=ee;Re!==null;){if(Re.key===_e){if(_e=ae.type,_e===I){if(Re.tag===7){h(re,Re.sibling),ee=x(Re,ae.props.children),ee.return=re,re=ee;break e}}else if(Re.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===B&&Wx(_e)===Re.type){h(re,Re.sibling),ee=x(Re,ae.props),ee.ref=Fs(re,Re,ae),ee.return=re,re=ee;break e}h(re,Re);break}else c(re,Re);Re=Re.sibling}ae.type===I?(ee=ga(ae.props.children,re.mode,ge,ae.key),ee.return=re,re=ee):(ge=su(ae.type,ae.key,ae.props,null,re.mode,ge),ge.ref=Fs(re,ee,ae),ge.return=re,re=ge)}return P(re);case R:e:{for(Re=ae.key;ee!==null;){if(ee.key===Re)if(ee.tag===4&&ee.stateNode.containerInfo===ae.containerInfo&&ee.stateNode.implementation===ae.implementation){h(re,ee.sibling),ee=x(ee,ae.children||[]),ee.return=re,re=ee;break e}else{h(re,ee);break}else c(re,ee);ee=ee.sibling}ee=nh(ae,re.mode,ge),ee.return=re,re=ee}return P(re);case B:return Re=ae._init,xt(re,ee,Re(ae._payload),ge)}if(Et(ae))return ve(re,ee,ae,ge);if(q(ae))return Ae(re,ee,ae,ge);Fc(re,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?(ae=""+ae,ee!==null&&ee.tag===6?(h(re,ee.sibling),ee=x(ee,ae),ee.return=re,re=ee):(h(re,ee),ee=th(ae,re.mode,ge),ee.return=re,re=ee),P(re)):h(re,ee)}return xt}var po=Yx(!0),Xx=Yx(!1),Bc=xi(null),Uc=null,fo=null,df=null;function pf(){df=fo=Uc=null}function ff(s){var c=Bc.current;ot(Bc),s._currentValue=c}function hf(s,c,h){for(;s!==null;){var y=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,y!==null&&(y.childLanes|=c)):y!==null&&(y.childLanes&c)!==c&&(y.childLanes|=c),s===h)break;s=s.return}}function ho(s,c){Uc=s,df=fo=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&c)!==0&&(hn=!0),s.firstContext=null)}function jn(s){var c=s._currentValue;if(df!==s)if(s={context:s,memoizedValue:c,next:null},fo===null){if(Uc===null)throw Error(n(308));fo=s,Uc.dependencies={lanes:0,firstContext:s}}else fo=fo.next=s;return c}var la=null;function gf(s){la===null?la=[s]:la.push(s)}function Kx(s,c,h,y){var x=c.interleaved;return x===null?(h.next=h,gf(c)):(h.next=x.next,x.next=h),c.interleaved=h,Vr(s,y)}function Vr(s,c){s.lanes|=c;var h=s.alternate;for(h!==null&&(h.lanes|=c),h=s,s=s.return;s!==null;)s.childLanes|=c,h=s.alternate,h!==null&&(h.childLanes|=c),h=s,s=s.return;return h.tag===3?h.stateNode:null}var Ti=!1;function mf(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zx(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Wr(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function Ci(s,c,h){var y=s.updateQueue;if(y===null)return null;if(y=y.shared,(We&2)!==0){var x=y.pending;return x===null?c.next=c:(c.next=x.next,x.next=c),y.pending=c,Vr(s,h)}return x=y.interleaved,x===null?(c.next=c,gf(y)):(c.next=x.next,x.next=c),y.interleaved=c,Vr(s,h)}function $c(s,c,h){if(c=c.updateQueue,c!==null&&(c=c.shared,(h&4194240)!==0)){var y=c.lanes;y&=s.pendingLanes,h|=y,c.lanes=h,kp(s,h)}}function Qx(s,c){var h=s.updateQueue,y=s.alternate;if(y!==null&&(y=y.updateQueue,h===y)){var x=null,N=null;if(h=h.firstBaseUpdate,h!==null){do{var P={eventTime:h.eventTime,lane:h.lane,tag:h.tag,payload:h.payload,callback:h.callback,next:null};N===null?x=N=P:N=N.next=P,h=h.next}while(h!==null);N===null?x=N=c:N=N.next=c}else x=N=c;h={baseState:y.baseState,firstBaseUpdate:x,lastBaseUpdate:N,shared:y.shared,effects:y.effects},s.updateQueue=h;return}s=h.lastBaseUpdate,s===null?h.firstBaseUpdate=c:s.next=c,h.lastBaseUpdate=c}function zc(s,c,h,y){var x=s.updateQueue;Ti=!1;var N=x.firstBaseUpdate,P=x.lastBaseUpdate,K=x.shared.pending;if(K!==null){x.shared.pending=null;var J=K,oe=J.next;J.next=null,P===null?N=oe:P.next=oe,P=J;var pe=s.alternate;pe!==null&&(pe=pe.updateQueue,K=pe.lastBaseUpdate,K!==P&&(K===null?pe.firstBaseUpdate=oe:K.next=oe,pe.lastBaseUpdate=J))}if(N!==null){var fe=x.baseState;P=0,pe=oe=J=null,K=N;do{var ue=K.lane,me=K.eventTime;if((y&ue)===ue){pe!==null&&(pe=pe.next={eventTime:me,lane:0,tag:K.tag,payload:K.payload,callback:K.callback,next:null});e:{var ve=s,Ae=K;switch(ue=c,me=h,Ae.tag){case 1:if(ve=Ae.payload,typeof ve=="function"){fe=ve.call(me,fe,ue);break e}fe=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Ae.payload,ue=typeof ve=="function"?ve.call(me,fe,ue):ve,ue==null)break e;fe=Y({},fe,ue);break e;case 2:Ti=!0}}K.callback!==null&&K.lane!==0&&(s.flags|=64,ue=x.effects,ue===null?x.effects=[K]:ue.push(K))}else me={eventTime:me,lane:ue,tag:K.tag,payload:K.payload,callback:K.callback,next:null},pe===null?(oe=pe=me,J=fe):pe=pe.next=me,P|=ue;if(K=K.next,K===null){if(K=x.shared.pending,K===null)break;ue=K,K=ue.next,ue.next=null,x.lastBaseUpdate=ue,x.shared.pending=null}}while(!0);if(pe===null&&(J=fe),x.baseState=J,x.firstBaseUpdate=oe,x.lastBaseUpdate=pe,c=x.shared.interleaved,c!==null){x=c;do P|=x.lane,x=x.next;while(x!==c)}else N===null&&(x.shared.lanes=0);da|=P,s.lanes=P,s.memoizedState=fe}}function Jx(s,c,h){if(s=c.effects,c.effects=null,s!==null)for(c=0;c<s.length;c++){var y=s[c],x=y.callback;if(x!==null){if(y.callback=null,y=h,typeof x!="function")throw Error(n(191,x));x.call(y)}}}var Bs={},wr=xi(Bs),Us=xi(Bs),$s=xi(Bs);function ca(s){if(s===Bs)throw Error(n(174));return s}function bf(s,c){switch(rt($s,c),rt(Us,s),rt(wr,Bs),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:He(null,"");break;default:s=s===8?c.parentNode:c,c=s.namespaceURI||null,s=s.tagName,c=He(c,s)}ot(wr),rt(wr,c)}function go(){ot(wr),ot(Us),ot($s)}function e0(s){ca($s.current);var c=ca(wr.current),h=He(c,s.type);c!==h&&(rt(Us,s),rt(wr,h))}function yf(s){Us.current===s&&(ot(wr),ot(Us))}var mt=xi(0);function jc(s){for(var c=s;c!==null;){if(c.tag===13){var h=c.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||h.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var vf=[];function Ef(){for(var s=0;s<vf.length;s++)vf[s]._workInProgressVersionPrimary=null;vf.length=0}var Hc=A.ReactCurrentDispatcher,wf=A.ReactCurrentBatchConfig,ua=0,bt=null,Mt=null,$t=null,Gc=!1,zs=!1,js=0,F2=0;function Jt(){throw Error(n(321))}function Sf(s,c){if(c===null)return!1;for(var h=0;h<c.length&&h<s.length;h++)if(!Jn(s[h],c[h]))return!1;return!0}function xf(s,c,h,y,x,N){if(ua=N,bt=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,Hc.current=s===null||s.memoizedState===null?z2:j2,s=h(y,x),zs){N=0;do{if(zs=!1,js=0,25<=N)throw Error(n(301));N+=1,$t=Mt=null,c.updateQueue=null,Hc.current=H2,s=h(y,x)}while(zs)}if(Hc.current=Wc,c=Mt!==null&&Mt.next!==null,ua=0,$t=Mt=bt=null,Gc=!1,c)throw Error(n(300));return s}function Af(){var s=js!==0;return js=0,s}function Sr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?bt.memoizedState=$t=s:$t=$t.next=s,$t}function Hn(){if(Mt===null){var s=bt.alternate;s=s!==null?s.memoizedState:null}else s=Mt.next;var c=$t===null?bt.memoizedState:$t.next;if(c!==null)$t=c,Mt=s;else{if(s===null)throw Error(n(310));Mt=s,s={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},$t===null?bt.memoizedState=$t=s:$t=$t.next=s}return $t}function Hs(s,c){return typeof c=="function"?c(s):c}function _f(s){var c=Hn(),h=c.queue;if(h===null)throw Error(n(311));h.lastRenderedReducer=s;var y=Mt,x=y.baseQueue,N=h.pending;if(N!==null){if(x!==null){var P=x.next;x.next=N.next,N.next=P}y.baseQueue=x=N,h.pending=null}if(x!==null){N=x.next,y=y.baseState;var K=P=null,J=null,oe=N;do{var pe=oe.lane;if((ua&pe)===pe)J!==null&&(J=J.next={lane:0,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),y=oe.hasEagerState?oe.eagerState:s(y,oe.action);else{var fe={lane:pe,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null};J===null?(K=J=fe,P=y):J=J.next=fe,bt.lanes|=pe,da|=pe}oe=oe.next}while(oe!==null&&oe!==N);J===null?P=y:J.next=K,Jn(y,c.memoizedState)||(hn=!0),c.memoizedState=y,c.baseState=P,c.baseQueue=J,h.lastRenderedState=y}if(s=h.interleaved,s!==null){x=s;do N=x.lane,bt.lanes|=N,da|=N,x=x.next;while(x!==s)}else x===null&&(h.lanes=0);return[c.memoizedState,h.dispatch]}function Tf(s){var c=Hn(),h=c.queue;if(h===null)throw Error(n(311));h.lastRenderedReducer=s;var y=h.dispatch,x=h.pending,N=c.memoizedState;if(x!==null){h.pending=null;var P=x=x.next;do N=s(N,P.action),P=P.next;while(P!==x);Jn(N,c.memoizedState)||(hn=!0),c.memoizedState=N,c.baseQueue===null&&(c.baseState=N),h.lastRenderedState=N}return[N,y]}function t0(){}function n0(s,c){var h=bt,y=Hn(),x=c(),N=!Jn(y.memoizedState,x);if(N&&(y.memoizedState=x,hn=!0),y=y.queue,Cf(a0.bind(null,h,y,s),[s]),y.getSnapshot!==c||N||$t!==null&&$t.memoizedState.tag&1){if(h.flags|=2048,Gs(9,i0.bind(null,h,y,x,c),void 0,null),zt===null)throw Error(n(349));(ua&30)!==0||r0(h,c,x)}return x}function r0(s,c,h){s.flags|=16384,s={getSnapshot:c,value:h},c=bt.updateQueue,c===null?(c={lastEffect:null,stores:null},bt.updateQueue=c,c.stores=[s]):(h=c.stores,h===null?c.stores=[s]:h.push(s))}function i0(s,c,h,y){c.value=h,c.getSnapshot=y,o0(c)&&s0(s)}function a0(s,c,h){return h(function(){o0(c)&&s0(s)})}function o0(s){var c=s.getSnapshot;s=s.value;try{var h=c();return!Jn(s,h)}catch{return!0}}function s0(s){var c=Vr(s,1);c!==null&&ir(c,s,1,-1)}function l0(s){var c=Sr();return typeof s=="function"&&(s=s()),c.memoizedState=c.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hs,lastRenderedState:s},c.queue=s,s=s.dispatch=$2.bind(null,bt,s),[c.memoizedState,s]}function Gs(s,c,h,y){return s={tag:s,create:c,destroy:h,deps:y,next:null},c=bt.updateQueue,c===null?(c={lastEffect:null,stores:null},bt.updateQueue=c,c.lastEffect=s.next=s):(h=c.lastEffect,h===null?c.lastEffect=s.next=s:(y=h.next,h.next=s,s.next=y,c.lastEffect=s)),s}function c0(){return Hn().memoizedState}function qc(s,c,h,y){var x=Sr();bt.flags|=s,x.memoizedState=Gs(1|c,h,void 0,y===void 0?null:y)}function Vc(s,c,h,y){var x=Hn();y=y===void 0?null:y;var N=void 0;if(Mt!==null){var P=Mt.memoizedState;if(N=P.destroy,y!==null&&Sf(y,P.deps)){x.memoizedState=Gs(c,h,N,y);return}}bt.flags|=s,x.memoizedState=Gs(1|c,h,N,y)}function u0(s,c){return qc(8390656,8,s,c)}function Cf(s,c){return Vc(2048,8,s,c)}function d0(s,c){return Vc(4,2,s,c)}function p0(s,c){return Vc(4,4,s,c)}function f0(s,c){if(typeof c=="function")return s=s(),c(s),function(){c(null)};if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function h0(s,c,h){return h=h!=null?h.concat([s]):null,Vc(4,4,f0.bind(null,c,s),h)}function Rf(){}function g0(s,c){var h=Hn();c=c===void 0?null:c;var y=h.memoizedState;return y!==null&&c!==null&&Sf(c,y[1])?y[0]:(h.memoizedState=[s,c],s)}function m0(s,c){var h=Hn();c=c===void 0?null:c;var y=h.memoizedState;return y!==null&&c!==null&&Sf(c,y[1])?y[0]:(s=s(),h.memoizedState=[s,c],s)}function b0(s,c,h){return(ua&21)===0?(s.baseState&&(s.baseState=!1,hn=!0),s.memoizedState=h):(Jn(h,c)||(h=hc(),bt.lanes|=h,da|=h,s.baseState=!0),c)}function B2(s,c){var h=Je;Je=h!==0&&4>h?h:4,s(!0);var y=wf.transition;wf.transition={};try{s(!1),c()}finally{Je=h,wf.transition=y}}function y0(){return Hn().memoizedState}function U2(s,c,h){var y=Ii(s);if(h={lane:y,action:h,hasEagerState:!1,eagerState:null,next:null},v0(s))E0(c,h);else if(h=Kx(s,c,h,y),h!==null){var x=ln();ir(h,s,y,x),w0(h,c,y)}}function $2(s,c,h){var y=Ii(s),x={lane:y,action:h,hasEagerState:!1,eagerState:null,next:null};if(v0(s))E0(c,x);else{var N=s.alternate;if(s.lanes===0&&(N===null||N.lanes===0)&&(N=c.lastRenderedReducer,N!==null))try{var P=c.lastRenderedState,K=N(P,h);if(x.hasEagerState=!0,x.eagerState=K,Jn(K,P)){var J=c.interleaved;J===null?(x.next=x,gf(c)):(x.next=J.next,J.next=x),c.interleaved=x;return}}catch{}finally{}h=Kx(s,c,x,y),h!==null&&(x=ln(),ir(h,s,y,x),w0(h,c,y))}}function v0(s){var c=s.alternate;return s===bt||c!==null&&c===bt}function E0(s,c){zs=Gc=!0;var h=s.pending;h===null?c.next=c:(c.next=h.next,h.next=c),s.pending=c}function w0(s,c,h){if((h&4194240)!==0){var y=c.lanes;y&=s.pendingLanes,h|=y,c.lanes=h,kp(s,h)}}var Wc={readContext:jn,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useInsertionEffect:Jt,useLayoutEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useMutableSource:Jt,useSyncExternalStore:Jt,useId:Jt,unstable_isNewReconciler:!1},z2={readContext:jn,useCallback:function(s,c){return Sr().memoizedState=[s,c===void 0?null:c],s},useContext:jn,useEffect:u0,useImperativeHandle:function(s,c,h){return h=h!=null?h.concat([s]):null,qc(4194308,4,f0.bind(null,c,s),h)},useLayoutEffect:function(s,c){return qc(4194308,4,s,c)},useInsertionEffect:function(s,c){return qc(4,2,s,c)},useMemo:function(s,c){var h=Sr();return c=c===void 0?null:c,s=s(),h.memoizedState=[s,c],s},useReducer:function(s,c,h){var y=Sr();return c=h!==void 0?h(c):c,y.memoizedState=y.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},y.queue=s,s=s.dispatch=U2.bind(null,bt,s),[y.memoizedState,s]},useRef:function(s){var c=Sr();return s={current:s},c.memoizedState=s},useState:l0,useDebugValue:Rf,useDeferredValue:function(s){return Sr().memoizedState=s},useTransition:function(){var s=l0(!1),c=s[0];return s=B2.bind(null,s[1]),Sr().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,h){var y=bt,x=Sr();if(ct){if(h===void 0)throw Error(n(407));h=h()}else{if(h=c(),zt===null)throw Error(n(349));(ua&30)!==0||r0(y,c,h)}x.memoizedState=h;var N={value:h,getSnapshot:c};return x.queue=N,u0(a0.bind(null,y,N,s),[s]),y.flags|=2048,Gs(9,i0.bind(null,y,N,h,c),void 0,null),h},useId:function(){var s=Sr(),c=zt.identifierPrefix;if(ct){var h=qr,y=Gr;h=(y&~(1<<32-An(y)-1)).toString(32)+h,c=":"+c+"R"+h,h=js++,0<h&&(c+="H"+h.toString(32)),c+=":"}else h=F2++,c=":"+c+"r"+h.toString(32)+":";return s.memoizedState=c},unstable_isNewReconciler:!1},j2={readContext:jn,useCallback:g0,useContext:jn,useEffect:Cf,useImperativeHandle:h0,useInsertionEffect:d0,useLayoutEffect:p0,useMemo:m0,useReducer:_f,useRef:c0,useState:function(){return _f(Hs)},useDebugValue:Rf,useDeferredValue:function(s){var c=Hn();return b0(c,Mt.memoizedState,s)},useTransition:function(){var s=_f(Hs)[0],c=Hn().memoizedState;return[s,c]},useMutableSource:t0,useSyncExternalStore:n0,useId:y0,unstable_isNewReconciler:!1},H2={readContext:jn,useCallback:g0,useContext:jn,useEffect:Cf,useImperativeHandle:h0,useInsertionEffect:d0,useLayoutEffect:p0,useMemo:m0,useReducer:Tf,useRef:c0,useState:function(){return Tf(Hs)},useDebugValue:Rf,useDeferredValue:function(s){var c=Hn();return Mt===null?c.memoizedState=s:b0(c,Mt.memoizedState,s)},useTransition:function(){var s=Tf(Hs)[0],c=Hn().memoizedState;return[s,c]},useMutableSource:t0,useSyncExternalStore:n0,useId:y0,unstable_isNewReconciler:!1};function tr(s,c){if(s&&s.defaultProps){c=Y({},c),s=s.defaultProps;for(var h in s)c[h]===void 0&&(c[h]=s[h]);return c}return c}function kf(s,c,h,y){c=s.memoizedState,h=h(y,c),h=h==null?c:Y({},c,h),s.memoizedState=h,s.lanes===0&&(s.updateQueue.baseState=h)}var Yc={isMounted:function(s){return(s=s._reactInternals)?vr(s)===s:!1},enqueueSetState:function(s,c,h){s=s._reactInternals;var y=ln(),x=Ii(s),N=Wr(y,x);N.payload=c,h!=null&&(N.callback=h),c=Ci(s,N,x),c!==null&&(ir(c,s,x,y),$c(c,s,x))},enqueueReplaceState:function(s,c,h){s=s._reactInternals;var y=ln(),x=Ii(s),N=Wr(y,x);N.tag=1,N.payload=c,h!=null&&(N.callback=h),c=Ci(s,N,x),c!==null&&(ir(c,s,x,y),$c(c,s,x))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var h=ln(),y=Ii(s),x=Wr(h,y);x.tag=2,c!=null&&(x.callback=c),c=Ci(s,x,y),c!==null&&(ir(c,s,y,h),$c(c,s,y))}};function S0(s,c,h,y,x,N,P){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(y,N,P):c.prototype&&c.prototype.isPureReactComponent?!Ns(h,y)||!Ns(x,N):!0}function x0(s,c,h){var y=!1,x=Ai,N=c.contextType;return typeof N=="object"&&N!==null?N=jn(N):(x=fn(c)?aa:Qt.current,y=c.contextTypes,N=(y=y!=null)?so(s,x):Ai),c=new c(h,N),s.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Yc,s.stateNode=c,c._reactInternals=s,y&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=x,s.__reactInternalMemoizedMaskedChildContext=N),c}function A0(s,c,h,y){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(h,y),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(h,y),c.state!==s&&Yc.enqueueReplaceState(c,c.state,null)}function Nf(s,c,h,y){var x=s.stateNode;x.props=h,x.state=s.memoizedState,x.refs={},mf(s);var N=c.contextType;typeof N=="object"&&N!==null?x.context=jn(N):(N=fn(c)?aa:Qt.current,x.context=so(s,N)),x.state=s.memoizedState,N=c.getDerivedStateFromProps,typeof N=="function"&&(kf(s,c,N,h),x.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(c=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),c!==x.state&&Yc.enqueueReplaceState(x,x.state,null),zc(s,h,x,y),x.state=s.memoizedState),typeof x.componentDidMount=="function"&&(s.flags|=4194308)}function mo(s,c){try{var h="",y=c;do h+=te(y),y=y.return;while(y);var x=h}catch(N){x=`
39
- Error generating stack: `+N.message+`
40
- `+N.stack}return{value:s,source:c,stack:x,digest:null}}function If(s,c,h){return{value:s,source:null,stack:h??null,digest:c??null}}function Of(s,c){try{console.error(c.value)}catch(h){setTimeout(function(){throw h})}}var G2=typeof WeakMap=="function"?WeakMap:Map;function _0(s,c,h){h=Wr(-1,h),h.tag=3,h.payload={element:null};var y=c.value;return h.callback=function(){tu||(tu=!0,Wf=y),Of(s,c)},h}function T0(s,c,h){h=Wr(-1,h),h.tag=3;var y=s.type.getDerivedStateFromError;if(typeof y=="function"){var x=c.value;h.payload=function(){return y(x)},h.callback=function(){Of(s,c)}}var N=s.stateNode;return N!==null&&typeof N.componentDidCatch=="function"&&(h.callback=function(){Of(s,c),typeof y!="function"&&(ki===null?ki=new Set([this]):ki.add(this));var P=c.stack;this.componentDidCatch(c.value,{componentStack:P!==null?P:""})}),h}function C0(s,c,h){var y=s.pingCache;if(y===null){y=s.pingCache=new G2;var x=new Set;y.set(c,x)}else x=y.get(c),x===void 0&&(x=new Set,y.set(c,x));x.has(h)||(x.add(h),s=iB.bind(null,s,c,h),c.then(s,s))}function R0(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function k0(s,c,h,y,x){return(s.mode&1)===0?(s===c?s.flags|=65536:(s.flags|=128,h.flags|=131072,h.flags&=-52805,h.tag===1&&(h.alternate===null?h.tag=17:(c=Wr(-1,1),c.tag=2,Ci(h,c,1))),h.lanes|=1),s):(s.flags|=65536,s.lanes=x,s)}var q2=A.ReactCurrentOwner,hn=!1;function sn(s,c,h,y){c.child=s===null?Xx(c,null,h,y):po(c,s.child,h,y)}function N0(s,c,h,y,x){h=h.render;var N=c.ref;return ho(c,x),y=xf(s,c,h,y,N,x),h=Af(),s!==null&&!hn?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~x,Yr(s,c,x)):(ct&&h&&of(c),c.flags|=1,sn(s,c,y,x),c.child)}function I0(s,c,h,y,x){if(s===null){var N=h.type;return typeof N=="function"&&!eh(N)&&N.defaultProps===void 0&&h.compare===null&&h.defaultProps===void 0?(c.tag=15,c.type=N,O0(s,c,N,y,x)):(s=su(h.type,null,y,c,c.mode,x),s.ref=c.ref,s.return=c,c.child=s)}if(N=s.child,(s.lanes&x)===0){var P=N.memoizedProps;if(h=h.compare,h=h!==null?h:Ns,h(P,y)&&s.ref===c.ref)return Yr(s,c,x)}return c.flags|=1,s=Li(N,y),s.ref=c.ref,s.return=c,c.child=s}function O0(s,c,h,y,x){if(s!==null){var N=s.memoizedProps;if(Ns(N,y)&&s.ref===c.ref)if(hn=!1,c.pendingProps=y=N,(s.lanes&x)!==0)(s.flags&131072)!==0&&(hn=!0);else return c.lanes=s.lanes,Yr(s,c,x)}return Lf(s,c,h,y,x)}function L0(s,c,h){var y=c.pendingProps,x=y.children,N=s!==null?s.memoizedState:null;if(y.mode==="hidden")if((c.mode&1)===0)c.memoizedState={baseLanes:0,cachePool:null,transitions:null},rt(yo,Rn),Rn|=h;else{if((h&1073741824)===0)return s=N!==null?N.baseLanes|h:h,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,rt(yo,Rn),Rn|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},y=N!==null?N.baseLanes:h,rt(yo,Rn),Rn|=y}else N!==null?(y=N.baseLanes|h,c.memoizedState=null):y=h,rt(yo,Rn),Rn|=y;return sn(s,c,x,h),c.child}function D0(s,c){var h=c.ref;(s===null&&h!==null||s!==null&&s.ref!==h)&&(c.flags|=512,c.flags|=2097152)}function Lf(s,c,h,y,x){var N=fn(h)?aa:Qt.current;return N=so(c,N),ho(c,x),h=xf(s,c,h,y,N,x),y=Af(),s!==null&&!hn?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~x,Yr(s,c,x)):(ct&&y&&of(c),c.flags|=1,sn(s,c,h,x),c.child)}function M0(s,c,h,y,x){if(fn(h)){var N=!0;Oc(c)}else N=!1;if(ho(c,x),c.stateNode===null)Kc(s,c),x0(c,h,y),Nf(c,h,y,x),y=!0;else if(s===null){var P=c.stateNode,K=c.memoizedProps;P.props=K;var J=P.context,oe=h.contextType;typeof oe=="object"&&oe!==null?oe=jn(oe):(oe=fn(h)?aa:Qt.current,oe=so(c,oe));var pe=h.getDerivedStateFromProps,fe=typeof pe=="function"||typeof P.getSnapshotBeforeUpdate=="function";fe||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(K!==y||J!==oe)&&A0(c,P,y,oe),Ti=!1;var ue=c.memoizedState;P.state=ue,zc(c,y,P,x),J=c.memoizedState,K!==y||ue!==J||pn.current||Ti?(typeof pe=="function"&&(kf(c,h,pe,y),J=c.memoizedState),(K=Ti||S0(c,h,K,y,ue,J,oe))?(fe||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(c.flags|=4194308)):(typeof P.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=y,c.memoizedState=J),P.props=y,P.state=J,P.context=oe,y=K):(typeof P.componentDidMount=="function"&&(c.flags|=4194308),y=!1)}else{P=c.stateNode,Zx(s,c),K=c.memoizedProps,oe=c.type===c.elementType?K:tr(c.type,K),P.props=oe,fe=c.pendingProps,ue=P.context,J=h.contextType,typeof J=="object"&&J!==null?J=jn(J):(J=fn(h)?aa:Qt.current,J=so(c,J));var me=h.getDerivedStateFromProps;(pe=typeof me=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(K!==fe||ue!==J)&&A0(c,P,y,J),Ti=!1,ue=c.memoizedState,P.state=ue,zc(c,y,P,x);var ve=c.memoizedState;K!==fe||ue!==ve||pn.current||Ti?(typeof me=="function"&&(kf(c,h,me,y),ve=c.memoizedState),(oe=Ti||S0(c,h,oe,y,ue,ve,J)||!1)?(pe||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(y,ve,J),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(y,ve,J)),typeof P.componentDidUpdate=="function"&&(c.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof P.componentDidUpdate!="function"||K===s.memoizedProps&&ue===s.memoizedState||(c.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||K===s.memoizedProps&&ue===s.memoizedState||(c.flags|=1024),c.memoizedProps=y,c.memoizedState=ve),P.props=y,P.state=ve,P.context=J,y=oe):(typeof P.componentDidUpdate!="function"||K===s.memoizedProps&&ue===s.memoizedState||(c.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||K===s.memoizedProps&&ue===s.memoizedState||(c.flags|=1024),y=!1)}return Df(s,c,h,y,N,x)}function Df(s,c,h,y,x,N){D0(s,c);var P=(c.flags&128)!==0;if(!y&&!P)return x&&$x(c,h,!1),Yr(s,c,N);y=c.stateNode,q2.current=c;var K=P&&typeof h.getDerivedStateFromError!="function"?null:y.render();return c.flags|=1,s!==null&&P?(c.child=po(c,s.child,null,N),c.child=po(c,null,K,N)):sn(s,c,K,N),c.memoizedState=y.state,x&&$x(c,h,!0),c.child}function P0(s){var c=s.stateNode;c.pendingContext?Bx(s,c.pendingContext,c.pendingContext!==c.context):c.context&&Bx(s,c.context,!1),bf(s,c.containerInfo)}function F0(s,c,h,y,x){return uo(),uf(x),c.flags|=256,sn(s,c,h,y),c.child}var Mf={dehydrated:null,treeContext:null,retryLane:0};function Pf(s){return{baseLanes:s,cachePool:null,transitions:null}}function B0(s,c,h){var y=c.pendingProps,x=mt.current,N=!1,P=(c.flags&128)!==0,K;if((K=P)||(K=s!==null&&s.memoizedState===null?!1:(x&2)!==0),K?(N=!0,c.flags&=-129):(s===null||s.memoizedState!==null)&&(x|=1),rt(mt,x&1),s===null)return cf(c),s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((c.mode&1)===0?c.lanes=1:s.data==="$!"?c.lanes=8:c.lanes=1073741824,null):(P=y.children,s=y.fallback,N?(y=c.mode,N=c.child,P={mode:"hidden",children:P},(y&1)===0&&N!==null?(N.childLanes=0,N.pendingProps=P):N=lu(P,y,0,null),s=ga(s,y,h,null),N.return=c,s.return=c,N.sibling=s,c.child=N,c.child.memoizedState=Pf(h),c.memoizedState=Mf,s):Ff(c,P));if(x=s.memoizedState,x!==null&&(K=x.dehydrated,K!==null))return V2(s,c,P,y,K,x,h);if(N){N=y.fallback,P=c.mode,x=s.child,K=x.sibling;var J={mode:"hidden",children:y.children};return(P&1)===0&&c.child!==x?(y=c.child,y.childLanes=0,y.pendingProps=J,c.deletions=null):(y=Li(x,J),y.subtreeFlags=x.subtreeFlags&14680064),K!==null?N=Li(K,N):(N=ga(N,P,h,null),N.flags|=2),N.return=c,y.return=c,y.sibling=N,c.child=y,y=N,N=c.child,P=s.child.memoizedState,P=P===null?Pf(h):{baseLanes:P.baseLanes|h,cachePool:null,transitions:P.transitions},N.memoizedState=P,N.childLanes=s.childLanes&~h,c.memoizedState=Mf,y}return N=s.child,s=N.sibling,y=Li(N,{mode:"visible",children:y.children}),(c.mode&1)===0&&(y.lanes=h),y.return=c,y.sibling=null,s!==null&&(h=c.deletions,h===null?(c.deletions=[s],c.flags|=16):h.push(s)),c.child=y,c.memoizedState=null,y}function Ff(s,c){return c=lu({mode:"visible",children:c},s.mode,0,null),c.return=s,s.child=c}function Xc(s,c,h,y){return y!==null&&uf(y),po(c,s.child,null,h),s=Ff(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function V2(s,c,h,y,x,N,P){if(h)return c.flags&256?(c.flags&=-257,y=If(Error(n(422))),Xc(s,c,P,y)):c.memoizedState!==null?(c.child=s.child,c.flags|=128,null):(N=y.fallback,x=c.mode,y=lu({mode:"visible",children:y.children},x,0,null),N=ga(N,x,P,null),N.flags|=2,y.return=c,N.return=c,y.sibling=N,c.child=y,(c.mode&1)!==0&&po(c,s.child,null,P),c.child.memoizedState=Pf(P),c.memoizedState=Mf,N);if((c.mode&1)===0)return Xc(s,c,P,null);if(x.data==="$!"){if(y=x.nextSibling&&x.nextSibling.dataset,y)var K=y.dgst;return y=K,N=Error(n(419)),y=If(N,y,void 0),Xc(s,c,P,y)}if(K=(P&s.childLanes)!==0,hn||K){if(y=zt,y!==null){switch(P&-P){case 4:x=2;break;case 16:x=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(y.suspendedLanes|P))!==0?0:x,x!==0&&x!==N.retryLane&&(N.retryLane=x,Vr(s,x),ir(y,s,x,-1))}return Jf(),y=If(Error(n(421))),Xc(s,c,P,y)}return x.data==="$?"?(c.flags|=128,c.child=s.child,c=aB.bind(null,s),x._reactRetry=c,null):(s=N.treeContext,Cn=Si(x.nextSibling),Tn=c,ct=!0,er=null,s!==null&&($n[zn++]=Gr,$n[zn++]=qr,$n[zn++]=oa,Gr=s.id,qr=s.overflow,oa=c),c=Ff(c,y.children),c.flags|=4096,c)}function U0(s,c,h){s.lanes|=c;var y=s.alternate;y!==null&&(y.lanes|=c),hf(s.return,c,h)}function Bf(s,c,h,y,x){var N=s.memoizedState;N===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:y,tail:h,tailMode:x}:(N.isBackwards=c,N.rendering=null,N.renderingStartTime=0,N.last=y,N.tail=h,N.tailMode=x)}function $0(s,c,h){var y=c.pendingProps,x=y.revealOrder,N=y.tail;if(sn(s,c,y.children,h),y=mt.current,(y&2)!==0)y=y&1|2,c.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&U0(s,h,c);else if(s.tag===19)U0(s,h,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}y&=1}if(rt(mt,y),(c.mode&1)===0)c.memoizedState=null;else switch(x){case"forwards":for(h=c.child,x=null;h!==null;)s=h.alternate,s!==null&&jc(s)===null&&(x=h),h=h.sibling;h=x,h===null?(x=c.child,c.child=null):(x=h.sibling,h.sibling=null),Bf(c,!1,x,h,N);break;case"backwards":for(h=null,x=c.child,c.child=null;x!==null;){if(s=x.alternate,s!==null&&jc(s)===null){c.child=x;break}s=x.sibling,x.sibling=h,h=x,x=s}Bf(c,!0,h,null,N);break;case"together":Bf(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Kc(s,c){(c.mode&1)===0&&s!==null&&(s.alternate=null,c.alternate=null,c.flags|=2)}function Yr(s,c,h){if(s!==null&&(c.dependencies=s.dependencies),da|=c.lanes,(h&c.childLanes)===0)return null;if(s!==null&&c.child!==s.child)throw Error(n(153));if(c.child!==null){for(s=c.child,h=Li(s,s.pendingProps),c.child=h,h.return=c;s.sibling!==null;)s=s.sibling,h=h.sibling=Li(s,s.pendingProps),h.return=c;h.sibling=null}return c.child}function W2(s,c,h){switch(c.tag){case 3:P0(c),uo();break;case 5:e0(c);break;case 1:fn(c.type)&&Oc(c);break;case 4:bf(c,c.stateNode.containerInfo);break;case 10:var y=c.type._context,x=c.memoizedProps.value;rt(Bc,y._currentValue),y._currentValue=x;break;case 13:if(y=c.memoizedState,y!==null)return y.dehydrated!==null?(rt(mt,mt.current&1),c.flags|=128,null):(h&c.child.childLanes)!==0?B0(s,c,h):(rt(mt,mt.current&1),s=Yr(s,c,h),s!==null?s.sibling:null);rt(mt,mt.current&1);break;case 19:if(y=(h&c.childLanes)!==0,(s.flags&128)!==0){if(y)return $0(s,c,h);c.flags|=128}if(x=c.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),rt(mt,mt.current),y)break;return null;case 22:case 23:return c.lanes=0,L0(s,c,h)}return Yr(s,c,h)}var z0,Uf,j0,H0;z0=function(s,c){for(var h=c.child;h!==null;){if(h.tag===5||h.tag===6)s.appendChild(h.stateNode);else if(h.tag!==4&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===c)break;for(;h.sibling===null;){if(h.return===null||h.return===c)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},Uf=function(){},j0=function(s,c,h,y){var x=s.memoizedProps;if(x!==y){s=c.stateNode,ca(wr.current);var N=null;switch(h){case"input":x=he(s,x),y=he(s,y),N=[];break;case"select":x=Y({},x,{value:void 0}),y=Y({},y,{value:void 0}),N=[];break;case"textarea":x=St(s,x),y=St(s,y),N=[];break;default:typeof x.onClick!="function"&&typeof y.onClick=="function"&&(s.onclick=kc)}di(h,y);var P;h=null;for(oe in x)if(!y.hasOwnProperty(oe)&&x.hasOwnProperty(oe)&&x[oe]!=null)if(oe==="style"){var K=x[oe];for(P in K)K.hasOwnProperty(P)&&(h||(h={}),h[P]="")}else oe!=="dangerouslySetInnerHTML"&&oe!=="children"&&oe!=="suppressContentEditableWarning"&&oe!=="suppressHydrationWarning"&&oe!=="autoFocus"&&(i.hasOwnProperty(oe)?N||(N=[]):(N=N||[]).push(oe,null));for(oe in y){var J=y[oe];if(K=x?.[oe],y.hasOwnProperty(oe)&&J!==K&&(J!=null||K!=null))if(oe==="style")if(K){for(P in K)!K.hasOwnProperty(P)||J&&J.hasOwnProperty(P)||(h||(h={}),h[P]="");for(P in J)J.hasOwnProperty(P)&&K[P]!==J[P]&&(h||(h={}),h[P]=J[P])}else h||(N||(N=[]),N.push(oe,h)),h=J;else oe==="dangerouslySetInnerHTML"?(J=J?J.__html:void 0,K=K?K.__html:void 0,J!=null&&K!==J&&(N=N||[]).push(oe,J)):oe==="children"?typeof J!="string"&&typeof J!="number"||(N=N||[]).push(oe,""+J):oe!=="suppressContentEditableWarning"&&oe!=="suppressHydrationWarning"&&(i.hasOwnProperty(oe)?(J!=null&&oe==="onScroll"&&at("scroll",s),N||K===J||(N=[])):(N=N||[]).push(oe,J))}h&&(N=N||[]).push("style",h);var oe=N;(c.updateQueue=oe)&&(c.flags|=4)}},H0=function(s,c,h,y){h!==y&&(c.flags|=4)};function qs(s,c){if(!ct)switch(s.tailMode){case"hidden":c=s.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?s.tail=null:h.sibling=null;break;case"collapsed":h=s.tail;for(var y=null;h!==null;)h.alternate!==null&&(y=h),h=h.sibling;y===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:y.sibling=null}}function en(s){var c=s.alternate!==null&&s.alternate.child===s.child,h=0,y=0;if(c)for(var x=s.child;x!==null;)h|=x.lanes|x.childLanes,y|=x.subtreeFlags&14680064,y|=x.flags&14680064,x.return=s,x=x.sibling;else for(x=s.child;x!==null;)h|=x.lanes|x.childLanes,y|=x.subtreeFlags,y|=x.flags,x.return=s,x=x.sibling;return s.subtreeFlags|=y,s.childLanes=h,c}function Y2(s,c,h){var y=c.pendingProps;switch(sf(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return en(c),null;case 1:return fn(c.type)&&Ic(),en(c),null;case 3:return y=c.stateNode,go(),ot(pn),ot(Qt),Ef(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),(s===null||s.child===null)&&(Pc(c)?c.flags|=4:s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,er!==null&&(Kf(er),er=null))),Uf(s,c),en(c),null;case 5:yf(c);var x=ca($s.current);if(h=c.type,s!==null&&c.stateNode!=null)j0(s,c,h,y,x),s.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!y){if(c.stateNode===null)throw Error(n(166));return en(c),null}if(s=ca(wr.current),Pc(c)){y=c.stateNode,h=c.type;var N=c.memoizedProps;switch(y[Er]=c,y[Ms]=N,s=(c.mode&1)!==0,h){case"dialog":at("cancel",y),at("close",y);break;case"iframe":case"object":case"embed":at("load",y);break;case"video":case"audio":for(x=0;x<Os.length;x++)at(Os[x],y);break;case"source":at("error",y);break;case"img":case"image":case"link":at("error",y),at("load",y);break;case"details":at("toggle",y);break;case"input":Se(y,N),at("invalid",y);break;case"select":y._wrapperState={wasMultiple:!!N.multiple},at("invalid",y);break;case"textarea":Xt(y,N),at("invalid",y)}di(h,N),x=null;for(var P in N)if(N.hasOwnProperty(P)){var K=N[P];P==="children"?typeof K=="string"?y.textContent!==K&&(N.suppressHydrationWarning!==!0&&Rc(y.textContent,K,s),x=["children",K]):typeof K=="number"&&y.textContent!==""+K&&(N.suppressHydrationWarning!==!0&&Rc(y.textContent,K,s),x=["children",""+K]):i.hasOwnProperty(P)&&K!=null&&P==="onScroll"&&at("scroll",y)}switch(h){case"input":de(y),Be(y,N,!0);break;case"textarea":de(y),ht(y);break;case"select":case"option":break;default:typeof N.onClick=="function"&&(y.onclick=kc)}y=x,c.updateQueue=y,y!==null&&(c.flags|=4)}else{P=x.nodeType===9?x:x.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=kt(h)),s==="http://www.w3.org/1999/xhtml"?h==="script"?(s=P.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof y.is=="string"?s=P.createElement(h,{is:y.is}):(s=P.createElement(h),h==="select"&&(P=s,y.multiple?P.multiple=!0:y.size&&(P.size=y.size))):s=P.createElementNS(s,h),s[Er]=c,s[Ms]=y,z0(s,c,!1,!1),c.stateNode=s;e:{switch(P=Qn(h,y),h){case"dialog":at("cancel",s),at("close",s),x=y;break;case"iframe":case"object":case"embed":at("load",s),x=y;break;case"video":case"audio":for(x=0;x<Os.length;x++)at(Os[x],s);x=y;break;case"source":at("error",s),x=y;break;case"img":case"image":case"link":at("error",s),at("load",s),x=y;break;case"details":at("toggle",s),x=y;break;case"input":Se(s,y),x=he(s,y),at("invalid",s);break;case"option":x=y;break;case"select":s._wrapperState={wasMultiple:!!y.multiple},x=Y({},y,{value:void 0}),at("invalid",s);break;case"textarea":Xt(s,y),x=St(s,y),at("invalid",s);break;default:x=y}di(h,x),K=x;for(N in K)if(K.hasOwnProperty(N)){var J=K[N];N==="style"?Bn(s,J):N==="dangerouslySetInnerHTML"?(J=J?J.__html:void 0,J!=null&&Nt(s,J)):N==="children"?typeof J=="string"?(h!=="textarea"||J!=="")&&Ut(s,J):typeof J=="number"&&Ut(s,""+J):N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&N!=="autoFocus"&&(i.hasOwnProperty(N)?J!=null&&N==="onScroll"&&at("scroll",s):J!=null&&w(s,N,J,P))}switch(h){case"input":de(s),Be(s,y,!1);break;case"textarea":de(s),ht(s);break;case"option":y.value!=null&&s.setAttribute("value",""+Z(y.value));break;case"select":s.multiple=!!y.multiple,N=y.value,N!=null?nt(s,!!y.multiple,N,!1):y.defaultValue!=null&&nt(s,!!y.multiple,y.defaultValue,!0);break;default:typeof x.onClick=="function"&&(s.onclick=kc)}switch(h){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break e;case"img":y=!0;break e;default:y=!1}}y&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return en(c),null;case 6:if(s&&c.stateNode!=null)H0(s,c,s.memoizedProps,y);else{if(typeof y!="string"&&c.stateNode===null)throw Error(n(166));if(h=ca($s.current),ca(wr.current),Pc(c)){if(y=c.stateNode,h=c.memoizedProps,y[Er]=c,(N=y.nodeValue!==h)&&(s=Tn,s!==null))switch(s.tag){case 3:Rc(y.nodeValue,h,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&Rc(y.nodeValue,h,(s.mode&1)!==0)}N&&(c.flags|=4)}else y=(h.nodeType===9?h:h.ownerDocument).createTextNode(y),y[Er]=c,c.stateNode=y}return en(c),null;case 13:if(ot(mt),y=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(ct&&Cn!==null&&(c.mode&1)!==0&&(c.flags&128)===0)Vx(),uo(),c.flags|=98560,N=!1;else if(N=Pc(c),y!==null&&y.dehydrated!==null){if(s===null){if(!N)throw Error(n(318));if(N=c.memoizedState,N=N!==null?N.dehydrated:null,!N)throw Error(n(317));N[Er]=c}else uo(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;en(c),N=!1}else er!==null&&(Kf(er),er=null),N=!0;if(!N)return c.flags&65536?c:null}return(c.flags&128)!==0?(c.lanes=h,c):(y=y!==null,y!==(s!==null&&s.memoizedState!==null)&&y&&(c.child.flags|=8192,(c.mode&1)!==0&&(s===null||(mt.current&1)!==0?Pt===0&&(Pt=3):Jf())),c.updateQueue!==null&&(c.flags|=4),en(c),null);case 4:return go(),Uf(s,c),s===null&&Ls(c.stateNode.containerInfo),en(c),null;case 10:return ff(c.type._context),en(c),null;case 17:return fn(c.type)&&Ic(),en(c),null;case 19:if(ot(mt),N=c.memoizedState,N===null)return en(c),null;if(y=(c.flags&128)!==0,P=N.rendering,P===null)if(y)qs(N,!1);else{if(Pt!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(P=jc(s),P!==null){for(c.flags|=128,qs(N,!1),y=P.updateQueue,y!==null&&(c.updateQueue=y,c.flags|=4),c.subtreeFlags=0,y=h,h=c.child;h!==null;)N=h,s=y,N.flags&=14680066,P=N.alternate,P===null?(N.childLanes=0,N.lanes=s,N.child=null,N.subtreeFlags=0,N.memoizedProps=null,N.memoizedState=null,N.updateQueue=null,N.dependencies=null,N.stateNode=null):(N.childLanes=P.childLanes,N.lanes=P.lanes,N.child=P.child,N.subtreeFlags=0,N.deletions=null,N.memoizedProps=P.memoizedProps,N.memoizedState=P.memoizedState,N.updateQueue=P.updateQueue,N.type=P.type,s=P.dependencies,N.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),h=h.sibling;return rt(mt,mt.current&1|2),c.child}s=s.sibling}N.tail!==null&&gt()>vo&&(c.flags|=128,y=!0,qs(N,!1),c.lanes=4194304)}else{if(!y)if(s=jc(P),s!==null){if(c.flags|=128,y=!0,h=s.updateQueue,h!==null&&(c.updateQueue=h,c.flags|=4),qs(N,!0),N.tail===null&&N.tailMode==="hidden"&&!P.alternate&&!ct)return en(c),null}else 2*gt()-N.renderingStartTime>vo&&h!==1073741824&&(c.flags|=128,y=!0,qs(N,!1),c.lanes=4194304);N.isBackwards?(P.sibling=c.child,c.child=P):(h=N.last,h!==null?h.sibling=P:c.child=P,N.last=P)}return N.tail!==null?(c=N.tail,N.rendering=c,N.tail=c.sibling,N.renderingStartTime=gt(),c.sibling=null,h=mt.current,rt(mt,y?h&1|2:h&1),c):(en(c),null);case 22:case 23:return Qf(),y=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==y&&(c.flags|=8192),y&&(c.mode&1)!==0?(Rn&1073741824)!==0&&(en(c),c.subtreeFlags&6&&(c.flags|=8192)):en(c),null;case 24:return null;case 25:return null}throw Error(n(156,c.tag))}function X2(s,c){switch(sf(c),c.tag){case 1:return fn(c.type)&&Ic(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return go(),ot(pn),ot(Qt),Ef(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 5:return yf(c),null;case 13:if(ot(mt),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(n(340));uo()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return ot(mt),null;case 4:return go(),null;case 10:return ff(c.type._context),null;case 22:case 23:return Qf(),null;case 24:return null;default:return null}}var Zc=!1,tn=!1,K2=typeof WeakSet=="function"?WeakSet:Set,be=null;function bo(s,c){var h=s.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(y){wt(s,c,y)}else h.current=null}function $f(s,c,h){try{h()}catch(y){wt(s,c,y)}}var G0=!1;function Z2(s,c){if(Zp=bc,s=Sx(),Hp(s)){if("selectionStart"in s)var h={start:s.selectionStart,end:s.selectionEnd};else e:{h=(h=s.ownerDocument)&&h.defaultView||window;var y=h.getSelection&&h.getSelection();if(y&&y.rangeCount!==0){h=y.anchorNode;var x=y.anchorOffset,N=y.focusNode;y=y.focusOffset;try{h.nodeType,N.nodeType}catch{h=null;break e}var P=0,K=-1,J=-1,oe=0,pe=0,fe=s,ue=null;t:for(;;){for(var me;fe!==h||x!==0&&fe.nodeType!==3||(K=P+x),fe!==N||y!==0&&fe.nodeType!==3||(J=P+y),fe.nodeType===3&&(P+=fe.nodeValue.length),(me=fe.firstChild)!==null;)ue=fe,fe=me;for(;;){if(fe===s)break t;if(ue===h&&++oe===x&&(K=P),ue===N&&++pe===y&&(J=P),(me=fe.nextSibling)!==null)break;fe=ue,ue=fe.parentNode}fe=me}h=K===-1||J===-1?null:{start:K,end:J}}else h=null}h=h||{start:0,end:0}}else h=null;for(Qp={focusedElem:s,selectionRange:h},bc=!1,be=c;be!==null;)if(c=be,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,be=s;else for(;be!==null;){c=be;try{var ve=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(ve!==null){var Ae=ve.memoizedProps,xt=ve.memoizedState,re=c.stateNode,ee=re.getSnapshotBeforeUpdate(c.elementType===c.type?Ae:tr(c.type,Ae),xt);re.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var ae=c.stateNode.containerInfo;ae.nodeType===1?ae.textContent="":ae.nodeType===9&&ae.documentElement&&ae.removeChild(ae.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ge){wt(c,c.return,ge)}if(s=c.sibling,s!==null){s.return=c.return,be=s;break}be=c.return}return ve=G0,G0=!1,ve}function Vs(s,c,h){var y=c.updateQueue;if(y=y!==null?y.lastEffect:null,y!==null){var x=y=y.next;do{if((x.tag&s)===s){var N=x.destroy;x.destroy=void 0,N!==void 0&&$f(c,h,N)}x=x.next}while(x!==y)}}function Qc(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&s)===s){var y=h.create;h.destroy=y()}h=h.next}while(h!==c)}}function zf(s){var c=s.ref;if(c!==null){var h=s.stateNode;switch(s.tag){case 5:s=h;break;default:s=h}typeof c=="function"?c(s):c.current=s}}function q0(s){var c=s.alternate;c!==null&&(s.alternate=null,q0(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[Er],delete c[Ms],delete c[nf],delete c[L2],delete c[D2])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function V0(s){return s.tag===5||s.tag===3||s.tag===4}function W0(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||V0(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function jf(s,c,h){var y=s.tag;if(y===5||y===6)s=s.stateNode,c?h.nodeType===8?h.parentNode.insertBefore(s,c):h.insertBefore(s,c):(h.nodeType===8?(c=h.parentNode,c.insertBefore(s,h)):(c=h,c.appendChild(s)),h=h._reactRootContainer,h!=null||c.onclick!==null||(c.onclick=kc));else if(y!==4&&(s=s.child,s!==null))for(jf(s,c,h),s=s.sibling;s!==null;)jf(s,c,h),s=s.sibling}function Hf(s,c,h){var y=s.tag;if(y===5||y===6)s=s.stateNode,c?h.insertBefore(s,c):h.appendChild(s);else if(y!==4&&(s=s.child,s!==null))for(Hf(s,c,h),s=s.sibling;s!==null;)Hf(s,c,h),s=s.sibling}var Vt=null,nr=!1;function Ri(s,c,h){for(h=h.child;h!==null;)Y0(s,c,h),h=h.sibling}function Y0(s,c,h){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount(na,h)}catch{}switch(h.tag){case 5:tn||bo(h,c);case 6:var y=Vt,x=nr;Vt=null,Ri(s,c,h),Vt=y,nr=x,Vt!==null&&(nr?(s=Vt,h=h.stateNode,s.nodeType===8?s.parentNode.removeChild(h):s.removeChild(h)):Vt.removeChild(h.stateNode));break;case 18:Vt!==null&&(nr?(s=Vt,h=h.stateNode,s.nodeType===8?tf(s.parentNode,h):s.nodeType===1&&tf(s,h),As(s)):tf(Vt,h.stateNode));break;case 4:y=Vt,x=nr,Vt=h.stateNode.containerInfo,nr=!0,Ri(s,c,h),Vt=y,nr=x;break;case 0:case 11:case 14:case 15:if(!tn&&(y=h.updateQueue,y!==null&&(y=y.lastEffect,y!==null))){x=y=y.next;do{var N=x,P=N.destroy;N=N.tag,P!==void 0&&((N&2)!==0||(N&4)!==0)&&$f(h,c,P),x=x.next}while(x!==y)}Ri(s,c,h);break;case 1:if(!tn&&(bo(h,c),y=h.stateNode,typeof y.componentWillUnmount=="function"))try{y.props=h.memoizedProps,y.state=h.memoizedState,y.componentWillUnmount()}catch(K){wt(h,c,K)}Ri(s,c,h);break;case 21:Ri(s,c,h);break;case 22:h.mode&1?(tn=(y=tn)||h.memoizedState!==null,Ri(s,c,h),tn=y):Ri(s,c,h);break;default:Ri(s,c,h)}}function X0(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var h=s.stateNode;h===null&&(h=s.stateNode=new K2),c.forEach(function(y){var x=oB.bind(null,s,y);h.has(y)||(h.add(y),y.then(x,x))})}}function rr(s,c){var h=c.deletions;if(h!==null)for(var y=0;y<h.length;y++){var x=h[y];try{var N=s,P=c,K=P;e:for(;K!==null;){switch(K.tag){case 5:Vt=K.stateNode,nr=!1;break e;case 3:Vt=K.stateNode.containerInfo,nr=!0;break e;case 4:Vt=K.stateNode.containerInfo,nr=!0;break e}K=K.return}if(Vt===null)throw Error(n(160));Y0(N,P,x),Vt=null,nr=!1;var J=x.alternate;J!==null&&(J.return=null),x.return=null}catch(oe){wt(x,c,oe)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)K0(c,s),c=c.sibling}function K0(s,c){var h=s.alternate,y=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(rr(c,s),xr(s),y&4){try{Vs(3,s,s.return),Qc(3,s)}catch(Ae){wt(s,s.return,Ae)}try{Vs(5,s,s.return)}catch(Ae){wt(s,s.return,Ae)}}break;case 1:rr(c,s),xr(s),y&512&&h!==null&&bo(h,h.return);break;case 5:if(rr(c,s),xr(s),y&512&&h!==null&&bo(h,h.return),s.flags&32){var x=s.stateNode;try{Ut(x,"")}catch(Ae){wt(s,s.return,Ae)}}if(y&4&&(x=s.stateNode,x!=null)){var N=s.memoizedProps,P=h!==null?h.memoizedProps:N,K=s.type,J=s.updateQueue;if(s.updateQueue=null,J!==null)try{K==="input"&&N.type==="radio"&&N.name!=null&&xe(x,N),Qn(K,P);var oe=Qn(K,N);for(P=0;P<J.length;P+=2){var pe=J[P],fe=J[P+1];pe==="style"?Bn(x,fe):pe==="dangerouslySetInnerHTML"?Nt(x,fe):pe==="children"?Ut(x,fe):w(x,pe,fe,oe)}switch(K){case"input":Fe(x,N);break;case"textarea":Kt(x,N);break;case"select":var ue=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!N.multiple;var me=N.value;me!=null?nt(x,!!N.multiple,me,!1):ue!==!!N.multiple&&(N.defaultValue!=null?nt(x,!!N.multiple,N.defaultValue,!0):nt(x,!!N.multiple,N.multiple?[]:"",!1))}x[Ms]=N}catch(Ae){wt(s,s.return,Ae)}}break;case 6:if(rr(c,s),xr(s),y&4){if(s.stateNode===null)throw Error(n(162));x=s.stateNode,N=s.memoizedProps;try{x.nodeValue=N}catch(Ae){wt(s,s.return,Ae)}}break;case 3:if(rr(c,s),xr(s),y&4&&h!==null&&h.memoizedState.isDehydrated)try{As(c.containerInfo)}catch(Ae){wt(s,s.return,Ae)}break;case 4:rr(c,s),xr(s);break;case 13:rr(c,s),xr(s),x=s.child,x.flags&8192&&(N=x.memoizedState!==null,x.stateNode.isHidden=N,!N||x.alternate!==null&&x.alternate.memoizedState!==null||(Vf=gt())),y&4&&X0(s);break;case 22:if(pe=h!==null&&h.memoizedState!==null,s.mode&1?(tn=(oe=tn)||pe,rr(c,s),tn=oe):rr(c,s),xr(s),y&8192){if(oe=s.memoizedState!==null,(s.stateNode.isHidden=oe)&&!pe&&(s.mode&1)!==0)for(be=s,pe=s.child;pe!==null;){for(fe=be=pe;be!==null;){switch(ue=be,me=ue.child,ue.tag){case 0:case 11:case 14:case 15:Vs(4,ue,ue.return);break;case 1:bo(ue,ue.return);var ve=ue.stateNode;if(typeof ve.componentWillUnmount=="function"){y=ue,h=ue.return;try{c=y,ve.props=c.memoizedProps,ve.state=c.memoizedState,ve.componentWillUnmount()}catch(Ae){wt(y,h,Ae)}}break;case 5:bo(ue,ue.return);break;case 22:if(ue.memoizedState!==null){J0(fe);continue}}me!==null?(me.return=ue,be=me):J0(fe)}pe=pe.sibling}e:for(pe=null,fe=s;;){if(fe.tag===5){if(pe===null){pe=fe;try{x=fe.stateNode,oe?(N=x.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none"):(K=fe.stateNode,J=fe.memoizedProps.style,P=J!=null&&J.hasOwnProperty("display")?J.display:null,K.style.display=mr("display",P))}catch(Ae){wt(s,s.return,Ae)}}}else if(fe.tag===6){if(pe===null)try{fe.stateNode.nodeValue=oe?"":fe.memoizedProps}catch(Ae){wt(s,s.return,Ae)}}else if((fe.tag!==22&&fe.tag!==23||fe.memoizedState===null||fe===s)&&fe.child!==null){fe.child.return=fe,fe=fe.child;continue}if(fe===s)break e;for(;fe.sibling===null;){if(fe.return===null||fe.return===s)break e;pe===fe&&(pe=null),fe=fe.return}pe===fe&&(pe=null),fe.sibling.return=fe.return,fe=fe.sibling}}break;case 19:rr(c,s),xr(s),y&4&&X0(s);break;case 21:break;default:rr(c,s),xr(s)}}function xr(s){var c=s.flags;if(c&2){try{e:{for(var h=s.return;h!==null;){if(V0(h)){var y=h;break e}h=h.return}throw Error(n(160))}switch(y.tag){case 5:var x=y.stateNode;y.flags&32&&(Ut(x,""),y.flags&=-33);var N=W0(s);Hf(s,N,x);break;case 3:case 4:var P=y.stateNode.containerInfo,K=W0(s);jf(s,K,P);break;default:throw Error(n(161))}}catch(J){wt(s,s.return,J)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function Q2(s,c,h){be=s,Z0(s)}function Z0(s,c,h){for(var y=(s.mode&1)!==0;be!==null;){var x=be,N=x.child;if(x.tag===22&&y){var P=x.memoizedState!==null||Zc;if(!P){var K=x.alternate,J=K!==null&&K.memoizedState!==null||tn;K=Zc;var oe=tn;if(Zc=P,(tn=J)&&!oe)for(be=x;be!==null;)P=be,J=P.child,P.tag===22&&P.memoizedState!==null?eA(x):J!==null?(J.return=P,be=J):eA(x);for(;N!==null;)be=N,Z0(N),N=N.sibling;be=x,Zc=K,tn=oe}Q0(s)}else(x.subtreeFlags&8772)!==0&&N!==null?(N.return=x,be=N):Q0(s)}}function Q0(s){for(;be!==null;){var c=be;if((c.flags&8772)!==0){var h=c.alternate;try{if((c.flags&8772)!==0)switch(c.tag){case 0:case 11:case 15:tn||Qc(5,c);break;case 1:var y=c.stateNode;if(c.flags&4&&!tn)if(h===null)y.componentDidMount();else{var x=c.elementType===c.type?h.memoizedProps:tr(c.type,h.memoizedProps);y.componentDidUpdate(x,h.memoizedState,y.__reactInternalSnapshotBeforeUpdate)}var N=c.updateQueue;N!==null&&Jx(c,N,y);break;case 3:var P=c.updateQueue;if(P!==null){if(h=null,c.child!==null)switch(c.child.tag){case 5:h=c.child.stateNode;break;case 1:h=c.child.stateNode}Jx(c,P,h)}break;case 5:var K=c.stateNode;if(h===null&&c.flags&4){h=K;var J=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":J.autoFocus&&h.focus();break;case"img":J.src&&(h.src=J.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var oe=c.alternate;if(oe!==null){var pe=oe.memoizedState;if(pe!==null){var fe=pe.dehydrated;fe!==null&&As(fe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}tn||c.flags&512&&zf(c)}catch(ue){wt(c,c.return,ue)}}if(c===s){be=null;break}if(h=c.sibling,h!==null){h.return=c.return,be=h;break}be=c.return}}function J0(s){for(;be!==null;){var c=be;if(c===s){be=null;break}var h=c.sibling;if(h!==null){h.return=c.return,be=h;break}be=c.return}}function eA(s){for(;be!==null;){var c=be;try{switch(c.tag){case 0:case 11:case 15:var h=c.return;try{Qc(4,c)}catch(J){wt(c,h,J)}break;case 1:var y=c.stateNode;if(typeof y.componentDidMount=="function"){var x=c.return;try{y.componentDidMount()}catch(J){wt(c,x,J)}}var N=c.return;try{zf(c)}catch(J){wt(c,N,J)}break;case 5:var P=c.return;try{zf(c)}catch(J){wt(c,P,J)}}}catch(J){wt(c,c.return,J)}if(c===s){be=null;break}var K=c.sibling;if(K!==null){K.return=c.return,be=K;break}be=c.return}}var J2=Math.ceil,Jc=A.ReactCurrentDispatcher,Gf=A.ReactCurrentOwner,Gn=A.ReactCurrentBatchConfig,We=0,zt=null,It=null,Wt=0,Rn=0,yo=xi(0),Pt=0,Ws=null,da=0,eu=0,qf=0,Ys=null,gn=null,Vf=0,vo=1/0,Xr=null,tu=!1,Wf=null,ki=null,nu=!1,Ni=null,ru=0,Xs=0,Yf=null,iu=-1,au=0;function ln(){return(We&6)!==0?gt():iu!==-1?iu:iu=gt()}function Ii(s){return(s.mode&1)===0?1:(We&2)!==0&&Wt!==0?Wt&-Wt:P2.transition!==null?(au===0&&(au=hc()),au):(s=Je,s!==0||(s=window.event,s=s===void 0?16:nx(s.type)),s)}function ir(s,c,h,y){if(50<Xs)throw Xs=0,Yf=null,Error(n(185));gi(s,h,y),((We&2)===0||s!==zt)&&(s===zt&&((We&2)===0&&(eu|=h),Pt===4&&Oi(s,Wt)),mn(s,y),h===1&&We===0&&(c.mode&1)===0&&(vo=gt()+500,Lc&&_i()))}function mn(s,c){var h=s.callbackNode;Rp(s,c);var y=Za(s,s===zt?Wt:0);if(y===0)h!==null&&uc(h),s.callbackNode=null,s.callbackPriority=0;else if(c=y&-y,s.callbackPriority!==c){if(h!=null&&uc(h),c===1)s.tag===0?M2(nA.bind(null,s)):zx(nA.bind(null,s)),I2(function(){(We&6)===0&&_i()}),h=null;else{switch(YS(y)){case 1:h=ys;break;case 4:h=pc;break;case 16:h=Ya;break;case 536870912:h=fc;break;default:h=Ya}h=uA(h,tA.bind(null,s))}s.callbackPriority=c,s.callbackNode=h}}function tA(s,c){if(iu=-1,au=0,(We&6)!==0)throw Error(n(327));var h=s.callbackNode;if(Eo()&&s.callbackNode!==h)return null;var y=Za(s,s===zt?Wt:0);if(y===0)return null;if((y&30)!==0||(y&s.expiredLanes)!==0||c)c=ou(s,y);else{c=y;var x=We;We|=2;var N=iA();(zt!==s||Wt!==c)&&(Xr=null,vo=gt()+500,fa(s,c));do try{nB();break}catch(K){rA(s,K)}while(!0);pf(),Jc.current=N,We=x,It!==null?c=0:(zt=null,Wt=0,c=Pt)}if(c!==0){if(c===2&&(x=ra(s),x!==0&&(y=x,c=Xf(s,x))),c===1)throw h=Ws,fa(s,0),Oi(s,y),mn(s,gt()),h;if(c===6)Oi(s,y);else{if(x=s.current.alternate,(y&30)===0&&!eB(x)&&(c=ou(s,y),c===2&&(N=ra(s),N!==0&&(y=N,c=Xf(s,N))),c===1))throw h=Ws,fa(s,0),Oi(s,y),mn(s,gt()),h;switch(s.finishedWork=x,s.finishedLanes=y,c){case 0:case 1:throw Error(n(345));case 2:ha(s,gn,Xr);break;case 3:if(Oi(s,y),(y&130023424)===y&&(c=Vf+500-gt(),10<c)){if(Za(s,0)!==0)break;if(x=s.suspendedLanes,(x&y)!==y){ln(),s.pingedLanes|=s.suspendedLanes&x;break}s.timeoutHandle=ef(ha.bind(null,s,gn,Xr),c);break}ha(s,gn,Xr);break;case 4:if(Oi(s,y),(y&4194240)===y)break;for(c=s.eventTimes,x=-1;0<y;){var P=31-An(y);N=1<<P,P=c[P],P>x&&(x=P),y&=~N}if(y=x,y=gt()-y,y=(120>y?120:480>y?480:1080>y?1080:1920>y?1920:3e3>y?3e3:4320>y?4320:1960*J2(y/1960))-y,10<y){s.timeoutHandle=ef(ha.bind(null,s,gn,Xr),y);break}ha(s,gn,Xr);break;case 5:ha(s,gn,Xr);break;default:throw Error(n(329))}}}return mn(s,gt()),s.callbackNode===h?tA.bind(null,s):null}function Xf(s,c){var h=Ys;return s.current.memoizedState.isDehydrated&&(fa(s,c).flags|=256),s=ou(s,c),s!==2&&(c=gn,gn=h,c!==null&&Kf(c)),s}function Kf(s){gn===null?gn=s:gn.push.apply(gn,s)}function eB(s){for(var c=s;;){if(c.flags&16384){var h=c.updateQueue;if(h!==null&&(h=h.stores,h!==null))for(var y=0;y<h.length;y++){var x=h[y],N=x.getSnapshot;x=x.value;try{if(!Jn(N(),x))return!1}catch{return!1}}}if(h=c.child,c.subtreeFlags&16384&&h!==null)h.return=c,c=h;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Oi(s,c){for(c&=~qf,c&=~eu,s.suspendedLanes|=c,s.pingedLanes&=~c,s=s.expirationTimes;0<c;){var h=31-An(c),y=1<<h;s[h]=-1,c&=~y}}function nA(s){if((We&6)!==0)throw Error(n(327));Eo();var c=Za(s,0);if((c&1)===0)return mn(s,gt()),null;var h=ou(s,c);if(s.tag!==0&&h===2){var y=ra(s);y!==0&&(c=y,h=Xf(s,y))}if(h===1)throw h=Ws,fa(s,0),Oi(s,c),mn(s,gt()),h;if(h===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=c,ha(s,gn,Xr),mn(s,gt()),null}function Zf(s,c){var h=We;We|=1;try{return s(c)}finally{We=h,We===0&&(vo=gt()+500,Lc&&_i())}}function pa(s){Ni!==null&&Ni.tag===0&&(We&6)===0&&Eo();var c=We;We|=1;var h=Gn.transition,y=Je;try{if(Gn.transition=null,Je=1,s)return s()}finally{Je=y,Gn.transition=h,We=c,(We&6)===0&&_i()}}function Qf(){Rn=yo.current,ot(yo)}function fa(s,c){s.finishedWork=null,s.finishedLanes=0;var h=s.timeoutHandle;if(h!==-1&&(s.timeoutHandle=-1,N2(h)),It!==null)for(h=It.return;h!==null;){var y=h;switch(sf(y),y.tag){case 1:y=y.type.childContextTypes,y!=null&&Ic();break;case 3:go(),ot(pn),ot(Qt),Ef();break;case 5:yf(y);break;case 4:go();break;case 13:ot(mt);break;case 19:ot(mt);break;case 10:ff(y.type._context);break;case 22:case 23:Qf()}h=h.return}if(zt=s,It=s=Li(s.current,null),Wt=Rn=c,Pt=0,Ws=null,qf=eu=da=0,gn=Ys=null,la!==null){for(c=0;c<la.length;c++)if(h=la[c],y=h.interleaved,y!==null){h.interleaved=null;var x=y.next,N=h.pending;if(N!==null){var P=N.next;N.next=x,y.next=P}h.pending=y}la=null}return s}function rA(s,c){do{var h=It;try{if(pf(),Hc.current=Wc,Gc){for(var y=bt.memoizedState;y!==null;){var x=y.queue;x!==null&&(x.pending=null),y=y.next}Gc=!1}if(ua=0,$t=Mt=bt=null,zs=!1,js=0,Gf.current=null,h===null||h.return===null){Pt=1,Ws=c,It=null;break}e:{var N=s,P=h.return,K=h,J=c;if(c=Wt,K.flags|=32768,J!==null&&typeof J=="object"&&typeof J.then=="function"){var oe=J,pe=K,fe=pe.tag;if((pe.mode&1)===0&&(fe===0||fe===11||fe===15)){var ue=pe.alternate;ue?(pe.updateQueue=ue.updateQueue,pe.memoizedState=ue.memoizedState,pe.lanes=ue.lanes):(pe.updateQueue=null,pe.memoizedState=null)}var me=R0(P);if(me!==null){me.flags&=-257,k0(me,P,K,N,c),me.mode&1&&C0(N,oe,c),c=me,J=oe;var ve=c.updateQueue;if(ve===null){var Ae=new Set;Ae.add(J),c.updateQueue=Ae}else ve.add(J);break e}else{if((c&1)===0){C0(N,oe,c),Jf();break e}J=Error(n(426))}}else if(ct&&K.mode&1){var xt=R0(P);if(xt!==null){(xt.flags&65536)===0&&(xt.flags|=256),k0(xt,P,K,N,c),uf(mo(J,K));break e}}N=J=mo(J,K),Pt!==4&&(Pt=2),Ys===null?Ys=[N]:Ys.push(N),N=P;do{switch(N.tag){case 3:N.flags|=65536,c&=-c,N.lanes|=c;var re=_0(N,J,c);Qx(N,re);break e;case 1:K=J;var ee=N.type,ae=N.stateNode;if((N.flags&128)===0&&(typeof ee.getDerivedStateFromError=="function"||ae!==null&&typeof ae.componentDidCatch=="function"&&(ki===null||!ki.has(ae)))){N.flags|=65536,c&=-c,N.lanes|=c;var ge=T0(N,K,c);Qx(N,ge);break e}}N=N.return}while(N!==null)}oA(h)}catch(_e){c=_e,It===h&&h!==null&&(It=h=h.return);continue}break}while(!0)}function iA(){var s=Jc.current;return Jc.current=Wc,s===null?Wc:s}function Jf(){(Pt===0||Pt===3||Pt===2)&&(Pt=4),zt===null||(da&268435455)===0&&(eu&268435455)===0||Oi(zt,Wt)}function ou(s,c){var h=We;We|=2;var y=iA();(zt!==s||Wt!==c)&&(Xr=null,fa(s,c));do try{tB();break}catch(x){rA(s,x)}while(!0);if(pf(),We=h,Jc.current=y,It!==null)throw Error(n(261));return zt=null,Wt=0,Pt}function tB(){for(;It!==null;)aA(It)}function nB(){for(;It!==null&&!Ep();)aA(It)}function aA(s){var c=cA(s.alternate,s,Rn);s.memoizedProps=s.pendingProps,c===null?oA(s):It=c,Gf.current=null}function oA(s){var c=s;do{var h=c.alternate;if(s=c.return,(c.flags&32768)===0){if(h=Y2(h,c,Rn),h!==null){It=h;return}}else{if(h=X2(h,c),h!==null){h.flags&=32767,It=h;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Pt=6,It=null;return}}if(c=c.sibling,c!==null){It=c;return}It=c=s}while(c!==null);Pt===0&&(Pt=5)}function ha(s,c,h){var y=Je,x=Gn.transition;try{Gn.transition=null,Je=1,rB(s,c,h,y)}finally{Gn.transition=x,Je=y}return null}function rB(s,c,h,y){do Eo();while(Ni!==null);if((We&6)!==0)throw Error(n(327));h=s.finishedWork;var x=s.finishedLanes;if(h===null)return null;if(s.finishedWork=null,s.finishedLanes=0,h===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var N=h.lanes|h.childLanes;if(FF(s,N),s===zt&&(It=zt=null,Wt=0),(h.subtreeFlags&2064)===0&&(h.flags&2064)===0||nu||(nu=!0,uA(Ya,function(){return Eo(),null})),N=(h.flags&15990)!==0,(h.subtreeFlags&15990)!==0||N){N=Gn.transition,Gn.transition=null;var P=Je;Je=1;var K=We;We|=4,Gf.current=null,Z2(s,h),K0(h,s),x2(Qp),bc=!!Zp,Qp=Zp=null,s.current=h,Q2(h),dc(),We=K,Je=P,Gn.transition=N}else s.current=h;if(nu&&(nu=!1,Ni=s,ru=x),N=s.pendingLanes,N===0&&(ki=null),xp(h.stateNode),mn(s,gt()),c!==null)for(y=s.onRecoverableError,h=0;h<c.length;h++)x=c[h],y(x.value,{componentStack:x.stack,digest:x.digest});if(tu)throw tu=!1,s=Wf,Wf=null,s;return(ru&1)!==0&&s.tag!==0&&Eo(),N=s.pendingLanes,(N&1)!==0?s===Yf?Xs++:(Xs=0,Yf=s):Xs=0,_i(),null}function Eo(){if(Ni!==null){var s=YS(ru),c=Gn.transition,h=Je;try{if(Gn.transition=null,Je=16>s?16:s,Ni===null)var y=!1;else{if(s=Ni,Ni=null,ru=0,(We&6)!==0)throw Error(n(331));var x=We;for(We|=4,be=s.current;be!==null;){var N=be,P=N.child;if((be.flags&16)!==0){var K=N.deletions;if(K!==null){for(var J=0;J<K.length;J++){var oe=K[J];for(be=oe;be!==null;){var pe=be;switch(pe.tag){case 0:case 11:case 15:Vs(8,pe,N)}var fe=pe.child;if(fe!==null)fe.return=pe,be=fe;else for(;be!==null;){pe=be;var ue=pe.sibling,me=pe.return;if(q0(pe),pe===oe){be=null;break}if(ue!==null){ue.return=me,be=ue;break}be=me}}}var ve=N.alternate;if(ve!==null){var Ae=ve.child;if(Ae!==null){ve.child=null;do{var xt=Ae.sibling;Ae.sibling=null,Ae=xt}while(Ae!==null)}}be=N}}if((N.subtreeFlags&2064)!==0&&P!==null)P.return=N,be=P;else e:for(;be!==null;){if(N=be,(N.flags&2048)!==0)switch(N.tag){case 0:case 11:case 15:Vs(9,N,N.return)}var re=N.sibling;if(re!==null){re.return=N.return,be=re;break e}be=N.return}}var ee=s.current;for(be=ee;be!==null;){P=be;var ae=P.child;if((P.subtreeFlags&2064)!==0&&ae!==null)ae.return=P,be=ae;else e:for(P=ee;be!==null;){if(K=be,(K.flags&2048)!==0)try{switch(K.tag){case 0:case 11:case 15:Qc(9,K)}}catch(_e){wt(K,K.return,_e)}if(K===P){be=null;break e}var ge=K.sibling;if(ge!==null){ge.return=K.return,be=ge;break e}be=K.return}}if(We=x,_i(),Un&&typeof Un.onPostCommitFiberRoot=="function")try{Un.onPostCommitFiberRoot(na,s)}catch{}y=!0}return y}finally{Je=h,Gn.transition=c}}return!1}function sA(s,c,h){c=mo(h,c),c=_0(s,c,1),s=Ci(s,c,1),c=ln(),s!==null&&(gi(s,1,c),mn(s,c))}function wt(s,c,h){if(s.tag===3)sA(s,s,h);else for(;c!==null;){if(c.tag===3){sA(c,s,h);break}else if(c.tag===1){var y=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(ki===null||!ki.has(y))){s=mo(h,s),s=T0(c,s,1),c=Ci(c,s,1),s=ln(),c!==null&&(gi(c,1,s),mn(c,s));break}}c=c.return}}function iB(s,c,h){var y=s.pingCache;y!==null&&y.delete(c),c=ln(),s.pingedLanes|=s.suspendedLanes&h,zt===s&&(Wt&h)===h&&(Pt===4||Pt===3&&(Wt&130023424)===Wt&&500>gt()-Vf?fa(s,0):qf|=h),mn(s,c)}function lA(s,c){c===0&&((s.mode&1)===0?c=1:(c=Ka,Ka<<=1,(Ka&130023424)===0&&(Ka=4194304)));var h=ln();s=Vr(s,c),s!==null&&(gi(s,c,h),mn(s,h))}function aB(s){var c=s.memoizedState,h=0;c!==null&&(h=c.retryLane),lA(s,h)}function oB(s,c){var h=0;switch(s.tag){case 13:var y=s.stateNode,x=s.memoizedState;x!==null&&(h=x.retryLane);break;case 19:y=s.stateNode;break;default:throw Error(n(314))}y!==null&&y.delete(c),lA(s,h)}var cA;cA=function(s,c,h){if(s!==null)if(s.memoizedProps!==c.pendingProps||pn.current)hn=!0;else{if((s.lanes&h)===0&&(c.flags&128)===0)return hn=!1,W2(s,c,h);hn=(s.flags&131072)!==0}else hn=!1,ct&&(c.flags&1048576)!==0&&jx(c,Mc,c.index);switch(c.lanes=0,c.tag){case 2:var y=c.type;Kc(s,c),s=c.pendingProps;var x=so(c,Qt.current);ho(c,h),x=xf(null,c,y,s,x,h);var N=Af();return c.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,fn(y)?(N=!0,Oc(c)):N=!1,c.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,mf(c),x.updater=Yc,c.stateNode=x,x._reactInternals=c,Nf(c,y,s,h),c=Df(null,c,y,!0,N,h)):(c.tag=0,ct&&N&&of(c),sn(null,c,x,h),c=c.child),c;case 16:y=c.elementType;e:{switch(Kc(s,c),s=c.pendingProps,x=y._init,y=x(y._payload),c.type=y,x=c.tag=lB(y),s=tr(y,s),x){case 0:c=Lf(null,c,y,s,h);break e;case 1:c=M0(null,c,y,s,h);break e;case 11:c=N0(null,c,y,s,h);break e;case 14:c=I0(null,c,y,tr(y.type,s),h);break e}throw Error(n(306,y,""))}return c;case 0:return y=c.type,x=c.pendingProps,x=c.elementType===y?x:tr(y,x),Lf(s,c,y,x,h);case 1:return y=c.type,x=c.pendingProps,x=c.elementType===y?x:tr(y,x),M0(s,c,y,x,h);case 3:e:{if(P0(c),s===null)throw Error(n(387));y=c.pendingProps,N=c.memoizedState,x=N.element,Zx(s,c),zc(c,y,null,h);var P=c.memoizedState;if(y=P.element,N.isDehydrated)if(N={element:y,isDehydrated:!1,cache:P.cache,pendingSuspenseBoundaries:P.pendingSuspenseBoundaries,transitions:P.transitions},c.updateQueue.baseState=N,c.memoizedState=N,c.flags&256){x=mo(Error(n(423)),c),c=F0(s,c,y,h,x);break e}else if(y!==x){x=mo(Error(n(424)),c),c=F0(s,c,y,h,x);break e}else for(Cn=Si(c.stateNode.containerInfo.firstChild),Tn=c,ct=!0,er=null,h=Xx(c,null,y,h),c.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(uo(),y===x){c=Yr(s,c,h);break e}sn(s,c,y,h)}c=c.child}return c;case 5:return e0(c),s===null&&cf(c),y=c.type,x=c.pendingProps,N=s!==null?s.memoizedProps:null,P=x.children,Jp(y,x)?P=null:N!==null&&Jp(y,N)&&(c.flags|=32),D0(s,c),sn(s,c,P,h),c.child;case 6:return s===null&&cf(c),null;case 13:return B0(s,c,h);case 4:return bf(c,c.stateNode.containerInfo),y=c.pendingProps,s===null?c.child=po(c,null,y,h):sn(s,c,y,h),c.child;case 11:return y=c.type,x=c.pendingProps,x=c.elementType===y?x:tr(y,x),N0(s,c,y,x,h);case 7:return sn(s,c,c.pendingProps,h),c.child;case 8:return sn(s,c,c.pendingProps.children,h),c.child;case 12:return sn(s,c,c.pendingProps.children,h),c.child;case 10:e:{if(y=c.type._context,x=c.pendingProps,N=c.memoizedProps,P=x.value,rt(Bc,y._currentValue),y._currentValue=P,N!==null)if(Jn(N.value,P)){if(N.children===x.children&&!pn.current){c=Yr(s,c,h);break e}}else for(N=c.child,N!==null&&(N.return=c);N!==null;){var K=N.dependencies;if(K!==null){P=N.child;for(var J=K.firstContext;J!==null;){if(J.context===y){if(N.tag===1){J=Wr(-1,h&-h),J.tag=2;var oe=N.updateQueue;if(oe!==null){oe=oe.shared;var pe=oe.pending;pe===null?J.next=J:(J.next=pe.next,pe.next=J),oe.pending=J}}N.lanes|=h,J=N.alternate,J!==null&&(J.lanes|=h),hf(N.return,h,c),K.lanes|=h;break}J=J.next}}else if(N.tag===10)P=N.type===c.type?null:N.child;else if(N.tag===18){if(P=N.return,P===null)throw Error(n(341));P.lanes|=h,K=P.alternate,K!==null&&(K.lanes|=h),hf(P,h,c),P=N.sibling}else P=N.child;if(P!==null)P.return=N;else for(P=N;P!==null;){if(P===c){P=null;break}if(N=P.sibling,N!==null){N.return=P.return,P=N;break}P=P.return}N=P}sn(s,c,x.children,h),c=c.child}return c;case 9:return x=c.type,y=c.pendingProps.children,ho(c,h),x=jn(x),y=y(x),c.flags|=1,sn(s,c,y,h),c.child;case 14:return y=c.type,x=tr(y,c.pendingProps),x=tr(y.type,x),I0(s,c,y,x,h);case 15:return O0(s,c,c.type,c.pendingProps,h);case 17:return y=c.type,x=c.pendingProps,x=c.elementType===y?x:tr(y,x),Kc(s,c),c.tag=1,fn(y)?(s=!0,Oc(c)):s=!1,ho(c,h),x0(c,y,x),Nf(c,y,x,h),Df(null,c,y,!0,s,h);case 19:return $0(s,c,h);case 22:return L0(s,c,h)}throw Error(n(156,c.tag))};function uA(s,c){return cc(s,c)}function sB(s,c,h,y){this.tag=s,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qn(s,c,h,y){return new sB(s,c,h,y)}function eh(s){return s=s.prototype,!(!s||!s.isReactComponent)}function lB(s){if(typeof s=="function")return eh(s)?1:0;if(s!=null){if(s=s.$$typeof,s===H)return 11;if(s===z)return 14}return 2}function Li(s,c){var h=s.alternate;return h===null?(h=qn(s.tag,c,s.key,s.mode),h.elementType=s.elementType,h.type=s.type,h.stateNode=s.stateNode,h.alternate=s,s.alternate=h):(h.pendingProps=c,h.type=s.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=s.flags&14680064,h.childLanes=s.childLanes,h.lanes=s.lanes,h.child=s.child,h.memoizedProps=s.memoizedProps,h.memoizedState=s.memoizedState,h.updateQueue=s.updateQueue,c=s.dependencies,h.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},h.sibling=s.sibling,h.index=s.index,h.ref=s.ref,h}function su(s,c,h,y,x,N){var P=2;if(y=s,typeof s=="function")eh(s)&&(P=1);else if(typeof s=="string")P=5;else e:switch(s){case I:return ga(h.children,x,N,c);case O:P=8,x|=8;break;case L:return s=qn(12,h,c,x|2),s.elementType=L,s.lanes=N,s;case G:return s=qn(13,h,c,x),s.elementType=G,s.lanes=N,s;case D:return s=qn(19,h,c,x),s.elementType=D,s.lanes=N,s;case U:return lu(h,x,N,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case F:P=10;break e;case j:P=9;break e;case H:P=11;break e;case z:P=14;break e;case B:P=16,y=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return c=qn(P,h,c,x),c.elementType=s,c.type=y,c.lanes=N,c}function ga(s,c,h,y){return s=qn(7,s,y,c),s.lanes=h,s}function lu(s,c,h,y){return s=qn(22,s,y,c),s.elementType=U,s.lanes=h,s.stateNode={isHidden:!1},s}function th(s,c,h){return s=qn(6,s,null,c),s.lanes=h,s}function nh(s,c,h){return c=qn(4,s.children!==null?s.children:[],s.key,c),c.lanes=h,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function cB(s,c,h,y,x){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vs(0),this.expirationTimes=vs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vs(0),this.identifierPrefix=y,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function rh(s,c,h,y,x,N,P,K,J){return s=new cB(s,c,h,K,J),c===1?(c=1,N===!0&&(c|=8)):c=0,N=qn(3,null,null,c),s.current=N,N.stateNode=s,N.memoizedState={element:y,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null},mf(N),s}function uB(s,c,h){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:y==null?null:""+y,children:s,containerInfo:c,implementation:h}}function dA(s){if(!s)return Ai;s=s._reactInternals;e:{if(vr(s)!==s||s.tag!==1)throw Error(n(170));var c=s;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(fn(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(c!==null);throw Error(n(171))}if(s.tag===1){var h=s.type;if(fn(h))return Ux(s,h,c)}return c}function pA(s,c,h,y,x,N,P,K,J){return s=rh(h,y,!0,s,x,N,P,K,J),s.context=dA(null),h=s.current,y=ln(),x=Ii(h),N=Wr(y,x),N.callback=c??null,Ci(h,N,x),s.current.lanes=x,gi(s,x,y),mn(s,y),s}function cu(s,c,h,y){var x=c.current,N=ln(),P=Ii(x);return h=dA(h),c.context===null?c.context=h:c.pendingContext=h,c=Wr(N,P),c.payload={element:s},y=y===void 0?null:y,y!==null&&(c.callback=y),s=Ci(x,c,P),s!==null&&(ir(s,x,P,N),$c(s,x,P)),P}function uu(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function fA(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var h=s.retryLane;s.retryLane=h!==0&&h<c?h:c}}function ih(s,c){fA(s,c),(s=s.alternate)&&fA(s,c)}function dB(){return null}var hA=typeof reportError=="function"?reportError:function(s){console.error(s)};function ah(s){this._internalRoot=s}du.prototype.render=ah.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(n(409));cu(s,c,null,null)},du.prototype.unmount=ah.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;pa(function(){cu(null,s,null,null)}),c[jr]=null}};function du(s){this._internalRoot=s}du.prototype.unstable_scheduleHydration=function(s){if(s){var c=ZS();s={blockedOn:null,target:s,priority:c};for(var h=0;h<vi.length&&c!==0&&c<vi[h].priority;h++);vi.splice(h,0,s),h===0&&ex(s)}};function oh(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function pu(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function gA(){}function pB(s,c,h,y,x){if(x){if(typeof y=="function"){var N=y;y=function(){var oe=uu(P);N.call(oe)}}var P=pA(c,y,s,0,null,!1,!1,"",gA);return s._reactRootContainer=P,s[jr]=P.current,Ls(s.nodeType===8?s.parentNode:s),pa(),P}for(;x=s.lastChild;)s.removeChild(x);if(typeof y=="function"){var K=y;y=function(){var oe=uu(J);K.call(oe)}}var J=rh(s,0,!1,null,null,!1,!1,"",gA);return s._reactRootContainer=J,s[jr]=J.current,Ls(s.nodeType===8?s.parentNode:s),pa(function(){cu(c,J,h,y)}),J}function fu(s,c,h,y,x){var N=h._reactRootContainer;if(N){var P=N;if(typeof x=="function"){var K=x;x=function(){var J=uu(P);K.call(J)}}cu(c,P,s,x)}else P=pB(h,c,s,x,y);return uu(P)}XS=function(s){switch(s.tag){case 3:var c=s.stateNode;if(c.current.memoizedState.isDehydrated){var h=hi(c.pendingLanes);h!==0&&(kp(c,h|1),mn(c,gt()),(We&6)===0&&(vo=gt()+500,_i()))}break;case 13:pa(function(){var y=Vr(s,1);if(y!==null){var x=ln();ir(y,s,1,x)}}),ih(s,1)}},Np=function(s){if(s.tag===13){var c=Vr(s,134217728);if(c!==null){var h=ln();ir(c,s,134217728,h)}ih(s,134217728)}},KS=function(s){if(s.tag===13){var c=Ii(s),h=Vr(s,c);if(h!==null){var y=ln();ir(h,s,c,y)}ih(s,c)}},ZS=function(){return Je},QS=function(s,c){var h=Je;try{return Je=s,c()}finally{Je=h}},lt=function(s,c,h){switch(c){case"input":if(Fe(s,h),c=h.name,h.type==="radio"&&c!=null){for(h=s;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<h.length;c++){var y=h[c];if(y!==s&&y.form===s.form){var x=Nc(y);if(!x)throw Error(n(90));ce(y),Fe(y,x)}}}break;case"textarea":Kt(s,h);break;case"select":c=h.value,c!=null&&nt(s,!!h.multiple,c,!1)}},fi=Zf,ac=pa;var fB={usingClientEntryPoint:!1,Events:[Ps,ao,Nc,Qi,pi,Zf]},Ks={findFiberByHostInstance:ia,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hB={bundleType:Ks.bundleType,version:Ks.version,rendererPackageName:Ks.rendererPackageName,rendererConfig:Ks.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=sc(s),s===null?null:s.stateNode},findFiberByHostInstance:Ks.findFiberByHostInstance||dB,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hu.isDisabled&&hu.supportsFiber)try{na=hu.inject(hB),Un=hu}catch{}}return yn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fB,yn.createPortal=function(s,c){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!oh(c))throw Error(n(200));return uB(s,c,null,h)},yn.createRoot=function(s,c){if(!oh(s))throw Error(n(299));var h=!1,y="",x=hA;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onRecoverableError!==void 0&&(x=c.onRecoverableError)),c=rh(s,1,!1,null,null,h,!1,y,x),s[jr]=c.current,Ls(s.nodeType===8?s.parentNode:s),new ah(c)},yn.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=sc(c),s=s===null?null:s.stateNode,s},yn.flushSync=function(s){return pa(s)},yn.hydrate=function(s,c,h){if(!pu(c))throw Error(n(200));return fu(null,s,c,!0,h)},yn.hydrateRoot=function(s,c,h){if(!oh(s))throw Error(n(405));var y=h!=null&&h.hydratedSources||null,x=!1,N="",P=hA;if(h!=null&&(h.unstable_strictMode===!0&&(x=!0),h.identifierPrefix!==void 0&&(N=h.identifierPrefix),h.onRecoverableError!==void 0&&(P=h.onRecoverableError)),c=pA(c,null,s,1,h??null,x,!1,N,P),s[jr]=c.current,Ls(s),y)for(s=0;s<y.length;s++)h=y[s],x=h._getVersion,x=x(h._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[h,x]:c.mutableSourceEagerHydrationData.push(h,x);return new du(c)},yn.render=function(s,c,h){if(!pu(c))throw Error(n(200));return fu(null,s,c,!1,h)},yn.unmountComponentAtNode=function(s){if(!pu(s))throw Error(n(40));return s._reactRootContainer?(pa(function(){fu(null,null,s,!1,function(){s._reactRootContainer=null,s[jr]=null})}),!0):!1},yn.unstable_batchedUpdates=Zf,yn.unstable_renderSubtreeIntoContainer=function(s,c,h,y){if(!pu(h))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return fu(s,c,h,!1,y)},yn.version="18.3.1-next-f1338f8080-20240426",yn}var _A;function W1(){if(_A)return uh.exports;_A=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(),uh.exports=SB(),uh.exports}var TA;function xB(){if(TA)return gu;TA=1;var t=W1();return gu.createRoot=t.createRoot,gu.hydrateRoot=t.hydrateRoot,gu}var AB=xB();function Y1(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=Y1(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function is(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Y1(t))&&(r&&(r+=" "),r+=e);return r}const Cw="-",_B=t=>{const e=CB(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{const l=o.split(Cw);return l[0]===""&&l.length!==1&&l.shift(),X1(l,e)||TB(o)},getConflictingClassGroupIds:(o,l)=>{const u=n[o]||[];return l&&r[o]?[...u,...r[o]]:u}}},X1=(t,e)=>{if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),i=r?X1(t.slice(1),r):void 0;if(i)return i;if(e.validators.length===0)return;const a=t.join(Cw);return e.validators.find(({validator:o})=>o(a))?.classGroupId},CA=/^\[(.+)\]$/,TB=t=>{if(CA.test(t)){const e=CA.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},CB=t=>{const{theme:e,classGroups:n}=t,r={nextPart:new Map,validators:[]};for(const i in n)PE(n[i],r,i,e);return r},PE=(t,e,n,r)=>{t.forEach(i=>{if(typeof i=="string"){const a=i===""?e:RA(e,i);a.classGroupId=n;return}if(typeof i=="function"){if(RB(i)){PE(i(r),e,n,r);return}e.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([a,o])=>{PE(o,RA(e,a),n,r)})})},RA=(t,e)=>{let n=t;return e.split(Cw).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},RB=t=>t.isThemeGetter,kB=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const i=(a,o)=>{n.set(a,o),e++,e>t&&(e=0,r=n,n=new Map)};return{get(a){let o=n.get(a);if(o!==void 0)return o;if((o=r.get(a))!==void 0)return i(a,o),o},set(a,o){n.has(a)?n.set(a,o):i(a,o)}}},FE="!",BE=":",NB=BE.length,IB=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=i=>{const a=[];let o=0,l=0,u=0,d;for(let v=0;v<i.length;v++){let b=i[v];if(o===0&&l===0){if(b===BE){a.push(i.slice(u,v)),u=v+NB;continue}if(b==="/"){d=v;continue}}b==="["?o++:b==="]"?o--:b==="("?l++:b===")"&&l--}const p=a.length===0?i:i.substring(u),f=OB(p),g=f!==p,m=d&&d>u?d-u:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:m}};if(e){const i=e+BE,a=r;r=o=>o.startsWith(i)?a(o.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},OB=t=>t.endsWith(FE)?t.substring(0,t.length-1):t.startsWith(FE)?t.substring(1):t,LB=t=>{const e=Object.fromEntries(t.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let a=[];return r.forEach(o=>{o[0]==="["||e[o]?(i.push(...a.sort(),o),a=[]):a.push(o)}),i.push(...a.sort()),i}},DB=t=>({cache:kB(t.cacheSize),parseClassName:IB(t),sortModifiers:LB(t),..._B(t)}),MB=/\s+/,PB=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=e,o=[],l=t.trim().split(MB);let u="";for(let d=l.length-1;d>=0;d-=1){const p=l[d],{isExternal:f,modifiers:g,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:b}=n(p);if(f){u=p+(u.length>0?" "+u:u);continue}let E=!!b,S=r(E?v.substring(0,b):v);if(!S){if(!E){u=p+(u.length>0?" "+u:u);continue}if(S=r(v),!S){u=p+(u.length>0?" "+u:u);continue}E=!1}const _=a(g).join(":"),w=m?_+FE:_,A=w+S;if(o.includes(A))continue;o.push(A);const k=i(S,E);for(let R=0;R<k.length;++R){const I=k[R];o.push(w+I)}u=p+(u.length>0?" "+u:u)}return u};function FB(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=K1(e))&&(r&&(r+=" "),r+=n);return r}const K1=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=K1(t[r]))&&(n&&(n+=" "),n+=e);return n};function BB(t,...e){let n,r,i,a=o;function o(u){const d=e.reduce((p,f)=>f(p),t());return n=DB(d),r=n.cache.get,i=n.cache.set,a=l,l(u)}function l(u){const d=r(u);if(d)return d;const p=PB(u,n);return i(u,p),p}return function(){return a(FB.apply(null,arguments))}}const Ft=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Z1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Q1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,UB=/^\d+\/\d+$/,$B=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zB=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jB=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,HB=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,GB=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wo=t=>UB.test(t),Ue=t=>!!t&&!Number.isNaN(Number(t)),Mi=t=>!!t&&Number.isInteger(Number(t)),fh=t=>t.endsWith("%")&&Ue(t.slice(0,-1)),Kr=t=>$B.test(t),qB=()=>!0,VB=t=>zB.test(t)&&!jB.test(t),J1=()=>!1,WB=t=>HB.test(t),YB=t=>GB.test(t),XB=t=>!Ee(t)&&!we(t),KB=t=>as(t,nO,J1),Ee=t=>Z1.test(t),ma=t=>as(t,rO,VB),hh=t=>as(t,tU,Ue),kA=t=>as(t,eO,J1),ZB=t=>as(t,tO,YB),mu=t=>as(t,iO,WB),we=t=>Q1.test(t),Qs=t=>os(t,rO),QB=t=>os(t,nU),NA=t=>os(t,eO),JB=t=>os(t,nO),eU=t=>os(t,tO),bu=t=>os(t,iO,!0),as=(t,e,n)=>{const r=Z1.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},os=(t,e,n=!1)=>{const r=Q1.exec(t);return r?r[1]?e(r[1]):n:!1},eO=t=>t==="position"||t==="percentage",tO=t=>t==="image"||t==="url",nO=t=>t==="length"||t==="size"||t==="bg-size",rO=t=>t==="length",tU=t=>t==="number",nU=t=>t==="family-name",iO=t=>t==="shadow",rU=()=>{const t=Ft("color"),e=Ft("font"),n=Ft("text"),r=Ft("font-weight"),i=Ft("tracking"),a=Ft("leading"),o=Ft("breakpoint"),l=Ft("container"),u=Ft("spacing"),d=Ft("radius"),p=Ft("shadow"),f=Ft("inset-shadow"),g=Ft("text-shadow"),m=Ft("drop-shadow"),v=Ft("blur"),b=Ft("perspective"),E=Ft("aspect"),S=Ft("ease"),_=Ft("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...A(),we,Ee],R=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],O=()=>[we,Ee,u],L=()=>[wo,"full","auto",...O()],F=()=>[Mi,"none","subgrid",we,Ee],j=()=>["auto",{span:["full",Mi,we,Ee]},Mi,we,Ee],H=()=>[Mi,"auto",we,Ee],G=()=>["auto","min","max","fr",we,Ee],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...O()],U=()=>[wo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],M=()=>[t,we,Ee],q=()=>[...A(),NA,kA,{position:[we,Ee]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",JB,KB,{size:[we,Ee]}],V=()=>[fh,Qs,ma],X=()=>["","none","full",d,we,Ee],Q=()=>["",Ue,Qs,ma],te=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[Ue,fh,NA,kA],Z=()=>["","none",v,we,Ee],ne=()=>["none",Ue,we,Ee],se=()=>["none",Ue,we,Ee],de=()=>[Ue,we,Ee],ce=()=>[wo,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kr],breakpoint:[Kr],color:[qB],container:[Kr],"drop-shadow":[Kr],ease:["in","out","in-out"],font:[XB],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kr],shadow:[Kr],spacing:["px",Ue],text:[Kr],"text-shadow":[Kr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wo,Ee,we,E]}],container:["container"],columns:[{columns:[Ue,Ee,we,l]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Mi,"auto",we,Ee]}],basis:[{basis:[wo,"full","auto",l,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ue,wo,"auto","initial","none",Ee]}],grow:[{grow:["",Ue,we,Ee]}],shrink:[{shrink:["",Ue,we,Ee]}],order:[{order:[Mi,"first","last","none",we,Ee]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[l,"screen",...U()]}],"min-w":[{"min-w":[l,"screen","none",...U()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,Qs,ma]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,we,hh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fh,Ee]}],"font-family":[{font:[QB,Ee,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,we,Ee]}],"line-clamp":[{"line-clamp":[Ue,"none",we,hh]}],leading:[{leading:[a,...O()]}],"list-image":[{"list-image":["none",we,Ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,Ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ue,"from-font","auto",we,ma]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[Ue,"auto",we,Ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mi,we,Ee],radial:["",we,Ee],conic:[Mi,we,Ee]},eU,ZB]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ue,we,Ee]}],"outline-w":[{outline:["",Ue,Qs,ma]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",p,bu,mu]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",f,bu,mu]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[Ue,ma]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",g,bu,mu]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[Ue,we,Ee]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ue]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[we,Ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[Ue]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,Ee]}],filter:[{filter:["","none",we,Ee]}],blur:[{blur:Z()}],brightness:[{brightness:[Ue,we,Ee]}],contrast:[{contrast:[Ue,we,Ee]}],"drop-shadow":[{"drop-shadow":["","none",m,bu,mu]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",Ue,we,Ee]}],"hue-rotate":[{"hue-rotate":[Ue,we,Ee]}],invert:[{invert:["",Ue,we,Ee]}],saturate:[{saturate:[Ue,we,Ee]}],sepia:[{sepia:["",Ue,we,Ee]}],"backdrop-filter":[{"backdrop-filter":["","none",we,Ee]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[Ue,we,Ee]}],"backdrop-contrast":[{"backdrop-contrast":[Ue,we,Ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ue,we,Ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ue,we,Ee]}],"backdrop-invert":[{"backdrop-invert":["",Ue,we,Ee]}],"backdrop-opacity":[{"backdrop-opacity":[Ue,we,Ee]}],"backdrop-saturate":[{"backdrop-saturate":[Ue,we,Ee]}],"backdrop-sepia":[{"backdrop-sepia":["",Ue,we,Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,Ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ue,"initial",we,Ee]}],ease:[{ease:["linear","initial",S,we,Ee]}],delay:[{delay:[Ue,we,Ee]}],animate:[{animate:["none",_,we,Ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,we,Ee]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[we,Ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,Ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,Ee]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[Ue,Qs,ma,hh]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},iU=BB(rU);function Qe(...t){return iU(is(t))}var aU=Object.defineProperty,oU=Object.defineProperties,sU=Object.getOwnPropertyDescriptors,nd=Object.getOwnPropertySymbols,aO=Object.prototype.hasOwnProperty,oO=Object.prototype.propertyIsEnumerable,IA=(t,e,n)=>e in t?aU(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,De=(t,e)=>{for(var n in e||(e={}))aO.call(e,n)&&IA(t,n,e[n]);if(nd)for(var n of nd(e))oO.call(e,n)&&IA(t,n,e[n]);return t},Gt=(t,e)=>oU(t,sU(e)),qe=(t,e)=>{var n={};for(var r in t)aO.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&nd)for(var r of nd(t))e.indexOf(r)<0&&oO.call(t,r)&&(n[r]=t[r]);return n};function lU(t,e){const n=C.createContext(e),r=a=>{const{children:o,...l}=a,u=C.useMemo(()=>l,Object.values(l));return T.jsx(n.Provider,{value:u,children:o})};r.displayName=t+"Provider";function i(a){const o=C.useContext(n);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${a}\` must be used within \`${t}\``)}return[r,i]}function ss(t,e=[]){let n=[];function r(a,o){const l=C.createContext(o),u=n.length;n=[...n,o];const d=f=>{const{scope:g,children:m,...v}=f,b=g?.[t]?.[u]||l,E=C.useMemo(()=>v,Object.values(v));return T.jsx(b.Provider,{value:E,children:m})};d.displayName=a+"Provider";function p(f,g){const m=g?.[t]?.[u]||l,v=C.useContext(m);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,p]}const i=()=>{const a=n.map(o=>C.createContext(o));return function(l){const u=l?.[t]||a;return C.useMemo(()=>({[`__scope${t}`]:{...l,[t]:u}}),[l,u])}};return i.scopeName=t,[r,cU(i,...e)]}function cU(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=r.reduce((l,{useScope:u,scopeName:d})=>{const f=u(a)[`__scope${d}`];return{...l,...f}},{});return C.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function OA(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function sO(...t){return e=>{let n=!1;const r=t.map(i=>{const a=OA(i,e);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():OA(t[i],null)}}}}function st(...t){return C.useCallback(sO(...t),t)}function ka(t){const e=uU(t),n=C.forwardRef((r,i)=>{const{children:a,...o}=r,l=C.Children.toArray(a),u=l.find(pU);if(u){const d=u.props.children,p=l.map(f=>f===u?C.Children.count(d)>1?C.Children.only(null):C.isValidElement(d)?d.props.children:null:f);return T.jsx(e,{...o,ref:i,children:C.isValidElement(d)?C.cloneElement(d,void 0,p):null})}return T.jsx(e,{...o,ref:i,children:a})});return n.displayName=`${t}.Slot`,n}var lO=ka("Slot");function uU(t){const e=C.forwardRef((n,r)=>{const{children:i,...a}=n;if(C.isValidElement(i)){const o=hU(i),l=fU(a,i.props);return i.type!==C.Fragment&&(l.ref=r?sO(r,o):o),C.cloneElement(i,l)}return C.Children.count(i)>1?C.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var dU=Symbol("radix.slottable");function pU(t){return C.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===dU}function fU(t,e){const n={...e};for(const r in e){const i=t[r],a=e[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...l)=>{const u=a(...l);return i(...l),u}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...t,...n}}function hU(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function gU(t){const e=t+"CollectionProvider",[n,r]=ss(e),[i,a]=n(e,{collectionRef:{current:null},itemMap:new Map}),o=b=>{const{scope:E,children:S}=b,_=Me.useRef(null),w=Me.useRef(new Map).current;return T.jsx(i,{scope:E,itemMap:w,collectionRef:_,children:S})};o.displayName=e;const l=t+"CollectionSlot",u=ka(l),d=Me.forwardRef((b,E)=>{const{scope:S,children:_}=b,w=a(l,S),A=st(E,w.collectionRef);return T.jsx(u,{ref:A,children:_})});d.displayName=l;const p=t+"CollectionItemSlot",f="data-radix-collection-item",g=ka(p),m=Me.forwardRef((b,E)=>{const{scope:S,children:_,...w}=b,A=Me.useRef(null),k=st(E,A),R=a(p,S);return Me.useEffect(()=>(R.itemMap.set(A,{ref:A,...w}),()=>void R.itemMap.delete(A))),T.jsx(g,{[f]:"",ref:k,children:_})});m.displayName=p;function v(b){const E=a(t+"CollectionConsumer",b);return Me.useCallback(()=>{const _=E.collectionRef.current;if(!_)return[];const w=Array.from(_.querySelectorAll(`[${f}]`));return Array.from(E.itemMap.values()).sort((R,I)=>w.indexOf(R.ref.current)-w.indexOf(I.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:o,Slot:d,ItemSlot:m},v,r]}function Ke(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t?.(i),n===!1||!i.defaultPrevented)return e?.(i)}}var on=globalThis?.document?C.useLayoutEffect:()=>{},mU=Tw[" useInsertionEffect ".trim().toString()]||on;function bl({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[i,a,o]=bU({defaultProp:e,onChange:n}),l=t!==void 0,u=l?t:i;{const p=C.useRef(t!==void 0);C.useEffect(()=>{const f=p.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,r])}const d=C.useCallback(p=>{if(l){const f=yU(p)?p(t):p;f!==t&&o.current?.(f)}else a(p)},[l,t,a,o]);return[u,d]}function bU({defaultProp:t,onChange:e}){const[n,r]=C.useState(t),i=C.useRef(n),a=C.useRef(e);return mU(()=>{a.current=e},[e]),C.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function yU(t){return typeof t=="function"}var Ul=W1();const vU=Fl(Ul);var EU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=EU.reduce((t,e)=>{const n=ka(`Primitive.${e}`),r=C.forwardRef((i,a)=>{const{asChild:o,...l}=i,u=o?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),T.jsx(u,{...l,ref:a})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function wU(t,e){t&&Ul.flushSync(()=>t.dispatchEvent(e))}function SU(t,e){return C.useReducer((n,r)=>e[n][r]??n,t)}var ls=t=>{const{present:e,children:n}=t,r=xU(e),i=typeof n=="function"?n({present:r.isPresent}):C.Children.only(n),a=st(r.ref,AU(i));return typeof n=="function"||r.isPresent?C.cloneElement(i,{ref:a}):null};ls.displayName="Presence";function xU(t){const[e,n]=C.useState(),r=C.useRef(null),i=C.useRef(t),a=C.useRef("none"),o=t?"mounted":"unmounted",[l,u]=SU(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const d=yu(r.current);a.current=l==="mounted"?d:"none"},[l]),on(()=>{const d=r.current,p=i.current;if(p!==t){const g=a.current,m=yu(d);t?u("MOUNT"):m==="none"||d?.display==="none"?u("UNMOUNT"):u(p&&g!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,u]),on(()=>{if(e){let d;const p=e.ownerDocument.defaultView??window,f=m=>{const b=yu(r.current).includes(m.animationName);if(m.target===e&&b&&(u("ANIMATION_END"),!i.current)){const E=e.style.animationFillMode;e.style.animationFillMode="forwards",d=p.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=E)})}},g=m=>{m.target===e&&(a.current=yu(r.current))};return e.addEventListener("animationstart",g),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{p.clearTimeout(d),e.removeEventListener("animationstart",g),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:C.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function yu(t){return t?.animationName||"none"}function AU(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var _U=Tw[" useId ".trim().toString()]||(()=>{}),TU=0;function Ta(t){const[e,n]=C.useState(_U());return on(()=>{n(r=>r??String(TU++))},[t]),t||(e?`radix-${e}`:"")}var CU=C.createContext(void 0);function RU(t){const e=C.useContext(CU);return t||e||"ltr"}/**
41
- * @license lucide-react v0.514.0 - ISC
42
- *
43
- * This source code is licensed under the ISC license.
44
- * See the LICENSE file in the root directory of this source tree.
45
- */const kU=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),NU=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),LA=t=>{const e=NU(t);return e.charAt(0).toUpperCase()+e.slice(1)},cO=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim(),IU=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
46
- * @license lucide-react v0.514.0 - ISC
47
- *
48
- * This source code is licensed under the ISC license.
49
- * See the LICENSE file in the root directory of this source tree.
50
- */var OU={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"};/**
51
- * @license lucide-react v0.514.0 - ISC
52
- *
53
- * This source code is licensed under the ISC license.
54
- * See the LICENSE file in the root directory of this source tree.
55
- */const LU=C.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:o,...l},u)=>C.createElement("svg",{ref:u,...OU,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:cO("lucide",i),...!a&&!IU(l)&&{"aria-hidden":"true"},...l},[...o.map(([d,p])=>C.createElement(d,p)),...Array.isArray(a)?a:[a]]));/**
56
- * @license lucide-react v0.514.0 - ISC
57
- *
58
- * This source code is licensed under the ISC license.
59
- * See the LICENSE file in the root directory of this source tree.
60
- */const it=(t,e)=>{const n=C.forwardRef(({className:r,...i},a)=>C.createElement(LU,{ref:a,iconNode:e,className:cO(`lucide-${kU(LA(t))}`,`lucide-${t}`,r),...i}));return n.displayName=LA(t),n};/**
61
- * @license lucide-react v0.514.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const DU=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],MU=it("check",DU);/**
66
- * @license lucide-react v0.514.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */const PU=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],uO=it("chevron-down",PU);/**
71
- * @license lucide-react v0.514.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const FU=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],BU=it("chevron-left",FU);/**
76
- * @license lucide-react v0.514.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const UU=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],$U=it("chevron-right",UU);/**
81
- * @license lucide-react v0.514.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const zU=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],jU=it("chevron-up",zU);/**
86
- * @license lucide-react v0.514.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const HU=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]];it("circle-check-big",HU);/**
91
- * @license lucide-react v0.514.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const GU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],qU=it("clock",GU);/**
96
- * @license lucide-react v0.514.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const VU=[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]];it("cog",VU);/**
101
- * @license lucide-react v0.514.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const WU=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],YU=it("download",WU);/**
106
- * @license lucide-react v0.514.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const XU=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]];it("eye",XU);/**
111
- * @license lucide-react v0.514.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const KU=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]];it("file-text",KU);/**
116
- * @license lucide-react v0.514.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const ZU=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],QU=it("file",ZU);/**
121
- * @license lucide-react v0.514.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const JU=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],e$=it("maximize",JU);/**
126
- * @license lucide-react v0.514.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const t$=[["path",{d:"M5 12h14",key:"1ays0h"}]],n$=it("minus",t$);/**
131
- * @license lucide-react v0.514.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const r$=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],i$=it("panel-left-close",r$);/**
136
- * @license lucide-react v0.514.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const a$=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],o$=it("panel-left-open",a$);/**
141
- * @license lucide-react v0.514.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */const s$=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],DA=it("panel-right-close",s$);/**
146
- * @license lucide-react v0.514.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const l$=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],c$=it("panel-right-open",l$);/**
151
- * @license lucide-react v0.514.0 - ISC
152
- *
153
- * This source code is licensed under the ISC license.
154
- * See the LICENSE file in the root directory of this source tree.
155
- */const u$=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],d$=it("plus",u$);/**
156
- * @license lucide-react v0.514.0 - ISC
157
- *
158
- * This source code is licensed under the ISC license.
159
- * See the LICENSE file in the root directory of this source tree.
160
- */const p$=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],f$=it("rotate-ccw",p$);/**
161
- * @license lucide-react v0.514.0 - ISC
162
- *
163
- * This source code is licensed under the ISC license.
164
- * See the LICENSE file in the root directory of this source tree.
165
- */const h$=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]];it("search",h$);/**
166
- * @license lucide-react v0.514.0 - ISC
167
- *
168
- * This source code is licensed under the ISC license.
169
- * See the LICENSE file in the root directory of this source tree.
170
- */const g$=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],m$=it("send",g$);/**
171
- * @license lucide-react v0.514.0 - ISC
172
- *
173
- * This source code is licensed under the ISC license.
174
- * See the LICENSE file in the root directory of this source tree.
175
- */const b$=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],y$=it("settings",b$);/**
176
- * @license lucide-react v0.514.0 - ISC
177
- *
178
- * This source code is licensed under the ISC license.
179
- * See the LICENSE file in the root directory of this source tree.
180
- */const v$=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],E$=it("trash-2",v$);/**
181
- * @license lucide-react v0.514.0 - ISC
182
- *
183
- * This source code is licensed under the ISC license.
184
- * See the LICENSE file in the root directory of this source tree.
185
- */const w$=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],S$=it("x",w$);/**
186
- * @license lucide-react v0.514.0 - ISC
187
- *
188
- * This source code is licensed under the ISC license.
189
- * See the LICENSE file in the root directory of this source tree.
190
- */const x$=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]];it("zap",x$);function dO(t){const e=C.useRef({value:t,previous:t});return C.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}function pO(t){const[e,n]=C.useState(void 0);return on(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,l;if("borderBoxSize"in a){const u=a.borderBoxSize,d=Array.isArray(u)?u[0]:u;o=d.inlineSize,l=d.blockSize}else o=t.offsetWidth,l=t.offsetHeight;n({width:o,height:l})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}const MA=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,PA=is,fO=(t,e)=>n=>{var r;if(e?.variants==null)return PA(t,n?.class,n?.className);const{variants:i,defaultVariants:a}=e,o=Object.keys(i).map(d=>{const p=n?.[d],f=a?.[d];if(p===null)return null;const g=MA(p)||MA(f);return i[d][g]}),l=n&&Object.entries(n).reduce((d,p)=>{let[f,g]=p;return g===void 0||(d[f]=g),d},{}),u=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((d,p)=>{let{class:f,className:g,...m}=p;return Object.entries(m).every(v=>{let[b,E]=v;return Array.isArray(E)?E.includes({...a,...l}[b]):{...a,...l}[b]===E})?[...d,f,g]:d},[]);return PA(t,o,u,n?.class,n?.className)};var A$=fO("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),Tt=C.forwardRef((t,e)=>{var n=t,{className:r,variant:i,size:a,asChild:o=!1}=n,l=qe(n,["className","variant","size","asChild"]);const u=o?lO:"button";return T.jsx(u,De({ref:e,"data-slot":"button",className:Qe(A$({variant:i,size:a,className:r}))},l))});Tt.displayName="Button";function Na(t){const e=C.useRef(t);return C.useEffect(()=>{e.current=t}),C.useMemo(()=>(...n)=>e.current?.(...n),[])}var gh={exports:{}},mh={};/**
191
- * @license React
192
- * use-sync-external-store-shim.production.js
193
- *
194
- * Copyright (c) Meta Platforms, Inc. and affiliates.
195
- *
196
- * This source code is licensed under the MIT license found in the
197
- * LICENSE file in the root directory of this source tree.
198
- */var FA;function _$(){if(FA)return mh;FA=1;var t=Bl();function e(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,a=t.useLayoutEffect,o=t.useDebugValue;function l(f,g){var m=g(),v=r({inst:{value:m,getSnapshot:g}}),b=v[0].inst,E=v[1];return a(function(){b.value=m,b.getSnapshot=g,u(b)&&E({inst:b})},[f,m,g]),i(function(){return u(b)&&E({inst:b}),f(function(){u(b)&&E({inst:b})})},[f]),o(m),m}function u(f){var g=f.getSnapshot;f=f.value;try{var m=g();return!n(f,m)}catch{return!0}}function d(f,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return mh.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:p,mh}var BA;function T$(){return BA||(BA=1,gh.exports=_$()),gh.exports}const C$=["top","right","bottom","left"],qi=Math.min,Ln=Math.max,rd=Math.round,vu=Math.floor,Pr=t=>({x:t,y:t}),R$={left:"right",right:"left",bottom:"top",top:"bottom"},k$={start:"end",end:"start"};function UE(t,e,n){return Ln(t,qi(e,n))}function ii(t,e){return typeof t=="function"?t(e):t}function ai(t){return t.split("-")[0]}function cs(t){return t.split("-")[1]}function Rw(t){return t==="x"?"y":"x"}function kw(t){return t==="y"?"height":"width"}const N$=new Set(["top","bottom"]);function Mr(t){return N$.has(ai(t))?"y":"x"}function Nw(t){return Rw(Mr(t))}function I$(t,e,n){n===void 0&&(n=!1);const r=cs(t),i=Nw(t),a=kw(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=id(o)),[o,id(o)]}function O$(t){const e=id(t);return[$E(t),e,$E(e)]}function $E(t){return t.replace(/start|end/g,e=>k$[e])}const UA=["left","right"],$A=["right","left"],L$=["top","bottom"],D$=["bottom","top"];function M$(t,e,n){switch(t){case"top":case"bottom":return n?e?$A:UA:e?UA:$A;case"left":case"right":return e?L$:D$;default:return[]}}function P$(t,e,n,r){const i=cs(t);let a=M$(ai(t),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),e&&(a=a.concat(a.map($E)))),a}function id(t){return t.replace(/left|right|bottom|top/g,e=>R$[e])}function F$(t){return{top:0,right:0,bottom:0,left:0,...t}}function hO(t){return typeof t!="number"?F$(t):{top:t,right:t,bottom:t,left:t}}function ad(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 zA(t,e,n){let{reference:r,floating:i}=t;const a=Mr(e),o=Nw(e),l=kw(o),u=ai(e),d=a==="y",p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let m;switch(u){case"top":m={x:p,y:r.y-i.height};break;case"bottom":m={x:p,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-i.width,y:f};break;default:m={x:r.x,y:r.y}}switch(cs(e)){case"start":m[o]-=g*(n&&d?-1:1);break;case"end":m[o]+=g*(n&&d?-1:1);break}return m}const B$=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,l=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(e));let d=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:p,y:f}=zA(d,r,u),g=r,m={},v=0;for(let b=0;b<l.length;b++){const{name:E,fn:S}=l[b],{x:_,y:w,data:A,reset:k}=await S({x:p,y:f,initialPlacement:r,placement:g,strategy:i,middlewareData:m,rects:d,platform:o,elements:{reference:t,floating:e}});p=_??p,f=w??f,m={...m,[E]:{...m[E],...A}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(d=k.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):k.rects),{x:p,y:f}=zA(d,g,u)),b=-1)}return{x:p,y:f,placement:g,strategy:i,middlewareData:m}};async function yl(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:a,rects:o,elements:l,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:g=!1,padding:m=0}=ii(e,t),v=hO(m),E=l[g?f==="floating"?"reference":"floating":f],S=ad(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(E)))==null||n?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:p,strategy:u})),_=f==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),A=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},k=ad(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:w,strategy:u}):_);return{top:(S.top-k.top+v.top)/A.y,bottom:(k.bottom-S.bottom+v.bottom)/A.y,left:(S.left-k.left+v.left)/A.x,right:(k.right-S.right+v.right)/A.x}}const U$=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:a,platform:o,elements:l,middlewareData:u}=e,{element:d,padding:p=0}=ii(t,e)||{};if(d==null)return{};const f=hO(p),g={x:n,y:r},m=Nw(i),v=kw(m),b=await o.getDimensions(d),E=m==="y",S=E?"top":"left",_=E?"bottom":"right",w=E?"clientHeight":"clientWidth",A=a.reference[v]+a.reference[m]-g[m]-a.floating[v],k=g[m]-a.reference[m],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let I=R?R[w]:0;(!I||!await(o.isElement==null?void 0:o.isElement(R)))&&(I=l.floating[w]||a.floating[v]);const O=A/2-k/2,L=I/2-b[v]/2-1,F=qi(f[S],L),j=qi(f[_],L),H=F,G=I-b[v]-j,D=I/2-b[v]/2+O,z=UE(H,D,G),B=!u.arrow&&cs(i)!=null&&D!==z&&a.reference[v]/2-(D<H?F:j)-b[v]/2<0,U=B?D<H?D-H:D-G:0;return{[m]:g[m]+U,data:{[m]:z,centerOffset:D-z-U,...B&&{alignmentOffset:U}},reset:B}}}),$$=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:l,platform:u,elements:d}=e,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...E}=ii(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const S=ai(i),_=Mr(l),w=ai(l)===l,A=await(u.isRTL==null?void 0:u.isRTL(d.floating)),k=g||(w||!b?[id(l)]:O$(l)),R=v!=="none";!g&&R&&k.push(...P$(l,b,v,A));const I=[l,...k],O=await yl(e,E),L=[];let F=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&L.push(O[S]),f){const D=I$(i,o,A);L.push(O[D[0]],O[D[1]])}if(F=[...F,{placement:i,overflows:L}],!L.every(D=>D<=0)){var j,H;const D=(((j=a.flip)==null?void 0:j.index)||0)+1,z=I[D];if(z&&(!(f==="alignment"?_!==Mr(z):!1)||F.every(M=>M.overflows[0]>0&&Mr(M.placement)===_)))return{data:{index:D,overflows:F},reset:{placement:z}};let B=(H=F.filter(U=>U.overflows[0]<=0).sort((U,M)=>U.overflows[1]-M.overflows[1])[0])==null?void 0:H.placement;if(!B)switch(m){case"bestFit":{var G;const U=(G=F.filter(M=>{if(R){const q=Mr(M.placement);return q===_||q==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(q=>q>0).reduce((q,Y)=>q+Y,0)]).sort((M,q)=>M[1]-q[1])[0])==null?void 0:G[0];U&&(B=U);break}case"initialPlacement":B=l;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function jA(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function HA(t){return C$.some(e=>t[e]>=0)}const z$=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...i}=ii(t,e);switch(r){case"referenceHidden":{const a=await yl(e,{...i,elementContext:"reference"}),o=jA(a,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:HA(o)}}}case"escaped":{const a=await yl(e,{...i,altBoundary:!0}),o=jA(a,n.floating);return{data:{escapedOffsets:o,escaped:HA(o)}}}default:return{}}}}},gO=new Set(["left","top"]);async function j$(t,e){const{placement:n,platform:r,elements:i}=t,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ai(n),l=cs(n),u=Mr(n)==="y",d=gO.has(o)?-1:1,p=a&&u?-1:1,f=ii(e,t);let{mainAxis:g,crossAxis:m,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(m=l==="end"?v*-1:v),u?{x:m*p,y:g*d}:{x:g*d,y:m*p}}const H$=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:a,placement:o,middlewareData:l}=e,u=await j$(e,t);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:o}}}}},G$=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:o=!1,limiter:l={fn:E=>{let{x:S,y:_}=E;return{x:S,y:_}}},...u}=ii(t,e),d={x:n,y:r},p=await yl(e,u),f=Mr(ai(i)),g=Rw(f);let m=d[g],v=d[f];if(a){const E=g==="y"?"top":"left",S=g==="y"?"bottom":"right",_=m+p[E],w=m-p[S];m=UE(_,m,w)}if(o){const E=f==="y"?"top":"left",S=f==="y"?"bottom":"right",_=v+p[E],w=v-p[S];v=UE(_,v,w)}const b=l.fn({...e,[g]:m,[f]:v});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[g]:a,[f]:o}}}}}},q$=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:a,middlewareData:o}=e,{offset:l=0,mainAxis:u=!0,crossAxis:d=!0}=ii(t,e),p={x:n,y:r},f=Mr(i),g=Rw(f);let m=p[g],v=p[f];const b=ii(l,e),E=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(u){const w=g==="y"?"height":"width",A=a.reference[g]-a.floating[w]+E.mainAxis,k=a.reference[g]+a.reference[w]-E.mainAxis;m<A?m=A:m>k&&(m=k)}if(d){var S,_;const w=g==="y"?"width":"height",A=gO.has(ai(i)),k=a.reference[f]-a.floating[w]+(A&&((S=o.offset)==null?void 0:S[f])||0)+(A?0:E.crossAxis),R=a.reference[f]+a.reference[w]+(A?0:((_=o.offset)==null?void 0:_[f])||0)-(A?E.crossAxis:0);v<k?v=k:v>R&&(v=R)}return{[g]:m,[f]:v}}}},V$=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:i,rects:a,platform:o,elements:l}=e,{apply:u=()=>{},...d}=ii(t,e),p=await yl(e,d),f=ai(i),g=cs(i),m=Mr(i)==="y",{width:v,height:b}=a.floating;let E,S;f==="top"||f==="bottom"?(E=f,S=g===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(S=f,E=g==="end"?"top":"bottom");const _=b-p.top-p.bottom,w=v-p.left-p.right,A=qi(b-p[E],_),k=qi(v-p[S],w),R=!e.middlewareData.shift;let I=A,O=k;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(O=w),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(I=_),R&&!g){const F=Ln(p.left,0),j=Ln(p.right,0),H=Ln(p.top,0),G=Ln(p.bottom,0);m?O=v-2*(F!==0||j!==0?F+j:Ln(p.left,p.right)):I=b-2*(H!==0||G!==0?H+G:Ln(p.top,p.bottom))}await u({...e,availableWidth:O,availableHeight:I});const L=await o.getDimensions(l.floating);return v!==L.width||b!==L.height?{reset:{rects:!0}}:{}}}};function _d(){return typeof window<"u"}function us(t){return mO(t)?(t.nodeName||"").toLowerCase():"#document"}function Pn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function $r(t){var e;return(e=(mO(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function mO(t){return _d()?t instanceof Node||t instanceof Pn(t).Node:!1}function dr(t){return _d()?t instanceof Element||t instanceof Pn(t).Element:!1}function Br(t){return _d()?t instanceof HTMLElement||t instanceof Pn(t).HTMLElement:!1}function GA(t){return!_d()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Pn(t).ShadowRoot}const W$=new Set(["inline","contents"]);function $l(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=pr(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!W$.has(i)}const Y$=new Set(["table","td","th"]);function X$(t){return Y$.has(us(t))}const K$=[":popover-open",":modal"];function Td(t){return K$.some(e=>{try{return t.matches(e)}catch{return!1}})}const Z$=["transform","translate","scale","rotate","perspective"],Q$=["transform","translate","scale","rotate","perspective","filter"],J$=["paint","layout","strict","content"];function Iw(t){const e=Ow(),n=dr(t)?pr(t):t;return Z$.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)||Q$.some(r=>(n.willChange||"").includes(r))||J$.some(r=>(n.contain||"").includes(r))}function ez(t){let e=Vi(t);for(;Br(e)&&!Vo(e);){if(Iw(e))return e;if(Td(e))return null;e=Vi(e)}return null}function Ow(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tz=new Set(["html","body","#document"]);function Vo(t){return tz.has(us(t))}function pr(t){return Pn(t).getComputedStyle(t)}function Cd(t){return dr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Vi(t){if(us(t)==="html")return t;const e=t.assignedSlot||t.parentNode||GA(t)&&t.host||$r(t);return GA(e)?e.host:e}function bO(t){const e=Vi(t);return Vo(e)?t.ownerDocument?t.ownerDocument.body:t.body:Br(e)&&$l(e)?e:bO(e)}function vl(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=bO(t),a=i===((r=t.ownerDocument)==null?void 0:r.body),o=Pn(i);if(a){const l=zE(o);return e.concat(o,o.visualViewport||[],$l(i)?i:[],l&&n?vl(l):[])}return e.concat(i,vl(i,[],n))}function zE(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function yO(t){const e=pr(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Br(t),a=i?t.offsetWidth:n,o=i?t.offsetHeight:r,l=rd(n)!==a||rd(r)!==o;return l&&(n=a,r=o),{width:n,height:r,$:l}}function Lw(t){return dr(t)?t:t.contextElement}function Fo(t){const e=Lw(t);if(!Br(e))return Pr(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:a}=yO(e);let o=(a?rd(n.width):n.width)/r,l=(a?rd(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const nz=Pr(0);function vO(t){const e=Pn(t);return!Ow()||!e.visualViewport?nz:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function rz(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Pn(t)?!1:e}function Ia(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),a=Lw(t);let o=Pr(1);e&&(r?dr(r)&&(o=Fo(r)):o=Fo(t));const l=rz(a,n,r)?vO(a):Pr(0);let u=(i.left+l.x)/o.x,d=(i.top+l.y)/o.y,p=i.width/o.x,f=i.height/o.y;if(a){const g=Pn(a),m=r&&dr(r)?Pn(r):r;let v=g,b=zE(v);for(;b&&r&&m!==v;){const E=Fo(b),S=b.getBoundingClientRect(),_=pr(b),w=S.left+(b.clientLeft+parseFloat(_.paddingLeft))*E.x,A=S.top+(b.clientTop+parseFloat(_.paddingTop))*E.y;u*=E.x,d*=E.y,p*=E.x,f*=E.y,u+=w,d+=A,v=Pn(b),b=zE(v)}}return ad({width:p,height:f,x:u,y:d})}function Dw(t,e){const n=Cd(t).scrollLeft;return e?e.left+n:Ia($r(t)).left+n}function EO(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-(n?0:Dw(t,r)),a=r.top+e.scrollTop;return{x:i,y:a}}function iz(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const a=i==="fixed",o=$r(r),l=e?Td(e.floating):!1;if(r===o||l&&a)return n;let u={scrollLeft:0,scrollTop:0},d=Pr(1);const p=Pr(0),f=Br(r);if((f||!f&&!a)&&((us(r)!=="body"||$l(o))&&(u=Cd(r)),Br(r))){const m=Ia(r);d=Fo(r),p.x=m.x+r.clientLeft,p.y=m.y+r.clientTop}const g=o&&!f&&!a?EO(o,u,!0):Pr(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+p.x+g.x,y:n.y*d.y-u.scrollTop*d.y+p.y+g.y}}function az(t){return Array.from(t.getClientRects())}function oz(t){const e=$r(t),n=Cd(t),r=t.ownerDocument.body,i=Ln(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=Ln(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Dw(t);const l=-n.scrollTop;return pr(r).direction==="rtl"&&(o+=Ln(e.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:l}}function sz(t,e){const n=Pn(t),r=$r(t),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,l=0,u=0;if(i){a=i.width,o=i.height;const d=Ow();(!d||d&&e==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:l,y:u}}const lz=new Set(["absolute","fixed"]);function cz(t,e){const n=Ia(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,a=Br(t)?Fo(t):Pr(1),o=t.clientWidth*a.x,l=t.clientHeight*a.y,u=i*a.x,d=r*a.y;return{width:o,height:l,x:u,y:d}}function qA(t,e,n){let r;if(e==="viewport")r=sz(t,n);else if(e==="document")r=oz($r(t));else if(dr(e))r=cz(e,n);else{const i=vO(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return ad(r)}function wO(t,e){const n=Vi(t);return n===e||!dr(n)||Vo(n)?!1:pr(n).position==="fixed"||wO(n,e)}function uz(t,e){const n=e.get(t);if(n)return n;let r=vl(t,[],!1).filter(l=>dr(l)&&us(l)!=="body"),i=null;const a=pr(t).position==="fixed";let o=a?Vi(t):t;for(;dr(o)&&!Vo(o);){const l=pr(o),u=Iw(o);!u&&l.position==="fixed"&&(i=null),(a?!u&&!i:!u&&l.position==="static"&&!!i&&lz.has(i.position)||$l(o)&&!u&&wO(t,o))?r=r.filter(p=>p!==o):i=l,o=Vi(o)}return e.set(t,r),r}function dz(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?Td(e)?[]:uz(e,this._c):[].concat(n),r],l=o[0],u=o.reduce((d,p)=>{const f=qA(e,p,i);return d.top=Ln(f.top,d.top),d.right=qi(f.right,d.right),d.bottom=qi(f.bottom,d.bottom),d.left=Ln(f.left,d.left),d},qA(e,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function pz(t){const{width:e,height:n}=yO(t);return{width:e,height:n}}function fz(t,e,n){const r=Br(e),i=$r(e),a=n==="fixed",o=Ia(t,!0,a,e);let l={scrollLeft:0,scrollTop:0};const u=Pr(0);function d(){u.x=Dw(i)}if(r||!r&&!a)if((us(e)!=="body"||$l(i))&&(l=Cd(e)),r){const m=Ia(e,!0,a,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}else i&&d();a&&!r&&i&&d();const p=i&&!r&&!a?EO(i,l):Pr(0),f=o.left+l.scrollLeft-u.x-p.x,g=o.top+l.scrollTop-u.y-p.y;return{x:f,y:g,width:o.width,height:o.height}}function bh(t){return pr(t).position==="static"}function VA(t,e){if(!Br(t)||pr(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return $r(t)===n&&(n=n.ownerDocument.body),n}function SO(t,e){const n=Pn(t);if(Td(t))return n;if(!Br(t)){let i=Vi(t);for(;i&&!Vo(i);){if(dr(i)&&!bh(i))return i;i=Vi(i)}return n}let r=VA(t,e);for(;r&&X$(r)&&bh(r);)r=VA(r,e);return r&&Vo(r)&&bh(r)&&!Iw(r)?n:r||ez(t)||n}const hz=async function(t){const e=this.getOffsetParent||SO,n=this.getDimensions,r=await n(t.floating);return{reference:fz(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gz(t){return pr(t).direction==="rtl"}const mz={convertOffsetParentRelativeRectToViewportRelativeRect:iz,getDocumentElement:$r,getClippingRect:dz,getOffsetParent:SO,getElementRects:hz,getClientRects:az,getDimensions:pz,getScale:Fo,isElement:dr,isRTL:gz};function xO(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function bz(t,e){let n=null,r;const i=$r(t);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),a();const d=t.getBoundingClientRect(),{left:p,top:f,width:g,height:m}=d;if(l||e(),!g||!m)return;const v=vu(f),b=vu(i.clientWidth-(p+g)),E=vu(i.clientHeight-(f+m)),S=vu(p),w={rootMargin:-v+"px "+-b+"px "+-E+"px "+-S+"px",threshold:Ln(0,qi(1,u))||1};let A=!0;function k(R){const I=R[0].intersectionRatio;if(I!==u){if(!A)return o();I?o(!1,I):r=setTimeout(()=>{o(!1,1e-7)},1e3)}I===1&&!xO(d,t.getBoundingClientRect())&&o(),A=!1}try{n=new IntersectionObserver(k,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(t)}return o(!0),a}function yz(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Lw(t),p=i||a?[...d?vl(d):[],...vl(e)]:[];p.forEach(S=>{i&&S.addEventListener("scroll",n,{passive:!0}),a&&S.addEventListener("resize",n)});const f=d&&l?bz(d,n):null;let g=-1,m=null;o&&(m=new ResizeObserver(S=>{let[_]=S;_&&_.target===d&&m&&(m.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(e)})),n()}),d&&!u&&m.observe(d),m.observe(e));let v,b=u?Ia(t):null;u&&E();function E(){const S=Ia(t);b&&!xO(b,S)&&n(),b=S,v=requestAnimationFrame(E)}return n(),()=>{var S;p.forEach(_=>{i&&_.removeEventListener("scroll",n),a&&_.removeEventListener("resize",n)}),f?.(),(S=m)==null||S.disconnect(),m=null,u&&cancelAnimationFrame(v)}}const vz=H$,Ez=G$,wz=$$,Sz=V$,xz=z$,WA=U$,Az=q$,_z=(t,e,n)=>{const r=new Map,i={platform:mz,...n},a={...i.platform,_c:r};return B$(t,e,{...i,platform:a})};var Tz=typeof document<"u",Cz=function(){},Gu=Tz?C.useLayoutEffect:Cz;function od(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(!od(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)&&!od(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function AO(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function YA(t,e){const n=AO(t);return Math.round(e*n)/n}function yh(t){const e=C.useRef(t);return Gu(()=>{e.current=t}),e}function Rz(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:u,open:d}=t,[p,f]=C.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[g,m]=C.useState(r);od(g,r)||m(r);const[v,b]=C.useState(null),[E,S]=C.useState(null),_=C.useCallback(M=>{M!==R.current&&(R.current=M,b(M))},[]),w=C.useCallback(M=>{M!==I.current&&(I.current=M,S(M))},[]),A=a||v,k=o||E,R=C.useRef(null),I=C.useRef(null),O=C.useRef(p),L=u!=null,F=yh(u),j=yh(i),H=yh(d),G=C.useCallback(()=>{if(!R.current||!I.current)return;const M={placement:e,strategy:n,middleware:g};j.current&&(M.platform=j.current),_z(R.current,I.current,M).then(q=>{const Y={...q,isPositioned:H.current!==!1};D.current&&!od(O.current,Y)&&(O.current=Y,Ul.flushSync(()=>{f(Y)}))})},[g,e,n,j,H]);Gu(()=>{d===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[d]);const D=C.useRef(!1);Gu(()=>(D.current=!0,()=>{D.current=!1}),[]),Gu(()=>{if(A&&(R.current=A),k&&(I.current=k),A&&k){if(F.current)return F.current(A,k,G);G()}},[A,k,G,F,L]);const z=C.useMemo(()=>({reference:R,floating:I,setReference:_,setFloating:w}),[_,w]),B=C.useMemo(()=>({reference:A,floating:k}),[A,k]),U=C.useMemo(()=>{const M={position:n,left:0,top:0};if(!B.floating)return M;const q=YA(B.floating,p.x),Y=YA(B.floating,p.y);return l?{...M,transform:"translate("+q+"px, "+Y+"px)",...AO(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:Y}},[n,l,B.floating,p.x,p.y]);return C.useMemo(()=>({...p,update:G,refs:z,elements:B,floatingStyles:U}),[p,G,z,B,U])}const kz=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?WA({element:r.current,padding:i}).fn(n):{}:r?WA({element:r,padding:i}).fn(n):{}}}},Nz=(t,e)=>({...vz(t),options:[t,e]}),Iz=(t,e)=>({...Ez(t),options:[t,e]}),Oz=(t,e)=>({...Az(t),options:[t,e]}),Lz=(t,e)=>({...wz(t),options:[t,e]}),Dz=(t,e)=>({...Sz(t),options:[t,e]}),Mz=(t,e)=>({...xz(t),options:[t,e]}),Pz=(t,e)=>({...kz(t),options:[t,e]});var Fz="Arrow",_O=C.forwardRef((t,e)=>{const{children:n,width:r=10,height:i=5,...a}=t;return T.jsx(Ze.svg,{...a,ref:e,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:T.jsx("polygon",{points:"0,0 30,0 15,10"})})});_O.displayName=Fz;var Bz=_O,Mw="Popper",[TO,Rd]=ss(Mw),[Uz,CO]=TO(Mw),RO=t=>{const{__scopePopper:e,children:n}=t,[r,i]=C.useState(null);return T.jsx(Uz,{scope:e,anchor:r,onAnchorChange:i,children:n})};RO.displayName=Mw;var kO="PopperAnchor",NO=C.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...i}=t,a=CO(kO,n),o=C.useRef(null),l=st(e,o);return C.useEffect(()=>{a.onAnchorChange(r?.current||o.current)}),r?null:T.jsx(Ze.div,{...i,ref:l})});NO.displayName=kO;var Pw="PopperContent",[$z,zz]=TO(Pw),IO=C.forwardRef((t,e)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:v,...b}=t,E=CO(Pw,n),[S,_]=C.useState(null),w=st(e,W=>_(W)),[A,k]=C.useState(null),R=pO(A),I=R?.width??0,O=R?.height??0,L=r+(a!=="center"?"-"+a:""),F=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},j=Array.isArray(d)?d:[d],H=j.length>0,G={padding:F,boundary:j.filter(Hz),altBoundary:H},{refs:D,floatingStyles:z,placement:B,isPositioned:U,middlewareData:M}=Rz({strategy:"fixed",placement:L,whileElementsMounted:(...W)=>yz(...W,{animationFrame:m==="always"}),elements:{reference:E.anchor},middleware:[Nz({mainAxis:i+O,alignmentAxis:o}),u&&Iz({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Oz():void 0,...G}),u&&Lz({...G}),Dz({...G,apply:({elements:W,rects:Z,availableWidth:ne,availableHeight:se})=>{const{width:de,height:ce}=Z.reference,le=W.floating.style;le.setProperty("--radix-popper-available-width",`${ne}px`),le.setProperty("--radix-popper-available-height",`${se}px`),le.setProperty("--radix-popper-anchor-width",`${de}px`),le.setProperty("--radix-popper-anchor-height",`${ce}px`)}}),A&&Pz({element:A,padding:l}),Gz({arrowWidth:I,arrowHeight:O}),g&&Mz({strategy:"referenceHidden",...G})]}),[q,Y]=DO(B),$=Na(v);on(()=>{U&&$?.()},[U,$]);const V=M.arrow?.x,X=M.arrow?.y,Q=M.arrow?.centerOffset!==0,[te,ie]=C.useState();return on(()=>{S&&ie(window.getComputedStyle(S).zIndex)},[S]),T.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:U?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:T.jsx($z,{scope:n,placedSide:q,onArrowChange:k,arrowX:V,arrowY:X,shouldHideArrow:Q,children:T.jsx(Ze.div,{"data-side":q,"data-align":Y,...b,ref:w,style:{...b.style,animation:U?void 0:"none"}})})})});IO.displayName=Pw;var OO="PopperArrow",jz={top:"bottom",right:"left",bottom:"top",left:"right"},LO=C.forwardRef(function(e,n){const{__scopePopper:r,...i}=e,a=zz(OO,r),o=jz[a.placedSide];return T.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:T.jsx(Bz,{...i,ref:n,style:{...i.style,display:"block"}})})});LO.displayName=OO;function Hz(t){return t!==null}var Gz=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:i}=e,o=i.arrow?.centerOffset!==0,l=o?0:t.arrowWidth,u=o?0:t.arrowHeight,[d,p]=DO(n),f={start:"0%",center:"50%",end:"100%"}[p],g=(i.arrow?.x??0)+l/2,m=(i.arrow?.y??0)+u/2;let v="",b="";return d==="bottom"?(v=o?f:`${g}px`,b=`${-u}px`):d==="top"?(v=o?f:`${g}px`,b=`${r.floating.height+u}px`):d==="right"?(v=`${-u}px`,b=o?f:`${m}px`):d==="left"&&(v=`${r.floating.width+u}px`,b=o?f:`${m}px`),{data:{x:v,y:b}}}});function DO(t){const[e,n="center"]=t.split("-");return[e,n]}var MO=RO,Fw=NO,PO=IO,FO=LO,qz="Portal",kd=C.forwardRef((t,e)=>{const{container:n,...r}=t,[i,a]=C.useState(!1);on(()=>a(!0),[]);const o=n||i&&globalThis?.document?.body;return o?vU.createPortal(T.jsx(Ze.div,{...r,ref:e}),o):null});kd.displayName=qz;function Vz(t,e=globalThis?.document){const n=Na(t);C.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var Wz="DismissableLayer",jE="dismissableLayer.update",Yz="dismissableLayer.pointerDownOutside",Xz="dismissableLayer.focusOutside",XA,BO=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nd=C.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:l,...u}=t,d=C.useContext(BO),[p,f]=C.useState(null),g=p?.ownerDocument??globalThis?.document,[,m]=C.useState({}),v=st(e,I=>f(I)),b=Array.from(d.layers),[E]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),S=b.indexOf(E),_=p?b.indexOf(p):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,A=_>=S,k=Qz(I=>{const O=I.target,L=[...d.branches].some(F=>F.contains(O));!A||L||(i?.(I),o?.(I),I.defaultPrevented||l?.())},g),R=Jz(I=>{const O=I.target;[...d.branches].some(F=>F.contains(O))||(a?.(I),o?.(I),I.defaultPrevented||l?.())},g);return Vz(I=>{_===d.layers.size-1&&(r?.(I),!I.defaultPrevented&&l&&(I.preventDefault(),l()))},g),C.useEffect(()=>{if(p)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(XA=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),KA(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=XA)}},[p,g,n,d]),C.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),KA())},[p,d]),C.useEffect(()=>{const I=()=>m({});return document.addEventListener(jE,I),()=>document.removeEventListener(jE,I)},[]),T.jsx(Ze.div,{...u,ref:v,style:{pointerEvents:w?A?"auto":"none":void 0,...t.style},onFocusCapture:Ke(t.onFocusCapture,R.onFocusCapture),onBlurCapture:Ke(t.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Ke(t.onPointerDownCapture,k.onPointerDownCapture)})});Nd.displayName=Wz;var Kz="DismissableLayerBranch",Zz=C.forwardRef((t,e)=>{const n=C.useContext(BO),r=C.useRef(null),i=st(e,r);return C.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),T.jsx(Ze.div,{...t,ref:i})});Zz.displayName=Kz;function Qz(t,e=globalThis?.document){const n=Na(t),r=C.useRef(!1),i=C.useRef(()=>{});return C.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let u=function(){UO(Yz,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=u,e.addEventListener("click",i.current,{once:!0})):u()}else e.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",a),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function Jz(t,e=globalThis?.document){const n=Na(t),r=C.useRef(!1);return C.useEffect(()=>{const i=a=>{a.target&&!r.current&&UO(Xz,n,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function KA(){const t=new CustomEvent(jE);document.dispatchEvent(t)}function UO(t,e,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?wU(i,a):i.dispatchEvent(a)}var ej="Label",$O=C.forwardRef((t,e)=>T.jsx(Ze.label,{...t,ref:e,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(t.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));$O.displayName=ej;var tj=$O;function nj(t){var e=t,{className:n}=e,r=qe(e,["className"]);return T.jsx(tj,De({"data-slot":"label",className:Qe("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",n)},r))}const rj=Me.createContext(null);rj.displayName="HookFormContext";C.createContext({});C.createContext({});var vh="focusScope.autoFocusOnMount",Eh="focusScope.autoFocusOnUnmount",ZA={bubbles:!1,cancelable:!0},ij="FocusScope",Id=C.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=t,[l,u]=C.useState(null),d=Na(i),p=Na(a),f=C.useRef(null),g=st(e,b=>u(b)),m=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(r){let b=function(w){if(m.paused||!l)return;const A=w.target;l.contains(A)?f.current=A:Bi(f.current,{select:!0})},E=function(w){if(m.paused||!l)return;const A=w.relatedTarget;A!==null&&(l.contains(A)||Bi(f.current,{select:!0}))},S=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&Bi(l)};document.addEventListener("focusin",b),document.addEventListener("focusout",E);const _=new MutationObserver(S);return l&&_.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",E),_.disconnect()}}},[r,l,m.paused]),C.useEffect(()=>{if(l){JA.add(m);const b=document.activeElement;if(!l.contains(b)){const S=new CustomEvent(vh,ZA);l.addEventListener(vh,d),l.dispatchEvent(S),S.defaultPrevented||(aj(uj(zO(l)),{select:!0}),document.activeElement===b&&Bi(l))}return()=>{l.removeEventListener(vh,d),setTimeout(()=>{const S=new CustomEvent(Eh,ZA);l.addEventListener(Eh,p),l.dispatchEvent(S),S.defaultPrevented||Bi(b??document.body,{select:!0}),l.removeEventListener(Eh,p),JA.remove(m)},0)}}},[l,d,p,m]);const v=C.useCallback(b=>{if(!n&&!r||m.paused)return;const E=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,S=document.activeElement;if(E&&S){const _=b.currentTarget,[w,A]=oj(_);w&&A?!b.shiftKey&&S===A?(b.preventDefault(),n&&Bi(w,{select:!0})):b.shiftKey&&S===w&&(b.preventDefault(),n&&Bi(A,{select:!0})):S===_&&b.preventDefault()}},[n,r,m.paused]);return T.jsx(Ze.div,{tabIndex:-1,...o,ref:g,onKeyDown:v})});Id.displayName=ij;function aj(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(Bi(r,{select:e}),document.activeElement!==n)return}function oj(t){const e=zO(t),n=QA(e,t),r=QA(e.reverse(),t);return[n,r]}function zO(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function QA(t,e){for(const n of t)if(!sj(n,{upTo:e}))return n}function sj(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function lj(t){return t instanceof HTMLInputElement&&"select"in t}function Bi(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&lj(t)&&e&&t.select()}}var JA=cj();function cj(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=e_(t,e),t.unshift(e)},remove(e){t=e_(t,e),t[0]?.resume()}}}function e_(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function uj(t){return t.filter(e=>e.tagName!=="A")}var wh=0;function Bw(){C.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??t_()),document.body.insertAdjacentElement("beforeend",t[1]??t_()),wh++,()=>{wh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),wh--}},[])}function t_(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Lr=function(){return Lr=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},Lr.apply(this,arguments)};function jO(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 dj(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 qu="right-scroll-bar-position",Vu="width-before-scroll-bar",pj="with-scroll-bars-hidden",fj="--removed-body-scroll-bar-size";function Sh(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function hj(t,e){var n=C.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 gj=typeof window<"u"?C.useLayoutEffect:C.useEffect,n_=new WeakMap;function mj(t,e){var n=hj(null,function(r){return t.forEach(function(i){return Sh(i,r)})});return gj(function(){var r=n_.get(n);if(r){var i=new Set(r),a=new Set(t),o=n.current;i.forEach(function(l){a.has(l)||Sh(l,null)}),a.forEach(function(l){i.has(l)||Sh(l,o)})}n_.set(n,t)},[t]),n}function bj(t){return t}function yj(t,e){e===void 0&&(e=bj);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 o=e(a,r);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(a){for(r=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){r=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(a),o=n}var u=function(){var p=o;o=[],p.forEach(a)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(p){o.push(p),d()},filter:function(p){return o=o.filter(p),n}}}};return i}function vj(t){t===void 0&&(t={});var e=yj(null);return e.options=Lr({async:!0,ssr:!1},t),e}var HO=function(t){var e=t.sideCar,n=jO(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 C.createElement(r,Lr({},n))};HO.isSideCarExport=!0;function Ej(t,e){return t.useMedium(e),HO}var GO=vj(),xh=function(){},Od=C.forwardRef(function(t,e){var n=C.useRef(null),r=C.useState({onScrollCapture:xh,onWheelCapture:xh,onTouchMoveCapture:xh}),i=r[0],a=r[1],o=t.forwardProps,l=t.children,u=t.className,d=t.removeScrollBar,p=t.enabled,f=t.shards,g=t.sideCar,m=t.noRelative,v=t.noIsolation,b=t.inert,E=t.allowPinchZoom,S=t.as,_=S===void 0?"div":S,w=t.gapMode,A=jO(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=g,R=mj([n,e]),I=Lr(Lr({},A),i);return C.createElement(C.Fragment,null,p&&C.createElement(k,{sideCar:GO,removeScrollBar:d,shards:f,noRelative:m,noIsolation:v,inert:b,setCallbacks:a,allowPinchZoom:!!E,lockRef:n,gapMode:w}),o?C.cloneElement(C.Children.only(l),Lr(Lr({},I),{ref:R})):C.createElement(_,Lr({},I,{className:u,ref:R}),l))});Od.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Od.classNames={fullWidth:Vu,zeroRight:qu};var wj=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Sj(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=wj();return e&&t.setAttribute("nonce",e),t}function xj(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Aj(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var _j=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Sj())&&(xj(e,n),Aj(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Tj=function(){var t=_j();return function(e,n){C.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},qO=function(){var t=Tj(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},Cj={left:0,top:0,right:0,gap:0},Ah=function(t){return parseInt(t||"",10)||0},Rj=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[Ah(n),Ah(r),Ah(i)]},kj=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return Cj;var e=Rj(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])}},Nj=qO(),Bo="data-scroll-locked",Ij=function(t,e,n,r){var i=t.left,a=t.top,o=t.right,l=t.gap;return n===void 0&&(n="margin"),`
199
- .`.concat(pj,` {
200
- overflow: hidden `).concat(r,`;
201
- padding-right: `).concat(l,"px ").concat(r,`;
202
- }
203
- body[`).concat(Bo,`] {
204
- overflow: hidden `).concat(r,`;
205
- overscroll-behavior: contain;
206
- `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
207
- padding-left: `.concat(i,`px;
208
- padding-top: `).concat(a,`px;
209
- padding-right: `).concat(o,`px;
210
- margin-left:0;
211
- margin-top:0;
212
- margin-right: `).concat(l,"px ").concat(r,`;
213
- `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
214
- }
215
-
216
- .`).concat(qu,` {
217
- right: `).concat(l,"px ").concat(r,`;
218
- }
219
-
220
- .`).concat(Vu,` {
221
- margin-right: `).concat(l,"px ").concat(r,`;
222
- }
223
-
224
- .`).concat(qu," .").concat(qu,` {
225
- right: 0 `).concat(r,`;
226
- }
227
-
228
- .`).concat(Vu," .").concat(Vu,` {
229
- margin-right: 0 `).concat(r,`;
230
- }
231
-
232
- body[`).concat(Bo,`] {
233
- `).concat(fj,": ").concat(l,`px;
234
- }
235
- `)},r_=function(){var t=parseInt(document.body.getAttribute(Bo)||"0",10);return isFinite(t)?t:0},Oj=function(){C.useEffect(function(){return document.body.setAttribute(Bo,(r_()+1).toString()),function(){var t=r_()-1;t<=0?document.body.removeAttribute(Bo):document.body.setAttribute(Bo,t.toString())}},[])},Lj=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;Oj();var a=C.useMemo(function(){return kj(i)},[i]);return C.createElement(Nj,{styles:Ij(a,!e,i,n?"":"!important")})},HE=!1;if(typeof window<"u")try{var Eu=Object.defineProperty({},"passive",{get:function(){return HE=!0,!0}});window.addEventListener("test",Eu,Eu),window.removeEventListener("test",Eu,Eu)}catch{HE=!1}var So=HE?{passive:!1}:!1,Dj=function(t){return t.tagName==="TEXTAREA"},VO=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!Dj(t)&&n[e]==="visible")},Mj=function(t){return VO(t,"overflowY")},Pj=function(t){return VO(t,"overflowX")},i_=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=WO(t,r);if(i){var a=YO(t,r),o=a[1],l=a[2];if(o>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Fj=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},Bj=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},WO=function(t,e){return t==="v"?Mj(e):Pj(e)},YO=function(t,e){return t==="v"?Fj(e):Bj(e)},Uj=function(t,e){return t==="h"&&e==="rtl"?-1:1},$j=function(t,e,n,r,i){var a=Uj(t,window.getComputedStyle(e).direction),o=a*r,l=n.target,u=e.contains(l),d=!1,p=o>0,f=0,g=0;do{if(!l)break;var m=YO(t,l),v=m[0],b=m[1],E=m[2],S=b-E-a*v;(v||S)&&WO(t,l)&&(f+=S,g+=v);var _=l.parentNode;l=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return(p&&Math.abs(f)<1||!p&&Math.abs(g)<1)&&(d=!0),d},wu=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},a_=function(t){return[t.deltaX,t.deltaY]},o_=function(t){return t&&"current"in t?t.current:t},zj=function(t,e){return t[0]===e[0]&&t[1]===e[1]},jj=function(t){return`
236
- .block-interactivity-`.concat(t,` {pointer-events: none;}
237
- .allow-interactivity-`).concat(t,` {pointer-events: all;}
238
- `)},Hj=0,xo=[];function Gj(t){var e=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),i=C.useState(Hj++)[0],a=C.useState(qO)[0],o=C.useRef(t);C.useEffect(function(){o.current=t},[t]),C.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var b=dj([t.lockRef.current],(t.shards||[]).map(o_),!0).filter(Boolean);return b.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var l=C.useCallback(function(b,E){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!o.current.allowPinchZoom;var S=wu(b),_=n.current,w="deltaX"in b?b.deltaX:_[0]-S[0],A="deltaY"in b?b.deltaY:_[1]-S[1],k,R=b.target,I=Math.abs(w)>Math.abs(A)?"h":"v";if("touches"in b&&I==="h"&&R.type==="range")return!1;var O=i_(I,R);if(!O)return!0;if(O?k=I:(k=I==="v"?"h":"v",O=i_(I,R)),!O)return!1;if(!r.current&&"changedTouches"in b&&(w||A)&&(r.current=k),!k)return!0;var L=r.current||k;return $j(L,E,b,L==="h"?w:A)},[]),u=C.useCallback(function(b){var E=b;if(!(!xo.length||xo[xo.length-1]!==a)){var S="deltaY"in E?a_(E):wu(E),_=e.current.filter(function(k){return k.name===E.type&&(k.target===E.target||E.target===k.shadowParent)&&zj(k.delta,S)})[0];if(_&&_.should){E.cancelable&&E.preventDefault();return}if(!_){var w=(o.current.shards||[]).map(o_).filter(Boolean).filter(function(k){return k.contains(E.target)}),A=w.length>0?l(E,w[0]):!o.current.noIsolation;A&&E.cancelable&&E.preventDefault()}}},[]),d=C.useCallback(function(b,E,S,_){var w={name:b,delta:E,target:S,should:_,shadowParent:qj(S)};e.current.push(w),setTimeout(function(){e.current=e.current.filter(function(A){return A!==w})},1)},[]),p=C.useCallback(function(b){n.current=wu(b),r.current=void 0},[]),f=C.useCallback(function(b){d(b.type,a_(b),b.target,l(b,t.lockRef.current))},[]),g=C.useCallback(function(b){d(b.type,wu(b),b.target,l(b,t.lockRef.current))},[]);C.useEffect(function(){return xo.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",u,So),document.addEventListener("touchmove",u,So),document.addEventListener("touchstart",p,So),function(){xo=xo.filter(function(b){return b!==a}),document.removeEventListener("wheel",u,So),document.removeEventListener("touchmove",u,So),document.removeEventListener("touchstart",p,So)}},[]);var m=t.removeScrollBar,v=t.inert;return C.createElement(C.Fragment,null,v?C.createElement(a,{styles:jj(i)}):null,m?C.createElement(Lj,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function qj(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const Vj=Ej(GO,Gj);var Ld=C.forwardRef(function(t,e){return C.createElement(Od,Lr({},t,{ref:e,sideCar:Vj}))});Ld.classNames=Od.classNames;var Wj=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Ao=new WeakMap,Su=new WeakMap,xu={},_h=0,XO=function(t){return t&&(t.host||XO(t.parentNode))},Yj=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=XO(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},Xj=function(t,e,n,r){var i=Yj(e,Array.isArray(t)?t:[t]);xu[n]||(xu[n]=new WeakMap);var a=xu[n],o=[],l=new Set,u=new Set(i),d=function(f){!f||l.has(f)||(l.add(f),d(f.parentNode))};i.forEach(d);var p=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(g){if(l.has(g))p(g);else try{var m=g.getAttribute(r),v=m!==null&&m!=="false",b=(Ao.get(g)||0)+1,E=(a.get(g)||0)+1;Ao.set(g,b),a.set(g,E),o.push(g),b===1&&v&&Su.set(g,!0),E===1&&g.setAttribute(n,"true"),v||g.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",g,S)}})};return p(e),l.clear(),_h++,function(){o.forEach(function(f){var g=Ao.get(f)-1,m=a.get(f)-1;Ao.set(f,g),a.set(f,m),g||(Su.has(f)||f.removeAttribute(r),Su.delete(f)),m||f.removeAttribute(n)}),_h--,_h||(Ao=new WeakMap,Ao=new WeakMap,Su=new WeakMap,xu={})}},Uw=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=Wj(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),Xj(r,i,n,"aria-hidden")):function(){return null}},Dd="Dialog",[KO,kre]=ss(Dd),[Kj,hr]=KO(Dd),ZO=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=t,l=C.useRef(null),u=C.useRef(null),[d,p]=bl({prop:r,defaultProp:i??!1,onChange:a,caller:Dd});return T.jsx(Kj,{scope:e,triggerRef:l,contentRef:u,contentId:Ta(),titleId:Ta(),descriptionId:Ta(),open:d,onOpenChange:p,onOpenToggle:C.useCallback(()=>p(f=>!f),[p]),modal:o,children:n})};ZO.displayName=Dd;var QO="DialogTrigger",JO=C.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=hr(QO,n),a=st(e,i.triggerRef);return T.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":jw(i.open),...r,ref:a,onClick:Ke(t.onClick,i.onOpenToggle)})});JO.displayName=QO;var $w="DialogPortal",[Zj,eL]=KO($w,{forceMount:void 0}),tL=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:i}=t,a=hr($w,e);return T.jsx(Zj,{scope:e,forceMount:n,children:C.Children.map(r,o=>T.jsx(ls,{present:n||a.open,children:T.jsx(kd,{asChild:!0,container:i,children:o})}))})};tL.displayName=$w;var sd="DialogOverlay",nL=C.forwardRef((t,e)=>{const n=eL(sd,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,a=hr(sd,t.__scopeDialog);return a.modal?T.jsx(ls,{present:r||a.open,children:T.jsx(Jj,{...i,ref:e})}):null});nL.displayName=sd;var Qj=ka("DialogOverlay.RemoveScroll"),Jj=C.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=hr(sd,n);return T.jsx(Ld,{as:Qj,allowPinchZoom:!0,shards:[i.contentRef],children:T.jsx(Ze.div,{"data-state":jw(i.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),Oa="DialogContent",rL=C.forwardRef((t,e)=>{const n=eL(Oa,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,a=hr(Oa,t.__scopeDialog);return T.jsx(ls,{present:r||a.open,children:a.modal?T.jsx(eH,{...i,ref:e}):T.jsx(tH,{...i,ref:e})})});rL.displayName=Oa;var eH=C.forwardRef((t,e)=>{const n=hr(Oa,t.__scopeDialog),r=C.useRef(null),i=st(e,n.contentRef,r);return C.useEffect(()=>{const a=r.current;if(a)return Uw(a)},[]),T.jsx(iL,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ke(t.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ke(t.onPointerDownOutside,a=>{const o=a.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&a.preventDefault()}),onFocusOutside:Ke(t.onFocusOutside,a=>a.preventDefault())})}),tH=C.forwardRef((t,e)=>{const n=hr(Oa,t.__scopeDialog),r=C.useRef(!1),i=C.useRef(!1);return T.jsx(iL,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{t.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:a=>{t.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=a.target;n.triggerRef.current?.contains(o)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),iL=C.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=t,l=hr(Oa,n),u=C.useRef(null),d=st(e,u);return Bw(),T.jsxs(T.Fragment,{children:[T.jsx(Id,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:T.jsx(Nd,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":jw(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),T.jsxs(T.Fragment,{children:[T.jsx(nH,{titleId:l.titleId}),T.jsx(iH,{contentRef:u,descriptionId:l.descriptionId})]})]})}),zw="DialogTitle",aL=C.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=hr(zw,n);return T.jsx(Ze.h2,{id:i.titleId,...r,ref:e})});aL.displayName=zw;var oL="DialogDescription",sL=C.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=hr(oL,n);return T.jsx(Ze.p,{id:i.descriptionId,...r,ref:e})});sL.displayName=oL;var lL="DialogClose",cL=C.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=hr(lL,n);return T.jsx(Ze.button,{type:"button",...r,ref:e,onClick:Ke(t.onClick,()=>i.onOpenChange(!1))})});cL.displayName=lL;function jw(t){return t?"open":"closed"}var uL="DialogTitleWarning",[Nre,dL]=lU(uL,{contentName:Oa,titleName:zw,docsSlug:"dialog"}),nH=({titleId:t})=>{const e=dL(uL),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
239
-
240
- If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
241
-
242
- For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return C.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},rH="DialogDescriptionWarning",iH=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${dL(rH).contentName}}.`;return C.useEffect(()=>{const i=t.current?.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},aH=ZO,oH=JO,sH=tL,pL=nL,fL=rL,lH=aL,cH=sL,uH=cL;function dH(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}const pH=Me.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Md=()=>{const t=Me.useContext(pH);if(!t)throw new Error("useDrawerContext must be used within a Drawer.Root");return t};dH(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
243
- [data-state=closed]
244
- ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function fH(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function hH(...t){return e=>t.forEach(n=>fH(n,e))}function hL(...t){return C.useCallback(hH(...t),t)}const s_=t=>{switch(t){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return t}};function Th(t,e){if(!t)return()=>{};const n=t.style.cssText;return Object.assign(t.style,e),()=>{t.style.cssText=n}}function gH(...t){return(...e)=>{for(const n of t)typeof n=="function"&&n(...e)}}const Ch={DURATION:.5,EASE:[.32,.72,0,1]},mH=8,bH=26,yH=()=>()=>{};function vH(){const{direction:t,isOpen:e,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=Md(),a=Me.useRef(null),o=C.useMemo(()=>document.body.style.backgroundColor,[]);function l(){return(window.innerWidth-bH)/window.innerWidth}Me.useEffect(()=>{if(e&&n){a.current&&clearTimeout(a.current);const u=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!u)return;gH(r&&!i?Th(document.body,{background:"black"}):yH,Th(u,{transformOrigin:s_(t)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Ch.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ch.EASE.join(",")})`}));const d=Th(u,{borderRadius:`${mH}px`,overflow:"hidden",...s_(t)?{transform:`scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{d(),a.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty("background")},Ch.DURATION*1e3)}}},[e,n,o])}const EH=Me.forwardRef(function({...t},e){const{overlayRef:n,snapPoints:r,onRelease:i,shouldFade:a,isOpen:o,modal:l,shouldAnimate:u}=Md(),d=hL(e,n),p=r&&r.length>0;if(!l)return null;const f=Me.useCallback(g=>i(g),[i]);return Me.createElement(pL,{onMouseUp:f,ref:d,"data-vaul-overlay":"","data-vaul-snap-points":o&&p?"true":"false","data-vaul-snap-points-overlay":o&&a?"true":"false","data-vaul-animate":u?.current?"true":"false",...t})});EH.displayName="Drawer.Overlay";const wH=Me.forwardRef(function({onPointerDownOutside:t,style:e,onOpenAutoFocus:n,...r},i){const{drawerRef:a,onPress:o,onRelease:l,onDrag:u,keyboardIsOpen:d,snapPointsOffset:p,activeSnapPointIndex:f,modal:g,isOpen:m,direction:v,snapPoints:b,container:E,handleOnly:S,shouldAnimate:_,autoFocus:w}=Md(),[A,k]=Me.useState(!1),R=hL(i,a),I=Me.useRef(null),O=Me.useRef(null),L=Me.useRef(!1),F=b&&b.length>0;vH();const j=(G,D,z=0)=>{if(L.current)return!0;const B=Math.abs(G.y),U=Math.abs(G.x),M=U>B,q=["bottom","right"].includes(D)?1:-1;if(D==="left"||D==="right"){if(!(G.x*q<0)&&U>=0&&U<=z)return M}else if(!(G.y*q<0)&&B>=0&&B<=z)return!M;return L.current=!0,!0};Me.useEffect(()=>{F&&window.requestAnimationFrame(()=>{k(!0)})},[]);function H(G){I.current=null,L.current=!1,l(G)}return Me.createElement(fL,{"data-vaul-drawer-direction":v,"data-vaul-drawer":"","data-vaul-delayed-snap-points":A?"true":"false","data-vaul-snap-points":m&&F?"true":"false","data-vaul-custom-container":E?"true":"false","data-vaul-animate":_?.current?"true":"false",...r,ref:R,style:p&&p.length>0?{"--snap-point-height":`${p[f??0]}px`,...e}:e,onPointerDown:G=>{S||(r.onPointerDown==null||r.onPointerDown.call(r,G),I.current={x:G.pageX,y:G.pageY},o(G))},onOpenAutoFocus:G=>{n?.(G),w||G.preventDefault()},onPointerDownOutside:G=>{if(t?.(G),!g||G.defaultPrevented){G.preventDefault();return}d.current&&(d.current=!1)},onFocusOutside:G=>{if(!g){G.preventDefault();return}},onPointerMove:G=>{if(O.current=G,S||(r.onPointerMove==null||r.onPointerMove.call(r,G),!I.current))return;const D=G.pageY-I.current.y,z=G.pageX-I.current.x,B=G.pointerType==="touch"?10:2;j({x:z,y:D},v,B)?u(G):(Math.abs(z)>B||Math.abs(D)>B)&&(I.current=null)},onPointerUp:G=>{r.onPointerUp==null||r.onPointerUp.call(r,G),I.current=null,L.current=!1,l(G)},onPointerOut:G=>{r.onPointerOut==null||r.onPointerOut.call(r,G),H(O.current)},onContextMenu:G=>{r.onContextMenu==null||r.onContextMenu.call(r,G),O.current&&H(O.current)}})});wH.displayName="Drawer.Content";const SH=250,xH=120,AH=Me.forwardRef(function({preventCycle:t=!1,children:e,...n},r){const{closeDrawer:i,isDragging:a,snapPoints:o,activeSnapPoint:l,setActiveSnapPoint:u,dismissible:d,handleOnly:p,isOpen:f,onPress:g,onDrag:m}=Md(),v=Me.useRef(null),b=Me.useRef(!1);function E(){if(b.current){w();return}window.setTimeout(()=>{S()},xH)}function S(){if(a||t||b.current){w();return}if(w(),!o||o.length===0){d||i();return}if(l===o[o.length-1]&&d){i();return}const k=o.findIndex(I=>I===l);if(k===-1)return;const R=o[k+1];u(R)}function _(){v.current=window.setTimeout(()=>{b.current=!0},SH)}function w(){v.current&&window.clearTimeout(v.current),b.current=!1}return Me.createElement("div",{onClick:E,onPointerCancel:w,onPointerDown:A=>{p&&g(A),_()},onPointerMove:A=>{p&&m(A)},ref:r,"data-vaul-drawer-visible":f?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},Me.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},e))});AH.displayName="Drawer.Handle";function _H(t){var e=qe(t,[]);return T.jsx(aH,De({"data-slot":"dialog"},e))}function TH(t){var e=qe(t,[]);return T.jsx(oH,De({"data-slot":"dialog-trigger"},e))}function CH(t){var e=qe(t,[]);return T.jsx(sH,De({"data-slot":"dialog-portal"},e))}function RH(t){var e=t,{className:n}=e,r=qe(e,["className"]);return T.jsx(pL,De({"data-slot":"dialog-overlay",className:Qe("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",n)},r))}function kH(t){var e=t,{className:n,children:r,showCloseButton:i=!0}=e,a=qe(e,["className","children","showCloseButton"]);return T.jsxs(CH,{"data-slot":"dialog-portal",children:[T.jsx(RH,{}),T.jsxs(fL,Gt(De({"data-slot":"dialog-content",className:Qe("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",n)},a),{children:[r,i&&T.jsxs(uH,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[T.jsx(S$,{}),T.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function NH(t){var e=t,{className:n}=e,r=qe(e,["className"]);return T.jsx("div",De({"data-slot":"dialog-header",className:Qe("flex flex-col gap-2 text-center sm:text-left",n)},r))}function IH(t){var e=t,{className:n}=e,r=qe(e,["className"]);return T.jsx("div",De({"data-slot":"dialog-footer",className:Qe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",n)},r))}function OH(t){var e=t,{className:n}=e,r=qe(e,["className"]);return T.jsx(lH,De({"data-slot":"dialog-title",className:Qe("text-lg leading-none font-semibold",n)},r))}function LH(t){var e=t,{className:n}=e,r=qe(e,["className"]);return T.jsx(cH,De({"data-slot":"dialog-description",className:Qe("text-muted-foreground text-sm",n)},r))}var gL=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),DH="VisuallyHidden",MH=C.forwardRef((t,e)=>T.jsx(Ze.span,{...t,ref:e,style:{...gL,...t.style}}));MH.displayName=DH;function PH(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}Array(12).fill(0);let GE=1;class FH{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const n=this.subscribers.indexOf(e);this.subscribers.splice(n,1)}),this.publish=e=>{this.subscribers.forEach(n=>n(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var n;const{message:r,...i}=e,a=typeof e?.id=="number"||((n=e.id)==null?void 0:n.length)>0?e.id:GE++,o=this.toasts.find(u=>u.id===a),l=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(u=>u.id===a?(this.publish({...u,...e,id:a,title:r}),{...u,...e,id:a,dismissible:l,title:r}):u):this.addToast({title:r,...i,dismissible:l,id:a}),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:e,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),e),this.message=(e,n)=>this.create({...n,message:e}),this.error=(e,n)=>this.create({...n,message:e,type:"error"}),this.success=(e,n)=>this.create({...n,type:"success",message:e}),this.info=(e,n)=>this.create({...n,type:"info",message:e}),this.warning=(e,n)=>this.create({...n,type:"warning",message:e}),this.loading=(e,n)=>this.create({...n,type:"loading",message:e}),this.promise=(e,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:e,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(e instanceof Function?e():e);let a=r!==void 0,o;const l=i.then(async d=>{if(o=["resolve",d],Me.isValidElement(d))a=!1,this.create({id:r,type:"default",message:d});else if(UH(d)&&!d.ok){a=!1;const f=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,g=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,v=typeof f=="object"&&!Me.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:g,...v})}else if(d instanceof Error){a=!1;const f=typeof n.error=="function"?await n.error(d):n.error,g=typeof n.description=="function"?await n.description(d):n.description,v=typeof f=="object"&&!Me.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:g,...v})}else if(n.success!==void 0){a=!1;const f=typeof n.success=="function"?await n.success(d):n.success,g=typeof n.description=="function"?await n.description(d):n.description,v=typeof f=="object"&&!Me.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:g,...v})}}).catch(async d=>{if(o=["reject",d],n.error!==void 0){a=!1;const p=typeof n.error=="function"?await n.error(d):n.error,f=typeof n.description=="function"?await n.description(d):n.description,m=typeof p=="object"&&!Me.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:f,...m})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),u=()=>new Promise((d,p)=>l.then(()=>o[0]==="reject"?p(o[1]):d(o[1])).catch(p));return typeof r!="string"&&typeof r!="number"?{unwrap:u}:Object.assign(r,{unwrap:u})},this.custom=(e,n)=>{const r=n?.id||GE++;return this.create({jsx:e(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Yn=new FH,BH=(t,e)=>{const n=e?.id||GE++;return Yn.addToast({title:t,...e,id:n}),n},UH=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",$H=BH,zH=()=>Yn.toasts,jH=()=>Yn.getActiveToasts();Object.assign($H,{success:Yn.success,info:Yn.info,warning:Yn.warning,error:Yn.error,custom:Yn.custom,message:Yn.message,promise:Yn.promise,dismiss:Yn.dismiss,loading:Yn.loading},{getHistory:zH,getToasts:jH});PH("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function ji(t){var e=t,{className:n}=e,r=qe(e,["className"]);return T.jsx("div",De({"data-slot":"skeleton",className:Qe("bg-accent animate-pulse rounded-md",n)},r))}function l_(t,[e,n]){return Math.min(n,Math.max(e,t))}const Hw=C.createContext(null);Hw.displayName="PanelGroupContext";const Dn={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandleId:"data-panel-resize-handle-id"},Gw=10,Uo=C.useLayoutEffect,c_=Tw.useId,HH=typeof c_=="function"?c_:()=>null;let GH=0;function mL(t=null){const e=HH(),n=C.useRef(t||e||null);return n.current===null&&(n.current=""+GH++),t??n.current}function bL({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:a,id:o,maxSize:l,minSize:u,onCollapse:d,onExpand:p,onResize:f,order:g,style:m,tagName:v="div",...b}){const E=C.useContext(Hw);if(E===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:S,expandPanel:_,getPanelSize:w,getPanelStyle:A,groupId:k,isPanelCollapsed:R,reevaluatePanelConstraints:I,registerPanel:O,resizePanel:L,unregisterPanel:F}=E,j=mL(o),H=C.useRef({callbacks:{onCollapse:d,onExpand:p,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:l,minSize:u},id:j,idIsFromProps:o!==void 0,order:g});C.useRef({didLogMissingDefaultSizeWarning:!1}),Uo(()=>{const{callbacks:D,constraints:z}=H.current,B={...z};H.current.id=j,H.current.idIsFromProps=o!==void 0,H.current.order=g,D.onCollapse=d,D.onExpand=p,D.onResize=f,z.collapsedSize=n,z.collapsible=r,z.defaultSize=i,z.maxSize=l,z.minSize=u,(B.collapsedSize!==z.collapsedSize||B.collapsible!==z.collapsible||B.maxSize!==z.maxSize||B.minSize!==z.minSize)&&I(H.current,B)}),Uo(()=>{const D=H.current;return O(D),()=>{F(D)}},[g,j,O,F]),C.useImperativeHandle(a,()=>({collapse:()=>{S(H.current)},expand:D=>{_(H.current,D)},getId(){return j},getSize(){return w(H.current)},isCollapsed(){return R(H.current)},isExpanded(){return!R(H.current)},resize:D=>{L(H.current,D)}}),[S,_,w,R,j,L]);const G=A(H.current,i);return C.createElement(v,{...b,children:t,className:e,id:j,style:{...G,...m},[Dn.groupId]:k,[Dn.panel]:"",[Dn.panelCollapsible]:r||void 0,[Dn.panelId]:j,[Dn.panelSize]:parseFloat(""+G.flexGrow).toFixed(1)})}const qH=C.forwardRef((t,e)=>C.createElement(bL,{...t,forwardedRef:e}));bL.displayName="Panel";qH.displayName="forwardRef(Panel)";function yL(t){return t.type==="keydown"}function vL(t){return t.type.startsWith("pointer")}function EL(t){return t.type.startsWith("mouse")}function VH(t){if(vL(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(EL(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function WH(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}const YH=1,XH=2,KH=4,ZH=8;WH();let QH=new Map;function Rh(t,e){QH.set(t,e)}function JH(){const[t,e]=C.useState(0);return C.useCallback(()=>e(n=>n+1),[])}function Ye(t,e){if(!t)throw console.error(e),Error(e)}function La(t,e,n=Gw){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function ti(t,e,n=Gw){return La(t,e,n)===0}function In(t,e,n){return La(t,e,n)===0}function e3(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const i=t[r],a=e[r];if(!In(i,a,n))return!1}return!0}function Io({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];Ye(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:a,maxSize:o=100,minSize:l=0}=r;if(La(n,l)<0)if(a){const u=(i+l)/2;La(n,u)<0?n=i:n=l}else n=l;return n=Math.min(o,n),n=parseFloat(n.toFixed(Gw)),n}function al({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:a}){if(In(t,0))return e;const o=[...e],[l,u]=r;Ye(l!=null,"Invalid first pivot index"),Ye(u!=null,"Invalid second pivot index");let d=0;if(a==="keyboard"){{const f=t<0?u:l,g=n[f];Ye(g,`Panel constraints not found for index ${f}`);const{collapsedSize:m=0,collapsible:v,minSize:b=0}=g;if(v){const E=e[f];if(Ye(E!=null,`Previous layout not found for panel index ${f}`),In(E,m)){const S=b-E;La(S,Math.abs(t))>0&&(t=t<0?0-S:S)}}}{const f=t<0?l:u,g=n[f];Ye(g,`No panel constraints found for index ${f}`);const{collapsedSize:m=0,collapsible:v,minSize:b=0}=g;if(v){const E=e[f];if(Ye(E!=null,`Previous layout not found for panel index ${f}`),In(E,b)){const S=E-m;La(S,Math.abs(t))>0&&(t=t<0?0-S:S)}}}}{const f=t<0?1:-1;let g=t<0?u:l,m=0;for(;;){const b=e[g];Ye(b!=null,`Previous layout not found for panel index ${g}`);const S=Io({panelConstraints:n,panelIndex:g,size:100})-b;if(m+=S,g+=f,g<0||g>=n.length)break}const v=Math.min(Math.abs(t),Math.abs(m));t=t<0?0-v:v}{let g=t<0?l:u;for(;g>=0&&g<n.length;){const m=Math.abs(t)-Math.abs(d),v=e[g];Ye(v!=null,`Previous layout not found for panel index ${g}`);const b=v-m,E=Io({panelConstraints:n,panelIndex:g,size:b});if(!In(v,E)&&(d+=v-E,o[g]=E,d.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?g--:g++}}if(e3(i,o))return i;{const f=t<0?u:l,g=e[f];Ye(g!=null,`Previous layout not found for panel index ${f}`);const m=g+d,v=Io({panelConstraints:n,panelIndex:f,size:m});if(o[f]=v,!In(v,m)){let b=m-v,S=t<0?u:l;for(;S>=0&&S<n.length;){const _=o[S];Ye(_!=null,`Previous layout not found for panel index ${S}`);const w=_+b,A=Io({panelConstraints:n,panelIndex:S,size:w});if(In(_,A)||(b-=A-_,o[S]=A),In(b,0))break;t>0?S--:S++}}}const p=o.reduce((f,g)=>g+f,0);return In(p,100)?o:i}function t3({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,a=0,o=0;const l=n[0];Ye(l!=null,"No pivot index found"),e.forEach((f,g)=>{const{constraints:m}=f,{maxSize:v=100,minSize:b=0}=m;g===l?(r=b,i=v):(a+=b,o+=v)});const u=Math.min(i,100-a),d=Math.max(r,100-o),p=t[l];return{valueMax:u,valueMin:d,valueNow:p}}function ld(t,e=document){return Array.from(e.querySelectorAll(`[${Dn.resizeHandleId}][data-panel-group-id="${t}"]`))}function n3(t,e,n=document){const i=ld(t,n).findIndex(a=>a.getAttribute(Dn.resizeHandleId)===e);return i??null}function wL(t,e,n){const r=n3(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function r3(t){return t instanceof HTMLElement?!0:typeof t=="object"&&t!==null&&"tagName"in t&&"getAttribute"in t}function SL(t,e=document){if(r3(e)&&e.dataset.panelGroupId==t)return e;const n=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return n||null}function qw(t,e=document){const n=e.querySelector(`[${Dn.resizeHandleId}="${t}"]`);return n||null}function i3(t,e,n,r=document){var i,a,o,l;const u=qw(e,r),d=ld(t,r),p=u?d.indexOf(u):-1,f=(i=(a=n[p])===null||a===void 0?void 0:a.id)!==null&&i!==void 0?i:null,g=(o=(l=n[p+1])===null||l===void 0?void 0:l.id)!==null&&o!==void 0?o:null;return[f,g]}function a3({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:a,setLayout:o}){C.useRef({didWarnAboutMissingResizeHandle:!1}),Uo(()=>{if(!a)return;const l=ld(n,a);for(let u=0;u<i.length-1;u++){const{valueMax:d,valueMin:p,valueNow:f}=t3({layout:r,panelsArray:i,pivotIndices:[u,u+1]}),g=l[u];if(g!=null){const m=i[u];Ye(m,`No panel data found for index "${u}"`),g.setAttribute("aria-controls",m.id),g.setAttribute("aria-valuemax",""+Math.round(d)),g.setAttribute("aria-valuemin",""+Math.round(p)),g.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{l.forEach((u,d)=>{u.removeAttribute("aria-controls"),u.removeAttribute("aria-valuemax"),u.removeAttribute("aria-valuemin"),u.removeAttribute("aria-valuenow")})}},[n,r,i,a]),C.useEffect(()=>{if(!a)return;const l=e.current;Ye(l,"Eager values not found");const{panelDataArray:u}=l,d=SL(n,a);Ye(d!=null,`No group found for id "${n}"`);const p=ld(n,a);Ye(p,`No resize handles found for group id "${n}"`);const f=p.map(g=>{const m=g.getAttribute(Dn.resizeHandleId);Ye(m,"Resize handle element has no handle id attribute");const[v,b]=i3(n,m,u,a);if(v==null||b==null)return()=>{};const E=S=>{if(!S.defaultPrevented)switch(S.key){case"Enter":{S.preventDefault();const _=u.findIndex(w=>w.id===v);if(_>=0){const w=u[_];Ye(w,`No panel data found for index ${_}`);const A=r[_],{collapsedSize:k=0,collapsible:R,minSize:I=0}=w.constraints;if(A!=null&&R){const O=al({delta:In(A,k)?I-k:k-A,initialLayout:r,panelConstraints:u.map(L=>L.constraints),pivotIndices:wL(n,m,a),prevLayout:r,trigger:"keyboard"});r!==O&&o(O)}}break}}};return g.addEventListener("keydown",E),()=>{g.removeEventListener("keydown",E)}});return()=>{f.forEach(g=>g())}},[a,t,e,n,r,i,o])}function u_(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function xL(t,e){const n=t==="horizontal",{x:r,y:i}=VH(e);return n?r:i}function o3(t,e,n,r,i){const a=n==="horizontal",o=qw(e,i);Ye(o,`No resize handle element found for id "${e}"`);const l=o.getAttribute(Dn.groupId);Ye(l,"Resize handle element has no group id attribute");let{initialCursorPosition:u}=r;const d=xL(n,t),p=SL(l,i);Ye(p,`No group element found for id "${l}"`);const f=p.getBoundingClientRect(),g=a?f.width:f.height;return(d-u)/g*100}function s3(t,e,n,r,i,a){if(yL(t)){const o=n==="horizontal";let l=0;t.shiftKey?l=100:i!=null?l=i:l=10;let u=0;switch(t.key){case"ArrowDown":u=o?0:l;break;case"ArrowLeft":u=o?-l:0;break;case"ArrowRight":u=o?l:0;break;case"ArrowUp":u=o?0:-l;break;case"End":u=100;break;case"Home":u=-100;break}return u}else return r==null?0:o3(t,e,n,r,a)}function l3({panelDataArray:t}){const e=Array(t.length),n=t.map(a=>a.constraints);let r=0,i=100;for(let a=0;a<t.length;a++){const o=n[a];Ye(o,`Panel constraints not found for index ${a}`);const{defaultSize:l}=o;l!=null&&(r++,e[a]=l,i-=l)}for(let a=0;a<t.length;a++){const o=n[a];Ye(o,`Panel constraints not found for index ${a}`);const{defaultSize:l}=o;if(l!=null)continue;const u=t.length-r,d=i/u;r++,e[a]=d,i-=d}return e}function _o(t,e,n){e.forEach((r,i)=>{const a=t[i];Ye(a,`Panel data not found for index ${i}`);const{callbacks:o,constraints:l,id:u}=a,{collapsedSize:d=0,collapsible:p}=l,f=n[u];if(f==null||r!==f){n[u]=r;const{onCollapse:g,onExpand:m,onResize:v}=o;v&&v(r,f),p&&(g||m)&&(m&&(f==null||ti(f,d))&&!ti(r,d)&&m(),g&&(f==null||!ti(f,d))&&ti(r,d)&&g())}})}function Au(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function c3({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:i,precision:a=3}){const o=n[i];let l;return o==null?l=t!=null?t.toPrecision(a):"1":r.length===1?l="1":l=o.toPrecision(a),{flexBasis:0,flexGrow:l,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function u3(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function d_(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function AL(t){return`react-resizable-panels:${t}`}function _L(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:i,order:a}=e;return i?r:a?`${a}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function TL(t,e){try{const n=AL(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function d3(t,e,n){var r,i;const a=(r=TL(t,n))!==null&&r!==void 0?r:{},o=_L(e);return(i=a[o])!==null&&i!==void 0?i:null}function p3(t,e,n,r,i){var a;const o=AL(t),l=_L(e),u=(a=TL(t,i))!==null&&a!==void 0?a:{};u[l]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(o,JSON.stringify(u))}catch(d){console.error(d)}}function p_({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((a,o)=>a+o,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(a=>`${a}%`).join(", ")}`);if(!In(r,100)&&n.length>0)for(let a=0;a<e.length;a++){const o=n[a];Ye(o!=null,`No layout data found for index ${a}`);const l=100/r*o;n[a]=l}let i=0;for(let a=0;a<e.length;a++){const o=n[a];Ye(o!=null,`No layout data found for index ${a}`);const l=Io({panelConstraints:e,panelIndex:a,size:o});o!=l&&(i+=o-l,n[a]=l)}if(!In(i,0))for(let a=0;a<e.length;a++){const o=n[a];Ye(o!=null,`No layout data found for index ${a}`);const l=o+i,u=Io({panelConstraints:e,panelIndex:a,size:l});if(o!==u&&(i-=u-o,n[a]=u,In(i,0)))break}return n}const f3=100,ol={getItem:t=>(d_(ol),ol.getItem(t)),setItem:(t,e)=>{d_(ol),ol.setItem(t,e)}},f_={};function CL({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:a=null,onLayout:o=null,keyboardResizeBy:l=null,storage:u=ol,style:d,tagName:p="div",...f}){const g=mL(a),m=C.useRef(null),[v,b]=C.useState(null),[E,S]=C.useState([]),_=JH(),w=C.useRef({}),A=C.useRef(new Map),k=C.useRef(0),R=C.useRef({autoSaveId:t,direction:r,dragState:v,id:g,keyboardResizeBy:l,onLayout:o,storage:u}),I=C.useRef({layout:E,panelDataArray:[],panelDataArrayChanged:!1});C.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),C.useImperativeHandle(i,()=>({getId:()=>R.current.id,getLayout:()=>{const{layout:X}=I.current;return X},setLayout:X=>{const{onLayout:Q}=R.current,{layout:te,panelDataArray:ie}=I.current,W=p_({layout:X,panelConstraints:ie.map(Z=>Z.constraints)});u_(te,W)||(S(W),I.current.layout=W,Q&&Q(W),_o(ie,W,w.current))}}),[]),Uo(()=>{R.current.autoSaveId=t,R.current.direction=r,R.current.dragState=v,R.current.id=g,R.current.onLayout=o,R.current.storage=u}),a3({committedValuesRef:R,eagerValuesRef:I,groupId:g,layout:E,panelDataArray:I.current.panelDataArray,setLayout:S,panelGroupElement:m.current}),C.useEffect(()=>{const{panelDataArray:X}=I.current;if(t){if(E.length===0||E.length!==X.length)return;let Q=f_[t];Q==null&&(Q=u3(p3,f3),f_[t]=Q);const te=[...X],ie=new Map(A.current);Q(t,te,ie,E,u)}},[t,E,u]),C.useEffect(()=>{});const O=C.useCallback(X=>{const{onLayout:Q}=R.current,{layout:te,panelDataArray:ie}=I.current;if(X.constraints.collapsible){const W=ie.map(de=>de.constraints),{collapsedSize:Z=0,panelSize:ne,pivotIndices:se}=ba(ie,X,te);if(Ye(ne!=null,`Panel size not found for panel "${X.id}"`),!ti(ne,Z)){A.current.set(X.id,ne);const ce=Co(ie,X)===ie.length-1?ne-Z:Z-ne,le=al({delta:ce,initialLayout:te,panelConstraints:W,pivotIndices:se,prevLayout:te,trigger:"imperative-api"});Au(te,le)||(S(le),I.current.layout=le,Q&&Q(le),_o(ie,le,w.current))}}},[]),L=C.useCallback((X,Q)=>{const{onLayout:te}=R.current,{layout:ie,panelDataArray:W}=I.current;if(X.constraints.collapsible){const Z=W.map(he=>he.constraints),{collapsedSize:ne=0,panelSize:se=0,minSize:de=0,pivotIndices:ce}=ba(W,X,ie),le=Q??de;if(ti(se,ne)){const he=A.current.get(X.id),Se=he!=null&&he>=le?he:le,Fe=Co(W,X)===W.length-1?se-Se:Se-se,Be=al({delta:Fe,initialLayout:ie,panelConstraints:Z,pivotIndices:ce,prevLayout:ie,trigger:"imperative-api"});Au(ie,Be)||(S(Be),I.current.layout=Be,te&&te(Be),_o(W,Be,w.current))}}},[]),F=C.useCallback(X=>{const{layout:Q,panelDataArray:te}=I.current,{panelSize:ie}=ba(te,X,Q);return Ye(ie!=null,`Panel size not found for panel "${X.id}"`),ie},[]),j=C.useCallback((X,Q)=>{const{panelDataArray:te}=I.current,ie=Co(te,X);return c3({defaultSize:Q,dragState:v,layout:E,panelData:te,panelIndex:ie})},[v,E]),H=C.useCallback(X=>{const{layout:Q,panelDataArray:te}=I.current,{collapsedSize:ie=0,collapsible:W,panelSize:Z}=ba(te,X,Q);return Ye(Z!=null,`Panel size not found for panel "${X.id}"`),W===!0&&ti(Z,ie)},[]),G=C.useCallback(X=>{const{layout:Q,panelDataArray:te}=I.current,{collapsedSize:ie=0,collapsible:W,panelSize:Z}=ba(te,X,Q);return Ye(Z!=null,`Panel size not found for panel "${X.id}"`),!W||La(Z,ie)>0},[]),D=C.useCallback(X=>{const{panelDataArray:Q}=I.current;Q.push(X),Q.sort((te,ie)=>{const W=te.order,Z=ie.order;return W==null&&Z==null?0:W==null?-1:Z==null?1:W-Z}),I.current.panelDataArrayChanged=!0,_()},[_]);Uo(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:X,onLayout:Q,storage:te}=R.current,{layout:ie,panelDataArray:W}=I.current;let Z=null;if(X){const se=d3(X,W,te);se&&(A.current=new Map(Object.entries(se.expandToSizes)),Z=se.layout)}Z==null&&(Z=l3({panelDataArray:W}));const ne=p_({layout:Z,panelConstraints:W.map(se=>se.constraints)});u_(ie,ne)||(S(ne),I.current.layout=ne,Q&&Q(ne),_o(W,ne,w.current))}}),Uo(()=>{const X=I.current;return()=>{X.layout=[]}},[]);const z=C.useCallback(X=>{let Q=!1;const te=m.current;return te&&window.getComputedStyle(te,null).getPropertyValue("direction")==="rtl"&&(Q=!0),function(W){W.preventDefault();const Z=m.current;if(!Z)return()=>null;const{direction:ne,dragState:se,id:de,keyboardResizeBy:ce,onLayout:le}=R.current,{layout:he,panelDataArray:Se}=I.current,{initialLayout:xe}=se??{},Fe=wL(de,X,Z);let Be=s3(W,X,ne,se,ce,Z);const ft=ne==="horizontal";ft&&Q&&(Be=-Be);const Et=Se.map(Xt=>Xt.constraints),nt=al({delta:Be,initialLayout:xe??he,panelConstraints:Et,pivotIndices:Fe,prevLayout:he,trigger:yL(W)?"keyboard":"mouse-or-touch"}),St=!Au(he,nt);(vL(W)||EL(W))&&k.current!=Be&&(k.current=Be,!St&&Be!==0?ft?Rh(X,Be<0?YH:XH):Rh(X,Be<0?KH:ZH):Rh(X,0)),St&&(S(nt),I.current.layout=nt,le&&le(nt),_o(Se,nt,w.current))}},[]),B=C.useCallback((X,Q)=>{const{onLayout:te}=R.current,{layout:ie,panelDataArray:W}=I.current,Z=W.map(he=>he.constraints),{panelSize:ne,pivotIndices:se}=ba(W,X,ie);Ye(ne!=null,`Panel size not found for panel "${X.id}"`);const ce=Co(W,X)===W.length-1?ne-Q:Q-ne,le=al({delta:ce,initialLayout:ie,panelConstraints:Z,pivotIndices:se,prevLayout:ie,trigger:"imperative-api"});Au(ie,le)||(S(le),I.current.layout=le,te&&te(le),_o(W,le,w.current))},[]),U=C.useCallback((X,Q)=>{const{layout:te,panelDataArray:ie}=I.current,{collapsedSize:W=0,collapsible:Z}=Q,{collapsedSize:ne=0,collapsible:se,maxSize:de=100,minSize:ce=0}=X.constraints,{panelSize:le}=ba(ie,X,te);le!=null&&(Z&&se&&ti(le,W)?ti(W,ne)||B(X,ne):le<ce?B(X,ce):le>de&&B(X,de))},[B]),M=C.useCallback((X,Q)=>{const{direction:te}=R.current,{layout:ie}=I.current;if(!m.current)return;const W=qw(X,m.current);Ye(W,`Drag handle element not found for id "${X}"`);const Z=xL(te,Q);b({dragHandleId:X,dragHandleRect:W.getBoundingClientRect(),initialCursorPosition:Z,initialLayout:ie})},[]),q=C.useCallback(()=>{b(null)},[]),Y=C.useCallback(X=>{const{panelDataArray:Q}=I.current,te=Co(Q,X);te>=0&&(Q.splice(te,1),delete w.current[X.id],I.current.panelDataArrayChanged=!0,_())},[_]),$=C.useMemo(()=>({collapsePanel:O,direction:r,dragState:v,expandPanel:L,getPanelSize:F,getPanelStyle:j,groupId:g,isPanelCollapsed:H,isPanelExpanded:G,reevaluatePanelConstraints:U,registerPanel:D,registerResizeHandle:z,resizePanel:B,startDragging:M,stopDragging:q,unregisterPanel:Y,panelGroupElement:m.current}),[O,v,r,L,F,j,g,H,G,U,D,z,B,M,q,Y]),V={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return C.createElement(Hw.Provider,{value:$},C.createElement(p,{...f,children:e,className:n,id:a,ref:m,style:{...V,...d},[Dn.group]:"",[Dn.groupDirection]:r,[Dn.groupId]:g}))}const h3=C.forwardRef((t,e)=>C.createElement(CL,{...t,forwardedRef:e}));CL.displayName="PanelGroup";h3.displayName="forwardRef(PanelGroup)";function Co(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function ba(t,e,n){const r=Co(t,e),a=r===t.length-1?[r-1,r]:[r,r+1],o=n[r];return{...e.constraints,panelSize:o,pivotIndices:a}}const g3="modulepreload",m3=function(t){return"/"+t},h_={},Vw=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let u=function(d){return Promise.all(d.map(p=>Promise.resolve(p).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");i=u(n.map(d=>{if(d=m3(d),d in h_)return;h_[d]=!0;const p=d.endsWith(".css"),f=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${f}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":g3,p||(g.as="script"),g.crossOrigin="",g.href=d,l&&g.setAttribute("nonce",l),document.head.appendChild(g),p)return new Promise((m,v)=>{g.addEventListener("load",m),g.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&a(l.reason);return e().catch(a)})};function Ww(t){var e=t,{className:n,type:r}=e,i=qe(e,["className","type"]);return T.jsx("input",De({type:r,"data-slot":"input",className:Qe("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n)},i))}function b3({boundingBoxes:t,zoom:e,containerWidth:n,containerHeight:r,onBoundingBoxClick:i}){return n===0||r===0?null:T.jsx("svg",{style:{position:"absolute",top:0,left:0,width:n*e,height:r*e,pointerEvents:"none"},viewBox:`0 0 ${n} ${r}`,children:t.map(a=>T.jsxs("g",{children:[T.jsx("rect",{x:a.x,y:a.y,width:a.width,height:a.height,fill:a.color||"rgba(255, 0, 0, 0.2)",stroke:a.color||"red",strokeWidth:2/e,style:{pointerEvents:"auto",cursor:i?"pointer":"default"},onClick:()=>i?.(a)}),a.label&&T.jsx("text",{x:a.x,y:a.y-5,fill:a.color||"red",fontSize:12/e,fontWeight:"bold",children:a.label})]},a.id))})}var y3=({fileName:t,currentPage:e,totalPages:n,scale:r,onPageChange:i,onScaleChange:a,onDownload:o,onRemove:l,onReset:u,onFullscreen:d,className:p})=>{const[f,g]=C.useState(e.toString()),[m,v]=C.useState(!1);C.useEffect(()=>{m||g(e.toString())},[e,m]);const b=L=>{g(L),v(!0)},E=()=>{const L=parseInt(f);L>=1&&L<=n?i(L):g(e.toString()),v(!1)},S=L=>{L.key==="Enter"&&E()},_=()=>{v(!0)},w=()=>{e>1&&i(e-1)},A=()=>{e<n&&i(e+1)},k=()=>{a(Math.min(r+.25,3))},R=()=>{a(Math.max(r-.25,.5))},I=()=>{a(1),u?.()},O=()=>{d()};return T.jsx("div",{className:Qe("sticky top-0 w-full z-50 text-xs",p),children:T.jsxs("div",{className:"bg-white border px-6 flex items-center justify-between gap-3 h-10",children:[T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx(QU,{className:"size-4"}),T.jsx("span",{className:"text-xs text-muted-foreground",children:t}),l&&T.jsx(Tt,{variant:"ghost",size:"sm",onClick:l,className:"size-6 p-0",title:"Remove PDF",children:T.jsx(E$,{className:"size-4"})})]}),T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsxs("div",{className:"flex items-center gap-1",children:[T.jsx(Tt,{variant:"ghost",size:"sm",onClick:w,disabled:e<=1,className:"size-6 p-0",children:T.jsx(BU,{className:"size-4"})}),T.jsxs("div",{className:"flex items-center justify-center gap-0.5",children:[T.jsx(Ww,{type:"number",value:f,onChange:L=>b(L.target.value),onFocus:_,onBlur:E,onKeyDown:S,className:"size-6 px-1 text-center text-xs! rounded-sm [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-inner-spin-button]:m-0 [&::-webkit-outer-spin-button]:m-0 [-moz-appearance:textfield] shadow-none border border-transparent hover:border-gray-300 focus:border-gray-500 focus:outline-none",min:1,max:n}),T.jsx("span",{className:"text-xs text-muted-foreground",children:"/"}),T.jsx("span",{className:"flex items-center text-xs text-muted-foreground h-7 ml-1",children:n})]}),T.jsx(Tt,{variant:"ghost",size:"sm",onClick:A,disabled:e>=n,className:"size-6 p-0",children:T.jsx($U,{className:"size-4"})})]}),T.jsx("div",{className:"w-px h-6 bg-border"}),T.jsxs("div",{className:"flex items-center gap-1",children:[T.jsx(Tt,{variant:"ghost",size:"sm",onClick:R,disabled:r<=.5,className:"size-6 p-0",title:"Zoom Out",children:T.jsx(n$,{className:"size-4"})}),T.jsxs("span",{className:"text-xs text-muted-foreground text-center",children:[Math.round(r*100),"%"]}),T.jsx(Tt,{variant:"ghost",size:"sm",onClick:k,disabled:r>=3,className:"size-6 p-0",title:"Zoom In",children:T.jsx(d$,{className:"size-4"})}),T.jsx(Tt,{variant:"ghost",size:"sm",onClick:I,className:"size-6 p-0",title:"Reset Zoom",children:T.jsx(f$,{className:"size-4"})})]}),o&&T.jsx("div",{className:"w-px h-6 bg-border"}),o&&T.jsx(Tt,{variant:"ghost",size:"sm",onClick:o,className:"size-6 p-0",title:"Download PDF",children:T.jsx(YU,{className:"size-4"})}),T.jsx(Tt,{variant:"ghost",size:"sm",onClick:O,className:"size-6 p-0",title:"Fullscreen",children:T.jsx(e$,{className:"size-4"})})]})]})})},v3=async(t,e)=>{let n=typeof e=="function"?await e(t):e;if(n)return t.scheme==="bearer"?`Bearer ${n}`:t.scheme==="basic"?`Basic ${btoa(n)}`:n},E3={bodySerializer:t=>JSON.stringify(t,(e,n)=>typeof n=="bigint"?n.toString():n)},w3=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},S3=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},x3=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},RL=({allowReserved:t,explode:e,name:n,style:r,value:i})=>{if(!e){let l=(t?i:i.map(u=>encodeURIComponent(u))).join(S3(r));switch(r){case"label":return`.${l}`;case"matrix":return`;${n}=${l}`;case"simple":return l;default:return`${n}=${l}`}}let a=w3(r),o=i.map(l=>r==="label"||r==="simple"?t?l:encodeURIComponent(l):Pd({allowReserved:t,name:n,value:l})).join(a);return r==="label"||r==="matrix"?a+o:o},Pd=({allowReserved:t,name:e,value:n})=>{if(n==null)return"";if(typeof n=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?n:encodeURIComponent(n)}`},kL=({allowReserved:t,explode:e,name:n,style:r,value:i})=>{if(i instanceof Date)return`${n}=${i.toISOString()}`;if(r!=="deepObject"&&!e){let l=[];Object.entries(i).forEach(([d,p])=>{l=[...l,d,t?p:encodeURIComponent(p)]});let u=l.join(",");switch(r){case"form":return`${n}=${u}`;case"label":return`.${u}`;case"matrix":return`;${n}=${u}`;default:return u}}let a=x3(r),o=Object.entries(i).map(([l,u])=>Pd({allowReserved:t,name:r==="deepObject"?`${n}[${l}]`:l,value:u})).join(a);return r==="label"||r==="matrix"?a+o:o},A3=/\{[^{}]+\}/g,_3=({path:t,url:e})=>{let n=e,r=e.match(A3);if(r)for(let i of r){let a=!1,o=i.substring(1,i.length-1),l="simple";o.endsWith("*")&&(a=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),l="label"):o.startsWith(";")&&(o=o.substring(1),l="matrix");let u=t[o];if(u==null)continue;if(Array.isArray(u)){n=n.replace(i,RL({explode:a,name:o,style:l,value:u}));continue}if(typeof u=="object"){n=n.replace(i,kL({explode:a,name:o,style:l,value:u}));continue}if(l==="matrix"){n=n.replace(i,`;${Pd({name:o,value:u})}`);continue}let d=encodeURIComponent(l==="label"?`.${u}`:u);n=n.replace(i,d)}return n},NL=({allowReserved:t,array:e,object:n}={})=>r=>{let i=[];if(r&&typeof r=="object")for(let a in r){let o=r[a];if(o!=null)if(Array.isArray(o)){let l=RL({allowReserved:t,explode:!0,name:a,style:"form",value:o,...e});l&&i.push(l)}else if(typeof o=="object"){let l=kL({allowReserved:t,explode:!0,name:a,style:"deepObject",value:o,...n});l&&i.push(l)}else{let l=Pd({allowReserved:t,name:a,value:o});l&&i.push(l)}}return i.join("&")},T3=t=>{if(!t)return"stream";let e=t.split(";")[0]?.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(n=>e.startsWith(n)))return"blob";if(e.startsWith("text/"))return"text"}},C3=async({security:t,...e})=>{for(let n of t){let r=await v3(n,e.auth);if(!r)continue;let i=n.name??"Authorization";switch(n.in){case"query":e.query||(e.query={}),e.query[i]=r;break;case"cookie":e.headers.append("Cookie",`${i}=${r}`);break;case"header":default:e.headers.set(i,r);break}return}},g_=t=>R3({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:NL(t.querySerializer),url:t.url}),R3=({baseUrl:t,path:e,query:n,querySerializer:r,url:i})=>{let a=i.startsWith("/")?i:`/${i}`,o=(t??"")+a;e&&(o=_3({path:e,url:o}));let l=n?r(n):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(o+=`?${l}`),o},m_=(t,e)=>{let n={...t,...e};return n.baseUrl?.endsWith("/")&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=IL(t.headers,e.headers),n},IL=(...t)=>{let e=new Headers;for(let n of t){if(!n||typeof n!="object")continue;let r=n instanceof Headers?n.entries():Object.entries(n);for(let[i,a]of r)if(a===null)e.delete(i);else if(Array.isArray(a))for(let o of a)e.append(i,o);else a!==void 0&&e.set(i,typeof a=="object"?JSON.stringify(a):a)}return e},kh=class{constructor(){this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(e){return typeof e=="number"?this._fns[e]?e:-1:this._fns.indexOf(e)}exists(e){let n=this.getInterceptorIndex(e);return!!this._fns[n]}eject(e){let n=this.getInterceptorIndex(e);this._fns[n]&&(this._fns[n]=null)}update(e,n){let r=this.getInterceptorIndex(e);return this._fns[r]?(this._fns[r]=n,e):!1}use(e){return this._fns=[...this._fns,e],this._fns.length-1}},k3=()=>({error:new kh,request:new kh,response:new kh}),N3=NL({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),I3={"Content-Type":"application/json"},OL=(t={})=>({...E3,headers:I3,parseAs:"auto",querySerializer:N3,...t}),O3=(t={})=>{let e=m_(OL(),t),n=()=>({...e}),r=o=>(e=m_(e,o),n()),i=k3(),a=async o=>{let l={...e,...o,fetch:o.fetch??e.fetch??globalThis.fetch,headers:IL(e.headers,o.headers)};l.security&&await C3({...l,security:l.security}),l.body&&l.bodySerializer&&(l.body=l.bodySerializer(l.body)),(l.body===void 0||l.body==="")&&l.headers.delete("Content-Type");let u=g_(l),d={redirect:"follow",...l},p=new Request(u,d);for(let E of i.request._fns)E&&(p=await E(p,l));let f=l.fetch,g=await f(p);for(let E of i.response._fns)E&&(g=await E(g,p,l));let m={request:p,response:g};if(g.ok){if(g.status===204||g.headers.get("Content-Length")==="0")return{data:{},...m};let E=(l.parseAs==="auto"?T3(g.headers.get("Content-Type")):l.parseAs)??"json";if(E==="stream")return{data:g.body,...m};let S=await g[E]();return E==="json"&&(l.responseValidator&&await l.responseValidator(S),l.responseTransformer&&(S=await l.responseTransformer(S))),{data:S,...m}}let v=await g.text();try{v=JSON.parse(v)}catch{}let b=v;for(let E of i.error._fns)E&&(b=await E(v,g,p,l));if(b=b||{},l.throwOnError)throw b;return{error:b,...m}};return{buildUrl:g_,connect:o=>a({...o,method:"CONNECT"}),delete:o=>a({...o,method:"DELETE"}),get:o=>a({...o,method:"GET"}),getConfig:n,head:o=>a({...o,method:"HEAD"}),interceptors:i,options:o=>a({...o,method:"OPTIONS"}),patch:o=>a({...o,method:"PATCH"}),post:o=>a({...o,method:"POST"}),put:o=>a({...o,method:"PUT"}),request:a,setConfig:r,trace:o=>a({...o,method:"TRACE"})}};const L3=O3(OL());L3.setConfig({baseUrl:"https://api.cloud.llamaindex.ai/",headers:{"X-SDK-Name":"llamaindex-ts"}});C.memo(({url:t,highlight:e,fileName:n,toolbarClassName:r,onRemove:i,maxPages:a,maxPagesWarning:o})=>{if(typeof window>"u")return null;const l=C.lazy(()=>Vw(()=>Promise.resolve().then(()=>_re),void 0).then(u=>({default:u.PdfPreviewImpl})));return T.jsx(C.Suspense,{fallback:T.jsxs("div",{className:"flex items-center justify-center p-8",children:[T.jsx(qU,{className:"h-6 w-6 animate-pulse text-gray-400"}),T.jsx("span",{className:"ml-2 text-gray-600",children:"Loading PDF viewer..."})]}),children:T.jsx(l,{url:t,highlight:e,fileName:n,toolbarClassName:r,onRemove:i,maxPages:a,maxPagesWarning:o})})});var Fd="Popover",[LL,Ore]=ss(Fd,[Rd]),zl=Rd(),[D3,Yi]=LL(Fd),DL=t=>{const{__scopePopover:e,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=t,l=zl(e),u=C.useRef(null),[d,p]=C.useState(!1),[f,g]=bl({prop:r,defaultProp:i??!1,onChange:a,caller:Fd});return T.jsx(MO,{...l,children:T.jsx(D3,{scope:e,contentId:Ta(),triggerRef:u,open:f,onOpenChange:g,onOpenToggle:C.useCallback(()=>g(m=>!m),[g]),hasCustomAnchor:d,onCustomAnchorAdd:C.useCallback(()=>p(!0),[]),onCustomAnchorRemove:C.useCallback(()=>p(!1),[]),modal:o,children:n})})};DL.displayName=Fd;var ML="PopoverAnchor",M3=C.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=Yi(ML,n),a=zl(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:l}=i;return C.useEffect(()=>(o(),()=>l()),[o,l]),T.jsx(Fw,{...a,...r,ref:e})});M3.displayName=ML;var PL="PopoverTrigger",FL=C.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=Yi(PL,n),a=zl(n),o=st(e,i.triggerRef),l=T.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":jL(i.open),...r,ref:o,onClick:Ke(t.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:T.jsx(Fw,{asChild:!0,...a,children:l})});FL.displayName=PL;var Yw="PopoverPortal",[P3,F3]=LL(Yw,{forceMount:void 0}),BL=t=>{const{__scopePopover:e,forceMount:n,children:r,container:i}=t,a=Yi(Yw,e);return T.jsx(P3,{scope:e,forceMount:n,children:T.jsx(ls,{present:n||a.open,children:T.jsx(kd,{asChild:!0,container:i,children:r})})})};BL.displayName=Yw;var Wo="PopoverContent",UL=C.forwardRef((t,e)=>{const n=F3(Wo,t.__scopePopover),{forceMount:r=n.forceMount,...i}=t,a=Yi(Wo,t.__scopePopover);return T.jsx(ls,{present:r||a.open,children:a.modal?T.jsx(U3,{...i,ref:e}):T.jsx($3,{...i,ref:e})})});UL.displayName=Wo;var B3=ka("PopoverContent.RemoveScroll"),U3=C.forwardRef((t,e)=>{const n=Yi(Wo,t.__scopePopover),r=C.useRef(null),i=st(e,r),a=C.useRef(!1);return C.useEffect(()=>{const o=r.current;if(o)return Uw(o)},[]),T.jsx(Ld,{as:B3,allowPinchZoom:!0,children:T.jsx($L,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ke(t.onCloseAutoFocus,o=>{o.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Ke(t.onPointerDownOutside,o=>{const l=o.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Ke(t.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),$3=C.forwardRef((t,e)=>{const n=Yi(Wo,t.__scopePopover),r=C.useRef(!1),i=C.useRef(!1);return T.jsx($L,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{t.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:a=>{t.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=a.target;n.triggerRef.current?.contains(o)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),$L=C.forwardRef((t,e)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:p,...f}=t,g=Yi(Wo,n),m=zl(n);return Bw(),T.jsx(Id,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:T.jsx(Nd,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:p,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:T.jsx(PO,{"data-state":jL(g.open),role:"dialog",id:g.contentId,...m,...f,ref:e,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),zL="PopoverClose",z3=C.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=Yi(zL,n);return T.jsx(Ze.button,{type:"button",...r,ref:e,onClick:Ke(t.onClick,()=>i.onOpenChange(!1))})});z3.displayName=zL;var j3="PopoverArrow",H3=C.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=zl(n);return T.jsx(FO,{...i,...r,ref:e})});H3.displayName=j3;function jL(t){return t?"open":"closed"}var G3=DL,q3=FL,V3=BL,W3=UL;function Y3(t){var e=qe(t,[]);return T.jsx(G3,De({"data-slot":"popover"},e))}function X3(t){var e=qe(t,[]);return T.jsx(q3,De({"data-slot":"popover-trigger"},e))}function K3(t){var e=t,{className:n,align:r="center",sideOffset:i=4}=e,a=qe(e,["className","align","sideOffset"]);return T.jsx(V3,{children:T.jsx(W3,De({"data-slot":"popover-content",align:r,sideOffset:i,className:Qe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",n)},a))})}var Z3=[" ","Enter","ArrowUp","ArrowDown"],Q3=[" ","Enter"],Da="Select",[Bd,Ud,J3]=gU(Da),[ds,Lre]=ss(Da,[J3,Rd]),$d=Rd(),[eG,Xi]=ds(Da),[tG,nG]=ds(Da),HL=t=>{const{__scopeSelect:e,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:l,onValueChange:u,dir:d,name:p,autoComplete:f,disabled:g,required:m,form:v}=t,b=$d(e),[E,S]=C.useState(null),[_,w]=C.useState(null),[A,k]=C.useState(!1),R=RU(d),[I,O]=bl({prop:r,defaultProp:i??!1,onChange:a,caller:Da}),[L,F]=bl({prop:o,defaultProp:l,onChange:u,caller:Da}),j=C.useRef(null),H=E?v||!!E.closest("form"):!0,[G,D]=C.useState(new Set),z=Array.from(G).map(B=>B.props.value).join(";");return T.jsx(MO,{...b,children:T.jsxs(eG,{required:m,scope:e,trigger:E,onTriggerChange:S,valueNode:_,onValueNodeChange:w,valueNodeHasChildren:A,onValueNodeHasChildrenChange:k,contentId:Ta(),value:L,onValueChange:F,open:I,onOpenChange:O,dir:R,triggerPointerDownPosRef:j,disabled:g,children:[T.jsx(Bd.Provider,{scope:e,children:T.jsx(tG,{scope:t.__scopeSelect,onNativeOptionAdd:C.useCallback(B=>{D(U=>new Set(U).add(B))},[]),onNativeOptionRemove:C.useCallback(B=>{D(U=>{const M=new Set(U);return M.delete(B),M})},[]),children:n})}),H?T.jsxs(dD,{"aria-hidden":!0,required:m,tabIndex:-1,name:p,autoComplete:f,value:L,onChange:B=>F(B.target.value),disabled:g,form:v,children:[L===void 0?T.jsx("option",{value:""}):null,Array.from(G)]},z):null]})})};HL.displayName=Da;var GL="SelectTrigger",qL=C.forwardRef((t,e)=>{const{__scopeSelect:n,disabled:r=!1,...i}=t,a=$d(n),o=Xi(GL,n),l=o.disabled||r,u=st(e,o.onTriggerChange),d=Ud(n),p=C.useRef("touch"),[f,g,m]=fD(b=>{const E=d().filter(w=>!w.disabled),S=E.find(w=>w.value===o.value),_=hD(E,b,S);_!==void 0&&o.onValueChange(_.value)}),v=b=>{l||(o.onOpenChange(!0),m()),b&&(o.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return T.jsx(Fw,{asChild:!0,...a,children:T.jsx(Ze.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":pD(o.value)?"":void 0,...i,ref:u,onClick:Ke(i.onClick,b=>{b.currentTarget.focus(),p.current!=="mouse"&&v(b)}),onPointerDown:Ke(i.onPointerDown,b=>{p.current=b.pointerType;const E=b.target;E.hasPointerCapture(b.pointerId)&&E.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(v(b),b.preventDefault())}),onKeyDown:Ke(i.onKeyDown,b=>{const E=f.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&g(b.key),!(E&&b.key===" ")&&Z3.includes(b.key)&&(v(),b.preventDefault())})})})});qL.displayName=GL;var VL="SelectValue",WL=C.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:i,children:a,placeholder:o="",...l}=t,u=Xi(VL,n),{onValueNodeHasChildrenChange:d}=u,p=a!==void 0,f=st(e,u.onValueNodeChange);return on(()=>{d(p)},[d,p]),T.jsx(Ze.span,{...l,ref:f,style:{pointerEvents:"none"},children:pD(u.value)?T.jsx(T.Fragment,{children:o}):a})});WL.displayName=VL;var rG="SelectIcon",YL=C.forwardRef((t,e)=>{const{__scopeSelect:n,children:r,...i}=t;return T.jsx(Ze.span,{"aria-hidden":!0,...i,ref:e,children:r||"▼"})});YL.displayName=rG;var iG="SelectPortal",XL=t=>T.jsx(kd,{asChild:!0,...t});XL.displayName=iG;var Ma="SelectContent",KL=C.forwardRef((t,e)=>{const n=Xi(Ma,t.__scopeSelect),[r,i]=C.useState();if(on(()=>{i(new DocumentFragment)},[]),!n.open){const a=r;return a?Ul.createPortal(T.jsx(ZL,{scope:t.__scopeSelect,children:T.jsx(Bd.Slot,{scope:t.__scopeSelect,children:T.jsx("div",{children:t.children})})}),a):null}return T.jsx(QL,{...t,ref:e})});KL.displayName=Ma;var ar=10,[ZL,Ki]=ds(Ma),aG="SelectContentImpl",oG=ka("SelectContent.RemoveScroll"),QL=C.forwardRef((t,e)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:l,sideOffset:u,align:d,alignOffset:p,arrowPadding:f,collisionBoundary:g,collisionPadding:m,sticky:v,hideWhenDetached:b,avoidCollisions:E,...S}=t,_=Xi(Ma,n),[w,A]=C.useState(null),[k,R]=C.useState(null),I=st(e,W=>A(W)),[O,L]=C.useState(null),[F,j]=C.useState(null),H=Ud(n),[G,D]=C.useState(!1),z=C.useRef(!1);C.useEffect(()=>{if(w)return Uw(w)},[w]),Bw();const B=C.useCallback(W=>{const[Z,...ne]=H().map(ce=>ce.ref.current),[se]=ne.slice(-1),de=document.activeElement;for(const ce of W)if(ce===de||(ce?.scrollIntoView({block:"nearest"}),ce===Z&&k&&(k.scrollTop=0),ce===se&&k&&(k.scrollTop=k.scrollHeight),ce?.focus(),document.activeElement!==de))return},[H,k]),U=C.useCallback(()=>B([O,w]),[B,O,w]);C.useEffect(()=>{G&&U()},[G,U]);const{onOpenChange:M,triggerPointerDownPosRef:q}=_;C.useEffect(()=>{if(w){let W={x:0,y:0};const Z=se=>{W={x:Math.abs(Math.round(se.pageX)-(q.current?.x??0)),y:Math.abs(Math.round(se.pageY)-(q.current?.y??0))}},ne=se=>{W.x<=10&&W.y<=10?se.preventDefault():w.contains(se.target)||M(!1),document.removeEventListener("pointermove",Z),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",Z),document.addEventListener("pointerup",ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",ne,{capture:!0})}}},[w,M,q]),C.useEffect(()=>{const W=()=>M(!1);return window.addEventListener("blur",W),window.addEventListener("resize",W),()=>{window.removeEventListener("blur",W),window.removeEventListener("resize",W)}},[M]);const[Y,$]=fD(W=>{const Z=H().filter(de=>!de.disabled),ne=Z.find(de=>de.ref.current===document.activeElement),se=hD(Z,W,ne);se&&setTimeout(()=>se.ref.current.focus())}),V=C.useCallback((W,Z,ne)=>{const se=!z.current&&!ne;(_.value!==void 0&&_.value===Z||se)&&(L(W),se&&(z.current=!0))},[_.value]),X=C.useCallback(()=>w?.focus(),[w]),Q=C.useCallback((W,Z,ne)=>{const se=!z.current&&!ne;(_.value!==void 0&&_.value===Z||se)&&j(W)},[_.value]),te=r==="popper"?qE:JL,ie=te===qE?{side:l,sideOffset:u,align:d,alignOffset:p,arrowPadding:f,collisionBoundary:g,collisionPadding:m,sticky:v,hideWhenDetached:b,avoidCollisions:E}:{};return T.jsx(ZL,{scope:n,content:w,viewport:k,onViewportChange:R,itemRefCallback:V,selectedItem:O,onItemLeave:X,itemTextRefCallback:Q,focusSelectedItem:U,selectedItemText:F,position:r,isPositioned:G,searchRef:Y,children:T.jsx(Ld,{as:oG,allowPinchZoom:!0,children:T.jsx(Id,{asChild:!0,trapped:_.open,onMountAutoFocus:W=>{W.preventDefault()},onUnmountAutoFocus:Ke(i,W=>{_.trigger?.focus({preventScroll:!0}),W.preventDefault()}),children:T.jsx(Nd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:W=>W.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:T.jsx(te,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:W=>W.preventDefault(),...S,...ie,onPlaced:()=>D(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:Ke(S.onKeyDown,W=>{const Z=W.ctrlKey||W.altKey||W.metaKey;if(W.key==="Tab"&&W.preventDefault(),!Z&&W.key.length===1&&$(W.key),["ArrowUp","ArrowDown","Home","End"].includes(W.key)){let se=H().filter(de=>!de.disabled).map(de=>de.ref.current);if(["ArrowUp","End"].includes(W.key)&&(se=se.slice().reverse()),["ArrowUp","ArrowDown"].includes(W.key)){const de=W.target,ce=se.indexOf(de);se=se.slice(ce+1)}setTimeout(()=>B(se)),W.preventDefault()}})})})})})})});QL.displayName=aG;var sG="SelectItemAlignedPosition",JL=C.forwardRef((t,e)=>{const{__scopeSelect:n,onPlaced:r,...i}=t,a=Xi(Ma,n),o=Ki(Ma,n),[l,u]=C.useState(null),[d,p]=C.useState(null),f=st(e,I=>p(I)),g=Ud(n),m=C.useRef(!1),v=C.useRef(!0),{viewport:b,selectedItem:E,selectedItemText:S,focusSelectedItem:_}=o,w=C.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&b&&E&&S){const I=a.trigger.getBoundingClientRect(),O=d.getBoundingClientRect(),L=a.valueNode.getBoundingClientRect(),F=S.getBoundingClientRect();if(a.dir!=="rtl"){const de=F.left-O.left,ce=L.left-de,le=I.left-ce,he=I.width+le,Se=Math.max(he,O.width),xe=window.innerWidth-ar,Fe=l_(ce,[ar,Math.max(ar,xe-Se)]);l.style.minWidth=he+"px",l.style.left=Fe+"px"}else{const de=O.right-F.right,ce=window.innerWidth-L.right-de,le=window.innerWidth-I.right-ce,he=I.width+le,Se=Math.max(he,O.width),xe=window.innerWidth-ar,Fe=l_(ce,[ar,Math.max(ar,xe-Se)]);l.style.minWidth=he+"px",l.style.right=Fe+"px"}const j=g(),H=window.innerHeight-ar*2,G=b.scrollHeight,D=window.getComputedStyle(d),z=parseInt(D.borderTopWidth,10),B=parseInt(D.paddingTop,10),U=parseInt(D.borderBottomWidth,10),M=parseInt(D.paddingBottom,10),q=z+B+G+M+U,Y=Math.min(E.offsetHeight*5,q),$=window.getComputedStyle(b),V=parseInt($.paddingTop,10),X=parseInt($.paddingBottom,10),Q=I.top+I.height/2-ar,te=H-Q,ie=E.offsetHeight/2,W=E.offsetTop+ie,Z=z+B+W,ne=q-Z;if(Z<=Q){const de=j.length>0&&E===j[j.length-1].ref.current;l.style.bottom="0px";const ce=d.clientHeight-b.offsetTop-b.offsetHeight,le=Math.max(te,ie+(de?X:0)+ce+U),he=Z+le;l.style.height=he+"px"}else{const de=j.length>0&&E===j[0].ref.current;l.style.top="0px";const le=Math.max(Q,z+b.offsetTop+(de?V:0)+ie)+ne;l.style.height=le+"px",b.scrollTop=Z-Q+b.offsetTop}l.style.margin=`${ar}px 0`,l.style.minHeight=Y+"px",l.style.maxHeight=H+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[g,a.trigger,a.valueNode,l,d,b,E,S,a.dir,r]);on(()=>w(),[w]);const[A,k]=C.useState();on(()=>{d&&k(window.getComputedStyle(d).zIndex)},[d]);const R=C.useCallback(I=>{I&&v.current===!0&&(w(),_?.(),v.current=!1)},[w,_]);return T.jsx(cG,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:R,children:T.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:A},children:T.jsx(Ze.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});JL.displayName=sG;var lG="SelectPopperPosition",qE=C.forwardRef((t,e)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=ar,...a}=t,o=$d(n);return T.jsx(PO,{...o,...a,ref:e,align:r,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});qE.displayName=lG;var[cG,Xw]=ds(Ma,{}),VE="SelectViewport",eD=C.forwardRef((t,e)=>{const{__scopeSelect:n,nonce:r,...i}=t,a=Ki(VE,n),o=Xw(VE,n),l=st(e,a.onViewportChange),u=C.useRef(0);return T.jsxs(T.Fragment,{children:[T.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),T.jsx(Bd.Slot,{scope:n,children:T.jsx(Ze.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Ke(i.onScroll,d=>{const p=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=o;if(g?.current&&f){const m=Math.abs(u.current-p.scrollTop);if(m>0){const v=window.innerHeight-ar*2,b=parseFloat(f.style.minHeight),E=parseFloat(f.style.height),S=Math.max(b,E);if(S<v){const _=S+m,w=Math.min(v,_),A=_-w;f.style.height=w+"px",f.style.bottom==="0px"&&(p.scrollTop=A>0?A:0,f.style.justifyContent="flex-end")}}}u.current=p.scrollTop})})})]})});eD.displayName=VE;var tD="SelectGroup",[uG,dG]=ds(tD),pG=C.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=Ta();return T.jsx(uG,{scope:n,id:i,children:T.jsx(Ze.div,{role:"group","aria-labelledby":i,...r,ref:e})})});pG.displayName=tD;var nD="SelectLabel",fG=C.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=dG(nD,n);return T.jsx(Ze.div,{id:i.id,...r,ref:e})});fG.displayName=nD;var cd="SelectItem",[hG,rD]=ds(cd),iD=C.forwardRef((t,e)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=t,l=Xi(cd,n),u=Ki(cd,n),d=l.value===r,[p,f]=C.useState(a??""),[g,m]=C.useState(!1),v=st(e,_=>u.itemRefCallback?.(_,r,i)),b=Ta(),E=C.useRef("touch"),S=()=>{i||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return T.jsx(hG,{scope:n,value:r,disabled:i,textId:b,isSelected:d,onItemTextChange:C.useCallback(_=>{f(w=>w||(_?.textContent??"").trim())},[]),children:T.jsx(Bd.ItemSlot,{scope:n,value:r,disabled:i,textValue:p,children:T.jsx(Ze.div,{role:"option","aria-labelledby":b,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:v,onFocus:Ke(o.onFocus,()=>m(!0)),onBlur:Ke(o.onBlur,()=>m(!1)),onClick:Ke(o.onClick,()=>{E.current!=="mouse"&&S()}),onPointerUp:Ke(o.onPointerUp,()=>{E.current==="mouse"&&S()}),onPointerDown:Ke(o.onPointerDown,_=>{E.current=_.pointerType}),onPointerMove:Ke(o.onPointerMove,_=>{E.current=_.pointerType,i?u.onItemLeave?.():E.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ke(o.onPointerLeave,_=>{_.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:Ke(o.onKeyDown,_=>{u.searchRef?.current!==""&&_.key===" "||(Q3.includes(_.key)&&S(),_.key===" "&&_.preventDefault())})})})})});iD.displayName=cd;var sl="SelectItemText",aD=C.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:i,...a}=t,o=Xi(sl,n),l=Ki(sl,n),u=rD(sl,n),d=nG(sl,n),[p,f]=C.useState(null),g=st(e,S=>f(S),u.onItemTextChange,S=>l.itemTextRefCallback?.(S,u.value,u.disabled)),m=p?.textContent,v=C.useMemo(()=>T.jsx("option",{value:u.value,disabled:u.disabled,children:m},u.value),[u.disabled,u.value,m]),{onNativeOptionAdd:b,onNativeOptionRemove:E}=d;return on(()=>(b(v),()=>E(v)),[b,E,v]),T.jsxs(T.Fragment,{children:[T.jsx(Ze.span,{id:u.textId,...a,ref:g}),u.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Ul.createPortal(a.children,o.valueNode):null]})});aD.displayName=sl;var oD="SelectItemIndicator",sD=C.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return rD(oD,n).isSelected?T.jsx(Ze.span,{"aria-hidden":!0,...r,ref:e}):null});sD.displayName=oD;var WE="SelectScrollUpButton",lD=C.forwardRef((t,e)=>{const n=Ki(WE,t.__scopeSelect),r=Xw(WE,t.__scopeSelect),[i,a]=C.useState(!1),o=st(e,r.onScrollButtonChange);return on(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=u.scrollTop>0;a(d)};const u=n.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?T.jsx(uD,{...t,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:u}=n;l&&u&&(l.scrollTop=l.scrollTop-u.offsetHeight)}}):null});lD.displayName=WE;var YE="SelectScrollDownButton",cD=C.forwardRef((t,e)=>{const n=Ki(YE,t.__scopeSelect),r=Xw(YE,t.__scopeSelect),[i,a]=C.useState(!1),o=st(e,r.onScrollButtonChange);return on(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=u.scrollHeight-u.clientHeight,p=Math.ceil(u.scrollTop)<d;a(p)};const u=n.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?T.jsx(uD,{...t,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:u}=n;l&&u&&(l.scrollTop=l.scrollTop+u.offsetHeight)}}):null});cD.displayName=YE;var uD=C.forwardRef((t,e)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=t,a=Ki("SelectScrollButton",n),o=C.useRef(null),l=Ud(n),u=C.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return C.useEffect(()=>()=>u(),[u]),on(()=>{l().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),T.jsx(Ze.div,{"aria-hidden":!0,...i,ref:e,style:{flexShrink:0,...i.style},onPointerDown:Ke(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:Ke(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:Ke(i.onPointerLeave,()=>{u()})})}),gG="SelectSeparator",mG=C.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return T.jsx(Ze.div,{"aria-hidden":!0,...r,ref:e})});mG.displayName=gG;var XE="SelectArrow",bG=C.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=$d(n),a=Xi(XE,n),o=Ki(XE,n);return a.open&&o.position==="popper"?T.jsx(FO,{...i,...r,ref:e}):null});bG.displayName=XE;var yG="SelectBubbleInput",dD=C.forwardRef(({__scopeSelect:t,value:e,...n},r)=>{const i=C.useRef(null),a=st(r,i),o=dO(e);return C.useEffect(()=>{const l=i.current;if(!l)return;const u=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(u,"value").set;if(o!==e&&p){const f=new Event("change",{bubbles:!0});p.call(l,e),l.dispatchEvent(f)}},[o,e]),T.jsx(Ze.select,{...n,style:{...gL,...n.style},ref:a,defaultValue:e})});dD.displayName=yG;function pD(t){return t===""||t===void 0}function fD(t){const e=Na(t),n=C.useRef(""),r=C.useRef(0),i=C.useCallback(o=>{const l=n.current+o;e(l),function u(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>u(""),1e3))}(l)},[e]),a=C.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function hD(t,e,n){const i=e.length>1&&Array.from(e).every(d=>d===e[0])?e[0]:e,a=n?t.indexOf(n):-1;let o=vG(t,Math.max(a,0));i.length===1&&(o=o.filter(d=>d!==n));const u=o.find(d=>d.textValue.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}function vG(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var EG=HL,wG=qL,SG=WL,xG=YL,AG=XL,_G=KL,TG=eD,CG=iD,RG=aD,kG=sD,NG=lD,IG=cD;function Kw(t){var e=qe(t,[]);return T.jsx(EG,De({"data-slot":"select"},e))}function Zw(t){var e=qe(t,[]);return T.jsx(SG,De({"data-slot":"select-value"},e))}function Qw(t){var e=t,{className:n,size:r="default",children:i}=e,a=qe(e,["className","size","children"]);return T.jsxs(wG,Gt(De({"data-slot":"select-trigger","data-size":r,className:Qe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n)},a),{children:[i,T.jsx(xG,{asChild:!0,children:T.jsx(uO,{className:"size-4 opacity-50"})})]}))}function Jw(t){var e=t,{className:n,children:r,position:i="popper"}=e,a=qe(e,["className","children","position"]);return T.jsx(AG,{children:T.jsxs(_G,Gt(De({"data-slot":"select-content",className:Qe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:i},a),{children:[T.jsx(OG,{}),T.jsx(TG,{className:Qe("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:r}),T.jsx(LG,{})]}))})}function ud(t){var e=t,{className:n,children:r}=e,i=qe(e,["className","children"]);return T.jsxs(CG,Gt(De({"data-slot":"select-item",className:Qe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n)},i),{children:[T.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:T.jsx(kG,{children:T.jsx(MU,{className:"size-4"})})}),T.jsx(RG,{children:r})]}))}function OG(t){var e=t,{className:n}=e,r=qe(e,["className"]);return T.jsx(NG,Gt(De({"data-slot":"select-scroll-up-button",className:Qe("flex cursor-default items-center justify-center py-1",n)},r),{children:T.jsx(jU,{className:"size-4"})}))}function LG(t){var e=t,{className:n}=e,r=qe(e,["className"]);return T.jsx(IG,Gt(De({"data-slot":"select-scroll-down-button",className:Qe("flex cursor-default items-center justify-center py-1",n)},r),{children:T.jsx(uO,{className:"size-4"})}))}var dd=C.forwardRef((t,e)=>{var n=t,{className:r}=n,i=qe(n,["className"]);return T.jsx("textarea",De({ref:e,"data-slot":"textarea",className:Qe("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r)},i))});dd.displayName="Textarea";const b_=t=>{let e;const n=new Set,r=(d,p)=>{const f=typeof d=="function"?d(e):d;if(!Object.is(f,e)){const g=e;e=p??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(m=>m(e,g))}},i=()=>e,l={setState:r,getState:i,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d))},u=e=t(r,i,l);return l},DG=t=>t?b_(t):b_,MG=t=>t;function PG(t,e=MG){const n=Me.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return Me.useDebugValue(n),n}const y_=t=>{const e=DG(t),n=r=>PG(e,r);return Object.assign(n,e),n},FG=t=>t?y_(t):y_;var gD=C.forwardRef((t,e)=>{var n=t,{className:r}=n,i=qe(n,["className"]);return T.jsx("div",{className:"relative w-full overflow-auto",children:T.jsx("table",De({ref:e,className:Qe("w-full caption-bottom text-sm",r)},i))})});gD.displayName="Table";var mD=C.forwardRef((t,e)=>{var n=t,{className:r}=n,i=qe(n,["className"]);return T.jsx("thead",De({ref:e,className:Qe("[&_tr]:border-b",r)},i))});mD.displayName="TableHeader";var bD=C.forwardRef((t,e)=>{var n=t,{className:r}=n,i=qe(n,["className"]);return T.jsx("tbody",De({ref:e,className:Qe("[&_tr:last-child]:border-0",r)},i))});bD.displayName="TableBody";var BG=C.forwardRef((t,e)=>{var n=t,{className:r}=n,i=qe(n,["className"]);return T.jsx("tfoot",De({ref:e,className:Qe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r)},i))});BG.displayName="TableFooter";var KE=C.forwardRef((t,e)=>{var n=t,{className:r}=n,i=qe(n,["className"]);return T.jsx("tr",De({ref:e,className:Qe("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r)},i))});KE.displayName="TableRow";var ZE=C.forwardRef((t,e)=>{var n=t,{className:r}=n,i=qe(n,["className"]);return T.jsx("th",De({ref:e,className:Qe("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",r)},i))});ZE.displayName="TableHead";var QE=C.forwardRef((t,e)=>{var n=t,{className:r}=n,i=qe(n,["className"]);return T.jsx("td",De({ref:e,className:Qe("p-4 align-middle [&:has([role=checkbox])]:pr-0",r)},i))});QE.displayName="TableCell";var UG=C.forwardRef((t,e)=>{var n=t,{className:r}=n,i=qe(n,["className"]);return T.jsx("caption",De({ref:e,className:Qe("mt-4 text-sm text-muted-foreground",r)},i))});UG.displayName="TableCaption";var $G={bodySerializer:t=>JSON.stringify(t,(e,n)=>typeof n=="bigint"?n.toString():n)},zG=({onRequest:t,onSseError:e,onSseEvent:n,responseTransformer:r,responseValidator:i,sseDefaultRetryDelay:a,sseMaxRetryAttempts:o,sseMaxRetryDelay:l,sseSleepFn:u,url:d,...p})=>{let f;const g=u??(b=>new Promise(E=>setTimeout(E,b)));return{stream:async function*(){let b=a??3e3,E=0;const S=p.signal??new AbortController().signal;for(;!S.aborted;){E++;const _=p.headers instanceof Headers?p.headers:new Headers(p.headers);f!==void 0&&_.set("Last-Event-ID",f);try{const w={redirect:"follow",...p,body:p.serializedBody,headers:_,signal:S};let A=new Request(d,w);t&&(A=await t(d,w));const R=await(p.fetch??globalThis.fetch)(A);if(!R.ok)throw new Error(`SSE failed: ${R.status} ${R.statusText}`);if(!R.body)throw new Error("No body in SSE response");const I=R.body.pipeThrough(new TextDecoderStream).getReader();let O="";const L=()=>{try{I.cancel()}catch{}};S.addEventListener("abort",L);try{for(;;){const{done:F,value:j}=await I.read();if(F)break;O+=j;const H=O.split(`
245
-
246
- `);O=H.pop()??"";for(const G of H){const D=G.split(`
247
- `),z=[];let B;for(const q of D)if(q.startsWith("data:"))z.push(q.replace(/^data:\s*/,""));else if(q.startsWith("event:"))B=q.replace(/^event:\s*/,"");else if(q.startsWith("id:"))f=q.replace(/^id:\s*/,"");else if(q.startsWith("retry:")){const Y=Number.parseInt(q.replace(/^retry:\s*/,""),10);Number.isNaN(Y)||(b=Y)}let U,M=!1;if(z.length){const q=z.join(`
248
- `);try{U=JSON.parse(q),M=!0}catch{U=q}}M&&(i&&await i(U),r&&(U=await r(U))),n?.({data:U,event:B,id:f,retry:b}),z.length&&(yield U)}}}finally{S.removeEventListener("abort",L),I.releaseLock()}break}catch(w){if(e?.(w),o!==void 0&&E>=o)break;const A=Math.min(b*2**(E-1),l??3e4);await g(A)}}}()}},jG=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},HG=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},GG=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},yD=({allowReserved:t,explode:e,name:n,style:r,value:i})=>{if(!e){const l=(t?i:i.map(u=>encodeURIComponent(u))).join(HG(r));switch(r){case"label":return`.${l}`;case"matrix":return`;${n}=${l}`;case"simple":return l;default:return`${n}=${l}`}}const a=jG(r),o=i.map(l=>r==="label"||r==="simple"?t?l:encodeURIComponent(l):zd({allowReserved:t,name:n,value:l})).join(a);return r==="label"||r==="matrix"?a+o:o},zd=({allowReserved:t,name:e,value:n})=>{if(n==null)return"";if(typeof n=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?n:encodeURIComponent(n)}`},vD=({allowReserved:t,explode:e,name:n,style:r,value:i,valueOnly:a})=>{if(i instanceof Date)return a?i.toISOString():`${n}=${i.toISOString()}`;if(r!=="deepObject"&&!e){let u=[];Object.entries(i).forEach(([p,f])=>{u=[...u,p,t?f:encodeURIComponent(f)]});const d=u.join(",");switch(r){case"form":return`${n}=${d}`;case"label":return`.${d}`;case"matrix":return`;${n}=${d}`;default:return d}}const o=GG(r),l=Object.entries(i).map(([u,d])=>zd({allowReserved:t,name:r==="deepObject"?`${n}[${u}]`:u,value:d})).join(o);return r==="label"||r==="matrix"?o+l:l},qG=/\{[^{}]+\}/g,VG=({path:t,url:e})=>{let n=e;const r=e.match(qG);if(r)for(const i of r){let a=!1,o=i.substring(1,i.length-1),l="simple";o.endsWith("*")&&(a=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),l="label"):o.startsWith(";")&&(o=o.substring(1),l="matrix");const u=t[o];if(u==null)continue;if(Array.isArray(u)){n=n.replace(i,yD({explode:a,name:o,style:l,value:u}));continue}if(typeof u=="object"){n=n.replace(i,vD({explode:a,name:o,style:l,value:u,valueOnly:!0}));continue}if(l==="matrix"){n=n.replace(i,`;${zd({name:o,value:u})}`);continue}const d=encodeURIComponent(l==="label"?`.${u}`:u);n=n.replace(i,d)}return n},WG=({baseUrl:t,path:e,query:n,querySerializer:r,url:i})=>{const a=i.startsWith("/")?i:`/${i}`;let o=(t??"")+a;e&&(o=VG({path:e,url:o}));let l=n?r(n):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(o+=`?${l}`),o};function YG(t){const e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var XG=async(t,e)=>{const n=typeof e=="function"?await e(t):e;if(n)return t.scheme==="bearer"?`Bearer ${n}`:t.scheme==="basic"?`Basic ${btoa(n)}`:n},ED=({allowReserved:t,array:e,object:n}={})=>i=>{const a=[];if(i&&typeof i=="object")for(const o in i){const l=i[o];if(l!=null)if(Array.isArray(l)){const u=yD({allowReserved:t,explode:!0,name:o,style:"form",value:l,...e});u&&a.push(u)}else if(typeof l=="object"){const u=vD({allowReserved:t,explode:!0,name:o,style:"deepObject",value:l,...n});u&&a.push(u)}else{const u=zd({allowReserved:t,name:o,value:l});u&&a.push(u)}}return a.join("&")},KG=t=>{if(!t)return"stream";const e=t.split(";")[0]?.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(n=>e.startsWith(n)))return"blob";if(e.startsWith("text/"))return"text"}},ZG=(t,e)=>e?!!(t.headers.has(e)||t.query?.[e]||t.headers.get("Cookie")?.includes(`${e}=`)):!1,QG=async({security:t,...e})=>{for(const n of t){if(ZG(e,n.name))continue;const r=await XG(n,e.auth);if(!r)continue;const i=n.name??"Authorization";switch(n.in){case"query":e.query||(e.query={}),e.query[i]=r;break;case"cookie":e.headers.append("Cookie",`${i}=${r}`);break;case"header":default:e.headers.set(i,r);break}}},v_=t=>WG({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:ED(t.querySerializer),url:t.url}),E_=(t,e)=>{const n={...t,...e};return n.baseUrl?.endsWith("/")&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=wD(t.headers,e.headers),n},JG=t=>{const e=[];return t.forEach((n,r)=>{e.push([r,n])}),e},wD=(...t)=>{const e=new Headers;for(const n of t){if(!n)continue;const r=n instanceof Headers?JG(n):Object.entries(n);for(const[i,a]of r)if(a===null)e.delete(i);else if(Array.isArray(a))for(const o of a)e.append(i,o);else a!==void 0&&e.set(i,typeof a=="object"?JSON.stringify(a):a)}return e},Nh=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(t){const e=this.getInterceptorIndex(t);this.fns[e]&&(this.fns[e]=null)}exists(t){const e=this.getInterceptorIndex(t);return!!this.fns[e]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,e){const n=this.getInterceptorIndex(t);return this.fns[n]?(this.fns[n]=e,t):!1}use(t){return this.fns.push(t),this.fns.length-1}},eq=()=>({error:new Nh,request:new Nh,response:new Nh}),tq=ED({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),nq={"Content-Type":"application/json"},SD=(t={})=>({...$G,headers:nq,parseAs:"auto",querySerializer:tq,...t}),xD=(t={})=>{let e=E_(SD(),t);const n=()=>({...e}),r=d=>(e=E_(e,d),n()),i=eq(),a=async d=>{const p={...e,...d,fetch:d.fetch??e.fetch??globalThis.fetch,headers:wD(e.headers,d.headers),serializedBody:void 0};p.security&&await QG({...p,security:p.security}),p.requestValidator&&await p.requestValidator(p),p.body!==void 0&&p.bodySerializer&&(p.serializedBody=p.bodySerializer(p.body)),(p.body===void 0||p.serializedBody==="")&&p.headers.delete("Content-Type");const f=v_(p);return{opts:p,url:f}},o=async d=>{const{opts:p,url:f}=await a(d),g={redirect:"follow",...p,body:YG(p)};let m=new Request(f,g);for(const k of i.request.fns)k&&(m=await k(m,p));const v=p.fetch;let b=await v(m);for(const k of i.response.fns)k&&(b=await k(b,m,p));const E={request:m,response:b};if(b.ok){const k=(p.parseAs==="auto"?KG(b.headers.get("Content-Type")):p.parseAs)??"json";if(b.status===204||b.headers.get("Content-Length")==="0"){let I;switch(k){case"arrayBuffer":case"blob":case"text":I=await b[k]();break;case"formData":I=new FormData;break;case"stream":I=b.body;break;case"json":default:I={};break}return p.responseStyle==="data"?I:{data:I,...E}}let R;switch(k){case"arrayBuffer":case"blob":case"formData":case"json":case"text":R=await b[k]();break;case"stream":return p.responseStyle==="data"?b.body:{data:b.body,...E}}return k==="json"&&(p.responseValidator&&await p.responseValidator(R),p.responseTransformer&&(R=await p.responseTransformer(R))),p.responseStyle==="data"?R:{data:R,...E}}const S=await b.text();let _;try{_=JSON.parse(S)}catch{}const w=_??S;let A=w;for(const k of i.error.fns)k&&(A=await k(w,b,m,p));if(A=A||{},p.throwOnError)throw A;return p.responseStyle==="data"?void 0:{error:A,...E}},l=d=>p=>o({...p,method:d}),u=d=>async p=>{const{opts:f,url:g}=await a(p);return zG({...f,body:f.body,headers:f.headers,method:d,onRequest:async(m,v)=>{let b=new Request(m,v);for(const E of i.request.fns)E&&(b=await E(b,f));return b},url:g})};return{buildUrl:v_,connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),getConfig:n,head:l("HEAD"),interceptors:i,options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),request:o,setConfig:r,sse:{connect:u("CONNECT"),delete:u("DELETE"),get:u("GET"),head:u("HEAD"),options:u("OPTIONS"),patch:u("PATCH"),post:u("POST"),put:u("PUT"),trace:u("TRACE")},trace:l("TRACE")}},ci=xD(SD()),rq=t=>(t?.client??ci).get({url:"/workflows",...t}),iq=t=>(t.client??ci).post({url:"/workflows/{name}/run-nowait",...t,headers:{"Content-Type":"application/json",...t.headers}}),aq=t=>(t.client??ci).get({url:"/workflows/{name}/schema",...t}),AD=t=>(t.client??ci).get({url:"/results/{handler_id}",...t}),_D=t=>(t.client??ci).post({url:"/events/{handler_id}",...t,headers:{"Content-Type":"application/json",...t.headers}}),oq=t=>(t?.client??ci).get({url:"/health",...t}),sq=t=>(t?.client??ci).get({url:"/handlers",...t}),lq=t=>(t.client??ci).get({url:"/workflows/{name}/representation",...t}),cq=t=>(t.client??ci).get({url:"/workflows/{name}/events",...t});/**
249
- * @llamaindex/workflows-client
250
- *
251
- * TypeScript client for LlamaIndex Workflows server.
252
- *
253
- * @license MIT
254
- */var uq=async(t,e)=>{let n=typeof e=="function"?await e(t):e;if(n)return t.scheme==="bearer"?`Bearer ${n}`:t.scheme==="basic"?`Basic ${btoa(n)}`:n},dq={bodySerializer:t=>JSON.stringify(t,(e,n)=>typeof n=="bigint"?n.toString():n)},pq=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},fq=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},hq=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},TD=({allowReserved:t,explode:e,name:n,style:r,value:i})=>{if(!e){let l=(t?i:i.map(u=>encodeURIComponent(u))).join(fq(r));switch(r){case"label":return`.${l}`;case"matrix":return`;${n}=${l}`;case"simple":return l;default:return`${n}=${l}`}}let a=pq(r),o=i.map(l=>r==="label"||r==="simple"?t?l:encodeURIComponent(l):jd({allowReserved:t,name:n,value:l})).join(a);return r==="label"||r==="matrix"?a+o:o},jd=({allowReserved:t,name:e,value:n})=>{if(n==null)return"";if(typeof n=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?n:encodeURIComponent(n)}`},CD=({allowReserved:t,explode:e,name:n,style:r,value:i})=>{if(i instanceof Date)return`${n}=${i.toISOString()}`;if(r!=="deepObject"&&!e){let l=[];Object.entries(i).forEach(([d,p])=>{l=[...l,d,t?p:encodeURIComponent(p)]});let u=l.join(",");switch(r){case"form":return`${n}=${u}`;case"label":return`.${u}`;case"matrix":return`;${n}=${u}`;default:return u}}let a=hq(r),o=Object.entries(i).map(([l,u])=>jd({allowReserved:t,name:r==="deepObject"?`${n}[${l}]`:l,value:u})).join(a);return r==="label"||r==="matrix"?a+o:o},gq=/\{[^{}]+\}/g,mq=({path:t,url:e})=>{let n=e,r=e.match(gq);if(r)for(let i of r){let a=!1,o=i.substring(1,i.length-1),l="simple";o.endsWith("*")&&(a=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),l="label"):o.startsWith(";")&&(o=o.substring(1),l="matrix");let u=t[o];if(u==null)continue;if(Array.isArray(u)){n=n.replace(i,TD({explode:a,name:o,style:l,value:u}));continue}if(typeof u=="object"){n=n.replace(i,CD({explode:a,name:o,style:l,value:u}));continue}if(l==="matrix"){n=n.replace(i,`;${jd({name:o,value:u})}`);continue}let d=encodeURIComponent(l==="label"?`.${u}`:u);n=n.replace(i,d)}return n},RD=({allowReserved:t,array:e,object:n}={})=>r=>{let i=[];if(r&&typeof r=="object")for(let a in r){let o=r[a];if(o!=null)if(Array.isArray(o)){let l=TD({allowReserved:t,explode:!0,name:a,style:"form",value:o,...e});l&&i.push(l)}else if(typeof o=="object"){let l=CD({allowReserved:t,explode:!0,name:a,style:"deepObject",value:o,...n});l&&i.push(l)}else{let l=jd({allowReserved:t,name:a,value:o});l&&i.push(l)}}return i.join("&")},bq=t=>{if(!t)return"stream";let e=t.split(";")[0]?.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(n=>e.startsWith(n)))return"blob";if(e.startsWith("text/"))return"text"}},yq=async({security:t,...e})=>{for(let n of t){let r=await uq(n,e.auth);if(!r)continue;let i=n.name??"Authorization";switch(n.in){case"query":e.query||(e.query={}),e.query[i]=r;break;case"cookie":e.headers.append("Cookie",`${i}=${r}`);break;case"header":default:e.headers.set(i,r);break}return}},w_=t=>vq({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:RD(t.querySerializer),url:t.url}),vq=({baseUrl:t,path:e,query:n,querySerializer:r,url:i})=>{let a=i.startsWith("/")?i:`/${i}`,o=(t??"")+a;e&&(o=mq({path:e,url:o}));let l=n?r(n):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(o+=`?${l}`),o},S_=(t,e)=>{let n={...t,...e};return n.baseUrl?.endsWith("/")&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=kD(t.headers,e.headers),n},kD=(...t)=>{let e=new Headers;for(let n of t){if(!n||typeof n!="object")continue;let r=n instanceof Headers?n.entries():Object.entries(n);for(let[i,a]of r)if(a===null)e.delete(i);else if(Array.isArray(a))for(let o of a)e.append(i,o);else a!==void 0&&e.set(i,typeof a=="object"?JSON.stringify(a):a)}return e},Ih=class{constructor(){this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(t){return typeof t=="number"?this._fns[t]?t:-1:this._fns.indexOf(t)}exists(t){let e=this.getInterceptorIndex(t);return!!this._fns[e]}eject(t){let e=this.getInterceptorIndex(t);this._fns[e]&&(this._fns[e]=null)}update(t,e){let n=this.getInterceptorIndex(t);return this._fns[n]?(this._fns[n]=e,t):!1}use(t){return this._fns=[...this._fns,t],this._fns.length-1}},Eq=()=>({error:new Ih,request:new Ih,response:new Ih}),wq=RD({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Sq={"Content-Type":"application/json"},ND=(t={})=>({...dq,headers:Sq,parseAs:"auto",querySerializer:wq,...t}),xq=(t={})=>{let e=S_(ND(),t),n=()=>({...e}),r=o=>(e=S_(e,o),n()),i=Eq(),a=async o=>{let l={...e,...o,fetch:o.fetch??e.fetch??globalThis.fetch,headers:kD(e.headers,o.headers)};l.security&&await yq({...l,security:l.security}),l.body&&l.bodySerializer&&(l.body=l.bodySerializer(l.body)),(l.body===void 0||l.body==="")&&l.headers.delete("Content-Type");let u=w_(l),d={redirect:"follow",...l},p=new Request(u,d);for(let E of i.request._fns)E&&(p=await E(p,l));let f=l.fetch,g=await f(p);for(let E of i.response._fns)E&&(g=await E(g,p,l));let m={request:p,response:g};if(g.ok){if(g.status===204||g.headers.get("Content-Length")==="0")return{data:{},...m};let E=(l.parseAs==="auto"?bq(g.headers.get("Content-Type")):l.parseAs)??"json";if(E==="stream")return{data:g.body,...m};let S=await g[E]();return E==="json"&&(l.responseValidator&&await l.responseValidator(S),l.responseTransformer&&(S=await l.responseTransformer(S))),{data:S,...m}}let v=await g.text();try{v=JSON.parse(v)}catch{}let b=v;for(let E of i.error._fns)E&&(b=await E(v,g,p,l));if(b=b||{},l.throwOnError)throw b;return{error:b,...m}};return{buildUrl:w_,connect:o=>a({...o,method:"CONNECT"}),delete:o=>a({...o,method:"DELETE"}),get:o=>a({...o,method:"GET"}),getConfig:n,head:o=>a({...o,method:"HEAD"}),interceptors:i,options:o=>a({...o,method:"OPTIONS"}),patch:o=>a({...o,method:"PATCH"}),post:o=>a({...o,method:"POST"}),put:o=>a({...o,method:"PUT"}),request:a,setConfig:r,trace:o=>a({...o,method:"TRACE"})}};xq(ND());var ID=C.createContext(null);function Aq({children:t,clients:e,project:n}){const r=C.useMemo(()=>({clients:e,project:n}),[e,n]);return T.jsx(ID.Provider,{value:r,children:t})}function _q(){const t=C.useContext(ID);if(!t)throw new Error("useApiContext must be used within an ApiProvider. Please wrap your component tree with <ApiProvider>.");return t}function ja(){const{clients:t}=_q();if(!t.workflowsClient)throw new Error("No workflows client configured. Please ensure workflowsClient is configured in ApiProvider.");return t.workflowsClient}var Hd="Switch",[Tq,Dre]=ss(Hd),[Cq,Rq]=Tq(Hd),OD=C.forwardRef((t,e)=>{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:l,value:u="on",onCheckedChange:d,form:p,...f}=t,[g,m]=C.useState(null),v=st(e,w=>m(w)),b=C.useRef(!1),E=g?p||!!g.closest("form"):!0,[S,_]=bl({prop:i,defaultProp:a??!1,onChange:d,caller:Hd});return T.jsxs(Cq,{scope:n,checked:S,disabled:l,children:[T.jsx(Ze.button,{type:"button",role:"switch","aria-checked":S,"aria-required":o,"data-state":PD(S),"data-disabled":l?"":void 0,disabled:l,value:u,...f,ref:v,onClick:Ke(t.onClick,w=>{_(A=>!A),E&&(b.current=w.isPropagationStopped(),b.current||w.stopPropagation())})}),E&&T.jsx(MD,{control:g,bubbles:!b.current,name:r,value:u,checked:S,required:o,disabled:l,form:p,style:{transform:"translateX(-100%)"}})]})});OD.displayName=Hd;var LD="SwitchThumb",DD=C.forwardRef((t,e)=>{const{__scopeSwitch:n,...r}=t,i=Rq(LD,n);return T.jsx(Ze.span,{"data-state":PD(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:e})});DD.displayName=LD;var kq="SwitchBubbleInput",MD=C.forwardRef(({__scopeSwitch:t,control:e,checked:n,bubbles:r=!0,...i},a)=>{const o=C.useRef(null),l=st(o,a),u=dO(n),d=pO(e);return C.useEffect(()=>{const p=o.current;if(!p)return;const f=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(f,"checked").set;if(u!==n&&m){const v=new Event("click",{bubbles:r});m.call(p,n),p.dispatchEvent(v)}},[u,n,r]),T.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:l,style:{...i.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});MD.displayName=kq;function PD(t){return t?"checked":"unchecked"}var Nq=OD,Iq=DD;function Oq(t){var e=t,{className:n}=e,r=qe(e,["className"]);return T.jsx(Nq,Gt(De({"data-slot":"switch",className:Qe("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n)},r),{children:T.jsx(Iq,{"data-slot":"switch-thumb",className:Qe("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})}))}var Lq=class{constructor(){this.activeStreams=new Map}subscribe(t,e,n,r){const i=this.activeStreams.get(t);return i?this.subscribeToExistingStream(t,i,e,r):this.createNewStream(t,e,n,r)}getStreamEvents(t){const e=this.activeStreams.get(t);return e?[...e.events]:[]}getStreamConfig(t){const e=this.activeStreams.get(t);return e?{includeInternal:e.includeInternal}:{includeInternal:!1}}isStreamActive(t){return this.activeStreams.has(t)}getSubscriberCount(t){const e=this.activeStreams.get(t);return e?e.subscribers.size:0}closeStream(t){const e=this.activeStreams.get(t);e&&(e.controller.abort(),this.cleanupStream(t))}closeAllStreams(){for(const t of this.activeStreams.keys())this.closeStream(t)}subscribeToExistingStream(t,e,n,r){var i,a,o,l,u;e.subscribers.add(n);try{(i=n.onStart)==null||i.call(n);for(const f of e.events)(a=n.onData)==null||a.call(n,f);e.isCompleted&&(e.error?(o=n.onError)==null||o.call(n,e.error):(l=n.onFinish)==null||l.call(n,e.events),(u=n.onComplete)==null||u.call(n))}catch(f){console.error("Error sending historical events to subscriber:",f)}const d=()=>{this.unsubscribe(t,n)};r&&(r.aborted?this.unsubscribe(t,n):r.addEventListener("abort",d));const p=()=>{r&&r.removeEventListener("abort",d),this.unsubscribe(t,n)};return{promise:e.promise,unsubscribe:p}}createNewStream(t,e,n,r,i){const a=new AbortController,o=new Set([e]),l=[],u={controller:a,promise:Promise.resolve([]),subscribers:o,events:l,isCompleted:!1,error:null,includeInternal:i??!1};this.activeStreams.set(t,u);const d=()=>{this.unsubscribe(t,e)};if(r){if(r.aborted)return this.unsubscribe(t,e),{promise:Promise.resolve([]),unsubscribe:()=>{}};r.addEventListener("abort",d)}const p={onStart:()=>{u.subscribers.forEach(m=>{var v;try{(v=m.onStart)==null||v.call(m)}catch(b){console.error("Error in subscriber onStart:",b)}})},onData:m=>{l.push(m),u.subscribers.forEach(v=>{var b;try{(b=v.onData)==null||b.call(v,m)}catch(E){console.error("Error in subscriber onData:",E)}})},onError:m=>{u.error=m,u.isCompleted=!0,u.subscribers.forEach(v=>{var b,E;try{(b=v.onError)==null||b.call(v,m),(E=v.onComplete)==null||E.call(v)}catch(S){console.error("Error in subscriber onError:",S)}}),this.cleanupStream(t)},onFinish:m=>{u.isCompleted=!0,u.subscribers.forEach(v=>{var b,E;try{(b=v.onFinish)==null||b.call(v,m),(E=v.onComplete)==null||E.call(v)}catch(S){console.error("Error in subscriber onFinish:",S)}}),this.cleanupStream(t)}},f=this.executeStream(n,p,a.signal);return u.promise=f,{promise:f,unsubscribe:()=>{r&&r.removeEventListener("abort",d),this.unsubscribe(t,e)}}}async executeStream(t,e,n){var r;try{return await t(e,n)}catch(i){const a=i instanceof Error?i:new Error(String(i));throw(r=e.onError)==null||r.call(e,a),a}}unsubscribe(t,e){const n=this.activeStreams.get(t);if(n&&(n.subscribers.delete(e),n.subscribers.size===0)){try{n.controller.abort()}catch{}this.cleanupStream(t)}}cleanupStream(t){this.activeStreams.delete(t)}},Ro=new Lq;async function Dq(t){var e,n;return((n=(e=(await sq({client:t.client})).data)==null?void 0:e.handlers)!=null?n:[]).filter(a=>a.status==="running").map(a=>{var o;return{handler_id:(o=a.handler_id)!=null?o:"",status:a.status}})}async function Mq(t){var e;const n=await iq({client:t.client,path:{name:t.workflowName},body:{start_event:t.eventData}});if(!n.data)throw new Error("Handler creation failed");return{handler_id:(e=n.data.handler_id)!=null?e:"",status:"running",workflowName:t.workflowName}}function Pq(t,e){const n=`handler:${t.handlerId}`,r=async(l,u)=>{var d,p,f;(d=l.onStart)==null||d.call(l);const g=[],m=S=>{var _;const w={type:S.qualified_name,data:S.value};g.push(w);try{(_=l.onData)==null||_.call(l,w)}catch(k){console.error("Error in subscriber onData:",k)}const A=[w].find(k=>k.type==="workflow.events.StopEvent");return A?(e?.onStopEvent&&e.onStopEvent(A),!0):!1},v=((p=t.client.getConfig().baseUrl)!=null?p:"").replace(/\/$/,""),b=new URLSearchParams;b.set("sse","true"),t.includeInternal&&b.set("include_internal","true");const E=new EventSource(`${v}/events/${encodeURIComponent(t.handlerId)}?${b.toString()}`,{withCredentials:!0});return await Uq(E,m,u,()=>AD({client:t.client,path:{handler_id:t.handlerId}}).then(S=>{var _,w;return((w=(_=S.data)==null?void 0:_.result)!=null?w:null)!==null})),(f=l.onFinish)==null||f.call(l,g),g},i={onStart:e?.onStart,onData:e?.onData,onError:e?.onError,onFinish:e?.onFinish},{promise:a,unsubscribe:o}=Ro.subscribe(n,i,r,t.signal);return{promise:a,unsubscribe:o}}async function Fq(t){const e=Bq(t.event);return(await _D({client:t.client,path:{handler_id:t.handlerId},body:{event:JSON.stringify(e),step:t.step}})).data}function Bq(t){var e;return{__is_pydantic:!0,value:(e=t.data)!=null?e:{},qualified_name:t.type}}function Uq(t,e,n,r){let i=()=>{};const a=()=>{t.close(),i()},o=new Promise(f=>{i=f});n.addEventListener("abort",a);const l=f=>{try{e(JSON.parse(f.data))&&(t.close(),i())}catch(g){console.error("Unexpected error in processUntilClosed callback:",g)}};t.addEventListener("message",l);let u=null,d=0;const p=f=>{t.readyState==EventSource.CLOSED&&i();const g=Date.now();!u&&r&&g-d>1e4&&(d=g,u=r()),u?.then(m=>{m?(t.close(),i()):u=null})};return t.addEventListener("error",p),o.then(()=>{t.removeEventListener("message",l),t.removeEventListener("error",p),n.removeEventListener("abort",a)})}var $q=t=>FG()((e,n)=>({handlers:{},events:{},clearCompleted:()=>e({handlers:Object.fromEntries(Object.entries(n().handlers).filter(([,r])=>r.status!=="complete"&&r.status!=="failed"))}),createHandler:async(r,i)=>{var a;const o=await Mq({client:t,eventData:i,workflowName:r}),l={handler_id:(a=o.handler_id)!=null?a:"",status:o.status,workflowName:o.workflowName};e(u=>({handlers:Gt(De({},u.handlers),{[l.handler_id]:l}),events:Gt(De({},u.events),{[l.handler_id]:[]})}));try{n().subscribe(l.handler_id)}catch(u){console.error(`Failed to auto-subscribe to handler ${l.handler_id}:`,u)}return l},clearEvents:r=>e(i=>({events:Gt(De({},i.events),{[r]:[]})})),sync:async()=>{try{const r=await Dq({client:t}),i=Object.fromEntries(r.map(a=>[a.handler_id,a]));e({handlers:i}),r.forEach(a=>{a.status==="running"&&!n().isSubscribed(a.handler_id)&&n().subscribe(a.handler_id)})}catch(r){console.error("Failed to sync with server:",r)}},subscribe:(r,i)=>{var a;const o=n().handlers[r];if(!o){console.warn(`Handler ${r} not found for subscription`);return}const l=Ro.getStreamConfig(_u(r)),u=!!i?.includeInternal&&!l.includeInternal;if(Ro.isStreamActive(_u(r))&&!u)return;u&&Ro.closeStream(_u(r));const d={onData:f=>{e(g=>({events:Gt(De({},g.events),{[r]:[...g.events[r]||[],f]})}))},onFinish:()=>{e(f=>({handlers:Gt(De({},f.handlers),{[r]:Gt(De({},f.handlers[r]),{status:"complete",updatedAt:new Date})})}))},onError:f=>{f.name==="AbortError"||f.name==="TypeError"&&f.message.includes("network error")||e(g=>({handlers:Gt(De({},g.handlers),{[r]:Gt(De({},g.handlers[r]),{status:"failed",updatedAt:new Date})})}))}},{promise:p}=Pq({client:t,handlerId:o.handler_id,includeInternal:(a=i?.includeInternal)!=null?a:!1},d);p.catch(f=>{f.name==="AbortError"||f.name==="TypeError"&&f.message.includes("network error")||e(g=>({handlers:Gt(De({},g.handlers),{[r]:Gt(De({},g.handlers[r]),{status:"failed",updatedAt:new Date})})}))})},unsubscribe:r=>{if(!n().handlers[r])return;const a=`handler:${r}`;Ro.closeStream(a)},isSubscribed:r=>n().handlers[r]?Ro.isStreamActive(_u(r)):!1}));function _u(t){return`handler:${t}`}var Oh=null;function Ui(t){const e=ja(),n=C.useMemo(()=>(Oh||(Oh=$q(e)),Oh),[e]);return t?n(t):n()}function zq(){const[t,e]=C.useState(!1),[n,r]=C.useState(null),i=Ui(o=>o.createHandler);return{runWorkflow:C.useCallback(async(o,l)=>{e(!0),r(null);try{const u=await i(o,l);return e(!1),u}catch(u){const d=u instanceof Error?u:new Error(String(u));throw r(d),e(!1),d}},[i]),isCreating:t,error:n}}function jq(t,e){return t.filter(n=>n.workflowName?n.workflowName===e:n.status==="running")}function Hq(t){const[e,n]=C.useState(!0),[r,i]=C.useState(null),a=Ui(),o=a.handlers,l=a.clearCompleted,u=a.sync;return C.useEffect(()=>{async function p(){n(!0),i(null);try{await u()}catch(f){i(f instanceof Error?f.message:"Failed to sync with server")}finally{n(!1)}}p()},[u]),{handlers:C.useMemo(()=>jq(Object.values(o),t),[o,t]),clearCompleted:l,loading:e,error:r}}function Gq(t,e=!0,{includeInternal:n=!1}={}){const r=ja(),i=Ui(v=>v.handlers[t]||null),a=Ui(v=>v.events),o=Ui(v=>v.subscribe),l=Ui(v=>v.unsubscribe),u=Ui(v=>v.isSubscribed),d=Ui(v=>v.clearEvents),p=C.useMemo(()=>a[t]||[],[a,t]);C.useEffect(()=>{if(!(!i||!e)&&i.status==="running")return o(t,{includeInternal:n}),()=>{i.status!=="running"&&l(t)}},[t,i,e,o,l,n]);const f=C.useCallback(()=>{l(t)},[t,l]),g=C.useCallback(()=>{d(t)},[t,d]),m=C.useCallback(async v=>{await Fq({client:r,handlerId:t,event:v})},[t,r]);return{handler:i,events:p,isStreaming:u(t),stopStreaming:f,clearEvents:g,sendEvent:m}}var qq=fO("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Vq(t){var e=t,{className:n,variant:r,asChild:i=!1}=e,a=qe(e,["className","variant","asChild"]);const o=i?lO:"span";return T.jsx(o,De({"data-slot":"badge",className:Qe(qq({variant:r}),n)},a))}function Wq(t){if(!t)return!1;const e=t.toLowerCase();return e.includes("object")||e.includes("array")||e.includes("map")||e.includes("dict")||/\w+\s*\[.*\]/.test(t)}function Yq(t){const e=t.toLowerCase(),n=e.includes("array")||e.includes("list")||/\w+\s*\[.*\]/.test(t),r=e.includes("object")||e.includes("map")||e.includes("dict");return n?{hint:'Expected: JSON array (e.g., ["a", "b"])',placeholder:'["item1", "item2"]'}:r?{hint:'Expected: JSON object (e.g., {"key": "value"})',placeholder:'{"key": "value"}'}:{hint:"Expected: valid JSON (object or array)",placeholder:"Enter value as JSON"}}function FD({schema:t,values:e,onChange:n,onErrorsChange:r,className:i}){const a=t?.properties||{},o=new Set(t?.required||[]),[l,u]=C.useState({}),[d,p]=C.useState({});C.useEffect(()=>{r?.(d)},[d,r]),C.useEffect(()=>{const m={...l};for(const[v,b]of Object.entries(a))if(Wq(b.type)&&m[v]===void 0){const E=e[v];m[v]=E!==void 0?JSON.stringify(E,null,2):""}u(m)},[a,e]);const f=(m,v)=>{n({...e,[m]:v})},g=C.useMemo(()=>Object.entries(a),[a]);return g.length===0?null:T.jsx("div",{className:i,children:g.map(([m,v])=>{const b=`field-${m}`,E=v.title||m,S=v.type||"string",_=v.description||"";if(S==="string")return T.jsxs("div",{className:"space-y-2",children:[T.jsxs("label",{htmlFor:b,className:"text-sm font-medium",children:[E,o.has(m)&&T.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),T.jsx(dd,{id:b,value:e[m]||"",onChange:I=>f(m,I.target.value),placeholder:_||`Enter ${E.toLowerCase()}`,rows:3}),_&&T.jsx("p",{className:"text-xs text-muted-foreground",children:_})]},m);if(S==="number"||S==="integer")return T.jsxs("div",{className:"space-y-2",children:[T.jsxs("label",{htmlFor:b,className:"text-sm font-medium",children:[E,o.has(m)&&T.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),T.jsx(Ww,{id:b,type:"number",value:e[m]??"",onChange:I=>{const O=I.target.value;if(O===""){f(m,null);return}const L=S==="integer"?parseInt(O,10):parseFloat(O);f(m,Number.isNaN(L)?null:L)},placeholder:_||`Enter ${E.toLowerCase()}`,step:S==="integer"?"1":"any"}),_&&T.jsx("p",{className:"text-xs text-muted-foreground",children:_})]},m);if(S==="boolean")return T.jsxs("div",{className:"space-y-2",children:[T.jsxs("label",{htmlFor:b,className:"text-sm font-medium",children:[E,o.has(m)&&T.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),T.jsxs(Kw,{onValueChange:I=>f(m,I==="true"),value:String(!!e[m]),children:[T.jsx(Qw,{children:T.jsx(Zw,{placeholder:"Select..."})}),T.jsxs(Jw,{children:[T.jsx(ud,{value:"true",children:"True"}),T.jsx(ud,{value:"false",children:"False"})]})]}),_&&T.jsx("p",{className:"text-xs text-muted-foreground",children:_})]},m);const{hint:w,placeholder:A}=Yq(S),k=l[m]??(e[m]!==void 0?JSON.stringify(e[m],null,2):""),R=!!d[m];return T.jsxs("div",{className:"space-y-2",children:[T.jsxs("label",{htmlFor:b,className:"text-sm font-medium",children:[E," (JSON)",o.has(m)&&T.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),T.jsx(dd,{id:b,value:k,onChange:I=>{const O=I.target.value;if(u(L=>({...L,[m]:O})),O.trim()===""){p(F=>({...F,[m]:null}));const L={...e};delete L[m],n(L);return}try{const L=JSON.parse(O);p(F=>({...F,[m]:null})),f(m,L)}catch{p(L=>({...L,[m]:"Invalid JSON"}))}},placeholder:_||A,className:`font-mono ${R?"border-destructive focus-visible:ring-destructive":""}`,rows:3}),R?T.jsx("p",{className:"text-xs text-destructive mt-1",children:d[m]}):T.jsx("p",{className:"text-xs text-muted-foreground",children:w}),_&&T.jsx("p",{className:"text-xs text-muted-foreground",children:_})]},m)})})}function Xq({selectedWorkflow:t,onRunStart:e,onCollapse:n}){const[r,i]=C.useState(null),[a,o]=C.useState({}),[l,u]=C.useState(!1),[d,p]=C.useState(null),[f,g]=C.useState(""),[m,v]=C.useState(null),[b,E]=C.useState({}),S=ja(),{runWorkflow:_,isCreating:w,error:A}=zq();C.useEffect(()=>{t?(async()=>{if(t)try{u(!0),p(null);const{data:O,error:L}=await aq({client:S,path:{name:t}});if(O)i(O?.start??null);else throw new Error(L?String(L):"Failed to fetch schema");o({}),g(JSON.stringify({},null,2)),v(null),E({})}catch(O){p(O instanceof Error?O.message:"Failed to fetch schema"),i(null)}finally{u(!1)}})():(i(null),o({}),g(""),v(null),E({}))},[t,S]);const k=async()=>{if(t)try{const I=await _(t,a);e(I.handler_id),n&&n()}catch(I){console.error("Failed to run workflow:",I)}},R=!!(r?.properties&&Object.keys(r.properties).length>0);return t?T.jsxs("div",{className:"h-full flex flex-col",children:[T.jsxs("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[T.jsxs("h2",{className:"font-semibold text-sm",children:["Configure: ",t]}),n&&T.jsx(Tt,{variant:"ghost",size:"sm",onClick:n,title:"Hide configuration panel (Ctrl+B)",children:T.jsx(DA,{className:"h-4 w-4"})})]}),T.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[l&&T.jsxs("div",{className:"space-y-4",children:[T.jsx(ji,{className:"h-4 w-32"}),T.jsx(ji,{className:"h-20 w-full"}),T.jsx(ji,{className:"h-4 w-32"}),T.jsx(ji,{className:"h-20 w-full"})]}),d&&T.jsxs("div",{className:"text-destructive text-sm p-3 bg-destructive/10 border border-destructive/20 rounded",children:["Error loading schema: ",d]}),A&&T.jsxs("div",{className:"text-destructive text-sm p-3 bg-destructive/10 border border-destructive/20 rounded",children:["Error running workflow:"," ",typeof A=="string"?A:A.message||"Unknown error"]}),!l&&!d&&T.jsx(T.Fragment,{children:T.jsx("div",{className:"space-y-4",children:R?T.jsx(FD,{schema:r,values:a,onChange:o,onErrorsChange:E}):T.jsxs("div",{className:"space-y-2",children:[T.jsx("label",{htmlFor:"raw-input",className:"text-sm font-medium",children:"Input (JSON)"}),T.jsx(dd,{id:"raw-input",value:f,onChange:I=>{g(I.target.value);try{const O=JSON.parse(I.target.value);o(O),v(null)}catch{v("Invalid JSON")}},placeholder:'{"key": "value"}',className:`font-mono ${m?"border-destructive focus-visible:ring-destructive":""}`,rows:8}),m&&T.jsx("p",{className:"text-xs text-destructive mt-1",children:m})]})})})]}),!l&&!d&&T.jsxs("div",{className:"p-4 border-t border-border",children:[Object.values(b).some(I=>I)&&T.jsx("p",{className:"text-xs text-destructive mb-2",children:"Fix invalid JSON fields before running."}),T.jsx(Tt,{onClick:k,disabled:w||Object.values(b).some(I=>I),className:"w-full",children:w?"Starting...":"Run Workflow"})]})]}):T.jsxs("div",{className:"h-full flex flex-col",children:[T.jsxs("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[T.jsx("h2",{className:"font-semibold text-sm",children:"Workflow Configuration"}),n&&T.jsx(Tt,{variant:"ghost",size:"sm",onClick:n,title:"Hide configuration panel (Ctrl+B)",children:T.jsx(DA,{className:"h-4 w-4"})})]}),T.jsx("div",{className:"flex-1 flex items-center justify-center",children:T.jsx("p",{className:"text-muted-foreground text-center",children:"Select a workflow to configure and run"})})]})}const Kq=C.forwardRef(function({activeHandlerId:e,onHandlerSelect:n},r){const{handlers:i,loading:a,error:o}=Hq(""),[l,u]=C.useState([]);C.useEffect(()=>{i&&u(f=>{const g=new Set(i.map(v=>v.handler_id)),m=f.filter(v=>!g.has(v.handler_id));return[...i,...m]})},[i]);const d=(f,g)=>{u(m=>m.some(b=>b.handler_id===f)?m:[{handler_id:f,status:"running",workflow_name:g},...m])};C.useImperativeHandle(r,()=>({addLocalHandler:d}),[d]);const p=f=>`${f.workflow_name||"Unknown"}`;return T.jsxs("div",{className:"h-full flex flex-col text-sm",children:[T.jsx("div",{className:"px-3 py-2 border-b border-border",children:T.jsx("div",{className:"flex items-center justify-between",children:T.jsx("h2",{className:"font-semibold text-xs tracking-tight",children:"Recent Runs"})})}),T.jsxs("div",{className:"flex-1 overflow-y-auto",children:[o&&T.jsxs("div",{className:"m-4 text-destructive text-sm p-3 bg-destructive/10 border border-destructive/20 rounded",children:["Error: ",o?String(o):"Unknown error"]}),a&&T.jsxs("div",{className:"p-2 space-y-2",children:[T.jsx(ji,{className:"h-8 w-full"}),T.jsx(ji,{className:"h-8 w-full"}),T.jsx(ji,{className:"h-8 w-full"})]}),!a&&T.jsx("div",{className:"p-2 divide-y divide-border",children:l.length===0?T.jsx("div",{className:"text-muted-foreground text-xs p-3 text-center",children:"No runs yet. Start a workflow to see runs here."}):l.map(f=>T.jsx("button",{onClick:()=>n(f.handler_id),className:`w-full text-left px-2 py-1.5 transition-colors cursor-pointer border border-collapse ${e===f.handler_id?"bg-accent ":"hover:bg-accent"}`,children:T.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-center gap-2",children:[T.jsx("span",{className:"truncate text-xs",children:p(f)}),T.jsx("span",{className:"text-[10px] text-muted-foreground font-mono",children:f.handler_id.slice(-8)})]})},f.handler_id))})]})]})});function Zq(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}function Qq(t,e){if(t==null)return{};var n,r,i=Zq(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function JE(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Jq(t){if(Array.isArray(t))return JE(t)}function eV(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function tV(t,e){if(t){if(typeof t=="string")return JE(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JE(t,e):void 0}}function nV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
255
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ew(t){return Jq(t)||eV(t)||tV(t)||nV()}function El(t){"@babel/helpers - typeof";return El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},El(t)}function rV(t,e){if(El(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(El(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function iV(t){var e=rV(t,"string");return El(e)=="symbol"?e:e+""}function BD(t,e,n){return(e=iV(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tw(){return tw=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},tw.apply(null,arguments)}function x_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Oo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?x_(Object(n),!0).forEach(function(r){BD(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function aV(t){var e=t.length;if(e===0||e===1)return t;if(e===2)return[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])];if(e===3)return[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])];if(e>=4)return[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]}var Lh={};function oV(t){if(t.length===0||t.length===1)return t;var e=t.join(".");return Lh[e]||(Lh[e]=aV(t)),Lh[e]}function sV(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.filter(function(a){return a!=="token"}),i=oV(r);return i.reduce(function(a,o){return Oo(Oo({},a),n[o])},e)}function A_(t){return t.join(" ")}function lV(t,e){var n=0;return function(r){return n+=1,r.map(function(i,a){return UD({node:i,stylesheet:t,useInlineStyles:e,key:"code-segment-".concat(n,"-").concat(a)})})}}function UD(t){var e=t.node,n=t.stylesheet,r=t.style,i=r===void 0?{}:r,a=t.useInlineStyles,o=t.key,l=e.properties,u=e.type,d=e.tagName,p=e.value;if(u==="text")return p;if(d){var f=lV(n,a),g;if(!a)g=Oo(Oo({},l),{},{className:A_(l.className)});else{var m=Object.keys(n).reduce(function(S,_){return _.split(".").forEach(function(w){S.includes(w)||S.push(w)}),S},[]),v=l.className&&l.className.includes("token")?["token"]:[],b=l.className&&v.concat(l.className.filter(function(S){return!m.includes(S)}));g=Oo(Oo({},l),{},{className:A_(b)||void 0,style:sV(l.className,Object.assign({},l.style,i),n)})}var E=f(e.children);return Me.createElement(d,tw({key:o},g),E)}}const cV=function(t,e){var n=t.listLanguages();return n.indexOf(e)!==-1};var uV=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function __(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Hi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?__(Object(n),!0).forEach(function(r){BD(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):__(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var dV=/\n/g;function pV(t){return t.match(dV)}function fV(t){var e=t.lines,n=t.startingLineNumber,r=t.style;return e.map(function(i,a){var o=a+n;return Me.createElement("span",{key:"line-".concat(a),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(o):r},"".concat(o,`
256
- `))})}function hV(t){var e=t.codeString,n=t.codeStyle,r=t.containerStyle,i=r===void 0?{float:"left",paddingRight:"10px"}:r,a=t.numberStyle,o=a===void 0?{}:a,l=t.startingLineNumber;return Me.createElement("code",{style:Object.assign({},n,i)},fV({lines:e.replace(/\n$/,"").split(`
257
- `),style:o,startingLineNumber:l}))}function gV(t){return"".concat(t.toString().length,".25em")}function $D(t,e){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(t),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:e},children:[{type:"text",value:t}]}}function zD(t,e,n){var r={display:"inline-block",minWidth:gV(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof t=="function"?t(e):t,a=Hi(Hi({},r),i);return a}function Wu(t){var e=t.children,n=t.lineNumber,r=t.lineNumberStyle,i=t.largestLineNumber,a=t.showInlineLineNumbers,o=t.lineProps,l=o===void 0?{}:o,u=t.className,d=u===void 0?[]:u,p=t.showLineNumbers,f=t.wrapLongLines,g=t.wrapLines,m=g===void 0?!1:g,v=m?Hi({},typeof l=="function"?l(n):l):{};if(v.className=v.className?[].concat(ew(v.className.trim().split(/\s+/)),ew(d)):d,n&&a){var b=zD(r,n,i);e.unshift($D(n,b))}return f&p&&(v.style=Hi({display:"flex"},v.style)),{type:"element",tagName:"span",properties:v,children:e}}function jD(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r<t.length;r++){var i=t[r];if(i.type==="text")n.push(Wu({children:[i],className:ew(new Set(e))}));else if(i.children){var a=e.concat(i.properties.className);jD(i.children,a).forEach(function(o){return n.push(o)})}}return n}function mV(t,e,n,r,i,a,o,l,u){var d,p=jD(t.value),f=[],g=-1,m=0;function v(k,R){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Wu({children:k,lineNumber:R,lineNumberStyle:l,largestLineNumber:o,showInlineLineNumbers:i,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:u,wrapLines:e})}function b(k,R){if(r&&R&&i){var I=zD(l,R,o);k.unshift($D(R,I))}return k}function E(k,R){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return e||I.length>0?v(k,R,I):b(k,R)}for(var S=function(){var R=p[m],I=R.children[0].value,O=pV(I);if(O){var L=I.split(`
258
- `);L.forEach(function(F,j){var H=r&&f.length+a,G={type:"text",value:"".concat(F,`
259
- `)};if(j===0){var D=p.slice(g+1,m).concat(Wu({children:[G],className:R.properties.className})),z=E(D,H);f.push(z)}else if(j===L.length-1){var B=p[m+1]&&p[m+1].children&&p[m+1].children[0],U={type:"text",value:"".concat(F)};if(B){var M=Wu({children:[U],className:R.properties.className});p.splice(m+1,0,M)}else{var q=[U],Y=E(q,H,R.properties.className);f.push(Y)}}else{var $=[G],V=E($,H,R.properties.className);f.push(V)}}),g=m}m++};m<p.length;)S();if(g!==p.length-1){var _=p.slice(g+1,p.length);if(_&&_.length){var w=r&&f.length+a,A=E(_,w);f.push(A)}}return e?f:(d=[]).concat.apply(d,f)}function bV(t){var e=t.rows,n=t.stylesheet,r=t.useInlineStyles;return e.map(function(i,a){return UD({node:i,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(a)})})}function HD(t){return t&&typeof t.highlightAuto<"u"}function yV(t){var e=t.astGenerator,n=t.language,r=t.code,i=t.defaultCodeValue;if(HD(e)){var a=cV(e,n);return n==="text"?{value:i,language:"text"}:a?e.highlight(n,r):e.highlightAuto(r)}try{return n&&n!=="text"?{value:e.highlight(r,n)}:{value:i}}catch{return{value:i}}}function vV(t,e){return function(r){var i,a,o=r.language,l=r.children,u=r.style,d=u===void 0?e:u,p=r.customStyle,f=p===void 0?{}:p,g=r.codeTagProps,m=g===void 0?{className:o?"language-".concat(o):void 0,style:Hi(Hi({},d['code[class*="language-"]']),d['code[class*="language-'.concat(o,'"]')])}:g,v=r.useInlineStyles,b=v===void 0?!0:v,E=r.showLineNumbers,S=E===void 0?!1:E,_=r.showInlineLineNumbers,w=_===void 0?!0:_,A=r.startingLineNumber,k=A===void 0?1:A,R=r.lineNumberContainerStyle,I=r.lineNumberStyle,O=I===void 0?{}:I,L=r.wrapLines,F=r.wrapLongLines,j=F===void 0?!1:F,H=r.lineProps,G=H===void 0?{}:H,D=r.renderer,z=r.PreTag,B=z===void 0?"pre":z,U=r.CodeTag,M=U===void 0?"code":U,q=r.code,Y=q===void 0?(Array.isArray(l)?l[0]:l)||"":q,$=r.astGenerator,V=Qq(r,uV);$=$||t;var X=S?Me.createElement(hV,{containerStyle:R,codeStyle:m.style||{},numberStyle:O,startingLineNumber:k,codeString:Y}):null,Q=d.hljs||d['pre[class*="language-"]']||{backgroundColor:"#fff"},te=HD($)?"hljs":"prismjs",ie=b?Object.assign({},V,{style:Object.assign({},Q,f)}):Object.assign({},V,{className:V.className?"".concat(te," ").concat(V.className):te,style:Object.assign({},f)});if(j?m.style=Hi({whiteSpace:"pre-wrap"},m.style):m.style=Hi({whiteSpace:"pre"},m.style),!$)return Me.createElement(B,ie,X,Me.createElement(M,m,Y));(L===void 0&&D||j)&&(L=!0),D=D||bV;var W=[{type:"text",value:Y}],Z=yV({astGenerator:$,language:o,code:Y,defaultCodeValue:W});Z.language===null&&(Z.value=W);var ne=(i=(a=Y.match(/\n/g))===null||a===void 0?void 0:a.length)!==null&&i!==void 0?i:0,se=k+ne,de=mV(Z,L,G,S,w,k,se,O,j);return Me.createElement(B,ie,Me.createElement(M,m,!w&&X,D({rows:de,stylesheet:d,useInlineStyles:b})))}}const EV=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var Dh,T_;function wV(){if(T_)return Dh;T_=1,Dh=e;var t=Object.prototype.hasOwnProperty;function e(){for(var n={},r=0;r<arguments.length;r++){var i=arguments[r];for(var a in i)t.call(i,a)&&(n[a]=i[a])}return n}return Dh}var Mh,C_;function GD(){if(C_)return Mh;C_=1,Mh=e;var t=e.prototype;t.space=null,t.normal={},t.property={};function e(n,r,i){this.property=n,this.normal=r,i&&(this.space=i)}return Mh}var Ph,R_;function SV(){if(R_)return Ph;R_=1;var t=wV(),e=GD();Ph=n;function n(r){for(var i=r.length,a=[],o=[],l=-1,u,d;++l<i;)u=r[l],a.push(u.property),o.push(u.normal),d=u.space;return new e(t.apply(null,a),t.apply(null,o),d)}return Ph}var Fh,k_;function eS(){if(k_)return Fh;k_=1,Fh=t;function t(e){return e.toLowerCase()}return Fh}var Bh,N_;function qD(){if(N_)return Bh;N_=1,Bh=e;var t=e.prototype;t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1;function e(n,r){this.property=n,this.attribute=r}return Bh}var Zr={},I_;function tS(){if(I_)return Zr;I_=1;var t=0;Zr.boolean=e(),Zr.booleanish=e(),Zr.overloadedBoolean=e(),Zr.number=e(),Zr.spaceSeparated=e(),Zr.commaSeparated=e(),Zr.commaOrSpaceSeparated=e();function e(){return Math.pow(2,++t)}return Zr}var Uh,O_;function VD(){if(O_)return Uh;O_=1;var t=qD(),e=tS();Uh=i,i.prototype=new t,i.prototype.defined=!0;var n=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],r=n.length;function i(o,l,u,d){var p=-1,f;for(a(this,"space",d),t.call(this,o,l);++p<r;)f=n[p],a(this,f,(u&e[f])===e[f])}function a(o,l,u){u&&(o[l]=u)}return Uh}var $h,L_;function jl(){if(L_)return $h;L_=1;var t=eS(),e=GD(),n=VD();$h=r;function r(i){var a=i.space,o=i.mustUseProperty||[],l=i.attributes||{},u=i.properties,d=i.transform,p={},f={},g,m;for(g in u)m=new n(g,d(l,g),u[g],a),o.indexOf(g)!==-1&&(m.mustUseProperty=!0),p[g]=m,f[t(g)]=g,f[t(m.attribute)]=g;return new e(p,f,a)}return $h}var zh,D_;function xV(){if(D_)return zh;D_=1;var t=jl();zh=t({space:"xlink",transform:e,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function e(n,r){return"xlink:"+r.slice(5).toLowerCase()}return zh}var jh,M_;function AV(){if(M_)return jh;M_=1;var t=jl();jh=t({space:"xml",transform:e,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function e(n,r){return"xml:"+r.slice(3).toLowerCase()}return jh}var Hh,P_;function _V(){if(P_)return Hh;P_=1,Hh=t;function t(e,n){return n in e?e[n]:n}return Hh}var Gh,F_;function WD(){if(F_)return Gh;F_=1;var t=_V();Gh=e;function e(n,r){return t(n,r.toLowerCase())}return Gh}var qh,B_;function TV(){if(B_)return qh;B_=1;var t=jl(),e=WD();return qh=t({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:e,properties:{xmlns:null,xmlnsXLink:null}}),qh}var Vh,U_;function CV(){if(U_)return Vh;U_=1;var t=tS(),e=jl(),n=t.booleanish,r=t.number,i=t.spaceSeparated;Vh=e({transform:a,properties:{ariaActiveDescendant:null,ariaAtomic:n,ariaAutoComplete:null,ariaBusy:n,ariaChecked:n,ariaColCount:r,ariaColIndex:r,ariaColSpan:r,ariaControls:i,ariaCurrent:null,ariaDescribedBy:i,ariaDetails:null,ariaDisabled:n,ariaDropEffect:i,ariaErrorMessage:null,ariaExpanded:n,ariaFlowTo:i,ariaGrabbed:n,ariaHasPopup:null,ariaHidden:n,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:i,ariaLevel:r,ariaLive:null,ariaModal:n,ariaMultiLine:n,ariaMultiSelectable:n,ariaOrientation:null,ariaOwns:i,ariaPlaceholder:null,ariaPosInSet:r,ariaPressed:n,ariaReadOnly:n,ariaRelevant:null,ariaRequired:n,ariaRoleDescription:i,ariaRowCount:r,ariaRowIndex:r,ariaRowSpan:r,ariaSelected:n,ariaSetSize:r,ariaSort:null,ariaValueMax:r,ariaValueMin:r,ariaValueNow:r,ariaValueText:null,role:null}});function a(o,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}return Vh}var Wh,$_;function RV(){if($_)return Wh;$_=1;var t=tS(),e=jl(),n=WD(),r=t.boolean,i=t.overloadedBoolean,a=t.booleanish,o=t.number,l=t.spaceSeparated,u=t.commaSeparated;return Wh=e({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:n,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:u,acceptCharset:l,accessKey:l,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:l,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:l,cols:o,colSpan:null,content:null,contentEditable:a,controls:r,controlsList:l,coords:o|u,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:i,draggable:a,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:l,height:o,hidden:r,high:o,href:null,hrefLang:null,htmlFor:l,httpEquiv:l,id:null,imageSizes:null,imageSrcSet:u,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:l,itemRef:l,itemScope:r,itemType:l,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:o,manifest:null,max:null,maxLength:o,media:null,method:null,min:null,minLength:o,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:o,pattern:null,ping:l,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:l,required:r,reversed:r,rows:o,rowSpan:o,sandbox:l,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:o,sizes:null,slot:null,span:o,spellCheck:a,src:null,srcDoc:null,srcLang:null,srcSet:u,start:o,step:null,style:null,tabIndex:o,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:a,width:o,wrap:null,align:null,aLink:null,archive:l,axis:null,background:null,bgColor:null,border:o,borderColor:null,bottomMargin:o,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:o,leftMargin:o,link:null,longDesc:null,lowSrc:null,marginHeight:o,marginWidth:o,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:o,rules:null,scheme:null,scrolling:a,standby:null,summary:null,text:null,topMargin:o,valueType:null,version:null,vAlign:null,vLink:null,vSpace:o,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:o,security:null,unselectable:null}}),Wh}var Yh,z_;function kV(){if(z_)return Yh;z_=1;var t=SV(),e=xV(),n=AV(),r=TV(),i=CV(),a=RV();return Yh=t([n,e,r,i,a]),Yh}var Xh,j_;function NV(){if(j_)return Xh;j_=1;var t=eS(),e=VD(),n=qD(),r="data";Xh=l;var i=/^data[-\w.:]+$/i,a=/-[a-z]/g,o=/[A-Z]/g;function l(g,m){var v=t(m),b=m,E=n;return v in g.normal?g.property[g.normal[v]]:(v.length>4&&v.slice(0,4)===r&&i.test(m)&&(m.charAt(4)==="-"?b=u(m):m=d(m),E=e),new E(b,m))}function u(g){var m=g.slice(5).replace(a,f);return r+m.charAt(0).toUpperCase()+m.slice(1)}function d(g){var m=g.slice(4);return a.test(m)?g:(m=m.replace(o,p),m.charAt(0)!=="-"&&(m="-"+m),r+m)}function p(g){return"-"+g.toLowerCase()}function f(g){return g.charAt(1).toUpperCase()}return Xh}var Kh,H_;function IV(){if(H_)return Kh;H_=1,Kh=e;var t=/[#.]/g;function e(n,r){for(var i=n||"",a=r||"div",o={},l=0,u,d,p;l<i.length;)t.lastIndex=l,p=t.exec(i),u=i.slice(l,p?p.index:i.length),u&&(d?d==="#"?o.id=u:o.className?o.className.push(u):o.className=[u]:a=u,l+=u.length),p&&(d=p[0],l++);return{type:"element",tagName:a,properties:o,children:[]}}return Kh}var Tu={},G_;function OV(){if(G_)return Tu;G_=1,Tu.parse=r,Tu.stringify=i;var t="",e=" ",n=/[ \t\n\r\f]+/g;function r(a){var o=String(a||t).trim();return o===t?[]:o.split(n)}function i(a){return a.join(e).trim()}return Tu}var Cu={},q_;function LV(){if(q_)return Cu;q_=1,Cu.parse=r,Cu.stringify=i;var t=",",e=" ",n="";function r(a){for(var o=[],l=String(a||n),u=l.indexOf(t),d=0,p=!1,f;!p;)u===-1&&(u=l.length,p=!0),f=l.slice(d,u).trim(),(f||!p)&&o.push(f),d=u+1,u=l.indexOf(t,d);return o}function i(a,o){var l=o||{},u=l.padLeft===!1?n:e,d=l.padRight?e:n;return a[a.length-1]===n&&(a=a.concat(n)),a.join(d+t+u).trim()}return Cu}var Zh,V_;function DV(){if(V_)return Zh;V_=1;var t=NV(),e=eS(),n=IV(),r=OV().parse,i=LV().parse;Zh=o;var a={}.hasOwnProperty;function o(v,b,E){var S=E?m(E):null;return _;function _(A,k){var R=n(A,b),I=Array.prototype.slice.call(arguments,2),O=R.tagName.toLowerCase(),L;if(R.tagName=S&&a.call(S,O)?S[O]:O,k&&l(k,R)&&(I.unshift(k),k=null),k)for(L in k)w(R.properties,L,k[L]);return d(R.children,I),R.tagName==="template"&&(R.content={type:"root",children:R.children},R.children=[]),R}function w(A,k,R){var I,O,L;R==null||R!==R||(I=t(v,k),O=I.property,L=R,typeof L=="string"&&(I.spaceSeparated?L=r(L):I.commaSeparated?L=i(L):I.commaOrSpaceSeparated&&(L=r(i(L).join(" ")))),O==="style"&&typeof R!="string"&&(L=g(L)),O==="className"&&A.className&&(L=A.className.concat(L)),A[O]=p(I,O,L))}}function l(v,b){return typeof v=="string"||"length"in v||u(b.tagName,v)}function u(v,b){var E=b.type;return v==="input"||!E||typeof E!="string"?!1:typeof b.children=="object"&&"length"in b.children?!0:(E=E.toLowerCase(),v==="button"?E!=="menu"&&E!=="submit"&&E!=="reset"&&E!=="button":"value"in b)}function d(v,b){var E,S;if(typeof b=="string"||typeof b=="number"){v.push({type:"text",value:String(b)});return}if(typeof b=="object"&&"length"in b){for(E=-1,S=b.length;++E<S;)d(v,b[E]);return}if(typeof b!="object"||!("type"in b))throw new Error("Expected node, nodes, or string, got `"+b+"`");v.push(b)}function p(v,b,E){var S,_,w;if(typeof E!="object"||!("length"in E))return f(v,b,E);for(_=E.length,S=-1,w=[];++S<_;)w[S]=f(v,b,E[S]);return w}function f(v,b,E){var S=E;return v.number||v.positiveNumber?!isNaN(S)&&S!==""&&(S=Number(S)):(v.boolean||v.overloadedBoolean)&&typeof S=="string"&&(S===""||e(E)===e(b))&&(S=!0),S}function g(v){var b=[],E;for(E in v)b.push([E,v[E]].join(": "));return b.join("; ")}function m(v){for(var b=v.length,E=-1,S={},_;++E<b;)_=v[E],S[_.toLowerCase()]=_;return S}return Zh}var Qh,W_;function MV(){if(W_)return Qh;W_=1;var t=kV(),e=DV(),n=e(t,"div");return n.displayName="html",Qh=n,Qh}var Jh,Y_;function PV(){return Y_||(Y_=1,Jh=MV()),Jh}const FV="Æ",BV="&",UV="Á",$V="Â",zV="À",jV="Å",HV="Ã",GV="Ä",qV="©",VV="Ç",WV="Ð",YV="É",XV="Ê",KV="È",ZV="Ë",QV=">",JV="Í",e4="Î",t4="Ì",n4="Ï",r4="<",i4="Ñ",a4="Ó",o4="Ô",s4="Ò",l4="Ø",c4="Õ",u4="Ö",d4='"',p4="®",f4="Þ",h4="Ú",g4="Û",m4="Ù",b4="Ü",y4="Ý",v4="á",E4="â",w4="´",S4="æ",x4="à",A4="&",_4="å",T4="ã",C4="ä",R4="¦",k4="ç",N4="¸",I4="¢",O4="©",L4="¤",D4="°",M4="÷",P4="é",F4="ê",B4="è",U4="ð",$4="ë",z4="½",j4="¼",H4="¾",G4=">",q4="í",V4="î",W4="¡",Y4="ì",X4="¿",K4="ï",Z4="«",Q4="<",J4="¯",eW="µ",tW="·",nW=" ",rW="¬",iW="ñ",aW="ó",oW="ô",sW="ò",lW="ª",cW="º",uW="ø",dW="õ",pW="ö",fW="¶",hW="±",gW="£",mW='"',bW="»",yW="®",vW="§",EW="­",wW="¹",SW="²",xW="³",AW="ß",_W="þ",TW="×",CW="ú",RW="û",kW="ù",NW="¨",IW="ü",OW="ý",LW="¥",DW="ÿ",MW={AElig:FV,AMP:BV,Aacute:UV,Acirc:$V,Agrave:zV,Aring:jV,Atilde:HV,Auml:GV,COPY:qV,Ccedil:VV,ETH:WV,Eacute:YV,Ecirc:XV,Egrave:KV,Euml:ZV,GT:QV,Iacute:JV,Icirc:e4,Igrave:t4,Iuml:n4,LT:r4,Ntilde:i4,Oacute:a4,Ocirc:o4,Ograve:s4,Oslash:l4,Otilde:c4,Ouml:u4,QUOT:d4,REG:p4,THORN:f4,Uacute:h4,Ucirc:g4,Ugrave:m4,Uuml:b4,Yacute:y4,aacute:v4,acirc:E4,acute:w4,aelig:S4,agrave:x4,amp:A4,aring:_4,atilde:T4,auml:C4,brvbar:R4,ccedil:k4,cedil:N4,cent:I4,copy:O4,curren:L4,deg:D4,divide:M4,eacute:P4,ecirc:F4,egrave:B4,eth:U4,euml:$4,frac12:z4,frac14:j4,frac34:H4,gt:G4,iacute:q4,icirc:V4,iexcl:W4,igrave:Y4,iquest:X4,iuml:K4,laquo:Z4,lt:Q4,macr:J4,micro:eW,middot:tW,nbsp:nW,not:rW,ntilde:iW,oacute:aW,ocirc:oW,ograve:sW,ordf:lW,ordm:cW,oslash:uW,otilde:dW,ouml:pW,para:fW,plusmn:hW,pound:gW,quot:mW,raquo:bW,reg:yW,sect:vW,shy:EW,sup1:wW,sup2:SW,sup3:xW,szlig:AW,thorn:_W,times:TW,uacute:CW,ucirc:RW,ugrave:kW,uml:NW,uuml:IW,yacute:OW,yen:LW,yuml:DW},PW={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var eg,X_;function YD(){if(X_)return eg;X_=1,eg=t;function t(e){var n=typeof e=="string"?e.charCodeAt(0):e;return n>=48&&n<=57}return eg}var tg,K_;function FW(){if(K_)return tg;K_=1,tg=t;function t(e){var n=typeof e=="string"?e.charCodeAt(0):e;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}return tg}var ng,Z_;function BW(){if(Z_)return ng;Z_=1,ng=t;function t(e){var n=typeof e=="string"?e.charCodeAt(0):e;return n>=97&&n<=122||n>=65&&n<=90}return ng}var rg,Q_;function UW(){if(Q_)return rg;Q_=1;var t=BW(),e=YD();rg=n;function n(r){return t(r)||e(r)}return rg}var ig,J_;function $W(){if(J_)return ig;J_=1;var t,e=59;ig=n;function n(r){var i="&"+r+";",a;return t=t||document.createElement("i"),t.innerHTML=i,a=t.textContent,a.charCodeAt(a.length-1)===e&&r!=="semi"||a===i?!1:a}return ig}var ag,eT;function zW(){if(eT)return ag;eT=1;var t=MW,e=PW,n=YD(),r=FW(),i=UW(),a=$W();ag=q;var o={}.hasOwnProperty,l=String.fromCharCode,u=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p=9,f=10,g=12,m=32,v=38,b=59,E=60,S=61,_=35,w=88,A=120,k=65533,R="named",I="hexadecimal",O="decimal",L={};L[I]=16,L[O]=10;var F={};F[R]=i,F[O]=n,F[I]=r;var j=1,H=2,G=3,D=4,z=5,B=6,U=7,M={};M[j]="Named character references must be terminated by a semicolon",M[H]="Numeric character references must be terminated by a semicolon",M[G]="Named character references cannot be empty",M[D]="Numeric character references cannot be empty",M[z]="Named character references must be known",M[B]="Numeric character references cannot be disallowed",M[U]="Numeric character references cannot be outside the permissible Unicode range";function q(X,Q){var te={},ie,W;Q||(Q={});for(W in d)ie=Q[W],te[W]=ie??d[W];return(te.position.indent||te.position.start)&&(te.indent=te.position.indent||[],te.position=te.position.start),Y(X,te)}function Y(X,Q){var te=Q.additional,ie=Q.nonTerminated,W=Q.text,Z=Q.reference,ne=Q.warning,se=Q.textContext,de=Q.referenceContext,ce=Q.warningContext,le=Q.position,he=Q.indent||[],Se=X.length,xe=0,Fe=-1,Be=le.column||1,ft=le.line||1,Et="",nt=[],St,Xt,Kt,ht,kt,He,Ve,Nt,Ut,Kn,Zn,mr,Bn,xn,di,Qn,br,Zt,lt;for(typeof te=="string"&&(te=te.charCodeAt(0)),Qn=dn(),Nt=ne?yr:u,xe--,Se++;++xe<Se;)if(kt===f&&(Be=he[Fe]||1),kt=X.charCodeAt(xe),kt===v){if(Ve=X.charCodeAt(xe+1),Ve===p||Ve===f||Ve===g||Ve===m||Ve===v||Ve===E||Ve!==Ve||te&&Ve===te){Et+=l(kt),Be++;continue}for(Bn=xe+1,mr=Bn,lt=Bn,Ve===_?(lt=++mr,Ve=X.charCodeAt(lt),Ve===w||Ve===A?(xn=I,lt=++mr):xn=O):xn=R,St="",Zn="",ht="",di=F[xn],lt--;++lt<Se&&(Ve=X.charCodeAt(lt),!!di(Ve));)ht+=l(Ve),xn===R&&o.call(t,ht)&&(St=ht,Zn=t[ht]);Kt=X.charCodeAt(lt)===b,Kt&&(lt++,Xt=xn===R?a(ht):!1,Xt&&(St=ht,Zn=Xt)),Zt=1+lt-Bn,!Kt&&!ie||(ht?xn===R?(Kt&&!Zn?Nt(z,1):(St!==ht&&(lt=mr+St.length,Zt=1+lt-mr,Kt=!1),Kt||(Ut=St?j:G,Q.attribute?(Ve=X.charCodeAt(lt),Ve===S?(Nt(Ut,Zt),Zn=null):i(Ve)?Zn=null:Nt(Ut,Zt)):Nt(Ut,Zt))),He=Zn):(Kt||Nt(H,Zt),He=parseInt(ht,L[xn]),$(He)?(Nt(U,Zt),He=l(k)):He in e?(Nt(B,Zt),He=e[He]):(Kn="",V(He)&&Nt(B,Zt),He>65535&&(He-=65536,Kn+=l(He>>>10|55296),He=56320|He&1023),He=Kn+l(He))):xn!==R&&Nt(D,Zt)),He?(Zi(),Qn=dn(),xe=lt-1,Be+=lt-Bn+1,nt.push(He),br=dn(),br.offset++,Z&&Z.call(de,He,{start:Qn,end:br},X.slice(Bn-1,lt)),Qn=br):(ht=X.slice(Bn-1,lt),Et+=ht,Be+=ht.length,xe=lt-1)}else kt===10&&(ft++,Fe++,Be=0),kt===kt?(Et+=l(kt),Be++):Zi();return nt.join("");function dn(){return{line:ft,column:Be,offset:xe+(le.offset||0)}}function yr(Qi,pi){var fi=dn();fi.column+=pi,fi.offset+=pi,ne.call(ce,M[Qi],fi,Qi)}function Zi(){Et&&(nt.push(Et),W&&W.call(se,Et,{start:Qn,end:dn()}),Et="")}}function $(X){return X>=55296&&X<=57343||X>1114111}function V(X){return X>=1&&X<=8||X===11||X>=13&&X<=31||X>=127&&X<=159||X>=64976&&X<=65007||(X&65535)===65535||(X&65535)===65534}return ag}var og={exports:{}},tT;function jW(){return tT||(tT=1,function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
260
- * Prism: Lightweight, robust, elegant syntax highlighting
261
- *
262
- * @license MIT <https://opensource.org/licenses/MIT>
263
- * @author Lea Verou <https://lea.verou.me>
264
- * @namespace
265
- * @public
266
- */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,o={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function _(w){return w instanceof u?new u(w.type,_(w.content),w.alias):Array.isArray(w)?w.map(_):w.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(_){return Object.prototype.toString.call(_).slice(8,-1)},objId:function(_){return _.__id||Object.defineProperty(_,"__id",{value:++a}),_.__id},clone:function _(w,A){A=A||{};var k,R;switch(l.util.type(w)){case"Object":if(R=l.util.objId(w),A[R])return A[R];k={},A[R]=k;for(var I in w)w.hasOwnProperty(I)&&(k[I]=_(w[I],A));return k;case"Array":return R=l.util.objId(w),A[R]?A[R]:(k=[],A[R]=k,w.forEach(function(O,L){k[L]=_(O,A)}),k);default:return w}},getLanguage:function(_){for(;_;){var w=i.exec(_.className);if(w)return w[1].toLowerCase();_=_.parentElement}return"none"},setLanguage:function(_,w){_.className=_.className.replace(RegExp(i,"gi"),""),_.classList.add("language-"+w)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(k){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(_){var w=document.getElementsByTagName("script");for(var A in w)if(w[A].src==_)return w[A]}return null}},isActive:function(_,w,A){for(var k="no-"+w;_;){var R=_.classList;if(R.contains(w))return!0;if(R.contains(k))return!1;_=_.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(_,w){var A=l.util.clone(l.languages[_]);for(var k in w)A[k]=w[k];return A},insertBefore:function(_,w,A,k){k=k||l.languages;var R=k[_],I={};for(var O in R)if(R.hasOwnProperty(O)){if(O==w)for(var L in A)A.hasOwnProperty(L)&&(I[L]=A[L]);A.hasOwnProperty(O)||(I[O]=R[O])}var F=k[_];return k[_]=I,l.languages.DFS(l.languages,function(j,H){H===F&&j!=_&&(this[j]=I)}),I},DFS:function _(w,A,k,R){R=R||{};var I=l.util.objId;for(var O in w)if(w.hasOwnProperty(O)){A.call(w,O,w[O],k||O);var L=w[O],F=l.util.type(L);F==="Object"&&!R[I(L)]?(R[I(L)]=!0,_(L,A,null,R)):F==="Array"&&!R[I(L)]&&(R[I(L)]=!0,_(L,A,O,R))}}},plugins:{},highlightAll:function(_,w){l.highlightAllUnder(document,_,w)},highlightAllUnder:function(_,w,A){var k={callback:A,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),l.hooks.run("before-all-elements-highlight",k);for(var R=0,I;I=k.elements[R++];)l.highlightElement(I,w===!0,k.callback)},highlightElement:function(_,w,A){var k=l.util.getLanguage(_),R=l.languages[k];l.util.setLanguage(_,k);var I=_.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(I,k);var O=_.textContent,L={element:_,language:k,grammar:R,code:O};function F(H){L.highlightedCode=H,l.hooks.run("before-insert",L),L.element.innerHTML=L.highlightedCode,l.hooks.run("after-highlight",L),l.hooks.run("complete",L),A&&A.call(L.element)}if(l.hooks.run("before-sanity-check",L),I=L.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!L.code){l.hooks.run("complete",L),A&&A.call(L.element);return}if(l.hooks.run("before-highlight",L),!L.grammar){F(l.util.encode(L.code));return}if(w&&r.Worker){var j=new Worker(l.filename);j.onmessage=function(H){F(H.data)},j.postMessage(JSON.stringify({language:L.language,code:L.code,immediateClose:!0}))}else F(l.highlight(L.code,L.grammar,L.language))},highlight:function(_,w,A){var k={code:_,grammar:w,language:A};if(l.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=l.tokenize(k.code,k.grammar),l.hooks.run("after-tokenize",k),u.stringify(l.util.encode(k.tokens),k.language)},tokenize:function(_,w){var A=w.rest;if(A){for(var k in A)w[k]=A[k];delete w.rest}var R=new f;return g(R,R.head,_),p(_,R,w,R.head,0),v(R)},hooks:{all:{},add:function(_,w){var A=l.hooks.all;A[_]=A[_]||[],A[_].push(w)},run:function(_,w){var A=l.hooks.all[_];if(!(!A||!A.length))for(var k=0,R;R=A[k++];)R(w)}},Token:u};r.Prism=l;function u(_,w,A,k){this.type=_,this.content=w,this.alias=A,this.length=(k||"").length|0}u.stringify=function _(w,A){if(typeof w=="string")return w;if(Array.isArray(w)){var k="";return w.forEach(function(F){k+=_(F,A)}),k}var R={type:w.type,content:_(w.content,A),tag:"span",classes:["token",w.type],attributes:{},language:A},I=w.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(R.classes,I):R.classes.push(I)),l.hooks.run("wrap",R);var O="";for(var L in R.attributes)O+=" "+L+'="'+(R.attributes[L]||"").replace(/"/g,"&quot;")+'"';return"<"+R.tag+' class="'+R.classes.join(" ")+'"'+O+">"+R.content+"</"+R.tag+">"};function d(_,w,A,k){_.lastIndex=w;var R=_.exec(A);if(R&&k&&R[1]){var I=R[1].length;R.index+=I,R[0]=R[0].slice(I)}return R}function p(_,w,A,k,R,I){for(var O in A)if(!(!A.hasOwnProperty(O)||!A[O])){var L=A[O];L=Array.isArray(L)?L:[L];for(var F=0;F<L.length;++F){if(I&&I.cause==O+","+F)return;var j=L[F],H=j.inside,G=!!j.lookbehind,D=!!j.greedy,z=j.alias;if(D&&!j.pattern.global){var B=j.pattern.toString().match(/[imsuy]*$/)[0];j.pattern=RegExp(j.pattern.source,B+"g")}for(var U=j.pattern||j,M=k.next,q=R;M!==w.tail&&!(I&&q>=I.reach);q+=M.value.length,M=M.next){var Y=M.value;if(w.length>_.length)return;if(!(Y instanceof u)){var $=1,V;if(D){if(V=d(U,q,_,G),!V||V.index>=_.length)break;var ie=V.index,X=V.index+V[0].length,Q=q;for(Q+=M.value.length;ie>=Q;)M=M.next,Q+=M.value.length;if(Q-=M.value.length,q=Q,M.value instanceof u)continue;for(var te=M;te!==w.tail&&(Q<X||typeof te.value=="string");te=te.next)$++,Q+=te.value.length;$--,Y=_.slice(q,Q),V.index-=q}else if(V=d(U,0,Y,G),!V)continue;var ie=V.index,W=V[0],Z=Y.slice(0,ie),ne=Y.slice(ie+W.length),se=q+Y.length;I&&se>I.reach&&(I.reach=se);var de=M.prev;Z&&(de=g(w,de,Z),q+=Z.length),m(w,de,$);var ce=new u(O,H?l.tokenize(W,H):W,z,W);if(M=g(w,de,ce),ne&&g(w,M,ne),$>1){var le={cause:O+","+F,reach:se};p(_,w,A,M.prev,q,le),I&&le.reach>I.reach&&(I.reach=le.reach)}}}}}}function f(){var _={value:null,prev:null,next:null},w={value:null,prev:_,next:null};_.next=w,this.head=_,this.tail=w,this.length=0}function g(_,w,A){var k=w.next,R={value:A,prev:w,next:k};return w.next=R,k.prev=R,_.length++,R}function m(_,w,A){for(var k=w.next,R=0;R<A&&k!==_.tail;R++)k=k.next;w.next=k,k.prev=w,_.length-=R}function v(_){for(var w=[],A=_.head.next;A!==_.tail;)w.push(A.value),A=A.next;return w}if(!r.document)return r.addEventListener&&(l.disableWorkerMessageHandler||r.addEventListener("message",function(_){var w=JSON.parse(_.data),A=w.language,k=w.code,R=w.immediateClose;r.postMessage(l.highlight(k,l.languages[A],A)),R&&r.close()},!1)),l;var b=l.util.currentScript();b&&(l.filename=b.src,b.hasAttribute("data-manual")&&(l.manual=!0));function E(){l.manual||l.highlightAll()}if(!l.manual){var S=document.readyState;S==="loading"||S==="interactive"&&b&&b.defer?document.addEventListener("DOMContentLoaded",E):window.requestAnimationFrame?window.requestAnimationFrame(E):window.setTimeout(E,16)}return l}(e);t.exports&&(t.exports=n),typeof td<"u"&&(td.Prism=n)}(og)),og.exports}var sg,nT;function HW(){if(nT)return sg;nT=1,sg=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function t(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,i){var a={};a["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[i]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};o["language-"+i]={pattern:/[\s\S]+/,inside:e.languages[i]};var l={};l[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}return sg}var lg,rT;function GW(){if(rT)return lg;rT=1,lg=t,t.displayName="css",t.aliases=[];function t(e){(function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var i=n.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(e)}return lg}var cg,iT;function qW(){if(iT)return cg;iT=1,cg=t,t.displayName="clike",t.aliases=[];function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}return cg}var ug,aT;function VW(){if(aT)return ug;aT=1,ug=t,t.displayName="javascript",t.aliases=["js"];function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}return ug}var dg,oT;function WW(){if(oT)return dg;oT=1;var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof td=="object"?td:{},e=k();t.Prism={manual:!0,disableWorkerMessageHandler:!0};var n=PV(),r=zW(),i=jW(),a=HW(),o=GW(),l=qW(),u=VW();e();var d={}.hasOwnProperty;function p(){}p.prototype=i;var f=new p;dg=f,f.highlight=v,f.register=g,f.alias=m,f.registered=b,f.listLanguages=E,g(a),g(o),g(l),g(u),f.util.encode=w,f.Token.stringify=S;function g(R){if(typeof R!="function"||!R.displayName)throw new Error("Expected `function` for `grammar`, got `"+R+"`");f.languages[R.displayName]===void 0&&R(f)}function m(R,I){var O=f.languages,L=R,F,j,H,G;I&&(L={},L[R]=I);for(F in L)for(j=L[F],j=typeof j=="string"?[j]:j,H=j.length,G=-1;++G<H;)O[j[G]]=O[F]}function v(R,I){var O=i.highlight,L;if(typeof R!="string")throw new Error("Expected `string` for `value`, got `"+R+"`");if(f.util.type(I)==="Object")L=I,I=null;else{if(typeof I!="string")throw new Error("Expected `string` for `name`, got `"+I+"`");if(d.call(f.languages,I))L=f.languages[I];else throw new Error("Unknown language: `"+I+"` is not registered")}return O.call(this,R,L,I)}function b(R){if(typeof R!="string")throw new Error("Expected `string` for `language`, got `"+R+"`");return d.call(f.languages,R)}function E(){var R=f.languages,I=[],O;for(O in R)d.call(R,O)&&typeof R[O]=="object"&&I.push(O);return I}function S(R,I,O){var L;return typeof R=="string"?{type:"text",value:R}:f.util.type(R)==="Array"?_(R,I):(L={type:R.type,content:f.Token.stringify(R.content,I,O),tag:"span",classes:["token",R.type],attributes:{},language:I,parent:O},R.alias&&(L.classes=L.classes.concat(R.alias)),f.hooks.run("wrap",L),n(L.tag+"."+L.classes.join("."),A(L.attributes),L.content))}function _(R,I){for(var O=[],L=R.length,F=-1,j;++F<L;)j=R[F],j!==""&&j!==null&&j!==void 0&&O.push(j);for(F=-1,L=O.length;++F<L;)j=O[F],O[F]=f.Token.stringify(j,I,O);return O}function w(R){return R}function A(R){var I;for(I in R)R[I]=r(R[I]);return R}function k(){var R="Prism"in t,I=R?t.Prism:void 0;return O;function O(){R?t.Prism=I:delete t.Prism,R=void 0,I=void 0}}return dg}const YW={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var pg,sT;function XW(){if(sT)return pg;sT=1,pg=t,t.displayName="abap",t.aliases=[];function t(e){e.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return pg}var fg,lT;function KW(){if(lT)return fg;lT=1,fg=t,t.displayName="abnf",t.aliases=[];function t(e){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}return fg}var hg,cT;function ZW(){if(cT)return hg;cT=1,hg=t,t.displayName="actionscript",t.aliases=[];function t(e){e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}return hg}var gg,uT;function QW(){if(uT)return gg;uT=1,gg=t,t.displayName="ada",t.aliases=[];function t(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return gg}var mg,dT;function JW(){if(dT)return mg;dT=1,mg=t,t.displayName="agda",t.aliases=[];function t(e){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}return mg}var bg,pT;function e5(){if(pT)return bg;pT=1,bg=t,t.displayName="al",t.aliases=[];function t(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return bg}var yg,fT;function t5(){if(fT)return yg;fT=1,yg=t,t.displayName="antlr4",t.aliases=["g4"];function t(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}return yg}var vg,hT;function n5(){if(hT)return vg;hT=1,vg=t,t.displayName="apacheconf",t.aliases=[];function t(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return vg}var Eg,gT;function nS(){if(gT)return Eg;gT=1,Eg=t,t.displayName="sql",t.aliases=[];function t(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return Eg}var wg,mT;function r5(){if(mT)return wg;mT=1;var t=nS();wg=e,e.displayName="apex",e.aliases=[];function e(n){n.register(t),function(r){var i=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,a=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return i.source});function o(u){return RegExp(u.replace(/<CLASS-NAME>/g,function(){return a}),"i")}var l={keyword:i,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:l},{pattern:o(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:l},{pattern:o(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:l}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(n)}return wg}var Sg,bT;function i5(){if(bT)return Sg;bT=1,Sg=t,t.displayName="apl",t.aliases=[];function t(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return Sg}var xg,yT;function a5(){if(yT)return xg;yT=1,xg=t,t.displayName="applescript",t.aliases=[];function t(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return xg}var Ag,vT;function o5(){if(vT)return Ag;vT=1,Ag=t,t.displayName="aql",t.aliases=[];function t(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return Ag}var _g,ET;function Ha(){if(ET)return _g;ET=1,_g=t,t.displayName="c",t.aliases=[];function t(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}return _g}var Tg,wT;function rS(){if(wT)return Tg;wT=1;var t=Ha();Tg=e,e.displayName="cpp",e.aliases=[];function e(n){n.register(t),function(r){var i=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,a=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return i.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return i.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:i,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return a})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(n)}return Tg}var Cg,ST;function s5(){if(ST)return Cg;ST=1;var t=rS();Cg=e,e.displayName="arduino",e.aliases=["ino"];function e(n){n.register(t),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return Cg}var Rg,xT;function l5(){if(xT)return Rg;xT=1,Rg=t,t.displayName="arff",t.aliases=[];function t(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return Rg}var kg,AT;function c5(){if(AT)return kg;AT=1,kg=t,t.displayName="asciidoc",t.aliases=["adoc"];function t(e){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},i=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function a(o){o=o.split(" ");for(var l={},u=0,d=o.length;u<d;u++)l[o[u]]=i[o[u]];return l}r.inside.interpreted.inside.rest=a("macro inline replacement entity"),i["passthrough-block"].inside.rest=a("macro"),i["literal-block"].inside.rest=a("callout"),i.table.inside.rest=a("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),i["other-block"].inside.rest=a("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),i.title.inside.rest=a("macro inline replacement entity"),n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.value.replace(/&amp;/,"&"))}),n.languages.adoc=n.languages.asciidoc})(e)}return kg}var Ng,_T;function u5(){if(_T)return Ng;_T=1,Ng=t,t.displayName="asm6502",t.aliases=[];function t(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}return Ng}var Ig,TT;function d5(){if(TT)return Ig;TT=1,Ig=t,t.displayName="asmatmel",t.aliases=[];function t(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return Ig}var Og,CT;function Gd(){if(CT)return Og;CT=1,Og=t,t.displayName="csharp",t.aliases=["dotnet","cs"];function t(e){(function(n){function r($,V){return $.replace(/<<(\d+)>>/g,function(X,Q){return"(?:"+V[+Q]+")"})}function i($,V,X){return RegExp(r($,V),"")}function a($,V){for(var X=0;X<V;X++)$=$.replace(/<<self>>/g,function(){return"(?:"+$+")"});return $.replace(/<<self>>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function l($){return"\\b(?:"+$.trim().replace(/ /g,"|")+")\\b"}var u=l(o.typeDeclaration),d=RegExp(l(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),p=l(o.typeDeclaration+" "+o.contextual+" "+o.other),f=l(o.type+" "+o.typeDeclaration+" "+o.other),g=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),m=a(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,b=r(/<<0>>(?:\s*<<1>>)?/.source,[v,g]),E=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[p,b]),S=/\[\s*(?:,\s*)*\]/.source,_=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[E,S]),w=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,m,S]),A=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),k=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,E,S]),R={keyword:d,punctuation:/[<>()?,.:[\]]/},I=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,O=/"(?:\\.|[^\\"\r\n])*"/.source,L=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:i(/(^|[^$\\])<<0>>/.source,[L]),lookbehind:!0,greedy:!0},{pattern:i(/(^|[^@$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:i(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[E]),lookbehind:!0,inside:R},{pattern:i(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,k]),lookbehind:!0,inside:R},{pattern:i(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:i(/(\b<<0>>\s+)<<1>>/.source,[u,b]),lookbehind:!0,inside:R},{pattern:i(/(\bcatch\s*\(\s*)<<0>>/.source,[E]),lookbehind:!0,inside:R},{pattern:i(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:i(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[_]),lookbehind:!0,inside:R},{pattern:i(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,f,v]),inside:R}],keyword:d,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:i(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:i(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:i(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:R},"return-type":{pattern:i(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,E]),inside:R,alias:"class-name"},"constructor-invocation":{pattern:i(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:R,alias:"class-name"},"generic-method":{pattern:i(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,g]),inside:{function:i(/^<<0>>/.source,[v]),generic:{pattern:RegExp(g),alias:"class-name",inside:R}}},"type-list":{pattern:i(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,b,v,k,d.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:i(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,m]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:d,"class-name":{pattern:RegExp(k),greedy:!0,inside:R},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var F=O+"|"+I,j=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[F]),H=a(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[j]),2),G=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,D=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[E,H]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:i(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[G,D]),lookbehind:!0,greedy:!0,inside:{target:{pattern:i(/^<<0>>(?=\s*:)/.source,[G]),alias:"keyword"},"attribute-arguments":{pattern:i(/\(<<0>>*\)/.source,[H]),inside:n.languages.csharp},"class-name":{pattern:RegExp(E),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,B=a(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[j]),2),U=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[B,z]),M=a(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[F]),2),q=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,z]);function Y($,V){return{interpolation:{pattern:i(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[$]),lookbehind:!0,inside:{"format-string":{pattern:i(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[V,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:i(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[U]),lookbehind:!0,greedy:!0,inside:Y(U,B)},{pattern:i(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[q]),lookbehind:!0,greedy:!0,inside:Y(q,M)}],char:{pattern:RegExp(I),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(e)}return Og}var Lg,RT;function p5(){if(RT)return Lg;RT=1;var t=Gd();Lg=e,e.displayName="aspnet",e.aliases=[];function e(n){n.register(t),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return Lg}var Dg,kT;function f5(){if(kT)return Dg;kT=1,Dg=t,t.displayName="autohotkey",t.aliases=[];function t(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return Dg}var Mg,NT;function h5(){if(NT)return Mg;NT=1,Mg=t,t.displayName="autoit",t.aliases=[];function t(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return Mg}var Pg,IT;function g5(){if(IT)return Pg;IT=1,Pg=t,t.displayName="avisynth",t.aliases=["avs"];function t(e){(function(n){function r(p,f){return p.replace(/<<(\d+)>>/g,function(g,m){return f[+m]})}function i(p,f,g){return RegExp(r(p,f),g)}var a=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),l=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),u=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),d=[o,l,u].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:i(/\b(?:<<0>>)\s+("?)\w+\1/.source,[a],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:i(/\b(?:<<0>>)\b/.source,[d],"i"),alias:"function"},"type-cast":{pattern:i(/\b(?:<<0>>)(?=\s*\()/.source,[a],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(e)}return Pg}var Fg,OT;function m5(){if(OT)return Fg;OT=1,Fg=t,t.displayName="avroIdl",t.aliases=[];function t(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}return Fg}var Bg,LT;function XD(){if(LT)return Bg;LT=1,Bg=t,t.displayName="bash",t.aliases=["shell"];function t(e){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:i,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=n.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=a.variable[1].inside,u=0;u<o.length;u++)l[o[u]]=n.languages.bash[o[u]];n.languages.shell=n.languages.bash})(e)}return Bg}var Ug,DT;function KD(){if(DT)return Ug;DT=1,Ug=t,t.displayName="basic",t.aliases=[];function t(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return Ug}var $g,MT;function b5(){if(MT)return $g;MT=1,$g=t,t.displayName="batch",t.aliases=[];function t(e){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,i={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},a=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:a,parameter:i,variable:r,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:a,parameter:i,variable:r,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:a,parameter:i,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:a,parameter:i,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}return $g}var zg,PT;function y5(){if(PT)return zg;PT=1,zg=t,t.displayName="bbcode",t.aliases=["shortcode"];function t(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}return zg}var jg,FT;function v5(){if(FT)return jg;FT=1,jg=t,t.displayName="bicep",t.aliases=[];function t(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}return jg}var Hg,BT;function E5(){if(BT)return Hg;BT=1,Hg=t,t.displayName="birb",t.aliases=[];function t(e){e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return Hg}var Gg,UT;function w5(){if(UT)return Gg;UT=1;var t=Ha();Gg=e,e.displayName="bison",e.aliases=[];function e(n){n.register(t),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return Gg}var qg,$T;function S5(){if($T)return qg;$T=1,qg=t,t.displayName="bnf",t.aliases=["rbnf"];function t(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}return qg}var Vg,zT;function x5(){if(zT)return Vg;zT=1,Vg=t,t.displayName="brainfuck",t.aliases=[];function t(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return Vg}var Wg,jT;function A5(){if(jT)return Wg;jT=1,Wg=t,t.displayName="brightscript",t.aliases=[];function t(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}return Wg}var Yg,HT;function _5(){if(HT)return Yg;HT=1,Yg=t,t.displayName="bro",t.aliases=[];function t(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return Yg}var Xg,GT;function T5(){if(GT)return Xg;GT=1,Xg=t,t.displayName="bsl",t.aliases=[];function t(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}return Xg}var Kg,qT;function C5(){if(qT)return Kg;qT=1,Kg=t,t.displayName="cfscript",t.aliases=[];function t(e){e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}return Kg}var Zg,VT;function R5(){if(VT)return Zg;VT=1;var t=rS();Zg=e,e.displayName="chaiscript",e.aliases=[];function e(n){n.register(t),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return Zg}var Qg,WT;function k5(){if(WT)return Qg;WT=1,Qg=t,t.displayName="cil",t.aliases=[];function t(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return Qg}var Jg,YT;function N5(){if(YT)return Jg;YT=1,Jg=t,t.displayName="clojure",t.aliases=[];function t(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return Jg}var em,XT;function I5(){if(XT)return em;XT=1,em=t,t.displayName="cmake",t.aliases=[];function t(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return em}var tm,KT;function O5(){if(KT)return tm;KT=1,tm=t,t.displayName="cobol",t.aliases=[];function t(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return tm}var nm,ZT;function L5(){if(ZT)return nm;ZT=1,nm=t,t.displayName="coffeescript",t.aliases=["coffee"];function t(e){(function(n){var r=/#(?!\{).+/,i={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:i}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:i}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:i}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(e)}return nm}var rm,QT;function D5(){if(QT)return rm;QT=1,rm=t,t.displayName="concurnas",t.aliases=["conc"];function t(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}return rm}var im,JT;function M5(){if(JT)return im;JT=1,im=t,t.displayName="coq",t.aliases=[];function t(e){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,i=0;i<2;i++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}return im}var am,eC;function qd(){if(eC)return am;eC=1,am=t,t.displayName="ruby",t.aliases=["rb"];function t(e){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var i="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+i+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+i),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+i),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(e)}return am}var om,tC;function P5(){if(tC)return om;tC=1;var t=qd();om=e,e.displayName="crystal",e.aliases=[];function e(n){n.register(t),function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(n)}return om}var sm,nC;function F5(){if(nC)return sm;nC=1;var t=Gd();sm=e,e.displayName="cshtml",e.aliases=["razor"];function e(n){n.register(t),function(r){var i=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,a=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(E,S){for(var _=0;_<S;_++)E=E.replace(/<self>/g,function(){return"(?:"+E+")"});return E.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+a+")").replace(/<comment>/g,"(?:"+i+")")}var l=o(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),u=o(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),d=o(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),p=o(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),f=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,g=/(?!\d)[^\s>\/=$<%]+/.source+f+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+o(/<\1/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+g+")";r.languages.cshtml=r.languages.extend("markup",{});var v=r.languages.insertBefore("csharp","string",{html:{pattern:RegExp(m),greedy:!0,inside:r.languages.cshtml}},{csharp:r.languages.extend("csharp",{})}),b={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:v};r.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[d,/(?:code|functions)\s*/.source+d,/(?:for|foreach|lock|switch|using|while)\s*/.source+l+/\s*/.source+d,/do\s*/.source+d+/\s*while\s*/.source+l+/(?:\s*;)?/.source,/try\s*/.source+d+/\s*catch\s*/.source+l+/\s*/.source+d+/\s*finally\s*/.source+d,/if\s*/.source+l+/\s*/.source+d+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+l+")?"+/\s*/.source+d+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:b}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:b}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+l+")(?:"+/[?!]?\.\w+\b/.source+"|"+l+"|"+u+"|"+p+l+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:b}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),r.languages.razor=r.languages.cshtml}(n)}return sm}var lm,rC;function B5(){if(rC)return lm;rC=1,lm=t,t.displayName="csp",t.aliases=[];function t(e){(function(n){function r(i){return RegExp(/([ \t])/.source+"(?:"+i+")"+/(?=[\s;]|$)/.source,"i")}n.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:r(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:r(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:r(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:r(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:r(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:r(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:r(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}return lm}var cm,iC;function U5(){if(iC)return cm;iC=1,cm=t,t.displayName="cssExtras",t.aliases=[];function t(e){(function(n){var r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i;n.languages.css.selector={pattern:n.languages.css.selector.pattern,lookbehind:!0,inside:i={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+r.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[r,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=i,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var a={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:a,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:o})})(e)}return cm}var um,aC;function $5(){if(aC)return um;aC=1,um=t,t.displayName="csv",t.aliases=[];function t(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return um}var dm,oC;function z5(){if(oC)return dm;oC=1,dm=t,t.displayName="cypher",t.aliases=[];function t(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return dm}var pm,sC;function j5(){if(sC)return pm;sC=1,pm=t,t.displayName="d",t.aliases=[];function t(e){e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return pm}var fm,lC;function H5(){if(lC)return fm;lC=1,fm=t,t.displayName="dart",t.aliases=[];function t(e){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],i=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(i+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[a,{pattern:RegExp(i+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":a,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(e)}return fm}var hm,cC;function G5(){if(cC)return hm;cC=1,hm=t,t.displayName="dataweave",t.aliases=[];function t(e){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}return hm}var gm,uC;function q5(){if(uC)return gm;uC=1,gm=t,t.displayName="dax",t.aliases=[];function t(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return gm}var mm,dC;function V5(){if(dC)return mm;dC=1,mm=t,t.displayName="dhall",t.aliases=[];function t(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}return mm}var bm,pC;function W5(){if(pC)return bm;pC=1,bm=t,t.displayName="diff",t.aliases=[];function t(e){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(i){var a=r[i],o=[];/^\w+$/.test(i)||o.push(/\w+/.exec(i)[0]),i==="diff"&&o.push("bold"),n.languages.diff[i]={pattern:RegExp("^(?:["+a+`].*(?:\r
267
- ?|
268
- |(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(i)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(e)}return bm}var ym,fC;function Sn(){if(fC)return ym;fC=1,ym=t,t.displayName="markupTemplating",t.aliases=[];function t(e){(function(n){function r(i,a){return"___"+i.toUpperCase()+a+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(i,a,o,l){if(i.language===a){var u=i.tokenStack=[];i.code=i.code.replace(o,function(d){if(typeof l=="function"&&!l(d))return d;for(var p=u.length,f;i.code.indexOf(f=r(a,p))!==-1;)++p;return u[p]=d,f}),i.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(i,a){if(i.language!==a||!i.tokenStack)return;i.grammar=n.languages[a];var o=0,l=Object.keys(i.tokenStack);function u(d){for(var p=0;p<d.length&&!(o>=l.length);p++){var f=d[p];if(typeof f=="string"||f.content&&typeof f.content=="string"){var g=l[o],m=i.tokenStack[g],v=typeof f=="string"?f:f.content,b=r(a,g),E=v.indexOf(b);if(E>-1){++o;var S=v.substring(0,E),_=new n.Token(a,n.tokenize(m,i.grammar),"language-"+a,m),w=v.substring(E+b.length),A=[];S&&A.push.apply(A,u([S])),A.push(_),w&&A.push.apply(A,u([w])),typeof f=="string"?d.splice.apply(d,[p,1].concat(A)):f.content=A}}else f.content&&u(f.content)}return d}u(i.tokens)}}})})(e)}return ym}var vm,hC;function Y5(){if(hC)return vm;hC=1;var t=Sn();vm=e,e.displayName="django",e.aliases=["jinja2"];function e(n){n.register(t),function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var i=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,a=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"django",i)}),r.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"jinja2",i)}),r.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"jinja2")})}(n)}return vm}var Em,gC;function X5(){if(gC)return Em;gC=1,Em=t,t.displayName="dnsZoneFile",t.aliases=[];function t(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}return Em}var wm,mC;function K5(){if(mC)return wm;mC=1,wm=t,t.displayName="docker",t.aliases=["dockerfile"];function t(e){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,i=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return r}),a=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return a}),l={pattern:RegExp(a),greedy:!0},u={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function d(p,f){return p=p.replace(/<OPT>/g,function(){return o}).replace(/<SP>/g,function(){return i}),RegExp(p,f)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:d(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[l,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:d(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:d(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:d(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:u,string:l,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:u},n.languages.dockerfile=n.languages.docker})(e)}return wm}var Sm,bC;function Z5(){if(bC)return Sm;bC=1,Sm=t,t.displayName="dot",t.aliases=["gv"];function t(e){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",i={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function a(o,l){return RegExp(o.replace(/<ID>/g,function(){return r}),l)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:a(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:i},"attr-value":{pattern:a(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:i},"attr-name":{pattern:a(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:i},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:a(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:i},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(e)}return Sm}var xm,yC;function Q5(){if(yC)return xm;yC=1,xm=t,t.displayName="ebnf",t.aliases=[];function t(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return xm}var Am,vC;function J5(){if(vC)return Am;vC=1,Am=t,t.displayName="editorconfig",t.aliases=[];function t(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return Am}var _m,EC;function e6(){if(EC)return _m;EC=1,_m=t,t.displayName="eiffel",t.aliases=[];function t(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return _m}var Tm,wC;function t6(){if(wC)return Tm;wC=1;var t=Sn();Tm=e,e.displayName="ejs",e.aliases=["eta"];function e(n){n.register(t),function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(i){var a=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(i,"ejs",a)}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"ejs")}),r.languages.eta=r.languages.ejs}(n)}return Tm}var Cm,SC;function n6(){if(SC)return Cm;SC=1,Cm=t,t.displayName="elixir",t.aliases=[];function t(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}return Cm}var Rm,xC;function r6(){if(xC)return Rm;xC=1,Rm=t,t.displayName="elm",t.aliases=[];function t(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return Rm}var km,AC;function i6(){if(AC)return km;AC=1;var t=qd(),e=Sn();km=n,n.displayName="erb",n.aliases=[];function n(r){r.register(t),r.register(e),function(i){i.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:i.languages.ruby}},i.hooks.add("before-tokenize",function(a){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;i.languages["markup-templating"].buildPlaceholders(a,"erb",o)}),i.hooks.add("after-tokenize",function(a){i.languages["markup-templating"].tokenizePlaceholders(a,"erb")})}(r)}return km}var Nm,_C;function a6(){if(_C)return Nm;_C=1,Nm=t,t.displayName="erlang",t.aliases=[];function t(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return Nm}var Im,TC;function ZD(){if(TC)return Im;TC=1,Im=t,t.displayName="lua",t.aliases=[];function t(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return Im}var Om,CC;function o6(){if(CC)return Om;CC=1;var t=ZD(),e=Sn();Om=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(t),r.register(e),function(i){i.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:i.languages.lua}},i.hooks.add("before-tokenize",function(a){var o=/<%[\s\S]+?%>/g;i.languages["markup-templating"].buildPlaceholders(a,"etlua",o)}),i.hooks.add("after-tokenize",function(a){i.languages["markup-templating"].tokenizePlaceholders(a,"etlua")})}(r)}return Om}var Lm,RC;function s6(){if(RC)return Lm;RC=1,Lm=t,t.displayName="excelFormula",t.aliases=[];function t(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}return Lm}var Dm,kC;function l6(){if(kC)return Dm;kC=1,Dm=t,t.displayName="factor",t.aliases=[];function t(e){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},i={number:/\\[^\s']|%\w/},a={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:i.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:i},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:i}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:i}},o=function(p){return(p+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},l=function(p){return new RegExp("(^|\\s)(?:"+p.map(o).join("|")+")(?=\\s|$)")},u={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(u).forEach(function(p){a[p].pattern=l(u[p])});var d=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];a.combinators.pattern=l(d),n.languages.factor=a})(e)}return Dm}var Mm,NC;function c6(){if(NC)return Mm;NC=1,Mm=t,t.displayName="$false",t.aliases=[];function t(e){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(e)}return Mm}var Pm,IC;function u6(){if(IC)return Pm;IC=1,Pm=t,t.displayName="firestoreSecurityRules",t.aliases=[];function t(e){e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return Pm}var Fm,OC;function d6(){if(OC)return Fm;OC=1,Fm=t,t.displayName="flow",t.aliases=[];function t(e){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(e)}return Fm}var Bm,LC;function p6(){if(LC)return Bm;LC=1,Bm=t,t.displayName="fortran",t.aliases=[];function t(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return Bm}var Um,DC;function f6(){if(DC)return Um;DC=1,Um=t,t.displayName="fsharp",t.aliases=[];function t(e){e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return Um}var $m,MC;function h6(){if(MC)return $m;MC=1;var t=Sn();$m=e,e.displayName="ftl",e.aliases=[];function e(n){n.register(t),function(r){for(var i=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,a=0;a<2;a++)i=i.replace(/<expr>/g,function(){return i});i=i.replace(/<expr>/g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return i})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return i})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},r.hooks.add("before-tokenize",function(l){var u=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return i}),"gi");r.languages["markup-templating"].buildPlaceholders(l,"ftl",u)}),r.hooks.add("after-tokenize",function(l){r.languages["markup-templating"].tokenizePlaceholders(l,"ftl")})}(n)}return $m}var zm,PC;function g6(){if(PC)return zm;PC=1,zm=t,t.displayName="gap",t.aliases=[];function t(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}return zm}var jm,FC;function m6(){if(FC)return jm;FC=1,jm=t,t.displayName="gcode",t.aliases=[];function t(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return jm}var Hm,BC;function b6(){if(BC)return Hm;BC=1,Hm=t,t.displayName="gdscript",t.aliases=[];function t(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return Hm}var Gm,UC;function y6(){if(UC)return Gm;UC=1,Gm=t,t.displayName="gedcom",t.aliases=[];function t(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return Gm}var qm,$C;function v6(){if($C)return qm;$C=1,qm=t,t.displayName="gherkin",t.aliases=[];function t(e){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}return qm}var Vm,zC;function E6(){if(zC)return Vm;zC=1,Vm=t,t.displayName="git",t.aliases=[];function t(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return Vm}var Wm,jC;function w6(){if(jC)return Wm;jC=1;var t=Ha();Wm=e,e.displayName="glsl",e.aliases=[];function e(n){n.register(t),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return Wm}var Ym,HC;function S6(){if(HC)return Ym;HC=1,Ym=t,t.displayName="gml",t.aliases=[];function t(e){e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return Ym}var Xm,GC;function x6(){if(GC)return Xm;GC=1,Xm=t,t.displayName="gn",t.aliases=["gni"];function t(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}return Xm}var Km,qC;function A6(){if(qC)return Km;qC=1,Km=t,t.displayName="goModule",t.aliases=[];function t(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return Km}var Zm,VC;function _6(){if(VC)return Zm;VC=1,Zm=t,t.displayName="go",t.aliases=[];function t(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}return Zm}var Qm,WC;function T6(){if(WC)return Qm;WC=1,Qm=t,t.displayName="graphql",t.aliases=[];function t(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var i=r.tokens.filter(function(S){return typeof S!="string"&&S.type!=="comment"&&S.type!=="scalar"}),a=0;function o(S){return i[a+S]}function l(S,_){_=_||0;for(var w=0;w<S.length;w++){var A=o(w+_);if(!A||A.type!==S[w])return!1}return!0}function u(S,_){for(var w=1,A=a;A<i.length;A++){var k=i[A],R=k.content;if(k.type==="punctuation"&&typeof R=="string"){if(S.test(R))w++;else if(_.test(R)&&(w--,w===0))return A}}return-1}function d(S,_){var w=S.alias;w?Array.isArray(w)||(S.alias=w=[w]):S.alias=w=[],w.push(_)}for(;a<i.length;){var p=i[a++];if(p.type==="keyword"&&p.content==="mutation"){var f=[];if(l(["definition-mutation","punctuation"])&&o(1).content==="("){a+=2;var g=u(/^\($/,/^\)$/);if(g===-1)continue;for(;a<g;a++){var m=o(0);m.type==="variable"&&(d(m,"variable-input"),f.push(m.content))}a=g+1}if(l(["punctuation","property-query"])&&o(0).content==="{"&&(a++,d(o(0),"property-mutation"),f.length>0)){var v=u(/^\{$/,/^\}$/);if(v===-1)continue;for(var b=a;b<v;b++){var E=i[b];E.type==="variable"&&f.indexOf(E.content)>=0&&d(E,"variable-input")}}}}})}return Qm}var Jm,YC;function C6(){if(YC)return Jm;YC=1,Jm=t,t.displayName="groovy",t.aliases=[];function t(e){e.languages.groovy=e.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),e.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var i=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(i=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),n.content=e.highlight(n.content.value,{expression:{pattern:i,lookbehind:!0,inside:e.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return Jm}var eb,XC;function R6(){if(XC)return eb;XC=1;var t=qd();eb=e,e.displayName="haml",e.aliases=[];function e(n){n.register(t),function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var i="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",a=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},l=0,u=a.length;l<u;l++){var d=a[l];d=typeof d=="string"?{filter:d,language:d}:d,r.languages[d.language]&&(o["filter-"+d.filter]={pattern:RegExp(i.replace("{{filter_name}}",function(){return d.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[d.language,"language-"+d.language],inside:r.languages[d.language]}}})}r.languages.insertBefore("haml","filter",o)}(n)}return eb}var tb,KC;function k6(){if(KC)return tb;KC=1;var t=Sn();tb=e,e.displayName="handlebars",e.aliases=["hbs"];function e(n){n.register(t),function(r){r.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(i){var a=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(i,"handlebars",a)}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"handlebars")}),r.languages.hbs=r.languages.handlebars}(n)}return tb}var nb,ZC;function iS(){if(ZC)return nb;ZC=1,nb=t,t.displayName="haskell",t.aliases=["hs"];function t(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}return nb}var rb,QC;function N6(){if(QC)return rb;QC=1,rb=t,t.displayName="haxe",t.aliases=[];function t(e){e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return rb}var ib,JC;function I6(){if(JC)return ib;JC=1,ib=t,t.displayName="hcl",t.aliases=[];function t(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return ib}var ab,eR;function O6(){if(eR)return ab;eR=1;var t=Ha();ab=e,e.displayName="hlsl",e.aliases=[];function e(n){n.register(t),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return ab}var ob,tR;function L6(){if(tR)return ob;tR=1,ob=t,t.displayName="hoon",t.aliases=[];function t(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return ob}var sb,nR;function D6(){if(nR)return sb;nR=1,sb=t,t.displayName="hpkp",t.aliases=[];function t(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return sb}var lb,rR;function M6(){if(rR)return lb;rR=1,lb=t,t.displayName="hsts",t.aliases=[];function t(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return lb}var cb,iR;function P6(){if(iR)return cb;iR=1,cb=t,t.displayName="http",t.aliases=[];function t(e){(function(n){function r(f){return RegExp("(^(?:"+f+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var i=n.languages,a={"application/javascript":i.javascript,"application/json":i.json||i.javascript,"application/xml":i.xml,"text/xml":i.xml,"text/html":i.html,"text/css":i.css,"text/plain":i.plain},o={"application/json":!0,"application/xml":!0};function l(f){var g=f.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+g+"(?![+\\w.-])";return"(?:"+f+"|"+m+")"}var u;for(var d in a)if(a[d]){u=u||{};var p=o[d]?l(d):d;u[d.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+p+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[d]}}u&&n.languages.insertBefore("http","header",u)})(e)}return cb}var ub,aR;function F6(){if(aR)return ub;aR=1,ub=t,t.displayName="ichigojam",t.aliases=[];function t(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return ub}var db,oR;function B6(){if(oR)return db;oR=1,db=t,t.displayName="icon",t.aliases=[];function t(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return db}var pb,sR;function U6(){if(sR)return pb;sR=1,pb=t,t.displayName="icuMessageFormat",t.aliases=[];function t(e){(function(n){function r(d,p){return p<=0?/[]/.source:d.replace(/<SELF>/g,function(){return r(d,p-1)})}var i=/'[{}:=,](?:[^']|'')*'(?!')/,a={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:i,greedy:!0,inside:{escape:a}},l=r(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return i.source}),8),u={pattern:RegExp(l),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(l),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":u,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":u,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:a,string:o},u.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(e)}return pb}var fb,lR;function $6(){if(lR)return fb;lR=1;var t=iS();fb=e,e.displayName="idris",e.aliases=["idr"];function e(n){n.register(t),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return fb}var hb,cR;function z6(){if(cR)return hb;cR=1,hb=t,t.displayName="iecst",t.aliases=[];function t(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return hb}var gb,uR;function j6(){if(uR)return gb;uR=1,gb=t,t.displayName="ignore",t.aliases=["gitignore","hgignore","npmignore"];function t(e){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(e)}return gb}var mb,dR;function H6(){if(dR)return mb;dR=1,mb=t,t.displayName="inform7",t.aliases=[];function t(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return mb}var bb,pR;function G6(){if(pR)return bb;pR=1,bb=t,t.displayName="ini",t.aliases=[];function t(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return bb}var yb,fR;function q6(){if(fR)return yb;fR=1,yb=t,t.displayName="io",t.aliases=[];function t(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}return yb}var vb,hR;function V6(){if(hR)return vb;hR=1,vb=t,t.displayName="j",t.aliases=[];function t(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return vb}var Eb,gR;function aS(){if(gR)return Eb;gR=1,Eb=t,t.displayName="java",t.aliases=[];function t(e){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,i=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(i+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(i+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(e)}return Eb}var wb,mR;function Vd(){if(mR)return wb;mR=1,wb=t,t.displayName="javadoclike",t.aliases=[];function t(e){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function i(o,l){var u="doc-comment",d=n.languages[o];if(d){var p=d[u];if(!p){var f={};f[u]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},d=n.languages.insertBefore(o,"comment",f),p=d[u]}if(p instanceof RegExp&&(p=d[u]={pattern:p}),Array.isArray(p))for(var g=0,m=p.length;g<m;g++)p[g]instanceof RegExp&&(p[g]={pattern:p[g]}),l(p[g]);else l(p)}}function a(o,l){typeof o=="string"&&(o=[o]),o.forEach(function(u){i(u,function(d){d.inside||(d.inside={}),d.inside.rest=l})})}Object.defineProperty(r,"addSupport",{value:a}),r.addSupport(["java","javascript","php"],r)})(e)}return wb}var Sb,bR;function W6(){if(bR)return Sb;bR=1;var t=aS(),e=Vd();Sb=n,n.displayName="javadoc",n.aliases=[];function n(r){r.register(t),r.register(e),function(i){var a=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,o=/#\s*\w+(?:\s*\([^()]*\))?/.source,l=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return o});i.languages.javadoc=i.languages.extend("javadoclike",{}),i.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+l+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:i.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:a,lookbehind:!0,inside:i.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:a,lookbehind:!0,inside:{tag:i.languages.markup.tag,entity:i.languages.markup.entity,code:{pattern:/.+/,inside:i.languages.java,alias:"language-java"}}}}}],tag:i.languages.markup.tag,entity:i.languages.markup.entity}),i.languages.javadoclike.addSupport("java",i.languages.javadoc)}(r)}return Sb}var xb,yR;function Y6(){if(yR)return xb;yR=1,xb=t,t.displayName="javastacktrace",t.aliases=[];function t(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return xb}var Ab,vR;function X6(){if(vR)return Ab;vR=1,Ab=t,t.displayName="jexl",t.aliases=[];function t(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return Ab}var _b,ER;function K6(){if(ER)return _b;ER=1,_b=t,t.displayName="jolie",t.aliases=[];function t(e){e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return _b}var Tb,wR;function Z6(){if(wR)return Tb;wR=1,Tb=t,t.displayName="jq",t.aliases=[];function t(e){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,i=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),a={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(i.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:a},string:{pattern:i,lookbehind:!0,greedy:!0,inside:a},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};a.interpolation.inside.content.inside=o})(e)}return Tb}var Cb,SR;function Q6(){if(SR)return Cb;SR=1,Cb=t,t.displayName="jsExtras",t.aliases=[];function t(e){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(d,p){return RegExp(d.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),p)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var i=["function","function-variable","method","method-variable","property-access"],a=0;a<i.length;a++){var o=i[a],l=n.languages.javascript[o];n.util.type(l)==="RegExp"&&(l=n.languages.javascript[o]={pattern:l});var u=l.inside||{};l.inside=u,u["maybe-class-name"]=/^[A-Z][\s\S]*/}})(e)}return Cb}var Rb,xR;function J6(){if(xR)return Rb;xR=1,Rb=t,t.displayName="jsTemplates",t.aliases=[];function t(e){(function(n){var r=n.languages.javascript["template-string"],i=r.pattern.source,a=r.inside.interpolation,o=a.inside["interpolation-punctuation"],l=a.pattern.source;function u(b,E){if(n.languages[b])return{pattern:RegExp("((?:"+E+")\\s*)"+i),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}n.languages.javascript["template-string"]=[u("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),u("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),u("svg",/\bsvg/.source),u("markdown",/\b(?:markdown|md)/.source),u("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),u("sql",/\bsql/.source),r].filter(Boolean);function d(b,E){return"___"+E.toUpperCase()+"_"+b+"___"}function p(b,E,S){var _={code:b,grammar:E,language:S};return n.hooks.run("before-tokenize",_),_.tokens=n.tokenize(_.code,_.grammar),n.hooks.run("after-tokenize",_),_.tokens}function f(b){var E={};E["interpolation-punctuation"]=o;var S=n.tokenize(b,E);if(S.length===3){var _=[1,1];_.push.apply(_,p(S[1],n.languages.javascript,"javascript")),S.splice.apply(S,_)}return new n.Token("interpolation",S,a.alias,b)}function g(b,E,S){var _=n.tokenize(b,{interpolation:{pattern:RegExp(l),lookbehind:!0}}),w=0,A={},k=_.map(function(L){if(typeof L=="string")return L;for(var F=L.content,j;b.indexOf(j=d(w++,S))!==-1;);return A[j]=F,j}).join(""),R=p(k,E,S),I=Object.keys(A);w=0;function O(L){for(var F=0;F<L.length;F++){if(w>=I.length)return;var j=L[F];if(typeof j=="string"||typeof j.content=="string"){var H=I[w],G=typeof j=="string"?j:j.content,D=G.indexOf(H);if(D!==-1){++w;var z=G.substring(0,D),B=f(A[H]),U=G.substring(D+H.length),M=[];if(z&&M.push(z),M.push(B),U){var q=[U];O(q),M.push.apply(M,q)}typeof j=="string"?(L.splice.apply(L,[F,1].concat(M)),F+=M.length-1):j.content=M}}else{var Y=j.content;Array.isArray(Y)?O(Y):O([Y])}}}return O(R),new n.Token(S,R,"language-"+S,b)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(b){if(!(b.language in m))return;function E(S){for(var _=0,w=S.length;_<w;_++){var A=S[_];if(typeof A!="string"){var k=A.content;if(!Array.isArray(k)){typeof k!="string"&&E([k]);continue}if(A.type==="template-string"){var R=k[1];if(k.length===3&&typeof R!="string"&&R.type==="embedded-code"){var I=v(R),O=R.alias,L=Array.isArray(O)?O[0]:O,F=n.languages[L];if(!F)continue;k[1]=g(I,F,L)}}else E(k)}}}E(b.tokens)});function v(b){return typeof b=="string"?b:Array.isArray(b)?b.map(v).join(""):v(b.content)}})(e)}return Rb}var kb,AR;function oS(){if(AR)return kb;AR=1,kb=t,t.displayName="typescript",t.aliases=["ts"];function t(e){(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(e)}return kb}var Nb,_R;function e8(){if(_R)return Nb;_R=1;var t=Vd(),e=oS();Nb=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(t),r.register(e),function(i){var a=i.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,l="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";i.languages.jsdoc=i.languages.extend("javadoclike",{parameter:{pattern:RegExp(l+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),i.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(l+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:a,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:a.string,number:a.number,boolean:a.boolean,keyword:i.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:a,alias:"language-javascript"}}}}),i.languages.javadoclike.addSupport("javascript",i.languages.jsdoc)}(r)}return Nb}var Ib,TR;function sS(){if(TR)return Ib;TR=1,Ib=t,t.displayName="json",t.aliases=["webmanifest"];function t(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}return Ib}var Ob,CR;function t8(){if(CR)return Ob;CR=1;var t=sS();Ob=e,e.displayName="json5",e.aliases=[];function e(n){n.register(t),function(r){var i=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(i.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:i,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(n)}return Ob}var Lb,RR;function n8(){if(RR)return Lb;RR=1;var t=sS();Lb=e,e.displayName="jsonp",e.aliases=[];function e(n){n.register(t),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return Lb}var Db,kR;function r8(){if(kR)return Db;kR=1,Db=t,t.displayName="jsstacktrace",t.aliases=[];function t(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return Db}var Mb,NR;function QD(){if(NR)return Mb;NR=1,Mb=t,t.displayName="jsx",t.aliases=[];function t(e){(function(n){var r=n.util.clone(n.languages.javascript),i=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function l(p,f){return p=p.replace(/<S>/g,function(){return i}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return o}),RegExp(p,f)}o=l(o).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=l(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:l(/<SPREAD>/.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:l(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var u=function(p){return p?typeof p=="string"?p:typeof p.content=="string"?p.content:p.content.map(u).join(""):""},d=function(p){for(var f=[],g=0;g<p.length;g++){var m=p[g],v=!1;if(typeof m!="string"&&(m.type==="tag"&&m.content[0]&&m.content[0].type==="tag"?m.content[0].content[0].content==="</"?f.length>0&&f[f.length-1].tagName===u(m.content[0].content[1])&&f.pop():m.content[m.content.length-1].content==="/>"||f.push({tagName:u(m.content[0].content[1]),openedBraces:0}):f.length>0&&m.type==="punctuation"&&m.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?f[f.length-1].openedBraces--:v=!0),(v||typeof m=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var b=u(m);g<p.length-1&&(typeof p[g+1]=="string"||p[g+1].type==="plain-text")&&(b+=u(p[g+1]),p.splice(g+1,1)),g>0&&(typeof p[g-1]=="string"||p[g-1].type==="plain-text")&&(b=u(p[g-1])+b,p.splice(g-1,1),g--),p[g]=new n.Token("plain-text",b,null,b)}m.content&&typeof m.content!="string"&&d(m.content)}};n.hooks.add("after-tokenize",function(p){p.language!=="jsx"&&p.language!=="tsx"||d(p.tokens)})})(e)}return Mb}var Pb,IR;function i8(){if(IR)return Pb;IR=1,Pb=t,t.displayName="julia",t.aliases=[];function t(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return Pb}var Fb,OR;function a8(){if(OR)return Fb;OR=1,Fb=t,t.displayName="keepalived",t.aliases=[];function t(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return Fb}var Bb,LR;function o8(){if(LR)return Bb;LR=1,Bb=t,t.displayName="keyman",t.aliases=[];function t(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return Bb}var Ub,DR;function s8(){if(DR)return Ub;DR=1,Ub=t,t.displayName="kotlin",t.aliases=["kt","kts"];function t(e){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(e)}return Ub}var $b,MR;function l8(){if(MR)return $b;MR=1,$b=t,t.displayName="kumir",t.aliases=["kum"];function t(e){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function i(a,o){return RegExp(a.replace(/<nonId>/g,r),o)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:i(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:i(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:i(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:i(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:i(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:i(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:i(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:i(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(e)}return $b}var zb,PR;function c8(){if(PR)return zb;PR=1,zb=t,t.displayName="kusto",t.aliases=[];function t(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return zb}var jb,FR;function u8(){if(FR)return jb;FR=1,jb=t,t.displayName="latex",t.aliases=["tex","context"];function t(e){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,i={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:i,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:i,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(e)}return jb}var Hb,BR;function Wd(){if(BR)return Hb;BR=1;var t=Sn();Hb=e,e.displayName="php",e.aliases=[];function e(n){n.register(t),function(r){var i=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,a=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,l=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,u=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:i,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:a,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:l,punctuation:u};var d={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},p=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:d}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:d}}];r.languages.insertBefore("php","variable",{string:p,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:i,string:p,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:a,number:o,operator:l,punctuation:u}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(f){if(/<\?/.test(f.code)){var g=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(f,"php",g)}}),r.hooks.add("after-tokenize",function(f){r.languages["markup-templating"].tokenizePlaceholders(f,"php")})}(n)}return Hb}var Gb,UR;function d8(){if(UR)return Gb;UR=1;var t=Sn(),e=Wd();Gb=n,n.displayName="latte",n.aliases=[];function n(r){r.register(t),r.register(e),function(i){i.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:i.languages.php}};var a=i.languages.extend("markup",{});i.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:i.languages.php}}}}}},a.tag),i.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var l=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;i.languages["markup-templating"].buildPlaceholders(o,"latte",l),o.grammar=a}}),i.hooks.add("after-tokenize",function(o){i.languages["markup-templating"].tokenizePlaceholders(o,"latte")})}(r)}return Gb}var qb,$R;function p8(){if($R)return qb;$R=1,qb=t,t.displayName="less",t.aliases=[];function t(e){e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return qb}var Vb,zR;function lS(){if(zR)return Vb;zR=1,Vb=t,t.displayName="scheme",t.aliases=[];function t(e){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(i){for(var a in i)i[a]=i[a].replace(/<[\w\s]+>/g,function(o){return"(?:"+i[o].trim()+")"});return i[a]}})(e)}return Vb}var Wb,jR;function f8(){if(jR)return Wb;jR=1;var t=lS();Wb=e,e.displayName="lilypond",e.aliases=[];function e(n){n.register(t),function(r){for(var i=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,a=5,o=0;o<a;o++)i=i.replace(/<expr>/g,function(){return i});i=i.replace(/<expr>/g,/[^\s\S]/.source);var l=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return i}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};l["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=l,r.languages.ly=l}(n)}return Wb}var Yb,HR;function h8(){if(HR)return Yb;HR=1;var t=Sn();Yb=e,e.displayName="liquid",e.aliases=[];function e(n){n.register(t),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var i=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,a=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",i,function(o){var l=/^\{%-?\s*(\w+)/.exec(o);if(l){var u=l[1];if(u==="raw"&&!a)return a=!0,!0;if(u==="endraw")return a=!1,!0}return!a})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return Yb}var Xb,GR;function g8(){if(GR)return Xb;GR=1,Xb=t,t.displayName="lisp",t.aliases=[];function t(e){(function(n){function r(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function i(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var a=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+a,l="(\\()",u="(?=\\))",d="(?=\\s)",p=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,f={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+a+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+a),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+a),alias:"property"},splice:{pattern:RegExp(",@?"+a),alias:["symbol","variable"]},keyword:[{pattern:RegExp(l+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+d),lookbehind:!0},{pattern:RegExp(l+"(?:append|by|collect|concat|do|finally|for|in|return)"+d),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:i(/nil|t/.source),lookbehind:!0},number:{pattern:i(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(l+"def(?:const|custom|group|var)\\s+"+a),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(a)}},defun:{pattern:RegExp(l+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+a+/\s+\(/.source+p+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+a),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(l+"lambda\\s+\\(\\s*(?:&?"+a+"(?:\\s+&?"+a+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(l+a),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},g={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+a+/\s+(?=\S)/.source+p+/\)/.source),inside:f},argument:{pattern:RegExp(/(^|[\s(])/.source+a),lookbehind:!0,alias:"variable"},rest:f},m="\\S+(?:\\s+\\S+)*",v={pattern:RegExp(l+p+u),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:g},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:g},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:g},argument:{pattern:RegExp(a),alias:"variable"},punctuation:/[()]/}};f.lambda.inside.arguments=v,f.defun.inside.arguments=n.util.clone(v),f.defun.inside.arguments.inside.sublist=v,n.languages.lisp=f,n.languages.elisp=f,n.languages.emacs=f,n.languages["emacs-lisp"]=f})(e)}return Xb}var Kb,qR;function m8(){if(qR)return Kb;qR=1,Kb=t,t.displayName="livescript",t.aliases=[];function t(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}return Kb}var Zb,VR;function b8(){if(VR)return Zb;VR=1,Zb=t,t.displayName="llvm",t.aliases=[];function t(e){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}return Zb}var Qb,WR;function y8(){if(WR)return Qb;WR=1,Qb=t,t.displayName="log",t.aliases=[];function t(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return Qb}var Jb,YR;function v8(){if(YR)return Jb;YR=1,Jb=t,t.displayName="lolcode",t.aliases=[];function t(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return Jb}var ey,XR;function E8(){if(XR)return ey;XR=1,ey=t,t.displayName="magma",t.aliases=[];function t(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return ey}var ty,KR;function w8(){if(KR)return ty;KR=1,ty=t,t.displayName="makefile",t.aliases=[];function t(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return ty}var ny,ZR;function S8(){if(ZR)return ny;ZR=1,ny=t,t.displayName="markdown",t.aliases=["md"];function t(e){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function i(g){return g=g.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+g+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+l+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+l+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:i(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:i(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:i(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:i(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(g){["url","bold","italic","strike","code-snippet"].forEach(function(m){g!==m&&(n.languages.markdown[g].inside.content.inside[m]=n.languages.markdown[m])})}),n.hooks.add("after-tokenize",function(g){if(g.language!=="markdown"&&g.language!=="md")return;function m(v){if(!(!v||typeof v=="string"))for(var b=0,E=v.length;b<E;b++){var S=v[b];if(S.type!=="code"){m(S.content);continue}var _=S.content[1],w=S.content[3];if(_&&w&&_.type==="code-language"&&w.type==="code-block"&&typeof _.content=="string"){var A=_.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");A=(/[a-z][\w-]*/i.exec(A)||[""])[0].toLowerCase();var k="language-"+A;w.alias?typeof w.alias=="string"?w.alias=[w.alias,k]:w.alias.push(k):w.alias=[k]}}}m(g.tokens)}),n.hooks.add("wrap",function(g){if(g.type==="code-block"){for(var m="",v=0,b=g.classes.length;v<b;v++){var E=g.classes[v],S=/language-(.+)/.exec(E);if(S){m=S[1];break}}var _=n.languages[m];if(_)g.content=n.highlight(f(g.content.value),_,m);else if(m&&m!=="none"&&n.plugins.autoloader){var w="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);g.attributes.id=w,n.plugins.autoloader.loadLanguages(m,function(){var A=document.getElementById(w);A&&(A.innerHTML=n.highlight(A.textContent,n.languages[m],m))})}}});var u=RegExp(n.languages.markup.tag.pattern.source,"gi"),d={amp:"&",lt:"<",gt:">",quot:'"'},p=String.fromCodePoint||String.fromCharCode;function f(g){var m=g.replace(u,"");return m=m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(v,b){if(b=b.toLowerCase(),b[0]==="#"){var E;return b[1]==="x"?E=parseInt(b.slice(2),16):E=Number(b.slice(1)),p(E)}else{var S=d[b];return S||v}}),m}n.languages.md=n.languages.markdown})(e)}return ny}var ry,QR;function x8(){if(QR)return ry;QR=1,ry=t,t.displayName="matlab",t.aliases=[];function t(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return ry}var iy,JR;function A8(){if(JR)return iy;JR=1,iy=t,t.displayName="maxscript",t.aliases=[];function t(e){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}return iy}var ay,ek;function _8(){if(ek)return ay;ek=1,ay=t,t.displayName="mel",t.aliases=[];function t(e){e.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},e.languages.mel.code.inside.rest=e.languages.mel}return ay}var oy,tk;function T8(){if(tk)return oy;tk=1,oy=t,t.displayName="mermaid",t.aliases=[];function t(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return oy}var sy,nk;function C8(){if(nk)return sy;nk=1,sy=t,t.displayName="mizar",t.aliases=[];function t(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return sy}var ly,rk;function R8(){if(rk)return ly;rk=1,ly=t,t.displayName="mongodb",t.aliases=[];function t(e){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],i=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(o){return o.replace("$","\\$")});var a="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+a+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+i.join("|")+")\\b"),alias:"keyword"}})})(e)}return ly}var cy,ik;function k8(){if(ik)return cy;ik=1,cy=t,t.displayName="monkey",t.aliases=[];function t(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return cy}var uy,ak;function N8(){if(ak)return uy;ak=1,uy=t,t.displayName="moonscript",t.aliases=["moon"];function t(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}return uy}var dy,ok;function I8(){if(ok)return dy;ok=1,dy=t,t.displayName="n1ql",t.aliases=[];function t(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return dy}var py,sk;function O8(){if(sk)return py;sk=1,py=t,t.displayName="n4js",t.aliases=["n4jsd"];function t(e){e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}return py}var fy,lk;function L8(){if(lk)return fy;lk=1,fy=t,t.displayName="nand2tetrisHdl",t.aliases=[];function t(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return fy}var hy,ck;function D8(){if(ck)return hy;ck=1,hy=t,t.displayName="naniscript",t.aliases=[];function t(e){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,i={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:i}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:i},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(l){var u=l.tokens;u.forEach(function(d){if(typeof d!="string"&&d.type==="generic-text"){var p=o(d);a(p)||(d.type="bad-line",d.content=p)}})});function a(l){for(var u="[]{}",d=[],p=0;p<l.length;p++){var f=l[p],g=u.indexOf(f);if(g!==-1){if(g%2===0)d.push(g+1);else if(d.pop()!==g)return!1}}return d.length===0}function o(l){return typeof l=="string"?l:Array.isArray(l)?l.map(o).join(""):o(l.content)}})(e)}return hy}var gy,uk;function M8(){if(uk)return gy;uk=1,gy=t,t.displayName="nasm",t.aliases=[];function t(e){e.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}return gy}var my,dk;function P8(){if(dk)return my;dk=1,my=t,t.displayName="neon",t.aliases=[];function t(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return my}var by,pk;function F8(){if(pk)return by;pk=1,by=t,t.displayName="nevod",t.aliases=[];function t(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return by}var yy,fk;function B8(){if(fk)return yy;fk=1,yy=t,t.displayName="nginx",t.aliases=[];function t(e){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(e)}return yy}var vy,hk;function U8(){if(hk)return vy;hk=1,vy=t,t.displayName="nim",t.aliases=[];function t(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return vy}var Ey,gk;function $8(){if(gk)return Ey;gk=1,Ey=t,t.displayName="nix",t.aliases=[];function t(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}return Ey}var wy,mk;function z8(){if(mk)return wy;mk=1,wy=t,t.displayName="nsis",t.aliases=[];function t(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return wy}var Sy,bk;function j8(){if(bk)return Sy;bk=1;var t=Ha();Sy=e,e.displayName="objectivec",e.aliases=["objc"];function e(n){n.register(t),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return Sy}var xy,yk;function H8(){if(yk)return xy;yk=1,xy=t,t.displayName="ocaml",t.aliases=[];function t(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return xy}var Ay,vk;function G8(){if(vk)return Ay;vk=1;var t=Ha();Ay=e,e.displayName="opencl",e.aliases=[];function e(n){n.register(t),function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var i={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",i),r.languages.cpp&&(i["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",i))}(n)}return Ay}var _y,Ek;function q8(){if(Ek)return _y;Ek=1,_y=t,t.displayName="openqasm",t.aliases=["qasm"];function t(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}return _y}var Ty,wk;function V8(){if(wk)return Ty;wk=1,Ty=t,t.displayName="oz",t.aliases=[];function t(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return Ty}var Cy,Sk;function W8(){if(Sk)return Cy;Sk=1,Cy=t,t.displayName="parigp",t.aliases=[];function t(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return Cy}var Ry,xk;function Y8(){if(xk)return Ry;xk=1,Ry=t,t.displayName="parser",t.aliases=[];function t(e){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(e)}return Ry}var ky,Ak;function X8(){if(Ak)return ky;Ak=1,ky=t,t.displayName="pascal",t.aliases=["objectpascal"];function t(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}return ky}var Ny,_k;function K8(){if(_k)return Ny;_k=1,Ny=t,t.displayName="pascaligo",t.aliases=[];function t(e){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,i=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return r}),a=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return i}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return i}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return i})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(l,u){return l[u]=a[u],l},{});a["class-name"].forEach(function(l){l.inside=o})})(e)}return Ny}var Iy,Tk;function Z8(){if(Tk)return Iy;Tk=1,Iy=t,t.displayName="pcaxis",t.aliases=["px"];function t(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}return Iy}var Oy,Ck;function Q8(){if(Ck)return Oy;Ck=1,Oy=t,t.displayName="peoplecode",t.aliases=["pcode"];function t(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}return Oy}var Ly,Rk;function J8(){if(Rk)return Ly;Rk=1,Ly=t,t.displayName="perl",t.aliases=[];function t(e){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}return Ly}var Dy,kk;function eY(){if(kk)return Dy;kk=1;var t=Wd();Dy=e,e.displayName="phpExtras",e.aliases=[];function e(n){n.register(t),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return Dy}var My,Nk;function tY(){if(Nk)return My;Nk=1;var t=Wd(),e=Vd();My=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(t),r.register(e),function(i){var a=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;i.languages.phpdoc=i.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+a+"\\s+)?)\\$\\w+"),lookbehind:!0}}),i.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+a),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),i.languages.javadoclike.addSupport("php",i.languages.phpdoc)}(r)}return My}var Py,Ik;function nY(){if(Ik)return Py;Ik=1;var t=nS();Py=e,e.displayName="plsql",e.aliases=[];function e(n){n.register(t),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return Py}var Fy,Ok;function rY(){if(Ok)return Fy;Ok=1,Fy=t,t.displayName="powerquery",t.aliases=[];function t(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}return Fy}var By,Lk;function iY(){if(Lk)return By;Lk=1,By=t,t.displayName="powershell",t.aliases=[];function t(e){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(e)}return By}var Uy,Dk;function aY(){if(Dk)return Uy;Dk=1,Uy=t,t.displayName="processing",t.aliases=[];function t(e){e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return Uy}var $y,Mk;function oY(){if(Mk)return $y;Mk=1,$y=t,t.displayName="prolog",t.aliases=[];function t(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return $y}var zy,Pk;function sY(){if(Pk)return zy;Pk=1,zy=t,t.displayName="promql",t.aliases=[];function t(e){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],i=["on","ignoring","group_right","group_left","by","without"],a=["offset"],o=r.concat(i,a);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+i.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}return zy}var jy,Fk;function lY(){if(Fk)return jy;Fk=1,jy=t,t.displayName="properties",t.aliases=[];function t(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return jy}var Hy,Bk;function cY(){if(Bk)return Hy;Bk=1,Hy=t,t.displayName="protobuf",t.aliases=[];function t(e){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(e)}return Hy}var Gy,Uk;function uY(){if(Uk)return Gy;Uk=1,Gy=t,t.displayName="psl",t.aliases=[];function t(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return Gy}var qy,$k;function dY(){if($k)return qy;$k=1,qy=t,t.displayName="pug",t.aliases=[];function t(e){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,i=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],a={},o=0,l=i.length;o<l;o++){var u=i[o];u=typeof u=="string"?{filter:u,language:u}:u,n.languages[u.language]&&(a["filter-"+u.filter]={pattern:RegExp(r.replace("<filter_name>",function(){return u.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[u.language,"language-"+u.language],inside:n.languages[u.language]}}})}n.languages.insertBefore("pug","filter",a)})(e)}return qy}var Vy,zk;function pY(){if(zk)return Vy;zk=1,Vy=t,t.displayName="puppet",t.aliases=[];function t(e){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(e)}return Vy}var Wy,jk;function fY(){if(jk)return Wy;jk=1,Wy=t,t.displayName="pure",t.aliases=[];function t(e){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],i=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(a){var o=a;if(typeof a!="string"&&(o=a.alias,a=a.lang),n.languages[o]){var l={};l["inline-lang-"+o]={pattern:RegExp(i.replace("<lang>",a.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},l["inline-lang-"+o].inside.rest=n.util.clone(n.languages[o]),n.languages.insertBefore("pure","inline-lang",l)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(e)}return Wy}var Yy,Hk;function hY(){if(Hk)return Yy;Hk=1,Yy=t,t.displayName="purebasic",t.aliases=[];function t(e){e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}return Yy}var Xy,Gk;function gY(){if(Gk)return Xy;Gk=1;var t=iS();Xy=e,e.displayName="purescript",e.aliases=["purs"];function e(n){n.register(t),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return Xy}var Ky,qk;function mY(){if(qk)return Ky;qk=1,Ky=t,t.displayName="python",t.aliases=["py"];function t(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}return Ky}var Zy,Vk;function bY(){if(Vk)return Zy;Vk=1,Zy=t,t.displayName="q",t.aliases=[];function t(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return Zy}var Qy,Wk;function yY(){if(Wk)return Qy;Wk=1,Qy=t,t.displayName="qml",t.aliases=[];function t(e){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,i=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,a=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return r}).replace(/<comment>/g,function(){return i}),o=0;o<2;o++)a=a.replace(/<expr>/g,function(){return a});a=a.replace(/<expr>/g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(e)}return Qy}var Jy,Yk;function vY(){if(Yk)return Jy;Yk=1,Jy=t,t.displayName="qore",t.aliases=[];function t(e){e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return Jy}var ev,Xk;function EY(){if(Xk)return ev;Xk=1,ev=t,t.displayName="qsharp",t.aliases=["qs"];function t(e){(function(n){function r(v,b){return v.replace(/<<(\d+)>>/g,function(E,S){return"(?:"+b[+S]+")"})}function i(v,b,E){return RegExp(r(v,b),"")}function a(v,b){for(var E=0;E<b;E++)v=v.replace(/<<self>>/g,function(){return"(?:"+v+")"});return v.replace(/<<self>>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function l(v){return"\\b(?:"+v.trim().replace(/ /g,"|")+")\\b"}var u=RegExp(l(o.type+" "+o.other)),d=/\b[A-Za-z_]\w*\b/.source,p=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[d]),f={keyword:u,punctuation:/[<>()?,.:[\]]/},g=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:i(/(^|[^$\\])<<0>>/.source,[g]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:i(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[p]),lookbehind:!0,inside:f},{pattern:i(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[p]),lookbehind:!0,inside:f}],keyword:u,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=a(r(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[g]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:i(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:i(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(e),e.languages.qs=e.languages.qsharp}return ev}var tv,Kk;function wY(){if(Kk)return tv;Kk=1,tv=t,t.displayName="r",t.aliases=[];function t(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return tv}var nv,Zk;function SY(){if(Zk)return nv;Zk=1;var t=lS();nv=e,e.displayName="racket",e.aliases=["rkt"];function e(n){n.register(t),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return nv}var rv,Qk;function xY(){if(Qk)return rv;Qk=1,rv=t,t.displayName="reason",t.aliases=[];function t(e){e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}return rv}var iv,Jk;function AY(){if(Jk)return iv;Jk=1,iv=t,t.displayName="regex",t.aliases=[];function t(e){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},i=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},l="(?:[^\\\\-]|"+i.source+")",u=RegExp(l+"-"+l),d={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:u,inside:{escape:i,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":o,escape:i}},"special-escape":r,"char-set":a,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":d}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:i,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":d}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}return iv}var av,eN;function _Y(){if(eN)return av;eN=1,av=t,t.displayName="rego",t.aliases=[];function t(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return av}var ov,tN;function TY(){if(tN)return ov;tN=1,ov=t,t.displayName="renpy",t.aliases=["rpy"];function t(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}return ov}var sv,nN;function CY(){if(nN)return sv;nN=1,sv=t,t.displayName="rest",t.aliases=[];function t(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return sv}var lv,rN;function RY(){if(rN)return lv;rN=1,lv=t,t.displayName="rip",t.aliases=[];function t(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return lv}var cv,iN;function kY(){if(iN)return cv;iN=1,cv=t,t.displayName="roboconf",t.aliases=[];function t(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return cv}var uv,aN;function NY(){if(aN)return uv;aN=1,uv=t,t.displayName="robotframework",t.aliases=[];function t(e){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},i={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function a(d,p){var f={};f["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var g in p)f[g]=p[g];return f.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},f.variable=i,f.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return d}),"im"),alias:"section",inside:f}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},l={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:i}},u={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:i}};n.languages.robotframework={settings:a("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:a("Variables"),"test-cases":a("Test Cases",{"test-name":l,documentation:o,property:u}),keywords:a("Keywords",{"keyword-name":l,documentation:o,property:u}),tasks:a("Tasks",{"task-name":l,documentation:o,property:u}),comment:r},n.languages.robot=n.languages.robotframework})(e)}return uv}var dv,oN;function IY(){if(oN)return dv;oN=1,dv=t,t.displayName="rust",t.aliases=[];function t(e){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,i=0;i<2;i++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(e)}return dv}var pv,sN;function OY(){if(sN)return pv;sN=1,pv=t,t.displayName="sas",t.aliases=[];function t(e){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,i=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,a={pattern:RegExp(r+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},l={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},u={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},d=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],p={pattern:RegExp(r),greedy:!0},f=/[$%@.(){}\[\];,\\]/,g={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:g,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:i,"numeric-constant":a,punctuation:f,string:p},v={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},E={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},S={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},_=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,w={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return _}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return _}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:d,function:g,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:i,"numeric-constant":a,punctuation:f,string:p}},A={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":E,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:i,"numeric-constant":a,punctuation:f,string:p}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:A,"submit-statement":S,"global-statements":E,number:i,"numeric-constant":a,punctuation:f,string:p}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:A,"submit-statement":S,"global-statements":E,number:i,"numeric-constant":a,punctuation:f,string:p}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":w,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:u,keyword:A,function:g,format:v,altformat:b,"global-statements":E,number:i,"numeric-constant":a,punctuation:f,string:p}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,inside:m},"macro-keyword":l,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":l,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:f}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:d,number:i,"numeric-constant":a}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":w,comment:d,function:g,format:v,altformat:b,"numeric-constant":a,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:p,step:u,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:i,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:f}})(e)}return pv}var fv,lN;function LY(){if(lN)return fv;lN=1,fv=t,t.displayName="sass",t.aliases=[];function t(e){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,i=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:i}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:i,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(e)}return fv}var hv,cN;function DY(){if(cN)return hv;cN=1;var t=aS();hv=e,e.displayName="scala",e.aliases=[];function e(n){n.register(t),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return hv}var gv,uN;function MY(){if(uN)return gv;uN=1,gv=t,t.displayName="scss",t.aliases=[];function t(e){e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}return gv}var mv,dN;function PY(){if(dN)return mv;dN=1;var t=XD();mv=e,e.displayName="shellSession",e.aliases=[];function e(n){n.register(t),function(r){var i=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return i}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]}(n)}return mv}var bv,pN;function FY(){if(pN)return bv;pN=1,bv=t,t.displayName="smali",t.aliases=[];function t(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return bv}var yv,fN;function BY(){if(fN)return yv;fN=1,yv=t,t.displayName="smalltalk",t.aliases=[];function t(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return yv}var vv,hN;function UY(){if(hN)return vv;hN=1;var t=Sn();vv=e,e.displayName="smarty",e.aliases=[];function e(n){n.register(t),function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var i=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,a=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return i.source}),"g");r.hooks.add("before-tokenize",function(o){var l="{literal}",u="{/literal}",d=!1;r.languages["markup-templating"].buildPlaceholders(o,"smarty",a,function(p){return p===u&&(d=!1),d?!1:(p===l&&(d=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})}(n)}return vv}var Ev,gN;function $Y(){if(gN)return Ev;gN=1,Ev=t,t.displayName="sml",t.aliases=["smlnj"];function t(e){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(e)}return Ev}var wv,mN;function zY(){if(mN)return wv;mN=1,wv=t,t.displayName="solidity",t.aliases=["sol"];function t(e){e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}return wv}var Sv,bN;function jY(){if(bN)return Sv;bN=1,Sv=t,t.displayName="solutionFile",t.aliases=[];function t(e){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(e)}return Sv}var xv,yN;function HY(){if(yN)return xv;yN=1;var t=Sn();xv=e,e.displayName="soy",e.aliases=[];function e(n){n.register(t),function(r){var i=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,a=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:i,greedy:!0},number:a,punctuation:/[\[\].?]/}},string:{pattern:i,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:a,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(o){var l=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,u="{literal}",d="{/literal}",p=!1;r.languages["markup-templating"].buildPlaceholders(o,"soy",l,function(f){return f===d&&(p=!1),p?!1:(f===u&&(p=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"soy")})}(n)}return xv}var Av,vN;function JD(){if(vN)return Av;vN=1,Av=t,t.displayName="turtle",t.aliases=[];function t(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}return Av}var _v,EN;function GY(){if(EN)return _v;EN=1;var t=JD();_v=e,e.displayName="sparql",e.aliases=["rq"];function e(n){n.register(t),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return _v}var Tv,wN;function qY(){if(wN)return Tv;wN=1,Tv=t,t.displayName="splunkSpl",t.aliases=[];function t(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return Tv}var Cv,SN;function VY(){if(SN)return Cv;SN=1,Cv=t,t.displayName="sqf",t.aliases=[];function t(e){e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}return Cv}var Rv,xN;function WY(){if(xN)return Rv;xN=1,Rv=t,t.displayName="squirrel",t.aliases=[];function t(e){e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return Rv}var kv,AN;function YY(){if(AN)return kv;AN=1,kv=t,t.displayName="stan",t.aliases=[];function t(e){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(e)}return kv}var Nv,_N;function XY(){if(_N)return Nv;_N=1,Nv=t,t.displayName="stylus",t.aliases=[];function t(e){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},a={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:i,punctuation:/[{}()\[\];:,]/};a.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:a}},a.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:a}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:a}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:a}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:a}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:a.interpolation}},rest:a}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:a.interpolation,comment:a.comment,punctuation:/[{},]/}},func:a.func,string:a.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:a.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}return Nv}var Iv,TN;function KY(){if(TN)return Iv;TN=1,Iv=t,t.displayName="swift",t.aliases=[];function t(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=e.languages.swift})}return Iv}var Ov,CN;function ZY(){if(CN)return Ov;CN=1,Ov=t,t.displayName="systemd",t.aliases=[];function t(e){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},i=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+i+`|(?=[^"\r
269
- ]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+i+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+i),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}return Ov}var Lv,RN;function cS(){if(RN)return Lv;RN=1,Lv=t,t.displayName="t4Templating",t.aliases=[];function t(e){(function(n){function r(a,o,l){return{pattern:RegExp("<#"+a+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+a+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:l}}}}function i(a){var o=n.languages[a],l="language-"+a;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",o,l),"class-feature":r("\\+",o,l),standard:r("",o,l)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:i})})(e)}return Lv}var Dv,kN;function QY(){if(kN)return Dv;kN=1;var t=cS(),e=Gd();Dv=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(t),r.register(e),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return Dv}var Mv,NN;function eM(){if(NN)return Mv;NN=1;var t=KD();Mv=e,e.displayName="vbnet",e.aliases=[];function e(n){n.register(t),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return Mv}var Pv,IN;function JY(){if(IN)return Pv;IN=1;var t=cS(),e=eM();Pv=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(t),r.register(e),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return Pv}var Fv,ON;function tM(){if(ON)return Fv;ON=1,Fv=t,t.displayName="yaml",t.aliases=["yml"];function t(e){(function(n){var r=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+i.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+i.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(d,p){p=(p||"").replace(/m/g,"")+"m";var f=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return d});return RegExp(f,p)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(l),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(e)}return Fv}var Bv,LN;function eX(){if(LN)return Bv;LN=1;var t=tM();Bv=e,e.displayName="tap",e.aliases=[];function e(n){n.register(t),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return Bv}var Uv,DN;function tX(){if(DN)return Uv;DN=1,Uv=t,t.displayName="tcl",t.aliases=[];function t(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return Uv}var $v,MN;function nX(){if(MN)return $v;MN=1,$v=t,t.displayName="textile",t.aliases=[];function t(e){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,i=/\)|\((?![^|()\n]+\))/.source;function a(g,m){return RegExp(g.replace(/<MOD>/g,function(){return"(?:"+r+")"}).replace(/<PAR>/g,function(){return"(?:"+i+")"}),m||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},l=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:a(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:a(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:a(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:a(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:a(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:a(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:a(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:a(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:a(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:a(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:a(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:a(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:a(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:a(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:a(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:a(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:a(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:a(/(^")<MOD>+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:a(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:a(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:a(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),u=l.phrase.inside,d={inline:u.inline,link:u.link,image:u.image,footnote:u.footnote,acronym:u.acronym,mark:u.mark};l.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var p=u.inline.inside;p.bold.inside=d,p.italic.inside=d,p.inserted.inside=d,p.deleted.inside=d,p.span.inside=d;var f=u.table.inside;f.inline=d.inline,f.link=d.link,f.image=d.image,f.footnote=d.footnote,f.acronym=d.acronym,f.mark=d.mark})(e)}return $v}var zv,PN;function rX(){if(PN)return zv;PN=1,zv=t,t.displayName="toml",t.aliases=[];function t(e){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function i(a){return a.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(i(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(i(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}return zv}var jv,FN;function iX(){if(FN)return jv;FN=1,jv=t,t.displayName="tremor",t.aliases=[];function t(e){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(e)}return jv}var Hv,BN;function aX(){if(BN)return Hv;BN=1;var t=QD(),e=oS();Hv=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(t),r.register(e),function(i){var a=i.util.clone(i.languages.typescript);i.languages.tsx=i.languages.extend("jsx",a),delete i.languages.tsx.parameter,delete i.languages.tsx["literal-property"];var o=i.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0}(r)}return Hv}var Gv,UN;function oX(){if(UN)return Gv;UN=1;var t=Sn();Gv=e,e.displayName="tt2",e.aliases=[];function e(n){n.register(t),function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(i){var a=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(i,"tt2",a)}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"tt2")})}(n)}return Gv}var qv,$N;function sX(){if($N)return qv;$N=1;var t=Sn();qv=e,e.displayName="twig",e.aliases=[];function e(n){n.register(t),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var i=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",i)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return qv}var Vv,zN;function lX(){if(zN)return Vv;zN=1,Vv=t,t.displayName="typoscript",t.aliases=["tsconfig"];function t(e){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(e)}return Vv}var Wv,jN;function cX(){if(jN)return Wv;jN=1,Wv=t,t.displayName="unrealscript",t.aliases=["uc","uscript"];function t(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}return Wv}var Yv,HN;function uX(){if(HN)return Yv;HN=1,Yv=t,t.displayName="uorazor",t.aliases=[];function t(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return Yv}var Xv,GN;function dX(){if(GN)return Xv;GN=1,Xv=t,t.displayName="uri",t.aliases=["url"];function t(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}return Xv}var Kv,qN;function pX(){if(qN)return Kv;qN=1,Kv=t,t.displayName="v",t.aliases=[];function t(e){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(e)}return Kv}var Zv,VN;function fX(){if(VN)return Zv;VN=1,Zv=t,t.displayName="vala",t.aliases=[];function t(e){e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return Zv}var Qv,WN;function hX(){if(WN)return Qv;WN=1,Qv=t,t.displayName="velocity",t.aliases=[];function t(e){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(e)}return Qv}var Jv,YN;function gX(){if(YN)return Jv;YN=1,Jv=t,t.displayName="verilog",t.aliases=[];function t(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return Jv}var eE,XN;function mX(){if(XN)return eE;XN=1,eE=t,t.displayName="vhdl",t.aliases=[];function t(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return eE}var tE,KN;function bX(){if(KN)return tE;KN=1,tE=t,t.displayName="vim",t.aliases=[];function t(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return tE}var nE,ZN;function yX(){if(ZN)return nE;ZN=1,nE=t,t.displayName="visualBasic",t.aliases=[];function t(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}return nE}var rE,QN;function vX(){if(QN)return rE;QN=1,rE=t,t.displayName="warpscript",t.aliases=[];function t(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return rE}var iE,JN;function EX(){if(JN)return iE;JN=1,iE=t,t.displayName="wasm",t.aliases=[];function t(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return iE}var aE,eI;function wX(){if(eI)return aE;eI=1,aE=t,t.displayName="webIdl",t.aliases=[];function t(e){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,i="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,a={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+i),lookbehind:!0,inside:a},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+i),lookbehind:!0,inside:a},{pattern:RegExp(/(\btypedef\b\s*)/.source+i),lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(i+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:a}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in n.languages["web-idl"])o!=="class-name"&&(a[o]=n.languages["web-idl"][o]);n.languages.webidl=n.languages["web-idl"]})(e)}return aE}var oE,tI;function SX(){if(tI)return oE;tI=1,oE=t,t.displayName="wiki",t.aliases=[];function t(e){e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}return oE}var sE,nI;function xX(){if(nI)return sE;nI=1,sE=t,t.displayName="wolfram",t.aliases=["mathematica","wl","nb"];function t(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}return sE}var lE,rI;function AX(){if(rI)return lE;rI=1,lE=t,t.displayName="wren",t.aliases=[];function t(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return lE}var cE,iI;function _X(){if(iI)return cE;iI=1,cE=t,t.displayName="xeora",t.aliases=["xeoracube"];function t(e){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(e)}return cE}var uE,aI;function TX(){if(aI)return uE;aI=1,uE=t,t.displayName="xmlDoc",t.aliases=[];function t(e){(function(n){function r(l,u){n.languages[l]&&n.languages.insertBefore(l,"comment",{"doc-comment":u})}var i=n.languages.markup.tag,a={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:i}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:i}};r("csharp",a),r("fsharp",a),r("vbnet",o)})(e)}return uE}var dE,oI;function CX(){if(oI)return dE;oI=1,dE=t,t.displayName="xojo",t.aliases=[];function t(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return dE}var pE,sI;function RX(){if(sI)return pE;sI=1,pE=t,t.displayName="xquery",t.aliases=[];function t(e){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(a){return typeof a=="string"?a:typeof a.content=="string"?a.content:a.content.map(r).join("")},i=function(a){for(var o=[],l=0;l<a.length;l++){var u=a[l],d=!1;if(typeof u!="string"&&(u.type==="tag"&&u.content[0]&&u.content[0].type==="tag"?u.content[0].content[0].content==="</"?o.length>0&&o[o.length-1].tagName===r(u.content[0].content[1])&&o.pop():u.content[u.content.length-1].content==="/>"||o.push({tagName:r(u.content[0].content[1]),openedBraces:0}):o.length>0&&u.type==="punctuation"&&u.content==="{"&&(!a[l+1]||a[l+1].type!=="punctuation"||a[l+1].content!=="{")&&(!a[l-1]||a[l-1].type!=="plain-text"||a[l-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&u.type==="punctuation"&&u.content==="}"?o[o.length-1].openedBraces--:u.type!=="comment"&&(d=!0)),(d||typeof u=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var p=r(u);l<a.length-1&&(typeof a[l+1]=="string"||a[l+1].type==="plain-text")&&(p+=r(a[l+1]),a.splice(l+1,1)),l>0&&(typeof a[l-1]=="string"||a[l-1].type==="plain-text")&&(p=r(a[l-1])+p,a.splice(l-1,1),l--),/^\s+$/.test(p)?a[l]=p:a[l]=new n.Token("plain-text",p,null,p)}u.content&&typeof u.content!="string"&&i(u.content)}};n.hooks.add("after-tokenize",function(a){a.language==="xquery"&&i(a.tokens)})})(e)}return pE}var fE,lI;function kX(){if(lI)return fE;lI=1,fE=t,t.displayName="yang",t.aliases=[];function t(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return fE}var hE,cI;function NX(){if(cI)return hE;cI=1,hE=t,t.displayName="zig",t.aliases=[];function t(e){(function(n){function r(p){return function(){return p}}var i=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,a="\\b(?!"+i.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,l=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,r(o)),u=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,r(a)),d="(?!\\s)(?:!?\\s*(?:"+l+"\\s*)*"+u+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,r(d)).replace(/<ALIGN>/g,r(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,r(d)).replace(/<ALIGN>/g,r(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:i,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(p){p.inside===null&&(p.inside=n.languages.zig)})})(e)}return hE}var gE,uI;function IX(){if(uI)return gE;uI=1;var t=WW();return gE=t,t.register(XW()),t.register(KW()),t.register(ZW()),t.register(QW()),t.register(JW()),t.register(e5()),t.register(t5()),t.register(n5()),t.register(r5()),t.register(i5()),t.register(a5()),t.register(o5()),t.register(s5()),t.register(l5()),t.register(c5()),t.register(u5()),t.register(d5()),t.register(p5()),t.register(f5()),t.register(h5()),t.register(g5()),t.register(m5()),t.register(XD()),t.register(KD()),t.register(b5()),t.register(y5()),t.register(v5()),t.register(E5()),t.register(w5()),t.register(S5()),t.register(x5()),t.register(A5()),t.register(_5()),t.register(T5()),t.register(Ha()),t.register(C5()),t.register(R5()),t.register(k5()),t.register(N5()),t.register(I5()),t.register(O5()),t.register(L5()),t.register(D5()),t.register(M5()),t.register(rS()),t.register(P5()),t.register(Gd()),t.register(F5()),t.register(B5()),t.register(U5()),t.register($5()),t.register(z5()),t.register(j5()),t.register(H5()),t.register(G5()),t.register(q5()),t.register(V5()),t.register(W5()),t.register(Y5()),t.register(X5()),t.register(K5()),t.register(Z5()),t.register(Q5()),t.register(J5()),t.register(e6()),t.register(t6()),t.register(n6()),t.register(r6()),t.register(i6()),t.register(a6()),t.register(o6()),t.register(s6()),t.register(l6()),t.register(c6()),t.register(u6()),t.register(d6()),t.register(p6()),t.register(f6()),t.register(h6()),t.register(g6()),t.register(m6()),t.register(b6()),t.register(y6()),t.register(v6()),t.register(E6()),t.register(w6()),t.register(S6()),t.register(x6()),t.register(A6()),t.register(_6()),t.register(T6()),t.register(C6()),t.register(R6()),t.register(k6()),t.register(iS()),t.register(N6()),t.register(I6()),t.register(O6()),t.register(L6()),t.register(D6()),t.register(M6()),t.register(P6()),t.register(F6()),t.register(B6()),t.register(U6()),t.register($6()),t.register(z6()),t.register(j6()),t.register(H6()),t.register(G6()),t.register(q6()),t.register(V6()),t.register(aS()),t.register(W6()),t.register(Vd()),t.register(Y6()),t.register(X6()),t.register(K6()),t.register(Z6()),t.register(Q6()),t.register(J6()),t.register(e8()),t.register(sS()),t.register(t8()),t.register(n8()),t.register(r8()),t.register(QD()),t.register(i8()),t.register(a8()),t.register(o8()),t.register(s8()),t.register(l8()),t.register(c8()),t.register(u8()),t.register(d8()),t.register(p8()),t.register(f8()),t.register(h8()),t.register(g8()),t.register(m8()),t.register(b8()),t.register(y8()),t.register(v8()),t.register(ZD()),t.register(E8()),t.register(w8()),t.register(S8()),t.register(Sn()),t.register(x8()),t.register(A8()),t.register(_8()),t.register(T8()),t.register(C8()),t.register(R8()),t.register(k8()),t.register(N8()),t.register(I8()),t.register(O8()),t.register(L8()),t.register(D8()),t.register(M8()),t.register(P8()),t.register(F8()),t.register(B8()),t.register(U8()),t.register($8()),t.register(z8()),t.register(j8()),t.register(H8()),t.register(G8()),t.register(q8()),t.register(V8()),t.register(W8()),t.register(Y8()),t.register(X8()),t.register(K8()),t.register(Z8()),t.register(Q8()),t.register(J8()),t.register(eY()),t.register(Wd()),t.register(tY()),t.register(nY()),t.register(rY()),t.register(iY()),t.register(aY()),t.register(oY()),t.register(sY()),t.register(lY()),t.register(cY()),t.register(uY()),t.register(dY()),t.register(pY()),t.register(fY()),t.register(hY()),t.register(gY()),t.register(mY()),t.register(bY()),t.register(yY()),t.register(vY()),t.register(EY()),t.register(wY()),t.register(SY()),t.register(xY()),t.register(AY()),t.register(_Y()),t.register(TY()),t.register(CY()),t.register(RY()),t.register(kY()),t.register(NY()),t.register(qd()),t.register(IY()),t.register(OY()),t.register(LY()),t.register(DY()),t.register(lS()),t.register(MY()),t.register(PY()),t.register(FY()),t.register(BY()),t.register(UY()),t.register($Y()),t.register(zY()),t.register(jY()),t.register(HY()),t.register(GY()),t.register(qY()),t.register(VY()),t.register(nS()),t.register(WY()),t.register(YY()),t.register(XY()),t.register(KY()),t.register(ZY()),t.register(QY()),t.register(cS()),t.register(JY()),t.register(eX()),t.register(tX()),t.register(nX()),t.register(rX()),t.register(iX()),t.register(aX()),t.register(oX()),t.register(JD()),t.register(sX()),t.register(oS()),t.register(lX()),t.register(cX()),t.register(uX()),t.register(dX()),t.register(pX()),t.register(fX()),t.register(eM()),t.register(hX()),t.register(gX()),t.register(mX()),t.register(bX()),t.register(yX()),t.register(vX()),t.register(EX()),t.register(wX()),t.register(SX()),t.register(xX()),t.register(AX()),t.register(_X()),t.register(TX()),t.register(CX()),t.register(RX()),t.register(tM()),t.register(kX()),t.register(NX()),gE}var OX=IX();const LX=Fl(OX);var nM=vV(LX,YW);nM.supportedLanguages=EV;const DX={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},MX={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}};function dI({language:t,value:e,wrapLongLines:n=!1,className:r}){const i=typeof document<"u"&&document.documentElement.classList.contains("dark"),a={margin:0,fontSize:"12px",padding:"12px",borderRadius:"6px",width:"100%",boxSizing:"border-box",maxHeight:"none",overflow:"visible"};return T.jsx("div",{className:r,children:T.jsx(nM,{language:t,style:i?DX:MX,customStyle:a,wrapLongLines:n,showLineNumbers:!1,children:e})})}function Dt(t){if(typeof t=="string"||typeof t=="number")return""+t;let e="";if(Array.isArray(t))for(let n=0,r;n<t.length;n++)(r=Dt(t[n]))!==""&&(e+=(e&&" ")+r);else for(let n in t)t[n]&&(e+=(e&&" ")+n);return e}var PX={value:()=>{}};function Yd(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Yu(n)}function Yu(t){this._=t}function FX(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Yu.prototype=Yd.prototype={constructor:Yu,on:function(t,e){var n=this._,r=FX(t+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(t=r[a]).type)&&(i=BX(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<o;)if(i=(t=r[a]).type)n[i]=pI(n[i],t.name,e);else if(e==null)for(i in n)n[i]=pI(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Yu(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=this._[t],r=0,i=a.length;r<i;++r)a[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};function BX(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function pI(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=PX,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var nw="http://www.w3.org/1999/xhtml";const fI={svg:"http://www.w3.org/2000/svg",xhtml:nw,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Xd(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),fI.hasOwnProperty(e)?{space:fI[e],local:t}:t}function UX(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===nw&&e.documentElement.namespaceURI===nw?e.createElement(t):e.createElementNS(n,t)}}function $X(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function rM(t){var e=Xd(t);return(e.local?$X:UX)(e)}function zX(){}function uS(t){return t==null?zX:function(){return this.querySelector(t)}}function jX(t){typeof t!="function"&&(t=uS(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a=e[i],o=a.length,l=r[i]=new Array(o),u,d,p=0;p<o;++p)(u=a[p])&&(d=t.call(u,u.__data__,p,a))&&("__data__"in u&&(d.__data__=u.__data__),l[p]=d);return new Fn(r,this._parents)}function HX(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function GX(){return[]}function iM(t){return t==null?GX:function(){return this.querySelectorAll(t)}}function qX(t){return function(){return HX(t.apply(this,arguments))}}function VX(t){typeof t=="function"?t=qX(t):t=iM(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o=e[a],l=o.length,u,d=0;d<l;++d)(u=o[d])&&(r.push(t.call(u,u.__data__,d,o)),i.push(u));return new Fn(r,i)}function aM(t){return function(){return this.matches(t)}}function oM(t){return function(e){return e.matches(t)}}var WX=Array.prototype.find;function YX(t){return function(){return WX.call(this.children,t)}}function XX(){return this.firstElementChild}function KX(t){return this.select(t==null?XX:YX(typeof t=="function"?t:oM(t)))}var ZX=Array.prototype.filter;function QX(){return Array.from(this.children)}function JX(t){return function(){return ZX.call(this.children,t)}}function eK(t){return this.selectAll(t==null?QX:JX(typeof t=="function"?t:oM(t)))}function tK(t){typeof t!="function"&&(t=aM(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a=e[i],o=a.length,l=r[i]=[],u,d=0;d<o;++d)(u=a[d])&&t.call(u,u.__data__,d,a)&&l.push(u);return new Fn(r,this._parents)}function sM(t){return new Array(t.length)}function nK(){return new Fn(this._enter||this._groups.map(sM),this._parents)}function pd(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}pd.prototype={constructor:pd,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function rK(t){return function(){return t}}function iK(t,e,n,r,i,a){for(var o=0,l,u=e.length,d=a.length;o<d;++o)(l=e[o])?(l.__data__=a[o],r[o]=l):n[o]=new pd(t,a[o]);for(;o<u;++o)(l=e[o])&&(i[o]=l)}function aK(t,e,n,r,i,a,o){var l,u,d=new Map,p=e.length,f=a.length,g=new Array(p),m;for(l=0;l<p;++l)(u=e[l])&&(g[l]=m=o.call(u,u.__data__,l,e)+"",d.has(m)?i[l]=u:d.set(m,u));for(l=0;l<f;++l)m=o.call(t,a[l],l,a)+"",(u=d.get(m))?(r[l]=u,u.__data__=a[l],d.delete(m)):n[l]=new pd(t,a[l]);for(l=0;l<p;++l)(u=e[l])&&d.get(g[l])===u&&(i[l]=u)}function oK(t){return t.__data__}function sK(t,e){if(!arguments.length)return Array.from(this,oK);var n=e?aK:iK,r=this._parents,i=this._groups;typeof t!="function"&&(t=rK(t));for(var a=i.length,o=new Array(a),l=new Array(a),u=new Array(a),d=0;d<a;++d){var p=r[d],f=i[d],g=f.length,m=lK(t.call(p,p&&p.__data__,d,r)),v=m.length,b=l[d]=new Array(v),E=o[d]=new Array(v),S=u[d]=new Array(g);n(p,f,b,E,S,m,e);for(var _=0,w=0,A,k;_<v;++_)if(A=b[_]){for(_>=w&&(w=_+1);!(k=E[w])&&++w<v;);A._next=k||null}}return o=new Fn(o,r),o._enter=l,o._exit=u,o}function lK(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function cK(){return new Fn(this._exit||this._groups.map(sM),this._parents)}function uK(t,e,n){var r=this.enter(),i=this,a=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function dK(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),l=new Array(i),u=0;u<o;++u)for(var d=n[u],p=r[u],f=d.length,g=l[u]=new Array(f),m,v=0;v<f;++v)(m=d[v]||p[v])&&(g[v]=m);for(;u<i;++u)l[u]=n[u];return new Fn(l,this._parents)}function pK(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function fK(t){t||(t=hK);function e(f,g){return f&&g?t(f.__data__,g.__data__):!f-!g}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],l=o.length,u=i[a]=new Array(l),d,p=0;p<l;++p)(d=o[p])&&(u[p]=d);u.sort(e)}return new Fn(i,this._parents).order()}function hK(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function gK(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function mK(){return Array.from(this)}function bK(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function yK(){let t=0;for(const e of this)++t;return t}function vK(){return!this.node()}function EK(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],a=0,o=i.length,l;a<o;++a)(l=i[a])&&t.call(l,l.__data__,a,i);return this}function wK(t){return function(){this.removeAttribute(t)}}function SK(t){return function(){this.removeAttributeNS(t.space,t.local)}}function xK(t,e){return function(){this.setAttribute(t,e)}}function AK(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _K(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function TK(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function CK(t,e){var n=Xd(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?SK:wK:typeof e=="function"?n.local?TK:_K:n.local?AK:xK)(n,e))}function lM(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function RK(t){return function(){this.style.removeProperty(t)}}function kK(t,e,n){return function(){this.style.setProperty(t,e,n)}}function NK(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function IK(t,e,n){return arguments.length>1?this.each((e==null?RK:typeof e=="function"?NK:kK)(t,e,n??"")):Yo(this.node(),t)}function Yo(t,e){return t.style.getPropertyValue(e)||lM(t).getComputedStyle(t,null).getPropertyValue(e)}function OK(t){return function(){delete this[t]}}function LK(t,e){return function(){this[t]=e}}function DK(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function MK(t,e){return arguments.length>1?this.each((e==null?OK:typeof e=="function"?DK:LK)(t,e)):this.node()[t]}function cM(t){return t.trim().split(/^|\s+/)}function dS(t){return t.classList||new uM(t)}function uM(t){this._node=t,this._names=cM(t.getAttribute("class")||"")}uM.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function dM(t,e){for(var n=dS(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function pM(t,e){for(var n=dS(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function PK(t){return function(){dM(this,t)}}function FK(t){return function(){pM(this,t)}}function BK(t,e){return function(){(e.apply(this,arguments)?dM:pM)(this,t)}}function UK(t,e){var n=cM(t+"");if(arguments.length<2){for(var r=dS(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?BK:e?PK:FK)(n,e))}function $K(){this.textContent=""}function zK(t){return function(){this.textContent=t}}function jK(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function HK(t){return arguments.length?this.each(t==null?$K:(typeof t=="function"?jK:zK)(t)):this.node().textContent}function GK(){this.innerHTML=""}function qK(t){return function(){this.innerHTML=t}}function VK(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function WK(t){return arguments.length?this.each(t==null?GK:(typeof t=="function"?VK:qK)(t)):this.node().innerHTML}function YK(){this.nextSibling&&this.parentNode.appendChild(this)}function XK(){return this.each(YK)}function KK(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ZK(){return this.each(KK)}function QK(t){var e=typeof t=="function"?t:rM(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function JK(){return null}function e9(t,e){var n=typeof t=="function"?t:rM(t),r=e==null?JK:typeof e=="function"?e:uS(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function t9(){var t=this.parentNode;t&&t.removeChild(this)}function n9(){return this.each(t9)}function r9(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function i9(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function a9(t){return this.select(t?i9:r9)}function o9(t){return arguments.length?this.property("__data__",t):this.node().__data__}function s9(t){return function(e){t.call(this,e,this.__data__)}}function l9(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function c9(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,a;n<i;++n)a=e[n],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++r]=a;++r?e.length=r:delete this.__on}}}function u9(t,e,n){return function(){var r=this.__on,i,a=s9(e);if(r){for(var o=0,l=r.length;o<l;++o)if((i=r[o]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=e;return}}this.addEventListener(t.type,a,n),i={type:t.type,name:t.name,value:e,listener:a,options:n},r?r.push(i):this.__on=[i]}}function d9(t,e,n){var r=l9(t+""),i,a=r.length,o;if(arguments.length<2){var l=this.node().__on;if(l){for(var u=0,d=l.length,p;u<d;++u)for(i=0,p=l[u];i<a;++i)if((o=r[i]).type===p.type&&o.name===p.name)return p.value}return}for(l=e?u9:c9,i=0;i<a;++i)this.each(l(r[i],e,n));return this}function fM(t,e,n){var r=lM(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function p9(t,e){return function(){return fM(this,t,e)}}function f9(t,e){return function(){return fM(this,t,e.apply(this,arguments))}}function h9(t,e){return this.each((typeof e=="function"?f9:p9)(t,e))}function*g9(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var hM=[null];function Fn(t,e){this._groups=t,this._parents=e}function Hl(){return new Fn([[document.documentElement]],hM)}function m9(){return this}Fn.prototype=Hl.prototype={constructor:Fn,select:jX,selectAll:VX,selectChild:KX,selectChildren:eK,filter:tK,data:sK,enter:nK,exit:cK,join:uK,merge:dK,selection:m9,order:pK,sort:fK,call:gK,nodes:mK,node:bK,size:yK,empty:vK,each:EK,attr:CK,style:IK,property:MK,classed:UK,text:HK,html:WK,raise:XK,lower:ZK,append:QK,insert:e9,remove:n9,clone:a9,datum:o9,on:d9,dispatch:h9,[Symbol.iterator]:g9};function Mn(t){return typeof t=="string"?new Fn([[document.querySelector(t)]],[document.documentElement]):new Fn([[t]],hM)}function b9(t){let e;for(;e=t.sourceEvent;)t=e;return t}function sr(t,e){if(t=b9(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}const y9={passive:!1},wl={capture:!0,passive:!1};function mE(t){t.stopImmediatePropagation()}function $o(t){t.preventDefault(),t.stopImmediatePropagation()}function gM(t){var e=t.document.documentElement,n=Mn(t).on("dragstart.drag",$o,wl);"onselectstart"in e?n.on("selectstart.drag",$o,wl):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function mM(t,e){var n=t.document.documentElement,r=Mn(t).on("dragstart.drag",null);e&&(r.on("click.drag",$o,wl),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Ru=t=>()=>t;function rw(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:a,x:o,y:l,dx:u,dy:d,dispatch:p}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:d,enumerable:!0,configurable:!0},_:{value:p}})}rw.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function v9(t){return!t.ctrlKey&&!t.button}function E9(){return this.parentNode}function w9(t,e){return e??{x:t.x,y:t.y}}function S9(){return navigator.maxTouchPoints||"ontouchstart"in this}function bM(){var t=v9,e=E9,n=w9,r=S9,i={},a=Yd("start","drag","end"),o=0,l,u,d,p,f=0;function g(A){A.on("mousedown.drag",m).filter(r).on("touchstart.drag",E).on("touchmove.drag",S,y9).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(A,k){if(!(p||!t.call(this,A,k))){var R=w(this,e.call(this,A,k),A,k,"mouse");R&&(Mn(A.view).on("mousemove.drag",v,wl).on("mouseup.drag",b,wl),gM(A.view),mE(A),d=!1,l=A.clientX,u=A.clientY,R("start",A))}}function v(A){if($o(A),!d){var k=A.clientX-l,R=A.clientY-u;d=k*k+R*R>f}i.mouse("drag",A)}function b(A){Mn(A.view).on("mousemove.drag mouseup.drag",null),mM(A.view,d),$o(A),i.mouse("end",A)}function E(A,k){if(t.call(this,A,k)){var R=A.changedTouches,I=e.call(this,A,k),O=R.length,L,F;for(L=0;L<O;++L)(F=w(this,I,A,k,R[L].identifier,R[L]))&&(mE(A),F("start",A,R[L]))}}function S(A){var k=A.changedTouches,R=k.length,I,O;for(I=0;I<R;++I)(O=i[k[I].identifier])&&($o(A),O("drag",A,k[I]))}function _(A){var k=A.changedTouches,R=k.length,I,O;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),I=0;I<R;++I)(O=i[k[I].identifier])&&(mE(A),O("end",A,k[I]))}function w(A,k,R,I,O,L){var F=a.copy(),j=sr(L||R,k),H,G,D;if((D=n.call(A,new rw("beforestart",{sourceEvent:R,target:g,identifier:O,active:o,x:j[0],y:j[1],dx:0,dy:0,dispatch:F}),I))!=null)return H=D.x-j[0]||0,G=D.y-j[1]||0,function z(B,U,M){var q=j,Y;switch(B){case"start":i[O]=z,Y=o++;break;case"end":delete i[O],--o;case"drag":j=sr(M||U,k),Y=o;break}F.call(B,A,new rw(B,{sourceEvent:U,subject:D,target:g,identifier:O,active:Y,x:j[0]+H,y:j[1]+G,dx:j[0]-q[0],dy:j[1]-q[1],dispatch:F}),I)}}return g.filter=function(A){return arguments.length?(t=typeof A=="function"?A:Ru(!!A),g):t},g.container=function(A){return arguments.length?(e=typeof A=="function"?A:Ru(A),g):e},g.subject=function(A){return arguments.length?(n=typeof A=="function"?A:Ru(A),g):n},g.touchable=function(A){return arguments.length?(r=typeof A=="function"?A:Ru(!!A),g):r},g.on=function(){var A=a.on.apply(a,arguments);return A===a?g:A},g.clickDistance=function(A){return arguments.length?(f=(A=+A)*A,g):Math.sqrt(f)},g}function pS(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function yM(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Gl(){}var Sl=.7,fd=1/Sl,zo="\\s*([+-]?\\d+)\\s*",xl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",x9=/^#([0-9a-f]{3,8})$/,A9=new RegExp(`^rgb\\(${zo},${zo},${zo}\\)$`),_9=new RegExp(`^rgb\\(${Fr},${Fr},${Fr}\\)$`),T9=new RegExp(`^rgba\\(${zo},${zo},${zo},${xl}\\)$`),C9=new RegExp(`^rgba\\(${Fr},${Fr},${Fr},${xl}\\)$`),R9=new RegExp(`^hsl\\(${xl},${Fr},${Fr}\\)$`),k9=new RegExp(`^hsla\\(${xl},${Fr},${Fr},${xl}\\)$`),hI={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};pS(Gl,Pa,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:gI,formatHex:gI,formatHex8:N9,formatHsl:I9,formatRgb:mI,toString:mI});function gI(){return this.rgb().formatHex()}function N9(){return this.rgb().formatHex8()}function I9(){return vM(this).formatHsl()}function mI(){return this.rgb().formatRgb()}function Pa(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=x9.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?bI(e):n===3?new wn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?ku(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?ku(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=A9.exec(t))?new wn(e[1],e[2],e[3],1):(e=_9.exec(t))?new wn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=T9.exec(t))?ku(e[1],e[2],e[3],e[4]):(e=C9.exec(t))?ku(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=R9.exec(t))?EI(e[1],e[2]/100,e[3]/100,1):(e=k9.exec(t))?EI(e[1],e[2]/100,e[3]/100,e[4]):hI.hasOwnProperty(t)?bI(hI[t]):t==="transparent"?new wn(NaN,NaN,NaN,0):null}function bI(t){return new wn(t>>16&255,t>>8&255,t&255,1)}function ku(t,e,n,r){return r<=0&&(t=e=n=NaN),new wn(t,e,n,r)}function O9(t){return t instanceof Gl||(t=Pa(t)),t?(t=t.rgb(),new wn(t.r,t.g,t.b,t.opacity)):new wn}function iw(t,e,n,r){return arguments.length===1?O9(t):new wn(t,e,n,r??1)}function wn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}pS(wn,iw,yM(Gl,{brighter(t){return t=t==null?fd:Math.pow(fd,t),new wn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Sl:Math.pow(Sl,t),new wn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new wn(Ca(this.r),Ca(this.g),Ca(this.b),hd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:yI,formatHex:yI,formatHex8:L9,formatRgb:vI,toString:vI}));function yI(){return`#${wa(this.r)}${wa(this.g)}${wa(this.b)}`}function L9(){return`#${wa(this.r)}${wa(this.g)}${wa(this.b)}${wa((isNaN(this.opacity)?1:this.opacity)*255)}`}function vI(){const t=hd(this.opacity);return`${t===1?"rgb(":"rgba("}${Ca(this.r)}, ${Ca(this.g)}, ${Ca(this.b)}${t===1?")":`, ${t})`}`}function hd(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ca(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function wa(t){return t=Ca(t),(t<16?"0":"")+t.toString(16)}function EI(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new lr(t,e,n,r)}function vM(t){if(t instanceof lr)return new lr(t.h,t.s,t.l,t.opacity);if(t instanceof Gl||(t=Pa(t)),!t)return new lr;if(t instanceof lr)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,l=a-i,u=(a+i)/2;return l?(e===a?o=(n-r)/l+(n<r)*6:n===a?o=(r-e)/l+2:o=(e-n)/l+4,l/=u<.5?a+i:2-a-i,o*=60):l=u>0&&u<1?0:o,new lr(o,l,u,t.opacity)}function D9(t,e,n,r){return arguments.length===1?vM(t):new lr(t,e,n,r??1)}function lr(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}pS(lr,D9,yM(Gl,{brighter(t){return t=t==null?fd:Math.pow(fd,t),new lr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Sl:Math.pow(Sl,t),new lr(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new wn(bE(t>=240?t-240:t+120,i,r),bE(t,i,r),bE(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new lr(wI(this.h),Nu(this.s),Nu(this.l),hd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=hd(this.opacity);return`${t===1?"hsl(":"hsla("}${wI(this.h)}, ${Nu(this.s)*100}%, ${Nu(this.l)*100}%${t===1?")":`, ${t})`}`}}));function wI(t){return t=(t||0)%360,t<0?t+360:t}function Nu(t){return Math.max(0,Math.min(1,t||0))}function bE(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const fS=t=>()=>t;function M9(t,e){return function(n){return t+n*e}}function P9(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function F9(t){return(t=+t)==1?EM:function(e,n){return n-e?P9(e,n,t):fS(isNaN(e)?n:e)}}function EM(t,e){var n=e-t;return n?M9(t,n):fS(isNaN(t)?e:t)}const gd=function t(e){var n=F9(e);function r(i,a){var o=n((i=iw(i)).r,(a=iw(a)).r),l=n(i.g,a.g),u=n(i.b,a.b),d=EM(i.opacity,a.opacity);return function(p){return i.r=o(p),i.g=l(p),i.b=u(p),i.opacity=d(p),i+""}}return r.gamma=t,r}(1);function B9(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=t[i]*(1-a)+e[i]*a;return r}}function U9(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function $9(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=fl(t[o],e[o]);for(;o<n;++o)a[o]=e[o];return function(l){for(o=0;o<r;++o)a[o]=i[o](l);return a}}function z9(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Ir(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function j9(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=fl(t[i],e[i]):r[i]=e[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var aw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yE=new RegExp(aw.source,"g");function H9(t){return function(){return t}}function G9(t){return function(e){return t(e)+""}}function wM(t,e){var n=aw.lastIndex=yE.lastIndex=0,r,i,a,o=-1,l=[],u=[];for(t=t+"",e=e+"";(r=aw.exec(t))&&(i=yE.exec(e));)(a=i.index)>n&&(a=e.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,u.push({i:o,x:Ir(r,i)})),n=yE.lastIndex;return n<e.length&&(a=e.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?u[0]?G9(u[0].x):H9(e):(e=u.length,function(d){for(var p=0,f;p<e;++p)l[(f=u[p]).i]=f.x(d);return l.join("")})}function fl(t,e){var n=typeof e,r;return e==null||n==="boolean"?fS(e):(n==="number"?Ir:n==="string"?(r=Pa(e))?(e=r,gd):wM:e instanceof Pa?gd:e instanceof Date?z9:U9(e)?B9:Array.isArray(e)?$9:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?j9:Ir)(t,e)}var SI=180/Math.PI,ow={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function SM(t,e,n,r,i,a){var o,l,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,u/=l),t*r<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*SI,skewX:Math.atan(u)*SI,scaleX:o,scaleY:l}}var Iu;function q9(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ow:SM(e.a,e.b,e.c,e.d,e.e,e.f)}function V9(t){return t==null||(Iu||(Iu=document.createElementNS("http://www.w3.org/2000/svg","g")),Iu.setAttribute("transform",t),!(t=Iu.transform.baseVal.consolidate()))?ow:(t=t.matrix,SM(t.a,t.b,t.c,t.d,t.e,t.f))}function xM(t,e,n,r){function i(d){return d.length?d.pop()+" ":""}function a(d,p,f,g,m,v){if(d!==f||p!==g){var b=m.push("translate(",null,e,null,n);v.push({i:b-4,x:Ir(d,f)},{i:b-2,x:Ir(p,g)})}else(f||g)&&m.push("translate("+f+e+g+n)}function o(d,p,f,g){d!==p?(d-p>180?p+=360:p-d>180&&(d+=360),g.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Ir(d,p)})):p&&f.push(i(f)+"rotate("+p+r)}function l(d,p,f,g){d!==p?g.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Ir(d,p)}):p&&f.push(i(f)+"skewX("+p+r)}function u(d,p,f,g,m,v){if(d!==f||p!==g){var b=m.push(i(m)+"scale(",null,",",null,")");v.push({i:b-4,x:Ir(d,f)},{i:b-2,x:Ir(p,g)})}else(f!==1||g!==1)&&m.push(i(m)+"scale("+f+","+g+")")}return function(d,p){var f=[],g=[];return d=t(d),p=t(p),a(d.translateX,d.translateY,p.translateX,p.translateY,f,g),o(d.rotate,p.rotate,f,g),l(d.skewX,p.skewX,f,g),u(d.scaleX,d.scaleY,p.scaleX,p.scaleY,f,g),d=p=null,function(m){for(var v=-1,b=g.length,E;++v<b;)f[(E=g[v]).i]=E.x(m);return f.join("")}}}var W9=xM(q9,"px, ","px)","deg)"),Y9=xM(V9,", ",")",")"),X9=1e-12;function xI(t){return((t=Math.exp(t))+1/t)/2}function K9(t){return((t=Math.exp(t))-1/t)/2}function Z9(t){return((t=Math.exp(2*t))-1)/(t+1)}const Xu=function t(e,n,r){function i(a,o){var l=a[0],u=a[1],d=a[2],p=o[0],f=o[1],g=o[2],m=p-l,v=f-u,b=m*m+v*v,E,S;if(b<X9)S=Math.log(g/d)/e,E=function(I){return[l+I*m,u+I*v,d*Math.exp(e*I*S)]};else{var _=Math.sqrt(b),w=(g*g-d*d+r*b)/(2*d*n*_),A=(g*g-d*d-r*b)/(2*g*n*_),k=Math.log(Math.sqrt(w*w+1)-w),R=Math.log(Math.sqrt(A*A+1)-A);S=(R-k)/e,E=function(I){var O=I*S,L=xI(k),F=d/(n*_)*(L*Z9(e*O+k)-K9(k));return[l+F*m,u+F*v,d*L/xI(e*O+k)]}}return E.duration=S*1e3*e/Math.SQRT2,E}return i.rho=function(a){var o=Math.max(.001,+a),l=o*o,u=l*l;return t(o,l,u)},i}(Math.SQRT2,2,4);var Xo=0,ll=0,Js=0,AM=1e3,md,cl,bd=0,Fa=0,Kd=0,Al=typeof performance=="object"&&performance.now?performance:Date,_M=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function hS(){return Fa||(_M(Q9),Fa=Al.now()+Kd)}function Q9(){Fa=0}function yd(){this._call=this._time=this._next=null}yd.prototype=TM.prototype={constructor:yd,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?hS():+n)+(e==null?0:+e),!this._next&&cl!==this&&(cl?cl._next=this:md=this,cl=this),this._call=t,this._time=n,sw()},stop:function(){this._call&&(this._call=null,this._time=1/0,sw())}};function TM(t,e,n){var r=new yd;return r.restart(t,e,n),r}function J9(){hS(),++Xo;for(var t=md,e;t;)(e=Fa-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Xo}function AI(){Fa=(bd=Al.now())+Kd,Xo=ll=0;try{J9()}finally{Xo=0,t7(),Fa=0}}function e7(){var t=Al.now(),e=t-bd;e>AM&&(Kd-=e,bd=t)}function t7(){for(var t,e=md,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:md=n);cl=t,sw(r)}function sw(t){if(!Xo){ll&&(ll=clearTimeout(ll));var e=t-Fa;e>24?(t<1/0&&(ll=setTimeout(AI,t-Al.now()-Kd)),Js&&(Js=clearInterval(Js))):(Js||(bd=Al.now(),Js=setInterval(e7,AM)),Xo=1,_M(AI))}}function _I(t,e,n){var r=new yd;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var n7=Yd("start","end","cancel","interrupt"),r7=[],CM=0,TI=1,lw=2,Ku=3,CI=4,cw=5,Zu=6;function Zd(t,e,n,r,i,a){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;i7(t,n,{name:e,index:r,group:i,on:n7,tween:r7,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:CM})}function gS(t,e){var n=gr(t,e);if(n.state>CM)throw new Error("too late; already scheduled");return n}function zr(t,e){var n=gr(t,e);if(n.state>Ku)throw new Error("too late; already running");return n}function gr(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function i7(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=TM(a,0,n.time);function a(d){n.state=TI,n.timer.restart(o,n.delay,n.time),n.delay<=d&&o(d-n.delay)}function o(d){var p,f,g,m;if(n.state!==TI)return u();for(p in r)if(m=r[p],m.name===n.name){if(m.state===Ku)return _I(o);m.state===CI?(m.state=Zu,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete r[p]):+p<e&&(m.state=Zu,m.timer.stop(),m.on.call("cancel",t,t.__data__,m.index,m.group),delete r[p])}if(_I(function(){n.state===Ku&&(n.state=CI,n.timer.restart(l,n.delay,n.time),l(d))}),n.state=lw,n.on.call("start",t,t.__data__,n.index,n.group),n.state===lw){for(n.state=Ku,i=new Array(g=n.tween.length),p=0,f=-1;p<g;++p)(m=n.tween[p].value.call(t,t.__data__,n.index,n.group))&&(i[++f]=m);i.length=f+1}}function l(d){for(var p=d<n.duration?n.ease.call(null,d/n.duration):(n.timer.restart(u),n.state=cw,1),f=-1,g=i.length;++f<g;)i[f].call(t,p);n.state===cw&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){n.state=Zu,n.timer.stop(),delete r[e];for(var d in r)return;delete t.__transition}}function Qu(t,e){var n=t.__transition,r,i,a=!0,o;if(n){e=e==null?null:e+"";for(o in n){if((r=n[o]).name!==e){a=!1;continue}i=r.state>lw&&r.state<cw,r.state=Zu,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[o]}a&&delete t.__transition}}function a7(t){return this.each(function(){Qu(this,t)})}function o7(t,e){var n,r;return function(){var i=zr(this,t),a=i.tween;if(a!==n){r=n=a;for(var o=0,l=r.length;o<l;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function s7(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=zr(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var l={name:e,value:n},u=0,d=i.length;u<d;++u)if(i[u].name===e){i[u]=l;break}u===d&&i.push(l)}a.tween=i}}function l7(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=gr(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===t)return o.value;return null}return this.each((e==null?o7:s7)(n,t,e))}function mS(t,e,n){var r=t._id;return t.each(function(){var i=zr(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return gr(i,r).value[e]}}function RM(t,e){var n;return(typeof e=="number"?Ir:e instanceof Pa?gd:(n=Pa(e))?(e=n,gd):wM)(t,e)}function c7(t){return function(){this.removeAttribute(t)}}function u7(t){return function(){this.removeAttributeNS(t.space,t.local)}}function d7(t,e,n){var r,i=n+"",a;return function(){var o=this.getAttribute(t);return o===i?null:o===r?a:a=e(r=o,n)}}function p7(t,e,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===r?a:a=e(r=o,n)}}function f7(t,e,n){var r,i,a;return function(){var o,l=n(this),u;return l==null?void this.removeAttribute(t):(o=this.getAttribute(t),u=l+"",o===u?null:o===r&&u===i?a:(i=u,a=e(r=o,l)))}}function h7(t,e,n){var r,i,a;return function(){var o,l=n(this),u;return l==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),u=l+"",o===u?null:o===r&&u===i?a:(i=u,a=e(r=o,l)))}}function g7(t,e){var n=Xd(t),r=n==="transform"?Y9:RM;return this.attrTween(t,typeof e=="function"?(n.local?h7:f7)(n,r,mS(this,"attr."+t,e)):e==null?(n.local?u7:c7)(n):(n.local?p7:d7)(n,r,e))}function m7(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function b7(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function y7(t,e){var n,r;function i(){var a=e.apply(this,arguments);return a!==r&&(n=(r=a)&&b7(t,a)),n}return i._value=e,i}function v7(t,e){var n,r;function i(){var a=e.apply(this,arguments);return a!==r&&(n=(r=a)&&m7(t,a)),n}return i._value=e,i}function E7(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Xd(t);return this.tween(n,(r.local?y7:v7)(r,e))}function w7(t,e){return function(){gS(this,t).delay=+e.apply(this,arguments)}}function S7(t,e){return e=+e,function(){gS(this,t).delay=e}}function x7(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?w7:S7)(e,t)):gr(this.node(),e).delay}function A7(t,e){return function(){zr(this,t).duration=+e.apply(this,arguments)}}function _7(t,e){return e=+e,function(){zr(this,t).duration=e}}function T7(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?A7:_7)(e,t)):gr(this.node(),e).duration}function C7(t,e){if(typeof e!="function")throw new Error;return function(){zr(this,t).ease=e}}function R7(t){var e=this._id;return arguments.length?this.each(C7(e,t)):gr(this.node(),e).ease}function k7(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;zr(this,t).ease=n}}function N7(t){if(typeof t!="function")throw new Error;return this.each(k7(this._id,t))}function I7(t){typeof t!="function"&&(t=aM(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a=e[i],o=a.length,l=r[i]=[],u,d=0;d<o;++d)(u=a[d])&&t.call(u,u.__data__,d,a)&&l.push(u);return new oi(r,this._parents,this._name,this._id)}function O7(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),l=0;l<a;++l)for(var u=e[l],d=n[l],p=u.length,f=o[l]=new Array(p),g,m=0;m<p;++m)(g=u[m]||d[m])&&(f[m]=g);for(;l<r;++l)o[l]=e[l];return new oi(o,this._parents,this._name,this._id)}function L7(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function D7(t,e,n){var r,i,a=L7(e)?gS:zr;return function(){var o=a(this,t),l=o.on;l!==r&&(i=(r=l).copy()).on(e,n),o.on=i}}function M7(t,e){var n=this._id;return arguments.length<2?gr(this.node(),n).on.on(t):this.each(D7(n,t,e))}function P7(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function F7(){return this.on("end.remove",P7(this._id))}function B7(t){var e=this._name,n=this._id;typeof t!="function"&&(t=uS(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var l=r[o],u=l.length,d=a[o]=new Array(u),p,f,g=0;g<u;++g)(p=l[g])&&(f=t.call(p,p.__data__,g,l))&&("__data__"in p&&(f.__data__=p.__data__),d[g]=f,Zd(d[g],e,n,g,d,gr(p,n)));return new oi(a,this._parents,e,n)}function U7(t){var e=this._name,n=this._id;typeof t!="function"&&(t=iM(t));for(var r=this._groups,i=r.length,a=[],o=[],l=0;l<i;++l)for(var u=r[l],d=u.length,p,f=0;f<d;++f)if(p=u[f]){for(var g=t.call(p,p.__data__,f,u),m,v=gr(p,n),b=0,E=g.length;b<E;++b)(m=g[b])&&Zd(m,e,n,b,g,v);a.push(g),o.push(p)}return new oi(a,o,e,n)}var $7=Hl.prototype.constructor;function z7(){return new $7(this._groups,this._parents)}function j7(t,e){var n,r,i;return function(){var a=Yo(this,t),o=(this.style.removeProperty(t),Yo(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}function kM(t){return function(){this.style.removeProperty(t)}}function H7(t,e,n){var r,i=n+"",a;return function(){var o=Yo(this,t);return o===i?null:o===r?a:a=e(r=o,n)}}function G7(t,e,n){var r,i,a;return function(){var o=Yo(this,t),l=n(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(t),Yo(this,t))),o===u?null:o===r&&u===i?a:(i=u,a=e(r=o,l))}}function q7(t,e){var n,r,i,a="style."+e,o="end."+a,l;return function(){var u=zr(this,t),d=u.on,p=u.value[a]==null?l||(l=kM(e)):void 0;(d!==n||i!==p)&&(r=(n=d).copy()).on(o,i=p),u.on=r}}function V7(t,e,n){var r=(t+="")=="transform"?W9:RM;return e==null?this.styleTween(t,j7(t,r)).on("end.style."+t,kM(t)):typeof e=="function"?this.styleTween(t,G7(t,r,mS(this,"style."+t,e))).each(q7(this._id,t)):this.styleTween(t,H7(t,r,e),n).on("end.style."+t,null)}function W7(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Y7(t,e,n){var r,i;function a(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&W7(t,o,n)),r}return a._value=e,a}function X7(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Y7(t,e,n??""))}function K7(t){return function(){this.textContent=t}}function Z7(t){return function(){var e=t(this);this.textContent=e??""}}function Q7(t){return this.tween("text",typeof t=="function"?Z7(mS(this,"text",t)):K7(t==null?"":t+""))}function J7(t){return function(e){this.textContent=t.call(this,e)}}function eZ(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&J7(i)),e}return r._value=t,r}function tZ(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,eZ(t))}function nZ(){for(var t=this._name,e=this._id,n=NM(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],l=o.length,u,d=0;d<l;++d)if(u=o[d]){var p=gr(u,e);Zd(u,t,n,d,o,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new oi(r,this._parents,t,n)}function rZ(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var l={value:o},u={value:function(){--i===0&&a()}};n.each(function(){var d=zr(this,r),p=d.on;p!==t&&(e=(t=p).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(u)),d.on=e}),i===0&&a()})}var iZ=0;function oi(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function NM(){return++iZ}var Qr=Hl.prototype;oi.prototype={constructor:oi,select:B7,selectAll:U7,selectChild:Qr.selectChild,selectChildren:Qr.selectChildren,filter:I7,merge:O7,selection:z7,transition:nZ,call:Qr.call,nodes:Qr.nodes,node:Qr.node,size:Qr.size,empty:Qr.empty,each:Qr.each,on:M7,attr:g7,attrTween:E7,style:V7,styleTween:X7,text:Q7,textTween:tZ,remove:F7,tween:l7,delay:x7,duration:T7,ease:R7,easeVarying:N7,end:rZ,[Symbol.iterator]:Qr[Symbol.iterator]};function aZ(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var oZ={time:null,delay:0,duration:250,ease:aZ};function sZ(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function lZ(t){var e,n;t instanceof oi?(e=t._id,t=t._name):(e=NM(),(n=oZ).time=hS(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],l=o.length,u,d=0;d<l;++d)(u=o[d])&&Zd(u,t,e,d,o,n||sZ(u,e));return new oi(r,this._parents,t,e)}Hl.prototype.interrupt=a7;Hl.prototype.transition=lZ;const Ou=t=>()=>t;function cZ(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function ni(t,e,n){this.k=t,this.x=e,this.y=n}ni.prototype={constructor:ni,scale:function(t){return t===1?this:new ni(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ni(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Qd=new ni(1,0,0);IM.prototype=ni.prototype;function IM(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Qd;return t.__zoom}function vE(t){t.stopImmediatePropagation()}function el(t){t.preventDefault(),t.stopImmediatePropagation()}function uZ(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function dZ(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function RI(){return this.__zoom||Qd}function pZ(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function fZ(){return navigator.maxTouchPoints||"ontouchstart"in this}function hZ(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function OM(){var t=uZ,e=dZ,n=hZ,r=pZ,i=fZ,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],l=250,u=Xu,d=Yd("start","zoom","end"),p,f,g,m=500,v=150,b=0,E=10;function S(D){D.property("__zoom",RI).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",L).on("dblclick.zoom",F).filter(i).on("touchstart.zoom",j).on("touchmove.zoom",H).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}S.transform=function(D,z,B,U){var M=D.selection?D.selection():D;M.property("__zoom",RI),D!==M?k(D,z,B,U):M.interrupt().each(function(){R(this,arguments).event(U).start().zoom(null,typeof z=="function"?z.apply(this,arguments):z).end()})},S.scaleBy=function(D,z,B,U){S.scaleTo(D,function(){var M=this.__zoom.k,q=typeof z=="function"?z.apply(this,arguments):z;return M*q},B,U)},S.scaleTo=function(D,z,B,U){S.transform(D,function(){var M=e.apply(this,arguments),q=this.__zoom,Y=B==null?A(M):typeof B=="function"?B.apply(this,arguments):B,$=q.invert(Y),V=typeof z=="function"?z.apply(this,arguments):z;return n(w(_(q,V),Y,$),M,o)},B,U)},S.translateBy=function(D,z,B,U){S.transform(D,function(){return n(this.__zoom.translate(typeof z=="function"?z.apply(this,arguments):z,typeof B=="function"?B.apply(this,arguments):B),e.apply(this,arguments),o)},null,U)},S.translateTo=function(D,z,B,U,M){S.transform(D,function(){var q=e.apply(this,arguments),Y=this.__zoom,$=U==null?A(q):typeof U=="function"?U.apply(this,arguments):U;return n(Qd.translate($[0],$[1]).scale(Y.k).translate(typeof z=="function"?-z.apply(this,arguments):-z,typeof B=="function"?-B.apply(this,arguments):-B),q,o)},U,M)};function _(D,z){return z=Math.max(a[0],Math.min(a[1],z)),z===D.k?D:new ni(z,D.x,D.y)}function w(D,z,B){var U=z[0]-B[0]*D.k,M=z[1]-B[1]*D.k;return U===D.x&&M===D.y?D:new ni(D.k,U,M)}function A(D){return[(+D[0][0]+ +D[1][0])/2,(+D[0][1]+ +D[1][1])/2]}function k(D,z,B,U){D.on("start.zoom",function(){R(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(U).end()}).tween("zoom",function(){var M=this,q=arguments,Y=R(M,q).event(U),$=e.apply(M,q),V=B==null?A($):typeof B=="function"?B.apply(M,q):B,X=Math.max($[1][0]-$[0][0],$[1][1]-$[0][1]),Q=M.__zoom,te=typeof z=="function"?z.apply(M,q):z,ie=u(Q.invert(V).concat(X/Q.k),te.invert(V).concat(X/te.k));return function(W){if(W===1)W=te;else{var Z=ie(W),ne=X/Z[2];W=new ni(ne,V[0]-Z[0]*ne,V[1]-Z[1]*ne)}Y.zoom(null,W)}})}function R(D,z,B){return!B&&D.__zooming||new I(D,z)}function I(D,z){this.that=D,this.args=z,this.active=0,this.sourceEvent=null,this.extent=e.apply(D,z),this.taps=0}I.prototype={event:function(D){return D&&(this.sourceEvent=D),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(D,z){return this.mouse&&D!=="mouse"&&(this.mouse[1]=z.invert(this.mouse[0])),this.touch0&&D!=="touch"&&(this.touch0[1]=z.invert(this.touch0[0])),this.touch1&&D!=="touch"&&(this.touch1[1]=z.invert(this.touch1[0])),this.that.__zoom=z,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(D){var z=Mn(this.that).datum();d.call(D,this.that,new cZ(D,{sourceEvent:this.sourceEvent,target:S,transform:this.that.__zoom,dispatch:d}),z)}};function O(D,...z){if(!t.apply(this,arguments))return;var B=R(this,z).event(D),U=this.__zoom,M=Math.max(a[0],Math.min(a[1],U.k*Math.pow(2,r.apply(this,arguments)))),q=sr(D);if(B.wheel)(B.mouse[0][0]!==q[0]||B.mouse[0][1]!==q[1])&&(B.mouse[1]=U.invert(B.mouse[0]=q)),clearTimeout(B.wheel);else{if(U.k===M)return;B.mouse=[q,U.invert(q)],Qu(this),B.start()}el(D),B.wheel=setTimeout(Y,v),B.zoom("mouse",n(w(_(U,M),B.mouse[0],B.mouse[1]),B.extent,o));function Y(){B.wheel=null,B.end()}}function L(D,...z){if(g||!t.apply(this,arguments))return;var B=D.currentTarget,U=R(this,z,!0).event(D),M=Mn(D.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",X,!0),q=sr(D,B),Y=D.clientX,$=D.clientY;gM(D.view),vE(D),U.mouse=[q,this.__zoom.invert(q)],Qu(this),U.start();function V(Q){if(el(Q),!U.moved){var te=Q.clientX-Y,ie=Q.clientY-$;U.moved=te*te+ie*ie>b}U.event(Q).zoom("mouse",n(w(U.that.__zoom,U.mouse[0]=sr(Q,B),U.mouse[1]),U.extent,o))}function X(Q){M.on("mousemove.zoom mouseup.zoom",null),mM(Q.view,U.moved),el(Q),U.event(Q).end()}}function F(D,...z){if(t.apply(this,arguments)){var B=this.__zoom,U=sr(D.changedTouches?D.changedTouches[0]:D,this),M=B.invert(U),q=B.k*(D.shiftKey?.5:2),Y=n(w(_(B,q),U,M),e.apply(this,z),o);el(D),l>0?Mn(this).transition().duration(l).call(k,Y,U,D):Mn(this).call(S.transform,Y,U,D)}}function j(D,...z){if(t.apply(this,arguments)){var B=D.touches,U=B.length,M=R(this,z,D.changedTouches.length===U).event(D),q,Y,$,V;for(vE(D),Y=0;Y<U;++Y)$=B[Y],V=sr($,this),V=[V,this.__zoom.invert(V),$.identifier],M.touch0?!M.touch1&&M.touch0[2]!==V[2]&&(M.touch1=V,M.taps=0):(M.touch0=V,q=!0,M.taps=1+!!p);p&&(p=clearTimeout(p)),q&&(M.taps<2&&(f=V[0],p=setTimeout(function(){p=null},m)),Qu(this),M.start())}}function H(D,...z){if(this.__zooming){var B=R(this,z).event(D),U=D.changedTouches,M=U.length,q,Y,$,V;for(el(D),q=0;q<M;++q)Y=U[q],$=sr(Y,this),B.touch0&&B.touch0[2]===Y.identifier?B.touch0[0]=$:B.touch1&&B.touch1[2]===Y.identifier&&(B.touch1[0]=$);if(Y=B.that.__zoom,B.touch1){var X=B.touch0[0],Q=B.touch0[1],te=B.touch1[0],ie=B.touch1[1],W=(W=te[0]-X[0])*W+(W=te[1]-X[1])*W,Z=(Z=ie[0]-Q[0])*Z+(Z=ie[1]-Q[1])*Z;Y=_(Y,Math.sqrt(W/Z)),$=[(X[0]+te[0])/2,(X[1]+te[1])/2],V=[(Q[0]+ie[0])/2,(Q[1]+ie[1])/2]}else if(B.touch0)$=B.touch0[0],V=B.touch0[1];else return;B.zoom("touch",n(w(Y,$,V),B.extent,o))}}function G(D,...z){if(this.__zooming){var B=R(this,z).event(D),U=D.changedTouches,M=U.length,q,Y;for(vE(D),g&&clearTimeout(g),g=setTimeout(function(){g=null},m),q=0;q<M;++q)Y=U[q],B.touch0&&B.touch0[2]===Y.identifier?delete B.touch0:B.touch1&&B.touch1[2]===Y.identifier&&delete B.touch1;if(B.touch1&&!B.touch0&&(B.touch0=B.touch1,delete B.touch1),B.touch0)B.touch0[1]=this.__zoom.invert(B.touch0[0]);else if(B.end(),B.taps===2&&(Y=sr(Y,this),Math.hypot(f[0]-Y[0],f[1]-Y[1])<E)){var $=Mn(this).on("dblclick.zoom");$&&$.apply(this,arguments)}}}return S.wheelDelta=function(D){return arguments.length?(r=typeof D=="function"?D:Ou(+D),S):r},S.filter=function(D){return arguments.length?(t=typeof D=="function"?D:Ou(!!D),S):t},S.touchable=function(D){return arguments.length?(i=typeof D=="function"?D:Ou(!!D),S):i},S.extent=function(D){return arguments.length?(e=typeof D=="function"?D:Ou([[+D[0][0],+D[0][1]],[+D[1][0],+D[1][1]]]),S):e},S.scaleExtent=function(D){return arguments.length?(a[0]=+D[0],a[1]=+D[1],S):[a[0],a[1]]},S.translateExtent=function(D){return arguments.length?(o[0][0]=+D[0][0],o[1][0]=+D[1][0],o[0][1]=+D[0][1],o[1][1]=+D[1][1],S):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},S.constrain=function(D){return arguments.length?(n=D,S):n},S.duration=function(D){return arguments.length?(l=+D,S):l},S.interpolate=function(D){return arguments.length?(u=D,S):u},S.on=function(){var D=d.on.apply(d,arguments);return D===d?S:D},S.clickDistance=function(D){return arguments.length?(b=(D=+D)*D,S):Math.sqrt(b)},S.tapDistance=function(D){return arguments.length?(E=+D,S):E},S}const Ur={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:t=>`Node type "${t}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:t=>`The old edge with id=${t} does not exist.`,error009:t=>`Marker type "${t}" doesn't exist.`,error008:(t,{id:e,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${t} handle id: "${t==="source"?n:r}", edge id: ${e}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:t=>`Edge type "${t}" not found. Using fallback type "default".`,error012:t=>`Node with id "${t}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(t="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${t}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},_l=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],LM=["Enter"," ","Escape"],DM={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:t,x:e,y:n})=>`Moved selected node ${t}. New position, x: ${e}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Ko;(function(t){t.Strict="strict",t.Loose="loose"})(Ko||(Ko={}));var Ra;(function(t){t.Free="free",t.Vertical="vertical",t.Horizontal="horizontal"})(Ra||(Ra={}));var Tl;(function(t){t.Partial="partial",t.Full="full"})(Tl||(Tl={}));const MM={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var $i;(function(t){t.Bezier="default",t.Straight="straight",t.Step="step",t.SmoothStep="smoothstep",t.SimpleBezier="simplebezier"})($i||($i={}));var Zo;(function(t){t.Arrow="arrow",t.ArrowClosed="arrowclosed"})(Zo||(Zo={}));var Te;(function(t){t.Left="left",t.Top="top",t.Right="right",t.Bottom="bottom"})(Te||(Te={}));const kI={[Te.Left]:Te.Right,[Te.Right]:Te.Left,[Te.Top]:Te.Bottom,[Te.Bottom]:Te.Top};function PM(t){return t===null?null:t?"valid":"invalid"}const FM=t=>"id"in t&&"source"in t&&"target"in t,gZ=t=>"id"in t&&"position"in t&&!("source"in t)&&!("target"in t),bS=t=>"id"in t&&"internals"in t&&!("source"in t)&&!("target"in t),ql=(t,e=[0,0])=>{const{width:n,height:r}=ui(t),i=t.origin??e,a=n*i[0],o=r*i[1];return{x:t.position.x-a,y:t.position.y-o}},mZ=(t,e={nodeOrigin:[0,0]})=>{if(t.length===0)return{x:0,y:0,width:0,height:0};const n=t.reduce((r,i)=>{const a=typeof i=="string";let o=!e.nodeLookup&&!a?i:void 0;e.nodeLookup&&(o=a?e.nodeLookup.get(i):bS(i)?i:e.nodeLookup.get(i.id));const l=o?vd(o,e.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Jd(r,l)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return ep(n)},Vl=(t,e={})=>{if(t.size===0)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return t.forEach(r=>{if(e.filter===void 0||e.filter(r)){const i=vd(r);n=Jd(n,i)}}),ep(n)},yS=(t,e,[n,r,i]=[0,0,1],a=!1,o=!1)=>{const l={...Yl(e,[n,r,i]),width:e.width/i,height:e.height/i},u=[];for(const d of t.values()){const{measured:p,selectable:f=!0,hidden:g=!1}=d;if(o&&!f||g)continue;const m=p.width??d.width??d.initialWidth??null,v=p.height??d.height??d.initialHeight??null,b=Cl(l,Jo(d)),E=(m??0)*(v??0),S=a&&b>0;(!d.internals.handleBounds||S||b>=E||d.dragging)&&u.push(d)}return u},bZ=(t,e)=>{const n=new Set;return t.forEach(r=>{n.add(r.id)}),e.filter(r=>n.has(r.source)||n.has(r.target))};function yZ(t,e){const n=new Map,r=e?.nodes?new Set(e.nodes.map(i=>i.id)):null;return t.forEach(i=>{i.measured.width&&i.measured.height&&(e?.includeHiddenNodes||!i.hidden)&&(!r||r.has(i.id))&&n.set(i.id,i)}),n}async function vZ({nodes:t,width:e,height:n,panZoom:r,minZoom:i,maxZoom:a},o){if(t.size===0)return Promise.resolve(!0);const l=yZ(t,o),u=Vl(l),d=vS(u,e,n,o?.minZoom??i,o?.maxZoom??a,o?.padding??.1);return await r.setViewport(d,{duration:o?.duration,ease:o?.ease,interpolate:o?.interpolate}),Promise.resolve(!0)}function BM({nodeId:t,nextPosition:e,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:a}){const o=n.get(t),l=o.parentId?n.get(o.parentId):void 0,{x:u,y:d}=l?l.internals.positionAbsolute:{x:0,y:0},p=o.origin??r;let f=o.extent||i;if(o.extent==="parent"&&!o.expandParent)if(!l)a?.("005",Ur.error005());else{const m=l.measured.width,v=l.measured.height;m&&v&&(f=[[u,d],[u+m,d+v]])}else l&&es(o.extent)&&(f=[[o.extent[0][0]+u,o.extent[0][1]+d],[o.extent[1][0]+u,o.extent[1][1]+d]]);const g=es(f)?Ba(e,f,o.measured):e;return(o.measured.width===void 0||o.measured.height===void 0)&&a?.("015",Ur.error015()),{position:{x:g.x-u+(o.measured.width??0)*p[0],y:g.y-d+(o.measured.height??0)*p[1]},positionAbsolute:g}}async function EZ({nodesToRemove:t=[],edgesToRemove:e=[],nodes:n,edges:r,onBeforeDelete:i}){const a=new Set(t.map(g=>g.id)),o=[];for(const g of n){if(g.deletable===!1)continue;const m=a.has(g.id),v=!m&&g.parentId&&o.find(b=>b.id===g.parentId);(m||v)&&o.push(g)}const l=new Set(e.map(g=>g.id)),u=r.filter(g=>g.deletable!==!1),p=bZ(o,u);for(const g of u)l.has(g.id)&&!p.find(v=>v.id===g.id)&&p.push(g);if(!i)return{edges:p,nodes:o};const f=await i({nodes:o,edges:p});return typeof f=="boolean"?f?{edges:p,nodes:o}:{edges:[],nodes:[]}:f}const Qo=(t,e=0,n=1)=>Math.min(Math.max(t,e),n),Ba=(t={x:0,y:0},e,n)=>({x:Qo(t.x,e[0][0],e[1][0]-(n?.width??0)),y:Qo(t.y,e[0][1],e[1][1]-(n?.height??0))});function UM(t,e,n){const{width:r,height:i}=ui(n),{x:a,y:o}=n.internals.positionAbsolute;return Ba(t,[[a,o],[a+r,o+i]],e)}const NI=(t,e,n)=>t<e?Qo(Math.abs(t-e),1,e)/e:t>n?-Qo(Math.abs(t-n),1,e)/e:0,$M=(t,e,n=15,r=40)=>{const i=NI(t.x,r,e.width-r)*n,a=NI(t.y,r,e.height-r)*n;return[i,a]},Jd=(t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x2,e.x2),y2:Math.max(t.y2,e.y2)}),uw=({x:t,y:e,width:n,height:r})=>({x:t,y:e,x2:t+n,y2:e+r}),ep=({x:t,y:e,x2:n,y2:r})=>({x:t,y:e,width:n-t,height:r-e}),Jo=(t,e=[0,0])=>{const{x:n,y:r}=bS(t)?t.internals.positionAbsolute:ql(t,e);return{x:n,y:r,width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}},vd=(t,e=[0,0])=>{const{x:n,y:r}=bS(t)?t.internals.positionAbsolute:ql(t,e);return{x:n,y:r,x2:n+(t.measured?.width??t.width??t.initialWidth??0),y2:r+(t.measured?.height??t.height??t.initialHeight??0)}},zM=(t,e)=>ep(Jd(uw(t),uw(e))),Cl=(t,e)=>{const n=Math.max(0,Math.min(t.x+t.width,e.x+e.width)-Math.max(t.x,e.x)),r=Math.max(0,Math.min(t.y+t.height,e.y+e.height)-Math.max(t.y,e.y));return Math.ceil(n*r)},II=t=>cr(t.width)&&cr(t.height)&&cr(t.x)&&cr(t.y),cr=t=>!isNaN(t)&&isFinite(t),wZ=(t,e)=>{},Wl=(t,e=[1,1])=>({x:e[0]*Math.round(t.x/e[0]),y:e[1]*Math.round(t.y/e[1])}),Yl=({x:t,y:e},[n,r,i],a=!1,o=[1,1])=>{const l={x:(t-n)/i,y:(e-r)/i};return a?Wl(l,o):l},Ed=({x:t,y:e},[n,r,i])=>({x:t*i+n,y:e*i+r});function To(t,e){if(typeof t=="number")return Math.floor((e-e/(1+t))*.5);if(typeof t=="string"&&t.endsWith("px")){const n=parseFloat(t);if(!Number.isNaN(n))return Math.floor(n)}if(typeof t=="string"&&t.endsWith("%")){const n=parseFloat(t);if(!Number.isNaN(n))return Math.floor(e*n*.01)}return console.error(`[React Flow] The padding value "${t}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function SZ(t,e,n){if(typeof t=="string"||typeof t=="number"){const r=To(t,n),i=To(t,e);return{top:r,right:i,bottom:r,left:i,x:i*2,y:r*2}}if(typeof t=="object"){const r=To(t.top??t.y??0,n),i=To(t.bottom??t.y??0,n),a=To(t.left??t.x??0,e),o=To(t.right??t.x??0,e);return{top:r,right:o,bottom:i,left:a,x:a+o,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function xZ(t,e,n,r,i,a){const{x:o,y:l}=Ed(t,[e,n,r]),{x:u,y:d}=Ed({x:t.x+t.width,y:t.y+t.height},[e,n,r]),p=i-u,f=a-d;return{left:Math.floor(o),top:Math.floor(l),right:Math.floor(p),bottom:Math.floor(f)}}const vS=(t,e,n,r,i,a)=>{const o=SZ(a,e,n),l=(e-o.x)/t.width,u=(n-o.y)/t.height,d=Math.min(l,u),p=Qo(d,r,i),f=t.x+t.width/2,g=t.y+t.height/2,m=e/2-f*p,v=n/2-g*p,b=xZ(t,m,v,p,e,n),E={left:Math.min(b.left-o.left,0),top:Math.min(b.top-o.top,0),right:Math.min(b.right-o.right,0),bottom:Math.min(b.bottom-o.bottom,0)};return{x:m-E.left+E.right,y:v-E.top+E.bottom,zoom:p}},Rl=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function es(t){return t!=null&&t!=="parent"}function ui(t){return{width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}}function jM(t){return(t.measured?.width??t.width??t.initialWidth)!==void 0&&(t.measured?.height??t.height??t.initialHeight)!==void 0}function HM(t,e={width:0,height:0},n,r,i){const a={...t},o=r.get(n);if(o){const l=o.origin||i;a.x+=o.internals.positionAbsolute.x-(e.width??0)*l[0],a.y+=o.internals.positionAbsolute.y-(e.height??0)*l[1]}return a}function OI(t,e){if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0}function AZ(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}function _Z(t){return{...DM,...t||{}}}function hl(t,{snapGrid:e=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){const{x:a,y:o}=ur(t),l=Yl({x:a-(i?.left??0),y:o-(i?.top??0)},r),{x:u,y:d}=n?Wl(l,e):l;return{xSnapped:u,ySnapped:d,...l}}const ES=t=>({width:t.offsetWidth,height:t.offsetHeight}),GM=t=>t?.getRootNode?.()||window?.document,TZ=["INPUT","SELECT","TEXTAREA"];function qM(t){const e=t.composedPath?.()?.[0]||t.target;return e?.nodeType!==1?!1:TZ.includes(e.nodeName)||e.hasAttribute("contenteditable")||!!e.closest(".nokey")}const VM=t=>"clientX"in t,ur=(t,e)=>{const n=VM(t),r=n?t.clientX:t.touches?.[0].clientX,i=n?t.clientY:t.touches?.[0].clientY;return{x:r-(e?.left??0),y:i-(e?.top??0)}},LI=(t,e,n,r,i)=>{const a=e.querySelectorAll(`.${t}`);return!a||!a.length?null:Array.from(a).map(o=>{const l=o.getBoundingClientRect();return{id:o.getAttribute("data-handleid"),type:t,nodeId:i,position:o.getAttribute("data-handlepos"),x:(l.left-n.left)/r,y:(l.top-n.top)/r,...ES(o)}})};function WM({sourceX:t,sourceY:e,targetX:n,targetY:r,sourceControlX:i,sourceControlY:a,targetControlX:o,targetControlY:l}){const u=t*.125+i*.375+o*.375+n*.125,d=e*.125+a*.375+l*.375+r*.125,p=Math.abs(u-t),f=Math.abs(d-e);return[u,d,p,f]}function Lu(t,e){return t>=0?.5*t:e*25*Math.sqrt(-t)}function DI({pos:t,x1:e,y1:n,x2:r,y2:i,c:a}){switch(t){case Te.Left:return[e-Lu(e-r,a),n];case Te.Right:return[e+Lu(r-e,a),n];case Te.Top:return[e,n-Lu(n-i,a)];case Te.Bottom:return[e,n+Lu(i-n,a)]}}function YM({sourceX:t,sourceY:e,sourcePosition:n=Te.Bottom,targetX:r,targetY:i,targetPosition:a=Te.Top,curvature:o=.25}){const[l,u]=DI({pos:n,x1:t,y1:e,x2:r,y2:i,c:o}),[d,p]=DI({pos:a,x1:r,y1:i,x2:t,y2:e,c:o}),[f,g,m,v]=WM({sourceX:t,sourceY:e,targetX:r,targetY:i,sourceControlX:l,sourceControlY:u,targetControlX:d,targetControlY:p});return[`M${t},${e} C${l},${u} ${d},${p} ${r},${i}`,f,g,m,v]}function XM({sourceX:t,sourceY:e,targetX:n,targetY:r}){const i=Math.abs(n-t)/2,a=n<t?n+i:n-i,o=Math.abs(r-e)/2,l=r<e?r+o:r-o;return[a,l,i,o]}function CZ({sourceNode:t,targetNode:e,selected:n=!1,zIndex:r,elevateOnSelect:i=!1}){if(r!==void 0)return r;const a=i&&n?1e3:0,o=Math.max(t.parentId||i&&t.selected?t.internals.z:0,e.parentId||i&&e.selected?e.internals.z:0);return a+o}function RZ({sourceNode:t,targetNode:e,width:n,height:r,transform:i}){const a=Jd(vd(t),vd(e));a.x===a.x2&&(a.x2+=1),a.y===a.y2&&(a.y2+=1);const o={x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]};return Cl(o,ep(a))>0}const kZ=({source:t,sourceHandle:e,target:n,targetHandle:r})=>`xy-edge__${t}${e||""}-${n}${r||""}`,NZ=(t,e)=>e.some(n=>n.source===t.source&&n.target===t.target&&(n.sourceHandle===t.sourceHandle||!n.sourceHandle&&!t.sourceHandle)&&(n.targetHandle===t.targetHandle||!n.targetHandle&&!t.targetHandle)),KM=(t,e)=>{if(!t.source||!t.target)return e;let n;return FM(t)?n={...t}:n={...t,id:kZ(t)},NZ(n,e)?e:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,e.concat(n))};function ZM({sourceX:t,sourceY:e,targetX:n,targetY:r}){const[i,a,o,l]=XM({sourceX:t,sourceY:e,targetX:n,targetY:r});return[`M ${t},${e}L ${n},${r}`,i,a,o,l]}const MI={[Te.Left]:{x:-1,y:0},[Te.Right]:{x:1,y:0},[Te.Top]:{x:0,y:-1},[Te.Bottom]:{x:0,y:1}},IZ=({source:t,sourcePosition:e=Te.Bottom,target:n})=>e===Te.Left||e===Te.Right?t.x<n.x?{x:1,y:0}:{x:-1,y:0}:t.y<n.y?{x:0,y:1}:{x:0,y:-1},PI=(t,e)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));function OZ({source:t,sourcePosition:e=Te.Bottom,target:n,targetPosition:r=Te.Top,center:i,offset:a,stepPosition:o}){const l=MI[e],u=MI[r],d={x:t.x+l.x*a,y:t.y+l.y*a},p={x:n.x+u.x*a,y:n.y+u.y*a},f=IZ({source:d,sourcePosition:e,target:p}),g=f.x!==0?"x":"y",m=f[g];let v=[],b,E;const S={x:0,y:0},_={x:0,y:0},[,,w,A]=XM({sourceX:t.x,sourceY:t.y,targetX:n.x,targetY:n.y});if(l[g]*u[g]===-1){g==="x"?(b=i.x??d.x+(p.x-d.x)*o,E=i.y??(d.y+p.y)/2):(b=i.x??(d.x+p.x)/2,E=i.y??d.y+(p.y-d.y)*o);const R=[{x:b,y:d.y},{x:b,y:p.y}],I=[{x:d.x,y:E},{x:p.x,y:E}];l[g]===m?v=g==="x"?R:I:v=g==="x"?I:R}else{const R=[{x:d.x,y:p.y}],I=[{x:p.x,y:d.y}];if(g==="x"?v=l.x===m?I:R:v=l.y===m?R:I,e===r){const H=Math.abs(t[g]-n[g]);if(H<=a){const G=Math.min(a-1,a-H);l[g]===m?S[g]=(d[g]>t[g]?-1:1)*G:_[g]=(p[g]>n[g]?-1:1)*G}}if(e!==r){const H=g==="x"?"y":"x",G=l[g]===u[H],D=d[H]>p[H],z=d[H]<p[H];(l[g]===1&&(!G&&D||G&&z)||l[g]!==1&&(!G&&z||G&&D))&&(v=g==="x"?R:I)}const O={x:d.x+S.x,y:d.y+S.y},L={x:p.x+_.x,y:p.y+_.y},F=Math.max(Math.abs(O.x-v[0].x),Math.abs(L.x-v[0].x)),j=Math.max(Math.abs(O.y-v[0].y),Math.abs(L.y-v[0].y));F>=j?(b=(O.x+L.x)/2,E=v[0].y):(b=v[0].x,E=(O.y+L.y)/2)}return[[t,{x:d.x+S.x,y:d.y+S.y},...v,{x:p.x+_.x,y:p.y+_.y},n],b,E,w,A]}function LZ(t,e,n,r){const i=Math.min(PI(t,e)/2,PI(e,n)/2,r),{x:a,y:o}=e;if(t.x===a&&a===n.x||t.y===o&&o===n.y)return`L${a} ${o}`;if(t.y===o){const d=t.x<n.x?-1:1,p=t.y<n.y?1:-1;return`L ${a+i*d},${o}Q ${a},${o} ${a},${o+i*p}`}const l=t.x<n.x?1:-1,u=t.y<n.y?-1:1;return`L ${a},${o+i*u}Q ${a},${o} ${a+i*l},${o}`}function dw({sourceX:t,sourceY:e,sourcePosition:n=Te.Bottom,targetX:r,targetY:i,targetPosition:a=Te.Top,borderRadius:o=5,centerX:l,centerY:u,offset:d=20,stepPosition:p=.5}){const[f,g,m,v,b]=OZ({source:{x:t,y:e},sourcePosition:n,target:{x:r,y:i},targetPosition:a,center:{x:l,y:u},offset:d,stepPosition:p});return[f.reduce((S,_,w)=>{let A="";return w>0&&w<f.length-1?A=LZ(f[w-1],_,f[w+1],o):A=`${w===0?"M":"L"}${_.x} ${_.y}`,S+=A,S},""),g,m,v,b]}function FI(t){return t&&!!(t.internals.handleBounds||t.handles?.length)&&!!(t.measured.width||t.width||t.initialWidth)}function DZ(t){const{sourceNode:e,targetNode:n}=t;if(!FI(e)||!FI(n))return null;const r=e.internals.handleBounds||BI(e.handles),i=n.internals.handleBounds||BI(n.handles),a=UI(r?.source??[],t.sourceHandle),o=UI(t.connectionMode===Ko.Strict?i?.target??[]:(i?.target??[]).concat(i?.source??[]),t.targetHandle);if(!a||!o)return t.onError?.("008",Ur.error008(a?"target":"source",{id:t.id,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle})),null;const l=a?.position||Te.Bottom,u=o?.position||Te.Top,d=kl(e,a,l),p=kl(n,o,u);return{sourceX:d.x,sourceY:d.y,targetX:p.x,targetY:p.y,sourcePosition:l,targetPosition:u}}function BI(t){if(!t)return null;const e=[],n=[];for(const r of t)r.width=r.width??1,r.height=r.height??1,r.type==="source"?e.push(r):r.type==="target"&&n.push(r);return{source:e,target:n}}function kl(t,e,n=Te.Left,r=!1){const i=(e?.x??0)+t.internals.positionAbsolute.x,a=(e?.y??0)+t.internals.positionAbsolute.y,{width:o,height:l}=e??ui(t);if(r)return{x:i+o/2,y:a+l/2};switch(e?.position??n){case Te.Top:return{x:i+o/2,y:a};case Te.Right:return{x:i+o,y:a+l/2};case Te.Bottom:return{x:i+o/2,y:a+l};case Te.Left:return{x:i,y:a+l/2}}}function UI(t,e){return t&&(e?t.find(n=>n.id===e):t[0])||null}function pw(t,e){return t?typeof t=="string"?t:`${e?`${e}__`:""}${Object.keys(t).sort().map(r=>`${r}=${t[r]}`).join("&")}`:""}function MZ(t,{id:e,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){const a=new Set;return t.reduce((o,l)=>([l.markerStart||r,l.markerEnd||i].forEach(u=>{if(u&&typeof u=="object"){const d=pw(u,e);a.has(d)||(o.push({id:d,color:u.color||n,...u}),a.add(d))}}),o),[]).sort((o,l)=>o.id.localeCompare(l.id))}const wS={nodeOrigin:[0,0],nodeExtent:_l,elevateNodesOnSelect:!0,defaults:{}},PZ={...wS,checkEquality:!0};function SS(t,e){const n={...t};for(const r in e)e[r]!==void 0&&(n[r]=e[r]);return n}function FZ(t,e,n){const r=SS(wS,n);for(const i of t.values())if(i.parentId)xS(i,t,e,r);else{const a=ql(i,r.nodeOrigin),o=es(i.extent)?i.extent:r.nodeExtent,l=Ba(a,o,ui(i));i.internals.positionAbsolute=l}}function BZ(t,e){if(!t.handles)return t.measured?e?.internals.handleBounds:void 0;const n=[],r=[];for(const i of t.handles){const a={width:i.width??1,height:i.height??1,nodeId:t.id,x:i.x,y:i.y,position:i.position,type:i.type};i.type==="source"?n.push(a):i.type==="target"&&r.push(a)}return{source:n,target:r}}function fw(t,e,n,r){const i=SS(PZ,r);let a=t.length>0;const o=new Map(e),l=i?.elevateNodesOnSelect?1e3:0;e.clear(),n.clear();for(const u of t){let d=o.get(u.id);if(i.checkEquality&&u===d?.internals.userNode)e.set(u.id,d);else{const p=ql(u,i.nodeOrigin),f=es(u.extent)?u.extent:i.nodeExtent,g=Ba(p,f,ui(u));d={...i.defaults,...u,measured:{width:u.measured?.width,height:u.measured?.height},internals:{positionAbsolute:g,handleBounds:BZ(u,d),z:QM(u,l),userNode:u}},e.set(u.id,d)}(d.measured===void 0||d.measured.width===void 0||d.measured.height===void 0)&&!d.hidden&&(a=!1),u.parentId&&xS(d,e,n,r)}return a}function UZ(t,e){if(!t.parentId)return;const n=e.get(t.parentId);n?n.set(t.id,t):e.set(t.parentId,new Map([[t.id,t]]))}function xS(t,e,n,r){const{elevateNodesOnSelect:i,nodeOrigin:a,nodeExtent:o}=SS(wS,r),l=t.parentId,u=e.get(l);if(!u){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}UZ(t,n);const d=i?1e3:0,{x:p,y:f,z:g}=$Z(t,u,a,o,d),{positionAbsolute:m}=t.internals,v=p!==m.x||f!==m.y;(v||g!==t.internals.z)&&e.set(t.id,{...t,internals:{...t.internals,positionAbsolute:v?{x:p,y:f}:m,z:g}})}function QM(t,e){return(cr(t.zIndex)?t.zIndex:0)+(t.selected?e:0)}function $Z(t,e,n,r,i){const{x:a,y:o}=e.internals.positionAbsolute,l=ui(t),u=ql(t,n),d=es(t.extent)?Ba(u,t.extent,l):u;let p=Ba({x:a+d.x,y:o+d.y},r,l);t.extent==="parent"&&(p=UM(p,l,e));const f=QM(t,i),g=e.internals.z??0;return{x:p.x,y:p.y,z:g>=f?g+1:f}}function AS(t,e,n,r=[0,0]){const i=[],a=new Map;for(const o of t){const l=e.get(o.parentId);if(!l)continue;const u=a.get(o.parentId)?.expandedRect??Jo(l),d=zM(u,o.rect);a.set(o.parentId,{expandedRect:d,parent:l})}return a.size>0&&a.forEach(({expandedRect:o,parent:l},u)=>{const d=l.internals.positionAbsolute,p=ui(l),f=l.origin??r,g=o.x<d.x?Math.round(Math.abs(d.x-o.x)):0,m=o.y<d.y?Math.round(Math.abs(d.y-o.y)):0,v=Math.max(p.width,Math.round(o.width)),b=Math.max(p.height,Math.round(o.height)),E=(v-p.width)*f[0],S=(b-p.height)*f[1];(g>0||m>0||E||S)&&(i.push({id:u,type:"position",position:{x:l.position.x-g+E,y:l.position.y-m+S}}),n.get(u)?.forEach(_=>{t.some(w=>w.id===_.id)||i.push({id:_.id,type:"position",position:{x:_.position.x+g,y:_.position.y+m}})})),(p.width<o.width||p.height<o.height||g||m)&&i.push({id:u,type:"dimensions",setAttributes:!0,dimensions:{width:v+(g?f[0]*g-E:0),height:b+(m?f[1]*m-S:0)}})}),i}function zZ(t,e,n,r,i,a){const o=r?.querySelector(".xyflow__viewport");let l=!1;if(!o)return{changes:[],updatedInternals:l};const u=[],d=window.getComputedStyle(o),{m22:p}=new window.DOMMatrixReadOnly(d.transform),f=[];for(const g of t.values()){const m=e.get(g.id);if(!m)continue;if(m.hidden){e.set(m.id,{...m,internals:{...m.internals,handleBounds:void 0}}),l=!0;continue}const v=ES(g.nodeElement),b=m.measured.width!==v.width||m.measured.height!==v.height;if(!!(v.width&&v.height&&(b||!m.internals.handleBounds||g.force))){const S=g.nodeElement.getBoundingClientRect(),_=es(m.extent)?m.extent:a;let{positionAbsolute:w}=m.internals;m.parentId&&m.extent==="parent"?w=UM(w,v,e.get(m.parentId)):_&&(w=Ba(w,_,v));const A={...m,measured:v,internals:{...m.internals,positionAbsolute:w,handleBounds:{source:LI("source",g.nodeElement,S,p,m.id),target:LI("target",g.nodeElement,S,p,m.id)}}};e.set(m.id,A),m.parentId&&xS(A,e,n,{nodeOrigin:i}),l=!0,b&&(u.push({id:m.id,type:"dimensions",dimensions:v}),m.expandParent&&m.parentId&&f.push({id:m.id,parentId:m.parentId,rect:Jo(A,i)}))}}if(f.length>0){const g=AS(f,e,n,i);u.push(...g)}return{changes:u,updatedInternals:l}}async function jZ({delta:t,panZoom:e,transform:n,translateExtent:r,width:i,height:a}){if(!e||!t.x&&!t.y)return Promise.resolve(!1);const o=await e.setViewportConstrained({x:n[0]+t.x,y:n[1]+t.y,zoom:n[2]},[[0,0],[i,a]],r),l=!!o&&(o.x!==n[0]||o.y!==n[1]||o.k!==n[2]);return Promise.resolve(l)}function $I(t,e,n,r,i,a){let o=i;const l=r.get(o)||new Map;r.set(o,l.set(n,e)),o=`${i}-${t}`;const u=r.get(o)||new Map;if(r.set(o,u.set(n,e)),a){o=`${i}-${t}-${a}`;const d=r.get(o)||new Map;r.set(o,d.set(n,e))}}function JM(t,e,n){t.clear(),e.clear();for(const r of n){const{source:i,target:a,sourceHandle:o=null,targetHandle:l=null}=r,u={edgeId:r.id,source:i,target:a,sourceHandle:o,targetHandle:l},d=`${i}-${o}--${a}-${l}`,p=`${a}-${l}--${i}-${o}`;$I("source",u,p,t,i,o),$I("target",u,d,t,a,l),e.set(r.id,r)}}function eP(t,e){if(!t.parentId)return!1;const n=e.get(t.parentId);return n?n.selected?!0:eP(n,e):!1}function zI(t,e,n){let r=t;do{if(r?.matches?.(e))return!0;if(r===n)return!1;r=r?.parentElement}while(r);return!1}function HZ(t,e,n,r){const i=new Map;for(const[a,o]of t)if((o.selected||o.id===r)&&(!o.parentId||!eP(o,t))&&(o.draggable||e&&typeof o.draggable>"u")){const l=t.get(a);l&&i.set(a,{id:a,position:l.position||{x:0,y:0},distance:{x:n.x-l.internals.positionAbsolute.x,y:n.y-l.internals.positionAbsolute.y},extent:l.extent,parentId:l.parentId,origin:l.origin,expandParent:l.expandParent,internals:{positionAbsolute:l.internals.positionAbsolute||{x:0,y:0}},measured:{width:l.measured.width??0,height:l.measured.height??0}})}return i}function EE({nodeId:t,dragItems:e,nodeLookup:n,dragging:r=!0}){const i=[];for(const[o,l]of e){const u=n.get(o)?.internals.userNode;u&&i.push({...u,position:l.position,dragging:r})}if(!t)return[i[0],i];const a=n.get(t)?.internals.userNode;return[a?{...a,position:e.get(t)?.position||a.position,dragging:r}:i[0],i]}function GZ({dragItems:t,snapGrid:e,x:n,y:r}){const i=t.values().next().value;if(!i)return null;const a={x:n-i.distance.x,y:r-i.distance.y},o=Wl(a,e);return{x:o.x-a.x,y:o.y-a.y}}function qZ({onNodeMouseDown:t,getStoreItems:e,onDragStart:n,onDrag:r,onDragStop:i}){let a={x:null,y:null},o=0,l=new Map,u=!1,d={x:0,y:0},p=null,f=!1,g=null,m=!1,v=!1,b=null;function E({noDragClassName:_,handleSelector:w,domNode:A,isSelectable:k,nodeId:R,nodeClickDistance:I=0}){g=Mn(A);function O({x:H,y:G}){const{nodeLookup:D,nodeExtent:z,snapGrid:B,snapToGrid:U,nodeOrigin:M,onNodeDrag:q,onSelectionDrag:Y,onError:$,updateNodePositions:V}=e();a={x:H,y:G};let X=!1;const Q=l.size>1,te=Q&&z?uw(Vl(l)):null,ie=Q&&U?GZ({dragItems:l,snapGrid:B,x:H,y:G}):null;for(const[W,Z]of l){if(!D.has(W))continue;let ne={x:H-Z.distance.x,y:G-Z.distance.y};U&&(ne=ie?{x:Math.round(ne.x+ie.x),y:Math.round(ne.y+ie.y)}:Wl(ne,B));let se=null;if(Q&&z&&!Z.extent&&te){const{positionAbsolute:le}=Z.internals,he=le.x-te.x+z[0][0],Se=le.x+Z.measured.width-te.x2+z[1][0],xe=le.y-te.y+z[0][1],Fe=le.y+Z.measured.height-te.y2+z[1][1];se=[[he,xe],[Se,Fe]]}const{position:de,positionAbsolute:ce}=BM({nodeId:W,nextPosition:ne,nodeLookup:D,nodeExtent:se||z,nodeOrigin:M,onError:$});X=X||Z.position.x!==de.x||Z.position.y!==de.y,Z.position=de,Z.internals.positionAbsolute=ce}if(v=v||X,!!X&&(V(l,!0),b&&(r||q||!R&&Y))){const[W,Z]=EE({nodeId:R,dragItems:l,nodeLookup:D});r?.(b,l,W,Z),q?.(b,W,Z),R||Y?.(b,Z)}}async function L(){if(!p)return;const{transform:H,panBy:G,autoPanSpeed:D,autoPanOnNodeDrag:z}=e();if(!z){u=!1,cancelAnimationFrame(o);return}const[B,U]=$M(d,p,D);(B!==0||U!==0)&&(a.x=(a.x??0)-B/H[2],a.y=(a.y??0)-U/H[2],await G({x:B,y:U})&&O(a)),o=requestAnimationFrame(L)}function F(H){const{nodeLookup:G,multiSelectionActive:D,nodesDraggable:z,transform:B,snapGrid:U,snapToGrid:M,selectNodesOnDrag:q,onNodeDragStart:Y,onSelectionDragStart:$,unselectNodesAndEdges:V}=e();f=!0,(!q||!k)&&!D&&R&&(G.get(R)?.selected||V()),k&&q&&R&&t?.(R);const X=hl(H.sourceEvent,{transform:B,snapGrid:U,snapToGrid:M,containerBounds:p});if(a=X,l=HZ(G,z,X,R),l.size>0&&(n||Y||!R&&$)){const[Q,te]=EE({nodeId:R,dragItems:l,nodeLookup:G});n?.(H.sourceEvent,l,Q,te),Y?.(H.sourceEvent,Q,te),R||$?.(H.sourceEvent,te)}}const j=bM().clickDistance(I).on("start",H=>{const{domNode:G,nodeDragThreshold:D,transform:z,snapGrid:B,snapToGrid:U}=e();p=G?.getBoundingClientRect()||null,m=!1,v=!1,b=H.sourceEvent,D===0&&F(H),a=hl(H.sourceEvent,{transform:z,snapGrid:B,snapToGrid:U,containerBounds:p}),d=ur(H.sourceEvent,p)}).on("drag",H=>{const{autoPanOnNodeDrag:G,transform:D,snapGrid:z,snapToGrid:B,nodeDragThreshold:U,nodeLookup:M}=e(),q=hl(H.sourceEvent,{transform:D,snapGrid:z,snapToGrid:B,containerBounds:p});if(b=H.sourceEvent,(H.sourceEvent.type==="touchmove"&&H.sourceEvent.touches.length>1||R&&!M.has(R))&&(m=!0),!m){if(!u&&G&&f&&(u=!0,L()),!f){const Y=ur(H.sourceEvent,p),$=Y.x-d.x,V=Y.y-d.y;Math.sqrt($*$+V*V)>U&&F(H)}(a.x!==q.xSnapped||a.y!==q.ySnapped)&&l&&f&&(d=ur(H.sourceEvent,p),O(q))}}).on("end",H=>{if(!(!f||m)&&(u=!1,f=!1,cancelAnimationFrame(o),l.size>0)){const{nodeLookup:G,updateNodePositions:D,onNodeDragStop:z,onSelectionDragStop:B}=e();if(v&&(D(l,!1),v=!1),i||z||!R&&B){const[U,M]=EE({nodeId:R,dragItems:l,nodeLookup:G,dragging:!1});i?.(H.sourceEvent,l,U,M),z?.(H.sourceEvent,U,M),R||B?.(H.sourceEvent,M)}}}).filter(H=>{const G=H.target;return!H.button&&(!_||!zI(G,`.${_}`,A))&&(!w||zI(G,w,A))});g.call(j)}function S(){g?.on(".drag",null)}return{update:E,destroy:S}}function VZ(t,e,n){const r=[],i={x:t.x-n,y:t.y-n,width:n*2,height:n*2};for(const a of e.values())Cl(i,Jo(a))>0&&r.push(a);return r}const WZ=250;function YZ(t,e,n,r){let i=[],a=1/0;const o=VZ(t,n,e+WZ);for(const l of o){const u=[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]];for(const d of u){if(r.nodeId===d.nodeId&&r.type===d.type&&r.id===d.id)continue;const{x:p,y:f}=kl(l,d,d.position,!0),g=Math.sqrt(Math.pow(p-t.x,2)+Math.pow(f-t.y,2));g>e||(g<a?(i=[{...d,x:p,y:f}],a=g):g===a&&i.push({...d,x:p,y:f}))}}if(!i.length)return null;if(i.length>1){const l=r.type==="source"?"target":"source";return i.find(u=>u.type===l)??i[0]}return i[0]}function tP(t,e,n,r,i,a=!1){const o=r.get(t);if(!o)return null;const l=i==="strict"?o.internals.handleBounds?.[e]:[...o.internals.handleBounds?.source??[],...o.internals.handleBounds?.target??[]],u=(n?l?.find(d=>d.id===n):l?.[0])??null;return u&&a?{...u,...kl(o,u,u.position,!0)}:u}function nP(t,e){return t||(e?.classList.contains("target")?"target":e?.classList.contains("source")?"source":null)}function XZ(t,e){let n=null;return e?n=!0:t&&!e&&(n=!1),n}const rP=()=>!0;function KZ(t,{connectionMode:e,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:a,isTarget:o,domNode:l,nodeLookup:u,lib:d,autoPanOnConnect:p,flowId:f,panBy:g,cancelConnection:m,onConnectStart:v,onConnect:b,onConnectEnd:E,isValidConnection:S=rP,onReconnectEnd:_,updateConnection:w,getTransform:A,getFromHandle:k,autoPanSpeed:R,dragThreshold:I=1,handleDomNode:O}){const L=GM(t.target);let F=0,j;const{x:H,y:G}=ur(t),D=nP(a,O),z=l?.getBoundingClientRect();let B=!1;if(!z||!D)return;const U=tP(i,D,r,u,e);if(!U)return;let M=ur(t,z),q=!1,Y=null,$=!1,V=null;function X(){if(!p||!z)return;const[de,ce]=$M(M,z,R);g({x:de,y:ce}),F=requestAnimationFrame(X)}const Q={...U,nodeId:i,type:D,position:U.position},te=u.get(i);let W={inProgress:!0,isValid:null,from:kl(te,Q,Te.Left,!0),fromHandle:Q,fromPosition:Q.position,fromNode:te,to:M,toHandle:null,toPosition:kI[Q.position],toNode:null};function Z(){B=!0,w(W),v?.(t,{nodeId:i,handleId:r,handleType:D})}I===0&&Z();function ne(de){if(!B){const{x:Se,y:xe}=ur(de),Fe=Se-H,Be=xe-G;if(!(Fe*Fe+Be*Be>I*I))return;Z()}if(!k()||!Q){se(de);return}const ce=A();M=ur(de,z),j=YZ(Yl(M,ce,!1,[1,1]),n,u,Q),q||(X(),q=!0);const le=iP(de,{handle:j,connectionMode:e,fromNodeId:i,fromHandleId:r,fromType:o?"target":"source",isValidConnection:S,doc:L,lib:d,flowId:f,nodeLookup:u});V=le.handleDomNode,Y=le.connection,$=XZ(!!j,le.isValid);const he={...W,isValid:$,to:le.toHandle&&$?Ed({x:le.toHandle.x,y:le.toHandle.y},ce):M,toHandle:le.toHandle,toPosition:$&&le.toHandle?le.toHandle.position:kI[Q.position],toNode:le.toHandle?u.get(le.toHandle.nodeId):null};$&&j&&W.toHandle&&he.toHandle&&W.toHandle.type===he.toHandle.type&&W.toHandle.nodeId===he.toHandle.nodeId&&W.toHandle.id===he.toHandle.id&&W.to.x===he.to.x&&W.to.y===he.to.y||(w(he),W=he)}function se(de){if(!("touches"in de&&de.touches.length>0)){if(B){(j||V)&&Y&&$&&b?.(Y);const{inProgress:ce,...le}=W,he={...le,toPosition:W.toHandle?W.toPosition:null};E?.(de,he),a&&_?.(de,he)}m(),cancelAnimationFrame(F),q=!1,$=!1,Y=null,V=null,L.removeEventListener("mousemove",ne),L.removeEventListener("mouseup",se),L.removeEventListener("touchmove",ne),L.removeEventListener("touchend",se)}}L.addEventListener("mousemove",ne),L.addEventListener("mouseup",se),L.addEventListener("touchmove",ne),L.addEventListener("touchend",se)}function iP(t,{handle:e,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:o,lib:l,flowId:u,isValidConnection:d=rP,nodeLookup:p}){const f=a==="target",g=e?o.querySelector(`.${l}-flow__handle[data-id="${u}-${e?.nodeId}-${e?.id}-${e?.type}"]`):null,{x:m,y:v}=ur(t),b=o.elementFromPoint(m,v),E=b?.classList.contains(`${l}-flow__handle`)?b:g,S={handleDomNode:E,isValid:!1,connection:null,toHandle:null};if(E){const _=nP(void 0,E),w=E.getAttribute("data-nodeid"),A=E.getAttribute("data-handleid"),k=E.classList.contains("connectable"),R=E.classList.contains("connectableend");if(!w||!_)return S;const I={source:f?w:r,sourceHandle:f?A:i,target:f?r:w,targetHandle:f?i:A};S.connection=I;const L=k&&R&&(n===Ko.Strict?f&&_==="source"||!f&&_==="target":w!==r||A!==i);S.isValid=L&&d(I),S.toHandle=tP(w,_,A,p,n,!0)}return S}const hw={onPointerDown:KZ,isValid:iP};function ZZ({domNode:t,panZoom:e,getTransform:n,getViewScale:r}){const i=Mn(t);function a({translateExtent:l,width:u,height:d,zoomStep:p=1,pannable:f=!0,zoomable:g=!0,inversePan:m=!1}){const v=w=>{if(w.sourceEvent.type!=="wheel"||!e)return;const A=n(),k=w.sourceEvent.ctrlKey&&Rl()?10:1,R=-w.sourceEvent.deltaY*(w.sourceEvent.deltaMode===1?.05:w.sourceEvent.deltaMode?1:.002)*p,I=A[2]*Math.pow(2,R*k);e.scaleTo(I)};let b=[0,0];const E=w=>{(w.sourceEvent.type==="mousedown"||w.sourceEvent.type==="touchstart")&&(b=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY])},S=w=>{const A=n();if(w.sourceEvent.type!=="mousemove"&&w.sourceEvent.type!=="touchmove"||!e)return;const k=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY],R=[k[0]-b[0],k[1]-b[1]];b=k;const I=r()*Math.max(A[2],Math.log(A[2]))*(m?-1:1),O={x:A[0]-R[0]*I,y:A[1]-R[1]*I},L=[[0,0],[u,d]];e.setViewportConstrained({x:O.x,y:O.y,zoom:A[2]},L,l)},_=OM().on("start",E).on("zoom",f?S:null).on("zoom.wheel",g?v:null);i.call(_,{})}function o(){i.on("zoom",null)}return{update:a,destroy:o,pointer:sr}}const QZ=(t,e)=>t.x!==e.x||t.y!==e.y||t.zoom!==e.k,tp=t=>({x:t.x,y:t.y,zoom:t.k}),wE=({x:t,y:e,zoom:n})=>Qd.translate(t,e).scale(n),Lo=(t,e)=>t.target.closest(`.${e}`),aP=(t,e)=>e===2&&Array.isArray(t)&&t.includes(2),JZ=t=>((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2,SE=(t,e=0,n=JZ,r=()=>{})=>{const i=typeof e=="number"&&e>0;return i||r(),i?t.transition().duration(e).ease(n).on("end",r):t},oP=t=>{const e=t.ctrlKey&&Rl()?10:1;return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*e};function eQ({zoomPanValues:t,noWheelClassName:e,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:a,zoomOnPinch:o,onPanZoomStart:l,onPanZoom:u,onPanZoomEnd:d}){return p=>{if(Lo(p,e))return!1;p.preventDefault(),p.stopImmediatePropagation();const f=n.property("__zoom").k||1;if(p.ctrlKey&&o){const E=sr(p),S=oP(p),_=f*Math.pow(2,S);r.scaleTo(n,_,E,p);return}const g=p.deltaMode===1?20:1;let m=i===Ra.Vertical?0:p.deltaX*g,v=i===Ra.Horizontal?0:p.deltaY*g;!Rl()&&p.shiftKey&&i!==Ra.Vertical&&(m=p.deltaY*g,v=0),r.translateBy(n,-(m/f)*a,-(v/f)*a,{internal:!0});const b=tp(n.property("__zoom"));clearTimeout(t.panScrollTimeout),t.isPanScrolling||(t.isPanScrolling=!0,l?.(p,b)),t.isPanScrolling&&(u?.(p,b),t.panScrollTimeout=setTimeout(()=>{d?.(p,b),t.isPanScrolling=!1},150))}}function tQ({noWheelClassName:t,preventScrolling:e,d3ZoomHandler:n}){return function(r,i){const a=r.type==="wheel",o=!e&&a&&!r.ctrlKey,l=Lo(r,t);if(r.ctrlKey&&a&&l&&r.preventDefault(),o||l)return null;r.preventDefault(),n.call(this,r,i)}}function nQ({zoomPanValues:t,onDraggingChange:e,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;const i=tp(r.transform);t.mouseButton=r.sourceEvent?.button||0,t.isZoomingOrPanning=!0,t.prevViewport=i,r.sourceEvent?.type==="mousedown"&&e(!0),n&&n?.(r.sourceEvent,i)}}function rQ({zoomPanValues:t,panOnDrag:e,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return a=>{t.usedRightMouseButton=!!(n&&aP(e,t.mouseButton??0)),a.sourceEvent?.sync||r([a.transform.x,a.transform.y,a.transform.k]),i&&!a.sourceEvent?.internal&&i?.(a.sourceEvent,tp(a.transform))}}function iQ({zoomPanValues:t,panOnDrag:e,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:a}){return o=>{if(!o.sourceEvent?.internal&&(t.isZoomingOrPanning=!1,a&&aP(e,t.mouseButton??0)&&!t.usedRightMouseButton&&o.sourceEvent&&a(o.sourceEvent),t.usedRightMouseButton=!1,r(!1),i&&QZ(t.prevViewport,o.transform))){const l=tp(o.transform);t.prevViewport=l,clearTimeout(t.timerId),t.timerId=setTimeout(()=>{i?.(o.sourceEvent,l)},n?150:0)}}}function aQ({zoomActivationKeyPressed:t,zoomOnScroll:e,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:a,userSelectionActive:o,noWheelClassName:l,noPanClassName:u,lib:d,connectionInProgress:p}){return f=>{const g=t||e,m=n&&f.ctrlKey,v=f.type==="wheel";if(f.button===1&&f.type==="mousedown"&&(Lo(f,`${d}-flow__node`)||Lo(f,`${d}-flow__edge`)))return!0;if(!r&&!g&&!i&&!a&&!n||o||p&&!v||Lo(f,l)&&v||Lo(f,u)&&(!v||i&&v&&!t)||!n&&f.ctrlKey&&v)return!1;if(!n&&f.type==="touchstart"&&f.touches?.length>1)return f.preventDefault(),!1;if(!g&&!i&&!m&&v||!r&&(f.type==="mousedown"||f.type==="touchstart")||Array.isArray(r)&&!r.includes(f.button)&&f.type==="mousedown")return!1;const b=Array.isArray(r)&&r.includes(f.button)||!f.button||f.button<=1;return(!f.ctrlKey||v)&&b}}function oQ({domNode:t,minZoom:e,maxZoom:n,paneClickDistance:r,translateExtent:i,viewport:a,onPanZoom:o,onPanZoomStart:l,onPanZoomEnd:u,onDraggingChange:d}){const p={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=t.getBoundingClientRect(),g=OM().clickDistance(!cr(r)||r<0?0:r).scaleExtent([e,n]).translateExtent(i),m=Mn(t).call(g);w({x:a.x,y:a.y,zoom:Qo(a.zoom,e,n)},[[0,0],[f.width,f.height]],i);const v=m.on("wheel.zoom"),b=m.on("dblclick.zoom");g.wheelDelta(oP);function E(H,G){return m?new Promise(D=>{g?.interpolate(G?.interpolate==="linear"?fl:Xu).transform(SE(m,G?.duration,G?.ease,()=>D(!0)),H)}):Promise.resolve(!1)}function S({noWheelClassName:H,noPanClassName:G,onPaneContextMenu:D,userSelectionActive:z,panOnScroll:B,panOnDrag:U,panOnScrollMode:M,panOnScrollSpeed:q,preventScrolling:Y,zoomOnPinch:$,zoomOnScroll:V,zoomOnDoubleClick:X,zoomActivationKeyPressed:Q,lib:te,onTransformChange:ie,connectionInProgress:W}){z&&!p.isZoomingOrPanning&&_();const ne=B&&!Q&&!z?eQ({zoomPanValues:p,noWheelClassName:H,d3Selection:m,d3Zoom:g,panOnScrollMode:M,panOnScrollSpeed:q,zoomOnPinch:$,onPanZoomStart:l,onPanZoom:o,onPanZoomEnd:u}):tQ({noWheelClassName:H,preventScrolling:Y,d3ZoomHandler:v});if(m.on("wheel.zoom",ne,{passive:!1}),!z){const de=nQ({zoomPanValues:p,onDraggingChange:d,onPanZoomStart:l});g.on("start",de);const ce=rQ({zoomPanValues:p,panOnDrag:U,onPaneContextMenu:!!D,onPanZoom:o,onTransformChange:ie});g.on("zoom",ce);const le=iQ({zoomPanValues:p,panOnDrag:U,panOnScroll:B,onPaneContextMenu:D,onPanZoomEnd:u,onDraggingChange:d});g.on("end",le)}const se=aQ({zoomActivationKeyPressed:Q,panOnDrag:U,zoomOnScroll:V,panOnScroll:B,zoomOnDoubleClick:X,zoomOnPinch:$,userSelectionActive:z,noPanClassName:G,noWheelClassName:H,lib:te,connectionInProgress:W});g.filter(se),X?m.on("dblclick.zoom",b):m.on("dblclick.zoom",null)}function _(){g.on("zoom",null)}async function w(H,G,D){const z=wE(H),B=g?.constrain()(z,G,D);return B&&await E(B),new Promise(U=>U(B))}async function A(H,G){const D=wE(H);return await E(D,G),new Promise(z=>z(D))}function k(H){if(m){const G=wE(H),D=m.property("__zoom");(D.k!==H.zoom||D.x!==H.x||D.y!==H.y)&&g?.transform(m,G,null,{sync:!0})}}function R(){const H=m?IM(m.node()):{x:0,y:0,k:1};return{x:H.x,y:H.y,zoom:H.k}}function I(H,G){return m?new Promise(D=>{g?.interpolate(G?.interpolate==="linear"?fl:Xu).scaleTo(SE(m,G?.duration,G?.ease,()=>D(!0)),H)}):Promise.resolve(!1)}function O(H,G){return m?new Promise(D=>{g?.interpolate(G?.interpolate==="linear"?fl:Xu).scaleBy(SE(m,G?.duration,G?.ease,()=>D(!0)),H)}):Promise.resolve(!1)}function L(H){g?.scaleExtent(H)}function F(H){g?.translateExtent(H)}function j(H){const G=!cr(H)||H<0?0:H;g?.clickDistance(G)}return{update:S,destroy:_,setViewport:A,setViewportConstrained:w,getViewport:R,scaleTo:I,scaleBy:O,setScaleExtent:L,setTranslateExtent:F,syncViewport:k,setClickDistance:j}}var ts;(function(t){t.Line="line",t.Handle="handle"})(ts||(ts={}));function sQ({width:t,prevWidth:e,height:n,prevHeight:r,affectsX:i,affectsY:a}){const o=t-e,l=n-r,u=[o>0?1:o<0?-1:0,l>0?1:l<0?-1:0];return o&&i&&(u[0]=u[0]*-1),l&&a&&(u[1]=u[1]*-1),u}function lQ(t){const e=t.includes("right")||t.includes("left"),n=t.includes("bottom")||t.includes("top"),r=t.includes("left"),i=t.includes("top");return{isHorizontal:e,isVertical:n,affectsX:r,affectsY:i}}function Pi(t,e){return Math.max(0,e-t)}function Fi(t,e){return Math.max(0,t-e)}function Du(t,e,n){return Math.max(0,e-t,t-n)}function jI(t,e){return t?!e:e}function cQ(t,e,n,r,i,a,o,l){let{affectsX:u,affectsY:d}=e;const{isHorizontal:p,isVertical:f}=e,g=p&&f,{xSnapped:m,ySnapped:v}=n,{minWidth:b,maxWidth:E,minHeight:S,maxHeight:_}=r,{x:w,y:A,width:k,height:R,aspectRatio:I}=t;let O=Math.floor(p?m-t.pointerX:0),L=Math.floor(f?v-t.pointerY:0);const F=k+(u?-O:O),j=R+(d?-L:L),H=-a[0]*k,G=-a[1]*R;let D=Du(F,b,E),z=Du(j,S,_);if(o){let M=0,q=0;u&&O<0?M=Pi(w+O+H,o[0][0]):!u&&O>0&&(M=Fi(w+F+H,o[1][0])),d&&L<0?q=Pi(A+L+G,o[0][1]):!d&&L>0&&(q=Fi(A+j+G,o[1][1])),D=Math.max(D,M),z=Math.max(z,q)}if(l){let M=0,q=0;u&&O>0?M=Fi(w+O,l[0][0]):!u&&O<0&&(M=Pi(w+F,l[1][0])),d&&L>0?q=Fi(A+L,l[0][1]):!d&&L<0&&(q=Pi(A+j,l[1][1])),D=Math.max(D,M),z=Math.max(z,q)}if(i){if(p){const M=Du(F/I,S,_)*I;if(D=Math.max(D,M),o){let q=0;!u&&!d||u&&!d&&g?q=Fi(A+G+F/I,o[1][1])*I:q=Pi(A+G+(u?O:-O)/I,o[0][1])*I,D=Math.max(D,q)}if(l){let q=0;!u&&!d||u&&!d&&g?q=Pi(A+F/I,l[1][1])*I:q=Fi(A+(u?O:-O)/I,l[0][1])*I,D=Math.max(D,q)}}if(f){const M=Du(j*I,b,E)/I;if(z=Math.max(z,M),o){let q=0;!u&&!d||d&&!u&&g?q=Fi(w+j*I+H,o[1][0])/I:q=Pi(w+(d?L:-L)*I+H,o[0][0])/I,z=Math.max(z,q)}if(l){let q=0;!u&&!d||d&&!u&&g?q=Pi(w+j*I,l[1][0])/I:q=Fi(w+(d?L:-L)*I,l[0][0])/I,z=Math.max(z,q)}}}L=L+(L<0?z:-z),O=O+(O<0?D:-D),i&&(g?F>j*I?L=(jI(u,d)?-O:O)/I:O=(jI(u,d)?-L:L)*I:p?(L=O/I,d=u):(O=L*I,u=d));const B=u?w+O:w,U=d?A+L:A;return{width:k+(u?-O:O),height:R+(d?-L:L),x:a[0]*O*(u?-1:1)+B,y:a[1]*L*(d?-1:1)+U}}const sP={width:0,height:0,x:0,y:0},uQ={...sP,pointerX:0,pointerY:0,aspectRatio:1};function dQ(t){return[[0,0],[t.measured.width,t.measured.height]]}function pQ(t,e,n){const r=e.position.x+t.position.x,i=e.position.y+t.position.y,a=t.measured.width??0,o=t.measured.height??0,l=n[0]*a,u=n[1]*o;return[[r-l,i-u],[r+a-l,i+o-u]]}function fQ({domNode:t,nodeId:e,getStoreItems:n,onChange:r,onEnd:i}){const a=Mn(t);function o({controlPosition:u,boundaries:d,keepAspectRatio:p,resizeDirection:f,onResizeStart:g,onResize:m,onResizeEnd:v,shouldResize:b}){let E={...sP},S={...uQ};const _=lQ(u);let w,A=null,k=[],R,I,O,L=!1;const F=bM().on("start",j=>{const{nodeLookup:H,transform:G,snapGrid:D,snapToGrid:z,nodeOrigin:B,paneDomNode:U}=n();if(w=H.get(e),!w)return;A=U?.getBoundingClientRect()??null;const{xSnapped:M,ySnapped:q}=hl(j.sourceEvent,{transform:G,snapGrid:D,snapToGrid:z,containerBounds:A});E={width:w.measured.width??0,height:w.measured.height??0,x:w.position.x??0,y:w.position.y??0},S={...E,pointerX:M,pointerY:q,aspectRatio:E.width/E.height},R=void 0,w.parentId&&(w.extent==="parent"||w.expandParent)&&(R=H.get(w.parentId),I=R&&w.extent==="parent"?dQ(R):void 0),k=[],O=void 0;for(const[Y,$]of H)if($.parentId===e&&(k.push({id:Y,position:{...$.position},extent:$.extent}),$.extent==="parent"||$.expandParent)){const V=pQ($,w,$.origin??B);O?O=[[Math.min(V[0][0],O[0][0]),Math.min(V[0][1],O[0][1])],[Math.max(V[1][0],O[1][0]),Math.max(V[1][1],O[1][1])]]:O=V}g?.(j,{...E})}).on("drag",j=>{const{transform:H,snapGrid:G,snapToGrid:D,nodeOrigin:z}=n(),B=hl(j.sourceEvent,{transform:H,snapGrid:G,snapToGrid:D,containerBounds:A}),U=[];if(!w)return;const{x:M,y:q,width:Y,height:$}=E,V={},X=w.origin??z,{width:Q,height:te,x:ie,y:W}=cQ(S,_,B,d,p,X,I,O),Z=Q!==Y,ne=te!==$,se=ie!==M&&Z,de=W!==q&&ne;if(!se&&!de&&!Z&&!ne)return;if((se||de||X[0]===1||X[1]===1)&&(V.x=se?ie:E.x,V.y=de?W:E.y,E.x=V.x,E.y=V.y,k.length>0)){const Se=ie-M,xe=W-q;for(const Fe of k)Fe.position={x:Fe.position.x-Se+X[0]*(Q-Y),y:Fe.position.y-xe+X[1]*(te-$)},U.push(Fe)}if((Z||ne)&&(V.width=Z&&(!f||f==="horizontal")?Q:E.width,V.height=ne&&(!f||f==="vertical")?te:E.height,E.width=V.width,E.height=V.height),R&&w.expandParent){const Se=X[0]*(V.width??0);V.x&&V.x<Se&&(E.x=Se,S.x=S.x-(V.x-Se));const xe=X[1]*(V.height??0);V.y&&V.y<xe&&(E.y=xe,S.y=S.y-(V.y-xe))}const ce=sQ({width:E.width,prevWidth:Y,height:E.height,prevHeight:$,affectsX:_.affectsX,affectsY:_.affectsY}),le={...E,direction:ce};b?.(j,le)!==!1&&(L=!0,m?.(j,le),r(V,U))}).on("end",j=>{L&&(v?.(j,{...E}),i?.({...E}),L=!1)});a.call(F)}function l(){a.on(".drag",null)}return{update:o,destroy:l}}var xE={exports:{}},AE={};/**
270
- * @license React
271
- * use-sync-external-store-shim/with-selector.production.js
272
- *
273
- * Copyright (c) Meta Platforms, Inc. and affiliates.
274
- *
275
- * This source code is licensed under the MIT license found in the
276
- * LICENSE file in the root directory of this source tree.
277
- */var HI;function hQ(){if(HI)return AE;HI=1;var t=Bl(),e=T$();function n(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:n,i=e.useSyncExternalStore,a=t.useRef,o=t.useEffect,l=t.useMemo,u=t.useDebugValue;return AE.useSyncExternalStoreWithSelector=function(d,p,f,g,m){var v=a(null);if(v.current===null){var b={hasValue:!1,value:null};v.current=b}else b=v.current;v=l(function(){function S(R){if(!_){if(_=!0,w=R,R=g(R),m!==void 0&&b.hasValue){var I=b.value;if(m(I,R))return A=I}return A=R}if(I=A,r(w,R))return I;var O=g(R);return m!==void 0&&m(I,O)?(w=R,I):(w=R,A=O)}var _=!1,w,A,k=f===void 0?null:f;return[function(){return S(p())},k===null?void 0:function(){return S(k())}]},[p,f,g,m]);var E=i(d,v[0],v[1]);return o(function(){b.hasValue=!0,b.value=E},[E]),u(E),E},AE}var GI;function gQ(){return GI||(GI=1,xE.exports=hQ()),xE.exports}var mQ=gQ();const bQ=Fl(mQ),yQ={},qI=t=>{let e;const n=new Set,r=(p,f)=>{const g=typeof p=="function"?p(e):p;if(!Object.is(g,e)){const m=e;e=f??(typeof g!="object"||g===null)?g:Object.assign({},e,g),n.forEach(v=>v(e,m))}},i=()=>e,u={setState:r,getState:i,getInitialState:()=>d,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(yQ?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},d=e=t(r,i,u);return u},vQ=t=>t?qI(t):qI,{useDebugValue:EQ}=Me,{useSyncExternalStoreWithSelector:wQ}=bQ,SQ=t=>t;function lP(t,e=SQ,n){const r=wQ(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return EQ(r),r}const VI=(t,e)=>{const n=vQ(t),r=(i,a=e)=>lP(n,i,a);return Object.assign(r,n),r},xQ=(t,e)=>t?VI(t,e):VI;function vt(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[r,i]of t)if(!Object.is(i,e.get(r)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(e,r)||!Object.is(t[r],e[r]))return!1;return!0}const np=C.createContext(null),AQ=np.Provider,cP=Ur.error001();function Ge(t,e){const n=C.useContext(np);if(n===null)throw new Error(cP);return lP(n,t,e)}function pt(){const t=C.useContext(np);if(t===null)throw new Error(cP);return C.useMemo(()=>({getState:t.getState,setState:t.setState,subscribe:t.subscribe}),[t])}const WI={display:"none"},_Q={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},uP="react-flow__node-desc",dP="react-flow__edge-desc",TQ="react-flow__aria-live",CQ=t=>t.ariaLiveMessage,RQ=t=>t.ariaLabelConfig;function kQ({rfId:t}){const e=Ge(CQ);return T.jsx("div",{id:`${TQ}-${t}`,"aria-live":"assertive","aria-atomic":"true",style:_Q,children:e})}function NQ({rfId:t,disableKeyboardA11y:e}){const n=Ge(RQ);return T.jsxs(T.Fragment,{children:[T.jsx("div",{id:`${uP}-${t}`,style:WI,children:e?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),T.jsx("div",{id:`${dP}-${t}`,style:WI,children:n["edge.a11yDescription.default"]}),!e&&T.jsx(kQ,{rfId:t})]})}const rp=C.forwardRef(({position:t="top-left",children:e,className:n,style:r,...i},a)=>{const o=`${t}`.split("-");return T.jsx("div",{className:Dt(["react-flow__panel",n,...o]),style:r,ref:a,...i,children:e})});rp.displayName="Panel";function IQ({proOptions:t,position:e="bottom-right"}){return t?.hideAttribution?null:T.jsx(rp,{position:e,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:T.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const OQ=t=>{const e=[],n=[];for(const[,r]of t.nodeLookup)r.selected&&e.push(r.internals.userNode);for(const[,r]of t.edgeLookup)r.selected&&n.push(r);return{selectedNodes:e,selectedEdges:n}},Mu=t=>t.id;function LQ(t,e){return vt(t.selectedNodes.map(Mu),e.selectedNodes.map(Mu))&&vt(t.selectedEdges.map(Mu),e.selectedEdges.map(Mu))}function DQ({onSelectionChange:t}){const e=pt(),{selectedNodes:n,selectedEdges:r}=Ge(OQ,LQ);return C.useEffect(()=>{const i={nodes:n,edges:r};t?.(i),e.getState().onSelectionChangeHandlers.forEach(a=>a(i))},[n,r,t]),null}const MQ=t=>!!t.onSelectionChangeHandlers;function PQ({onSelectionChange:t}){const e=Ge(MQ);return t||e?T.jsx(DQ,{onSelectionChange:t}):null}const pP=[0,0],FQ={x:0,y:0,zoom:1},BQ=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","paneClickDistance","ariaLabelConfig"],YI=[...BQ,"rfId"],UQ=t=>({setNodes:t.setNodes,setEdges:t.setEdges,setMinZoom:t.setMinZoom,setMaxZoom:t.setMaxZoom,setTranslateExtent:t.setTranslateExtent,setNodeExtent:t.setNodeExtent,reset:t.reset,setDefaultNodesAndEdges:t.setDefaultNodesAndEdges,setPaneClickDistance:t.setPaneClickDistance}),XI={translateExtent:_l,nodeOrigin:pP,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function $Q(t){const{setNodes:e,setEdges:n,setMinZoom:r,setMaxZoom:i,setTranslateExtent:a,setNodeExtent:o,reset:l,setDefaultNodesAndEdges:u,setPaneClickDistance:d}=Ge(UQ,vt),p=pt();C.useEffect(()=>(u(t.defaultNodes,t.defaultEdges),()=>{f.current=XI,l()}),[]);const f=C.useRef(XI);return C.useEffect(()=>{for(const g of YI){const m=t[g],v=f.current[g];m!==v&&(typeof t[g]>"u"||(g==="nodes"?e(m):g==="edges"?n(m):g==="minZoom"?r(m):g==="maxZoom"?i(m):g==="translateExtent"?a(m):g==="nodeExtent"?o(m):g==="paneClickDistance"?d(m):g==="ariaLabelConfig"?p.setState({ariaLabelConfig:_Z(m)}):g==="fitView"?p.setState({fitViewQueued:m}):g==="fitViewOptions"?p.setState({fitViewOptions:m}):p.setState({[g]:m})))}f.current=t},YI.map(g=>t[g])),null}function KI(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function zQ(t){const[e,n]=C.useState(t==="system"?null:t);return C.useEffect(()=>{if(t!=="system"){n(t);return}const r=KI(),i=()=>n(r?.matches?"dark":"light");return i(),r?.addEventListener("change",i),()=>{r?.removeEventListener("change",i)}},[t]),e!==null?e:KI()?.matches?"dark":"light"}const ZI=typeof document<"u"?document:null;function Nl(t=null,e={target:ZI,actInsideInputWithModifier:!0}){const[n,r]=C.useState(!1),i=C.useRef(!1),a=C.useRef(new Set([])),[o,l]=C.useMemo(()=>{if(t!==null){const d=(Array.isArray(t)?t:[t]).filter(f=>typeof f=="string").map(f=>f.replace("+",`
278
- `).replace(`
279
-
280
- `,`
281
- +`).split(`
282
- `)),p=d.reduce((f,g)=>f.concat(...g),[]);return[d,p]}return[[],[]]},[t]);return C.useEffect(()=>{const u=e?.target??ZI,d=e?.actInsideInputWithModifier??!0;if(t!==null){const p=m=>{if(i.current=m.ctrlKey||m.metaKey||m.shiftKey||m.altKey,(!i.current||i.current&&!d)&&qM(m))return!1;const b=JI(m.code,l);if(a.current.add(m[b]),QI(o,a.current,!1)){const E=m.composedPath?.()?.[0]||m.target,S=E?.nodeName==="BUTTON"||E?.nodeName==="A";e.preventDefault!==!1&&(i.current||!S)&&m.preventDefault(),r(!0)}},f=m=>{const v=JI(m.code,l);QI(o,a.current,!0)?(r(!1),a.current.clear()):a.current.delete(m[v]),m.key==="Meta"&&a.current.clear(),i.current=!1},g=()=>{a.current.clear(),r(!1)};return u?.addEventListener("keydown",p),u?.addEventListener("keyup",f),window.addEventListener("blur",g),window.addEventListener("contextmenu",g),()=>{u?.removeEventListener("keydown",p),u?.removeEventListener("keyup",f),window.removeEventListener("blur",g),window.removeEventListener("contextmenu",g)}}},[t,r]),n}function QI(t,e,n){return t.filter(r=>n||r.length===e.size).some(r=>r.every(i=>e.has(i)))}function JI(t,e){return e.includes(t)?"code":"key"}const jQ=()=>{const t=pt();return C.useMemo(()=>({zoomIn:e=>{const{panZoom:n}=t.getState();return n?n.scaleBy(1.2,{duration:e?.duration}):Promise.resolve(!1)},zoomOut:e=>{const{panZoom:n}=t.getState();return n?n.scaleBy(1/1.2,{duration:e?.duration}):Promise.resolve(!1)},zoomTo:(e,n)=>{const{panZoom:r}=t.getState();return r?r.scaleTo(e,{duration:n?.duration}):Promise.resolve(!1)},getZoom:()=>t.getState().transform[2],setViewport:async(e,n)=>{const{transform:[r,i,a],panZoom:o}=t.getState();return o?(await o.setViewport({x:e.x??r,y:e.y??i,zoom:e.zoom??a},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[e,n,r]=t.getState().transform;return{x:e,y:n,zoom:r}},setCenter:async(e,n,r)=>t.getState().setCenter(e,n,r),fitBounds:async(e,n)=>{const{width:r,height:i,minZoom:a,maxZoom:o,panZoom:l}=t.getState(),u=vS(e,r,i,a,o,n?.padding??.1);return l?(await l.setViewport(u,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(e,n={})=>{const{transform:r,snapGrid:i,snapToGrid:a,domNode:o}=t.getState();if(!o)return e;const{x:l,y:u}=o.getBoundingClientRect(),d={x:e.x-l,y:e.y-u},p=n.snapGrid??i,f=n.snapToGrid??a;return Yl(d,r,f,p)},flowToScreenPosition:e=>{const{transform:n,domNode:r}=t.getState();if(!r)return e;const{x:i,y:a}=r.getBoundingClientRect(),o=Ed(e,n);return{x:o.x+i,y:o.y+a}}}),[])};function fP(t,e){const n=[],r=new Map,i=[];for(const a of t)if(a.type==="add"){i.push(a);continue}else if(a.type==="remove"||a.type==="replace")r.set(a.id,[a]);else{const o=r.get(a.id);o?o.push(a):r.set(a.id,[a])}for(const a of e){const o=r.get(a.id);if(!o){n.push(a);continue}if(o[0].type==="remove")continue;if(o[0].type==="replace"){n.push({...o[0].item});continue}const l={...a};for(const u of o)HQ(u,l);n.push(l)}return i.length&&i.forEach(a=>{a.index!==void 0?n.splice(a.index,0,{...a.item}):n.push({...a.item})}),n}function HQ(t,e){switch(t.type){case"select":{e.selected=t.selected;break}case"position":{typeof t.position<"u"&&(e.position=t.position),typeof t.dragging<"u"&&(e.dragging=t.dragging);break}case"dimensions":{typeof t.dimensions<"u"&&(e.measured??={},e.measured.width=t.dimensions.width,e.measured.height=t.dimensions.height,t.setAttributes&&((t.setAttributes===!0||t.setAttributes==="width")&&(e.width=t.dimensions.width),(t.setAttributes===!0||t.setAttributes==="height")&&(e.height=t.dimensions.height))),typeof t.resizing=="boolean"&&(e.resizing=t.resizing);break}}}function hP(t,e){return fP(t,e)}function gP(t,e){return fP(t,e)}function va(t,e){return{id:t,type:"select",selected:e}}function Do(t,e=new Set,n=!1){const r=[];for(const[i,a]of t){const o=e.has(i);!(a.selected===void 0&&!o)&&a.selected!==o&&(n&&(a.selected=o),r.push(va(a.id,o)))}return r}function e1({items:t=[],lookup:e}){const n=[],r=new Map(t.map(i=>[i.id,i]));for(const[i,a]of t.entries()){const o=e.get(a.id),l=o?.internals?.userNode??o;l!==void 0&&l!==a&&n.push({id:a.id,item:a,type:"replace"}),l===void 0&&n.push({item:a,type:"add",index:i})}for(const[i]of e)r.get(i)===void 0&&n.push({id:i,type:"remove"});return n}function t1(t){return{id:t.id,type:"remove"}}const n1=t=>gZ(t),GQ=t=>FM(t);function mP(t){return C.forwardRef(t)}const qQ=typeof window<"u"?C.useLayoutEffect:C.useEffect;function r1(t){const[e,n]=C.useState(BigInt(0)),[r]=C.useState(()=>VQ(()=>n(i=>i+BigInt(1))));return qQ(()=>{const i=r.get();i.length&&(t(i),r.reset())},[e]),r}function VQ(t){let e=[];return{get:()=>e,reset:()=>{e=[]},push:n=>{e.push(n),t()}}}const bP=C.createContext(null);function WQ({children:t}){const e=pt(),n=C.useCallback(l=>{const{nodes:u=[],setNodes:d,hasDefaultNodes:p,onNodesChange:f,nodeLookup:g,fitViewQueued:m}=e.getState();let v=u;for(const E of l)v=typeof E=="function"?E(v):E;const b=e1({items:v,lookup:g});p&&d(v),b.length>0?f?.(b):m&&window.requestAnimationFrame(()=>{const{fitViewQueued:E,nodes:S,setNodes:_}=e.getState();E&&_(S)})},[]),r=r1(n),i=C.useCallback(l=>{const{edges:u=[],setEdges:d,hasDefaultEdges:p,onEdgesChange:f,edgeLookup:g}=e.getState();let m=u;for(const v of l)m=typeof v=="function"?v(m):v;p?d(m):f&&f(e1({items:m,lookup:g}))},[]),a=r1(i),o=C.useMemo(()=>({nodeQueue:r,edgeQueue:a}),[]);return T.jsx(bP.Provider,{value:o,children:t})}function YQ(){const t=C.useContext(bP);if(!t)throw new Error("useBatchContext must be used within a BatchProvider");return t}const XQ=t=>!!t.panZoom;function _S(){const t=jQ(),e=pt(),n=YQ(),r=Ge(XQ),i=C.useMemo(()=>{const a=f=>e.getState().nodeLookup.get(f),o=f=>{n.nodeQueue.push(f)},l=f=>{n.edgeQueue.push(f)},u=f=>{const{nodeLookup:g,nodeOrigin:m}=e.getState(),v=n1(f)?f:g.get(f.id),b=v.parentId?HM(v.position,v.measured,v.parentId,g,m):v.position,E={...v,position:b,width:v.measured?.width??v.width,height:v.measured?.height??v.height};return Jo(E)},d=(f,g,m={replace:!1})=>{o(v=>v.map(b=>{if(b.id===f){const E=typeof g=="function"?g(b):g;return m.replace&&n1(E)?E:{...b,...E}}return b}))},p=(f,g,m={replace:!1})=>{l(v=>v.map(b=>{if(b.id===f){const E=typeof g=="function"?g(b):g;return m.replace&&GQ(E)?E:{...b,...E}}return b}))};return{getNodes:()=>e.getState().nodes.map(f=>({...f})),getNode:f=>a(f)?.internals.userNode,getInternalNode:a,getEdges:()=>{const{edges:f=[]}=e.getState();return f.map(g=>({...g}))},getEdge:f=>e.getState().edgeLookup.get(f),setNodes:o,setEdges:l,addNodes:f=>{const g=Array.isArray(f)?f:[f];n.nodeQueue.push(m=>[...m,...g])},addEdges:f=>{const g=Array.isArray(f)?f:[f];n.edgeQueue.push(m=>[...m,...g])},toObject:()=>{const{nodes:f=[],edges:g=[],transform:m}=e.getState(),[v,b,E]=m;return{nodes:f.map(S=>({...S})),edges:g.map(S=>({...S})),viewport:{x:v,y:b,zoom:E}}},deleteElements:async({nodes:f=[],edges:g=[]})=>{const{nodes:m,edges:v,onNodesDelete:b,onEdgesDelete:E,triggerNodeChanges:S,triggerEdgeChanges:_,onDelete:w,onBeforeDelete:A}=e.getState(),{nodes:k,edges:R}=await EZ({nodesToRemove:f,edgesToRemove:g,nodes:m,edges:v,onBeforeDelete:A}),I=R.length>0,O=k.length>0;if(I){const L=R.map(t1);E?.(R),_(L)}if(O){const L=k.map(t1);b?.(k),S(L)}return(O||I)&&w?.({nodes:k,edges:R}),{deletedNodes:k,deletedEdges:R}},getIntersectingNodes:(f,g=!0,m)=>{const v=II(f),b=v?f:u(f),E=m!==void 0;return b?(m||e.getState().nodes).filter(S=>{const _=e.getState().nodeLookup.get(S.id);if(_&&!v&&(S.id===f.id||!_.internals.positionAbsolute))return!1;const w=Jo(E?S:_),A=Cl(w,b);return g&&A>0||A>=w.width*w.height||A>=b.width*b.height}):[]},isNodeIntersecting:(f,g,m=!0)=>{const b=II(f)?f:u(f);if(!b)return!1;const E=Cl(b,g);return m&&E>0||E>=g.width*g.height||E>=b.width*b.height},updateNode:d,updateNodeData:(f,g,m={replace:!1})=>{d(f,v=>{const b=typeof g=="function"?g(v):g;return m.replace?{...v,data:b}:{...v,data:{...v.data,...b}}},m)},updateEdge:p,updateEdgeData:(f,g,m={replace:!1})=>{p(f,v=>{const b=typeof g=="function"?g(v):g;return m.replace?{...v,data:b}:{...v,data:{...v.data,...b}}},m)},getNodesBounds:f=>{const{nodeLookup:g,nodeOrigin:m}=e.getState();return mZ(f,{nodeLookup:g,nodeOrigin:m})},getHandleConnections:({type:f,id:g,nodeId:m})=>Array.from(e.getState().connectionLookup.get(`${m}-${f}${g?`-${g}`:""}`)?.values()??[]),getNodeConnections:({type:f,handleId:g,nodeId:m})=>Array.from(e.getState().connectionLookup.get(`${m}${f?g?`-${f}-${g}`:`-${f}`:""}`)?.values()??[]),fitView:async f=>{const g=e.getState().fitViewResolver??AZ();return e.setState({fitViewQueued:!0,fitViewOptions:f,fitViewResolver:g}),n.nodeQueue.push(m=>[...m]),g.promise}}},[]);return C.useMemo(()=>({...i,...t,viewportInitialized:r}),[r])}const i1=t=>t.selected,KQ=typeof window<"u"?window:void 0;function ZQ({deleteKeyCode:t,multiSelectionKeyCode:e}){const n=pt(),{deleteElements:r}=_S(),i=Nl(t,{actInsideInputWithModifier:!1}),a=Nl(e,{target:KQ});C.useEffect(()=>{if(i){const{edges:o,nodes:l}=n.getState();r({nodes:l.filter(i1),edges:o.filter(i1)}),n.setState({nodesSelectionActive:!1})}},[i]),C.useEffect(()=>{n.setState({multiSelectionActive:a})},[a])}function QQ(t){const e=pt();C.useEffect(()=>{const n=()=>{if(!t.current||!(t.current.checkVisibility?.()??!0))return!1;const r=ES(t.current);(r.height===0||r.width===0)&&e.getState().onError?.("004",Ur.error004()),e.setState({width:r.width||500,height:r.height||500})};if(t.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(t.current),()=>{window.removeEventListener("resize",n),r&&t.current&&r.unobserve(t.current)}}},[])}const ip={position:"absolute",width:"100%",height:"100%",top:0,left:0},JQ=t=>({userSelectionActive:t.userSelectionActive,lib:t.lib,connectionInProgress:t.connection.inProgress});function eJ({onPaneContextMenu:t,zoomOnScroll:e=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:i=.5,panOnScrollMode:a=Ra.Free,zoomOnDoubleClick:o=!0,panOnDrag:l=!0,defaultViewport:u,translateExtent:d,minZoom:p,maxZoom:f,zoomActivationKeyCode:g,preventScrolling:m=!0,children:v,noWheelClassName:b,noPanClassName:E,onViewportChange:S,isControlledViewport:_,paneClickDistance:w}){const A=pt(),k=C.useRef(null),{userSelectionActive:R,lib:I,connectionInProgress:O}=Ge(JQ,vt),L=Nl(g),F=C.useRef();QQ(k);const j=C.useCallback(H=>{S?.({x:H[0],y:H[1],zoom:H[2]}),_||A.setState({transform:H})},[S,_]);return C.useEffect(()=>{if(k.current){F.current=oQ({domNode:k.current,minZoom:p,maxZoom:f,translateExtent:d,viewport:u,paneClickDistance:w,onDraggingChange:z=>A.setState({paneDragging:z}),onPanZoomStart:(z,B)=>{const{onViewportChangeStart:U,onMoveStart:M}=A.getState();M?.(z,B),U?.(B)},onPanZoom:(z,B)=>{const{onViewportChange:U,onMove:M}=A.getState();M?.(z,B),U?.(B)},onPanZoomEnd:(z,B)=>{const{onViewportChangeEnd:U,onMoveEnd:M}=A.getState();M?.(z,B),U?.(B)}});const{x:H,y:G,zoom:D}=F.current.getViewport();return A.setState({panZoom:F.current,transform:[H,G,D],domNode:k.current.closest(".react-flow")}),()=>{F.current?.destroy()}}},[]),C.useEffect(()=>{F.current?.update({onPaneContextMenu:t,zoomOnScroll:e,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:i,panOnScrollMode:a,zoomOnDoubleClick:o,panOnDrag:l,zoomActivationKeyPressed:L,preventScrolling:m,noPanClassName:E,userSelectionActive:R,noWheelClassName:b,lib:I,onTransformChange:j,connectionInProgress:O})},[t,e,n,r,i,a,o,l,L,m,E,R,b,I,j,O]),T.jsx("div",{className:"react-flow__renderer",ref:k,style:ip,children:v})}const tJ=t=>({userSelectionActive:t.userSelectionActive,userSelectionRect:t.userSelectionRect});function nJ(){const{userSelectionActive:t,userSelectionRect:e}=Ge(tJ,vt);return t&&e?T.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:e.width,height:e.height,transform:`translate(${e.x}px, ${e.y}px)`}}):null}const _E=(t,e)=>n=>{n.target===e.current&&t?.(n)},rJ=t=>({userSelectionActive:t.userSelectionActive,elementsSelectable:t.elementsSelectable,connectionInProgress:t.connection.inProgress,dragging:t.paneDragging});function iJ({isSelecting:t,selectionKeyPressed:e,selectionMode:n=Tl.Full,panOnDrag:r,selectionOnDrag:i,onSelectionStart:a,onSelectionEnd:o,onPaneClick:l,onPaneContextMenu:u,onPaneScroll:d,onPaneMouseEnter:p,onPaneMouseMove:f,onPaneMouseLeave:g,children:m}){const v=pt(),{userSelectionActive:b,elementsSelectable:E,dragging:S,connectionInProgress:_}=Ge(rJ,vt),w=E&&(t||b),A=C.useRef(null),k=C.useRef(),R=C.useRef(new Set),I=C.useRef(new Set),O=C.useRef(!1),L=C.useRef(!1),F=U=>{if(O.current||_){O.current=!1;return}l?.(U),v.getState().resetSelectedElements(),v.setState({nodesSelectionActive:!1})},j=U=>{if(Array.isArray(r)&&r?.includes(2)){U.preventDefault();return}u?.(U)},H=d?U=>d(U):void 0,G=U=>{const{resetSelectedElements:M,domNode:q}=v.getState();if(k.current=q?.getBoundingClientRect(),!E||!t||U.button!==0||U.target!==A.current||!k.current)return;U.target?.setPointerCapture?.(U.pointerId),L.current=!0,O.current=!1;const{x:Y,y:$}=ur(U.nativeEvent,k.current);M(),v.setState({userSelectionRect:{width:0,height:0,startX:Y,startY:$,x:Y,y:$}}),a?.(U)},D=U=>{const{userSelectionRect:M,transform:q,nodeLookup:Y,edgeLookup:$,connectionLookup:V,triggerNodeChanges:X,triggerEdgeChanges:Q,defaultEdgeOptions:te}=v.getState();if(!k.current||!M)return;O.current=!0;const{x:ie,y:W}=ur(U.nativeEvent,k.current),{startX:Z,startY:ne}=M,se={startX:Z,startY:ne,x:ie<Z?ie:Z,y:W<ne?W:ne,width:Math.abs(ie-Z),height:Math.abs(W-ne)},de=R.current,ce=I.current;R.current=new Set(yS(Y,se,q,n===Tl.Partial,!0).map(he=>he.id)),I.current=new Set;const le=te?.selectable??!0;for(const he of R.current){const Se=V.get(he);if(Se)for(const{edgeId:xe}of Se.values()){const Fe=$.get(xe);Fe&&(Fe.selectable??le)&&I.current.add(xe)}}if(!OI(de,R.current)){const he=Do(Y,R.current,!0);X(he)}if(!OI(ce,I.current)){const he=Do($,I.current);Q(he)}v.setState({userSelectionRect:se,userSelectionActive:!0,nodesSelectionActive:!1})},z=U=>{if(U.button!==0||!L.current)return;U.target?.releasePointerCapture?.(U.pointerId);const{userSelectionRect:M}=v.getState();!b&&M&&U.target===A.current&&F?.(U),v.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:R.current.size>0}),o?.(U),(e||i)&&(O.current=!1),L.current=!1},B=r===!0||Array.isArray(r)&&r.includes(0);return T.jsxs("div",{className:Dt(["react-flow__pane",{draggable:B,dragging:S,selection:t}]),onClick:w?void 0:_E(F,A),onContextMenu:_E(j,A),onWheel:_E(H,A),onPointerEnter:w?void 0:p,onPointerDown:w?G:f,onPointerMove:w?D:f,onPointerUp:w?z:void 0,onPointerLeave:g,ref:A,style:ip,children:[m,T.jsx(nJ,{})]})}function gw({id:t,store:e,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:i,unselectNodesAndEdges:a,multiSelectionActive:o,nodeLookup:l,onError:u}=e.getState(),d=l.get(t);if(!d){u?.("012",Ur.error012(t));return}e.setState({nodesSelectionActive:!1}),d.selected?(n||d.selected&&o)&&(a({nodes:[d],edges:[]}),requestAnimationFrame(()=>r?.current?.blur())):i([t])}function yP({nodeRef:t,disabled:e=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:a,nodeClickDistance:o}){const l=pt(),[u,d]=C.useState(!1),p=C.useRef();return C.useEffect(()=>{p.current=qZ({getStoreItems:()=>l.getState(),onNodeMouseDown:f=>{gw({id:f,store:l,nodeRef:t})},onDragStart:()=>{d(!0)},onDragStop:()=>{d(!1)}})},[]),C.useEffect(()=>{if(e)p.current?.destroy();else if(t.current)return p.current?.update({noDragClassName:n,handleSelector:r,domNode:t.current,isSelectable:a,nodeId:i,nodeClickDistance:o}),()=>{p.current?.destroy()}},[n,r,e,a,t,i]),u}const aJ=t=>e=>e.selected&&(e.draggable||t&&typeof e.draggable>"u");function vP(){const t=pt();return C.useCallback(n=>{const{nodeExtent:r,snapToGrid:i,snapGrid:a,nodesDraggable:o,onError:l,updateNodePositions:u,nodeLookup:d,nodeOrigin:p}=t.getState(),f=new Map,g=aJ(o),m=i?a[0]:5,v=i?a[1]:5,b=n.direction.x*m*n.factor,E=n.direction.y*v*n.factor;for(const[,S]of d){if(!g(S))continue;let _={x:S.internals.positionAbsolute.x+b,y:S.internals.positionAbsolute.y+E};i&&(_=Wl(_,a));const{position:w,positionAbsolute:A}=BM({nodeId:S.id,nextPosition:_,nodeLookup:d,nodeExtent:r,nodeOrigin:p,onError:l});S.position=w,S.internals.positionAbsolute=A,f.set(S.id,S)}u(f)},[])}const TS=C.createContext(null),oJ=TS.Provider;TS.Consumer;const EP=()=>C.useContext(TS),sJ=t=>({connectOnClick:t.connectOnClick,noPanClassName:t.noPanClassName,rfId:t.rfId}),lJ=(t,e,n)=>r=>{const{connectionClickStartHandle:i,connectionMode:a,connection:o}=r,{fromHandle:l,toHandle:u,isValid:d}=o,p=u?.nodeId===t&&u?.id===e&&u?.type===n;return{connectingFrom:l?.nodeId===t&&l?.id===e&&l?.type===n,connectingTo:p,clickConnecting:i?.nodeId===t&&i?.id===e&&i?.type===n,isPossibleEndHandle:a===Ko.Strict?l?.type!==n:t!==l?.nodeId||e!==l?.id,connectionInProcess:!!l,clickConnectionInProcess:!!i,valid:p&&d}};function cJ({type:t="source",position:e=Te.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:i=!0,isConnectableEnd:a=!0,id:o,onConnect:l,children:u,className:d,onMouseDown:p,onTouchStart:f,...g},m){const v=o||null,b=t==="target",E=pt(),S=EP(),{connectOnClick:_,noPanClassName:w,rfId:A}=Ge(sJ,vt),{connectingFrom:k,connectingTo:R,clickConnecting:I,isPossibleEndHandle:O,connectionInProcess:L,clickConnectionInProcess:F,valid:j}=Ge(lJ(S,v,t),vt);S||E.getState().onError?.("010",Ur.error010());const H=z=>{const{defaultEdgeOptions:B,onConnect:U,hasDefaultEdges:M}=E.getState(),q={...B,...z};if(M){const{edges:Y,setEdges:$}=E.getState();$(KM(q,Y))}U?.(q),l?.(q)},G=z=>{if(!S)return;const B=VM(z.nativeEvent);if(i&&(B&&z.button===0||!B)){const U=E.getState();hw.onPointerDown(z.nativeEvent,{handleDomNode:z.currentTarget,autoPanOnConnect:U.autoPanOnConnect,connectionMode:U.connectionMode,connectionRadius:U.connectionRadius,domNode:U.domNode,nodeLookup:U.nodeLookup,lib:U.lib,isTarget:b,handleId:v,nodeId:S,flowId:U.rfId,panBy:U.panBy,cancelConnection:U.cancelConnection,onConnectStart:U.onConnectStart,onConnectEnd:U.onConnectEnd,updateConnection:U.updateConnection,onConnect:H,isValidConnection:n||U.isValidConnection,getTransform:()=>E.getState().transform,getFromHandle:()=>E.getState().connection.fromHandle,autoPanSpeed:U.autoPanSpeed,dragThreshold:U.connectionDragThreshold})}B?p?.(z):f?.(z)},D=z=>{const{onClickConnectStart:B,onClickConnectEnd:U,connectionClickStartHandle:M,connectionMode:q,isValidConnection:Y,lib:$,rfId:V,nodeLookup:X,connection:Q}=E.getState();if(!S||!M&&!i)return;if(!M){B?.(z.nativeEvent,{nodeId:S,handleId:v,handleType:t}),E.setState({connectionClickStartHandle:{nodeId:S,type:t,id:v}});return}const te=GM(z.target),ie=n||Y,{connection:W,isValid:Z}=hw.isValid(z.nativeEvent,{handle:{nodeId:S,id:v,type:t},connectionMode:q,fromNodeId:M.nodeId,fromHandleId:M.id||null,fromType:M.type,isValidConnection:ie,flowId:V,doc:te,lib:$,nodeLookup:X});Z&&W&&H(W);const ne=structuredClone(Q);delete ne.inProgress,ne.toPosition=ne.toHandle?ne.toHandle.position:null,U?.(z,ne),E.setState({connectionClickStartHandle:null})};return T.jsx("div",{"data-handleid":v,"data-nodeid":S,"data-handlepos":e,"data-id":`${A}-${S}-${v}-${t}`,className:Dt(["react-flow__handle",`react-flow__handle-${e}`,"nodrag",w,d,{source:!b,target:b,connectable:r,connectablestart:i,connectableend:a,clickconnecting:I,connectingfrom:k,connectingto:R,valid:j,connectionindicator:r&&(!L||O)&&(L||F?a:i)}]),onMouseDown:G,onTouchStart:G,onClick:_?D:void 0,ref:m,...g,children:u})}const Or=C.memo(mP(cJ));function uJ({data:t,isConnectable:e,sourcePosition:n=Te.Bottom}){return T.jsxs(T.Fragment,{children:[t?.label,T.jsx(Or,{type:"source",position:n,isConnectable:e})]})}function dJ({data:t,isConnectable:e,targetPosition:n=Te.Top,sourcePosition:r=Te.Bottom}){return T.jsxs(T.Fragment,{children:[T.jsx(Or,{type:"target",position:n,isConnectable:e}),t?.label,T.jsx(Or,{type:"source",position:r,isConnectable:e})]})}function pJ(){return null}function fJ({data:t,isConnectable:e,targetPosition:n=Te.Top}){return T.jsxs(T.Fragment,{children:[T.jsx(Or,{type:"target",position:n,isConnectable:e}),t?.label]})}const wd={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},a1={input:uJ,default:dJ,output:fJ,group:pJ};function hJ(t){return t.internals.handleBounds===void 0?{width:t.width??t.initialWidth??t.style?.width,height:t.height??t.initialHeight??t.style?.height}:{width:t.width??t.style?.width,height:t.height??t.style?.height}}const gJ=t=>{const{width:e,height:n,x:r,y:i}=Vl(t.nodeLookup,{filter:a=>!!a.selected});return{width:cr(e)?e:null,height:cr(n)?n:null,userSelectionActive:t.userSelectionActive,transformString:`translate(${t.transform[0]}px,${t.transform[1]}px) scale(${t.transform[2]}) translate(${r}px,${i}px)`}};function mJ({onSelectionContextMenu:t,noPanClassName:e,disableKeyboardA11y:n}){const r=pt(),{width:i,height:a,transformString:o,userSelectionActive:l}=Ge(gJ,vt),u=vP(),d=C.useRef(null);if(C.useEffect(()=>{n||d.current?.focus({preventScroll:!0})},[n]),yP({nodeRef:d}),l||!i||!a)return null;const p=t?g=>{const m=r.getState().nodes.filter(v=>v.selected);t(g,m)}:void 0,f=g=>{Object.prototype.hasOwnProperty.call(wd,g.key)&&(g.preventDefault(),u({direction:wd[g.key],factor:g.shiftKey?4:1}))};return T.jsx("div",{className:Dt(["react-flow__nodesselection","react-flow__container",e]),style:{transform:o},children:T.jsx("div",{ref:d,className:"react-flow__nodesselection-rect",onContextMenu:p,tabIndex:n?void 0:-1,onKeyDown:n?void 0:f,style:{width:i,height:a}})})}const o1=typeof window<"u"?window:void 0,bJ=t=>({nodesSelectionActive:t.nodesSelectionActive,userSelectionActive:t.userSelectionActive});function wP({children:t,onPaneClick:e,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:o,paneClickDistance:l,deleteKeyCode:u,selectionKeyCode:d,selectionOnDrag:p,selectionMode:f,onSelectionStart:g,onSelectionEnd:m,multiSelectionKeyCode:v,panActivationKeyCode:b,zoomActivationKeyCode:E,elementsSelectable:S,zoomOnScroll:_,zoomOnPinch:w,panOnScroll:A,panOnScrollSpeed:k,panOnScrollMode:R,zoomOnDoubleClick:I,panOnDrag:O,defaultViewport:L,translateExtent:F,minZoom:j,maxZoom:H,preventScrolling:G,onSelectionContextMenu:D,noWheelClassName:z,noPanClassName:B,disableKeyboardA11y:U,onViewportChange:M,isControlledViewport:q}){const{nodesSelectionActive:Y,userSelectionActive:$}=Ge(bJ),V=Nl(d,{target:o1}),X=Nl(b,{target:o1}),Q=X||O,te=X||A,ie=p&&Q!==!0,W=V||$||ie;return ZQ({deleteKeyCode:u,multiSelectionKeyCode:v}),T.jsx(eJ,{onPaneContextMenu:a,elementsSelectable:S,zoomOnScroll:_,zoomOnPinch:w,panOnScroll:te,panOnScrollSpeed:k,panOnScrollMode:R,zoomOnDoubleClick:I,panOnDrag:!V&&Q,defaultViewport:L,translateExtent:F,minZoom:j,maxZoom:H,zoomActivationKeyCode:E,preventScrolling:G,noWheelClassName:z,noPanClassName:B,onViewportChange:M,isControlledViewport:q,paneClickDistance:l,children:T.jsxs(iJ,{onSelectionStart:g,onSelectionEnd:m,onPaneClick:e,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:o,panOnDrag:Q,isSelecting:!!W,selectionMode:f,selectionKeyPressed:V,selectionOnDrag:ie,children:[t,Y&&T.jsx(mJ,{onSelectionContextMenu:D,noPanClassName:B,disableKeyboardA11y:U})]})})}wP.displayName="FlowRenderer";const yJ=C.memo(wP),vJ=t=>e=>t?yS(e.nodeLookup,{x:0,y:0,width:e.width,height:e.height},e.transform,!0).map(n=>n.id):Array.from(e.nodeLookup.keys());function EJ(t){return Ge(C.useCallback(vJ(t),[t]),vt)}const wJ=t=>t.updateNodeInternals;function SJ(){const t=Ge(wJ),[e]=C.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(i=>{const a=i.target.getAttribute("data-id");r.set(a,{id:a,nodeElement:i.target,force:!0})}),t(r)}));return C.useEffect(()=>()=>{e?.disconnect()},[e]),e}function xJ({node:t,nodeType:e,hasDimensions:n,resizeObserver:r}){const i=pt(),a=C.useRef(null),o=C.useRef(null),l=C.useRef(t.sourcePosition),u=C.useRef(t.targetPosition),d=C.useRef(e),p=n&&!!t.internals.handleBounds;return C.useEffect(()=>{a.current&&!t.hidden&&(!p||o.current!==a.current)&&(o.current&&r?.unobserve(o.current),r?.observe(a.current),o.current=a.current)},[p,t.hidden]),C.useEffect(()=>()=>{o.current&&(r?.unobserve(o.current),o.current=null)},[]),C.useEffect(()=>{if(a.current){const f=d.current!==e,g=l.current!==t.sourcePosition,m=u.current!==t.targetPosition;(f||g||m)&&(d.current=e,l.current=t.sourcePosition,u.current=t.targetPosition,i.getState().updateNodeInternals(new Map([[t.id,{id:t.id,nodeElement:a.current,force:!0}]])))}},[t.id,e,t.sourcePosition,t.targetPosition]),a}function AJ({id:t,onClick:e,onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onContextMenu:a,onDoubleClick:o,nodesDraggable:l,elementsSelectable:u,nodesConnectable:d,nodesFocusable:p,resizeObserver:f,noDragClassName:g,noPanClassName:m,disableKeyboardA11y:v,rfId:b,nodeTypes:E,nodeClickDistance:S,onError:_}){const{node:w,internals:A,isParent:k}=Ge(Z=>{const ne=Z.nodeLookup.get(t),se=Z.parentLookup.has(t);return{node:ne,internals:ne.internals,isParent:se}},vt);let R=w.type||"default",I=E?.[R]||a1[R];I===void 0&&(_?.("003",Ur.error003(R)),R="default",I=E?.default||a1.default);const O=!!(w.draggable||l&&typeof w.draggable>"u"),L=!!(w.selectable||u&&typeof w.selectable>"u"),F=!!(w.connectable||d&&typeof w.connectable>"u"),j=!!(w.focusable||p&&typeof w.focusable>"u"),H=pt(),G=jM(w),D=xJ({node:w,nodeType:R,hasDimensions:G,resizeObserver:f}),z=yP({nodeRef:D,disabled:w.hidden||!O,noDragClassName:g,handleSelector:w.dragHandle,nodeId:t,isSelectable:L,nodeClickDistance:S}),B=vP();if(w.hidden)return null;const U=ui(w),M=hJ(w),q=L||O||e||n||r||i,Y=n?Z=>n(Z,{...A.userNode}):void 0,$=r?Z=>r(Z,{...A.userNode}):void 0,V=i?Z=>i(Z,{...A.userNode}):void 0,X=a?Z=>a(Z,{...A.userNode}):void 0,Q=o?Z=>o(Z,{...A.userNode}):void 0,te=Z=>{const{selectNodesOnDrag:ne,nodeDragThreshold:se}=H.getState();L&&(!ne||!O||se>0)&&gw({id:t,store:H,nodeRef:D}),e&&e(Z,{...A.userNode})},ie=Z=>{if(!(qM(Z.nativeEvent)||v)){if(LM.includes(Z.key)&&L){const ne=Z.key==="Escape";gw({id:t,store:H,unselect:ne,nodeRef:D})}else if(O&&w.selected&&Object.prototype.hasOwnProperty.call(wd,Z.key)){Z.preventDefault();const{ariaLabelConfig:ne}=H.getState();H.setState({ariaLiveMessage:ne["node.a11yDescription.ariaLiveMessage"]({direction:Z.key.replace("Arrow","").toLowerCase(),x:~~A.positionAbsolute.x,y:~~A.positionAbsolute.y})}),B({direction:wd[Z.key],factor:Z.shiftKey?4:1})}}},W=()=>{if(v||!D.current?.matches(":focus-visible"))return;const{transform:Z,width:ne,height:se,autoPanOnNodeFocus:de,setCenter:ce}=H.getState();if(!de)return;yS(new Map([[t,w]]),{x:0,y:0,width:ne,height:se},Z,!0).length>0||ce(w.position.x+U.width/2,w.position.y+U.height/2,{zoom:Z[2]})};return T.jsx("div",{className:Dt(["react-flow__node",`react-flow__node-${R}`,{[m]:O},w.className,{selected:w.selected,selectable:L,parent:k,draggable:O,dragging:z}]),ref:D,style:{zIndex:A.z,transform:`translate(${A.positionAbsolute.x}px,${A.positionAbsolute.y}px)`,pointerEvents:q?"all":"none",visibility:G?"visible":"hidden",...w.style,...M},"data-id":t,"data-testid":`rf__node-${t}`,onMouseEnter:Y,onMouseMove:$,onMouseLeave:V,onContextMenu:X,onClick:te,onDoubleClick:Q,onKeyDown:j?ie:void 0,tabIndex:j?0:void 0,onFocus:j?W:void 0,role:w.ariaRole??(j?"group":void 0),"aria-roledescription":"node","aria-describedby":v?void 0:`${uP}-${b}`,"aria-label":w.ariaLabel,...w.domAttributes,children:T.jsx(oJ,{value:t,children:T.jsx(I,{id:t,data:w.data,type:R,positionAbsoluteX:A.positionAbsolute.x,positionAbsoluteY:A.positionAbsolute.y,selected:w.selected??!1,selectable:L,draggable:O,deletable:w.deletable??!0,isConnectable:F,sourcePosition:w.sourcePosition,targetPosition:w.targetPosition,dragging:z,dragHandle:w.dragHandle,zIndex:A.z,parentId:w.parentId,...U})})})}const _J=t=>({nodesDraggable:t.nodesDraggable,nodesConnectable:t.nodesConnectable,nodesFocusable:t.nodesFocusable,elementsSelectable:t.elementsSelectable,onError:t.onError});function SP(t){const{nodesDraggable:e,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,onError:a}=Ge(_J,vt),o=EJ(t.onlyRenderVisibleElements),l=SJ();return T.jsx("div",{className:"react-flow__nodes",style:ip,children:o.map(u=>T.jsx(AJ,{id:u,nodeTypes:t.nodeTypes,nodeExtent:t.nodeExtent,onClick:t.onNodeClick,onMouseEnter:t.onNodeMouseEnter,onMouseMove:t.onNodeMouseMove,onMouseLeave:t.onNodeMouseLeave,onContextMenu:t.onNodeContextMenu,onDoubleClick:t.onNodeDoubleClick,noDragClassName:t.noDragClassName,noPanClassName:t.noPanClassName,rfId:t.rfId,disableKeyboardA11y:t.disableKeyboardA11y,resizeObserver:l,nodesDraggable:e,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,nodeClickDistance:t.nodeClickDistance,onError:a},u))})}SP.displayName="NodeRenderer";const TJ=C.memo(SP);function CJ(t){return Ge(C.useCallback(n=>{if(!t)return n.edges.map(i=>i.id);const r=[];if(n.width&&n.height)for(const i of n.edges){const a=n.nodeLookup.get(i.source),o=n.nodeLookup.get(i.target);a&&o&&RZ({sourceNode:a,targetNode:o,width:n.width,height:n.height,transform:n.transform})&&r.push(i.id)}return r},[t]),vt)}const RJ=({color:t="none",strokeWidth:e=1})=>{const n={strokeWidth:e,...t&&{stroke:t}};return T.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},kJ=({color:t="none",strokeWidth:e=1})=>{const n={strokeWidth:e,...t&&{stroke:t,fill:t}};return T.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},s1={[Zo.Arrow]:RJ,[Zo.ArrowClosed]:kJ};function NJ(t){const e=pt();return C.useMemo(()=>Object.prototype.hasOwnProperty.call(s1,t)?s1[t]:(e.getState().onError?.("009",Ur.error009(t)),null),[t])}const IJ=({id:t,type:e,color:n,width:r=12.5,height:i=12.5,markerUnits:a="strokeWidth",strokeWidth:o,orient:l="auto-start-reverse"})=>{const u=NJ(e);return u?T.jsx("marker",{className:"react-flow__arrowhead",id:t,markerWidth:`${r}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:a,orient:l,refX:"0",refY:"0",children:T.jsx(u,{color:n,strokeWidth:o})}):null},xP=({defaultColor:t,rfId:e})=>{const n=Ge(a=>a.edges),r=Ge(a=>a.defaultEdgeOptions),i=C.useMemo(()=>MZ(n,{id:e,defaultColor:t,defaultMarkerStart:r?.markerStart,defaultMarkerEnd:r?.markerEnd}),[n,r,e,t]);return i.length?T.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:T.jsx("defs",{children:i.map(a=>T.jsx(IJ,{id:a.id,type:a.type,color:a.color,width:a.width,height:a.height,markerUnits:a.markerUnits,strokeWidth:a.strokeWidth,orient:a.orient},a.id))})}):null};xP.displayName="MarkerDefinitions";var OJ=C.memo(xP);function AP({x:t,y:e,label:n,labelStyle:r,labelShowBg:i=!0,labelBgStyle:a,labelBgPadding:o=[2,4],labelBgBorderRadius:l=2,children:u,className:d,...p}){const[f,g]=C.useState({x:1,y:0,width:0,height:0}),m=Dt(["react-flow__edge-textwrapper",d]),v=C.useRef(null);return C.useEffect(()=>{if(v.current){const b=v.current.getBBox();g({x:b.x,y:b.y,width:b.width,height:b.height})}},[n]),n?T.jsxs("g",{transform:`translate(${t-f.width/2} ${e-f.height/2})`,className:m,visibility:f.width?"visible":"hidden",...p,children:[i&&T.jsx("rect",{width:f.width+2*o[0],x:-o[0],y:-o[1],height:f.height+2*o[1],className:"react-flow__edge-textbg",style:a,rx:l,ry:l}),T.jsx("text",{className:"react-flow__edge-text",y:f.height/2,dy:"0.3em",ref:v,style:r,children:n}),u]}):null}AP.displayName="EdgeText";const LJ=C.memo(AP);function ap({path:t,labelX:e,labelY:n,label:r,labelStyle:i,labelShowBg:a,labelBgStyle:o,labelBgPadding:l,labelBgBorderRadius:u,interactionWidth:d=20,...p}){return T.jsxs(T.Fragment,{children:[T.jsx("path",{...p,d:t,fill:"none",className:Dt(["react-flow__edge-path",p.className])}),d?T.jsx("path",{d:t,fill:"none",strokeOpacity:0,strokeWidth:d,className:"react-flow__edge-interaction"}):null,r&&cr(e)&&cr(n)?T.jsx(LJ,{x:e,y:n,label:r,labelStyle:i,labelShowBg:a,labelBgStyle:o,labelBgPadding:l,labelBgBorderRadius:u}):null]})}function l1({pos:t,x1:e,y1:n,x2:r,y2:i}){return t===Te.Left||t===Te.Right?[.5*(e+r),n]:[e,.5*(n+i)]}function _P({sourceX:t,sourceY:e,sourcePosition:n=Te.Bottom,targetX:r,targetY:i,targetPosition:a=Te.Top}){const[o,l]=l1({pos:n,x1:t,y1:e,x2:r,y2:i}),[u,d]=l1({pos:a,x1:r,y1:i,x2:t,y2:e}),[p,f,g,m]=WM({sourceX:t,sourceY:e,targetX:r,targetY:i,sourceControlX:o,sourceControlY:l,targetControlX:u,targetControlY:d});return[`M${t},${e} C${o},${l} ${u},${d} ${r},${i}`,p,f,g,m]}function TP(t){return C.memo(({id:e,sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:o,targetPosition:l,label:u,labelStyle:d,labelShowBg:p,labelBgStyle:f,labelBgPadding:g,labelBgBorderRadius:m,style:v,markerEnd:b,markerStart:E,interactionWidth:S})=>{const[_,w,A]=_P({sourceX:n,sourceY:r,sourcePosition:o,targetX:i,targetY:a,targetPosition:l}),k=t.isInternal?void 0:e;return T.jsx(ap,{id:k,path:_,labelX:w,labelY:A,label:u,labelStyle:d,labelShowBg:p,labelBgStyle:f,labelBgPadding:g,labelBgBorderRadius:m,style:v,markerEnd:b,markerStart:E,interactionWidth:S})})}const DJ=TP({isInternal:!1}),CP=TP({isInternal:!0});DJ.displayName="SimpleBezierEdge";CP.displayName="SimpleBezierEdgeInternal";function RP(t){return C.memo(({id:e,sourceX:n,sourceY:r,targetX:i,targetY:a,label:o,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:f,style:g,sourcePosition:m=Te.Bottom,targetPosition:v=Te.Top,markerEnd:b,markerStart:E,pathOptions:S,interactionWidth:_})=>{const[w,A,k]=dw({sourceX:n,sourceY:r,sourcePosition:m,targetX:i,targetY:a,targetPosition:v,borderRadius:S?.borderRadius,offset:S?.offset,stepPosition:S?.stepPosition}),R=t.isInternal?void 0:e;return T.jsx(ap,{id:R,path:w,labelX:A,labelY:k,label:o,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:f,style:g,markerEnd:b,markerStart:E,interactionWidth:_})})}const kP=RP({isInternal:!1}),NP=RP({isInternal:!0});kP.displayName="SmoothStepEdge";NP.displayName="SmoothStepEdgeInternal";function IP(t){return C.memo(({id:e,...n})=>{const r=t.isInternal?void 0:e;return T.jsx(kP,{...n,id:r,pathOptions:C.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const MJ=IP({isInternal:!1}),OP=IP({isInternal:!0});MJ.displayName="StepEdge";OP.displayName="StepEdgeInternal";function LP(t){return C.memo(({id:e,sourceX:n,sourceY:r,targetX:i,targetY:a,label:o,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:f,style:g,markerEnd:m,markerStart:v,interactionWidth:b})=>{const[E,S,_]=ZM({sourceX:n,sourceY:r,targetX:i,targetY:a}),w=t.isInternal?void 0:e;return T.jsx(ap,{id:w,path:E,labelX:S,labelY:_,label:o,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:f,style:g,markerEnd:m,markerStart:v,interactionWidth:b})})}const PJ=LP({isInternal:!1}),DP=LP({isInternal:!0});PJ.displayName="StraightEdge";DP.displayName="StraightEdgeInternal";function MP(t){return C.memo(({id:e,sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:o=Te.Bottom,targetPosition:l=Te.Top,label:u,labelStyle:d,labelShowBg:p,labelBgStyle:f,labelBgPadding:g,labelBgBorderRadius:m,style:v,markerEnd:b,markerStart:E,pathOptions:S,interactionWidth:_})=>{const[w,A,k]=YM({sourceX:n,sourceY:r,sourcePosition:o,targetX:i,targetY:a,targetPosition:l,curvature:S?.curvature}),R=t.isInternal?void 0:e;return T.jsx(ap,{id:R,path:w,labelX:A,labelY:k,label:u,labelStyle:d,labelShowBg:p,labelBgStyle:f,labelBgPadding:g,labelBgBorderRadius:m,style:v,markerEnd:b,markerStart:E,interactionWidth:_})})}const FJ=MP({isInternal:!1}),PP=MP({isInternal:!0});FJ.displayName="BezierEdge";PP.displayName="BezierEdgeInternal";const c1={default:PP,straight:DP,step:OP,smoothstep:NP,simplebezier:CP},u1={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},BJ=(t,e,n)=>n===Te.Left?t-e:n===Te.Right?t+e:t,UJ=(t,e,n)=>n===Te.Top?t-e:n===Te.Bottom?t+e:t,d1="react-flow__edgeupdater";function p1({position:t,centerX:e,centerY:n,radius:r=10,onMouseDown:i,onMouseEnter:a,onMouseOut:o,type:l}){return T.jsx("circle",{onMouseDown:i,onMouseEnter:a,onMouseOut:o,className:Dt([d1,`${d1}-${l}`]),cx:BJ(e,r,t),cy:UJ(n,r,t),r,stroke:"transparent",fill:"transparent"})}function $J({isReconnectable:t,reconnectRadius:e,edge:n,sourceX:r,sourceY:i,targetX:a,targetY:o,sourcePosition:l,targetPosition:u,onReconnect:d,onReconnectStart:p,onReconnectEnd:f,setReconnecting:g,setUpdateHover:m}){const v=pt(),b=(A,k)=>{if(A.button!==0)return;const{autoPanOnConnect:R,domNode:I,isValidConnection:O,connectionMode:L,connectionRadius:F,lib:j,onConnectStart:H,onConnectEnd:G,cancelConnection:D,nodeLookup:z,rfId:B,panBy:U,updateConnection:M}=v.getState(),q=k.type==="target",Y=(X,Q)=>{g(!1),f?.(X,n,k.type,Q)},$=X=>d?.(n,X),V=(X,Q)=>{g(!0),p?.(A,n,k.type),H?.(X,Q)};hw.onPointerDown(A.nativeEvent,{autoPanOnConnect:R,connectionMode:L,connectionRadius:F,domNode:I,handleId:k.id,nodeId:k.nodeId,nodeLookup:z,isTarget:q,edgeUpdaterType:k.type,lib:j,flowId:B,cancelConnection:D,panBy:U,isValidConnection:O,onConnect:$,onConnectStart:V,onConnectEnd:G,onReconnectEnd:Y,updateConnection:M,getTransform:()=>v.getState().transform,getFromHandle:()=>v.getState().connection.fromHandle,dragThreshold:v.getState().connectionDragThreshold,handleDomNode:A.currentTarget})},E=A=>b(A,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),S=A=>b(A,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),_=()=>m(!0),w=()=>m(!1);return T.jsxs(T.Fragment,{children:[(t===!0||t==="source")&&T.jsx(p1,{position:l,centerX:r,centerY:i,radius:e,onMouseDown:E,onMouseEnter:_,onMouseOut:w,type:"source"}),(t===!0||t==="target")&&T.jsx(p1,{position:u,centerX:a,centerY:o,radius:e,onMouseDown:S,onMouseEnter:_,onMouseOut:w,type:"target"})]})}function zJ({id:t,edgesFocusable:e,edgesReconnectable:n,elementsSelectable:r,onClick:i,onDoubleClick:a,onContextMenu:o,onMouseEnter:l,onMouseMove:u,onMouseLeave:d,reconnectRadius:p,onReconnect:f,onReconnectStart:g,onReconnectEnd:m,rfId:v,edgeTypes:b,noPanClassName:E,onError:S,disableKeyboardA11y:_}){let w=Ge(ce=>ce.edgeLookup.get(t));const A=Ge(ce=>ce.defaultEdgeOptions);w=A?{...A,...w}:w;let k=w.type||"default",R=b?.[k]||c1[k];R===void 0&&(S?.("011",Ur.error011(k)),k="default",R=b?.default||c1.default);const I=!!(w.focusable||e&&typeof w.focusable>"u"),O=typeof f<"u"&&(w.reconnectable||n&&typeof w.reconnectable>"u"),L=!!(w.selectable||r&&typeof w.selectable>"u"),F=C.useRef(null),[j,H]=C.useState(!1),[G,D]=C.useState(!1),z=pt(),{zIndex:B,sourceX:U,sourceY:M,targetX:q,targetY:Y,sourcePosition:$,targetPosition:V}=Ge(C.useCallback(ce=>{const le=ce.nodeLookup.get(w.source),he=ce.nodeLookup.get(w.target);if(!le||!he)return{zIndex:w.zIndex,...u1};const Se=DZ({id:t,sourceNode:le,targetNode:he,sourceHandle:w.sourceHandle||null,targetHandle:w.targetHandle||null,connectionMode:ce.connectionMode,onError:S});return{zIndex:CZ({selected:w.selected,zIndex:w.zIndex,sourceNode:le,targetNode:he,elevateOnSelect:ce.elevateEdgesOnSelect}),...Se||u1}},[w.source,w.target,w.sourceHandle,w.targetHandle,w.selected,w.zIndex]),vt),X=C.useMemo(()=>w.markerStart?`url('#${pw(w.markerStart,v)}')`:void 0,[w.markerStart,v]),Q=C.useMemo(()=>w.markerEnd?`url('#${pw(w.markerEnd,v)}')`:void 0,[w.markerEnd,v]);if(w.hidden||U===null||M===null||q===null||Y===null)return null;const te=ce=>{const{addSelectedEdges:le,unselectNodesAndEdges:he,multiSelectionActive:Se}=z.getState();L&&(z.setState({nodesSelectionActive:!1}),w.selected&&Se?(he({nodes:[],edges:[w]}),F.current?.blur()):le([t])),i&&i(ce,w)},ie=a?ce=>{a(ce,{...w})}:void 0,W=o?ce=>{o(ce,{...w})}:void 0,Z=l?ce=>{l(ce,{...w})}:void 0,ne=u?ce=>{u(ce,{...w})}:void 0,se=d?ce=>{d(ce,{...w})}:void 0,de=ce=>{if(!_&&LM.includes(ce.key)&&L){const{unselectNodesAndEdges:le,addSelectedEdges:he}=z.getState();ce.key==="Escape"?(F.current?.blur(),le({edges:[w]})):he([t])}};return T.jsx("svg",{style:{zIndex:B},children:T.jsxs("g",{className:Dt(["react-flow__edge",`react-flow__edge-${k}`,w.className,E,{selected:w.selected,animated:w.animated,inactive:!L&&!i,updating:j,selectable:L}]),onClick:te,onDoubleClick:ie,onContextMenu:W,onMouseEnter:Z,onMouseMove:ne,onMouseLeave:se,onKeyDown:I?de:void 0,tabIndex:I?0:void 0,role:w.ariaRole??(I?"group":"img"),"aria-roledescription":"edge","data-id":t,"data-testid":`rf__edge-${t}`,"aria-label":w.ariaLabel===null?void 0:w.ariaLabel||`Edge from ${w.source} to ${w.target}`,"aria-describedby":I?`${dP}-${v}`:void 0,ref:F,...w.domAttributes,children:[!G&&T.jsx(R,{id:t,source:w.source,target:w.target,type:w.type,selected:w.selected,animated:w.animated,selectable:L,deletable:w.deletable??!0,label:w.label,labelStyle:w.labelStyle,labelShowBg:w.labelShowBg,labelBgStyle:w.labelBgStyle,labelBgPadding:w.labelBgPadding,labelBgBorderRadius:w.labelBgBorderRadius,sourceX:U,sourceY:M,targetX:q,targetY:Y,sourcePosition:$,targetPosition:V,data:w.data,style:w.style,sourceHandleId:w.sourceHandle,targetHandleId:w.targetHandle,markerStart:X,markerEnd:Q,pathOptions:"pathOptions"in w?w.pathOptions:void 0,interactionWidth:w.interactionWidth}),O&&T.jsx($J,{edge:w,isReconnectable:O,reconnectRadius:p,onReconnect:f,onReconnectStart:g,onReconnectEnd:m,sourceX:U,sourceY:M,targetX:q,targetY:Y,sourcePosition:$,targetPosition:V,setUpdateHover:H,setReconnecting:D})]})})}const jJ=t=>({edgesFocusable:t.edgesFocusable,edgesReconnectable:t.edgesReconnectable,elementsSelectable:t.elementsSelectable,connectionMode:t.connectionMode,onError:t.onError});function FP({defaultMarkerColor:t,onlyRenderVisibleElements:e,rfId:n,edgeTypes:r,noPanClassName:i,onReconnect:a,onEdgeContextMenu:o,onEdgeMouseEnter:l,onEdgeMouseMove:u,onEdgeMouseLeave:d,onEdgeClick:p,reconnectRadius:f,onEdgeDoubleClick:g,onReconnectStart:m,onReconnectEnd:v,disableKeyboardA11y:b}){const{edgesFocusable:E,edgesReconnectable:S,elementsSelectable:_,onError:w}=Ge(jJ,vt),A=CJ(e);return T.jsxs("div",{className:"react-flow__edges",children:[T.jsx(OJ,{defaultColor:t,rfId:n}),A.map(k=>T.jsx(zJ,{id:k,edgesFocusable:E,edgesReconnectable:S,elementsSelectable:_,noPanClassName:i,onReconnect:a,onContextMenu:o,onMouseEnter:l,onMouseMove:u,onMouseLeave:d,onClick:p,reconnectRadius:f,onDoubleClick:g,onReconnectStart:m,onReconnectEnd:v,rfId:n,onError:w,edgeTypes:r,disableKeyboardA11y:b},k))]})}FP.displayName="EdgeRenderer";const HJ=C.memo(FP),GJ=t=>`translate(${t.transform[0]}px,${t.transform[1]}px) scale(${t.transform[2]})`;function qJ({children:t}){const e=Ge(GJ);return T.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:e},children:t})}function VJ(t){const e=_S(),n=C.useRef(!1);C.useEffect(()=>{!n.current&&e.viewportInitialized&&t&&(setTimeout(()=>t(e),1),n.current=!0)},[t,e.viewportInitialized])}const WJ=t=>t.panZoom?.syncViewport;function YJ(t){const e=Ge(WJ),n=pt();return C.useEffect(()=>{t&&(e?.(t),n.setState({transform:[t.x,t.y,t.zoom]}))},[t,e]),null}function XJ(t){return t.connection.inProgress?{...t.connection,to:Yl(t.connection.to,t.transform)}:{...t.connection}}function KJ(t){return XJ}function ZJ(t){const e=KJ();return Ge(e,vt)}const QJ=t=>({nodesConnectable:t.nodesConnectable,isValid:t.connection.isValid,inProgress:t.connection.inProgress,width:t.width,height:t.height});function JJ({containerStyle:t,style:e,type:n,component:r}){const{nodesConnectable:i,width:a,height:o,isValid:l,inProgress:u}=Ge(QJ,vt);return!(a&&i&&u)?null:T.jsx("svg",{style:t,width:a,height:o,className:"react-flow__connectionline react-flow__container",children:T.jsx("g",{className:Dt(["react-flow__connection",PM(l)]),children:T.jsx(BP,{style:e,type:n,CustomComponent:r,isValid:l})})})}const BP=({style:t,type:e=$i.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:i,from:a,fromNode:o,fromHandle:l,fromPosition:u,to:d,toNode:p,toHandle:f,toPosition:g}=ZJ();if(!i)return;if(n)return T.jsx(n,{connectionLineType:e,connectionLineStyle:t,fromNode:o,fromHandle:l,fromX:a.x,fromY:a.y,toX:d.x,toY:d.y,fromPosition:u,toPosition:g,connectionStatus:PM(r),toNode:p,toHandle:f});let m="";const v={sourceX:a.x,sourceY:a.y,sourcePosition:u,targetX:d.x,targetY:d.y,targetPosition:g};switch(e){case $i.Bezier:[m]=YM(v);break;case $i.SimpleBezier:[m]=_P(v);break;case $i.Step:[m]=dw({...v,borderRadius:0});break;case $i.SmoothStep:[m]=dw(v);break;default:[m]=ZM(v)}return T.jsx("path",{d:m,fill:"none",className:"react-flow__connection-path",style:t})};BP.displayName="ConnectionLine";const eee={};function f1(t=eee){C.useRef(t),pt(),C.useEffect(()=>{},[t])}function tee(){pt(),C.useRef(!1),C.useEffect(()=>{},[])}function UP({nodeTypes:t,edgeTypes:e,onInit:n,onNodeClick:r,onEdgeClick:i,onNodeDoubleClick:a,onEdgeDoubleClick:o,onNodeMouseEnter:l,onNodeMouseMove:u,onNodeMouseLeave:d,onNodeContextMenu:p,onSelectionContextMenu:f,onSelectionStart:g,onSelectionEnd:m,connectionLineType:v,connectionLineStyle:b,connectionLineComponent:E,connectionLineContainerStyle:S,selectionKeyCode:_,selectionOnDrag:w,selectionMode:A,multiSelectionKeyCode:k,panActivationKeyCode:R,zoomActivationKeyCode:I,deleteKeyCode:O,onlyRenderVisibleElements:L,elementsSelectable:F,defaultViewport:j,translateExtent:H,minZoom:G,maxZoom:D,preventScrolling:z,defaultMarkerColor:B,zoomOnScroll:U,zoomOnPinch:M,panOnScroll:q,panOnScrollSpeed:Y,panOnScrollMode:$,zoomOnDoubleClick:V,panOnDrag:X,onPaneClick:Q,onPaneMouseEnter:te,onPaneMouseMove:ie,onPaneMouseLeave:W,onPaneScroll:Z,onPaneContextMenu:ne,paneClickDistance:se,nodeClickDistance:de,onEdgeContextMenu:ce,onEdgeMouseEnter:le,onEdgeMouseMove:he,onEdgeMouseLeave:Se,reconnectRadius:xe,onReconnect:Fe,onReconnectStart:Be,onReconnectEnd:ft,noDragClassName:Et,noWheelClassName:nt,noPanClassName:St,disableKeyboardA11y:Xt,nodeExtent:Kt,rfId:ht,viewport:kt,onViewportChange:He}){return f1(t),f1(e),tee(),VJ(n),YJ(kt),T.jsx(yJ,{onPaneClick:Q,onPaneMouseEnter:te,onPaneMouseMove:ie,onPaneMouseLeave:W,onPaneContextMenu:ne,onPaneScroll:Z,paneClickDistance:se,deleteKeyCode:O,selectionKeyCode:_,selectionOnDrag:w,selectionMode:A,onSelectionStart:g,onSelectionEnd:m,multiSelectionKeyCode:k,panActivationKeyCode:R,zoomActivationKeyCode:I,elementsSelectable:F,zoomOnScroll:U,zoomOnPinch:M,zoomOnDoubleClick:V,panOnScroll:q,panOnScrollSpeed:Y,panOnScrollMode:$,panOnDrag:X,defaultViewport:j,translateExtent:H,minZoom:G,maxZoom:D,onSelectionContextMenu:f,preventScrolling:z,noDragClassName:Et,noWheelClassName:nt,noPanClassName:St,disableKeyboardA11y:Xt,onViewportChange:He,isControlledViewport:!!kt,children:T.jsxs(qJ,{children:[T.jsx(HJ,{edgeTypes:e,onEdgeClick:i,onEdgeDoubleClick:o,onReconnect:Fe,onReconnectStart:Be,onReconnectEnd:ft,onlyRenderVisibleElements:L,onEdgeContextMenu:ce,onEdgeMouseEnter:le,onEdgeMouseMove:he,onEdgeMouseLeave:Se,reconnectRadius:xe,defaultMarkerColor:B,noPanClassName:St,disableKeyboardA11y:Xt,rfId:ht}),T.jsx(JJ,{style:b,type:v,component:E,containerStyle:S}),T.jsx("div",{className:"react-flow__edgelabel-renderer"}),T.jsx(TJ,{nodeTypes:t,onNodeClick:r,onNodeDoubleClick:a,onNodeMouseEnter:l,onNodeMouseMove:u,onNodeMouseLeave:d,onNodeContextMenu:p,nodeClickDistance:de,onlyRenderVisibleElements:L,noPanClassName:St,noDragClassName:Et,disableKeyboardA11y:Xt,nodeExtent:Kt,rfId:ht}),T.jsx("div",{className:"react-flow__viewport-portal"})]})})}UP.displayName="GraphView";const nee=C.memo(UP),h1=({nodes:t,edges:e,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:o,fitViewOptions:l,minZoom:u=.5,maxZoom:d=2,nodeOrigin:p,nodeExtent:f}={})=>{const g=new Map,m=new Map,v=new Map,b=new Map,E=r??e??[],S=n??t??[],_=p??[0,0],w=f??_l;JM(v,b,E);const A=fw(S,g,m,{nodeOrigin:_,nodeExtent:w,elevateNodesOnSelect:!1});let k=[0,0,1];if(o&&i&&a){const R=Vl(g,{filter:F=>!!((F.width||F.initialWidth)&&(F.height||F.initialHeight))}),{x:I,y:O,zoom:L}=vS(R,i,a,u,d,l?.padding??.1);k=[I,O,L]}return{rfId:"1",width:i??0,height:a??0,transform:k,nodes:S,nodesInitialized:A,nodeLookup:g,parentLookup:m,edges:E,edgeLookup:b,connectionLookup:v,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:u,maxZoom:d,translateExtent:_l,nodeExtent:w,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Ko.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:_,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:o??!1,fitViewOptions:l,fitViewResolver:null,connection:{...MM},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:wZ,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:DM}},ree=({nodes:t,edges:e,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:o,fitViewOptions:l,minZoom:u,maxZoom:d,nodeOrigin:p,nodeExtent:f})=>xQ((g,m)=>{async function v(){const{nodeLookup:b,panZoom:E,fitViewOptions:S,fitViewResolver:_,width:w,height:A,minZoom:k,maxZoom:R}=m();E&&(await vZ({nodes:b,width:w,height:A,panZoom:E,minZoom:k,maxZoom:R},S),_?.resolve(!0),g({fitViewResolver:null}))}return{...h1({nodes:t,edges:e,width:i,height:a,fitView:o,fitViewOptions:l,minZoom:u,maxZoom:d,nodeOrigin:p,nodeExtent:f,defaultNodes:n,defaultEdges:r}),setNodes:b=>{const{nodeLookup:E,parentLookup:S,nodeOrigin:_,elevateNodesOnSelect:w,fitViewQueued:A}=m(),k=fw(b,E,S,{nodeOrigin:_,nodeExtent:f,elevateNodesOnSelect:w,checkEquality:!0});A&&k?(v(),g({nodes:b,nodesInitialized:k,fitViewQueued:!1,fitViewOptions:void 0})):g({nodes:b,nodesInitialized:k})},setEdges:b=>{const{connectionLookup:E,edgeLookup:S}=m();JM(E,S,b),g({edges:b})},setDefaultNodesAndEdges:(b,E)=>{if(b){const{setNodes:S}=m();S(b),g({hasDefaultNodes:!0})}if(E){const{setEdges:S}=m();S(E),g({hasDefaultEdges:!0})}},updateNodeInternals:b=>{const{triggerNodeChanges:E,nodeLookup:S,parentLookup:_,domNode:w,nodeOrigin:A,nodeExtent:k,debug:R,fitViewQueued:I}=m(),{changes:O,updatedInternals:L}=zZ(b,S,_,w,A,k);L&&(FZ(S,_,{nodeOrigin:A,nodeExtent:k}),I?(v(),g({fitViewQueued:!1,fitViewOptions:void 0})):g({}),O?.length>0&&(R&&console.log("React Flow: trigger node changes",O),E?.(O)))},updateNodePositions:(b,E=!1)=>{const S=[],_=[],{nodeLookup:w,triggerNodeChanges:A}=m();for(const[k,R]of b){const I=w.get(k),O=!!(I?.expandParent&&I?.parentId&&R?.position),L={id:k,type:"position",position:O?{x:Math.max(0,R.position.x),y:Math.max(0,R.position.y)}:R.position,dragging:E};O&&I.parentId&&S.push({id:k,parentId:I.parentId,rect:{...R.internals.positionAbsolute,width:R.measured.width??0,height:R.measured.height??0}}),_.push(L)}if(S.length>0){const{parentLookup:k,nodeOrigin:R}=m(),I=AS(S,w,k,R);_.push(...I)}A(_)},triggerNodeChanges:b=>{const{onNodesChange:E,setNodes:S,nodes:_,hasDefaultNodes:w,debug:A}=m();if(b?.length){if(w){const k=hP(b,_);S(k)}A&&console.log("React Flow: trigger node changes",b),E?.(b)}},triggerEdgeChanges:b=>{const{onEdgesChange:E,setEdges:S,edges:_,hasDefaultEdges:w,debug:A}=m();if(b?.length){if(w){const k=gP(b,_);S(k)}A&&console.log("React Flow: trigger edge changes",b),E?.(b)}},addSelectedNodes:b=>{const{multiSelectionActive:E,edgeLookup:S,nodeLookup:_,triggerNodeChanges:w,triggerEdgeChanges:A}=m();if(E){const k=b.map(R=>va(R,!0));w(k);return}w(Do(_,new Set([...b]),!0)),A(Do(S))},addSelectedEdges:b=>{const{multiSelectionActive:E,edgeLookup:S,nodeLookup:_,triggerNodeChanges:w,triggerEdgeChanges:A}=m();if(E){const k=b.map(R=>va(R,!0));A(k);return}A(Do(S,new Set([...b]))),w(Do(_,new Set,!0))},unselectNodesAndEdges:({nodes:b,edges:E}={})=>{const{edges:S,nodes:_,nodeLookup:w,triggerNodeChanges:A,triggerEdgeChanges:k}=m(),R=b||_,I=E||S,O=R.map(F=>{const j=w.get(F.id);return j&&(j.selected=!1),va(F.id,!1)}),L=I.map(F=>va(F.id,!1));A(O),k(L)},setMinZoom:b=>{const{panZoom:E,maxZoom:S}=m();E?.setScaleExtent([b,S]),g({minZoom:b})},setMaxZoom:b=>{const{panZoom:E,minZoom:S}=m();E?.setScaleExtent([S,b]),g({maxZoom:b})},setTranslateExtent:b=>{m().panZoom?.setTranslateExtent(b),g({translateExtent:b})},setPaneClickDistance:b=>{m().panZoom?.setClickDistance(b)},resetSelectedElements:()=>{const{edges:b,nodes:E,triggerNodeChanges:S,triggerEdgeChanges:_,elementsSelectable:w}=m();if(!w)return;const A=E.reduce((R,I)=>I.selected?[...R,va(I.id,!1)]:R,[]),k=b.reduce((R,I)=>I.selected?[...R,va(I.id,!1)]:R,[]);S(A),_(k)},setNodeExtent:b=>{const{nodes:E,nodeLookup:S,parentLookup:_,nodeOrigin:w,elevateNodesOnSelect:A,nodeExtent:k}=m();b[0][0]===k[0][0]&&b[0][1]===k[0][1]&&b[1][0]===k[1][0]&&b[1][1]===k[1][1]||(fw(E,S,_,{nodeOrigin:w,nodeExtent:b,elevateNodesOnSelect:A,checkEquality:!1}),g({nodeExtent:b}))},panBy:b=>{const{transform:E,width:S,height:_,panZoom:w,translateExtent:A}=m();return jZ({delta:b,panZoom:w,transform:E,translateExtent:A,width:S,height:_})},setCenter:async(b,E,S)=>{const{width:_,height:w,maxZoom:A,panZoom:k}=m();if(!k)return Promise.resolve(!1);const R=typeof S?.zoom<"u"?S.zoom:A;return await k.setViewport({x:_/2-b*R,y:w/2-E*R,zoom:R},{duration:S?.duration,ease:S?.ease,interpolate:S?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{g({connection:{...MM}})},updateConnection:b=>{g({connection:b})},reset:()=>g({...h1()})}},Object.is);function iee({initialNodes:t,initialEdges:e,defaultNodes:n,defaultEdges:r,initialWidth:i,initialHeight:a,initialMinZoom:o,initialMaxZoom:l,initialFitViewOptions:u,fitView:d,nodeOrigin:p,nodeExtent:f,children:g}){const[m]=C.useState(()=>ree({nodes:t,edges:e,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:d,minZoom:o,maxZoom:l,fitViewOptions:u,nodeOrigin:p,nodeExtent:f}));return T.jsx(AQ,{value:m,children:T.jsx(WQ,{children:g})})}function aee({children:t,nodes:e,edges:n,defaultNodes:r,defaultEdges:i,width:a,height:o,fitView:l,fitViewOptions:u,minZoom:d,maxZoom:p,nodeOrigin:f,nodeExtent:g}){return C.useContext(np)?T.jsx(T.Fragment,{children:t}):T.jsx(iee,{initialNodes:e,initialEdges:n,defaultNodes:r,defaultEdges:i,initialWidth:a,initialHeight:o,fitView:l,initialFitViewOptions:u,initialMinZoom:d,initialMaxZoom:p,nodeOrigin:f,nodeExtent:g,children:t})}const oee={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function see({nodes:t,edges:e,defaultNodes:n,defaultEdges:r,className:i,nodeTypes:a,edgeTypes:o,onNodeClick:l,onEdgeClick:u,onInit:d,onMove:p,onMoveStart:f,onMoveEnd:g,onConnect:m,onConnectStart:v,onConnectEnd:b,onClickConnectStart:E,onClickConnectEnd:S,onNodeMouseEnter:_,onNodeMouseMove:w,onNodeMouseLeave:A,onNodeContextMenu:k,onNodeDoubleClick:R,onNodeDragStart:I,onNodeDrag:O,onNodeDragStop:L,onNodesDelete:F,onEdgesDelete:j,onDelete:H,onSelectionChange:G,onSelectionDragStart:D,onSelectionDrag:z,onSelectionDragStop:B,onSelectionContextMenu:U,onSelectionStart:M,onSelectionEnd:q,onBeforeDelete:Y,connectionMode:$,connectionLineType:V=$i.Bezier,connectionLineStyle:X,connectionLineComponent:Q,connectionLineContainerStyle:te,deleteKeyCode:ie="Backspace",selectionKeyCode:W="Shift",selectionOnDrag:Z=!1,selectionMode:ne=Tl.Full,panActivationKeyCode:se="Space",multiSelectionKeyCode:de=Rl()?"Meta":"Control",zoomActivationKeyCode:ce=Rl()?"Meta":"Control",snapToGrid:le,snapGrid:he,onlyRenderVisibleElements:Se=!1,selectNodesOnDrag:xe,nodesDraggable:Fe,autoPanOnNodeFocus:Be,nodesConnectable:ft,nodesFocusable:Et,nodeOrigin:nt=pP,edgesFocusable:St,edgesReconnectable:Xt,elementsSelectable:Kt=!0,defaultViewport:ht=FQ,minZoom:kt=.5,maxZoom:He=2,translateExtent:Ve=_l,preventScrolling:Nt=!0,nodeExtent:Ut,defaultMarkerColor:Kn="#b1b1b7",zoomOnScroll:Zn=!0,zoomOnPinch:mr=!0,panOnScroll:Bn=!1,panOnScrollSpeed:xn=.5,panOnScrollMode:di=Ra.Free,zoomOnDoubleClick:Qn=!0,panOnDrag:br=!0,onPaneClick:Zt,onPaneMouseEnter:lt,onPaneMouseMove:dn,onPaneMouseLeave:yr,onPaneScroll:Zi,onPaneContextMenu:Qi,paneClickDistance:pi=0,nodeClickDistance:fi=0,children:ac,onReconnect:fs,onReconnectStart:oc,onReconnectEnd:Ji,onEdgeContextMenu:hs,onEdgeDoubleClick:ea,onEdgeMouseEnter:gp,onEdgeMouseMove:ta,onEdgeMouseLeave:Va,reconnectRadius:Wa=10,onNodesChange:gs,onEdgesChange:mp,noDragClassName:bp="nodrag",noWheelClassName:yp="nowheel",noPanClassName:vr="nopan",fitView:ms,fitViewOptions:bs,connectOnClick:vp,attributionPosition:sc,proOptions:lc,defaultEdgeOptions:cc,elevateNodesOnSelect:uc,elevateEdgesOnSelect:Ep,disableKeyboardA11y:dc=!1,autoPanOnConnect:gt,autoPanOnNodeDrag:wp,autoPanSpeed:ys,connectionRadius:pc,isValidConnection:Ya,onError:Sp,style:fc,id:na,nodeDragThreshold:Un,connectionDragThreshold:xp,viewport:An,onViewportChange:Ap,width:_p,height:Tp,colorMode:Xa="light",debug:Ka,onScroll:hi,ariaLabelConfig:Za,...Cp},Rp){const ra=na||"1",hc=zQ(Xa),vs=C.useCallback(gi=>{gi.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),hi?.(gi)},[hi]);return T.jsx("div",{"data-testid":"rf__wrapper",...Cp,onScroll:vs,style:{...fc,...oee},ref:Rp,className:Dt(["react-flow",i,hc]),id:na,role:"application",children:T.jsxs(aee,{nodes:t,edges:e,width:_p,height:Tp,fitView:ms,fitViewOptions:bs,minZoom:kt,maxZoom:He,nodeOrigin:nt,nodeExtent:Ut,children:[T.jsx(nee,{onInit:d,onNodeClick:l,onEdgeClick:u,onNodeMouseEnter:_,onNodeMouseMove:w,onNodeMouseLeave:A,onNodeContextMenu:k,onNodeDoubleClick:R,nodeTypes:a,edgeTypes:o,connectionLineType:V,connectionLineStyle:X,connectionLineComponent:Q,connectionLineContainerStyle:te,selectionKeyCode:W,selectionOnDrag:Z,selectionMode:ne,deleteKeyCode:ie,multiSelectionKeyCode:de,panActivationKeyCode:se,zoomActivationKeyCode:ce,onlyRenderVisibleElements:Se,defaultViewport:ht,translateExtent:Ve,minZoom:kt,maxZoom:He,preventScrolling:Nt,zoomOnScroll:Zn,zoomOnPinch:mr,zoomOnDoubleClick:Qn,panOnScroll:Bn,panOnScrollSpeed:xn,panOnScrollMode:di,panOnDrag:br,onPaneClick:Zt,onPaneMouseEnter:lt,onPaneMouseMove:dn,onPaneMouseLeave:yr,onPaneScroll:Zi,onPaneContextMenu:Qi,paneClickDistance:pi,nodeClickDistance:fi,onSelectionContextMenu:U,onSelectionStart:M,onSelectionEnd:q,onReconnect:fs,onReconnectStart:oc,onReconnectEnd:Ji,onEdgeContextMenu:hs,onEdgeDoubleClick:ea,onEdgeMouseEnter:gp,onEdgeMouseMove:ta,onEdgeMouseLeave:Va,reconnectRadius:Wa,defaultMarkerColor:Kn,noDragClassName:bp,noWheelClassName:yp,noPanClassName:vr,rfId:ra,disableKeyboardA11y:dc,nodeExtent:Ut,viewport:An,onViewportChange:Ap}),T.jsx($Q,{nodes:t,edges:e,defaultNodes:n,defaultEdges:r,onConnect:m,onConnectStart:v,onConnectEnd:b,onClickConnectStart:E,onClickConnectEnd:S,nodesDraggable:Fe,autoPanOnNodeFocus:Be,nodesConnectable:ft,nodesFocusable:Et,edgesFocusable:St,edgesReconnectable:Xt,elementsSelectable:Kt,elevateNodesOnSelect:uc,elevateEdgesOnSelect:Ep,minZoom:kt,maxZoom:He,nodeExtent:Ut,onNodesChange:gs,onEdgesChange:mp,snapToGrid:le,snapGrid:he,connectionMode:$,translateExtent:Ve,connectOnClick:vp,defaultEdgeOptions:cc,fitView:ms,fitViewOptions:bs,onNodesDelete:F,onEdgesDelete:j,onDelete:H,onNodeDragStart:I,onNodeDrag:O,onNodeDragStop:L,onSelectionDrag:z,onSelectionDragStart:D,onSelectionDragStop:B,onMove:p,onMoveStart:f,onMoveEnd:g,noPanClassName:vr,nodeOrigin:nt,rfId:ra,autoPanOnConnect:gt,autoPanOnNodeDrag:wp,autoPanSpeed:ys,onError:Sp,connectionRadius:pc,isValidConnection:Ya,selectNodesOnDrag:xe,nodeDragThreshold:Un,connectionDragThreshold:xp,onBeforeDelete:Y,paneClickDistance:pi,debug:Ka,ariaLabelConfig:Za}),T.jsx(PQ,{onSelectionChange:G}),ac,T.jsx(IQ,{proOptions:lc,position:sc}),T.jsx(NQ,{rfId:ra,disableKeyboardA11y:dc})]})})}var lee=mP(see);function cee(t){const[e,n]=C.useState(t),r=C.useCallback(i=>n(a=>hP(i,a)),[]);return[e,n,r]}function uee(t){const[e,n]=C.useState(t),r=C.useCallback(i=>n(a=>gP(i,a)),[]);return[e,n,r]}function dee({dimensions:t,lineWidth:e,variant:n,className:r}){return T.jsx("path",{strokeWidth:e,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`,className:Dt(["react-flow__background-pattern",n,r])})}function pee({radius:t,className:e}){return T.jsx("circle",{cx:t,cy:t,r:t,className:Dt(["react-flow__background-pattern","dots",e])})}var ri;(function(t){t.Lines="lines",t.Dots="dots",t.Cross="cross"})(ri||(ri={}));const fee={[ri.Dots]:1,[ri.Lines]:1,[ri.Cross]:6},hee=t=>({transform:t.transform,patternId:`pattern-${t.rfId}`});function $P({id:t,variant:e=ri.Dots,gap:n=20,size:r,lineWidth:i=1,offset:a=0,color:o,bgColor:l,style:u,className:d,patternClassName:p}){const f=C.useRef(null),{transform:g,patternId:m}=Ge(hee,vt),v=r||fee[e],b=e===ri.Dots,E=e===ri.Cross,S=Array.isArray(n)?n:[n,n],_=[S[0]*g[2]||1,S[1]*g[2]||1],w=v*g[2],A=Array.isArray(a)?a:[a,a],k=E?[w,w]:_,R=[A[0]*g[2]||1+k[0]/2,A[1]*g[2]||1+k[1]/2],I=`${m}${t||""}`;return T.jsxs("svg",{className:Dt(["react-flow__background",d]),style:{...u,...ip,"--xy-background-color-props":l,"--xy-background-pattern-color-props":o},ref:f,"data-testid":"rf__background",children:[T.jsx("pattern",{id:I,x:g[0]%_[0],y:g[1]%_[1],width:_[0],height:_[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${R[0]},-${R[1]})`,children:b?T.jsx(pee,{radius:w/2,className:p}):T.jsx(dee,{dimensions:k,lineWidth:i,variant:e,className:p})}),T.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${I})`})]})}$P.displayName="Background";const gee=C.memo($P);function mee(){return T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:T.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function bee(){return T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:T.jsx("path",{d:"M0 0h32v4.2H0z"})})}function yee(){return T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:T.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function vee(){return T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:T.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function Eee(){return T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:T.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function Pu({children:t,className:e,...n}){return T.jsx("button",{type:"button",className:Dt(["react-flow__controls-button",e]),...n,children:t})}const wee=t=>({isInteractive:t.nodesDraggable||t.nodesConnectable||t.elementsSelectable,minZoomReached:t.transform[2]<=t.minZoom,maxZoomReached:t.transform[2]>=t.maxZoom,ariaLabelConfig:t.ariaLabelConfig});function zP({style:t,showZoom:e=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:i,onZoomIn:a,onZoomOut:o,onFitView:l,onInteractiveChange:u,className:d,children:p,position:f="bottom-left",orientation:g="vertical","aria-label":m}){const v=pt(),{isInteractive:b,minZoomReached:E,maxZoomReached:S,ariaLabelConfig:_}=Ge(wee,vt),{zoomIn:w,zoomOut:A,fitView:k}=_S(),R=()=>{w(),a?.()},I=()=>{A(),o?.()},O=()=>{k(i),l?.()},L=()=>{v.setState({nodesDraggable:!b,nodesConnectable:!b,elementsSelectable:!b}),u?.(!b)},F=g==="horizontal"?"horizontal":"vertical";return T.jsxs(rp,{className:Dt(["react-flow__controls",F,d]),position:f,style:t,"data-testid":"rf__controls","aria-label":m??_["controls.ariaLabel"],children:[e&&T.jsxs(T.Fragment,{children:[T.jsx(Pu,{onClick:R,className:"react-flow__controls-zoomin",title:_["controls.zoomIn.ariaLabel"],"aria-label":_["controls.zoomIn.ariaLabel"],disabled:S,children:T.jsx(mee,{})}),T.jsx(Pu,{onClick:I,className:"react-flow__controls-zoomout",title:_["controls.zoomOut.ariaLabel"],"aria-label":_["controls.zoomOut.ariaLabel"],disabled:E,children:T.jsx(bee,{})})]}),n&&T.jsx(Pu,{className:"react-flow__controls-fitview",onClick:O,title:_["controls.fitView.ariaLabel"],"aria-label":_["controls.fitView.ariaLabel"],children:T.jsx(yee,{})}),r&&T.jsx(Pu,{className:"react-flow__controls-interactive",onClick:L,title:_["controls.interactive.ariaLabel"],"aria-label":_["controls.interactive.ariaLabel"],children:b?T.jsx(Eee,{}):T.jsx(vee,{})}),p]})}zP.displayName="Controls";C.memo(zP);function See({id:t,x:e,y:n,width:r,height:i,style:a,color:o,strokeColor:l,strokeWidth:u,className:d,borderRadius:p,shapeRendering:f,selected:g,onClick:m}){const{background:v,backgroundColor:b}=a||{},E=o||v||b;return T.jsx("rect",{className:Dt(["react-flow__minimap-node",{selected:g},d]),x:e,y:n,rx:p,ry:p,width:r,height:i,style:{fill:E,stroke:l,strokeWidth:u},shapeRendering:f,onClick:m?S=>m(S,t):void 0})}const xee=C.memo(See),Aee=t=>t.nodes.map(e=>e.id),TE=t=>t instanceof Function?t:()=>t;function _ee({nodeStrokeColor:t,nodeColor:e,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:a=xee,onClick:o}){const l=Ge(Aee,vt),u=TE(e),d=TE(t),p=TE(n),f=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return T.jsx(T.Fragment,{children:l.map(g=>T.jsx(Cee,{id:g,nodeColorFunc:u,nodeStrokeColorFunc:d,nodeClassNameFunc:p,nodeBorderRadius:r,nodeStrokeWidth:i,NodeComponent:a,onClick:o,shapeRendering:f},g))})}function Tee({id:t,nodeColorFunc:e,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:i,nodeStrokeWidth:a,shapeRendering:o,NodeComponent:l,onClick:u}){const{node:d,x:p,y:f,width:g,height:m}=Ge(v=>{const{internals:b}=v.nodeLookup.get(t),E=b.userNode,{x:S,y:_}=b.positionAbsolute,{width:w,height:A}=ui(E);return{node:E,x:S,y:_,width:w,height:A}},vt);return!d||d.hidden||!jM(d)?null:T.jsx(l,{x:p,y:f,width:g,height:m,style:d.style,selected:!!d.selected,className:r(d),color:e(d),borderRadius:i,strokeColor:n(d),strokeWidth:a,shapeRendering:o,onClick:u,id:d.id})}const Cee=C.memo(Tee);var Ree=C.memo(_ee);const kee=200,Nee=150,Iee=t=>!t.hidden,Oee=t=>{const e={x:-t.transform[0]/t.transform[2],y:-t.transform[1]/t.transform[2],width:t.width/t.transform[2],height:t.height/t.transform[2]};return{viewBB:e,boundingRect:t.nodeLookup.size>0?zM(Vl(t.nodeLookup,{filter:Iee}),e):e,rfId:t.rfId,panZoom:t.panZoom,translateExtent:t.translateExtent,flowWidth:t.width,flowHeight:t.height,ariaLabelConfig:t.ariaLabelConfig}},Lee="react-flow__minimap-desc";function jP({style:t,className:e,nodeStrokeColor:n,nodeColor:r,nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:o,nodeComponent:l,bgColor:u,maskColor:d,maskStrokeColor:p,maskStrokeWidth:f,position:g="bottom-right",onClick:m,onNodeClick:v,pannable:b=!1,zoomable:E=!1,ariaLabel:S,inversePan:_,zoomStep:w=1,offsetScale:A=5}){const k=pt(),R=C.useRef(null),{boundingRect:I,viewBB:O,rfId:L,panZoom:F,translateExtent:j,flowWidth:H,flowHeight:G,ariaLabelConfig:D}=Ge(Oee,vt),z=t?.width??kee,B=t?.height??Nee,U=I.width/z,M=I.height/B,q=Math.max(U,M),Y=q*z,$=q*B,V=A*q,X=I.x-(Y-I.width)/2-V,Q=I.y-($-I.height)/2-V,te=Y+V*2,ie=$+V*2,W=`${Lee}-${L}`,Z=C.useRef(0),ne=C.useRef();Z.current=q,C.useEffect(()=>{if(R.current&&F)return ne.current=ZZ({domNode:R.current,panZoom:F,getTransform:()=>k.getState().transform,getViewScale:()=>Z.current}),()=>{ne.current?.destroy()}},[F]),C.useEffect(()=>{ne.current?.update({translateExtent:j,width:H,height:G,inversePan:_,pannable:b,zoomStep:w,zoomable:E})},[b,E,_,w,j,H,G]);const se=m?le=>{const[he,Se]=ne.current?.pointer(le)||[0,0];m(le,{x:he,y:Se})}:void 0,de=v?C.useCallback((le,he)=>{const Se=k.getState().nodeLookup.get(he).internals.userNode;v(le,Se)},[]):void 0,ce=S??D["minimap.ariaLabel"];return T.jsx(rp,{position:g,style:{...t,"--xy-minimap-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-background-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-color-props":typeof p=="string"?p:void 0,"--xy-minimap-mask-stroke-width-props":typeof f=="number"?f*q:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof o=="number"?o:void 0},className:Dt(["react-flow__minimap",e]),"data-testid":"rf__minimap",children:T.jsxs("svg",{width:z,height:B,viewBox:`${X} ${Q} ${te} ${ie}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":W,ref:R,onClick:se,children:[ce&&T.jsx("title",{id:W,children:ce}),T.jsx(Ree,{onClick:de,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:a,nodeClassName:i,nodeStrokeWidth:o,nodeComponent:l}),T.jsx("path",{className:"react-flow__minimap-mask",d:`M${X-V},${Q-V}h${te+V*2}v${ie+V*2}h${-te-V*2}z
283
- M${O.x},${O.y}h${O.width}v${O.height}h${-O.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}jP.displayName="MiniMap";C.memo(jP);const Dee=t=>e=>t?`${Math.max(1/e.transform[2],1)}`:void 0,Mee={[ts.Line]:"right",[ts.Handle]:"bottom-right"};function Pee({nodeId:t,position:e,variant:n=ts.Handle,className:r,style:i=void 0,children:a,color:o,minWidth:l=10,minHeight:u=10,maxWidth:d=Number.MAX_VALUE,maxHeight:p=Number.MAX_VALUE,keepAspectRatio:f=!1,resizeDirection:g,autoScale:m=!0,shouldResize:v,onResizeStart:b,onResize:E,onResizeEnd:S}){const _=EP(),w=typeof t=="string"?t:_,A=pt(),k=C.useRef(null),R=n===ts.Handle,I=Ge(C.useCallback(Dee(R&&m),[R,m]),vt),O=C.useRef(null),L=e??Mee[n];C.useEffect(()=>{if(!(!k.current||!w))return O.current||(O.current=fQ({domNode:k.current,nodeId:w,getStoreItems:()=>{const{nodeLookup:j,transform:H,snapGrid:G,snapToGrid:D,nodeOrigin:z,domNode:B}=A.getState();return{nodeLookup:j,transform:H,snapGrid:G,snapToGrid:D,nodeOrigin:z,paneDomNode:B}},onChange:(j,H)=>{const{triggerNodeChanges:G,nodeLookup:D,parentLookup:z,nodeOrigin:B}=A.getState(),U=[],M={x:j.x,y:j.y},q=D.get(w);if(q&&q.expandParent&&q.parentId){const Y=q.origin??B,$=j.width??q.measured.width??0,V=j.height??q.measured.height??0,X={id:q.id,parentId:q.parentId,rect:{width:$,height:V,...HM({x:j.x??q.position.x,y:j.y??q.position.y},{width:$,height:V},q.parentId,D,Y)}},Q=AS([X],D,z,B);U.push(...Q),M.x=j.x?Math.max(Y[0]*$,j.x):void 0,M.y=j.y?Math.max(Y[1]*V,j.y):void 0}if(M.x!==void 0&&M.y!==void 0){const Y={id:w,type:"position",position:{...M}};U.push(Y)}if(j.width!==void 0&&j.height!==void 0){const $={id:w,type:"dimensions",resizing:!0,setAttributes:g?g==="horizontal"?"width":"height":!0,dimensions:{width:j.width,height:j.height}};U.push($)}for(const Y of H){const $={...Y,type:"position"};U.push($)}G(U)},onEnd:({width:j,height:H})=>{const G={id:w,type:"dimensions",resizing:!1,dimensions:{width:j,height:H}};A.getState().triggerNodeChanges([G])}})),O.current.update({controlPosition:L,boundaries:{minWidth:l,minHeight:u,maxWidth:d,maxHeight:p},keepAspectRatio:f,resizeDirection:g,onResizeStart:b,onResize:E,onResizeEnd:S,shouldResize:v}),()=>{O.current?.destroy()}},[L,l,u,d,p,f,b,E,S,v]);const F=L.split("-");return T.jsx("div",{className:Dt(["react-flow__resize-control","nodrag",...F,n,r]),ref:k,style:{...i,scale:I,...o&&{[R?"backgroundColor":"borderColor"]:o}},children:a})}C.memo(Pee);function Fee({workflowName:t,className:e="w-full h-[600px]",events:n,onNodeClick:r,highlightedNodeId:i,selectedNodeId:a,isComplete:o=!1}){const[l,u,d]=cee([]),[p,f,g]=uee([]),[m,v]=C.useState(!1),[b,E]=C.useState(null),[S,_]=C.useState(-1),[w,A]=C.useState(()=>{if(typeof window>"u")return!1;try{return document.documentElement.classList.contains("dark")?!0:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}catch{return!1}}),k=C.useMemo(()=>({step:({data:F,id:j})=>{const H=i===j,G=a===j;let D={transition:"all 1s ease-out"};return F.highlightColor&&F.highlightColor!==null?(D.backgroundColor=w?void 0:"#CCFBEF",D.borderColor=F.highlightColor,D.boxShadow=`0 0 0 3px ${F.highlightColor}66`):F.highlightColor===null&&(D.backgroundColor=w?"#0b1220":"#E6EEFF",D.borderColor=w?"#274690":"#7EA6FF",D.boxShadow="0 0 0 0px transparent"),G?D={backgroundColor:w?"#1e3a8a":"#DBEAFE",borderColor:"#3B82F6",boxShadow:"0 0 0 4px #3B82F6",transition:"all 1s ease-out"}:H&&(D={...D,borderColor:"#10B981",boxShadow:"0 0 0 3px #10B98166"}),T.jsxs("div",{className:"px-4 py-2 shadow-md rounded-md min-w-[160px] cursor-pointer transition-all bg-[#E6EEFF] border-2 border-[#7EA6FF] dark:bg-[#0b1220] dark:border-[#274690] hover:shadow-lg hover:scale-105",style:D,onClick:()=>r?.(j),children:[T.jsx(Or,{type:"target",position:Te.Left}),T.jsxs("div",{className:"flex items-center justify-between gap-2",children:[T.jsx("div",{className:"font-bold text-[#1E3A8A] text-sm dark:text-[#e5edff]",children:F.label}),F.workerCount>0&&T.jsx("div",{className:"flex items-center justify-center min-w-[20px] h-[20px] px-1.5 rounded-full bg-[#10B981] text-white text-[10px] font-bold",children:F.workerCount})]}),F.title&&T.jsx("div",{className:"text-xs text-[#1D4ED8] mt-1 dark:text-[#9db4ff]",children:F.title}),(F.lastInputEvent||F.lastOutputEvent)&&T.jsxs("div",{className:"text-[10px] text-gray-700 dark:text-gray-300 mt-1",children:[F.lastInputEvent&&T.jsxs("div",{children:[T.jsx("span",{className:"font-semibold",children:"in:"})," ",F.lastInputEvent]}),F.lastOutputEvent&&T.jsxs("div",{children:[T.jsx("span",{className:"font-semibold",children:"out:"})," ",F.lastOutputEvent]})]}),T.jsx(Or,{type:"source",position:Te.Right})]})},event:({data:F,id:j})=>{const H=i===j,G=a===j;let D={transition:"all 1s ease-out"};return F.highlightColor&&F.highlightColor!==null?(D.backgroundColor=w?void 0:"#FFE8B5",D.borderColor=F.highlightColor,D.boxShadow=`0 0 0 3px ${F.highlightColor}66`):F.highlightColor===null&&(D.backgroundColor=w?"#241a06":"#FFF3BF",D.borderColor=w?"#F59E0B":"#FFD166",D.boxShadow="0 0 0 0px transparent"),G?D={backgroundColor:w?"#1e3a8a":"#DBEAFE",borderColor:"#3B82F6",boxShadow:"0 0 0 4px #3B82F6",transition:"all 1s ease-out"}:H&&(D={...D,borderColor:"#10B981",boxShadow:"0 0 0 3px #10B98166"}),T.jsxs("div",{className:"px-3 py-2 shadow-md rounded-full min-w-[140px] text-center cursor-pointer transition-all bg-[#FFF3BF] border-2 border-[#FFD166] dark:bg-[#241a06] dark:border-[#F59E0B] hover:shadow-lg hover:scale-105",style:D,onClick:()=>r?.(j),children:[T.jsx(Or,{type:"target",position:Te.Left}),T.jsx("div",{className:"font-bold text-[#92400E] text-sm dark:text-[#fde68a]",children:F.label}),F.event_type&&T.jsx("div",{className:"text-xs text-[#B45309] mt-1 dark:text-[#fbbf24]",children:F.event_type}),T.jsx(Or,{type:"source",position:Te.Right})]})},external:({data:F,id:j})=>{const H=i===j,G=a===j;let D=F.highlightColor?{backgroundColor:w?void 0:"#FFE5D4",borderColor:F.highlightColor,boxShadow:`0 0 0 3px ${F.highlightColor}66`}:void 0;return G?D={backgroundColor:w?"#1e3a8a":"#DBEAFE",borderColor:"#3B82F6",boxShadow:"0 0 0 4px #3B82F6"}:H&&(D={backgroundColor:D?.backgroundColor,borderColor:"#10B981",boxShadow:"0 0 0 3px #10B98166"}),T.jsxs("div",{className:"px-3 py-2 shadow-md rounded-lg min-w-[140px] text-center cursor-pointer transition-all bg-[#FFEDD5] border-2 border-[#FB923C] dark:bg-[#1f0f08] dark:border-[#ea7a3a] hover:shadow-lg hover:scale-105",style:D,onClick:()=>r?.(j),children:[T.jsx(Or,{type:"target",position:Te.Left}),T.jsx("div",{className:"font-bold text-[#7C2D12] text-sm dark:text-[#fed7aa]",children:F.label}),F.title&&T.jsx("div",{className:"text-xs text-[#C2410C] mt-1 dark:text-[#fdba74]",children:F.title}),T.jsx(Or,{type:"source",position:Te.Right})]})}}),[w,i,a,r]);C.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const F=window.matchMedia("(prefers-color-scheme: dark)"),j=H=>A(H.matches);return F.addEventListener?F.addEventListener("change",j):F.addListener(j),()=>{F.removeEventListener?F.removeEventListener("change",j):F.removeListener(j)}},[]);const R=ja(),I=C.useCallback(F=>f(j=>KM(F,j)),[f]),O=C.useCallback(F=>{const j=new Map,H=new Map;F.nodes.forEach(Y=>{j.set(Y.id,[]),H.set(Y.id,0)}),F.edges.forEach(({source:Y,target:$})=>{j.get(Y)?.push($),H.set($,(H.get($)||0)+1)});const G=[];H.forEach((Y,$)=>{Y===0&&G.push($)});const D=new Map;for(G.forEach(Y=>D.set(Y,0));G.length;){const Y=G.shift(),$=D.get(Y)??0;for(const V of j.get(Y)||[]){const X=Math.max($+1,D.get(V)??0);D.set(V,X),H.set(V,(H.get(V)||0)-1),(H.get(V)||0)===0&&G.push(V)}}const z={};F.nodes.forEach(Y=>{const $=D.get(Y.id)??0;z[$]||(z[$]=[]),z[$].push(Y.id)});const B=260,U=110,M=F.nodes.map(Y=>{const $=D.get(Y.id)??0,X=z[$].indexOf(Y.id),Q=$*B,te=X*U;return{id:Y.id,type:Y.node_type,position:{x:Q,y:te},data:{label:Y.label,title:Y.title,event_type:Y.event_type,type:Y.node_type}}}),q=F.edges.map((Y,$)=>({id:`edge-${$}`,source:Y.source,target:Y.target,type:"smoothstep",animated:!1,style:{stroke:"var(--wf-edge-stroke)",strokeWidth:2},markerEnd:{type:Zo.ArrowClosed,color:"var(--wf-edge-stroke)"}}));return{nodes:M,edges:q}},[]),L=C.useCallback(async()=>{if(!t){u([]),f([]),E(null);return}v(!0),E(null);try{const{data:F,error:j}=await lq({client:R,path:{name:t}});if(j)throw new Error(String(j));const H=F?.graph;if(!H)throw new Error("No graph data received");const G=O(H);u(G.nodes),f(G.edges)}catch(F){console.error("Error fetching workflow visualization:",F),E(F instanceof Error?F.message:"Failed to load workflow visualization"),u([]),f([])}finally{v(!1)}},[t,R,O,u,f]);return C.useEffect(()=>{L()},[L]),C.useEffect(()=>{if(!n||n.length===0){_(-1),u(G=>G.map(D=>{const z={...D.data};return delete z.highlightColor,delete z.activeWorkers,delete z.workerCount,delete z.fadeTimestamp,{...D,data:z}}));return}if(o){const G=Date.now();u(D=>D.map(z=>{const B={...z.data};return B.highlightColor&&(B.fadeTimestamp=G),{...z,data:B}})),setTimeout(()=>{u(D=>D.map(z=>{if(z.data.fadeTimestamp===G){const B={...z.data};return B.highlightColor=null,delete B.activeWorkers,delete B.workerCount,delete B.fadeTimestamp,{...z,data:B}}return z}))},1e3);return}const F=n.slice(S+1);if(F.length===0)return;_(n.length-1);const j=G=>{if(!G)return"";try{return((typeof G=="string"?G:String(G)).replace("<class","").replace(">","").replaceAll("'","").split(".").at(-1)||"").trim()}catch{return""}},H=G=>{switch(G){case"preparing":return"#3B82F6";case"in_progress":return"#F59E0B";case"running":return"#10B981";case"not_running":case"not_in_progress":case"exited":return null;default:return"#10B981"}};for(const G of F){const D=G?.type??"",z=G?.data??{};if(D==="workflows.events.StepStateChanged"){const B=String(z?.name||""),U=String(z?.step_state||""),M=String(z?.worker_id||""),q=H(U);u(Y=>Y.map($=>{const V={...$.data};if($.id===B){const X=new Set(V.activeWorkers||[]);if(U==="preparing"||U==="in_progress"||U==="running"?X.add(M):(U==="not_running"||U==="not_in_progress"||U==="exited")&&X.delete(M),V.activeWorkers=Array.from(X),V.workerCount=X.size,X.size>0)V.highlightColor=q||"#10B981",V.fadeTimestamp=Date.now();else{const Q=Date.now();V.fadeTimestamp=Q,setTimeout(()=>{u(te=>te.map(ie=>{if(ie.id===B&&ie.data.fadeTimestamp===Q){const W={...ie.data};return W.highlightColor=null,{...ie,data:W}}return ie}))},1e3)}return V.lastInputEvent=j(z?.input_event_name),V.lastOutputEvent=j(z?.output_event_name),V.status=U,{...$,data:V}}return $}))}else if(D&&!D.includes("workflows.events.EventsQueueChanged")){const B=j(D.replace("__main__.","").replace("workflows.events.",""));u(U=>U.map(M=>{if(M.id===B&&M.type==="event"){const q={...M.data};return q.highlightColor="#10B981",q.fadeTimestamp=Date.now(),{...M,data:q}}return M})),setTimeout(()=>{u(U=>U.map(M=>{if(M.id===B&&M.type==="event"){const q={...M.data};return q.highlightColor=null,q.fadeTimestamp=null,{...M,data:q}}return M}))},1e3)}}},[n,S,u,o]),m?T.jsx("div",{className:`${e} flex items-center justify-center bg-card border border-border rounded-lg`,children:T.jsxs("div",{className:"text-center",children:[T.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary mx-auto mb-2"}),T.jsx("p",{className:"text-muted-foreground",children:"Loading workflow visualization..."})]})}):b?T.jsx("div",{className:`${e} flex items-center justify-center bg-destructive/10 border border-destructive/30 rounded-lg`,children:T.jsxs("div",{className:"text-center p-4",children:[T.jsx("p",{className:"text-destructive font-medium",children:"Error loading visualization"}),T.jsx("p",{className:"text-sm mt-1 text-destructive",children:b}),T.jsx("button",{onClick:L,className:"mt-3 px-4 py-2 bg-primary text-primary-foreground rounded-md text-sm hover:opacity-90 transition-colors",children:"Retry"})]})}):t?l.length===0?T.jsx("div",{className:`${e} flex items-center justify-center bg-card border border-border rounded-lg`,children:T.jsx("p",{className:"text-muted-foreground",children:"No workflow data available"})}):T.jsx("div",{className:`${e} border border-border rounded-lg overflow-hidden`,children:T.jsx(lee,{nodes:l,edges:p,onNodesChange:d,onEdgesChange:g,onConnect:I,nodeTypes:k,defaultEdgeOptions:{markerEnd:{type:Zo.ArrowClosed,color:"var(--wf-edge-stroke)"}},fitView:!0,attributionPosition:"bottom-left",children:T.jsx(gee,{variant:ri.Dots,gap:12,size:1,color:w?"#374151":"#e5e7eb"})})}):T.jsx("div",{className:`${e} flex items-center justify-center bg-card border border-border rounded-lg`,children:T.jsx("p",{className:"text-muted-foreground",children:"Select a workflow to view its visualization"})})}function Bee({handlerId:t,workflowName:e,disabled:n}){const[r,i]=C.useState(!1),[a,o]=C.useState([]),[l,u]=C.useState(null),[d,p]=C.useState({}),[f,g]=C.useState(!1),[m,v]=C.useState(null),[b,E]=C.useState(!1),[S,_]=C.useState(null),[w,A]=C.useState(!1),k=ja();C.useEffect(()=>{if(!r||!e)return;(async()=>{g(!0),_(null);try{const H=(await cq({client:k,path:{name:e}})).data;if(!H){o([]);return}if(!H.events){o([]);return}if(o(H.events),H.events&&H.events.length>0){const D=H.events[0].title;u(D||null)}}catch(j){console.error("Failed to fetch event schemas:",j),_(j instanceof Error?j.message:"Failed to fetch events"),o([])}finally{g(!1)}})()},[r,e,k]),C.useEffect(()=>{r||(u(null),p({}),v(null),_(null),A(!1))},[r]),C.useEffect(()=>{p({}),_(null),A(!1)},[l]);const R=C.useMemo(()=>l&&a.find(F=>F.title===l)||null,[l,a]),I=C.useMemo(()=>m?Object.values(m).some(F=>F!==null):!1,[m]),O=async()=>{if(!(!t||!l)){E(!0),_(null),A(!1);try{const F={type:l,data:d},{error:j}=await _D({client:k,path:{handler_id:t},body:{event:JSON.stringify(F)}});if(j)throw new Error(typeof j=="string"?j:JSON.stringify(j));A(!0),setTimeout(()=>{i(!1)},1e3)}catch(F){console.error("Failed to send event:",F),_(F instanceof Error?F.message:"Failed to send event")}finally{E(!1)}}},L=!b&&!I&&l&&t&&!w;return T.jsxs(_H,{open:r,onOpenChange:i,children:[T.jsx(TH,{asChild:!0,children:T.jsxs(Tt,{variant:"outline",size:"sm",disabled:n||!t||!e,title:t?e?"Send event to workflow":"No workflow selected":"No active handler",children:[T.jsx(m$,{className:"h-4 w-4 mr-2"}),"Send Event"]})}),T.jsxs(kH,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[T.jsxs(NH,{children:[T.jsx(OH,{children:"Send Event to Workflow"}),T.jsx(LH,{children:"Send a custom event to the running workflow handler."})]}),T.jsx("div",{className:"space-y-4 py-4",children:f?T.jsx("div",{className:"text-center text-muted-foreground",children:"Loading event types..."}):a.length===0?T.jsx("div",{className:"text-center text-muted-foreground",children:S||"No events available for this workflow"}):T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"space-y-2",children:[T.jsx("label",{className:"text-sm font-medium",children:"Event Type"}),T.jsxs(Kw,{value:l||"",onValueChange:u,children:[T.jsx(Qw,{children:T.jsx(Zw,{placeholder:"Select event type..."})}),T.jsx(Jw,{children:a.map(F=>T.jsx(ud,{value:F.title||"",children:F.title||"Unnamed Event"},F.title||"unknown"))})]})]}),R&&T.jsxs("div",{className:"space-y-2",children:[T.jsx("label",{className:"text-sm font-medium",children:"Event Data"}),T.jsx(FD,{schema:{properties:R.properties,required:R.required},values:d,onChange:p,onErrorsChange:v,className:"space-y-3 border border-border rounded-lg p-4 bg-muted/30"})]}),S&&T.jsx("div",{className:"text-destructive text-sm p-3 bg-destructive/10 border border-destructive/20 rounded",children:S}),w&&T.jsx("div",{className:"text-green-600 text-sm p-3 bg-green-50 border border-green-200 rounded",children:"Event sent successfully!"})]})}),T.jsxs(IH,{children:[T.jsx(Tt,{variant:"outline",onClick:()=>i(!1),children:"Cancel"}),T.jsx(Tt,{onClick:O,disabled:!L,children:b?"Sending...":"Send Event"})]})]})]})}function Uee({handlerId:t,selectedWorkflow:e}){const{handler:n,events:r}=Gq(t??"",!!t,{includeInternal:!0}),i=ja(),[a,o]=C.useState(!1),[l,u]=C.useState(!0),[d,p]=C.useState([]),[f,g]=C.useState(null),[m,v]=C.useState(!1),[b,E]=C.useState(null),S=1e3,_=C.useRef(0),w=C.useRef(null),A=F=>typeof F=="string"?F:!F||typeof F!="object"?String(F??""):JSON.stringify(F,null,a?0:2),k=F=>{if(!F)return"";const j=new Date(F),H=j.toLocaleTimeString([],{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),G=String(j.getMilliseconds()).padStart(3,"0");return`${H}.${G}`};C.useEffect(()=>()=>{w.current&&(clearTimeout(w.current),w.current=null)},[t]),C.useEffect(()=>{p([]),g(null),v(!1),E(null)},[t]),C.useEffect(()=>{p(F=>{if(r.length<F.length)return F.slice(0,r.length);if(r.length>F.length){const j=Array.from({length:r.length-F.length},()=>Date.now());return[...F,...j]}return F})},[r.length]);const R=F=>F?F==="workflows.events.StepStateChanged"||F==="workflows.events.EventsQueueChanged":!1,I=C.useMemo(()=>r.map((F,j)=>({event:F,originalIndex:j})),[r]),O=C.useMemo(()=>l?I.filter(({event:F})=>!R(F.type)):I,[I,l]),L=C.useCallback(()=>{if(!t)return;const F=async()=>{try{_.current=Date.now(),v(!0),E(null);const{data:G,error:D}=await AD({client:i,path:{handler_id:t}});G?g(G?.result??null):D&&(console.error("Failed to fetch final result:",D),g(null),E(()=>{try{return typeof D=="string"?D:JSON.stringify(D)}catch{return String(D)}}))}catch(G){console.error("Failed to fetch final result:",G),g(null),E(()=>{try{return typeof G=="string"?G:JSON.stringify(G)}catch{return String(G)}})}finally{v(!1)}},H=Date.now()-(_.current||0);if(H<S){const G=S-H;w.current||(w.current=setTimeout(()=>{w.current=null,F()},G));return}F()},[t,i]);return C.useEffect(()=>{if(!t||!n)return;const F=n.status==="complete"||n.status==="failed",j=r.some(H=>H.type.endsWith(".StopEvent"));(F||j)&&!f&&!m&&!b&&L()},[n,r,t,f,m,b,L]),T.jsxs("div",{className:"h-full flex flex-col",children:[T.jsxs("div",{className:"p-4 border-b border-border",children:[T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx("h2",{className:"font-semibold text-sm",children:"Run Details"}),T.jsxs("div",{className:"flex items-center gap-2",children:[n&&T.jsx(Vq,{variant:n.status==="complete"?"default":"secondary",children:n.status}),T.jsx(Bee,{handlerId:t,workflowName:e??null,disabled:!n||n.status==="complete"||n.status==="failed"})]})]}),n?T.jsx("p",{className:"text-xs text-muted-foreground font-mono mt-1",children:n.handler_id}):T.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:e?"Visualization available before run starts":"Select a workflow to visualize"})]}),T.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[T.jsx("div",{className:"flex-1 p-4 overflow-auto border-r border-border",children:T.jsx(Fee,{workflowName:e||null,events:r.map(F=>({type:F.type,data:F.data})),className:"w-full h-full min-h-[400px]",isComplete:n?.status==="complete"||n?.status==="failed"})}),T.jsxs("div",{className:"w-[480px] flex flex-col overflow-hidden",children:[T.jsx("div",{className:"p-4 pb-2 border-b border-border",children:T.jsxs("div",{className:"flex items-center justify-between mb-3",children:[T.jsxs("h4",{className:"font-medium text-sm",children:["Event Stream (",O.length,")"]}),T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx(nj,{htmlFor:"hide-internal",className:"text-xs",children:"Hide internal"}),T.jsx(Oq,{id:"hide-internal",checked:l,onCheckedChange:F=>u(!!F)})]}),T.jsx(Tt,{variant:"ghost",size:"sm",onClick:()=>o(!a),children:a?"Formatted":"Compact"})]})]})}),T.jsx("div",{className:"flex-1 overflow-auto",children:t?r.length===0?T.jsx("div",{className:"flex items-center justify-center h-full",children:T.jsx("p",{className:"text-muted-foreground text-sm",children:"No events yet..."})}):T.jsxs(gD,{children:[T.jsx(mD,{className:"sticky top-0 bg-background z-10",children:T.jsxs(KE,{children:[T.jsx(ZE,{className:"w-8",children:"#"}),T.jsx(ZE,{children:"Event"})]})}),T.jsx(bD,{children:O.map((F,j)=>{const{event:H,originalIndex:G}=F;return T.jsxs(KE,{"data-event-index":j,className:"cursor-pointer transition-colors",children:[T.jsx(QE,{className:"text-xs text-muted-foreground align-top",children:j+1}),T.jsx(QE,{className:"py-3",children:T.jsxs("div",{className:"space-y-2",children:[T.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[T.jsx("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:T.jsx("code",{className:"text-sm font-mono truncate",children:H.type})}),d[G]!==void 0?T.jsx("span",{className:"text-[10px] text-muted-foreground font-mono whitespace-nowrap",children:k(d[G])}):null]}),T.jsx(dI,{language:typeof H.data=="string"?"text":"json",value:A(H.data),wrapLongLines:a,className:"rounded border max-h-64 overflow-auto"})]})})]},`${G}-${H.type}`)})})]}):T.jsx("div",{className:"flex items-center justify-center h-full",children:T.jsx("p",{className:"text-muted-foreground text-sm",children:"Start a run to see events"})})}),(f||b||m)&&T.jsxs("div",{className:"p-4 border-t border-border",children:[T.jsx("h4",{className:"font-medium text-sm mb-2",children:"Final Result"}),m?T.jsx("div",{className:"bg-muted p-3 rounded",children:T.jsx("div",{className:"text-sm text-muted-foreground",children:"Loading result..."})}):b?T.jsxs("div",{className:"text-destructive text-sm p-3 bg-destructive/10 border border-destructive/20 rounded",children:["Failed to load final result: ",b]}):T.jsx(dI,{language:typeof f=="string"?"text":"json",value:typeof f=="string"?f:JSON.stringify(f,null,2),className:"rounded border overflow-hidden"})]})]})]})]})}function $ee(t,e,n=!0){C.useEffect(()=>{const r=i=>{(n&&i.ctrlKey&&i.key.toLowerCase()===t.toLowerCase()||!n&&i.key.toLowerCase()===t.toLowerCase())&&(i.preventDefault(),e())};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[t,e,n])}function zee(){const e=new URLSearchParams(window.location.search).get("api");return e?e.endsWith("/")?e.slice(0,-1):e:"http://localhost:8000"}function jee(){const[t,e]=C.useState(zee),[n,r]=C.useState(t),[i,a]=C.useState(null),[o,l]=C.useState(null),[u,d]=C.useState([]),[p,f]=C.useState(!0),[g,m]=C.useState(37.5),[v,b]=C.useState(!1),[E,S]=C.useState(!1),[_,w]=C.useState(!1),[A,k]=C.useState(null),[R,I]=C.useState(null),O=ja(),L=C.useRef(null),F=C.useCallback(async()=>{try{I(null);const{data:M,error:q}=await oq({client:O});if(q)throw new Error(String(q));M&&M.status?k(!0):(k(!1),I("Workflow server is unreachable"))}catch{k(!1),I("Workflow server is unreachable")}},[O]),j=C.useCallback(async()=>{try{f(!0);const{data:M,error:q}=await rq({client:O});M?d(M.workflows||[]):(q&&console.error("Failed to fetch workflows:",q),d([]))}catch(M){console.error("Failed to fetch workflows:",M),d([])}finally{f(!1)}},[O]);C.useEffect(()=>{O.setConfig({baseUrl:t}),F(),j()},[t,O,F,j]);const H=()=>{const M=n.endsWith("/")?n.slice(0,-1):n;e(M)},G=()=>{const M="http://localhost:8000";e(M),r(M)},D=M=>{l(M),L.current?.addLocalHandler(M,i||void 0)},z=M=>{M.preventDefault(),b(!0)},B=C.useCallback(M=>{const q=document.querySelector(".main-content-area");if(!q)return;const Y=q.getBoundingClientRect(),$=(M.clientX-Y.left)/Y.width*100,V=Math.max(20,Math.min(80,$));m(V)},[]),U=C.useCallback(()=>{b(!1)},[]);return C.useEffect(()=>{if(v)return document.addEventListener("mousemove",B),document.addEventListener("mouseup",U),document.body.style.cursor="col-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",U),document.body.style.cursor="",document.body.style.userSelect=""}},[v,B,U]),$ee("b",C.useCallback(()=>{w(M=>!M)},[]),!0),T.jsxs("div",{className:`h-screen flex flex-col bg-background ${v?"resize-active":""}`,children:[T.jsxs("div",{className:"flex items-center justify-between h-12 px-4 bg-card border-b border-border",children:[T.jsxs("div",{className:"flex items-center gap-4",children:[T.jsx(Tt,{variant:"ghost",size:"sm",onClick:()=>S(!E),title:E?"Show sidebar":"Hide sidebar",children:E?T.jsx(o$,{className:"h-4 w-4"}):T.jsx(i$,{className:"h-4 w-4"})}),T.jsx("h1",{className:"text-md font-semibold",children:"Workflow Debugger"})]}),T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("label",{className:"text-xs text-muted-foreground font-medium",children:"Workflow:"}),T.jsxs(Kw,{value:i||"",onValueChange:a,children:[T.jsx(Qw,{className:"w-48",children:T.jsx(Zw,{placeholder:"Select workflow..."})}),T.jsx(Jw,{children:p?T.jsx("div",{className:"p-2",children:T.jsx(ji,{className:"h-4 w-32"})}):u.length===0?T.jsx("div",{className:"p-2 text-sm text-muted-foreground",children:"No workflows found. Check server connection."}):u.map(M=>T.jsx(ud,{value:M,children:M},M))})]})]}),T.jsxs("div",{className:"flex items-center gap-2",children:[A!==null&&T.jsx("span",{className:`${A?"bg-green-500":"bg-red-500"} h-2 w-2 rounded-full`}),A===!1&&T.jsx("span",{className:"text-destructive text-xs",children:R||"Workflow server is unreachable"}),T.jsxs(Y3,{children:[T.jsx(X3,{asChild:!0,children:T.jsx(Tt,{variant:"ghost",size:"sm",children:T.jsx(y$,{className:"h-4 w-4"})})}),T.jsx(K3,{className:"w-80",children:T.jsx("div",{className:"space-y-4",children:T.jsxs("div",{className:"space-y-2",children:[T.jsx("h4",{className:"font-medium text-sm",children:"API Configuration"}),T.jsx(Ww,{value:n,onChange:M=>r(M.target.value),placeholder:"http://localhost:8000"}),T.jsxs("div",{className:"flex gap-2",children:[T.jsx(Tt,{onClick:H,variant:"outline",size:"sm",disabled:n===t,children:"Save"}),T.jsx(Tt,{onClick:G,variant:"outline",size:"sm",children:"Reset"})]}),T.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",t]})]})})})]})]})]}),T.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[!E&&T.jsx("div",{className:"w-48 border-r border-border bg-card overflow-hidden transition-all duration-200",children:T.jsx(Kq,{ref:L,activeHandlerId:o,onHandlerSelect:l})}),T.jsxs("div",{className:"flex-1 flex overflow-hidden main-content-area",children:[_?T.jsx("div",{className:"w-10 border-r border-border bg-muted/30 flex flex-col items-center justify-center hover:bg-muted/50 transition-colors",children:T.jsx(Tt,{variant:"ghost",size:"sm",onClick:()=>w(!1),title:"Show configuration panel (Ctrl+B)",className:"h-10 w-10 p-0",children:T.jsx(c$,{className:"h-5 w-5"})})}):T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"border-r border-border overflow-auto",style:{width:`${g}%`},children:T.jsx(Xq,{selectedWorkflow:i,onRunStart:D,activeHandlerId:o,onCollapse:()=>w(!0)})}),T.jsx("div",{className:`w-2 hover:bg-gray-500/20 hover:shadow-lg cursor-col-resize flex-shrink-0 transition-all duration-200 relative group border-l border-r border-border ${v?"shadow-xl":""}`,onMouseDown:z,title:"Drag to resize panels"})]}),T.jsx("div",{className:"overflow-auto",style:{width:_?"calc(100% - 40px)":`${100-g}%`},children:T.jsx(Uee,{handlerId:o,selectedWorkflow:i})})]})]})]})}class Hee extends Me.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,n){console.error("ErrorBoundary caught an error:",e,n)}resetError=()=>{this.setState({hasError:!1,error:void 0})};render(){if(this.state.hasError&&this.state.error){if(this.props.fallback){const e=this.props.fallback;return T.jsx(e,{error:this.state.error,resetError:this.resetError})}return T.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:T.jsxs("div",{className:"max-w-md p-6 bg-card border border-border rounded-lg shadow-sm",children:[T.jsx("h2",{className:"text-lg font-semibold text-destructive mb-2",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"The workflow debugger encountered an error. This might happen if the workflow server is unreachable."}),T.jsxs("details",{className:"mb-4",children:[T.jsx("summary",{className:"text-sm font-medium cursor-pointer hover:text-foreground",children:"Error Details"}),T.jsx("pre",{className:"mt-2 text-xs bg-muted p-3 rounded border overflow-auto",children:this.state.error.message})]}),T.jsxs("div",{className:"flex gap-2",children:[T.jsx("button",{onClick:this.resetError,className:"px-3 py-2 text-sm bg-primary text-primary-foreground rounded hover:bg-primary/90 transition-colors",children:"Try Again"}),T.jsx("button",{onClick:()=>window.location.reload(),className:"px-3 py-2 text-sm bg-secondary text-secondary-foreground rounded hover:bg-secondary/90 transition-colors",children:"Reload Page"})]})]})})}return this.props.children}}function Gee(){const e=xD({baseUrl:"http://localhost:8000"});return T.jsx(Hee,{children:T.jsx(Aq,{clients:{workflowsClient:e},children:T.jsx(jee,{})})})}function HP(){const t=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",t)}HP();window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",HP);AB.createRoot(document.getElementById("root")).render(T.jsx(C.StrictMode,{children:T.jsx(Gee,{})}));const cn=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),mw=[.001,0,0,.001,0,0],CE=1.35,kn={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},Dr={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},qee="pdfjs_internal_editor_",Le={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,SIGNATURE:101},je={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35,DRAW_STEP:41},GP={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},nn={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},gl={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},At={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},ko={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},Xl={ERRORS:0,WARNINGS:1,INFOS:5},Il={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},Fu={moveTo:0,lineTo:1,curveTo:2,closePath:3},qP={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let op=Xl.WARNINGS;function Vee(t){Number.isInteger(t)&&(op=t)}function Wee(){return op}function sp(t){op>=Xl.INFOS&&console.log(`Info: ${t}`)}function Pe(t){op>=Xl.WARNINGS&&console.log(`Warning: ${t}`)}function et(t){throw new Error(t)}function Lt(t,e){t||et(e)}function Yee(t){switch(t?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function CS(t,e=null,n=null){if(!t)return null;if(n&&typeof t=="string"&&(n.addDefaultProtocol&&t.startsWith("www.")&&t.match(/\./g)?.length>=2&&(t=`http://${t}`),n.tryConvertEncoding))try{t=Jee(t)}catch{}const r=e?URL.parse(t,e):URL.parse(t);return Yee(r)?r:null}function RS(t,e,n=!1){const r=URL.parse(t);return r?(r.hash=e,r.href):n&&CS(t,"http://example.com")?t.split("#",1)[0]+`${e?`#${e}`:""}`:""}function ze(t,e,n,r=!1){return Object.defineProperty(t,e,{value:n,enumerable:!r,configurable:!0,writable:!1}),n}const Ga=function(){function e(n,r){this.message=n,this.name=r}return e.prototype=new Error,e.constructor=e,e}();class g1 extends Ga{constructor(e,n){super(e,"PasswordException"),this.code=n}}class RE extends Ga{constructor(e,n){super(e,"UnknownErrorException"),this.details=n}}class Sd extends Ga{constructor(e){super(e,"InvalidPDFException")}}class Ol extends Ga{constructor(e,n,r){super(e,"ResponseException"),this.status=n,this.missing=r}}class Xee extends Ga{constructor(e){super(e,"FormatError")}}class si extends Ga{constructor(e){super(e,"AbortException")}}function VP(t){(typeof t!="object"||t?.length===void 0)&&et("Invalid argument for bytesToString");const e=t.length,n=8192;if(e<n)return String.fromCharCode.apply(null,t);const r=[];for(let i=0;i<e;i+=n){const a=Math.min(i+n,e),o=t.subarray(i,a);r.push(String.fromCharCode.apply(null,o))}return r.join("")}function Kl(t){typeof t!="string"&&et("Invalid argument for stringToBytes");const e=t.length,n=new Uint8Array(e);for(let r=0;r<e;++r)n[r]=t.charCodeAt(r)&255;return n}function Kee(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,t&255)}function Zee(){const t=new Uint8Array(4);return t[0]=1,new Uint32Array(t.buffer,0,1)[0]===1}function Qee(){try{return new Function(""),!0}catch{return!1}}class qt{static get isLittleEndian(){return ze(this,"isLittleEndian",Zee())}static get isEvalSupported(){return ze(this,"isEvalSupported",Qee())}static get isOffscreenCanvasSupported(){return ze(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return ze(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get platform(){const{platform:e,userAgent:n}=navigator;return ze(this,"platform",{isAndroid:n.includes("Android"),isLinux:e.includes("Linux"),isMac:e.includes("Mac"),isWindows:e.includes("Win"),isFirefox:n.includes("Firefox")})}static get isCSSRoundSupported(){return ze(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}const kE=Array.from(Array(256).keys(),t=>t.toString(16).padStart(2,"0"));class Ce{static makeHexColor(e,n,r){return`#${kE[e]}${kE[n]}${kE[r]}`}static scaleMinMax(e,n){let r;e[0]?(e[0]<0&&(r=n[0],n[0]=n[2],n[2]=r),n[0]*=e[0],n[2]*=e[0],e[3]<0&&(r=n[1],n[1]=n[3],n[3]=r),n[1]*=e[3],n[3]*=e[3]):(r=n[0],n[0]=n[1],n[1]=r,r=n[2],n[2]=n[3],n[3]=r,e[1]<0&&(r=n[1],n[1]=n[3],n[3]=r),n[1]*=e[1],n[3]*=e[1],e[2]<0&&(r=n[0],n[0]=n[2],n[2]=r),n[0]*=e[2],n[2]*=e[2]),n[0]+=e[4],n[1]+=e[5],n[2]+=e[4],n[3]+=e[5]}static transform(e,n){return[e[0]*n[0]+e[2]*n[1],e[1]*n[0]+e[3]*n[1],e[0]*n[2]+e[2]*n[3],e[1]*n[2]+e[3]*n[3],e[0]*n[4]+e[2]*n[5]+e[4],e[1]*n[4]+e[3]*n[5]+e[5]]}static applyTransform(e,n,r=0){const i=e[r],a=e[r+1];e[r]=i*n[0]+a*n[2]+n[4],e[r+1]=i*n[1]+a*n[3]+n[5]}static applyTransformToBezier(e,n,r=0){const i=n[0],a=n[1],o=n[2],l=n[3],u=n[4],d=n[5];for(let p=0;p<6;p+=2){const f=e[r+p],g=e[r+p+1];e[r+p]=f*i+g*o+u,e[r+p+1]=f*a+g*l+d}}static applyInverseTransform(e,n){const r=e[0],i=e[1],a=n[0]*n[3]-n[1]*n[2];e[0]=(r*n[3]-i*n[2]+n[2]*n[5]-n[4]*n[3])/a,e[1]=(-r*n[1]+i*n[0]+n[4]*n[1]-n[5]*n[0])/a}static axialAlignedBoundingBox(e,n,r){const i=n[0],a=n[1],o=n[2],l=n[3],u=n[4],d=n[5],p=e[0],f=e[1],g=e[2],m=e[3];let v=i*p+u,b=v,E=i*g+u,S=E,_=l*f+d,w=_,A=l*m+d,k=A;if(a!==0||o!==0){const R=a*p,I=a*g,O=o*f,L=o*m;v+=O,S+=O,E+=L,b+=L,_+=R,k+=R,A+=I,w+=I}r[0]=Math.min(r[0],v,E,b,S),r[1]=Math.min(r[1],_,A,w,k),r[2]=Math.max(r[2],v,E,b,S),r[3]=Math.max(r[3],_,A,w,k)}static inverseTransform(e){const n=e[0]*e[3]-e[1]*e[2];return[e[3]/n,-e[1]/n,-e[2]/n,e[0]/n,(e[2]*e[5]-e[4]*e[3])/n,(e[4]*e[1]-e[5]*e[0])/n]}static singularValueDecompose2dScale(e,n){const r=e[0],i=e[1],a=e[2],o=e[3],l=r**2+i**2,u=r*a+i*o,d=a**2+o**2,p=(l+d)/2,f=Math.sqrt(p**2-(l*d-u**2));n[0]=Math.sqrt(p+f||1),n[1]=Math.sqrt(p-f||1)}static normalizeRect(e){const n=e.slice(0);return e[0]>e[2]&&(n[0]=e[2],n[2]=e[0]),e[1]>e[3]&&(n[1]=e[3],n[3]=e[1]),n}static intersect(e,n){const r=Math.max(Math.min(e[0],e[2]),Math.min(n[0],n[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(n[0],n[2]));if(r>i)return null;const a=Math.max(Math.min(e[1],e[3]),Math.min(n[1],n[3])),o=Math.min(Math.max(e[1],e[3]),Math.max(n[1],n[3]));return a>o?null:[r,a,i,o]}static pointBoundingBox(e,n,r){r[0]=Math.min(r[0],e),r[1]=Math.min(r[1],n),r[2]=Math.max(r[2],e),r[3]=Math.max(r[3],n)}static rectBoundingBox(e,n,r,i,a){a[0]=Math.min(a[0],e,r),a[1]=Math.min(a[1],n,i),a[2]=Math.max(a[2],e,r),a[3]=Math.max(a[3],n,i)}static#e(e,n,r,i,a,o,l,u,d,p){if(d<=0||d>=1)return;const f=1-d,g=d*d,m=g*d,v=f*(f*(f*e+3*d*n)+3*g*r)+m*i,b=f*(f*(f*a+3*d*o)+3*g*l)+m*u;p[0]=Math.min(p[0],v),p[1]=Math.min(p[1],b),p[2]=Math.max(p[2],v),p[3]=Math.max(p[3],b)}static#t(e,n,r,i,a,o,l,u,d,p,f,g){if(Math.abs(d)<1e-12){Math.abs(p)>=1e-12&&this.#e(e,n,r,i,a,o,l,u,-f/p,g);return}const m=p**2-4*f*d;if(m<0)return;const v=Math.sqrt(m),b=2*d;this.#e(e,n,r,i,a,o,l,u,(-p+v)/b,g),this.#e(e,n,r,i,a,o,l,u,(-p-v)/b,g)}static bezierBoundingBox(e,n,r,i,a,o,l,u,d){d[0]=Math.min(d[0],e,l),d[1]=Math.min(d[1],n,u),d[2]=Math.max(d[2],e,l),d[3]=Math.max(d[3],n,u),this.#t(e,r,a,l,n,i,o,u,3*(-e+3*(r-a)+l),6*(e-2*r+a),3*(r-e),d),this.#t(e,r,a,l,n,i,o,u,3*(-n+3*(i-o)+u),6*(n-2*i+o),3*(i-n),d)}}function Jee(t){return decodeURIComponent(escape(t))}let NE=null,m1=null;function WP(t){return NE||(NE=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,m1=new Map([["ſt","ſt"]])),t.replaceAll(NE,(e,n,r)=>n?n.normalize("NFKC"):m1.get(r))}function kS(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const t=new Uint8Array(32);return crypto.getRandomValues(t),VP(t)}const NS="pdfjs_internal_id_";function ete(t,e,n){if(!Array.isArray(n)||n.length<2)return!1;const[r,i,...a]=n;if(!t(r)&&!Number.isInteger(r)||!e(i))return!1;const o=a.length;let l=!0;switch(i.name){case"XYZ":if(o<2||o>3)return!1;break;case"Fit":case"FitB":return o===0;case"FitH":case"FitBH":case"FitV":case"FitBV":if(o>1)return!1;break;case"FitR":if(o!==4)return!1;l=!1;break;default:return!1}for(const u of a)if(!(typeof u=="number"||l&&u===null))return!1;return!0}function rn(t,e,n){return Math.min(Math.max(t,e),n)}function YP(t){return Uint8Array.prototype.toBase64?t.toBase64():btoa(VP(t))}function tte(t){return Uint8Array.fromBase64?Uint8Array.fromBase64(t):Kl(atob(t))}typeof Promise.try!="function"&&(Promise.try=function(t,...e){return new Promise(n=>{n(t(...e))})});typeof Math.sumPrecise!="function"&&(Math.sumPrecise=function(t){return t.reduce((e,n)=>e+n,0)});const Jr="http://www.w3.org/2000/svg";class Ua{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}async function ps(t,e="text"){if(ul(t,document.baseURI)){const n=await fetch(t);if(!n.ok)throw new Error(n.statusText);switch(e){case"arraybuffer":return n.arrayBuffer();case"blob":return n.blob();case"json":return n.json()}return n.text()}return new Promise((n,r)=>{const i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType=e,i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(i.status===200||i.status===0){switch(e){case"arraybuffer":case"blob":case"json":n(i.response);return}n(i.responseText);return}r(new Error(i.statusText))}},i.send(null)})}class Zl{constructor({viewBox:e,userUnit:n,scale:r,rotation:i,offsetX:a=0,offsetY:o=0,dontFlip:l=!1}){this.viewBox=e,this.userUnit=n,this.scale=r,this.rotation=i,this.offsetX=a,this.offsetY=o,r*=n;const u=(e[2]+e[0])/2,d=(e[3]+e[1])/2;let p,f,g,m;switch(i%=360,i<0&&(i+=360),i){case 180:p=-1,f=0,g=0,m=1;break;case 90:p=0,f=1,g=1,m=0;break;case 270:p=0,f=-1,g=-1,m=0;break;case 0:p=1,f=0,g=0,m=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}l&&(g=-g,m=-m);let v,b,E,S;p===0?(v=Math.abs(d-e[1])*r+a,b=Math.abs(u-e[0])*r+o,E=(e[3]-e[1])*r,S=(e[2]-e[0])*r):(v=Math.abs(u-e[0])*r+a,b=Math.abs(d-e[1])*r+o,E=(e[2]-e[0])*r,S=(e[3]-e[1])*r),this.transform=[p*r,f*r,g*r,m*r,v-p*r*u-g*r*d,b-f*r*u-m*r*d],this.width=E,this.height=S}get rawDims(){const e=this.viewBox;return ze(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone({scale:e=this.scale,rotation:n=this.rotation,offsetX:r=this.offsetX,offsetY:i=this.offsetY,dontFlip:a=!1}={}){return new Zl({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:e,rotation:n,offsetX:r,offsetY:i,dontFlip:a})}convertToViewportPoint(e,n){const r=[e,n];return Ce.applyTransform(r,this.transform),r}convertToViewportRectangle(e){const n=[e[0],e[1]];Ce.applyTransform(n,this.transform);const r=[e[2],e[3]];return Ce.applyTransform(r,this.transform),[n[0],n[1],r[0],r[1]]}convertToPdfPoint(e,n){const r=[e,n];return Ce.applyInverseTransform(r,this.transform),r}}class lp extends Ga{constructor(e,n=0){super(e,"RenderingCancelledException"),this.extraDelay=n}}function Ql(t){const e=t.length;let n=0;for(;n<e&&t[n].trim()==="";)n++;return t.substring(n,n+5).toLowerCase()==="data:"}function cp(t){return typeof t=="string"&&/\.pdf$/i.test(t)}function XP(t){return[t]=t.split(/[#?]/,1),t.substring(t.lastIndexOf("/")+1)}function KP(t,e="document.pdf"){if(typeof t!="string")return e;if(Ql(t))return Pe('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;const n=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,r=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=n.exec(t);let a=r.exec(i[1])||r.exec(i[2])||r.exec(i[3]);if(a&&(a=a[0],a.includes("%")))try{a=r.exec(decodeURIComponent(a))[0]}catch{}return a||e}class b1{started=Object.create(null);times=[];time(e){e in this.started&&Pe(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||Pe(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let n=0;for(const{name:r}of this.times)n=Math.max(r.length,n);for(const{name:r,start:i,end:a}of this.times)e.push(`${r.padEnd(n)} ${a-i}ms
284
- `);return e.join("")}}function ul(t,e){const n=e?URL.parse(t,e):URL.parse(t);return n?.protocol==="http:"||n?.protocol==="https:"}function Xn(t){t.preventDefault()}function Ct(t){t.preventDefault(),t.stopPropagation()}function nte(t){console.log("Deprecated API usage: "+t)}class IS{static#e;static toDateObject(e){if(!e||typeof e!="string")return null;this.#e||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");const n=this.#e.exec(e);if(!n)return null;const r=parseInt(n[1],10);let i=parseInt(n[2],10);i=i>=1&&i<=12?i-1:0;let a=parseInt(n[3],10);a=a>=1&&a<=31?a:1;let o=parseInt(n[4],10);o=o>=0&&o<=23?o:0;let l=parseInt(n[5],10);l=l>=0&&l<=59?l:0;let u=parseInt(n[6],10);u=u>=0&&u<=59?u:0;const d=n[7]||"Z";let p=parseInt(n[8],10);p=p>=0&&p<=23?p:0;let f=parseInt(n[9],10)||0;return f=f>=0&&f<=59?f:0,d==="-"?(o+=p,l+=f):d==="+"&&(o-=p,l-=f),new Date(Date.UTC(r,i,a,o,l,u))}}function ZP(t,{scale:e=1,rotation:n=0}){const{width:r,height:i}=t.attributes.style,a=[0,0,parseInt(r),parseInt(i)];return new Zl({viewBox:a,userUnit:1,scale:e,rotation:n})}function OS(t){if(t.startsWith("#")){const e=parseInt(t.slice(1),16);return[(e&16711680)>>16,(e&65280)>>8,e&255]}return t.startsWith("rgb(")?t.slice(4,-1).split(",").map(e=>parseInt(e)):t.startsWith("rgba(")?t.slice(5,-1).split(",").map(e=>parseInt(e)).slice(0,3):(Pe(`Not a valid color format: "${t}"`),[0,0,0])}function rte(t){const e=document.createElement("span");e.style.visibility="hidden",e.style.colorScheme="only light",document.body.append(e);for(const n of t.keys()){e.style.color=n;const r=window.getComputedStyle(e).color;t.set(n,OS(r))}e.remove()}function yt(t){const{a:e,b:n,c:r,d:i,e:a,f:o}=t.getTransform();return[e,n,r,i,a,o]}function Tr(t){const{a:e,b:n,c:r,d:i,e:a,f:o}=t.getTransform().invertSelf();return[e,n,r,i,a,o]}function Wi(t,e,n=!1,r=!0){if(e instanceof Zl){const{pageWidth:i,pageHeight:a}=e.rawDims,{style:o}=t,l=qt.isCSSRoundSupported,u=`var(--total-scale-factor) * ${i}px`,d=`var(--total-scale-factor) * ${a}px`,p=l?`round(down, ${u}, var(--scale-round-x))`:`calc(${u})`,f=l?`round(down, ${d}, var(--scale-round-y))`:`calc(${d})`;!n||e.rotation%180===0?(o.width=p,o.height=f):(o.width=f,o.height=p)}r&&t.setAttribute("data-main-rotation",e.rotation)}class fr{constructor(){const{pixelRatio:e}=fr;this.sx=e,this.sy=e}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}limitCanvas(e,n,r,i,a=-1){let o=1/0,l=1/0,u=1/0;r=fr.capPixels(r,a),r>0&&(o=Math.sqrt(r/(e*n))),i!==-1&&(l=i/e,u=i/n);const d=Math.min(o,l,u);return this.sx>d||this.sy>d?(this.sx=d,this.sy=d,!0):!1}static get pixelRatio(){return globalThis.devicePixelRatio||1}static capPixels(e,n){if(n>=0){const r=Math.ceil(window.screen.availWidth*window.screen.availHeight*this.pixelRatio**2*(1+n/100));return e>0?Math.min(e,r):r}return e}}const xd=["image/apng","image/avif","image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/x-icon"];class ml{#e=null;#t=null;#n;#r=null;#a=null;#i=null;static#l=null;constructor(e){this.#n=e,ml.#l||=Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button",signature:"pdfjs-editor-remove-signature-button"})}render(){const e=this.#e=document.createElement("div");e.classList.add("editToolbar","hidden"),e.setAttribute("role","toolbar");const n=this.#n._uiManager._signal;e.addEventListener("contextmenu",Xn,{signal:n}),e.addEventListener("pointerdown",ml.#s,{signal:n});const r=this.#r=document.createElement("div");r.className="buttons",e.append(r);const i=this.#n.toolbarPosition;if(i){const{style:a}=e,o=this.#n._uiManager.direction==="ltr"?1-i[0]:i[0];a.insetInlineEnd=`${100*o}%`,a.top=`calc(${100*i[1]}% + var(--editor-toolbar-vert-offset))`}return this.#u(),e}get div(){return this.#e}static#s(e){e.stopPropagation()}#d(e){this.#n._focusEventsAllowed=!1,Ct(e)}#c(e){this.#n._focusEventsAllowed=!0,Ct(e)}#p(e){const n=this.#n._uiManager._signal;e.addEventListener("focusin",this.#d.bind(this),{capture:!0,signal:n}),e.addEventListener("focusout",this.#c.bind(this),{capture:!0,signal:n}),e.addEventListener("contextmenu",Xn,{signal:n})}hide(){this.#e.classList.add("hidden"),this.#t?.hideDropdown()}show(){this.#e.classList.remove("hidden"),this.#a?.shown()}#u(){const{editorType:e,_uiManager:n}=this.#n,r=document.createElement("button");r.className="delete",r.tabIndex=0,r.setAttribute("data-l10n-id",ml.#l[e]),this.#p(r),r.addEventListener("click",i=>{n.delete()},{signal:n._signal}),this.#r.append(r)}get#f(){const e=document.createElement("div");return e.className="divider",e}async addAltText(e){const n=await e.render();this.#p(n),this.#r.prepend(n,this.#f),this.#a=e}addColorPicker(e){this.#t=e;const n=e.renderButton();this.#p(n),this.#r.prepend(n,this.#f)}async addEditSignatureButton(e){const n=this.#i=await e.renderEditButton(this.#n);this.#p(n),this.#r.prepend(n,this.#f)}updateEditSignatureButton(e){this.#i&&(this.#i.title=e)}remove(){this.#e.remove(),this.#t?.destroy(),this.#t=null}}class ite{#e=null;#t=null;#n;constructor(e){this.#n=e}#r(){const e=this.#t=document.createElement("div");e.className="editToolbar",e.setAttribute("role","toolbar"),e.addEventListener("contextmenu",Xn,{signal:this.#n._signal});const n=this.#e=document.createElement("div");return n.className="buttons",e.append(n),this.#i(),e}#a(e,n){let r=0,i=0;for(const a of e){const o=a.y+a.height;if(o<r)continue;const l=a.x+(n?a.width:0);if(o>r){i=l,r=o;continue}n?l>i&&(i=l):l<i&&(i=l)}return[n?1-i:i,r]}show(e,n,r){const[i,a]=this.#a(n,r),{style:o}=this.#t||=this.#r();e.append(this.#t),o.insetInlineEnd=`${100*i}%`,o.top=`calc(${100*a}% + var(--editor-toolbar-vert-offset))`}hide(){this.#t.remove()}#i(){const e=document.createElement("button");e.className="highlightButton",e.tabIndex=0,e.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const n=document.createElement("span");e.append(n),n.className="visuallyHidden",n.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const r=this.#n._signal;e.addEventListener("contextmenu",Xn,{signal:r}),e.addEventListener("click",()=>{this.#n.highlightSelection("floating_button")},{signal:r}),this.#e.append(e)}}function QP(t,e,n){for(const r of n)e.addEventListener(r,t[r].bind(t))}class ate{#e=0;get id(){return`${qee}${this.#e++}`}}class LS{#e=kS();#t=0;#n=null;static get _isSVGFittingCanvas(){const e='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',r=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),i=new Image;i.src=e;const a=i.decode().then(()=>(r.drawImage(i,0,0,1,1,0,0,1,3),new Uint32Array(r.getImageData(0,0,1,1).data.buffer)[0]===0));return ze(this,"_isSVGFittingCanvas",a)}async#r(e,n){this.#n||=new Map;let r=this.#n.get(e);if(r===null)return null;if(r?.bitmap)return r.refCounter+=1,r;try{r||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let i;if(typeof n=="string"?(r.url=n,i=await ps(n,"blob")):n instanceof File?i=r.file=n:n instanceof Blob&&(i=n),i.type==="image/svg+xml"){const a=LS._isSVGFittingCanvas,o=new FileReader,l=new Image,u=new Promise((d,p)=>{l.onload=()=>{r.bitmap=l,r.isSvg=!0,d()},o.onload=async()=>{const f=r.svgUrl=o.result;l.src=await a?`${f}#svgView(preserveAspectRatio(none))`:f},l.onerror=o.onerror=p});o.readAsDataURL(i),await u}else r.bitmap=await createImageBitmap(i);r.refCounter=1}catch(i){Pe(i),r=null}return this.#n.set(e,r),r&&this.#n.set(r.id,r),r}async getFromFile(e){const{lastModified:n,name:r,size:i,type:a}=e;return this.#r(`${n}_${r}_${i}_${a}`,e)}async getFromUrl(e){return this.#r(e,e)}async getFromBlob(e,n){const r=await n;return this.#r(e,r)}async getFromId(e){this.#n||=new Map;const n=this.#n.get(e);if(!n)return null;if(n.bitmap)return n.refCounter+=1,n;if(n.file)return this.getFromFile(n.file);if(n.blobPromise){const{blobPromise:r}=n;return delete n.blobPromise,this.getFromBlob(n.id,r)}return this.getFromUrl(n.url)}getFromCanvas(e,n){this.#n||=new Map;let r=this.#n.get(e);if(r?.bitmap)return r.refCounter+=1,r;const i=new OffscreenCanvas(n.width,n.height);return i.getContext("2d").drawImage(n,0,0),r={bitmap:i.transferToImageBitmap(),id:`image_${this.#e}_${this.#t++}`,refCounter:1,isSvg:!1},this.#n.set(e,r),this.#n.set(r.id,r),r}getSvgUrl(e){const n=this.#n.get(e);return n?.isSvg?n.svgUrl:null}deleteId(e){this.#n||=new Map;const n=this.#n.get(e);if(!n||(n.refCounter-=1,n.refCounter!==0))return;const{bitmap:r}=n;if(!n.url&&!n.file){const i=new OffscreenCanvas(r.width,r.height);i.getContext("bitmaprenderer").transferFromImageBitmap(r),n.blobPromise=i.convertToBlob()}r.close?.(),n.bitmap=null}isValidId(e){return e.startsWith(`image_${this.#e}_`)}}class ote{#e=[];#t=!1;#n;#r=-1;constructor(e=128){this.#n=e}add({cmd:e,undo:n,post:r,mustExec:i,type:a=NaN,overwriteIfSameType:o=!1,keepUndo:l=!1}){if(i&&e(),this.#t)return;const u={cmd:e,undo:n,post:r,type:a};if(this.#r===-1){this.#e.length>0&&(this.#e.length=0),this.#r=0,this.#e.push(u);return}if(o&&this.#e[this.#r].type===a){l&&(u.undo=this.#e[this.#r].undo),this.#e[this.#r]=u;return}const d=this.#r+1;d===this.#n?this.#e.splice(0,1):(this.#r=d,d<this.#e.length&&this.#e.splice(d)),this.#e.push(u)}undo(){if(this.#r===-1)return;this.#t=!0;const{undo:e,post:n}=this.#e[this.#r];e(),n?.(),this.#t=!1,this.#r-=1}redo(){if(this.#r<this.#e.length-1){this.#r+=1,this.#t=!0;const{cmd:e,post:n}=this.#e[this.#r];e(),n?.(),this.#t=!1}}hasSomethingToUndo(){return this.#r!==-1}hasSomethingToRedo(){return this.#r<this.#e.length-1}cleanType(e){if(this.#r!==-1){for(let n=this.#r;n>=0;n--)if(this.#e[n].type!==e){this.#e.splice(n+1,this.#r-n),this.#r=n;return}this.#e.length=0,this.#r=-1}}destroy(){this.#e=null}}class Jl{constructor(e){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:n}=qt.platform;for(const[r,i,a={}]of e)for(const o of r){const l=o.startsWith("mac+");n&&l?(this.callbacks.set(o.slice(4),{callback:i,options:a}),this.allKeys.add(o.split("+").at(-1))):!n&&!l&&(this.callbacks.set(o,{callback:i,options:a}),this.allKeys.add(o.split("+").at(-1)))}}#e(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const n=this.buffer.join("+");return this.buffer.length=0,n}exec(e,n){if(!this.allKeys.has(n.key))return;const r=this.callbacks.get(this.#e(n));if(!r)return;const{callback:i,options:{bubbles:a=!1,args:o=[],checker:l=null}}=r;l&&!l(e,n)||(i.bind(e,...o,n)(),a||Ct(n))}}class DS{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return rte(e),ze(this,"_colors",e)}convert(e){const n=OS(e);if(!window.matchMedia("(forced-colors: active)").matches)return n;for(const[r,i]of this._colors)if(i.every((a,o)=>a===n[o]))return DS._colorsMapping.get(r);return n}getHexCode(e){const n=this._colors.get(e);return n?Ce.makeHexColor(...n):e}}class li{#e=new AbortController;#t=null;#n=new Map;#r=new Map;#a=null;#i=null;#l=null;#s=new ote;#d=null;#c=null;#p=0;#u=new Set;#f=null;#o=null;#h=new Set;_editorUndoBar=null;#m=!1;#g=!1;#b=!1;#y=null;#v=null;#w=null;#x=null;#_=!1;#C=null;#k=new ate;#S=!1;#R=!1;#T=null;#I=null;#O=null;#L=null;#$=null;#A=Le.NONE;#E=new Set;#F=null;#B=null;#H=null;#G=null;#q={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#z=[0,0];#D=null;#M=null;#j=null;#P=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const e=li.prototype,n=o=>o.#M.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&o.hasSomethingToControl(),r=(o,{target:l})=>{if(l instanceof HTMLInputElement){const{type:u}=l;return u!=="text"&&u!=="number"}return!0},i=this.TRANSLATE_SMALL,a=this.TRANSLATE_BIG;return ze(this,"_keyboardManager",new Jl([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:r}],[["ctrl+z","mac+meta+z"],e.undo,{checker:r}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:r}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:r}],[["Enter","mac+Enter"],e.addNewEditorFromKeyboard,{checker:(o,{target:l})=>!(l instanceof HTMLButtonElement)&&o.#M.contains(l)&&!o.isEnterHandled}],[[" ","mac+ "],e.addNewEditorFromKeyboard,{checker:(o,{target:l})=>!(l instanceof HTMLButtonElement)&&o.#M.contains(document.activeElement)}],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-i,0],checker:n}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-a,0],checker:n}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[i,0],checker:n}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[a,0],checker:n}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-i],checker:n}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-a],checker:n}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,i],checker:n}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,a],checker:n}]]))}constructor(e,n,r,i,a,o,l,u,d,p,f,g,m,v){const b=this._signal=this.#e.signal;this.#M=e,this.#j=n,this.#a=r,this.#B=i,this._eventBus=a,a._on("editingaction",this.onEditingAction.bind(this),{signal:b}),a._on("pagechanging",this.onPageChanging.bind(this),{signal:b}),a._on("scalechanging",this.onScaleChanging.bind(this),{signal:b}),a._on("rotationchanging",this.onRotationChanging.bind(this),{signal:b}),a._on("setpreference",this.onSetPreference.bind(this),{signal:b}),a._on("switchannotationeditorparams",E=>this.updateParams(E.type,E.value),{signal:b}),this.#re(),this.#se(),this.#K(),this.#i=o.annotationStorage,this.#y=o.filterFactory,this.#H=l,this.#x=u||null,this.#m=d,this.#g=p,this.#b=f,this.#$=g||null,this.viewParameters={realScale:Ua.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=m||null,this._supportsPinchToZoom=v!==!1}destroy(){this.#P?.resolve(),this.#P=null,this.#e?.abort(),this.#e=null,this._signal=null;for(const e of this.#r.values())e.destroy();this.#r.clear(),this.#n.clear(),this.#h.clear(),this.#L?.clear(),this.#t=null,this.#E.clear(),this.#s.destroy(),this.#a?.destroy(),this.#B?.destroy(),this.#C?.hide(),this.#C=null,this.#O?.destroy(),this.#O=null,this.#v&&(clearTimeout(this.#v),this.#v=null),this.#D&&(clearTimeout(this.#D),this.#D=null),this._editorUndoBar?.destroy()}combinedSignal(e){return AbortSignal.any([this._signal,e.signal])}get mlManager(){return this.#$}get useNewAltTextFlow(){return this.#g}get useNewAltTextWhenAddingImage(){return this.#b}get hcmFilter(){return ze(this,"hcmFilter",this.#H?this.#y.addHCMFilter(this.#H.foreground,this.#H.background):"none")}get direction(){return ze(this,"direction",getComputedStyle(this.#M).direction)}get highlightColors(){return ze(this,"highlightColors",this.#x?new Map(this.#x.split(",").map(e=>e.split("=").map(n=>n.trim()))):null)}get highlightColorNames(){return ze(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,e=>e.reverse())):null)}setCurrentDrawingSession(e){e?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),this.#c=e}setMainHighlightColorPicker(e){this.#O=e}editAltText(e,n=!1){this.#a?.editAltText(this,e,n)}getSignature(e){this.#B?.getSignature({uiManager:this,editor:e})}get signatureManager(){return this.#B}switchToMode(e,n){this._eventBus.on("annotationeditormodechanged",n,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:e})}setPreference(e,n){this._eventBus.dispatch("setpreference",{source:this,name:e,value:n})}onSetPreference({name:e,value:n}){switch(e){case"enableNewAltTextWhenAddingImage":this.#b=n;break}}onPageChanging({pageNumber:e}){this.#p=e-1}focusMainContainer(){this.#M.focus()}findParent(e,n){for(const r of this.#r.values()){const{x:i,y:a,width:o,height:l}=r.div.getBoundingClientRect();if(e>=i&&e<=i+o&&n>=a&&n<=a+l)return r}return null}disableUserSelect(e=!1){this.#j.classList.toggle("noUserSelect",e)}addShouldRescale(e){this.#h.add(e)}removeShouldRescale(e){this.#h.delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*Ua.PDF_TO_CSS_UNITS;for(const n of this.#h)n.onScaleChanging();this.#c?.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}#W({anchorNode:e}){return e.nodeType===Node.TEXT_NODE?e.parentElement:e}#X(e){const{currentLayer:n}=this;if(n.hasTextLayer(e))return n;for(const r of this.#r.values())if(r.hasTextLayer(e))return r;return null}highlightSelection(e=""){const n=document.getSelection();if(!n||n.isCollapsed)return;const{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}=n,l=n.toString(),d=this.#W(n).closest(".textLayer"),p=this.getSelectionBoxes(d);if(!p)return;n.empty();const f=this.#X(d),g=this.#A===Le.NONE,m=()=>{f?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:p,anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o,text:l}),g&&this.showAllEditors("highlight",!0,!0)};if(g){this.switchToMode(Le.HIGHLIGHT,m);return}m()}#te(){const e=document.getSelection();if(!e||e.isCollapsed)return;const r=this.#W(e).closest(".textLayer"),i=this.getSelectionBoxes(r);i&&(this.#C||=new ite(this),this.#C.show(r,i,this.direction==="ltr"))}addToAnnotationStorage(e){!e.isEmpty()&&this.#i&&!this.#i.has(e.id)&&this.#i.setValue(e.id,e)}#ne(){const e=document.getSelection();if(!e||e.isCollapsed){this.#F&&(this.#C?.hide(),this.#F=null,this.#N({hasSelectedText:!1}));return}const{anchorNode:n}=e;if(n===this.#F)return;const i=this.#W(e).closest(".textLayer");if(!i){this.#F&&(this.#C?.hide(),this.#F=null,this.#N({hasSelectedText:!1}));return}if(this.#C?.hide(),this.#F=n,this.#N({hasSelectedText:!0}),!(this.#A!==Le.HIGHLIGHT&&this.#A!==Le.NONE)&&(this.#A===Le.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#_=this.isShiftKeyDown,!this.isShiftKeyDown)){const a=this.#A===Le.HIGHLIGHT?this.#X(i):null;a?.toggleDrawing();const o=new AbortController,l=this.combinedSignal(o),u=d=>{d.type==="pointerup"&&d.button!==0||(o.abort(),a?.toggleDrawing(!0),d.type==="pointerup"&&this.#Y("main_toolbar"))};window.addEventListener("pointerup",u,{signal:l}),window.addEventListener("blur",u,{signal:l})}}#Y(e=""){this.#A===Le.HIGHLIGHT?this.highlightSelection(e):this.#m&&this.#te()}#re(){document.addEventListener("selectionchange",this.#ne.bind(this),{signal:this._signal})}#ie(){if(this.#w)return;this.#w=new AbortController;const e=this.combinedSignal(this.#w);window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})}#ae(){this.#w?.abort(),this.#w=null}blur(){if(this.isShiftKeyDown=!1,this.#_&&(this.#_=!1,this.#Y("main_toolbar")),!this.hasSelection)return;const{activeElement:e}=document;for(const n of this.#E)if(n.div.contains(e)){this.#I=[n,e],n._focusEventsAllowed=!1;break}}focus(){if(!this.#I)return;const[e,n]=this.#I;this.#I=null,n.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this._signal}),n.focus()}#K(){if(this.#T)return;this.#T=new AbortController;const e=this.combinedSignal(this.#T);window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})}#oe(){this.#T?.abort(),this.#T=null}#Z(){if(this.#d)return;this.#d=new AbortController;const e=this.combinedSignal(this.#d);document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})}#Q(){this.#d?.abort(),this.#d=null}#se(){const e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})}addEditListeners(){this.#K(),this.#Z()}removeEditListeners(){this.#oe(),this.#Q()}dragOver(e){for(const{type:n}of e.dataTransfer.items)for(const r of this.#o)if(r.isHandlingMimeForPasting(n)){e.dataTransfer.dropEffect="copy",e.preventDefault();return}}drop(e){for(const n of e.dataTransfer.items)for(const r of this.#o)if(r.isHandlingMimeForPasting(n.type)){r.paste(n,this.currentLayer),e.preventDefault();return}}copy(e){if(e.preventDefault(),this.#t?.commitOrRemove(),!this.hasSelection)return;const n=[];for(const r of this.#E){const i=r.serialize(!0);i&&n.push(i)}n.length!==0&&e.clipboardData.setData("application/pdfjs",JSON.stringify(n))}cut(e){this.copy(e),this.delete()}async paste(e){e.preventDefault();const{clipboardData:n}=e;for(const a of n.items)for(const o of this.#o)if(o.isHandlingMimeForPasting(a.type)){o.paste(a,this.currentLayer);return}let r=n.getData("application/pdfjs");if(!r)return;try{r=JSON.parse(r)}catch(a){Pe(`paste: "${a.message}".`);return}if(!Array.isArray(r))return;this.unselectAll();const i=this.currentLayer;try{const a=[];for(const u of r){const d=await i.deserialize(u);if(!d)return;a.push(d)}const o=()=>{for(const u of a)this.#J(u);this.#ee(a)},l=()=>{for(const u of a)u.remove()};this.addCommands({cmd:o,undo:l,mustExec:!0})}catch(a){Pe(`paste: "${a.message}".`)}}keydown(e){!this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!0),this.#A!==Le.NONE&&!this.isEditorHandlingKeyboard&&li._keyboardManager.exec(this,e)}keyup(e){this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!1,this.#_&&(this.#_=!1,this.#Y("main_toolbar")))}onEditingAction({name:e}){switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}#N(e){Object.entries(e).some(([r,i])=>this.#q[r]!==i)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#q,e)}),this.#A===Le.HIGHLIGHT&&e.hasSelectedEditor===!1&&this.#U([[je.HIGHLIGHT_FREE,!0]]))}#U(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#ie(),this.#Z(),this.#N({isEditing:this.#A!==Le.NONE,isEmpty:this.#V(),hasSomethingToUndo:this.#s.hasSomethingToUndo(),hasSomethingToRedo:this.#s.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#ae(),this.#Q(),this.#N({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!this.#o){this.#o=e;for(const n of this.#o)this.#U(n.defaultPropertiesToUpdate)}}getId(){return this.#k.id}get currentLayer(){return this.#r.get(this.#p)}getLayer(e){return this.#r.get(e)}get currentPageIndex(){return this.#p}addLayer(e){this.#r.set(e.pageIndex,e),this.#S?e.enable():e.disable()}removeLayer(e){this.#r.delete(e.pageIndex)}async updateMode(e,n=null,r=!1){if(this.#A!==e&&!(this.#P&&(await this.#P.promise,!this.#P))){if(this.#P=Promise.withResolvers(),this.#c?.commitOrRemove(),this.#A=e,e===Le.NONE){this.setEditingState(!1),this.#ce(),this._editorUndoBar?.hide(),this.#P.resolve();return}e===Le.SIGNATURE&&await this.#B?.loadSignatures(),this.setEditingState(!0),await this.#le(),this.unselectAll();for(const i of this.#r.values())i.updateMode(e);if(!n){r&&this.addNewEditorFromKeyboard(),this.#P.resolve();return}for(const i of this.#n.values())i.annotationElementId===n||i.id===n?(this.setSelected(i),i.enterInEditMode()):i.unselect();this.#P.resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e.mode!==this.#A&&this._eventBus.dispatch("switchannotationeditormode",{source:this,...e})}updateParams(e,n){if(this.#o){switch(e){case je.CREATE:this.currentLayer.addNewEditor(n);return;case je.HIGHLIGHT_DEFAULT_COLOR:this.#O?.updateColor(n);break;case je.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#G||=new Map).set(e,n),this.showAllEditors("highlight",n);break}for(const r of this.#E)r.updateParams(e,n);for(const r of this.#o)r.updateDefaultParams(e,n)}}showAllEditors(e,n,r=!1){for(const a of this.#n.values())a.editorType===e&&a.show(n);(this.#G?.get(je.HIGHLIGHT_SHOW_ALL)??!0)!==n&&this.#U([[je.HIGHLIGHT_SHOW_ALL,n]])}enableWaiting(e=!1){if(this.#R!==e){this.#R=e;for(const n of this.#r.values())e?n.disableClick():n.enableClick(),n.div.classList.toggle("waiting",e)}}async#le(){if(!this.#S){this.#S=!0;const e=[];for(const n of this.#r.values())e.push(n.enable());await Promise.all(e);for(const n of this.#n.values())n.enable()}}#ce(){if(this.unselectAll(),this.#S){this.#S=!1;for(const e of this.#r.values())e.disable();for(const e of this.#n.values())e.disable()}}getEditors(e){const n=[];for(const r of this.#n.values())r.pageIndex===e&&n.push(r);return n}getEditor(e){return this.#n.get(e)}addEditor(e){this.#n.set(e.id,e)}removeEditor(e){e.div.contains(document.activeElement)&&(this.#v&&clearTimeout(this.#v),this.#v=setTimeout(()=>{this.focusMainContainer(),this.#v=null},0)),this.#n.delete(e.id),e.annotationElementId&&this.#L?.delete(e.annotationElementId),this.unselect(e),(!e.annotationElementId||!this.#u.has(e.annotationElementId))&&this.#i?.remove(e.id)}addDeletedAnnotationElement(e){this.#u.add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}isDeletedAnnotationElement(e){return this.#u.has(e)}removeDeletedAnnotationElement(e){this.#u.delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}#J(e){const n=this.#r.get(e.pageIndex);n?n.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))}setActiveEditor(e){this.#t!==e&&(this.#t=e,e&&this.#U(e.propertiesToUpdate))}get#ue(){let e=null;for(e of this.#E);return e}updateUI(e){this.#ue===e&&this.#U(e.propertiesToUpdate)}updateUIForDefaultProperties(e){this.#U(e.defaultPropertiesToUpdate)}toggleSelected(e){if(this.#E.has(e)){this.#E.delete(e),e.unselect(),this.#N({hasSelectedEditor:this.hasSelection});return}this.#E.add(e),e.select(),this.#U(e.propertiesToUpdate),this.#N({hasSelectedEditor:!0})}setSelected(e){this.#c?.commitOrRemove();for(const n of this.#E)n!==e&&n.unselect();this.#E.clear(),this.#E.add(e),e.select(),this.#U(e.propertiesToUpdate),this.#N({hasSelectedEditor:!0})}isSelected(e){return this.#E.has(e)}get firstSelectedEditor(){return this.#E.values().next().value}unselect(e){e.unselect(),this.#E.delete(e),this.#N({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#E.size!==0}get isEnterHandled(){return this.#E.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#s.undo(),this.#N({hasSomethingToUndo:this.#s.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#V()}),this._editorUndoBar?.hide()}redo(){this.#s.redo(),this.#N({hasSomethingToUndo:!0,hasSomethingToRedo:this.#s.hasSomethingToRedo(),isEmpty:this.#V()})}addCommands(e){this.#s.add(e),this.#N({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#V()})}cleanUndoStack(e){this.#s.cleanType(e)}#V(){if(this.#n.size===0)return!0;if(this.#n.size===1)for(const e of this.#n.values())return e.isEmpty();return!1}delete(){this.commitOrRemove();const e=this.currentLayer?.endDrawingSession(!0);if(!this.hasSelection&&!e)return;const n=e?[e]:[...this.#E],r=()=>{this._editorUndoBar?.show(i,n.length===1?n[0].editorType:n.length);for(const a of n)a.remove()},i=()=>{for(const a of n)this.#J(a)};this.addCommands({cmd:r,undo:i,mustExec:!0})}commitOrRemove(){this.#t?.commitOrRemove()}hasSomethingToControl(){return this.#t||this.hasSelection}#ee(e){for(const n of this.#E)n.unselect();this.#E.clear();for(const n of e)n.isEmpty()||(this.#E.add(n),n.select());this.#N({hasSelectedEditor:this.hasSelection})}selectAll(){for(const e of this.#E)e.commit();this.#ee(this.#n.values())}unselectAll(){if(!(this.#t&&(this.#t.commitOrRemove(),this.#A!==Le.NONE))&&!this.#c?.commitOrRemove()&&this.hasSelection){for(const e of this.#E)e.unselect();this.#E.clear(),this.#N({hasSelectedEditor:!1})}}translateSelectedEditors(e,n,r=!1){if(r||this.commitOrRemove(),!this.hasSelection)return;this.#z[0]+=e,this.#z[1]+=n;const[i,a]=this.#z,o=[...this.#E],l=1e3;this.#D&&clearTimeout(this.#D),this.#D=setTimeout(()=>{this.#D=null,this.#z[0]=this.#z[1]=0,this.addCommands({cmd:()=>{for(const u of o)this.#n.has(u.id)&&(u.translateInPage(i,a),u.translationDone())},undo:()=>{for(const u of o)this.#n.has(u.id)&&(u.translateInPage(-i,-a),u.translationDone())},mustExec:!1})},l);for(const u of o)u.translateInPage(e,n),u.translationDone()}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#f=new Map;for(const e of this.#E)this.#f.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#f)return!1;this.disableUserSelect(!1);const e=this.#f;this.#f=null;let n=!1;for(const[{x:i,y:a,pageIndex:o},l]of e)l.newX=i,l.newY=a,l.newPageIndex=o,n||=i!==l.savedX||a!==l.savedY||o!==l.savedPageIndex;if(!n)return!1;const r=(i,a,o,l)=>{if(this.#n.has(i.id)){const u=this.#r.get(l);u?i._setParentAndPosition(u,a,o):(i.pageIndex=l,i.x=a,i.y=o)}};return this.addCommands({cmd:()=>{for(const[i,{newX:a,newY:o,newPageIndex:l}]of e)r(i,a,o,l)},undo:()=>{for(const[i,{savedX:a,savedY:o,savedPageIndex:l}]of e)r(i,a,o,l)},mustExec:!0}),!0}dragSelectedEditors(e,n){if(this.#f)for(const r of this.#f.keys())r.drag(e,n)}rebuild(e){if(e.parent===null){const n=this.getLayer(e.pageIndex);n?(n.changeParent(e),n.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#E.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return this.#t===e}getActive(){return this.#t}getMode(){return this.#A}get imageManager(){return ze(this,"imageManager",new LS)}getSelectionBoxes(e){if(!e)return null;const n=document.getSelection();for(let d=0,p=n.rangeCount;d<p;d++)if(!e.contains(n.getRangeAt(d).commonAncestorContainer))return null;const{x:r,y:i,width:a,height:o}=e.getBoundingClientRect();let l;switch(e.getAttribute("data-main-rotation")){case"90":l=(d,p,f,g)=>({x:(p-i)/o,y:1-(d+f-r)/a,width:g/o,height:f/a});break;case"180":l=(d,p,f,g)=>({x:1-(d+f-r)/a,y:1-(p+g-i)/o,width:f/a,height:g/o});break;case"270":l=(d,p,f,g)=>({x:1-(p+g-i)/o,y:(d-r)/a,width:g/o,height:f/a});break;default:l=(d,p,f,g)=>({x:(d-r)/a,y:(p-i)/o,width:f/a,height:g/o});break}const u=[];for(let d=0,p=n.rangeCount;d<p;d++){const f=n.getRangeAt(d);if(!f.collapsed)for(const{x:g,y:m,width:v,height:b}of f.getClientRects())v===0||b===0||u.push(l(g,m,v,b))}return u.length===0?null:u}addChangedExistingAnnotation({annotationElementId:e,id:n}){(this.#l||=new Map).set(e,n)}removeChangedExistingAnnotation({annotationElementId:e}){this.#l?.delete(e)}renderAnnotationElement(e){const n=this.#l?.get(e.data.id);if(!n)return;const r=this.#i.getRawValue(n);r&&(this.#A===Le.NONE&&!r.hasBeenModified||r.renderAnnotationElement(e))}setMissingCanvas(e,n,r){const i=this.#L?.get(e);i&&(i.setCanvas(n,r),this.#L.delete(e))}addMissingCanvas(e,n){(this.#L||=new Map).set(e,n)}}class kr{#e=null;#t=!1;#n=null;#r=null;#a=null;#i=null;#l=!1;#s=null;#d=null;#c=null;#p=null;#u=!1;static#f=null;static _l10n=null;constructor(e){this.#d=e,this.#u=e._uiManager.useNewAltTextFlow,kr.#f||=Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"})}static initialize(e){kr._l10n??=e}async render(){const e=this.#n=document.createElement("button");e.className="altText",e.tabIndex="0";const n=this.#r=document.createElement("span");e.append(n),this.#u?(e.classList.add("new"),e.setAttribute("data-l10n-id",kr.#f.missing),n.setAttribute("data-l10n-id",kr.#f["missing-label"])):(e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),n.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));const r=this.#d._uiManager._signal;e.addEventListener("contextmenu",Xn,{signal:r}),e.addEventListener("pointerdown",a=>a.stopPropagation(),{signal:r});const i=a=>{a.preventDefault(),this.#d._uiManager.editAltText(this.#d),this.#u&&this.#d._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:this.#o}})};return e.addEventListener("click",i,{capture:!0,signal:r}),e.addEventListener("keydown",a=>{a.target===e&&a.key==="Enter"&&(this.#l=!0,i(a))},{signal:r}),await this.#h(),e}get#o(){return this.#e&&"added"||this.#e===null&&this.guessedText&&"review"||"missing"}finish(){this.#n&&(this.#n.focus({focusVisible:this.#l}),this.#l=!1)}isEmpty(){return this.#u?this.#e===null:!this.#e&&!this.#t}hasData(){return this.#u?this.#e!==null||!!this.#c:this.isEmpty()}get guessedText(){return this.#c}async setGuessedText(e){this.#e===null&&(this.#c=e,this.#p=await kr._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:e}),this.#h())}toggleAltTextBadge(e=!1){if(!this.#u||this.#e){this.#s?.remove(),this.#s=null;return}if(!this.#s){const n=this.#s=document.createElement("div");n.className="noAltTextBadge",this.#d.div.append(n)}this.#s.classList.toggle("hidden",!e)}serialize(e){let n=this.#e;return!e&&this.#c===n&&(n=this.#p),{altText:n,decorative:this.#t,guessedText:this.#c,textWithDisclaimer:this.#p}}get data(){return{altText:this.#e,decorative:this.#t}}set data({altText:e,decorative:n,guessedText:r,textWithDisclaimer:i,cancel:a=!1}){r&&(this.#c=r,this.#p=i),!(this.#e===e&&this.#t===n)&&(a||(this.#e=e,this.#t=n),this.#h())}toggle(e=!1){this.#n&&(!e&&this.#i&&(clearTimeout(this.#i),this.#i=null),this.#n.disabled=!e)}shown(){this.#d._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:this.#o}})}destroy(){this.#n?.remove(),this.#n=null,this.#r=null,this.#a=null,this.#s?.remove(),this.#s=null}async#h(){const e=this.#n;if(!e)return;if(this.#u){if(e.classList.toggle("done",!!this.#e),e.setAttribute("data-l10n-id",kr.#f[this.#o]),this.#r?.setAttribute("data-l10n-id",kr.#f[`${this.#o}-label`]),!this.#e){this.#a?.remove();return}}else{if(!this.#e&&!this.#t){e.classList.remove("done"),this.#a?.remove();return}e.classList.add("done"),e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let n=this.#a;if(!n){this.#a=n=document.createElement("span"),n.className="tooltip",n.setAttribute("role","tooltip"),n.id=`alt-text-tooltip-${this.#d.id}`;const i=100,a=this.#d._uiManager._signal;a.addEventListener("abort",()=>{clearTimeout(this.#i),this.#i=null},{once:!0}),e.addEventListener("mouseenter",()=>{this.#i=setTimeout(()=>{this.#i=null,this.#a.classList.add("show"),this.#d._reportTelemetry({action:"alt_text_tooltip"})},i)},{signal:a}),e.addEventListener("mouseleave",()=>{this.#i&&(clearTimeout(this.#i),this.#i=null),this.#a?.classList.remove("show")},{signal:a})}this.#t?n.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(n.removeAttribute("data-l10n-id"),n.textContent=this.#e),n.parentNode||e.append(n),this.#d.getElementForAltText()?.setAttribute("aria-describedby",n.id)}}class ec{#e;#t=!1;#n=null;#r;#a;#i;#l;#s=null;#d;#c=null;#p;#u=null;constructor({container:e,isPinchingDisabled:n=null,isPinchingStopped:r=null,onPinchStart:i=null,onPinching:a=null,onPinchEnd:o=null,signal:l}){this.#e=e,this.#n=r,this.#r=n,this.#a=i,this.#i=a,this.#l=o,this.#p=new AbortController,this.#d=AbortSignal.any([l,this.#p.signal]),e.addEventListener("touchstart",this.#f.bind(this),{passive:!1,signal:this.#d})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return 35/fr.pixelRatio}#f(e){if(this.#r?.())return;if(e.touches.length===1){if(this.#s)return;const i=this.#s=new AbortController,a=AbortSignal.any([this.#d,i.signal]),o=this.#e,l={capture:!0,signal:a,passive:!1},u=d=>{d.pointerType==="touch"&&(this.#s?.abort(),this.#s=null)};o.addEventListener("pointerdown",d=>{d.pointerType==="touch"&&(Ct(d),u(d))},l),o.addEventListener("pointerup",u,l),o.addEventListener("pointercancel",u,l);return}if(!this.#u){this.#u=new AbortController;const i=AbortSignal.any([this.#d,this.#u.signal]),a=this.#e,o={signal:i,capture:!1,passive:!1};a.addEventListener("touchmove",this.#o.bind(this),o);const l=this.#h.bind(this);a.addEventListener("touchend",l,o),a.addEventListener("touchcancel",l,o),o.capture=!0,a.addEventListener("pointerdown",Ct,o),a.addEventListener("pointermove",Ct,o),a.addEventListener("pointercancel",Ct,o),a.addEventListener("pointerup",Ct,o),this.#a?.()}if(Ct(e),e.touches.length!==2||this.#n?.()){this.#c=null;return}let[n,r]=e.touches;n.identifier>r.identifier&&([n,r]=[r,n]),this.#c={touch0X:n.screenX,touch0Y:n.screenY,touch1X:r.screenX,touch1Y:r.screenY}}#o(e){if(!this.#c||e.touches.length!==2)return;Ct(e);let[n,r]=e.touches;n.identifier>r.identifier&&([n,r]=[r,n]);const{screenX:i,screenY:a}=n,{screenX:o,screenY:l}=r,u=this.#c,{touch0X:d,touch0Y:p,touch1X:f,touch1Y:g}=u,m=f-d,v=g-p,b=o-i,E=l-a,S=Math.hypot(b,E)||1,_=Math.hypot(m,v)||1;if(!this.#t&&Math.abs(_-S)<=ec.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(u.touch0X=i,u.touch0Y=a,u.touch1X=o,u.touch1Y=l,!this.#t){this.#t=!0;return}const w=[(i+o)/2,(a+l)/2];this.#i?.(w,_,S)}#h(e){e.touches.length>=2||(this.#u&&(this.#u.abort(),this.#u=null,this.#l?.()),this.#c&&(Ct(e),this.#c=null,this.#t=!1))}destroy(){this.#p?.abort(),this.#p=null,this.#s?.abort(),this.#s=null}}class Ne{#e=null;#t=null;#n=null;#r=!1;#a=null;#i="";#l=!1;#s=null;#d=null;#c=null;#p=null;#u="";#f=!1;#o=null;#h=!1;#m=!1;#g=!1;#b=null;#y=0;#v=0;#w=null;#x=null;isSelected=!1;_isCopy=!1;_editToolbar=null;_initialOptions=Object.create(null);_initialData=null;_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;static _l10n=null;static _l10nResizer=null;#_=!1;#C=Ne._zIndex++;static _borderLineWidth=-1;static _colorManager=new DS;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){const e=Ne.prototype._resizeWithKeyboard,n=li.TRANSLATE_SMALL,r=li.TRANSLATE_BIG;return ze(this,"_resizerKeyboardManager",new Jl([[["ArrowLeft","mac+ArrowLeft"],e,{args:[-n,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e,{args:[-r,0]}],[["ArrowRight","mac+ArrowRight"],e,{args:[n,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e,{args:[r,0]}],[["ArrowUp","mac+ArrowUp"],e,{args:[0,-n]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e,{args:[0,-r]}],[["ArrowDown","mac+ArrowDown"],e,{args:[0,n]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e,{args:[0,r]}],[["Escape","mac+Escape"],Ne.prototype._stopResizingWithKeyboard]]))}constructor(e){this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null;const{rotation:n,rawDims:{pageWidth:r,pageHeight:i,pageX:a,pageY:o}}=this.parent.viewport;this.rotation=n,this.pageRotation=(360+n-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[r,i],this.pageTranslation=[a,o];const[l,u]=this.parentDimensions;this.x=e.x/l,this.y=e.y/u,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get isDrawer(){return!1}static get _defaultLineColor(){return ze(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){const n=new ste({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});n.annotationElementId=e.annotationElementId,n.deleted=!0,n._uiManager.addToAnnotationStorage(n)}static initialize(e,n){if(Ne._l10n??=e,Ne._l10nResizer||=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"}),Ne._borderLineWidth!==-1)return;const r=getComputedStyle(document.documentElement);Ne._borderLineWidth=parseFloat(r.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,n){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,n){et("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#_}set _isDraggable(e){this.#_=e,this.div?.classList.toggle("draggable",e)}get isEnterHandled(){return!0}center(){const[e,n]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*n/(e*2),this.y+=this.width*e/(n*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*n/(e*2),this.y-=this.width*e/(n*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#C}setParent(e){e!==null?(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions):this.#j(),this.parent=e}focusin(e){this._focusEventsAllowed&&(this.#f?this.#f=!1:this.parent.setSelected(this))}focusout(e){!this._focusEventsAllowed||!this.isAttachedToDOM||e.relatedTarget?.closest(`#${this.id}`)||(e.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,n,r,i){const[a,o]=this.parentDimensions;[r,i]=this.screenToPageTranslation(r,i),this.x=(e+r)/a,this.y=(n+i)/o,this.fixAndSetPosition()}_moveAfterPaste(e,n){const[r,i]=this.parentDimensions;this.setAt(e*r,n*i,this.width*r,this.height*i),this._onTranslated()}#k([e,n],r,i){[r,i]=this.screenToPageTranslation(r,i),this.x+=r/e,this.y+=i/n,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}translate(e,n){this.#k(this.parentDimensions,e,n)}translateInPage(e,n){this.#o||=[this.x,this.y,this.width,this.height],this.#k(this.pageDimensions,e,n),this.div.scrollIntoView({block:"nearest"})}translationDone(){this._onTranslated(this.x,this.y)}drag(e,n){this.#o||=[this.x,this.y,this.width,this.height];const{div:r,parentDimensions:[i,a]}=this;if(this.x+=e/i,this.y+=n/a,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:f,y:g}=this.div.getBoundingClientRect();this.parent.findNewParent(this,f,g)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:o,y:l}=this;const[u,d]=this.getBaseTranslation();o+=u,l+=d;const{style:p}=r;p.left=`${(100*o).toFixed(2)}%`,p.top=`${(100*l).toFixed(2)}%`,this._onTranslating(o,l),r.scrollIntoView({block:"nearest"})}_onTranslating(e,n){}_onTranslated(e,n){}get _hasBeenMoved(){return!!this.#o&&(this.#o[0]!==this.x||this.#o[1]!==this.y)}get _hasBeenResized(){return!!this.#o&&(this.#o[2]!==this.width||this.#o[3]!==this.height)}getBaseTranslation(){const[e,n]=this.parentDimensions,{_borderLineWidth:r}=Ne,i=r/e,a=r/n;switch(this.rotation){case 90:return[-i,a];case 180:return[i,a];case 270:return[i,-a];default:return[-i,-a]}}get _mustFixPosition(){return!0}fixAndSetPosition(e=this.rotation){const{div:{style:n},pageDimensions:[r,i]}=this;let{x:a,y:o,width:l,height:u}=this;if(l*=r,u*=i,a*=r,o*=i,this._mustFixPosition)switch(e){case 0:a=rn(a,0,r-l),o=rn(o,0,i-u);break;case 90:a=rn(a,0,r-u),o=rn(o,l,i);break;case 180:a=rn(a,l,r),o=rn(o,u,i);break;case 270:a=rn(a,u,r),o=rn(o,0,i-l);break}this.x=a/=r,this.y=o/=i;const[d,p]=this.getBaseTranslation();a+=d,o+=p,n.left=`${(100*a).toFixed(2)}%`,n.top=`${(100*o).toFixed(2)}%`,this.moveInDOM()}static#S(e,n,r){switch(r){case 90:return[n,-e];case 180:return[-e,-n];case 270:return[-n,e];default:return[e,n]}}screenToPageTranslation(e,n){return Ne.#S(e,n,this.parentRotation)}pageTranslationToScreen(e,n){return Ne.#S(e,n,360-this.parentRotation)}#R(e){switch(e){case 90:{const[n,r]=this.pageDimensions;return[0,-n/r,r/n,0]}case 180:return[-1,0,0,-1];case 270:{const[n,r]=this.pageDimensions;return[0,n/r,-r/n,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:e,pageDimensions:[n,r]}=this;return[n*e,r*e]}setDims(e,n){const[r,i]=this.parentDimensions,{style:a}=this.div;a.width=`${(100*e/r).toFixed(2)}%`,this.#l||(a.height=`${(100*n/i).toFixed(2)}%`)}fixDims(){const{style:e}=this.div,{height:n,width:r}=e,i=r.endsWith("%"),a=!this.#l&&n.endsWith("%");if(i&&a)return;const[o,l]=this.parentDimensions;i||(e.width=`${(100*parseFloat(r)/o).toFixed(2)}%`),!this.#l&&!a&&(e.height=`${(100*parseFloat(n)/l).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#T(){if(this.#s)return;this.#s=document.createElement("div"),this.#s.classList.add("resizers");const e=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],n=this._uiManager._signal;for(const r of e){const i=document.createElement("div");this.#s.append(i),i.classList.add("resizer",r),i.setAttribute("data-resizer-name",r),i.addEventListener("pointerdown",this.#I.bind(this,r),{signal:n}),i.addEventListener("contextmenu",Xn,{signal:n}),i.tabIndex=-1}this.div.prepend(this.#s)}#I(e,n){n.preventDefault();const{isMac:r}=qt.platform;if(n.button!==0||n.ctrlKey&&r)return;this.#n?.toggle(!1);const i=this._isDraggable;this._isDraggable=!1,this.#d=[n.screenX,n.screenY];const a=new AbortController,o=this._uiManager.combinedSignal(a);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",this.#$.bind(this,e),{passive:!0,capture:!0,signal:o}),window.addEventListener("touchmove",Ct,{passive:!1,signal:o}),window.addEventListener("contextmenu",Xn,{signal:o}),this.#c={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const l=this.parent.div.style.cursor,u=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(n.target).cursor;const d=()=>{a.abort(),this.parent.togglePointerEvents(!0),this.#n?.toggle(!0),this._isDraggable=i,this.parent.div.style.cursor=l,this.div.style.cursor=u,this.#L()};window.addEventListener("pointerup",d,{signal:o}),window.addEventListener("blur",d,{signal:o})}#O(e,n,r,i){this.width=r,this.height=i,this.x=e,this.y=n;const[a,o]=this.parentDimensions;this.setDims(a*r,o*i),this.fixAndSetPosition(),this._onResized()}_onResized(){}#L(){if(!this.#c)return;const{savedX:e,savedY:n,savedWidth:r,savedHeight:i}=this.#c;this.#c=null;const a=this.x,o=this.y,l=this.width,u=this.height;a===e&&o===n&&l===r&&u===i||this.addCommands({cmd:this.#O.bind(this,a,o,l,u),undo:this.#O.bind(this,e,n,r,i),mustExec:!0})}static _round(e){return Math.round(e*1e4)/1e4}#$(e,n){const[r,i]=this.parentDimensions,a=this.x,o=this.y,l=this.width,u=this.height,d=Ne.MIN_SIZE/r,p=Ne.MIN_SIZE/i,f=this.#R(this.rotation),g=(B,U)=>[f[0]*B+f[2]*U,f[1]*B+f[3]*U],m=this.#R(360-this.rotation),v=(B,U)=>[m[0]*B+m[2]*U,m[1]*B+m[3]*U];let b,E,S=!1,_=!1;switch(e){case"topLeft":S=!0,b=(B,U)=>[0,0],E=(B,U)=>[B,U];break;case"topMiddle":b=(B,U)=>[B/2,0],E=(B,U)=>[B/2,U];break;case"topRight":S=!0,b=(B,U)=>[B,0],E=(B,U)=>[0,U];break;case"middleRight":_=!0,b=(B,U)=>[B,U/2],E=(B,U)=>[0,U/2];break;case"bottomRight":S=!0,b=(B,U)=>[B,U],E=(B,U)=>[0,0];break;case"bottomMiddle":b=(B,U)=>[B/2,U],E=(B,U)=>[B/2,0];break;case"bottomLeft":S=!0,b=(B,U)=>[0,U],E=(B,U)=>[B,0];break;case"middleLeft":_=!0,b=(B,U)=>[0,U/2],E=(B,U)=>[B,U/2];break}const w=b(l,u),A=E(l,u);let k=g(...A);const R=Ne._round(a+k[0]),I=Ne._round(o+k[1]);let O=1,L=1,F,j;if(n.fromKeyboard)({deltaX:F,deltaY:j}=n);else{const{screenX:B,screenY:U}=n,[M,q]=this.#d;[F,j]=this.screenToPageTranslation(B-M,U-q),this.#d[0]=B,this.#d[1]=U}if([F,j]=v(F/r,j/i),S){const B=Math.hypot(l,u);O=L=Math.max(Math.min(Math.hypot(A[0]-w[0]-F,A[1]-w[1]-j)/B,1/l,1/u),d/l,p/u)}else _?O=rn(Math.abs(A[0]-w[0]-F),d,1)/l:L=rn(Math.abs(A[1]-w[1]-j),p,1)/u;const H=Ne._round(l*O),G=Ne._round(u*L);k=g(...E(H,G));const D=R-k[0],z=I-k[1];this.#o||=[this.x,this.y,this.width,this.height],this.width=H,this.height=G,this.x=D,this.y=z,this.setDims(r*H,i*G),this.fixAndSetPosition(),this._onResizing()}_onResizing(){}altTextFinish(){this.#n?.finish()}async addEditToolbar(){return this._editToolbar||this.#m?this._editToolbar:(this._editToolbar=new ml(this),this.div.append(this._editToolbar.render()),this.#n&&await this._editToolbar.addAltText(this.#n),this._editToolbar)}removeEditToolbar(){this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,this.#n?.destroy())}addContainer(e){const n=this._editToolbar?.div;n?n.before(e):this.div.append(e)}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){this.#n||(kr.initialize(Ne._l10n),this.#n=new kr(this),this.#e&&(this.#n.data=this.#e,this.#e=null),await this.addEditToolbar())}get altTextData(){return this.#n?.data}set altTextData(e){this.#n&&(this.#n.data=e)}get guessedAltText(){return this.#n?.guessedText}async setGuessedAltText(e){await this.#n?.setGuessedText(e)}serializeAltText(e){return this.#n?.serialize(e)}hasAltText(){return!!this.#n&&!this.#n.isEmpty()}hasAltTextData(){return this.#n?.hasData()??!1}render(){const e=this.div=document.createElement("div");e.setAttribute("data-editor-rotation",(360-this.rotation)%360),e.className=this.name,e.setAttribute("id",this.id),e.tabIndex=this.#r?-1:0,e.setAttribute("role","application"),this.defaultL10nId&&e.setAttribute("data-l10n-id",this.defaultL10nId),this._isVisible||e.classList.add("hidden"),this.setInForeground(),this.#G();const[n,r]=this.parentDimensions;this.parentRotation%180!==0&&(e.style.maxWidth=`${(100*r/n).toFixed(2)}%`,e.style.maxHeight=`${(100*n/r).toFixed(2)}%`);const[i,a]=this.getInitialTranslation();return this.translate(i,a),QP(this,e,["keydown","pointerdown","dblclick"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(this.#x||=new ec({container:e,isPinchingDisabled:()=>!this.isSelected,onPinchStart:this.#A.bind(this),onPinching:this.#E.bind(this),onPinchEnd:this.#F.bind(this),signal:this._uiManager._signal})),this._uiManager._editorUndoBar?.hide(),e}#A(){this.#c={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height},this.#n?.toggle(!1),this.parent.togglePointerEvents(!1)}#E(e,n,r){let a=.7*(r/n)+1-.7;if(a===1)return;const o=this.#R(this.rotation),l=(R,I)=>[o[0]*R+o[2]*I,o[1]*R+o[3]*I],[u,d]=this.parentDimensions,p=this.x,f=this.y,g=this.width,m=this.height,v=Ne.MIN_SIZE/u,b=Ne.MIN_SIZE/d;a=Math.max(Math.min(a,1/g,1/m),v/g,b/m);const E=Ne._round(g*a),S=Ne._round(m*a);if(E===g&&S===m)return;this.#o||=[p,f,g,m];const _=l(g/2,m/2),w=Ne._round(p+_[0]),A=Ne._round(f+_[1]),k=l(E/2,S/2);this.x=w-k[0],this.y=A-k[1],this.width=E,this.height=S,this.setDims(u*E,d*S),this.fixAndSetPosition(),this._onResizing()}#F(){this.#n?.toggle(!0),this.parent.togglePointerEvents(!0),this.#L()}pointerdown(e){const{isMac:n}=qt.platform;if(e.button!==0||e.ctrlKey&&n){e.preventDefault();return}if(this.#f=!0,this._isDraggable){this.#H(e);return}this.#B(e)}#B(e){const{isMac:n}=qt.platform;e.ctrlKey&&!n||e.shiftKey||e.metaKey&&n?this.parent.toggleSelected(this):this.parent.setSelected(this)}#H(e){const{isSelected:n}=this;this._uiManager.setUpDragSession();let r=!1;const i=new AbortController,a=this._uiManager.combinedSignal(i),o={capture:!0,passive:!1,signal:a},l=d=>{i.abort(),this.#a=null,this.#f=!1,this._uiManager.endDragSession()||this.#B(d),r&&this._onStopDragging()};n&&(this.#y=e.clientX,this.#v=e.clientY,this.#a=e.pointerId,this.#i=e.pointerType,window.addEventListener("pointermove",d=>{r||(r=!0,this._onStartDragging());const{clientX:p,clientY:f,pointerId:g}=d;if(g!==this.#a){Ct(d);return}const[m,v]=this.screenToPageTranslation(p-this.#y,f-this.#v);this.#y=p,this.#v=f,this._uiManager.dragSelectedEditors(m,v)},o),window.addEventListener("touchmove",Ct,o),window.addEventListener("pointerdown",d=>{d.pointerType===this.#i&&(this.#x||d.isPrimary)&&l(d),Ct(d)},o));const u=d=>{if(!this.#a||this.#a===d.pointerId){l(d);return}Ct(d)};window.addEventListener("pointerup",u,{signal:a}),window.addEventListener("blur",u,{signal:a})}_onStartDragging(){}_onStopDragging(){}moveInDOM(){this.#b&&clearTimeout(this.#b),this.#b=setTimeout(()=>{this.#b=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(e,n,r){e.changeParent(this),this.x=n,this.y=r,this.fixAndSetPosition(),this._onTranslated()}getRect(e,n,r=this.rotation){const i=this.parentScale,[a,o]=this.pageDimensions,[l,u]=this.pageTranslation,d=e/i,p=n/i,f=this.x*a,g=this.y*o,m=this.width*a,v=this.height*o;switch(r){case 0:return[f+d+l,o-g-p-v+u,f+d+m+l,o-g-p+u];case 90:return[f+p+l,o-g+d+u,f+p+v+l,o-g+d+m+u];case 180:return[f-d-m+l,o-g+p+u,f-d+l,o-g+p+v+u];case 270:return[f-p-v+l,o-g-d-m+u,f-p+l,o-g-d+u];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,n){const[r,i,a,o]=e,l=a-r,u=o-i;switch(this.rotation){case 0:return[r,n-o,l,u];case 90:return[r,n-i,u,l];case 180:return[a,n-i,l,u];case 270:return[a,n-o,u,l];default:throw new Error("Invalid rotation")}}onceAdded(e){}isEmpty(){return!1}enableEditMode(){return this.isInEditMode()?!1:(this.parent.setEditingState(!1),this.#m=!0,!0)}disableEditMode(){return this.isInEditMode()?(this.parent.setEditingState(!0),this.#m=!1,!0):!1}isInEditMode(){return this.#m}shouldGetKeyboardEvents(){return this.#g}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){const{top:e,left:n,bottom:r,right:i}=this.getClientDimensions(),{innerHeight:a,innerWidth:o}=window;return n<o&&i>0&&e<a&&r>0}#G(){if(this.#p||!this.div)return;this.#p=new AbortController;const e=this._uiManager.combinedSignal(this.#p);this.div.addEventListener("focusin",this.focusin.bind(this),{signal:e}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:e})}rebuild(){this.#G()}rotate(e){}resize(){}serializeDeleted(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:this._initialData?.popupRef||""}}serialize(e=!1,n=null){et("An editor must be serializable")}static async deserialize(e,n,r){const i=new this.prototype.constructor({parent:n,id:n.getNextId(),uiManager:r});i.rotation=e.rotation,i.#e=e.accessibilityData,i._isCopy=e.isCopy||!1;const[a,o]=i.pageDimensions,[l,u,d,p]=i.getRectInCurrentCoords(e.rect,o);return i.x=l/a,i.y=u/o,i.width=d/a,i.height=p/o,i}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.#p?.abort(),this.#p=null,this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#b&&(clearTimeout(this.#b),this.#b=null),this.#j(),this.removeEditToolbar(),this.#w){for(const e of this.#w.values())clearTimeout(e);this.#w=null}this.parent=null,this.#x?.destroy(),this.#x=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#T(),this.#s.classList.remove("hidden"))}get toolbarPosition(){return null}keydown(e){if(!this.isResizable||e.target!==this.div||e.key!=="Enter")return;this._uiManager.setSelected(this),this.#c={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const n=this.#s.children;if(!this.#t){this.#t=Array.from(n);const o=this.#q.bind(this),l=this.#z.bind(this),u=this._uiManager._signal;for(const d of this.#t){const p=d.getAttribute("data-resizer-name");d.setAttribute("role","spinbutton"),d.addEventListener("keydown",o,{signal:u}),d.addEventListener("blur",l,{signal:u}),d.addEventListener("focus",this.#D.bind(this,p),{signal:u}),d.setAttribute("data-l10n-id",Ne._l10nResizer[p])}}const r=this.#t[0];let i=0;for(const o of n){if(o===r)break;i++}const a=(360-this.rotation+this.parentRotation)%360/90*(this.#t.length/4);if(a!==i){if(a<i)for(let l=0;l<i-a;l++)this.#s.append(this.#s.firstChild);else if(a>i)for(let l=0;l<a-i;l++)this.#s.firstChild.before(this.#s.lastChild);let o=0;for(const l of n){const d=this.#t[o++].getAttribute("data-resizer-name");l.setAttribute("data-l10n-id",Ne._l10nResizer[d])}}this.#M(0),this.#g=!0,this.#s.firstChild.focus({focusVisible:!0}),e.preventDefault(),e.stopImmediatePropagation()}#q(e){Ne._resizerKeyboardManager.exec(this,e)}#z(e){this.#g&&e.relatedTarget?.parentNode!==this.#s&&this.#j()}#D(e){this.#u=this.#g?e:""}#M(e){if(this.#t)for(const n of this.#t)n.tabIndex=e}_resizeWithKeyboard(e,n){this.#g&&this.#$(this.#u,{deltaX:e,deltaY:n,fromKeyboard:!0})}#j(){this.#g=!1,this.#M(-1),this.#L()}_stopResizingWithKeyboard(){this.#j(),this.div.focus()}select(){if(!(this.isSelected&&this._editToolbar)){if(this.isSelected=!0,this.makeResizable(),this.div?.classList.add("selectedEditor"),!this._editToolbar){this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this._editToolbar?.show()});return}this._editToolbar?.show(),this.#n?.toggleAltTextBadge(!1)}}unselect(){this.isSelected&&(this.isSelected=!1,this.#s?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this._editToolbar?.hide(),this.#n?.toggleAltTextBadge(!0))}updateParams(e,n){}disableEditing(){}enableEditing(){}get canChangeContent(){return!1}enterInEditMode(){this.canChangeContent&&(this.enableEditMode(),this.div.focus())}dblclick(e){this.enterInEditMode(),this.parent.updateToolbar({mode:this.constructor._editorType,editId:this.id})}getElementForAltText(){return this.div}get contentDiv(){return this.div}get isEditing(){return this.#h}set isEditing(e){this.#h=e,this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(e,n){this.#l=!0;const r=e/n,{style:i}=this.div;i.aspectRatio=r,i.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(e,n=!1){if(n){this.#w||=new Map;const{action:r}=e;let i=this.#w.get(r);i&&clearTimeout(i),i=setTimeout(()=>{this._reportTelemetry(e),this.#w.delete(r),this.#w.size===0&&(this.#w=null)},Ne._telemetryTimeout),this.#w.set(r,i);return}e.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}show(e=this._isVisible){this.div.classList.toggle("hidden",!e),this._isVisible=e}enable(){this.div&&(this.div.tabIndex=0),this.#r=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#r=!0}renderAnnotationElement(e){let n=e.container.querySelector(".annotationContent");if(!n)n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),e.container.prepend(n);else if(n.nodeName==="CANVAS"){const r=n;n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),r.before(n)}return n}resetAnnotationElement(e){const{firstChild:n}=e.container;n?.nodeName==="DIV"&&n.classList.contains("annotationContent")&&n.remove()}}class ste extends Ne{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}const y1=3285377520,Vn=4294901760,Cr=65535;class JP{constructor(e){this.h1=e?e&4294967295:y1,this.h2=e?e&4294967295:y1}update(e){let n,r;if(typeof e=="string"){n=new Uint8Array(e.length*2),r=0;for(let b=0,E=e.length;b<E;b++){const S=e.charCodeAt(b);S<=255?n[r++]=S:(n[r++]=S>>>8,n[r++]=S&255)}}else if(ArrayBuffer.isView(e))n=e.slice(),r=n.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const i=r>>2,a=r-i*4,o=new Uint32Array(n.buffer,0,i);let l=0,u=0,d=this.h1,p=this.h2;const f=3432918353,g=461845907,m=f&Cr,v=g&Cr;for(let b=0;b<i;b++)b&1?(l=o[b],l=l*f&Vn|l*m&Cr,l=l<<15|l>>>17,l=l*g&Vn|l*v&Cr,d^=l,d=d<<13|d>>>19,d=d*5+3864292196):(u=o[b],u=u*f&Vn|u*m&Cr,u=u<<15|u>>>17,u=u*g&Vn|u*v&Cr,p^=u,p=p<<13|p>>>19,p=p*5+3864292196);switch(l=0,a){case 3:l^=n[i*4+2]<<16;case 2:l^=n[i*4+1]<<8;case 1:l^=n[i*4],l=l*f&Vn|l*m&Cr,l=l<<15|l>>>17,l=l*g&Vn|l*v&Cr,i&1?d^=l:p^=l}this.h1=d,this.h2=p}hexdigest(){let e=this.h1,n=this.h2;return e^=n>>>1,e=e*3981806797&Vn|e*36045&Cr,n=n*4283543511&Vn|((n<<16|e>>>16)*2950163797&Vn)>>>16,e^=n>>>1,e=e*444984403&Vn|e*60499&Cr,n=n*3301882366&Vn|((n<<16|e>>>16)*3120437893&Vn)>>>16,e^=n>>>1,(e>>>0).toString(16).padStart(8,"0")+(n>>>0).toString(16).padStart(8,"0")}}const bw=Object.freeze({map:null,hash:"",transfer:void 0});class MS{#e=!1;#t=null;#n=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,n){const r=this.#n.get(e);return r===void 0?n:Object.assign(n,r)}getRawValue(e){return this.#n.get(e)}remove(e){if(this.#n.delete(e),this.#n.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const n of this.#n.values())if(n instanceof Ne)return;this.onAnnotationEditor(null)}}setValue(e,n){const r=this.#n.get(e);let i=!1;if(r!==void 0)for(const[a,o]of Object.entries(n))r[a]!==o&&(i=!0,r[a]=o);else i=!0,this.#n.set(e,n);i&&this.#r(),n instanceof Ne&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(n.constructor._type)}has(e){return this.#n.has(e)}get size(){return this.#n.size}#r(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new eF(this)}get serializable(){if(this.#n.size===0)return bw;const e=new Map,n=new JP,r=[],i=Object.create(null);let a=!1;for(const[o,l]of this.#n){const u=l instanceof Ne?l.serialize(!1,i):l;u&&(e.set(o,u),n.update(`${o}:${JSON.stringify(u)}`),a||=!!u.bitmap)}if(a)for(const o of e.values())o.bitmap&&r.push(o.bitmap);return e.size>0?{map:e,hash:n.hexdigest(),transfer:r}:bw}get editorStats(){let e=null;const n=new Map;for(const r of this.#n.values()){if(!(r instanceof Ne))continue;const i=r.telemetryFinalData;if(!i)continue;const{type:a}=i;n.has(a)||n.set(a,Object.getPrototypeOf(r).constructor),e||=Object.create(null);const o=e[a]||=new Map;for(const[l,u]of Object.entries(i)){if(l==="type")continue;let d=o.get(l);d||(d=new Map,o.set(l,d));const p=d.get(u)??0;d.set(u,p+1)}}for(const[r,i]of n)e[r]=i.computeTelemetryFinalData(e[r]);return e}resetModifiedIds(){this.#t=null}get modifiedIds(){if(this.#t)return this.#t;const e=[];for(const n of this.#n.values())!(n instanceof Ne)||!n.annotationElementId||!n.serialize()||e.push(n.annotationElementId);return this.#t={ids:new Set(e),hash:e.join(",")}}[Symbol.iterator](){return this.#n.entries()}}class eF extends MS{#e;constructor(e){super();const{map:n,hash:r,transfer:i}=e.serializable,a=structuredClone(n,i?{transfer:i}:null);this.#e={map:a,hash:r,transfer:i}}get print(){et("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}get modifiedIds(){return ze(this,"modifiedIds",{ids:new Set,hash:""})}}class lte{#e=new Set;constructor({ownerDocument:e=globalThis.document,styleElement:n=null}){this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const n=this.styleElement.sheet;n.insertRule(e,n.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:e,disableFontFace:n,_inspectFont:r}){if(!(!e||this.#e.has(e.loadedName))){if(Lt(!n,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:i,src:a,style:o}=e,l=new FontFace(i,a,o);this.addNativeFontFace(l);try{await l.load(),this.#e.add(i),r?.(e)}catch{Pe(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(l)}return}et("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo){await this.loadSystemFont(e);return}if(this.isFontLoadingAPISupported){const r=e.createNativeFontFace();if(r){this.addNativeFontFace(r);try{await r.loaded}catch(i){throw Pe(`Failed to load font '${r.family}': '${i}'.`),e.disableFontFace=!0,i}}return}const n=e.createFontFaceRule();if(n){if(this.insertRule(n),this.isSyncFontLoadingSupported)return;await new Promise(r=>{const i=this._queueLoadingCallback(r);this._prepareFontLoadEvent(e,i)})}}get isFontLoadingAPISupported(){const e=!!this._document?.fonts;return ze(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){return ze(this,"isSyncFontLoadingSupported",cn||qt.platform.isFirefox)}_queueLoadingCallback(e){function n(){for(Lt(!i.done,"completeRequest() cannot be called twice."),i.done=!0;r.length>0&&r[0].done;){const a=r.shift();setTimeout(a.callback,0)}}const{loadingRequests:r}=this,i={done:!1,complete:n,callback:e};return r.push(i),i}get _loadTestFont(){const e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return ze(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,n){function r(A,k){return A.charCodeAt(k)<<24|A.charCodeAt(k+1)<<16|A.charCodeAt(k+2)<<8|A.charCodeAt(k+3)&255}function i(A,k,R,I){const O=A.substring(0,k),L=A.substring(k+R);return O+I+L}let a,o;const l=this._document.createElement("canvas");l.width=1,l.height=1;const u=l.getContext("2d");let d=0;function p(A,k){if(++d>30){Pe("Load test font never loaded."),k();return}if(u.font="30px "+A,u.fillText(".",0,20),u.getImageData(0,0,1,1).data[3]>0){k();return}setTimeout(p.bind(null,A,k))}const f=`lt${Date.now()}${this.loadTestFontId++}`;let g=this._loadTestFont;g=i(g,976,f.length,f);const v=16,b=1482184792;let E=r(g,v);for(a=0,o=f.length-3;a<o;a+=4)E=E-b+r(f,a)|0;a<f.length&&(E=E-b+r(f+"XXX",a)|0),g=i(g,v,4,Kee(E));const S=`url(data:font/opentype;base64,${btoa(g)});`,_=`@font-face {font-family:"${f}";src:${S}}`;this.insertRule(_);const w=this._document.createElement("div");w.style.visibility="hidden",w.style.width=w.style.height="10px",w.style.position="absolute",w.style.top=w.style.left="0px";for(const A of[e.loadedName,f]){const k=this._document.createElement("span");k.textContent="Hi",k.style.fontFamily=A,w.append(k)}this._document.body.append(w),p(f,()=>{w.remove(),n.complete()})}}class cte{constructor(e,n=null){this.compiledGlyphs=Object.create(null);for(const r in e)this[r]=e[r];this._inspectFont=n}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(!this.cssFontInfo)e=new FontFace(this.loadedName,this.data,{});else{const n={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(n.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,n)}return this._inspectFont?.(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=`url(data:${this.mimetype};base64,${YP(this.data)});`;let n;if(!this.cssFontInfo)n=`@font-face {font-family:"${this.loadedName}";src:${e}}`;else{let r=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(r+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${r}src:${e}}`}return this._inspectFont?.(this,e),n}getPathGenerator(e,n){if(this.compiledGlyphs[n]!==void 0)return this.compiledGlyphs[n];const r=this.loadedName+"_path_"+n;let i;try{i=e.get(r)}catch(o){Pe(`getPathGenerator - ignoring character: "${o}".`)}const a=new Path2D(i||"");return this.fontExtraProperties||e.delete(r),this.compiledGlyphs[n]=a}}function ute(t){if(t instanceof URL)return t.href;if(typeof t=="string"){if(cn)return t;const e=URL.parse(t,window.location);if(e)return e.href}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function dte(t){if(cn&&typeof Buffer<"u"&&t instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength)return t;if(typeof t=="string")return Kl(t);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)||typeof t=="object"&&!isNaN(t?.length))return new Uint8Array(t);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function Bu(t){if(typeof t!="string")return null;if(t.endsWith("/"))return t;throw new Error(`Invalid factory url: "${t}" must include trailing slash.`)}const yw=t=>typeof t=="object"&&Number.isInteger(t?.num)&&t.num>=0&&Number.isInteger(t?.gen)&&t.gen>=0,pte=t=>typeof t=="object"&&typeof t?.name=="string",tF=ete.bind(null,yw,pte);class fte{#e=new Map;#t=Promise.resolve();postMessage(e,n){const r={data:structuredClone(e,n?{transfer:n}:null)};this.#t.then(()=>{for(const[i]of this.#e)i.call(this,r)})}addEventListener(e,n,r=null){let i=null;if(r?.signal instanceof AbortSignal){const{signal:a}=r;if(a.aborted){Pe("LoopbackPort - cannot use an `aborted` signal.");return}const o=()=>this.removeEventListener(e,n);i=()=>a.removeEventListener("abort",o),a.addEventListener("abort",o)}this.#e.set(n,i)}removeEventListener(e,n){this.#e.get(n)?.(),this.#e.delete(n)}terminate(){for(const[,e]of this.#e)e?.();this.#e.clear()}}const Uu={DATA:1,ERROR:2},Ot={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function v1(){}function vn(t){if(t instanceof si||t instanceof Sd||t instanceof g1||t instanceof Ol||t instanceof RE)return t;switch(t instanceof Error||typeof t=="object"&&t!==null||et('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new si(t.message);case"InvalidPDFException":return new Sd(t.message);case"PasswordException":return new g1(t.message,t.code);case"ResponseException":return new Ol(t.message,t.status,t.missing);case"UnknownErrorException":return new RE(t.message,t.details)}return new RE(t.message,t.toString())}class dl{#e=new AbortController;constructor(e,n,r){this.sourceName=e,this.targetName=n,this.comObj=r,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),r.addEventListener("message",this.#t.bind(this),{signal:this.#e.signal})}#t({data:e}){if(e.targetName!==this.sourceName)return;if(e.stream){this.#r(e);return}if(e.callback){const r=e.callbackId,i=this.callbackCapabilities[r];if(!i)throw new Error(`Cannot resolve callback ${r}`);if(delete this.callbackCapabilities[r],e.callback===Uu.DATA)i.resolve(e.data);else if(e.callback===Uu.ERROR)i.reject(vn(e.reason));else throw new Error("Unexpected callback case");return}const n=this.actionHandler[e.action];if(!n)throw new Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){const r=this.sourceName,i=e.sourceName,a=this.comObj;Promise.try(n,e.data).then(function(o){a.postMessage({sourceName:r,targetName:i,callback:Uu.DATA,callbackId:e.callbackId,data:o})},function(o){a.postMessage({sourceName:r,targetName:i,callback:Uu.ERROR,callbackId:e.callbackId,reason:vn(o)})});return}if(e.streamId){this.#n(e);return}n(e.data)}on(e,n){const r=this.actionHandler;if(r[e])throw new Error(`There is already an actionName called "${e}"`);r[e]=n}send(e,n,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:n},r)}sendWithPromise(e,n,r){const i=this.callbackId++,a=Promise.withResolvers();this.callbackCapabilities[i]=a;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:n},r)}catch(o){a.reject(o)}return a.promise}sendWithStream(e,n,r,i){const a=this.streamId++,o=this.sourceName,l=this.targetName,u=this.comObj;return new ReadableStream({start:d=>{const p=Promise.withResolvers();return this.streamControllers[a]={controller:d,startCall:p,pullCall:null,cancelCall:null,isClosed:!1},u.postMessage({sourceName:o,targetName:l,action:e,streamId:a,data:n,desiredSize:d.desiredSize},i),p.promise},pull:d=>{const p=Promise.withResolvers();return this.streamControllers[a].pullCall=p,u.postMessage({sourceName:o,targetName:l,stream:Ot.PULL,streamId:a,desiredSize:d.desiredSize}),p.promise},cancel:d=>{Lt(d instanceof Error,"cancel must have a valid reason");const p=Promise.withResolvers();return this.streamControllers[a].cancelCall=p,this.streamControllers[a].isClosed=!0,u.postMessage({sourceName:o,targetName:l,stream:Ot.CANCEL,streamId:a,reason:vn(d)}),p.promise}},r)}#n(e){const n=e.streamId,r=this.sourceName,i=e.sourceName,a=this.comObj,o=this,l=this.actionHandler[e.action],u={enqueue(d,p=1,f){if(this.isCancelled)return;const g=this.desiredSize;this.desiredSize-=p,g>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),a.postMessage({sourceName:r,targetName:i,stream:Ot.ENQUEUE,streamId:n,chunk:d},f)},close(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:r,targetName:i,stream:Ot.CLOSE,streamId:n}),delete o.streamSinks[n])},error(d){Lt(d instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,a.postMessage({sourceName:r,targetName:i,stream:Ot.ERROR,streamId:n,reason:vn(d)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[n]=u,Promise.try(l,e.data,u).then(function(){a.postMessage({sourceName:r,targetName:i,stream:Ot.START_COMPLETE,streamId:n,success:!0})},function(d){a.postMessage({sourceName:r,targetName:i,stream:Ot.START_COMPLETE,streamId:n,reason:vn(d)})})}#r(e){const n=e.streamId,r=this.sourceName,i=e.sourceName,a=this.comObj,o=this.streamControllers[n],l=this.streamSinks[n];switch(e.stream){case Ot.START_COMPLETE:e.success?o.startCall.resolve():o.startCall.reject(vn(e.reason));break;case Ot.PULL_COMPLETE:e.success?o.pullCall.resolve():o.pullCall.reject(vn(e.reason));break;case Ot.PULL:if(!l){a.postMessage({sourceName:r,targetName:i,stream:Ot.PULL_COMPLETE,streamId:n,success:!0});break}l.desiredSize<=0&&e.desiredSize>0&&l.sinkCapability.resolve(),l.desiredSize=e.desiredSize,Promise.try(l.onPull||v1).then(function(){a.postMessage({sourceName:r,targetName:i,stream:Ot.PULL_COMPLETE,streamId:n,success:!0})},function(d){a.postMessage({sourceName:r,targetName:i,stream:Ot.PULL_COMPLETE,streamId:n,reason:vn(d)})});break;case Ot.ENQUEUE:if(Lt(o,"enqueue should have stream controller"),o.isClosed)break;o.controller.enqueue(e.chunk);break;case Ot.CLOSE:if(Lt(o,"close should have stream controller"),o.isClosed)break;o.isClosed=!0,o.controller.close(),this.#a(o,n);break;case Ot.ERROR:Lt(o,"error should have stream controller"),o.controller.error(vn(e.reason)),this.#a(o,n);break;case Ot.CANCEL_COMPLETE:e.success?o.cancelCall.resolve():o.cancelCall.reject(vn(e.reason)),this.#a(o,n);break;case Ot.CANCEL:if(!l)break;const u=vn(e.reason);Promise.try(l.onCancel||v1,u).then(function(){a.postMessage({sourceName:r,targetName:i,stream:Ot.CANCEL_COMPLETE,streamId:n,success:!0})},function(d){a.postMessage({sourceName:r,targetName:i,stream:Ot.CANCEL_COMPLETE,streamId:n,reason:vn(d)})}),l.sinkCapability.reject(u),l.isCancelled=!0,delete this.streamSinks[n];break;default:throw new Error("Unexpected stream case")}}async#a(e,n){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[n]}destroy(){this.#e?.abort(),this.#e=null}}class nF{#e=!1;constructor({enableHWA:e=!1}){this.#e=e}create(e,n){if(e<=0||n<=0)throw new Error("Invalid canvas size");const r=this._createCanvas(e,n);return{canvas:r,context:r.getContext("2d",{willReadFrequently:!this.#e})}}reset(e,n,r){if(!e.canvas)throw new Error("Canvas is not specified");if(n<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=n,e.canvas.height=r}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,n){et("Abstract method `_createCanvas` called.")}}class hte extends nF{constructor({ownerDocument:e=globalThis.document,enableHWA:n=!1}){super({enableHWA:n}),this._document=e}_createCanvas(e,n){const r=this._document.createElement("canvas");return r.width=e,r.height=n,r}}class rF{constructor({baseUrl:e=null,isCompressed:n=!0}){this.baseUrl=e,this.isCompressed=n}async fetch({name:e}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!e)throw new Error("CMap name must be specified.");const n=this.baseUrl+e+(this.isCompressed?".bcmap":"");return this._fetch(n).then(r=>({cMapData:r,isCompressed:this.isCompressed})).catch(r=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${n}`)})}async _fetch(e){et("Abstract method `_fetch` called.")}}class E1 extends rF{async _fetch(e){const n=await ps(e,this.isCompressed?"arraybuffer":"text");return n instanceof ArrayBuffer?new Uint8Array(n):Kl(n)}}class iF{addFilter(e){return"none"}addHCMFilter(e,n){return"none"}addAlphaFilter(e){return"none"}addLuminosityFilter(e){return"none"}addHighlightHCMFilter(e,n,r,i,a){return"none"}destroy(e=!1){}}class gte extends iF{#e;#t;#n;#r;#a;#i;#l=0;constructor({docId:e,ownerDocument:n=globalThis.document}){super(),this.#r=e,this.#a=n}get#s(){return this.#t||=new Map}get#d(){return this.#i||=new Map}get#c(){if(!this.#n){const e=this.#a.createElement("div"),{style:n}=e;n.visibility="hidden",n.contain="strict",n.width=n.height=0,n.position="absolute",n.top=n.left=0,n.zIndex=-1;const r=this.#a.createElementNS(Jr,"svg");r.setAttribute("width",0),r.setAttribute("height",0),this.#n=this.#a.createElementNS(Jr,"defs"),e.append(r),r.append(this.#n),this.#a.body.append(e)}return this.#n}#p(e){if(e.length===1){const u=e[0],d=new Array(256);for(let f=0;f<256;f++)d[f]=u[f]/255;const p=d.join(",");return[p,p,p]}const[n,r,i]=e,a=new Array(256),o=new Array(256),l=new Array(256);for(let u=0;u<256;u++)a[u]=n[u]/255,o[u]=r[u]/255,l[u]=i[u]/255;return[a.join(","),o.join(","),l.join(",")]}#u(e){if(this.#e===void 0){this.#e="";const n=this.#a.URL;n!==this.#a.baseURI&&(Ql(n)?Pe('#createUrl: ignore "data:"-URL for performance reasons.'):this.#e=RS(n,""))}return`url(${this.#e}#${e})`}addFilter(e){if(!e)return"none";let n=this.#s.get(e);if(n)return n;const[r,i,a]=this.#p(e),o=e.length===1?r:`${r}${i}${a}`;if(n=this.#s.get(o),n)return this.#s.set(e,n),n;const l=`g_${this.#r}_transfer_map_${this.#l++}`,u=this.#u(l);this.#s.set(e,u),this.#s.set(o,u);const d=this.#h(l);return this.#g(r,i,a,d),u}addHCMFilter(e,n){const r=`${e}-${n}`,i="base";let a=this.#d.get(i);if(a?.key===r||(a?(a.filter?.remove(),a.key=r,a.url="none",a.filter=null):(a={key:r,url:"none",filter:null},this.#d.set(i,a)),!e||!n))return a.url;const o=this.#y(e);e=Ce.makeHexColor(...o);const l=this.#y(n);if(n=Ce.makeHexColor(...l),this.#c.style.color="",e==="#000000"&&n==="#ffffff"||e===n)return a.url;const u=new Array(256);for(let m=0;m<=255;m++){const v=m/255;u[m]=v<=.03928?v/12.92:((v+.055)/1.055)**2.4}const d=u.join(","),p=`g_${this.#r}_hcm_filter`,f=a.filter=this.#h(p);this.#g(d,d,d,f),this.#o(f);const g=(m,v)=>{const b=o[m]/255,E=l[m]/255,S=new Array(v+1);for(let _=0;_<=v;_++)S[_]=b+_/v*(E-b);return S.join(",")};return this.#g(g(0,5),g(1,5),g(2,5),f),a.url=this.#u(p),a.url}addAlphaFilter(e){let n=this.#s.get(e);if(n)return n;const[r]=this.#p([e]),i=`alpha_${r}`;if(n=this.#s.get(i),n)return this.#s.set(e,n),n;const a=`g_${this.#r}_alpha_map_${this.#l++}`,o=this.#u(a);this.#s.set(e,o),this.#s.set(i,o);const l=this.#h(a);return this.#b(r,l),o}addLuminosityFilter(e){let n=this.#s.get(e||"luminosity");if(n)return n;let r,i;if(e?([r]=this.#p([e]),i=`luminosity_${r}`):i="luminosity",n=this.#s.get(i),n)return this.#s.set(e,n),n;const a=`g_${this.#r}_luminosity_map_${this.#l++}`,o=this.#u(a);this.#s.set(e,o),this.#s.set(i,o);const l=this.#h(a);return this.#f(l),e&&this.#b(r,l),o}addHighlightHCMFilter(e,n,r,i,a){const o=`${n}-${r}-${i}-${a}`;let l=this.#d.get(e);if(l?.key===o||(l?(l.filter?.remove(),l.key=o,l.url="none",l.filter=null):(l={key:o,url:"none",filter:null},this.#d.set(e,l)),!n||!r))return l.url;const[u,d]=[n,r].map(this.#y.bind(this));let p=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),f=Math.round(.2126*d[0]+.7152*d[1]+.0722*d[2]),[g,m]=[i,a].map(this.#y.bind(this));f<p&&([p,f,g,m]=[f,p,m,g]),this.#c.style.color="";const v=(S,_,w)=>{const A=new Array(256),k=(f-p)/w,R=S/255,I=(_-S)/(255*w);let O=0;for(let L=0;L<=w;L++){const F=Math.round(p+L*k),j=R+L*I;for(let H=O;H<=F;H++)A[H]=j;O=F+1}for(let L=O;L<256;L++)A[L]=A[O-1];return A.join(",")},b=`g_${this.#r}_hcm_${e}_filter`,E=l.filter=this.#h(b);return this.#o(E),this.#g(v(g[0],m[0],5),v(g[1],m[1],5),v(g[2],m[2],5),E),l.url=this.#u(b),l.url}destroy(e=!1){e&&this.#i?.size||(this.#n?.parentNode.parentNode.remove(),this.#n=null,this.#t?.clear(),this.#t=null,this.#i?.clear(),this.#i=null,this.#l=0)}#f(e){const n=this.#a.createElementNS(Jr,"feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),e.append(n)}#o(e){const n=this.#a.createElementNS(Jr,"feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(n)}#h(e){const n=this.#a.createElementNS(Jr,"filter");return n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("id",e),this.#c.append(n),n}#m(e,n,r){const i=this.#a.createElementNS(Jr,n);i.setAttribute("type","discrete"),i.setAttribute("tableValues",r),e.append(i)}#g(e,n,r,i){const a=this.#a.createElementNS(Jr,"feComponentTransfer");i.append(a),this.#m(a,"feFuncR",e),this.#m(a,"feFuncG",n),this.#m(a,"feFuncB",r)}#b(e,n){const r=this.#a.createElementNS(Jr,"feComponentTransfer");n.append(r),this.#m(r,"feFuncA",e)}#y(e){return this.#c.style.color=e,OS(getComputedStyle(this.#c).getPropertyValue("color"))}}class aF{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!e)throw new Error("Font filename must be specified.");const n=`${this.baseUrl}${e}`;return this._fetch(n).catch(r=>{throw new Error(`Unable to load font data at: ${n}`)})}async _fetch(e){et("Abstract method `_fetch` called.")}}class w1 extends aF{async _fetch(e){const n=await ps(e,"arraybuffer");return new Uint8Array(n)}}class oF{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `wasmUrl` API parameter is provided.");if(!e)throw new Error("Wasm filename must be specified.");const n=`${this.baseUrl}${e}`;return this._fetch(n).catch(r=>{throw new Error(`Unable to load wasm data at: ${n}`)})}async _fetch(e){et("Abstract method `_fetch` called.")}}class S1 extends oF{async _fetch(e){const n=await ps(e,"arraybuffer");return new Uint8Array(n)}}cn&&Pe("Please use the `legacy` build in Node.js environments.");async function PS(t){const n=await process.getBuiltinModule("fs").promises.readFile(t);return new Uint8Array(n)}class mte extends iF{}class bte extends nF{_createCanvas(e,n){return process.getBuiltinModule("module").createRequire(import.meta.url)("@napi-rs/canvas").createCanvas(e,n)}}class yte extends rF{async _fetch(e){return PS(e)}}class vte extends aF{async _fetch(e){return PS(e)}}class Ete extends oF{async _fetch(e){return PS(e)}}const Yt={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function vw(t,e){if(!e)return;const n=e[2]-e[0],r=e[3]-e[1],i=new Path2D;i.rect(e[0],e[1],n,r),t.clip(i)}class FS{isModifyingCurrentTransform(){return!1}getPattern(){et("Abstract method `getPattern` called.")}}class wte extends FS{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let n;this._type==="axial"?n=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(n=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const r of this._colorStops)n.addColorStop(r[0],r[1]);return n}getPattern(e,n,r,i){let a;if(i===Yt.STROKE||i===Yt.FILL){const o=n.current.getClippedPathBoundingBox(i,yt(e))||[0,0,0,0],l=Math.ceil(o[2]-o[0])||1,u=Math.ceil(o[3]-o[1])||1,d=n.cachedCanvases.getCanvas("pattern",l,u),p=d.context;p.clearRect(0,0,p.canvas.width,p.canvas.height),p.beginPath(),p.rect(0,0,p.canvas.width,p.canvas.height),p.translate(-o[0],-o[1]),r=Ce.transform(r,[1,0,0,1,o[0],o[1]]),p.transform(...n.baseTransform),this.matrix&&p.transform(...this.matrix),vw(p,this._bbox),p.fillStyle=this._createGradient(p),p.fill(),a=e.createPattern(d.canvas,"no-repeat");const f=new DOMMatrix(r);a.setTransform(f)}else vw(e,this._bbox),a=this._createGradient(e);return a}}function IE(t,e,n,r,i,a,o,l){const u=e.coords,d=e.colors,p=t.data,f=t.width*4;let g;u[n+1]>u[r+1]&&(g=n,n=r,r=g,g=a,a=o,o=g),u[r+1]>u[i+1]&&(g=r,r=i,i=g,g=o,o=l,l=g),u[n+1]>u[r+1]&&(g=n,n=r,r=g,g=a,a=o,o=g);const m=(u[n]+e.offsetX)*e.scaleX,v=(u[n+1]+e.offsetY)*e.scaleY,b=(u[r]+e.offsetX)*e.scaleX,E=(u[r+1]+e.offsetY)*e.scaleY,S=(u[i]+e.offsetX)*e.scaleX,_=(u[i+1]+e.offsetY)*e.scaleY;if(v>=_)return;const w=d[a],A=d[a+1],k=d[a+2],R=d[o],I=d[o+1],O=d[o+2],L=d[l],F=d[l+1],j=d[l+2],H=Math.round(v),G=Math.round(_);let D,z,B,U,M,q,Y,$;for(let V=H;V<=G;V++){if(V<E){const W=V<v?0:(v-V)/(v-E);D=m-(m-b)*W,z=w-(w-R)*W,B=A-(A-I)*W,U=k-(k-O)*W}else{let W;V>_?W=1:E===_?W=0:W=(E-V)/(E-_),D=b-(b-S)*W,z=R-(R-L)*W,B=I-(I-F)*W,U=O-(O-j)*W}let X;V<v?X=0:V>_?X=1:X=(v-V)/(v-_),M=m-(m-S)*X,q=w-(w-L)*X,Y=A-(A-F)*X,$=k-(k-j)*X;const Q=Math.round(Math.min(D,M)),te=Math.round(Math.max(D,M));let ie=f*V+Q*4;for(let W=Q;W<=te;W++)X=(D-W)/(D-M),X<0?X=0:X>1&&(X=1),p[ie++]=z-(z-q)*X|0,p[ie++]=B-(B-Y)*X|0,p[ie++]=U-(U-$)*X|0,p[ie++]=255}}function Ste(t,e,n){const r=e.coords,i=e.colors;let a,o;switch(e.type){case"lattice":const l=e.verticesPerRow,u=Math.floor(r.length/l)-1,d=l-1;for(a=0;a<u;a++){let p=a*l;for(let f=0;f<d;f++,p++)IE(t,n,r[p],r[p+1],r[p+l],i[p],i[p+1],i[p+l]),IE(t,n,r[p+l+1],r[p+1],r[p+l],i[p+l+1],i[p+1],i[p+l])}break;case"triangles":for(a=0,o=r.length;a<o;a+=3)IE(t,n,r[a],r[a+1],r[a+2],i[a],i[a+1],i[a+2]);break;default:throw new Error("illegal figure")}}class xte extends FS{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[6],this._background=e[7],this.matrix=null}_createMeshCanvas(e,n,r){const l=Math.floor(this._bounds[0]),u=Math.floor(this._bounds[1]),d=Math.ceil(this._bounds[2])-l,p=Math.ceil(this._bounds[3])-u,f=Math.min(Math.ceil(Math.abs(d*e[0]*1.1)),3e3),g=Math.min(Math.ceil(Math.abs(p*e[1]*1.1)),3e3),m=d/f,v=p/g,b={coords:this._coords,colors:this._colors,offsetX:-l,offsetY:-u,scaleX:1/m,scaleY:1/v},E=f+2*2,S=g+2*2,_=r.getCanvas("mesh",E,S),w=_.context,A=w.createImageData(f,g);if(n){const R=A.data;for(let I=0,O=R.length;I<O;I+=4)R[I]=n[0],R[I+1]=n[1],R[I+2]=n[2],R[I+3]=255}for(const R of this._figures)Ste(A,R,b);return w.putImageData(A,2,2),{canvas:_.canvas,offsetX:l-2*m,offsetY:u-2*v,scaleX:m,scaleY:v}}isModifyingCurrentTransform(){return!0}getPattern(e,n,r,i){vw(e,this._bbox);const a=new Float32Array(2);if(i===Yt.SHADING)Ce.singularValueDecompose2dScale(yt(e),a);else if(this.matrix){Ce.singularValueDecompose2dScale(this.matrix,a);const[l,u]=a;Ce.singularValueDecompose2dScale(n.baseTransform,a),a[0]*=l,a[1]*=u}else Ce.singularValueDecompose2dScale(n.baseTransform,a);const o=this._createMeshCanvas(a,i===Yt.SHADING?null:this._background,n.cachedCanvases);return i!==Yt.SHADING&&(e.setTransform(...n.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(o.offsetX,o.offsetY),e.scale(o.scaleX,o.scaleY),e.createPattern(o.canvas,"no-repeat")}}class Ate extends FS{getPattern(){return"hotpink"}}function _te(t){switch(t[0]){case"RadialAxial":return new wte(t);case"Mesh":return new xte(t);case"Dummy":return new Ate}throw new Error(`Unknown IR type: ${t[0]}`)}const x1={COLORED:1,UNCOLORED:2};class BS{static MAX_PATTERN_SIZE=3e3;constructor(e,n,r,i){this.color=e[1],this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.ctx=n,this.canvasGraphicsFactory=r,this.baseTransform=i}createPatternCanvas(e){const{bbox:n,operatorList:r,paintType:i,tilingType:a,color:o,canvasGraphicsFactory:l}=this;let{xstep:u,ystep:d}=this;u=Math.abs(u),d=Math.abs(d),sp("TilingType: "+a);const p=n[0],f=n[1],g=n[2],m=n[3],v=g-p,b=m-f,E=new Float32Array(2);Ce.singularValueDecompose2dScale(this.matrix,E);const[S,_]=E;Ce.singularValueDecompose2dScale(this.baseTransform,E);const w=S*E[0],A=_*E[1];let k=v,R=b,I=!1,O=!1;const L=Math.ceil(u*w),F=Math.ceil(d*A),j=Math.ceil(v*w),H=Math.ceil(b*A);L>=j?k=u:I=!0,F>=H?R=d:O=!0;const G=this.getSizeAndScale(k,this.ctx.canvas.width,w),D=this.getSizeAndScale(R,this.ctx.canvas.height,A),z=e.cachedCanvases.getCanvas("pattern",G.size,D.size),B=z.context,U=l.createCanvasGraphics(B);if(U.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(U,i,o),B.translate(-G.scale*p,-D.scale*f),U.transform(G.scale,0,0,D.scale,0,0),B.save(),this.clipBbox(U,p,f,g,m),U.baseTransform=yt(U.ctx),U.executeOperatorList(r),U.endDrawing(),B.restore(),I||O){const M=z.canvas;I&&(k=u),O&&(R=d);const q=this.getSizeAndScale(k,this.ctx.canvas.width,w),Y=this.getSizeAndScale(R,this.ctx.canvas.height,A),$=q.size,V=Y.size,X=e.cachedCanvases.getCanvas("pattern-workaround",$,V),Q=X.context,te=I?Math.floor(v/u):0,ie=O?Math.floor(b/d):0;for(let W=0;W<=te;W++)for(let Z=0;Z<=ie;Z++)Q.drawImage(M,$*W,V*Z,$,V,0,0,$,V);return{canvas:X.canvas,scaleX:q.scale,scaleY:Y.scale,offsetX:p,offsetY:f}}return{canvas:z.canvas,scaleX:G.scale,scaleY:D.scale,offsetX:p,offsetY:f}}getSizeAndScale(e,n,r){const i=Math.max(BS.MAX_PATTERN_SIZE,n);let a=Math.ceil(e*r);return a>=i?a=i:r=a/e,{scale:r,size:a}}clipBbox(e,n,r,i,a){const o=i-n,l=a-r;e.ctx.rect(n,r,o,l),Ce.axialAlignedBoundingBox([n,r,i,a],yt(e.ctx),e.current.minMax),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,n,r){const i=e.ctx,a=e.current;switch(n){case x1.COLORED:const{fillStyle:o,strokeStyle:l}=this.ctx;i.fillStyle=a.fillColor=o,i.strokeStyle=a.strokeColor=l;break;case x1.UNCOLORED:i.fillStyle=i.strokeStyle=r,a.fillColor=a.strokeColor=r;break;default:throw new Xee(`Unsupported paint type: ${n}`)}}isModifyingCurrentTransform(){return!1}getPattern(e,n,r,i){let a=r;i!==Yt.SHADING&&(a=Ce.transform(a,n.baseTransform),this.matrix&&(a=Ce.transform(a,this.matrix)));const o=this.createPatternCanvas(n);let l=new DOMMatrix(a);l=l.translate(o.offsetX,o.offsetY),l=l.scale(1/o.scaleX,1/o.scaleY);const u=e.createPattern(o.canvas,"repeat");return u.setTransform(l),u}}function Tte({src:t,srcPos:e=0,dest:n,width:r,height:i,nonBlackColor:a=4294967295,inverseDecode:o=!1}){const l=qt.isLittleEndian?4278190080:255,[u,d]=o?[a,l]:[l,a],p=r>>3,f=r&7,g=t.length;n=new Uint32Array(n.buffer);let m=0;for(let v=0;v<i;v++){for(const E=e+p;e<E;e++){const S=e<g?t[e]:255;n[m++]=S&128?d:u,n[m++]=S&64?d:u,n[m++]=S&32?d:u,n[m++]=S&16?d:u,n[m++]=S&8?d:u,n[m++]=S&4?d:u,n[m++]=S&2?d:u,n[m++]=S&1?d:u}if(f===0)continue;const b=e<g?t[e++]:255;for(let E=0;E<f;E++)n[m++]=b&1<<7-E?d:u}return{srcPos:e,destPos:m}}const A1=16,_1=100,Cte=15,T1=10,En=16,OE=new DOMMatrix,On=new Float32Array(2),Mo=new Float32Array([1/0,1/0,-1/0,-1/0]);function Rte(t,e){if(t._removeMirroring)throw new Error("Context is already forwarding operations.");t.__originalSave=t.save,t.__originalRestore=t.restore,t.__originalRotate=t.rotate,t.__originalScale=t.scale,t.__originalTranslate=t.translate,t.__originalTransform=t.transform,t.__originalSetTransform=t.setTransform,t.__originalResetTransform=t.resetTransform,t.__originalClip=t.clip,t.__originalMoveTo=t.moveTo,t.__originalLineTo=t.lineTo,t.__originalBezierCurveTo=t.bezierCurveTo,t.__originalRect=t.rect,t.__originalClosePath=t.closePath,t.__originalBeginPath=t.beginPath,t._removeMirroring=()=>{t.save=t.__originalSave,t.restore=t.__originalRestore,t.rotate=t.__originalRotate,t.scale=t.__originalScale,t.translate=t.__originalTranslate,t.transform=t.__originalTransform,t.setTransform=t.__originalSetTransform,t.resetTransform=t.__originalResetTransform,t.clip=t.__originalClip,t.moveTo=t.__originalMoveTo,t.lineTo=t.__originalLineTo,t.bezierCurveTo=t.__originalBezierCurveTo,t.rect=t.__originalRect,t.closePath=t.__originalClosePath,t.beginPath=t.__originalBeginPath,delete t._removeMirroring},t.save=function(){e.save(),this.__originalSave()},t.restore=function(){e.restore(),this.__originalRestore()},t.translate=function(n,r){e.translate(n,r),this.__originalTranslate(n,r)},t.scale=function(n,r){e.scale(n,r),this.__originalScale(n,r)},t.transform=function(n,r,i,a,o,l){e.transform(n,r,i,a,o,l),this.__originalTransform(n,r,i,a,o,l)},t.setTransform=function(n,r,i,a,o,l){e.setTransform(n,r,i,a,o,l),this.__originalSetTransform(n,r,i,a,o,l)},t.resetTransform=function(){e.resetTransform(),this.__originalResetTransform()},t.rotate=function(n){e.rotate(n),this.__originalRotate(n)},t.clip=function(n){e.clip(n),this.__originalClip(n)},t.moveTo=function(n,r){e.moveTo(n,r),this.__originalMoveTo(n,r)},t.lineTo=function(n,r){e.lineTo(n,r),this.__originalLineTo(n,r)},t.bezierCurveTo=function(n,r,i,a,o,l){e.bezierCurveTo(n,r,i,a,o,l),this.__originalBezierCurveTo(n,r,i,a,o,l)},t.rect=function(n,r,i,a){e.rect(n,r,i,a),this.__originalRect(n,r,i,a)},t.closePath=function(){e.closePath(),this.__originalClosePath()},t.beginPath=function(){e.beginPath(),this.__originalBeginPath()}}class kte{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,n,r){let i;return this.cache[e]!==void 0?(i=this.cache[e],this.canvasFactory.reset(i,n,r)):(i=this.canvasFactory.create(n,r),this.cache[e]=i),i}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const n=this.cache[e];this.canvasFactory.destroy(n),delete this.cache[e]}}}function $u(t,e,n,r,i,a,o,l,u,d){const[p,f,g,m,v,b]=yt(t);if(f===0&&g===0){const _=o*p+v,w=Math.round(_),A=l*m+b,k=Math.round(A),R=(o+u)*p+v,I=Math.abs(Math.round(R)-w)||1,O=(l+d)*m+b,L=Math.abs(Math.round(O)-k)||1;return t.setTransform(Math.sign(p),0,0,Math.sign(m),w,k),t.drawImage(e,n,r,i,a,0,0,I,L),t.setTransform(p,f,g,m,v,b),[I,L]}if(p===0&&m===0){const _=l*g+v,w=Math.round(_),A=o*f+b,k=Math.round(A),R=(l+d)*g+v,I=Math.abs(Math.round(R)-w)||1,O=(o+u)*f+b,L=Math.abs(Math.round(O)-k)||1;return t.setTransform(0,Math.sign(f),Math.sign(g),0,w,k),t.drawImage(e,n,r,i,a,0,0,L,I),t.setTransform(p,f,g,m,v,b),[L,I]}t.drawImage(e,n,r,i,a,o,l,u,d);const E=Math.hypot(p,f),S=Math.hypot(g,m);return[E*u,S*d]}class C1{alphaIsShape=!1;fontSize=0;fontSizeScale=1;textMatrix=null;textMatrixScale=1;fontMatrix=mw;leading=0;x=0;y=0;lineX=0;lineY=0;charSpacing=0;wordSpacing=0;textHScale=1;textRenderingMode=nn.FILL;textRise=0;fillColor="#000000";strokeColor="#000000";patternFill=!1;patternStroke=!1;fillAlpha=1;strokeAlpha=1;lineWidth=1;activeSMask=null;transferMaps="none";constructor(e,n){this.clipBox=new Float32Array([0,0,e,n]),this.minMax=Mo.slice()}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e.minMax=this.minMax.slice(),e}getPathBoundingBox(e=Yt.FILL,n=null){const r=this.minMax.slice();if(e===Yt.STROKE){n||et("Stroke bounding box must include transform."),Ce.singularValueDecompose2dScale(n,On);const i=On[0]*this.lineWidth/2,a=On[1]*this.lineWidth/2;r[0]-=i,r[1]-=a,r[2]+=i,r[3]+=a}return r}updateClipFromPath(){const e=Ce.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minMax[0]===1/0}startNewPathAndClipBox(e){this.clipBox.set(e,0),this.minMax.set(Mo,0)}getClippedPathBoundingBox(e=Yt.FILL,n=null){return Ce.intersect(this.clipBox,this.getPathBoundingBox(e,n))}}function R1(t,e){if(e instanceof ImageData){t.putImageData(e,0,0);return}const n=e.height,r=e.width,i=n%En,a=(n-i)/En,o=i===0?a:a+1,l=t.createImageData(r,En);let u=0,d;const p=e.data,f=l.data;let g,m,v,b;if(e.kind===gl.GRAYSCALE_1BPP){const E=p.byteLength,S=new Uint32Array(f.buffer,0,f.byteLength>>2),_=S.length,w=r+7>>3,A=4294967295,k=qt.isLittleEndian?4278190080:255;for(g=0;g<o;g++){for(v=g<a?En:i,d=0,m=0;m<v;m++){const R=E-u;let I=0;const O=R>w?r:R*8-7,L=O&-8;let F=0,j=0;for(;I<L;I+=8)j=p[u++],S[d++]=j&128?A:k,S[d++]=j&64?A:k,S[d++]=j&32?A:k,S[d++]=j&16?A:k,S[d++]=j&8?A:k,S[d++]=j&4?A:k,S[d++]=j&2?A:k,S[d++]=j&1?A:k;for(;I<O;I++)F===0&&(j=p[u++],F=128),S[d++]=j&F?A:k,F>>=1}for(;d<_;)S[d++]=0;t.putImageData(l,0,g*En)}}else if(e.kind===gl.RGBA_32BPP){for(m=0,b=r*En*4,g=0;g<a;g++)f.set(p.subarray(u,u+b)),u+=b,t.putImageData(l,0,m),m+=En;g<o&&(b=r*i*4,f.set(p.subarray(u,u+b)),t.putImageData(l,0,m))}else if(e.kind===gl.RGB_24BPP)for(v=En,b=r*v,g=0;g<o;g++){for(g>=a&&(v=i,b=r*v),d=0,m=b;m--;)f[d++]=p[u++],f[d++]=p[u++],f[d++]=p[u++],f[d++]=255;t.putImageData(l,0,g*En)}else throw new Error(`bad image kind: ${e.kind}`)}function k1(t,e){if(e.bitmap){t.drawImage(e.bitmap,0,0);return}const n=e.height,r=e.width,i=n%En,a=(n-i)/En,o=i===0?a:a+1,l=t.createImageData(r,En);let u=0;const d=e.data,p=l.data;for(let f=0;f<o;f++){const g=f<a?En:i;({srcPos:u}=Tte({src:d,srcPos:u,dest:p,width:r,height:g,nonBlackColor:0})),t.putImageData(l,0,f*En)}}function tl(t,e){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const r of n)t[r]!==void 0&&(e[r]=t[r]);t.setLineDash!==void 0&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function zu(t){t.strokeStyle=t.fillStyle="#000000",t.fillRule="nonzero",t.globalAlpha=1,t.lineWidth=1,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=10,t.globalCompositeOperation="source-over",t.font="10px sans-serif",t.setLineDash!==void 0&&(t.setLineDash([]),t.lineDashOffset=0);const{filter:e}=t;e!=="none"&&e!==""&&(t.filter="none")}function N1(t,e){if(e)return!0;Ce.singularValueDecompose2dScale(t,On);const n=Math.fround(fr.pixelRatio*Ua.PDF_TO_CSS_UNITS);return On[0]<=n&&On[1]<=n}const Nte=["butt","round","square"],Ite=["miter","round","bevel"],Ote={},I1={};class jo{constructor(e,n,r,i,a,{optionalContentConfig:o,markedContentStack:l=null},u,d){this.ctx=e,this.current=new C1(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=n,this.objs=r,this.canvasFactory=i,this.filterFactory=a,this.groupStack=[],this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=l||[],this.optionalContentConfig=o,this.cachedCanvases=new kte(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=u,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=d,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e,n=null){return typeof e=="string"?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):n}beginDrawing({transform:e,viewport:n,transparency:r=!1,background:i=null}){const a=this.ctx.canvas.width,o=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=i||"#ffffff",this.ctx.fillRect(0,0,a,o),this.ctx.fillStyle=l,r){const u=this.cachedCanvases.getCanvas("transparent",a,o);this.compositeCtx=this.ctx,this.transparentCanvas=u.canvas,this.ctx=u.context,this.ctx.save(),this.ctx.transform(...yt(this.compositeCtx))}this.ctx.save(),zu(this.ctx),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=yt(this.ctx)}executeOperatorList(e,n,r,i){const a=e.argsArray,o=e.fnArray;let l=n||0;const u=a.length;if(u===l)return l;const d=u-l>T1&&typeof r=="function",p=d?Date.now()+Cte:0;let f=0;const g=this.commonObjs,m=this.objs;let v;for(;;){if(i!==void 0&&l===i.nextBreakPoint)return i.breakIt(l,r),l;if(v=o[l],v!==Il.dependency)this[v].apply(this,a[l]);else for(const b of a[l]){const E=b.startsWith("g_")?g:m;if(!E.has(b))return E.get(b,r),l}if(l++,l===u)return l;if(d&&++f>T1){if(Date.now()>p)return r(),l;f=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const n of e.values())typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement&&(n.width=n.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.#t()}#t(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(e!=="none"){const n=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=n}}}_scaleImage(e,n){const r=e.width??e.displayWidth,i=e.height??e.displayHeight;let a=Math.max(Math.hypot(n[0],n[1]),1),o=Math.max(Math.hypot(n[2],n[3]),1),l=r,u=i,d="prescale1",p,f;for(;a>2&&l>1||o>2&&u>1;){let g=l,m=u;a>2&&l>1&&(g=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2),a/=l/g),o>2&&u>1&&(m=u>=16384?Math.floor(u/2)-1||1:Math.ceil(u)/2,o/=u/m),p=this.cachedCanvases.getCanvas(d,g,m),f=p.context,f.clearRect(0,0,g,m),f.drawImage(e,0,0,l,u,0,0,g,m),e=p.canvas,l=g,u=m,d=d==="prescale1"?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:u}}_createMaskCanvas(e){const n=this.ctx,{width:r,height:i}=e,a=this.current.fillColor,o=this.current.patternFill,l=yt(n);let u,d,p,f;if((e.bitmap||e.data)&&e.count>1){const L=e.bitmap||e.data.buffer;d=JSON.stringify(o?l:[l.slice(0,4),a]),u=this._cachedBitmapsMap.get(L),u||(u=new Map,this._cachedBitmapsMap.set(L,u));const F=u.get(d);if(F&&!o){const j=Math.round(Math.min(l[0],l[2])+l[4]),H=Math.round(Math.min(l[1],l[3])+l[5]);return{canvas:F,offsetX:j,offsetY:H}}p=F}p||(f=this.cachedCanvases.getCanvas("maskCanvas",r,i),k1(f.context,e));let g=Ce.transform(l,[1/r,0,0,-1/i,0,0]);g=Ce.transform(g,[1,0,0,1,0,-i]);const m=Mo.slice();Ce.axialAlignedBoundingBox([0,0,r,i],g,m);const[v,b,E,S]=m,_=Math.round(E-v)||1,w=Math.round(S-b)||1,A=this.cachedCanvases.getCanvas("fillCanvas",_,w),k=A.context,R=v,I=b;k.translate(-R,-I),k.transform(...g),p||(p=this._scaleImage(f.canvas,Tr(k)),p=p.img,u&&o&&u.set(d,p)),k.imageSmoothingEnabled=N1(yt(k),e.interpolate),$u(k,p,0,0,p.width,p.height,0,0,r,i),k.globalCompositeOperation="source-in";const O=Ce.transform(Tr(k),[1,0,0,1,-R,-I]);return k.fillStyle=o?a.getPattern(n,this,O,Yt.FILL):a,k.fillRect(0,0,r,i),u&&!o&&(this.cachedCanvases.delete("fillCanvas"),u.set(d,A.canvas)),{canvas:A.canvas,offsetX:Math.round(R),offsetY:Math.round(I)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=Nte[e]}setLineJoin(e){this.ctx.lineJoin=Ite[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,n){const r=this.ctx;r.setLineDash!==void 0&&(r.setLineDash(e),r.lineDashOffset=n)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[n,r]of e)switch(n){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r[0],r[1]);break;case"CA":this.current.strokeAlpha=r;break;case"ca":this.ctx.globalAlpha=this.current.fillAlpha=r;break;case"BM":this.ctx.globalCompositeOperation=r;break;case"SMask":this.current.activeSMask=r?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(r);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,n=this.ctx.canvas.height,r="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(r,e,n);this.suspendedCtx=this.ctx;const a=this.ctx=i.context;a.setTransform(this.suspendedCtx.getTransform()),tl(this.suspendedCtx,a),Rte(a,this.suspendedCtx),this.setGState([["BM","source-over"]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),tl(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const n=this.current.activeSMask,r=this.suspendedCtx;this.composeSMask(r,n,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(e,n,r,i){const a=i[0],o=i[1],l=i[2]-a,u=i[3]-o;l===0||u===0||(this.genericComposeSMask(n.context,r,l,u,n.subtype,n.backdrop,n.transferMap,a,o,n.offsetX,n.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(r.canvas,0,0),e.restore())}genericComposeSMask(e,n,r,i,a,o,l,u,d,p,f){let g=e.canvas,m=u-p,v=d-f;if(o)if(m<0||v<0||m+r>g.width||v+i>g.height){const E=this.cachedCanvases.getCanvas("maskExtension",r,i),S=E.context;S.drawImage(g,-m,-v),S.globalCompositeOperation="destination-atop",S.fillStyle=o,S.fillRect(0,0,r,i),S.globalCompositeOperation="source-over",g=E.canvas,m=v=0}else{e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0);const E=new Path2D;E.rect(m,v,r,i),e.clip(E),e.globalCompositeOperation="destination-atop",e.fillStyle=o,e.fillRect(m,v,r,i),e.restore()}n.save(),n.globalAlpha=1,n.setTransform(1,0,0,1,0,0),a==="Alpha"&&l?n.filter=this.filterFactory.addAlphaFilter(l):a==="Luminosity"&&(n.filter=this.filterFactory.addLuminosityFilter(l));const b=new Path2D;b.rect(u,d,r,i),n.clip(b),n.globalCompositeOperation="destination-in",n.drawImage(g,m,v,r,i,u,d,r,i),n.restore()}save(){this.inSMaskMode&&tl(this.ctx,this.suspendedCtx),this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){if(this.stateStack.length===0){this.inSMaskMode&&this.endSMaskMode();return}this.current=this.stateStack.pop(),this.ctx.restore(),this.inSMaskMode&&tl(this.suspendedCtx,this.ctx),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}transform(e,n,r,i,a,o){this.ctx.transform(e,n,r,i,a,o),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,n,r){let[i]=n;if(!r){i||=n[0]=new Path2D,this[e](i);return}if(!(i instanceof Path2D)){const a=n[0]=new Path2D;for(let o=0,l=i.length;o<l;)switch(i[o++]){case Fu.moveTo:a.moveTo(i[o++],i[o++]);break;case Fu.lineTo:a.lineTo(i[o++],i[o++]);break;case Fu.curveTo:a.bezierCurveTo(i[o++],i[o++],i[o++],i[o++],i[o++],i[o++]);break;case Fu.closePath:a.closePath();break;default:Pe(`Unrecognized drawing path operator: ${i[o-1]}`);break}i=a}Ce.axialAlignedBoundingBox(r,yt(this.ctx),this.current.minMax),this[e](i)}closePath(){this.ctx.closePath()}stroke(e,n=!0){const r=this.ctx,i=this.current.strokeColor;if(r.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(typeof i=="object"&&i?.getPattern){const a=i.isModifyingCurrentTransform()?r.getTransform():null;if(r.save(),r.strokeStyle=i.getPattern(r,this,Tr(r),Yt.STROKE),a){const o=new Path2D;o.addPath(e,r.getTransform().invertSelf().multiplySelf(a)),e=o}this.rescaleAndStroke(e,!1),r.restore()}else this.rescaleAndStroke(e,!0);n&&this.consumePath(e,this.current.getClippedPathBoundingBox(Yt.STROKE,yt(this.ctx))),r.globalAlpha=this.current.fillAlpha}closeStroke(e){this.stroke(e)}fill(e,n=!0){const r=this.ctx,i=this.current.fillColor,a=this.current.patternFill;let o=!1;if(a){const u=i.isModifyingCurrentTransform()?r.getTransform():null;if(r.save(),r.fillStyle=i.getPattern(r,this,Tr(r),Yt.FILL),u){const d=new Path2D;d.addPath(e,r.getTransform().invertSelf().multiplySelf(u)),e=d}o=!0}const l=this.current.getClippedPathBoundingBox();this.contentVisible&&l!==null&&(this.pendingEOFill?(r.fill(e,"evenodd"),this.pendingEOFill=!1):r.fill(e)),o&&r.restore(),n&&this.consumePath(e,l)}eoFill(e){this.pendingEOFill=!0,this.fill(e)}fillStroke(e){this.fill(e,!1),this.stroke(e,!1),this.consumePath(e)}eoFillStroke(e){this.pendingEOFill=!0,this.fillStroke(e)}closeFillStroke(e){this.fillStroke(e)}closeEOFillStroke(e){this.pendingEOFill=!0,this.fillStroke(e)}endPath(e){this.consumePath(e)}rawFillPath(e){this.ctx.fill(e)}clip(){this.pendingClip=Ote}eoClip(){this.pendingClip=I1}beginText(){this.current.textMatrix=null,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,n=this.ctx;if(e===void 0)return;const r=new Path2D,i=n.getTransform().invertSelf();for(const{transform:a,x:o,y:l,fontSize:u,path:d}of e)r.addPath(d,new DOMMatrix(a).preMultiplySelf(i).translate(o,l).scale(u,-u));n.clip(r),delete this.pendingTextPaths}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,n){const r=this.commonObjs.get(e),i=this.current;if(!r)throw new Error(`Can't find font for ${e}`);if(i.fontMatrix=r.fontMatrix||mw,(i.fontMatrix[0]===0||i.fontMatrix[3]===0)&&Pe("Invalid font matrix for font "+e),n<0?(n=-n,i.fontDirection=-1):i.fontDirection=1,this.current.font=r,this.current.fontSize=n,r.isType3Font)return;const a=r.loadedName||"sans-serif",o=r.systemFontInfo?.css||`"${a}", ${r.fallbackName}`;let l="normal";r.black?l="900":r.bold&&(l="bold");const u=r.italic?"italic":"normal";let d=n;n<A1?d=A1:n>_1&&(d=_1),this.current.fontSizeScale=n/d,this.ctx.font=`${u} ${l} ${d}px ${o}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,n){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=n}setLeadingMoveText(e,n){this.setLeading(-n),this.moveText(e,n)}setTextMatrix(e){const{current:n}=this;n.textMatrix=e,n.textMatrixScale=Math.hypot(e[0],e[1]),n.x=n.lineX=0,n.y=n.lineY=0}nextLine(){this.moveText(0,this.current.leading)}#n(e,n,r){const i=new Path2D;return i.addPath(e,new DOMMatrix(r).invertSelf().multiplySelf(n)),i}paintChar(e,n,r,i,a){const o=this.ctx,l=this.current,u=l.font,d=l.textRenderingMode,p=l.fontSize/l.fontSizeScale,f=d&nn.FILL_STROKE_MASK,g=!!(d&nn.ADD_TO_PATH_FLAG),m=l.patternFill&&!u.missingFile,v=l.patternStroke&&!u.missingFile;let b;if((u.disableFontFace||g||m||v)&&(b=u.getPathGenerator(this.commonObjs,e)),u.disableFontFace||m||v){o.save(),o.translate(n,r),o.scale(p,-p);let E;if((f===nn.FILL||f===nn.FILL_STROKE)&&(i?(E=o.getTransform(),o.setTransform(...i),o.fill(this.#n(b,E,i))):o.fill(b)),f===nn.STROKE||f===nn.FILL_STROKE)if(a){E||=o.getTransform(),o.setTransform(...a);const{a:S,b:_,c:w,d:A}=E,k=Ce.inverseTransform(a),R=Ce.transform([S,_,w,A,0,0],k);Ce.singularValueDecompose2dScale(R,On),o.lineWidth*=Math.max(On[0],On[1])/p,o.stroke(this.#n(b,E,a))}else o.lineWidth/=p,o.stroke(b);o.restore()}else(f===nn.FILL||f===nn.FILL_STROKE)&&o.fillText(e,n,r),(f===nn.STROKE||f===nn.FILL_STROKE)&&o.strokeText(e,n,r);g&&(this.pendingTextPaths||=[]).push({transform:yt(o),x:n,y:r,fontSize:p,path:b})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const n=e.getImageData(0,0,10,10).data;let r=!1;for(let i=3;i<n.length;i+=4)if(n[i]>0&&n[i]<255){r=!0;break}return ze(this,"isFontSubpixelAAEnabled",r)}showText(e){const n=this.current,r=n.font;if(r.isType3Font)return this.showType3Text(e);const i=n.fontSize;if(i===0)return;const a=this.ctx,o=n.fontSizeScale,l=n.charSpacing,u=n.wordSpacing,d=n.fontDirection,p=n.textHScale*d,f=e.length,g=r.vertical,m=g?1:-1,v=r.defaultVMetrics,b=i*n.fontMatrix[0],E=n.textRenderingMode===nn.FILL&&!r.disableFontFace&&!n.patternFill;a.save(),n.textMatrix&&a.transform(...n.textMatrix),a.translate(n.x,n.y+n.textRise),d>0?a.scale(p,-1):a.scale(p,1);let S,_;if(n.patternFill){a.save();const I=n.fillColor.getPattern(a,this,Tr(a),Yt.FILL);S=yt(a),a.restore(),a.fillStyle=I}if(n.patternStroke){a.save();const I=n.strokeColor.getPattern(a,this,Tr(a),Yt.STROKE);_=yt(a),a.restore(),a.strokeStyle=I}let w=n.lineWidth;const A=n.textMatrixScale;if(A===0||w===0){const I=n.textRenderingMode&nn.FILL_STROKE_MASK;(I===nn.STROKE||I===nn.FILL_STROKE)&&(w=this.getSinglePixelWidth())}else w/=A;if(o!==1&&(a.scale(o,o),w/=o),a.lineWidth=w,r.isInvalidPDFjsFont){const I=[];let O=0;for(const L of e)I.push(L.unicode),O+=L.width;a.fillText(I.join(""),0,0),n.x+=O*b*p,a.restore(),this.compose();return}let k=0,R;for(R=0;R<f;++R){const I=e[R];if(typeof I=="number"){k+=m*I*i/1e3;continue}let O=!1;const L=(I.isSpace?u:0)+l,F=I.fontChar,j=I.accent;let H,G,D=I.width;if(g){const B=I.vmetric||v,U=-(I.vmetric?B[1]:D*.5)*b,M=B[2]*b;D=B?-B[0]:D,H=U/o,G=(k+M)/o}else H=k/o,G=0;if(r.remeasure&&D>0){const B=a.measureText(F).width*1e3/i*o;if(D<B&&this.isFontSubpixelAAEnabled){const U=D/B;O=!0,a.save(),a.scale(U,1),H/=U}else D!==B&&(H+=(D-B)/2e3*i/o)}if(this.contentVisible&&(I.isInFont||r.missingFile)){if(E&&!j)a.fillText(F,H,G);else if(this.paintChar(F,H,G,S,_),j){const B=H+i*j.offset.x/o,U=G-i*j.offset.y/o;this.paintChar(j.fontChar,B,U,S,_)}}const z=g?D*b-L*d:D*b+L*d;k+=z,O&&a.restore()}g?n.y-=k:n.x+=k*p,a.restore(),this.compose()}showType3Text(e){const n=this.ctx,r=this.current,i=r.font,a=r.fontSize,o=r.fontDirection,l=i.vertical?1:-1,u=r.charSpacing,d=r.wordSpacing,p=r.textHScale*o,f=r.fontMatrix||mw,g=e.length,m=r.textRenderingMode===nn.INVISIBLE;let v,b,E,S;if(!(m||a===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,n.save(),r.textMatrix&&n.transform(...r.textMatrix),n.translate(r.x,r.y+r.textRise),n.scale(p,o),v=0;v<g;++v){if(b=e[v],typeof b=="number"){S=l*b*a/1e3,this.ctx.translate(S,0),r.x+=S*p;continue}const _=(b.isSpace?d:0)+u,w=i.charProcOperatorList[b.operatorListId];w?this.contentVisible&&(this.save(),n.scale(a,a),n.transform(...f),this.executeOperatorList(w),this.restore()):Pe(`Type3 character "${b.operatorListId}" is not available.`);const A=[b.width,0];Ce.applyTransform(A,f),E=A[0]*a+_,n.translate(E,0),r.x+=E*p}n.restore()}}setCharWidth(e,n){}setCharWidthAndBounds(e,n,r,i,a,o){const l=new Path2D;l.rect(r,i,a-r,o-i),this.ctx.clip(l),this.endPath()}getColorN_Pattern(e){let n;if(e[0]==="TilingPattern"){const r=this.baseTransform||yt(this.ctx),i={createCanvasGraphics:a=>new jo(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};n=new BS(e,this.ctx,i,r)}else n=this._getPattern(e[1],e[2]);return n}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments),this.current.patternStroke=!0}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e){this.ctx.strokeStyle=this.current.strokeColor=e,this.current.patternStroke=!1}setStrokeTransparent(){this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(e){this.ctx.fillStyle=this.current.fillColor=e,this.current.patternFill=!1}setFillTransparent(){this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(e,n=null){let r;return this.cachedPatterns.has(e)?r=this.cachedPatterns.get(e):(r=_te(this.getObject(e)),this.cachedPatterns.set(e,r)),n&&(r.matrix=n),r}shadingFill(e){if(!this.contentVisible)return;const n=this.ctx;this.save();const r=this._getPattern(e);n.fillStyle=r.getPattern(n,this,Tr(n),Yt.SHADING);const i=Tr(n);if(i){const{width:a,height:o}=n.canvas,l=Mo.slice();Ce.axialAlignedBoundingBox([0,0,a,o],i,l);const[u,d,p,f]=l;this.ctx.fillRect(u,d,p-u,f-d)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){et("Should not call beginInlineImage")}beginImageData(){et("Should not call beginImageData")}paintFormXObjectBegin(e,n){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),e&&this.transform(...e),this.baseTransform=yt(this.ctx),n)){Ce.axialAlignedBoundingBox(n,this.baseTransform,this.current.minMax);const[r,i,a,o]=n,l=new Path2D;l.rect(r,i,a-r,o-i),this.ctx.clip(l),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const n=this.ctx;e.isolated||sp("TODO: Support non-isolated groups."),e.knockout&&Pe("Knockout groups not supported.");const r=yt(n);if(e.matrix&&n.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let i=Mo.slice();Ce.axialAlignedBoundingBox(e.bbox,yt(n),i);const a=[0,0,n.canvas.width,n.canvas.height];i=Ce.intersect(i,a)||[0,0,0,0];const o=Math.floor(i[0]),l=Math.floor(i[1]),u=Math.max(Math.ceil(i[2])-o,1),d=Math.max(Math.ceil(i[3])-l,1);this.current.startNewPathAndClipBox([0,0,u,d]);let p="groupAt"+this.groupLevel;e.smask&&(p+="_smask_"+this.smaskCounter++%2);const f=this.cachedCanvases.getCanvas(p,u,d),g=f.context;g.translate(-o,-l),g.transform(...r);let m=new Path2D;const[v,b,E,S]=e.bbox;if(m.rect(v,b,E-v,S-b),e.matrix){const _=new Path2D;_.addPath(m,new DOMMatrix(e.matrix)),m=_}g.clip(m),e.smask?this.smaskStack.push({canvas:f.canvas,context:g,offsetX:o,offsetY:l,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(n.setTransform(1,0,0,1,0,0),n.translate(o,l),n.save()),tl(n,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(n),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const n=this.ctx,r=this.groupStack.pop();if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const i=yt(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...i);const a=Mo.slice();Ce.axialAlignedBoundingBox([0,0,n.canvas.width,n.canvas.height],i,a),this.ctx.drawImage(n.canvas,0,0),this.ctx.restore(),this.compose(a)}}beginAnnotation(e,n,r,i,a){if(this.#e(),zu(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),n){const o=n[2]-n[0],l=n[3]-n[1];if(a&&this.annotationCanvasMap){r=r.slice(),r[4]-=n[0],r[5]-=n[1],n=n.slice(),n[0]=n[1]=0,n[2]=o,n[3]=l,Ce.singularValueDecompose2dScale(yt(this.ctx),On);const{viewportScale:u}=this,d=Math.ceil(o*this.outputScaleX*u),p=Math.ceil(l*this.outputScaleY*u);this.annotationCanvas=this.canvasFactory.create(d,p);const{canvas:f,context:g}=this.annotationCanvas;this.annotationCanvasMap.set(e,f),this.annotationCanvas.savedCtx=this.ctx,this.ctx=g,this.ctx.save(),this.ctx.setTransform(On[0],0,0,-On[1],0,l*On[1]),zu(this.ctx)}else{zu(this.ctx),this.endPath();const u=new Path2D;u.rect(n[0],n[1],o,l),this.ctx.clip(u)}}this.current=new C1(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...r),this.transform(...i)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#t(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const n=e.count;e=this.getObject(e.data,e),e.count=n;const r=this.ctx,i=this._createMaskCanvas(e),a=i.canvas;r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(a,i.offsetX,i.offsetY),r.restore(),this.compose()}paintImageMaskXObjectRepeat(e,n,r=0,i=0,a,o){if(!this.contentVisible)return;e=this.getObject(e.data,e);const l=this.ctx;l.save();const u=yt(l);l.transform(n,r,i,a,0,0);const d=this._createMaskCanvas(e);l.setTransform(1,0,0,1,d.offsetX-u[4],d.offsetY-u[5]);for(let p=0,f=o.length;p<f;p+=2){const g=Ce.transform(u,[n,r,i,a,o[p],o[p+1]]);l.drawImage(d.canvas,g[4],g[5])}l.restore(),this.compose()}paintImageMaskXObjectGroup(e){if(!this.contentVisible)return;const n=this.ctx,r=this.current.fillColor,i=this.current.patternFill;for(const a of e){const{data:o,width:l,height:u,transform:d}=a,p=this.cachedCanvases.getCanvas("maskCanvas",l,u),f=p.context;f.save();const g=this.getObject(o,a);k1(f,g),f.globalCompositeOperation="source-in",f.fillStyle=i?r.getPattern(f,this,Tr(n),Yt.FILL):r,f.fillRect(0,0,l,u),f.restore(),n.save(),n.transform(...d),n.scale(1,-1),$u(n,p.canvas,0,0,l,u,0,-1,1,1),n.restore()}this.compose()}paintImageXObject(e){if(!this.contentVisible)return;const n=this.getObject(e);if(!n){Pe("Dependent image isn't ready yet");return}this.paintInlineImageXObject(n)}paintImageXObjectRepeat(e,n,r,i){if(!this.contentVisible)return;const a=this.getObject(e);if(!a){Pe("Dependent image isn't ready yet");return}const o=a.width,l=a.height,u=[];for(let d=0,p=i.length;d<p;d+=2)u.push({transform:[n,0,0,r,i[d],i[d+1]],x:0,y:0,w:o,h:l});this.paintInlineImageXObjectGroup(a,u)}applyTransferMapsToCanvas(e){return this.current.transferMaps!=="none"&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}applyTransferMapsToBitmap(e){if(this.current.transferMaps==="none")return e.bitmap;const{bitmap:n,width:r,height:i}=e,a=this.cachedCanvases.getCanvas("inlineImage",r,i),o=a.context;return o.filter=this.current.transferMaps,o.drawImage(n,0,0),o.filter="none",a.canvas}paintInlineImageXObject(e){if(!this.contentVisible)return;const n=e.width,r=e.height,i=this.ctx;this.save();const{filter:a}=i;a!=="none"&&a!==""&&(i.filter="none"),i.scale(1/n,-1/r);let o;if(e.bitmap)o=this.applyTransferMapsToBitmap(e);else if(typeof HTMLElement=="function"&&e instanceof HTMLElement||!e.data)o=e;else{const d=this.cachedCanvases.getCanvas("inlineImage",n,r).context;R1(d,e),o=this.applyTransferMapsToCanvas(d)}const l=this._scaleImage(o,Tr(i));i.imageSmoothingEnabled=N1(yt(i),e.interpolate),$u(i,l.img,0,0,l.paintWidth,l.paintHeight,0,-r,n,r),this.compose(),this.restore()}paintInlineImageXObjectGroup(e,n){if(!this.contentVisible)return;const r=this.ctx;let i;if(e.bitmap)i=e.bitmap;else{const a=e.width,o=e.height,u=this.cachedCanvases.getCanvas("inlineImage",a,o).context;R1(u,e),i=this.applyTransferMapsToCanvas(u)}for(const a of n)r.save(),r.transform(...a.transform),r.scale(1,-1),$u(r,i,a.x,a.y,a.w,a.h,0,-1,1,1),r.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e){}markPointProps(e,n){}beginMarkedContent(e){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,n){e==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(n)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(e,n){const r=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(n);const i=this.ctx;this.pendingClip&&(r||(this.pendingClip===I1?i.clip(e,"evenodd"):i.clip(e)),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox)}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=yt(this.ctx);if(e[1]===0&&e[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{const n=Math.abs(e[0]*e[3]-e[2]*e[1]),r=Math.hypot(e[0],e[2]),i=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(r,i)/n}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:e}=this.current,{a:n,b:r,c:i,d:a}=this.ctx.getTransform();let o,l;if(r===0&&i===0){const u=Math.abs(n),d=Math.abs(a);if(u===d)if(e===0)o=l=1/u;else{const p=u*e;o=l=p<1?1/p:1}else if(e===0)o=1/u,l=1/d;else{const p=u*e,f=d*e;o=p<1?1/p:1,l=f<1?1/f:1}}else{const u=Math.abs(n*a-r*i),d=Math.hypot(n,r),p=Math.hypot(i,a);if(e===0)o=p/u,l=d/u;else{const f=e*u;o=p>f?p/f:1,l=d>f?d/f:1}}this._cachedScaleForStroking[0]=o,this._cachedScaleForStroking[1]=l}return this._cachedScaleForStroking}rescaleAndStroke(e,n){const{ctx:r,current:{lineWidth:i}}=this,[a,o]=this.getScaleForStroking();if(a===o){r.lineWidth=(i||1)*a,r.stroke(e);return}const l=r.getLineDash();n&&r.save(),r.scale(a,o),OE.a=1/a,OE.d=1/o;const u=new Path2D;if(u.addPath(e,OE),l.length>0){const d=Math.max(a,o);r.setLineDash(l.map(p=>p/d)),r.lineDashOffset/=d}r.lineWidth=i||1,r.stroke(u),n&&r.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}for(const t in Il)jo.prototype[t]!==void 0&&(jo.prototype[Il[t]]=jo.prototype[t]);class Gi{static#e=null;static#t="";static get workerPort(){return this.#e}static set workerPort(e){if(!(typeof Worker<"u"&&e instanceof Worker)&&e!==null)throw new Error("Invalid `workerPort` type.");this.#e=e}static get workerSrc(){return this.#t}static set workerSrc(e){if(typeof e!="string")throw new Error("Invalid `workerSrc` type.");this.#t=e}}class Lte{#e;#t;constructor({parsedData:e,rawData:n}){this.#e=e,this.#t=n}getRaw(){return this.#t}get(e){return this.#e.get(e)??null}[Symbol.iterator](){return this.#e.entries()}}const No=Symbol("INTERNAL");class Dte{#e=!1;#t=!1;#n=!1;#r=!0;constructor(e,{name:n,intent:r,usage:i,rbGroups:a}){this.#e=!!(e&kn.DISPLAY),this.#t=!!(e&kn.PRINT),this.name=n,this.intent=r,this.usage=i,this.rbGroups=a}get visible(){if(this.#n)return this.#r;if(!this.#r)return!1;const{print:e,view:n}=this.usage;return this.#e?n?.viewState!=="OFF":this.#t?e?.printState!=="OFF":!0}_setVisible(e,n,r=!1){e!==No&&et("Internal method `_setVisible` called."),this.#n=r,this.#r=n}}class Mte{#e=null;#t=new Map;#n=null;#r=null;constructor(e,n=kn.DISPLAY){if(this.renderingIntent=n,this.name=null,this.creator=null,e!==null){this.name=e.name,this.creator=e.creator,this.#r=e.order;for(const r of e.groups)this.#t.set(r.id,new Dte(n,r));if(e.baseState==="OFF")for(const r of this.#t.values())r._setVisible(No,!1);for(const r of e.on)this.#t.get(r)._setVisible(No,!0);for(const r of e.off)this.#t.get(r)._setVisible(No,!1);this.#n=this.getHash()}}#a(e){const n=e.length;if(n<2)return!0;const r=e[0];for(let i=1;i<n;i++){const a=e[i];let o;if(Array.isArray(a))o=this.#a(a);else if(this.#t.has(a))o=this.#t.get(a).visible;else return Pe(`Optional content group not found: ${a}`),!0;switch(r){case"And":if(!o)return!1;break;case"Or":if(o)return!0;break;case"Not":return!o;default:return!0}}return r==="And"}isVisible(e){if(this.#t.size===0)return!0;if(!e)return sp("Optional content group not defined."),!0;if(e.type==="OCG")return this.#t.has(e.id)?this.#t.get(e.id).visible:(Pe(`Optional content group not found: ${e.id}`),!0);if(e.type==="OCMD"){if(e.expression)return this.#a(e.expression);if(!e.policy||e.policy==="AnyOn"){for(const n of e.ids){if(!this.#t.has(n))return Pe(`Optional content group not found: ${n}`),!0;if(this.#t.get(n).visible)return!0}return!1}else if(e.policy==="AllOn"){for(const n of e.ids){if(!this.#t.has(n))return Pe(`Optional content group not found: ${n}`),!0;if(!this.#t.get(n).visible)return!1}return!0}else if(e.policy==="AnyOff"){for(const n of e.ids){if(!this.#t.has(n))return Pe(`Optional content group not found: ${n}`),!0;if(!this.#t.get(n).visible)return!0}return!1}else if(e.policy==="AllOff"){for(const n of e.ids){if(!this.#t.has(n))return Pe(`Optional content group not found: ${n}`),!0;if(this.#t.get(n).visible)return!1}return!0}return Pe(`Unknown optional content policy ${e.policy}.`),!0}return Pe(`Unknown group type ${e.type}.`),!0}setVisibility(e,n=!0,r=!0){const i=this.#t.get(e);if(!i){Pe(`Optional content group not found: ${e}`);return}if(r&&n&&i.rbGroups.length)for(const a of i.rbGroups)for(const o of a)o!==e&&this.#t.get(o)?._setVisible(No,!1,!0);i._setVisible(No,!!n,!0),this.#e=null}setOCGState({state:e,preserveRB:n}){let r;for(const i of e){switch(i){case"ON":case"OFF":case"Toggle":r=i;continue}const a=this.#t.get(i);if(a)switch(r){case"ON":this.setVisibility(i,!0,n);break;case"OFF":this.setVisibility(i,!1,n);break;case"Toggle":this.setVisibility(i,!a.visible,n);break}}this.#e=null}get hasInitialVisibility(){return this.#n===null||this.getHash()===this.#n}getOrder(){return this.#t.size?this.#r?this.#r.slice():[...this.#t.keys()]:null}getGroup(e){return this.#t.get(e)||null}getHash(){if(this.#e!==null)return this.#e;const e=new JP;for(const[n,r]of this.#t)e.update(`${n}:${r.visible}`);return this.#e=e.hexdigest()}[Symbol.iterator](){return this.#t.entries()}}class Pte{constructor(e,{disableRange:n=!1,disableStream:r=!1}){Lt(e,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:i,initialData:a,progressiveDone:o,contentDispositionFilename:l}=e;if(this._queuedChunks=[],this._progressiveDone=o,this._contentDispositionFilename=l,a?.length>0){const u=a instanceof Uint8Array&&a.byteLength===a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer;this._queuedChunks.push(u)}this._pdfDataRangeTransport=e,this._isStreamingSupported=!r,this._isRangeSupported=!n,this._contentLength=i,this._fullRequestReader=null,this._rangeReaders=[],e.addRangeListener((u,d)=>{this._onReceiveData({begin:u,chunk:d})}),e.addProgressListener((u,d)=>{this._onProgress({loaded:u,total:d})}),e.addProgressiveReadListener(u=>{this._onReceiveData({chunk:u})}),e.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),e.transportReady()}_onReceiveData({begin:e,chunk:n}){const r=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;if(e===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(r):this._queuedChunks.push(r);else{const i=this._rangeReaders.some(function(a){return a._begin!==e?!1:(a._enqueue(r),!0)});Lt(i,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){e.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:e.loaded}):this._fullRequestReader?.onProgress?.({loaded:e.loaded,total:e.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const n=this._rangeReaders.indexOf(e);n>=0&&this._rangeReaders.splice(n,1)}getFullReader(){Lt(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new Fte(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,n){if(n<=this._progressiveDataLength)return null;const r=new Bte(this,e,n);return this._pdfDataRangeTransport.requestDataRange(e,n),this._rangeReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const n of this._rangeReaders.slice(0))n.cancel(e);this._pdfDataRangeTransport.abort()}}class Fte{constructor(e,n,r=!1,i=null){this._stream=e,this._done=r||!1,this._filename=cp(i)?i:null,this._queuedChunks=n||[],this._loaded=0;for(const a of this._queuedChunks)this._loaded+=a.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class Bte{constructor(e,n,r){this._stream=e,this._begin=n,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(this._requests.length===0)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function Ute(t){let e=!0,n=r("filename\\*","i").exec(t);if(n){n=n[1];let p=l(n);return p=unescape(p),p=u(p),p=d(p),a(p)}if(n=o(t),n){const p=d(n);return a(p)}if(n=r("filename","i").exec(t),n){n=n[1];let p=l(n);return p=d(p),a(p)}function r(p,f){return new RegExp("(?:^|;)\\s*"+p+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',f)}function i(p,f){if(p){if(!/^[\x00-\xFF]+$/.test(f))return f;try{const g=new TextDecoder(p,{fatal:!0}),m=Kl(f);f=g.decode(m),e=!1}catch{}}return f}function a(p){return e&&/[\x80-\xff]/.test(p)&&(p=i("utf-8",p),e&&(p=i("iso-8859-1",p))),p}function o(p){const f=[];let g;const m=r("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(g=m.exec(p))!==null;){let[,b,E,S]=g;if(b=parseInt(b,10),b in f){if(b===0)break;continue}f[b]=[E,S]}const v=[];for(let b=0;b<f.length&&b in f;++b){let[E,S]=f[b];S=l(S),E&&(S=unescape(S),b===0&&(S=u(S))),v.push(S)}return v.join("")}function l(p){if(p.startsWith('"')){const f=p.slice(1).split('\\"');for(let g=0;g<f.length;++g){const m=f[g].indexOf('"');m!==-1&&(f[g]=f[g].slice(0,m),f.length=g+1),f[g]=f[g].replaceAll(/\\(.)/g,"$1")}p=f.join('"')}return p}function u(p){const f=p.indexOf("'");if(f===-1)return p;const g=p.slice(0,f),v=p.slice(f+1).replace(/^[^']*'/,"");return i(g,v)}function d(p){return!p.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(p)?p:p.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(f,g,m,v){if(m==="q"||m==="Q")return v=v.replaceAll("_"," "),v=v.replaceAll(/=([0-9a-fA-F]{2})/g,function(b,E){return String.fromCharCode(parseInt(E,16))}),i(g,v);try{v=atob(v)}catch{}return i(g,v)})}return""}function sF(t,e){const n=new Headers;if(!t||!e||typeof e!="object")return n;for(const r in e){const i=e[r];i!==void 0&&n.append(r,i)}return n}function up(t){return URL.parse(t)?.origin??null}function lF({responseHeaders:t,isHttp:e,rangeChunkSize:n,disableRange:r}){const i={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(t.get("Content-Length"),10);return!Number.isInteger(a)||(i.suggestedLength=a,a<=2*n)||r||!e||t.get("Accept-Ranges")!=="bytes"||(t.get("Content-Encoding")||"identity")!=="identity"||(i.allowRangeRequests=!0),i}function cF(t){const e=t.get("Content-Disposition");if(e){let n=Ute(e);if(n.includes("%"))try{n=decodeURIComponent(n)}catch{}if(cp(n))return n}return null}function tc(t,e){return new Ol(`Unexpected server response (${t}) while retrieving PDF "${e}".`,t,t===404||t===0&&e.startsWith("file:"))}function uF(t){return t===200||t===206}function dF(t,e,n){return{method:"GET",headers:t,signal:n.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function pF(t){return t instanceof Uint8Array?t.buffer:t instanceof ArrayBuffer?t:(Pe(`getArrayBuffer - unexpected data format: ${t}`),new Uint8Array(t).buffer)}class $te{_responseOrigin=null;constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.headers=sF(this.isHttp,e.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Lt(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new zte(this),this._fullRequestReader}getRangeReader(e,n){if(n<=this._progressiveDataLength)return null;const r=new jte(this,e,n);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}}class zte{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const n=e.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange;const r=new Headers(e.headers),i=n.url;fetch(i,dF(r,this._withCredentials,this._abortController)).then(a=>{if(e._responseOrigin=up(a.url),!uF(a.status))throw tc(a.status,i);this._reader=a.body.getReader(),this._headersCapability.resolve();const o=a.headers,{allowRangeRequests:l,suggestedLength:u}=lF({responseHeaders:o,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=l,this._contentLength=u||this._contentLength,this._filename=cF(o),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new si("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:e,done:n}=await this._reader.read();return n?{value:e,done:n}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:pF(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}class jte{constructor(e,n,r){this._stream=e,this._reader=null,this._loaded=0;const i=e.source;this._withCredentials=i.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!i.disableStream,this._abortController=new AbortController;const a=new Headers(e.headers);a.append("Range",`bytes=${n}-${r-1}`);const o=i.url;fetch(o,dF(a,this._withCredentials,this._abortController)).then(l=>{const u=up(l.url);if(u!==e._responseOrigin)throw new Error(`Expected range response-origin "${u}" to match "${e._responseOrigin}".`);if(!uF(l.status))throw tc(l.status,o);this._readCapability.resolve(),this._reader=l.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:n}=await this._reader.read();return n?{value:e,done:n}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded}),{value:pF(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}const LE=200,DE=206;function Hte(t){const e=t.response;return typeof e!="string"?e:Kl(e).buffer}class Gte{_responseOrigin=null;constructor({url:e,httpHeaders:n,withCredentials:r}){this.url=e,this.isHttp=/^https?:/i.test(e),this.headers=sF(this.isHttp,n),this.withCredentials=r||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(e){const n=new XMLHttpRequest,r=this.currXhrId++,i=this.pendingRequests[r]={xhr:n};n.open("GET",this.url),n.withCredentials=this.withCredentials;for(const[a,o]of this.headers)n.setRequestHeader(a,o);return this.isHttp&&"begin"in e&&"end"in e?(n.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),i.expectedStatus=DE):i.expectedStatus=LE,n.responseType="arraybuffer",Lt(e.onError,"Expected `onError` callback to be provided."),n.onerror=()=>{e.onError(n.status)},n.onreadystatechange=this.onStateChange.bind(this,r),n.onprogress=this.onProgress.bind(this,r),i.onHeadersReceived=e.onHeadersReceived,i.onDone=e.onDone,i.onError=e.onError,i.onProgress=e.onProgress,n.send(null),r}onProgress(e,n){const r=this.pendingRequests[e];r&&r.onProgress?.(n)}onStateChange(e,n){const r=this.pendingRequests[e];if(!r)return;const i=r.xhr;if(i.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),i.readyState!==4||!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],i.status===0&&this.isHttp){r.onError(i.status);return}const a=i.status||LE;if(!(a===LE&&r.expectedStatus===DE)&&a!==r.expectedStatus){r.onError(i.status);return}const l=Hte(i);if(a===DE){const u=i.getResponseHeader("Content-Range"),d=/bytes (\d+)-(\d+)\/(\d+)/.exec(u);d?r.onDone({begin:parseInt(d[1],10),chunk:l}):(Pe('Missing or invalid "Content-Range" header.'),r.onError(0))}else l?r.onDone({begin:0,chunk:l}):r.onError(i.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const n=this.pendingRequests[e].xhr;delete this.pendingRequests[e],n.abort()}}class qte{constructor(e){this._source=e,this._manager=new Gte(e),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const n=this._rangeRequestReaders.indexOf(e);n>=0&&this._rangeRequestReaders.splice(n,1)}getFullReader(){return Lt(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new Vte(this._manager,this._source),this._fullRequestReader}getRangeReader(e,n){const r=new Wte(this._manager,e,n);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}}class Vte{constructor(e,n){this._manager=e,this._url=n.url,this._fullRequestId=e.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,n=this._manager.getRequestXhr(e);this._manager._responseOrigin=up(n.responseURL);const r=n.getAllResponseHeaders(),i=new Headers(r?r.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(l=>{const[u,...d]=l.split(": ");return[u,d.join(": ")]}):[]),{allowRangeRequests:a,suggestedLength:o}=lF({responseHeaders:i,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});a&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=cF(i),this._isRangeSupported&&this._manager.abortRequest(e),this._headersCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=tc(e,this._url),this._headersCapability.reject(this._storedError);for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersCapability.promise}async read(){if(await this._headersCapability.promise,this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersCapability.reject(e);for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class Wte{constructor(e,n,r){this._manager=e,this._url=e.url,this._requestId=e.request({begin:n,end:r,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){const e=up(this._manager.getRequestXhr(this._requestId)?.responseURL);e!==this._manager._responseOrigin&&(this._storedError=new Error(`Expected range response-origin "${e}" to match "${this._manager._responseOrigin}".`),this._onError(0))}_close(){this.onClosed?.(this)}_onDone(e){const n=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:n,done:!1}):this._queuedChunk=n,this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError??=tc(e,this._url);for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const Yte=/^[a-z][a-z0-9\-+.]+:/i;function Xte(t){if(Yte.test(t))return new URL(t);const e=process.getBuiltinModule("url");return new URL(e.pathToFileURL(t))}class Kte{constructor(e){this.source=e,this.url=Xte(e.url),Lt(this.url.protocol==="file:","PDFNodeStream only supports file:// URLs."),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Lt(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new Zte(this),this._fullRequestReader}getRangeReader(e,n){if(n<=this._progressiveDataLength)return null;const r=new Qte(this,e,n);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}}class Zte{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const n=e.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers();const r=process.getBuiltinModule("fs");r.promises.lstat(this._url).then(i=>{this._contentLength=i.size,this._setReadableStream(r.createReadStream(this._url)),this._headersCapability.resolve()},i=>{i.code==="ENOENT"&&(i=tc(0,this._url.href)),this._storedError=i,this._headersCapability.reject(i)})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){if(!this._readableStream){this._error(e);return}this._readableStream.destroy(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",n=>{this._error(n)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new si("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class Qte{constructor(e,n,r){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const i=e.source;this._isStreamingSupported=!i.disableStream;const a=process.getBuiltinModule("fs");this._setReadableStream(a.createReadStream(this._url,{start:n,end:r-1}))}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){if(!this._readableStream){this._error(e);return}this._readableStream.destroy(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",n=>{this._error(n)}),this._storedError&&this._readableStream.destroy(this._storedError)}}const nl=Symbol("INITIAL_DATA");class fF{#e=Object.create(null);#t(e){return this.#e[e]||={...Promise.withResolvers(),data:nl}}get(e,n=null){if(n){const i=this.#t(e);return i.promise.then(()=>n(i.data)),null}const r=this.#e[e];if(!r||r.data===nl)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return r.data}has(e){const n=this.#e[e];return!!n&&n.data!==nl}delete(e){const n=this.#e[e];return!n||n.data===nl?!1:(delete this.#e[e],!0)}resolve(e,n=null){const r=this.#t(e);r.data=n,r.resolve()}clear(){for(const e in this.#e){const{data:n}=this.#e[e];n?.bitmap?.close()}this.#e=Object.create(null)}*[Symbol.iterator](){for(const e in this.#e){const{data:n}=this.#e[e];n!==nl&&(yield[e,n])}}}const Jte=1e5,O1=30;let Ll=class Wn{#e=Promise.withResolvers();#t=null;#n=!1;#r=!!globalThis.FontInspector?.enabled;#a=null;#i=null;#l=0;#s=0;#d=null;#c=null;#p=0;#u=0;#f=Object.create(null);#o=[];#h=null;#m=[];#g=new WeakMap;#b=null;static#y=new Map;static#v=new Map;static#w=new WeakMap;static#x=null;static#_=new Set;constructor({textContentSource:e,container:n,viewport:r}){if(e instanceof ReadableStream)this.#h=e;else if(typeof e=="object")this.#h=new ReadableStream({start(u){u.enqueue(e),u.close()}});else throw new Error('No "textContentSource" parameter specified.');this.#t=this.#c=n,this.#u=r.scale*fr.pixelRatio,this.#p=r.rotation,this.#i={div:null,properties:null,ctx:null};const{pageWidth:i,pageHeight:a,pageX:o,pageY:l}=r.rawDims;this.#b=[1,0,0,-1,-o,l+a],this.#s=i,this.#l=a,Wn.#I(),Wi(n,r),this.#e.promise.finally(()=>{Wn.#_.delete(this),this.#i=null,this.#f=null}).catch(()=>{})}static get fontFamilyMap(){const{isWindows:e,isFirefox:n}=qt.platform;return ze(this,"fontFamilyMap",new Map([["sans-serif",`${e&&n?"Calibri, ":""}sans-serif`],["monospace",`${e&&n?"Lucida Console, ":""}monospace`]]))}render(){const e=()=>{this.#d.read().then(({value:n,done:r})=>{if(r){this.#e.resolve();return}this.#a??=n.lang,Object.assign(this.#f,n.styles),this.#C(n.items),e()},this.#e.reject)};return this.#d=this.#h.getReader(),Wn.#_.add(this),e(),this.#e.promise}update({viewport:e,onBefore:n=null}){const r=e.scale*fr.pixelRatio,i=e.rotation;if(i!==this.#p&&(n?.(),this.#p=i,Wi(this.#c,{rotation:i})),r!==this.#u){n?.(),this.#u=r;const a={div:null,properties:null,ctx:Wn.#R(this.#a)};for(const o of this.#m)a.properties=this.#g.get(o),a.div=o,this.#S(a)}}cancel(){const e=new si("TextLayer task cancelled.");this.#d?.cancel(e).catch(()=>{}),this.#d=null,this.#e.reject(e)}get textDivs(){return this.#m}get textContentItemsStr(){return this.#o}#C(e){if(this.#n)return;this.#i.ctx??=Wn.#R(this.#a);const n=this.#m,r=this.#o;for(const i of e){if(n.length>Jte){Pe("Ignoring additional textDivs for performance reasons."),this.#n=!0;return}if(i.str===void 0){if(i.type==="beginMarkedContentProps"||i.type==="beginMarkedContent"){const a=this.#t;this.#t=document.createElement("span"),this.#t.classList.add("markedContent"),i.id!==null&&this.#t.setAttribute("id",`${i.id}`),a.append(this.#t)}else i.type==="endMarkedContent"&&(this.#t=this.#t.parentNode);continue}r.push(i.str),this.#k(i)}}#k(e){const n=document.createElement("span"),r={angle:0,canvasWidth:0,hasText:e.str!=="",hasEOL:e.hasEOL,fontSize:0};this.#m.push(n);const i=Ce.transform(this.#b,e.transform);let a=Math.atan2(i[1],i[0]);const o=this.#f[e.fontName];o.vertical&&(a+=Math.PI/2);let l=this.#r&&o.fontSubstitution||o.fontFamily;l=Wn.fontFamilyMap.get(l)||l;const u=Math.hypot(i[2],i[3]),d=u*Wn.#O(l,o,this.#a);let p,f;a===0?(p=i[4],f=i[5]-d):(p=i[4]+d*Math.sin(a),f=i[5]-d*Math.cos(a));const g="calc(var(--total-scale-factor) *",m=n.style;this.#t===this.#c?(m.left=`${(100*p/this.#s).toFixed(2)}%`,m.top=`${(100*f/this.#l).toFixed(2)}%`):(m.left=`${g}${p.toFixed(2)}px)`,m.top=`${g}${f.toFixed(2)}px)`),m.fontSize=`${g}${(Wn.#x*u).toFixed(2)}px)`,m.fontFamily=l,r.fontSize=u,n.setAttribute("role","presentation"),n.textContent=e.str,n.dir=e.dir,this.#r&&(n.dataset.fontName=o.fontSubstitutionLoadedName||e.fontName),a!==0&&(r.angle=a*(180/Math.PI));let v=!1;if(e.str.length>1)v=!0;else if(e.str!==" "&&e.transform[0]!==e.transform[3]){const b=Math.abs(e.transform[0]),E=Math.abs(e.transform[3]);b!==E&&Math.max(b,E)/Math.min(b,E)>1.5&&(v=!0)}if(v&&(r.canvasWidth=o.vertical?e.height:e.width),this.#g.set(n,r),this.#i.div=n,this.#i.properties=r,this.#S(this.#i),r.hasText&&this.#t.append(n),r.hasEOL){const b=document.createElement("br");b.setAttribute("role","presentation"),this.#t.append(b)}}#S(e){const{div:n,properties:r,ctx:i}=e,{style:a}=n;let o="";if(Wn.#x>1&&(o=`scale(${1/Wn.#x})`),r.canvasWidth!==0&&r.hasText){const{fontFamily:l}=a,{canvasWidth:u,fontSize:d}=r;Wn.#T(i,d*this.#u,l);const{width:p}=i.measureText(n.textContent);p>0&&(o=`scaleX(${u*this.#u/p}) ${o}`)}r.angle!==0&&(o=`rotate(${r.angle}deg) ${o}`),o.length>0&&(a.transform=o)}static cleanup(){if(!(this.#_.size>0)){this.#y.clear();for(const{canvas:e}of this.#v.values())e.remove();this.#v.clear()}}static#R(e=null){let n=this.#v.get(e||="");if(!n){const r=document.createElement("canvas");r.className="hiddenCanvasElement",r.lang=e,document.body.append(r),n=r.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#v.set(e,n),this.#w.set(n,{size:0,family:""})}return n}static#T(e,n,r){const i=this.#w.get(e);n===i.size&&r===i.family||(e.font=`${n}px ${r}`,i.size=n,i.family=r)}static#I(){if(this.#x!==null)return;const e=document.createElement("div");e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize="1px",e.style.position="absolute",e.textContent="X",document.body.append(e),this.#x=e.getBoundingClientRect().height,e.remove()}static#O(e,n,r){const i=this.#y.get(e);if(i)return i;const a=this.#R(r);a.canvas.width=a.canvas.height=O1,this.#T(a,O1,e);const o=a.measureText(""),l=o.fontBoundingBoxAscent,u=Math.abs(o.fontBoundingBoxDescent);a.canvas.width=a.canvas.height=0;let d=.8;return l?d=l/(l+u):(qt.platform.isFirefox&&Pe("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."),n.ascent?d=n.ascent:n.descent&&(d=1+n.descent)),this.#y.set(e,d),d}};class Dl{static textContent(e){const n=[],r={items:n,styles:Object.create(null)};function i(a){if(!a)return;let o=null;const l=a.name;if(l==="#text")o=a.value;else if(Dl.shouldBuildText(l))a?.attributes?.textContent?o=a.attributes.textContent:a.value&&(o=a.value);else return;if(o!==null&&n.push({str:o}),!!a.children)for(const u of a.children)i(u)}return i(e),r}static shouldBuildText(e){return!(e==="textarea"||e==="input"||e==="option"||e==="select")}}const ene=100;function US(t={}){typeof t=="string"||t instanceof URL?t={url:t}:(t instanceof ArrayBuffer||ArrayBuffer.isView(t))&&(t={data:t});const e=new $S,{docId:n}=e,r=t.url?ute(t.url):null,i=t.data?dte(t.data):null,a=t.httpHeaders||null,o=t.withCredentials===!0,l=t.password??null,u=t.range instanceof zS?t.range:null,d=Number.isInteger(t.rangeChunkSize)&&t.rangeChunkSize>0?t.rangeChunkSize:2**16;let p=t.worker instanceof ns?t.worker:null;const f=t.verbosity,g=typeof t.docBaseUrl=="string"&&!Ql(t.docBaseUrl)?t.docBaseUrl:null,m=Bu(t.cMapUrl),v=t.cMapPacked!==!1,b=t.CMapReaderFactory||(cn?yte:E1),E=Bu(t.iccUrl),S=Bu(t.standardFontDataUrl),_=t.StandardFontDataFactory||(cn?vte:w1),w=Bu(t.wasmUrl),A=t.WasmFactory||(cn?Ete:S1),k=t.stopAtErrors!==!0,R=Number.isInteger(t.maxImageSize)&&t.maxImageSize>-1?t.maxImageSize:-1,I=t.isEvalSupported!==!1,O=typeof t.isOffscreenCanvasSupported=="boolean"?t.isOffscreenCanvasSupported:!cn,L=typeof t.isImageDecoderSupported=="boolean"?t.isImageDecoderSupported:!cn&&(qt.platform.isFirefox||!globalThis.chrome),F=Number.isInteger(t.canvasMaxAreaInBytes)?t.canvasMaxAreaInBytes:-1,j=typeof t.disableFontFace=="boolean"?t.disableFontFace:cn,H=t.fontExtraProperties===!0,G=t.enableXfa===!0,D=t.ownerDocument||globalThis.document,z=t.disableRange===!0,B=t.disableStream===!0,U=t.disableAutoFetch===!0,M=t.pdfBug===!0,q=t.CanvasFactory||(cn?bte:hte),Y=t.FilterFactory||(cn?mte:gte),$=t.enableHWA===!0,V=t.useWasm!==!1,X=u?u.length:t.length??NaN,Q=typeof t.useSystemFonts=="boolean"?t.useSystemFonts:!cn&&!j,te=typeof t.useWorkerFetch=="boolean"?t.useWorkerFetch:!!(b===E1&&_===w1&&A===S1&&m&&S&&w&&ul(m,document.baseURI)&&ul(S,document.baseURI)&&ul(w,document.baseURI)),ie=null;Vee(f);const W={canvasFactory:new q({ownerDocument:D,enableHWA:$}),filterFactory:new Y({docId:n,ownerDocument:D}),cMapReaderFactory:te?null:new b({baseUrl:m,isCompressed:v}),standardFontDataFactory:te?null:new _({baseUrl:S}),wasmFactory:te?null:new A({baseUrl:w})};p||(p=ns.create({verbosity:f,port:Gi.workerPort}),e._worker=p);const Z={docId:n,apiVersion:"5.3.31",data:i,password:l,disableAutoFetch:U,rangeChunkSize:d,length:X,docBaseUrl:g,enableXfa:G,evaluatorOptions:{maxImageSize:R,disableFontFace:j,ignoreErrors:k,isEvalSupported:I,isOffscreenCanvasSupported:O,isImageDecoderSupported:L,canvasMaxAreaInBytes:F,fontExtraProperties:H,useSystemFonts:Q,useWasm:V,useWorkerFetch:te,cMapUrl:m,iccUrl:E,standardFontDataUrl:S,wasmUrl:w}},ne={ownerDocument:D,pdfBug:M,styleElement:ie,loadingParams:{disableAutoFetch:U,enableXfa:G}};return p.promise.then(function(){if(e.destroyed)throw new Error("Loading aborted");if(p.destroyed)throw new Error("Worker was destroyed");const se=p.messageHandler.sendWithPromise("GetDocRequest",Z,i?[i.buffer]:null);let de;if(u)de=new Pte(u,{disableRange:z,disableStream:B});else if(!i){if(!r)throw new Error("getDocument - no `url` parameter provided.");const ce=ul(r)?$te:cn?Kte:qte;de=new ce({url:r,length:X,httpHeaders:a,withCredentials:o,rangeChunkSize:d,disableRange:z,disableStream:B})}return se.then(ce=>{if(e.destroyed)throw new Error("Loading aborted");if(p.destroyed)throw new Error("Worker was destroyed");const le=new dl(n,ce,p.port),he=new rne(le,e,de,ne,W);e._transport=he,le.send("Ready",null)})}).catch(e._capability.reject),e}class $S{static#e=0;_capability=Promise.withResolvers();_transport=null;_worker=null;docId=`d${$S.#e++}`;destroyed=!1;onPassword=null;onProgress=null;get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(e){throw this._worker?.port&&delete this._worker._pendingDestroy,e}this._transport=null,this._worker?.destroy(),this._worker=null}async getData(){return this._transport.getData()}}let zS=class{#e=Promise.withResolvers();#t=[];#n=[];#r=[];#a=[];constructor(e,n,r=!1,i=null){this.length=e,this.initialData=n,this.progressiveDone=r,this.contentDispositionFilename=i}addRangeListener(e){this.#a.push(e)}addProgressListener(e){this.#r.push(e)}addProgressiveReadListener(e){this.#n.push(e)}addProgressiveDoneListener(e){this.#t.push(e)}onDataRange(e,n){for(const r of this.#a)r(e,n)}onDataProgress(e,n){this.#e.promise.then(()=>{for(const r of this.#r)r(e,n)})}onDataProgressiveRead(e){this.#e.promise.then(()=>{for(const n of this.#n)n(e)})}onDataProgressiveDone(){this.#e.promise.then(()=>{for(const e of this.#t)e()})}transportReady(){this.#e.resolve()}requestDataRange(e,n){et("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}};class tne{constructor(e,n){this._pdfInfo=e,this._transport=n}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return ze(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:e="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(e);return this._transport.getOptionalContentConfig(n)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(e){return this._transport.cachedPageNumber(e)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class nne{#e=!1;constructor(e,n,r,i=!1){this._pageIndex=e,this._pageInfo=n,this._transport=r,this._stats=i?new b1:null,this._pdfBug=i,this.commonObjs=r.commonObjs,this.objs=new fF,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:n=this.rotate,offsetX:r=0,offsetY:i=0,dontFlip:a=!1}={}){return new Zl({viewBox:this.view,userUnit:this.userUnit,scale:e,rotation:n,offsetX:r,offsetY:i,dontFlip:a})}getAnnotations({intent:e="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,n)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return ze(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,viewport:n,intent:r="display",annotationMode:i=Dr.ENABLE,transform:a=null,background:o=null,optionalContentConfigPromise:l=null,annotationCanvasMap:u=null,pageColors:d=null,printAnnotationStorage:p=null,isEditing:f=!1}){this._stats?.time("Overall");const g=this._transport.getRenderingIntent(r,i,p,f),{renderingIntent:m,cacheKey:v}=g;this.#e=!1,l||=this._transport.getOptionalContentConfig(m);let b=this._intentStates.get(v);b||(b=Object.create(null),this._intentStates.set(v,b)),b.streamReaderCancelTimeout&&(clearTimeout(b.streamReaderCancelTimeout),b.streamReaderCancelTimeout=null);const E=!!(m&kn.PRINT);b.displayReadyCapability||(b.displayReadyCapability=Promise.withResolvers(),b.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(g));const S=A=>{b.renderTasks.delete(_),E&&(this.#e=!0),this.#t(),A?(_.capability.reject(A),this._abortOperatorList({intentState:b,reason:A instanceof Error?A:new Error(A)})):_.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},_=new Po({callback:S,params:{canvasContext:e,viewport:n,transform:a,background:o},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:u,operatorList:b.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!E,pdfBug:this._pdfBug,pageColors:d});(b.renderTasks||=new Set).add(_);const w=_.task;return Promise.all([b.displayReadyCapability.promise,l]).then(([A,k])=>{if(this.destroyed){S();return}if(this._stats?.time("Rendering"),!(k.renderingIntent&m))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");_.initializeGraphics({transparency:A,optionalContentConfig:k}),_.operatorListChanged()}).catch(S),w}getOperatorList({intent:e="display",annotationMode:n=Dr.ENABLE,printAnnotationStorage:r=null,isEditing:i=!1}={}){function a(){l.operatorList.lastChunk&&(l.opListReadCapability.resolve(l.operatorList),l.renderTasks.delete(u))}const o=this._transport.getRenderingIntent(e,n,r,i,!0);let l=this._intentStates.get(o.cacheKey);l||(l=Object.create(null),this._intentStates.set(o.cacheKey,l));let u;return l.opListReadCapability||(u=Object.create(null),u.operatorListChanged=a,l.opListReadCapability=Promise.withResolvers(),(l.renderTasks||=new Set).add(u),l.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(o)),l.opListReadCapability.promise}streamTextContent({includeMarkedContent:e=!1,disableNormalization:n=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:e===!0,disableNormalization:n===!0},{highWaterMark:100,size(i){return i.items.length}})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then(r=>Dl.textContent(r));const n=this.streamTextContent(e);return new Promise(function(r,i){function a(){o.read().then(function({value:u,done:d}){if(d){r(l);return}l.lang??=u.lang,Object.assign(l.styles,u.styles),l.items.push(...u.items),a()},i)}const o=n.getReader(),l={items:[],styles:Object.create(null),lang:null};a()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const n of this._intentStates.values())if(this._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),!n.opListReadCapability)for(const r of n.renderTasks)e.push(r.completed),r.cancel();return this.objs.clear(),this.#e=!1,Promise.all(e)}cleanup(e=!1){this.#e=!0;const n=this.#t();return e&&n&&(this._stats&&=new b1),n}#t(){if(!this.#e||this.destroyed)return!1;for(const{renderTasks:e,operatorList:n}of this._intentStates.values())if(e.size>0||!n.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#e=!1,!0}_startRenderPage(e,n){const r=this._intentStates.get(n);r&&(this._stats?.timeEnd("Page Request"),r.displayReadyCapability?.resolve(e))}_renderPageChunk(e,n){for(let r=0,i=e.length;r<i;r++)n.operatorList.fnArray.push(e.fnArray[r]),n.operatorList.argsArray.push(e.argsArray[r]);n.operatorList.lastChunk=e.lastChunk,n.operatorList.separateAnnots=e.separateAnnots;for(const r of n.renderTasks)r.operatorListChanged();e.lastChunk&&this.#t()}_pumpOperatorList({renderingIntent:e,cacheKey:n,annotationStorageSerializable:r,modifiedIds:i}){const{map:a,transfer:o}=r,u=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:e,cacheKey:n,annotationStorage:a,modifiedIds:i},o).getReader(),d=this._intentStates.get(n);d.streamReader=u;const p=()=>{u.read().then(({value:f,done:g})=>{if(g){d.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(f,d),p())},f=>{if(d.streamReader=null,!this._transport.destroyed){if(d.operatorList){d.operatorList.lastChunk=!0;for(const g of d.renderTasks)g.operatorListChanged();this.#t()}if(d.displayReadyCapability)d.displayReadyCapability.reject(f);else if(d.opListReadCapability)d.opListReadCapability.reject(f);else throw f}})};p()}_abortOperatorList({intentState:e,reason:n,force:r=!1}){if(e.streamReader){if(e.streamReaderCancelTimeout&&(clearTimeout(e.streamReaderCancelTimeout),e.streamReaderCancelTimeout=null),!r){if(e.renderTasks.size>0)return;if(n instanceof lp){let i=ene;n.extraDelay>0&&n.extraDelay<1e3&&(i+=n.extraDelay),e.streamReaderCancelTimeout=setTimeout(()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:n,force:!0})},i);return}}if(e.streamReader.cancel(new si(n.message)).catch(()=>{}),e.streamReader=null,!this._transport.destroyed){for(const[i,a]of this._intentStates)if(a===e){this._intentStates.delete(i);break}this.cleanup()}}}get stats(){return this._stats}}var zi,or,ei,xa,Ad,Aa,_a,un,Ju,hF,gF,pl,qo,ed;const dt=class dt{constructor({name:e=null,port:n=null,verbosity:r=Wee()}={}){Ar(this,un);Ar(this,zi,Promise.withResolvers());Ar(this,or,null);Ar(this,ei,null);Ar(this,xa,null);if(this.name=e,this.destroyed=!1,this.verbosity=r,n){if(ut(dt,_a).has(n))throw new Error("Cannot use more than one PDFWorker per port.");ut(dt,_a).set(n,this),_r(this,un,hF).call(this,n)}else _r(this,un,gF).call(this)}get promise(){return ut(this,zi).promise}get port(){return ut(this,ei)}get messageHandler(){return ut(this,or)}destroy(){this.destroyed=!0,ut(this,xa)?.terminate(),bn(this,xa,null),ut(dt,_a).delete(ut(this,ei)),bn(this,ei,null),ut(this,or)?.destroy(),bn(this,or,null)}static create(e){const n=ut(this,_a).get(e?.port);if(n){if(n._pendingDestroy)throw new Error("PDFWorker.create - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return n}return new dt(e)}static get workerSrc(){if(Gi.workerSrc)return Gi.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return ze(this,"_setupFakeWorkerGlobal",(async()=>ut(this,qo,ed)?ut(this,qo,ed):(await import(this.workerSrc)).WorkerMessageHandler)())}};zi=new WeakMap,or=new WeakMap,ei=new WeakMap,xa=new WeakMap,Ad=new WeakMap,Aa=new WeakMap,_a=new WeakMap,un=new WeakSet,Ju=function(){ut(this,zi).resolve(),ut(this,or).send("configure",{verbosity:this.verbosity})},hF=function(e){bn(this,ei,e),bn(this,or,new dl("main","worker",e)),ut(this,or).on("ready",()=>{}),_r(this,un,Ju).call(this)},gF=function(){if(ut(dt,Aa)||ut(dt,qo,ed)){_r(this,un,pl).call(this);return}let{workerSrc:e}=dt;try{dt._isSameOrigin(window.location,e)||(e=dt._createCDNWrapper(new URL(e,window.location).href));const n=new Worker(e,{type:"module"}),r=new dl("main","worker",n),i=()=>{a.abort(),r.destroy(),n.terminate(),this.destroyed?ut(this,zi).reject(new Error("Worker was destroyed")):_r(this,un,pl).call(this)},a=new AbortController;n.addEventListener("error",()=>{ut(this,xa)||i()},{signal:a.signal}),r.on("test",l=>{if(a.abort(),this.destroyed||!l){i();return}bn(this,or,r),bn(this,ei,n),bn(this,xa,n),_r(this,un,Ju).call(this)}),r.on("ready",l=>{if(a.abort(),this.destroyed){i();return}try{o()}catch{_r(this,un,pl).call(this)}});const o=()=>{const l=new Uint8Array;r.send("test",l,[l.buffer])};o();return}catch{sp("The worker has been disabled.")}_r(this,un,pl).call(this)},pl=function(){ut(dt,Aa)||(Pe("Setting up fake worker."),bn(dt,Aa,!0)),dt._setupFakeWorkerGlobal.then(e=>{if(this.destroyed){ut(this,zi).reject(new Error("Worker was destroyed"));return}const n=new fte;bn(this,ei,n);const r=`fake${bA(dt,Ad)._++}`,i=new dl(r+"_worker",r,n);e.setup(i,n),bn(this,or,new dl(r,r+"_worker",n)),_r(this,un,Ju).call(this)}).catch(e=>{ut(this,zi).reject(new Error(`Setting up fake worker failed: "${e.message}".`))})},qo=new WeakSet,ed=function(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}},Ar(dt,qo),Ar(dt,Ad,0),Ar(dt,Aa,!1),Ar(dt,_a,new WeakMap),cn&&(bn(dt,Aa,!0),Gi.workerSrc||="./pdf.worker.mjs"),dt._isSameOrigin=(e,n)=>{const r=URL.parse(e);if(!r?.origin||r.origin==="null")return!1;const i=new URL(n,r);return r.origin===i.origin},dt._createCDNWrapper=e=>{const n=`await import("${e}");`;return URL.createObjectURL(new Blob([n],{type:"text/javascript"}))},dt.fromPort=e=>{if(nte("`PDFWorker.fromPort` - please use `PDFWorker.create` instead."),!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return dt.create(e)};let ns=dt;class rne{#e=new Map;#t=new Map;#n=new Map;#r=new Map;#a=null;constructor(e,n,r,i,a){this.messageHandler=e,this.loadingTask=n,this.commonObjs=new fF,this.fontLoader=new lte({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=a.canvasFactory,this.filterFactory=a.filterFactory,this.cMapReaderFactory=a.cMapReaderFactory,this.standardFontDataFactory=a.standardFontDataFactory,this.wasmFactory=a.wasmFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}#i(e,n=null){const r=this.#e.get(e);if(r)return r;const i=this.messageHandler.sendWithPromise(e,n);return this.#e.set(e,i),i}get annotationStorage(){return ze(this,"annotationStorage",new MS)}getRenderingIntent(e,n=Dr.ENABLE,r=null,i=!1,a=!1){let o=kn.DISPLAY,l=bw;switch(e){case"any":o=kn.ANY;break;case"display":break;case"print":o=kn.PRINT;break;default:Pe(`getRenderingIntent - invalid intent: ${e}`)}const u=o&kn.PRINT&&r instanceof eF?r:this.annotationStorage;switch(n){case Dr.DISABLE:o+=kn.ANNOTATIONS_DISABLE;break;case Dr.ENABLE:break;case Dr.ENABLE_FORMS:o+=kn.ANNOTATIONS_FORMS;break;case Dr.ENABLE_STORAGE:o+=kn.ANNOTATIONS_STORAGE,l=u.serializable;break;default:Pe(`getRenderingIntent - invalid annotationMode: ${n}`)}i&&(o+=kn.IS_EDITING),a&&(o+=kn.OPLIST);const{ids:d,hash:p}=u.modifiedIds,f=[o,l.hash,p];return{renderingIntent:o,cacheKey:f.join("_"),annotationStorageSerializable:l,modifiedIds:d}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#a?.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const r of this.#t.values())e.push(r._destroy());this.#t.clear(),this.#n.clear(),this.#r.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const n=this.messageHandler.sendWithPromise("Terminate",null);return e.push(n),Promise.all(e).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),Ll.cleanup(),this._networkStream?.cancelAllRequests(new si("Worker was terminated.")),this.messageHandler?.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:n}=this;e.on("GetReader",(r,i)=>{Lt(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=a=>{this._lastProgress={loaded:a.loaded,total:a.total}},i.onPull=()=>{this._fullReader.read().then(function({value:a,done:o}){if(o){i.close();return}Lt(a instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(a),1,[a])}).catch(a=>{i.error(a)})},i.onCancel=a=>{this._fullReader.cancel(a),i.ready.catch(o=>{if(!this.destroyed)throw o})}}),e.on("ReaderHeadersReady",async r=>{await this._fullReader.headersReady;const{isStreamingSupported:i,isRangeSupported:a,contentLength:o}=this._fullReader;return(!i||!a)&&(this._lastProgress&&n.onProgress?.(this._lastProgress),this._fullReader.onProgress=l=>{n.onProgress?.({loaded:l.loaded,total:l.total})}),{isStreamingSupported:i,isRangeSupported:a,contentLength:o}}),e.on("GetRangeReader",(r,i)=>{Lt(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const a=this._networkStream.getRangeReader(r.begin,r.end);if(!a){i.close();return}i.onPull=()=>{a.read().then(function({value:o,done:l}){if(l){i.close();return}Lt(o instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(o),1,[o])}).catch(o=>{i.error(o)})},i.onCancel=o=>{a.cancel(o),i.ready.catch(l=>{if(!this.destroyed)throw l})}}),e.on("GetDoc",({pdfInfo:r})=>{this._numPages=r.numPages,this._htmlForXfa=r.htmlForXfa,delete r.htmlForXfa,n._capability.resolve(new tne(r,this))}),e.on("DocException",r=>{n._capability.reject(vn(r))}),e.on("PasswordRequest",r=>{this.#a=Promise.withResolvers();try{if(!n.onPassword)throw vn(r);const i=a=>{a instanceof Error?this.#a.reject(a):this.#a.resolve({password:a})};n.onPassword(i,r.code)}catch(i){this.#a.reject(i)}return this.#a.promise}),e.on("DataLoaded",r=>{n.onProgress?.({loaded:r.length,total:r.length}),this.downloadInfoCapability.resolve(r)}),e.on("StartRenderPage",r=>{if(this.destroyed)return;this.#t.get(r.pageIndex)._startRenderPage(r.transparency,r.cacheKey)}),e.on("commonobj",([r,i,a])=>{if(this.destroyed||this.commonObjs.has(r))return null;switch(i){case"Font":if("error"in a){const d=a.error;Pe(`Error during font loading: ${d}`),this.commonObjs.resolve(r,d);break}const o=this._params.pdfBug&&globalThis.FontInspector?.enabled?(d,p)=>globalThis.FontInspector.fontAdded(d,p):null,l=new cte(a,o);this.fontLoader.bind(l).catch(()=>e.sendWithPromise("FontFallback",{id:r})).finally(()=>{!l.fontExtraProperties&&l.data&&(l.data=null),this.commonObjs.resolve(r,l)});break;case"CopyLocalImage":const{imageRef:u}=a;Lt(u,"The imageRef must be defined.");for(const d of this.#t.values())for(const[,p]of d.objs)if(p?.ref===u)return p.dataLen?(this.commonObjs.resolve(r,structuredClone(p)),p.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(r,a);break;default:throw new Error(`Got unknown common object type ${i}`)}return null}),e.on("obj",([r,i,a,o])=>{if(this.destroyed)return;const l=this.#t.get(i);if(!l.objs.has(r)){if(l._intentStates.size===0){o?.bitmap?.close();return}switch(a){case"Image":case"Pattern":l.objs.resolve(r,o);break;default:throw new Error(`Got unknown object type ${a}`)}}}),e.on("DocProgress",r=>{this.destroyed||n.onProgress?.({loaded:r.loaded,total:r.total})}),e.on("FetchBinaryData",async r=>{if(this.destroyed)throw new Error("Worker was destroyed.");const i=this[r.type];if(!i)throw new Error(`${r.type} not initialized, see the \`useWorkerFetch\` parameter.`);return i.fetch(r)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&Pe("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:e,transfer:n}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:this._fullReader?.filename??null},n).finally(()=>{this.annotationStorage.resetModified()})}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const n=e-1,r=this.#n.get(n);if(r)return r;const i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(a=>{if(this.destroyed)throw new Error("Transport destroyed");a.refStr&&this.#r.set(a.refStr,e);const o=new nne(n,a,this,this._params.pdfBug);return this.#t.set(n,o),o});return this.#n.set(n,i),i}getPageIndex(e){return yw(e)?this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(e,n){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:n})}getFieldObjects(){return this.#i("GetFieldObjects")}hasJSActions(){return this.#i("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return typeof e!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#i("GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(e){return this.#i("GetOptionalContentConfig").then(n=>new Mte(n,e))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const e="GetMetadata",n=this.#e.get(e);if(n)return n;const r=this.messageHandler.sendWithPromise(e,null).then(i=>({info:i[0],metadata:i[1]?new Lte(i[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(e,r),r}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const n of this.#t.values())if(!n.cleanup())throw new Error(`startCleanup: Page ${n.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),Ll.cleanup()}}cachedPageNumber(e){if(!yw(e))return null;const n=e.gen===0?`${e.num}R`:`${e.num}R${e.gen}`;return this.#r.get(n)??null}}class ine{#e=null;onContinue=null;onError=null;constructor(e){this.#e=e}get promise(){return this.#e.capability.promise}cancel(e=0){this.#e.cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=this.#e.operatorList;if(!e)return!1;const{annotationCanvasMap:n}=this.#e;return e.form||e.canvas&&n?.size>0}}class Po{#e=null;static#t=new WeakSet;constructor({callback:e,params:n,objs:r,commonObjs:i,annotationCanvasMap:a,operatorList:o,pageIndex:l,canvasFactory:u,filterFactory:d,useRequestAnimationFrame:p=!1,pdfBug:f=!1,pageColors:g=null}){this.callback=e,this.params=n,this.objs=r,this.commonObjs=i,this.annotationCanvasMap=a,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=l,this.canvasFactory=u,this.filterFactory=d,this._pdfBug=f,this.pageColors=g,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=p===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new ine(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:e=!1,optionalContentConfig:n}){if(this.cancelled)return;if(this._canvas){if(Po.#t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");Po.#t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:r,viewport:i,transform:a,background:o}=this.params;this.gfx=new jo(r,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:n},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:a,viewport:i,transparency:e,background:o}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(e=null,n=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null),Po.#t.delete(this._canvas),e||=new lp(`Rendering cancelled, page ${this._pageIndex+1}`,n),this.callback(e),this.task.onError?.(e)}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#e=window.requestAnimationFrame(()=>{this.#e=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),Po.#t.delete(this._canvas),this.callback())))}}const Ml="5.3.31",mF="47ad820d9";function L1(t){return Math.floor(Math.max(0,Math.min(1,t))*255).toString(16).padStart(2,"0")}function rl(t){return Math.max(0,Math.min(255,255*t))}class D1{static CMYK_G([e,n,r,i]){return["G",1-Math.min(1,.3*e+.59*r+.11*n+i)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_rgb([e]){return e=rl(e),[e,e,e]}static G_HTML([e]){const n=L1(e);return`#${n}${n}${n}`}static RGB_G([e,n,r]){return["G",.3*e+.59*n+.11*r]}static RGB_rgb(e){return e.map(rl)}static RGB_HTML(e){return`#${e.map(L1).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([e,n,r,i]){return["RGB",1-Math.min(1,e+i),1-Math.min(1,r+i),1-Math.min(1,n+i)]}static CMYK_rgb([e,n,r,i]){return[rl(1-Math.min(1,e+i)),rl(1-Math.min(1,r+i)),rl(1-Math.min(1,n+i))]}static CMYK_HTML(e){const n=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(n)}static RGB_CMYK([e,n,r]){const i=1-e,a=1-n,o=1-r,l=Math.min(i,a,o);return["CMYK",i,a,o,l]}}class ane{create(e,n,r=!1){if(e<=0||n<=0)throw new Error("Invalid SVG dimensions");const i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),r||(i.setAttribute("width",`${e}px`),i.setAttribute("height",`${n}px`)),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox",`0 0 ${e} ${n}`),i}createElement(e){if(typeof e!="string")throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){et("Abstract method `_createSVG` called.")}}class Pl extends ane{_createSVG(e){return document.createElementNS(Jr,e)}}class jS{static setupStorage(e,n,r,i,a){const o=i.getValue(n,{value:null});switch(r.name){case"textarea":if(o.value!==null&&(e.textContent=o.value),a==="print")break;e.addEventListener("input",l=>{i.setValue(n,{value:l.target.value})});break;case"input":if(r.attributes.type==="radio"||r.attributes.type==="checkbox"){if(o.value===r.attributes.xfaOn?e.setAttribute("checked",!0):o.value===r.attributes.xfaOff&&e.removeAttribute("checked"),a==="print")break;e.addEventListener("change",l=>{i.setValue(n,{value:l.target.checked?l.target.getAttribute("xfaOn"):l.target.getAttribute("xfaOff")})})}else{if(o.value!==null&&e.setAttribute("value",o.value),a==="print")break;e.addEventListener("input",l=>{i.setValue(n,{value:l.target.value})})}break;case"select":if(o.value!==null){e.setAttribute("value",o.value);for(const l of r.children)l.attributes.value===o.value?l.attributes.selected=!0:l.attributes.hasOwnProperty("selected")&&delete l.attributes.selected}e.addEventListener("input",l=>{const u=l.target.options,d=u.selectedIndex===-1?"":u[u.selectedIndex].value;i.setValue(n,{value:d})});break}}static setAttributes({html:e,element:n,storage:r=null,intent:i,linkService:a}){const{attributes:o}=n,l=e instanceof HTMLAnchorElement;o.type==="radio"&&(o.name=`${o.name}-${i}`);for(const[u,d]of Object.entries(o))if(d!=null)switch(u){case"class":d.length&&e.setAttribute(u,d.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",d);break;case"style":Object.assign(e.style,d);break;case"textContent":e.textContent=d;break;default:(!l||u!=="href"&&u!=="newWindow")&&e.setAttribute(u,d)}l&&a.addLinkAttributes(e,o.href,o.newWindow),r&&o.dataId&&this.setupStorage(e,o.dataId,n,r)}static render(e){const n=e.annotationStorage,r=e.linkService,i=e.xfaHtml,a=e.intent||"display",o=document.createElement(i.name);i.attributes&&this.setAttributes({html:o,element:i,intent:a,linkService:r});const l=a!=="richText",u=e.div;if(u.append(o),e.viewport){const f=`matrix(${e.viewport.transform.join(",")})`;u.style.transform=f}l&&u.setAttribute("class","xfaLayer xfaFont");const d=[];if(i.children.length===0){if(i.value){const f=document.createTextNode(i.value);o.append(f),l&&Dl.shouldBuildText(i.name)&&d.push(f)}return{textDivs:d}}const p=[[i,-1,o]];for(;p.length>0;){const[f,g,m]=p.at(-1);if(g+1===f.children.length){p.pop();continue}const v=f.children[++p.at(-1)[1]];if(v===null)continue;const{name:b}=v;if(b==="#text"){const S=document.createTextNode(v.value);d.push(S),m.append(S);continue}const E=v?.attributes?.xmlns?document.createElementNS(v.attributes.xmlns,b):document.createElement(b);if(m.append(E),v.attributes&&this.setAttributes({html:E,element:v,storage:n,intent:a,linkService:r}),v.children?.length>0)p.push([v,-1,E]);else if(v.value){const S=document.createTextNode(v.value);l&&Dl.shouldBuildText(b)&&d.push(S),E.append(S)}}for(const f of u.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))f.setAttribute("readOnly",!0);return{textDivs:d}}static update(e){const n=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=n,e.div.hidden=!1}}const nc=1e3,one=9,$a=new WeakSet;class M1{static create(e){switch(e.data.annotationType){case At.LINK:return new bF(e);case At.TEXT:return new sne(e);case At.WIDGET:switch(e.data.fieldType){case"Tx":return new lne(e);case"Btn":return e.data.radioButton?new yF(e):e.data.checkBox?new une(e):new dne(e);case"Ch":return new pne(e);case"Sig":return new cne(e)}return new qa(e);case At.POPUP:return new Ew(e);case At.FREETEXT:return new vF(e);case At.LINE:return new hne(e);case At.SQUARE:return new gne(e);case At.CIRCLE:return new mne(e);case At.POLYLINE:return new EF(e);case At.CARET:return new yne(e);case At.INK:return new HS(e);case At.POLYGON:return new bne(e);case At.HIGHLIGHT:return new wF(e);case At.UNDERLINE:return new vne(e);case At.SQUIGGLY:return new Ene(e);case At.STRIKEOUT:return new wne(e);case At.STAMP:return new SF(e);case At.FILEATTACHMENT:return new Sne(e);default:return new Rt(e)}}}class Rt{#e=null;#t=!1;#n=null;constructor(e,{isRenderable:n=!1,ignoreBorder:r=!1,createQuadrilaterals:i=!1}={}){this.isRenderable=n,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,n&&(this.container=this._createContainer(r)),i&&this._createQuadrilaterals()}static _hasPopupData({titleObj:e,contentsObj:n,richText:r}){return!!(e?.str||n?.str||r?.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return Rt._hasPopupData(this.data)}updateEdited(e){if(!this.container)return;this.#e||={rect:this.data.rect.slice(0)};const{rect:n}=e;n&&this.#r(n),this.#n?.popup.updateEdited(e)}resetEdited(){this.#e&&(this.#r(this.#e.rect),this.#n?.popup.resetEdited(),this.#e=null)}#r(e){const{container:{style:n},data:{rect:r,rotation:i},parent:{viewport:{rawDims:{pageWidth:a,pageHeight:o,pageX:l,pageY:u}}}}=this;r?.splice(0,4,...e),n.left=`${100*(e[0]-l)/a}%`,n.top=`${100*(o-e[3]+u)/o}%`,i===0?(n.width=`${100*(e[2]-e[0])/a}%`,n.height=`${100*(e[3]-e[1])/o}%`):this.setRotation(i)}_createContainer(e){const{data:n,parent:{page:r,viewport:i}}=this,a=document.createElement("section");a.setAttribute("data-annotation-id",n.id),this instanceof qa||(a.tabIndex=nc);const{style:o}=a;if(o.zIndex=this.parent.zIndex++,n.alternativeText&&(a.title=n.alternativeText),n.noRotate&&a.classList.add("norotate"),!n.rect||this instanceof Ew){const{rotation:b}=n;return!n.hasOwnCanvas&&b!==0&&this.setRotation(b,a),a}const{width:l,height:u}=this;if(!e&&n.borderStyle.width>0){o.borderWidth=`${n.borderStyle.width}px`;const b=n.borderStyle.horizontalCornerRadius,E=n.borderStyle.verticalCornerRadius;if(b>0||E>0){const _=`calc(${b}px * var(--total-scale-factor)) / calc(${E}px * var(--total-scale-factor))`;o.borderRadius=_}else if(this instanceof yF){const _=`calc(${l}px * var(--total-scale-factor)) / calc(${u}px * var(--total-scale-factor))`;o.borderRadius=_}switch(n.borderStyle.style){case ko.SOLID:o.borderStyle="solid";break;case ko.DASHED:o.borderStyle="dashed";break;case ko.BEVELED:Pe("Unimplemented border style: beveled");break;case ko.INSET:Pe("Unimplemented border style: inset");break;case ko.UNDERLINE:o.borderBottomStyle="solid";break}const S=n.borderColor||null;S?(this.#t=!0,o.borderColor=Ce.makeHexColor(S[0]|0,S[1]|0,S[2]|0)):o.borderWidth=0}const d=Ce.normalizeRect([n.rect[0],r.view[3]-n.rect[1]+r.view[1],n.rect[2],r.view[3]-n.rect[3]+r.view[1]]),{pageWidth:p,pageHeight:f,pageX:g,pageY:m}=i.rawDims;o.left=`${100*(d[0]-g)/p}%`,o.top=`${100*(d[1]-m)/f}%`;const{rotation:v}=n;return n.hasOwnCanvas||v===0?(o.width=`${100*l/p}%`,o.height=`${100*u/f}%`):this.setRotation(v,a),a}setRotation(e,n=this.container){if(!this.data.rect)return;const{pageWidth:r,pageHeight:i}=this.parent.viewport.rawDims;let{width:a,height:o}=this;e%180!==0&&([a,o]=[o,a]),n.style.width=`${100*a/r}%`,n.style.height=`${100*o/i}%`,n.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(n,r,i)=>{const a=i.detail[n],o=a[0],l=a.slice(1);i.target.style[r]=D1[`${o}_HTML`](l),this.annotationStorage.setValue(this.data.id,{[r]:D1[`${o}_rgb`](l)})};return ze(this,"_commonActions",{display:n=>{const{display:r}=n.detail,i=r%2===1;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:i,noPrint:r===1||r===2})},print:n=>{this.annotationStorage.setValue(this.data.id,{noPrint:!n.detail.print})},hidden:n=>{const{hidden:r}=n.detail;this.container.style.visibility=r?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:r,noView:r})},focus:n=>{setTimeout(()=>n.target.focus({preventScroll:!1}),0)},userName:n=>{n.target.title=n.detail.userName},readonly:n=>{n.target.disabled=n.detail.readonly},required:n=>{this._setRequired(n.target,n.detail.required)},bgColor:n=>{e("bgColor","backgroundColor",n)},fillColor:n=>{e("fillColor","backgroundColor",n)},fgColor:n=>{e("fgColor","color",n)},textColor:n=>{e("textColor","color",n)},borderColor:n=>{e("borderColor","borderColor",n)},strokeColor:n=>{e("strokeColor","borderColor",n)},rotation:n=>{const r=n.detail.rotation;this.setRotation(r),this.annotationStorage.setValue(this.data.id,{rotation:r})}})}_dispatchEventFromSandbox(e,n){const r=this._commonActions;for(const i of Object.keys(n.detail))(e[i]||r[i])?.(n)}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const n=this.annotationStorage.getRawValue(this.data.id);if(!n)return;const r=this._commonActions;for(const[i,a]of Object.entries(n)){const o=r[i];if(o){const l={detail:{[i]:a},target:e};o(l),delete n[i]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:e}=this.data;if(!e)return;const[n,r,i,a]=this.data.rect.map(b=>Math.fround(b));if(e.length===8){const[b,E,S,_]=e.subarray(2,6);if(i===b&&a===E&&n===S&&r===_)return}const{style:o}=this.container;let l;if(this.#t){const{borderColor:b,borderWidth:E}=o;o.borderWidth=0,l=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${b}" stroke-width="${E}">`],this.container.classList.add("hasBorder")}const u=i-n,d=a-r,{svgFactory:p}=this,f=p.createElement("svg");f.classList.add("quadrilateralsContainer"),f.setAttribute("width",0),f.setAttribute("height",0);const g=p.createElement("defs");f.append(g);const m=p.createElement("clipPath"),v=`clippath_${this.data.id}`;m.setAttribute("id",v),m.setAttribute("clipPathUnits","objectBoundingBox"),g.append(m);for(let b=2,E=e.length;b<E;b+=8){const S=e[b],_=e[b+1],w=e[b+2],A=e[b+3],k=p.createElement("rect"),R=(w-n)/u,I=(a-_)/d,O=(S-w)/u,L=(_-A)/d;k.setAttribute("x",R),k.setAttribute("y",I),k.setAttribute("width",O),k.setAttribute("height",L),m.append(k),l?.push(`<rect vector-effect="non-scaling-stroke" x="${R}" y="${I}" width="${O}" height="${L}"/>`)}this.#t&&(l.push("</g></svg>')"),o.backgroundImage=l.join("")),this.container.append(f),this.container.style.clipPath=`url(#${v})`}_createPopup(){const{data:e}=this,n=this.#n=new Ew({data:{color:e.color,titleObj:e.titleObj,modificationDate:e.modificationDate,contentsObj:e.contentsObj,richText:e.richText,parentRect:e.rect,borderStyle:0,id:`popup_${e.id}`,rotation:e.rotation},parent:this.parent,elements:[this]});this.parent.div.append(n.render())}render(){et("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,n=null){const r=[];if(this._fieldObjects){const i=this._fieldObjects[e];if(i)for(const{page:a,id:o,exportValues:l}of i){if(a===-1||o===n)continue;const u=typeof l=="string"?l:null,d=document.querySelector(`[data-element-id="${o}"]`);if(d&&!$a.has(d)){Pe(`_getElementsByName - element not allowed: ${o}`);continue}r.push({id:o,exportValue:u,domElement:d})}return r}for(const i of document.getElementsByName(e)){const{exportValue:a}=i,o=i.getAttribute("data-element-id");o!==n&&$a.has(i)&&r.push({id:o,exportValue:a,domElement:i})}return r}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(const n of e)n.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:e,data:{id:n}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:e,editId:n})})}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}}class bF extends Rt{constructor(e,n=null){super(e,{isRenderable:!0,ignoreBorder:!!n?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:n}=this,r=document.createElement("a");r.setAttribute("data-element-id",e.id);let i=!1;return e.url?(n.addLinkAttributes(r,e.url,e.newWindow),i=!0):e.action?(this._bindNamedAction(r,e.action),i=!0):e.attachment?(this.#t(r,e.attachment,e.attachmentDest),i=!0):e.setOCGState?(this.#n(r,e.setOCGState),i=!0):e.dest?(this._bindLink(r,e.dest),i=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(r,e),i=!0),e.resetForm?(this._bindResetFormAction(r,e.resetForm),i=!0):this.isTooltipOnly&&!i&&(this._bindLink(r,""),i=!0)),this.container.classList.add("linkAnnotation"),i&&this.container.append(r),this.container}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(e,n){e.href=this.linkService.getDestinationHash(n),e.onclick=()=>(n&&this.linkService.goToDestination(n),!1),(n||n==="")&&this.#e()}_bindNamedAction(e,n){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(n),!1),this.#e()}#t(e,n,r=null){e.href=this.linkService.getAnchorUrl(""),n.description&&(e.title=n.description),e.onclick=()=>(this.downloadManager?.openOrDownloadData(n.content,n.filename,r),!1),this.#e()}#n(e,n){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(n),!1),this.#e()}_bindJSAction(e,n){e.href=this.linkService.getAnchorUrl("");const r=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const i of Object.keys(n.actions)){const a=r.get(i);a&&(e[a]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n.id,name:i}}),!1))}e.onclick||(e.onclick=()=>!1),this.#e()}_bindResetFormAction(e,n){const r=e.onclick;if(r||(e.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){Pe('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),r||(e.onclick=()=>!1);return}e.onclick=()=>{r?.();const{fields:i,refs:a,include:o}=n,l=[];if(i.length!==0||a.length!==0){const p=new Set(a);for(const f of i){const g=this._fieldObjects[f]||[];for(const{id:m}of g)p.add(m)}for(const f of Object.values(this._fieldObjects))for(const g of f)p.has(g.id)===o&&l.push(g)}else for(const p of Object.values(this._fieldObjects))l.push(...p);const u=this.annotationStorage,d=[];for(const p of l){const{id:f}=p;switch(d.push(f),p.type){case"text":{const m=p.defaultValue||"";u.setValue(f,{value:m});break}case"checkbox":case"radiobutton":{const m=p.defaultValue===p.exportValues;u.setValue(f,{value:m});break}case"combobox":case"listbox":{const m=p.defaultValue||"";u.setValue(f,{value:m});break}default:continue}const g=document.querySelector(`[data-element-id="${f}"]`);if(g){if(!$a.has(g)){Pe(`_bindResetFormAction - element not allowed: ${f}`);continue}}else continue;g.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:d,name:"ResetForm"}}),!1}}}class sne extends Rt{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),e.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class qa extends Rt{render(){return this.container}showElementAndHideCanvas(e){this.data.hasOwnCanvas&&(e.previousSibling?.nodeName==="CANVAS"&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){return qt.platform.isMac?e.metaKey:e.ctrlKey}_setEventListener(e,n,r,i,a){r.includes("mouse")?e.addEventListener(r,o=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:a(o),shift:o.shiftKey,modifier:this._getKeyModifier(o)}})}):e.addEventListener(r,o=>{if(r==="blur"){if(!n.focused||!o.relatedTarget)return;n.focused=!1}else if(r==="focus"){if(n.focused)return;n.focused=!0}a&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:a(o)}})})}_setEventListeners(e,n,r,i){for(const[a,o]of r)(o==="Action"||this.data.actions?.[o])&&((o==="Focus"||o==="Blur")&&(n||={focused:!1}),this._setEventListener(e,n,a,o,i),o==="Focus"&&!this.data.actions?.Blur?this._setEventListener(e,n,"blur","Blur",null):o==="Blur"&&!this.data.actions?.Focus&&this._setEventListener(e,n,"focus","Focus",null))}_setBackgroundColor(e){const n=this.data.backgroundColor||null;e.style.backgroundColor=n===null?"transparent":Ce.makeHexColor(n[0],n[1],n[2])}_setTextStyle(e){const n=["left","center","right"],{fontColor:r}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||one,a=e.style;let o;const l=2,u=d=>Math.round(10*d)/10;if(this.data.multiLine){const d=Math.abs(this.data.rect[3]-this.data.rect[1]-l),p=Math.round(d/(CE*i))||1,f=d/p;o=Math.min(i,u(f/CE))}else{const d=Math.abs(this.data.rect[3]-this.data.rect[1]-l);o=Math.min(i,u(d/CE))}a.fontSize=`calc(${o}px * var(--total-scale-factor))`,a.color=Ce.makeHexColor(r[0],r[1],r[2]),this.data.textAlignment!==null&&(a.textAlign=n[this.data.textAlignment])}_setRequired(e,n){n?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",n)}}class lne extends qa{constructor(e){const n=e.renderForms||e.data.hasOwnCanvas||!e.data.hasAppearance&&!!e.data.fieldValue;super(e,{isRenderable:n})}setPropertyOnSiblings(e,n,r,i){const a=this.annotationStorage;for(const o of this._getElementsByName(e.name,e.id))o.domElement&&(o.domElement[n]=r),a.setValue(o.id,{[i]:r})}render(){const e=this.annotationStorage,n=this.data.id;this.container.classList.add("textWidgetAnnotation");let r=null;if(this.renderForms){const i=e.getValue(n,{value:this.data.fieldValue});let a=i.value||"";const o=e.getValue(n,{charLimit:this.data.maxLen}).charLimit;o&&a.length>o&&(a=a.slice(0,o));let l=i.formattedValue||this.data.textContent?.join(`
285
- `)||null;l&&this.data.comb&&(l=l.replaceAll(/\s+/g,""));const u={userValue:a,formattedValue:l,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(r=document.createElement("textarea"),r.textContent=l??a,this.data.doNotScroll&&(r.style.overflowY="hidden")):(r=document.createElement("input"),r.type=this.data.password?"password":"text",r.setAttribute("value",l??a),this.data.doNotScroll&&(r.style.overflowX="hidden")),this.data.hasOwnCanvas&&(r.hidden=!0),$a.add(r),r.setAttribute("data-element-id",n),r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.tabIndex=nc,this._setRequired(r,this.data.required),o&&(r.maxLength=o),r.addEventListener("input",p=>{e.setValue(n,{value:p.target.value}),this.setPropertyOnSiblings(r,"value",p.target.value,"value"),u.formattedValue=null}),r.addEventListener("resetform",p=>{const f=this.data.defaultFieldValue??"";r.value=u.userValue=f,u.formattedValue=null});let d=p=>{const{formattedValue:f}=u;f!=null&&(p.target.value=f),p.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){r.addEventListener("focus",f=>{if(u.focused)return;const{target:g}=f;u.userValue&&(g.value=u.userValue),u.lastCommittedValue=g.value,u.commitKey=1,this.data.actions?.Focus||(u.focused=!0)}),r.addEventListener("updatefromsandbox",f=>{this.showElementAndHideCanvas(f.target);const g={value(m){u.userValue=m.detail.value??"",e.setValue(n,{value:u.userValue.toString()}),m.target.value=u.userValue},formattedValue(m){const{formattedValue:v}=m.detail;u.formattedValue=v,v!=null&&m.target!==document.activeElement&&(m.target.value=v),e.setValue(n,{formattedValue:v})},selRange(m){m.target.setSelectionRange(...m.detail.selRange)},charLimit:m=>{const{charLimit:v}=m.detail,{target:b}=m;if(v===0){b.removeAttribute("maxLength");return}b.setAttribute("maxLength",v);let E=u.userValue;!E||E.length<=v||(E=E.slice(0,v),b.value=u.userValue=E,e.setValue(n,{value:E}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:E,willCommit:!0,commitKey:1,selStart:b.selectionStart,selEnd:b.selectionEnd}}))}};this._dispatchEventFromSandbox(g,f)}),r.addEventListener("keydown",f=>{u.commitKey=1;let g=-1;if(f.key==="Escape"?g=0:f.key==="Enter"&&!this.data.multiLine?g=2:f.key==="Tab"&&(u.commitKey=3),g===-1)return;const{value:m}=f.target;u.lastCommittedValue!==m&&(u.lastCommittedValue=m,u.userValue=m,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:m,willCommit:!0,commitKey:g,selStart:f.target.selectionStart,selEnd:f.target.selectionEnd}}))});const p=d;d=null,r.addEventListener("blur",f=>{if(!u.focused||!f.relatedTarget)return;this.data.actions?.Blur||(u.focused=!1);const{value:g}=f.target;u.userValue=g,u.lastCommittedValue!==g&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:g,willCommit:!0,commitKey:u.commitKey,selStart:f.target.selectionStart,selEnd:f.target.selectionEnd}}),p(f)}),this.data.actions?.Keystroke&&r.addEventListener("beforeinput",f=>{u.lastCommittedValue=null;const{data:g,target:m}=f,{value:v,selectionStart:b,selectionEnd:E}=m;let S=b,_=E;switch(f.inputType){case"deleteWordBackward":{const w=v.substring(0,b).match(/\w*[^\w]*$/);w&&(S-=w[0].length);break}case"deleteWordForward":{const w=v.substring(b).match(/^[^\w]*\w*/);w&&(_+=w[0].length);break}case"deleteContentBackward":b===E&&(S-=1);break;case"deleteContentForward":b===E&&(_+=1);break}f.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:v,change:g||"",willCommit:!1,selStart:S,selEnd:_}})}),this._setEventListeners(r,u,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],f=>f.target.value)}if(d&&r.addEventListener("blur",d),this.data.comb){const f=(this.data.rect[2]-this.data.rect[0])/o;r.classList.add("comb"),r.style.letterSpacing=`calc(${f}px * var(--total-scale-factor) - 1ch)`}}else r=document.createElement("div"),r.textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell",this.data.hasOwnCanvas&&(r.hidden=!0);return this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class cne extends qa{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class une extends qa{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,n=this.data,r=n.id;let i=e.getValue(r,{value:n.exportValue===n.fieldValue}).value;typeof i=="string"&&(i=i!=="Off",e.setValue(r,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const a=document.createElement("input");return $a.add(a),a.setAttribute("data-element-id",r),a.disabled=n.readOnly,this._setRequired(a,this.data.required),a.type="checkbox",a.name=n.fieldName,i&&a.setAttribute("checked",!0),a.setAttribute("exportValue",n.exportValue),a.tabIndex=nc,a.addEventListener("change",o=>{const{name:l,checked:u}=o.target;for(const d of this._getElementsByName(l,r)){const p=u&&d.exportValue===n.exportValue;d.domElement&&(d.domElement.checked=p),e.setValue(d.id,{value:p})}e.setValue(r,{value:u})}),a.addEventListener("resetform",o=>{const l=n.defaultFieldValue||"Off";o.target.checked=l===n.exportValue}),this.enableScripting&&this.hasJSActions&&(a.addEventListener("updatefromsandbox",o=>{const l={value(u){u.target.checked=u.detail.value!=="Off",e.setValue(r,{value:u.target.checked})}};this._dispatchEventFromSandbox(l,o)}),this._setEventListeners(a,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],o=>o.target.checked)),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class yF extends qa{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const e=this.annotationStorage,n=this.data,r=n.id;let i=e.getValue(r,{value:n.fieldValue===n.buttonValue}).value;if(typeof i=="string"&&(i=i!==n.buttonValue,e.setValue(r,{value:i})),i)for(const o of this._getElementsByName(n.fieldName,r))e.setValue(o.id,{value:!1});const a=document.createElement("input");if($a.add(a),a.setAttribute("data-element-id",r),a.disabled=n.readOnly,this._setRequired(a,this.data.required),a.type="radio",a.name=n.fieldName,i&&a.setAttribute("checked",!0),a.tabIndex=nc,a.addEventListener("change",o=>{const{name:l,checked:u}=o.target;for(const d of this._getElementsByName(l,r))e.setValue(d.id,{value:!1});e.setValue(r,{value:u})}),a.addEventListener("resetform",o=>{const l=n.defaultFieldValue;o.target.checked=l!=null&&l===n.buttonValue}),this.enableScripting&&this.hasJSActions){const o=n.buttonValue;a.addEventListener("updatefromsandbox",l=>{const u={value:d=>{const p=o===d.detail.value;for(const f of this._getElementsByName(d.target.name)){const g=p&&f.id===r;f.domElement&&(f.domElement.checked=g),e.setValue(f.id,{value:g})}}};this._dispatchEventFromSandbox(u,l)}),this._setEventListeners(a,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],l=>l.target.checked)}return this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class dne extends bF{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton");const n=e.lastChild;return this.enableScripting&&this.hasJSActions&&n&&(this._setDefaultPropertiesFromJS(n),n.addEventListener("updatefromsandbox",r=>{this._dispatchEventFromSandbox({},r)})),e}}class pne extends qa{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const e=this.annotationStorage,n=this.data.id,r=e.getValue(n,{value:this.data.fieldValue}),i=document.createElement("select");$a.add(i),i.setAttribute("data-element-id",n),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=nc;let a=this.data.combo&&this.data.options.length>0;this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",p=>{const f=this.data.defaultFieldValue;for(const g of i.options)g.selected=g.value===f});for(const p of this.data.options){const f=document.createElement("option");f.textContent=p.displayValue,f.value=p.exportValue,r.value.includes(p.exportValue)&&(f.setAttribute("selected",!0),a=!1),i.append(f)}let o=null;if(a){const p=document.createElement("option");p.value=" ",p.setAttribute("hidden",!0),p.setAttribute("selected",!0),i.prepend(p),o=()=>{p.remove(),i.removeEventListener("input",o),o=null},i.addEventListener("input",o)}const l=p=>{const f=p?"value":"textContent",{options:g,multiple:m}=i;return m?Array.prototype.filter.call(g,v=>v.selected).map(v=>v[f]):g.selectedIndex===-1?null:g[g.selectedIndex][f]};let u=l(!1);const d=p=>{const f=p.target.options;return Array.prototype.map.call(f,g=>({displayValue:g.textContent,exportValue:g.value}))};return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",p=>{const f={value(g){o?.();const m=g.detail.value,v=new Set(Array.isArray(m)?m:[m]);for(const b of i.options)b.selected=v.has(b.value);e.setValue(n,{value:l(!0)}),u=l(!1)},multipleSelection(g){i.multiple=!0},remove(g){const m=i.options,v=g.detail.remove;m[v].selected=!1,i.remove(v),m.length>0&&Array.prototype.findIndex.call(m,E=>E.selected)===-1&&(m[0].selected=!0),e.setValue(n,{value:l(!0),items:d(g)}),u=l(!1)},clear(g){for(;i.length!==0;)i.remove(0);e.setValue(n,{value:null,items:[]}),u=l(!1)},insert(g){const{index:m,displayValue:v,exportValue:b}=g.detail.insert,E=i.children[m],S=document.createElement("option");S.textContent=v,S.value=b,E?E.before(S):i.append(S),e.setValue(n,{value:l(!0),items:d(g)}),u=l(!1)},items(g){const{items:m}=g.detail;for(;i.length!==0;)i.remove(0);for(const v of m){const{displayValue:b,exportValue:E}=v,S=document.createElement("option");S.textContent=b,S.value=E,i.append(S)}i.options.length>0&&(i.options[0].selected=!0),e.setValue(n,{value:l(!0),items:d(g)}),u=l(!1)},indices(g){const m=new Set(g.detail.indices);for(const v of g.target.options)v.selected=m.has(v.index);e.setValue(n,{value:l(!0)}),u=l(!1)},editable(g){g.target.disabled=!g.detail.editable}};this._dispatchEventFromSandbox(f,p)}),i.addEventListener("input",p=>{const f=l(!0),g=l(!1);e.setValue(n,{value:f}),p.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:u,change:g,changeEx:f,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],p=>p.target.value)):i.addEventListener("input",function(p){e.setValue(n,{value:l(!0)})}),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class Ew extends Rt{constructor(e){const{data:n,elements:r}=e;super(e,{isRenderable:Rt._hasPopupData(n)}),this.elements=r,this.popup=null}render(){this.container.classList.add("popupAnnotation");const e=this.popup=new fne({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),n=[];for(const r of this.elements)r.popup=e,r.container.ariaHasPopup="dialog",n.push(r.data.id),r.addHighlightArea();return this.container.setAttribute("aria-controls",n.map(r=>`${NS}${r}`).join(",")),this.container}}class fne{#e=this.#C.bind(this);#t=this.#T.bind(this);#n=this.#R.bind(this);#r=this.#S.bind(this);#a=null;#i=null;#l=null;#s=null;#d=null;#c=null;#p=null;#u=!1;#f=null;#o=null;#h=null;#m=null;#g=null;#b=null;#y=!1;constructor({container:e,color:n,elements:r,titleObj:i,modificationDate:a,contentsObj:o,richText:l,parent:u,rect:d,parentRect:p,open:f}){this.#i=e,this.#g=i,this.#l=o,this.#m=l,this.#c=u,this.#a=n,this.#h=d,this.#p=p,this.#d=r,this.#s=IS.toDateObject(a),this.trigger=r.flatMap(g=>g.getElementsToTriggerPopup());for(const g of this.trigger)g.addEventListener("click",this.#r),g.addEventListener("mouseenter",this.#n),g.addEventListener("mouseleave",this.#t),g.classList.add("popupTriggerArea");for(const g of r)g.container?.addEventListener("keydown",this.#e);this.#i.hidden=!0,f&&this.#S()}render(){if(this.#f)return;const e=this.#f=document.createElement("div");if(e.className="popup",this.#a){const a=e.style.outlineColor=Ce.makeHexColor(...this.#a);e.style.backgroundColor=`color-mix(in srgb, ${a} 30%, white)`}const n=document.createElement("span");n.className="header";const r=document.createElement("h1");if(n.append(r),{dir:r.dir,str:r.textContent}=this.#g,e.append(n),this.#s){const a=document.createElement("span");a.classList.add("popupDate"),a.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),a.setAttribute("data-l10n-args",JSON.stringify({dateObj:this.#s.valueOf()})),n.append(a)}const i=this.#v;if(i)jS.render({xfaHtml:i,intent:"richText",div:e}),e.lastChild.classList.add("richText","popupContent");else{const a=this._formatContents(this.#l);e.append(a)}this.#i.append(e)}get#v(){const e=this.#m,n=this.#l;return e?.str&&(!n?.str||n.str===e.str)&&this.#m.html||null}get#w(){return this.#v?.attributes?.style?.fontSize||0}get#x(){return this.#v?.attributes?.style?.color||null}#_(e){const n=[],r={str:e,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:n}]}},i={style:{color:this.#x,fontSize:this.#w?`calc(${this.#w}px * var(--total-scale-factor))`:""}};for(const a of e.split(`
286
- `))n.push({name:"span",value:a,attributes:i});return r}_formatContents({str:e,dir:n}){const r=document.createElement("p");r.classList.add("popupContent"),r.dir=n;const i=e.split(/(?:\r\n?|\n)/);for(let a=0,o=i.length;a<o;++a){const l=i[a];r.append(document.createTextNode(l)),a<o-1&&r.append(document.createElement("br"))}return r}#C(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||(e.key==="Enter"||e.key==="Escape"&&this.#u)&&this.#S()}updateEdited({rect:e,popupContent:n}){this.#b||={contentsObj:this.#l,richText:this.#m},e&&(this.#o=null),n&&(this.#m=this.#_(n),this.#l=null),this.#f?.remove(),this.#f=null}resetEdited(){this.#b&&({contentsObj:this.#l,richText:this.#m}=this.#b,this.#b=null,this.#f?.remove(),this.#f=null,this.#o=null)}#k(){if(this.#o!==null)return;const{page:{view:e},viewport:{rawDims:{pageWidth:n,pageHeight:r,pageX:i,pageY:a}}}=this.#c;let o=!!this.#p,l=o?this.#p:this.#h;for(const v of this.#d)if(!l||Ce.intersect(v.data.rect,l)!==null){l=v.data.rect,o=!0;break}const u=Ce.normalizeRect([l[0],e[3]-l[1]+e[1],l[2],e[3]-l[3]+e[1]]),p=o?l[2]-l[0]+5:0,f=u[0]+p,g=u[1];this.#o=[100*(f-i)/n,100*(g-a)/r];const{style:m}=this.#i;m.left=`${this.#o[0]}%`,m.top=`${this.#o[1]}%`}#S(){this.#u=!this.#u,this.#u?(this.#R(),this.#i.addEventListener("click",this.#r),this.#i.addEventListener("keydown",this.#e)):(this.#T(),this.#i.removeEventListener("click",this.#r),this.#i.removeEventListener("keydown",this.#e))}#R(){this.#f||this.render(),this.isVisible?this.#u&&this.#i.classList.add("focused"):(this.#k(),this.#i.hidden=!1,this.#i.style.zIndex=parseInt(this.#i.style.zIndex)+1e3)}#T(){this.#i.classList.remove("focused"),!(this.#u||!this.isVisible)&&(this.#i.hidden=!0,this.#i.style.zIndex=parseInt(this.#i.style.zIndex)-1e3)}forceHide(){this.#y=this.isVisible,this.#y&&(this.#i.hidden=!0)}maybeShow(){this.#y&&(this.#f||this.#R(),this.#y=!1,this.#i.hidden=!1)}get isVisible(){return this.#i.hidden===!1}}class vF extends Rt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=Le.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const e=document.createElement("div");e.classList.add("annotationTextContent"),e.setAttribute("role","comment");for(const n of this.textContent){const r=document.createElement("span");r.textContent=n,e.append(r)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class hne extends Rt{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");const{data:e,width:n,height:r}=this,i=this.svgFactory.create(n,r,!0),a=this.#e=this.svgFactory.createElement("svg:line");return a.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),a.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),a.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),a.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class gne extends Rt{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");const{data:e,width:n,height:r}=this,i=this.svgFactory.create(n,r,!0),a=e.borderStyle.width,o=this.#e=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",a/2),o.setAttribute("y",a/2),o.setAttribute("width",n-a),o.setAttribute("height",r-a),o.setAttribute("stroke-width",a||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),i.append(o),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class mne extends Rt{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");const{data:e,width:n,height:r}=this,i=this.svgFactory.create(n,r,!0),a=e.borderStyle.width,o=this.#e=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",n/2),o.setAttribute("cy",r/2),o.setAttribute("rx",n/2-a/2),o.setAttribute("ry",r/2-a/2),o.setAttribute("stroke-width",a||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),i.append(o),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class EF extends Rt{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:e,vertices:n,borderStyle:r,popupRef:i},width:a,height:o}=this;if(!n)return this.container;const l=this.svgFactory.create(a,o,!0);let u=[];for(let p=0,f=n.length;p<f;p+=2){const g=n[p]-e[0],m=e[3]-n[p+1];u.push(`${g},${m}`)}u=u.join(" ");const d=this.#e=this.svgFactory.createElement(this.svgElementName);return d.setAttribute("points",u),d.setAttribute("stroke-width",r.width||1),d.setAttribute("stroke","transparent"),d.setAttribute("fill","transparent"),l.append(d),this.container.append(l),!i&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class bne extends EF{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class yne extends Rt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class HS extends Rt{#e=null;#t=[];constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=this.data.it==="InkHighlight"?Le.HIGHLIGHT:Le.INK}#n(e,n){switch(e){case 90:return{transform:`rotate(90) translate(${-n[0]},${n[1]}) scale(1,-1)`,width:n[3]-n[1],height:n[2]-n[0]};case 180:return{transform:`rotate(180) translate(${-n[2]},${n[1]}) scale(1,-1)`,width:n[2]-n[0],height:n[3]-n[1]};case 270:return{transform:`rotate(270) translate(${-n[2]},${n[3]}) scale(1,-1)`,width:n[3]-n[1],height:n[2]-n[0]};default:return{transform:`translate(${-n[0]},${n[3]}) scale(1,-1)`,width:n[2]-n[0],height:n[3]-n[1]}}}render(){this.container.classList.add(this.containerClassName);const{data:{rect:e,rotation:n,inkLists:r,borderStyle:i,popupRef:a}}=this,{transform:o,width:l,height:u}=this.#n(n,e),d=this.svgFactory.create(l,u,!0),p=this.#e=this.svgFactory.createElement("svg:g");d.append(p),p.setAttribute("stroke-width",i.width||1),p.setAttribute("stroke-linecap","round"),p.setAttribute("stroke-linejoin","round"),p.setAttribute("stroke-miterlimit",10),p.setAttribute("stroke","transparent"),p.setAttribute("fill","transparent"),p.setAttribute("transform",o);for(let f=0,g=r.length;f<g;f++){const m=this.svgFactory.createElement(this.svgElementName);this.#t.push(m),m.setAttribute("points",r[f].join(",")),p.append(m)}return!a&&this.hasPopupData&&this._createPopup(),this.container.append(d),this._editOnDoubleClick(),this.container}updateEdited(e){super.updateEdited(e);const{thickness:n,points:r,rect:i}=e,a=this.#e;if(n>=0&&a.setAttribute("stroke-width",n||1),r)for(let o=0,l=this.#t.length;o<l;o++)this.#t[o].setAttribute("points",r[o].join(","));if(i){const{transform:o,width:l,height:u}=this.#n(this.data.rotation,i);a.parentElement.setAttribute("viewBox",`0 0 ${l} ${u}`),a.setAttribute("transform",o)}}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}}class wF extends Rt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=Le.HIGHLIGHT}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),this.container}}class vne extends Rt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class Ene extends Rt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class wne extends Rt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class SF extends Rt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=Le.STAMP}render(){return this.container.classList.add("stampAnnotation"),this.container.setAttribute("role","img"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class Sne extends Rt{#e=null;constructor(e){super(e,{isRenderable:!0});const{file:n}=this.data;this.filename=n.filename,this.content=n.content,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,...n})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:e,data:n}=this;let r;n.hasAppearance||n.fillAlpha===0?r=document.createElement("div"):(r=document.createElement("img"),r.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(n.name)?"paperclip":"pushpin"}.svg`,n.fillAlpha&&n.fillAlpha<1&&(r.style=`filter: opacity(${Math.round(n.fillAlpha*100)}%);`)),r.addEventListener("dblclick",this.#t.bind(this)),this.#e=r;const{isMac:i}=qt.platform;return e.addEventListener("keydown",a=>{a.key==="Enter"&&(i?a.metaKey:a.ctrlKey)&&this.#t()}),!n.popupRef&&this.hasPopupData?this._createPopup():r.classList.add("popupTriggerArea"),e.append(r),e}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}#t(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}}let GS=class xF{#e=null;#t=null;#n=new Map;#r=null;constructor({div:e,accessibilityManager:n,annotationCanvasMap:r,annotationEditorUIManager:i,page:a,viewport:o,structTreeLayer:l}){this.div=e,this.#e=n,this.#t=r,this.#r=l||null,this.page=a,this.viewport=o,this.zIndex=0,this._annotationEditorUIManager=i}hasEditableAnnotations(){return this.#n.size>0}async#a(e,n){const r=e.firstChild||e,i=r.id=`${NS}${n}`,a=await this.#r?.getAriaAttributes(i);if(a)for(const[o,l]of a)r.setAttribute(o,l);this.div.append(e),this.#e?.moveElementInDOM(this.div,e,r,!1)}async render(e){const{annotations:n}=e,r=this.div;Wi(r,this.viewport);const i=new Map,a={data:null,layer:r,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:e.renderForms!==!1,svgFactory:new Pl,annotationStorage:e.annotationStorage||new MS,enableScripting:e.enableScripting===!0,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(const o of n){if(o.noHTML)continue;const l=o.annotationType===At.POPUP;if(l){const p=i.get(o.id);if(!p)continue;a.elements=p}else if(o.rect[2]===o.rect[0]||o.rect[3]===o.rect[1])continue;a.data=o;const u=M1.create(a);if(!u.isRenderable)continue;if(!l&&o.popupRef){const p=i.get(o.popupRef);p?p.push(u):i.set(o.popupRef,[u])}const d=u.render();o.hidden&&(d.style.visibility="hidden"),await this.#a(d,o.id),u._isEditable&&(this.#n.set(u.data.id,u),this._annotationEditorUIManager?.renderAnnotationElement(u))}this.#i()}async addLinkAnnotations(e,n){const r={data:null,layer:this.div,linkService:n,svgFactory:new Pl,parent:this};for(const i of e){i.borderStyle||=xF._defaultBorderStyle,r.data=i;const a=M1.create(r);if(!a.isRenderable)continue;const o=a.render();await this.#a(o,i.id)}}update({viewport:e}){const n=this.div;this.viewport=e,Wi(n,{rotation:e.rotation}),this.#i(),n.hidden=!1}#i(){if(!this.#t)return;const e=this.div;for(const[n,r]of this.#t){const i=e.querySelector(`[data-annotation-id="${n}"]`);if(!i)continue;r.className="annotationContent";const{firstChild:a}=i;a?a.nodeName==="CANVAS"?a.replaceWith(r):a.classList.contains("annotationContent")?a.after(r):a.before(r):i.append(r);const o=this.#n.get(n);o&&(o._hasNoCanvas?(this._annotationEditorUIManager?.setMissingCanvas(n,i.id,r),o._hasNoCanvas=!1):o.canvas=r)}this.#t.clear()}getEditableAnnotations(){return Array.from(this.#n.values())}getEditableAnnotation(e){return this.#n.get(e)}static get _defaultBorderStyle(){return ze(this,"_defaultBorderStyle",Object.freeze({width:1,rawWidth:1,style:ko.SOLID,dashArray:[3],horizontalCornerRadius:0,verticalCornerRadius:0}))}};const ju=/\r\n?|\n/g;class Bt extends Ne{#e;#t="";#n=`${this.id}-editor`;#r=null;#a;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){const e=Bt.prototype,n=a=>a.isEmpty(),r=li.TRANSLATE_SMALL,i=li.TRANSLATE_BIG;return ze(this,"_keyboardManager",new Jl([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-r,0],checker:n}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-i,0],checker:n}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[r,0],checker:n}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[i,0],checker:n}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-r],checker:n}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-i],checker:n}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,r],checker:n}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,i],checker:n}]]))}static _type="freetext";static _editorType=Le.FREETEXT;constructor(e){super({...e,name:"freeTextEditor"}),this.#e=e.color||Bt._defaultColor||Ne._defaultLineColor,this.#a=e.fontSize||Bt._defaultFontSize}static initialize(e,n){Ne.initialize(e,n);const r=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(r.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,n){switch(e){case je.FREETEXT_SIZE:Bt._defaultFontSize=n;break;case je.FREETEXT_COLOR:Bt._defaultColor=n;break}}updateParams(e,n){switch(e){case je.FREETEXT_SIZE:this.#i(n);break;case je.FREETEXT_COLOR:this.#l(n);break}}static get defaultPropertiesToUpdate(){return[[je.FREETEXT_SIZE,Bt._defaultFontSize],[je.FREETEXT_COLOR,Bt._defaultColor||Ne._defaultLineColor]]}get propertiesToUpdate(){return[[je.FREETEXT_SIZE,this.#a],[je.FREETEXT_COLOR,this.#e]]}#i(e){const n=i=>{this.editorDiv.style.fontSize=`calc(${i}px * var(--total-scale-factor))`,this.translate(0,-(i-this.#a)*this.parentScale),this.#a=i,this.#d()},r=this.#a;this.addCommands({cmd:n.bind(this,e),undo:n.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:je.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#l(e){const n=i=>{this.#e=this.editorDiv.style.color=i},r=this.#e;this.addCommands({cmd:n.bind(this,e),undo:n.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:je.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(e,n){this._uiManager.translateSelectedEditors(e,n,!0)}getInitialTranslation(){const e=this.parentScale;return[-Bt._internalPadding*e,-(Bt._internalPadding+this.#a)*e]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(!super.enableEditMode())return!1;this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.#r=new AbortController;const e=this._uiManager.combinedSignal(this.#r);return this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:e}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:e}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:e}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:e}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:e}),!0}disableEditMode(){return super.disableEditMode()?(this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#n),this._isDraggable=!0,this.#r?.abort(),this.#r=null,this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"),!0):!1}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(e){this.width||(this.enableEditMode(),e&&this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}#s(){const e=[];this.editorDiv.normalize();let n=null;for(const r of this.editorDiv.childNodes)n?.nodeType===Node.TEXT_NODE&&r.nodeName==="BR"||(e.push(Bt.#c(r)),n=r);return e.join(`
287
- `)}#d(){const[e,n]=this.parentDimensions;let r;if(this.isAttachedToDOM)r=this.div.getBoundingClientRect();else{const{currentLayer:i,div:a}=this,o=a.style.display,l=a.classList.contains("hidden");a.classList.remove("hidden"),a.style.display="hidden",i.div.append(this.div),r=a.getBoundingClientRect(),a.remove(),a.style.display=o,a.classList.toggle("hidden",l)}this.rotation%180===this.parentRotation%180?(this.width=r.width/e,this.height=r.height/n):(this.width=r.height/e,this.height=r.width/n),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const e=this.#t,n=this.#t=this.#s().trimEnd();if(e===n)return;const r=i=>{if(this.#t=i,!i){this.remove();return}this.#p(),this._uiManager.rebuild(this),this.#d()};this.addCommands({cmd:()=>{r(n)},undo:()=>{r(e)},mustExec:!1}),this.#d()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}keydown(e){e.target===this.div&&e.key==="Enter"&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){Bt._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}get canChangeContent(){return!0}render(){if(this.div)return this.div;let e,n;(this._isCopy||this.annotationElementId)&&(e=this.x,n=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#n),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;const{style:r}=this.editorDiv;if(r.fontSize=`calc(${this.#a}px * var(--total-scale-factor))`,r.color=this.#e,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),this._isCopy||this.annotationElementId){const[i,a]=this.parentDimensions;if(this.annotationElementId){const{position:o}=this._initialData;let[l,u]=this.getInitialTranslation();[l,u]=this.pageTranslationToScreen(l,u);const[d,p]=this.pageDimensions,[f,g]=this.pageTranslation;let m,v;switch(this.rotation){case 0:m=e+(o[0]-f)/d,v=n+this.height-(o[1]-g)/p;break;case 90:m=e+(o[0]-f)/d,v=n-(o[1]-g)/p,[l,u]=[u,-l];break;case 180:m=e-this.width+(o[0]-f)/d,v=n-(o[1]-g)/p,[l,u]=[-l,-u];break;case 270:m=e+(o[0]-f-this.height*p)/d,v=n+(o[1]-g-this.width*d)/p,[l,u]=[-u,l];break}this.setAt(m*i,v*a,l,u)}else this._moveAfterPaste(e,n);this.#p(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static#c(e){return(e.nodeType===Node.TEXT_NODE?e.nodeValue:e.innerText).replaceAll(ju,"")}editorDivPaste(e){const n=e.clipboardData||window.clipboardData,{types:r}=n;if(r.length===1&&r[0]==="text/plain")return;e.preventDefault();const i=Bt.#f(n.getData("text")||"").replaceAll(ju,`
288
- `);if(!i)return;const a=window.getSelection();if(!a.rangeCount)return;this.editorDiv.normalize(),a.deleteFromDocument();const o=a.getRangeAt(0);if(!i.includes(`
289
- `)){o.insertNode(document.createTextNode(i)),this.editorDiv.normalize(),a.collapseToStart();return}const{startContainer:l,startOffset:u}=o,d=[],p=[];if(l.nodeType===Node.TEXT_NODE){const m=l.parentElement;if(p.push(l.nodeValue.slice(u).replaceAll(ju,"")),m!==this.editorDiv){let v=d;for(const b of this.editorDiv.childNodes){if(b===m){v=p;continue}v.push(Bt.#c(b))}}d.push(l.nodeValue.slice(0,u).replaceAll(ju,""))}else if(l===this.editorDiv){let m=d,v=0;for(const b of this.editorDiv.childNodes)v++===u&&(m=p),m.push(Bt.#c(b))}this.#t=`${d.join(`
290
- `)}${i}${p.join(`
291
- `)}`,this.#p();const f=new Range;let g=Math.sumPrecise(d.map(m=>m.length));for(const{firstChild:m}of this.editorDiv.childNodes)if(m.nodeType===Node.TEXT_NODE){const v=m.nodeValue.length;if(g<=v){f.setStart(m,g),f.setEnd(m,g);break}g-=v}a.removeAllRanges(),a.addRange(f)}#p(){if(this.editorDiv.replaceChildren(),!!this.#t)for(const e of this.#t.split(`
292
- `)){const n=document.createElement("div");n.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(n)}}#u(){return this.#t.replaceAll(" "," ")}static#f(e){return e.replaceAll(" "," ")}get contentDiv(){return this.editorDiv}static async deserialize(e,n,r){let i=null;if(e instanceof vF){const{data:{defaultAppearanceData:{fontSize:o,fontColor:l},rect:u,rotation:d,id:p,popupRef:f},textContent:g,textPosition:m,parent:{page:{pageNumber:v}}}=e;if(!g||g.length===0)return null;i=e={annotationType:Le.FREETEXT,color:Array.from(l),fontSize:o,value:g.join(`
293
- `),position:m,pageIndex:v-1,rect:u.slice(0),rotation:d,id:p,deleted:!1,popupRef:f}}const a=await super.deserialize(e,n,r);return a.#a=e.fontSize,a.#e=Ce.makeHexColor(...e.color),a.#t=Bt.#f(e.value),a.annotationElementId=e.id||null,a._initialData=i,a}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const n=Bt._internalPadding*this.parentScale,r=this.getRect(n,n),i=Ne._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.#e),a={annotationType:Le.FREETEXT,color:i,fontSize:this.#a,value:this.#u(),pageIndex:this.pageIndex,rect:r,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return e?(a.isCopy=!0,a):this.annotationElementId&&!this.#o(a)?null:(a.id=this.annotationElementId,a)}#o(e){const{value:n,fontSize:r,color:i,pageIndex:a}=this._initialData;return this._hasBeenMoved||e.value!==n||e.fontSize!==r||e.color.some((o,l)=>o!==i[l])||e.pageIndex!==a}renderAnnotationElement(e){const n=super.renderAnnotationElement(e);if(this.deleted)return n;const{style:r}=n;r.fontSize=`calc(${this.#a}px * var(--total-scale-factor))`,r.color=this.#e,n.replaceChildren();for(const a of this.#t.split(`
294
- `)){const o=document.createElement("div");o.append(a?document.createTextNode(a):document.createElement("br")),n.append(o)}const i=Bt._internalPadding*this.parentScale;return e.updateEdited({rect:this.getRect(i,i),popupContent:this.#t}),n}resetAnnotationElement(e){super.resetAnnotationElement(e),e.resetEdited()}}class ye{static PRECISION=1e-4;toSVGPath(){et("Abstract method `toSVGPath` must be implemented.")}get box(){et("Abstract getter `box` must be implemented.")}serialize(e,n){et("Abstract method `serialize` must be implemented.")}static _rescale(e,n,r,i,a,o){o||=new Float32Array(e.length);for(let l=0,u=e.length;l<u;l+=2)o[l]=n+e[l]*i,o[l+1]=r+e[l+1]*a;return o}static _rescaleAndSwap(e,n,r,i,a,o){o||=new Float32Array(e.length);for(let l=0,u=e.length;l<u;l+=2)o[l]=n+e[l+1]*i,o[l+1]=r+e[l]*a;return o}static _translate(e,n,r,i){i||=new Float32Array(e.length);for(let a=0,o=e.length;a<o;a+=2)i[a]=n+e[a],i[a+1]=r+e[a+1];return i}static svgRound(e){return Math.round(e*1e4)}static _normalizePoint(e,n,r,i,a){switch(a){case 90:return[1-n/r,e/i];case 180:return[1-e/r,1-n/i];case 270:return[n/r,1-e/i];default:return[e/r,n/i]}}static _normalizePagePoint(e,n,r){switch(r){case 90:return[1-n,e];case 180:return[1-e,1-n];case 270:return[n,1-e];default:return[e,n]}}static createBezierPoints(e,n,r,i,a,o){return[(e+5*r)/6,(n+5*i)/6,(5*r+a)/6,(5*i+o)/6,(r+a)/2,(i+o)/2]}}class Sa{#e;#t=[];#n;#r;#a=[];#i=new Float32Array(18);#l;#s;#d;#c;#p;#u;#f=[];static#o=8;static#h=2;static#m=Sa.#o+Sa.#h;constructor({x:e,y:n},r,i,a,o,l=0){this.#e=r,this.#u=a*i,this.#r=o,this.#i.set([NaN,NaN,NaN,NaN,e,n],6),this.#n=l,this.#c=Sa.#o*i,this.#d=Sa.#m*i,this.#p=i,this.#f.push(e,n)}isEmpty(){return isNaN(this.#i[8])}#g(){const e=this.#i.subarray(4,6),n=this.#i.subarray(16,18),[r,i,a,o]=this.#e;return[(this.#l+(e[0]-n[0])/2-r)/a,(this.#s+(e[1]-n[1])/2-i)/o,(this.#l+(n[0]-e[0])/2-r)/a,(this.#s+(n[1]-e[1])/2-i)/o]}add({x:e,y:n}){this.#l=e,this.#s=n;const[r,i,a,o]=this.#e;let[l,u,d,p]=this.#i.subarray(8,12);const f=e-d,g=n-p,m=Math.hypot(f,g);if(m<this.#d)return!1;const v=m-this.#c,b=v/m,E=b*f,S=b*g;let _=l,w=u;l=d,u=p,d+=E,p+=S,this.#f?.push(e,n);const A=-S/v,k=E/v,R=A*this.#u,I=k*this.#u;return this.#i.set(this.#i.subarray(2,8),0),this.#i.set([d+R,p+I],4),this.#i.set(this.#i.subarray(14,18),12),this.#i.set([d-R,p-I],16),isNaN(this.#i[6])?(this.#a.length===0&&(this.#i.set([l+R,u+I],2),this.#a.push(NaN,NaN,NaN,NaN,(l+R-r)/a,(u+I-i)/o),this.#i.set([l-R,u-I],14),this.#t.push(NaN,NaN,NaN,NaN,(l-R-r)/a,(u-I-i)/o)),this.#i.set([_,w,l,u,d,p],6),!this.isEmpty()):(this.#i.set([_,w,l,u,d,p],6),Math.abs(Math.atan2(w-u,_-l)-Math.atan2(S,E))<Math.PI/2?([l,u,d,p]=this.#i.subarray(2,6),this.#a.push(NaN,NaN,NaN,NaN,((l+d)/2-r)/a,((u+p)/2-i)/o),[l,u,_,w]=this.#i.subarray(14,18),this.#t.push(NaN,NaN,NaN,NaN,((_+l)/2-r)/a,((w+u)/2-i)/o),!0):([_,w,l,u,d,p]=this.#i.subarray(0,6),this.#a.push(((_+5*l)/6-r)/a,((w+5*u)/6-i)/o,((5*l+d)/6-r)/a,((5*u+p)/6-i)/o,((l+d)/2-r)/a,((u+p)/2-i)/o),[d,p,l,u,_,w]=this.#i.subarray(12,18),this.#t.push(((_+5*l)/6-r)/a,((w+5*u)/6-i)/o,((5*l+d)/6-r)/a,((5*u+p)/6-i)/o,((l+d)/2-r)/a,((u+p)/2-i)/o),!0))}toSVGPath(){if(this.isEmpty())return"";const e=this.#a,n=this.#t;if(isNaN(this.#i[6])&&!this.isEmpty())return this.#b();const r=[];r.push(`M${e[4]} ${e[5]}`);for(let i=6;i<e.length;i+=6)isNaN(e[i])?r.push(`L${e[i+4]} ${e[i+5]}`):r.push(`C${e[i]} ${e[i+1]} ${e[i+2]} ${e[i+3]} ${e[i+4]} ${e[i+5]}`);this.#v(r);for(let i=n.length-6;i>=6;i-=6)isNaN(n[i])?r.push(`L${n[i+4]} ${n[i+5]}`):r.push(`C${n[i]} ${n[i+1]} ${n[i+2]} ${n[i+3]} ${n[i+4]} ${n[i+5]}`);return this.#y(r),r.join(" ")}#b(){const[e,n,r,i]=this.#e,[a,o,l,u]=this.#g();return`M${(this.#i[2]-e)/r} ${(this.#i[3]-n)/i} L${(this.#i[4]-e)/r} ${(this.#i[5]-n)/i} L${a} ${o} L${l} ${u} L${(this.#i[16]-e)/r} ${(this.#i[17]-n)/i} L${(this.#i[14]-e)/r} ${(this.#i[15]-n)/i} Z`}#y(e){const n=this.#t;e.push(`L${n[4]} ${n[5]} Z`)}#v(e){const[n,r,i,a]=this.#e,o=this.#i.subarray(4,6),l=this.#i.subarray(16,18),[u,d,p,f]=this.#g();e.push(`L${(o[0]-n)/i} ${(o[1]-r)/a} L${u} ${d} L${p} ${f} L${(l[0]-n)/i} ${(l[1]-r)/a}`)}newFreeDrawOutline(e,n,r,i,a,o){return new AF(e,n,r,i,a,o)}getOutlines(){const e=this.#a,n=this.#t,r=this.#i,[i,a,o,l]=this.#e,u=new Float32Array((this.#f?.length??0)+2);for(let f=0,g=u.length-2;f<g;f+=2)u[f]=(this.#f[f]-i)/o,u[f+1]=(this.#f[f+1]-a)/l;if(u[u.length-2]=(this.#l-i)/o,u[u.length-1]=(this.#s-a)/l,isNaN(r[6])&&!this.isEmpty())return this.#w(u);const d=new Float32Array(this.#a.length+24+this.#t.length);let p=e.length;for(let f=0;f<p;f+=2){if(isNaN(e[f])){d[f]=d[f+1]=NaN;continue}d[f]=e[f],d[f+1]=e[f+1]}p=this.#_(d,p);for(let f=n.length-6;f>=6;f-=6)for(let g=0;g<6;g+=2){if(isNaN(n[f+g])){d[p]=d[p+1]=NaN,p+=2;continue}d[p]=n[f+g],d[p+1]=n[f+g+1],p+=2}return this.#x(d,p),this.newFreeDrawOutline(d,u,this.#e,this.#p,this.#n,this.#r)}#w(e){const n=this.#i,[r,i,a,o]=this.#e,[l,u,d,p]=this.#g(),f=new Float32Array(36);return f.set([NaN,NaN,NaN,NaN,(n[2]-r)/a,(n[3]-i)/o,NaN,NaN,NaN,NaN,(n[4]-r)/a,(n[5]-i)/o,NaN,NaN,NaN,NaN,l,u,NaN,NaN,NaN,NaN,d,p,NaN,NaN,NaN,NaN,(n[16]-r)/a,(n[17]-i)/o,NaN,NaN,NaN,NaN,(n[14]-r)/a,(n[15]-i)/o],0),this.newFreeDrawOutline(f,e,this.#e,this.#p,this.#n,this.#r)}#x(e,n){const r=this.#t;return e.set([NaN,NaN,NaN,NaN,r[4],r[5]],n),n+=6}#_(e,n){const r=this.#i.subarray(4,6),i=this.#i.subarray(16,18),[a,o,l,u]=this.#e,[d,p,f,g]=this.#g();return e.set([NaN,NaN,NaN,NaN,(r[0]-a)/l,(r[1]-o)/u,NaN,NaN,NaN,NaN,d,p,NaN,NaN,NaN,NaN,f,g,NaN,NaN,NaN,NaN,(i[0]-a)/l,(i[1]-o)/u],n),n+=24}}class AF extends ye{#e;#t=new Float32Array(4);#n;#r;#a;#i;#l;constructor(e,n,r,i,a,o){super(),this.#l=e,this.#a=n,this.#e=r,this.#i=i,this.#n=a,this.#r=o,this.lastPoint=[NaN,NaN],this.#s(o);const[l,u,d,p]=this.#t;for(let f=0,g=e.length;f<g;f+=2)e[f]=(e[f]-l)/d,e[f+1]=(e[f+1]-u)/p;for(let f=0,g=n.length;f<g;f+=2)n[f]=(n[f]-l)/d,n[f+1]=(n[f+1]-u)/p}toSVGPath(){const e=[`M${this.#l[4]} ${this.#l[5]}`];for(let n=6,r=this.#l.length;n<r;n+=6){if(isNaN(this.#l[n])){e.push(`L${this.#l[n+4]} ${this.#l[n+5]}`);continue}e.push(`C${this.#l[n]} ${this.#l[n+1]} ${this.#l[n+2]} ${this.#l[n+3]} ${this.#l[n+4]} ${this.#l[n+5]}`)}return e.push("Z"),e.join(" ")}serialize([e,n,r,i],a){const o=r-e,l=i-n;let u,d;switch(a){case 0:u=ye._rescale(this.#l,e,i,o,-l),d=ye._rescale(this.#a,e,i,o,-l);break;case 90:u=ye._rescaleAndSwap(this.#l,e,n,o,l),d=ye._rescaleAndSwap(this.#a,e,n,o,l);break;case 180:u=ye._rescale(this.#l,r,n,-o,l),d=ye._rescale(this.#a,r,n,-o,l);break;case 270:u=ye._rescaleAndSwap(this.#l,r,i,-o,-l),d=ye._rescaleAndSwap(this.#a,r,i,-o,-l);break}return{outline:Array.from(u),points:[Array.from(d)]}}#s(e){const n=this.#l;let r=n[4],i=n[5];const a=[r,i,r,i];let o=r,l=i;const u=e?Math.max:Math.min;for(let p=6,f=n.length;p<f;p+=6){const g=n[p+4],m=n[p+5];if(isNaN(n[p]))Ce.pointBoundingBox(g,m,a),l<m?(o=g,l=m):l===m&&(o=u(o,g));else{const v=[1/0,1/0,-1/0,-1/0];Ce.bezierBoundingBox(r,i,...n.slice(p,p+6),v),Ce.rectBoundingBox(...v,a),l<v[3]?(o=v[2],l=v[3]):l===v[3]&&(o=u(o,v[2]))}r=g,i=m}const d=this.#t;d[0]=a[0]-this.#n,d[1]=a[1]-this.#n,d[2]=a[2]-a[0]+2*this.#n,d[3]=a[3]-a[1]+2*this.#n,this.lastPoint=[o,l]}get box(){return this.#t}newOutliner(e,n,r,i,a,o=0){return new Sa(e,n,r,i,a,o)}getNewOutline(e,n){const[r,i,a,o]=this.#t,[l,u,d,p]=this.#e,f=a*d,g=o*p,m=r*d+l,v=i*p+u,b=this.newOutliner({x:this.#a[0]*f+m,y:this.#a[1]*g+v},this.#e,this.#i,e,this.#r,n??this.#n);for(let E=2;E<this.#a.length;E+=2)b.add({x:this.#a[E]*f+m,y:this.#a[E+1]*g+v});return b.getOutlines()}}class ww{#e;#t;#n=[];#r=[];constructor(e,n=0,r=0,i=!0){const a=[1/0,1/0,-1/0,-1/0],o=10**-4;for(const{x:m,y:v,width:b,height:E}of e){const S=Math.floor((m-n)/o)*o,_=Math.ceil((m+b+n)/o)*o,w=Math.floor((v-n)/o)*o,A=Math.ceil((v+E+n)/o)*o,k=[S,w,A,!0],R=[_,w,A,!1];this.#n.push(k,R),Ce.rectBoundingBox(S,w,_,A,a)}const l=a[2]-a[0]+2*r,u=a[3]-a[1]+2*r,d=a[0]-r,p=a[1]-r,f=this.#n.at(i?-1:-2),g=[f[0],f[2]];for(const m of this.#n){const[v,b,E]=m;m[0]=(v-d)/l,m[1]=(b-p)/u,m[2]=(E-p)/u}this.#e=new Float32Array([d,p,l,u]),this.#t=g}getOutlines(){this.#n.sort((n,r)=>n[0]-r[0]||n[1]-r[1]||n[2]-r[2]);const e=[];for(const n of this.#n)n[3]?(e.push(...this.#d(n)),this.#l(n)):(this.#s(n),e.push(...this.#d(n)));return this.#a(e)}#a(e){const n=[],r=new Set;for(const o of e){const[l,u,d]=o;n.push([l,u,o],[l,d,o])}n.sort((o,l)=>o[1]-l[1]||o[0]-l[0]);for(let o=0,l=n.length;o<l;o+=2){const u=n[o][2],d=n[o+1][2];u.push(d),d.push(u),r.add(u),r.add(d)}const i=[];let a;for(;r.size>0;){const o=r.values().next().value;let[l,u,d,p,f]=o;r.delete(o);let g=l,m=u;for(a=[l,d],i.push(a);;){let v;if(r.has(p))v=p;else if(r.has(f))v=f;else break;r.delete(v),[l,u,d,p,f]=v,g!==l&&(a.push(g,m,l,m===u?u:d),g=l),m=m===u?d:u}a.push(g,m)}return new xne(i,this.#e,this.#t)}#i(e){const n=this.#r;let r=0,i=n.length-1;for(;r<=i;){const a=r+i>>1,o=n[a][0];if(o===e)return a;o<e?r=a+1:i=a-1}return i+1}#l([,e,n]){const r=this.#i(e);this.#r.splice(r,0,[e,n])}#s([,e,n]){const r=this.#i(e);for(let i=r;i<this.#r.length;i++){const[a,o]=this.#r[i];if(a!==e)break;if(a===e&&o===n){this.#r.splice(i,1);return}}for(let i=r-1;i>=0;i--){const[a,o]=this.#r[i];if(a!==e)break;if(a===e&&o===n){this.#r.splice(i,1);return}}}#d(e){const[n,r,i]=e,a=[[n,r,i]],o=this.#i(i);for(let l=0;l<o;l++){const[u,d]=this.#r[l];for(let p=0,f=a.length;p<f;p++){const[,g,m]=a[p];if(!(d<=g||m<=u)){if(g>=u){if(m>d)a[p][1]=d;else{if(f===1)return[];a.splice(p,1),p--,f--}continue}a[p][2]=u,m>d&&a.push([n,d,m])}}}return a}}class xne extends ye{#e;#t;constructor(e,n,r){super(),this.#t=e,this.#e=n,this.lastPoint=r}toSVGPath(){const e=[];for(const n of this.#t){let[r,i]=n;e.push(`M${r} ${i}`);for(let a=2;a<n.length;a+=2){const o=n[a],l=n[a+1];o===r?(e.push(`V${l}`),i=l):l===i&&(e.push(`H${o}`),r=o)}e.push("Z")}return e.join(" ")}serialize([e,n,r,i],a){const o=[],l=r-e,u=i-n;for(const d of this.#t){const p=new Array(d.length);for(let f=0;f<d.length;f+=2)p[f]=e+d[f]*l,p[f+1]=i-d[f+1]*u;o.push(p)}return o}get box(){return this.#e}get classNamesForOutlining(){return["highlightOutline"]}}class Sw extends Sa{newFreeDrawOutline(e,n,r,i,a,o){return new Ane(e,n,r,i,a,o)}}class Ane extends AF{newOutliner(e,n,r,i,a,o=0){return new Sw(e,n,r,i,a,o)}}class Nn{#e=null;#t=null;#n;#r=null;#a=!1;#i=!1;#l=null;#s;#d=null;#c=null;#p;static#u=null;static get _keyboardManager(){return ze(this,"_keyboardManager",new Jl([[["Escape","mac+Escape"],Nn.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],Nn.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],Nn.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],Nn.prototype._moveToPrevious],[["Home","mac+Home"],Nn.prototype._moveToBeginning],[["End","mac+End"],Nn.prototype._moveToEnd]]))}constructor({editor:e=null,uiManager:n=null}){e?(this.#i=!1,this.#p=je.HIGHLIGHT_COLOR,this.#l=e):(this.#i=!0,this.#p=je.HIGHLIGHT_DEFAULT_COLOR),this.#c=e?._uiManager||n,this.#s=this.#c._eventBus,this.#n=e?.color||this.#c?.highlightColors.values().next().value||"#FFFF98",Nn.#u||=Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"})}renderButton(){const e=this.#e=document.createElement("button");e.className="colorPicker",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),e.setAttribute("aria-haspopup",!0);const n=this.#c._signal;e.addEventListener("click",this.#m.bind(this),{signal:n}),e.addEventListener("keydown",this.#h.bind(this),{signal:n});const r=this.#t=document.createElement("span");return r.className="swatch",r.setAttribute("aria-hidden",!0),r.style.backgroundColor=this.#n,e.append(r),e}renderMainDropdown(){const e=this.#r=this.#f();return e.setAttribute("aria-orientation","horizontal"),e.setAttribute("aria-labelledby","highlightColorPickerLabel"),e}#f(){const e=document.createElement("div"),n=this.#c._signal;e.addEventListener("contextmenu",Xn,{signal:n}),e.className="dropdown",e.role="listbox",e.setAttribute("aria-multiselectable",!1),e.setAttribute("aria-orientation","vertical"),e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown");for(const[r,i]of this.#c.highlightColors){const a=document.createElement("button");a.tabIndex="0",a.role="option",a.setAttribute("data-color",i),a.title=r,a.setAttribute("data-l10n-id",Nn.#u[r]);const o=document.createElement("span");a.append(o),o.className="swatch",o.style.backgroundColor=i,a.setAttribute("aria-selected",i===this.#n),a.addEventListener("click",this.#o.bind(this,i),{signal:n}),e.append(a)}return e.addEventListener("keydown",this.#h.bind(this),{signal:n}),e}#o(e,n){n.stopPropagation(),this.#s.dispatch("switchannotationeditorparams",{source:this,type:this.#p,value:e})}_colorSelectFromKeyboard(e){if(e.target===this.#e){this.#m(e);return}const n=e.target.getAttribute("data-color");n&&this.#o(n,e)}_moveToNext(e){if(!this.#b){this.#m(e);return}if(e.target===this.#e){this.#r.firstChild?.focus();return}e.target.nextSibling?.focus()}_moveToPrevious(e){if(e.target===this.#r?.firstChild||e.target===this.#e){this.#b&&this._hideDropdownFromKeyboard();return}this.#b||this.#m(e),e.target.previousSibling?.focus()}_moveToBeginning(e){if(!this.#b){this.#m(e);return}this.#r.firstChild?.focus()}_moveToEnd(e){if(!this.#b){this.#m(e);return}this.#r.lastChild?.focus()}#h(e){Nn._keyboardManager.exec(this,e)}#m(e){if(this.#b){this.hideDropdown();return}if(this.#a=e.detail===0,this.#d||(this.#d=new AbortController,window.addEventListener("pointerdown",this.#g.bind(this),{signal:this.#c.combinedSignal(this.#d)})),this.#r){this.#r.classList.remove("hidden");return}const n=this.#r=this.#f();this.#e.append(n)}#g(e){this.#r?.contains(e.target)||this.hideDropdown()}hideDropdown(){this.#r?.classList.add("hidden"),this.#d?.abort(),this.#d=null}get#b(){return this.#r&&!this.#r.classList.contains("hidden")}_hideDropdownFromKeyboard(){if(!this.#i){if(!this.#b){this.#l?.unselect();return}this.hideDropdown(),this.#e.focus({preventScroll:!0,focusVisible:this.#a})}}updateColor(e){if(this.#t&&(this.#t.style.backgroundColor=e),!this.#r)return;const n=this.#c.highlightColors.values();for(const r of this.#r.children)r.setAttribute("aria-selected",n.next().value===e)}destroy(){this.#e?.remove(),this.#e=null,this.#t=null,this.#r?.remove(),this.#r=null}}class _t extends Ne{#e=null;#t=0;#n;#r=null;#a=null;#i=null;#l=null;#s=0;#d=null;#c=null;#p=null;#u=!1;#f=null;#o;#h=null;#m="";#g;#b="";static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=12;static _type="highlight";static _editorType=Le.HIGHLIGHT;static _freeHighlightId=-1;static _freeHighlight=null;static _freeHighlightClipId="";static get _keyboardManager(){const e=_t.prototype;return ze(this,"_keyboardManager",new Jl([[["ArrowLeft","mac+ArrowLeft"],e._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],e._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],e._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],e._moveCaret,{args:[3]}]]))}constructor(e){super({...e,name:"highlightEditor"}),this.color=e.color||_t._defaultColor,this.#g=e.thickness||_t._defaultThickness,this.#o=e.opacity||_t._defaultOpacity,this.#n=e.boxes||null,this.#b=e.methodOfCreation||"",this.#m=e.text||"",this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",e.highlightId>-1?(this.#u=!0,this.#v(e),this.#k()):this.#n&&(this.#e=e.anchorNode,this.#t=e.anchorOffset,this.#l=e.focusNode,this.#s=e.focusOffset,this.#y(),this.#k(),this.rotate(this.rotation))}get telemetryInitialData(){return{action:"added",type:this.#u?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:this.#g,methodOfCreation:this.#b}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}static computeTelemetryFinalData(e){return{numberOfColors:e.get("color").size}}#y(){const e=new ww(this.#n,.001);this.#c=e.getOutlines(),[this.x,this.y,this.width,this.height]=this.#c.box;const n=new ww(this.#n,.0025,.001,this._uiManager.direction==="ltr");this.#i=n.getOutlines();const{lastPoint:r}=this.#i;this.#f=[(r[0]-this.x)/this.width,(r[1]-this.y)/this.height]}#v({highlightOutlines:e,highlightId:n,clipPathId:r}){this.#c=e;const i=1.5;if(this.#i=e.getNewOutline(this.#g/2+i,.0025),n>=0)this.#p=n,this.#r=r,this.parent.drawLayer.finalizeDraw(n,{bbox:e.box,path:{d:e.toSVGPath()}}),this.#h=this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:this.#i.box,path:{d:this.#i.toSVGPath()}},!0);else if(this.parent){const p=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(this.#p,{bbox:_t.#S(this.#c.box,(p-this.rotation+360)%360),path:{d:e.toSVGPath()}}),this.parent.drawLayer.updateProperties(this.#h,{bbox:_t.#S(this.#i.box,p),path:{d:this.#i.toSVGPath()}})}const[a,o,l,u]=e.box;switch(this.rotation){case 0:this.x=a,this.y=o,this.width=l,this.height=u;break;case 90:{const[p,f]=this.parentDimensions;this.x=o,this.y=1-a,this.width=l*f/p,this.height=u*p/f;break}case 180:this.x=1-a,this.y=1-o,this.width=l,this.height=u;break;case 270:{const[p,f]=this.parentDimensions;this.x=1-o,this.y=a,this.width=l*f/p,this.height=u*p/f;break}}const{lastPoint:d}=this.#i;this.#f=[(d[0]-a)/l,(d[1]-o)/u]}static initialize(e,n){Ne.initialize(e,n),_t._defaultColor||=n.highlightColors?.values().next().value||"#fff066"}static updateDefaultParams(e,n){switch(e){case je.HIGHLIGHT_DEFAULT_COLOR:_t._defaultColor=n;break;case je.HIGHLIGHT_THICKNESS:_t._defaultThickness=n;break}}translateInPage(e,n){}get toolbarPosition(){return this.#f}updateParams(e,n){switch(e){case je.HIGHLIGHT_COLOR:this.#w(n);break;case je.HIGHLIGHT_THICKNESS:this.#x(n);break}}static get defaultPropertiesToUpdate(){return[[je.HIGHLIGHT_DEFAULT_COLOR,_t._defaultColor],[je.HIGHLIGHT_THICKNESS,_t._defaultThickness]]}get propertiesToUpdate(){return[[je.HIGHLIGHT_COLOR,this.color||_t._defaultColor],[je.HIGHLIGHT_THICKNESS,this.#g||_t._defaultThickness],[je.HIGHLIGHT_FREE,this.#u]]}#w(e){const n=(a,o)=>{this.color=a,this.#o=o,this.parent?.drawLayer.updateProperties(this.#p,{root:{fill:a,"fill-opacity":o}}),this.#a?.updateColor(a)},r=this.color,i=this.#o;this.addCommands({cmd:n.bind(this,e,_t._defaultOpacity),undo:n.bind(this,r,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:je.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(e)},!0)}#x(e){const n=this.#g,r=i=>{this.#g=i,this.#_(i)};this.addCommands({cmd:r.bind(this,e),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:je.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:e},!0)}async addEditToolbar(){const e=await super.addEditToolbar();return e?(this._uiManager.highlightColors&&(this.#a=new Nn({editor:this}),e.addColorPicker(this.#a)),e):null}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(this.#I())}getBaseTranslation(){return[0,0]}getRect(e,n){return super.getRect(e,n,this.#I())}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),e&&this.div.focus()}remove(){this.#C(),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.#k(),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let n=!1;this.parent&&!e?this.#C():e&&(this.#k(e),n=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(e),this.show(this._isVisible),n&&this.select()}#_(e){if(!this.#u)return;this.#v({highlightOutlines:this.#c.getNewOutline(e/2)}),this.fixAndSetPosition();const[n,r]=this.parentDimensions;this.setDims(this.width*n,this.height*r)}#C(){this.#p===null||!this.parent||(this.parent.drawLayer.remove(this.#p),this.#p=null,this.parent.drawLayer.remove(this.#h),this.#h=null)}#k(e=this.parent){this.#p===null&&({id:this.#p,clipPathId:this.#r}=e.drawLayer.draw({bbox:this.#c.box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":this.#o},rootClass:{highlight:!0,free:this.#u},path:{d:this.#c.toSVGPath()}},!1,!0),this.#h=e.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:this.#u},bbox:this.#i.box,path:{d:this.#i.toSVGPath()}},this.#u),this.#d&&(this.#d.style.clipPath=this.#r))}static#S([e,n,r,i],a){switch(a){case 90:return[1-n-i,e,i,r];case 180:return[1-e-r,1-n-i,r,i];case 270:return[n,1-e-r,i,r]}return[e,n,r,i]}rotate(e){const{drawLayer:n}=this.parent;let r;this.#u?(e=(e-this.rotation+360)%360,r=_t.#S(this.#c.box,e)):r=_t.#S([this.x,this.y,this.width,this.height],e),n.updateProperties(this.#p,{bbox:r,root:{"data-main-rotation":e}}),n.updateProperties(this.#h,{bbox:_t.#S(this.#i.box,e),root:{"data-main-rotation":e}})}render(){if(this.div)return this.div;const e=super.render();this.#m&&(e.setAttribute("aria-label",this.#m),e.setAttribute("role","mark")),this.#u?e.classList.add("free"):this.div.addEventListener("keydown",this.#R.bind(this),{signal:this._uiManager._signal});const n=this.#d=document.createElement("div");e.append(n),n.setAttribute("aria-hidden","true"),n.className="internal",n.style.clipPath=this.#r;const[r,i]=this.parentDimensions;return this.setDims(this.width*r,this.height*i),QP(this,this.#d,["pointerover","pointerleave"]),this.enableEditing(),e}pointerover(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#h,{rootClass:{hovered:!0}})}pointerleave(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#h,{rootClass:{hovered:!1}})}#R(e){_t._keyboardManager.exec(this,e)}_moveCaret(e){switch(this.parent.unselect(this),e){case 0:case 2:this.#T(!0);break;case 1:case 3:this.#T(!1);break}}#T(e){if(!this.#e)return;const n=window.getSelection();e?n.setPosition(this.#e,this.#t):n.setPosition(this.#l,this.#s)}select(){super.select(),this.#h&&this.parent?.drawLayer.updateProperties(this.#h,{rootClass:{hovered:!1,selected:!0}})}unselect(){super.unselect(),this.#h&&(this.parent?.drawLayer.updateProperties(this.#h,{rootClass:{selected:!1}}),this.#u||this.#T(!1))}get _mustFixPosition(){return!this.#u}show(e=this._isVisible){super.show(e),this.parent&&(this.parent.drawLayer.updateProperties(this.#p,{rootClass:{hidden:!e}}),this.parent.drawLayer.updateProperties(this.#h,{rootClass:{hidden:!e}}))}#I(){return this.#u?this.rotation:0}#O(){if(this.#u)return null;const[e,n]=this.pageDimensions,[r,i]=this.pageTranslation,a=this.#n,o=new Float32Array(a.length*8);let l=0;for(const{x:u,y:d,width:p,height:f}of a){const g=u*e+r,m=(1-d)*n+i;o[l]=o[l+4]=g,o[l+1]=o[l+3]=m,o[l+2]=o[l+6]=g+p*e,o[l+5]=o[l+7]=m-f*n,l+=8}return o}#L(e){return this.#c.serialize(e,this.#I())}static startHighlighting(e,n,{target:r,x:i,y:a}){const{x:o,y:l,width:u,height:d}=r.getBoundingClientRect(),p=new AbortController,f=e.combinedSignal(p),g=m=>{p.abort(),this.#A(e,m)};window.addEventListener("blur",g,{signal:f}),window.addEventListener("pointerup",g,{signal:f}),window.addEventListener("pointerdown",Ct,{capture:!0,passive:!1,signal:f}),window.addEventListener("contextmenu",Xn,{signal:f}),r.addEventListener("pointermove",this.#$.bind(this,e),{signal:f}),this._freeHighlight=new Sw({x:i,y:a},[o,l,u,d],e.scale,this._defaultThickness/2,n,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static#$(e,n){this._freeHighlight.add(n)&&e.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})}static#A(e,n){this._freeHighlight.isEmpty()?e.drawLayer.remove(this._freeHighlightId):e.createAndAddNewEditor(n,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""}static async deserialize(e,n,r){let i=null;if(e instanceof wF){const{data:{quadPoints:v,rect:b,rotation:E,id:S,color:_,opacity:w,popupRef:A},parent:{page:{pageNumber:k}}}=e;i=e={annotationType:Le.HIGHLIGHT,color:Array.from(_),opacity:w,quadPoints:v,boxes:null,pageIndex:k-1,rect:b.slice(0),rotation:E,id:S,deleted:!1,popupRef:A}}else if(e instanceof HS){const{data:{inkLists:v,rect:b,rotation:E,id:S,color:_,borderStyle:{rawWidth:w},popupRef:A},parent:{page:{pageNumber:k}}}=e;i=e={annotationType:Le.HIGHLIGHT,color:Array.from(_),thickness:w,inkLists:v,boxes:null,pageIndex:k-1,rect:b.slice(0),rotation:E,id:S,deleted:!1,popupRef:A}}const{color:a,quadPoints:o,inkLists:l,opacity:u}=e,d=await super.deserialize(e,n,r);d.color=Ce.makeHexColor(...a),d.#o=u||1,l&&(d.#g=e.thickness),d.annotationElementId=e.id||null,d._initialData=i;const[p,f]=d.pageDimensions,[g,m]=d.pageTranslation;if(o){const v=d.#n=[];for(let b=0;b<o.length;b+=8)v.push({x:(o[b]-g)/p,y:1-(o[b+1]-m)/f,width:(o[b+2]-o[b])/p,height:(o[b+1]-o[b+5])/f});d.#y(),d.#k(),d.rotate(d.rotation)}else if(l){d.#u=!0;const v=l[0],b={x:v[0]-g,y:f-(v[1]-m)},E=new Sw(b,[0,0,p,f],1,d.#g/2,!0,.001);for(let w=0,A=v.length;w<A;w+=2)b.x=v[w]-g,b.y=f-(v[w+1]-m),E.add(b);const{id:S,clipPathId:_}=n.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:d.color,"fill-opacity":d._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:E.toSVGPath()}},!0,!0);d.#v({highlightOutlines:E.getOutlines(),highlightId:S,clipPathId:_}),d.#k(),d.rotate(d.parentRotation)}return d}serialize(e=!1){if(this.isEmpty()||e)return null;if(this.deleted)return this.serializeDeleted();const n=this.getRect(0,0),r=Ne._colorManager.convert(this.color),i={annotationType:Le.HIGHLIGHT,color:r,opacity:this.#o,thickness:this.#g,quadPoints:this.#O(),outlines:this.#L(n),pageIndex:this.pageIndex,rect:n,rotation:this.#I(),structTreeParentId:this._structTreeParentId};return this.annotationElementId&&!this.#E(i)?null:(i.id=this.annotationElementId,i)}#E(e){const{color:n}=this._initialData;return e.color.some((r,i)=>r!==n[i])}renderAnnotationElement(e){return e.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}}class _F{#e=Object.create(null);updateProperty(e,n){this[e]=n,this.updateSVGProperty(e,n)}updateProperties(e){if(e)for(const[n,r]of Object.entries(e))n.startsWith("_")||this.updateProperty(n,r)}updateSVGProperty(e,n){this.#e[e]=n}toSVGProperties(){const e=this.#e;return this.#e=Object.create(null),{root:e}}reset(){this.#e=Object.create(null)}updateAll(e=this){this.updateProperties(e)}clone(){et("Not implemented")}}class Ie extends Ne{#e=null;#t;_drawId=null;static _currentDrawId=-1;static _currentParent=null;static#n=null;static#r=null;static#a=null;static#i=NaN;static#l=null;static#s=null;static#d=NaN;static _INNER_MARGIN=3;constructor(e){super(e),this.#t=e.mustBeCommitted||!1,this._addOutlines(e)}_addOutlines(e){e.drawOutlines&&(this.#c(e),this.#f())}#c({drawOutlines:e,drawId:n,drawingOptions:r}){this.#e=e,this._drawingOptions||=r,n>=0?(this._drawId=n,this.parent.drawLayer.finalizeDraw(n,e.defaultProperties)):this._drawId=this.#p(e,this.parent),this.#m(e.box)}#p(e,n){const{id:r}=n.drawLayer.draw(Ie._mergeSVGProperties(this._drawingOptions.toSVGProperties(),e.defaultSVGProperties),!1,!1);return r}static _mergeSVGProperties(e,n){const r=new Set(Object.keys(e));for(const[i,a]of Object.entries(n))r.has(i)?Object.assign(e[i],a):e[i]=a;return e}static getDefaultDrawingOptions(e){et("Not implemented")}static get typesMap(){et("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(e,n){const r=this.typesMap.get(e);r&&this._defaultDrawingOptions.updateProperty(r,n),this._currentParent&&(Ie.#n.updateProperty(r,n),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(e,n){const r=this.constructor.typesMap.get(e);r&&this._updateProperty(e,r,n)}static get defaultPropertiesToUpdate(){const e=[],n=this._defaultDrawingOptions;for(const[r,i]of this.typesMap)e.push([r,n[i]]);return e}get propertiesToUpdate(){const e=[],{_drawingOptions:n}=this;for(const[r,i]of this.constructor.typesMap)e.push([r,n[i]]);return e}_updateProperty(e,n,r){const i=this._drawingOptions,a=i[n],o=l=>{i.updateProperty(n,l);const u=this.#e.updateProperty(n,l);u&&this.#m(u),this.parent?.drawLayer.updateProperties(this._drawId,i.toSVGProperties())};this.addCommands({cmd:o.bind(this,r),undo:o.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:e,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){this.parent?.drawLayer.updateProperties(this._drawId,Ie._mergeSVGProperties(this.#e.getPathResizingSVGProperties(this.#h()),{bbox:this.#g()}))}_onResized(){this.parent?.drawLayer.updateProperties(this._drawId,Ie._mergeSVGProperties(this.#e.getPathResizedSVGProperties(this.#h()),{bbox:this.#g()}))}_onTranslating(e,n){this.parent?.drawLayer.updateProperties(this._drawId,{bbox:this.#g()})}_onTranslated(){this.parent?.drawLayer.updateProperties(this._drawId,Ie._mergeSVGProperties(this.#e.getPathTranslatedSVGProperties(this.#h(),this.parentDimensions),{bbox:this.#g()}))}_onStartDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,this.#t&&(this.#t=!1,this.commit(),this.parent.setSelected(this),e&&this.isOnScreen&&this.div.focus())}remove(){this.#u(),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.#f(),this.#m(this.#e.box),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let n=!1;this.parent&&!e?(this._uiManager.removeShouldRescale(this),this.#u()):e&&(this._uiManager.addShouldRescale(this),this.#f(e),n=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(e),n&&this.select()}#u(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())}#f(e=this.parent){if(!(this._drawId!==null&&this.parent===e)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,e.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=this.#p(this.#e,e)}}#o([e,n,r,i]){const{parentDimensions:[a,o],rotation:l}=this;switch(l){case 90:return[n,1-e,r*(o/a),i*(a/o)];case 180:return[1-e,1-n,r,i];case 270:return[1-n,e,r*(o/a),i*(a/o)];default:return[e,n,r,i]}}#h(){const{x:e,y:n,width:r,height:i,parentDimensions:[a,o],rotation:l}=this;switch(l){case 90:return[1-n,e,r*(a/o),i*(o/a)];case 180:return[1-e,1-n,r,i];case 270:return[n,1-e,r*(a/o),i*(o/a)];default:return[e,n,r,i]}}#m(e){if([this.x,this.y,this.width,this.height]=this.#o(e),this.div){this.fixAndSetPosition();const[n,r]=this.parentDimensions;this.setDims(this.width*n,this.height*r)}this._onResized()}#g(){const{x:e,y:n,width:r,height:i,rotation:a,parentRotation:o,parentDimensions:[l,u]}=this;switch((a*4+o)/90){case 1:return[1-n-i,e,i,r];case 2:return[1-e-r,1-n-i,r,i];case 3:return[n,1-e-r,i,r];case 4:return[e,n-r*(l/u),i*(u/l),r*(l/u)];case 5:return[1-n,e,r*(l/u),i*(u/l)];case 6:return[1-e-i*(u/l),1-n,i*(u/l),r*(l/u)];case 7:return[n-r*(l/u),1-e-i*(u/l),r*(l/u),i*(u/l)];case 8:return[e-r,n-i,r,i];case 9:return[1-n,e-r,i,r];case 10:return[1-e,1-n,r,i];case 11:return[n-i,1-e,i,r];case 12:return[e-i*(u/l),n,i*(u/l),r*(l/u)];case 13:return[1-n-r*(l/u),e-i*(u/l),r*(l/u),i*(u/l)];case 14:return[1-e,1-n-r*(l/u),i*(u/l),r*(l/u)];case 15:return[n,1-e,r*(l/u),i*(u/l)];default:return[e,n,r,i]}}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,Ie._mergeSVGProperties({bbox:this.#g()},this.#e.updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&this.#m(this.#e.updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let e,n;this._isCopy&&(e=this.x,n=this.y);const r=super.render();r.classList.add("draw");const i=document.createElement("div");r.append(i),i.setAttribute("aria-hidden","true"),i.className="internal";const[a,o]=this.parentDimensions;return this.setDims(this.width*a,this.height*o),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(e,n),r}static createDrawerInstance(e,n,r,i,a){et("Not implemented")}static startDrawing(e,n,r,i){const{target:a,offsetX:o,offsetY:l,pointerId:u,pointerType:d}=i;if(Ie.#l&&Ie.#l!==d)return;const{viewport:{rotation:p}}=e,{width:f,height:g}=a.getBoundingClientRect(),m=Ie.#r=new AbortController,v=e.combinedSignal(m);if(Ie.#i||=u,Ie.#l??=d,window.addEventListener("pointerup",b=>{Ie.#i===b.pointerId?this._endDraw(b):Ie.#s?.delete(b.pointerId)},{signal:v}),window.addEventListener("pointercancel",b=>{Ie.#i===b.pointerId?this._currentParent.endDrawingSession():Ie.#s?.delete(b.pointerId)},{signal:v}),window.addEventListener("pointerdown",b=>{Ie.#l===b.pointerType&&((Ie.#s||=new Set).add(b.pointerId),Ie.#n.isCancellable()&&(Ie.#n.removeLastElement(),Ie.#n.isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:v}),window.addEventListener("contextmenu",Xn,{signal:v}),a.addEventListener("pointermove",this._drawMove.bind(this),{signal:v}),a.addEventListener("touchmove",b=>{b.timeStamp===Ie.#d&&Ct(b)},{signal:v}),e.toggleDrawing(),n._editorUndoBar?.hide(),Ie.#n){e.drawLayer.updateProperties(this._currentDrawId,Ie.#n.startNew(o,l,f,g,p));return}n.updateUIForDefaultProperties(this),Ie.#n=this.createDrawerInstance(o,l,f,g,p),Ie.#a=this.getDefaultDrawingOptions(),this._currentParent=e,{id:this._currentDrawId}=e.drawLayer.draw(this._mergeSVGProperties(Ie.#a.toSVGProperties(),Ie.#n.defaultSVGProperties),!0,!1)}static _drawMove(e){if(Ie.#d=-1,!Ie.#n)return;const{offsetX:n,offsetY:r,pointerId:i}=e;if(Ie.#i===i){if(Ie.#s?.size>=1){this._endDraw(e);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,Ie.#n.add(n,r)),Ie.#d=e.timeStamp,Ct(e)}}static _cleanup(e){e&&(this._currentDrawId=-1,this._currentParent=null,Ie.#n=null,Ie.#a=null,Ie.#l=null,Ie.#d=NaN),Ie.#r&&(Ie.#r.abort(),Ie.#r=null,Ie.#i=NaN,Ie.#s=null)}static _endDraw(e){const n=this._currentParent;if(n){if(n.toggleDrawing(!0),this._cleanup(!1),e?.target===n.div&&n.drawLayer.updateProperties(this._currentDrawId,Ie.#n.end(e.offsetX,e.offsetY)),this.supportMultipleDrawings){const r=Ie.#n,i=this._currentDrawId,a=r.getLastElement();n.addCommands({cmd:()=>{n.drawLayer.updateProperties(i,r.setLastElement(a))},undo:()=>{n.drawLayer.updateProperties(i,r.removeLastElement())},mustExec:!1,type:je.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(e){const n=this._currentParent;if(!n)return null;if(n.toggleDrawing(!0),n.cleanUndoStack(je.DRAW_STEP),!Ie.#n.isEmpty()){const{pageDimensions:[r,i],scale:a}=n,o=n.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:Ie.#n.getOutlines(r*a,i*a,a,this._INNER_MARGIN),drawingOptions:Ie.#a,mustBeCommitted:!e});return this._cleanup(!0),o}return n.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(e){}static deserializeDraw(e,n,r,i,a,o){et("Not implemented")}static async deserialize(e,n,r){const{rawDims:{pageWidth:i,pageHeight:a,pageX:o,pageY:l}}=n.viewport,u=this.deserializeDraw(o,l,i,a,this._INNER_MARGIN,e),d=await super.deserialize(e,n,r);return d.createDrawingOptions(e),d.#c({drawOutlines:u}),d.#f(),d.onScaleChanging(),d.rotate(),d}serializeDraw(e){const[n,r]=this.pageTranslation,[i,a]=this.pageDimensions;return this.#e.serialize([n,r,i,a],e)}renderAnnotationElement(e){return e.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}}class _ne{#e=new Float64Array(6);#t;#n;#r;#a;#i;#l="";#s=0;#d=new rc;#c;#p;constructor(e,n,r,i,a,o){this.#c=r,this.#p=i,this.#r=a,this.#a=o,[e,n]=this.#u(e,n);const l=this.#t=[NaN,NaN,NaN,NaN,e,n];this.#i=[e,n],this.#n=[{line:l,points:this.#i}],this.#e.set(l,0)}updateProperty(e,n){e==="stroke-width"&&(this.#a=n)}#u(e,n){return ye._normalizePoint(e,n,this.#c,this.#p,this.#r)}isEmpty(){return!this.#n||this.#n.length===0}isCancellable(){return this.#i.length<=10}add(e,n){[e,n]=this.#u(e,n);const[r,i,a,o]=this.#e.subarray(2,6),l=e-a,u=n-o;return Math.hypot(this.#c*l,this.#p*u)<=2?null:(this.#i.push(e,n),isNaN(r)?(this.#e.set([a,o,e,n],2),this.#t.push(NaN,NaN,NaN,NaN,e,n),{path:{d:this.toSVGPath()}}):(isNaN(this.#e[0])&&this.#t.splice(6,6),this.#e.set([r,i,a,o,e,n],0),this.#t.push(...ye.createBezierPoints(r,i,a,o,e,n)),{path:{d:this.toSVGPath()}}))}end(e,n){const r=this.add(e,n);return r||(this.#i.length===2?{path:{d:this.toSVGPath()}}:null)}startNew(e,n,r,i,a){this.#c=r,this.#p=i,this.#r=a,[e,n]=this.#u(e,n);const o=this.#t=[NaN,NaN,NaN,NaN,e,n];this.#i=[e,n];const l=this.#n.at(-1);return l&&(l.line=new Float32Array(l.line),l.points=new Float32Array(l.points)),this.#n.push({line:o,points:this.#i}),this.#e.set(o,0),this.#s=0,this.toSVGPath(),null}getLastElement(){return this.#n.at(-1)}setLastElement(e){return this.#n?(this.#n.push(e),this.#t=e.line,this.#i=e.points,this.#s=0,{path:{d:this.toSVGPath()}}):this.#d.setLastElement(e)}removeLastElement(){if(!this.#n)return this.#d.removeLastElement();this.#n.pop(),this.#l="";for(let e=0,n=this.#n.length;e<n;e++){const{line:r,points:i}=this.#n[e];this.#t=r,this.#i=i,this.#s=0,this.toSVGPath()}return{path:{d:this.#l}}}toSVGPath(){const e=ye.svgRound(this.#t[4]),n=ye.svgRound(this.#t[5]);if(this.#i.length===2)return this.#l=`${this.#l} M ${e} ${n} Z`,this.#l;if(this.#i.length<=6){const i=this.#l.lastIndexOf("M");this.#l=`${this.#l.slice(0,i)} M ${e} ${n}`,this.#s=6}if(this.#i.length===4){const i=ye.svgRound(this.#t[10]),a=ye.svgRound(this.#t[11]);return this.#l=`${this.#l} L ${i} ${a}`,this.#s=12,this.#l}const r=[];this.#s===0&&(r.push(`M ${e} ${n}`),this.#s=6);for(let i=this.#s,a=this.#t.length;i<a;i+=6){const[o,l,u,d,p,f]=this.#t.slice(i,i+6).map(ye.svgRound);r.push(`C${o} ${l} ${u} ${d} ${p} ${f}`)}return this.#l+=r.join(" "),this.#s=this.#t.length,this.#l}getOutlines(e,n,r,i){const a=this.#n.at(-1);return a.line=new Float32Array(a.line),a.points=new Float32Array(a.points),this.#d.build(this.#n,e,n,r,this.#r,this.#a,i),this.#e=null,this.#t=null,this.#n=null,this.#l=null,this.#d}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}class rc extends ye{#e;#t=0;#n;#r;#a;#i;#l;#s;#d;build(e,n,r,i,a,o,l){this.#a=n,this.#i=r,this.#l=i,this.#s=a,this.#d=o,this.#n=l??0,this.#r=e,this.#u()}get thickness(){return this.#d}setLastElement(e){return this.#r.push(e),{path:{d:this.toSVGPath()}}}removeLastElement(){return this.#r.pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const e=[];for(const{line:n}of this.#r){if(e.push(`M${ye.svgRound(n[4])} ${ye.svgRound(n[5])}`),n.length===6){e.push("Z");continue}if(n.length===12&&isNaN(n[6])){e.push(`L${ye.svgRound(n[10])} ${ye.svgRound(n[11])}`);continue}for(let r=6,i=n.length;r<i;r+=6){const[a,o,l,u,d,p]=n.subarray(r,r+6).map(ye.svgRound);e.push(`C${a} ${o} ${l} ${u} ${d} ${p}`)}}return e.join("")}serialize([e,n,r,i],a){const o=[],l=[],[u,d,p,f]=this.#p();let g,m,v,b,E,S,_,w,A;switch(this.#s){case 0:A=ye._rescale,g=e,m=n+i,v=r,b=-i,E=e+u*r,S=n+(1-d-f)*i,_=e+(u+p)*r,w=n+(1-d)*i;break;case 90:A=ye._rescaleAndSwap,g=e,m=n,v=r,b=i,E=e+d*r,S=n+u*i,_=e+(d+f)*r,w=n+(u+p)*i;break;case 180:A=ye._rescale,g=e+r,m=n,v=-r,b=i,E=e+(1-u-p)*r,S=n+d*i,_=e+(1-u)*r,w=n+(d+f)*i;break;case 270:A=ye._rescaleAndSwap,g=e+r,m=n+i,v=-r,b=-i,E=e+(1-d-f)*r,S=n+(1-u-p)*i,_=e+(1-d)*r,w=n+(1-u)*i;break}for(const{line:k,points:R}of this.#r)o.push(A(k,g,m,v,b,a?new Array(k.length):null)),l.push(A(R,g,m,v,b,a?new Array(R.length):null));return{lines:o,points:l,rect:[E,S,_,w]}}static deserialize(e,n,r,i,a,{paths:{lines:o,points:l},rotation:u,thickness:d}){const p=[];let f,g,m,v,b;switch(u){case 0:b=ye._rescale,f=-e/r,g=n/i+1,m=1/r,v=-1/i;break;case 90:b=ye._rescaleAndSwap,f=-n/i,g=-e/r,m=1/i,v=1/r;break;case 180:b=ye._rescale,f=e/r+1,g=-n/i,m=-1/r,v=1/i;break;case 270:b=ye._rescaleAndSwap,f=n/i+1,g=e/r+1,m=-1/i,v=-1/r;break}if(!o){o=[];for(const S of l){const _=S.length;if(_===2){o.push(new Float32Array([NaN,NaN,NaN,NaN,S[0],S[1]]));continue}if(_===4){o.push(new Float32Array([NaN,NaN,NaN,NaN,S[0],S[1],NaN,NaN,NaN,NaN,S[2],S[3]]));continue}const w=new Float32Array(3*(_-2));o.push(w);let[A,k,R,I]=S.subarray(0,4);w.set([NaN,NaN,NaN,NaN,A,k],0);for(let O=4;O<_;O+=2){const L=S[O],F=S[O+1];w.set(ye.createBezierPoints(A,k,R,I,L,F),(O-2)*3),[A,k,R,I]=[R,I,L,F]}}}for(let S=0,_=o.length;S<_;S++)p.push({line:b(o[S].map(w=>w??NaN),f,g,m,v),points:b(l[S].map(w=>w??NaN),f,g,m,v)});const E=new this.prototype.constructor;return E.build(p,r,i,1,u,d,a),E}#c(e=this.#d){const n=this.#n+e/2*this.#l;return this.#s%180===0?[n/this.#a,n/this.#i]:[n/this.#i,n/this.#a]}#p(){const[e,n,r,i]=this.#e,[a,o]=this.#c(0);return[e+a,n+o,r-2*a,i-2*o]}#u(){const e=this.#e=new Float32Array([1/0,1/0,-1/0,-1/0]);for(const{line:i}of this.#r){if(i.length<=12){for(let l=4,u=i.length;l<u;l+=6)Ce.pointBoundingBox(i[l],i[l+1],e);continue}let a=i[4],o=i[5];for(let l=6,u=i.length;l<u;l+=6){const[d,p,f,g,m,v]=i.subarray(l,l+6);Ce.bezierBoundingBox(a,o,d,p,f,g,m,v,e),a=m,o=v}}const[n,r]=this.#c();e[0]=rn(e[0]-n,0,1),e[1]=rn(e[1]-r,0,1),e[2]=rn(e[2]+n,0,1),e[3]=rn(e[3]+r,0,1),e[2]-=e[0],e[3]-=e[1]}get box(){return this.#e}updateProperty(e,n){return e==="stroke-width"?this.#f(n):null}#f(e){const[n,r]=this.#c();this.#d=e;const[i,a]=this.#c(),[o,l]=[i-n,a-r],u=this.#e;return u[0]-=o,u[1]-=l,u[2]+=2*o,u[3]+=2*l,u}updateParentDimensions([e,n],r){const[i,a]=this.#c();this.#a=e,this.#i=n,this.#l=r;const[o,l]=this.#c(),u=o-i,d=l-a,p=this.#e;return p[0]-=u,p[1]-=d,p[2]+=2*u,p[3]+=2*d,p}updateRotation(e){return this.#t=e,{path:{transform:this.rotationTransform}}}get viewBox(){return this.#e.map(ye.svgRound).join(" ")}get defaultProperties(){const[e,n]=this.#e;return{root:{viewBox:this.viewBox},path:{"transform-origin":`${ye.svgRound(e)} ${ye.svgRound(n)}`}}}get rotationTransform(){const[,,e,n]=this.#e;let r=0,i=0,a=0,o=0,l=0,u=0;switch(this.#t){case 90:i=n/e,a=-e/n,l=e;break;case 180:r=-1,o=-1,l=e,u=n;break;case 270:i=-n/e,a=e/n,u=n;break;default:return""}return`matrix(${r} ${i} ${a} ${o} ${ye.svgRound(l)} ${ye.svgRound(u)})`}getPathResizingSVGProperties([e,n,r,i]){const[a,o]=this.#c(),[l,u,d,p]=this.#e;if(Math.abs(d-a)<=ye.PRECISION||Math.abs(p-o)<=ye.PRECISION){const b=e+r/2-(l+d/2),E=n+i/2-(u+p/2);return{path:{"transform-origin":`${ye.svgRound(e)} ${ye.svgRound(n)}`,transform:`${this.rotationTransform} translate(${b} ${E})`}}}const f=(r-2*a)/(d-2*a),g=(i-2*o)/(p-2*o),m=d/r,v=p/i;return{path:{"transform-origin":`${ye.svgRound(l)} ${ye.svgRound(u)}`,transform:`${this.rotationTransform} scale(${m} ${v}) translate(${ye.svgRound(a)} ${ye.svgRound(o)}) scale(${f} ${g}) translate(${ye.svgRound(-a)} ${ye.svgRound(-o)})`}}}getPathResizedSVGProperties([e,n,r,i]){const[a,o]=this.#c(),l=this.#e,[u,d,p,f]=l;if(l[0]=e,l[1]=n,l[2]=r,l[3]=i,Math.abs(p-a)<=ye.PRECISION||Math.abs(f-o)<=ye.PRECISION){const E=e+r/2-(u+p/2),S=n+i/2-(d+f/2);for(const{line:_,points:w}of this.#r)ye._translate(_,E,S,_),ye._translate(w,E,S,w);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${ye.svgRound(e)} ${ye.svgRound(n)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const g=(r-2*a)/(p-2*a),m=(i-2*o)/(f-2*o),v=-g*(u+a)+e+a,b=-m*(d+o)+n+o;if(g!==1||m!==1||v!==0||b!==0)for(const{line:E,points:S}of this.#r)ye._rescale(E,v,b,g,m,E),ye._rescale(S,v,b,g,m,S);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${ye.svgRound(e)} ${ye.svgRound(n)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([e,n],r){const[i,a]=r,o=this.#e,l=e-o[0],u=n-o[1];if(this.#a===i&&this.#i===a)for(const{line:d,points:p}of this.#r)ye._translate(d,l,u,d),ye._translate(p,l,u,p);else{const d=this.#a/i,p=this.#i/a;this.#a=i,this.#i=a;for(const{line:f,points:g}of this.#r)ye._rescale(f,l,u,d,p,f),ye._rescale(g,l,u,d,p,g);o[2]*=d,o[3]*=p}return o[0]=e,o[1]=n,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${ye.svgRound(e)} ${ye.svgRound(n)}`}}}get defaultSVGProperties(){const e=this.#e;return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${ye.svgRound(e[0])} ${ye.svgRound(e[1])}`,transform:this.rotationTransform||null},bbox:e}}}class dp extends _F{constructor(e){super(),this._viewParameters=e,super.updateProperties({fill:"none",stroke:Ne._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(e,n){e==="stroke-width"&&(n??=this["stroke-width"],n*=this._viewParameters.realScale),super.updateSVGProperty(e,n)}clone(){const e=new dp(this._viewParameters);return e.updateAll(this),e}}class qS extends Ie{static _type="ink";static _editorType=Le.INK;static _defaultDrawingOptions=null;constructor(e){super({...e,name:"inkEditor"}),this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(e,n){Ne.initialize(e,n),this._defaultDrawingOptions=new dp(n.viewParameters)}static getDefaultDrawingOptions(e){const n=this._defaultDrawingOptions.clone();return n.updateProperties(e),n}static get supportMultipleDrawings(){return!0}static get typesMap(){return ze(this,"typesMap",new Map([[je.INK_THICKNESS,"stroke-width"],[je.INK_COLOR,"stroke"],[je.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(e,n,r,i,a){return new _ne(e,n,r,i,a,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(e,n,r,i,a,o){return rc.deserialize(e,n,r,i,a,o)}static async deserialize(e,n,r){let i=null;if(e instanceof HS){const{data:{inkLists:o,rect:l,rotation:u,id:d,color:p,opacity:f,borderStyle:{rawWidth:g},popupRef:m},parent:{page:{pageNumber:v}}}=e;i=e={annotationType:Le.INK,color:Array.from(p),thickness:g,opacity:f,paths:{points:o},boxes:null,pageIndex:v-1,rect:l.slice(0),rotation:u,id:d,deleted:!1,popupRef:m}}const a=await super.deserialize(e,n,r);return a.annotationElementId=e.id||null,a._initialData=i,a}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:e,_drawingOptions:n,parent:r}=this;n.updateSVGProperty("stroke-width"),r.drawLayer.updateProperties(e,n.toSVGProperties())}static onScaleChangingWhenDrawing(){const e=this._currentParent;e&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),e.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:e,thickness:n,opacity:r}){this._drawingOptions=qS.getDefaultDrawingOptions({stroke:Ce.makeHexColor(...e),"stroke-width":n,"stroke-opacity":r})}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:n,points:r,rect:i}=this.serializeDraw(e),{_drawingOptions:{stroke:a,"stroke-opacity":o,"stroke-width":l}}=this,u={annotationType:Le.INK,color:Ne._colorManager.convert(a),opacity:o,thickness:l,paths:{lines:n,points:r},pageIndex:this.pageIndex,rect:i,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return e?(u.isCopy=!0,u):this.annotationElementId&&!this.#e(u)?null:(u.id=this.annotationElementId,u)}#e(e){const{color:n,thickness:r,opacity:i,pageIndex:a}=this._initialData;return this._hasBeenMoved||this._hasBeenResized||e.color.some((o,l)=>o!==n[l])||e.thickness!==r||e.opacity!==i||e.pageIndex!==a}renderAnnotationElement(e){const{points:n,rect:r}=this.serializeDraw(!1);return e.updateEdited({rect:r,thickness:this._drawingOptions["stroke-width"],points:n}),null}}class xw extends rc{toSVGPath(){let e=super.toSVGPath();return e.endsWith("Z")||(e+="Z"),e}}const Hu=8,il=3;class Ea{static#e={maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16};static#t(e,n,r,i){return r-=e,i-=n,r===0?i>0?0:4:r===1?i+6:2-i}static#n=new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]);static#r(e,n,r,i,a,o,l){const u=this.#t(r,i,a,o);for(let d=0;d<8;d++){const p=(-d+u-l+16)%8,f=this.#n[2*p],g=this.#n[2*p+1];if(e[(r+f)*n+(i+g)]!==0)return p}return-1}static#a(e,n,r,i,a,o,l){const u=this.#t(r,i,a,o);for(let d=0;d<8;d++){const p=(d+u+l+16)%8,f=this.#n[2*p],g=this.#n[2*p+1];if(e[(r+f)*n+(i+g)]!==0)return p}return-1}static#i(e,n,r,i){const a=e.length,o=new Int32Array(a);for(let p=0;p<a;p++)o[p]=e[p]<=i?1:0;for(let p=1;p<r-1;p++)o[p*n]=o[p*n+n-1]=0;for(let p=0;p<n;p++)o[p]=o[n*r-1-p]=0;let l=1,u;const d=[];for(let p=1;p<r-1;p++){u=1;for(let f=1;f<n-1;f++){const g=p*n+f,m=o[g];if(m===0)continue;let v=p,b=f;if(m===1&&o[g-1]===0)l+=1,b-=1;else if(m>=1&&o[g+1]===0)l+=1,b+=1,m>1&&(u=m);else{m!==1&&(u=Math.abs(m));continue}const E=[f,p],S=b===f+1,_={isHole:S,points:E,id:l,parent:0};d.push(_);let w;for(const j of d)if(j.id===u){w=j;break}w?w.isHole?_.parent=S?w.parent:u:_.parent=S?u:w.parent:_.parent=S?u:0;const A=this.#r(o,n,p,f,v,b,0);if(A===-1){o[g]=-l,o[g]!==1&&(u=Math.abs(o[g]));continue}let k=this.#n[2*A],R=this.#n[2*A+1];const I=p+k,O=f+R;v=I,b=O;let L=p,F=f;for(;;){const j=this.#a(o,n,L,F,v,b,1);k=this.#n[2*j],R=this.#n[2*j+1];const H=L+k,G=F+R;E.push(G,H);const D=L*n+F;if(o[D+1]===0?o[D]=-l:o[D]===1&&(o[D]=l),H===p&&G===f&&L===I&&F===O){o[g]!==1&&(u=Math.abs(o[g]));break}else v=L,b=F,L=H,F=G}}}return d}static#l(e,n,r,i){if(r-n<=4){for(let I=n;I<r-2;I+=2)i.push(e[I],e[I+1]);return}const a=e[n],o=e[n+1],l=e[r-4]-a,u=e[r-3]-o,d=Math.hypot(l,u),p=l/d,f=u/d,g=p*o-f*a,m=u/l,v=1/d,b=Math.atan(m),E=Math.cos(b),S=Math.sin(b),_=v*(Math.abs(E)+Math.abs(S)),w=v*(1-_+_**2),A=Math.max(Math.atan(Math.abs(S+E)*w),Math.atan(Math.abs(S-E)*w));let k=0,R=n;for(let I=n+2;I<r-2;I+=2){const O=Math.abs(g-p*e[I+1]+f*e[I]);O>k&&(R=I,k=O)}k>(d*A)**2?(this.#l(e,n,R+2,i),this.#l(e,R,r,i)):i.push(a,o)}static#s(e){const n=[],r=e.length;return this.#l(e,0,r,n),n.push(e[r-2],e[r-1]),n.length<=4?null:n}static#d(e,n,r,i,a,o){const l=new Float32Array(o**2),u=-2*i**2,d=o>>1;for(let b=0;b<o;b++){const E=(b-d)**2;for(let S=0;S<o;S++)l[b*o+S]=Math.exp((E+(S-d)**2)/u)}const p=new Float32Array(256),f=-2*a**2;for(let b=0;b<256;b++)p[b]=Math.exp(b**2/f);const g=e.length,m=new Uint8Array(g),v=new Uint32Array(256);for(let b=0;b<r;b++)for(let E=0;E<n;E++){const S=b*n+E,_=e[S];let w=0,A=0;for(let R=0;R<o;R++){const I=b+R-d;if(!(I<0||I>=r))for(let O=0;O<o;O++){const L=E+O-d;if(L<0||L>=n)continue;const F=e[I*n+L],j=l[R*o+O]*p[Math.abs(F-_)];w+=F*j,A+=j}}const k=m[S]=Math.round(w/A);v[k]++}return[m,v]}static#c(e){const n=new Uint32Array(256);for(const r of e)n[r]++;return n}static#p(e){const n=e.length,r=new Uint8ClampedArray(n>>2);let i=-1/0,a=1/0;for(let l=0,u=r.length;l<u;l++){if(e[(l<<2)+3]===0){i=r[l]=255;continue}const p=r[l]=e[l<<2];p>i&&(i=p),p<a&&(a=p)}const o=255/(i-a);for(let l=0;l<n;l++)r[l]=(r[l]-a)*o;return r}static#u(e){let n,r=-1/0,i=-1/0;const a=e.findIndex(u=>u!==0);let o=a,l=a;for(n=a;n<256;n++){const u=e[n];u>r&&(n-o>i&&(i=n-o,l=n-1),r=u,o=n)}for(n=l-1;n>=0&&!(e[n]>e[n+1]);n--);return n}static#f(e){const n=e,{width:r,height:i}=e,{maxDim:a}=this.#e;let o=r,l=i;if(r>a||i>a){let g=r,m=i,v=Math.log2(Math.max(r,i)/a);const b=Math.floor(v);v=v===b?b-1:b;for(let S=0;S<v;S++){o=Math.ceil(g/2),l=Math.ceil(m/2);const _=new OffscreenCanvas(o,l);_.getContext("2d").drawImage(e,0,0,g,m,0,0,o,l),g=o,m=l,e!==n&&e.close(),e=_.transferToImageBitmap()}const E=Math.min(a/o,a/l);o=Math.round(o*E),l=Math.round(l*E)}const d=new OffscreenCanvas(o,l).getContext("2d",{willReadFrequently:!0});d.filter="grayscale(1)",d.drawImage(e,0,0,e.width,e.height,0,0,o,l);const p=d.getImageData(0,0,o,l).data;return[this.#p(p),o,l]}static extractContoursFromText(e,{fontFamily:n,fontStyle:r,fontWeight:i},a,o,l,u){let d=new OffscreenCanvas(1,1),p=d.getContext("2d",{alpha:!1});const f=200,g=p.font=`${r} ${i} ${f}px ${n}`,{actualBoundingBoxLeft:m,actualBoundingBoxRight:v,actualBoundingBoxAscent:b,actualBoundingBoxDescent:E,fontBoundingBoxAscent:S,fontBoundingBoxDescent:_,width:w}=p.measureText(e),A=1.5,k=Math.ceil(Math.max(Math.abs(m)+Math.abs(v)||0,w)*A),R=Math.ceil(Math.max(Math.abs(b)+Math.abs(E)||f,Math.abs(S)+Math.abs(_)||f)*A);d=new OffscreenCanvas(k,R),p=d.getContext("2d",{alpha:!0,willReadFrequently:!0}),p.font=g,p.filter="grayscale(1)",p.fillStyle="white",p.fillRect(0,0,k,R),p.fillStyle="black",p.fillText(e,k*(A-1)/2,R*(3-A)/2);const I=this.#p(p.getImageData(0,0,k,R).data),O=this.#c(I),L=this.#u(O),F=this.#i(I,k,R,L);return this.processDrawnLines({lines:{curves:F,width:k,height:R},pageWidth:a,pageHeight:o,rotation:l,innerMargin:u,mustSmooth:!0,areContours:!0})}static process(e,n,r,i,a){const[o,l,u]=this.#f(e),[d,p]=this.#d(o,l,u,Math.hypot(l,u)*this.#e.sigmaSFactor,this.#e.sigmaR,this.#e.kernelSize),f=this.#u(p),g=this.#i(d,l,u,f);return this.processDrawnLines({lines:{curves:g,width:l,height:u},pageWidth:n,pageHeight:r,rotation:i,innerMargin:a,mustSmooth:!0,areContours:!0})}static processDrawnLines({lines:e,pageWidth:n,pageHeight:r,rotation:i,innerMargin:a,mustSmooth:o,areContours:l}){i%180!==0&&([n,r]=[r,n]);const{curves:u,width:d,height:p}=e,f=e.thickness??0,g=[],m=Math.min(n/d,r/p),v=m/n,b=m/r,E=[];for(const{points:_}of u){const w=o?this.#s(_):_;if(!w)continue;E.push(w);const A=w.length,k=new Float32Array(A),R=new Float32Array(3*(A===2?2:A-2));if(g.push({line:R,points:k}),A===2){k[0]=w[0]*v,k[1]=w[1]*b,R.set([NaN,NaN,NaN,NaN,k[0],k[1]],0);continue}let[I,O,L,F]=w;I*=v,O*=b,L*=v,F*=b,k.set([I,O,L,F],0),R.set([NaN,NaN,NaN,NaN,I,O],0);for(let j=4;j<A;j+=2){const H=k[j]=w[j]*v,G=k[j+1]=w[j+1]*b;R.set(ye.createBezierPoints(I,O,L,F,H,G),(j-2)*3),[I,O,L,F]=[L,F,H,G]}}if(g.length===0)return null;const S=l?new xw:new rc;return S.build(g,n,r,1,i,l?0:f,a),{outline:S,newCurves:E,areContours:l,thickness:f,width:d,height:p}}static async compressSignature({outlines:e,areContours:n,thickness:r,width:i,height:a}){let o=1/0,l=-1/0,u=0;for(const w of e){u+=w.length;for(let A=2,k=w.length;A<k;A++){const R=w[A]-w[A-2];o=Math.min(o,R),l=Math.max(l,R)}}let d;o>=-128&&l<=127?d=Int8Array:o>=-32768&&l<=32767?d=Int16Array:d=Int32Array;const p=e.length,f=Hu+il*p,g=new Uint32Array(f);let m=0;g[m++]=f*Uint32Array.BYTES_PER_ELEMENT+(u-2*p)*d.BYTES_PER_ELEMENT,g[m++]=0,g[m++]=i,g[m++]=a,g[m++]=n?0:1,g[m++]=Math.max(0,Math.floor(r??0)),g[m++]=p,g[m++]=d.BYTES_PER_ELEMENT;for(const w of e)g[m++]=w.length-2,g[m++]=w[0],g[m++]=w[1];const v=new CompressionStream("deflate-raw"),b=v.writable.getWriter();await b.ready,b.write(g);const E=d.prototype.constructor;for(const w of e){const A=new E(w.length-2);for(let k=2,R=w.length;k<R;k++)A[k-2]=w[k]-w[k-2];b.write(A)}b.close();const S=await new Response(v.readable).arrayBuffer(),_=new Uint8Array(S);return YP(_)}static async decompressSignature(e){try{const n=tte(e),{readable:r,writable:i}=new DecompressionStream("deflate-raw"),a=i.getWriter();await a.ready,a.write(n).then(async()=>{await a.ready,await a.close()}).catch(()=>{});let o=null,l=0;for await(const w of r)o||=new Uint8Array(new Uint32Array(w.buffer,0,4)[0]),o.set(w,l),l+=w.length;const u=new Uint32Array(o.buffer,0,o.length>>2),d=u[1];if(d!==0)throw new Error(`Invalid version: ${d}`);const p=u[2],f=u[3],g=u[4]===0,m=u[5],v=u[6],b=u[7],E=[],S=(Hu+il*v)*Uint32Array.BYTES_PER_ELEMENT;let _;switch(b){case Int8Array.BYTES_PER_ELEMENT:_=new Int8Array(o.buffer,S);break;case Int16Array.BYTES_PER_ELEMENT:_=new Int16Array(o.buffer,S);break;case Int32Array.BYTES_PER_ELEMENT:_=new Int32Array(o.buffer,S);break}l=0;for(let w=0;w<v;w++){const A=u[il*w+Hu],k=new Float32Array(A+2);E.push(k);for(let R=0;R<il-1;R++)k[R]=u[il*w+Hu+R+1];for(let R=0;R<A;R++)k[R+2]=k[R]+_[l++]}return{areContours:g,thickness:m,outlines:E,width:p,height:f}}catch(n){return Pe(`decompressSignature: ${n}`),null}}}class VS extends _F{constructor(){super(),super.updateProperties({fill:Ne._defaultLineColor,"stroke-width":0})}clone(){const e=new VS;return e.updateAll(this),e}}class WS extends dp{constructor(e){super(e),super.updateProperties({stroke:Ne._defaultLineColor,"stroke-width":1})}clone(){const e=new WS(this._viewParameters);return e.updateAll(this),e}}class Rr extends Ie{#e=!1;#t=null;#n=null;#r=null;static _type="signature";static _editorType=Le.SIGNATURE;static _defaultDrawingOptions=null;constructor(e){super({...e,mustBeCommitted:!0,name:"signatureEditor"}),this._willKeepAspectRatio=!0,this.#n=e.signatureData||null,this.#t=null,this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(e,n){Ne.initialize(e,n),this._defaultDrawingOptions=new VS,this._defaultDrawnSignatureOptions=new WS(n.viewParameters)}static getDefaultDrawingOptions(e){const n=this._defaultDrawingOptions.clone();return n.updateProperties(e),n}static get supportMultipleDrawings(){return!1}static get typesMap(){return ze(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!this.#t}}static computeTelemetryFinalData(e){const n=e.get("hasDescription");return{hasAltText:n.get(!0)??0,hasNoAltText:n.get(!1)??0}}get isResizable(){return!0}onScaleChanging(){this._drawId!==null&&super.onScaleChanging()}render(){if(this.div)return this.div;let e,n;const{_isCopy:r}=this;if(r&&(this._isCopy=!1,e=this.x,n=this.y),super.render(),this._drawId===null)if(this.#n){const{lines:i,mustSmooth:a,areContours:o,description:l,uuid:u,heightInPage:d}=this.#n,{rawDims:{pageWidth:p,pageHeight:f},rotation:g}=this.parent.viewport,m=Ea.processDrawnLines({lines:i,pageWidth:p,pageHeight:f,rotation:g,innerMargin:Rr._INNER_MARGIN,mustSmooth:a,areContours:o});this.addSignature(m,d,l,u)}else this.div.setAttribute("data-l10n-args",JSON.stringify({description:""})),this.div.hidden=!0,this._uiManager.getSignature(this);return r&&(this._isCopy=!0,this._moveAfterPaste(e,n)),this.div}setUuid(e){this.#r=e,this.addEditToolbar()}getUuid(){return this.#r}get description(){return this.#t}set description(e){this.#t=e,super.addEditToolbar().then(n=>{n?.updateEditSignatureButton(e)})}getSignaturePreview(){const{newCurves:e,areContours:n,thickness:r,width:i,height:a}=this.#n,o=Math.max(i,a),l=Ea.processDrawnLines({lines:{curves:e.map(u=>({points:u})),thickness:r,width:i,height:a},pageWidth:o,pageHeight:o,rotation:0,innerMargin:0,mustSmooth:!1,areContours:n});return{areContours:n,outline:l.outline}}async addEditToolbar(){const e=await super.addEditToolbar();return e?(this._uiManager.signatureManager&&this.#t!==null&&(await e.addEditSignatureButton(this._uiManager.signatureManager,this.#r,this.#t),e.show()),e):null}addSignature(e,n,r,i){const{x:a,y:o}=this,{outline:l}=this.#n=e;this.#e=l instanceof xw,this.#t=r,this.div.setAttribute("data-l10n-args",JSON.stringify({description:r}));let u;this.#e?u=Rr.getDefaultDrawingOptions():(u=Rr._defaultDrawnSignatureOptions.clone(),u.updateProperties({"stroke-width":l.thickness})),this._addOutlines({drawOutlines:l,drawingOptions:u});const[d,p]=this.parentDimensions,[,f]=this.pageDimensions;let g=n/f;g=g>=1?.5:g,this.width*=g/this.height,this.width>=1&&(g*=.9/this.width,this.width=.9),this.height=g,this.setDims(d*this.width,p*this.height),this.x=a,this.y=o,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(i),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!i,hasDescription:!!r}}),this.div.hidden=!1}getFromImage(e){const{rawDims:{pageWidth:n,pageHeight:r},rotation:i}=this.parent.viewport;return Ea.process(e,n,r,i,Rr._INNER_MARGIN)}getFromText(e,n){const{rawDims:{pageWidth:r,pageHeight:i},rotation:a}=this.parent.viewport;return Ea.extractContoursFromText(e,n,r,i,a,Rr._INNER_MARGIN)}getDrawnSignature(e){const{rawDims:{pageWidth:n,pageHeight:r},rotation:i}=this.parent.viewport;return Ea.processDrawnLines({lines:e,pageWidth:n,pageHeight:r,rotation:i,innerMargin:Rr._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:e,thickness:n}){e?this._drawingOptions=Rr.getDefaultDrawingOptions():(this._drawingOptions=Rr._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":n}))}serialize(e=!1){if(this.isEmpty())return null;const{lines:n,points:r,rect:i}=this.serializeDraw(e),{_drawingOptions:{"stroke-width":a}}=this,o={annotationType:Le.SIGNATURE,isSignature:!0,areContours:this.#e,color:[0,0,0],thickness:this.#e?0:a,pageIndex:this.pageIndex,rect:i,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return e?(o.paths={lines:n,points:r},o.uuid=this.#r,o.isCopy=!0):o.lines=n,this.#t&&(o.accessibilityData={type:"Figure",alt:this.#t}),o}static deserializeDraw(e,n,r,i,a,o){return o.areContours?xw.deserialize(e,n,r,i,a,o):rc.deserialize(e,n,r,i,a,o)}static async deserialize(e,n,r){const i=await super.deserialize(e,n,r);return i.#e=e.areContours,i.#t=e.accessibilityData?.alt||"",i.#r=e.uuid,i}}class Tne extends Ne{#e=null;#t=null;#n=null;#r=null;#a=null;#i="";#l=null;#s=!1;#d=null;#c=!1;#p=!1;static _type="stamp";static _editorType=Le.STAMP;constructor(e){super({...e,name:"stampEditor"}),this.#r=e.bitmapUrl,this.#a=e.bitmapFile,this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(e,n){Ne.initialize(e,n)}static isHandlingMimeForPasting(e){return xd.includes(e)}static paste(e,n){n.pasteEditor({mode:Le.STAMP},{bitmapFile:e.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){return{type:"stamp",hasAltText:!!this.altTextData?.altText}}static computeTelemetryFinalData(e){const n=e.get("hasAltText");return{hasAltText:n.get(!0)??0,hasNoAltText:n.get(!1)??0}}#u(e,n=!1){if(!e){this.remove();return}this.#e=e.bitmap,n||(this.#t=e.id,this.#c=e.isSvg),e.file&&(this.#i=e.file.name),this.#h()}#f(){if(this.#n=null,this._uiManager.enableWaiting(!1),!!this.#l){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#e){this._editToolbar.hide(),this._uiManager.editAltText(this,!0);return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#e){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}}async mlGuessAltText(e=null,n=!0){if(this.hasAltTextData())return null;const{mlManager:r}=this._uiManager;if(!r)throw new Error("No ML.");if(!await r.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:i,width:a,height:o}=e||this.copyCanvas(null,null,!0).imageData,l=await r.guess({name:"altText",request:{data:i,width:a,height:o,channels:i.length/(a*o)}});if(!l)throw new Error("No response from the AI service.");if(l.error)throw new Error("Error from the AI service.");if(l.cancel)return null;if(!l.output)throw new Error("No valid response from the AI service.");const u=l.output;return await this.setGuessedAltText(u),n&&!this.hasAltTextData()&&(this.altTextData={alt:u,decorative:!1}),u}#o(){if(this.#t){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(this.#t).then(r=>this.#u(r,!0)).finally(()=>this.#f());return}if(this.#r){const r=this.#r;this.#r=null,this._uiManager.enableWaiting(!0),this.#n=this._uiManager.imageManager.getFromUrl(r).then(i=>this.#u(i)).finally(()=>this.#f());return}if(this.#a){const r=this.#a;this.#a=null,this._uiManager.enableWaiting(!0),this.#n=this._uiManager.imageManager.getFromFile(r).then(i=>this.#u(i)).finally(()=>this.#f());return}const e=document.createElement("input");e.type="file",e.accept=xd.join(",");const n=this._uiManager._signal;this.#n=new Promise(r=>{e.addEventListener("change",async()=>{if(!e.files||e.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const i=await this._uiManager.imageManager.getFromFile(e.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),this.#u(i)}r()},{signal:n}),e.addEventListener("cancel",()=>{this.remove(),r()},{signal:n})}).finally(()=>this.#f()),e.click()}remove(){this.#t&&(this.#e=null,this._uiManager.imageManager.deleteId(this.#t),this.#l?.remove(),this.#l=null,this.#d&&(clearTimeout(this.#d),this.#d=null)),super.remove()}rebuild(){if(!this.parent){this.#t&&this.#o();return}super.rebuild(),this.div!==null&&(this.#t&&this.#l===null&&this.#o(),this.isAttachedToDOM||this.parent.add(this))}onceAdded(e){this._isDraggable=!0,e&&this.div.focus()}isEmpty(){return!(this.#n||this.#e||this.#r||this.#a||this.#t||this.#s)}get isResizable(){return!0}render(){if(this.div)return this.div;let e,n;return this._isCopy&&(e=this.x,n=this.y),super.render(),this.div.hidden=!0,this.addAltTextButton(),this.#s||(this.#e?this.#h():this.#o()),this._isCopy&&this._moveAfterPaste(e,n),this._uiManager.addShouldRescale(this),this.div}setCanvas(e,n){const{id:r,bitmap:i}=this._uiManager.imageManager.getFromCanvas(e,n);n.remove(),r&&this._uiManager.imageManager.isValidId(r)&&(this.#t=r,i&&(this.#e=i),this.#s=!1,this.#h())}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;this.#d!==null&&clearTimeout(this.#d);const e=200;this.#d=setTimeout(()=>{this.#d=null,this.#g()},e)}#h(){const{div:e}=this;let{width:n,height:r}=this.#e;const[i,a]=this.pageDimensions,o=.75;if(this.width)n=this.width*i,r=this.height*a;else if(n>o*i||r>o*a){const p=Math.min(o*i/n,o*a/r);n*=p,r*=p}const[l,u]=this.parentDimensions;this.setDims(n*l/i,r*u/a),this._uiManager.enableWaiting(!1);const d=this.#l=document.createElement("canvas");d.setAttribute("role","img"),this.addContainer(d),this.width=n/i,this.height=r/a,this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(e.hidden=!1),this.#g(),this.#p||(this.parent.addUndoableEditor(this),this.#p=!0),this._reportTelemetry({action:"inserted_image"}),this.#i&&this.div.setAttribute("aria-description",this.#i)}copyCanvas(e,n,r=!1){e||(e=224);const{width:i,height:a}=this.#e,o=new fr;let l=this.#e,u=i,d=a,p=null;if(n){if(i>n||a>n){const R=Math.min(n/i,n/a);u=Math.floor(i*R),d=Math.floor(a*R)}p=document.createElement("canvas");const g=p.width=Math.ceil(u*o.sx),m=p.height=Math.ceil(d*o.sy);this.#c||(l=this.#m(g,m));const v=p.getContext("2d");v.filter=this._uiManager.hcmFilter;let b="white",E="#cfcfd8";this._uiManager.hcmFilter!=="none"?E="black":window.matchMedia?.("(prefers-color-scheme: dark)").matches&&(b="#8f8f9d",E="#42414d");const S=15,_=S*o.sx,w=S*o.sy,A=new OffscreenCanvas(_*2,w*2),k=A.getContext("2d");k.fillStyle=b,k.fillRect(0,0,_*2,w*2),k.fillStyle=E,k.fillRect(0,0,_,w),k.fillRect(_,w,_,w),v.fillStyle=v.createPattern(A,"repeat"),v.fillRect(0,0,g,m),v.drawImage(l,0,0,l.width,l.height,0,0,g,m)}let f=null;if(r){let g,m;if(o.symmetric&&l.width<e&&l.height<e)g=l.width,m=l.height;else if(l=this.#e,i>e||a>e){const E=Math.min(e/i,e/a);g=Math.floor(i*E),m=Math.floor(a*E),this.#c||(l=this.#m(g,m))}const b=new OffscreenCanvas(g,m).getContext("2d",{willReadFrequently:!0});b.drawImage(l,0,0,l.width,l.height,0,0,g,m),f={width:g,height:m,data:b.getImageData(0,0,g,m).data}}return{canvas:p,width:u,height:d,imageData:f}}#m(e,n){const{width:r,height:i}=this.#e;let a=r,o=i,l=this.#e;for(;a>2*e||o>2*n;){const u=a,d=o;a>2*e&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2)),o>2*n&&(o=o>=16384?Math.floor(o/2)-1:Math.ceil(o/2));const p=new OffscreenCanvas(a,o);p.getContext("2d").drawImage(l,0,0,u,d,0,0,a,o),l=p.transferToImageBitmap()}return l}#g(){const[e,n]=this.parentDimensions,{width:r,height:i}=this,a=new fr,o=Math.ceil(r*e*a.sx),l=Math.ceil(i*n*a.sy),u=this.#l;if(!u||u.width===o&&u.height===l)return;u.width=o,u.height=l;const d=this.#c?this.#e:this.#m(o,l),p=u.getContext("2d");p.filter=this._uiManager.hcmFilter,p.drawImage(d,0,0,d.width,d.height,0,0,o,l)}#b(e){if(e){if(this.#c){const i=this._uiManager.imageManager.getSvgUrl(this.#t);if(i)return i}const n=document.createElement("canvas");return{width:n.width,height:n.height}=this.#e,n.getContext("2d").drawImage(this.#e,0,0),n.toDataURL()}if(this.#c){const[n,r]=this.pageDimensions,i=Math.round(this.width*n*Ua.PDF_TO_CSS_UNITS),a=Math.round(this.height*r*Ua.PDF_TO_CSS_UNITS),o=new OffscreenCanvas(i,a);return o.getContext("2d").drawImage(this.#e,0,0,this.#e.width,this.#e.height,0,0,i,a),o.transferToImageBitmap()}return structuredClone(this.#e)}static async deserialize(e,n,r){let i=null,a=!1;if(e instanceof SF){const{data:{rect:b,rotation:E,id:S,structParent:_,popupRef:w},container:A,parent:{page:{pageNumber:k}},canvas:R}=e;let I,O;R?(delete e.canvas,{id:I,bitmap:O}=r.imageManager.getFromCanvas(A.id,R),R.remove()):(a=!0,e._hasNoCanvas=!0);const L=(await n._structTree.getAriaAttributes(`${NS}${S}`))?.get("aria-label")||"";i=e={annotationType:Le.STAMP,bitmapId:I,bitmap:O,pageIndex:k-1,rect:b.slice(0),rotation:E,id:S,deleted:!1,accessibilityData:{decorative:!1,altText:L},isSvg:!1,structParent:_,popupRef:w}}const o=await super.deserialize(e,n,r),{rect:l,bitmap:u,bitmapUrl:d,bitmapId:p,isSvg:f,accessibilityData:g}=e;a?(r.addMissingCanvas(e.id,o),o.#s=!0):p&&r.imageManager.isValidId(p)?(o.#t=p,u&&(o.#e=u)):o.#r=d,o.#c=f;const[m,v]=o.pageDimensions;return o.width=(l[2]-l[0])/m,o.height=(l[3]-l[1])/v,o.annotationElementId=e.id||null,g&&(o.altTextData=g),o._initialData=i,o.#p=!!i,o}serialize(e=!1,n=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const r={annotationType:Le.STAMP,bitmapId:this.#t,pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:this.#c,structTreeParentId:this._structTreeParentId};if(e)return r.bitmapUrl=this.#b(!0),r.accessibilityData=this.serializeAltText(!0),r.isCopy=!0,r;const{decorative:i,altText:a}=this.serializeAltText(!1);if(!i&&a&&(r.accessibilityData={type:"Figure",alt:a}),this.annotationElementId){const l=this.#y(r);if(l.isSame)return null;l.isSameAltText?delete r.accessibilityData:r.accessibilityData.structParent=this._initialData.structParent??-1}if(r.id=this.annotationElementId,n===null)return r;n.stamps||=new Map;const o=this.#c?(r.rect[2]-r.rect[0])*(r.rect[3]-r.rect[1]):null;if(!n.stamps.has(this.#t))n.stamps.set(this.#t,{area:o,serialized:r}),r.bitmap=this.#b(!1);else if(this.#c){const l=n.stamps.get(this.#t);o>l.area&&(l.area=o,l.serialized.bitmap.close(),l.serialized.bitmap=this.#b(!1))}return r}#y(e){const{pageIndex:n,accessibilityData:{altText:r}}=this._initialData,i=e.pageIndex===n,a=(e.accessibilityData?.alt||"")===r;return{isSame:!this._hasBeenMoved&&!this._hasBeenResized&&i&&a,isSameAltText:a}}renderAnnotationElement(e){return e.updateEdited({rect:this.getRect(0,0)}),null}}class Nr{#e;#t=!1;#n=null;#r=null;#a=null;#i=new Map;#l=!1;#s=!1;#d=!1;#c=null;#p=null;#u=null;#f=null;#o;static _initialized=!1;static#h=new Map([Bt,qS,Tne,_t,Rr].map(e=>[e._editorType,e]));constructor({uiManager:e,pageIndex:n,div:r,structTreeLayer:i,accessibilityManager:a,annotationLayer:o,drawLayer:l,textLayer:u,viewport:d,l10n:p}){const f=[...Nr.#h.values()];if(!Nr._initialized){Nr._initialized=!0;for(const g of f)g.initialize(p,e)}e.registerEditorTypes(f),this.#o=e,this.pageIndex=n,this.div=r,this.#e=a,this.#n=o,this.viewport=d,this.#u=u,this.drawLayer=l,this._structTree=i,this.#o.addLayer(this)}get isEmpty(){return this.#i.size===0}get isInvisible(){return this.isEmpty&&this.#o.getMode()===Le.NONE}updateToolbar(e){this.#o.updateToolbar(e)}updateMode(e=this.#o.getMode()){switch(this.#v(),e){case Le.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case Le.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case Le.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:n}=this.div;for(const r of Nr.#h.values())n.toggle(`${r._type}Editing`,e===r._editorType);this.div.hidden=!1}hasTextLayer(e){return e===this.#u?.div}setEditingState(e){this.#o.setEditingState(e)}addCommands(e){this.#o.addCommands(e)}cleanUndoStack(e){this.#o.cleanUndoStack(e)}toggleDrawing(e=!1){this.div.classList.toggle("drawing",!e)}togglePointerEvents(e=!1){this.div.classList.toggle("disabled",!e)}toggleAnnotationLayerPointerEvents(e=!1){this.#n?.div.classList.toggle("disabled",!e)}async enable(){this.#d=!0,this.div.tabIndex=0,this.togglePointerEvents(!0);const e=new Set;for(const r of this.#i.values())r.enableEditing(),r.show(!0),r.annotationElementId&&(this.#o.removeChangedExistingAnnotation(r),e.add(r.annotationElementId));if(!this.#n){this.#d=!1;return}const n=this.#n.getEditableAnnotations();for(const r of n){if(r.hide(),this.#o.isDeletedAnnotationElement(r.data.id)||e.has(r.data.id))continue;const i=await this.deserialize(r);i&&(this.addOrRebuild(i),i.enableEditing())}this.#d=!1}disable(){this.#s=!0,this.div.tabIndex=-1,this.togglePointerEvents(!1);const e=new Map,n=new Map;for(const i of this.#i.values())if(i.disableEditing(),!!i.annotationElementId){if(i.serialize()!==null){e.set(i.annotationElementId,i);continue}else n.set(i.annotationElementId,i);this.getEditableAnnotation(i.annotationElementId)?.show(),i.remove()}if(this.#n){const i=this.#n.getEditableAnnotations();for(const a of i){const{id:o}=a.data;if(this.#o.isDeletedAnnotationElement(o))continue;let l=n.get(o);if(l){l.resetAnnotationElement(a),l.show(!1),a.show();continue}l=e.get(o),l&&(this.#o.addChangedExistingAnnotation(l),l.renderAnnotationElement(a)&&l.show(!1)),a.show()}}this.#v(),this.isEmpty&&(this.div.hidden=!0);const{classList:r}=this.div;for(const i of Nr.#h.values())r.remove(`${i._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),this.#s=!1}getEditableAnnotation(e){return this.#n?.getEditableAnnotation(e)||null}setActiveEditor(e){this.#o.getActive()!==e&&this.#o.setActiveEditor(e)}enableTextSelection(){if(this.div.tabIndex=-1,this.#u?.div&&!this.#f){this.#f=new AbortController;const e=this.#o.combinedSignal(this.#f);this.#u.div.addEventListener("pointerdown",this.#m.bind(this),{signal:e}),this.#u.div.classList.add("highlighting")}}disableTextSelection(){this.div.tabIndex=0,this.#u?.div&&this.#f&&(this.#f.abort(),this.#f=null,this.#u.div.classList.remove("highlighting"))}#m(e){this.#o.unselectAll();const{target:n}=e;if(n===this.#u.div||(n.getAttribute("role")==="img"||n.classList.contains("endOfContent"))&&this.#u.div.contains(n)){const{isMac:r}=qt.platform;if(e.button!==0||e.ctrlKey&&r)return;this.#o.showAllEditors("highlight",!0,!0),this.#u.div.classList.add("free"),this.toggleDrawing(),_t.startHighlighting(this,this.#o.direction==="ltr",{target:this.#u.div,x:e.x,y:e.y}),this.#u.div.addEventListener("pointerup",()=>{this.#u.div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:this.#o._signal}),e.preventDefault()}}enableClick(){if(this.#r)return;this.#r=new AbortController;const e=this.#o.combinedSignal(this.#r);this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:e});const n=this.pointerup.bind(this);this.div.addEventListener("pointerup",n,{signal:e}),this.div.addEventListener("pointercancel",n,{signal:e})}disableClick(){this.#r?.abort(),this.#r=null}attach(e){this.#i.set(e.id,e);const{annotationElementId:n}=e;n&&this.#o.isDeletedAnnotationElement(n)&&this.#o.removeDeletedAnnotationElement(e)}detach(e){this.#i.delete(e.id),this.#e?.removePointerInTextLayer(e.contentDiv),!this.#s&&e.annotationElementId&&this.#o.addDeletedAnnotationElement(e)}remove(e){this.detach(e),this.#o.removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1}changeParent(e){e.parent!==this&&(e.parent&&e.annotationElementId&&(this.#o.addDeletedAnnotationElement(e.annotationElementId),Ne.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),e.parent?.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(!(e.parent===this&&e.isAttachedToDOM)){if(this.changeParent(e),this.#o.addEditor(e),this.attach(e),!e.isAttachedToDOM){const n=e.render();this.div.append(n),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(!this.#d),this.#o.addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){if(!e.isAttachedToDOM)return;const{activeElement:n}=document;e.div.contains(n)&&!this.#a&&(e._focusEventsAllowed=!1,this.#a=setTimeout(()=>{this.#a=null,e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this.#o._signal}),n.focus())},0)),e._structTreeParentId=this.#e?.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||=this,e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){const n=()=>e._uiManager.rebuild(e),r=()=>{e.remove()};this.addCommands({cmd:n,undo:r,mustExec:!1})}getNextId(){return this.#o.getId()}get#g(){return Nr.#h.get(this.#o.getMode())}combinedSignal(e){return this.#o.combinedSignal(e)}#b(e){const n=this.#g;return n?new n.prototype.constructor(e):null}canCreateNewEmptyEditor(){return this.#g?.canCreateNewEmptyEditor()}async pasteEditor(e,n){this.updateToolbar(e),await this.#o.updateMode(e.mode);const{offsetX:r,offsetY:i}=this.#y(),a=this.getNextId(),o=this.#b({parent:this,id:a,x:r,y:i,uiManager:this.#o,isCentered:!0,...n});o&&this.add(o)}async deserialize(e){return await Nr.#h.get(e.annotationType??e.annotationEditorType)?.deserialize(e,this,this.#o)||null}createAndAddNewEditor(e,n,r={}){const i=this.getNextId(),a=this.#b({parent:this,id:i,x:e.offsetX,y:e.offsetY,uiManager:this.#o,isCentered:n,...r});return a&&this.add(a),a}#y(){const{x:e,y:n,width:r,height:i}=this.div.getBoundingClientRect(),a=Math.max(0,e),o=Math.max(0,n),l=Math.min(window.innerWidth,e+r),u=Math.min(window.innerHeight,n+i),d=(a+l)/2-e,p=(o+u)/2-n,[f,g]=this.viewport.rotation%180===0?[d,p]:[p,d];return{offsetX:f,offsetY:g}}addNewEditor(e={}){this.createAndAddNewEditor(this.#y(),!0,e)}setSelected(e){this.#o.setSelected(e)}toggleSelected(e){this.#o.toggleSelected(e)}unselect(e){this.#o.unselect(e)}pointerup(e){const{isMac:n}=qt.platform;if(e.button!==0||e.ctrlKey&&n||e.target!==this.div||!this.#l||(this.#l=!1,this.#g?.isDrawer&&this.#g.supportMultipleDrawings))return;if(!this.#t){this.#t=!0;return}const r=this.#o.getMode();if(r===Le.STAMP||r===Le.SIGNATURE){this.#o.unselectAll();return}this.createAndAddNewEditor(e,!1)}pointerdown(e){if(this.#o.getMode()===Le.HIGHLIGHT&&this.enableTextSelection(),this.#l){this.#l=!1;return}const{isMac:n}=qt.platform;if(e.button!==0||e.ctrlKey&&n||e.target!==this.div)return;if(this.#l=!0,this.#g?.isDrawer){this.startDrawingSession(e);return}const r=this.#o.getActive();this.#t=!r||r.isEmpty()}startDrawingSession(e){if(this.div.focus({preventScroll:!0}),this.#c){this.#g.startDrawing(this,this.#o,!1,e);return}this.#o.setCurrentDrawingSession(this),this.#c=new AbortController;const n=this.#o.combinedSignal(this.#c);this.div.addEventListener("blur",({relatedTarget:r})=>{r&&!this.div.contains(r)&&(this.#p=null,this.commitOrRemove())},{signal:n}),this.#g.startDrawing(this,this.#o,!1,e)}pause(e){if(e){const{activeElement:n}=document;this.div.contains(n)&&(this.#p=n);return}this.#p&&setTimeout(()=>{this.#p?.focus(),this.#p=null},0)}endDrawingSession(e=!1){return this.#c?(this.#o.setCurrentDrawingSession(null),this.#c.abort(),this.#c=null,this.#p=null,this.#g.endDrawing(e)):null}findNewParent(e,n,r){const i=this.#o.findParent(n,r);return i===null||i===this?!1:(i.changeParent(e),!0)}commitOrRemove(){return this.#c?(this.endDrawingSession(),!0):!1}onScaleChanging(){this.#c&&this.#g.onScaleChangingWhenDrawing(this)}destroy(){this.commitOrRemove(),this.#o.getActive()?.parent===this&&(this.#o.commitOrRemove(),this.#o.setActiveEditor(null)),this.#a&&(clearTimeout(this.#a),this.#a=null);for(const e of this.#i.values())this.#e?.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,this.#i.clear(),this.#o.removeLayer(this)}#v(){for(const e of this.#i.values())e.isEmpty()&&e.remove()}render({viewport:e}){this.viewport=e,Wi(this.div,e);for(const n of this.#o.getEditors(this.pageIndex))this.add(n),n.rebuild();this.updateMode()}update({viewport:e}){this.#o.commitOrRemove(),this.#v();const n=this.viewport.rotation,r=e.rotation;if(this.viewport=e,Wi(this.div,{rotation:r}),n!==r)for(const i of this.#i.values())i.rotate(r)}get pageDimensions(){const{pageWidth:e,pageHeight:n}=this.viewport.rawDims;return[e,n]}get scale(){return this.#o.viewParameters.realScale}}class Ht{#e=null;#t=new Map;#n=new Map;static#r=0;constructor({pageIndex:e}){this.pageIndex=e}setParent(e){if(!this.#e){this.#e=e;return}if(this.#e!==e){if(this.#t.size>0)for(const n of this.#t.values())n.remove(),e.append(n);this.#e=e}}static get _svgFactory(){return ze(this,"_svgFactory",new Pl)}static#a(e,[n,r,i,a]){const{style:o}=e;o.top=`${100*r}%`,o.left=`${100*n}%`,o.width=`${100*i}%`,o.height=`${100*a}%`}#i(){const e=Ht._svgFactory.create(1,1,!0);return this.#e.append(e),e.setAttribute("aria-hidden",!0),e}#l(e,n){const r=Ht._svgFactory.createElement("clipPath");e.append(r);const i=`clip_${n}`;r.setAttribute("id",i),r.setAttribute("clipPathUnits","objectBoundingBox");const a=Ht._svgFactory.createElement("use");return r.append(a),a.setAttribute("href",`#${n}`),a.classList.add("clip"),i}#s(e,n){for(const[r,i]of Object.entries(n))i===null?e.removeAttribute(r):e.setAttribute(r,i)}draw(e,n=!1,r=!1){const i=Ht.#r++,a=this.#i(),o=Ht._svgFactory.createElement("defs");a.append(o);const l=Ht._svgFactory.createElement("path");o.append(l);const u=`path_p${this.pageIndex}_${i}`;l.setAttribute("id",u),l.setAttribute("vector-effect","non-scaling-stroke"),n&&this.#n.set(i,l);const d=r?this.#l(o,u):null,p=Ht._svgFactory.createElement("use");return a.append(p),p.setAttribute("href",`#${u}`),this.updateProperties(a,e),this.#t.set(i,a),{id:i,clipPathId:`url(#${d})`}}drawOutline(e,n){const r=Ht.#r++,i=this.#i(),a=Ht._svgFactory.createElement("defs");i.append(a);const o=Ht._svgFactory.createElement("path");a.append(o);const l=`path_p${this.pageIndex}_${r}`;o.setAttribute("id",l),o.setAttribute("vector-effect","non-scaling-stroke");let u;if(n){const f=Ht._svgFactory.createElement("mask");a.append(f),u=`mask_p${this.pageIndex}_${r}`,f.setAttribute("id",u),f.setAttribute("maskUnits","objectBoundingBox");const g=Ht._svgFactory.createElement("rect");f.append(g),g.setAttribute("width","1"),g.setAttribute("height","1"),g.setAttribute("fill","white");const m=Ht._svgFactory.createElement("use");f.append(m),m.setAttribute("href",`#${l}`),m.setAttribute("stroke","none"),m.setAttribute("fill","black"),m.setAttribute("fill-rule","nonzero"),m.classList.add("mask")}const d=Ht._svgFactory.createElement("use");i.append(d),d.setAttribute("href",`#${l}`),u&&d.setAttribute("mask",`url(#${u})`);const p=d.cloneNode();return i.append(p),d.classList.add("mainOutline"),p.classList.add("secondaryOutline"),this.updateProperties(i,e),this.#t.set(r,i),r}finalizeDraw(e,n){this.#n.delete(e),this.updateProperties(e,n)}updateProperties(e,n){if(!n)return;const{root:r,bbox:i,rootClass:a,path:o}=n,l=typeof e=="number"?this.#t.get(e):e;if(l){if(r&&this.#s(l,r),i&&Ht.#a(l,i),a){const{classList:u}=l;for(const[d,p]of Object.entries(a))u.toggle(d,p)}if(o){const d=l.firstChild.firstChild;this.#s(d,o)}}}updateParent(e,n){if(n===this)return;const r=this.#t.get(e);r&&(n.#e.append(r),this.#t.delete(e),n.#t.set(e,r))}remove(e){this.#n.delete(e),this.#e!==null&&(this.#t.get(e).remove(),this.#t.delete(e))}destroy(){this.#e=null;for(const e of this.#t.values())e.remove();this.#t.clear(),this.#n.clear()}}globalThis._pdfjsTestingUtils={HighlightOutliner:ww};globalThis.pdfjsLib={AbortException:si,AnnotationEditorLayer:Nr,AnnotationEditorParamsType:je,AnnotationEditorType:Le,AnnotationEditorUIManager:li,AnnotationLayer:GS,AnnotationMode:Dr,AnnotationType:At,build:mF,ColorPicker:Nn,createValidAbsoluteUrl:CS,DOMSVGFactory:Pl,DrawLayer:Ht,FeatureTest:qt,fetchData:ps,getDocument:US,getFilenameFromUrl:XP,getPdfFilenameFromUrl:KP,getUuid:kS,getXfaPageViewport:ZP,GlobalWorkerOptions:Gi,ImageKind:gl,InvalidPDFException:Sd,isDataScheme:Ql,isPdfFile:cp,isValidExplicitDest:tF,MathClamp:rn,noContextMenu:Xn,normalizeUnicode:WP,OPS:Il,OutputScale:fr,PasswordResponses:qP,PDFDataRangeTransport:zS,PDFDateString:IS,PDFWorker:ns,PermissionFlag:GP,PixelsPerInch:Ua,RenderingCancelledException:lp,ResponseException:Ol,setLayerDimensions:Wi,shadow:ze,SignatureExtractor:Ea,stopEvent:Ct,SupportedImageMimeTypes:xd,TextLayer:Ll,TouchManager:ec,updateUrlHash:RS,Util:Ce,VerbosityLevel:Xl,version:Ml,XfaLayer:jS};const Cne=Object.freeze(Object.defineProperty({__proto__:null,AbortException:si,AnnotationEditorLayer:Nr,AnnotationEditorParamsType:je,AnnotationEditorType:Le,AnnotationEditorUIManager:li,AnnotationLayer:GS,AnnotationMode:Dr,AnnotationType:At,ColorPicker:Nn,DOMSVGFactory:Pl,DrawLayer:Ht,FeatureTest:qt,GlobalWorkerOptions:Gi,ImageKind:gl,InvalidPDFException:Sd,MathClamp:rn,OPS:Il,OutputScale:fr,PDFDataRangeTransport:zS,PDFDateString:IS,PDFWorker:ns,PasswordResponses:qP,PermissionFlag:GP,PixelsPerInch:Ua,RenderingCancelledException:lp,ResponseException:Ol,SignatureExtractor:Ea,SupportedImageMimeTypes:xd,TextLayer:Ll,TouchManager:ec,Util:Ce,VerbosityLevel:Xl,XfaLayer:jS,build:mF,createValidAbsoluteUrl:CS,fetchData:ps,getDocument:US,getFilenameFromUrl:XP,getPdfFilenameFromUrl:KP,getUuid:kS,getXfaPageViewport:ZP,isDataScheme:Ql,isPdfFile:cp,isValidExplicitDest:tF,noContextMenu:Xn,normalizeUnicode:WP,setLayerDimensions:Wi,shadow:ze,stopEvent:Ct,updateUrlHash:RS,version:Ml},Symbol.toStringTag,{value:"Module"})),Rne=["onCopy","onCut","onPaste"],kne=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],Nne=["onFocus","onBlur"],Ine=["onInput","onInvalid","onReset","onSubmit"],One=["onLoad","onError"],Lne=["onKeyDown","onKeyPress","onKeyUp"],Dne=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],Mne=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],Pne=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],Fne=["onSelect"],Bne=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],Une=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],$ne=["onScroll"],zne=["onWheel"],jne=["onAnimationStart","onAnimationEnd","onAnimationIteration"],Hne=["onTransitionEnd"],Gne=["onToggle"],qne=["onChange"],Vne=[...Rne,...kne,...Nne,...Ine,...One,...Lne,...Dne,...Mne,...Pne,...Fne,...Bne,...Une,...$ne,...zne,...jne,...Hne,...qne,...Gne];function TF(t,e){const n={};for(const r of Vne){const i=t[r];i&&(e?n[r]=a=>i(a,e(r)):n[r]=i)}return n}function ic(t){let e=!1;return{promise:new Promise((r,i)=>{t.then(a=>!e&&r(a)).catch(a=>!e&&i(a))}),cancel(){e=!0}}}var Wne="Invariant failed";function tt(t,e){if(!t)throw new Error(Wne)}var ME,P1;function Yne(){if(P1)return ME;P1=1;var t=function(){};return ME=t,ME}var Xne=Yne();const an=Fl(Xne);var F1=Object.prototype.hasOwnProperty;function B1(t,e,n){for(n of t.keys())if(Ho(n,e))return n}function Ho(t,e){var n,r,i;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((r=t.length)===e.length)for(;r--&&Ho(t[r],e[r]););return r===-1}if(n===Set){if(t.size!==e.size)return!1;for(r of t)if(i=r,i&&typeof i=="object"&&(i=B1(e,i),!i)||!e.has(i))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(r of t)if(i=r[0],i&&typeof i=="object"&&(i=B1(e,i),!i)||!Ho(r[1],e.get(i)))return!1;return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((r=t.byteLength)===e.byteLength)for(;r--&&t.getInt8(r)===e.getInt8(r););return r===-1}if(ArrayBuffer.isView(t)){if((r=t.byteLength)===e.byteLength)for(;r--&&t[r]===e[r];);return r===-1}if(!n||typeof t=="object"){r=0;for(n in t)if(F1.call(t,n)&&++r&&!F1.call(e,n)||!(n in e)||!Ho(t[n],e[n]))return!1;return Object.keys(e).length===r}}return t!==t&&e!==e}const CF=C.createContext(null);function Go({children:t,type:e}){return T.jsx("div",{className:`react-pdf__message react-pdf__message--${e}`,children:t})}const Kne="noopener noreferrer nofollow";class Zne{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(e){this.pdfDocument=e}setViewer(e){this.pdfViewer=e}setExternalLinkRel(e){this.externalLinkRel=e}setExternalLinkTarget(e){this.externalLinkTarget=e}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return tt(this.pdfViewer),this.pdfViewer.currentPageNumber||0}set page(e){tt(this.pdfViewer),this.pdfViewer.currentPageNumber=e}get rotation(){return 0}set rotation(e){}goToDestination(e){return new Promise(n=>{tt(this.pdfDocument),tt(e),typeof e=="string"?this.pdfDocument.getDestination(e).then(n):Array.isArray(e)?n(e):e.then(n)}).then(n=>{tt(Array.isArray(n));const r=n[0];new Promise(i=>{tt(this.pdfDocument),r instanceof Object?this.pdfDocument.getPageIndex(r).then(a=>{i(a)}).catch(()=>{tt(!1)}):typeof r=="number"?i(r):tt(!1)}).then(i=>{const a=i+1;tt(this.pdfViewer),tt(a>=1&&a<=this.pagesCount),this.pdfViewer.scrollPageIntoView({dest:n,pageIndex:i,pageNumber:a})})})}navigateTo(e){this.goToDestination(e)}goToPage(e){const n=e-1;tt(this.pdfViewer),tt(e>=1&&e<=this.pagesCount),this.pdfViewer.scrollPageIntoView({pageIndex:n,pageNumber:e})}addLinkAttributes(e,n,r){e.href=n,e.rel=this.externalLinkRel||Kne,e.target=r?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}const U1={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},pp=typeof window<"u",RF=pp&&window.location.protocol==="file:";function Qne(t){return typeof t<"u"}function ya(t){return Qne(t)&&t!==null}function Jne(t){return typeof t=="string"}function ere(t){return t instanceof ArrayBuffer}function tre(t){return tt(pp),t instanceof Blob}function Aw(t){return Jne(t)&&/^data:/.test(t)}function $1(t){tt(Aw(t));const[e="",n=""]=t.split(",");return e.split(";").indexOf("base64")!==-1?atob(n):unescape(n)}function nre(){return pp&&window.devicePixelRatio||1}const kF="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function z1(){an(!RF,`Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ${kF}`)}function rre(){an(!RF,`Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ${kF}`)}function za(t){t?.cancel&&t.cancel()}function _w(t,e){return Object.defineProperty(t,"width",{get(){return this.view[2]*e},configurable:!0}),Object.defineProperty(t,"height",{get(){return this.view[3]*e},configurable:!0}),Object.defineProperty(t,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(t,"originalHeight",{get(){return this.view[3]},configurable:!0}),t}function ire(t){return t.name==="RenderingCancelledException"}function are(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=()=>{if(!r.result)return n(new Error("Error while reading a file."));e(r.result)},r.onerror=i=>{if(!i.target)return n(new Error("Error while reading a file."));const{error:a}=i.target;if(!a)return n(new Error("Error while reading a file."));switch(a.code){case a.NOT_FOUND_ERR:return n(new Error("Error while reading a file: File not found."));case a.SECURITY_ERR:return n(new Error("Error while reading a file: Security error."));case a.ABORT_ERR:return n(new Error("Error while reading a file: Aborted."));default:return n(new Error("Error while reading a file."))}},r.readAsArrayBuffer(t)})}function ore(t,e){switch(e.type){case"RESOLVE":return{value:e.value,error:void 0};case"REJECT":return{value:!1,error:e.error};case"RESET":return{value:void 0,error:void 0};default:return t}}function rs(){return C.useReducer(ore,{value:void 0,error:void 0})}var j1=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{PDFDataRangeTransport:sre}=Cne,lre=(t,e)=>{switch(e){case U1.NEED_PASSWORD:{const n=prompt("Enter the password to open this PDF file.");t(n);break}case U1.INCORRECT_PASSWORD:{const n=prompt("Invalid password. Please try again.");t(n);break}}};function H1(t){return typeof t=="object"&&t!==null&&("data"in t||"range"in t||"url"in t)}const cre=C.forwardRef(function(e,n){var{children:r,className:i,error:a="Failed to load PDF file.",externalLinkRel:o,externalLinkTarget:l,file:u,inputRef:d,imageResourcesPath:p,loading:f="Loading PDF…",noData:g="No PDF file specified.",onItemClick:m,onLoadError:v,onLoadProgress:b,onLoadSuccess:E,onPassword:S=lre,onSourceError:_,onSourceSuccess:w,options:A,renderMode:k,rotate:R,scale:I}=e,O=j1(e,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate","scale"]);const[L,F]=rs(),{value:j,error:H}=L,[G,D]=rs(),{value:z,error:B}=G,U=C.useRef(new Zne),M=C.useRef([]),q=C.useRef(void 0),Y=C.useRef(void 0);u&&u!==q.current&&H1(u)&&(an(!Ho(u,q.current),`File prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.`),q.current=u),A&&A!==Y.current&&(an(!Ho(A,Y.current),`Options prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.`),Y.current=A);const $=C.useRef({scrollPageIntoView:he=>{const{dest:Se,pageNumber:xe,pageIndex:Fe=xe-1}=he;if(m){m({dest:Se,pageIndex:Fe,pageNumber:xe});return}const Be=M.current[Fe];if(Be){Be.scrollIntoView();return}an(!1,`An internal link leading to page ${xe} was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>.`)}});C.useImperativeHandle(n,()=>({linkService:U,pages:M,viewer:$}),[]);function V(){w&&w()}function X(){H&&(an(!1,H.toString()),_&&_(H))}function Q(){F({type:"RESET"})}C.useEffect(Q,[u,F]);const te=C.useCallback(async()=>{if(!u)return null;if(typeof u=="string")return Aw(u)?{data:$1(u)}:(z1(),{url:u});if(u instanceof sre)return{range:u};if(ere(u))return{data:u};if(pp&&tre(u))return{data:await are(u)};if(tt(typeof u=="object"),tt(H1(u)),"url"in u&&typeof u.url=="string"){if(Aw(u.url)){const{url:he}=u,Se=j1(u,["url"]),xe=$1(he);return Object.assign({data:xe},Se)}z1()}return u},[u]);C.useEffect(()=>{const he=ic(te());return he.promise.then(Se=>{F({type:"RESOLVE",value:Se})}).catch(Se=>{F({type:"REJECT",error:Se})}),()=>{za(he)}},[te,F]),C.useEffect(()=>{if(!(typeof j>"u")){if(j===!1){X();return}V()}},[j]);function ie(){z&&(E&&E(z),M.current=new Array(z.numPages),U.current.setDocument(z))}function W(){B&&(an(!1,B.toString()),v&&v(B))}C.useEffect(function(){D({type:"RESET"})},[D,j]),C.useEffect(function(){if(!j)return;const Se=A?Object.assign(Object.assign({},j),A):j,xe=US(Se);b&&(xe.onProgress=b),S&&(xe.onPassword=S);const Fe=xe,Be=Fe.promise.then(ft=>{D({type:"RESOLVE",value:ft})}).catch(ft=>{Fe.destroyed||D({type:"REJECT",error:ft})});return()=>{Be.finally(()=>Fe.destroy())}},[A,D,j]),C.useEffect(()=>{if(!(typeof z>"u")){if(z===!1){W();return}ie()}},[z]),C.useEffect(function(){U.current.setViewer($.current),U.current.setExternalLinkRel(o),U.current.setExternalLinkTarget(l)},[o,l]);const Z=C.useCallback((he,Se)=>{M.current[he]=Se},[]),ne=C.useCallback(he=>{delete M.current[he]},[]),se=C.useMemo(()=>({imageResourcesPath:p,linkService:U.current,onItemClick:m,pdf:z,registerPage:Z,renderMode:k,rotate:R,scale:I,unregisterPage:ne}),[p,m,z,Z,k,R,I,ne]),de=C.useMemo(()=>TF(O,()=>z),[O,z]);function ce(){return T.jsx(CF.Provider,{value:se,children:r})}function le(){return u?z==null?T.jsx(Go,{type:"loading",children:typeof f=="function"?f():f}):z===!1?T.jsx(Go,{type:"error",children:typeof a=="function"?a():a}):ce():T.jsx(Go,{type:"no-data",children:typeof g=="function"?g():g})}return T.jsx("div",Object.assign({className:is("react-pdf__Document",i),ref:d},de,{children:le()}))});function NF(){return C.useContext(CF)}function IF(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.filter(Boolean);if(n.length<=1){var r=n[0];return r||null}return function(a){for(var o=0,l=n;o<l.length;o++){var u=l[o];typeof u=="function"?u(a):u&&(u.current=a)}}}const OF=C.createContext(null),LF={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},ure=/^H(\d+)$/;function dre(t){return t in LF}function fp(t){return"children"in t}function DF(t){return fp(t)?t.children.length===1&&0 in t.children&&"id"in t.children[0]:!1}function pre(t){const e={};if(fp(t)){const{role:n}=t,r=n.match(ure);if(r)e.role="heading",e["aria-level"]=Number(r[1]);else if(dre(n)){const i=LF[n];i&&(e.role=i)}}return e}function MF(t){const e={};if(fp(t)){if(t.alt!==void 0&&(e["aria-label"]=t.alt),t.lang!==void 0&&(e.lang=t.lang),DF(t)){const[n]=t.children;if(n){const r=MF(n);return Object.assign(Object.assign({},e),r)}}}else"id"in t&&(e["aria-owns"]=t.id);return e}function fre(t){return t?Object.assign(Object.assign({},pre(t)),MF(t)):null}function PF({className:t,node:e}){const n=C.useMemo(()=>fre(e),[e]),r=C.useMemo(()=>!fp(e)||DF(e)?null:e.children.map((i,a)=>T.jsx(PF,{node:i},a)),[e]);return T.jsx("span",Object.assign({className:t},n,{children:r}))}function hp(){return C.useContext(OF)}function hre(){const t=hp();tt(t);const{onGetStructTreeError:e,onGetStructTreeSuccess:n}=t,[r,i]=rs(),{value:a,error:o}=r,{customTextRenderer:l,page:u}=t;function d(){a&&n&&n(a)}function p(){o&&(an(!1,o.toString()),e&&e(o))}return C.useEffect(function(){i({type:"RESET"})},[i,u]),C.useEffect(function(){if(l||!u)return;const g=ic(u.getStructTree()),m=g;return g.promise.then(v=>{i({type:"RESOLVE",value:v})}).catch(v=>{i({type:"REJECT",error:v})}),()=>za(m)},[l,u,i]),C.useEffect(()=>{if(a!==void 0){if(a===!1){p();return}d()}},[a]),a?T.jsx(PF,{className:"react-pdf__Page__structTree structTree",node:a}):null}const G1=Dr;function gre(t){const e=hp();tt(e);const n=Object.assign(Object.assign({},e),t),{_className:r,canvasBackground:i,devicePixelRatio:a=nre(),onRenderError:o,onRenderSuccess:l,page:u,renderForms:d,renderTextLayer:p,rotate:f,scale:g}=n,{canvasRef:m}=t;tt(u);const v=C.useRef(null);function b(){u&&l&&l(_w(u,g))}function E(A){ire(A)||(an(!1,A.toString()),o&&o(A))}const S=C.useMemo(()=>u.getViewport({scale:g*a,rotation:f}),[a,u,f,g]),_=C.useMemo(()=>u.getViewport({scale:g,rotation:f}),[u,f,g]);C.useEffect(function(){if(!u)return;u.cleanup();const{current:k}=v;if(!k)return;k.width=S.width,k.height=S.height,k.style.width=`${Math.floor(_.width)}px`,k.style.height=`${Math.floor(_.height)}px`,k.style.visibility="hidden";const R={annotationMode:d?G1.ENABLE_FORMS:G1.ENABLE,canvasContext:k.getContext("2d",{alpha:!1}),viewport:S};i&&(R.background=i);const I=u.render(R),O=I;return I.promise.then(()=>{k.style.visibility="",b()}).catch(E),()=>za(O)},[i,u,d,S,_]);const w=C.useCallback(()=>{const{current:A}=v;A&&(A.width=0,A.height=0)},[]);return C.useEffect(()=>w,[w]),T.jsx("canvas",{className:`${r}__canvas`,dir:"ltr",ref:IF(m,v),style:{display:"block",userSelect:"none"},children:p?T.jsx(hre,{}):null})}function mre(t){return"str"in t}function bre(){const t=hp();tt(t);const{customTextRenderer:e,onGetTextError:n,onGetTextSuccess:r,onRenderTextLayerError:i,onRenderTextLayerSuccess:a,page:o,pageIndex:l,pageNumber:u,rotate:d,scale:p}=t;tt(o);const[f,g]=rs(),{value:m,error:v}=f,b=C.useRef(null);an(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10)===1,"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer");function E(){m&&r&&r(m)}function S(){v&&(an(!1,v.toString()),n&&n(v))}C.useEffect(function(){g({type:"RESET"})},[o,g]),C.useEffect(function(){if(!o)return;const O=ic(o.getTextContent()),L=O;return O.promise.then(F=>{g({type:"RESOLVE",value:F})}).catch(F=>{g({type:"REJECT",error:F})}),()=>za(L)},[o,g]),C.useEffect(()=>{if(m!==void 0){if(m===!1){S();return}E()}},[m]);const _=C.useCallback(()=>{a&&a()},[a]),w=C.useCallback(I=>{an(!1,I.toString()),i&&i(I)},[i]);function A(){const I=b.current;I&&I.classList.add("selecting")}function k(){const I=b.current;I&&I.classList.remove("selecting")}const R=C.useMemo(()=>o.getViewport({scale:p,rotation:d}),[o,d,p]);return C.useLayoutEffect(function(){if(!o||!m)return;const{current:O}=b;if(!O)return;O.innerHTML="";const L=o.streamTextContent({includeMarkedContent:!0}),F={container:O,textContentSource:L,viewport:R},j=new Ll(F),H=j;return j.render().then(()=>{const G=document.createElement("div");G.className="endOfContent",O.append(G);const D=O.querySelectorAll('[role="presentation"]');if(e){let z=0;m.items.forEach((B,U)=>{if(!mre(B))return;const M=D[z];if(!M)return;const q=e(Object.assign({pageIndex:l,pageNumber:u,itemIndex:U},B));M.innerHTML=q,z+=B.str&&B.hasEOL?2:1})}_()}).catch(w),()=>za(H)},[e,w,_,o,l,u,m,R]),T.jsx("div",{className:is("react-pdf__Page__textContent","textLayer"),onMouseUp:k,onMouseDown:A,ref:b})}function yre(){const t=NF(),e=hp();tt(e);const n=Object.assign(Object.assign({},t),e),{imageResourcesPath:r,linkService:i,onGetAnnotationsError:a,onGetAnnotationsSuccess:o,onRenderAnnotationLayerError:l,onRenderAnnotationLayerSuccess:u,page:d,pdf:p,renderForms:f,rotate:g,scale:m=1}=n;tt(p),tt(d),tt(i);const[v,b]=rs(),{value:E,error:S}=v,_=C.useRef(null);an(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10)===1,"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations");function w(){E&&o&&o(E)}function A(){S&&(an(!1,S.toString()),a&&a(S))}C.useEffect(function(){b({type:"RESET"})},[b,d]),C.useEffect(function(){if(!d)return;const L=ic(d.getAnnotations()),F=L;return L.promise.then(j=>{b({type:"RESOLVE",value:j})}).catch(j=>{b({type:"REJECT",error:j})}),()=>{za(F)}},[b,d]),C.useEffect(()=>{if(E!==void 0){if(E===!1){A();return}w()}},[E]);function k(){u&&u()}function R(O){an(!1,`${O}`),l&&l(O)}const I=C.useMemo(()=>d.getViewport({scale:m,rotation:g}),[d,g,m]);return C.useEffect(function(){if(!p||!d||!i||!E)return;const{current:L}=_;if(!L)return;const F=I.clone({dontFlip:!0}),j={accessibilityManager:null,annotationCanvasMap:null,annotationEditorUIManager:null,div:L,l10n:null,page:d,structTreeLayer:null,viewport:F},H={annotations:E,annotationStorage:p.annotationStorage,div:L,imageResourcesPath:r,linkService:i,page:d,renderForms:f,viewport:F};L.innerHTML="";try{new GS(j).render(H),k()}catch(G){R(G)}return()=>{}},[E,r,i,d,p,f,I]),T.jsx("div",{className:is("react-pdf__Page__annotations","annotationLayer"),ref:_})}var vre=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 q1=1;function Ere(t){const e=NF(),n=Object.assign(Object.assign({},e),t),{_className:r="react-pdf__Page",_enableRegisterUnregisterPage:i=!0,canvasBackground:a,canvasRef:o,children:l,className:u,customRenderer:d,customTextRenderer:p,devicePixelRatio:f,error:g="Failed to load the page.",height:m,inputRef:v,loading:b="Loading page…",noData:E="No page specified.",onGetAnnotationsError:S,onGetAnnotationsSuccess:_,onGetStructTreeError:w,onGetStructTreeSuccess:A,onGetTextError:k,onGetTextSuccess:R,onLoadError:I,onLoadSuccess:O,onRenderAnnotationLayerError:L,onRenderAnnotationLayerSuccess:F,onRenderError:j,onRenderSuccess:H,onRenderTextLayerError:G,onRenderTextLayerSuccess:D,pageIndex:z,pageNumber:B,pdf:U,registerPage:M,renderAnnotationLayer:q=!0,renderForms:Y=!1,renderMode:$="canvas",renderTextLayer:V=!0,rotate:X,scale:Q=q1,unregisterPage:te,width:ie}=n,W=vre(n,["_className","_enableRegisterUnregisterPage","canvasBackground","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),[Z,ne]=rs(),{value:se,error:de}=Z,ce=C.useRef(null);tt(U);const le=ya(B)?B-1:z??null,he=B??(ya(z)?z+1:null),Se=X??(se?se.rotate:null),xe=C.useMemo(()=>{if(!se)return null;let He=1;const Ve=Q??q1;if(ie||m){const Nt=se.getViewport({scale:1,rotation:Se});ie?He=ie/Nt.width:m&&(He=m/Nt.height)}return Ve*He},[m,se,Se,Q,ie]);C.useEffect(function(){return()=>{ya(le)&&i&&te&&te(le)}},[i,U,le,te]);function Fe(){if(O){if(!se||!xe)return;O(_w(se,xe))}if(i&&M){if(!ya(le)||!ce.current)return;M(le,ce.current)}}function Be(){de&&(an(!1,de.toString()),I&&I(de))}C.useEffect(function(){ne({type:"RESET"})},[ne,U,le]),C.useEffect(function(){if(!U||!he)return;const Ve=ic(U.getPage(he)),Nt=Ve;return Ve.promise.then(Ut=>{ne({type:"RESOLVE",value:Ut})}).catch(Ut=>{ne({type:"REJECT",error:Ut})}),()=>za(Nt)},[ne,U,he]),C.useEffect(()=>{if(se!==void 0){if(se===!1){Be();return}Fe()}},[se,xe]);const ft=C.useMemo(()=>se&&ya(le)&&he&&ya(Se)&&ya(xe)?{_className:r,canvasBackground:a,customTextRenderer:p,devicePixelRatio:f,onGetAnnotationsError:S,onGetAnnotationsSuccess:_,onGetStructTreeError:w,onGetStructTreeSuccess:A,onGetTextError:k,onGetTextSuccess:R,onRenderAnnotationLayerError:L,onRenderAnnotationLayerSuccess:F,onRenderError:j,onRenderSuccess:H,onRenderTextLayerError:G,onRenderTextLayerSuccess:D,page:se,pageIndex:le,pageNumber:he,renderForms:Y,renderTextLayer:V,rotate:Se,scale:xe}:null,[r,a,p,f,S,_,w,A,k,R,L,F,j,H,G,D,se,le,he,Y,V,Se,xe]),Et=C.useMemo(()=>TF(W,()=>se&&(xe?_w(se,xe):void 0)),[W,se,xe]),nt=`${le}@${xe}/${Se}`;function St(){switch($){case"custom":return tt(d),T.jsx(d,{},`${nt}_custom`);case"none":return null;case"canvas":default:return T.jsx(gre,{canvasRef:o},`${nt}_canvas`)}}function Xt(){return V?T.jsx(bre,{},`${nt}_text`):null}function Kt(){return q?T.jsx(yre,{},`${nt}_annotations`):null}function ht(){return T.jsxs(OF.Provider,{value:ft,children:[St(),Xt(),Kt(),l]})}function kt(){return he?U===null||se===void 0||se===null?T.jsx(Go,{type:"loading",children:typeof b=="function"?b():b}):U===!1||se===!1?T.jsx(Go,{type:"error",children:typeof g=="function"?g():g}):ht():T.jsx(Go,{type:"no-data",children:typeof E=="function"?E():E})}return T.jsx("div",Object.assign({className:is(r,u),"data-page-number":he,ref:IF(v,ce),style:{"--scale-round-x":"1px","--scale-round-y":"1px","--scale-factor":"1","--user-unit":`${xe}`,"--total-scale-factor":"calc(var(--scale-factor) * var(--user-unit))",backgroundColor:a||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},Et,{children:kt()}))}rre();Gi.workerSrc="pdf.worker.mjs";typeof window<"u"&&(Gi.workerSrc=`//unpkg.com/pdfjs-dist@${Ml}/build/pdf.worker.min.mjs`);Vw(()=>Promise.resolve().then(()=>Tre),[]);Vw(()=>Promise.resolve().then(()=>Cre),void 0);var wre={cMapUrl:`https://unpkg.com/pdfjs-dist@${Ml}/cmaps/`,wasmUrl:`https://unpkg.com/pdfjs-dist@${Ml}/wasm/`},Sre=10*1024*1024,V1="document.pdf",xre=({fileName:t,url:e,onDownload:n,onRemove:r,highlight:i,toolbarClassName:a,maxPages:o,maxPagesWarning:l})=>{var u;const[d,p]=C.useState(),[f,g]=C.useState(1),[m,v]=C.useState(1),[b,E]=C.useState(null),[S,_]=C.useState(!1),[w,A]=C.useState(0),[k,R]=C.useState(!0),I=C.useRef(null),O=C.useRef({}),L=C.useRef(!1),[F,j]=C.useState({}),[H,G]=C.useState(!1),D=typeof o=="number"&&Number.isFinite(o)&&o>0,z=C.useMemo(()=>!d||!D?d:Math.min(d,o??d),[d,D,o]),B=D&&!!l&&!!d&&d>(o??0),U=[{id:"highlight",x:i?.x||0,y:i?.y||0,width:i?.width||0,height:i?.height||0,color:"rgba(255, 215, 0, 0.25)"}];function M({numPages:W}){p(W),A(0),R(!0)}function q(){A(W=>{const Z=W+1;return z&&Z===z&&R(!1),Z})}const Y=C.useCallback(W=>{const Z=z??1,ne=Math.min(Math.max(W,1),Z);g(ne);const se=O.current[ne];se&&I.current&&se.scrollIntoView({behavior:"instant",block:"center"})},[z]);C.useEffect(()=>{if(!i||!z||i.page>z)return;O.current[i.page]&&(Y(i.page),G(!0))},[i,z,Y]),C.useEffect(()=>{z&&g(W=>Math.min(W,z))},[z]);const $=W=>{const Z=W.getViewport({scale:1});if(j(ne=>Gt(De({},ne),{[W.pageNumber]:{width:Z.width,height:Z.height}})),!L.current&&W.pageNumber===1&&I.current){const ce=(I.current.clientWidth-16)/Z.width;v(ce),L.current=!0}},V=()=>{H&&G(!1)};C.useEffect(()=>{const W=()=>{if(!I.current)return;const ne=I.current.getBoundingClientRect(),se=ne.top+ne.height/2;let de=1,ce=1/0;Object.entries(O.current).forEach(([Se,xe])=>{if(xe){const Fe=xe.getBoundingClientRect(),Be=Fe.top+Fe.height/2,ft=Math.abs(Be-se);ft<ce&&(ce=ft,de=parseInt(Se))}});const le=z??de,he=Math.min(Math.max(de,1),le);g(he)},Z=I.current;if(Z)return Z.addEventListener("scroll",W),()=>Z.removeEventListener("scroll",W)},[z]);const X=C.useRef(null);C.useEffect(()=>X.current===e?void 0:(X.current=e,(async()=>{_(!0);const ne=await(await fetch(e)).blob();E(new File([ne],V1,{type:"application/pdf"})),_(!1)})(),()=>{E(null)}),[e]),C.useEffect(()=>{const W=I.current;if(!W)return;const Z=ne=>{ne.key==="ArrowLeft"?(ne.preventDefault(),f>1&&Y(f-1)):ne.key==="ArrowRight"?(ne.preventDefault(),f<(z??f)&&Y(f+1)):ne.key==="="||ne.key==="+"?(ne.preventDefault(),v(se=>Math.min(se+.25,3))):ne.key==="-"&&(ne.preventDefault(),v(se=>Math.max(se-.25,.5)))};return W.addEventListener("keydown",Z),W.tabIndex=0,()=>{W.removeEventListener("keydown",Z)}},[f,z,Y]);const Q=()=>{if(n)n();else if(b){const W=URL.createObjectURL(b),Z=document.createElement("a");Z.href=W,Z.download=b.name,document.body.appendChild(Z),Z.click(),document.body.removeChild(Z),URL.revokeObjectURL(W)}else window.open(e,"_blank")},te=()=>{g(1),Y(1)},ie=()=>{var W;document.fullscreenElement?document.exitFullscreen():(W=I.current)==null||W.requestFullscreen()};return S?T.jsx("div",{className:"relative h-full flex items-center justify-center bg-gray-50",children:T.jsxs("div",{className:"text-center",children:[T.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-gray-900 mx-auto mb-2"}),T.jsx("p",{className:"text-gray-600",children:"Loading PDF..."})]})}):T.jsxs("div",{className:"relative h-full flex flex-col",children:[k&&b&&b.size>Sre&&T.jsx(Are,{renderedPages:w,numPages:z}),z&&z>0&&T.jsxs(T.Fragment,{children:[T.jsx(y3,{fileName:(u=t??b?.name)!=null?u:V1,currentPage:f,totalPages:z,scale:m,onPageChange:Y,onScaleChange:v,onDownload:Q,onRemove:r,onReset:te,onFullscreen:ie,className:a}),B&&T.jsx("div",{role:"alert",className:"bg-amber-50 border border-amber-200 text-amber-900 px-4 py-2 text-sm",children:l??""}),T.jsx("div",{className:"h-3 bg-[#F3F3F3]"})]}),T.jsx("div",{ref:I,className:"overflow-auto h-full bg-[#F3F3F3] rounded-lg flex-1 min-h-0",children:T.jsx(cre,{file:b,onLoadSuccess:M,loading:S,options:wre,children:Array.from({length:z??0},(W,Z)=>T.jsx("div",{ref:ne=>{O.current[Z+1]=ne},className:"mb-4 flex justify-center",children:T.jsxs("div",{className:"relative inline-block",children:[T.jsx(Ere,{pageNumber:Z+1,scale:m,renderTextLayer:!0,renderAnnotationLayer:!0,onLoadSuccess:$,onClick:V,onRenderSuccess:q}),i&&H&&i.page===Z+1&&F[Z+1]&&T.jsx(b3,{boundingBoxes:U,zoom:m,containerWidth:F[Z+1].width,containerHeight:F[Z+1].height})]})},`page_${Z+1}`))})})]})};function Are({renderedPages:t,numPages:e}){return T.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-50 bg-opacity-90 z-50",children:T.jsxs("div",{className:"bg-white shadow-lg rounded-2xl p-6 w-80 text-center",children:[T.jsx("div",{className:"flex justify-center mb-4",children:T.jsx("div",{className:"animate-spin rounded-full h-10 w-10 border-4 border-primary border-t-transparent"})}),T.jsx("h2",{className:"text-lg font-semibold text-gray-800 mb-2",children:"Rendering PDF…"}),T.jsxs("p",{className:"text-sm text-gray-600 mb-3",children:["Page ",t," of ",e??"?"]}),T.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mb-4",children:T.jsx("div",{className:"bg-primary h-2.5 rounded-full transition-all duration-300",style:{width:e&&e>0?`${Math.round(t/e*100)}%`:"0%"}})}),T.jsx("p",{className:"text-xs text-gray-500",children:"Large PDFs or those with heavy images may take longer to render."})]})})}const _re=Object.freeze(Object.defineProperty({__proto__:null,PdfPreviewImpl:xre},Symbol.toStringTag,{value:"Module"})),Tre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Cre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));